@kmmao/happy-wire 0.11.7 → 0.11.9
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 +41 -2
- package/dist/index.d.cts +85 -21
- package/dist/index.d.mts +85 -21
- package/dist/index.mjs +41 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1493,10 +1493,48 @@ const sessionProgressTodoStatusSchema = z__namespace.enum([
|
|
|
1493
1493
|
const sessionProgressTodoSchema = z__namespace.object({
|
|
1494
1494
|
content: z__namespace.string(),
|
|
1495
1495
|
status: sessionProgressTodoStatusSchema,
|
|
1496
|
-
|
|
1496
|
+
/** SDK-native: imperative-present form shown when status is in_progress. */
|
|
1497
|
+
activeForm: z__namespace.string().optional(),
|
|
1498
|
+
/** Optional phase/stage label a step belongs to, e.g. "Phase 2". */
|
|
1499
|
+
stage: z__namespace.string().optional(),
|
|
1500
|
+
/**
|
|
1501
|
+
* Carried over from SDK's `TodoWriteOutput.verificationNudgeNeeded` — SDK
|
|
1502
|
+
* flags items it suspects were marked completed without verification.
|
|
1503
|
+
*/
|
|
1504
|
+
verificationNudgeNeeded: z__namespace.boolean().optional()
|
|
1497
1505
|
});
|
|
1498
|
-
const
|
|
1506
|
+
const sessionProgressListSchema = z__namespace.object({
|
|
1507
|
+
/** Stable UUID for tab switching / explicit Agent addressing. */
|
|
1508
|
+
id: z__namespace.string(),
|
|
1509
|
+
/** Short human-readable label; auto-derived from first todo if absent. */
|
|
1510
|
+
label: z__namespace.string().optional(),
|
|
1499
1511
|
todos: z__namespace.array(sessionProgressTodoSchema),
|
|
1512
|
+
/** Optional overall stage for this list (set via MCP). */
|
|
1513
|
+
currentStage: z__namespace.string().optional(),
|
|
1514
|
+
/** Optional blocker list (set via MCP). */
|
|
1515
|
+
blockers: z__namespace.array(z__namespace.string()).optional(),
|
|
1516
|
+
startedAt: z__namespace.number(),
|
|
1517
|
+
updatedAt: z__namespace.number(),
|
|
1518
|
+
/** When this list stopped being active (got pushed to history). */
|
|
1519
|
+
archivedAt: z__namespace.number().optional(),
|
|
1520
|
+
/**
|
|
1521
|
+
* Tool-call message IDs for file-editing tools (Edit/Write/MultiEdit/
|
|
1522
|
+
* NotebookEdit) that ran while this list was the active one. Consumers
|
|
1523
|
+
* resolve these against the session message stream to render per-list
|
|
1524
|
+
* file change summaries without duplicating diff content into metadata.
|
|
1525
|
+
*/
|
|
1526
|
+
toolCallIds: z__namespace.array(z__namespace.string()).optional()
|
|
1527
|
+
});
|
|
1528
|
+
const sessionProgressStateSchema = z__namespace.object({
|
|
1529
|
+
/** Ordered by startedAt asc; last item is typically the active one. */
|
|
1530
|
+
lists: z__namespace.array(sessionProgressListSchema).optional(),
|
|
1531
|
+
/** Points at the active list within `lists`. */
|
|
1532
|
+
currentListId: z__namespace.string().optional(),
|
|
1533
|
+
/**
|
|
1534
|
+
* Legacy flat fields. Still written for backward compat with older
|
|
1535
|
+
* readers — kept in sync with `lists[currentListId]` on each update.
|
|
1536
|
+
*/
|
|
1537
|
+
todos: z__namespace.array(sessionProgressTodoSchema).optional(),
|
|
1500
1538
|
currentStage: z__namespace.string().optional(),
|
|
1501
1539
|
blockers: z__namespace.array(z__namespace.string()).optional(),
|
|
1502
1540
|
updatedAt: z__namespace.number()
|
|
@@ -1653,6 +1691,7 @@ exports.sessionEventSchema = sessionEventSchema;
|
|
|
1653
1691
|
exports.sessionFileEventSchema = sessionFileEventSchema;
|
|
1654
1692
|
exports.sessionModelUsageSchema = sessionModelUsageSchema;
|
|
1655
1693
|
exports.sessionNeedsContinueEventSchema = sessionNeedsContinueEventSchema;
|
|
1694
|
+
exports.sessionProgressListSchema = sessionProgressListSchema;
|
|
1656
1695
|
exports.sessionProgressStateSchema = sessionProgressStateSchema;
|
|
1657
1696
|
exports.sessionProgressTodoSchema = sessionProgressTodoSchema;
|
|
1658
1697
|
exports.sessionProgressTodoStatusSchema = sessionProgressTodoStatusSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1534,8 +1534,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
|
1534
1534
|
}>;
|
|
1535
1535
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1536
1536
|
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1537
|
-
supervisor: "supervisor";
|
|
1538
1537
|
webhook: "webhook";
|
|
1538
|
+
supervisor: "supervisor";
|
|
1539
1539
|
agent_loop: "agent_loop";
|
|
1540
1540
|
task: "task";
|
|
1541
1541
|
}>;
|
|
@@ -1552,8 +1552,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
|
1552
1552
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1553
1553
|
id: z.ZodString;
|
|
1554
1554
|
kind: z.ZodEnum<{
|
|
1555
|
-
supervisor: "supervisor";
|
|
1556
1555
|
webhook: "webhook";
|
|
1556
|
+
supervisor: "supervisor";
|
|
1557
1557
|
agent_loop: "agent_loop";
|
|
1558
1558
|
task: "task";
|
|
1559
1559
|
}>;
|
|
@@ -1715,8 +1715,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1715
1715
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1716
1716
|
id: z.ZodString;
|
|
1717
1717
|
kind: z.ZodEnum<{
|
|
1718
|
-
supervisor: "supervisor";
|
|
1719
1718
|
webhook: "webhook";
|
|
1719
|
+
supervisor: "supervisor";
|
|
1720
1720
|
agent_loop: "agent_loop";
|
|
1721
1721
|
task: "task";
|
|
1722
1722
|
}>;
|
|
@@ -1942,8 +1942,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1942
1942
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1943
1943
|
id: z.ZodString;
|
|
1944
1944
|
kind: z.ZodEnum<{
|
|
1945
|
-
supervisor: "supervisor";
|
|
1946
1945
|
webhook: "webhook";
|
|
1946
|
+
supervisor: "supervisor";
|
|
1947
1947
|
agent_loop: "agent_loop";
|
|
1948
1948
|
task: "task";
|
|
1949
1949
|
}>;
|
|
@@ -2116,8 +2116,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
|
2116
2116
|
type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
|
|
2117
2117
|
declare const KnowledgeStatusSchema: z.ZodEnum<{
|
|
2118
2118
|
active: "active";
|
|
2119
|
-
archived: "archived";
|
|
2120
2119
|
superseded: "superseded";
|
|
2120
|
+
archived: "archived";
|
|
2121
2121
|
}>;
|
|
2122
2122
|
type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
|
|
2123
2123
|
declare const KnowledgeConfidenceSchema: z.ZodEnum<{
|
|
@@ -2168,8 +2168,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
|
|
|
2168
2168
|
declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
2169
2169
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2170
2170
|
active: "active";
|
|
2171
|
-
archived: "archived";
|
|
2172
2171
|
superseded: "superseded";
|
|
2172
|
+
archived: "archived";
|
|
2173
2173
|
}>>;
|
|
2174
2174
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
2175
2175
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2192,8 +2192,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
|
|
|
2192
2192
|
}>>;
|
|
2193
2193
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2194
2194
|
active: "active";
|
|
2195
|
-
archived: "archived";
|
|
2196
2195
|
superseded: "superseded";
|
|
2196
|
+
archived: "archived";
|
|
2197
2197
|
}>>;
|
|
2198
2198
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2199
2199
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -2281,8 +2281,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
|
|
|
2281
2281
|
}>;
|
|
2282
2282
|
status: z.ZodEnum<{
|
|
2283
2283
|
active: "active";
|
|
2284
|
-
archived: "archived";
|
|
2285
2284
|
superseded: "superseded";
|
|
2285
|
+
archived: "archived";
|
|
2286
2286
|
}>;
|
|
2287
2287
|
title: z.ZodString;
|
|
2288
2288
|
content: z.ZodString;
|
|
@@ -2314,8 +2314,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
|
|
|
2314
2314
|
}>;
|
|
2315
2315
|
status: z.ZodEnum<{
|
|
2316
2316
|
active: "active";
|
|
2317
|
-
archived: "archived";
|
|
2318
2317
|
superseded: "superseded";
|
|
2318
|
+
archived: "archived";
|
|
2319
2319
|
}>;
|
|
2320
2320
|
title: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
@@ -2461,9 +2461,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
|
|
|
2461
2461
|
}>;
|
|
2462
2462
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2463
2463
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
2464
|
-
webhook: "webhook";
|
|
2465
2464
|
manual: "manual";
|
|
2466
2465
|
cron: "cron";
|
|
2466
|
+
webhook: "webhook";
|
|
2467
2467
|
}>;
|
|
2468
2468
|
type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
|
|
2469
2469
|
declare const TaskSummarySchema: z.ZodObject<{
|
|
@@ -2484,9 +2484,9 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2484
2484
|
dispatching: "dispatching";
|
|
2485
2485
|
}>;
|
|
2486
2486
|
triggerType: z.ZodEnum<{
|
|
2487
|
-
webhook: "webhook";
|
|
2488
2487
|
manual: "manual";
|
|
2489
2488
|
cron: "cron";
|
|
2489
|
+
webhook: "webhook";
|
|
2490
2490
|
}>;
|
|
2491
2491
|
triggerRef: z.ZodOptional<z.ZodString>;
|
|
2492
2492
|
attempt: z.ZodNumber;
|
|
@@ -2850,8 +2850,8 @@ declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "
|
|
|
2850
2850
|
declare const SuggestionEvidenceSchema: z$1.ZodObject<{
|
|
2851
2851
|
kind: z$1.ZodEnum<{
|
|
2852
2852
|
message: "message";
|
|
2853
|
-
task: "task";
|
|
2854
2853
|
decision: "decision";
|
|
2854
|
+
task: "task";
|
|
2855
2855
|
goal: "goal";
|
|
2856
2856
|
narrative: "narrative";
|
|
2857
2857
|
}>;
|
|
@@ -3432,11 +3432,14 @@ declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile
|
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Shared schemas for live session state surfaced to the App's Progress tab.
|
|
3434
3434
|
*
|
|
3435
|
-
* These
|
|
3436
|
-
*
|
|
3437
|
-
*
|
|
3435
|
+
* These live inside the encrypted `Session.metadata` blob — no new server
|
|
3436
|
+
* storage or migration needed. Two sources feed this state:
|
|
3437
|
+
* 1. CLI auto-mirror hook: captures SDK's TodoWrite tool_result and
|
|
3438
|
+
* writes todos directly (no Agent prompting required).
|
|
3439
|
+
* 2. MCP tools update_progress / update_session_summary: optional
|
|
3440
|
+
* Agent-driven paths for richer fields the SDK doesn't expose.
|
|
3438
3441
|
*
|
|
3439
|
-
* Keep
|
|
3442
|
+
* Keep fields small: they ride inside the metadata envelope on every
|
|
3440
3443
|
* socket update, so avoid attaching large structured content here.
|
|
3441
3444
|
*/
|
|
3442
3445
|
declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
@@ -3445,6 +3448,10 @@ declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
|
3445
3448
|
in_progress: "in_progress";
|
|
3446
3449
|
}>;
|
|
3447
3450
|
type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
|
|
3451
|
+
/**
|
|
3452
|
+
* One checklist item. Mirrors the shape of Claude Code SDK's TodoWriteInput
|
|
3453
|
+
* items, with Happy extensions (`stage`, `verificationNudgeNeeded`).
|
|
3454
|
+
*/
|
|
3448
3455
|
declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
3449
3456
|
content: z.ZodString;
|
|
3450
3457
|
status: z.ZodEnum<{
|
|
@@ -3452,14 +3459,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
|
3452
3459
|
pending: "pending";
|
|
3453
3460
|
in_progress: "in_progress";
|
|
3454
3461
|
}>;
|
|
3462
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3455
3463
|
stage: z.ZodOptional<z.ZodString>;
|
|
3464
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3456
3465
|
}, z.core.$strip>;
|
|
3457
3466
|
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3458
3467
|
/**
|
|
3459
|
-
*
|
|
3460
|
-
*
|
|
3468
|
+
* One task list = one "generation" of the checklist. A session can contain
|
|
3469
|
+
* multiple generations across time; the auto-mirror hook partitions them
|
|
3470
|
+
* by a boundary heuristic (prior list fully completed + low overlap).
|
|
3461
3471
|
*/
|
|
3462
|
-
declare const
|
|
3472
|
+
declare const sessionProgressListSchema: z.ZodObject<{
|
|
3473
|
+
id: z.ZodString;
|
|
3474
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3463
3475
|
todos: z.ZodArray<z.ZodObject<{
|
|
3464
3476
|
content: z.ZodString;
|
|
3465
3477
|
status: z.ZodEnum<{
|
|
@@ -3467,10 +3479,62 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3467
3479
|
pending: "pending";
|
|
3468
3480
|
in_progress: "in_progress";
|
|
3469
3481
|
}>;
|
|
3482
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3470
3483
|
stage: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3471
3485
|
}, z.core.$strip>>;
|
|
3472
3486
|
currentStage: z.ZodOptional<z.ZodString>;
|
|
3473
3487
|
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3488
|
+
startedAt: z.ZodNumber;
|
|
3489
|
+
updatedAt: z.ZodNumber;
|
|
3490
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3491
|
+
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3492
|
+
}, z.core.$strip>;
|
|
3493
|
+
type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
|
|
3494
|
+
/**
|
|
3495
|
+
* Live progress state. Holds a list-of-lists plus a pointer to the active
|
|
3496
|
+
* one.
|
|
3497
|
+
*
|
|
3498
|
+
* Backward compatibility: older CLI / App versions wrote flat `todos` at
|
|
3499
|
+
* the top level. Readers should prefer `lists[currentListId]` when present
|
|
3500
|
+
* and fall back to the legacy `todos` otherwise.
|
|
3501
|
+
*/
|
|
3502
|
+
declare const sessionProgressStateSchema: z.ZodObject<{
|
|
3503
|
+
lists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3504
|
+
id: z.ZodString;
|
|
3505
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3506
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
3507
|
+
content: z.ZodString;
|
|
3508
|
+
status: z.ZodEnum<{
|
|
3509
|
+
completed: "completed";
|
|
3510
|
+
pending: "pending";
|
|
3511
|
+
in_progress: "in_progress";
|
|
3512
|
+
}>;
|
|
3513
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3515
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3516
|
+
}, z.core.$strip>>;
|
|
3517
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3518
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3519
|
+
startedAt: z.ZodNumber;
|
|
3520
|
+
updatedAt: z.ZodNumber;
|
|
3521
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3522
|
+
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3523
|
+
}, z.core.$strip>>>;
|
|
3524
|
+
currentListId: z.ZodOptional<z.ZodString>;
|
|
3525
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3526
|
+
content: z.ZodString;
|
|
3527
|
+
status: z.ZodEnum<{
|
|
3528
|
+
completed: "completed";
|
|
3529
|
+
pending: "pending";
|
|
3530
|
+
in_progress: "in_progress";
|
|
3531
|
+
}>;
|
|
3532
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3533
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3534
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3535
|
+
}, z.core.$strip>>>;
|
|
3536
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3537
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3474
3538
|
updatedAt: z.ZodNumber;
|
|
3475
3539
|
}, z.core.$strip>;
|
|
3476
3540
|
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
@@ -3488,5 +3552,5 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
|
3488
3552
|
}, z.core.$strip>;
|
|
3489
3553
|
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3490
3554
|
|
|
3491
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3492
|
-
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
|
3555
|
+
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 };
|
|
3556
|
+
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
package/dist/index.d.mts
CHANGED
|
@@ -1534,8 +1534,8 @@ declare const AutomationPrioritySchema: z.ZodEnum<{
|
|
|
1534
1534
|
}>;
|
|
1535
1535
|
type AutomationPriority = z.infer<typeof AutomationPrioritySchema>;
|
|
1536
1536
|
declare const AutomationJobKindSchema: z.ZodEnum<{
|
|
1537
|
-
supervisor: "supervisor";
|
|
1538
1537
|
webhook: "webhook";
|
|
1538
|
+
supervisor: "supervisor";
|
|
1539
1539
|
agent_loop: "agent_loop";
|
|
1540
1540
|
task: "task";
|
|
1541
1541
|
}>;
|
|
@@ -1552,8 +1552,8 @@ type AutomationJobStatus = z.infer<typeof AutomationJobStatusSchema>;
|
|
|
1552
1552
|
declare const AutomationJobSummarySchema: z.ZodObject<{
|
|
1553
1553
|
id: z.ZodString;
|
|
1554
1554
|
kind: z.ZodEnum<{
|
|
1555
|
-
supervisor: "supervisor";
|
|
1556
1555
|
webhook: "webhook";
|
|
1556
|
+
supervisor: "supervisor";
|
|
1557
1557
|
agent_loop: "agent_loop";
|
|
1558
1558
|
task: "task";
|
|
1559
1559
|
}>;
|
|
@@ -1715,8 +1715,8 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1715
1715
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1716
1716
|
id: z.ZodString;
|
|
1717
1717
|
kind: z.ZodEnum<{
|
|
1718
|
-
supervisor: "supervisor";
|
|
1719
1718
|
webhook: "webhook";
|
|
1719
|
+
supervisor: "supervisor";
|
|
1720
1720
|
agent_loop: "agent_loop";
|
|
1721
1721
|
task: "task";
|
|
1722
1722
|
}>;
|
|
@@ -1942,8 +1942,8 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1942
1942
|
recentJobs: z.ZodArray<z.ZodObject<{
|
|
1943
1943
|
id: z.ZodString;
|
|
1944
1944
|
kind: z.ZodEnum<{
|
|
1945
|
-
supervisor: "supervisor";
|
|
1946
1945
|
webhook: "webhook";
|
|
1946
|
+
supervisor: "supervisor";
|
|
1947
1947
|
agent_loop: "agent_loop";
|
|
1948
1948
|
task: "task";
|
|
1949
1949
|
}>;
|
|
@@ -2116,8 +2116,8 @@ declare const KnowledgeActionSchema: z.ZodEnum<{
|
|
|
2116
2116
|
type KnowledgeAction = z.infer<typeof KnowledgeActionSchema>;
|
|
2117
2117
|
declare const KnowledgeStatusSchema: z.ZodEnum<{
|
|
2118
2118
|
active: "active";
|
|
2119
|
-
archived: "archived";
|
|
2120
2119
|
superseded: "superseded";
|
|
2120
|
+
archived: "archived";
|
|
2121
2121
|
}>;
|
|
2122
2122
|
type KnowledgeStatus = z.infer<typeof KnowledgeStatusSchema>;
|
|
2123
2123
|
declare const KnowledgeConfidenceSchema: z.ZodEnum<{
|
|
@@ -2168,8 +2168,8 @@ type CreateKnowledgeEntryBody = z.infer<typeof CreateKnowledgeEntryBodySchema>;
|
|
|
2168
2168
|
declare const UpdateKnowledgeEntryBodySchema: z.ZodObject<{
|
|
2169
2169
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2170
2170
|
active: "active";
|
|
2171
|
-
archived: "archived";
|
|
2172
2171
|
superseded: "superseded";
|
|
2172
|
+
archived: "archived";
|
|
2173
2173
|
}>>;
|
|
2174
2174
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
2175
2175
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -2192,8 +2192,8 @@ declare const QueryKnowledgeParamsSchema: z.ZodObject<{
|
|
|
2192
2192
|
}>>;
|
|
2193
2193
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2194
2194
|
active: "active";
|
|
2195
|
-
archived: "archived";
|
|
2196
2195
|
superseded: "superseded";
|
|
2196
|
+
archived: "archived";
|
|
2197
2197
|
}>>;
|
|
2198
2198
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2199
2199
|
search: z.ZodOptional<z.ZodString>;
|
|
@@ -2281,8 +2281,8 @@ declare const KnowledgeChainEntrySchema: z.ZodObject<{
|
|
|
2281
2281
|
}>;
|
|
2282
2282
|
status: z.ZodEnum<{
|
|
2283
2283
|
active: "active";
|
|
2284
|
-
archived: "archived";
|
|
2285
2284
|
superseded: "superseded";
|
|
2285
|
+
archived: "archived";
|
|
2286
2286
|
}>;
|
|
2287
2287
|
title: z.ZodString;
|
|
2288
2288
|
content: z.ZodString;
|
|
@@ -2314,8 +2314,8 @@ declare const KnowledgeChainResponseSchema: z.ZodObject<{
|
|
|
2314
2314
|
}>;
|
|
2315
2315
|
status: z.ZodEnum<{
|
|
2316
2316
|
active: "active";
|
|
2317
|
-
archived: "archived";
|
|
2318
2317
|
superseded: "superseded";
|
|
2318
|
+
archived: "archived";
|
|
2319
2319
|
}>;
|
|
2320
2320
|
title: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
@@ -2461,9 +2461,9 @@ declare const TaskStatusSchema: z.ZodEnum<{
|
|
|
2461
2461
|
}>;
|
|
2462
2462
|
type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
2463
2463
|
declare const TaskTriggerTypeSchema: z.ZodEnum<{
|
|
2464
|
-
webhook: "webhook";
|
|
2465
2464
|
manual: "manual";
|
|
2466
2465
|
cron: "cron";
|
|
2466
|
+
webhook: "webhook";
|
|
2467
2467
|
}>;
|
|
2468
2468
|
type TaskTriggerType = z.infer<typeof TaskTriggerTypeSchema>;
|
|
2469
2469
|
declare const TaskSummarySchema: z.ZodObject<{
|
|
@@ -2484,9 +2484,9 @@ declare const TaskSummarySchema: z.ZodObject<{
|
|
|
2484
2484
|
dispatching: "dispatching";
|
|
2485
2485
|
}>;
|
|
2486
2486
|
triggerType: z.ZodEnum<{
|
|
2487
|
-
webhook: "webhook";
|
|
2488
2487
|
manual: "manual";
|
|
2489
2488
|
cron: "cron";
|
|
2489
|
+
webhook: "webhook";
|
|
2490
2490
|
}>;
|
|
2491
2491
|
triggerRef: z.ZodOptional<z.ZodString>;
|
|
2492
2492
|
attempt: z.ZodNumber;
|
|
@@ -2850,8 +2850,8 @@ declare const EVIDENCE_KINDS: readonly ["goal", "task", "decision", "message", "
|
|
|
2850
2850
|
declare const SuggestionEvidenceSchema: z$1.ZodObject<{
|
|
2851
2851
|
kind: z$1.ZodEnum<{
|
|
2852
2852
|
message: "message";
|
|
2853
|
-
task: "task";
|
|
2854
2853
|
decision: "decision";
|
|
2854
|
+
task: "task";
|
|
2855
2855
|
goal: "goal";
|
|
2856
2856
|
narrative: "narrative";
|
|
2857
2857
|
}>;
|
|
@@ -3432,11 +3432,14 @@ declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile
|
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Shared schemas for live session state surfaced to the App's Progress tab.
|
|
3434
3434
|
*
|
|
3435
|
-
* These
|
|
3436
|
-
*
|
|
3437
|
-
*
|
|
3435
|
+
* These live inside the encrypted `Session.metadata` blob — no new server
|
|
3436
|
+
* storage or migration needed. Two sources feed this state:
|
|
3437
|
+
* 1. CLI auto-mirror hook: captures SDK's TodoWrite tool_result and
|
|
3438
|
+
* writes todos directly (no Agent prompting required).
|
|
3439
|
+
* 2. MCP tools update_progress / update_session_summary: optional
|
|
3440
|
+
* Agent-driven paths for richer fields the SDK doesn't expose.
|
|
3438
3441
|
*
|
|
3439
|
-
* Keep
|
|
3442
|
+
* Keep fields small: they ride inside the metadata envelope on every
|
|
3440
3443
|
* socket update, so avoid attaching large structured content here.
|
|
3441
3444
|
*/
|
|
3442
3445
|
declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
@@ -3445,6 +3448,10 @@ declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
|
3445
3448
|
in_progress: "in_progress";
|
|
3446
3449
|
}>;
|
|
3447
3450
|
type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
|
|
3451
|
+
/**
|
|
3452
|
+
* One checklist item. Mirrors the shape of Claude Code SDK's TodoWriteInput
|
|
3453
|
+
* items, with Happy extensions (`stage`, `verificationNudgeNeeded`).
|
|
3454
|
+
*/
|
|
3448
3455
|
declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
3449
3456
|
content: z.ZodString;
|
|
3450
3457
|
status: z.ZodEnum<{
|
|
@@ -3452,14 +3459,19 @@ declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
|
3452
3459
|
pending: "pending";
|
|
3453
3460
|
in_progress: "in_progress";
|
|
3454
3461
|
}>;
|
|
3462
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3455
3463
|
stage: z.ZodOptional<z.ZodString>;
|
|
3464
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3456
3465
|
}, z.core.$strip>;
|
|
3457
3466
|
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3458
3467
|
/**
|
|
3459
|
-
*
|
|
3460
|
-
*
|
|
3468
|
+
* One task list = one "generation" of the checklist. A session can contain
|
|
3469
|
+
* multiple generations across time; the auto-mirror hook partitions them
|
|
3470
|
+
* by a boundary heuristic (prior list fully completed + low overlap).
|
|
3461
3471
|
*/
|
|
3462
|
-
declare const
|
|
3472
|
+
declare const sessionProgressListSchema: z.ZodObject<{
|
|
3473
|
+
id: z.ZodString;
|
|
3474
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3463
3475
|
todos: z.ZodArray<z.ZodObject<{
|
|
3464
3476
|
content: z.ZodString;
|
|
3465
3477
|
status: z.ZodEnum<{
|
|
@@ -3467,10 +3479,62 @@ declare const sessionProgressStateSchema: z.ZodObject<{
|
|
|
3467
3479
|
pending: "pending";
|
|
3468
3480
|
in_progress: "in_progress";
|
|
3469
3481
|
}>;
|
|
3482
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3470
3483
|
stage: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3471
3485
|
}, z.core.$strip>>;
|
|
3472
3486
|
currentStage: z.ZodOptional<z.ZodString>;
|
|
3473
3487
|
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3488
|
+
startedAt: z.ZodNumber;
|
|
3489
|
+
updatedAt: z.ZodNumber;
|
|
3490
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3491
|
+
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3492
|
+
}, z.core.$strip>;
|
|
3493
|
+
type SessionProgressList = z.infer<typeof sessionProgressListSchema>;
|
|
3494
|
+
/**
|
|
3495
|
+
* Live progress state. Holds a list-of-lists plus a pointer to the active
|
|
3496
|
+
* one.
|
|
3497
|
+
*
|
|
3498
|
+
* Backward compatibility: older CLI / App versions wrote flat `todos` at
|
|
3499
|
+
* the top level. Readers should prefer `lists[currentListId]` when present
|
|
3500
|
+
* and fall back to the legacy `todos` otherwise.
|
|
3501
|
+
*/
|
|
3502
|
+
declare const sessionProgressStateSchema: z.ZodObject<{
|
|
3503
|
+
lists: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3504
|
+
id: z.ZodString;
|
|
3505
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3506
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
3507
|
+
content: z.ZodString;
|
|
3508
|
+
status: z.ZodEnum<{
|
|
3509
|
+
completed: "completed";
|
|
3510
|
+
pending: "pending";
|
|
3511
|
+
in_progress: "in_progress";
|
|
3512
|
+
}>;
|
|
3513
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3514
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3515
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3516
|
+
}, z.core.$strip>>;
|
|
3517
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3518
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3519
|
+
startedAt: z.ZodNumber;
|
|
3520
|
+
updatedAt: z.ZodNumber;
|
|
3521
|
+
archivedAt: z.ZodOptional<z.ZodNumber>;
|
|
3522
|
+
toolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3523
|
+
}, z.core.$strip>>>;
|
|
3524
|
+
currentListId: z.ZodOptional<z.ZodString>;
|
|
3525
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3526
|
+
content: z.ZodString;
|
|
3527
|
+
status: z.ZodEnum<{
|
|
3528
|
+
completed: "completed";
|
|
3529
|
+
pending: "pending";
|
|
3530
|
+
in_progress: "in_progress";
|
|
3531
|
+
}>;
|
|
3532
|
+
activeForm: z.ZodOptional<z.ZodString>;
|
|
3533
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3534
|
+
verificationNudgeNeeded: z.ZodOptional<z.ZodBoolean>;
|
|
3535
|
+
}, z.core.$strip>>>;
|
|
3536
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3537
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3474
3538
|
updatedAt: z.ZodNumber;
|
|
3475
3539
|
}, z.core.$strip>;
|
|
3476
3540
|
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
@@ -3488,5 +3552,5 @@ declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
|
3488
3552
|
}, z.core.$strip>;
|
|
3489
3553
|
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3490
3554
|
|
|
3491
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
3492
|
-
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
|
3555
|
+
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 };
|
|
3556
|
+
export type { AIBackendProfile, AcceptBody, AgentLoopSummary, AgentMessage, AgentMessageSummary, AgentMsgPriority, AgentMsgStatus, AgentMsgType, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutoDreamProfileSummary, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, AutonomyStats, BootstrapProfileSummary, BriefMessage, BuiltInAIBackendProfileId, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CreateSkillBody, CreateTaskBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, InboxCategory, InboxItemSummary, InboxNewItem, InboxSeverity, InboxUnreadCount, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, ResolvedRuntimeProfile, RuntimeProfileSource, RuntimeProfileTrust, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionEventCreated, SessionEventReport, SessionEventSummary, SessionEventType, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProgressList, SessionProgressState, SessionProgressTodo, SessionProgressTodoStatus, SessionProtocolMessage, SessionRole, SessionSummaryState, SessionTurnEndStatus, SkillContent, SkillSummary, SuggestionAcceptAudit, SuggestionAcceptAuditRule, SuggestionAcceptSource, SuggestionAutoAcceptFailureDetail, SuggestionAutoAcceptReasonCode, SuggestionAutoAcceptStatus, SuggestionBucket, SuggestionDecisionPayload, SuggestionEvidence, SuggestionGoalPayload, SuggestionPayload, SuggestionSerialized, SuggestionSkillPayload, SuggestionStatus, SuggestionSummary, SuggestionTaskPayload, SuggestionType, SupervisorMode, TailscaleInfo, TailscaleServeEntry, TaskOutcome, TaskPriority, TaskStatus, TaskStatusChanged, TaskStatusReport, TaskSummary, TaskTriggerData, TaskTriggerType, TerminalCloseRequest, TerminalExitPayload, TerminalInputPayload, TerminalOutputPayload, TerminalResizeRequest, TerminalSpawnRequest, TerminalSpawnResponse, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UpdateSkillBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse, WorldAutonomyPolicy, WorldSuggestionUpdated };
|
package/dist/index.mjs
CHANGED
|
@@ -1473,10 +1473,48 @@ const sessionProgressTodoStatusSchema = z.enum([
|
|
|
1473
1473
|
const sessionProgressTodoSchema = z.object({
|
|
1474
1474
|
content: z.string(),
|
|
1475
1475
|
status: sessionProgressTodoStatusSchema,
|
|
1476
|
-
|
|
1476
|
+
/** SDK-native: imperative-present form shown when status is in_progress. */
|
|
1477
|
+
activeForm: z.string().optional(),
|
|
1478
|
+
/** Optional phase/stage label a step belongs to, e.g. "Phase 2". */
|
|
1479
|
+
stage: z.string().optional(),
|
|
1480
|
+
/**
|
|
1481
|
+
* Carried over from SDK's `TodoWriteOutput.verificationNudgeNeeded` — SDK
|
|
1482
|
+
* flags items it suspects were marked completed without verification.
|
|
1483
|
+
*/
|
|
1484
|
+
verificationNudgeNeeded: z.boolean().optional()
|
|
1477
1485
|
});
|
|
1478
|
-
const
|
|
1486
|
+
const sessionProgressListSchema = z.object({
|
|
1487
|
+
/** Stable UUID for tab switching / explicit Agent addressing. */
|
|
1488
|
+
id: z.string(),
|
|
1489
|
+
/** Short human-readable label; auto-derived from first todo if absent. */
|
|
1490
|
+
label: z.string().optional(),
|
|
1479
1491
|
todos: z.array(sessionProgressTodoSchema),
|
|
1492
|
+
/** Optional overall stage for this list (set via MCP). */
|
|
1493
|
+
currentStage: z.string().optional(),
|
|
1494
|
+
/** Optional blocker list (set via MCP). */
|
|
1495
|
+
blockers: z.array(z.string()).optional(),
|
|
1496
|
+
startedAt: z.number(),
|
|
1497
|
+
updatedAt: z.number(),
|
|
1498
|
+
/** When this list stopped being active (got pushed to history). */
|
|
1499
|
+
archivedAt: z.number().optional(),
|
|
1500
|
+
/**
|
|
1501
|
+
* Tool-call message IDs for file-editing tools (Edit/Write/MultiEdit/
|
|
1502
|
+
* NotebookEdit) that ran while this list was the active one. Consumers
|
|
1503
|
+
* resolve these against the session message stream to render per-list
|
|
1504
|
+
* file change summaries without duplicating diff content into metadata.
|
|
1505
|
+
*/
|
|
1506
|
+
toolCallIds: z.array(z.string()).optional()
|
|
1507
|
+
});
|
|
1508
|
+
const sessionProgressStateSchema = z.object({
|
|
1509
|
+
/** Ordered by startedAt asc; last item is typically the active one. */
|
|
1510
|
+
lists: z.array(sessionProgressListSchema).optional(),
|
|
1511
|
+
/** Points at the active list within `lists`. */
|
|
1512
|
+
currentListId: z.string().optional(),
|
|
1513
|
+
/**
|
|
1514
|
+
* Legacy flat fields. Still written for backward compat with older
|
|
1515
|
+
* readers — kept in sync with `lists[currentListId]` on each update.
|
|
1516
|
+
*/
|
|
1517
|
+
todos: z.array(sessionProgressTodoSchema).optional(),
|
|
1480
1518
|
currentStage: z.string().optional(),
|
|
1481
1519
|
blockers: z.array(z.string()).optional(),
|
|
1482
1520
|
updatedAt: z.number()
|
|
@@ -1490,4 +1528,4 @@ const sessionSummaryStateSchema = z.object({
|
|
|
1490
1528
|
updatedAt: z.number()
|
|
1491
1529
|
});
|
|
1492
1530
|
|
|
1493
|
-
export { AGENT_MSG_PRIORITIES, AGENT_MSG_STATUSES, AGENT_MSG_TYPES, AIBackendProfileSchema, AcceptBodySchema, AgentLoopSummarySchema, AgentMessageSchema, AgentMessageSummarySchema, AgentMsgTypeSchema, AnthropicConfigSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutoDreamProfileSummarySchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, AutonomyStatsRecentActionSchema, AutonomyStatsSchema, AzureOpenAIConfigSchema, BUILT_IN_AI_BACKEND_PROFILE_IDS, BootstrapProfileSummarySchema, BriefMessageSchema, BuiltInAIBackendProfileIdSchema, CodexConfigSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CreateSkillBodySchema, CreateTaskBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, CustomModelSchema, DaemonStateSchema, DefaultPermissionModeSchema, EVIDENCE_KINDS, EnvironmentVariableSchema, InboxCategorySchema, InboxItemSummarySchema, InboxNewItemSchema, InboxSeveritySchema, InboxUnreadCountSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, OpenAIConfigSchema, ProfileCompatibilitySchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, RESOLVED_RUNTIME_PROFILE_SCHEMA_VERSION, ResolvedRuntimeProfileSchema, RuntimeProfileSourceSchema, RuntimeProfileTrustSchema, SUGGESTION_ACCEPT_AUDIT_RULES, SUGGESTION_ACCEPT_SOURCES, SUGGESTION_AUTO_ACCEPT_FAILURE_DETAILS, SUGGESTION_AUTO_ACCEPT_REASON_CODES, SUGGESTION_AUTO_ACCEPT_STATUSES, SUGGESTION_BUCKETS, SUGGESTION_STATUSES, SUGGESTION_TYPES, SUPERVISOR_MODES, SessionEventCreatedSchema, SessionEventReportSchema, SessionEventSummarySchema, SessionEventTypeSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, SkillContentSchema, SkillSummarySchema, SuggestionAcceptAuditSchema, SuggestionDecisionPayloadSchema, SuggestionEvidenceSchema, SuggestionGoalPayloadSchema, SuggestionPayloadSchema, SuggestionSkillPayloadSchema, SuggestionTaskPayloadSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TaskOutcomeSchema, TaskPrioritySchema, TaskStatusChangedSchema, TaskStatusReportSchema, TaskStatusSchema, TaskSummarySchema, TaskTriggerDataSchema, TaskTriggerTypeSchema, TmuxConfigSchema, TogetherAIConfigSchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UpdateSkillBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, WorldAutonomyPolicySchema, WorldSuggestionUpdatedSchema, createEnvelope, createResolvedRuntimeProfile, getProfileEnvironmentVariables, getSuggestionPayloadSchema, isTrustedRuntimeProfile, normalizeResolvedRuntimeProfile, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionProgressStateSchema, sessionProgressTodoSchema, sessionProgressTodoStatusSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionSummaryStateSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextDeltaEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema, terminalCloseRequestSchema, terminalExitPayloadSchema, terminalInputPayloadSchema, terminalOutputPayloadSchema, terminalResizeRequestSchema, terminalSpawnRequestSchema, terminalSpawnResponseSchema, validateProfileForAgent };
|
|
1531
|
+
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 };
|