@agentdock/wire 0.0.61 → 0.0.63

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.
@@ -156,6 +156,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
156
156
  cacheWriteTokens?: number | undefined;
157
157
  }>>;
158
158
  model: z.ZodOptional<z.ZodString>;
159
+ durationMs: z.ZodOptional<z.ZodNumber>;
159
160
  }, "strip", z.ZodTypeAny, {
160
161
  status: "completed" | "failed" | "cancelled";
161
162
  t: "turn-end";
@@ -166,6 +167,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
166
167
  cacheReadTokens?: number | undefined;
167
168
  cacheWriteTokens?: number | undefined;
168
169
  } | undefined;
170
+ durationMs?: number | undefined;
169
171
  }, {
170
172
  status: "completed" | "failed" | "cancelled";
171
173
  t: "turn-end";
@@ -176,6 +178,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
176
178
  cacheReadTokens?: number | undefined;
177
179
  cacheWriteTokens?: number | undefined;
178
180
  } | undefined;
181
+ durationMs?: number | undefined;
179
182
  }>, z.ZodObject<{
180
183
  t: z.ZodLiteral<"start">;
181
184
  title: z.ZodOptional<z.ZodString>;
@@ -271,16 +274,19 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
271
274
  requestId: z.ZodString;
272
275
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
273
276
  reason: z.ZodOptional<z.ZodString>;
277
+ allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
274
278
  }, "strip", z.ZodTypeAny, {
275
279
  t: "permission-resolved";
276
280
  requestId: string;
277
281
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
278
282
  reason?: string | undefined;
283
+ allowTools?: string[] | undefined;
279
284
  }, {
280
285
  t: "permission-resolved";
281
286
  requestId: string;
282
287
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
283
288
  reason?: string | undefined;
289
+ allowTools?: string[] | undefined;
284
290
  }>, z.ZodObject<{
285
291
  t: z.ZodLiteral<"image">;
286
292
  data: z.ZodString;
@@ -325,6 +331,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
325
331
  requestId: string;
326
332
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
327
333
  reason?: string | undefined;
334
+ allowTools?: string[] | undefined;
328
335
  } | {
329
336
  t: "text";
330
337
  text: string;
@@ -370,6 +377,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
370
377
  cacheReadTokens?: number | undefined;
371
378
  cacheWriteTokens?: number | undefined;
372
379
  } | undefined;
380
+ durationMs?: number | undefined;
373
381
  } | {
374
382
  t: "start";
375
383
  title?: string | undefined;
@@ -416,6 +424,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
416
424
  requestId: string;
417
425
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
418
426
  reason?: string | undefined;
427
+ allowTools?: string[] | undefined;
419
428
  } | {
420
429
  t: "text";
421
430
  text: string;
@@ -461,6 +470,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
461
470
  cacheReadTokens?: number | undefined;
462
471
  cacheWriteTokens?: number | undefined;
463
472
  } | undefined;
473
+ durationMs?: number | undefined;
464
474
  } | {
465
475
  t: "start";
466
476
  title?: string | undefined;
@@ -507,6 +517,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
507
517
  requestId: string;
508
518
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
509
519
  reason?: string | undefined;
520
+ allowTools?: string[] | undefined;
510
521
  } | {
511
522
  t: "text";
512
523
  text: string;
@@ -552,6 +563,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
552
563
  cacheReadTokens?: number | undefined;
553
564
  cacheWriteTokens?: number | undefined;
554
565
  } | undefined;
566
+ durationMs?: number | undefined;
555
567
  } | {
556
568
  t: "start";
557
569
  title?: string | undefined;
@@ -598,6 +610,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
598
610
  requestId: string;
599
611
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
600
612
  reason?: string | undefined;
613
+ allowTools?: string[] | undefined;
601
614
  } | {
602
615
  t: "text";
603
616
  text: string;
@@ -643,6 +656,7 @@ export declare const SessionEnvelopeSchema: z.ZodEffects<z.ZodObject<{
643
656
  cacheReadTokens?: number | undefined;
644
657
  cacheWriteTokens?: number | undefined;
645
658
  } | undefined;
659
+ durationMs?: number | undefined;
646
660
  } | {
647
661
  t: "start";
648
662
  title?: string | undefined;
package/dist/events.d.ts CHANGED
@@ -172,6 +172,8 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
172
172
  cacheWriteTokens?: number | undefined;
173
173
  }>>;
174
174
  model: z.ZodOptional<z.ZodString>;
175
+ /** Wall-clock duration of the turn in milliseconds (Date.now() diff). */
176
+ durationMs: z.ZodOptional<z.ZodNumber>;
175
177
  }, "strip", z.ZodTypeAny, {
176
178
  status: "completed" | "failed" | "cancelled";
177
179
  t: "turn-end";
@@ -182,6 +184,7 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
182
184
  cacheReadTokens?: number | undefined;
183
185
  cacheWriteTokens?: number | undefined;
184
186
  } | undefined;
187
+ durationMs?: number | undefined;
185
188
  }, {
186
189
  status: "completed" | "failed" | "cancelled";
187
190
  t: "turn-end";
@@ -192,6 +195,7 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
192
195
  cacheReadTokens?: number | undefined;
193
196
  cacheWriteTokens?: number | undefined;
194
197
  } | undefined;
198
+ durationMs?: number | undefined;
195
199
  }>;
196
200
  export declare const SessionStartEventSchema: z.ZodObject<{
197
201
  t: z.ZodLiteral<"start">;
@@ -371,6 +375,8 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
371
375
  cacheWriteTokens?: number | undefined;
372
376
  }>>;
373
377
  model: z.ZodOptional<z.ZodString>;
378
+ /** Wall-clock duration of the turn in milliseconds (Date.now() diff). */
379
+ durationMs: z.ZodOptional<z.ZodNumber>;
374
380
  }, "strip", z.ZodTypeAny, {
375
381
  status: "completed" | "failed" | "cancelled";
376
382
  t: "turn-end";
@@ -381,6 +387,7 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
381
387
  cacheReadTokens?: number | undefined;
382
388
  cacheWriteTokens?: number | undefined;
383
389
  } | undefined;
