@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
package/dist/license.d.ts CHANGED
@@ -8,17 +8,17 @@ export declare const EnterpriseLicenseSchema: z.ZodObject<{
8
8
  maxUsers: z.ZodNumber;
9
9
  suffix: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
- licensee: string;
12
- expiresAt: string;
13
- issuedAt: string;
14
11
  edition: "enterprise";
12
+ issuedAt: string;
13
+ expiresAt: string;
14
+ licensee: string;
15
15
  maxUsers: number;
16
16
  suffix: string;
17
17
  }, {
18
- licensee: string;
19
- expiresAt: string;
20
- issuedAt: string;
21
18
  edition: "enterprise";
19
+ issuedAt: string;
20
+ expiresAt: string;
21
+ licensee: string;
22
22
  maxUsers: number;
23
23
  suffix: string;
24
24
  }>;
@@ -30,16 +30,16 @@ export declare const PrivateLicenseSchema: z.ZodObject<{
30
30
  edition: z.ZodLiteral<"personal">;
31
31
  domain: z.ZodString;
32
32
  }, "strip", z.ZodTypeAny, {
33
- licensee: string;
34
- expiresAt: string;
35
- issuedAt: string;
36
33
  edition: "personal";
34
+ issuedAt: string;
35
+ expiresAt: string;
36
+ licensee: string;
37
37
  domain: string;
38
38
  }, {
39
- licensee: string;
40
- expiresAt: string;
41
- issuedAt: string;
42
39
  edition: "personal";
40
+ issuedAt: string;
41
+ expiresAt: string;
42
+ licensee: string;
43
43
  domain: string;
44
44
  }>;
45
45
  export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z.ZodObject<{
@@ -51,17 +51,17 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
51
51
  maxUsers: z.ZodNumber;
52
52
  suffix: z.ZodString;
53
53
  }, "strip", z.ZodTypeAny, {
54
- licensee: string;
55
- expiresAt: string;
56
- issuedAt: string;
57
54
  edition: "enterprise";
55
+ issuedAt: string;
56
+ expiresAt: string;
57
+ licensee: string;
58
58
  maxUsers: number;
59
59
  suffix: string;
60
60
  }, {
61
- licensee: string;
62
- expiresAt: string;
63
- issuedAt: string;
64
61
  edition: "enterprise";
62
+ issuedAt: string;
63
+ expiresAt: string;
64
+ licensee: string;
65
65
  maxUsers: number;
66
66
  suffix: string;
67
67
  }>, z.ZodObject<{
@@ -72,16 +72,16 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
72
72
  edition: z.ZodLiteral<"personal">;
73
73
  domain: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- licensee: string;
76
- expiresAt: string;
77
- issuedAt: string;
78
75
  edition: "personal";
76
+ issuedAt: string;
77
+ expiresAt: string;
78
+ licensee: string;
79
79
  domain: string;
80
80
  }, {
81
- licensee: string;
82
- expiresAt: string;
83
- issuedAt: string;
84
81
  edition: "personal";
82
+ issuedAt: string;
83
+ expiresAt: string;
84
+ licensee: string;
85
85
  domain: string;
86
86
  }>]>;
87
87
  export type LicensePayload = z.infer<typeof LicensePayloadSchema>;
@@ -98,18 +98,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
98
98
  } & {
99
99
  signature: z.ZodString;
100
100
  }, "strip", z.ZodTypeAny, {
101
- licensee: string;
102
- expiresAt: string;
103
- issuedAt: string;
104
101
  edition: "enterprise";
102
+ issuedAt: string;
103
+ expiresAt: string;
104
+ licensee: string;
105
105
  maxUsers: number;
106
106
  suffix: string;
107
107
  signature: string;
108
108
  }, {
109
- licensee: string;
110
- expiresAt: string;
111
- issuedAt: string;
112
109
  edition: "enterprise";
110
+ issuedAt: string;
111
+ expiresAt: string;
112
+ licensee: string;
113
113
  maxUsers: number;
114
114
  suffix: string;
115
115
  signature: string;
@@ -123,19 +123,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
123
123
  } & {
124
124
  signature: z.ZodString;
125
125
  }, "strip", z.ZodTypeAny, {
126
- licensee: string;
127
- expiresAt: string;
128
- issuedAt: string;
129
126
  edition: "personal";
127
+ issuedAt: string;
128
+ expiresAt: string;
129
+ licensee: string;
130
130
  domain: string;
131
131
  signature: string;
132
132
  }, {
133
- licensee: string;
134
- expiresAt: string;
135
- issuedAt: string;
136
133
  edition: "personal";
134
+ issuedAt: string;
135
+ expiresAt: string;
136
+ licensee: string;
137
137
  domain: string;
138
138
  signature: string;
139
139
  }>]>;
