stk-codegen 1.0.8 → 1.0.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/types/index.d.ts
CHANGED
|
@@ -37,21 +37,24 @@ export interface ToolResult {
|
|
|
37
37
|
payload: {
|
|
38
38
|
tool_name: string;
|
|
39
39
|
tool_id: string;
|
|
40
|
-
generation_id: string;
|
|
40
|
+
generation_id: string | null;
|
|
41
41
|
status: 'success' | 'error';
|
|
42
|
-
result: any;
|
|
42
|
+
result: any | null;
|
|
43
|
+
error?: string | null;
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export interface ClientCancelGeneration {
|
|
46
47
|
type: 'client_cancel_generation';
|
|
47
48
|
payload: {
|
|
48
49
|
generation_id: string;
|
|
50
|
+
reason?: string;
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
export interface AgentGenerationCancelled {
|
|
52
54
|
type: 'agent_generation_cancelled';
|
|
53
55
|
payload: {
|
|
54
56
|
generation_id: string;
|
|
57
|
+
reason?: string | null;
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
export interface UserMessage {
|
|
@@ -89,6 +92,7 @@ export interface HandshakeMessage {
|
|
|
89
92
|
content: string;
|
|
90
93
|
filePaths: string[];
|
|
91
94
|
} | null;
|
|
95
|
+
initial_prompt?: string;
|
|
92
96
|
};
|
|
93
97
|
}
|
|
94
98
|
export interface ClientCancelLast {
|
|
@@ -99,22 +103,34 @@ export type ClientMessage = UserMessage | MagicCommand | ClientCancelGeneration
|
|
|
99
103
|
export type BackendMessage = RunTool | AgentGenerationCancelled | {
|
|
100
104
|
type: 'agent_error';
|
|
101
105
|
payload: {
|
|
106
|
+
generation_id?: string;
|
|
102
107
|
message: string;
|
|
103
108
|
details?: string;
|
|
104
109
|
};
|
|
105
110
|
} | {
|
|
106
111
|
type: 'agent_message_delta';
|
|
107
112
|
payload: {
|
|
113
|
+
generation_id?: string;
|
|
114
|
+
content: string;
|
|
115
|
+
};
|
|
116
|
+
} | {
|
|
117
|
+
type: 'agent_message';
|
|
118
|
+
payload: {
|
|
119
|
+
generation_id?: string;
|
|
108
120
|
content: string;
|
|
109
121
|
};
|
|
110
122
|
} | {
|
|
111
123
|
type: 'agent_thought';
|
|
112
124
|
payload: {
|
|
125
|
+
generation_id?: string;
|
|
113
126
|
content: string;
|
|
114
127
|
};
|
|
115
128
|
} | {
|
|
116
129
|
type: 'agent_finished';
|
|
117
|
-
payload:
|
|
130
|
+
payload: {
|
|
131
|
+
generation_id?: string;
|
|
132
|
+
content?: string;
|
|
133
|
+
};
|
|
118
134
|
} | {
|
|
119
135
|
type: 'handshake_ack';
|
|
120
136
|
payload: Record<string, never>;
|