390
+ durationMs?: number | undefined;
384
391
  }, {
385
392
  status: "completed" | "failed" | "cancelled";
386
393
  t: "turn-end";
@@ -391,6 +398,7 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
391
398
  cacheReadTokens?: number | undefined;
392
399
  cacheWriteTokens?: number | undefined;
393
400
  } | undefined;
401
+ durationMs?: number | undefined;
394
402
  }>, z.ZodObject<{
395
403
  t: z.ZodLiteral<"start">;
396
404
  title: z.ZodOptional<z.ZodString>;
@@ -487,16 +495,19 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
487
495
  requestId: z.ZodString;
488
496
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
489
497
  reason: z.ZodOptional<z.ZodString>;
498
+ allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
490
499
  }, "strip", z.ZodTypeAny, {
491
500
  t: "permission-resolved";
492
501
  requestId: string;
493
502
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
494
503
  reason?: string | undefined;
504
+ allowTools?: string[] | undefined;
495
505
  }, {
496
506
  t: "permission-resolved";
497
507
  requestId: string;
498
508
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
499
509
  reason?: string | undefined;
510
+ allowTools?: string[] | undefined;
500
511
  }>, z.ZodObject<{
501
512
  t: z.ZodLiteral<"image">;
502
513
  /** Base64-encoded image data. */
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(),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(),taskId: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(),durationMs:e.number().int().nonnegative().optional()}),SessionStartEventSchema=e.object({t:e.literal("start"),title:e.string().optional(),taskId: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/features.js CHANGED
@@ -1 +1 @@
1
- "use strict";import{satisfiesMin as u}from"./semver.js";export const FEATURE_REGISTRY=[{id:"agent-settings",requiredMethods:["get-agent-settings","set-agent-settings"],sinceVersion:"0.0.4",subFeatures:[{id:"startup-scripts",sinceVersion:"0.0.30"}]},{id:"labs-settings",requiredMethods:["get-labs-settings","set-labs-settings"],sinceVersion:"0.0.12"},{id:"history-sync",requiredMethods:["backfill-history-session"],sinceVersion:"0.0.12"},{id:"check-path",requiredMethods:["check-path"],sinceVersion:"0.0.7"},{id:"remote-upgrade",requiredMethods:["trigger-upgrade"],sinceVersion:"0.0.30"},{id:"checkpoint",requiredMethods:["checkpoint-list","checkpoint-diff","checkpoint-rollback"],sinceVersion:"0.0.30",subFeatures:[{id:"conversation-rollback",sinceVersion:"0.0.32"}]},{id:"scheduled-tasks",requiredMethods:["spawn-session"],sinceVersion:"0.0.35"},{id:"auto-upgrade-daemon",requiredMethods:["set-auto-upgrade-daemon"],sinceVersion:"0.0.31"}];export function isFeatureAvailable(r,n){const t=FEATURE_REGISTRY.find(e=>e.id===r);if(!t)return!1;const i=new Set(n);return t.requiredMethods.every(e=>i.has(e))}export function isSubFeatureAvailable(r,n,t,i){const e=FEATURE_REGISTRY.find(o=>o.id===r);if(!e||!isFeatureAvailable(r,t))return!1;const s=e.subFeatures?.find(o=>o.id===n);if(!s||!i||!u(i,s.sinceVersion))return!1;if(s.requiredMethods){const o=new Set(t);return s.requiredMethods.every(d=>o.has(d))}return!0}export function getSubFeatureMinVersion(r,n){return FEATURE_REGISTRY.find(i=>i.id===r)?.subFeatures?.find(i=>i.id===n)?.sinceVersion}export function getUnavailableFeatures(r,n){const t=[],i=new Set(r);for(const e of FEATURE_REGISTRY)if(!e.requiredMethods.every(s=>i.has(s)))t.push({id:e.id,sinceVersion:e.sinceVersion});else if(e.subFeatures&&n)for(const s of e.subFeatures){const o=!u(n,s.sinceVersion),d=s.requiredMethods!=null&&!s.requiredMethods.every(c=>i.has(c));(o||d)&&t.push({id:`${e.id}/${s.id}`,sinceVersion:s.sinceVersion})}return t}
1
+ "use strict";import{satisfiesMin as u}from"./semver.js";export const FEATURE_REGISTRY=[{id:"agent-settings",requiredMethods:["get-agent-settings","set-agent-settings"],sinceVersion:"0.0.4",subFeatures:[{id:"startup-scripts",sinceVersion:"0.0.30"}]},{id:"labs-settings",requiredMethods:["get-labs-settings","set-labs-settings"],sinceVersion:"0.0.12"},{id:"history-sync",requiredMethods:["backfill-history-session"],sinceVersion:"0.0.12"},{id:"check-path",requiredMethods:["check-path"],sinceVersion:"0.0.7"},{id:"remote-upgrade",requiredMethods:["trigger-upgrade"],sinceVersion:"0.0.30"},{id:"checkpoint",requiredMethods:["checkpoint-list","checkpoint-diff","checkpoint-rollback"],sinceVersion:"0.0.30",subFeatures:[{id:"conversation-rollback",sinceVersion:"0.0.32"}]},{id:"scheduled-tasks",requiredMethods:["spawn-session"],sinceVersion:"0.0.35"},{id:"auto-upgrade-daemon",requiredMethods:["set-auto-upgrade-daemon"],sinceVersion:"0.0.31"},{id:"file-upload",requiredMethods:["file-relay-receive"],sinceVersion:"0.0.36",edition:"personal"}];export function isFeatureAvailable(r,n){const t=FEATURE_REGISTRY.find(e=>e.id===r);if(!t)return!1;const i=new Set(n);return t.requiredMethods.every(e=>i.has(e))}export function isSubFeatureAvailable(r,n,t,i){const e=FEATURE_REGISTRY.find(o=>o.id===r);if(!e||!isFeatureAvailable(r,t))return!1;const s=e.subFeatures?.find(o=>o.id===n);if(!s||!i||!u(i,s.sinceVersion))return!1;if(s.requiredMethods){const o=new Set(t);return s.requiredMethods.every(d=>o.has(d))}return!0}export function getSubFeatureMinVersion(r,n){return FEATURE_REGISTRY.find(i=>i.id===r)?.subFeatures?.find(i=>i.id===n)?.sinceVersion}export function getUnavailableFeatures(r,n){const t=[],i=new Set(r);for(const e of FEATURE_REGISTRY)if(!e.requiredMethods.every(s=>i.has(s)))t.push({id:e.id,sinceVersion:e.sinceVersion});else if(e.subFeatures&&n)for(const s of e.subFeatures){const o=!u(n,s.sinceVersion),d=s.requiredMethods!=null&&!s.requiredMethods.every(c=>i.has(c));(o||d)&&t.push({id:`${e.id}/${s.id}`,sinceVersion:s.sinceVersion})}return t}
package/dist/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export { createId } from './utils.js';
44
44
  export { errorMessage } from './errorMessage.js';
45
45
  export { BG_TASK_PREFIX, encodeBgTask, parseBgTask, isBgTaskLifecycleLine } from './bgTask.js';
46
46
  export type { BgTaskAction, ParsedBgTask, EncodeBgTaskInput } from './bgTask.js';
47
+ export { BASH_TOOL_NAMES, isBashToolName, extractCommandSubject, MIN_SUBJECT_LENGTH, } from './permissionSubject.js';
47
48
  export { SOCKET_EVENTS, type SocketEventName } from './socketEvents.js';
48
49
  export { TelemetryEventTypeSchema, TelemetryEventSchema, TelemetryReportPayloadSchema, sanitizeContext, } from './telemetry.js';
49
50
  export type { TelemetryEventType, TelemetryEvent, TelemetryReportPayload } from './telemetry.js';
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,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte,encodeVersionByte,KNOWN_DERIVATION_VERSIONS,CURRENT_DERIVATION_VERSION}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{BG_TASK_PREFIX,encodeBgTask,parseBgTask,isBgTaskLifecycleLine}from"./bgTask.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,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
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,parseVersionByte,encodeVersionByte,KNOWN_DERIVATION_VERSIONS,CURRENT_DERIVATION_VERSION}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{BG_TASK_PREFIX,encodeBgTask,parseBgTask,isBgTaskLifecycleLine}from"./bgTask.js";export{BASH_TOOL_NAMES,isBashToolName,extractCommandSubject,MIN_SUBJECT_LENGTH}from"./permissionSubject.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,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
@@ -107,16 +107,20 @@ export declare const SessionPermissionResolvedEventSchema: z.ZodObject<{
107
107
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
108
108
  /** Optional feedback from user explaining why permission was denied. */
109
109
  reason: z.ZodOptional<z.ZodString>;
110
+ /** Optional tool whitelist entries (e.g. ['Bash(git:)']). Used for display. */
111
+ allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
112
  }, "strip", z.ZodTypeAny, {
111
113
  t: "permission-resolved";
112
114
  requestId: string;
113
115
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
114
116
  reason?: string | undefined;
117
+ allowTools?: string[] | undefined;
115
118
  }, {
116
119
  t: "permission-resolved";
117
120
  requestId: string;
118
121
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
119
122
  reason?: string | undefined;
123
+ allowTools?: string[] | undefined;
120
124
  }>;
121
125
  export type SessionQuestionEvent = z.infer<typeof SessionQuestionEventSchema>;
122
126
  export type SessionPermissionRequestEvent = z.infer<typeof SessionPermissionRequestEventSchema>;
@@ -182,20 +186,20 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
182
186
  toolCallId: z.ZodString;
183
187
  /** Optional mode change (e.g. 'acceptEdits' for "allow all edits this session"). */
184
188
  mode: z.ZodOptional<z.ZodEnum<["default", "acceptEdits", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto"]>>;
185
- /** Optional tool whitelist (e.g. ['Bash(npm test)'] for "don't ask again for this tool"). */
189
+ /** Optional tool whitelist (e.g. ['Bash(git:)'] for "don't ask again"). */
186
190
  allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
187
191
  }, "strip", z.ZodTypeAny, {
188
192
  requestId: string;
189
193
  toolCallId: string;
190
194
  sessionId: string;
191
- mode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
192
195
  allowTools?: string[] | undefined;
196
+ mode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
193
197
  }, {
194
198
  requestId: string;
195
199
  toolCallId: string;
196
200
  sessionId: string;
197
- mode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
198
201
  allowTools?: string[] | undefined;
202
+ mode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
199
203
  }>;
200
204
  /** Params for denying a tool permission request. */
