@agentdock/wire 0.0.93 → 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.
Files changed (75) hide show
  1. package/dist/accountLanguage.d.ts +26 -0
  2. package/dist/accountLanguage.js +1 -0
  3. package/dist/activityPreferences.d.ts +0 -2
  4. package/dist/agentCapabilities.d.ts +20 -24
  5. package/dist/agentCapabilities.js +1 -1
  6. package/dist/agentCommonEnv.d.ts +0 -9
  7. package/dist/agentInstallGuide.d.ts +0 -7
  8. package/dist/agentRuntimeSettings.d.ts +139 -0
  9. package/dist/agentRuntimeSettings.js +1 -0
  10. package/dist/bgTask.d.ts +13 -24
  11. package/dist/checkpointSchemas.d.ts +1 -2
  12. package/dist/controlLevel.d.ts +1 -9
  13. package/dist/edition.d.ts +0 -1
  14. package/dist/enterpriseGateway.d.ts +214 -0
  15. package/dist/enterpriseGateway.js +1 -0
  16. package/dist/enterprisePolicy.d.ts +1599 -0
  17. package/dist/enterprisePolicy.js +1 -0
  18. package/dist/enterprisePolicyExports.d.ts +2 -0
  19. package/dist/enterprisePolicyExports.js +1 -0
  20. package/dist/enterpriseRuntime.d.ts +317 -0
  21. package/dist/enterpriseRuntime.js +1 -0
  22. package/dist/envelope.d.ts +63 -60
  23. package/dist/errorMessage.d.ts +0 -1
  24. package/dist/events.d.ts +73 -77
  25. package/dist/events.js +1 -1
  26. package/dist/features.d.ts +19 -30
  27. package/dist/features.js +1 -1
  28. package/dist/feedback.d.ts +21 -22
  29. package/dist/fileWhitelist.d.ts +7 -39
  30. package/dist/gateway.d.ts +1184 -0
  31. package/dist/gateway.js +1 -0
  32. package/dist/goals.d.ts +0 -1
  33. package/dist/handoffBrief.d.ts +13 -0
  34. package/dist/handoffBrief.js +52 -0
  35. package/dist/inboundEvents.d.ts +83 -56
  36. package/dist/inboundEvents.js +1 -1
  37. package/dist/index.d.ts +25 -16
  38. package/dist/index.js +1 -1
  39. package/dist/interactionEvents.d.ts +51 -59
  40. package/dist/legacyProtocol.d.ts +36 -42
  41. package/dist/license.d.ts +36 -37
  42. package/dist/machine.d.ts +54 -53
  43. package/dist/machine.js +1 -1
  44. package/dist/messageMeta.d.ts +20 -20
  45. package/dist/messageMeta.js +1 -1
  46. package/dist/messages.d.ts +338 -223
  47. package/dist/messages.js +1 -1
  48. package/dist/notification.d.ts +2 -3
  49. package/dist/ops.d.ts +9 -27
  50. package/dist/pairing.d.ts +9 -49
  51. package/dist/permissionSubject.d.ts +3 -26
  52. package/dist/protocol.d.ts +0 -6
  53. package/dist/rpc.d.ts +957 -196
  54. package/dist/rpc.js +1 -1
  55. package/dist/scheduledTasks.d.ts +59 -60
  56. package/dist/semver.d.ts +3 -22
  57. package/dist/sessionBtw.d.ts +152 -0
  58. package/dist/sessionBtw.js +1 -0
  59. package/dist/sessionResult.d.ts +21 -27
  60. package/dist/sessionTitle.d.ts +9 -0
  61. package/dist/sessionTitle.js +1 -0
  62. package/dist/socketEvents.d.ts +12 -4
  63. package/dist/socketEvents.js +1 -1
  64. package/dist/sourceMetadata.d.ts +3 -16
  65. package/dist/spawnError.d.ts +7 -14
  66. package/dist/stats.d.ts +99 -68
  67. package/dist/stats.js +1 -1
  68. package/dist/sync.d.ts +285 -51
  69. package/dist/sync.js +1 -1
  70. package/dist/taskResult.d.ts +3 -20
  71. package/dist/telemetry.d.ts +1 -11
  72. package/dist/utils.d.ts +0 -1
  73. package/dist/workItems.d.ts +321 -0
  74. package/dist/workItems.js +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,152 @@
1
+ import { z } from 'zod';
2
+ export declare const SessionBtwStatusSchema: z.ZodEnum<["pending", "succeeded", "failed"]>;
3
+ export declare const SessionBtwErrorCodeSchema: z.ZodEnum<["context-history-unavailable", "context-too-large", "ai-helper-not-enabled", "ai-helper-config-invalid", "ai-helper-dek-unavailable", "authentication-failed", "quota-exceeded", "timeout", "protocol-incompatible", "upstream-failed", "execution-failed", "cancelled", "empty-response"]>;
4
+ export declare const SessionBtwRecordSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ sessionId: z.ZodString;
7
+ operationId: z.ZodString;
8
+ anchorSeq: z.ZodNullable<z.ZodNumber>;
9
+ questionCiphertext: z.ZodString;
10
+ outcomeCiphertext: z.ZodNullable<z.ZodString>;
11
+ status: z.ZodEnum<["pending", "succeeded", "failed"]>;
12
+ createdAt: z.ZodString;
13
+ updatedAt: z.ZodString;
14
+ }, "strict", z.ZodTypeAny, {
15
+ status: "failed" | "pending" | "succeeded";
16
+ sessionId: string;
17
+ id: string;
18
+ createdAt: string;
19
+ updatedAt: string;
20
+ operationId: string;
21
+ anchorSeq: number | null;
22
+ questionCiphertext: string;
23
+ outcomeCiphertext: string | null;
24
+ }, {
25
+ status: "failed" | "pending" | "succeeded";
26
+ sessionId: string;
27
+ id: string;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ operationId: string;
31
+ anchorSeq: number | null;
32
+ questionCiphertext: string;
33
+ outcomeCiphertext: string | null;
34
+ }>;
35
+ export declare const SessionBtwListSchema: z.ZodEffects<z.ZodObject<{
36
+ sessionId: z.ZodString;
37
+ anchorAtOrAfter: z.ZodOptional<z.ZodNumber>;
38
+ anchorAtOrBefore: z.ZodOptional<z.ZodNumber>;
39
+ includeUnanchored: z.ZodOptional<z.ZodBoolean>;
40
+ cursor: z.ZodOptional<z.ZodString>;
41
+ limit: z.ZodDefault<z.ZodNumber>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ sessionId: string;
44
+ limit: number;
45
+ cursor?: string | undefined;
46
+ anchorAtOrAfter?: number | undefined;
47
+ anchorAtOrBefore?: number | undefined;
48
+ includeUnanchored?: boolean | undefined;
49
+ }, {
50
+ sessionId: string;
51
+ limit?: number | undefined;
52
+ cursor?: string | undefined;
53
+ anchorAtOrAfter?: number | undefined;
54
+ anchorAtOrBefore?: number | undefined;
55
+ includeUnanchored?: boolean | undefined;
56
+ }>, {
57
+ sessionId: string;
58
+ limit: number;
59
+ cursor?: string | undefined;
60
+ anchorAtOrAfter?: number | undefined;
61
+ anchorAtOrBefore?: number | undefined;
62
+ includeUnanchored?: boolean | undefined;
63
+ }, {
64
+ sessionId: string;
65
+ limit?: number | undefined;
66
+ cursor?: string | undefined;
67
+ anchorAtOrAfter?: number | undefined;
68
+ anchorAtOrBefore?: number | undefined;
69
+ includeUnanchored?: boolean | undefined;
70
+ }>;
71
+ export declare const SessionBtwCreateSchema: z.ZodObject<{
72
+ sessionId: z.ZodString;
73
+ operationId: z.ZodString;
74
+ anchorSeq: z.ZodNullable<z.ZodNumber>;
75
+ questionCiphertext: z.ZodString;
76
+ }, "strict", z.ZodTypeAny, {
77
+ sessionId: string;
78
+ operationId: string;
79
+ anchorSeq: number | null;
80
+ questionCiphertext: string;
81
+ }, {
82
+ sessionId: string;
83
+ operationId: string;
84
+ anchorSeq: number | null;
85
+ questionCiphertext: string;
86
+ }>;
87
+ export declare const SessionBtwCompleteSchema: z.ZodObject<{
88
+ id: z.ZodString;
89
+ sessionId: z.ZodString;
90
+ operationId: z.ZodString;
91
+ status: z.ZodEnum<["succeeded", "failed"]>;
92
+ outcomeCiphertext: z.ZodString;
93
+ }, "strict", z.ZodTypeAny, {
94
+ status: "failed" | "succeeded";
95
+ sessionId: string;
96
+ id: string;
97
+ operationId: string;
98
+ outcomeCiphertext: string;
99
+ }, {
100
+ status: "failed" | "succeeded";
101
+ sessionId: string;
102
+ id: string;
103
+ operationId: string;
104
+ outcomeCiphertext: string;
105
+ }>;
106
+ export declare const SessionBtwDeleteSchema: z.ZodObject<{
107
+ id: z.ZodString;
108
+ sessionId: z.ZodString;
109
+ }, "strict", z.ZodTypeAny, {
110
+ sessionId: string;
111
+ id: string;
112
+ }, {
113
+ sessionId: string;
114
+ id: string;
115
+ }>;
116
+ export declare const SessionBtwQuestionSchema: z.ZodObject<{
117
+ format: z.ZodLiteral<1>;
118
+ question: z.ZodString;
119
+ }, "strict", z.ZodTypeAny, {
120
+ question: string;
121
+ format: 1;
122
+ }, {
123
+ question: string;
124
+ format: 1;
125
+ }>;
126
+ export declare const SessionBtwOutcomeSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
127
+ format: z.ZodLiteral<1>;
128
+ kind: z.ZodLiteral<"success">;
129
+ text: z.ZodString;
130
+ }, "strict", z.ZodTypeAny, {
131
+ text: string;
132
+ format: 1;
133
+ kind: "success";
134
+ }, {
135
+ text: string;
136
+ format: 1;
137
+ kind: "success";
138
+ }>, z.ZodObject<{
139
+ format: z.ZodLiteral<1>;
140
+ kind: z.ZodLiteral<"error">;
141
+ code: z.ZodEnum<["context-history-unavailable", "context-too-large", "ai-helper-not-enabled", "ai-helper-config-invalid", "ai-helper-dek-unavailable", "authentication-failed", "quota-exceeded", "timeout", "protocol-incompatible", "upstream-failed", "execution-failed", "cancelled", "empty-response"]>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ code: "cancelled" | "timeout" | "context-history-unavailable" | "context-too-large" | "ai-helper-not-enabled" | "ai-helper-config-invalid" | "ai-helper-dek-unavailable" | "authentication-failed" | "quota-exceeded" | "protocol-incompatible" | "upstream-failed" | "execution-failed" | "empty-response";
144
+ format: 1;
145
+ kind: "error";
146
+ }, {
147
+ code: "cancelled" | "timeout" | "context-history-unavailable" | "context-too-large" | "ai-helper-not-enabled" | "ai-helper-config-invalid" | "ai-helper-dek-unavailable" | "authentication-failed" | "quota-exceeded" | "protocol-incompatible" | "upstream-failed" | "execution-failed" | "empty-response";
148
+ format: 1;
149
+ kind: "error";
150
+ }>]>;
151
+ export type SessionBtwRecord = z.infer<typeof SessionBtwRecordSchema>;
152
+ export type SessionBtwErrorCode = z.infer<typeof SessionBtwErrorCodeSchema>;
@@ -0,0 +1 @@
1
+ "use strict";import{z as e}from"zod";export const SessionBtwStatusSchema=e.enum(["pending","succeeded","failed"]),SessionBtwErrorCodeSchema=e.enum(["context-history-unavailable","context-too-large","ai-helper-not-enabled","ai-helper-config-invalid","ai-helper-dek-unavailable","authentication-failed","quota-exceeded","timeout","protocol-incompatible","upstream-failed","execution-failed","cancelled","empty-response"]),SessionBtwRecordSchema=e.object({id:e.string().min(1),sessionId:e.string().min(1).max(128),operationId:e.string().uuid(),anchorSeq:e.number().int().nonnegative().nullable(),questionCiphertext:e.string().min(1).max(1e5),outcomeCiphertext:e.string().min(1).max(1e5).nullable(),status:SessionBtwStatusSchema,createdAt:e.string().datetime(),updatedAt:e.string().datetime()}).strict(),SessionBtwListSchema=e.object({sessionId:e.string().min(1).max(128),anchorAtOrAfter:e.number().int().nonnegative().optional(),anchorAtOrBefore:e.number().int().nonnegative().optional(),includeUnanchored:e.boolean().optional(),cursor:e.string().min(1).max(256).optional(),limit:e.number().int().min(1).max(100).default(100)}).strict().refine(t=>t.anchorAtOrAfter===void 0||t.anchorAtOrBefore===void 0||t.anchorAtOrAfter<=t.anchorAtOrBefore,{message:"anchor range is invalid"}),SessionBtwCreateSchema=e.object({sessionId:e.string().min(1).max(128),operationId:e.string().uuid(),anchorSeq:e.number().int().nonnegative().nullable(),questionCiphertext:e.string().min(1).max(1e5)}).strict(),SessionBtwCompleteSchema=e.object({id:e.string().min(1),sessionId:e.string().min(1).max(128),operationId:e.string().uuid(),status:e.enum(["succeeded","failed"]),outcomeCiphertext:e.string().min(1).max(1e5)}).strict(),SessionBtwDeleteSchema=e.object({id:e.string().min(1),sessionId:e.string().min(1).max(128)}).strict(),SessionBtwQuestionSchema=e.object({format:e.literal(1),question:e.string().min(1).max(2e3)}).strict(),SessionBtwOutcomeSchema=e.discriminatedUnion("kind",[e.object({format:e.literal(1),kind:e.literal("success"),text:e.string().min(1).max(5e4)}).strict(),e.object({format:e.literal(1),kind:e.literal("error"),code:SessionBtwErrorCodeSchema}).strict()]);
@@ -1,54 +1,48 @@
1
- /**
2
- * Session result schema — data from Claude's `result` event.
3
- *
4
- * Emitted once per conversation turn, contains token usage, cost, and timing.
5
- */
6
1
  import { z } from 'zod';
