@openclaw-cloud/agent-controller 3.6.2 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +2 -14
- package/dist/api.js +1 -15
- package/dist/api.js.map +1 -1
- package/dist/commands/agent-update-cli.js +0 -7
- package/dist/commands/agent-update-cli.js.map +1 -1
- package/dist/commands/bootstrap.d.ts +0 -10
- package/dist/commands/bootstrap.js +2 -16
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/commands/channel-server.d.ts +0 -16
- package/dist/commands/channel-server.js +1 -19
- package/dist/commands/channel-server.js.map +1 -1
- package/dist/commands/deploy-cli.js +2 -12
- package/dist/commands/deploy-cli.js.map +1 -1
- package/dist/commands/diagnostics-cli.js +0 -6
- package/dist/commands/diagnostics-cli.js.map +1 -1
- package/dist/commands/install-deps.d.ts +0 -10
- package/dist/commands/install-deps.js +1 -10
- package/dist/commands/install-deps.js.map +1 -1
- package/dist/commands/install.js +0 -6
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/package-install-cli.js +1 -14
- package/dist/commands/package-install-cli.js.map +1 -1
- package/dist/commands/plugin-update-cli.js +1 -8
- package/dist/commands/plugin-update-cli.js.map +1 -1
- package/dist/commands/restart-cli.js +0 -4
- package/dist/commands/restart-cli.js.map +1 -1
- package/dist/commands/self-update.d.ts +2 -24
- package/dist/commands/self-update.js +5 -54
- package/dist/commands/self-update.js.map +1 -1
- package/dist/commands/stop-cli.d.ts +0 -4
- package/dist/commands/stop-cli.js +1 -24
- package/dist/commands/stop-cli.js.map +1 -1
- package/dist/config-file.d.ts +3 -20
- package/dist/config-file.js +3 -22
- package/dist/config-file.js.map +1 -1
- package/dist/config.d.ts +0 -22
- package/dist/config.js +1 -34
- package/dist/config.js.map +1 -1
- package/dist/connection.js +2 -39
- package/dist/connection.js.map +1 -1
- package/dist/handlers/agent-update.d.ts +1 -21
- package/dist/handlers/agent-update.js +1 -21
- package/dist/handlers/agent-update.js.map +1 -1
- package/dist/handlers/chat.d.ts +0 -8
- package/dist/handlers/chat.js +3 -23
- package/dist/handlers/chat.js.map +1 -1
- package/dist/handlers/file-write.js +1 -4
- package/dist/handlers/file-write.js.map +1 -1
- package/dist/handlers/memory.d.ts +1 -9
- package/dist/handlers/memory.js +3 -25
- package/dist/handlers/memory.js.map +1 -1
- package/dist/handlers/onboarding.js +0 -2
- package/dist/handlers/onboarding.js.map +1 -1
- package/dist/handlers/pair.js +1 -3
- package/dist/handlers/pair.js.map +1 -1
- package/dist/handlers/plugin-update.d.ts +1 -16
- package/dist/handlers/plugin-update.js +1 -16
- package/dist/handlers/plugin-update.js.map +1 -1
- package/dist/handlers/restart.js +0 -2
- package/dist/handlers/restart.js.map +1 -1
- package/dist/handlers/self-update.d.ts +2 -29
- package/dist/handlers/self-update.js +3 -35
- package/dist/handlers/self-update.js.map +1 -1
- package/dist/handlers/slack-event.d.ts +2 -9
- package/dist/handlers/slack-event.js +2 -10
- package/dist/handlers/slack-event.js.map +1 -1
- package/dist/heartbeat.d.ts +2 -12
- package/dist/heartbeat.js +3 -18
- package/dist/heartbeat.js.map +1 -1
- package/dist/index.js +6 -50
- package/dist/index.js.map +1 -1
- package/dist/lockfile.d.ts +0 -7
- package/dist/lockfile.js +0 -9
- package/dist/lockfile.js.map +1 -1
- package/dist/memory-mcp-server.d.ts +1 -19
- package/dist/memory-mcp-server.js +5 -53
- package/dist/memory-mcp-server.js.map +1 -1
- package/dist/mock-board-worker.d.ts +2 -25
- package/dist/mock-board-worker.js +7 -54
- package/dist/mock-board-worker.js.map +1 -1
- package/dist/platform/linux.js +0 -3
- package/dist/platform/linux.js.map +1 -1
- package/dist/platform/macos.js +0 -2
- package/dist/platform/macos.js.map +1 -1
- package/dist/providers/chat-types.d.ts +0 -3
- package/dist/providers/chat-types.js +0 -3
- package/dist/providers/chat-types.js.map +1 -1
- package/dist/providers/claude-code/channel-server.d.ts +0 -19
- package/dist/providers/claude-code/channel-server.js +0 -19
- package/dist/providers/claude-code/channel-server.js.map +1 -1
- package/dist/providers/claude-code/index.d.ts +0 -22
- package/dist/providers/claude-code/index.js +3 -26
- package/dist/providers/claude-code/index.js.map +1 -1
- package/dist/providers/claude-code/login-flow.d.ts +0 -17
- package/dist/providers/claude-code/login-flow.js +2 -16
- package/dist/providers/claude-code/login-flow.js.map +1 -1
- package/dist/providers/claude-code/settings-writer.d.ts +1 -16
- package/dist/providers/claude-code/settings-writer.js +5 -20
- package/dist/providers/claude-code/settings-writer.js.map +1 -1
- package/dist/providers/claude-code/socket-bridge.d.ts +0 -35
- package/dist/providers/claude-code/socket-bridge.js +2 -43
- package/dist/providers/claude-code/socket-bridge.js.map +1 -1
- package/dist/providers/claude-code/spawn-claude.d.ts +0 -17
- package/dist/providers/claude-code/spawn-claude.js +1 -15
- package/dist/providers/claude-code/spawn-claude.js.map +1 -1
- package/dist/providers/index.d.ts +1 -10
- package/dist/providers/index.js +2 -13
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/mock/index.d.ts +0 -4
- package/dist/providers/mock/index.js +0 -4
- package/dist/providers/mock/index.js.map +1 -1
- package/dist/providers/openclaw/auto-pair.d.ts +1 -6
- package/dist/providers/openclaw/auto-pair.js +1 -10
- package/dist/providers/openclaw/auto-pair.js.map +1 -1
- package/dist/providers/openclaw/device-identity.d.ts +1 -1
- package/dist/providers/openclaw/device-identity.js +33 -17
- package/dist/providers/openclaw/device-identity.js.map +1 -1
- package/dist/providers/openclaw/gateway-adapter.d.ts +0 -5
- package/dist/providers/openclaw/gateway-adapter.js +4 -32
- package/dist/providers/openclaw/gateway-adapter.js.map +1 -1
- package/dist/providers/openclaw/gateway-client.js +3 -9
- package/dist/providers/openclaw/gateway-client.js.map +1 -1
- package/dist/providers/openclaw/index.js +2 -15
- package/dist/providers/openclaw/index.js.map +1 -1
- package/dist/providers/types.d.ts +0 -10
- package/dist/slack-relay-server.d.ts +4 -33
- package/dist/slack-relay-server.js +9 -57
- package/dist/slack-relay-server.js.map +1 -1
- package/dist/types.d.ts +1 -12
- package/dist/types.js +0 -6
- package/dist/types.js.map +1 -1
- package/dist/utils/agent-controller-bin.d.ts +0 -6
- package/dist/utils/agent-controller-bin.js +1 -21
- package/dist/utils/agent-controller-bin.js.map +1 -1
- package/dist/utils/anthropic-auth.d.ts +1 -22
- package/dist/utils/anthropic-auth.js +0 -10
- package/dist/utils/anthropic-auth.js.map +1 -1
- package/dist/utils/apply-config.d.ts +7 -74
- package/dist/utils/apply-config.js +30 -221
- package/dist/utils/apply-config.js.map +1 -1
- package/dist/utils/backup-push.d.ts +0 -10
- package/dist/utils/backup-push.js +0 -15
- package/dist/utils/backup-push.js.map +1 -1
- package/dist/utils/claude-env.d.ts +1 -10
- package/dist/utils/claude-env.js +2 -14
- package/dist/utils/claude-env.js.map +1 -1
- package/dist/utils/config-merge-paths.d.ts +5 -43
- package/dist/utils/config-merge-paths.js +5 -43
- package/dist/utils/config-merge-paths.js.map +1 -1
- package/dist/utils/deploy-type.d.ts +1 -13
- package/dist/utils/deploy-type.js +2 -19
- package/dist/utils/deploy-type.js.map +1 -1
- package/dist/utils/diagnostics.d.ts +0 -7
- package/dist/utils/diagnostics.js +0 -15
- package/dist/utils/diagnostics.js.map +1 -1
- package/dist/utils/exec.d.ts +0 -10
- package/dist/utils/exec.js +2 -32
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/gateway-restart-handler.d.ts +1 -8
- package/dist/utils/gateway-restart-handler.js +1 -8
- package/dist/utils/gateway-restart-handler.js.map +1 -1
- package/dist/utils/gateway-restart.d.ts +1 -11
- package/dist/utils/gateway-restart.js +1 -11
- package/dist/utils/gateway-restart.js.map +1 -1
- package/dist/utils/knowledge-graph.d.ts +2 -25
- package/dist/utils/knowledge-graph.js +2 -37
- package/dist/utils/knowledge-graph.js.map +1 -1
- package/dist/utils/knowledge-push.d.ts +0 -4
- package/dist/utils/knowledge-push.js +4 -19
- package/dist/utils/knowledge-push.js.map +1 -1
- package/dist/utils/legacy-mcp-servers.d.ts +1 -11
- package/dist/utils/legacy-mcp-servers.js +1 -11
- package/dist/utils/legacy-mcp-servers.js.map +1 -1
- package/dist/utils/log-collector.js +0 -2
- package/dist/utils/log-collector.js.map +1 -1
- package/dist/utils/openclaw-ops.d.ts +5 -72
- package/dist/utils/openclaw-ops.js +6 -98
- package/dist/utils/openclaw-ops.js.map +1 -1
- package/dist/utils/openclaw-stack-update.d.ts +2 -14
- package/dist/utils/openclaw-stack-update.js +1 -6
- package/dist/utils/openclaw-stack-update.js.map +1 -1
- package/dist/utils/package-install.d.ts +0 -5
- package/dist/utils/package-install.js +2 -21
- package/dist/utils/package-install.js.map +1 -1
- package/dist/utils/package-version.d.ts +1 -9
- package/dist/utils/package-version.js +1 -9
- package/dist/utils/package-version.js.map +1 -1
- package/dist/utils/parse-id-at-version.d.ts +1 -11
- package/dist/utils/parse-id-at-version.js +1 -11
- package/dist/utils/parse-id-at-version.js.map +1 -1
- package/dist/utils/plugin-reconcile.d.ts +2 -33
- package/dist/utils/plugin-reconcile.js +7 -77
- package/dist/utils/plugin-reconcile.js.map +1 -1
- package/dist/utils/release-channel.d.ts +0 -8
- package/dist/utils/release-channel.js.map +1 -1
- package/dist/utils/write-home-files.d.ts +2 -24
- package/dist/utils/write-home-files.js +3 -27
- package/dist/utils/write-home-files.js.map +1 -1
- package/dist/utils/write-workspace-files.d.ts +0 -14
- package/dist/utils/write-workspace-files.js +1 -19
- package/dist/utils/write-workspace-files.js.map +1 -1
- package/dist/workspace.d.ts +1 -21
- package/dist/workspace.js +1 -21
- package/dist/workspace.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slack-relay-server.js","sourceRoot":"","sources":["../src/slack-relay-server.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAgB,MAAM,IAAI,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,cAAc,EA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AAE,GAAG,EAAE;QAClB,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;QAChE,IAAI,WAAW,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;YAC9B,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAa;IACtC,2GAA2G;IAC3G,IAAI,CAAC;QACH,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;IAC1E,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,IAAa;IACpC,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC1C,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACxD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAmB,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centrifugo channel layout:
|
|
3
|
-
* agent:<agentId> — system commands from backend (deploy, config, backup, etc.)
|
|
4
|
-
* chat:<agentId> — chat commands (list sessions, history, send)
|
|
5
|
-
* heartbeat:<agentId> — heartbeat publications from agent
|
|
6
|
-
*/
|
|
7
1
|
export type CommandType = 'diagnostics' | 'restart' | 'deploy' | 'pair' | 'stop' | 'backup' | 'chat_list_sessions' | 'chat_history' | 'chat_send' | 'chat_delete_session' | 'package_install' | 'file_write' | 'file_delete' | 'onboarding_complete' | 'knowledge_sync' | 'self_update' | 'plugin_update' | 'agent_update' | 'telegram_webhook' | 'slack_event' | 'update_skills' | 'update_config' | 'memory_create_entities' | 'memory_create_relations' | 'memory_add_observations' | 'memory_delete_entities' | 'memory_delete_observations' | 'memory_delete_relations' | 'memory_read_graph' | 'memory_search_nodes' | 'memory_open_nodes';
|
|
8
2
|
export interface AgentCommand {
|
|
9
3
|
id: string;
|
|
@@ -22,12 +16,7 @@ export interface GatewayStatus {
|
|
|
22
16
|
rpcOk: boolean;
|
|
23
17
|
pid?: number;
|
|
24
18
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Live snapshot of the Centrifugo WS connection state, so backend can tell
|
|
27
|
-
* whether this agent is actually able to receive commands (heartbeat 200 alone
|
|
28
|
-
* does not prove the WS is up — the controller can be alive while the Centrifugo
|
|
29
|
-
* subscription is in error / reconnecting).
|
|
30
|
-
*/
|
|
19
|
+
/** A successful HTTP heartbeat does not prove the WS subscription can receive commands. */
|
|
31
20
|
export interface CentrifugoStatus {
|
|
32
21
|
connected: boolean;
|
|
33
22
|
state: 'connected' | 'connecting' | 'disconnected';
|
package/dist/types.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centrifugo channel layout:
|
|
3
|
-
* agent:<agentId> — system commands from backend (deploy, config, backup, etc.)
|
|
4
|
-
* chat:<agentId> — chat commands (list sessions, history, send)
|
|
5
|
-
* heartbeat:<agentId> — heartbeat publications from agent
|
|
6
|
-
*/
|
|
7
1
|
export {};
|
|
8
2
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the absolute path to the `agent-controller` executable, or
|
|
3
|
-
* `undefined` when resolution fails (e.g. when running under `npx` from a
|
|
4
|
-
* temp directory with an unusual layout).
|
|
5
|
-
*/
|
|
6
1
|
export declare function getAgentControllerBinPath(): string | undefined;
|
|
7
|
-
/** Test-only: reset the cached value. */
|
|
8
2
|
export declare function __resetAgentControllerBinCacheForTests(): void;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve the absolute path of the `agent-controller` executable currently
|
|
3
|
-
* running this process. Used when writing `.mcp.json` for Claude Code so that
|
|
4
|
-
* spawned subprocesses do not depend on PATH containing the npm-global bin.
|
|
5
|
-
*
|
|
6
|
-
* Resolution order:
|
|
7
|
-
* 1. `which agent-controller` (via spawnSync) — finds the version the user
|
|
8
|
-
* installed on PATH. Most reliable on both macOS and Linux.
|
|
9
|
-
* 2. Fallback to `process.argv[1]` — absolute path to the script Node ran,
|
|
10
|
-
* i.e. the `bin/agent-controller.js` entry.
|
|
11
|
-
* 3. Returns `undefined` if neither resolves to an absolute path — callers
|
|
12
|
-
* should then fall back to the bare command `agent-controller`.
|
|
13
|
-
*
|
|
14
|
-
* Result is cached in a module-level variable.
|
|
15
|
-
*/
|
|
1
|
+
/** Use an absolute controller path in .mcp.json because spawned workers may lack npm-global on PATH. */
|
|
16
2
|
import { spawnSync } from 'node:child_process';
|
|
17
3
|
import path from 'node:path';
|
|
18
4
|
let cached;
|
|
@@ -38,11 +24,6 @@ function fromArgv() {
|
|
|
38
24
|
}
|
|
39
25
|
return undefined;
|
|
40
26
|
}
|
|
41
|
-
/**
|
|
42
|
-
* Returns the absolute path to the `agent-controller` executable, or
|
|
43
|
-
* `undefined` when resolution fails (e.g. when running under `npx` from a
|
|
44
|
-
* temp directory with an unusual layout).
|
|
45
|
-
*/
|
|
46
27
|
export function getAgentControllerBinPath() {
|
|
47
28
|
if (cached !== undefined) {
|
|
48
29
|
return cached ?? undefined;
|
|
@@ -51,7 +32,6 @@ export function getAgentControllerBinPath() {
|
|
|
51
32
|
cached = resolved ?? null;
|
|
52
33
|
return resolved;
|
|
53
34
|
}
|
|
54
|
-
/** Test-only: reset the cached value. */
|
|
55
35
|
export function __resetAgentControllerBinCacheForTests() {
|
|
56
36
|
cached = undefined;
|
|
57
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-controller-bin.js","sourceRoot":"","sources":["../../src/utils/agent-controller-bin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agent-controller-bin.js","sourceRoot":"","sources":["../../src/utils/agent-controller-bin.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,IAAI,MAAiC,CAAC;AAEtC,SAAS,QAAQ;IACf,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAC3E,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;YAC7D,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChC,OAAO,GAAG,CAAC;YACb,CAAC;QACH,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,6DAA6D;IAC/D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,QAAQ;IACf,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9B,IAAI,KAAK,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,yBAAyB;IACvC,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,MAAM,IAAI,SAAS,CAAC;IAC7B,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,EAAE,IAAI,QAAQ,EAAE,CAAC;IAC1C,MAAM,GAAG,QAAQ,IAAI,IAAI,CAAC;IAC1B,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,sCAAsC;IACpD,MAAM,GAAG,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared classifier for Anthropic credentials.
|
|
3
|
-
*
|
|
4
|
-
* Both `providers/claude-code/settings-writer.ts` and `utils/claude-env.ts`
|
|
5
|
-
* need the same rule when writing Claude settings.json: an OAuth-like token
|
|
6
|
-
* (prefix `sk-ant-oat`) must be passed via `ANTHROPIC_AUTH_TOKEN`, a regular
|
|
7
|
-
* API key via `ANTHROPIC_API_KEY`, and an explicit auth token (when provided)
|
|
8
|
-
* wins over both.
|
|
9
|
-
*
|
|
10
|
-
* Returning a discriminated union keeps both call sites in sync and means
|
|
11
|
-
* the precedence is documented in one place.
|
|
12
|
-
*/
|
|
1
|
+
/** OAuth-like sk-ant-oat tokens require ANTHROPIC_AUTH_TOKEN, not the API-key channel. */
|
|
13
2
|
export type AnthropicAuth = {
|
|
14
3
|
kind: 'auth_token';
|
|
15
4
|
value: string;
|
|
@@ -23,17 +12,7 @@ export declare function classifyAnthropicAuth(input: {
|
|
|
23
12
|
anthropicAuthToken?: string;
|
|
24
13
|
anthropicApiKey?: string;
|
|
25
14
|
}): AnthropicAuth;
|
|
26
|
-
/** The permissions block both Claude settings writers emit, verbatim. */
|
|
27
15
|
export declare const CLAUDE_PERMISSIONS: {
|
|
28
16
|
allow: string[];
|
|
29
17
|
};
|
|
30
|
-
/**
|
|
31
|
-
* The settings.json base shared by both writers: the permissions block plus the
|
|
32
|
-
* `env` entry the auth classification implies.
|
|
33
|
-
*
|
|
34
|
-
* `providers/claude-code/settings-writer.ts` uses this as its complete output;
|
|
35
|
-
* `utils/claude-env.ts` uses it for the OAuth branch and composes its own
|
|
36
|
-
* apiKeyHelper variant for the API-key branch (that flow reads the key out of
|
|
37
|
-
* the VM `.env` at runtime instead of embedding it).
|
|
38
|
-
*/
|
|
39
18
|
export declare function buildClaudeSettings(auth: AnthropicAuth): Record<string, unknown>;
|
|
@@ -10,19 +10,9 @@ export function classifyAnthropicAuth(input) {
|
|
|
10
10
|
return { kind: 'auth_token', value: apiKey };
|
|
11
11
|
return { kind: 'api_key', value: apiKey };
|
|
12
12
|
}
|
|
13
|
-
/** The permissions block both Claude settings writers emit, verbatim. */
|
|
14
13
|
export const CLAUDE_PERMISSIONS = {
|
|
15
14
|
allow: ['Bash(*)', 'Read(*)', 'Write(*)', 'Edit(*)', 'mcp__*'],
|
|
16
15
|
};
|
|
17
|
-
/**
|
|
18
|
-
* The settings.json base shared by both writers: the permissions block plus the
|
|
19
|
-
* `env` entry the auth classification implies.
|
|
20
|
-
*
|
|
21
|
-
* `providers/claude-code/settings-writer.ts` uses this as its complete output;
|
|
22
|
-
* `utils/claude-env.ts` uses it for the OAuth branch and composes its own
|
|
23
|
-
* apiKeyHelper variant for the API-key branch (that flow reads the key out of
|
|
24
|
-
* the VM `.env` at runtime instead of embedding it).
|
|
25
|
-
*/
|
|
26
16
|
export function buildClaudeSettings(auth) {
|
|
27
17
|
switch (auth.kind) {
|
|
28
18
|
case 'auth_token':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-auth.js","sourceRoot":"","sources":["../../src/utils/anthropic-auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anthropic-auth.js","sourceRoot":"","sources":["../../src/utils/anthropic-au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js';
|
|
2
|
-
/** Canonical openclaw.json location — `<stateDir>/openclaw.json`. */
|
|
3
2
|
export declare function getOpenclawJsonPath(): string;
|
|
4
|
-
/**
|
|
5
|
-
* The ONE writer for openclaw.json — atomic (tmp + rename) and mode 0600.
|
|
6
|
-
*
|
|
7
|
-
* Both properties are load-bearing and used to be split across three
|
|
8
|
-
* independent write sites: the full apply wrote 0600 but non-atomically (a
|
|
9
|
-
* reader could see a truncated file), the scoped merge wrote atomically but
|
|
10
|
-
* with no mode (tmp + rename RESETS a pre-existing 0600 file to 0644, leaking
|
|
11
|
-
* `models.providers[*].apiKey`), and the startup memory-MCP injection did
|
|
12
|
-
* neither. Everything goes through here now.
|
|
13
|
-
*/
|
|
3
|
+
/** Atomic writes prevent truncated reads; explicit 0600 protects provider keys even after tmp+rename. */
|
|
14
4
|
export declare function writeOpenclawJson(data: Record<string, unknown>): Promise<void>;
|
|
15
5
|
/**
|
|
16
6
|
* Whether this openclaw version still reads auth-profiles.json. Compares
|
|
@@ -18,22 +8,9 @@ export declare function writeOpenclawJson(data: Record<string, unknown>): Promis
|
|
|
18
8
|
* true (keep the legacy behaviour rather than guess).
|
|
19
9
|
*/
|
|
20
10
|
export declare function shouldWriteAuthProfiles(version: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* sha256 of everything `applyBootstrapConfig` writes to disk, serialized with
|
|
23
|
-
* sorted keys. Deliberately the PAYLOAD and never the files on disk: gateway
|
|
24
|
-
* 2026.9 writes its own `meta` / `wizard` / `skills` back into openclaw.json,
|
|
25
|
-
* so the file never equals what we wrote.
|
|
26
|
-
*/
|
|
11
|
+
/** Hash the payload: gateway 2026.9 rewrites meta/wizard/skills, so disk content is not a stable baseline. */
|
|
27
12
|
export declare function payloadFingerprint(data: BootstrapResult): string;
|
|
28
|
-
/**
|
|
29
|
-
* FULL apply — only ever legal on a managed install (see `isManagedDeploy`).
|
|
30
|
-
* Rewrites files wholesale:
|
|
31
|
-
* 1. Write openclaw.json
|
|
32
|
-
* 2. Write workspace files + skills
|
|
33
|
-
* 3. Write auth-profiles.json (openclaw < 2026.9 only) + settings.json (from envVars)
|
|
34
|
-
* 4. MERGE .env (for VM agents) — never a wholesale replace, see step 4 below
|
|
35
|
-
* 5. Restart gateway — only when the payload differs from the last one applied
|
|
36
|
-
*/
|
|
13
|
+
/** Wholesale writes are allowed only for managed installs; see isManagedDeploy. */
|
|
37
14
|
export declare function applyBootstrapConfig(data: BootstrapResult): Promise<void>;
|
|
38
15
|
type MergeOutcome = 'added' | 'equal' | 'conflict' | 'merged' | 'overwritten';
|
|
39
16
|
export interface MergeResult {
|
|
@@ -45,59 +22,15 @@ export interface MergeResult {
|
|
|
45
22
|
}>;
|
|
46
23
|
}
|
|
47
24
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* Rules:
|
|
53
|
-
* - Only paths in `MERGEABLE_CONFIG_PATHS` are considered.
|
|
54
|
-
* - Missing local value → remote is written.
|
|
55
|
-
* - Equal values → no-op.
|
|
56
|
-
* - Differing values → conflict, local wins, warn+skip logged.
|
|
57
|
-
* - For object paths: conflict detection is per-key inside the dict.
|
|
58
|
-
* - **Exception — `mcp.servers` in openclaw.json is REMOTE-wins per key.**
|
|
59
|
-
* That section is backend-managed: the URL, transport and bearer token of a
|
|
60
|
-
* backend-generated server (e.g. `openclaw-cloud`) change over time, and
|
|
61
|
-
* under local-wins an updated entry could never reach a standalone agent —
|
|
62
|
-
* a rotated token was skipped forever (observed live 2026-08-02). Every
|
|
63
|
-
* server NAME present in the payload is overwritten; names that exist only
|
|
64
|
-
* locally are left untouched.
|
|
65
|
-
* LIMITATION — no deletions. A server removed in the backend stays in the
|
|
66
|
-
* local openclaw.json: the payload cannot distinguish "removed upstream"
|
|
67
|
-
* from "never managed here", and dropping local-only entries would delete
|
|
68
|
-
* the user's own servers. Removal on standalone is a manual edit.
|
|
69
|
-
* - Restarts the gateway **iff** the `mcp.servers` subtree actually changed.
|
|
70
|
-
* This is a FALLBACK, not the primary delivery mechanism: openclaw
|
|
71
|
-
* does self-reload this section (verified live 2026-08-03 — the gateway
|
|
72
|
-
* logged `[reload] config hot reload applied (mcp.servers.<name>.url,
|
|
73
|
-
* mcp.servers.<name>.headers)` on an overwrite, with no restart). The
|
|
74
|
-
* restart covers builds/paths where that self-reload does not fire, and
|
|
75
|
-
* mirrors what applyBootstrapConfig does on managed installs. It is
|
|
76
|
-
* best-effort: a failure is logged and does not fail the apply — on a
|
|
77
|
-
* launchd box where `openclaw` is not on the service PATH it never runs at
|
|
78
|
-
* all, and the merge still lands.
|
|
79
|
-
* - Settings.json (~/.claude/settings.json) keeps LOCAL-wins for
|
|
80
|
-
* `mcp.servers` ONLY — apiKeyHelper/permissions/env/etc untouched. `env` is
|
|
81
|
-
* never written here: it would redirect the user's own Claude Code sessions
|
|
82
|
-
* to the platform proxy (see MERGEABLE_SETTINGS_PATHS).
|
|
83
|
-
* - auth-profiles.json and .env are NOT touched on standalone.
|
|
25
|
+
* Standalone merges must preserve user-owned config. Only openclaw.json mcp.servers is remote-wins;
|
|
26
|
+
* local-only servers cannot be deleted because absence does not prove prior backend ownership.
|
|
27
|
+
* Claude settings permit only local-wins mcp.servers: env would redirect the user's own sessions.
|
|
84
28
|
*/
|
|
85
29
|
export declare function applyMergeableConfig(data: BootstrapResult): Promise<MergeResult>;
|
|
86
30
|
export interface ApplyConfigOutcome {
|
|
87
|
-
/** True when the full apply ran (managed install), false for scoped merge. */
|
|
88
31
|
managed: boolean;
|
|
89
|
-
/** Present only on the scoped-merge path. */
|
|
90
32
|
mergeResult?: MergeResult;
|
|
91
33
|
}
|
|
92
|
-
/**
|
|
93
|
-
* The one owner of "fetch bootstrap and apply it". Every caller — the
|
|
94
|
-
* `update_config` WS handler, the `bootstrap` CLI, the opt-in startup refresh —
|
|
95
|
-
* goes through here so the deploy-type decision cannot drift between them.
|
|
96
|
-
*
|
|
97
|
-
* Managed installs ('vm'/'k8s') are provisioned end to end by the platform and
|
|
98
|
-
* get the full apply. Anything else — 'standalone', 'external', or a payload
|
|
99
|
-
* from an older backend that omits `deploymentType` — is a third-party machine
|
|
100
|
-
* and gets the scoped, additive merge only. Never rewrite files we don't own.
|
|
101
|
-
*/
|
|
34
|
+
/** One deploy-type decision serves WS, CLI and startup; unknown installs must retain scoped ownership. */
|
|
102
35
|
export declare function fetchAndApplyConfig(api: AgentApi, agentId: string): Promise<ApplyConfigOutcome>;
|
|
103
36
|
export {};
|