201
205
  export declare const DenyPermissionParamsSchema: z.ZodObject<{
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";export const QuestionOptionSchema=e.object({label:e.string(),description:e.string().default("")}),SessionQuestionEventSchema=e.object({t:e.literal("question"),requestId:e.string(),text:e.string(),questionType:e.enum(["free-text","yes-no","single-select","multi-select"]).default("free-text"),header:e.string().optional(),options:e.array(QuestionOptionSchema).optional(),multiSelect:e.boolean().optional()}),SessionPermissionRequestEventSchema=e.object({t:e.literal("permission-request"),requestId:e.string(),toolName:e.string(),toolCallId:e.string(),args:e.record(e.unknown()),description:e.string().default("")}),SessionAnswerEventSchema=e.object({t:e.literal("answer"),requestId:e.string(),text:e.string()}),PermissionActionSchema=e.enum(["approve","approve-all-edits","approve-tool","deny"]),SessionPermissionResolvedEventSchema=e.object({t:e.literal("permission-resolved"),requestId:e.string(),action:PermissionActionSchema,reason:e.string().optional()}),ImageAttachmentSchema=e.object({data:e.string(),mediaType:e.string()}),AnswerQuestionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),text:e.string(),images:e.array(ImageAttachmentSchema).max(5).optional()}),PermissionModeSchema=e.enum(["default","acceptEdits","autoEdit","bypassPermissions","plan","read-only","safe-yolo","yolo","suggest","auto-edit","full-auto"]),ApprovePermissionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),toolCallId:e.string(),mode:PermissionModeSchema.optional(),allowTools:e.array(e.string()).optional()}),DenyPermissionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),toolCallId:e.string(),reason:e.string().optional()});
1
+ "use strict";import{z as e}from"zod";export const QuestionOptionSchema=e.object({label:e.string(),description:e.string().default("")}),SessionQuestionEventSchema=e.object({t:e.literal("question"),requestId:e.string(),text:e.string(),questionType:e.enum(["free-text","yes-no","single-select","multi-select"]).default("free-text"),header:e.string().optional(),options:e.array(QuestionOptionSchema).optional(),multiSelect:e.boolean().optional()}),SessionPermissionRequestEventSchema=e.object({t:e.literal("permission-request"),requestId:e.string(),toolName:e.string(),toolCallId:e.string(),args:e.record(e.unknown()),description:e.string().default("")}),SessionAnswerEventSchema=e.object({t:e.literal("answer"),requestId:e.string(),text:e.string()}),PermissionActionSchema=e.enum(["approve","approve-all-edits","approve-tool","deny"]),SessionPermissionResolvedEventSchema=e.object({t:e.literal("permission-resolved"),requestId:e.string(),action:PermissionActionSchema,reason:e.string().optional(),allowTools:e.array(e.string()).optional()}),ImageAttachmentSchema=e.object({data:e.string(),mediaType:e.string()}),AnswerQuestionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),text:e.string(),images:e.array(ImageAttachmentSchema).max(5).optional()}),PermissionModeSchema=e.enum(["default","acceptEdits","autoEdit","bypassPermissions","plan","read-only","safe-yolo","yolo","suggest","auto-edit","full-auto"]),ApprovePermissionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),toolCallId:e.string(),mode:PermissionModeSchema.optional(),allowTools:e.array(e.string()).optional()}),DenyPermissionParamsSchema=e.object({sessionId:e.string(),requestId:e.string(),toolCallId:e.string(),reason:e.string().optional()});
@@ -203,6 +203,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
203
203
  cacheWriteTokens?: number | undefined;
204
204
  }>>;
205
205
  model: z.ZodOptional<z.ZodString>;
206
+ durationMs: z.ZodOptional<z.ZodNumber>;
206
207
  }, "strip", z.ZodTypeAny, {
207
208
  status: "completed" | "failed" | "cancelled";
208
209
  t: "turn-end";
@@ -213,6 +214,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
213
214
  cacheReadTokens?: number | undefined;
214
215
  cacheWriteTokens?: number | undefined;
215
216
  } | undefined;
217
+ durationMs?: number | undefined;
216
218
  }, {
217
219
  status: "completed" | "failed" | "cancelled";
218
220
  t: "turn-end";
@@ -223,6 +225,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
223
225
  cacheReadTokens?: number | undefined;
224
226
  cacheWriteTokens?: number | undefined;
225
227
  } | undefined;
228
+ durationMs?: number | undefined;
226
229
  }>, z.ZodObject<{
227
230
  t: z.ZodLiteral<"start">;
228
231
  title: z.ZodOptional<z.ZodString>;
@@ -318,16 +321,19 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
318
321
  requestId: z.ZodString;
319
322
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
320
323
  reason: z.ZodOptional<z.ZodString>;
324
+ allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
325
  }, "strip", z.ZodTypeAny, {
322
326
  t: "permission-resolved";
323
327
  requestId: string;
324
328
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
325
329
  reason?: string | undefined;
330
+ allowTools?: string[] | undefined;
326
331
  }, {
327
332
  t: "permission-resolved";
328
333
  requestId: string;
329
334
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
330
335
  reason?: string | undefined;
336
+ allowTools?: string[] | undefined;
331
337
  }>, z.ZodObject<{
332
338
  t: z.ZodLiteral<"image">;
333
339
  data: z.ZodString;
@@ -372,6 +378,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
372
378
  requestId: string;
373
379
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
374
380
  reason?: string | undefined;
381
+ allowTools?: string[] | undefined;
375
382
  } | {
376
383
  t: "text";
377
384
  text: string;
@@ -417,6 +424,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
417
424
  cacheReadTokens?: number | undefined;
418
425
  cacheWriteTokens?: number | undefined;
419
426
  } | undefined;
427
+ durationMs?: number | undefined;
420
428
  } | {
421
429
  t: "start";
422
430
  title?: string | undefined;
@@ -463,6 +471,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
463
471
  requestId: string;
464
472
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
465
473
  reason?: string | undefined;
474
+ allowTools?: string[] | undefined;
466
475
  } | {
467
476
  t: "text";
468
477
  text: string;
@@ -508,6 +517,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
508
517
  cacheReadTokens?: number | undefined;
509
518
  cacheWriteTokens?: number | undefined;
510
519
  } | undefined;
520
+ durationMs?: number | undefined;
511
521
  } | {
512
522
  t: "start";
513
523
  title?: string | undefined;
@@ -554,6 +564,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
554
564
  requestId: string;
555
565
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
556
566
  reason?: string | undefined;
567
+ allowTools?: string[] | undefined;
557
568
  } | {
558
569
  t: "text";
559
570
  text: string;
@@ -599,6 +610,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
599
610
  cacheReadTokens?: number | undefined;
600
611
  cacheWriteTokens?: number | undefined;
601
612
  } | undefined;
