@kmmao/happy-wire 0.11.11 → 0.11.12

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
@@ -572,6 +572,15 @@ const BriefMessageSchema = z__namespace.object({
572
572
  generatedAt: z__namespace.number(),
573
573
  sessionId: z__namespace.string().optional()
574
574
  });
575
+ const CliInstallSourceSchema = z__namespace.enum([
576
+ "npm-global",
577
+ "local-source",
578
+ "unknown"
579
+ ]);
580
+ const CliInstallInfoSchema = z__namespace.object({
581
+ source: CliInstallSourceSchema,
582
+ canSelfUpgrade: z__namespace.boolean()
583
+ });
575
584
  const DaemonStateSchema = z__namespace.object({
576
585
  status: z__namespace.union([
577
586
  z__namespace.enum(["running", "shutting-down"]),
@@ -591,6 +600,7 @@ const DaemonStateSchema = z__namespace.object({
591
600
  tunnels: TunnelStateSchema.optional(),
592
601
  automation: AutomationStateSchema.optional(),
593
602
  recentBriefs: z__namespace.array(BriefMessageSchema).optional(),
603
+ cliInstall: CliInstallInfoSchema.optional(),
594
604
  killed: z__namespace.boolean().optional()
595
605
  });
596
606
 
@@ -1750,6 +1760,8 @@ exports.BUILT_IN_AI_BACKEND_PROFILE_IDS = BUILT_IN_AI_BACKEND_PROFILE_IDS;
1750
1760
  exports.BootstrapProfileSummarySchema = BootstrapProfileSummarySchema;
1751
1761
  exports.BriefMessageSchema = BriefMessageSchema;
1752
1762
  exports.BuiltInAIBackendProfileIdSchema = BuiltInAIBackendProfileIdSchema;
1763
+ exports.CliInstallInfoSchema = CliInstallInfoSchema;
1764
+ exports.CliInstallSourceSchema = CliInstallSourceSchema;
1753
1765
  exports.CodexConfigSchema = CodexConfigSchema;
1754
1766
  exports.CoreUpdateBodySchema = CoreUpdateBodySchema;
1755
1767
  exports.CoreUpdateContainerSchema = CoreUpdateContainerSchema;
package/dist/index.d.cts CHANGED
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
177
177
  }, z.core.$strip>, z.ZodObject<{
178
178
  t: z.ZodLiteral<"session-state-changed">;
179
179
  state: z.ZodEnum<{
180
- idle: "idle";
181
180
  running: "running";
181
+ idle: "idle";
182
182
  requires_action: "requires_action";
183
183
  }>;
184
184
  }, z.core.$strip>, z.ZodObject<{
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  }, z.core.$strip>, z.ZodObject<{
424
424
  t: z.ZodLiteral<"session-state-changed">;
425
425
  state: z.ZodEnum<{
426
- idle: "idle";
427
426
  running: "running";
427
+ idle: "idle";
428
428
  requires_action: "requires_action";
429
429
  }>;
430
430
  }, z.core.$strip>, z.ZodObject<{
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
1041
1041
  declare const sessionStateChangedEventSchema: z.ZodObject<{
1042
1042
  t: z.ZodLiteral<"session-state-changed">;
1043
1043
  state: z.ZodEnum<{
1044
- idle: "idle";
1045
1044
  running: "running";
1045
+ idle: "idle";
1046
1046
  requires_action: "requires_action";
1047
1047
  }>;
1048
1048
  }, z.core.$strip>;
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
1203
  }, z.core.$strip>, z.ZodObject<{
1204
1204
  t: z.ZodLiteral<"session-state-changed">;
1205
1205
  state: z.ZodEnum<{
1206
- idle: "idle";
1207
1206
  running: "running";
1207
+ idle: "idle";
1208
1208
  requires_action: "requires_action";
1209
1209
  }>;
1210
1210
  }, z.core.$strip>, z.ZodObject<{
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1367
1367
  }, z.core.$strip>, z.ZodObject<{
1368
1368
  t: z.ZodLiteral<"session-state-changed">;
1369
1369
  state: z.ZodEnum<{
1370
- idle: "idle";
1371
1370
  running: "running";
1371
+ idle: "idle";
1372
1372
  requires_action: "requires_action";
1373
1373
  }>;
1374
1374
  }, z.core.$strip>, z.ZodObject<{
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
1541
1541
  }>;
1542
1542
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1543
1543
  declare const AutomationJobStatusSchema: z.ZodEnum<{
1544
+ queued: "queued";
1545
+ dispatching: "dispatching";
1546
+ running: "running";
1544
1547
  completed: "completed";
1545
1548
  failed: "failed";
1546
1549
  cancelled: "cancelled";
1547
- running: "running";
1548
- queued: "queued";
1549
- dispatching: "dispatching";
1550
1550
  }>;
1551
1551
  type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
@@ -1558,12 +1558,12 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1558
1558
  task: "task";
1559
1559
  }>;
1560
1560
  status: z.ZodEnum<{
1561
+ queued: "queued";
1562
+ dispatching: "dispatching";
1563
+ running: "running";
1561
1564
  completed: "completed";
1562
1565
  failed: "failed";
1563
1566
  cancelled: "cancelled";
1564
- running: "running";
1565
- queued: "queued";
1566
- dispatching: "dispatching";
1567
1567
  }>;
1568
1568
  priority: z.ZodEnum<{
1569
1569
  user: "user";
@@ -1721,12 +1721,12 @@ declare const AutomationStateSchema: z.ZodObject<{
1721
1721
  task: "task";
1722
1722
  }>;
1723
1723
  status: z.ZodEnum<{
1724
+ queued: "queued";
1725
+ dispatching: "dispatching";
1726
+ running: "running";
1724
1727
  completed: "completed";
1725
1728
  failed: "failed";
1726
1729
  cancelled: "cancelled";
1727
- running: "running";
1728
- queued: "queued";
1729
- dispatching: "dispatching";
1730
1730
  }>;
1731
1731
  priority: z.ZodEnum<{
1732
1732
  user: "user";
@@ -1864,6 +1864,21 @@ declare const BriefMessageSchema: z.ZodObject<{
1864
1864
  sessionId: z.ZodOptional<z.ZodString>;
1865
1865
  }, z.core.$strip>;
1866
1866
  type BriefMessage = z.infer<typeof BriefMessageSchema>;
1867
+ declare const CliInstallSourceSchema: z.ZodEnum<{
1868
+ unknown: "unknown";
1869
+ "npm-global": "npm-global";
1870
+ "local-source": "local-source";
1871
+ }>;
1872
+ type CliInstallSource = z.infer<typeof CliInstallSourceSchema>;
1873
+ declare const CliInstallInfoSchema: z.ZodObject<{
1874
+ source: z.ZodEnum<{
1875
+ unknown: "unknown";
1876
+ "npm-global": "npm-global";
1877
+ "local-source": "local-source";
1878
+ }>;
1879
+ canSelfUpgrade: z.ZodBoolean;
1880
+ }, z.core.$strip>;
1881
+ type CliInstallInfo = z.infer<typeof CliInstallInfoSchema>;
1867
1882
  declare const DaemonStateSchema: z.ZodObject<{
1868
1883
  status: z.ZodUnion<readonly [z.ZodEnum<{
1869
1884
  running: "running";
@@ -1948,12 +1963,12 @@ declare const DaemonStateSchema: z.ZodObject<{
1948
1963
  task: "task";
1949
1964
  }>;
1950
1965
  status: z.ZodEnum<{
1966
+ queued: "queued";
1967
+ dispatching: "dispatching";
1968
+ running: "running";
1951
1969
  completed: "completed";
1952
1970
  failed: "failed";
1953
1971
  cancelled: "cancelled";
1954
- running: "running";
1955
- queued: "queued";
1956
- dispatching: "dispatching";
1957
1972
  }>;
1958
1973
  priority: z.ZodEnum<{
1959
1974
  user: "user";
@@ -2089,6 +2104,14 @@ declare const DaemonStateSchema: z.ZodObject<{
2089
2104
  generatedAt: z.ZodNumber;
2090
2105
  sessionId: z.ZodOptional<z.ZodString>;
2091
2106
  }, z.core.$strip>>>;
2107
+ cliInstall: z.ZodOptional<z.ZodObject<{
2108
+ source: z.ZodEnum<{
2109
+ unknown: "unknown";
2110
+ "npm-global": "npm-global";
2111
+ "local-source": "local-source";
2112
+ }>;
2113
+ canSelfUpgrade: z.ZodBoolean;
2114
+ }, z.core.$strip>>;
2092
2115
  killed: z.ZodOptional<z.ZodBoolean>;
2093
2116
  }, z.core.$strip>;
2094
2117
  type DaemonState = z.infer<typeof DaemonStateSchema>;
@@ -2103,8 +2126,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2103
2126
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2127
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
2128
  user: "user";
2106
- session: "session";
2107
2129
  supervisor: "supervisor";
2130
+ session: "session";
2108
2131
  }>;
2109
2132
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2133
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2116,8 +2139,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
2116
2139
  type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
2117
2140
  declare const KnowledgeStatusSchema: z.ZodEnum<{
2118
2141
  active: "active";
2119
- archived: "archived";
2120
2142
  superseded: "superseded";
2143
+ archived: "archived";
2121
2144
  }>;
2122
2145
  type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
2123
2146
  declare const KnowledgeConfidenceSchema: z.ZodEnum<{
@@ -2136,8 +2159,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2136
2159
  }>;
2137
2160
  contributorType: z.ZodEnum<{
2138
2161
  user: "user";
2139
- session: "session";
2140
2162
  supervisor: "supervisor";
2163
+ session: "session";
2141
2164
  }>;
2142
2165
  action: z.ZodEnum<{
2143
2166
  create: "create";
@@ -2168,8 +2191,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
2168
2191
  declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
2169
2192
  status: z.ZodOptional<z.ZodEnum<{
2170
2193
  active: "active";
2171
- archived: "archived";
2172
2194
  superseded: "superseded";
2195
+ archived: "archived";
2173
2196
  }>>;
2174
2197
  pinned: z.ZodOptional<z.ZodBoolean>;
2175
2198
  title: z.ZodOptional<z.ZodString>;
@@ -2192,8 +2215,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
2192
2215
  }>>;
2193
2216
  status: z.ZodOptional<z.ZodEnum<{
2194
2217
  active: "active";
2195
- archived: "archived";
2196
2218
  superseded: "superseded";
2219
+ archived: "archived";
2197
2220
  }>>;
2198
2221
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2199
2222
  search: z.ZodOptional<z.ZodString>;
@@ -2281,8 +2304,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
2281
2304
  }>;
2282
2305
  status: z.ZodEnum<{
2283
2306
  active: "active";
2284
- archived: "archived";
2285
2307
  superseded: "superseded";
2308
+ archived: "archived";
2286
2309
  }>;
2287
2310
  title: z.ZodString;
2288
2311
  content: z.ZodString;
@@ -2314,8 +2337,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
2314
2337
  }>;
2315
2338
  status: z.ZodEnum<{
2316
2339
  active: "active";
2317
- archived: "archived";
2318
2340
  superseded: "superseded";
2341
+ archived: "archived";
2319
2342
  }>;
2320
2343
  title: z.ZodString;
2321
2344
  content: z.ZodString;
@@ -2452,12 +2475,12 @@ declare const TaskPrioritySchema: z.ZodEnum<{
2452
2475
  }>;
2453
2476
  type TaskPriority = z.infer<typeof TaskPrioritySchema>;
2454
2477
  declare const TaskStatusSchema: z.ZodEnum<{
2478
+ queued: "queued";
2479
+ dispatching: "dispatching";
2480
+ running: "running";
2455
2481
  completed: "completed";
2456
2482
  failed: "failed";
2457
2483
  cancelled: "cancelled";
2458
- running: "running";
2459
- queued: "queued";
2460
- dispatching: "dispatching";
2461
2484
  }>;
2462
2485
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2463
2486
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
@@ -2476,12 +2499,12 @@ declare const TaskSummarySchema: z.ZodObject<{
2476
2499
  background: "background";
2477
2500
  }>;
2478
2501
  status: z.ZodEnum<{
2502
+ queued: "queued";
2503
+ dispatching: "dispatching";
2504
+ running: "running";
2479
2505
  completed: "completed";
2480
2506
  failed: "failed";
2481
2507
  cancelled: "cancelled";
2482
- running: "running";
2483
- queued: "queued";
2484
- dispatching: "dispatching";
2485
2508
  }>;
2486
2509
  triggerType: z.ZodEnum<{
2487
2510
  webhook: "webhook";
@@ -2543,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
2543
2566
  declare const TaskStatusReportSchema: z.ZodObject<{
2544
2567
  taskId: z.ZodString;
2545
2568
  status: z.ZodEnum<{
2569
+ queued: "queued";
2570
+ dispatching: "dispatching";
2571
+ running: "running";
2546
2572
  completed: "completed";
2547
2573
  failed: "failed";
2548
2574
  cancelled: "cancelled";
2549
- running: "running";
2550
- queued: "queued";
2551
- dispatching: "dispatching";
2552
2575
  }>;
2553
2576
  outcome: z.ZodOptional<z.ZodEnum<{
2554
2577
  completed: "completed";
@@ -2564,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
2564
2587
  taskId: z.ZodString;
2565
2588
  machineId: z.ZodOptional<z.ZodString>;
2566
2589
  status: z.ZodEnum<{
2590
+ queued: "queued";
2591
+ dispatching: "dispatching";
2592
+ running: "running";
2567
2593
  completed: "completed";
2568
2594
  failed: "failed";
2569
2595
  cancelled: "cancelled";
2570
- running: "running";
2571
- queued: "queued";
2572
- dispatching: "dispatching";
2573
2596
  }>;
2574
2597
  sessionId: z.ZodOptional<z.ZodString>;
2575
2598
  errorMessage: z.ZodOptional<z.ZodString>;
@@ -2614,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2637
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2638
 
2616
2639
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2640
  supervisor: "supervisor";
2619
2641
  task: "task";
2620
2642
  trigger: "trigger";
2643
+ session: "session";
2621
2644
  knowledge: "knowledge";
2622
2645
  system: "system";
2623
2646
  }>;
@@ -2631,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2654
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2655
  id: z.ZodString;
2633
2656
  category: z.ZodEnum<{
2634
- session: "session";
2635
2657
  supervisor: "supervisor";
2636
2658
  task: "task";
2637
2659
  trigger: "trigger";
2660
+ session: "session";
2638
2661
  knowledge: "knowledge";
2639
2662
  system: "system";
2640
2663
  }>;
@@ -2659,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2682
  item: z.ZodObject<{
2660
2683
  id: z.ZodString;
2661
2684
  category: z.ZodEnum<{
2662
- session: "session";
2663
2685
  supervisor: "supervisor";
2664
2686
  task: "task";
2665
2687
  trigger: "trigger";
2688
+ session: "session";
2666
2689
  knowledge: "knowledge";
2667
2690
  system: "system";
2668
2691
  }>;
@@ -2849,8 +2872,8 @@ type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_D
2849
2872
  declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
2850
2873
  declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2851
2874
  kind: z$1.ZodEnum<{
2852
- message: "message";
2853
2875
  task: "task";
2876
+ message: "message";
2854
2877
  decision: "decision";
2855
2878
  goal: "goal";
2856
2879
  narrative: "narrative";
@@ -3582,5 +3605,5 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
3582
3605
  declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
3583
3606
  declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
3584
3607
 
3585
- 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, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3586
- 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, HappyMcpCanonicalToolName, HappyMcpToolActionMode, 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 };
3608
+ 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, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3609
+ 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, CliInstallInfo, CliInstallSource, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, 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
@@ -177,8 +177,8 @@ declare const SessionProtocolMessageSchema: z.ZodObject<{
177
177
  }, z.core.$strip>, z.ZodObject<{
178
178
  t: z.ZodLiteral<"session-state-changed">;
179
179
  state: z.ZodEnum<{
180
- idle: "idle";
181
180
  running: "running";
181
+ idle: "idle";
182
182
  requires_action: "requires_action";
183
183
  }>;
184
184
  }, z.core.$strip>, z.ZodObject<{
@@ -423,8 +423,8 @@ declare const MessageContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
423
423
  }, z.core.$strip>, z.ZodObject<{
424
424
  t: z.ZodLiteral<"session-state-changed">;
425
425
  state: z.ZodEnum<{
426
- idle: "idle";
427
426
  running: "running";
427
+ idle: "idle";
428
428
  requires_action: "requires_action";
429
429
  }>;
430
430
  }, z.core.$strip>, z.ZodObject<{
@@ -1041,8 +1041,8 @@ declare const sessionNeedsContinueEventSchema: z.ZodObject<{
1041
1041
  declare const sessionStateChangedEventSchema: z.ZodObject<{
1042
1042
  t: z.ZodLiteral<"session-state-changed">;
1043
1043
  state: z.ZodEnum<{
1044
- idle: "idle";
1045
1044
  running: "running";
1045
+ idle: "idle";
1046
1046
  requires_action: "requires_action";
1047
1047
  }>;
1048
1048
  }, z.core.$strip>;
@@ -1203,8 +1203,8 @@ declare const sessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1203
1203
  }, z.core.$strip>, z.ZodObject<{
1204
1204
  t: z.ZodLiteral<"session-state-changed">;
1205
1205
  state: z.ZodEnum<{
1206
- idle: "idle";
1207
1206
  running: "running";
1207
+ idle: "idle";
1208
1208
  requires_action: "requires_action";
1209
1209
  }>;
1210
1210
  }, z.core.$strip>, z.ZodObject<{
@@ -1367,8 +1367,8 @@ declare const sessionEnvelopeSchema: z.ZodObject<{
1367
1367
  }, z.core.$strip>, z.ZodObject<{
1368
1368
  t: z.ZodLiteral<"session-state-changed">;
1369
1369
  state: z.ZodEnum<{
1370
- idle: "idle";
1371
1370
  running: "running";
1371
+ idle: "idle";
1372
1372
  requires_action: "requires_action";
1373
1373
  }>;
1374
1374
  }, z.core.$strip>, z.ZodObject<{
@@ -1541,12 +1541,12 @@ declare const AutomationJobKindSchema: z.ZodEnum<{
1541
1541
  }>;
1542
1542
  type AutomationJobKind = z.infer<typeof AutomationJobKindSchema>;
1543
1543
  declare const AutomationJobStatusSchema: z.ZodEnum<{
1544
+ queued: "queued";
1545
+ dispatching: "dispatching";
1546
+ running: "running";
1544
1547
  completed: "completed";
1545
1548
  failed: "failed";
1546
1549
  cancelled: "cancelled";
1547
- running: "running";
1548
- queued: "queued";
1549
- dispatching: "dispatching";
1550
1550
  }>;
1551
1551
  type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
1552
1552
  declare const AutomationJobSummarySchema: z.ZodObject<{
@@ -1558,12 +1558,12 @@ declare const AutomationJobSummarySchema: z.ZodObject<{
1558
1558
  task: "task";
1559
1559
  }>;
1560
1560
  status: z.ZodEnum<{
1561
+ queued: "queued";
1562
+ dispatching: "dispatching";
1563
+ running: "running";
1561
1564
  completed: "completed";
1562
1565
  failed: "failed";
1563
1566
  cancelled: "cancelled";
1564
- running: "running";
1565
- queued: "queued";
1566
- dispatching: "dispatching";
1567
1567
  }>;
1568
1568
  priority: z.ZodEnum<{
1569
1569
  user: "user";
@@ -1721,12 +1721,12 @@ declare const AutomationStateSchema: z.ZodObject<{
1721
1721
  task: "task";
1722
1722
  }>;
1723
1723
  status: z.ZodEnum<{
1724
+ queued: "queued";
1725
+ dispatching: "dispatching";
1726
+ running: "running";
1724
1727
  completed: "completed";
1725
1728
  failed: "failed";
1726
1729
  cancelled: "cancelled";
1727
- running: "running";
1728
- queued: "queued";
1729
- dispatching: "dispatching";
1730
1730
  }>;
1731
1731
  priority: z.ZodEnum<{
1732
1732
  user: "user";
@@ -1864,6 +1864,21 @@ declare const BriefMessageSchema: z.ZodObject<{
1864
1864
  sessionId: z.ZodOptional<z.ZodString>;
1865
1865
  }, z.core.$strip>;
1866
1866
  type BriefMessage = z.infer<typeof BriefMessageSchema>;
1867
+ declare const CliInstallSourceSchema: z.ZodEnum<{
1868
+ unknown: "unknown";
1869
+ "npm-global": "npm-global";
1870
+ "local-source": "local-source";
1871
+ }>;
1872
+ type CliInstallSource = z.infer<typeof CliInstallSourceSchema>;
1873
+ declare const CliInstallInfoSchema: z.ZodObject<{
1874
+ source: z.ZodEnum<{
1875
+ unknown: "unknown";
1876
+ "npm-global": "npm-global";
1877
+ "local-source": "local-source";
1878
+ }>;
1879
+ canSelfUpgrade: z.ZodBoolean;
1880
+ }, z.core.$strip>;
1881
+ type CliInstallInfo = z.infer<typeof CliInstallInfoSchema>;
1867
1882
  declare const DaemonStateSchema: z.ZodObject<{
1868
1883
  status: z.ZodUnion<readonly [z.ZodEnum<{
1869
1884
  running: "running";
@@ -1948,12 +1963,12 @@ declare const DaemonStateSchema: z.ZodObject<{
1948
1963
  task: "task";
1949
1964
  }>;
1950
1965
  status: z.ZodEnum<{
1966
+ queued: "queued";
1967
+ dispatching: "dispatching";
1968
+ running: "running";
1951
1969
  completed: "completed";
1952
1970
  failed: "failed";
1953
1971
  cancelled: "cancelled";
1954
- running: "running";
1955
- queued: "queued";
1956
- dispatching: "dispatching";
1957
1972
  }>;
1958
1973
  priority: z.ZodEnum<{
1959
1974
  user: "user";
@@ -2089,6 +2104,14 @@ declare const DaemonStateSchema: z.ZodObject<{
2089
2104
  generatedAt: z.ZodNumber;
2090
2105
  sessionId: z.ZodOptional<z.ZodString>;
2091
2106
  }, z.core.$strip>>>;
2107
+ cliInstall: z.ZodOptional<z.ZodObject<{
2108
+ source: z.ZodEnum<{
2109
+ unknown: "unknown";
2110
+ "npm-global": "npm-global";
2111
+ "local-source": "local-source";
2112
+ }>;
2113
+ canSelfUpgrade: z.ZodBoolean;
2114
+ }, z.core.$strip>>;
2092
2115
  killed: z.ZodOptional<z.ZodBoolean>;
2093
2116
  }, z.core.$strip>;
2094
2117
  type DaemonState = z.infer<typeof DaemonStateSchema>;
@@ -2103,8 +2126,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
2103
2126
  type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
2104
2127
  declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
2105
2128
  user: "user";
2106
- session: "session";
2107
2129
  supervisor: "supervisor";
2130
+ session: "session";
2108
2131
  }>;
2109
2132
  type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
2110
2133
  declare const KnowledgeActionSchema: z.ZodEnum<{
@@ -2116,8 +2139,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
2116
2139
  type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
2117
2140
  declare const KnowledgeStatusSchema: z.ZodEnum<{
2118
2141
  active: "active";
2119
- archived: "archived";
2120
2142
  superseded: "superseded";
2143
+ archived: "archived";
2121
2144
  }>;
2122
2145
  type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
2123
2146
  declare const KnowledgeConfidenceSchema: z.ZodEnum<{
@@ -2136,8 +2159,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
2136
2159
  }>;
2137
2160
  contributorType: z.ZodEnum<{
2138
2161
  user: "user";
2139
- session: "session";
2140
2162
  supervisor: "supervisor";
2163
+ session: "session";
2141
2164
  }>;
2142
2165
  action: z.ZodEnum<{
2143
2166
  create: "create";
@@ -2168,8 +2191,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
2168
2191
  declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
2169
2192
  status: z.ZodOptional<z.ZodEnum<{
2170
2193
  active: "active";
2171
- archived: "archived";
2172
2194
  superseded: "superseded";
2195
+ archived: "archived";
2173
2196
  }>>;
2174
2197
  pinned: z.ZodOptional<z.ZodBoolean>;
2175
2198
  title: z.ZodOptional<z.ZodString>;
@@ -2192,8 +2215,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
2192
2215
  }>>;
2193
2216
  status: z.ZodOptional<z.ZodEnum<{
2194
2217
  active: "active";
2195
- archived: "archived";
2196
2218
  superseded: "superseded";
2219
+ archived: "archived";
2197
2220
  }>>;
2198
2221
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
2199
2222
  search: z.ZodOptional<z.ZodString>;
@@ -2281,8 +2304,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
2281
2304
  }>;
2282
2305
  status: z.ZodEnum<{
2283
2306
  active: "active";
2284
- archived: "archived";
2285
2307
  superseded: "superseded";
2308
+ archived: "archived";
2286
2309
  }>;
2287
2310
  title: z.ZodString;
2288
2311
  content: z.ZodString;
@@ -2314,8 +2337,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
2314
2337
  }>;
2315
2338
  status: z.ZodEnum<{
2316
2339
  active: "active";
2317
- archived: "archived";
2318
2340
  superseded: "superseded";
2341
+ archived: "archived";
2319
2342
  }>;
2320
2343
  title: z.ZodString;
2321
2344
  content: z.ZodString;
@@ -2452,12 +2475,12 @@ declare const TaskPrioritySchema: z.ZodEnum<{
2452
2475
  }>;
2453
2476
  type TaskPriority = z.infer<typeof TaskPrioritySchema>;
2454
2477
  declare const TaskStatusSchema: z.ZodEnum<{
2478
+ queued: "queued";
2479
+ dispatching: "dispatching";
2480
+ running: "running";
2455
2481
  completed: "completed";
2456
2482
  failed: "failed";
2457
2483
  cancelled: "cancelled";
2458
- running: "running";
2459
- queued: "queued";
2460
- dispatching: "dispatching";
2461
2484
  }>;
2462
2485
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
2463
2486
  declare const TaskTriggerTypeSchema: z.ZodEnum<{
@@ -2476,12 +2499,12 @@ declare const TaskSummarySchema: z.ZodObject<{
2476
2499
  background: "background";
2477
2500
  }>;
2478
2501
  status: z.ZodEnum<{
2502
+ queued: "queued";
2503
+ dispatching: "dispatching";
2504
+ running: "running";
2479
2505
  completed: "completed";
2480
2506
  failed: "failed";
2481
2507
  cancelled: "cancelled";
2482
- running: "running";
2483
- queued: "queued";
2484
- dispatching: "dispatching";
2485
2508
  }>;
2486
2509
  triggerType: z.ZodEnum<{
2487
2510
  webhook: "webhook";
@@ -2543,12 +2566,12 @@ type TaskOutcome = z.infer<typeof TaskOutcomeSchema>;
2543
2566
  declare const TaskStatusReportSchema: z.ZodObject<{
2544
2567
  taskId: z.ZodString;
2545
2568
  status: z.ZodEnum<{
2569
+ queued: "queued";
2570
+ dispatching: "dispatching";
2571
+ running: "running";
2546
2572
  completed: "completed";
2547
2573
  failed: "failed";
2548
2574
  cancelled: "cancelled";
2549
- running: "running";
2550
- queued: "queued";
2551
- dispatching: "dispatching";
2552
2575
  }>;
2553
2576
  outcome: z.ZodOptional<z.ZodEnum<{
2554
2577
  completed: "completed";
@@ -2564,12 +2587,12 @@ declare const TaskStatusChangedSchema: z.ZodObject<{
2564
2587
  taskId: z.ZodString;
2565
2588
  machineId: z.ZodOptional<z.ZodString>;
2566
2589
  status: z.ZodEnum<{
2590
+ queued: "queued";
2591
+ dispatching: "dispatching";
2592
+ running: "running";
2567
2593
  completed: "completed";
2568
2594
  failed: "failed";
2569
2595
  cancelled: "cancelled";
2570
- running: "running";
2571
- queued: "queued";
2572
- dispatching: "dispatching";
2573
2596
  }>;
2574
2597
  sessionId: z.ZodOptional<z.ZodString>;
2575
2598
  errorMessage: z.ZodOptional<z.ZodString>;
@@ -2614,10 +2637,10 @@ declare const SkillContentSchema: z.ZodObject<{
2614
2637
  type SkillContent = z.infer<typeof SkillContentSchema>;
2615
2638
 
2616
2639
  declare const InboxCategorySchema: z.ZodEnum<{
2617
- session: "session";
2618
2640
  supervisor: "supervisor";
2619
2641
  task: "task";
2620
2642
  trigger: "trigger";
2643
+ session: "session";
2621
2644
  knowledge: "knowledge";
2622
2645
  system: "system";
2623
2646
  }>;
@@ -2631,10 +2654,10 @@ type InboxSeverity = z.infer<typeof InboxSeveritySchema>;
2631
2654
  declare const InboxItemSummarySchema: z.ZodObject<{
2632
2655
  id: z.ZodString;
2633
2656
  category: z.ZodEnum<{
2634
- session: "session";
2635
2657
  supervisor: "supervisor";
2636
2658
  task: "task";
2637
2659
  trigger: "trigger";
2660
+ session: "session";
2638
2661
  knowledge: "knowledge";
2639
2662
  system: "system";
2640
2663
  }>;
@@ -2659,10 +2682,10 @@ declare const InboxNewItemSchema: z.ZodObject<{
2659
2682
  item: z.ZodObject<{
2660
2683
  id: z.ZodString;
2661
2684
  category: z.ZodEnum<{
2662
- session: "session";
2663
2685
  supervisor: "supervisor";
2664
2686
  task: "task";
2665
2687
  trigger: "trigger";
2688
+ session: "session";
2666
2689
  knowledge: "knowledge";
2667
2690
  system: "system";
2668
2691
  }>;
@@ -2849,8 +2872,8 @@ type SuggestionAutoAcceptFailureDetail = typeof SUGGESTION_AUTO_ACCEPT_FAILURE_D
2849
2872
  declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "narrative"];
2850
2873
  declare const SuggestionEvidenceSchema: z$1.ZodObject<{
2851
2874
  kind: z$1.ZodEnum<{
2852
- message: "message";
2853
2875
  task: "task";
2876
+ message: "message";
2854
2877
  decision: "decision";
2855
2878
  goal: "goal";
2856
2879
  narrative: "narrative";
@@ -3582,5 +3605,5 @@ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | unde
3582
3605
  declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
3583
3606
  declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
3584
3607
 
3585
- 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, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3586
- 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, HappyMcpCanonicalToolName, HappyMcpToolActionMode, 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 };
3608
+ 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, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
3609
+ 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, CliInstallInfo, CliInstallSource, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, HappyMcpCanonicalToolName, HappyMcpToolActionMode, 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
@@ -552,6 +552,15 @@ const BriefMessageSchema = z.object({
552
552
  generatedAt: z.number(),
553
553
  sessionId: z.string().optional()
554
554
  });
555
+ const CliInstallSourceSchema = z.enum([
556
+ "npm-global",
557
+ "local-source",
558
+ "unknown"
559
+ ]);
560
+ const CliInstallInfoSchema = z.object({
561
+ source: CliInstallSourceSchema,
562
+ canSelfUpgrade: z.boolean()
563
+ });
555
564
  const DaemonStateSchema = z.object({
556
565
  status: z.union([
557
566
  z.enum(["running", "shutting-down"]),
@@ -571,6 +580,7 @@ const DaemonStateSchema = z.object({
571
580
  tunnels: TunnelStateSchema.optional(),
572
581
  automation: AutomationStateSchema.optional(),
573
582
  recentBriefs: z.array(BriefMessageSchema).optional(),
583
+ cliInstall: CliInstallInfoSchema.optional(),
574
584
  killed: z.boolean().optional()
575
585
  });
576
586
 
@@ -1698,4 +1708,4 @@ function shouldAutoApproveHappyMcpReason(reason) {
1698
1708
  );
1699
1709
  }
1700
1710
 
1701
- 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, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
1711
+ 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, CliInstallInfoSchema, CliInstallSourceSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, 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, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, 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, shouldAutoApproveHappyMcpReason, shouldAutoApproveHappyMcpToolName, shouldHideSuccessfulHappyMcpTool, 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.11",
3
+ "version": "0.11.12",
4
4
  "description": "Shared message wire types and Zod schemas for Happy clients and services",
5
5
  "author": "kmmao",
6
6
  "license": "MIT",