@kmmao/happy-wire 0.11.10 → 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
 
@@ -1555,6 +1565,169 @@ const sessionSummaryStateSchema = z__namespace.object({
1555
1565
  updatedAt: z__namespace.number()
1556
1566
  });
1557
1567
 
1568
+ const HAPPY_MCP_TOOL_NAMES = [
1569
+ "change_title",
1570
+ "query_project_knowledge",
1571
+ "update_progress",
1572
+ "update_session_summary"
1573
+ ];
1574
+ const HAPPY_MCP_TOOL_SPECS = {
1575
+ change_title: {
1576
+ title: "Change Title",
1577
+ description: 'Set or update the chat session title. Titles should be short (under 50 chars) and action-oriented, e.g. "Fix auth token refresh".',
1578
+ failureLabel: "Failed to change chat title",
1579
+ inputSchema: {
1580
+ title: z.z.string().describe("The new title for the chat session")
1581
+ },
1582
+ hideSuccessfulCall: true,
1583
+ autoApproveByDefault: true,
1584
+ permissionAction: "Waiting for approval to update chat title",
1585
+ dynamicAction: "Updating chat title",
1586
+ fallbackAction: "Update chat title",
1587
+ reasonPhrases: ["title update", "title updates", "change_title"]
1588
+ },
1589
+ query_project_knowledge: {
1590
+ title: "Project Knowledge",
1591
+ description: "Search the project knowledge base for relevant context, past decisions, known pitfalls, and conventions.",
1592
+ failureLabel: "Knowledge query failed",
1593
+ inputSchema: {
1594
+ query: z.z.string().describe("Search query describing what you want to know")
1595
+ },
1596
+ hideSuccessfulCall: false,
1597
+ autoApproveByDefault: false,
1598
+ permissionAction: "Waiting for approval to search project knowledge",
1599
+ dynamicAction: "Searching project knowledge",
1600
+ fallbackAction: "Search project knowledge",
1601
+ reasonPhrases: []
1602
+ },
1603
+ update_progress: {
1604
+ title: "Update Progress",
1605
+ description: 'Optional override for the App\'s Progress tab. In most cases your TodoWrite calls are auto-mirrored, so you do NOT need to call this. Use it only when you want to set extra fields the CLI hook does not capture (currentStage, blockers) or to force a new list boundary with `listId: "new"`.',
1606
+ failureLabel: "Failed to update progress",
1607
+ inputSchema: {
1608
+ todos: z.z.array(
1609
+ z.z.object({
1610
+ content: z.z.string().describe("Concise description of the task"),
1611
+ status: z.z.enum(["pending", "in_progress", "completed"]).describe("Current status of the task"),
1612
+ activeForm: z.z.string().optional().describe(
1613
+ "Imperative-present form shown when status is in_progress"
1614
+ ),
1615
+ stage: z.z.string().optional().describe("Optional phase/stage label")
1616
+ })
1617
+ ).describe("The full checklist \u2014 always send every item, not a delta"),
1618
+ currentStage: z.z.string().optional().describe("Optional overall stage name for the checklist"),
1619
+ blockers: z.z.array(z.z.string()).optional().describe("Optional list of things blocking progress"),
1620
+ listId: z.z.string().optional().describe("Target list id. Use 'new' to force a fresh list"),
1621
+ label: z.z.string().optional().describe("Short human-readable name for this task list")
1622
+ },
1623
+ hideSuccessfulCall: false,
1624
+ autoApproveByDefault: true,
1625
+ permissionAction: "Waiting for approval to update progress",
1626
+ dynamicAction: "Updating progress",
1627
+ fallbackAction: "Update progress",
1628
+ reasonPhrases: ["progress update", "progress updates", "update_progress"]
1629
+ },
1630
+ update_session_summary: {
1631
+ title: "Update Session Summary",
1632
+ description: "Write a narrative session summary the App shows above the progress checklist. Call at milestones, not per task: after first understanding the goal, when scope shifts significantly, when key decisions are made, or when moving to a new phase. Full rewrite each call.",
1633
+ failureLabel: "Failed to update session summary",
1634
+ inputSchema: {
1635
+ goal: z.z.string().describe("What the user ultimately wants to accomplish"),
1636
+ currentFocus: z.z.string().optional().describe("Brief description of the active task or phase"),
1637
+ keyDecisions: z.z.array(z.z.string()).optional().describe("Important choices already made this session"),
1638
+ openQuestions: z.z.array(z.z.string()).optional().describe("Unresolved questions or pending decisions"),
1639
+ impactScope: z.z.array(z.z.string()).optional().describe("Modules/files/areas affected by this session's work")
1640
+ },
1641
+ hideSuccessfulCall: false,
1642
+ autoApproveByDefault: true,
1643
+ permissionAction: "Waiting for approval to update session summary",
1644
+ dynamicAction: "Updating session summary",
1645
+ fallbackAction: "Update session summary",
1646
+ reasonPhrases: [
1647
+ "session summary",
1648
+ "update_session_summary",
1649
+ "summary update"
1650
+ ]
1651
+ }
1652
+ };
1653
+ const HAPPY_MCP_TOOL_NAME_SET = new Set(HAPPY_MCP_TOOL_NAMES);
1654
+ const HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES.filter(
1655
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].autoApproveByDefault
1656
+ );
1657
+ const HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES.filter(
1658
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].hideSuccessfulCall
1659
+ );
1660
+ function getHappyMcpToolAliases(toolName) {
1661
+ return [
1662
+ toolName,
1663
+ `happy__${toolName}`,
1664
+ `mcp__happy__${toolName}`
1665
+ ];
1666
+ }
1667
+ function normalizeHappyMcpToolName(toolName) {
1668
+ if (typeof toolName !== "string") {
1669
+ return null;
1670
+ }
1671
+ const trimmed = toolName.trim();
1672
+ if (!trimmed) {
1673
+ return null;
1674
+ }
1675
+ if (HAPPY_MCP_TOOL_NAME_SET.has(trimmed)) {
1676
+ return trimmed;
1677
+ }
1678
+ const withoutNamespace = trimmed.startsWith("mcp__happy__") ? trimmed.slice("mcp__happy__".length) : trimmed.startsWith("happy__") ? trimmed.slice("happy__".length) : null;
1679
+ if (withoutNamespace && HAPPY_MCP_TOOL_NAME_SET.has(withoutNamespace)) {
1680
+ return withoutNamespace;
1681
+ }
1682
+ return null;
1683
+ }
1684
+ function isHappyMcpToolName(toolName) {
1685
+ return normalizeHappyMcpToolName(toolName) !== null;
1686
+ }
1687
+ function isHappyMcpToolAlias(toolName, canonicalToolName) {
1688
+ return normalizeHappyMcpToolName(toolName) === canonicalToolName;
1689
+ }
1690
+ function getHappyMcpToolTitle(toolName) {
1691
+ const canonical = normalizeHappyMcpToolName(toolName);
1692
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].title : null;
1693
+ }
1694
+ function getHappyMcpToolAction(toolName, mode) {
1695
+ const canonical = normalizeHappyMcpToolName(toolName);
1696
+ if (!canonical) {
1697
+ return null;
1698
+ }
1699
+ const spec = HAPPY_MCP_TOOL_SPECS[canonical];
1700
+ if (mode === "permission") {
1701
+ return spec.permissionAction;
1702
+ }
1703
+ if (mode === "dynamic") {
1704
+ return spec.dynamicAction;
1705
+ }
1706
+ return spec.fallbackAction;
1707
+ }
1708
+ function shouldHideSuccessfulHappyMcpTool(toolName) {
1709
+ const canonical = normalizeHappyMcpToolName(toolName);
1710
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].hideSuccessfulCall : false;
1711
+ }
1712
+ function shouldAutoApproveHappyMcpToolName(toolName) {
1713
+ const canonical = normalizeHappyMcpToolName(toolName);
1714
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].autoApproveByDefault : false;
1715
+ }
1716
+ function shouldAutoApproveHappyMcpReason(reason) {
1717
+ if (typeof reason !== "string") {
1718
+ return false;
1719
+ }
1720
+ const normalizedReason = reason.toLowerCase();
1721
+ if (!normalizedReason.includes("happy")) {
1722
+ return false;
1723
+ }
1724
+ return HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES.some(
1725
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].reasonPhrases.some(
1726
+ (phrase) => normalizedReason.includes(phrase)
1727
+ )
1728
+ );
1729
+ }
1730
+
1558
1731
  exports.AGENT_MSG_PRIORITIES = AGENT_MSG_PRIORITIES;
