@kmmao/happy-wire 0.11.4 → 0.11.6

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/index.cjs CHANGED
@@ -68,19 +68,6 @@ const sessionFileEventSchema = z__namespace.object({
68
68
  const sessionTurnStartEventSchema = z__namespace.object({
69
69
  t: z__namespace.literal("turn-start")
70
70
  });
71
- const sessionTurnDiagnosticsSchema = z__namespace.object({
72
- version: z__namespace.literal(1),
73
- requestIds: z__namespace.array(z__namespace.string()).optional(),
74
- provider: z__namespace.string().optional(),
75
- queueWaitMs: z__namespace.number().optional(),
76
- socketToQueueMs: z__namespace.number().optional(),
77
- queueToTurnStartMs: z__namespace.number().optional(),
78
- firstOutputMs: z__namespace.number().optional(),
79
- firstTextMs: z__namespace.number().optional(),
80
- turnDurationMs: z__namespace.number().optional(),
81
- postFirstOutputMs: z__namespace.number().optional(),
82
- postFirstTextMs: z__namespace.number().optional()
83
- });
84
71
  const sessionStartEventSchema = z__namespace.object({
85
72
  t: z__namespace.literal("start"),
86
73
  title: z__namespace.string().optional()
@@ -112,8 +99,7 @@ const sessionTurnEndEventSchema = z__namespace.object({
112
99
  durationMs: z__namespace.number().optional(),
113
100
  totalCostUsd: z__namespace.number().optional(),
114
101
  numTurns: z__namespace.number().optional(),
115
- modelUsage: z__namespace.record(z__namespace.string(), sessionModelUsageSchema).optional(),
116
- diagnostics: sessionTurnDiagnosticsSchema.optional()
102
+ modelUsage: z__namespace.record(z__namespace.string(), sessionModelUsageSchema).optional()
117
103
  });
118
104
  const sessionStopEventSchema = z__namespace.object({
119
105
  t: z__namespace.literal("stop")
@@ -282,11 +268,12 @@ const MessageMetaSchema = z__namespace.object({
282
268
  allowedTools: z__namespace.array(z__namespace.string()).nullable().optional(),
283
269
  disallowedTools: z__namespace.array(z__namespace.string()).nullable().optional(),
284
270
  displayText: z__namespace.string().optional(),
285
- requestDiagnostics: z__namespace.object({
286
- version: z__namespace.literal(1),
287
- requestId: z__namespace.string(),
288
- clientCreatedAtMs: z__namespace.number()
289
- }).optional()
271
+ /**
272
+ * When false, the message is appended to the transcript without triggering
273
+ * an assistant turn. Requires @anthropic-ai/claude-agent-sdk 0.2.110+ on CLI.
274
+ * Defaults to true when unset (normal turn-triggering message).
275
+ */
276
+ shouldQuery: z__namespace.boolean().optional()
290
277
  });
291
278
 
292
279
  const UserMessageSchema = z__namespace.object({
@@ -1656,7 +1643,6 @@ exports.sessionTextEventSchema = sessionTextEventSchema;
1656
1643
  exports.sessionToolCallEndEventSchema = sessionToolCallEndEventSchema;
1657
1644
  exports.sessionToolCallStartEventSchema = sessionToolCallStartEventSchema;
1658
1645
  exports.sessionToolProgressEventSchema = sessionToolProgressEventSchema;
1659
- exports.sessionTurnDiagnosticsSchema = sessionTurnDiagnosticsSchema;
1660
1646
  exports.sessionTurnEndEventSchema = sessionTurnEndEventSchema;
1661
1647
  exports.sessionTurnEndStatusSchema = sessionTurnEndStatusSchema;
1662
1648
  exports.sessionTurnStartEventSchema = sessionTurnStartEventSchema;
package/dist/index.d.cts CHANGED
@@ -21,11 +21,7 @@ declare const MessageMetaSchema: z.ZodObject<{
21
21
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
22
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
23
  displayText: z.ZodOptional<z.ZodString>;
24
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
25
- version: z.ZodLiteral<1>;
26
- requestId: z.ZodString;
27
- clientCreatedAtMs: z.ZodNumber;
28
- }, z.core.$strip>>;
24
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
29
25
  }, z.core.$strip>;
30
26
  type MessageMeta = z.infer<typeof MessageMetaSchema>;
31
27
 
@@ -123,19 +119,6 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
123
119
  contextWindow: z.ZodNumber;
124
120
  maxOutputTokens: z.ZodNumber;
125
121
  }, z.core.$strip>>>;
126
- diagnostics: z.ZodOptional<z.ZodObject<{
127
- version: z.ZodLiteral<1>;
128
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
- provider: z.ZodOptional<z.ZodString>;
130
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
131
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
132
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
133
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
134
- firstTextMs: z.ZodOptional<z.ZodNumber>;
135
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
136
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
137
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
138
- }, z.core.$strip>>;
139
122
  }, z.core.$strip>, z.ZodObject<{
140
123
  t: z.ZodLiteral<"stop">;
141
124
  }, z.core.$strip>, z.ZodObject<{
@@ -246,11 +229,7 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
246
229
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
247
230
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
248
231
  displayText: z.ZodOptional<z.ZodString>;
249
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
250
- version: z.ZodLiteral<1>;
251
- requestId: z.ZodString;
252
- clientCreatedAtMs: z.ZodNumber;
253
- }, z.core.$strip>>;
232
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
254
233
  }, z.core.$strip>>;
255
234
  }, z.core.$strip>;
256
235
  type SessionProtocolMessage = z.infer<typeof SessionProtocolMessageSchema>;
@@ -281,11 +260,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
260
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
282
261
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
283
262
  displayText: z.ZodOptional<z.ZodString>;
284
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
285
- version: z.ZodLiteral<1>;
286
- requestId: z.ZodString;
287
- clientCreatedAtMs: z.ZodNumber;
288
- }, z.core.$strip>>;
263
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
289
264
  }, z.core.$strip>>;
290
265
  }, z.core.$strip>, z.ZodObject<{
291
266
  role: z.ZodLiteral<"agent">;
@@ -312,11 +287,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
287
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
313
288
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
314
289
  displayText: z.ZodOptional<z.ZodString>;
315
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
316
- version: z.ZodLiteral<1>;
317
- requestId: z.ZodString;
318
- clientCreatedAtMs: z.ZodNumber;
319
- }, z.core.$strip>>;
290
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
320
291
  }, z.core.$strip>>;
321
292
  }, z.core.$strip>, z.ZodObject<{
322
293
  role: z.ZodLiteral<"session">;
@@ -394,19 +365,6 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
365
  contextWindow: z.ZodNumber;
395
366
  maxOutputTokens: z.ZodNumber;
396
367
  }, z.core.$strip>>>;
397
- diagnostics: z.ZodOptional<z.ZodObject<{
398
- version: z.ZodLiteral<1>;
399
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
- provider: z.ZodOptional<z.ZodString>;
401
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
402
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
403
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
404
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
405
- firstTextMs: z.ZodOptional<z.ZodNumber>;
406
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
407
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
408
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
409
- }, z.core.$strip>>;
410
368
  }, z.core.$strip>, z.ZodObject<{
411
369
  t: z.ZodLiteral<"stop">;
412
370
  }, z.core.$strip>, z.ZodObject<{
@@ -517,11 +475,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
475
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
518
476
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
519
477
  displayText: z.ZodOptional<z.ZodString>;
520
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
521
- version: z.ZodLiteral<1>;
522
- requestId: z.ZodString;
523
- clientCreatedAtMs: z.ZodNumber;
524
- }, z.core.$strip>>;
478
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
525
479
  }, z.core.$strip>>;
526
480
  }, z.core.$strip>], "role">;
527
481
  type MessageContent = z.infer<typeof MessageContentSchema>;
@@ -834,11 +788,7 @@ declare const UserMessageSchema: z.ZodObject<{
834
788
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
835
789
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
836
790
  displayText: z.ZodOptional<z.ZodString>;
837
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
838
- version: z.ZodLiteral<1>;
839
- requestId: z.ZodString;
840
- clientCreatedAtMs: z.ZodNumber;
841
- }, z.core.$strip>>;
791
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
842
792
  }, z.core.$strip>>;
843
793
  }, z.core.$strip>;
844
794
  type UserMessage = z.infer<typeof UserMessageSchema>;
@@ -867,11 +817,7 @@ declare const AgentMessageSchema: z.ZodObject<{
867
817
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
868
818
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
869
819
  displayText: z.ZodOptional<z.ZodString>;
870
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
871
- version: z.ZodLiteral<1>;
872
- requestId: z.ZodString;
873
- clientCreatedAtMs: z.ZodNumber;
874
- }, z.core.$strip>>;
820
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
875
821
  }, z.core.$strip>>;
876
822
  }, z.core.$strip>;
877
823
  type AgentMessage = z.infer<typeof AgentMessageSchema>;
@@ -902,11 +848,7 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
902
848
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
903
849
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
904
850
  displayText: z.ZodOptional<z.ZodString>;
905
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
906
- version: z.ZodLiteral<1>;
907
- requestId: z.ZodString;
908
- clientCreatedAtMs: z.ZodNumber;
909
- }, z.core.$strip>>;
851
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
910
852
  }, z.core.$strip>>;
911
853
  }, z.core.$strip>, z.ZodObject<{
912
854
  role: z.ZodLiteral<"agent">;
@@ -933,11 +875,7 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
933
875
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
934
876
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
935
877
  displayText: z.ZodOptional<z.ZodString>;
936
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
937
- version: z.ZodLiteral<1>;
938
- requestId: z.ZodString;
939
- clientCreatedAtMs: z.ZodNumber;
940
- }, z.core.$strip>>;
878
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
941
879
  }, z.core.$strip>>;
942
880
  }, z.core.$strip>], "role">;
943
881
  type LegacyMessageContent = z.infer<typeof LegacyMessageContentSchema>;
@@ -990,20 +928,6 @@ declare const sessionFileEventSchema: z.ZodObject<{
990
928
  declare const sessionTurnStartEventSchema: z.ZodObject<{
991
929
  t: z.ZodLiteral<"turn-start">;
992
930
  }, z.core.$strip>;
993
- declare const sessionTurnDiagnosticsSchema: z.ZodObject<{
994
- version: z.ZodLiteral<1>;
995
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
996
- provider: z.ZodOptional<z.ZodString>;
997
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
998
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
999
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1000
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1001
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1002
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1003
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1004
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1005
- }, z.core.$strip>;
1006
- type SessionTurnDiagnostics = z.infer<typeof sessionTurnDiagnosticsSchema>;
1007
931
  declare const sessionStartEventSchema: z.ZodObject<{
1008
932
  t: z.ZodLiteral<"start">;
1009
933
  title: z.ZodOptional<z.ZodString>;
@@ -1050,19 +974,6 @@ declare const sessionTurnEndEventSchema: z.ZodObject<{
1050
974
  contextWindow: z.ZodNumber;
1051
975
  maxOutputTokens: z.ZodNumber;
1052
976
  }, z.core.$strip>>>;
1053
- diagnostics: z.ZodOptional<z.ZodObject<{
1054
- version: z.ZodLiteral<1>;
1055
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1056
- provider: z.ZodOptional<z.ZodString>;
1057
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1058
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1059
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1060
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1061
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1062
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1063
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1064
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1065
- }, z.core.$strip>>;
1066
977
  }, z.core.$strip>;
1067
978
  declare const sessionStopEventSchema: z.ZodObject<{
1068
979
  t: z.ZodLiteral<"stop">;
@@ -1234,19 +1145,6 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1234
1145
  contextWindow: z.ZodNumber;
1235
1146
  maxOutputTokens: z.ZodNumber;
1236
1147
  }, z.core.$strip>>>;
1237
- diagnostics: z.ZodOptional<z.ZodObject<{
1238
- version: z.ZodLiteral<1>;
1239
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1240
- provider: z.ZodOptional<z.ZodString>;
1241
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1242
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1243
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1244
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1245
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1246
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1247
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1248
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1249
- }, z.core.$strip>>;
1250
1148
  }, z.core.$strip>, z.ZodObject<{
1251
1149
  t: z.ZodLiteral<"stop">;
1252
1150
  }, z.core.$strip>, z.ZodObject<{
@@ -1411,19 +1309,6 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1411
1309
  contextWindow: z.ZodNumber;
1412
1310
  maxOutputTokens: z.ZodNumber;
1413
1311
  }, z.core.$strip>>>;
