@codelia/shared-types 0.1.3 → 0.1.10

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
@@ -20,6 +20,7 @@ type ToolCallEvent = {
20
20
  type: "tool_call";
21
21
  tool: string;
22
22
  args: Record<string, unknown>;
23
+ raw_args?: string;
23
24
  tool_call_id: string;
24
25
  display_name?: string;
25
26
  };
@@ -31,6 +32,21 @@ type ToolResultEvent = {
31
32
  is_error?: boolean;
32
33
  screenshot_base64?: string | null;
33
34
  };
35
+ type PermissionPreviewEvent = {
36
+ type: "permission.preview";
37
+ tool: string;
38
+ tool_call_id?: string;
39
+ file_path?: string;
40
+ language?: string;
41
+ diff?: string;
42
+ summary?: string;
43
+ truncated?: boolean;
44
+ };
45
+ type PermissionReadyEvent = {
46
+ type: "permission.ready";
47
+ tool: string;
48
+ tool_call_id?: string;
49
+ };
34
50
  type StepCompleteEvent = {
35
51
  type: "step_complete";
36
52
  step_id: string;
@@ -54,7 +70,7 @@ type FinalResponseEvent = {
54
70
  type: "final";
55
71
  content: string;
56
72
  };
57
- type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
73
+ type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
58
74
 
59
75
  type SessionStateSummary = {
60
76
  session_id: string;
@@ -138,4 +154,4 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
138
154
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
139
155
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
140
156
 
141
- export { type AgentEvent, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, 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 };
157
+ export { type AgentEvent, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type PermissionPreviewEvent, type PermissionReadyEvent, 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 };
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ type ToolCallEvent = {
20
20
  type: "tool_call";
21
21
  tool: string;
22
22
  args: Record<string, unknown>;
23
+ raw_args?: string;
23
24
  tool_call_id: string;
24
25
  display_name?: string;
25
26
  };
@@ -31,6 +32,21 @@ type ToolResultEvent = {
31
32
  is_error?: boolean;
32
33
  screenshot_base64?: string | null;
33
34
  };
35
+ type PermissionPreviewEvent = {
36
+ type: "permission.preview";
37
+ tool: string;
38
+ tool_call_id?: string;
39
+ file_path?: string;
40
+ language?: string;
41
+ diff?: string;
42
+ summary?: string;
43
+ truncated?: boolean;
44
+ };
45
+ type PermissionReadyEvent = {
46
+ type: "permission.ready";
47
+ tool: string;
48
+ tool_call_id?: string;
49
+ };
34
50
  type StepCompleteEvent = {
35
51
  type: "step_complete";
36
52
  step_id: string;
@@ -54,7 +70,7 @@ type FinalResponseEvent = {
54
70
  type: "final";
55
71
  content: string;
56
72
  };
57
- type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
73
+ type AgentEvent = TextEvent | ReasoningEvent | StepStartEvent | ToolCallEvent | ToolResultEvent | PermissionPreviewEvent | PermissionReadyEvent | StepCompleteEvent | CompactionStartEvent | CompactionCompleteEvent | HiddenUserMessageEvent | FinalResponseEvent;
58
74
 
59
75
  type SessionStateSummary = {
60
76
  session_id: string;
@@ -138,4 +154,4 @@ type SkillCatalog = z.infer<typeof SkillCatalogSchema>;
138
154
  type SkillSearchReason = z.infer<typeof SkillSearchReasonSchema>;
139
155
  type SkillSearchResult = z.infer<typeof SkillSearchResultSchema>;
140
156
 
141
- export { type AgentEvent, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, 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 };
157
+ export { type AgentEvent, type CompactionCompleteEvent, type CompactionStartEvent, type FinalResponseEvent, type HiddenUserMessageEvent, type PermissionPreviewEvent, type PermissionReadyEvent, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codelia/shared-types",
3
- "version": "0.1.3",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"