7
2
  export declare const SessionResultSchema: z.ZodObject<{
8
- /** Total cost in USD for this turn. */
3
+
9
4
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
10
- /** Input token count. */
5
+
11
6
  inputTokens: z.ZodOptional<z.ZodNumber>;
12
- /** Output token count. */
7
+
13
8
  outputTokens: z.ZodOptional<z.ZodNumber>;
14
- /** Duration in milliseconds. */
9
+
15
10
  durationMs: z.ZodOptional<z.ZodNumber>;
16
- /** Claude-internal session ID. */
11
+
17
12
  cliSessionId: z.ZodOptional<z.ZodString>;
18
- /** Whether the result represents an error. */
13
+
19
14
  isError: z.ZodOptional<z.ZodBoolean>;
20
- /** Number of conversation turns. */
15
+
21
16
  numTurns: z.ZodOptional<z.ZodNumber>;
22
17
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
23
- /** Total cost in USD for this turn. */
18
+
24
19
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
25
- /** Input token count. */
20
+
26
21
  inputTokens: z.ZodOptional<z.ZodNumber>;
27
- /** Output token count. */
22
+
28
23
  outputTokens: z.ZodOptional<z.ZodNumber>;
29
- /** Duration in milliseconds. */
24
+
30
25
  durationMs: z.ZodOptional<z.ZodNumber>;
31
- /** Claude-internal session ID. */
26
+
32
27
  cliSessionId: z.ZodOptional<z.ZodString>;
33
- /** Whether the result represents an error. */
28
+
34
29
  isError: z.ZodOptional<z.ZodBoolean>;
35
- /** Number of conversation turns. */
30
+
36
31
  numTurns: z.ZodOptional<z.ZodNumber>;
37
32
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
38
- /** Total cost in USD for this turn. */
33
+
39
34
  totalCostUsd: z.ZodOptional<z.ZodNumber>;
40
- /** Input token count. */
35
+
41
36
  inputTokens: z.ZodOptional<z.ZodNumber>;
42
- /** Output token count. */
37
+
43
38
  outputTokens: z.ZodOptional<z.ZodNumber>;
44
- /** Duration in milliseconds. */
39
+
45
40
  durationMs: z.ZodOptional<z.ZodNumber>;
46
- /** Claude-internal session ID. */
41
+
47
42
  cliSessionId: z.ZodOptional<z.ZodString>;
48
- /** Whether the result represents an error. */
43
+
49
44
  isError: z.ZodOptional<z.ZodBoolean>;
50
- /** Number of conversation turns. */
45
+
51
46
  numTurns: z.ZodOptional<z.ZodNumber>;
52
47
  }, z.ZodTypeAny, "passthrough">>;
