@kmmao/happy-wire 0.11.7 → 0.11.8

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
@@ -1493,10 +1493,41 @@ const sessionProgressTodoStatusSchema = z__namespace.enum([
1493
1493
  const sessionProgressTodoSchema = z__namespace.object({
1494
1494
  content: z__namespace.string(),
1495
1495
  status: sessionProgressTodoStatusSchema,
1496
- stage: z__namespace.string().optional()
1496
+ /** SDK-native: imperative-present form shown when status is in_progress. */
1497
+ activeForm: z__namespace.string().optional(),
1498
+ /** Optional phase/stage label a step belongs to, e.g. "Phase 2". */
1499
+ stage: z__namespace.string().optional(),
1500
+ /**
1501
+ * Carried over from SDK's `TodoWriteOutput.verificationNudgeNeeded` — SDK
1502
+ * flags items it suspects were marked completed without verification.
1503
+ */
1504
+ verificationNudgeNeeded: z__namespace.boolean().optional()
1497
1505
  });
1498
- const sessionProgressStateSchema = z__namespace.object({
1506
+ const sessionProgressListSchema = z__namespace.object({
1507
+ /** Stable UUID for tab switching / explicit Agent addressing. */
1508
+ id: z__namespace.string(),
1509
+ /** Short human-readable label; auto-derived from first todo if absent. */
1510
+ label: z__namespace.string().optional(),
1499
1511
  todos: z__namespace.array(sessionProgressTodoSchema),
1512
+ /** Optional overall stage for this list (set via MCP). */
1513
+ currentStage: z__namespace.string().optional(),
1514
+ /** Optional blocker list (set via MCP). */
1515
+ blockers: z__namespace.array(z__namespace.string()).optional(),
1516
+ startedAt: z__namespace.number(),
1517
+ updatedAt: z__namespace.number(),
1518
+ /** When this list stopped being active (got pushed to history). */
1519
+ archivedAt: z__namespace.number().optional()
1520
+ });
1521
+ const sessionProgressStateSchema = z__namespace.object({
1522
+ /** Ordered by startedAt asc; last item is typically the active one. */
1523
+ lists: z__namespace.array(sessionProgressListSchema).optional(),
1524
+ /** Points at the active list within `lists`. */
1525
+ currentListId: z__namespace.string().optional(),
1526
+ /**
1527
+ * Legacy flat fields. Still written for backward compat with older
1528
+ * readers — kept in sync with `lists[currentListId]` on each update.
1529
+ */
1530
+ todos: z__namespace.array(sessionProgressTodoSchema).optional(),
1500
1531
  currentStage: z__namespace.string().optional(),
1501
1532
  blockers: z__namespace.array(z__namespace.string()).optional(),
1502
1533
  updatedAt: z__namespace.number()
@@ -1653,6 +1684,7 @@ exports.sessionEventSchema = sessionEventSchema;
1653
1684
  exports.sessionFileEventSchema = sessionFileEventSchema;
1654
1685
  exports.sessionModelUsageSchema = sessionModelUsageSchema;
1655
1686
  exports.sessionNeedsContinueEventSchema = sessionNeedsContinueEventSchema;
1687
+ exports.sessionProgressListSchema = sessionProgressListSchema;
1656
1688
  exports.sessionProgressStateSchema = sessionProgressStateSchema;
1657
1689
  exports.sessionProgressTodoSchema = sessionProgressTodoSchema;
1658
1690
  exports.sessionProgressTodoStatusSchema = sessionProgressTodoStatusSchema;
package/dist/index.d.cts CHANGED
@@ -2102,9 +2102,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2102
2102
  }>;
2103
2103
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2104
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
- session: "session";
2106
2105
  user: "user";
2107
2106
  supervisor: "supervisor";
2107
+ session: "session";
2108
2108
  }>;
2109
2109
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2110
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2116,8 +2116,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
2116
2116
  type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
2117
2117
  declare const KnowledgeStatusSchema: z.ZodEnum<{
2118
2118
  active: "active";
2119
- archived: "archived";
2120
2119
  superseded: "superseded";
2120
+ archived: "archived";
2121
2121
  }>;
2122
2122
  type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
2123
2123
  declare const KnowledgeConfidenceSchema: z.ZodEnum<{
@@ -2135,9 +2135,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2135
2135
  warning: "warning";
2136
2136
  }>;
2137
2137
  contributorType: z.ZodEnum<{
2138
- session: "session";
2139
2138
  user: "user";
2140
2139
  supervisor: "supervisor";
2140
+ session: "session";
2141
2141
  }>;
2142
2142
  action: z.ZodEnum<{
2143
2143
  create: "create";
@@ -2168,8 +2168,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
2168
2168
  declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
2169
2169
  status: z.ZodOptional<z.ZodEnum<{
2170
2170
  active: "active";
2171
- archived: "archived";
2172
2171
  superseded: "superseded";
2172
+ archived: "archived";
2173
2173
  }>>;
2174
2174
  pinned: z.ZodOptional<z.ZodBoolean>;
2175
2175
  title: z.ZodOptional<z.ZodString>;
@@ -2192,8 +2192,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
2192
2192
  }>>;
2193
2193
  status: z.ZodOptional<z.ZodEnum<{
2194
2194
  active: "active";
2195
- archived: "archived";
2196
2195
  superseded: "superseded";
2196
+ archived: "archived";
2197
2197
  }>>;
2198
2198
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2199
2199
  search: z.ZodOptional<z.ZodString>;
@@ -2281,8 +2281,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
2281
2281
  }>;
2282
2282
  status: z.ZodEnum<{
2283
2283
  active: "active";
2284
- archived: "archived";
2285
2284
  superseded: "superseded";
2285
+ archived: "archived";
2286
2286
  }>;
2287
2287
  title: z.ZodString;
2288
2288
  content: z.ZodString;
@@ -2314,8 +2314,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
2314
2314
  }>;
2315
2315
  status: z.ZodEnum<{
2316
2316
  active: "active";
2317
- archived: "archived";
2318
2317
  superseded: "superseded";
2318
+ archived: "archived";
2319
2319
  }>;
2320
2320
  title: z.ZodString;
2321
2321
  content: z.ZodString;
@@ -2614,10 +2614,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2614
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2615
 
2616
2616
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2617
  supervisor: "supervisor";
2619
2618
  task: "task";
2620
2619
  trigger: "trigger";
2620
+ session: "session";
2621
2621
  knowledge: "knowledge";
2622
2622
  system: "system";
2623
2623
  }>;
@@ -2631,10 +2631,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2631
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2632
  id: z.ZodString;
2633
2633
  category: z.ZodEnum<{
2634
- session: "session";
2635
2634
  supervisor: "supervisor";
2636
2635
  task: "task";
2637
2636
  trigger: "trigger";
2637
+ session: "session";
2638
2638
  knowledge: "knowledge";
2639
2639
  system: "system";
2640
2640
  }>;
@@ -2659,10 +2659,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2659
  item: z.ZodObject<{
2660
2660
  id: z.ZodString;
2661
2661
  category: z.ZodEnum<{
2662
- session: "session";
2663
2662
  supervisor: "supervisor";
2664
2663
  task: "task";
2665
2664
  trigger: "trigger";
2665
+ session: "session";
2666
2666
  knowledge: "knowledge";
2667
2667
  system: "system";
2668
2668
  }>;
@@ -3432,11 +3432,14 @@ declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile
3432
3432
  /**
3433
3433
  * Shared schemas for live session state surfaced to the App's Progress tab.
3434
3434
  *
3435
- * These are written by the Agent via MCP tools (update_progress /
3436
- * update_session_summary) and read by the App through the encrypted
3437
- * `Session.metadata` blob no new server storage or migration needed.
3435
+ * These live inside the encrypted `Session.metadata` blob no new server
3436
+ * storage or migration needed. Two sources feed this state:
3437
+ * 1. CLI auto-mirror hook: captures SDK's TodoWrite tool_result and
3438
+ * writes todos directly (no Agent prompting required).
3439
+ * 2. MCP tools update_progress / update_session_summary: optional
3440
+ * Agent-driven paths for richer fields the SDK doesn't expose.
3438
3441
  *
3439
- * Keep these fields small: they ride inside the metadata envelope on every
3442
+ * Keep fields small: they ride inside the metadata envelope on every
3440
3443
  * socket update, so avoid attaching large structured content here.
3441
3444
  */
3442
3445
  declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
@@ -3445,6 +3448,10 @@ declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
3445
3448
  in_progress: "in_progress";
3446
3449
  }>;
3447
3450
  type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
3451
+ /**
3452
+ * One checklist item. Mirrors the shape of Claude Code SDK's TodoWriteInput
3453
+ * items, with Happy extensions (`stage`, `verificationNudgeNeeded`).
3454
+ */
3448
3455
  declare const sessionProgressTodoSchema: z.ZodObject<{
3449
3456
  content: z.ZodString;
3450
3457
  status: z.ZodEnum<{
@@ -3452,14 +3459,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
3452
3459
  pending: "pending";
3453
3460
  in_progress: "in_progress";
3454
3461
  }>;
3462
+ activeForm: z.ZodOptional<z.ZodString>;
3455
3463
  stage: z.ZodOptional<z.ZodString>;
3464
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3456
3465
  }, z.core.$strip>;
3457
3466
  type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
3458
3467
  /**
3459
- * Live progress state. Full rewrite each update the Agent sends the
3460
- * complete checklist, never a delta.
3468
+ * One task list = one "generation" of the checklist. A session can contain
3469
+ * multiple generations across time; the auto-mirror hook partitions them
3470
+ * by a boundary heuristic (prior list fully completed + low overlap).
3461
3471
  */
3462
- declare const sessionProgressStateSchema: z.ZodObject<{
3472
+ declare const sessionProgressListSchema: z.ZodObject<{
3473
+ id: z.ZodString;
3474
+ label: z.ZodOptional<z.ZodString>;
3463
3475
  todos: z.ZodArray<z.ZodObject<{
3464
3476
  content: z.ZodString;
3465
3477
  status: z.ZodEnum<{
@@ -3467,10 +3479,60 @@ declare const sessionProgressStateSchema: z.ZodObject<{
3467
3479
  pending: "pending";
3468
3480
  in_progress: "in_progress";
3469
3481
  }>;
3482
+ activeForm: z.ZodOptional<z.ZodString>;
3470
3483
  stage: z.ZodOptional<z.ZodString>;
3484
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3471
3485
  }, z.core.$strip>>;
3472
3486
  currentStage: z.ZodOptional<z.ZodString>;
3473
3487
  blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3488
+ startedAt: z.ZodNumber;
3489
+ updatedAt: z.ZodNumber;
3490
+ archivedAt: z.ZodOptional<z.ZodNumber>;
3491
+ }, z.core.$strip>;
3492
+ type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
3493
+ /**
3494
+ * Live progress state. Holds a list-of-lists plus a pointer to the active
3495
+ * one.
3496
+ *
3497
+ * Backward compatibility: older CLI / App versions wrote flat `todos` at
3498
+ * the top level. Readers should prefer `lists[currentListId]` when present
3499
+ * and fall back to the legacy `todos` otherwise.
3500
+ */
3501
+ declare const sessionProgressStateSchema: z.ZodObject<{
3502
+ lists: z.ZodOptional<z.ZodArray<z.ZodObject<{
3503
+ id: z.ZodString;
3504
+ label: z.ZodOptional<z.ZodString>;
3505
+ todos: z.ZodArray<z.ZodObject<{
3506
+ content: z.ZodString;
3507
+ status: z.ZodEnum<{
3508
+ completed: "completed";
3509
+ pending: "pending";
3510
+ in_progress: "in_progress";
3511
+ }>;
3512
+ activeForm: z.ZodOptional<z.ZodString>;
3513
+ stage: z.ZodOptional<z.ZodString>;
3514
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3515
+ }, z.core.$strip>>;
3516
+ currentStage: z.ZodOptional<z.ZodString>;
3517
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3518
+ startedAt: z.ZodNumber;
3519
+ updatedAt: z.ZodNumber;
3520
+ archivedAt: z.ZodOptional<z.ZodNumber>;
3521
+ }, z.core.$strip>>>;
3522
+ currentListId: z.ZodOptional<z.ZodString>;
3523
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
3524
+ content: z.ZodString;
3525
+ status: z.ZodEnum<{
3526
+ completed: "completed";
3527
+ pending: "pending";
3528
+ in_progress: "in_progress";
3529
+ }>;
3530
+ activeForm: z.ZodOptional<z.ZodString>;
3531
+ stage: z.ZodOptional<z.ZodString>;
3532
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3533
+ }, z.core.$strip>>>;
3534
+ currentStage: z.ZodOptional<z.ZodString>;
3535
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3474
3536
  updatedAt: z.ZodNumber;
3475
3537
  }, z.core.$strip>;
3476
3538
  type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
@@ -3488,5 +3550,5 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
3488
3550
  }, z.core.$strip>;
3489
3551
  type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
3490
3552
 
3491
- 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, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3492
- 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, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, 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 };
3553
+ 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, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3554
+ 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, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, 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
@@ -2102,9 +2102,9 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2102
2102
  }>;
2103
2103
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2104
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
- session: "session";
2106
2105
  user: "user";
2107
2106
  supervisor: "supervisor";
2107
+ session: "session";
2108
2108
  }>;
2109
2109
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2110
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2116,8 +2116,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
2116
2116
  type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
2117
2117
  declare const KnowledgeStatusSchema: z.ZodEnum<{
2118
2118
  active: "active";
2119
- archived: "archived";
2120
2119
  superseded: "superseded";
2120
+ archived: "archived";
2121
2121
  }>;
2122
2122
  type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
2123
2123
  declare const KnowledgeConfidenceSchema: z.ZodEnum<{
@@ -2135,9 +2135,9 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2135
2135
  warning: "warning";
2136
2136
  }>;
2137
2137
  contributorType: z.ZodEnum<{
2138
- session: "session";
2139
2138
  user: "user";
2140
2139
  supervisor: "supervisor";
2140
+ session: "session";
2141
2141
  }>;
2142
2142
  action: z.ZodEnum<{
2143
2143
  create: "create";
@@ -2168,8 +2168,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
2168
2168
  declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
2169
2169
  status: z.ZodOptional<z.ZodEnum<{
2170
2170
  active: "active";
2171
- archived: "archived";
2172
2171
  superseded: "superseded";
2172
+ archived: "archived";
2173
2173
  }>>;
2174
2174
  pinned: z.ZodOptional<z.ZodBoolean>;
2175
2175
  title: z.ZodOptional<z.ZodString>;
@@ -2192,8 +2192,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
2192
2192
  }>>;
