@kmmao/happy-wire 0.17.0 → 0.18.0
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 +45 -10
- package/dist/index.d.cts +56 -24
- package/dist/index.d.mts +56 -24
- package/dist/index.mjs +44 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1700,6 +1700,14 @@ const sessionProgressTodoSchema = z__namespace.object({
|
|
|
1700
1700
|
*/
|
|
1701
1701
|
verificationNudgeNeeded: z__namespace.boolean().optional()
|
|
1702
1702
|
});
|
|
1703
|
+
const sessionSummaryStateSchema = z__namespace.object({
|
|
1704
|
+
goal: z__namespace.string(),
|
|
1705
|
+
currentFocus: z__namespace.string().optional(),
|
|
1706
|
+
keyDecisions: z__namespace.array(z__namespace.string()).optional(),
|
|
1707
|
+
openQuestions: z__namespace.array(z__namespace.string()).optional(),
|
|
1708
|
+
impactScope: z__namespace.array(z__namespace.string()).optional(),
|
|
1709
|
+
updatedAt: z__namespace.number()
|
|
1710
|
+
});
|
|
1703
1711
|
const sessionProgressListSchema = z__namespace.object({
|
|
1704
1712
|
/** Stable UUID for tab switching / explicit Agent addressing. */
|
|
1705
1713
|
id: z__namespace.string(),
|
|
@@ -1727,7 +1735,13 @@ const sessionProgressListSchema = z__namespace.object({
|
|
|
1727
1735
|
* so the CLI hook only fires ONE synthetic summary-trigger message per
|
|
1728
1736
|
* list lifecycle, even if subsequent TodoWrite calls keep it all done.
|
|
1729
1737
|
*/
|
|
1730
|
-
summaryGeneratedAt: z__namespace.number().optional()
|
|
1738
|
+
summaryGeneratedAt: z__namespace.number().optional(),
|
|
1739
|
+
/**
|
|
1740
|
+
* Narrative summary scoped to this list. Written by the CLI when
|
|
1741
|
+
* `update_session_summary` is called while this list is active. Allows
|
|
1742
|
+
* the App to show per-list goal/decisions when the user switches tabs.
|
|
1743
|
+
*/
|
|
1744
|
+
summary: sessionSummaryStateSchema.optional()
|
|
1731
1745
|
});
|
|
1732
1746
|
const sessionProgressStateSchema = z__namespace.object({
|
|
1733
1747
|
/** Ordered by startedAt asc; last item is typically the active one. */
|
|
@@ -1743,14 +1757,6 @@ const sessionProgressStateSchema = z__namespace.object({
|
|
|
1743
1757
|
blockers: z__namespace.array(z__namespace.string()).optional(),
|
|
1744
1758
|
updatedAt: z__namespace.number()
|
|
1745
1759
|
});
|
|
1746
|
-
const sessionSummaryStateSchema = z__namespace.object({
|
|
1747
|
-
goal: z__namespace.string(),
|
|
1748
|
-
currentFocus: z__namespace.string().optional(),
|
|
1749
|
-
keyDecisions: z__namespace.array(z__namespace.string()).optional(),
|
|
1750
|
-
openQuestions: z__namespace.array(z__namespace.string()).optional(),
|
|
1751
|
-
impactScope: z__namespace.array(z__namespace.string()).optional(),
|
|
1752
|
-
updatedAt: z__namespace.number()
|
|
1753
|
-
});
|
|
1754
1760
|
const sessionSummaryRefreshActiveRequestSchema = z__namespace.object({
|
|
1755
1761
|
requestId: z__namespace.string().min(1),
|
|
1756
1762
|
requestedAt: z__namespace.number(),
|
|
@@ -2120,6 +2126,32 @@ const GetContextUsageResponseSchema = z.z.object({
|
|
|
2120
2126
|
isLoaded: z.z.boolean().optional()
|
|
2121
2127
|
}))
|
|
2122
2128
|
}).strict();
|
|
2129
|
+
const GetContextDetailRequestSchema = z.z.object({
|
|
2130
|
+
/**
|
|
2131
|
+
* Category name from getContextUsage (e.g. "Messages", "System prompt",
|
|
2132
|
+
* "Skills", "Custom agents", "Autocompact buffer", "Memory files").
|
|
2133
|
+
*/
|
|
2134
|
+
category: z.z.string().min(1).max(128)
|
|
2135
|
+
}).strict();
|
|
2136
|
+
const GetContextDetailResponseSchema = z.z.object({
|
|
2137
|
+
/** Parsed JSONL records for the requested category. */
|
|
2138
|
+
items: z.z.array(z.z.object({
|
|
2139
|
+
/** JSONL record type (user, assistant, attachment, system, summary, etc.) */
|
|
2140
|
+
type: z.z.string(),
|
|
2141
|
+
/** Role when applicable (user / assistant) */
|
|
2142
|
+
role: z.z.string().optional(),
|
|
2143
|
+
/** Full text content of the record. Truncated at 10 KB per item. */
|
|
2144
|
+
content: z.z.string(),
|
|
2145
|
+
/** UUID of the JSONL record */
|
|
2146
|
+
uuid: z.z.string().optional(),
|
|
2147
|
+
/** ISO timestamp of the record */
|
|
2148
|
+
timestamp: z.z.string().optional()
|
|
2149
|
+
})),
|
|
2150
|
+
/** Category name echoed back for display */
|
|
2151
|
+
category: z.z.string(),
|
|
2152
|
+
/** Total number of matching items */
|
|
2153
|
+
totalItems: z.z.number().int().nonnegative()
|
|
2154
|
+
}).strict();
|
|
2123
2155
|
const GetMcpServersRequestSchema = z.z.object({}).strict();
|
|
2124
2156
|
const GetMcpServersResponseSchema = z.z.object({
|
|
2125
2157
|
servers: z.z.array(z.z.object({
|
|
@@ -2142,7 +2174,8 @@ const CLAUDE_CONTROL_METHODS = [
|
|
|
2142
2174
|
"read_file",
|
|
2143
2175
|
"mcp_call",
|
|
2144
2176
|
"get_context_usage",
|
|
2145
|
-
"get_mcp_servers"
|
|
2177
|
+
"get_mcp_servers",
|
|
2178
|
+
"get_context_detail"
|
|
2146
2179
|
];
|
|
2147
2180
|
|
|
2148
2181
|
exports.AIBackendProfileSchema = AIBackendProfileSchema;
|
|
@@ -2203,6 +2236,8 @@ exports.DefaultPermissionModeSchema = DefaultPermissionModeSchema;
|
|
|
2203
2236
|
exports.EnvironmentVariableSchema = EnvironmentVariableSchema;
|
|
2204
2237
|
exports.GetBinaryVersionRequestSchema = GetBinaryVersionRequestSchema;
|
|
2205
2238
|
exports.GetBinaryVersionResponseSchema = GetBinaryVersionResponseSchema;
|
|
2239
|
+
exports.GetContextDetailRequestSchema = GetContextDetailRequestSchema;
|
|
2240
|
+
exports.GetContextDetailResponseSchema = GetContextDetailResponseSchema;
|
|
2206
2241
|
exports.GetContextUsageRequestSchema = GetContextUsageRequestSchema;
|
|
2207
2242
|
exports.GetContextUsageResponseSchema = GetContextUsageResponseSchema;
|
|
2208
2243
|
exports.GetMcpServersRequestSchema = GetMcpServersRequestSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1570,8 +1570,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
|
1570
1570
|
}>;
|
|
1571
1571
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1572
1572
|
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1573
|
-
webhook: "webhook";
|
|
1574
1573
|
supervisor: "supervisor";
|
|
1574
|
+
webhook: "webhook";
|
|
1575
1575
|
agent_loop: "agent_loop";
|
|
1576
1576
|
task: "task";
|
|
1577
1577
|
}>;
|
|
@@ -1588,8 +1588,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
|
1588
1588
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1589
1589
|
id: z.ZodString;
|
|
1590
1590
|
kind: z.ZodEnum<{
|
|
1591
|
-
webhook: "webhook";
|
|
1592
1591
|
supervisor: "supervisor";
|
|
1592
|
+
webhook: "webhook";
|
|
1593
1593
|
agent_loop: "agent_loop";
|
|
1594
1594
|
task: "task";
|
|
1595
1595
|
}>;
|
|
@@ -1751,8 +1751,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1751
1751
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1752
1752
|
id: z.ZodString;
|
|
1753
1753
|
kind: z.ZodEnum<{
|
|
1754
|
-
webhook: "webhook";
|
|
1755
1754
|
supervisor: "supervisor";
|
|
1755
|
+
webhook: "webhook";
|
|
1756
1756
|
agent_loop: "agent_loop";
|
|
1757
1757
|
task: "task";
|
|
1758
1758
|
}>;
|
|
@@ -1993,8 +1993,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1993
1993
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1994
1994
|
id: z.ZodString;
|
|
1995
1995
|
kind: z.ZodEnum<{
|
|
1996
|
-
webhook: "webhook";
|
|
1997
1996
|
supervisor: "supervisor";
|
|
1997
|
+
webhook: "webhook";
|
|
1998
1998
|
agent_loop: "agent_loop";
|
|
1999
1999
|
task: "task";
|
|
2000
2000
|
}>;
|
|
@@ -2162,8 +2162,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2162
2162
|
}>;
|
|
2163
2163
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2164
2164
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2165
|
-
user: "user";
|
|
2166
2165
|
session: "session";
|
|
2166
|
+
user: "user";
|
|
2167
2167
|
supervisor: "supervisor";
|
|
2168
2168
|
}>;
|
|
2169
2169
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -2196,8 +2196,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2196
2196
|
repo_map: "repo_map";
|
|
2197
2197
|
}>;
|
|
2198
2198
|
contributorType: z.ZodEnum<{
|
|
2199
|
-
user: "user";
|
|
2200
2199
|
session: "session";
|
|
2200
|
+
user: "user";
|
|
2201
2201
|
supervisor: "supervisor";
|
|
2202
2202
|
}>;
|
|
2203
2203
|
action: z.ZodEnum<{
|
|
@@ -2534,9 +2534,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
|
|
|
2534
2534
|
}>;
|
|
2535
2535
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2536
2536
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
2537
|
+
webhook: "webhook";
|
|
2537
2538
|
manual: "manual";
|
|
2538
2539
|
cron: "cron";
|
|
2539
|
-
webhook: "webhook";
|
|
2540
2540
|
}>;
|
|
2541
2541
|
type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
|
|
2542
2542
|
declare const TaskSummarySchema: z.ZodObject<{
|
|
@@ -2557,9 +2557,9 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2557
2557
|
dispatching: "dispatching";
|
|
2558
2558
|
}>;
|
|
2559
2559
|
triggerType: z.ZodEnum<{
|
|
2560
|
+
webhook: "webhook";
|
|
2560
2561
|
manual: "manual";
|
|
2561
2562
|
cron: "cron";
|
|
2562
|
-
webhook: "webhook";
|
|
2563
2563
|
}>;
|
|
2564
2564
|
triggerRef: z.ZodOptional<z.ZodString>;
|
|
2565
2565
|
attempt: z.ZodNumber;
|
|
@@ -3236,6 +3236,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
|
3236
3236
|
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3237
3237
|
}, z.core.$strip>;
|
|
3238
3238
|
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3239
|
+
/**
|
|
3240
|
+
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3241
|
+
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3242
|
+
*/
|
|
3243
|
+
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3244
|
+
goal: z.ZodString;
|
|
3245
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3246
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3247
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3248
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3249
|
+
updatedAt: z.ZodNumber;
|
|
3250
|
+
}, z.core.$strip>;
|
|
3251
|
+
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3239
3252
|
/**
|
|
3240
3253
|
* One task list = one "generation" of the checklist. A session can contain
|
|
3241
3254
|
* multiple generations across time; the auto-mirror hook partitions them
|
|
@@ -3262,6 +3275,14 @@ declare const sessionProgressListSchema: z.ZodObject<{
|
|
|
3262
3275
|
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3263
3276
|
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3264
3277
|
summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
|
|
3278
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
3279
|
+
goal: z.ZodString;
|
|
3280
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3281
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3282
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3283
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3284
|
+
updatedAt: z.ZodNumber;
|
|
3285
|
+
}, z.core.$strip>>;
|
|
3265
3286
|
}, z.core.$strip>;
|
|
3266
3287
|
type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
|
|
3267
3288
|
/**
|
|
@@ -3294,6 +3315,14 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3294
3315
|
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3295
3316
|
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3296
3317
|
summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
|
|
3318
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
3319
|
+
goal: z.ZodString;
|
|
3320
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3321
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3322
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3323
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3324
|
+
updatedAt: z.ZodNumber;
|
|
3325
|
+
}, z.core.$strip>>;
|
|
3297
3326
|
}, z.core.$strip>>>;
|
|
3298
3327
|
currentListId: z.ZodOptional<z.ZodString>;
|
|
3299
3328
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3312,19 +3341,6 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3312
3341
|
updatedAt: z.ZodNumber;
|
|
3313
3342
|
}, z.core.$strip>;
|
|
3314
3343
|
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
3315
|
-
/**
|
|
3316
|
-
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3317
|
-
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3318
|
-
*/
|
|
3319
|
-
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3320
|
-
goal: z.ZodString;
|
|
3321
|
-
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3322
|
-
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3323
|
-
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3324
|
-
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3325
|
-
updatedAt: z.ZodNumber;
|
|
3326
|
-
}, z.core.$strip>;
|
|
3327
|
-
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3328
3344
|
/**
|
|
3329
3345
|
* Active request for request-level summary refresh confirmation.
|
|
3330
3346
|
*
|
|
@@ -3713,6 +3729,22 @@ declare const GetContextUsageResponseSchema: z$1.ZodObject<{
|
|
|
3713
3729
|
}, z$1.core.$strict>;
|
|
3714
3730
|
type GetContextUsageRequest = z$1.infer<typeof GetContextUsageRequestSchema>;
|
|
3715
3731
|
type GetContextUsageResponse = z$1.infer<typeof GetContextUsageResponseSchema>;
|
|
3732
|
+
declare const GetContextDetailRequestSchema: z$1.ZodObject<{
|
|
3733
|
+
category: z$1.ZodString;
|
|
3734
|
+
}, z$1.core.$strict>;
|
|
3735
|
+
declare const GetContextDetailResponseSchema: z$1.ZodObject<{
|
|
3736
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
3737
|
+
type: z$1.ZodString;
|
|
3738
|
+
role: z$1.ZodOptional<z$1.ZodString>;
|
|
3739
|
+
content: z$1.ZodString;
|
|
3740
|
+
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
3741
|
+
timestamp: z$1.ZodOptional<z$1.ZodString>;
|
|
3742
|
+
}, z$1.core.$strip>>;
|
|
3743
|
+
category: z$1.ZodString;
|
|
3744
|
+
totalItems: z$1.ZodNumber;
|
|
3745
|
+
}, z$1.core.$strict>;
|
|
3746
|
+
type GetContextDetailRequest = z$1.infer<typeof GetContextDetailRequestSchema>;
|
|
3747
|
+
type GetContextDetailResponse = z$1.infer<typeof GetContextDetailResponseSchema>;
|
|
3716
3748
|
declare const GetMcpServersRequestSchema: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
3717
3749
|
declare const GetMcpServersResponseSchema: z$1.ZodObject<{
|
|
3718
3750
|
servers: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -3743,8 +3775,8 @@ type GetMcpServersResponse = z$1.infer<typeof GetMcpServersResponseSchema>;
|
|
|
3743
3775
|
* Method name enum — consumers should derive typed handlers from this.
|
|
3744
3776
|
* When adding a new method, update the CLI handler registration too.
|
|
3745
3777
|
*/
|
|
3746
|
-
declare const CLAUDE_CONTROL_METHODS: readonly ["get_session_cost", "get_binary_version", "set_color", "read_file", "mcp_call", "get_context_usage", "get_mcp_servers"];
|
|
3778
|
+
declare const CLAUDE_CONTROL_METHODS: readonly ["get_session_cost", "get_binary_version", "set_color", "read_file", "mcp_call", "get_context_usage", "get_mcp_servers", "get_context_detail"];
|
|
3747
3779
|
type ClaudeControlMethod = typeof CLAUDE_CONTROL_METHODS[number];
|
|
3748
3780
|
|
|
3749
|
-
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|
|
3750
|
-
export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SkillContent, SkillSummary, 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 };
|
|
3781
|
+
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextDetailRequestSchema, GetContextDetailResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|
|
3782
|
+
export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SkillContent, SkillSummary, 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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1570,8 +1570,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
|
1570
1570
|
}>;
|
|
1571
1571
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1572
1572
|
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1573
|
-
webhook: "webhook";
|
|
1574
1573
|
supervisor: "supervisor";
|
|
1574
|
+
webhook: "webhook";
|
|
1575
1575
|
agent_loop: "agent_loop";
|
|
1576
1576
|
task: "task";
|
|
1577
1577
|
}>;
|
|
@@ -1588,8 +1588,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
|
1588
1588
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1589
1589
|
id: z.ZodString;
|
|
1590
1590
|
kind: z.ZodEnum<{
|
|
1591
|
-
webhook: "webhook";
|
|
1592
1591
|
supervisor: "supervisor";
|
|
1592
|
+
webhook: "webhook";
|
|
1593
1593
|
agent_loop: "agent_loop";
|
|
1594
1594
|
task: "task";
|
|
1595
1595
|
}>;
|
|
@@ -1751,8 +1751,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1751
1751
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1752
1752
|
id: z.ZodString;
|
|
1753
1753
|
kind: z.ZodEnum<{
|
|
1754
|
-
webhook: "webhook";
|
|
1755
1754
|
supervisor: "supervisor";
|
|
1755
|
+
webhook: "webhook";
|
|
1756
1756
|
agent_loop: "agent_loop";
|
|
1757
1757
|
task: "task";
|
|
1758
1758
|
}>;
|
|
@@ -1993,8 +1993,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1993
1993
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1994
1994
|
id: z.ZodString;
|
|
1995
1995
|
kind: z.ZodEnum<{
|
|
1996
|
-
webhook: "webhook";
|
|
1997
1996
|
supervisor: "supervisor";
|
|
1997
|
+
webhook: "webhook";
|
|
1998
1998
|
agent_loop: "agent_loop";
|
|
1999
1999
|
task: "task";
|
|
2000
2000
|
}>;
|
|
@@ -2162,8 +2162,8 @@ declare const KnowledgeEntryTypeSchema: z.ZodEnum<{
|
|
|
2162
2162
|
}>;
|
|
2163
2163
|
type KnowledgeEntryType = z.infer<typeof KnowledgeEntryTypeSchema>;
|
|
2164
2164
|
declare const KnowledgeContributorTypeSchema: z.ZodEnum<{
|
|
2165
|
-
user: "user";
|
|
2166
2165
|
session: "session";
|
|
2166
|
+
user: "user";
|
|
2167
2167
|
supervisor: "supervisor";
|
|
2168
2168
|
}>;
|
|
2169
2169
|
type KnowledgeContributorType = z.infer<typeof KnowledgeContributorTypeSchema>;
|
|
@@ -2196,8 +2196,8 @@ declare const CreateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
|
2196
2196
|
repo_map: "repo_map";
|
|
2197
2197
|
}>;
|
|
2198
2198
|
contributorType: z.ZodEnum<{
|
|
2199
|
-
user: "user";
|
|
2200
2199
|
session: "session";
|
|
2200
|
+
user: "user";
|
|
2201
2201
|
supervisor: "supervisor";
|
|
2202
2202
|
}>;
|
|
2203
2203
|
action: z.ZodEnum<{
|
|
@@ -2534,9 +2534,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
|
|
|
2534
2534
|
}>;
|
|
2535
2535
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2536
2536
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
2537
|
+
webhook: "webhook";
|
|
2537
2538
|
manual: "manual";
|
|
2538
2539
|
cron: "cron";
|
|
2539
|
-
webhook: "webhook";
|
|
2540
2540
|
}>;
|
|
2541
2541
|
type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
|
|
2542
2542
|
declare const TaskSummarySchema: z.ZodObject<{
|
|
@@ -2557,9 +2557,9 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2557
2557
|
dispatching: "dispatching";
|
|
2558
2558
|
}>;
|
|
2559
2559
|
triggerType: z.ZodEnum<{
|
|
2560
|
+
webhook: "webhook";
|
|
2560
2561
|
manual: "manual";
|
|
2561
2562
|
cron: "cron";
|
|
2562
|
-
webhook: "webhook";
|
|
2563
2563
|
}>;
|
|
2564
2564
|
triggerRef: z.ZodOptional<z.ZodString>;
|
|
2565
2565
|
attempt: z.ZodNumber;
|
|
@@ -3236,6 +3236,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
|
3236
3236
|
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3237
3237
|
}, z.core.$strip>;
|
|
3238
3238
|
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3239
|
+
/**
|
|
3240
|
+
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3241
|
+
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3242
|
+
*/
|
|
3243
|
+
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3244
|
+
goal: z.ZodString;
|
|
3245
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3246
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3247
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3248
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3249
|
+
updatedAt: z.ZodNumber;
|
|
3250
|
+
}, z.core.$strip>;
|
|
3251
|
+
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3239
3252
|
/**
|
|
3240
3253
|
* One task list = one "generation" of the checklist. A session can contain
|
|
3241
3254
|
* multiple generations across time; the auto-mirror hook partitions them
|
|
@@ -3262,6 +3275,14 @@ declare const sessionProgressListSchema: z.ZodObject<{
|
|
|
3262
3275
|
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3263
3276
|
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3264
3277
|
summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
|
|
3278
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
3279
|
+
goal: z.ZodString;
|
|
3280
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3281
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3282
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3283
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3284
|
+
updatedAt: z.ZodNumber;
|
|
3285
|
+
}, z.core.$strip>>;
|
|
3265
3286
|
}, z.core.$strip>;
|
|
3266
3287
|
type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
|
|
3267
3288
|
/**
|
|
@@ -3294,6 +3315,14 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3294
3315
|
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3295
3316
|
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3296
3317
|
summaryGeneratedAt: z.ZodOptional<z.ZodNumber>;
|
|
3318
|
+
summary: z.ZodOptional<z.ZodObject<{
|
|
3319
|
+
goal: z.ZodString;
|
|
3320
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3321
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3322
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3323
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3324
|
+
updatedAt: z.ZodNumber;
|
|
3325
|
+
}, z.core.$strip>>;
|
|
3297
3326
|
}, z.core.$strip>>>;
|
|
3298
3327
|
currentListId: z.ZodOptional<z.ZodString>;
|
|
3299
3328
|
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3312,19 +3341,6 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3312
3341
|
updatedAt: z.ZodNumber;
|
|
3313
3342
|
}, z.core.$strip>;
|
|
3314
3343
|
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
3315
|
-
/**
|
|
3316
|
-
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3317
|
-
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3318
|
-
*/
|
|
3319
|
-
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3320
|
-
goal: z.ZodString;
|
|
3321
|
-
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3322
|
-
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3323
|
-
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3324
|
-
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3325
|
-
updatedAt: z.ZodNumber;
|
|
3326
|
-
}, z.core.$strip>;
|
|
3327
|
-
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3328
3344
|
/**
|
|
3329
3345
|
* Active request for request-level summary refresh confirmation.
|
|
3330
3346
|
*
|
|
@@ -3713,6 +3729,22 @@ declare const GetContextUsageResponseSchema: z$1.ZodObject<{
|
|
|
3713
3729
|
}, z$1.core.$strict>;
|
|
3714
3730
|
type GetContextUsageRequest = z$1.infer<typeof GetContextUsageRequestSchema>;
|
|
3715
3731
|
type GetContextUsageResponse = z$1.infer<typeof GetContextUsageResponseSchema>;
|
|
3732
|
+
declare const GetContextDetailRequestSchema: z$1.ZodObject<{
|
|
3733
|
+
category: z$1.ZodString;
|
|
3734
|
+
}, z$1.core.$strict>;
|
|
3735
|
+
declare const GetContextDetailResponseSchema: z$1.ZodObject<{
|
|
3736
|
+
items: z$1.ZodArray<z$1.ZodObject<{
|
|
3737
|
+
type: z$1.ZodString;
|
|
3738
|
+
role: z$1.ZodOptional<z$1.ZodString>;
|
|
3739
|
+
content: z$1.ZodString;
|
|
3740
|
+
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
3741
|
+
timestamp: z$1.ZodOptional<z$1.ZodString>;
|
|
3742
|
+
}, z$1.core.$strip>>;
|
|
3743
|
+
category: z$1.ZodString;
|
|
3744
|
+
totalItems: z$1.ZodNumber;
|
|
3745
|
+
}, z$1.core.$strict>;
|
|
3746
|
+
type GetContextDetailRequest = z$1.infer<typeof GetContextDetailRequestSchema>;
|
|
3747
|
+
type GetContextDetailResponse = z$1.infer<typeof GetContextDetailResponseSchema>;
|
|
3716
3748
|
declare const GetMcpServersRequestSchema: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
3717
3749
|
declare const GetMcpServersResponseSchema: z$1.ZodObject<{
|
|
3718
3750
|
servers: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -3743,8 +3775,8 @@ type GetMcpServersResponse = z$1.infer<typeof GetMcpServersResponseSchema>;
|
|
|
3743
3775
|
* Method name enum — consumers should derive typed handlers from this.
|
|
3744
3776
|
* When adding a new method, update the CLI handler registration too.
|
|
3745
3777
|
*/
|
|
3746
|
-
declare const CLAUDE_CONTROL_METHODS: readonly ["get_session_cost", "get_binary_version", "set_color", "read_file", "mcp_call", "get_context_usage", "get_mcp_servers"];
|
|
3778
|
+
declare const CLAUDE_CONTROL_METHODS: readonly ["get_session_cost", "get_binary_version", "set_color", "read_file", "mcp_call", "get_context_usage", "get_mcp_servers", "get_context_detail"];
|
|
3747
3779
|
type ClaudeControlMethod = typeof CLAUDE_CONTROL_METHODS[number];
|
|
3748
3780
|
|
|
3749
|
-
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|
|
3750
|
-
export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SkillContent, SkillSummary, 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 };
|
|
3781
|
+
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextDetailRequestSchema, GetContextDetailResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|
|
3782
|
+
export type { AIBackendProfile, AgentLoopSummary, AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, ClaudeControlMethod, CliInstallInfo, CliInstallSource, CodexAccount, CodexAgentSummary, CodexBackendMode, CodexConfigMode, CodexExperimentalFeature, CodexMcpServerSummary, CodexMetadata, CodexPromptSummary, CodexRateLimits, CodexRequestedBackend, CodexResolvedBackend, CodexRuntimeConfig, CodexSkillSummary, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, GetBinaryVersionRequest, GetBinaryVersionResponse, GetContextDetailRequest, GetContextDetailResponse, GetContextUsageRequest, GetContextUsageResponse, GetMcpServersRequest, GetMcpServersResponse, GetSessionCostRequest, GetSessionCostResponse, HappyMcpCanonicalToolName, HappyMcpToolActionMode, HappyProfileEnvKey, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, LiveKitTokenResponse, MachineMetadata, McpCallRequest, McpCallResponse, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ReadFileRequest, ReadFileResponse, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryRefreshActiveRequest, SessionSummaryRefreshRecentEntry, SessionSummaryRefreshState, SessionSummaryState, SessionTurnEndStatus, SetColorRequest, SetColorResponse, SkillContent, SkillSummary, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1680,6 +1680,14 @@ const sessionProgressTodoSchema = z.object({
|
|
|
1680
1680
|
*/
|
|
1681
1681
|
verificationNudgeNeeded: z.boolean().optional()
|
|
1682
1682
|
});
|
|
1683
|
+
const sessionSummaryStateSchema = z.object({
|
|
1684
|
+
goal: z.string(),
|
|
1685
|
+
currentFocus: z.string().optional(),
|
|
1686
|
+
keyDecisions: z.array(z.string()).optional(),
|
|
1687
|
+
openQuestions: z.array(z.string()).optional(),
|
|
1688
|
+
impactScope: z.array(z.string()).optional(),
|
|
1689
|
+
updatedAt: z.number()
|
|
1690
|
+
});
|
|
1683
1691
|
const sessionProgressListSchema = z.object({
|
|
1684
1692
|
/** Stable UUID for tab switching / explicit Agent addressing. */
|
|
1685
1693
|
id: z.string(),
|
|
@@ -1707,7 +1715,13 @@ const sessionProgressListSchema = z.object({
|
|
|
1707
1715
|
* so the CLI hook only fires ONE synthetic summary-trigger message per
|
|
1708
1716
|
* list lifecycle, even if subsequent TodoWrite calls keep it all done.
|
|
1709
1717
|
*/
|
|
1710
|
-
summaryGeneratedAt: z.number().optional()
|
|
1718
|
+
summaryGeneratedAt: z.number().optional(),
|
|
1719
|
+
/**
|
|
1720
|
+
* Narrative summary scoped to this list. Written by the CLI when
|
|
1721
|
+
* `update_session_summary` is called while this list is active. Allows
|
|
1722
|
+
* the App to show per-list goal/decisions when the user switches tabs.
|
|
1723
|
+
*/
|
|
1724
|
+
summary: sessionSummaryStateSchema.optional()
|
|
1711
1725
|
});
|
|
1712
1726
|
const sessionProgressStateSchema = z.object({
|
|
1713
1727
|
/** Ordered by startedAt asc; last item is typically the active one. */
|
|
@@ -1723,14 +1737,6 @@ const sessionProgressStateSchema = z.object({
|
|
|
1723
1737
|
blockers: z.array(z.string()).optional(),
|
|
1724
1738
|
updatedAt: z.number()
|
|
1725
1739
|
});
|
|
1726
|
-
const sessionSummaryStateSchema = z.object({
|
|
1727
|
-
goal: z.string(),
|
|
1728
|
-
currentFocus: z.string().optional(),
|
|
1729
|
-
keyDecisions: z.array(z.string()).optional(),
|
|
1730
|
-
openQuestions: z.array(z.string()).optional(),
|
|
1731
|
-
impactScope: z.array(z.string()).optional(),
|
|
1732
|
-
updatedAt: z.number()
|
|
1733
|
-
});
|
|
1734
1740
|
const sessionSummaryRefreshActiveRequestSchema = z.object({
|
|
1735
1741
|
requestId: z.string().min(1),
|
|
1736
1742
|
requestedAt: z.number(),
|
|
@@ -2100,6 +2106,32 @@ const GetContextUsageResponseSchema = z$1.object({
|
|
|
2100
2106
|
isLoaded: z$1.boolean().optional()
|
|
2101
2107
|
}))
|
|
2102
2108
|
}).strict();
|
|
2109
|
+
const GetContextDetailRequestSchema = z$1.object({
|
|
2110
|
+
/**
|
|
2111
|
+
* Category name from getContextUsage (e.g. "Messages", "System prompt",
|
|
2112
|
+
* "Skills", "Custom agents", "Autocompact buffer", "Memory files").
|
|
2113
|
+
*/
|
|
2114
|
+
category: z$1.string().min(1).max(128)
|
|
2115
|
+
}).strict();
|
|
2116
|
+
const GetContextDetailResponseSchema = z$1.object({
|
|
2117
|
+
/** Parsed JSONL records for the requested category. */
|
|
2118
|
+
items: z$1.array(z$1.object({
|
|
2119
|
+
/** JSONL record type (user, assistant, attachment, system, summary, etc.) */
|
|
2120
|
+
type: z$1.string(),
|
|
2121
|
+
/** Role when applicable (user / assistant) */
|
|
2122
|
+
role: z$1.string().optional(),
|
|
2123
|
+
/** Full text content of the record. Truncated at 10 KB per item. */
|
|
2124
|
+
content: z$1.string(),
|
|
2125
|
+
/** UUID of the JSONL record */
|
|
2126
|
+
uuid: z$1.string().optional(),
|
|
2127
|
+
/** ISO timestamp of the record */
|
|
2128
|
+
timestamp: z$1.string().optional()
|
|
2129
|
+
})),
|
|
2130
|
+
/** Category name echoed back for display */
|
|
2131
|
+
category: z$1.string(),
|
|
2132
|
+
/** Total number of matching items */
|
|
2133
|
+
totalItems: z$1.number().int().nonnegative()
|
|
2134
|
+
}).strict();
|
|
2103
2135
|
const GetMcpServersRequestSchema = z$1.object({}).strict();
|
|
2104
2136
|
const GetMcpServersResponseSchema = z$1.object({
|
|
2105
2137
|
servers: z$1.array(z$1.object({
|
|
@@ -2122,7 +2154,8 @@ const CLAUDE_CONTROL_METHODS = [
|
|
|
2122
2154
|
"read_file",
|
|
2123
2155
|
"mcp_call",
|
|
2124
2156
|
"get_context_usage",
|
|
2125
|
-
"get_mcp_servers"
|
|
2157
|
+
"get_mcp_servers",
|
|
2158
|
+
"get_context_detail"
|
|
2126
2159
|
];
|
|
2127
2160
|
|
|
2128
|
-
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|
|
2161
|
+
export { AIBackendProfileSchema, AgentLoopSummarySchema, AgentMessageSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CLAUDE_CONTROL_METHODS, CLAUDE_CONTROL_SCOPE, CODEX_APP_SERVER_BACKEND, CODEX_MCP_LEGACY_BACKEND, CODEX_REQUESTED_BACKEND_ALIASES, CliInstallInfoSchema, CliInstallSourceSchema, CodexAccountSchema, CodexAgentSummarySchema, CodexBackendModeSchema, CodexConfigModeSchema, CodexConfigSchema, CodexExperimentalFeatureSchema, CodexMcpServerSummarySchema, CodexMetadataSchema, CodexPromptSummarySchema, CodexRateLimitsSchema, CodexRequestedBackendSchema, CodexResolvedBackendSchema, CodexRuntimeConfigSchema, CodexSkillSummarySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EnvironmentVariableSchema, GetBinaryVersionRequestSchema, GetBinaryVersionResponseSchema, GetContextDetailRequestSchema, GetContextDetailResponseSchema, GetContextUsageRequestSchema, GetContextUsageResponseSchema, GetMcpServersRequestSchema, GetMcpServersResponseSchema, GetSessionCostRequestSchema, GetSessionCostResponseSchema, HAPPY_MCP_AUTO_APPROVE_TOOL_NAMES, HAPPY_MCP_SILENT_SUCCESS_TOOL_NAMES, HAPPY_MCP_TOOL_NAMES, HAPPY_MCP_TOOL_SPECS, HAPPY_PROFILE_ENV_KEYS, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, LiveKitTokenResponseSchema, MachineMetadataSchema, McpCallRequestSchema, McpCallResponseSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ReadFileRequestSchema, ReadFileResponseSchema, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SetColorRequestSchema, SetColorResponseSchema, SkillContentSchema, SkillSummarySchema, 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, createEnvelope, createResolvedRuntimeProfile, getBuiltInAIBackendProfile, getHappyMcpToolAction, getHappyMcpToolAliases, getHappyMcpToolTitle, getProfileEnvironmentVariables, isCodexAppServerBackend, isCodexLegacyBackend, isHappyMcpToolAlias, isHappyMcpToolName, isTrustedRuntimeProfile, normalizeHappyMcpToolName, normalizeResolvedRuntimeProfile, resolveCodexResolvedBackend, resolveCodexResumableThreadId, resolveRequestedCodexBackend, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressListSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryRefreshActiveRequestSchema, sessionSummaryRefreshRecentEntrySchema, sessionSummaryRefreshStateSchema, 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 };
|