@brainpilot/protocol 0.0.5 → 0.0.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/__tests__/http.test.d.ts +2 -0
- package/dist/__tests__/http.test.d.ts.map +1 -0
- package/dist/__tests__/http.test.js +22 -0
- package/dist/__tests__/http.test.js.map +1 -0
- package/dist/domain.d.ts +387 -0
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +152 -0
- package/dist/domain.js.map +1 -1
- package/dist/events.d.ts +15 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +15 -0
- package/dist/events.js.map +1 -1
- package/dist/http.d.ts +256 -13
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +55 -1
- package/dist/http.js.map +1 -1
- package/package.json +5 -2
package/dist/http.d.ts
CHANGED
|
@@ -78,13 +78,13 @@ export declare const CreateSessionRequestSchema: z.ZodObject<{
|
|
|
78
78
|
/** Optional model id within that provider. */
|
|
79
79
|
modelId: z.ZodOptional<z.ZodString>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
title?: string | undefined;
|
|
82
81
|
id?: string | undefined;
|
|
82
|
+
title?: string | undefined;
|
|
83
83
|
providerId?: string | undefined;
|
|
84
84
|
modelId?: string | undefined;
|
|
85
85
|
}, {
|
|
86
|
-
title?: string | undefined;
|
|
87
86
|
id?: string | undefined;
|
|
87
|
+
title?: string | undefined;
|
|
88
88
|
providerId?: string | undefined;
|
|
89
89
|
modelId?: string | undefined;
|
|
90
90
|
}>;
|
|
@@ -97,29 +97,29 @@ export declare const CreateSessionResponseSchema: z.ZodObject<{
|
|
|
97
97
|
createdAt: z.ZodString;
|
|
98
98
|
updatedAt: z.ZodString;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
title: string;
|
|
101
100
|
id: string;
|
|
101
|
+
title: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
}, {
|
|
105
|
-
title: string;
|
|
106
105
|
id: string;
|
|
106
|
+
title: string;
|
|
107
107
|
createdAt: string;
|
|
108
108
|
updatedAt: string;
|
|
109
109
|
}>>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
id: string;
|
|
112
112
|
session?: {
|
|
113
|
-
title: string;
|
|
114
113
|
id: string;
|
|
114
|
+
title: string;
|
|
115
115
|
createdAt: string;
|
|
116
116
|
updatedAt: string;
|
|
117
117
|
} | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
id: string;
|
|
120
120
|
session?: {
|
|
121
|
-
title: string;
|
|
122
121
|
id: string;
|
|
122
|
+
title: string;
|
|
123
123
|
createdAt: string;
|
|
124
124
|
updatedAt: string;
|
|
125
125
|
} | undefined;
|
|
@@ -132,27 +132,27 @@ export declare const ListSessionsResponseSchema: z.ZodObject<{
|
|
|
132
132
|
createdAt: z.ZodString;
|
|
133
133
|
updatedAt: z.ZodString;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
title: string;
|
|
136
135
|
id: string;
|
|
136
|
+
title: string;
|
|
137
137
|
createdAt: string;
|
|
138
138
|
updatedAt: string;
|
|
139
139
|
}, {
|
|
140
|
-
title: string;
|
|
141
140
|
id: string;
|
|
141
|
+
title: string;
|
|
142
142
|
createdAt: string;
|
|
143
143
|
updatedAt: string;
|
|
144
144
|
}>, "many">;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
sessions: {
|
|
147
|
-
title: string;
|
|
148
147
|
id: string;
|
|
148
|
+
title: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
151
|
}[];
|
|
152
152
|
}, {
|
|
153
153
|
sessions: {
|
|
154
|
-
title: string;
|
|
155
154
|
id: string;
|
|
155
|
+
title: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
158
|
}[];
|
|
@@ -164,13 +164,13 @@ export declare const GetSessionResponseSchema: z.ZodObject<{
|
|
|
164
164
|
createdAt: z.ZodString;
|
|
165
165
|
updatedAt: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
title: string;
|
|
168
167
|
id: string;
|
|
168
|
+
title: string;
|
|
169
169
|
createdAt: string;
|
|
170
170
|
updatedAt: string;
|
|
171
171
|
}, {
|
|
172
|
-
title: string;
|
|
173
172
|
id: string;
|
|
173
|
+
title: string;
|
|
174
174
|
createdAt: string;
|
|
175
175
|
updatedAt: string;
|
|
176
176
|
}>;
|
|
@@ -217,6 +217,76 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
217
217
|
alive?: boolean | undefined;
|
|
218
218
|
}>, "many">;
|
|
219
219
|
lastActivityTs: z.ZodString;
|
|
220
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
total: z.ZodObject<{
|
|
222
|
+
input: z.ZodNumber;
|
|
223
|
+
output: z.ZodNumber;
|
|
224
|
+
cacheRead: z.ZodNumber;
|
|
225
|
+
cacheWrite: z.ZodNumber;
|
|
226
|
+
total: z.ZodNumber;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
input: number;
|
|
229
|
+
output: number;
|
|
230
|
+
cacheRead: number;
|
|
231
|
+
cacheWrite: number;
|
|
232
|
+
total: number;
|
|
233
|
+
}, {
|
|
234
|
+
input: number;
|
|
235
|
+
output: number;
|
|
236
|
+
cacheRead: number;
|
|
237
|
+
cacheWrite: number;
|
|
238
|
+
total: number;
|
|
239
|
+
}>;
|
|
240
|
+
byAgent: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
241
|
+
input: z.ZodNumber;
|
|
242
|
+
output: z.ZodNumber;
|
|
243
|
+
cacheRead: z.ZodNumber;
|
|
244
|
+
cacheWrite: z.ZodNumber;
|
|
245
|
+
total: z.ZodNumber;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
input: number;
|
|
248
|
+
output: number;
|
|
249
|
+
cacheRead: number;
|
|
250
|
+
cacheWrite: number;
|
|
251
|
+
total: number;
|
|
252
|
+
}, {
|
|
253
|
+
input: number;
|
|
254
|
+
output: number;
|
|
255
|
+
cacheRead: number;
|
|
256
|
+
cacheWrite: number;
|
|
257
|
+
total: number;
|
|
258
|
+
}>>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
total: {
|
|
261
|
+
input: number;
|
|
262
|
+
output: number;
|
|
263
|
+
cacheRead: number;
|
|
264
|
+
cacheWrite: number;
|
|
265
|
+
total: number;
|
|
266
|
+
};
|
|
267
|
+
byAgent: Record<string, {
|
|
268
|
+
input: number;
|
|
269
|
+
output: number;
|
|
270
|
+
cacheRead: number;
|
|
271
|
+
cacheWrite: number;
|
|
272
|
+
total: number;
|
|
273
|
+
}>;
|
|
274
|
+
}, {
|
|
275
|
+
total: {
|
|
276
|
+
input: number;
|
|
277
|
+
output: number;
|
|
278
|
+
cacheRead: number;
|
|
279
|
+
cacheWrite: number;
|
|
280
|
+
total: number;
|
|
281
|
+
};
|
|
282
|
+
byAgent: Record<string, {
|
|
283
|
+
input: number;
|
|
284
|
+
output: number;
|
|
285
|
+
cacheRead: number;
|
|
286
|
+
cacheWrite: number;
|
|
287
|
+
total: number;
|
|
288
|
+
}>;
|
|
289
|
+
}>>;
|
|
220
290
|
}, "strip", z.ZodTypeAny, {
|
|
221
291
|
runState: {
|
|
222
292
|
active: boolean;
|
|
@@ -230,6 +300,22 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
230
300
|
alive?: boolean | undefined;
|
|
231
301
|
}[];
|
|
232
302
|
lastActivityTs: string;
|
|
303
|
+
tokenUsage?: {
|
|
304
|
+
total: {
|
|
305
|
+
input: number;
|
|
306
|
+
output: number;
|
|
307
|
+
cacheRead: number;
|
|
308
|
+
cacheWrite: number;
|
|
309
|
+
total: number;
|
|
310
|
+
};
|
|
311
|
+
byAgent: Record<string, {
|
|
312
|
+
input: number;
|
|
313
|
+
output: number;
|
|
314
|
+
cacheRead: number;
|
|
315
|
+
cacheWrite: number;
|
|
316
|
+
total: number;
|
|
317
|
+
}>;
|
|
318
|
+
} | undefined;
|
|
233
319
|
}, {
|
|
234
320
|
runState: {
|
|
235
321
|
active: boolean;
|
|
@@ -243,20 +329,136 @@ export declare const GetSessionStateResponseSchema: z.ZodObject<{
|
|
|
243
329
|
alive?: boolean | undefined;
|
|
244
330
|
}[];
|
|
245
331
|
lastActivityTs: string;
|
|
332
|
+
tokenUsage?: {
|
|
333
|
+
total: {
|
|
334
|
+
input: number;
|
|
335
|
+
output: number;
|
|
336
|
+
cacheRead: number;
|
|
337
|
+
cacheWrite: number;
|
|
338
|
+
total: number;
|
|
339
|
+
};
|
|
340
|
+
byAgent: Record<string, {
|
|
341
|
+
input: number;
|
|
342
|
+
output: number;
|
|
343
|
+
cacheRead: number;
|
|
344
|
+
cacheWrite: number;
|
|
345
|
+
total: number;
|
|
346
|
+
}>;
|
|
347
|
+
} | undefined;
|
|
246
348
|
}>;
|
|
247
349
|
export type GetSessionStateResponse = z.infer<typeof GetSessionStateResponseSchema>;
|
|
248
|
-
|
|
350
|
+
/** A normal user message injected into the session. */
|
|
351
|
+
export declare const SendMessageContentSchema: z.ZodObject<{
|
|
249
352
|
content: z.ZodString;
|
|
250
353
|
/** Target agent; defaults to principal. */
|
|
251
354
|
agent: z.ZodOptional<z.ZodString>;
|
|
355
|
+
/**
|
|
356
|
+
* Optional client-supplied metadata (issue #42). The web composer sends the
|
|
357
|
+
* `uuid` it used for the optimistic user bubble so the runtime can persist a
|
|
358
|
+
* matching `TEXT_MESSAGE_CHUNK` (role:"user") under the same id — on reload
|
|
359
|
+
* the replayed event dedupes against the optimistic one by id rather than
|
|
360
|
+
* duplicating it.
|
|
361
|
+
*/
|
|
362
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
364
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
timestamp?: string | undefined;
|
|
367
|
+
uuid?: string | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
timestamp?: string | undefined;
|
|
370
|
+
uuid?: string | undefined;
|
|
371
|
+
}>>;
|
|
252
372
|
}, "strip", z.ZodTypeAny, {
|
|
253
373
|
content: string;
|
|
254
374
|
agent?: string | undefined;
|
|
375
|
+
data?: {
|
|
376
|
+
timestamp?: string | undefined;
|
|
377
|
+
uuid?: string | undefined;
|
|
378
|
+
} | undefined;
|
|
255
379
|
}, {
|
|
256
380
|
content: string;
|
|
257
381
|
agent?: string | undefined;
|
|
382
|
+
data?: {
|
|
383
|
+
timestamp?: string | undefined;
|
|
384
|
+
uuid?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
}>;
|
|
387
|
+
/** A reply to an outstanding ask_user (user_input_request) — see events.ts. */
|
|
388
|
+
export declare const UserInputResponseBodySchema: z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"user_input_response">;
|
|
390
|
+
session_id: z.ZodString;
|
|
391
|
+
request_id: z.ZodString;
|
|
392
|
+
answer: z.ZodString;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
type: "user_input_response";
|
|
395
|
+
session_id: string;
|
|
396
|
+
request_id: string;
|
|
397
|
+
answer: string;
|
|
398
|
+
}, {
|
|
399
|
+
type: "user_input_response";
|
|
400
|
+
session_id: string;
|
|
401
|
+
request_id: string;
|
|
402
|
+
answer: string;
|
|
258
403
|
}>;
|
|
404
|
+
/**
|
|
405
|
+
* POST /sessions/:id/messages accepts EITHER a normal message OR an ask_user
|
|
406
|
+
* reply. The answer body is matched by its `type` literal; everything else is
|
|
407
|
+
* treated as a content message.
|
|
408
|
+
*/
|
|
409
|
+
export declare const SendMessageRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
410
|
+
type: z.ZodLiteral<"user_input_response">;
|
|
411
|
+
session_id: z.ZodString;
|
|
412
|
+
request_id: z.ZodString;
|
|
413
|
+
answer: z.ZodString;
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
415
|
+
type: "user_input_response";
|
|
416
|
+
session_id: string;
|
|
417
|
+
request_id: string;
|
|
418
|
+
answer: string;
|
|
419
|
+
}, {
|
|
420
|
+
type: "user_input_response";
|
|
421
|
+
session_id: string;
|
|
422
|
+
request_id: string;
|
|
423
|
+
answer: string;
|
|
424
|
+
}>, z.ZodObject<{
|
|
425
|
+
content: z.ZodString;
|
|
426
|
+
/** Target agent; defaults to principal. */
|
|
427
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
428
|
+
/**
|
|
429
|
+
* Optional client-supplied metadata (issue #42). The web composer sends the
|
|
430
|
+
* `uuid` it used for the optimistic user bubble so the runtime can persist a
|
|
431
|
+
* matching `TEXT_MESSAGE_CHUNK` (role:"user") under the same id — on reload
|
|
432
|
+
* the replayed event dedupes against the optimistic one by id rather than
|
|
433
|
+
* duplicating it.
|
|
434
|
+
*/
|
|
435
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
436
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
437
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
timestamp?: string | undefined;
|
|
440
|
+
uuid?: string | undefined;
|
|
441
|
+
}, {
|
|
442
|
+
timestamp?: string | undefined;
|
|
443
|
+
uuid?: string | undefined;
|
|
444
|
+
}>>;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
content: string;
|
|
447
|
+
agent?: string | undefined;
|
|
448
|
+
data?: {
|
|
449
|
+
timestamp?: string | undefined;
|
|
450
|
+
uuid?: string | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
content: string;
|
|
454
|
+
agent?: string | undefined;
|
|
455
|
+
data?: {
|
|
456
|
+
timestamp?: string | undefined;
|
|
457
|
+
uuid?: string | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
}>]>;
|
|
259
460
|
export type SendMessageRequest = z.infer<typeof SendMessageRequestSchema>;
|
|
461
|
+
export type UserInputResponseBody = z.infer<typeof UserInputResponseBodySchema>;
|
|
260
462
|
export declare const SendMessageResponseSchema: z.ZodObject<{
|
|
261
463
|
accepted: z.ZodBoolean;
|
|
262
464
|
/** Run id started/queued for this message, if synchronously known. */
|
|
@@ -1130,6 +1332,31 @@ export declare const InterruptResponseSchema: z.ZodObject<{
|
|
|
1130
1332
|
interrupted: boolean;
|
|
1131
1333
|
}>;
|
|
1132
1334
|
export type InterruptResponse = z.infer<typeof InterruptResponseSchema>;
|
|
1335
|
+
/** #47: upload body. Content is base64 (binary-safe over the JSON byte chain). */
|
|
1336
|
+
export declare const WriteFileRequestSchema: z.ZodObject<{
|
|
1337
|
+
/** Workspace-relative path (a leading `/workspace` prefix is tolerated). */
|
|
1338
|
+
path: z.ZodString;
|
|
1339
|
+
/** File contents, base64-encoded. */
|
|
1340
|
+
contentBase64: z.ZodString;
|
|
1341
|
+
}, "strip", z.ZodTypeAny, {
|
|
1342
|
+
path: string;
|
|
1343
|
+
contentBase64: string;
|
|
1344
|
+
}, {
|
|
1345
|
+
path: string;
|
|
1346
|
+
contentBase64: string;
|
|
1347
|
+
}>;
|
|
1348
|
+
export type WriteFileRequest = z.infer<typeof WriteFileRequestSchema>;
|
|
1349
|
+
export declare const WriteFileResponseSchema: z.ZodObject<{
|
|
1350
|
+
path: z.ZodString;
|
|
1351
|
+
size: z.ZodNumber;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
path: string;
|
|
1354
|
+
size: number;
|
|
1355
|
+
}, {
|
|
1356
|
+
path: string;
|
|
1357
|
+
size: number;
|
|
1358
|
+
}>;
|
|
1359
|
+
export type WriteFileResponse = z.infer<typeof WriteFileResponseSchema>;
|
|
1133
1360
|
export declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
1134
1361
|
agents: z.ZodArray<z.ZodObject<{
|
|
1135
1362
|
name: z.ZodString;
|
|
@@ -1233,6 +1460,17 @@ export declare const RUNTIME_ROUTES: {
|
|
|
1233
1460
|
readonly method: "GET";
|
|
1234
1461
|
readonly path: "/sessions/:id/events";
|
|
1235
1462
|
};
|
|
1463
|
+
/**
|
|
1464
|
+
* Persisted AG-UI event history from `events.jsonl`. The SPA calls this on
|
|
1465
|
+
* session activation to rehydrate chat after a runtime restart (the SSE
|
|
1466
|
+
* stream only replays the in-memory ring buffer). Query: `?limit=N`
|
|
1467
|
+
* (default 1000, capped at 5000); returns the most recent N events when
|
|
1468
|
+
* the file is longer.
|
|
1469
|
+
*/
|
|
1470
|
+
readonly getSessionHistory: {
|
|
1471
|
+
readonly method: "GET";
|
|
1472
|
+
readonly path: "/sessions/:id/history";
|
|
1473
|
+
};
|
|
1236
1474
|
readonly interrupt: {
|
|
1237
1475
|
readonly method: "POST";
|
|
1238
1476
|
readonly path: "/sessions/:id/interrupt";
|
|
@@ -1262,6 +1500,11 @@ export declare const RUNTIME_ROUTES: {
|
|
|
1262
1500
|
readonly method: "DELETE";
|
|
1263
1501
|
readonly path: "/sessions/:id/files";
|
|
1264
1502
|
};
|
|
1503
|
+
/** #47: upload a file into the workspace. Body: { path, contentBase64 }. */
|
|
1504
|
+
readonly writeFile: {
|
|
1505
|
+
readonly method: "POST";
|
|
1506
|
+
readonly path: "/sessions/:id/files";
|
|
1507
|
+
};
|
|
1265
1508
|
};
|
|
1266
1509
|
export type RuntimeRouteName = keyof typeof RUNTIME_ROUTES;
|
|
1267
1510
|
//# sourceMappingURL=http.d.ts.map
|
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,G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,41 @@ export const GetSessionStateResponseSchema = SessionStateSnapshotSchema;
|
|
|
85
85
|
/* ------------------------------------------------------------------ *
|
|
86
86
|
* POST /sessions/:id/messages (inject user message)
|
|
87
87
|
* ------------------------------------------------------------------ */
|
|
88
|
-
|
|
88
|
+
/** A normal user message injected into the session. */
|
|
89
|
+
export const SendMessageContentSchema = z.object({
|
|
89
90
|
content: z.string(),
|
|
90
91
|
/** Target agent; defaults to principal. */
|
|
91
92
|
agent: z.string().optional(),
|
|
93
|
+
/**
|
|
94
|
+
* Optional client-supplied metadata (issue #42). The web composer sends the
|
|
95
|
+
* `uuid` it used for the optimistic user bubble so the runtime can persist a
|
|
96
|
+
* matching `TEXT_MESSAGE_CHUNK` (role:"user") under the same id — on reload
|
|
97
|
+
* the replayed event dedupes against the optimistic one by id rather than
|
|
98
|
+
* duplicating it.
|
|
99
|
+
*/
|
|
100
|
+
data: z
|
|
101
|
+
.object({
|
|
102
|
+
uuid: z.string().optional(),
|
|
103
|
+
timestamp: z.string().optional(),
|
|
104
|
+
})
|
|
105
|
+
.optional(),
|
|
106
|
+
});
|
|
107
|
+
/** A reply to an outstanding ask_user (user_input_request) — see events.ts. */
|
|
108
|
+
export const UserInputResponseBodySchema = z.object({
|
|
109
|
+
type: z.literal("user_input_response"),
|
|
110
|
+
session_id: z.string(),
|
|
111
|
+
request_id: z.string(),
|
|
112
|
+
answer: z.string(),
|
|
92
113
|
});
|
|
114
|
+
/**
|
|
115
|
+
* POST /sessions/:id/messages accepts EITHER a normal message OR an ask_user
|
|
116
|
+
* reply. The answer body is matched by its `type` literal; everything else is
|
|
117
|
+
* treated as a content message.
|
|
118
|
+
*/
|
|
119
|
+
export const SendMessageRequestSchema = z.union([
|
|
120
|
+
UserInputResponseBodySchema,
|
|
121
|
+
SendMessageContentSchema,
|
|
122
|
+
]);
|
|
93
123
|
export const SendMessageResponseSchema = z.object({
|
|
94
124
|
accepted: z.boolean(),
|
|
95
125
|
/** Run id started/queued for this message, if synchronously known. */
|
|
@@ -111,6 +141,20 @@ export const InterruptRequestSchema = z.object({
|
|
|
111
141
|
export const InterruptResponseSchema = z.object({
|
|
112
142
|
interrupted: z.boolean(),
|
|
113
143
|
});
|
|
144
|
+
/* ------------------------------------------------------------------ *
|
|
145
|
+
* POST /sessions/:id/files (#47 — upload a file into the workspace)
|
|
146
|
+
* ------------------------------------------------------------------ */
|
|
147
|
+
/** #47: upload body. Content is base64 (binary-safe over the JSON byte chain). */
|
|
148
|
+
export const WriteFileRequestSchema = z.object({
|
|
149
|
+
/** Workspace-relative path (a leading `/workspace` prefix is tolerated). */
|
|
150
|
+
path: z.string().trim().min(1),
|
|
151
|
+
/** File contents, base64-encoded. */
|
|
152
|
+
contentBase64: z.string(),
|
|
153
|
+
});
|
|
154
|
+
export const WriteFileResponseSchema = z.object({
|
|
155
|
+
path: z.string(),
|
|
156
|
+
size: z.number(),
|
|
157
|
+
});
|
|
114
158
|
/* ------------------------------------------------------------------ *
|
|
115
159
|
* GET /sessions/:id/agents (§10 polling fallback)
|
|
116
160
|
* ------------------------------------------------------------------ */
|
|
@@ -145,6 +189,14 @@ export const RUNTIME_ROUTES = {
|
|
|
145
189
|
sessionEvents: { method: "GET", path: "/sse/:id" },
|
|
146
190
|
/** Alias path some callers use; same AgUiEvent payload as `sessionEvents`. */
|
|
147
191
|
sessionEventsAlias: { method: "GET", path: "/sessions/:id/events" },
|
|
192
|
+
/**
|
|
193
|
+
* Persisted AG-UI event history from `events.jsonl`. The SPA calls this on
|
|
194
|
+
* session activation to rehydrate chat after a runtime restart (the SSE
|
|
195
|
+
* stream only replays the in-memory ring buffer). Query: `?limit=N`
|
|
196
|
+
* (default 1000, capped at 5000); returns the most recent N events when
|
|
197
|
+
* the file is longer.
|
|
198
|
+
*/
|
|
199
|
+
getSessionHistory: { method: "GET", path: "/sessions/:id/history" },
|
|
148
200
|
interrupt: { method: "POST", path: "/sessions/:id/interrupt" },
|
|
149
201
|
listAgents: { method: "GET", path: "/sessions/:id/agents" },
|
|
150
202
|
evictSession: { method: "POST", path: "/sessions/:id/evict" },
|
|
@@ -153,5 +205,7 @@ export const RUNTIME_ROUTES = {
|
|
|
153
205
|
readFile: { method: "GET", path: "/sessions/:id/files/content" },
|
|
154
206
|
readRawFile: { method: "GET", path: "/sessions/:id/files/raw" },
|
|
155
207
|
deleteFile: { method: "DELETE", path: "/sessions/:id/files" },
|
|
208
|
+
/** #47: upload a file into the workspace. Body: { path, contentBase64 }. */
|
|
209
|
+
writeFile: { method: "POST", path: "/sessions/:id/files" },
|
|
156
210
|
};
|
|
157
211
|
//# sourceMappingURL=http.js.map
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU3F;;wEAEwE;AAExE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3D,CAAC,CAAC;AAGH;;wEAEwE;AAExE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,0EAA0E;IAC1E,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,kCAAkC;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,E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,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainpilot/protocol",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=22"
|
|
6
|
+
},
|
|
7
|
+
"license": "AGPL-3.0-only",
|
|
5
8
|
"type": "module",
|
|
6
9
|
"description": "BrainPilot AG-UI events + REST/SSE schemas + Runtime HTTP contract (SSOT, zod-validated)",
|
|
7
10
|
"main": "./dist/index.js",
|