2193
2193
  status: z.ZodOptional<z.ZodEnum<{
2194
2194
  active: "active";
2195
- archived: "archived";
2196
2195
  superseded: "superseded";
2196
+ archived: "archived";
2197
2197
  }>>;
2198
2198
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2199
2199
  search: z.ZodOptional<z.ZodString>;
@@ -2281,8 +2281,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
2281
2281
  }>;
2282
2282
  status: z.ZodEnum<{
2283
2283
  active: "active";
2284
- archived: "archived";
2285
2284
  superseded: "superseded";
2285
+ archived: "archived";
2286
2286
  }>;
2287
2287
  title: z.ZodString;
2288
2288
  content: z.ZodString;
@@ -2314,8 +2314,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
2314
2314
  }>;
2315
2315
  status: z.ZodEnum<{
2316
2316
  active: "active";
2317
- archived: "archived";
2318
2317
  superseded: "superseded";
2318
+ archived: "archived";
2319
2319
  }>;
2320
2320
  title: z.ZodString;
2321
2321
  content: z.ZodString;
@@ -2614,10 +2614,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2614
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2615
 
2616
2616
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2617
  supervisor: "supervisor";
2619
2618
  task: "task";
2620
2619
  trigger: "trigger";
2620
+ session: "session";
2621
2621
  knowledge: "knowledge";