1559
1732
  exports.AGENT_MSG_STATUSES = AGENT_MSG_STATUSES;
1560
1733
  exports.AGENT_MSG_TYPES = AGENT_MSG_TYPES;
@@ -1587,6 +1760,8 @@ exports.BUILT_IN_AI_BACKEND_PROFILE_IDS = BUILT_IN_AI_BACKEND_PROFILE_IDS;
1587
1760
  exports.BootstrapProfileSummarySchema = BootstrapProfileSummarySchema;
1588
1761
  exports.BriefMessageSchema = BriefMessageSchema;
1589
1762
  exports.BuiltInAIBackendProfileIdSchema = BuiltInAIBackendProfileIdSchema;
1763
+ exports.CliInstallInfoSchema = CliInstallInfoSchema;
1764
+ exports.CliInstallSourceSchema = CliInstallSourceSchema;
1590
1765
  exports.CodexConfigSchema = CodexConfigSchema;
1591
1766
  exports.CoreUpdateBodySchema = CoreUpdateBodySchema;
1592
1767
  exports.CoreUpdateContainerSchema = CoreUpdateContainerSchema;
@@ -1600,6 +1775,10 @@ exports.DaemonStateSchema = DaemonStateSchema;
1600
1775
  exports.DefaultPermissionModeSchema = DefaultPermissionModeSchema;
