@kmmao/happy-wire 0.11.6 → 0.11.7
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 +29 -0
- package/dist/index.d.cts +66 -7
- package/dist/index.d.mts +66 -7
- package/dist/index.mjs +26 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1485,6 +1485,31 @@ function isTrustedRuntimeProfile(runtimeProfile) {
|
|
|
1485
1485
|
return runtimeProfile?.trust === "trusted";
|
|
1486
1486
|
}
|
|
1487
1487
|
|
|
1488
|
+
const sessionProgressTodoStatusSchema = z__namespace.enum([
|
|
1489
|
+
"pending",
|
|
1490
|
+
"in_progress",
|
|
1491
|
+
"completed"
|
|
1492
|
+
]);
|
|
1493
|
+
const sessionProgressTodoSchema = z__namespace.object({
|
|
1494
|
+
content: z__namespace.string(),
|
|
1495
|
+
status: sessionProgressTodoStatusSchema,
|
|
1496
|
+
stage: z__namespace.string().optional()
|
|
1497
|
+
});
|
|
1498
|
+
const sessionProgressStateSchema = z__namespace.object({
|
|
1499
|
+
todos: z__namespace.array(sessionProgressTodoSchema),
|
|
1500
|
+
currentStage: z__namespace.string().optional(),
|
|
1501
|
+
blockers: z__namespace.array(z__namespace.string()).optional(),
|
|
1502
|
+
updatedAt: z__namespace.number()
|
|
1503
|
+
});
|
|
1504
|
+
const sessionSummaryStateSchema = z__namespace.object({
|
|
1505
|
+
goal: z__namespace.string(),
|
|
1506
|
+
currentFocus: z__namespace.string().optional(),
|
|
1507
|
+
keyDecisions: z__namespace.array(z__namespace.string()).optional(),
|
|
1508
|
+
openQuestions: z__namespace.array(z__namespace.string()).optional(),
|
|
1509
|
+
impactScope: z__namespace.array(z__namespace.string()).optional(),
|
|
1510
|
+
updatedAt: z__namespace.number()
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1488
1513
|
exports.AGENT_MSG_PRIORITIES = AGENT_MSG_PRIORITIES;
|
|
1489
1514
|
exports.AGENT_MSG_STATUSES = AGENT_MSG_STATUSES;
|
|
1490
1515
|
exports.AGENT_MSG_TYPES = AGENT_MSG_TYPES;
|
|
@@ -1628,12 +1653,16 @@ exports.sessionEventSchema = sessionEventSchema;
|
|
|
1628
1653
|
exports.sessionFileEventSchema = sessionFileEventSchema;
|
|
1629
1654
|
exports.sessionModelUsageSchema = sessionModelUsageSchema;
|
|
1630
1655
|
exports.sessionNeedsContinueEventSchema = sessionNeedsContinueEventSchema;
|
|
1656
|
+
exports.sessionProgressStateSchema = sessionProgressStateSchema;
|
|
1657
|
+
exports.sessionProgressTodoSchema = sessionProgressTodoSchema;
|
|
1658
|
+
exports.sessionProgressTodoStatusSchema = sessionProgressTodoStatusSchema;
|
|
1631
1659
|
exports.sessionPromptSuggestionEventSchema = sessionPromptSuggestionEventSchema;
|
|
1632
1660
|
exports.sessionRoleSchema = sessionRoleSchema;
|
|
1633
1661
|
exports.sessionServiceMessageEventSchema = sessionServiceMessageEventSchema;
|
|
1634
1662
|
exports.sessionStartEventSchema = sessionStartEventSchema;
|
|
1635
1663
|
exports.sessionStateChangedEventSchema = sessionStateChangedEventSchema;
|
|
1636
1664
|
exports.sessionStopEventSchema = sessionStopEventSchema;
|
|
1665
|
+
exports.sessionSummaryStateSchema = sessionSummaryStateSchema;
|
|
1637
1666
|
exports.sessionTaskEndEventSchema = sessionTaskEndEventSchema;
|
|
1638
1667
|
exports.sessionTaskLogEventSchema = sessionTaskLogEventSchema;
|
|
1639
1668
|
exports.sessionTaskProgressEventSchema = sessionTaskProgressEventSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -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
|
-
superseded: "superseded";
|
|
2120
2119
|
archived: "archived";
|
|
2120
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2172
2171
|
archived: "archived";
|
|
2172
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2196
2195
|
archived: "archived";
|
|
2196
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2285
2284
|
archived: "archived";
|
|
2285
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2318
2317
|
archived: "archived";
|
|
2318
|
+
superseded: "superseded";
|
|
2319
2319
|
}>;
|
|
2320
2320
|
title: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
@@ -3429,5 +3429,64 @@ declare function normalizeResolvedRuntimeProfile(input: unknown, options?: {
|
|
|
3429
3429
|
}): ResolvedRuntimeProfile | undefined;
|
|
3430
3430
|
declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile | null | undefined): boolean;
|
|
3431
3431
|
|
|
3432
|
-
|
|
3433
|
-
|
|
3432
|
+
/**
|
|
3433
|
+
* Shared schemas for live session state surfaced to the App's Progress tab.
|
|
3434
|
+
*
|
|
3435
|
+
* These are written by the Agent via MCP tools (update_progress /
|
|
3436
|
+
* update_session_summary) and read by the App through the encrypted
|
|
3437
|
+
* `Session.metadata` blob — no new server storage or migration needed.
|
|
3438
|
+
*
|
|
3439
|
+
* Keep these fields small: they ride inside the metadata envelope on every
|
|
3440
|
+
* socket update, so avoid attaching large structured content here.
|
|
3441
|
+
*/
|
|
3442
|
+
declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
3443
|
+
completed: "completed";
|
|
3444
|
+
pending: "pending";
|
|
3445
|
+
in_progress: "in_progress";
|
|
3446
|
+
}>;
|
|
3447
|
+
type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
|
|
3448
|
+
declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
3449
|
+
content: z.ZodString;
|
|
3450
|
+
status: z.ZodEnum<{
|
|
3451
|
+
completed: "completed";
|
|
3452
|
+
pending: "pending";
|
|
3453
|
+
in_progress: "in_progress";
|
|
3454
|
+
}>;
|
|
3455
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3456
|
+
}, z.core.$strip>;
|
|
3457
|
+
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3458
|
+
/**
|
|
3459
|
+
* Live progress state. Full rewrite each update — the Agent sends the
|
|
3460
|
+
* complete checklist, never a delta.
|
|
3461
|
+
*/
|
|
3462
|
+
declare const sessionProgressStateSchema: z.ZodObject<{
|
|
3463
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
3464
|
+
content: z.ZodString;
|
|
3465
|
+
status: z.ZodEnum<{
|
|
3466
|
+
completed: "completed";
|
|
3467
|
+
pending: "pending";
|
|
3468
|
+
in_progress: "in_progress";
|
|
3469
|
+
}>;
|
|
3470
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3471
|
+
}, z.core.$strip>>;
|
|
3472
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3473
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3474
|
+
updatedAt: z.ZodNumber;
|
|
3475
|
+
}, z.core.$strip>;
|
|
3476
|
+
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
3477
|
+
/**
|
|
3478
|
+
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3479
|
+
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3480
|
+
*/
|
|
3481
|
+
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3482
|
+
goal: z.ZodString;
|
|
3483
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3485
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3486
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3487
|
+
updatedAt: z.ZodNumber;
|
|
3488
|
+
}, z.core.$strip>;
|
|
3489
|
+
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3490
|
+
|
|
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -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
|
-
superseded: "superseded";
|
|
2120
2119
|
archived: "archived";
|
|
2120
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2172
2171
|
archived: "archived";
|
|
2172
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2196
2195
|
archived: "archived";
|
|
2196
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2285
2284
|
archived: "archived";
|
|
2285
|
+
superseded: "superseded";
|
|
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
|
-
superseded: "superseded";
|
|
2318
2317
|
archived: "archived";
|
|
2318
|
+
superseded: "superseded";
|
|
2319
2319
|
}>;
|
|
2320
2320
|
title: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
@@ -3429,5 +3429,64 @@ declare function normalizeResolvedRuntimeProfile(input: unknown, options?: {
|
|
|
3429
3429
|
}): ResolvedRuntimeProfile | undefined;
|
|
3430
3430
|
declare function isTrustedRuntimeProfile(runtimeProfile: ResolvedRuntimeProfile | null | undefined): boolean;
|
|
3431
3431
|
|
|
3432
|
-
|
|
3433
|
-
|
|
3432
|
+
/**
|
|
3433
|
+
* Shared schemas for live session state surfaced to the App's Progress tab.
|
|
3434
|
+
*
|
|
3435
|
+
* These are written by the Agent via MCP tools (update_progress /
|
|
3436
|
+
* update_session_summary) and read by the App through the encrypted
|
|
3437
|
+
* `Session.metadata` blob — no new server storage or migration needed.
|
|
3438
|
+
*
|
|
3439
|
+
* Keep these fields small: they ride inside the metadata envelope on every
|
|
3440
|
+
* socket update, so avoid attaching large structured content here.
|
|
3441
|
+
*/
|
|
3442
|
+
declare const sessionProgressTodoStatusSchema: z.ZodEnum<{
|
|
3443
|
+
completed: "completed";
|
|
3444
|
+
pending: "pending";
|
|
3445
|
+
in_progress: "in_progress";
|
|
3446
|
+
}>;
|
|
3447
|
+
type SessionProgressTodoStatus = z.infer<typeof sessionProgressTodoStatusSchema>;
|
|
3448
|
+
declare const sessionProgressTodoSchema: z.ZodObject<{
|
|
3449
|
+
content: z.ZodString;
|
|
3450
|
+
status: z.ZodEnum<{
|
|
3451
|
+
completed: "completed";
|
|
3452
|
+
pending: "pending";
|
|
3453
|
+
in_progress: "in_progress";
|
|
3454
|
+
}>;
|
|
3455
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3456
|
+
}, z.core.$strip>;
|
|
3457
|
+
type SessionProgressTodo = z.infer<typeof sessionProgressTodoSchema>;
|
|
3458
|
+
/**
|
|
3459
|
+
* Live progress state. Full rewrite each update — the Agent sends the
|
|
3460
|
+
* complete checklist, never a delta.
|
|
3461
|
+
*/
|
|
3462
|
+
declare const sessionProgressStateSchema: z.ZodObject<{
|
|
3463
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
3464
|
+
content: z.ZodString;
|
|
3465
|
+
status: z.ZodEnum<{
|
|
3466
|
+
completed: "completed";
|
|
3467
|
+
pending: "pending";
|
|
3468
|
+
in_progress: "in_progress";
|
|
3469
|
+
}>;
|
|
3470
|
+
stage: z.ZodOptional<z.ZodString>;
|
|
3471
|
+
}, z.core.$strip>>;
|
|
3472
|
+
currentStage: z.ZodOptional<z.ZodString>;
|
|
3473
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3474
|
+
updatedAt: z.ZodNumber;
|
|
3475
|
+
}, z.core.$strip>;
|
|
3476
|
+
type SessionProgressState = z.infer<typeof sessionProgressStateSchema>;
|
|
3477
|
+
/**
|
|
3478
|
+
* Live narrative summary updated at milestones, not per tool call. Arrays
|
|
3479
|
+
* are full-rewrite for simplicity (no append/remove deltas).
|
|
3480
|
+
*/
|
|
3481
|
+
declare const sessionSummaryStateSchema: z.ZodObject<{
|
|
3482
|
+
goal: z.ZodString;
|
|
3483
|
+
currentFocus: z.ZodOptional<z.ZodString>;
|
|
3484
|
+
keyDecisions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3485
|
+
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3486
|
+
impactScope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3487
|
+
updatedAt: z.ZodNumber;
|
|
3488
|
+
}, z.core.$strip>;
|
|
3489
|
+
type SessionSummaryState = z.infer<typeof sessionSummaryStateSchema>;
|
|
3490
|
+
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1465,4 +1465,29 @@ function isTrustedRuntimeProfile(runtimeProfile) {
|
|
|
1465
1465
|
return runtimeProfile?.trust === "trusted";
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
-
|
|
1468
|
+
const sessionProgressTodoStatusSchema = z.enum([
|
|
1469
|
+
"pending",
|
|
1470
|
+
"in_progress",
|
|
1471
|
+
"completed"
|
|
1472
|
+
]);
|
|
1473
|
+
const sessionProgressTodoSchema = z.object({
|
|
1474
|
+
content: z.string(),
|
|
1475
|
+
status: sessionProgressTodoStatusSchema,
|
|
1476
|
+
stage: z.string().optional()
|
|
1477
|
+
});
|
|
1478
|
+
const sessionProgressStateSchema = z.object({
|
|
1479
|
+
todos: z.array(sessionProgressTodoSchema),
|
|
1480
|
+
currentStage: z.string().optional(),
|
|
1481
|
+
blockers: z.array(z.string()).optional(),
|
|
1482
|
+
updatedAt: z.number()
|
|
1483
|
+
});
|
|
1484
|
+
const sessionSummaryStateSchema = z.object({
|
|
1485
|
+
goal: z.string(),
|
|
1486
|
+
currentFocus: z.string().optional(),
|
|
1487
|
+
keyDecisions: z.array(z.string()).optional(),
|
|
1488
|
+
openQuestions: z.array(z.string()).optional(),
|
|
1489
|
+
impactScope: z.array(z.string()).optional(),
|
|
1490
|
+
updatedAt: z.number()
|
|
1491
|
+
});
|
|
1492
|
+
|
|
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 };
|