1414
- diagnostics: z.ZodOptional<z.ZodObject<{
1415
- version: z.ZodLiteral<1>;
1416
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1417
- provider: z.ZodOptional<z.ZodString>;
1418
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1419
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1420
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1421
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1422
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1423
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1424
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1425
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1426
- }, z.core.$strip>>;
1427
1312
  }, z.core.$strip>, z.ZodObject<{
1428
1313
  t: z.ZodLiteral<"stop">;
1429
1314
  }, z.core.$strip>, z.ZodObject<{
@@ -3544,5 +3429,5 @@ declare function normalizeResolvedRuntimeProfile(input: unknown, options?: {
3544
3429
  }): ResolvedRuntimeProfile | undefined;
3545
3430
  declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile | null | undefined): boolean;
3546
3431
 
3547
- export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnDiagnosticsSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3548
- export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnDiagnostics, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
3432
+ export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3433
+ export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
package/dist/index.d.mts CHANGED
@@ -21,11 +21,7 @@ declare const MessageMetaSchema: z.ZodObject<{
21
21
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
22
22
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
23
23
  displayText: z.ZodOptional<z.ZodString>;
24
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
25
- version: z.ZodLiteral<1>;
26
- requestId: z.ZodString;
27
- clientCreatedAtMs: z.ZodNumber;
28
- }, z.core.$strip>>;
24
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
29
25
  }, z.core.$strip>;
30
26
  type MessageMeta = z.infer<typeof MessageMetaSchema>;
31
27
 
@@ -123,19 +119,6 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
123
119
  contextWindow: z.ZodNumber;
124
120
  maxOutputTokens: z.ZodNumber;
125
121
  }, z.core.$strip>>>;
126
- diagnostics: z.ZodOptional<z.ZodObject<{
127
- version: z.ZodLiteral<1>;
128
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
- provider: z.ZodOptional<z.ZodString>;
130
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
131
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
132
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
133
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
134
- firstTextMs: z.ZodOptional<z.ZodNumber>;
135
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
136
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
137
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
138
- }, z.core.$strip>>;
139
122
  }, z.core.$strip>, z.ZodObject<{
140
123
  t: z.ZodLiteral<"stop">;
141
124
  }, z.core.$strip>, z.ZodObject<{
@@ -246,11 +229,7 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
246
229
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
247
230
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
248
231
  displayText: z.ZodOptional<z.ZodString>;
249
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
250
- version: z.ZodLiteral<1>;
251
- requestId: z.ZodString;
252
- clientCreatedAtMs: z.ZodNumber;
253
- }, z.core.$strip>>;
232
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
254
233
  }, z.core.$strip>>;
255
234
  }, z.core.$strip>;
256
235
  type SessionProtocolMessage = z.infer<typeof SessionProtocolMessageSchema>;