613
+ durationMs?: number | undefined;
602
614
  } | {
603
615
  t: "start";
604
616
  title?: string | undefined;
@@ -645,6 +657,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
645
657
  requestId: string;
646
658
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
647
659
  reason?: string | undefined;
660
+ allowTools?: string[] | undefined;
648
661
  } | {
649
662
  t: "text";
650
663
  text: string;
@@ -690,6 +703,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
690
703
  cacheReadTokens?: number | undefined;
691
704
  cacheWriteTokens?: number | undefined;
692
705
  } | undefined;
706
+ durationMs?: number | undefined;
693
707
  } | {
694
708
  t: "start";
695
709
  title?: string | undefined;
@@ -779,6 +793,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
779
793
  requestId: string;
780
794
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
781
795
  reason?: string | undefined;
796
+ allowTools?: string[] | undefined;
782
797
  } | {
783
798
  t: "text";
784
799
  text: string;
@@ -824,6 +839,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
824
839
  cacheReadTokens?: number | undefined;
825
840
  cacheWriteTokens?: number | undefined;
826
841
  } | undefined;
842
+ durationMs?: number | undefined;
827
843
  } | {
828
844
  t: "start";
829
845
  title?: string | undefined;
@@ -887,6 +903,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
887
903
  requestId: string;
888
904
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
889
905
  reason?: string | undefined;
906
+ allowTools?: string[] | undefined;
890
907
  } | {
891
908
  t: "text";
892
909
  text: string;
@@ -932,6 +949,7 @@ export declare const SessionProtocolMessageSchema: z.ZodObject<{
932
949
  cacheReadTokens?: number | undefined;
933
950
  cacheWriteTokens?: number | undefined;
934
951
  } | undefined;
952
+ durationMs?: number | undefined;
935
953
  } | {
936
954
  t: "start";
937
955
  title?: string | undefined;
@@ -1299,6 +1317,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1299
1317
  cacheWriteTokens?: number | undefined;
1300
1318
  }>>;
1301
1319
  model: z.ZodOptional<z.ZodString>;
1320
+ durationMs: z.ZodOptional<z.ZodNumber>;
1302
1321
  }, "strip", z.ZodTypeAny, {
1303
1322
  status: "completed" | "failed" | "cancelled";
1304
1323
  t: "turn-end";
@@ -1309,6 +1328,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1309
1328
  cacheReadTokens?: number | undefined;
1310
1329
  cacheWriteTokens?: number | undefined;
1311
1330
  } | undefined;
1331
+ durationMs?: number | undefined;
1312
1332
  }, {
1313
1333
  status: "completed" | "failed" | "cancelled";
1314
1334
  t: "turn-end";
@@ -1319,6 +1339,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1319
1339
  cacheReadTokens?: number | undefined;
1320
1340
  cacheWriteTokens?: number | undefined;
1321
1341
  } | undefined;
1342
+ durationMs?: number | undefined;
1322
1343
  }>, z.ZodObject<{
1323
1344
  t: z.ZodLiteral<"start">;
1324
1345
  title: z.ZodOptional<z.ZodString>;
@@ -1414,16 +1435,19 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1414
1435
  requestId: z.ZodString;
1415
1436
  action: z.ZodEnum<["approve", "approve-all-edits", "approve-tool", "deny"]>;
1416
1437
  reason: z.ZodOptional<z.ZodString>;
1438
+ allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1417
1439
  }, "strip", z.ZodTypeAny, {
1418
1440
  t: "permission-resolved";
1419
1441
  requestId: string;
1420
1442
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1421
1443
  reason?: string | undefined;
1444
+ allowTools?: string[] | undefined;
1422
1445
  }, {
1423
1446
  t: "permission-resolved";
1424
1447
  requestId: string;
1425
1448
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1426
1449
  reason?: string | undefined;
1450
+ allowTools?: string[] | undefined;
1427
1451
  }>, z.ZodObject<{
1428
1452
  t: z.ZodLiteral<"image">;
1429
1453
  data: z.ZodString;
@@ -1468,6 +1492,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1468
1492
  requestId: string;
1469
1493
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1470
1494
  reason?: string | undefined;
1495
+ allowTools?: string[] | undefined;
1471
1496
  } | {
1472
1497
  t: "text";
1473
1498
  text: string;
@@ -1513,6 +1538,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1513
1538
  cacheReadTokens?: number | undefined;
1514
1539
  cacheWriteTokens?: number | undefined;
1515
1540
  } | undefined;
1541
+ durationMs?: number | undefined;
1516
1542
  } | {
1517
1543
  t: "start";
1518
1544
  title?: string | undefined;
@@ -1559,6 +1585,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1559
1585
  requestId: string;
1560
1586
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1561
1587
  reason?: string | undefined;
1588
+ allowTools?: string[] | undefined;
1562
1589
  } | {
1563
1590
  t: "text";
1564
1591
  text: string;
@@ -1604,6 +1631,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1604
1631
  cacheReadTokens?: number | undefined;
1605
1632
  cacheWriteTokens?: number | undefined;
1606
1633
  } | undefined;
1634
+ durationMs?: number | undefined;
1607
1635
  } | {
1608
1636
  t: "start";
1609
1637
  title?: string | undefined;
@@ -1650,6 +1678,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1650
1678
  requestId: string;
1651
1679
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1652
1680
  reason?: string | undefined;
1681
+ allowTools?: string[] | undefined;
1653
1682
  } | {
1654
1683
  t: "text";
1655
1684
  text: string;
@@ -1695,6 +1724,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1695
1724
  cacheReadTokens?: number | undefined;
1696
1725
  cacheWriteTokens?: number | undefined;
1697
1726
  } | undefined;
1727
+ durationMs?: number | undefined;
1698
1728
  } | {
1699
1729
  t: "start";
1700
1730
  title?: string | undefined;
@@ -1741,6 +1771,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1741
1771
  requestId: string;
1742
1772
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1743
1773
  reason?: string | undefined;
1774
+ allowTools?: string[] | undefined;
1744
1775
  } | {
1745
1776
  t: "text";
1746
1777
  text: string;
@@ -1786,6 +1817,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1786
1817
  cacheReadTokens?: number | undefined;
1787
1818
  cacheWriteTokens?: number | undefined;
1788
1819
  } | undefined;
1820
+ durationMs?: number | undefined;
1789
1821
  } | {
1790
1822
  t: "start";
1791
1823
  title?: string | undefined;
@@ -1875,6 +1907,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1875
1907
  requestId: string;
1876
1908
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1877
1909
  reason?: string | undefined;
1910
+ allowTools?: string[] | undefined;
1878
1911
  } | {
1879
1912
  t: "text";
1880
1913
  text: string;
@@ -1920,6 +1953,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1920
1953
  cacheReadTokens?: number | undefined;
1921
1954
  cacheWriteTokens?: number | undefined;
1922
1955
  } | undefined;
1956
+ durationMs?: number | undefined;
1923
1957
  } | {
1924
1958
  t: "start";
1925
1959
  title?: string | undefined;
@@ -1983,6 +2017,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
1983
2017
  requestId: string;
1984
2018
  action: "approve" | "approve-all-edits" | "approve-tool" | "deny";
1985
2019
  reason?: string | undefined;
2020
+ allowTools?: string[] | undefined;
1986
2021
  } | {
1987
2022
  t: "text";
1988
2023
  text: string;
@@ -2028,6 +2063,7 @@ export declare const MessageContentSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
2028
2063
  cacheReadTokens?: number | undefined;
2029
2064
  cacheWriteTokens?: number | undefined;
2030
2065
  } | undefined;