140
140
  export type LicenseFile = z.infer<typeof LicenseFileSchema>;
141
- //# sourceMappingURL=license.d.ts.map
package/dist/machine.d.ts CHANGED
@@ -1,10 +1,3 @@
1
- /**
2
- * Machine and session status schemas for Dashboard & Machine Management.
3
- *
4
- * MachineSummary — device info returned by GET /v1/machines.
5
- * SessionStatus — real-time session state indicator.
6
- * Platform — OS platform enum matching Node's process.platform.
7
- */
8
1
  import { z } from 'zod';
9
2
  export declare const PlatformSchema: z.ZodEnum<["darwin", "linux", "win32"]>;
10
3
  export type Platform = z.infer<typeof PlatformSchema>;
@@ -20,35 +13,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
20
13
  active: z.ZodBoolean;
21
14
  activeAt: z.ZodNumber;
22
15
  createdAt: z.ZodNumber;
23
- /** Whether this machine has an active terminal-server tunnel. */
16
+
24
17
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
25
- /** Number of active sessions on this machine. */
18
+
26
19
  activeSessions: z.ZodOptional<z.ZodNumber>;
27
- /** Total number of sessions on this machine. */
20
+
28
21
  totalSessions: z.ZodOptional<z.ZodNumber>;
29
- /** Agent types available on this machine (persisted on each daemon connect). */
22
+
30
23
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
24
+
32
25
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
- /** RPC methods this machine's daemon has registered (RFC-035). */
26
+
34
27
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
28
+
36
29
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
37
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
30
+
38
31
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
39
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
32
+
40
33
  upgradeError: z.ZodOptional<z.ZodString>;
41
- /** True when this machine has been replaced by a new one (container rebuild). */
34
+
42
35
  superseded: z.ZodOptional<z.ZodBoolean>;
43
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
36
+
44
37
  derivationVersion: z.ZodOptional<z.ZodNumber>;
45
- /** Whether the user has enabled automatic daemon upgrades when idle. */
38
+
46
39
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
47
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
40
+
48
41
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
49
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
42
+
50
43
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
51
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
44
+
52
45
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
53
46
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
54
47
  id: z.ZodString;
@@ -60,35 +53,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
60
53
  active: z.ZodBoolean;
61
54
  activeAt: z.ZodNumber;
62
55
  createdAt: z.ZodNumber;
63
- /** Whether this machine has an active terminal-server tunnel. */
56
+
64
57
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
65
- /** Number of active sessions on this machine. */
58
+
66
59
  activeSessions: z.ZodOptional<z.ZodNumber>;
67
- /** Total number of sessions on this machine. */
60
+
68
61
  totalSessions: z.ZodOptional<z.ZodNumber>;
69
- /** Agent types available on this machine (persisted on each daemon connect). */
62
+
70
63
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
64
+
72
65
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
73
- /** RPC methods this machine's daemon has registered (RFC-035). */
66
+
74
67
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
68
+
76
69
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
77
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
70
+
78
71
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
79
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
72
+
80
73
  upgradeError: z.ZodOptional<z.ZodString>;
81
- /** True when this machine has been replaced by a new one (container rebuild). */
74
+
82
75
  superseded: z.ZodOptional<z.ZodBoolean>;
83
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
76
+
84
77
  derivationVersion: z.ZodOptional<z.ZodNumber>;
85
- /** Whether the user has enabled automatic daemon upgrades when idle. */
78
+
86
79
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
87
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
80
+
88
81
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
89
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
82
+
90
83
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
91
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
84
+
92
85
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
93
86
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
87
  id: z.ZodString;