2622
2622
  system: "system";
2623
2623
  }>;
@@ -2631,10 +2631,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2631
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2632
  id: z.ZodString;
2633
2633
  category: z.ZodEnum<{
2634
- session: "session";
2635
2634
  supervisor: "supervisor";
2636
2635
  task: "task";
2637
2636
  trigger: "trigger";
2637
+ session: "session";
2638
2638
  knowledge: "knowledge";
2639
2639
  system: "system";
2640
2640
  }>;
@@ -2659,10 +2659,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2659
  item: z.ZodObject<{
2660
2660
  id: z.ZodString;
2661
2661
  category: z.ZodEnum<{
2662
- session: "session";
2663
2662
  supervisor: "supervisor";
2664
2663
  task: "task";
2665
2664
  trigger: "trigger";
2665
+ session: "session";
2666
2666
  knowledge: "knowledge";
2667
2667
  system: "system";
2668
2668
  }>;
@@ -3432,11 +3432,14 @@ declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile
3432
3432
  /**
3433
3433
  * Shared schemas for live session state surfaced to the App's Progress tab.
3434
3434
  *
3435
- * These are written by the Agent via MCP tools (update_progress /
3436
- * update_session_summary) and read by the App through the encrypted
3437
- * `Session.metadata` blob no new server storage or migration needed.
3435
+ * These live inside the encrypted `Session.metadata` blob no new server
3436
+ * storage or migration needed. Two sources feed this state:
3437
+ * 1. CLI auto-mirror hook: captures SDK's TodoWrite tool_result and
3438
+ * writes todos directly (no Agent prompting required).
3439
+ * 2. MCP tools update_progress / update_session_summary: optional
3440
+ * Agent-driven paths for richer fields the SDK doesn't expose.
3438
3441
  *
3439
- * Keep these fields small: they ride inside the metadata envelope on every
3442
+ * Keep fields small: they ride inside the metadata envelope on every
3440
3443
  * socket update, so avoid attaching large structured content here.
3441
3444
  */
3442
3445
  declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
@@ -3445,6 +3448,10 @@ declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
3445
3448
  in_progress: "in_progress";
3446
3449
  }>;