2066
+ durationMs?: number | undefined;
2031
2067
  } | {
2032
2068
  t: "start";
2033
2069
  title?: string | undefined;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Raw agent tool names whose input carries a `command` field. These are the
3
+ * ORIGINAL agent-emitted names (NOT normalized): Claude `Bash`, OpenCode/Hermes/
4
+ * OpenClaw `execute`, Codex `shell`. The permission-request event and the danger
5
+ * detector both see raw names, so this set is matched against raw names.
6
+ */
7
+ export declare const BASH_TOOL_NAMES: ReadonlySet<string>;
8
+ /** True when `toolName` (a raw agent name) is a Bash-like command tool. */
9
+ export declare function isBashToolName(toolName: string): boolean;
10
+ /**
11
+ * Extract the prefix subject from a Bash-like command string:
12
+ * trim → first token (quote-aware so `"C:\Program Files\..."` isn't split on
13
+ * spaces) → basename (`.../pwsh.exe` → `pwsh.exe`).
14
+ *
15
+ * Returns '' ONLY for an empty/blank command. When the first token ends in a
16
+ * path separator its basename is empty; we fall back to the un-split token
17
+ * rather than '' — an empty subject makes every command match
18
+ * (`x.startsWith('')` is always true), the Bug 2 security hole.
19
+ */
20
+ export declare function extractCommandSubject(command: string): string;
21
+ /**
22
+ * Minimum length for a command subject to be used in a prefix rule.
23
+ * Single-char subjects (e.g. `#` from a comment line, `.` from a dotfile)
24
+ * are too broad — they effectively wildcard-match every command that starts
25
+ * with that character.
26
+ *
27
+ * Used by the front-end to reject overly broad rules before they are stored.
28
+ */
29
+ export declare const MIN_SUBJECT_LENGTH = 2;
30
+ //# sourceMappingURL=permissionSubject.d.ts.map
@@ -0,0 +1 @@
1
+ "use strict";export const BASH_TOOL_NAMES=new Set(["Bash","bash","execute","shell"]);export function isBashToolName(n){return BASH_TOOL_NAMES.has(n)}export function extractCommandSubject(n){const e=n.trim();if(!e)return"";let t;if(e[0]==='"'||e[0]==="'"){const c=e[0],o=e.indexOf(c,1);t=o>0?e.slice(1,o):e.slice(1)}else t=e.split(/\s+/)[0]??e;const s=t.split(/[/\\]/).pop();return(s||t).replace(/^["']|["']$/g,"")}export const MIN_SUBJECT_LENGTH=2;
package/dist/rpc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "list-sessions", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "cancel-task"]>;
2
+ export declare const RpcMethod: z.ZodEnum<["spawn-session", "stop-session", "list-sessions", "abort", "switch-mode", "approve-permission", "deny-permission", "answer-question", "shutdown-daemon", "get-messages", "get-stats", "get-team-stats", "start-invite", "get-machine-info", "get-agent-settings", "set-agent-settings", "get-labs-settings", "set-labs-settings", "set-auto-upgrade-daemon", "check-path", "backfill-history-session", "trigger-upgrade", "checkpoint-list", "checkpoint-diff", "checkpoint-rollback", "refresh-enterprise-models", "cancel-task", "file-relay-receive", "set-debug", "get-debug", "record-usage", "update-agent-models", "update-agent-modes"]>;
3
3
  export type RpcMethodType = z.infer<typeof RpcMethod>;
4
4
  /**
5
5
  * Session-scoped RPC methods — registered by `agentdock start` (CLI process).
package/dist/rpc.js CHANGED
@@ -1 +1 @@
1
- "use strict";import{z as o}from"zod";import{SessionMessageSchema as e}from"./messages.js";import{CLI_AGENT_TYPES as n,SPAWNABLE_AGENTS as s}from"./messageMeta.js";import{PermissionModeSchema as i}from"./interactionEvents.js";export const RpcMethod=o.enum(["spawn-session","stop-session","list-sessions","abort","switch-mode","approve-permission","deny-permission","answer-question","shutdown-daemon","get-messages","get-stats","get-team-stats","start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","set-auto-upgrade-daemon","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models","cancel-task"]),SESSION_RPC_METHODS=["answer-question","approve-permission","deny-permission","abort","stop-session","cancel-task"],MACHINE_RPC_METHODS=["start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","set-auto-upgrade-daemon","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"],DAEMON_REQUIRED_RPC_METHODS=[...SESSION_RPC_METHODS,...MACHINE_RPC_METHODS],RpcCallSchema=o.object({method:o.string().min(1),params:o.unknown(),timeout:o.number().int().positive().default(3e4)}),RpcResultSchema=o.discriminatedUnion("ok",[o.object({ok:o.literal(!0),result:o.unknown()}),o.object({ok:o.literal(!1),error:o.string()})]),SpawnSessionParamsSchema=o.object({agentType:o.enum(n),cwd:o.string().min(1),prompt:o.string().optional(),permissionMode:i.default("default"),env:o.record(o.string()).optional(),model:o.string().optional(),baseUrl:o.string().url().optional(),appendSystemPrompt:o.string().optional(),allowedTools:o.array(o.string()).optional(),disallowedTools:o.array(o.string()).optional(),mcpConfig:o.string().optional(),resumeSessionId:o.string().optional(),serverSessionId:o.string().optional(),maxTurns:o.number().int().positive().optional(),machineId:o.string().min(1).optional(),spawnToken:o.string().optional(),systemPrompt:o.string().optional(),systemPromptFile:o.string().optional(),appendSystemPromptFile:o.string().optional(),fallbackModel:o.string().optional(),maxBudgetUsd:o.number().positive().optional(),tools:o.array(o.string()).optional(),effort:o.enum(["low","medium","high","xhigh","max"]).optional(),addDirs:o.array(o.string()).optional(),agent:o.string().optional(),agents:o.string().optional(),jsonSchema:o.string().optional(),strictMcpConfig:o.boolean().optional(),chrome:o.boolean().optional(),worktree:o.union([o.boolean(),o.string()]).optional(),forkSession:o.boolean().optional(),sessionId:o.string().uuid().optional(),settings:o.string().optional(),betas:o.array(o.string()).optional(),brief:o.boolean().optional(),noSessionPersistence:o.boolean().optional(),includePartialMessages:o.boolean().optional(),replayUserMessages:o.boolean().optional(),settingSources:o.string().optional(),disableSlashCommands:o.boolean().optional(),files:o.array(o.string()).optional(),pluginDirs:o.array(o.string()).optional(),dangerouslySkipPermissions:o.boolean().optional(),allowDangerouslySkipPermissions:o.boolean().optional(),startupScripts:o.array(o.string()).optional(),source:o.enum(["managed","history","scheduled"]).default("managed"),background:o.boolean().default(!1),useWindowsTerminal:o.boolean().optional()}),GetMessagesParamsSchema=o.object({sessionId:o.string().min(1),fromSeq:o.number().int().nonnegative().optional(),limit:o.number().int().positive().default(100)}),GetMessagesResponseSchema=o.object({messages:o.array(e),total:o.number(),hasMore:o.boolean()}),CustomModelSchema=o.object({id:o.string().min(1),label:o.string().min(1)}),SkillDefinitionSchema=o.object({name:o.string().min(1),description:o.string(),userInvocable:o.boolean().default(!0),source:o.enum(["project","user"]).default("project"),projectPath:o.string().optional()}),AGENT_ENV_NONE="none",AgentEnvConfigSchema=o.object({httpProxy:o.string().optional(),httpsProxy:o.string().optional(),customEnv:o.record(o.string()).optional(),customModels:o.array(CustomModelSchema).optional()}),AgentSettingsSchema=o.object({defaults:AgentEnvConfigSchema.optional(),startupScripts:o.array(o.string()).optional(),telemetryEnabled:o.boolean().optional()}).merge(o.object(Object.fromEntries(s.map(t=>[t,AgentEnvConfigSchema.optional()])))),MachineInfoResponseSchema=o.object({homedir:o.string(),defaultCwd:o.string().optional(),recentCwds:o.array(o.string()),projectPaths:o.array(o.string()).optional().default([]),availableAgents:o.array(o.string()),agentModels:o.record(o.string(),o.array(o.object({id:o.string(),displayName:o.string(),isDefault:o.boolean(),hidden:o.boolean(),source:o.enum(["builtin","acp","env","custom"]).optional().default("acp")}))).optional(),agentModes:o.record(o.string(),o.array(o.object({id:o.string(),label:o.string()}))).optional(),agentCliPaths:o.record(o.string(),o.string()).optional(),agentSettings:AgentSettingsSchema.optional(),agentSkills:o.record(o.string(),o.array(SkillDefinitionSchema)).optional()}),CheckPathParamsSchema=o.object({cwd:o.string().min(1),machineId:o.string().min(1).optional()}),LabsSettingsSchema=o.object({historySessionSync:o.boolean().default(!1)});
1
+ "use strict";import{z as t}from"zod";import{SessionMessageSchema as e}from"./messages.js";import{CLI_AGENT_TYPES as n,SPAWNABLE_AGENTS as s}from"./messageMeta.js";import{PermissionModeSchema as i}from"./interactionEvents.js";export const RpcMethod=t.enum(["spawn-session","stop-session","list-sessions","abort","switch-mode","approve-permission","deny-permission","answer-question","shutdown-daemon","get-messages","get-stats","get-team-stats","start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","set-auto-upgrade-daemon","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models","cancel-task","file-relay-receive","set-debug","get-debug","record-usage","update-agent-models","update-agent-modes"]),SESSION_RPC_METHODS=["answer-question","approve-permission","deny-permission","abort","stop-session","cancel-task"],MACHINE_RPC_METHODS=["start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","set-auto-upgrade-daemon","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"],DAEMON_REQUIRED_RPC_METHODS=[...SESSION_RPC_METHODS,...MACHINE_RPC_METHODS],RpcCallSchema=t.object({method:t.string().min(1),params:t.unknown(),timeout:t.number().int().positive().default(3e4)}),RpcResultSchema=t.discriminatedUnion("ok",[t.object({ok:t.literal(!0),result:t.unknown()}),t.object({ok:t.literal(!1),error:t.string()})]),SpawnSessionParamsSchema=t.object({agentType:t.enum(n),cwd:t.string().min(1),prompt:t.string().optional(),permissionMode:i.default("default"),env:t.record(t.string()).optional(),model:t.string().optional(),baseUrl:t.string().url().optional(),appendSystemPrompt:t.string().optional(),allowedTools:t.array(t.string()).optional(),disallowedTools:t.array(t.string()).optional(),mcpConfig:t.string().optional(),resumeSessionId:t.string().optional(),serverSessionId:t.string().optional(),maxTurns:t.number().int().positive().optional(),machineId:t.string().min(1).optional(),spawnToken:t.string().optional(),systemPrompt:t.string().optional(),systemPromptFile:t.string().optional(),appendSystemPromptFile:t.string().optional(),fallbackModel:t.string().optional(),maxBudgetUsd:t.number().positive().optional(),tools:t.array(t.string()).optional(),effort:t.enum(["low","medium","high","xhigh","max"]).optional(),addDirs:t.array(t.string()).optional(),agent:t.string().optional(),agents:t.string().optional(),jsonSchema:t.string().optional(),strictMcpConfig:t.boolean().optional(),chrome:t.boolean().optional(),worktree:t.union([t.boolean(),t.string()]).optional(),forkSession:t.boolean().optional(),sessionId:t.string().uuid().optional(),settings:t.string().optional(),betas:t.array(t.string()).optional(),brief:t.boolean().optional(),noSessionPersistence:t.boolean().optional(),includePartialMessages:t.boolean().optional(),replayUserMessages:t.boolean().optional(),settingSources:t.string().optional(),disableSlashCommands:t.boolean().optional(),files:t.array(t.string()).optional(),pluginDirs:t.array(t.string()).optional(),dangerouslySkipPermissions:t.boolean().optional(),allowDangerouslySkipPermissions:t.boolean().optional(),startupScripts:t.array(t.string()).optional(),source:t.enum(["managed","history","scheduled"]).default("managed"),background:t.boolean().default(!1),useWindowsTerminal:t.boolean().optional()}),GetMessagesParamsSchema=t.object({sessionId:t.string().min(1),fromSeq:t.number().int().nonnegative().optional(),limit:t.number().int().positive().default(100)}),GetMessagesResponseSchema=t.object({messages:t.array(e),total:t.number(),hasMore:t.boolean()}),CustomModelSchema=t.object({id:t.string().min(1),label:t.string().min(1)}),SkillDefinitionSchema=t.object({name:t.string().min(1),description:t.string(),userInvocable:t.boolean().default(!0),source:t.enum(["project","user"]).default("project"),projectPath:t.string().optional()}),AGENT_ENV_NONE="none",AgentEnvConfigSchema=t.object({httpProxy:t.string().optional(),httpsProxy:t.string().optional(),customEnv:t.record(t.string()).optional(),customModels:t.array(CustomModelSchema).optional()}),AgentSettingsSchema=t.object({defaults:AgentEnvConfigSchema.optional(),startupScripts:t.array(t.string()).optional(),telemetryEnabled:t.boolean().optional()}).merge(t.object(Object.fromEntries(s.map(o=>[o,AgentEnvConfigSchema.optional()])))),MachineInfoResponseSchema=t.object({homedir:t.string(),defaultCwd:t.string().optional(),recentCwds:t.array(t.string()),projectPaths:t.array(t.string()).optional().default([]),availableAgents:t.array(t.string()),agentModels:t.record(t.string(),t.array(t.object({id:t.string(),displayName:t.string(),isDefault:t.boolean(),hidden:t.boolean(),source:t.enum(["builtin","acp","env","custom"]).optional().default("acp")}))).optional(),agentModes:t.record(t.string(),t.array(t.object({id:t.string(),label:t.string()}))).optional(),agentCliPaths:t.record(t.string(),t.string()).optional(),agentSettings:AgentSettingsSchema.optional(),agentSkills:t.record(t.string(),t.array(SkillDefinitionSchema)).optional()}),CheckPathParamsSchema=t.object({cwd:t.string().min(1),machineId:t.string().min(1).optional()}),LabsSettingsSchema=t.object({historySessionSync:t.boolean().default(!1)});
@@ -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 HISTORY_SESSION_BLOCKED: "history-session-blocked";
16
17
  readonly SESSION_CREATE: "session-create";
17
18
  readonly LIST_SESSIONS: "list-sessions";
18
19
  readonly UPDATE_METADATA: "update-metadata";
@@ -34,9 +35,13 @@ export declare const SOCKET_EVENTS: Readonly<{
34
35
  readonly MACHINE_REGISTER: "machine-register";
35
36
  readonly MACHINE_HEARTBEAT: "machine-heartbeat";
36
37
  readonly AGENT_CACHE_UPDATED: "agent-cache-updated";
38
+ readonly FILE_RELAY_CHUNK: "file-relay-chunk";
39
+ readonly FILE_RELAY_ACK: "file-relay-ack";
40
+ readonly FILE_RELAY_COMPLETE: "file-relay-complete";
37
41
  readonly GET_KNOWN_CLAUDE_SESSIONS: "get-known-claude-sessions";
38
42
  readonly REGISTER_HISTORY_SESSIONS: "register-history-sessions";
39
43
  readonly UPDATE_SYNC_STATUS: "update-sync-status";
44
+ readonly GET_HISTORY_BLOCKLIST: "get-history-blocklist";
40
45
  }>;
41
46
  export type SocketEventName = (typeof SOCKET_EVENTS)[keyof typeof SOCKET_EVENTS];
42
47
  //# 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",SESSION_CREATE:"session-create",LIST_SESSIONS:"list-sessions",UPDATE_METADATA:"update-metadata",UPDATE_STATE:"update-state",SESSION_ALIVE:"session-alive",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",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",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",SESSION_ALIVE:"session-alive",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"});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentdock/wire",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "description": "Protocol definitions for AgentDock — Zod schemas, message formats, RPC types",
5
5
  "license": "UNLICENSED",
6
6
  "author": "CCPark",