@agentdock/wire 0.0.45 → 0.0.47
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/agentCapabilities.js +1 -1
- package/dist/envelope.d.ts +34 -0
- package/dist/events.d.ts +36 -0
- package/dist/events.js +1 -1
- package/dist/feedback.d.ts +23 -5
- package/dist/feedback.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/machine.d.ts +4 -0
- package/dist/machine.js +1 -1
- package/dist/messages.d.ts +84 -0
- package/dist/socketEvents.d.ts +1 -0
- package/dist/socketEvents.js +1 -1
- package/dist/stats.d.ts +27 -422
- package/dist/stats.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=[{value:"default",labelKey:"permissionDefault"},{value:"acceptEdits",labelKey:"permissionAutoEdit"},{value:"auto",labelKey:"permissionAuto"},{value:"plan",labelKey:"permissionPlan"},{value:"bypassPermissions",labelKey:"permissionFullAuto"}],r=[{value:"sonnet",label:"Sonnet"},{value:"opus",label:"Opus"},{value:"haiku",label:"Haiku"}];export const AGENT_CAPABILITIES={claude:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!0,supportsSlashClear:!0,supportsSlashCompact:!0,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!1,staticModels:r,permissionModes:p,defaultPermissionMode:"default"},copilot:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},opencode:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!1,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},codex:{controlLevel:2,supportsModel:!0,supportsSystemPrompt:!
|
|
1
|
+
"use strict";const p=[{value:"default",labelKey:"permissionDefault"},{value:"acceptEdits",labelKey:"permissionAutoEdit"},{value:"auto",labelKey:"permissionAuto"},{value:"plan",labelKey:"permissionPlan"},{value:"bypassPermissions",labelKey:"permissionFullAuto"}],r=[{value:"sonnet",label:"Sonnet"},{value:"opus",label:"Opus"},{value:"haiku",label:"Haiku"}];export const AGENT_CAPABILITIES={claude:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!0,supportsSlashClear:!0,supportsSlashCompact:!0,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!1,staticModels:r,permissionModes:p,defaultPermissionMode:"default"},copilot:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},opencode:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!0,supportsMcpConfig:!0,supportsPermissionMode:!1,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},codex:{controlLevel:2,supportsModel:!0,supportsSystemPrompt:!0,supportsToolConfig:!1,supportsMcpConfig:!1,supportsPermissionMode:!0,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!0,supportsInSessionModelSwitch:!0,supportsInSessionModeSwitch:!0,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},gemini:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!0,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:"bypassPermissions"},hermes:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!1,supportsPermissionMode:!1,supportsResume:!0,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""},openclaw:{controlLevel:3,supportsModel:!0,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!1,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!0,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,usesAcpConfig:!0,staticModels:[],permissionModes:[],defaultPermissionMode:""}};let e={};export function updateDynamicModes(s,o){o.length!==0&&(e={...e,[s]:o.map(t=>({value:t.id,labelKey:t.label}))})}export function getDynamicModes(s){return e[s]??null}export function getAgentCapability(s){return AGENT_CAPABILITIES[s]??{controlLevel:0,supportsModel:!1,supportsSystemPrompt:!1,supportsToolConfig:!1,supportsMcpConfig:!1,supportsPermissionMode:!1,supportsResume:!1,supportsMaxTurns:!1,supportsSlashClear:!1,supportsSlashCompact:!1,supportsInSessionModelSwitch:!1,supportsInSessionModeSwitch:!1,usesAcpConfig:!1,staticModels:[],permissionModes:[],defaultPermissionMode:"default"}}export function normalizeModelId(s){return s.replace(/(\d+)\.(\d+)/g,"$1-$2")}
|
package/dist/envelope.d.ts
CHANGED
|
@@ -19,13 +19,31 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
19
19
|
t: z.ZodLiteral<"text">;
|
|
20
20
|
text: z.ZodString;
|
|
21
21
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
data: z.ZodString;
|
|
24
|
+
mediaType: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
data: string;
|
|
27
|
+
mediaType: string;
|
|
28
|
+
}, {
|
|
29
|
+
data: string;
|
|
30
|
+
mediaType: string;
|
|
31
|
+
}>, "many">>;
|
|
22
32
|
}, "strip", z.ZodTypeAny, {
|
|
23
33
|
t: "text";
|
|
24
34
|
text: string;
|
|
35
|
+
images?: {
|
|
36
|
+
data: string;
|
|
37
|
+
mediaType: string;
|
|
38
|
+
}[] | undefined;
|
|
25
39
|
thinking?: boolean | undefined;
|
|
26
40
|
}, {
|
|
27
41
|
t: "text";
|
|
28
42
|
text: string;
|
|
43
|
+
images?: {
|
|
44
|
+
data: string;
|
|
45
|
+
mediaType: string;
|
|
46
|
+
}[] | undefined;
|
|
29
47
|
thinking?: boolean | undefined;
|
|
30
48
|
}>, z.ZodObject<{
|
|
31
49
|
t: z.ZodLiteral<"service">;
|
|
@@ -305,6 +323,10 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
305
323
|
} | {
|
|
306
324
|
t: "text";
|
|
307
325
|
text: string;
|
|
326
|
+
images?: {
|
|
327
|
+
data: string;
|
|
328
|
+
mediaType: string;
|
|
329
|
+
}[] | undefined;
|
|
308
330
|
thinking?: boolean | undefined;
|
|
309
331
|
} | {
|
|
310
332
|
t: "service";
|
|
@@ -390,6 +412,10 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
390
412
|
} | {
|
|
391
413
|
t: "text";
|
|
392
414
|
text: string;
|
|
415
|
+
images?: {
|
|
416
|
+
data: string;
|
|
417
|
+
mediaType: string;
|
|
418
|
+
}[] | undefined;
|
|
393
419
|
thinking?: boolean | undefined;
|
|
394
420
|
} | {
|
|
395
421
|
t: "service";
|
|
@@ -475,6 +501,10 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
475
501
|
} | {
|
|
476
502
|
t: "text";
|
|
477
503
|
text: string;
|
|
504
|
+
images?: {
|
|
505
|
+
data: string;
|
|
506
|
+
mediaType: string;
|
|
507
|
+
}[] | undefined;
|
|
478
508
|
thinking?: boolean | undefined;
|
|
479
509
|
} | {
|
|
480
510
|
t: "service";
|
|
@@ -560,6 +590,10 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
560
590
|
} | {
|
|
561
591
|
t: "text";
|
|
562
592
|
text: string;
|
|
593
|
+
images?: {
|
|
594
|
+
data: string;
|
|
595
|
+
mediaType: string;
|
|
596
|
+
}[] | undefined;
|
|
563
597
|
thinking?: boolean | undefined;
|
|
564
598
|
} | {
|
|
565
599
|
t: "service";
|
package/dist/events.d.ts
CHANGED
|
@@ -9,13 +9,31 @@ export declare const SessionTextEventSchema: z.ZodObject<{
|
|
|
9
9
|
t: z.ZodLiteral<"text">;
|
|
10
10
|
text: z.ZodString;
|
|
11
11
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
data: z.ZodString;
|
|
14
|
+
mediaType: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
data: string;
|
|
17
|
+
mediaType: string;
|
|
18
|
+
}, {
|
|
19
|
+
data: string;
|
|
20
|
+
mediaType: string;
|
|
21
|
+
}>, "many">>;
|
|
12
22
|
}, "strip", z.ZodTypeAny, {
|
|
13
23
|
t: "text";
|
|
14
24
|
text: string;
|
|
25
|
+
images?: {
|
|
26
|
+
data: string;
|
|
27
|
+
mediaType: string;
|
|
28
|
+
}[] | undefined;
|
|
15
29
|
thinking?: boolean | undefined;
|
|
16
30
|
}, {
|
|
17
31
|
t: "text";
|
|
18
32
|
text: string;
|
|
33
|
+
images?: {
|
|
34
|
+
data: string;
|
|
35
|
+
mediaType: string;
|
|
36
|
+
}[] | undefined;
|
|
19
37
|
thinking?: boolean | undefined;
|
|
20
38
|
}>;
|
|
21
39
|
export declare const SessionServiceEventSchema: z.ZodObject<{
|
|
@@ -212,13 +230,31 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
212
230
|
t: z.ZodLiteral<"text">;
|
|
213
231
|
text: z.ZodString;
|
|
214
232
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
|
+
data: z.ZodString;
|
|
235
|
+
mediaType: z.ZodString;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
data: string;
|
|
238
|
+
mediaType: string;
|
|
239
|
+
}, {
|
|
240
|
+
data: string;
|
|
241
|
+
mediaType: string;
|
|
242
|
+
}>, "many">>;
|
|
215
243
|
}, "strip", z.ZodTypeAny, {
|
|
216
244
|
t: "text";
|
|
217
245
|
text: string;
|
|
246
|
+
images?: {
|
|
247
|
+
data: string;
|
|
248
|
+
mediaType: string;
|
|
249
|
+
}[] | undefined;
|
|
218
250
|
thinking?: boolean | undefined;
|
|
219
251
|
}, {
|
|
220
252
|
t: "text";
|
|
221
253
|
text: string;
|
|
254
|
+
images?: {
|
|
255
|
+
data: string;
|
|
256
|
+
mediaType: string;
|
|
257
|
+
}[] | undefined;
|
|
222
258
|
thinking?: boolean | undefined;
|
|
223
259
|
}>, z.ZodObject<{
|
|
224
260
|
t: z.ZodLiteral<"service">;
|
package/dist/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";import{SessionQuestionEventSchema as t,SessionPermissionRequestEventSchema as n,SessionAnswerEventSchema as o,SessionPermissionResolvedEventSchema as s}from"./interactionEvents.js";export const SessionTextEventSchema=e.object({t:e.literal("text"),text:e.string(),thinking:e.boolean().optional()}),SessionServiceEventSchema=e.object({t:e.literal("service"),text:e.string()}),SessionToolCallStartEventSchema=e.object({t:e.literal("tool-call-start"),call:e.string(),name:e.string(),title:e.string(),description:e.string(),args:e.record(e.string(),e.unknown())}),SessionToolCallEndEventSchema=e.object({t:e.literal("tool-call-end"),call:e.string(),result:e.string().optional(),error:e.boolean().optional()}),SessionFileEventSchema=e.object({t:e.literal("file"),ref:e.string(),name:e.string(),size:e.number(),image:e.object({width:e.number(),height:e.number(),thumbhash:e.string()}).optional()}),SessionTurnStartEventSchema=e.object({t:e.literal("turn-start")}),SessionTurnEndStatusSchema=e.enum(["completed","failed","cancelled"]),TurnUsageSchema=e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),cacheReadTokens:e.number().int().nonnegative().optional(),cacheWriteTokens:e.number().int().nonnegative().optional()}),SessionTurnEndEventSchema=e.object({t:e.literal("turn-end"),status:SessionTurnEndStatusSchema,usage:TurnUsageSchema.optional(),model:e.string().optional()}),SessionStartEventSchema=e.object({t:e.literal("start"),title:e.string().optional()}),SessionStopEventSchema=e.object({t:e.literal("stop")}),SessionImageEventSchema=e.object({t:e.literal("image"),data:e.string(),mediaType:e.string()}),SessionEventSchema=e.discriminatedUnion("t",[SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionStartEventSchema,SessionStopEventSchema,t,n,o,s,SessionImageEventSchema]);export{SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,ImageAttachmentSchema}from"./interactionEvents.js";
|
|
1
|
+
"use strict";import{z as e}from"zod";import{SessionQuestionEventSchema as t,SessionPermissionRequestEventSchema as n,SessionAnswerEventSchema as o,SessionPermissionResolvedEventSchema as s}from"./interactionEvents.js";export const SessionTextEventSchema=e.object({t:e.literal("text"),text:e.string(),thinking:e.boolean().optional(),images:e.array(e.object({data:e.string(),mediaType:e.string()})).optional()}),SessionServiceEventSchema=e.object({t:e.literal("service"),text:e.string()}),SessionToolCallStartEventSchema=e.object({t:e.literal("tool-call-start"),call:e.string(),name:e.string(),title:e.string(),description:e.string(),args:e.record(e.string(),e.unknown())}),SessionToolCallEndEventSchema=e.object({t:e.literal("tool-call-end"),call:e.string(),result:e.string().optional(),error:e.boolean().optional()}),SessionFileEventSchema=e.object({t:e.literal("file"),ref:e.string(),name:e.string(),size:e.number(),image:e.object({width:e.number(),height:e.number(),thumbhash:e.string()}).optional()}),SessionTurnStartEventSchema=e.object({t:e.literal("turn-start")}),SessionTurnEndStatusSchema=e.enum(["completed","failed","cancelled"]),TurnUsageSchema=e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),cacheReadTokens:e.number().int().nonnegative().optional(),cacheWriteTokens:e.number().int().nonnegative().optional()}),SessionTurnEndEventSchema=e.object({t:e.literal("turn-end"),status:SessionTurnEndStatusSchema,usage:TurnUsageSchema.optional(),model:e.string().optional()}),SessionStartEventSchema=e.object({t:e.literal("start"),title:e.string().optional()}),SessionStopEventSchema=e.object({t:e.literal("stop")}),SessionImageEventSchema=e.object({t:e.literal("image"),data:e.string(),mediaType:e.string()}),SessionEventSchema=e.discriminatedUnion("t",[SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionStartEventSchema,SessionStopEventSchema,t,n,o,s,SessionImageEventSchema]);export{SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,ImageAttachmentSchema}from"./interactionEvents.js";
|
package/dist/feedback.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const MachineSnapshotSchema: z.ZodObject<{
|
|
|
10
10
|
hostname: z.ZodOptional<z.ZodString>;
|
|
11
11
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
12
12
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
+
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
14
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
machineId: string;
|
|
@@ -18,6 +19,7 @@ export declare const MachineSnapshotSchema: z.ZodObject<{
|
|
|
18
19
|
platform?: string | undefined;
|
|
19
20
|
arch?: string | undefined;
|
|
20
21
|
daemonVersion?: string | undefined;
|
|
22
|
+
agentVersions?: Record<string, string> | undefined;
|
|
21
23
|
nodeVersion?: string | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
machineId: string;
|
|
@@ -26,6 +28,7 @@ export declare const MachineSnapshotSchema: z.ZodObject<{
|
|
|
26
28
|
platform?: string | undefined;
|
|
27
29
|
arch?: string | undefined;
|
|
28
30
|
daemonVersion?: string | undefined;
|
|
31
|
+
agentVersions?: Record<string, string> | undefined;
|
|
29
32
|
nodeVersion?: string | undefined;
|
|
30
33
|
}>;
|
|
31
34
|
export type MachineSnapshot = z.infer<typeof MachineSnapshotSchema>;
|
|
@@ -37,6 +40,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
37
40
|
hostname: z.ZodOptional<z.ZodString>;
|
|
38
41
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
39
42
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
+
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
44
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
41
45
|
}, "strip", z.ZodTypeAny, {
|
|
42
46
|
machineId: string;
|
|
@@ -45,6 +49,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
45
49
|
platform?: string | undefined;
|
|
46
50
|
arch?: string | undefined;
|
|
47
51
|
daemonVersion?: string | undefined;
|
|
52
|
+
agentVersions?: Record<string, string> | undefined;
|
|
48
53
|
nodeVersion?: string | undefined;
|
|
49
54
|
}, {
|
|
50
55
|
machineId: string;
|
|
@@ -53,6 +58,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
53
58
|
platform?: string | undefined;
|
|
54
59
|
arch?: string | undefined;
|
|
55
60
|
daemonVersion?: string | undefined;
|
|
61
|
+
agentVersions?: Record<string, string> | undefined;
|
|
56
62
|
nodeVersion?: string | undefined;
|
|
57
63
|
}>, "many">>;
|
|
58
64
|
appVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -64,6 +70,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
64
70
|
platform?: string | undefined;
|
|
65
71
|
arch?: string | undefined;
|
|
66
72
|
daemonVersion?: string | undefined;
|
|
73
|
+
agentVersions?: Record<string, string> | undefined;
|
|
67
74
|
nodeVersion?: string | undefined;
|
|
68
75
|
}[] | undefined;
|
|
69
76
|
appVersion?: string | undefined;
|
|
@@ -75,6 +82,7 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
75
82
|
platform?: string | undefined;
|
|
76
83
|
arch?: string | undefined;
|
|
77
84
|
daemonVersion?: string | undefined;
|
|
85
|
+
agentVersions?: Record<string, string> | undefined;
|
|
78
86
|
nodeVersion?: string | undefined;
|
|
79
87
|
}[] | undefined;
|
|
80
88
|
appVersion?: string | undefined;
|
|
@@ -92,6 +100,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
92
100
|
hostname: z.ZodOptional<z.ZodString>;
|
|
93
101
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
94
102
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
+
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
104
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
96
105
|
}, "strip", z.ZodTypeAny, {
|
|
97
106
|
machineId: string;
|
|
@@ -100,6 +109,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
100
109
|
platform?: string | undefined;
|
|
101
110
|
arch?: string | undefined;
|
|
102
111
|
daemonVersion?: string | undefined;
|
|
112
|
+
agentVersions?: Record<string, string> | undefined;
|
|
103
113
|
nodeVersion?: string | undefined;
|
|
104
114
|
}, {
|
|
105
115
|
machineId: string;
|
|
@@ -108,6 +118,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
108
118
|
platform?: string | undefined;
|
|
109
119
|
arch?: string | undefined;
|
|
110
120
|
daemonVersion?: string | undefined;
|
|
121
|
+
agentVersions?: Record<string, string> | undefined;
|
|
111
122
|
nodeVersion?: string | undefined;
|
|
112
123
|
}>, "many">>;
|
|
113
124
|
appVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -119,6 +130,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
119
130
|
platform?: string | undefined;
|
|
120
131
|
arch?: string | undefined;
|
|
121
132
|
daemonVersion?: string | undefined;
|
|
133
|
+
agentVersions?: Record<string, string> | undefined;
|
|
122
134
|
nodeVersion?: string | undefined;
|
|
123
135
|
}[] | undefined;
|
|
124
136
|
appVersion?: string | undefined;
|
|
@@ -130,6 +142,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
130
142
|
platform?: string | undefined;
|
|
131
143
|
arch?: string | undefined;
|
|
132
144
|
daemonVersion?: string | undefined;
|
|
145
|
+
agentVersions?: Record<string, string> | undefined;
|
|
133
146
|
nodeVersion?: string | undefined;
|
|
134
147
|
}[] | undefined;
|
|
135
148
|
appVersion?: string | undefined;
|
|
@@ -145,6 +158,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
145
158
|
platform?: string | undefined;
|
|
146
159
|
arch?: string | undefined;
|
|
147
160
|
daemonVersion?: string | undefined;
|
|
161
|
+
agentVersions?: Record<string, string> | undefined;
|
|
148
162
|
nodeVersion?: string | undefined;
|
|
149
163
|
}[] | undefined;
|
|
150
164
|
appVersion?: string | undefined;
|
|
@@ -161,6 +175,7 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
161
175
|
platform?: string | undefined;
|
|
162
176
|
arch?: string | undefined;
|
|
163
177
|
daemonVersion?: string | undefined;
|
|
178
|
+
agentVersions?: Record<string, string> | undefined;
|
|
164
179
|
nodeVersion?: string | undefined;
|
|
165
180
|
}[] | undefined;
|
|
166
181
|
appVersion?: string | undefined;
|
|
@@ -168,12 +183,15 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
168
183
|
screenshots?: string[] | undefined;
|
|
169
184
|
}>;
|
|
170
185
|
export type CreateFeedback = z.infer<typeof CreateFeedbackSchema>;
|
|
171
|
-
export declare const
|
|
172
|
-
status: z.ZodEnum<["READ", "ARCHIVED"]
|
|
186
|
+
export declare const UpdateFeedbackSchema: z.ZodObject<{
|
|
187
|
+
status: z.ZodOptional<z.ZodEnum<["READ", "ARCHIVED"]>>;
|
|
188
|
+
reply: z.ZodOptional<z.ZodString>;
|
|
173
189
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
status
|
|
190
|
+
status?: "READ" | "ARCHIVED" | undefined;
|
|
191
|
+
reply?: string | undefined;
|
|
175
192
|
}, {
|
|
176
|
-
status
|
|
193
|
+
status?: "READ" | "ARCHIVED" | undefined;
|
|
194
|
+
reply?: string | undefined;
|
|
177
195
|
}>;
|
|
178
|
-
export type
|
|
196
|
+
export type UpdateFeedback = z.infer<typeof UpdateFeedbackSchema>;
|
|
179
197
|
//# sourceMappingURL=feedback.d.ts.map
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as
|
|
1
|
+
"use strict";import{z as o}from"zod";export const FeedbackTypeSchema=o.enum(["BUG","FEATURE","OTHER"]),FeedbackStatusSchema=o.enum(["UNREAD","READ","ARCHIVED"]),MachineSnapshotSchema=o.object({machineId:o.string(),platform:o.string().optional(),arch:o.string().optional(),hostname:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),nodeVersion:o.string().optional()}),DeviceInfoSchema=o.object({machines:o.array(MachineSnapshotSchema).optional(),appVersion:o.string().optional()}),CreateFeedbackSchema=o.object({type:FeedbackTypeSchema,description:o.string().min(1).max(5e3),screenshots:o.array(o.string().max(7e5)).max(3).optional(),deviceInfo:DeviceInfoSchema}),UpdateFeedbackSchema=o.object({status:o.enum(["READ","ARCHIVED"]).optional(),reply:o.string().min(1).max(5e3).optional()});
|
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export { RpcMethod, type RpcMethodType, SESSION_RPC_METHODS, MACHINE_RPC_METHODS
|
|
|
17
17
|
export type { RpcCall, RpcResult, SpawnSessionParams, CheckPathParams, GetMessagesParams, GetMessagesResponse, MachineInfoResponse, AgentEnvConfig, AgentSettings, LabsSettings, CustomModel, SkillDefinition, } from './rpc.js';
|
|
18
18
|
export { AGENT_CAPABILITIES, getAgentCapability, updateDynamicModes, getDynamicModes, normalizeModelId, } from './agentCapabilities.js';
|
|
19
19
|
export type { AgentCapability, AgentPermissionMode, AgentModelOption, } from './agentCapabilities.js';
|
|
20
|
-
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema,
|
|
21
|
-
export type { StatsOverview, ClaudeStatsData, ProjectSummary, ModelUsageEntry as WireModelUsageEntry, DailyActivity as WireDailyActivity, LongestSession as WireLongestSession,
|
|
20
|
+
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
21
|
+
export type { StatsOverview, ClaudeStatsData, ProjectSummary, ModelUsageEntry as WireModelUsageEntry, DailyActivity as WireDailyActivity, LongestSession as WireLongestSession, AgentTypeUsage, ActivityUpload, UsageReport, TokenTrendPoint, ModelBreakdownEntry, QuotaConfig, QuotaStatusSchema, QuotaStatus, } from './stats.js';
|
|
22
22
|
export { ControlLevel } from './controlLevel.js';
|
|
23
23
|
export type { ControlLevelType } from './controlLevel.js';
|
|
24
24
|
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, } from './pairing.js';
|
|
@@ -50,8 +50,8 @@ export { OpsRpcMessageSchema, OpsMethodSchema, OpsRpcTypeSchema, FileEntrySchema
|
|
|
50
50
|
export * from './edition.js';
|
|
51
51
|
export { LicensePayloadSchema, LicenseFileSchema } from './license.js';
|
|
52
52
|
export type { LicensePayload, LicenseFile } from './license.js';
|
|
53
|
-
export { FeedbackTypeSchema, FeedbackStatusSchema, DeviceInfoSchema, CreateFeedbackSchema,
|
|
54
|
-
export type { FeedbackType, FeedbackStatus, DeviceInfo, CreateFeedback,
|
|
53
|
+
export { FeedbackTypeSchema, FeedbackStatusSchema, DeviceInfoSchema, MachineSnapshotSchema, CreateFeedbackSchema, UpdateFeedbackSchema, } from './feedback.js';
|
|
54
|
+
export type { FeedbackType, FeedbackStatus, DeviceInfo, MachineSnapshot, CreateFeedback, UpdateFeedback, } from './feedback.js';
|
|
55
55
|
export interface SetupProgress {
|
|
56
56
|
readonly provider: boolean;
|
|
57
57
|
readonly credential: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,
|
|
1
|
+
"use strict";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema}from"./pairing.js";export{PlatformSchema,SessionStatusSchema,MachineSummarySchema,MachineRegisterResultSchema}from"./machine.js";export{FEATURE_REGISTRY,isFeatureAvailable,getUnavailableFeatures,isSubFeatureAvailable,getSubFeatureMinVersion}from"./features.js";export{SessionResultSchema}from"./sessionResult.js";export{SpawnErrorCodeSchema,SpawnErrorSchema,createSpawnError}from"./spawnError.js";export{AGENT_INSTALL_GUIDE}from"./agentInstallGuide.js";export{AGENT_COMMON_ENV_VARS}from"./agentCommonEnv.js";export{RetryPolicySchema,MissedRunPolicySchema,ScheduledSpawnParamsSchema,TaskExecutionStatusSchema,TaskExecutionTriggerSchema,CreateScheduledTaskSchema,UpdateScheduledTaskSchema,ScheduledTaskSummarySchema,TaskExecutionSchema,CRON_RE}from"./scheduledTasks.js";export{PROTOCOL_VERSION}from"./protocol.js";export{parseSemver,compareVersions,satisfiesMin}from"./semver.js";export{createId}from"./utils.js";export{errorMessage}from"./errorMessage.js";export{SOCKET_EVENTS}from"./socketEvents.js";export{TelemetryEventTypeSchema,TelemetryEventSchema,TelemetryReportPayloadSchema,sanitizeContext}from"./telemetry.js";export*from"./checkpointSchemas.js";export{OpsRpcMessageSchema,OpsMethodSchema,OpsRpcTypeSchema,FileEntrySchema,FileStatSchema,StorageUsageSchema,SyncUserSchema,SyncFullPayloadSchema,SyncUserCreatedPayloadSchema,SyncContainerStatusPayloadSchema,SyncUserPairedPayloadSchema}from"./ops.js";export*from"./edition.js";export{LicensePayloadSchema,LicenseFileSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema}from"./feedback.js";
|
package/dist/machine.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
28
28
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
/** Agent types available on this machine (persisted on each daemon connect). */
|
|
30
30
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
/** Agent versions keyed by agent type name (e.g. { claude: "1.2.3" }). */
|
|
32
|
+
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31
33
|
/** RPC methods this machine's daemon has registered (RFC-035). */
|
|
32
34
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
35
|
/** Why the machine disconnected — 'upgrade-required' triggers UI upgrade prompts (RFC-037). */
|
|
@@ -52,6 +54,7 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
52
54
|
hasTerminal?: boolean | undefined;
|
|
53
55
|
activeSessions?: number | undefined;
|
|
54
56
|
totalSessions?: number | undefined;
|
|
57
|
+
agentVersions?: Record<string, string> | undefined;
|
|
55
58
|
supportedMethods?: string[] | undefined;
|
|
56
59
|
disconnectReason?: "normal" | "upgrade-required" | undefined;
|
|
57
60
|
upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "switching" | undefined;
|
|
@@ -71,6 +74,7 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
71
74
|
hasTerminal?: boolean | undefined;
|
|
72
75
|
activeSessions?: number | undefined;
|
|
73
76
|
totalSessions?: number | undefined;
|
|
77
|
+
agentVersions?: Record<string, string> | undefined;
|
|
74
78
|
supportedMethods?: string[] | undefined;
|
|
75
79
|
disconnectReason?: "normal" | "upgrade-required" | undefined;
|
|
76
80
|
upgradeStatus?: "idle" | "failed" | "preflight" | "downloading" | "switching" | undefined;
|
package/dist/machine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as
|
|
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","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional()}),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),latestVersion:o.string().optional(),labsSettings:n.optional()}),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()});
|
package/dist/messages.d.ts
CHANGED
|
@@ -67,13 +67,31 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
67
67
|
t: z.ZodLiteral<"text">;
|
|
68
68
|
text: z.ZodString;
|
|
69
69
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
data: z.ZodString;
|
|
72
|
+
mediaType: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
data: string;
|
|
75
|
+
mediaType: string;
|
|
76
|
+
}, {
|
|
77
|
+
data: string;
|
|
78
|
+
mediaType: string;
|
|
79
|
+
}>, "many">>;
|
|
70
80
|
}, "strip", z.ZodTypeAny, {
|
|
71
81
|
t: "text";
|
|
72
82
|
text: string;
|
|
83
|
+
images?: {
|
|
84
|
+
data: string;
|
|
85
|
+
mediaType: string;
|
|
86
|
+
}[] | undefined;
|
|
73
87
|
thinking?: boolean | undefined;
|
|
74
88
|
}, {
|
|
75
89
|
t: "text";
|
|
76
90
|
text: string;
|
|
91
|
+
images?: {
|
|
92
|
+
data: string;
|
|
93
|
+
mediaType: string;
|
|
94
|
+
}[] | undefined;
|
|
77
95
|
thinking?: boolean | undefined;
|
|
78
96
|
}>, z.ZodObject<{
|
|
79
97
|
t: z.ZodLiteral<"service">;
|
|
@@ -353,6 +371,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
353
371
|
} | {
|
|
354
372
|
t: "text";
|
|
355
373
|
text: string;
|
|
374
|
+
images?: {
|
|
375
|
+
data: string;
|
|
376
|
+
mediaType: string;
|
|
377
|
+
}[] | undefined;
|
|
356
378
|
thinking?: boolean | undefined;
|
|
357
379
|
} | {
|
|
358
380
|
t: "service";
|
|
@@ -438,6 +460,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
438
460
|
} | {
|
|
439
461
|
t: "text";
|
|
440
462
|
text: string;
|
|
463
|
+
images?: {
|
|
464
|
+
data: string;
|
|
465
|
+
mediaType: string;
|
|
466
|
+
}[] | undefined;
|
|
441
467
|
thinking?: boolean | undefined;
|
|
442
468
|
} | {
|
|
443
469
|
t: "service";
|
|
@@ -523,6 +549,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
523
549
|
} | {
|
|
524
550
|
t: "text";
|
|
525
551
|
text: string;
|
|
552
|
+
images?: {
|
|
553
|
+
data: string;
|
|
554
|
+
mediaType: string;
|
|
555
|
+
}[] | undefined;
|
|
526
556
|
thinking?: boolean | undefined;
|
|
527
557
|
} | {
|
|
528
558
|
t: "service";
|
|
@@ -608,6 +638,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
608
638
|
} | {
|
|
609
639
|
t: "text";
|
|
610
640
|
text: string;
|
|
641
|
+
images?: {
|
|
642
|
+
data: string;
|
|
643
|
+
mediaType: string;
|
|
644
|
+
}[] | undefined;
|
|
611
645
|
thinking?: boolean | undefined;
|
|
612
646
|
} | {
|
|
613
647
|
t: "service";
|
|
@@ -736,6 +770,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
736
770
|
} | {
|
|
737
771
|
t: "text";
|
|
738
772
|
text: string;
|
|
773
|
+
images?: {
|
|
774
|
+
data: string;
|
|
775
|
+
mediaType: string;
|
|
776
|
+
}[] | undefined;
|
|
739
777
|
thinking?: boolean | undefined;
|
|
740
778
|
} | {
|
|
741
779
|
t: "service";
|
|
@@ -838,6 +876,10 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
|
|
|
838
876
|
} | {
|
|
839
877
|
t: "text";
|
|
840
878
|
text: string;
|
|
879
|
+
images?: {
|
|
880
|
+
data: string;
|
|
881
|
+
mediaType: string;
|
|
882
|
+
}[] | undefined;
|
|
841
883
|
thinking?: boolean | undefined;
|
|
842
884
|
} | {
|
|
843
885
|
t: "service";
|
|
@@ -1105,13 +1147,31 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1105
1147
|
t: z.ZodLiteral<"text">;
|
|
1106
1148
|
text: z.ZodString;
|
|
1107
1149
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
1150
|
+
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1151
|
+
data: z.ZodString;
|
|
1152
|
+
mediaType: z.ZodString;
|
|
1153
|
+
}, "strip", z.ZodTypeAny, {
|
|
1154
|
+
data: string;
|
|
1155
|
+
mediaType: string;
|
|
1156
|
+
}, {
|
|
1157
|
+
data: string;
|
|
1158
|
+
mediaType: string;
|
|
1159
|
+
}>, "many">>;
|
|
1108
1160
|
}, "strip", z.ZodTypeAny, {
|
|
1109
1161
|
t: "text";
|
|
1110
1162
|
text: string;
|
|
1163
|
+
images?: {
|
|
1164
|
+
data: string;
|
|
1165
|
+
mediaType: string;
|
|
1166
|
+
}[] | undefined;
|
|
1111
1167
|
thinking?: boolean | undefined;
|
|
1112
1168
|
}, {
|
|
1113
1169
|
t: "text";
|
|
1114
1170
|
text: string;
|
|
1171
|
+
images?: {
|
|
1172
|
+
data: string;
|
|
1173
|
+
mediaType: string;
|
|
1174
|
+
}[] | undefined;
|
|
1115
1175
|
thinking?: boolean | undefined;
|
|
1116
1176
|
}>, z.ZodObject<{
|
|
1117
1177
|
t: z.ZodLiteral<"service">;
|
|
@@ -1391,6 +1451,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1391
1451
|
} | {
|
|
1392
1452
|
t: "text";
|
|
1393
1453
|
text: string;
|
|
1454
|
+
images?: {
|
|
1455
|
+
data: string;
|
|
1456
|
+
mediaType: string;
|
|
1457
|
+
}[] | undefined;
|
|
1394
1458
|
thinking?: boolean | undefined;
|
|
1395
1459
|
} | {
|
|
1396
1460
|
t: "service";
|
|
@@ -1476,6 +1540,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1476
1540
|
} | {
|
|
1477
1541
|
t: "text";
|
|
1478
1542
|
text: string;
|
|
1543
|
+
images?: {
|
|
1544
|
+
data: string;
|
|
1545
|
+
mediaType: string;
|
|
1546
|
+
}[] | undefined;
|
|
1479
1547
|
thinking?: boolean | undefined;
|
|
1480
1548
|
} | {
|
|
1481
1549
|
t: "service";
|
|
@@ -1561,6 +1629,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1561
1629
|
} | {
|
|
1562
1630
|
t: "text";
|
|
1563
1631
|
text: string;
|
|
1632
|
+
images?: {
|
|
1633
|
+
data: string;
|
|
1634
|
+
mediaType: string;
|
|
1635
|
+
}[] | undefined;
|
|
1564
1636
|
thinking?: boolean | undefined;
|
|
1565
1637
|
} | {
|
|
1566
1638
|
t: "service";
|
|
@@ -1646,6 +1718,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1646
1718
|
} | {
|
|
1647
1719
|
t: "text";
|
|
1648
1720
|
text: string;
|
|
1721
|
+
images?: {
|
|
1722
|
+
data: string;
|
|
1723
|
+
mediaType: string;
|
|
1724
|
+
}[] | undefined;
|
|
1649
1725
|
thinking?: boolean | undefined;
|
|
1650
1726
|
} | {
|
|
1651
1727
|
t: "service";
|
|
@@ -1774,6 +1850,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1774
1850
|
} | {
|
|
1775
1851
|
t: "text";
|
|
1776
1852
|
text: string;
|
|
1853
|
+
images?: {
|
|
1854
|
+
data: string;
|
|
1855
|
+
mediaType: string;
|
|
1856
|
+
}[] | undefined;
|
|
1777
1857
|
thinking?: boolean | undefined;
|
|
1778
1858
|
} | {
|
|
1779
1859
|
t: "service";
|
|
@@ -1876,6 +1956,10 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
1876
1956
|
} | {
|
|
1877
1957
|
t: "text";
|
|
1878
1958
|
text: string;
|
|
1959
|
+
images?: {
|
|
1960
|
+
data: string;
|
|
1961
|
+
mediaType: string;
|
|
1962
|
+
}[] | undefined;
|
|
1879
1963
|
thinking?: boolean | undefined;
|
|
1880
1964
|
} | {
|
|
1881
1965
|
t: "service";
|
package/dist/socketEvents.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const SOCKET_EVENTS: Readonly<{
|
|
|
12
12
|
readonly UPDATE: "update";
|
|
13
13
|
readonly EPHEMERAL: "ephemeral";
|
|
14
14
|
readonly ENTERPRISE_ALERT: "enterprise-alert";
|
|
15
|
+
readonly ACTIVITY_PREFERENCES_CHANGED: "activity-preferences-changed";
|
|
15
16
|
readonly SESSION_CREATE: "session-create";
|
|
16
17
|
readonly LIST_SESSIONS: "list-sessions";
|
|
17
18
|
readonly UPDATE_METADATA: "update-metadata";
|
package/dist/socketEvents.js
CHANGED
|
@@ -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",DYNAMIC_MODES_UPDATED:"dynamic-modes-updated",TELEMETRY_REPORT:"telemetry-report",UPDATE:"update",EPHEMERAL:"ephemeral",ENTERPRISE_ALERT:"enterprise-alert",SESSION_CREATE:"session-create",LIST_SESSIONS:"list-sessions",UPDATE_METADATA:"update-metadata",UPDATE_STATE:"update-state",SESSION_ALIVE:"session-alive",PROVISION_SESSION_DEK:"provision-session-dek",RENAME_SESSION:"rename-session",SESSION_END:"session-end",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",GET_KNOWN_CLAUDE_SESSIONS:"get-known-claude-sessions",REGISTER_HISTORY_SESSIONS:"register-history-sessions",UPDATE_SYNC_STATUS:"update-sync-status"});
|
|
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",DYNAMIC_MODES_UPDATED:"dynamic-modes-updated",TELEMETRY_REPORT:"telemetry-report",UPDATE:"update",EPHEMERAL:"ephemeral",ENTERPRISE_ALERT:"enterprise-alert",ACTIVITY_PREFERENCES_CHANGED:"activity-preferences-changed",SESSION_CREATE:"session-create",LIST_SESSIONS:"list-sessions",UPDATE_METADATA:"update-metadata",UPDATE_STATE:"update-state",SESSION_ALIVE:"session-alive",PROVISION_SESSION_DEK:"provision-session-dek",RENAME_SESSION:"rename-session",SESSION_END:"session-end",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",GET_KNOWN_CLAUDE_SESSIONS:"get-known-claude-sessions",REGISTER_HISTORY_SESSIONS:"register-history-sessions",UPDATE_SYNC_STATUS:"update-sync-status"});
|