1601
1776
  exports.EVIDENCE_KINDS = EVIDENCE_KINDS;
1602
1777
  exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
1778
+ exports.HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES = HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES;
1779
+ exports.HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES = HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES;
1780
+ exports.HAPPY_MCP_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES;
1781
+ exports.HAPPY_MCP_TOOL_SPECS = HAPPY_MCP_TOOL_SPECS;
1603
1782
  exports.InboxCategorySchema = InboxCategorySchema;
1604
1783
  exports.InboxItemSummarySchema = InboxItemSummarySchema;
1605
1784
  exports.InboxNewItemSchema = InboxNewItemSchema;
@@ -1687,9 +1866,15 @@ exports.WorldAutonomyPolicySchema = WorldAutonomyPolicySchema;
1687
1866
  exports.WorldSuggestionUpdatedSchema = WorldSuggestionUpdatedSchema;
1688
1867
  exports.createEnvelope = createEnvelope;
1689
1868
  exports.createResolvedRuntimeProfile = createResolvedRuntimeProfile;
1869
+ exports.getHappyMcpToolAction = getHappyMcpToolAction;
1870
+ exports.getHappyMcpToolAliases = getHappyMcpToolAliases;
1871
+ exports.getHappyMcpToolTitle = getHappyMcpToolTitle;
1690
1872
  exports.getProfileEnvironmentVariables = getProfileEnvironmentVariables;
1691
1873
  exports.getSuggestionPayloadSchema = getSuggestionPayloadSchema;
1874
+ exports.isHappyMcpToolAlias = isHappyMcpToolAlias;
1875
+ exports.isHappyMcpToolName = isHappyMcpToolName;
1692
1876
  exports.isTrustedRuntimeProfile = isTrustedRuntimeProfile;
1877
+ exports.normalizeHappyMcpToolName = normalizeHappyMcpToolName;
1693
1878
  exports.normalizeResolvedRuntimeProfile = normalizeResolvedRuntimeProfile;
1694
1879
  exports.sessionContextUsageCategorySchema = sessionContextUsageCategorySchema;
1695
1880
  exports.sessionContextUsageEventSchema = sessionContextUsageEventSchema;
@@ -1722,6 +1907,9 @@ exports.sessionTurnEndEventSchema = sessionTurnEndEventSchema;
1722
1907
  exports.sessionTurnEndStatusSchema = sessionTurnEndStatusSchema;
1723
1908
  exports.sessionTurnStartEventSchema = sessionTurnStartEventSchema;
1724
1909
  exports.sessionUsageUpdateEventSchema = sessionUsageUpdateEventSchema;
1910
+ exports.shouldAutoApproveHappyMcpReason = shouldAutoApproveHappyMcpReason;
1911
+ exports.shouldAutoApproveHappyMcpToolName = shouldAutoApproveHappyMcpToolName;
1912
+ exports.shouldHideSuccessfulHappyMcpTool = shouldHideSuccessfulHappyMcpTool;
1725
1913
  exports.terminalCloseRequestSchema = terminalCloseRequestSchema;
1726
1914
  exports.terminalExitPayloadSchema = terminalExitPayloadSchema;
1727
1915
  exports.terminalInputPayloadSchema = terminalInputPayloadSchema;
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>;
@@ -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>;
@@ -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";
@@ -3554,5 +3577,33 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
3554
3577
  }, z.core.$strip>;
3555
3578
  type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
3556
3579
 
3557
- 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 };
3558
- 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 };
3580
+ declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary"];
3581
+ type HappyMcpCanonicalToolName = (typeof HAPPY_MCP_TOOL_NAMES)[number];
3582
+ type HappyMcpToolActionMode = "dynamic" | "permission" | "fallback";
3583
+ type HappyMcpToolSpec = {
3584
+ title: string;
3585
+ description: string;
3586
+ failureLabel: string;
3587
+ inputSchema: Record<string, z$1.ZodTypeAny>;
3588
+ hideSuccessfulCall: boolean;
3589
+ autoApproveByDefault: boolean;
3590
+ permissionAction: string;
3591
+ dynamicAction: string;
3592
+ fallbackAction: string;
3593
+ reasonPhrases: string[];
3594
+ };
3595
+ declare const HAPPY_MCP_TOOL_SPECS: Record<HappyMcpCanonicalToolName, HappyMcpToolSpec>;
3596
+ declare const HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES: HappyMcpCanonicalToolName[];
3597
+ declare const HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES: HappyMcpCanonicalToolName[];
3598
+ declare function getHappyMcpToolAliases(toolName: HappyMcpCanonicalToolName): readonly string[];
3599
+ declare function normalizeHappyMcpToolName(toolName: string | null | undefined): HappyMcpCanonicalToolName | null;
3600
+ declare function isHappyMcpToolName(toolName: string | null | undefined): boolean;
3601
+ declare function isHappyMcpToolAlias(toolName: string | null | undefined, canonicalToolName: HappyMcpCanonicalToolName): boolean;
3602
+ declare function getHappyMcpToolTitle(toolName: string | null | undefined): string | null;
3603
+ declare function getHappyMcpToolAction(toolName: string | null | undefined, mode: HappyMcpToolActionMode): string | null;
3604
+ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | undefined): boolean;
3605
+ declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
3606
+ declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
3607
+
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>;
@@ -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>;
@@ -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";
@@ -3554,5 +3577,33 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
3554
3577
  }, z.core.$strip>;
3555
3578
  type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
3556
3579
 
3557
- 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 };
3558
- 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 };
3580
+ declare const HAPPY_MCP_TOOL_NAMES: readonly ["change_title", "query_project_knowledge", "update_progress", "update_session_summary"];
3581
+ type HappyMcpCanonicalToolName = (typeof HAPPY_MCP_TOOL_NAMES)[number];
3582
+ type HappyMcpToolActionMode = "dynamic" | "permission" | "fallback";
3583
+ type HappyMcpToolSpec = {
3584
+ title: string;
3585
+ description: string;
3586
+ failureLabel: string;
3587
+ inputSchema: Record<string, z$1.ZodTypeAny>;
3588
+ hideSuccessfulCall: boolean;
3589
+ autoApproveByDefault: boolean;
3590
+ permissionAction: string;
3591
+ dynamicAction: string;
3592
+ fallbackAction: string;
3593
+ reasonPhrases: string[];
3594
+ };
3595
+ declare const HAPPY_MCP_TOOL_SPECS: Record<HappyMcpCanonicalToolName, HappyMcpToolSpec>;
3596
+ declare const HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES: HappyMcpCanonicalToolName[];
3597
+ declare const HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES: HappyMcpCanonicalToolName[];
3598
+ declare function getHappyMcpToolAliases(toolName: HappyMcpCanonicalToolName): readonly string[];
3599
+ declare function normalizeHappyMcpToolName(toolName: string | null | undefined): HappyMcpCanonicalToolName | null;
3600
+ declare function isHappyMcpToolName(toolName: string | null | undefined): boolean;
3601
+ declare function isHappyMcpToolAlias(toolName: string | null | undefined, canonicalToolName: HappyMcpCanonicalToolName): boolean;
3602
+ declare function getHappyMcpToolTitle(toolName: string | null | undefined): string | null;
3603
+ declare function getHappyMcpToolAction(toolName: string | null | undefined, mode: HappyMcpToolActionMode): string | null;
3604
+ declare function shouldHideSuccessfulHappyMcpTool(toolName: string | null | undefined): boolean;
3605
+ declare function shouldAutoApproveHappyMcpToolName(toolName: string | null | undefined): boolean;
3606
+ declare function shouldAutoApproveHappyMcpReason(reason: string | null | undefined): boolean;
3607
+
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
 
