@sixb/server 0.1.8 → 0.1.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/index.js +36 -32
- package/dist/index.js.map +8 -8
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/logs.d.ts +2 -2
- package/dist/routes/workflows.d.ts +6 -6
- package/dist/routes/ws/agents.d.ts.map +1 -1
- package/dist/routes/ws/logs.d.ts +10 -10
- package/dist/schemas/ai-accounting.d.ts +332 -24
- package/dist/schemas/ai-accounting.d.ts.map +1 -1
- package/dist/schemas/common.d.ts +6 -0
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/logs.d.ts +18 -18
- package/dist/schemas/workflows.d.ts +16 -16
- package/package.json +7 -7
- package/src/routes/agents.ts +1 -1
- package/src/routes/files.ts +2 -6
- package/src/routes/ws/agents.ts +5 -3
- package/src/routes/ws/events.ts +1 -1
- package/src/schemas/ai-accounting.ts +3 -0
- package/src/schemas/common.ts +2 -0
package/dist/schemas/common.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export declare function sixbFailureSchema<const TCodes extends readonly [SixbErr
|
|
|
41
41
|
retryable: z.ZodBoolean;
|
|
42
42
|
at: z.ZodString;
|
|
43
43
|
details: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
|
|
44
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
44
46
|
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
45
47
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
46
48
|
code: z.ZodEnum<z.Writeable<TCodes>>;
|
|
@@ -48,6 +50,8 @@ export declare function sixbFailureSchema<const TCodes extends readonly [SixbErr
|
|
|
48
50
|
retryable: z.ZodBoolean;
|
|
49
51
|
at: z.ZodString;
|
|
50
52
|
details: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
|
|
53
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
51
55
|
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
52
56
|
}>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<{
|
|
53
57
|
code: z.ZodEnum<z.Writeable<TCodes>>;
|
|
@@ -55,6 +59,8 @@ export declare function sixbFailureSchema<const TCodes extends readonly [SixbErr
|
|
|
55
59
|
retryable: z.ZodBoolean;
|
|
56
60
|
at: z.ZodString;
|
|
57
61
|
details: z.ZodOptional<z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>;
|
|
62
|
+
httpStatus: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
redacted: z.ZodOptional<z.ZodLiteral<true>>;
|
|
58
64
|
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
59
65
|
}> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>;
|
|
60
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAwC,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAEhG,eAAO,MAAM,mBAAmB;;;;;;EAAkC,CAAA;AAElE,wBAAgB,wBAAwB,CACtC,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,EACjE,KAAK,EAAE,MAAM;;;;;;;;;;;;kEAId;AAED,eAAO,MAAM,qBAAqB;;;;;;EAAqC,CAAA;AAEvE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAEhC,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAShD,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,cAAc,8EAAmE,CAAA;AAE9F,sFAAsF;AACtF,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,EACjE,KAAK,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAwC,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAEhG,eAAO,MAAM,mBAAmB;;;;;;EAAkC,CAAA;AAElE,wBAAgB,wBAAwB,CACtC,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,EACjE,KAAK,EAAE,MAAM;;;;;;;;;;;;kEAId;AAED,eAAO,MAAM,qBAAqB;;;;;;EAAqC,CAAA;AAEvE,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,EAAE,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAEhC,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAShD,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,cAAc,8EAAmE,CAAA;AAE9F,sFAAsF;AACtF,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,MAAM,SAAS,SAAS,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,EACjE,KAAK,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAWd;AAiBD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAStC,CAAA"}
|
package/dist/schemas/logs.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
15
15
|
beforeCursor: z.ZodOptional<z.ZodString>;
|
|
16
16
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
kind?: "workflow" | "agent" | "
|
|
18
|
+
kind?: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
|
|
19
19
|
runId?: string | undefined;
|
|
20
20
|
limit?: number | undefined;
|
|
21
21
|
afterCursor?: string | undefined;
|
|
@@ -23,7 +23,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
23
23
|
direction?: "forward" | "backward" | undefined;
|
|
24
24
|
beforeCursor?: string | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
kind?: "workflow" | "agent" | "
|
|
26
|
+
kind?: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
|
|
27
27
|
runId?: string | undefined;
|
|
28
28
|
limit?: number | undefined;
|
|
29
29
|
afterCursor?: string | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
31
31
|
direction?: "forward" | "backward" | undefined;
|
|
32
32
|
beforeCursor?: string | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
kind?: "workflow" | "agent" | "
|
|
34
|
+
kind?: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
|
|
35
35
|
runId?: string | undefined;
|
|
36
36
|
limit?: number | undefined;
|
|
37
37
|
afterCursor?: string | undefined;
|
|
@@ -39,7 +39,7 @@ export declare const LogsQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
39
39
|
direction?: "forward" | "backward" | undefined;
|
|
40
40
|
beforeCursor?: string | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
kind?: "workflow" | "agent" | "
|
|
42
|
+
kind?: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection" | undefined;
|
|
43
43
|
runId?: string | undefined;
|
|
44
44
|
limit?: number | undefined;
|
|
45
45
|
afterCursor?: string | undefined;
|
|
@@ -58,10 +58,10 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
id: string;
|
|
61
|
-
kind: "workflow" | "agent" | "
|
|
61
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
|
-
kind: "workflow" | "agent" | "
|
|
64
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
65
65
|
}>;
|
|
66
66
|
stepId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
phase: z.ZodOptional<z.ZodString>;
|
|
@@ -69,7 +69,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
run: {
|
|
71
71
|
id: string;
|
|
72
|
-
kind: "workflow" | "agent" | "
|
|
72
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
73
73
|
};
|
|
74
74
|
phase?: string | undefined;
|
|
75
75
|
attempt?: number | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
77
77
|
}, {
|
|
78
78
|
run: {
|
|
79
79
|
id: string;
|
|
80
|
-
kind: "workflow" | "agent" | "
|
|
80
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
81
81
|
};
|
|
82
82
|
phase?: string | undefined;
|
|
83
83
|
attempt?: number | undefined;
|
|
@@ -89,7 +89,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
89
89
|
context: {
|
|
90
90
|
run: {
|
|
91
91
|
id: string;
|
|
92
|
-
kind: "workflow" | "agent" | "
|
|
92
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
93
93
|
};
|
|
94
94
|
phase?: string | undefined;
|
|
95
95
|
attempt?: number | undefined;
|
|
@@ -104,7 +104,7 @@ export declare const LogLineSchema: z.ZodObject<{
|
|
|
104
104
|
context: {
|
|
105
105
|
run: {
|
|
106
106
|
id: string;
|
|
107
|
-
kind: "workflow" | "agent" | "
|
|
107
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
108
108
|
};
|
|
109
109
|
phase?: string | undefined;
|
|
110
110
|
attempt?: number | undefined;
|
|
@@ -128,10 +128,10 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
id: string;
|
|
131
|
-
kind: "workflow" | "agent" | "
|
|
131
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
132
132
|
}, {
|
|
133
133
|
id: string;
|
|
134
|
-
kind: "workflow" | "agent" | "
|
|
134
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
135
135
|
}>;
|
|
136
136
|
stepId: z.ZodOptional<z.ZodString>;
|
|
137
137
|
phase: z.ZodOptional<z.ZodString>;
|
|
@@ -139,7 +139,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
run: {
|
|
141
141
|
id: string;
|
|
142
|
-
kind: "workflow" | "agent" | "
|
|
142
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
143
143
|
};
|
|
144
144
|
phase?: string | undefined;
|
|
145
145
|
attempt?: number | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
147
147
|
}, {
|
|
148
148
|
run: {
|
|
149
149
|
id: string;
|
|
150
|
-
kind: "workflow" | "agent" | "
|
|
150
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
151
151
|
};
|
|
152
152
|
phase?: string | undefined;
|
|
153
153
|
attempt?: number | undefined;
|
|
@@ -159,7 +159,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
159
159
|
context: {
|
|
160
160
|
run: {
|
|
161
161
|
id: string;
|
|
162
|
-
kind: "workflow" | "agent" | "
|
|
162
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
163
163
|
};
|
|
164
164
|
phase?: string | undefined;
|
|
165
165
|
attempt?: number | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
174
174
|
context: {
|
|
175
175
|
run: {
|
|
176
176
|
id: string;
|
|
177
|
-
kind: "workflow" | "agent" | "
|
|
177
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
178
178
|
};
|
|
179
179
|
phase?: string | undefined;
|
|
180
180
|
attempt?: number | undefined;
|
|
@@ -195,7 +195,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
195
195
|
context: {
|
|
196
196
|
run: {
|
|
197
197
|
id: string;
|
|
198
|
-
kind: "workflow" | "agent" | "
|
|
198
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
199
199
|
};
|
|
200
200
|
phase?: string | undefined;
|
|
201
201
|
attempt?: number | undefined;
|
|
@@ -215,7 +215,7 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
215
215
|
context: {
|
|
216
216
|
run: {
|
|
217
217
|
id: string;
|
|
218
|
-
kind: "workflow" | "agent" | "
|
|
218
|
+
kind: "workflow" | "agent" | "action" | "webhook" | "sync" | "pipeline" | "projection";
|
|
219
219
|
};
|
|
220
220
|
phase?: string | undefined;
|
|
221
221
|
attempt?: number | undefined;
|
|
@@ -68,8 +68,8 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
|
|
|
68
68
|
offset?: string | undefined;
|
|
69
69
|
order?: "asc" | "desc" | undefined;
|
|
70
70
|
workflowId?: string | undefined;
|
|
71
|
-
nodeRunId?: string | undefined;
|
|
72
71
|
workflowRunId?: string | undefined;
|
|
72
|
+
nodeRunId?: string | undefined;
|
|
73
73
|
interventionId?: string | undefined;
|
|
74
74
|
nodeId?: string | undefined;
|
|
75
75
|
nodeKey?: string | undefined;
|
|
@@ -81,8 +81,8 @@ export declare const WorkflowInterventionsQuerySchema: z.ZodObject<{
|
|
|
81
81
|
offset?: string | undefined;
|
|
82
82
|
order?: "asc" | "desc" | undefined;
|
|
83
83
|
workflowId?: string | undefined;
|
|
84
|
-
nodeRunId?: string | undefined;
|
|
85
84
|
workflowRunId?: string | undefined;
|
|
85
|
+
nodeRunId?: string | undefined;
|
|
86
86
|
interventionId?: string | undefined;
|
|
87
87
|
nodeId?: string | undefined;
|
|
88
88
|
nodeKey?: string | undefined;
|
|
@@ -1108,8 +1108,8 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
|
|
|
1108
1108
|
id: string;
|
|
1109
1109
|
input: Record<string, import("./common").JsonValue>;
|
|
1110
1110
|
workflowId: string;
|
|
1111
|
-
nodeRunId: string;
|
|
1112
1111
|
workflowRunId: string;
|
|
1112
|
+
nodeRunId: string;
|
|
1113
1113
|
interventionId: string;
|
|
1114
1114
|
nodeId: string;
|
|
1115
1115
|
nodeKey: string;
|
|
@@ -1135,8 +1135,8 @@ export declare const WorkflowInterventionSchema: z.ZodObject<{
|
|
|
1135
1135
|
id: string;
|
|
1136
1136
|
input: Record<string, import("./common").JsonValue>;
|
|
1137
1137
|
workflowId: string;
|
|
1138
|
-
nodeRunId: string;
|
|
1139
1138
|
workflowRunId: string;
|
|
1139
|
+
nodeRunId: string;
|
|
1140
1140
|
interventionId: string;
|
|
1141
1141
|
nodeId: string;
|
|
1142
1142
|
nodeKey: string;
|
|
@@ -2323,8 +2323,8 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
2323
2323
|
id: string;
|
|
2324
2324
|
input: Record<string, import("./common").JsonValue>;
|
|
2325
2325
|
workflowId: string;
|
|
2326
|
-
nodeRunId: string;
|
|
2327
2326
|
workflowRunId: string;
|
|
2327
|
+
nodeRunId: string;
|
|
2328
2328
|
interventionId: string;
|
|
2329
2329
|
nodeId: string;
|
|
2330
2330
|
nodeKey: string;
|
|
@@ -2350,8 +2350,8 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
2350
2350
|
id: string;
|
|
2351
2351
|
input: Record<string, import("./common").JsonValue>;
|
|
2352
2352
|
workflowId: string;
|
|
2353
|
-
nodeRunId: string;
|
|
2354
2353
|
workflowRunId: string;
|
|
2354
|
+
nodeRunId: string;
|
|
2355
2355
|
interventionId: string;
|
|
2356
2356
|
nodeId: string;
|
|
2357
2357
|
nodeKey: string;
|
|
@@ -2383,8 +2383,8 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
2383
2383
|
id: string;
|
|
2384
2384
|
input: Record<string, import("./common").JsonValue>;
|
|
2385
2385
|
workflowId: string;
|
|
2386
|
-
nodeRunId: string;
|
|
2387
2386
|
workflowRunId: string;
|
|
2387
|
+
nodeRunId: string;
|
|
2388
2388
|
interventionId: string;
|
|
2389
2389
|
nodeId: string;
|
|
2390
2390
|
nodeKey: string;
|
|
@@ -2414,8 +2414,8 @@ export declare const WorkflowInterventionListResponseSchema: z.ZodObject<{
|
|
|
2414
2414
|
id: string;
|
|
2415
2415
|
input: Record<string, import("./common").JsonValue>;
|
|
2416
2416
|
workflowId: string;
|
|
2417
|
-
nodeRunId: string;
|
|
2418
2417
|
workflowRunId: string;
|
|
2418
|
+
nodeRunId: string;
|
|
2419
2419
|
interventionId: string;
|
|
2420
2420
|
nodeId: string;
|
|
2421
2421
|
nodeKey: string;
|
|
@@ -2483,8 +2483,8 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2483
2483
|
id: string;
|
|
2484
2484
|
input: Record<string, import("./common").JsonValue>;
|
|
2485
2485
|
workflowId: string;
|
|
2486
|
-
nodeRunId: string;
|
|
2487
2486
|
workflowRunId: string;
|
|
2487
|
+
nodeRunId: string;
|
|
2488
2488
|
interventionId: string;
|
|
2489
2489
|
nodeId: string;
|
|
2490
2490
|
nodeKey: string;
|
|
@@ -2510,8 +2510,8 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2510
2510
|
id: string;
|
|
2511
2511
|
input: Record<string, import("./common").JsonValue>;
|
|
2512
2512
|
workflowId: string;
|
|
2513
|
-
nodeRunId: string;
|
|
2514
2513
|
workflowRunId: string;
|
|
2514
|
+
nodeRunId: string;
|
|
2515
2515
|
interventionId: string;
|
|
2516
2516
|
nodeId: string;
|
|
2517
2517
|
nodeKey: string;
|
|
@@ -2541,8 +2541,8 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2541
2541
|
id: string;
|
|
2542
2542
|
input: Record<string, import("./common").JsonValue>;
|
|
2543
2543
|
workflowId: string;
|
|
2544
|
-
nodeRunId: string;
|
|
2545
2544
|
workflowRunId: string;
|
|
2545
|
+
nodeRunId: string;
|
|
2546
2546
|
interventionId: string;
|
|
2547
2547
|
nodeId: string;
|
|
2548
2548
|
nodeKey: string;
|
|
@@ -2571,8 +2571,8 @@ export declare const SubmitWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2571
2571
|
id: string;
|
|
2572
2572
|
input: Record<string, import("./common").JsonValue>;
|
|
2573
2573
|
workflowId: string;
|
|
2574
|
-
nodeRunId: string;
|
|
2575
2574
|
workflowRunId: string;
|
|
2575
|
+
nodeRunId: string;
|
|
2576
2576
|
interventionId: string;
|
|
2577
2577
|
nodeId: string;
|
|
2578
2578
|
nodeKey: string;
|
|
@@ -2640,8 +2640,8 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2640
2640
|
id: string;
|
|
2641
2641
|
input: Record<string, import("./common").JsonValue>;
|
|
2642
2642
|
workflowId: string;
|
|
2643
|
-
nodeRunId: string;
|
|
2644
2643
|
workflowRunId: string;
|
|
2644
|
+
nodeRunId: string;
|
|
2645
2645
|
interventionId: string;
|
|
2646
2646
|
nodeId: string;
|
|
2647
2647
|
nodeKey: string;
|
|
@@ -2667,8 +2667,8 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2667
2667
|
id: string;
|
|
2668
2668
|
input: Record<string, import("./common").JsonValue>;
|
|
2669
2669
|
workflowId: string;
|
|
2670
|
-
nodeRunId: string;
|
|
2671
2670
|
workflowRunId: string;
|
|
2671
|
+
nodeRunId: string;
|
|
2672
2672
|
interventionId: string;
|
|
2673
2673
|
nodeId: string;
|
|
2674
2674
|
nodeKey: string;
|
|
@@ -2696,8 +2696,8 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2696
2696
|
id: string;
|
|
2697
2697
|
input: Record<string, import("./common").JsonValue>;
|
|
2698
2698
|
workflowId: string;
|
|
2699
|
-
nodeRunId: string;
|
|
2700
2699
|
workflowRunId: string;
|
|
2700
|
+
nodeRunId: string;
|
|
2701
2701
|
interventionId: string;
|
|
2702
2702
|
nodeId: string;
|
|
2703
2703
|
nodeKey: string;
|
|
@@ -2725,8 +2725,8 @@ export declare const CancelWorkflowInterventionResponseSchema: z.ZodObject<{
|
|
|
2725
2725
|
id: string;
|
|
2726
2726
|
input: Record<string, import("./common").JsonValue>;
|
|
2727
2727
|
workflowId: string;
|
|
2728
|
-
nodeRunId: string;
|
|
2729
2728
|
workflowRunId: string;
|
|
2729
|
+
nodeRunId: string;
|
|
2730
2730
|
interventionId: string;
|
|
2731
2731
|
nodeId: string;
|
|
2732
2732
|
nodeKey: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixb/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "HTTP and WebSocket API server for Sixb",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixb",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"zod-to-json-schema": "^3.24.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@sixb/core": "0.1.
|
|
40
|
+
"@sixb/core": "0.1.9"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@sixb/auth-magic-link": "0.1.
|
|
44
|
-
"@sixb/auth-oidc": "0.1.
|
|
45
|
-
"@sixb/core": "0.1.
|
|
46
|
-
"@sixb/sqlite": "0.1.
|
|
43
|
+
"@sixb/auth-magic-link": "0.1.4",
|
|
44
|
+
"@sixb/auth-oidc": "0.1.3",
|
|
45
|
+
"@sixb/core": "0.1.9",
|
|
46
|
+
"@sixb/sqlite": "0.1.9",
|
|
47
47
|
"@types/bun": "latest",
|
|
48
48
|
"typescript": "^5.7.0"
|
|
49
49
|
},
|
|
50
50
|
"license": "MIT",
|
|
51
51
|
"engines": {
|
|
52
|
-
"bun": ">=1.
|
|
52
|
+
"bun": ">=1.4.2"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
package/src/routes/agents.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentRequestError, type AgentRunView, type FileRef, type SixbHostView } from "@sixb/core"
|
|
2
|
-
import { agentRunStreamId } from "@sixb/core/agents/streams"
|
|
3
2
|
import { publishAgentRunCancel, publishAgentRunFinished } from "@sixb/core/internal/agents"
|
|
3
|
+
import { agentRunStreamId } from "@sixb/core/internal/agents/streams"
|
|
4
4
|
import {
|
|
5
5
|
type AgentContextCheckpointRecord,
|
|
6
6
|
type AgentMessageRecord,
|
package/src/routes/files.ts
CHANGED
|
@@ -7,12 +7,8 @@ import {
|
|
|
7
7
|
SYSTEM_PRINCIPAL,
|
|
8
8
|
} from "@sixb/core"
|
|
9
9
|
import { computeBlobDigest, supportsDirectUpload } from "@sixb/core/blob-storage/server"
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
createUploadExpiresAt,
|
|
13
|
-
type FileUploadSession,
|
|
14
|
-
FileUploadSessionError,
|
|
15
|
-
} from "@sixb/core/storage"
|
|
10
|
+
import { createFileUploadId, createUploadExpiresAt } from "@sixb/core/internal/storage"
|
|
11
|
+
import { type FileUploadSession, FileUploadSessionError } from "@sixb/core/storage"
|
|
16
12
|
import type { Elysia } from "elysia"
|
|
17
13
|
import { bearerSecurityRequirement } from "../auth/access-token-boundary"
|
|
18
14
|
import { requireRequestSixb } from "../auth/scope"
|
package/src/routes/ws/agents.ts
CHANGED
|
@@ -2,12 +2,14 @@ import type { OntologySource } from "@sixb/core"
|
|
|
2
2
|
import {
|
|
3
3
|
AGENT_ACTIVITY_STREAM_ID,
|
|
4
4
|
type AgentRunActivityEvent,
|
|
5
|
-
agentActivityStreamDefinition,
|
|
6
|
-
agentRunStreamDefinition,
|
|
7
|
-
agentRunStreamId,
|
|
8
5
|
isAgentRunActivityEvent,
|
|
9
6
|
} from "@sixb/core/agents/streams"
|
|
10
7
|
import { BrokerCursorExpiredError, type BrokerRecord } from "@sixb/core/broker"
|
|
8
|
+
import {
|
|
9
|
+
agentActivityStreamDefinition,
|
|
10
|
+
agentRunStreamDefinition,
|
|
11
|
+
agentRunStreamId,
|
|
12
|
+
} from "@sixb/core/internal/agents/streams"
|
|
11
13
|
import type { Sixb } from "@sixb/core/internal/request-execution"
|
|
12
14
|
import type { Elysia } from "elysia"
|
|
13
15
|
import { z } from "zod"
|
package/src/routes/ws/events.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DomainEvent } from "@sixb/core"
|
|
2
|
-
import { scopeKeysForEvent } from "@sixb/core/
|
|
2
|
+
import { scopeKeysForEvent } from "@sixb/core/internal/event-scope"
|
|
3
3
|
import type { Elysia } from "elysia"
|
|
4
4
|
import { z } from "zod"
|
|
5
5
|
import { EVENT_TOPICS, EVENT_TYPES } from "../../schemas/events"
|
|
@@ -193,6 +193,9 @@ export const AiModelCallAccountingItemSchema = z.object({
|
|
|
193
193
|
usage: AiModelCallUsageRecordSchema,
|
|
194
194
|
attribution: z
|
|
195
195
|
.discriminatedUnion("kind", [
|
|
196
|
+
z.object({ kind: z.literal("request"), requestId: z.string() }),
|
|
197
|
+
z.object({ kind: z.literal("action"), actionId: z.string(), actionRunId: z.string() }),
|
|
198
|
+
z.object({ kind: z.literal("workflow"), workflowId: z.string(), workflowRunId: z.string() }),
|
|
196
199
|
z.object({
|
|
197
200
|
kind: z.literal("agent"),
|
|
198
201
|
agentRunId: z.string(),
|
package/src/schemas/common.ts
CHANGED
|
@@ -47,6 +47,8 @@ export function sixbFailureSchema<
|
|
|
47
47
|
retryable: z.boolean(),
|
|
48
48
|
at: z.string().datetime(),
|
|
49
49
|
details: JsonValueSchema.optional(),
|
|
50
|
+
httpStatus: z.number().int().min(100).max(599).optional(),
|
|
51
|
+
redacted: z.literal(true).optional(),
|
|
50
52
|
truncated: z.literal(true).optional(),
|
|
51
53
|
})
|
|
52
54
|
}
|