@agentdock/wire 0.0.94 → 0.0.95
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/accountLanguage.d.ts +2 -8
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +16 -46
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +1 -2
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseGateway.d.ts +1 -2
- package/dist/enterprisePolicy.d.ts +1599 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRuntime.d.ts +317 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +18 -30
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +55 -71
- package/dist/features.d.ts +14 -29
- package/dist/feedback.d.ts +3 -4
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +841 -43
- package/dist/gateway.js +1 -1
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +1 -2
- package/dist/inboundEvents.d.ts +32 -75
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +49 -57
- package/dist/legacyProtocol.d.ts +0 -6
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +48 -56
- package/dist/messageMeta.d.ts +15 -17
- package/dist/messages.d.ts +13 -20
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +118 -162
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +9 -10
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +4 -5
- package/dist/sessionBtw.js +1 -1
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +2 -9
- package/dist/socketEvents.d.ts +4 -5
- package/dist/sourceMetadata.d.ts +1 -14
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +13 -20
- package/dist/sync.d.ts +75 -156
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +6 -30
- package/package.json +1 -1
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
export declare const ACCOUNT_LANGUAGES: readonly ["en", "zh-Hans"];
|
|
4
4
|
export declare const DEFAULT_ACCOUNT_LANGUAGE = "en";
|
|
5
|
-
|
|
6
|
-
* Daemon capability flag (RFC-081 rolling-upgrade gate). The server only injects
|
|
7
|
-
* `responseLanguage` into spawn-session/ai-helper RPC params when the target
|
|
8
|
-
* daemon declared this capability at machine-register. Older daemons whose
|
|
9
|
-
* `SpawnSessionParamsSchema` is `.strict()` reject the unknown field outright.
|
|
10
|
-
*/
|
|
5
|
+
|
|
11
6
|
export declare const ACCOUNT_LANGUAGE_CAPABILITY = "account-language";
|
|
12
7
|
export declare const AccountLanguageSchema: z.ZodEnum<["en", "zh-Hans"]>;
|
|
13
8
|
export type AccountLanguage = z.infer<typeof AccountLanguageSchema>;
|
|
@@ -29,4 +24,3 @@ export declare const AccountLanguageResponseSchema: z.ZodObject<{
|
|
|
29
24
|
language: "en" | "zh-Hans";
|
|
30
25
|
initialized: boolean;
|
|
31
26
|
}>;
|
|
32
|
-
//# sourceMappingURL=accountLanguage.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent capability matrix — static mapping of which features each CLI agent supports.
|
|
3
|
-
*
|
|
4
|
-
* Web UI uses this to conditionally show/hide spawn parameters
|
|
5
|
-
* (model, systemPrompt, tools, permissions, etc.) based on the selected agent.
|
|
6
|
-
*/
|
|
7
1
|
import type { ControlLevelType } from './controlLevel.js';
|
|
8
2
|
export interface AgentPermissionMode {
|
|
9
3
|
readonly value: string;
|
|
@@ -13,7 +7,7 @@ export interface AgentModelOption {
|
|
|
13
7
|
readonly value: string;
|
|
14
8
|
readonly label: string;
|
|
15
9
|
}
|
|
16
|
-
|
|
10
|
+
|
|
17
11
|
export type ModelSource = 'builtin' | 'acp' | 'env' | 'custom';
|
|
18
12
|
export interface AgentCapability {
|
|
19
13
|
readonly controlLevel: ControlLevelType;
|
|
@@ -21,67 +15,43 @@ export interface AgentCapability {
|
|
|
21
15
|
readonly supportsSystemPrompt: boolean;
|
|
22
16
|
readonly supportsToolConfig: boolean;
|
|
23
17
|
readonly supportsMcpConfig: boolean;
|
|
24
|
-
|
|
25
|
-
* injection, e.g. the handoff tool). Distinct from `supportsMcpConfig`, which is
|
|
26
|
-
* about the user filling a `--mcp-config` CLI flag. */
|
|
18
|
+
|
|
27
19
|
readonly supportsMcpInjection: boolean;
|
|
28
20
|
readonly supportsPermissionMode: boolean;
|
|
29
21
|
readonly supportsResume: boolean;
|
|
30
22
|
readonly supportsMaxTurns: boolean;
|
|
31
23
|
readonly supportsSlashClear: boolean;
|
|
32
24
|
readonly supportsSlashCompact: boolean;
|
|
33
|
-
|
|
25
|
+
|
|
34
26
|
readonly supportsInSessionModelSwitch: boolean;
|
|
35
|
-
|
|
27
|
+
|
|
36
28
|
readonly supportsInSessionModeSwitch: boolean;
|
|
37
|
-
|
|
38
|
-
* Whether dynamically-discovered agent-native ACP modes (e.g. hermes
|
|
39
|
-
* accept_edits, opencode build/plan, copilot URL IDs) can be forwarded to
|
|
40
|
-
* the agent's own mode mechanism (session/set_config_option / session/set_mode).
|
|
41
|
-
* Agents with this=false never expose runtime native modes in the permission
|
|
42
|
-
* pill (their reported "modes" are not permission modes, e.g. openclaw
|
|
43
|
-
* thinking levels). Codex routes its modes via its own policy instead.
|
|
44
|
-
*/
|
|
29
|
+
|
|
45
30
|
readonly supportsNativeModeForward: boolean;
|
|
46
|
-
|
|
31
|
+
|
|
47
32
|
readonly supportsContextUsageQuery: boolean;
|
|
48
|
-
|
|
33
|
+
|
|
49
34
|
readonly usesAcpConfig: boolean;
|
|
50
|
-
|
|
35
|
+
|
|
51
36
|
readonly staticModels: readonly AgentModelOption[];
|
|
52
|
-
|
|
37
|
+
|
|
53
38
|
readonly permissionModes: readonly AgentPermissionMode[];
|
|
54
|
-
|
|
39
|
+
|
|
55
40
|
readonly defaultPermissionMode: string;
|
|
56
41
|
}
|
|
57
|
-
|
|
58
|
-
* Semantic mapping of known agent-native mode IDs to AgentDock policy values.
|
|
59
|
-
* Only for native modes that ARE approval strategies (hermes). Unmapped/unknown
|
|
60
|
-
* native modes fall through to the open native channel (forwarded) — no schema
|
|
61
|
-
* or capability change needed for future agent modes.
|
|
62
|
-
*/
|
|
42
|
+
|
|
63
43
|
export declare const NATIVE_MODE_TO_POLICY: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
64
|
-
|
|
65
|
-
* Resolve a permission-mode value to the AgentDock policy value the daemon
|
|
66
|
-
* should enforce, or null when the value is an agent-native mode to forward.
|
|
67
|
-
* Agent-aware: codex's native approval policies count as policy for codex.
|
|
68
|
-
*/
|
|
44
|
+
|
|
69
45
|
export declare function resolvePolicyMode(agentType: string, mode: string): string | null;
|
|
70
46
|
export declare const AGENT_CAPABILITIES: Readonly<Record<string, AgentCapability>>;
|
|
71
|
-
|
|
47
|
+
|
|
72
48
|
export declare function updateDynamicModes(agentType: string, modes: readonly {
|
|
73
49
|
id: string;
|
|
74
50
|
label: string;
|
|
75
51
|
}[]): void;
|
|
76
|
-
|
|
52
|
+
|
|
77
53
|
export declare function getDynamicModes(agentType: string): readonly AgentPermissionMode[] | null;
|
|
78
|
-
|
|
54
|
+
|
|
79
55
|
export declare function getAgentCapability(agentType: string): AgentCapability;
|
|
80
|
-
|
|
81
|
-
* Normalize a Claude model ID so that dot-separated versions (e.g. `claude-opus-4.6`)
|
|
82
|
-
* match the hyphen-separated form returned by the API (e.g. `claude-opus-4-6`).
|
|
83
|
-
*
|
|
84
|
-
* Safe to call on any string — non-Claude IDs pass through unchanged.
|
|
85
|
-
*/
|
|
56
|
+
|
|
86
57
|
export declare function normalizeModelId(id: string): string;
|
|
87
|
-
//# sourceMappingURL=agentCapabilities.d.ts.map
|
package/dist/agentCommonEnv.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common environment variables for each agent.
|
|
3
|
-
*
|
|
4
|
-
* Only agents that use a single-provider API key are listed here.
|
|
5
|
-
* Multi-provider agents (opencode, hermes, openclaw) configure keys
|
|
6
|
-
* through their own config files, so they are intentionally omitted.
|
|
7
|
-
* Copilot authenticates via OAuth (`gh auth login`), not env vars.
|
|
8
|
-
*/
|
|
9
1
|
import type { AgentType } from './messageMeta.js';
|
|
10
2
|
export interface AgentEnvVarHint {
|
|
11
3
|
readonly key: string;
|
|
12
4
|
readonly placeholder: string;
|
|
13
5
|
}
|
|
14
6
|
export declare const AGENT_COMMON_ENV_VARS: Partial<Record<AgentType, readonly AgentEnvVarHint[]>>;
|
|
15
|
-
//# sourceMappingURL=agentCommonEnv.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-agent install instructions for the web UI.
|
|
3
|
-
*
|
|
4
|
-
* Display-only data — the actual gating logic lives in daemon's registry.
|
|
5
|
-
* Wire only has the strings so the web can render install/upgrade instructions.
|
|
6
|
-
*/
|
|
7
1
|
import type { AgentType } from './messageMeta.js';
|
|
8
2
|
import type { Platform } from './machine.js';
|
|
9
3
|
export interface AgentInstallInfo {
|
|
@@ -12,4 +6,3 @@ export interface AgentInstallInfo {
|
|
|
12
6
|
readonly upgradeUrl: string;
|
|
13
7
|
}
|
|
14
8
|
export declare const AGENT_INSTALL_GUIDE: Readonly<Record<AgentType, AgentInstallInfo>>;
|
|
15
|
-
//# sourceMappingURL=agentInstallGuide.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const RuntimeAgentSchema: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
3
3
|
export type RuntimeAgent = z.infer<typeof RuntimeAgentSchema>;
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
export declare const AgentRuntimeSettingsSchema: z.ZodObject<{
|
|
6
6
|
agent: z.ZodEnum<["claude", "codex", "opencode"]>;
|
|
7
7
|
routeId: z.ZodString;
|
|
@@ -137,4 +137,3 @@ export declare const AgentRuntimeSettingsListSchema: z.ZodArray<z.ZodObject<{
|
|
|
137
137
|
forced: Record<string, unknown>;
|
|
138
138
|
userOverrides: Record<string, unknown>;
|
|
139
139
|
}>, "many">;
|
|
140
|
-
//# sourceMappingURL=agentRuntimeSettings.d.ts.map
|
package/dist/bgTask.d.ts
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
/** Common prefix for every bg-task service envelope. */
|
|
2
1
|
export declare const BG_TASK_PREFIX = "bg-task:";
|
|
3
|
-
|
|
2
|
+
|
|
4
3
|
export type BgTaskAction = 'started' | 'progress' | 'completed' | 'failed' | 'stopped';
|
|
5
|
-
|
|
4
|
+
|
|
6
5
|
export interface ParsedBgTask {
|
|
7
6
|
readonly action: BgTaskAction;
|
|
8
|
-
|
|
7
|
+
|
|
9
8
|
readonly taskId: string;
|
|
10
|
-
|
|
9
|
+
|
|
11
10
|
readonly desc?: string;
|
|
12
|
-
|
|
11
|
+
|
|
13
12
|
readonly summary?: string;
|
|
14
|
-
|
|
13
|
+
|
|
15
14
|
readonly totalTokens?: number;
|
|
16
|
-
|
|
15
|
+
|
|
17
16
|
readonly durationMs?: number;
|
|
18
|
-
|
|
17
|
+
|
|
19
18
|
readonly toolUses?: number;
|
|
20
19
|
}
|
|
21
|
-
|
|
20
|
+
|
|
22
21
|
export interface EncodeBgTaskInput {
|
|
23
22
|
readonly action: BgTaskAction;
|
|
24
|
-
|
|
23
|
+
|
|
25
24
|
readonly taskId: string;
|
|
26
25
|
readonly desc?: string;
|
|
27
26
|
readonly summary?: string;
|
|
@@ -29,19 +28,9 @@ export interface EncodeBgTaskInput {
|
|
|
29
28
|
readonly durationMs?: number;
|
|
30
29
|
readonly toolUses?: number;
|
|
31
30
|
}
|
|
32
|
-
|
|
33
|
-
* Encode a bg-task lifecycle event into its service-envelope text form.
|
|
34
|
-
* taskId is URI-encoded so its (rare) colons never break the fixed-segment parser.
|
|
35
|
-
*/
|
|
31
|
+
|
|
36
32
|
export declare function encodeBgTask(input: EncodeBgTaskInput): string;
|
|
37
|
-
|
|
38
|
-
* Parse a bg-task service-envelope text back into structured fields.
|
|
39
|
-
* Returns null when `text` is not a recognized bg-task line.
|
|
40
|
-
*
|
|
41
|
-
* Pure decoding only — business rules (e.g. "empty progress summary must not
|
|
42
|
-
* overwrite the started desc") stay in the caller.
|
|
43
|
-
*/
|
|
33
|
+
|
|
44
34
|
export declare function parseBgTask(text: string): ParsedBgTask | null;
|
|
45
|
-
|
|
35
|
+
|
|
46
36
|
export declare function isBgTaskLifecycleLine(text: string): boolean;
|
|
47
|
-
//# sourceMappingURL=bgTask.d.ts.map
|
|
@@ -166,7 +166,7 @@ export declare const CheckpointRollbackParamsSchema: z.ZodObject<{
|
|
|
166
166
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
167
167
|
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["code", "conversation", "both"]>>>;
|
|
168
168
|
force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
169
|
-
|
|
169
|
+
|
|
170
170
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
171
171
|
}, "strict", z.ZodTypeAny, {
|
|
172
172
|
mode: "code" | "conversation" | "both";
|
|
@@ -216,4 +216,3 @@ export type FileDiffEntry = z.infer<typeof FileDiffEntrySchema>;
|
|
|
216
216
|
export type CheckpointDiffResult = z.infer<typeof CheckpointDiffResultSchema>;
|
|
217
217
|
export type CheckpointRollbackParams = z.infer<typeof CheckpointRollbackParamsSchema>;
|
|
218
218
|
export type CheckpointRollbackResult = z.infer<typeof CheckpointRollbackResultSchema>;
|
|
219
|
-
//# sourceMappingURL=checkpointSchemas.d.ts.map
|
package/dist/controlLevel.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
* Control depth level for CLI tools.
|
|
4
|
-
*
|
|
5
|
-
* Level 3: Full control — bidirectional ACP, per-tool permissions, resume (Claude Code, OpenCode)
|
|
6
|
-
* Level 2: High control — JSONL + resume + pre-configured permissions (Codex CLI)
|
|
7
|
-
* Level 1: Read-only monitoring — JSONL + no resume + binary permissions (Gemini, Qwen)
|
|
8
|
-
* Level 0: Minimal — plain text + no multi-turn (Aider, not recommended)
|
|
9
|
-
*/
|
|
2
|
+
|
|
10
3
|
export declare const ControlLevel: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<2>, z.ZodLiteral<1>, z.ZodLiteral<0>]>;
|
|
11
4
|
export type ControlLevelType = z.infer<typeof ControlLevel>;
|
|
12
|
-
//# sourceMappingURL=controlLevel.d.ts.map
|
package/dist/edition.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
export declare const EnterpriseGatewayAgentSchema: z.ZodLiteral<"claude">;
|
|
4
4
|
export declare const EnterpriseGatewayProtocolSchema: z.ZodLiteral<"anthropic_messages">;
|
|
5
5
|
export declare const EnterpriseRouteStatusSchema: z.ZodEnum<["draft", "validating", "active", "disabled", "error", "needs-review"]>;
|
|
@@ -212,4 +212,3 @@ export type EnterpriseAgentModelRoute = z.infer<typeof EnterpriseAgentModelRoute
|
|
|
212
212
|
export type CreateEnterpriseUpstreamConnectionBody = z.infer<typeof CreateEnterpriseUpstreamConnectionBodySchema>;
|
|
213
213
|
export type CreateEnterpriseAgentModelRouteBody = z.infer<typeof CreateEnterpriseAgentModelRouteBodySchema>;
|
|
214
214
|
export type EnterpriseRouteValidationResult = z.infer<typeof EnterpriseRouteValidationResultSchema>;
|
|
215
|
-
//# sourceMappingURL=enterpriseGateway.d.ts.map
|