@@ -281,11 +260,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
260
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
282
261
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
283
262
  displayText: z.ZodOptional<z.ZodString>;
284
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
285
- version: z.ZodLiteral<1>;
286
- requestId: z.ZodString;
287
- clientCreatedAtMs: z.ZodNumber;
288
- }, z.core.$strip>>;
263
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
289
264
  }, z.core.$strip>>;
290
265
  }, z.core.$strip>, z.ZodObject<{
291
266
  role: z.ZodLiteral<"agent">;
@@ -312,11 +287,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
287
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
313
288
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
314
289
  displayText: z.ZodOptional<z.ZodString>;
315
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
316
- version: z.ZodLiteral<1>;
317
- requestId: z.ZodString;
318
- clientCreatedAtMs: z.ZodNumber;
319
- }, z.core.$strip>>;
290
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
320
291
  }, z.core.$strip>>;
321
292
  }, z.core.$strip>, z.ZodObject<{
322
293
  role: z.ZodLiteral<"session">;
@@ -394,19 +365,6 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
394
365
  contextWindow: z.ZodNumber;
395
366
  maxOutputTokens: z.ZodNumber;
396
367
  }, z.core.$strip>>>;
397
- diagnostics: z.ZodOptional<z.ZodObject<{
398
- version: z.ZodLiteral<1>;
399
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
- provider: z.ZodOptional<z.ZodString>;
401
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
402
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
403
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
404
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
405
- firstTextMs: z.ZodOptional<z.ZodNumber>;
406
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
407
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
408
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
409
- }, z.core.$strip>>;
410
368
  }, z.core.$strip>, z.ZodObject<{
411
369
  t: z.ZodLiteral<"stop">;
412
370
  }, z.core.$strip>, z.ZodObject<{
@@ -517,11 +475,7 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
517
475
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
518
476
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
519
477
  displayText: z.ZodOptional<z.ZodString>;
520
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
521
- version: z.ZodLiteral<1>;
522
- requestId: z.ZodString;
523
- clientCreatedAtMs: z.ZodNumber;
524
- }, z.core.$strip>>;
478
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
525
479
  }, z.core.$strip>>;
526
480
  }, z.core.$strip>], "role">;
527
481
  type MessageContent = z.infer<typeof MessageContentSchema>;
@@ -834,11 +788,7 @@ declare const UserMessageSchema: z.ZodObject<{
834
788
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
835
789
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
836
790
  displayText: z.ZodOptional<z.ZodString>;
837
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
838
- version: z.ZodLiteral<1>;
839
- requestId: z.ZodString;
840
- clientCreatedAtMs: z.ZodNumber;
841
- }, z.core.$strip>>;
791
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
842
792
  }, z.core.$strip>>;
843
793
  }, z.core.$strip>;
844
794
  type UserMessage = z.infer<typeof UserMessageSchema>;
@@ -867,11 +817,7 @@ declare const AgentMessageSchema: z.ZodObject<{
867
817
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
868
818
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
869
819
  displayText: z.ZodOptional<z.ZodString>;
870
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
871
- version: z.ZodLiteral<1>;
872
- requestId: z.ZodString;
873
- clientCreatedAtMs: z.ZodNumber;
874
- }, z.core.$strip>>;
820
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
875
821
  }, z.core.$strip>>;
876
822
  }, z.core.$strip>;
877
823
  type AgentMessage = z.infer<typeof AgentMessageSchema>;
@@ -902,11 +848,7 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
902
848
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
903
849
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
904
850
  displayText: z.ZodOptional<z.ZodString>;
905
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
906
- version: z.ZodLiteral<1>;
907
- requestId: z.ZodString;
908
- clientCreatedAtMs: z.ZodNumber;
909
- }, z.core.$strip>>;
851
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
910
852
  }, z.core.$strip>>;