3447
3450
  type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
3451
+ /**
3452
+ * One checklist item. Mirrors the shape of Claude Code SDK's TodoWriteInput
3453
+ * items, with Happy extensions (`stage`, `verificationNudgeNeeded`).
3454
+ */
3448
3455
  declare const sessionProgressTodoSchema: z.ZodObject<{
3449
3456
  content: z.ZodString;
3450
3457
  status: z.ZodEnum<{
@@ -3452,14 +3459,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
3452
3459
  pending: "pending";
3453
3460
  in_progress: "in_progress";
3454
3461
  }>;
3462
+ activeForm: z.ZodOptional<z.ZodString>;
3455
3463
  stage: z.ZodOptional<z.ZodString>;
3464
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3456
3465
  }, z.core.$strip>;
3457
3466
  type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
3458
3467
  /**
3459
- * Live progress state. Full rewrite each update the Agent sends the
3460
- * complete checklist, never a delta.
3468
+ * One task list = one "generation" of the checklist. A session can contain
3469
+ * multiple generations across time; the auto-mirror hook partitions them
3470
+ * by a boundary heuristic (prior list fully completed + low overlap).
3461
3471
  */
3462
- declare const sessionProgressStateSchema: z.ZodObject<{
3472
+ declare const sessionProgressListSchema: z.ZodObject<{
3473
+ id: z.ZodString;
3474
+ label: z.ZodOptional<z.ZodString>;
3463
3475
  todos: z.ZodArray<z.ZodObject<{
3464
3476
  content: z.ZodString;
3465
3477
  status: z.ZodEnum<{
@@ -3467,10 +3479,60 @@ declare const sessionProgressStateSchema: z.ZodObject<{
3467
3479
  pending: "pending";
3468
3480
  in_progress: "in_progress";
3469
3481
  }>;
3482
+ activeForm: z.ZodOptional<z.ZodString>;
3470
3483
  stage: z.ZodOptional<z.ZodString>;
3484
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3471
3485
  }, z.core.$strip>>;
3472
3486
  currentStage: z.ZodOptional<z.ZodString>;
3473
3487
  blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3488
+ startedAt: z.ZodNumber;
3489
+ updatedAt: z.ZodNumber;
3490
+ archivedAt: z.ZodOptional<z.ZodNumber>;
3491
+ }, z.core.$strip>;
3492
+ type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
3493
+ /**
3494
+ * Live progress state. Holds a list-of-lists plus a pointer to the active
3495
+ * one.
3496
+ *
3497
+ * Backward compatibility: older CLI / App versions wrote flat `todos` at
3498
+ * the top level. Readers should prefer `lists[currentListId]` when present
3499
+ * and fall back to the legacy `todos` otherwise.
3500
+ */
3501
+ declare const sessionProgressStateSchema: z.ZodObject<{
3502
+ lists: z.ZodOptional<z.ZodArray<z.ZodObject<{
3503
+ id: z.ZodString;
3504
+ label: z.ZodOptional<z.ZodString>;
3505
+ todos: z.ZodArray<z.ZodObject<{
3506
+ content: z.ZodString;
3507
+ status: z.ZodEnum<{
3508
+ completed: "completed";
3509
+ pending: "pending";
3510
+ in_progress: "in_progress";
3511
+ }>;
3512
+ activeForm: z.ZodOptional<z.ZodString>;
3513
+ stage: z.ZodOptional<z.ZodString>;
3514
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3515
+ }, z.core.$strip>>;
3516
+ currentStage: z.ZodOptional<z.ZodString>;
3517
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3518
+ startedAt: z.ZodNumber;
3519
+ updatedAt: z.ZodNumber;
3520
+ archivedAt: z.ZodOptional<z.ZodNumber>;
3521
+ }, z.core.$strip>>>;
3522
+ currentListId: z.ZodOptional<z.ZodString>;
3523
+ todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
3524
+ content: z.ZodString;
3525
+ status: z.ZodEnum<{
3526
+ completed: "completed";
3527
+ pending: "pending";
3528
+ in_progress: "in_progress";
3529
+ }>;
3530
+ activeForm: z.ZodOptional<z.ZodString>;
3531
+ stage: z.ZodOptional<z.ZodString>;
3532
+ verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
3533
+ }, z.core.$strip>>>;
3534
+ currentStage: z.ZodOptional<z.ZodString>;
3535
+ blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3474
3536
  updatedAt: z.ZodNumber;
3475
3537
  }, z.core.$strip>;
3476
3538
  type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
@@ -3488,5 +3550,5 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
3488
3550
  }, z.core.$strip>;
