@sixb/server 0.1.5 → 0.1.7
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/auth/public-routes.d.ts.map +1 -1
- package/dist/auth/scope.d.ts +6 -2
- package/dist/auth/scope.d.ts.map +1 -1
- package/dist/files/content.d.ts +8 -0
- package/dist/files/content.d.ts.map +1 -1
- package/dist/index.js +2507 -1573
- package/dist/index.js.map +22 -20
- package/dist/models/display.d.ts +22 -0
- package/dist/models/display.d.ts.map +1 -0
- package/dist/routes/action-runs.d.ts +2 -0
- package/dist/routes/action-runs.d.ts.map +1 -1
- package/dist/routes/actions.d.ts +1 -0
- package/dist/routes/actions.d.ts.map +1 -1
- package/dist/routes/agent-api-gateway.d.ts.map +1 -1
- package/dist/routes/agents.d.ts +99 -89
- package/dist/routes/agents.d.ts.map +1 -1
- package/dist/routes/ai-accounting.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +139 -15
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/events.d.ts +3 -3
- package/dist/routes/files.d.ts +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/models.d.ts +18 -1
- package/dist/routes/models.d.ts.map +1 -1
- package/dist/routes/objects.d.ts +3 -1
- package/dist/routes/objects.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +2 -1
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/rules.d.ts +1 -1
- package/dist/routes/syncs.d.ts +1 -0
- package/dist/routes/syncs.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts +57 -54
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +4 -4
- package/dist/schemas/agents.d.ts +378 -215
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-accounting.d.ts +1847 -295
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/ai-limits.d.ts +2210 -0
- package/dist/schemas/ai-limits.d.ts.map +1 -0
- package/dist/schemas/auth.d.ts +202 -72
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/events.d.ts +6 -6
- package/dist/schemas/files.d.ts +3 -0
- package/dist/schemas/files.d.ts.map +1 -1
- package/dist/schemas/models.d.ts +214 -14
- package/dist/schemas/models.d.ts.map +1 -1
- package/dist/schemas/objects.d.ts +4 -4
- package/dist/schemas/pipelines.d.ts +6 -6
- package/dist/schemas/rules.d.ts +6 -6
- package/dist/schemas/workflows.d.ts +196 -206
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/utils/http.d.ts +8 -4
- package/dist/utils/http.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/auth/public-routes.ts +18 -0
- package/src/auth/scope.ts +3 -2
- package/src/files/content.ts +39 -6
- package/src/models/display.ts +91 -0
- package/src/routes/agent-api-gateway.ts +137 -38
- package/src/routes/agents.ts +58 -83
- package/src/routes/ai-accounting.ts +414 -23
- package/src/routes/auth.ts +297 -2
- package/src/routes/models.ts +12 -4
- package/src/routes/workflows.ts +3 -5
- package/src/routes/ws/agents.ts +17 -6
- package/src/schemas/agents.ts +40 -49
- package/src/schemas/ai-accounting.ts +88 -19
- package/src/schemas/ai-limits.ts +116 -0
- package/src/schemas/auth.ts +39 -0
- package/src/schemas/files.ts +1 -0
- package/src/schemas/models.ts +33 -5
- package/src/schemas/workflows.ts +0 -2
- package/src/utils/http.ts +33 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LanguageModelEntry } from "@sixb/core";
|
|
2
|
+
/** Presentation only; the configured provider remains the source of model capabilities. */
|
|
3
|
+
export declare function languageModelDisplay(entry: LanguageModelEntry): Promise<{
|
|
4
|
+
capabilities: {
|
|
5
|
+
contextWindowTokens?: number | undefined;
|
|
6
|
+
structuredOutput?: boolean | undefined;
|
|
7
|
+
tools?: boolean | undefined;
|
|
8
|
+
reasoning?: boolean | undefined;
|
|
9
|
+
attachments?: boolean | undefined;
|
|
10
|
+
input: string[];
|
|
11
|
+
output: string[];
|
|
12
|
+
};
|
|
13
|
+
reasoningLevels: readonly ("none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
|
|
14
|
+
via?: string | undefined;
|
|
15
|
+
publisher: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
name: string;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/models/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAQpD,2FAA2F;AAC3F,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;GAuDnE"}
|
|
@@ -160,6 +160,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
160
160
|
query: {
|
|
161
161
|
path: string;
|
|
162
162
|
disposition?: "inline" | "attachment" | undefined;
|
|
163
|
+
v?: string | undefined;
|
|
163
164
|
};
|
|
164
165
|
headers: unknown;
|
|
165
166
|
response: {
|
|
@@ -196,6 +197,7 @@ export declare function registerActionRunRoutes(app: Elysia, host: SixbHostView)
|
|
|
196
197
|
query: {
|
|
197
198
|
path: string;
|
|
198
199
|
disposition?: "inline" | "attachment" | undefined;
|
|
200
|
+
v?: string | undefined;
|
|
199
201
|
};
|
|
200
202
|
headers: unknown;
|
|
201
203
|
response: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"action-runs.d.ts","sourceRoot":"","sources":["../../src/routes/action-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwHpC,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HtE"}
|
package/dist/routes/actions.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/routes/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAqDpC,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"agent-api-gateway.d.ts","sourceRoot":"","sources":["../../src/routes/agent-api-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAoB9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAgBpC,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,QAuB5E"}
|
package/dist/routes/agents.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
19
19
|
response: {};
|
|
20
20
|
}, {
|
|
21
21
|
api: {
|
|
22
|
-
|
|
22
|
+
agent: {
|
|
23
23
|
get: {
|
|
24
24
|
body: unknown;
|
|
25
25
|
params: {};
|
|
@@ -27,23 +27,15 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
27
27
|
headers: unknown;
|
|
28
28
|
response: {
|
|
29
29
|
200: {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
keepRecentTokens?: number | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
stopWhen?: {
|
|
43
|
-
maxSteps?: number | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
}[];
|
|
31
|
+
model: {
|
|
32
|
+
provider: string;
|
|
33
|
+
modelId: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
404: {
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
47
39
|
422: {
|
|
48
40
|
type: "validation";
|
|
49
41
|
on: string;
|
|
@@ -57,53 +49,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
57
49
|
};
|
|
58
50
|
};
|
|
59
51
|
};
|
|
60
|
-
} & {
|
|
61
|
-
api: {
|
|
62
|
-
agents: {
|
|
63
|
-
":agentId": {
|
|
64
|
-
get: {
|
|
65
|
-
body: unknown;
|
|
66
|
-
params: {
|
|
67
|
-
agentId: string;
|
|
68
|
-
};
|
|
69
|
-
query: unknown;
|
|
70
|
-
headers: unknown;
|
|
71
|
-
response: {
|
|
72
|
-
200: {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
groupIds: string[];
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
modelId?: string | undefined;
|
|
78
|
-
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
79
|
-
loop?: {
|
|
80
|
-
context?: {
|
|
81
|
-
windowTokens?: number | undefined;
|
|
82
|
-
reserveTokens?: number | undefined;
|
|
83
|
-
keepRecentTokens?: number | undefined;
|
|
84
|
-
} | undefined;
|
|
85
|
-
stopWhen?: {
|
|
86
|
-
maxSteps?: number | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
};
|
|
90
|
-
404: {
|
|
91
|
-
error: string;
|
|
92
|
-
};
|
|
93
|
-
422: {
|
|
94
|
-
type: "validation";
|
|
95
|
-
on: string;
|
|
96
|
-
summary?: string;
|
|
97
|
-
message?: string;
|
|
98
|
-
found?: unknown;
|
|
99
|
-
property?: string;
|
|
100
|
-
expected?: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
52
|
} & {
|
|
108
53
|
api: {
|
|
109
54
|
"agent-threads": {
|
|
@@ -115,7 +60,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
115
60
|
limit?: string | undefined;
|
|
116
61
|
offset?: string | undefined;
|
|
117
62
|
order?: "asc" | "desc" | undefined;
|
|
118
|
-
agentId?: string | undefined;
|
|
119
63
|
};
|
|
120
64
|
headers: unknown;
|
|
121
65
|
response: {
|
|
@@ -126,7 +70,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
126
70
|
status: "active" | "archived";
|
|
127
71
|
projectId: string;
|
|
128
72
|
id: string;
|
|
129
|
-
agentId: string;
|
|
130
73
|
ownerPrincipal: {
|
|
131
74
|
id: string;
|
|
132
75
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -163,7 +106,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
163
106
|
"agent-threads": {
|
|
164
107
|
post: {
|
|
165
108
|
body: {
|
|
166
|
-
agentId: string;
|
|
167
109
|
title?: string | undefined;
|
|
168
110
|
threadId?: string | undefined;
|
|
169
111
|
};
|
|
@@ -176,7 +118,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
176
118
|
status: "active" | "archived";
|
|
177
119
|
projectId: string;
|
|
178
120
|
id: string;
|
|
179
|
-
agentId: string;
|
|
180
121
|
ownerPrincipal: {
|
|
181
122
|
id: string;
|
|
182
123
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -208,7 +149,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
208
149
|
status: "active" | "archived";
|
|
209
150
|
projectId: string;
|
|
210
151
|
id: string;
|
|
211
|
-
agentId: string;
|
|
212
152
|
ownerPrincipal: {
|
|
213
153
|
id: string;
|
|
214
154
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -250,7 +190,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
250
190
|
status: "active" | "archived";
|
|
251
191
|
projectId: string;
|
|
252
192
|
id: string;
|
|
253
|
-
agentId: string;
|
|
254
193
|
ownerPrincipal: {
|
|
255
194
|
id: string;
|
|
256
195
|
type: "user" | "serviceAccount" | "system";
|
|
@@ -347,21 +286,25 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
347
286
|
logicalPath?: string | undefined;
|
|
348
287
|
};
|
|
349
288
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
type: "provider-state";
|
|
291
|
+
providerId: string;
|
|
292
|
+
data: import("../schemas/common").JsonValue;
|
|
350
293
|
} | {
|
|
351
294
|
type: "tool-call";
|
|
352
295
|
output: import("../schemas/common").JsonValue;
|
|
296
|
+
input: import("../schemas/common").JsonValue;
|
|
353
297
|
toolCallId: string;
|
|
354
298
|
toolName: string;
|
|
355
|
-
input: import("../schemas/common").JsonValue;
|
|
356
299
|
state: "output-available";
|
|
357
300
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
358
301
|
dynamic?: boolean | undefined;
|
|
359
302
|
providerExecuted?: boolean | undefined;
|
|
360
303
|
} | {
|
|
361
304
|
type: "tool-call";
|
|
305
|
+
input: import("../schemas/common").JsonValue;
|
|
362
306
|
toolCallId: string;
|
|
363
307
|
toolName: string;
|
|
364
|
-
input: import("../schemas/common").JsonValue;
|
|
365
308
|
state: "output-error";
|
|
366
309
|
errorText: string;
|
|
367
310
|
providerMetadata?: import("../schemas/common").JsonValue | undefined;
|
|
@@ -434,6 +377,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
434
377
|
query: {
|
|
435
378
|
path: string;
|
|
436
379
|
disposition?: "inline" | "attachment" | undefined;
|
|
380
|
+
v?: string | undefined;
|
|
437
381
|
};
|
|
438
382
|
headers: unknown;
|
|
439
383
|
response: {
|
|
@@ -475,6 +419,7 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
475
419
|
query: {
|
|
476
420
|
path: string;
|
|
477
421
|
disposition?: "inline" | "attachment" | undefined;
|
|
422
|
+
v?: string | undefined;
|
|
478
423
|
};
|
|
479
424
|
headers: unknown;
|
|
480
425
|
response: {
|
|
@@ -507,6 +452,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
507
452
|
post: {
|
|
508
453
|
body: {
|
|
509
454
|
text: string;
|
|
455
|
+
model?: {
|
|
456
|
+
provider: string;
|
|
457
|
+
modelId: string;
|
|
458
|
+
} | undefined;
|
|
510
459
|
context?: {
|
|
511
460
|
origin: "ambient" | "explicit";
|
|
512
461
|
context: {
|
|
@@ -523,7 +472,6 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
523
472
|
label: string;
|
|
524
473
|
};
|
|
525
474
|
}[] | undefined;
|
|
526
|
-
messageId?: string | undefined;
|
|
527
475
|
attachments?: {
|
|
528
476
|
blobId: string;
|
|
529
477
|
digest: string;
|
|
@@ -532,6 +480,10 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
532
480
|
mediaType?: string | undefined;
|
|
533
481
|
logicalPath?: string | undefined;
|
|
534
482
|
}[] | undefined;
|
|
483
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
484
|
+
budgetTokens: number;
|
|
485
|
+
} | undefined;
|
|
486
|
+
messageId?: string | undefined;
|
|
535
487
|
};
|
|
536
488
|
params: {
|
|
537
489
|
threadId: string;
|
|
@@ -544,16 +496,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
544
496
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
545
497
|
projectId: string;
|
|
546
498
|
id: string;
|
|
547
|
-
agentId: string;
|
|
548
499
|
attempt: number;
|
|
549
500
|
threadId: string;
|
|
550
501
|
createdAt: string;
|
|
551
502
|
triggerMessageId: string;
|
|
552
503
|
streamId: string;
|
|
553
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
504
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
554
505
|
startedAt?: string | undefined;
|
|
555
506
|
completedAt?: string | undefined;
|
|
507
|
+
model?: {
|
|
508
|
+
provider: string;
|
|
509
|
+
modelId: string;
|
|
510
|
+
} | undefined;
|
|
556
511
|
modelId?: string | undefined;
|
|
512
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
513
|
+
budgetTokens: number;
|
|
514
|
+
} | undefined;
|
|
557
515
|
usage?: {
|
|
558
516
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
559
517
|
inputTokens?: number | undefined;
|
|
@@ -602,6 +560,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
602
560
|
409: {
|
|
603
561
|
error: string;
|
|
604
562
|
};
|
|
563
|
+
429: {
|
|
564
|
+
error: string;
|
|
565
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
566
|
+
details?: import("../schemas/common").JsonValue | undefined;
|
|
567
|
+
};
|
|
605
568
|
501: {
|
|
606
569
|
error: string;
|
|
607
570
|
};
|
|
@@ -610,16 +573,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
610
573
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
611
574
|
projectId: string;
|
|
612
575
|
id: string;
|
|
613
|
-
agentId: string;
|
|
614
576
|
attempt: number;
|
|
615
577
|
threadId: string;
|
|
616
578
|
createdAt: string;
|
|
617
579
|
triggerMessageId: string;
|
|
618
580
|
streamId: string;
|
|
619
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
581
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
620
582
|
startedAt?: string | undefined;
|
|
621
583
|
completedAt?: string | undefined;
|
|
584
|
+
model?: {
|
|
585
|
+
provider: string;
|
|
586
|
+
modelId: string;
|
|
587
|
+
} | undefined;
|
|
622
588
|
modelId?: string | undefined;
|
|
589
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
590
|
+
budgetTokens: number;
|
|
591
|
+
} | undefined;
|
|
623
592
|
usage?: {
|
|
624
593
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
625
594
|
inputTokens?: number | undefined;
|
|
@@ -689,16 +658,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
689
658
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
690
659
|
projectId: string;
|
|
691
660
|
id: string;
|
|
692
|
-
agentId: string;
|
|
693
661
|
attempt: number;
|
|
694
662
|
threadId: string;
|
|
695
663
|
createdAt: string;
|
|
696
664
|
triggerMessageId: string;
|
|
697
665
|
streamId: string;
|
|
698
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
666
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
699
667
|
startedAt?: string | undefined;
|
|
700
668
|
completedAt?: string | undefined;
|
|
669
|
+
model?: {
|
|
670
|
+
provider: string;
|
|
671
|
+
modelId: string;
|
|
672
|
+
} | undefined;
|
|
701
673
|
modelId?: string | undefined;
|
|
674
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
675
|
+
budgetTokens: number;
|
|
676
|
+
} | undefined;
|
|
702
677
|
usage?: {
|
|
703
678
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
704
679
|
inputTokens?: number | undefined;
|
|
@@ -752,16 +727,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
752
727
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
753
728
|
projectId: string;
|
|
754
729
|
id: string;
|
|
755
|
-
agentId: string;
|
|
756
730
|
attempt: number;
|
|
757
731
|
threadId: string;
|
|
758
732
|
createdAt: string;
|
|
759
733
|
triggerMessageId: string;
|
|
760
734
|
streamId: string;
|
|
761
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
735
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
762
736
|
startedAt?: string | undefined;
|
|
763
737
|
completedAt?: string | undefined;
|
|
738
|
+
model?: {
|
|
739
|
+
provider: string;
|
|
740
|
+
modelId: string;
|
|
741
|
+
} | undefined;
|
|
764
742
|
modelId?: string | undefined;
|
|
743
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
744
|
+
budgetTokens: number;
|
|
745
|
+
} | undefined;
|
|
765
746
|
usage?: {
|
|
766
747
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
767
748
|
inputTokens?: number | undefined;
|
|
@@ -832,16 +813,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
832
813
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
833
814
|
projectId: string;
|
|
834
815
|
id: string;
|
|
835
|
-
agentId: string;
|
|
836
816
|
attempt: number;
|
|
837
817
|
threadId: string;
|
|
838
818
|
createdAt: string;
|
|
839
819
|
triggerMessageId: string;
|
|
840
820
|
streamId: string;
|
|
841
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
821
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
842
822
|
startedAt?: string | undefined;
|
|
843
823
|
completedAt?: string | undefined;
|
|
824
|
+
model?: {
|
|
825
|
+
provider: string;
|
|
826
|
+
modelId: string;
|
|
827
|
+
} | undefined;
|
|
844
828
|
modelId?: string | undefined;
|
|
829
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
830
|
+
budgetTokens: number;
|
|
831
|
+
} | undefined;
|
|
845
832
|
usage?: {
|
|
846
833
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
847
834
|
inputTokens?: number | undefined;
|
|
@@ -887,6 +874,11 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
887
874
|
409: {
|
|
888
875
|
error: string;
|
|
889
876
|
};
|
|
877
|
+
429: {
|
|
878
|
+
error: string;
|
|
879
|
+
code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
|
|
880
|
+
details?: import("../schemas/common").JsonValue | undefined;
|
|
881
|
+
};
|
|
890
882
|
501: {
|
|
891
883
|
error: string;
|
|
892
884
|
};
|
|
@@ -895,16 +887,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
895
887
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
896
888
|
projectId: string;
|
|
897
889
|
id: string;
|
|
898
|
-
agentId: string;
|
|
899
890
|
attempt: number;
|
|
900
891
|
threadId: string;
|
|
901
892
|
createdAt: string;
|
|
902
893
|
triggerMessageId: string;
|
|
903
894
|
streamId: string;
|
|
904
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
895
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
905
896
|
startedAt?: string | undefined;
|
|
906
897
|
completedAt?: string | undefined;
|
|
898
|
+
model?: {
|
|
899
|
+
provider: string;
|
|
900
|
+
modelId: string;
|
|
901
|
+
} | undefined;
|
|
907
902
|
modelId?: string | undefined;
|
|
903
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
904
|
+
budgetTokens: number;
|
|
905
|
+
} | undefined;
|
|
908
906
|
usage?: {
|
|
909
907
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
910
908
|
inputTokens?: number | undefined;
|
|
@@ -979,16 +977,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
979
977
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
980
978
|
projectId: string;
|
|
981
979
|
id: string;
|
|
982
|
-
agentId: string;
|
|
983
980
|
attempt: number;
|
|
984
981
|
threadId: string;
|
|
985
982
|
createdAt: string;
|
|
986
983
|
triggerMessageId: string;
|
|
987
984
|
streamId: string;
|
|
988
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
985
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
989
986
|
startedAt?: string | undefined;
|
|
990
987
|
completedAt?: string | undefined;
|
|
988
|
+
model?: {
|
|
989
|
+
provider: string;
|
|
990
|
+
modelId: string;
|
|
991
|
+
} | undefined;
|
|
991
992
|
modelId?: string | undefined;
|
|
993
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
994
|
+
budgetTokens: number;
|
|
995
|
+
} | undefined;
|
|
992
996
|
usage?: {
|
|
993
997
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
994
998
|
inputTokens?: number | undefined;
|
|
@@ -1065,16 +1069,22 @@ export declare function registerAgentRoutes(app: Elysia, host: SixbHostView): El
|
|
|
1065
1069
|
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
1066
1070
|
projectId: string;
|
|
1067
1071
|
id: string;
|
|
1068
|
-
agentId: string;
|
|
1069
1072
|
attempt: number;
|
|
1070
1073
|
threadId: string;
|
|
1071
1074
|
createdAt: string;
|
|
1072
1075
|
triggerMessageId: string;
|
|
1073
1076
|
streamId: string;
|
|
1074
|
-
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1077
|
+
error?: import("@sixb/core").SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
|
|
1075
1078
|
startedAt?: string | undefined;
|
|
1076
1079
|
completedAt?: string | undefined;
|
|
1080
|
+
model?: {
|
|
1081
|
+
provider: string;
|
|
1082
|
+
modelId: string;
|
|
1083
|
+
} | undefined;
|
|
1077
1084
|
modelId?: string | undefined;
|
|
1085
|
+
reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
|
|
1086
|
+
budgetTokens: number;
|
|
1087
|
+
} | undefined;
|
|
1078
1088
|
usage?: {
|
|
1079
1089
|
reportingStatus: "complete" | "partial" | "unavailable";
|
|
1080
1090
|
inputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/routes/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,YAAY,EAAgB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAalG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAYpC,OAAO,EASL,cAAc,EAYf,MAAM,mBAAmB,CAAA;AAkE1B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAsB5F;AAqJD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAxEe,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsmBvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"ai-accounting.d.ts","sourceRoot":"","sources":["../../src/routes/ai-accounting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAW9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAkMpC,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+VzE"}
|