911
853
  }, z.core.$strip>, z.ZodObject<{
912
854
  role: z.ZodLiteral<"agent">;
@@ -933,11 +875,7 @@ declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
933
875
  allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
934
876
  disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
935
877
  displayText: z.ZodOptional<z.ZodString>;
936
- requestDiagnostics: z.ZodOptional<z.ZodObject<{
937
- version: z.ZodLiteral<1>;
938
- requestId: z.ZodString;
939
- clientCreatedAtMs: z.ZodNumber;
940
- }, z.core.$strip>>;
878
+ shouldQuery: z.ZodOptional<z.ZodBoolean>;
941
879
  }, z.core.$strip>>;
942
880
  }, z.core.$strip>], "role">;
943
881
  type LegacyMessageContent = z.infer<typeof LegacyMessageContentSchema>;
@@ -990,20 +928,6 @@ declare const sessionFileEventSchema: z.ZodObject<{
990
928
  declare const sessionTurnStartEventSchema: z.ZodObject<{
991
929
  t: z.ZodLiteral<"turn-start">;
992
930
  }, z.core.$strip>;
993
- declare const sessionTurnDiagnosticsSchema: z.ZodObject<{
994
- version: z.ZodLiteral<1>;
995
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
996
- provider: z.ZodOptional<z.ZodString>;
997
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
998
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
999
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1000
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1001
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1002
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1003
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1004
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1005
- }, z.core.$strip>;
1006
- type SessionTurnDiagnostics = z.infer<typeof sessionTurnDiagnosticsSchema>;
1007
931
  declare const sessionStartEventSchema: z.ZodObject<{
1008
932
  t: z.ZodLiteral<"start">;
1009
933
  title: z.ZodOptional<z.ZodString>;
@@ -1050,19 +974,6 @@ declare const sessionTurnEndEventSchema: z.ZodObject<{
1050
974
  contextWindow: z.ZodNumber;
1051
975
  maxOutputTokens: z.ZodNumber;
1052
976
  }, z.core.$strip>>>;
1053
- diagnostics: z.ZodOptional<z.ZodObject<{
1054
- version: z.ZodLiteral<1>;
1055
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1056
- provider: z.ZodOptional<z.ZodString>;
1057
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1058
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1059
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1060
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1061
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1062
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1063
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1064
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1065
- }, z.core.$strip>>;
1066
977
  }, z.core.$strip>;
1067
978
  declare const sessionStopEventSchema: z.ZodObject<{
1068
979
  t: z.ZodLiteral<"stop">;
@@ -1234,19 +1145,6 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1234
1145
  contextWindow: z.ZodNumber;
1235
1146
  maxOutputTokens: z.ZodNumber;
1236
1147
  }, z.core.$strip>>>;
1237
- diagnostics: z.ZodOptional<z.ZodObject<{
1238
- version: z.ZodLiteral<1>;
1239
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1240
- provider: z.ZodOptional<z.ZodString>;
1241
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1242
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1243
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1244
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1245
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1246
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1247
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1248
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1249
- }, z.core.$strip>>;
1250
1148
  }, z.core.$strip>, z.ZodObject<{
1251
1149
  t: z.ZodLiteral<"stop">;
1252
1150
  }, z.core.$strip>, z.ZodObject<{
@@ -1411,19 +1309,6 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1411
1309
  contextWindow: z.ZodNumber;
1412
1310
  maxOutputTokens: z.ZodNumber;
1413
1311
  }, z.core.$strip>>>;
