Skip to content

Commit 21dab48

Browse files
Petrus PennanenPetrus Pennanen
authored andcommitted
chore: update packages/user-intent-kit to release 0.2.2
1 parent 6d3216c commit 21dab48

11 files changed

Lines changed: 27 additions & 22 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
test/
2+
examples/
3+
kotlin/
4+
swift/
5+
python/

‎packages/user-intent-kit/bin/intent.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
* intent derived - show derived state only
1313
*
1414
* Environment:
15-
* INTENT_API_BASE - API base URL (default: https://antfarm.world/api/v1)
15+
* INTENT_API_BASE - API base URL (default: https://groupmind.one/api/v1)
1616
* INTENT_API_KEY - Ant Farm API key (required)
1717
* INTENT_USER_ID - User ID (required)
1818
* INTENT_DEVICE_ID - Device ID for writes (required for patch/heartbeat)
1919
*/
2020

2121
import { IntentClient } from '../src/client.js';
2222

23-
const baseUrl = process.env.INTENT_API_BASE || 'https://antfarm.world/api/v1';
23+
const baseUrl = process.env.INTENT_API_BASE || 'https://groupmind.one/api/v1';
2424
const apiKey = process.env.INTENT_API_KEY;
2525
const userId = process.env.INTENT_USER_ID;
2626
const deviceId = process.env.INTENT_DEVICE_ID;

‎packages/user-intent-kit/bin/uik-daemon.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* background daemon.
1010
*
1111
* Environment:
12-
* INTENT_API_BASE (default: https://antfarm.world/api/v1)
12+
* INTENT_API_BASE (default: https://groupmind.one/api/v1)
1313
* INTENT_API_KEY required
1414
* INTENT_USER_ID required
1515
* INTENT_AGENT_HANDLE default: @agent
@@ -20,7 +20,7 @@
2020
import { hostname } from 'node:os';
2121
import { IntentClient, IAKAdapter, DesktopAdapter } from '../src/index.js';
2222

23-
const baseUrl = process.env.INTENT_API_BASE || 'https://antfarm.world/api/v1';
23+
const baseUrl = process.env.INTENT_API_BASE || 'https://groupmind.one/api/v1';
2424
const apiKey = process.env.INTENT_API_KEY;
2525
const userId = process.env.INTENT_USER_ID;
2626
const agentHandle = process.env.INTENT_AGENT_HANDLE || '@agent';

‎packages/user-intent-kit/examples/claudemb-daemon.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
set -euo pipefail
66

77
export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"
8-
export INTENT_API_BASE="https://antfarm.world/api/v1"
8+
export INTENT_API_BASE="https://groupmind.one/api/v1"
99
export INTENT_API_KEY="${INTENT_API_KEY:-xfb_63eddebae1e4b50345a9ca246264654df7dbf8620d150a76e21dd790ab201c5c}"
1010
export INTENT_USER_ID="${INTENT_USER_ID:-petrus}"
1111
export INTENT_AGENT_HANDLE="${INTENT_AGENT_HANDLE:-@claudemb}"

‎packages/user-intent-kit/examples/iak-integration.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { IntentClient, IAKAdapter, DesktopAdapter } from '../src/index.js';
1818

19-
const baseUrl = process.env.INTENT_API_BASE || 'https://antfarm.world/api/v1';
19+
const baseUrl = process.env.INTENT_API_BASE || 'https://groupmind.one/api/v1';
2020
const apiKey = process.env.INTENT_API_KEY;
2121
const userId = process.env.INTENT_USER_ID;
2222
const agentHandle = process.env.INTENT_AGENT_HANDLE || '@claudemm';

‎packages/user-intent-kit/examples/openclaw-plugin-setup.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add to your `openclaw.json`:
1919
"user-intent": {
2020
"enabled": true,
2121
"config": {
22-
"apiBaseUrl": "https://antfarm.world/api/v1",
22+
"apiBaseUrl": "https://groupmind.one/api/v1",
2323
"apiKey": "xfb_your_key",
2424
"userId": "petrus",
2525
"timeoutMs": 5000

‎packages/user-intent-kit/kotlin/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import com.thinkoff.userintent.WatchAdapter
1414
import kotlinx.coroutines.*
1515

1616
val client = IntentClient(
17-
baseUrl = "https://antfarm.world/api/v1",
17+
baseUrl = "https://groupmind.one/api/v1",
1818
apiKey = "xfb_your_key",
1919
userId = "petrus",
2020
deviceId = "wear-os-watch"

‎packages/user-intent-kit/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"type": "module",
66
"main": "src/index.js",
77
"bin": {
8-
"intent": "./bin/intent.js",
9-
"uik-daemon": "./bin/uik-daemon.js"
8+
"intent": "bin/intent.js",
9+
"uik-daemon": "bin/uik-daemon.js"
1010
},
1111
"exports": {
1212
".": "./src/index.js",
@@ -25,13 +25,13 @@
2525
"cross-device",
2626
"ai",
2727
"openclaw",
28-
"antfarm"
28+
"groupmind"
2929
],
3030
"author": "ThinkOffApp",
3131
"license": "AGPL-3.0",
3232
"repository": {
3333
"type": "git",
34-
"url": "https://github.com/ThinkOffApp/user-intent-kit.git"
34+
"url": "git+https://github.com/ThinkOffApp/user-intent-kit.git"
3535
},
3636
"engines": {
3737
"node": ">=18"

‎packages/user-intent-kit/src/client.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class IntentClient {
1515

1616
/**
1717
* @param {object} opts
18-
* @param {string} opts.baseUrl - Ant Farm API base URL (e.g. "https://antfarm.world/api/v1")
18+
* @param {string} opts.baseUrl - Ant Farm API base URL (e.g. "https://groupmind.one/api/v1")
1919
* @param {string} opts.apiKey - X-API-Key for authentication
2020
* @param {string} opts.userId - User ID to read/write intent for
2121
* @param {string} [opts.deviceId] - Device slot this client writes to (omit for read-only)
@@ -26,7 +26,7 @@ export class IntentClient {
2626
this.#baseUrl = baseUrl.replace(/\/+$/, '');
2727
this.#apiKey = apiKey;
2828
this.#userId = userId;
29-
this.#deviceId = deviceId || null;
29+
this.#deviceId = deviceId ? deviceId.toLowerCase() : null;
3030
this.#heartbeatIntervalMs = Math.max(heartbeatIntervalMs, 10000);
3131
this.#timeoutMs = timeoutMs;
3232
this.#heartbeatTimer = null;
@@ -65,7 +65,7 @@ export class IntentClient {
6565
}
6666

6767
async patchAgent(agentName, fields) {
68-
return this.#request('PATCH', `/intent/${this.#userId}/agents/${agentName}`, fields);
68+
return this.#request('PATCH', `/intent/${this.#userId}/agents/${agentName.toLowerCase()}`, fields);
6969
}
7070

7171
// --- Derived state helpers ---

‎packages/user-intent-kit/swift/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Or in `Package.swift`:
2626
import UserIntentKit
2727

2828
let client = IntentClient(
29-
baseUrl: "https://antfarm.world/api/v1",
29+
baseUrl: "https://groupmind.one/api/v1",
3030
apiKey: "xfb_your_key",
3131
userId: "petrus",
3232
deviceId: "apple-watch"

0 commit comments

Comments
 (0)