@stack-spot/portal-network 0.185.1-beta.1 → 0.186.1
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/CHANGELOG.md +4 -22
- package/dist/api/cloudPlatform.d.ts +38 -1
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +27 -1
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +1 -1
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +13 -93
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +15 -0
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +20 -2
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +0 -8
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +1 -10
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +5 -25
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +0 -1
- package/src/api/agent-tools.ts +0 -3
- package/src/api/agent.ts +0 -2
- package/src/api/cloudPlatform.ts +70 -1
- package/src/api/codeShift.ts +1 -1
- package/src/api/notification.ts +0 -2
- package/src/client/ai.ts +12 -95
- package/src/client/cloud-platform.ts +13 -4
- package/src/client/code-shift.ts +0 -7
- package/src/client/types.ts +5 -26
package/src/client/types.ts
CHANGED
|
@@ -245,7 +245,6 @@ export interface ChatAgentTool {
|
|
|
245
245
|
image?: string,
|
|
246
246
|
input?: string,
|
|
247
247
|
output?: string,
|
|
248
|
-
goal?: string,
|
|
249
248
|
}
|
|
250
249
|
|
|
251
250
|
export interface ChatStepAttempt {
|
|
@@ -257,8 +256,8 @@ export interface ChatStepAttempt {
|
|
|
257
256
|
|
|
258
257
|
export interface BaseChatStep {
|
|
259
258
|
id: string,
|
|
260
|
-
type: 'planning' | 'step' | 'answer'
|
|
261
|
-
status: 'pending' | 'running' | 'success' | 'error'
|
|
259
|
+
type: 'planning' | 'step' | 'answer',
|
|
260
|
+
status: 'pending' | 'running' | 'success' | 'error',
|
|
262
261
|
/**
|
|
263
262
|
* Duration in seconds.
|
|
264
263
|
*/
|
|
@@ -267,24 +266,9 @@ export interface BaseChatStep {
|
|
|
267
266
|
|
|
268
267
|
export interface PlanningChatStep extends BaseChatStep {
|
|
269
268
|
type: 'planning',
|
|
270
|
-
status: 'success'
|
|
269
|
+
status: 'success',
|
|
271
270
|
steps: string[],
|
|
272
271
|
goal: string,
|
|
273
|
-
user_question?: string,
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export interface ToolChatStep extends BaseChatStep {
|
|
277
|
-
type: 'tool',
|
|
278
|
-
status: 'running' | 'success' | 'error' | 'awaiting_approval',
|
|
279
|
-
/**
|
|
280
|
-
* Each step might attempt to run for multiple times, with different inputs and outputs. If first attempt succeeds, this array will have
|
|
281
|
-
* only one element.
|
|
282
|
-
*
|
|
283
|
-
* This array never has less than one element, despite the step's status.
|
|
284
|
-
*/
|
|
285
|
-
attempts: ChatStepAttempt[],
|
|
286
|
-
input?: Record<string, any>,
|
|
287
|
-
user_question?: string,
|
|
288
272
|
}
|
|
289
273
|
|
|
290
274
|
export interface StepChatStep extends BaseChatStep {
|
|
@@ -304,19 +288,17 @@ export interface AnswerChatStep extends BaseChatStep {
|
|
|
304
288
|
type: 'answer',
|
|
305
289
|
}
|
|
306
290
|
|
|
307
|
-
export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
|
|
291
|
+
export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
|
|
308
292
|
|
|
309
293
|
export interface BaseAgentInfo {
|
|
310
294
|
type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
|
|
311
|
-
action: 'start' | 'end'
|
|
295
|
+
action: 'start' | 'end',
|
|
312
296
|
duration?: number,
|
|
313
|
-
id: string,
|
|
314
297
|
}
|
|
315
298
|
|
|
316
299
|
export interface AgentTool {
|
|
317
300
|
tool_id: string,
|
|
318
301
|
tool_execution_id: string,
|
|
319
|
-
goal: string,
|
|
320
302
|
}
|
|
321
303
|
|
|
322
304
|
export interface PlanningAgentInfo extends BaseAgentInfo {
|
|
@@ -329,7 +311,6 @@ export interface PlanningAgentInfo extends BaseAgentInfo {
|
|
|
329
311
|
goal: string,
|
|
330
312
|
tools?: AgentTool[],
|
|
331
313
|
}[],
|
|
332
|
-
user_question?: string,
|
|
333
314
|
},
|
|
334
315
|
}
|
|
335
316
|
|
|
@@ -345,8 +326,6 @@ export interface ToolAgentInfo extends BaseAgentInfo {
|
|
|
345
326
|
input?: any,
|
|
346
327
|
attempt: number,
|
|
347
328
|
output?: string,
|
|
348
|
-
user_question?: string,
|
|
349
|
-
tool_id: string,
|
|
350
329
|
},
|
|
351
330
|
}
|
|
352
331
|
|