1414
- diagnostics: z.ZodOptional<z.ZodObject<{
1415
- version: z.ZodLiteral<1>;
1416
- requestIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1417
- provider: z.ZodOptional<z.ZodString>;
1418
- queueWaitMs: z.ZodOptional<z.ZodNumber>;
1419
- socketToQueueMs: z.ZodOptional<z.ZodNumber>;
1420
- queueToTurnStartMs: z.ZodOptional<z.ZodNumber>;
1421
- firstOutputMs: z.ZodOptional<z.ZodNumber>;
1422
- firstTextMs: z.ZodOptional<z.ZodNumber>;
1423
- turnDurationMs: z.ZodOptional<z.ZodNumber>;
1424
- postFirstOutputMs: z.ZodOptional<z.ZodNumber>;
1425
- postFirstTextMs: z.ZodOptional<z.ZodNumber>;
1426
- }, z.core.$strip>>;
1427
1312
  }, z.core.$strip>, z.ZodObject<{
1428
1313
  t: z.ZodLiteral<"stop">;
1429
1314
  }, z.core.$strip>, z.ZodObject<{
@@ -3544,5 +3429,5 @@ declare function normalizeResolvedRuntimeProfile(input: unknown, options?: {
3544
3429
  }): ResolvedRuntimeProfile | undefined;
3545
3430
  declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile | null | undefined): boolean;
3546
3431
 
3547
- export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnDiagnosticsSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3548
- export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnDiagnostics, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
3432
+ export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3433
+ export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
package/dist/index.mjs CHANGED
@@ -48,19 +48,6 @@ const sessionFileEventSchema = z.object({
48
48
  const sessionTurnStartEventSchema = z.object({
49
49
  t: z.literal("turn-start")
50
50
  });
51
- const sessionTurnDiagnosticsSchema = z.object({
52
- version: z.literal(1),
53
- requestIds: z.array(z.string()).optional(),
54
- provider: z.string().optional(),
55
- queueWaitMs: z.number().optional(),
56
- socketToQueueMs: z.number().optional(),
57
- queueToTurnStartMs: z.number().optional(),
58
- firstOutputMs: z.number().optional(),
59
- firstTextMs: z.number().optional(),
60
- turnDurationMs: z.number().optional(),
61
- postFirstOutputMs: z.number().optional(),
62
- postFirstTextMs: z.number().optional()
63
- });
64
51
  const sessionStartEventSchema = z.object({
65
52
  t: z.literal("start"),
66
53
  title: z.string().optional()
@@ -92,8 +79,7 @@ const sessionTurnEndEventSchema = z.object({
92
79
  durationMs: z.number().optional(),
93
80
  totalCostUsd: z.number().optional(),
94
81
  numTurns: z.number().optional(),
95
- modelUsage: z.record(z.string(), sessionModelUsageSchema).optional(),
96
- diagnostics: sessionTurnDiagnosticsSchema.optional()
82
+ modelUsage: z.record(z.string(), sessionModelUsageSchema).optional()
97
83
  });
98
84
  const sessionStopEventSchema = z.object({
99
85
  t: z.literal("stop")
@@ -262,11 +248,12 @@ const MessageMetaSchema = z.object({
262
248
  allowedTools: z.array(z.string()).nullable().optional(),
263
249
  disallowedTools: z.array(z.string()).nullable().optional(),
264
250
  displayText: z.string().optional(),
265
- requestDiagnostics: z.object({
266
- version: z.literal(1),
267
- requestId: z.string(),
268
- clientCreatedAtMs: z.number()
269
- }).optional()
251
+ /**
252
+ * When false, the message is appended to the transcript without triggering
253
+ * an assistant turn. Requires @anthropic-ai/claude-agent-sdk 0.2.110+ on CLI.
254
+ * Defaults to true when unset (normal turn-triggering message).
255
+ */
256
+ shouldQuery: z.boolean().optional()
270
257
  });
271
258
 
272
259
  const UserMessageSchema = z.object({
@@ -1478,4 +1465,4 @@ function isTrustedRuntimeProfile(runtimeProfile) {
1478
1465
  return runtimeProfile?.trust === "trusted";
1479
1466
  }
1480
1467
 
1481
- export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnDiagnosticsSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
1468
+ export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmmao/happy-wire",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",