@goondan/cli 0.0.3-alpha17 → 0.0.3-alpha19
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/commands/logs.js +9 -1
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/restart.js +10 -4
- package/dist/commands/restart.js.map +1 -1
- package/dist/parser.d.ts +2 -0
- package/dist/parser.js +2 -0
- package/dist/parser.js.map +1 -1
- package/dist/services/env.js +21 -17
- package/dist/services/env.js.map +1 -1
- package/dist/services/logs.js +65 -0
- package/dist/services/logs.js.map +1 -1
- package/dist/services/studio.js +147 -4
- package/dist/services/studio.js.map +1 -1
- package/dist/studio/assets.d.ts +1 -1
- package/dist/studio/assets.js +16 -16
- package/dist/types.d.ts +37 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export interface RuntimeRestartResult {
|
|
|
45
45
|
export type LogStream = 'stdout' | 'stderr' | 'both';
|
|
46
46
|
export interface LogReadRequest {
|
|
47
47
|
instanceKey?: string;
|
|
48
|
+
agent?: string;
|
|
49
|
+
trace?: string;
|
|
48
50
|
process: string;
|
|
49
51
|
stream: LogStream;
|
|
50
52
|
lines: number;
|
|
@@ -183,6 +185,40 @@ export interface StudioTimelineEntry {
|
|
|
183
185
|
role: string;
|
|
184
186
|
content: string;
|
|
185
187
|
}>;
|
|
188
|
+
traceId?: string;
|
|
189
|
+
spanId?: string;
|
|
190
|
+
parentSpanId?: string;
|
|
191
|
+
instanceKey?: string;
|
|
192
|
+
duration?: number;
|
|
193
|
+
tokenUsage?: StudioTokenUsage;
|
|
194
|
+
}
|
|
195
|
+
export interface StudioTokenUsage {
|
|
196
|
+
promptTokens: number;
|
|
197
|
+
completionTokens: number;
|
|
198
|
+
totalTokens: number;
|
|
199
|
+
}
|
|
200
|
+
export interface StudioTraceSpan {
|
|
201
|
+
spanId: string;
|
|
202
|
+
parentSpanId?: string;
|
|
203
|
+
traceId: string;
|
|
204
|
+
type: string;
|
|
205
|
+
agentName: string;
|
|
206
|
+
instanceKey: string;
|
|
207
|
+
startedAt: string;
|
|
208
|
+
completedAt?: string;
|
|
209
|
+
duration?: number;
|
|
210
|
+
status: 'started' | 'completed' | 'failed';
|
|
211
|
+
children: StudioTraceSpan[];
|
|
212
|
+
tokenUsage?: StudioTokenUsage;
|
|
213
|
+
detail?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface StudioTrace {
|
|
216
|
+
traceId: string;
|
|
217
|
+
rootSpans: StudioTraceSpan[];
|
|
218
|
+
agentNames: string[];
|
|
219
|
+
startedAt: string;
|
|
220
|
+
completedAt?: string;
|
|
221
|
+
totalDuration?: number;
|
|
186
222
|
}
|
|
187
223
|
export interface StudioVisualization {
|
|
188
224
|
instanceKey: string;
|
|
@@ -190,6 +226,7 @@ export interface StudioVisualization {
|
|
|
190
226
|
interactions: StudioInteraction[];
|
|
191
227
|
timeline: StudioTimelineEntry[];
|
|
192
228
|
recentEvents: StudioTimelineEntry[];
|
|
229
|
+
traces: StudioTrace[];
|
|
193
230
|
}
|
|
194
231
|
export interface StudioInstancesRequest {
|
|
195
232
|
stateRoot?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goondan/cli",
|
|
3
|
-
"version": "0.0.3-
|
|
3
|
+
"version": "0.0.3-alpha19",
|
|
4
4
|
"description": "Goondan CLI (gdn)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@optique/core": "^0.9.0",
|
|
19
19
|
"@optique/run": "^0.9.0",
|
|
20
|
-
"@goondan/runtime": "0.0.3-
|
|
20
|
+
"@goondan/runtime": "0.0.3-alpha19"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^22.19.7",
|