3489
3551
  type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
3490
3552
 
3491
- 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, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3492
- 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, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, 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 };
3553
+ 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, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3554
+ 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, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, 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
@@ -1473,10 +1473,41 @@ const sessionProgressTodoStatusSchema = z.enum([
1473
1473
  const sessionProgressTodoSchema = z.object({
1474
1474
  content: z.string(),
1475
1475
  status: sessionProgressTodoStatusSchema,
1476
- stage: z.string().optional()
1476
+ /** SDK-native: imperative-present form shown when status is in_progress. */
1477
+ activeForm: z.string().optional(),
1478
+ /** Optional phase/stage label a step belongs to, e.g. "Phase 2". */
1479
+ stage: z.string().optional(),
1480
+ /**
1481
+ * Carried over from SDK's `TodoWriteOutput.verificationNudgeNeeded` — SDK
1482
+ * flags items it suspects were marked completed without verification.
1483
+ */
1484
+ verificationNudgeNeeded: z.boolean().optional()
1477
1485
  });
1478
- const sessionProgressStateSchema = z.object({
1486
+ const sessionProgressListSchema = z.object({
1487
+ /** Stable UUID for tab switching / explicit Agent addressing. */
1488
+ id: z.string(),
1489
+ /** Short human-readable label; auto-derived from first todo if absent. */
1490
+ label: z.string().optional(),
1479
1491
  todos: z.array(sessionProgressTodoSchema),
1492
+ /** Optional overall stage for this list (set via MCP). */
1493
+ currentStage: z.string().optional(),
1494
+ /** Optional blocker list (set via MCP). */
1495
+ blockers: z.array(z.string()).optional(),
1496
+ startedAt: z.number(),
1497
+ updatedAt: z.number(),
1498
+ /** When this list stopped being active (got pushed to history). */
1499
+ archivedAt: z.number().optional()
1500
+ });
1501
+ const sessionProgressStateSchema = z.object({
1502
+ /** Ordered by startedAt asc; last item is typically the active one. */
1503
+ lists: z.array(sessionProgressListSchema).optional(),
1504
+ /** Points at the active list within `lists`. */
1505
+ currentListId: z.string().optional(),
1506
+ /**
1507
+ * Legacy flat fields. Still written for backward compat with older
1508
+ * readers — kept in sync with `lists[currentListId]` on each update.
1509
+ */
1510
+ todos: z.array(sessionProgressTodoSchema).optional(),
1480
1511
  currentStage: z.string().optional(),
1481
1512
  blockers: z.array(z.string()).optional(),
1482
1513
  updatedAt: z.number()
@@ -1490,4 +1521,4 @@ const sessionSummaryStateSchema = z.object({
1490
1521
  updatedAt: z.number()
1491
1522
  });
1492
1523
 
1493
- 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, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
1524
+ 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, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, 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.7",
3
+ "version": "0.11.8",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",