@kmmao/happy-wire 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -1
- package/dist/index.d.cts +30 -2
- package/dist/index.d.mts +30 -2
- package/dist/index.mjs +13 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -504,6 +504,15 @@ const AutomationStateSchema = z__namespace.object({
|
|
|
504
504
|
auditStats: AutomationAuditStatsSchema.optional(),
|
|
505
505
|
recentAuditEvents: z__namespace.array(AutomationAuditEventSummarySchema).optional()
|
|
506
506
|
});
|
|
507
|
+
const BriefMessageSchema = z__namespace.object({
|
|
508
|
+
loopId: z__namespace.string(),
|
|
509
|
+
loopName: z__namespace.string().optional(),
|
|
510
|
+
status: z__namespace.enum(["completed", "failed", "cancelled"]),
|
|
511
|
+
summary: z__namespace.string(),
|
|
512
|
+
detail: z__namespace.string(),
|
|
513
|
+
generatedAt: z__namespace.number(),
|
|
514
|
+
sessionId: z__namespace.string().optional()
|
|
515
|
+
});
|
|
507
516
|
const DaemonStateSchema = z__namespace.object({
|
|
508
517
|
status: z__namespace.union([
|
|
509
518
|
z__namespace.enum(["running", "shutting-down"]),
|
|
@@ -521,7 +530,9 @@ const DaemonStateSchema = z__namespace.object({
|
|
|
521
530
|
]).optional(),
|
|
522
531
|
tailscale: TailscaleInfoSchema.optional(),
|
|
523
532
|
tunnels: TunnelStateSchema.optional(),
|
|
524
|
-
automation: AutomationStateSchema.optional()
|
|
533
|
+
automation: AutomationStateSchema.optional(),
|
|
534
|
+
recentBriefs: z__namespace.array(BriefMessageSchema).optional(),
|
|
535
|
+
killed: z__namespace.boolean().optional()
|
|
525
536
|
});
|
|
526
537
|
|
|
527
538
|
const KnowledgeEntryTypeSchema = z__namespace.enum([
|
|
@@ -720,6 +731,7 @@ exports.AutomationJobStatusSchema = AutomationJobStatusSchema;
|
|
|
720
731
|
exports.AutomationJobSummarySchema = AutomationJobSummarySchema;
|
|
721
732
|
exports.AutomationPrioritySchema = AutomationPrioritySchema;
|
|
722
733
|
exports.AutomationStateSchema = AutomationStateSchema;
|
|
734
|
+
exports.BriefMessageSchema = BriefMessageSchema;
|
|
723
735
|
exports.CoreUpdateBodySchema = CoreUpdateBodySchema;
|
|
724
736
|
exports.CoreUpdateContainerSchema = CoreUpdateContainerSchema;
|
|
725
737
|
exports.CreateKnowledgeEntryBodySchema = CreateKnowledgeEntryBodySchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -1704,6 +1704,20 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1704
1704
|
}, z.core.$strip>>>;
|
|
1705
1705
|
}, z.core.$strip>;
|
|
1706
1706
|
type AutomationState = z.infer<typeof AutomationStateSchema>;
|
|
1707
|
+
declare const BriefMessageSchema: z.ZodObject<{
|
|
1708
|
+
loopId: z.ZodString;
|
|
1709
|
+
loopName: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
status: z.ZodEnum<{
|
|
1711
|
+
completed: "completed";
|
|
1712
|
+
failed: "failed";
|
|
1713
|
+
cancelled: "cancelled";
|
|
1714
|
+
}>;
|
|
1715
|
+
summary: z.ZodString;
|
|
1716
|
+
detail: z.ZodString;
|
|
1717
|
+
generatedAt: z.ZodNumber;
|
|
1718
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
}, z.core.$strip>;
|
|
1720
|
+
type BriefMessage = z.infer<typeof BriefMessageSchema>;
|
|
1707
1721
|
declare const DaemonStateSchema: z.ZodObject<{
|
|
1708
1722
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1709
1723
|
running: "running";
|
|
@@ -1872,6 +1886,20 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1872
1886
|
message: z.ZodOptional<z.ZodString>;
|
|
1873
1887
|
}, z.core.$strip>>>;
|
|
1874
1888
|
}, z.core.$strip>>;
|
|
1889
|
+
recentBriefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1890
|
+
loopId: z.ZodString;
|
|
1891
|
+
loopName: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
status: z.ZodEnum<{
|
|
1893
|
+
completed: "completed";
|
|
1894
|
+
failed: "failed";
|
|
1895
|
+
cancelled: "cancelled";
|
|
1896
|
+
}>;
|
|
1897
|
+
summary: z.ZodString;
|
|
1898
|
+
detail: z.ZodString;
|
|
1899
|
+
generatedAt: z.ZodNumber;
|
|
1900
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
}, z.core.$strip>>>;
|
|
1902
|
+
killed: z.ZodOptional<z.ZodBoolean>;
|
|
1875
1903
|
}, z.core.$strip>;
|
|
1876
1904
|
type DaemonState = z.infer<typeof DaemonStateSchema>;
|
|
1877
1905
|
|
|
@@ -2227,5 +2255,5 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2227
2255
|
}, z.core.$strip>], "allowed">;
|
|
2228
2256
|
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
2229
2257
|
|
|
2230
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2231
|
-
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
2258
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, BriefMessageSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2259
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BriefMessage, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.d.mts
CHANGED
|
@@ -1704,6 +1704,20 @@ declare const AutomationStateSchema: z.ZodObject<{
|
|
|
1704
1704
|
}, z.core.$strip>>>;
|
|
1705
1705
|
}, z.core.$strip>;
|
|
1706
1706
|
type AutomationState = z.infer<typeof AutomationStateSchema>;
|
|
1707
|
+
declare const BriefMessageSchema: z.ZodObject<{
|
|
1708
|
+
loopId: z.ZodString;
|
|
1709
|
+
loopName: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
status: z.ZodEnum<{
|
|
1711
|
+
completed: "completed";
|
|
1712
|
+
failed: "failed";
|
|
1713
|
+
cancelled: "cancelled";
|
|
1714
|
+
}>;
|
|
1715
|
+
summary: z.ZodString;
|
|
1716
|
+
detail: z.ZodString;
|
|
1717
|
+
generatedAt: z.ZodNumber;
|
|
1718
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1719
|
+
}, z.core.$strip>;
|
|
1720
|
+
type BriefMessage = z.infer<typeof BriefMessageSchema>;
|
|
1707
1721
|
declare const DaemonStateSchema: z.ZodObject<{
|
|
1708
1722
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1709
1723
|
running: "running";
|
|
@@ -1872,6 +1886,20 @@ declare const DaemonStateSchema: z.ZodObject<{
|
|
|
1872
1886
|
message: z.ZodOptional<z.ZodString>;
|
|
1873
1887
|
}, z.core.$strip>>>;
|
|
1874
1888
|
}, z.core.$strip>>;
|
|
1889
|
+
recentBriefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1890
|
+
loopId: z.ZodString;
|
|
1891
|
+
loopName: z.ZodOptional<z.ZodString>;
|
|
1892
|
+
status: z.ZodEnum<{
|
|
1893
|
+
completed: "completed";
|
|
1894
|
+
failed: "failed";
|
|
1895
|
+
cancelled: "cancelled";
|
|
1896
|
+
}>;
|
|
1897
|
+
summary: z.ZodString;
|
|
1898
|
+
detail: z.ZodString;
|
|
1899
|
+
generatedAt: z.ZodNumber;
|
|
1900
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
}, z.core.$strip>>>;
|
|
1902
|
+
killed: z.ZodOptional<z.ZodBoolean>;
|
|
1875
1903
|
}, z.core.$strip>;
|
|
1876
1904
|
type DaemonState = z.infer<typeof DaemonStateSchema>;
|
|
1877
1905
|
|
|
@@ -2227,5 +2255,5 @@ declare const VoiceTokenResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2227
2255
|
}, z.core.$strip>], "allowed">;
|
|
2228
2256
|
type VoiceTokenResponse = z.infer<typeof VoiceTokenResponseSchema>;
|
|
2229
2257
|
|
|
2230
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2231
|
-
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
|
2258
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, BriefMessageSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
2259
|
+
export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, AutomationAuditEventSummary, AutomationAuditStats, AutomationCounts, AutomationGuardianSummary, AutomationGuardianUsageSummary, AutomationJobKind, AutomationJobStatus, AutomationJobSummary, AutomationPriority, AutomationState, BriefMessage, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, CreateKnowledgeEntryBody, CrossProjectSearchResponse, CrossProjectSearchResult, DaemonState, KnowledgeAction, KnowledgeChainEntry, KnowledgeChainRelation, KnowledgeChainResponse, KnowledgeConfidence, KnowledgeContributorType, KnowledgeEntryType, KnowledgeInjectionMode, KnowledgeInjectionRequest, KnowledgeInjectionResponse, KnowledgeStatus, LegacyMessageContent, MachineMetadata, MessageContent, MessageMeta, ProjectProfile, QueryKnowledgeParams, SessionContextUsageEvent, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionModelUsage, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, TailscaleInfo, TailscaleServeEntry, TunnelEntry, TunnelProviderInfo, TunnelState, TurnKnowledgeExtraction, Update, UpdateBody, UpdateKnowledgeEntryBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceTokenResponse };
|
package/dist/index.mjs
CHANGED
|
@@ -483,6 +483,15 @@ const AutomationStateSchema = z.object({
|
|
|
483
483
|
auditStats: AutomationAuditStatsSchema.optional(),
|
|
484
484
|
recentAuditEvents: z.array(AutomationAuditEventSummarySchema).optional()
|
|
485
485
|
});
|
|
486
|
+
const BriefMessageSchema = z.object({
|
|
487
|
+
loopId: z.string(),
|
|
488
|
+
loopName: z.string().optional(),
|
|
489
|
+
status: z.enum(["completed", "failed", "cancelled"]),
|
|
490
|
+
summary: z.string(),
|
|
491
|
+
detail: z.string(),
|
|
492
|
+
generatedAt: z.number(),
|
|
493
|
+
sessionId: z.string().optional()
|
|
494
|
+
});
|
|
486
495
|
const DaemonStateSchema = z.object({
|
|
487
496
|
status: z.union([
|
|
488
497
|
z.enum(["running", "shutting-down"]),
|
|
@@ -500,7 +509,9 @@ const DaemonStateSchema = z.object({
|
|
|
500
509
|
]).optional(),
|
|
501
510
|
tailscale: TailscaleInfoSchema.optional(),
|
|
502
511
|
tunnels: TunnelStateSchema.optional(),
|
|
503
|
-
automation: AutomationStateSchema.optional()
|
|
512
|
+
automation: AutomationStateSchema.optional(),
|
|
513
|
+
recentBriefs: z.array(BriefMessageSchema).optional(),
|
|
514
|
+
killed: z.boolean().optional()
|
|
504
515
|
});
|
|
505
516
|
|
|
506
517
|
const KnowledgeEntryTypeSchema = z.enum([
|
|
@@ -684,4 +695,4 @@ const VoiceTokenResponseSchema = z.discriminatedUnion("allowed", [
|
|
|
684
695
|
VoiceTokenDeniedSchema
|
|
685
696
|
]);
|
|
686
697
|
|
|
687
|
-
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|
|
698
|
+
export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, AutomationAuditEventSummarySchema, AutomationAuditStatsSchema, AutomationCountsSchema, AutomationGuardianSummarySchema, AutomationGuardianUsageSummarySchema, AutomationJobKindSchema, AutomationJobStatusSchema, AutomationJobSummarySchema, AutomationPrioritySchema, AutomationStateSchema, BriefMessageSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, CreateKnowledgeEntryBodySchema, CrossProjectSearchResponseSchema, CrossProjectSearchResultSchema, DaemonStateSchema, KnowledgeActionSchema, KnowledgeChainEntrySchema, KnowledgeChainRelationSchema, KnowledgeChainResponseSchema, KnowledgeConfidenceSchema, KnowledgeContributorTypeSchema, KnowledgeEntryTypeSchema, KnowledgeInjectionModeSchema, KnowledgeInjectionRequestSchema, KnowledgeInjectionResponseSchema, KnowledgeStatusSchema, LegacyMessageContentSchema, MachineMetadataSchema, MessageContentSchema, MessageMetaSchema, ProjectProfileSchema, QueryKnowledgeParamsSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, TailscaleInfoSchema, TailscaleServeEntrySchema, TunnelEntrySchema, TunnelProviderInfoSchema, TunnelStateSchema, TurnKnowledgeExtractionSchema, UpdateBodySchema, UpdateKnowledgeEntryBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceTokenAllowedSchema, VoiceTokenDeniedSchema, VoiceTokenResponseSchema, createEnvelope, sessionContextUsageCategorySchema, sessionContextUsageEventSchema, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionModelUsageSchema, sessionNeedsContinueEventSchema, sessionPromptSuggestionEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStateChangedEventSchema, sessionStopEventSchema, sessionTaskEndEventSchema, sessionTaskLogEventSchema, sessionTaskProgressEventSchema, sessionTaskStartEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionToolProgressEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, sessionUsageUpdateEventSchema };
|