53
48
  export type SessionResult = z.infer<typeof SessionResultSchema>;
54
- //# sourceMappingURL=sessionResult.d.ts.map
@@ -0,0 +1,9 @@
1
+ export declare function stripSessionTitleShortId(name: string): string;
2
+
3
+ export declare function parseSessionTitleFromTag(tag: string): string;
4
+
5
+ export declare function resolveSessionTitle(opts: {
6
+ displayName?: string | null;
7
+ metadataTitle?: string | null;
8
+ tag: string;
9
+ }): string | null;
@@ -0,0 +1 @@
1
+ "use strict";export function stripSessionTitleShortId(e){return/^[0-9a-f]{8}$/i.test(e)?"":e.replace(/-[0-9a-f]{8}$/i,"")}export function parseSessionTitleFromTag(e){const t=e.split(":"),r=t.length>=3?t.slice(2).join(":"):t[t.length-1]??"";return stripSessionTitleShortId(r)}export function resolveSessionTitle(e){return e.displayName?e.displayName:e.metadataTitle?e.metadataTitle:parseSessionTitleFromTag(e.tag)||null}
@@ -13,6 +13,7 @@ export declare const SOCKET_EVENTS: Readonly<{
13
13
  readonly ENTERPRISE_ALERT: "enterprise-alert";
14
14
  readonly ACTIVITY_PREFERENCES_CHANGED: "activity-preferences-changed";
15
15
  readonly IMPROVEMENT_PREFERENCES_CHANGED: "improvement-preferences-changed";
16
+ readonly ACCOUNT_LANGUAGE_CHANGED: "account-language-changed";
16
17
  readonly HISTORY_SESSION_BLOCKED: "history-session-blocked";
17
18
  readonly SESSION_CREATE: "session-create";
18
19
  readonly LIST_SESSIONS: "list-sessions";
@@ -20,21 +21,29 @@ export declare const SOCKET_EVENTS: Readonly<{
20
21
  readonly UPDATE_STATE: "update-state";
21
22
  readonly CONTEXT_USAGE_UPDATE: "context-usage-update";
22
23
  readonly SESSION_ALIVE: "session-alive";
23
- /** Read the short-lived daemon-reported state for one session after a web refresh. */
24
+
24
25
  readonly GET_SESSION_RUNTIME_STATUS: "get-session-runtime-status";
25
- /** Side-effect-free ownership check used before spawning a resumed CLI. */
26
+
26
27
  readonly SESSION_RESUME_CHECK: "session-resume-check";
27
- /** Explicit resume takeover: stop the old owner and reserve the replacement claim. */
28
+
28
29
  readonly SESSION_RESUME_TAKEOVER: "session-resume-takeover";
29
30
  readonly LIVENESS_HEARTBEAT: "liveness-heartbeat";
30
31
  readonly PROVISION_SESSION_DEK: "provision-session-dek";
31
32
  readonly RENAME_SESSION: "rename-session";
33
+ readonly SESSION_CONTEXT_RESET: "session-context-reset";
34
+ readonly CLAIM_AUTO_SESSION_TITLE: "claim-auto-session-title";
32
35
  readonly SESSION_END: "session-end";
36
+
37
+ readonly SESSION_TERMINATE: "session-terminate";
33
38
  readonly SESSION_DELETE: "delete-session";
34
39
  readonly SESSION_SUMMARY: "session-summary";
35
40
  readonly GET_MESSAGES: "get-messages";
36
41
  readonly MESSAGE: "message";
37
42
  readonly BATCH_MESSAGE: "batch-message";
43
+ readonly SESSION_BTW_LIST: "session-btw-list";
44
+ readonly SESSION_BTW_CREATE: "session-btw-create";
45
+ readonly SESSION_BTW_COMPLETE: "session-btw-complete";
46
+ readonly SESSION_BTW_DELETE: "session-btw-delete";
38
47
  readonly RPC_REGISTER: "rpc-register";
39
48
  readonly RPC_UNREGISTER: "rpc-unregister";
40
49
  readonly RPC_CALL: "rpc-call";
@@ -51,4 +60,3 @@ export declare const SOCKET_EVENTS: Readonly<{
51
60
  readonly GET_HISTORY_BLOCKLIST: "get-history-blocklist";
52
61
  }>;
53
62
  export type SocketEventName = (typeof SOCKET_EVENTS)[keyof typeof SOCKET_EVENTS];
54
- //# sourceMappingURL=socketEvents.d.ts.map
@@ -1 +1 @@
1
- "use strict";export const SOCKET_EVENTS=Object.freeze({SESSION_STATUS:"session-status",PERMISSION_RESOLVED:"permission-resolved",CORE_UPDATE:"core-update",USAGE_REPORT:"usage-report",RPC_REQUEST:"rpc-request",HISTORY_SYNC_RESULT:"history-sync-result",BACKFILL_PROGRESS:"backfill-progress",MACHINE_STATUS_UPDATE:"machine-status-update",TELEMETRY_REPORT:"telemetry-report",UPDATE:"update",EPHEMERAL:"ephemeral",ENTERPRISE_ALERT:"enterprise-alert",ACTIVITY_PREFERENCES_CHANGED:"activity-preferences-changed",IMPROVEMENT_PREFERENCES_CHANGED:"improvement-preferences-changed",HISTORY_SESSION_BLOCKED:"history-session-blocked",SESSION_CREATE:"session-create",LIST_SESSIONS:"list-sessions",UPDATE_METADATA:"update-metadata",UPDATE_STATE:"update-state",CONTEXT_USAGE_UPDATE:"context-usage-update",SESSION_ALIVE:"session-alive",GET_SESSION_RUNTIME_STATUS:"get-session-runtime-status",SESSION_RESUME_CHECK:"session-resume-check",SESSION_RESUME_TAKEOVER:"session-resume-takeover",LIVENESS_HEARTBEAT:"liveness-heartbeat",PROVISION_SESSION_DEK:"provision-session-dek",RENAME_SESSION:"rename-session",SESSION_END:"session-end",SESSION_DELETE:"delete-session",SESSION_SUMMARY:"session-summary",GET_MESSAGES:"get-messages",MESSAGE:"message",BATCH_MESSAGE:"batch-message",RPC_REGISTER:"rpc-register",RPC_UNREGISTER:"rpc-unregister",RPC_CALL:"rpc-call",CLIENT_VISIBILITY:"client-visibility",MACHINE_REGISTER:"machine-register",MACHINE_HEARTBEAT:"machine-heartbeat",AGENT_CACHE_UPDATED:"agent-cache-updated",FILE_RELAY_CHUNK:"file-relay-chunk",FILE_RELAY_ACK:"file-relay-ack",FILE_RELAY_COMPLETE:"file-relay-complete",GET_KNOWN_CLAUDE_SESSIONS:"get-known-claude-sessions",REGISTER_HISTORY_SESSIONS:"register-history-sessions",UPDATE_SYNC_STATUS:"update-sync-status",GET_HISTORY_BLOCKLIST:"get-history-blocklist"});
1
+ "use strict";export const SOCKET_EVENTS=Object.freeze({SESSION_STATUS:"session-status",PERMISSION_RESOLVED:"permission-resolved",CORE_UPDATE:"core-update",USAGE_REPORT:"usage-report",RPC_REQUEST:"rpc-request",HISTORY_SYNC_RESULT:"history-sync-result",BACKFILL_PROGRESS:"backfill-progress",MACHINE_STATUS_UPDATE:"machine-status-update",TELEMETRY_REPORT:"telemetry-report",UPDATE:"update",EPHEMERAL:"ephemeral",ENTERPRISE_ALERT:"enterprise-alert",ACTIVITY_PREFERENCES_CHANGED:"activity-preferences-changed",IMPROVEMENT_PREFERENCES_CHANGED:"improvement-preferences-changed",ACCOUNT_LANGUAGE_CHANGED:"account-language-changed",HISTORY_SESSION_BLOCKED:"history-session-blocked",SESSION_CREATE:"session-create",LIST_SESSIONS:"list-sessions",UPDATE_METADATA:"update-metadata",UPDATE_STATE:"update-state",CONTEXT_USAGE_UPDATE:"context-usage-update",SESSION_ALIVE:"session-alive",GET_SESSION_RUNTIME_STATUS:"get-session-runtime-status",SESSION_RESUME_CHECK:"session-resume-check",SESSION_RESUME_TAKEOVER:"session-resume-takeover",LIVENESS_HEARTBEAT:"liveness-heartbeat",PROVISION_SESSION_DEK:"provision-session-dek",RENAME_SESSION:"rename-session",SESSION_CONTEXT_RESET:"session-context-reset",CLAIM_AUTO_SESSION_TITLE:"claim-auto-session-title",SESSION_END:"session-end",SESSION_TERMINATE:"session-terminate",SESSION_DELETE:"delete-session",SESSION_SUMMARY:"session-summary",GET_MESSAGES:"get-messages",MESSAGE:"message",BATCH_MESSAGE:"batch-message",SESSION_BTW_LIST:"session-btw-list",SESSION_BTW_CREATE:"session-btw-create",SESSION_BTW_COMPLETE:"session-btw-complete",SESSION_BTW_DELETE:"session-btw-delete",RPC_REGISTER:"rpc-register",RPC_UNREGISTER:"rpc-unregister",RPC_CALL:"rpc-call",CLIENT_VISIBILITY:"client-visibility",MACHINE_REGISTER:"machine-register",MACHINE_HEARTBEAT:"machine-heartbeat",AGENT_CACHE_UPDATED:"agent-cache-updated",FILE_RELAY_CHUNK:"file-relay-chunk",FILE_RELAY_ACK:"file-relay-ack",FILE_RELAY_COMPLETE:"file-relay-complete",GET_KNOWN_CLAUDE_SESSIONS:"get-known-claude-sessions",REGISTER_HISTORY_SESSIONS:"register-history-sessions",UPDATE_SYNC_STATUS:"update-sync-status",GET_HISTORY_BLOCKLIST:"get-history-blocklist"});
@@ -1,17 +1,5 @@
1
1
  import { z } from 'zod';
2
- /**
3
- * Acquisition-source metadata persisted on account creation.
4
- *
5
- * Written from a PUBLIC, UNAUTHENTICATED endpoint (`POST /v1/auth/verify`),
6
- * so the client-supplied portion is fully attacker-controlled. This schema is
7
- * the trust boundary: it whitelists exactly the attribution fields we store,
8
- * caps each value's length, and DROPS everything else — including prototype-
9
- * pollution keys (`__proto__`, `constructor`) and arbitrary attacker payload.
10
- *
11
- * `.strip()` is intentional and safe here: unknown keys are untrusted and must
12
- * be discarded, not preserved (.passthrough) nor rejected (.strict) — a
13
- * malformed metadata bag should never fail an otherwise-valid login.
14
- */
2
+
15
3
  export declare const SourceMetadataSchema: z.ZodObject<{
16
4
  userAgent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17
5
  referer: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -22,8 +10,8 @@ export declare const SourceMetadataSchema: z.ZodObject<{
22
10
  utmTerm: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
23
11
  utmContent: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
24
12
  }, "strip", z.ZodTypeAny, {
25
- userAgent?: string | null | undefined;
26
13
  language?: string | null | undefined;
14
+ userAgent?: string | null | undefined;
27
15
  referer?: string | null | undefined;
28
16
  utmSource?: string | null | undefined;
29
17
  utmMedium?: string | null | undefined;
@@ -31,8 +19,8 @@ export declare const SourceMetadataSchema: z.ZodObject<{
31
19
  utmTerm?: string | null | undefined;
32
20
  utmContent?: string | null | undefined;
33
21
  }, {
34
- userAgent?: unknown;
35
22
  language?: unknown;
23
+ userAgent?: unknown;
36
24
  referer?: unknown;
37
25
  utmSource?: unknown;
38
26
  utmMedium?: unknown;
@@ -41,4 +29,3 @@ export declare const SourceMetadataSchema: z.ZodObject<{
41
29
  utmContent?: unknown;
42
30
  }>;
43
31
  export type SourceMetadata = z.infer<typeof SourceMetadataSchema>;
44
- //# sourceMappingURL=sourceMetadata.d.ts.map
@@ -1,17 +1,11 @@
1
- /**
2
- * Structured spawn errors for agent CLI processes.
3
- *
4
- * Replaces opaque stderr dumps with actionable, machine-readable errors.
5
- * Lives in wire so the web UI can render structured error cards.
6
- */
7
1
  import { z } from 'zod';
8
2
  export declare const SpawnErrorCodeSchema: z.ZodEnum<["agent-not-found", "agent-version-too-old", "agent-spawn-failed", "agent-spawn-timeout"]>;
9
3
  export type SpawnErrorCode = z.infer<typeof SpawnErrorCodeSchema>;
10
4
  export declare const SpawnErrorSchema: z.ZodObject<{
11
5
  code: z.ZodEnum<["agent-not-found", "agent-version-too-old", "agent-spawn-failed", "agent-spawn-timeout"]>;
12
- /** User-facing message, e.g. "Claude CLI not found". */
6
+
13
7
  message: z.ZodString;
14
- /** Actionable detail, e.g. "Install: npm i -g @anthropic-ai/claude-code". */
8
+
15
9
  detail: z.ZodString;
16
10
  agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
17
11
  platform: z.ZodEnum<["darwin", "linux", "win32"]>;
@@ -19,9 +13,9 @@ export declare const SpawnErrorSchema: z.ZodObject<{
19
13
  minVersion: z.ZodOptional<z.ZodString>;
20
14
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
21
15
  code: z.ZodEnum<["agent-not-found", "agent-version-too-old", "agent-spawn-failed", "agent-spawn-timeout"]>;
22
- /** User-facing message, e.g. "Claude CLI not found". */
16
+
23
17
  message: z.ZodString;
24
- /** Actionable detail, e.g. "Install: npm i -g @anthropic-ai/claude-code". */
18
+
25
19
  detail: z.ZodString;
26
20
  agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
27
21
  platform: z.ZodEnum<["darwin", "linux", "win32"]>;
@@ -29,9 +23,9 @@ export declare const SpawnErrorSchema: z.ZodObject<{
29
23
  minVersion: z.ZodOptional<z.ZodString>;
30
24
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
31
25
  code: z.ZodEnum<["agent-not-found", "agent-version-too-old", "agent-spawn-failed", "agent-spawn-timeout"]>;
32
- /** User-facing message, e.g. "Claude CLI not found". */
26
+
33
27
  message: z.ZodString;
34
- /** Actionable detail, e.g. "Install: npm i -g @anthropic-ai/claude-code". */
28
+
35
29
  detail: z.ZodString;
36
30
  agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
37
31
  platform: z.ZodEnum<["darwin", "linux", "win32"]>;
@@ -39,6 +33,5 @@ export declare const SpawnErrorSchema: z.ZodObject<{
39
33
  minVersion: z.ZodOptional<z.ZodString>;
40
34
  }, z.ZodTypeAny, "passthrough">>;
41
35
  export type SpawnError = z.infer<typeof SpawnErrorSchema>;
42
- /** Create a SpawnError object. */
36
+
43
37
  export declare function createSpawnError(fields: SpawnError): SpawnError;
44
- //# sourceMappingURL=spawnError.d.ts.map