@@ -100,41 +93,43 @@ export declare const MachineSummarySchema: z.ZodObject<{
100
93
  active: z.ZodBoolean;
101
94
  activeAt: z.ZodNumber;
102
95
  createdAt: z.ZodNumber;
103
- /** Whether this machine has an active terminal-server tunnel. */
96
+
104
97
  hasTerminal: z.ZodOptional<z.ZodBoolean>;
105
- /** Number of active sessions on this machine. */
98
+
106
99
  activeSessions: z.ZodOptional<z.ZodNumber>;
107
- /** Total number of sessions on this machine. */
100
+
108
101
  totalSessions: z.ZodOptional<z.ZodNumber>;
109
- /** Agent types available on this machine (persisted on each daemon connect). */
102
+
110
103
  availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
- /** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
104
+
112
105
  agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
113
- /** RPC methods this machine's daemon has registered (RFC-035). */
106
+
114
107
  supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
- /** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
108
+
116
109
  disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
117
- /** Current upgrade state reported by the daemon (RFC-042). 'ready' = downloaded, swap pending. */
110
+
118
111
  upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
119
- /** Error message when upgradeStatus is 'failed' (RFC-042). */
112
+
120
113
  upgradeError: z.ZodOptional<z.ZodString>;
121
- /** True when this machine has been replaced by a new one (container rebuild). */
114
+
122
115
  superseded: z.ZodOptional<z.ZodBoolean>;
123
- /** Content derivation version: 0=Happy EnCoder (legacy), 1=CCPark EnCoder. */
116
+
124
117
  derivationVersion: z.ZodOptional<z.ZodNumber>;
125
- /** Whether the user has enabled automatic daemon upgrades when idle. */
118
+
126
119
  autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
127
- /** Whether this machine has a Feishu webhook configured (RFC-067). */
120
+
128
121
  notifyFeishu: z.ZodOptional<z.ZodBoolean>;
129
- /** Whether this machine has a DingTalk webhook configured (RFC-067). */
122
+
130
123
  notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
131
- /** Last daemon heartbeat timestamp (epoch ms). Updated every 30s while connected. */
124
+
132
125
  lastHeartbeat: z.ZodOptional<z.ZodNumber>;
133
126
  }, z.ZodTypeAny, "passthrough">>;
134
127
  export type MachineSummary = z.infer<typeof MachineSummarySchema>;
135
128
  export declare const MachineRegisterResultSchema: z.ZodObject<{
136
129
  ok: z.ZodBoolean;
137
130
  error: z.ZodOptional<z.ZodString>;
131
+
132
+ accountId: z.ZodOptional<z.ZodString>;
138
133
  latestVersion: z.ZodOptional<z.ZodString>;
139
134
  labsSettings: z.ZodOptional<z.ZodObject<{
140
135
  historySessionSync: z.ZodDefault<z.ZodBoolean>;
@@ -143,9 +138,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
143
138
  }, {
144
139
  historySessionSync?: boolean | undefined;
145
140
  }>>;
141
+ preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
146
142
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
147
143
  ok: z.ZodBoolean;
148
144
  error: z.ZodOptional<z.ZodString>;
145
+
146
+ accountId: z.ZodOptional<z.ZodString>;
149
147
  latestVersion: z.ZodOptional<z.ZodString>;
150
148
  labsSettings: z.ZodOptional<z.ZodObject<{
151
149
  historySessionSync: z.ZodDefault<z.ZodBoolean>;
@@ -154,9 +152,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
154
152
  }, {
155
153
  historySessionSync?: boolean | undefined;
156
154
  }>>;
155
+ preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
157
156
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
158
157
  ok: z.ZodBoolean;
159
158
  error: z.ZodOptional<z.ZodString>;
159
+
160
+ accountId: z.ZodOptional<z.ZodString>;
160
161
  latestVersion: z.ZodOptional<z.ZodString>;
161
162
  labsSettings: z.ZodOptional<z.ZodObject<{
162
163
  historySessionSync: z.ZodDefault<z.ZodBoolean>;
@@ -165,6 +166,7 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
165
166
  }, {
166
167
  historySessionSync?: boolean | undefined;
167
168
  }>>;
169
+ preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
168
170
  }, z.ZodTypeAny, "passthrough">>;
169
171
  export type MachineRegisterResult = z.infer<typeof MachineRegisterResultSchema>;
170
172
  export declare const SetDefaultMachineBodySchema: z.ZodObject<{
@@ -175,4 +177,3 @@ export declare const SetDefaultMachineBodySchema: z.ZodObject<{
175
177
  machineId: string | null;
176
178
  }>;
177
179
  export type SetDefaultMachineBody = z.infer<typeof SetDefaultMachineBodySchema>;
178
- //# sourceMappingURL=machine.d.ts.map
package/dist/machine.js CHANGED
@@ -1 +1 @@
1
- "use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),hasTerminal:o.boolean().optional(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),latestVersion:o.string().optional(),labsSettings:n.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
1
+ "use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),hasTerminal:o.boolean().optional(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),accountId:o.string().min(1).optional(),latestVersion:o.string().optional(),labsSettings:n.optional(),preferredLanguage:t.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
@@ -1,17 +1,17 @@
1
1
  import { z } from 'zod';
2
- /** Supported agent types for avatar and UI differentiation. */
2
+
3
3
  export declare const AgentTypeSchema: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
4
4
  export type AgentType = z.infer<typeof AgentTypeSchema>;
5
- /** All agent type values derived from the schema (single source of truth). */
5
+
6
6
  export declare const AGENT_TYPES: ["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"];
7
- /** Agent types that can be spawned as sessions (excludes 'custom'). */
8
- export declare const SPAWNABLE_AGENTS: ("claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw")[];
9
- /** CLI identifiers accepted by spawn-session RPC. */
7
+
8
+ export declare const SPAWNABLE_AGENTS: ("hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw")[];
9
+
10
10
  export declare const CLI_AGENT_TYPES: readonly ["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"];
11
11
  export type CliAgentType = (typeof CLI_AGENT_TYPES)[number];
12
12
  export declare const MessageMetaSchema: z.ZodObject<{
13
13
  sentFrom: z.ZodOptional<z.ZodString>;
14
- permissionMode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>>;
14
+ permissionMode: z.ZodOptional<z.ZodString>;
15
15
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -19,15 +19,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
19
19
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
20
20
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
21
21
  displayText: z.ZodOptional<z.ZodString>;
22
- /** Agent type for UI differentiation (avatar, colors). */
22
+
23
23
  agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
24
- /** Session start timestamp (Unix ms). */
24
+
25
25
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
- /** Session status for info display. */
26
+
27
27
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
28
28
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29
29
  sentFrom: z.ZodOptional<z.ZodString>;
30
- permissionMode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>>;
30
+ permissionMode: z.ZodOptional<z.ZodString>;
31
31
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -35,15 +35,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
35
35
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
36
36
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
37
37
  displayText: z.ZodOptional<z.ZodString>;
38
- /** Agent type for UI differentiation (avatar, colors). */
38
+
39
39
  agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
40
- /** Session start timestamp (Unix ms). */
40
+
41
41
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
- /** Session status for info display. */
42
+
43
43
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
44
44
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
45
45
  sentFrom: z.ZodOptional<z.ZodString>;
46
- permissionMode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "auto", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto", "never", "untrusted", "on-failure", "on-request", "build"]>>;
46
+ permissionMode: z.ZodOptional<z.ZodString>;
47
47
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
49
  customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -51,15 +51,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
51
51
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
52
52
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
53
53
  displayText: z.ZodOptional<z.ZodString>;
54
- /** Agent type for UI differentiation (avatar, colors). */
54
+
55
55
  agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
56
- /** Session start timestamp (Unix ms). */
56
+
57
57
  startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
- /** Session status for info display. */
58
+
59
59
  sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
60
60
  }, z.ZodTypeAny, "passthrough">>;
61
61
  export type MessageMeta = z.infer<typeof MessageMetaSchema>;
62
- /** Hardcoded per-agent image support. UX-driven: hides image button immediately on agent selection.
63
- * Updated when agents add ACP promptCapabilities.image support. */
62
+
64
63
  export declare const AGENT_SUPPORTS_IMAGES: Readonly<Record<AgentType, boolean>>;
65
- //# sourceMappingURL=messageMeta.d.ts.map
64
+
65
+ export declare const AGENT_DISPLAY_NAMES: Readonly<Record<AgentType, string>>;
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";import{PermissionModeSchema as l}from"./interactionEvents.js";export const AgentTypeSchema=e.enum(["claude","copilot","codex","gemini","opencode","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENTS=AGENT_TYPES.filter(o=>o!=="custom"),CLI_AGENT_TYPES=["claude","copilot","opencode","codex","gemini","hermes","openclaw"],MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:l.optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,custom:!0};
1
+ "use strict";import{z as e}from"zod";export const AgentTypeSchema=e.enum(["claude","copilot","codex","gemini","opencode","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENTS=AGENT_TYPES.filter(o=>o!=="custom"),CLI_AGENT_TYPES=["claude","copilot","opencode","codex","gemini","hermes","openclaw"],MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:e.string().optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,custom:!0},AGENT_DISPLAY_NAMES={claude:"Claude",copilot:"Copilot",codex:"Codex",gemini:"Gemini",opencode:"OpenCode",hermes:"Hermes",openclaw:"OpenClaw",custom:"Custom"};