@@ -1535,4 +1545,167 @@ const sessionSummaryStateSchema = z.object({
1535
1545
  updatedAt: z.number()
1536
1546
  });
1537
1547
 
1538
- 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 };
1548
+ const HAPPY_MCP_TOOL_NAMES = [
1549
+ "change_title",
1550
+ "query_project_knowledge",
1551
+ "update_progress",
1552
+ "update_session_summary"
1553
+ ];
1554
+ const HAPPY_MCP_TOOL_SPECS = {
1555
+ change_title: {
1556
+ title: "Change Title",
1557
+ description: 'Set or update the chat session title. Titles should be short (under 50 chars) and action-oriented, e.g. "Fix auth token refresh".',
1558
+ failureLabel: "Failed to change chat title",
1559
+ inputSchema: {
1560
+ title: z$1.string().describe("The new title for the chat session")
1561
+ },
1562
+ hideSuccessfulCall: true,
1563
+ autoApproveByDefault: true,
1564
+ permissionAction: "Waiting for approval to update chat title",
1565
+ dynamicAction: "Updating chat title",
1566
+ fallbackAction: "Update chat title",
1567
+ reasonPhrases: ["title update", "title updates", "change_title"]
1568
+ },
1569
+ query_project_knowledge: {
1570
+ title: "Project Knowledge",
1571
+ description: "Search the project knowledge base for relevant context, past decisions, known pitfalls, and conventions.",
1572
+ failureLabel: "Knowledge query failed",
1573
+ inputSchema: {
1574
+ query: z$1.string().describe("Search query describing what you want to know")
1575
+ },
1576
+ hideSuccessfulCall: false,
1577
+ autoApproveByDefault: false,
1578
+ permissionAction: "Waiting for approval to search project knowledge",
1579
+ dynamicAction: "Searching project knowledge",
1580
+ fallbackAction: "Search project knowledge",
1581
+ reasonPhrases: []
1582
+ },
1583
+ update_progress: {
1584
+ title: "Update Progress",
1585
+ description: 'Optional override for the App\'s Progress tab. In most cases your TodoWrite calls are auto-mirrored, so you do NOT need to call this. Use it only when you want to set extra fields the CLI hook does not capture (currentStage, blockers) or to force a new list boundary with `listId: "new"`.',
1586
+ failureLabel: "Failed to update progress",
1587
+ inputSchema: {
1588
+ todos: z$1.array(
1589
+ z$1.object({
1590
+ content: z$1.string().describe("Concise description of the task"),
1591
+ status: z$1.enum(["pending", "in_progress", "completed"]).describe("Current status of the task"),
1592
+ activeForm: z$1.string().optional().describe(
1593
+ "Imperative-present form shown when status is in_progress"
1594
+ ),
1595
+ stage: z$1.string().optional().describe("Optional phase/stage label")
1596
+ })
1597
+ ).describe("The full checklist \u2014 always send every item, not a delta"),
1598
+ currentStage: z$1.string().optional().describe("Optional overall stage name for the checklist"),
1599
+ blockers: z$1.array(z$1.string()).optional().describe("Optional list of things blocking progress"),
1600
+ listId: z$1.string().optional().describe("Target list id. Use 'new' to force a fresh list"),
1601
+ label: z$1.string().optional().describe("Short human-readable name for this task list")
1602
+ },
1603
+ hideSuccessfulCall: false,
1604
+ autoApproveByDefault: true,
1605
+ permissionAction: "Waiting for approval to update progress",
1606
+ dynamicAction: "Updating progress",
1607
+ fallbackAction: "Update progress",
1608
+ reasonPhrases: ["progress update", "progress updates", "update_progress"]
1609
+ },
1610
+ update_session_summary: {
1611
+ title: "Update Session Summary",
1612
+ description: "Write a narrative session summary the App shows above the progress checklist. Call at milestones, not per task: after first understanding the goal, when scope shifts significantly, when key decisions are made, or when moving to a new phase. Full rewrite each call.",
1613
+ failureLabel: "Failed to update session summary",
1614
+ inputSchema: {
1615
+ goal: z$1.string().describe("What the user ultimately wants to accomplish"),
1616
+ currentFocus: z$1.string().optional().describe("Brief description of the active task or phase"),
1617
+ keyDecisions: z$1.array(z$1.string()).optional().describe("Important choices already made this session"),
1618
+ openQuestions: z$1.array(z$1.string()).optional().describe("Unresolved questions or pending decisions"),
1619
+ impactScope: z$1.array(z$1.string()).optional().describe("Modules/files/areas affected by this session's work")
1620
+ },
1621
+ hideSuccessfulCall: false,
1622
+ autoApproveByDefault: true,
1623
+ permissionAction: "Waiting for approval to update session summary",
1624
+ dynamicAction: "Updating session summary",
1625
+ fallbackAction: "Update session summary",
1626
+ reasonPhrases: [
1627
+ "session summary",
1628
+ "update_session_summary",
1629
+ "summary update"
1630
+ ]
1631
+ }
1632
+ };
1633
+ const HAPPY_MCP_TOOL_NAME_SET = new Set(HAPPY_MCP_TOOL_NAMES);
1634
+ const HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES.filter(
1635
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].autoApproveByDefault
1636
+ );
1637
+ const HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES = HAPPY_MCP_TOOL_NAMES.filter(
1638
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].hideSuccessfulCall
1639
+ );
1640
+ function getHappyMcpToolAliases(toolName) {
1641
+ return [
1642
+ toolName,
1643
+ `happy__${toolName}`,
1644
+ `mcp__happy__${toolName}`
1645
+ ];
1646
+ }
1647
+ function normalizeHappyMcpToolName(toolName) {
1648
+ if (typeof toolName !== "string") {
1649
+ return null;
1650
+ }
1651
+ const trimmed = toolName.trim();
1652
+ if (!trimmed) {
1653
+ return null;
1654
+ }
1655
+ if (HAPPY_MCP_TOOL_NAME_SET.has(trimmed)) {
1656
+ return trimmed;
1657
+ }
1658
+ const withoutNamespace = trimmed.startsWith("mcp__happy__") ? trimmed.slice("mcp__happy__".length) : trimmed.startsWith("happy__") ? trimmed.slice("happy__".length) : null;
1659
+ if (withoutNamespace && HAPPY_MCP_TOOL_NAME_SET.has(withoutNamespace)) {
1660
+ return withoutNamespace;
1661
+ }
1662
+ return null;
1663
+ }
1664
+ function isHappyMcpToolName(toolName) {
1665
+ return normalizeHappyMcpToolName(toolName) !== null;
1666
+ }
1667
+ function isHappyMcpToolAlias(toolName, canonicalToolName) {
1668
+ return normalizeHappyMcpToolName(toolName) === canonicalToolName;
1669
+ }
1670
+ function getHappyMcpToolTitle(toolName) {
1671
+ const canonical = normalizeHappyMcpToolName(toolName);
1672
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].title : null;
1673
+ }
1674
+ function getHappyMcpToolAction(toolName, mode) {
1675
+ const canonical = normalizeHappyMcpToolName(toolName);
1676
+ if (!canonical) {
1677
+ return null;
1678
+ }
1679
+ const spec = HAPPY_MCP_TOOL_SPECS[canonical];
1680
+ if (mode === "permission") {
1681
+ return spec.permissionAction;
1682
+ }
1683
+ if (mode === "dynamic") {
1684
+ return spec.dynamicAction;
1685
+ }
1686
+ return spec.fallbackAction;
1687
+ }
1688
+ function shouldHideSuccessfulHappyMcpTool(toolName) {
1689
+ const canonical = normalizeHappyMcpToolName(toolName);
1690
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].hideSuccessfulCall : false;
1691
+ }
1692
+ function shouldAutoApproveHappyMcpToolName(toolName) {
1693
+ const canonical = normalizeHappyMcpToolName(toolName);
1694
+ return canonical ? HAPPY_MCP_TOOL_SPECS[canonical].autoApproveByDefault : false;
1695
+ }
1696
+ function shouldAutoApproveHappyMcpReason(reason) {
1697
+ if (typeof reason !== "string") {
1698
+ return false;
1699
+ }
1700
+ const normalizedReason = reason.toLowerCase();
1701
+ if (!normalizedReason.includes("happy")) {
1702
+ return false;
1703
+ }
1704
+ return HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES.some(
1705
+ (toolName) => HAPPY_MCP_TOOL_SPECS[toolName].reasonPhrases.some(
1706
+ (phrase) => normalizedReason.includes(phrase)
1707
+ )
1708
+ );
1709
+ }
1710
+
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.10",
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",