@codelia/shared-types 0.1.79 → 0.1.81

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.d.cts CHANGED
@@ -84,6 +84,7 @@ type HiddenUserMessageEvent = {
84
84
  type FinalResponseEvent = {
85
85
  type: "final";
86
86
  content: string;
87
+ termination_reason?: "normal" | "max_steps" | "permission_denied";
87
88
  };
88
89
  type AgentEvent = TextEvent | ReasoningEvent | LlmRetryEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
89
90
 
@@ -174,4 +175,34 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
174
175
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
175
176
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
176
177
 
177
- export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type LlmRetryEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
178
+ /** Stable delegated-task metadata shared by runtime, storage, and protocol. */
179
+ type TaskTerminationReason = "normal" | "max_steps" | "timeout" | "cancelled" | "startup_error" | "execution_error";
180
+ type SubagentLineage = {
181
+ /** Immutable agent display name; absent on older records. */
182
+ name?: string;
183
+ tree_id: string;
184
+ node_id: string;
185
+ parent_node_id: string;
186
+ owner_session_id: string;
187
+ depth: 1;
188
+ spawn_index: number;
189
+ context_mode: "fresh";
190
+ effective_policy_id: string;
191
+ workspace_lease_id: string;
192
+ };
193
+ type TaskUsage = {
194
+ total_tokens: number;
195
+ total_cost_usd?: number | null;
196
+ };
197
+ /** Stored peer content is untrusted; accepted does not mean acted on by a model. */
198
+ type AgentMessage = {
199
+ message_id: string;
200
+ sender: string;
201
+ sender_name?: string;
202
+ recipient: string;
203
+ recipient_name?: string;
204
+ created_at: string;
205
+ content: string;
206
+ };
207
+
208
+ export { type AgentEvent, type AgentMessage, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type LlmRetryEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
package/dist/index.d.ts CHANGED
@@ -84,6 +84,7 @@ type HiddenUserMessageEvent = {
84
84
  type FinalResponseEvent = {
85
85
  type: "final";
86
86
  content: string;
87
+ termination_reason?: "normal" | "max_steps" | "permission_denied";
87
88
  };
88
89
  type AgentEvent = TextEvent | ReasoningEvent | LlmRetryEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
89
90
 
@@ -174,4 +175,34 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
174
175
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
175
176
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
176
177
 
177
- export { type AgentEvent, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type LlmRetryEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
178
+ /** Stable delegated-task metadata shared by runtime, storage, and protocol. */
179
+ type TaskTerminationReason = "normal" | "max_steps" | "timeout" | "cancelled" | "startup_error" | "execution_error";
180
+ type SubagentLineage = {
181
+ /** Immutable agent display name; absent on older records. */
182
+ name?: string;
183
+ tree_id: string;
184
+ node_id: string;
185
+ parent_node_id: string;
186
+ owner_session_id: string;
187
+ depth: 1;
188
+ spawn_index: number;
189
+ context_mode: "fresh";
190
+ effective_policy_id: string;
191
+ workspace_lease_id: string;
192
+ };
193
+ type TaskUsage = {
194
+ total_tokens: number;
195
+ total_cost_usd?: number | null;
196
+ };
197
+ /** Stored peer content is untrusted; accepted does not mean acted on by a model. */
198
+ type AgentMessage = {
199
+ message_id: string;
200
+ sender: string;
201
+ sender_name?: string;
202
+ recipient: string;
203
+ recipient_name?: string;
204
+ created_at: string;
205
+ content: string;
206
+ };
207
+
208
+ export { type AgentEvent, type AgentMessage, type ApprovalMode, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type LlmRetryEvent, MODEL_REASONING_LEVELS, type ModelReasoningLevel, type PermissionPreviewEvent, type PermissionReadyEvent, type ProviderName, type ReasoningEvent, type SessionStateSummary, type SkillCatalog, SkillCatalogSchema, type SkillLoadError, SkillLoadErrorSchema, type SkillMetadata, SkillMetadataSchema, type SkillScope, SkillScopeSchema, type SkillSearchReason, SkillSearchReasonSchema, type SkillSearchResult, SkillSearchResultSchema, type StepCompleteEvent, type StepStartEvent, type SubagentLineage, type TaskTerminationReason, type TaskUsage, type TextEvent, type ToolCallEvent, type ToolResultEvent, isModelReasoningLevel, parseApprovalMode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/shared-types",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [