rivetkit 2.3.3-rc.1 → 2.3.3-rc.2
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/browser/client.d.ts +1 -0
- package/dist/browser/client.js +9 -6
- package/dist/browser/client.js.map +1 -1
- package/dist/browser/inspector/client.d.ts +22 -2
- package/dist/browser/inspector/client.js +996 -222
- package/dist/browser/inspector/client.js.map +1 -1
- package/dist/tsup/agent-os/index.cjs +9 -6
- package/dist/tsup/agent-os/index.cjs.map +1 -1
- package/dist/tsup/agent-os/index.d.cts +1 -0
- package/dist/tsup/agent-os/index.d.ts +1 -0
- package/dist/tsup/agent-os/index.js +9 -6
- package/dist/tsup/agent-os/index.js.map +1 -1
- package/dist/tsup/{chunk-KVSK67EL.cjs → chunk-6JRGYOBR.cjs} +18 -10
- package/dist/tsup/chunk-6JRGYOBR.cjs.map +1 -0
- package/dist/tsup/{chunk-TXO4XNNB.js → chunk-CLQHFXG3.js} +2 -2
- package/dist/tsup/{chunk-VEJGWALU.cjs → chunk-GRXM3FQX.cjs} +3 -3
- package/dist/tsup/{chunk-VEJGWALU.cjs.map → chunk-GRXM3FQX.cjs.map} +1 -1
- package/dist/tsup/{chunk-T5YE5THK.cjs → chunk-LIZO2BE3.cjs} +24 -4
- package/dist/tsup/chunk-LIZO2BE3.cjs.map +1 -0
- package/dist/tsup/{chunk-EIB2XNTL.js → chunk-OUIOGTEL.js} +12 -4
- package/dist/tsup/chunk-OUIOGTEL.js.map +1 -0
- package/dist/tsup/{chunk-CN4IAGVP.cjs → chunk-Q3DY23PN.cjs} +141 -141
- package/dist/tsup/{chunk-CN4IAGVP.cjs.map → chunk-Q3DY23PN.cjs.map} +1 -1
- package/dist/tsup/{chunk-J7NGTEDW.js → chunk-Q6EIXJ2L.js} +3 -3
- package/dist/tsup/{chunk-GMD47RV5.cjs → chunk-QIRZKXPN.cjs} +5 -5
- package/dist/tsup/{chunk-GMD47RV5.cjs.map → chunk-QIRZKXPN.cjs.map} +1 -1
- package/dist/tsup/{chunk-3UWWME7J.js → chunk-QRPFFGZB.js} +22 -2
- package/dist/tsup/chunk-QRPFFGZB.js.map +1 -0
- package/dist/tsup/{chunk-CFVNICL7.cjs → chunk-QXKIL5NU.cjs} +7 -7
- package/dist/tsup/{chunk-CFVNICL7.cjs.map → chunk-QXKIL5NU.cjs.map} +1 -1
- package/dist/tsup/{chunk-MLFI5BLT.cjs → chunk-SNTYTMHE.cjs} +12 -8
- package/dist/tsup/chunk-SNTYTMHE.cjs.map +1 -0
- package/dist/tsup/{chunk-2ZBWR7HC.js → chunk-URLGKL2B.js} +2 -2
- package/dist/tsup/{chunk-D5KMS3WU.js → chunk-VPKNVMUA.js} +11 -7
- package/dist/tsup/chunk-VPKNVMUA.js.map +1 -0
- package/dist/tsup/{chunk-VNWYKWBM.js → chunk-ZEBW32PT.js} +7 -7
- package/dist/tsup/client/mod.cjs +7 -7
- package/dist/tsup/client/mod.cjs.map +1 -1
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +6 -6
- package/dist/tsup/common/log.cjs +4 -2
- package/dist/tsup/common/log.cjs.map +1 -1
- package/dist/tsup/common/log.d.cts +5 -1
- package/dist/tsup/common/log.d.ts +5 -1
- package/dist/tsup/common/log.js +5 -3
- package/dist/tsup/common/websocket.cjs +3 -3
- package/dist/tsup/common/websocket.js +2 -2
- package/dist/tsup/{config-CzvopP5m.d.cts → config-BfBhjEbk.d.cts} +1 -0
- package/dist/tsup/{config-DZuT7tcp.d.ts → config-ZkIsRFsN.d.ts} +1 -0
- package/dist/tsup/{context-CyAdY-aA.d.ts → context-B7-84u9K.d.ts} +2 -1
- package/dist/tsup/{context-sNB28g0N.d.cts → context-sZ9GlaBK.d.cts} +2 -1
- package/dist/tsup/dynamic/mod.d.cts +1 -1
- package/dist/tsup/dynamic/mod.d.ts +1 -1
- package/dist/tsup/inspector/mod.cjs +46 -11
- package/dist/tsup/inspector/mod.cjs.map +1 -1
- package/dist/tsup/inspector/mod.d.cts +37 -15
- package/dist/tsup/inspector/mod.d.ts +37 -15
- package/dist/tsup/inspector/mod.js +45 -10
- package/dist/tsup/inspector/mod.js.map +1 -1
- package/dist/tsup/inspector-tab/mod.cjs +1 -12
- package/dist/tsup/inspector-tab/mod.cjs.map +1 -1
- package/dist/tsup/inspector-tab/mod.d.cts +3 -13
- package/dist/tsup/inspector-tab/mod.d.ts +3 -13
- package/dist/tsup/inspector-tab/mod.js +0 -11
- package/dist/tsup/inspector-tab/mod.js.map +1 -1
- package/dist/tsup/mod.cjs +121 -62
- package/dist/tsup/mod.cjs.map +1 -1
- package/dist/tsup/mod.d.cts +3 -3
- package/dist/tsup/mod.d.ts +3 -3
- package/dist/tsup/mod.js +66 -7
- package/dist/tsup/mod.js.map +1 -1
- package/dist/tsup/test/mod.cjs +10 -10
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +6 -6
- package/dist/tsup/utils.cjs +2 -2
- package/dist/tsup/utils.js +1 -1
- package/dist/tsup/workflow/mod.cjs +10 -7
- package/dist/tsup/workflow/mod.cjs.map +1 -1
- package/dist/tsup/workflow/mod.d.cts +3 -3
- package/dist/tsup/workflow/mod.d.ts +3 -3
- package/dist/tsup/workflow/mod.js +7 -4
- package/dist/tsup/workflow/mod.js.map +1 -1
- package/package.json +8 -8
- package/src/common/bare/generated/inspector/v5.ts +1016 -0
- package/src/common/bare/transport/v1.ts +36 -0
- package/src/common/log.ts +14 -8
- package/src/inspector/client.browser.ts +73 -16
- package/src/inspector/mod.ts +1 -1
- package/src/inspector-tab/mod.ts +0 -15
- package/src/registry/index.ts +4 -0
- package/src/registry/napi-runtime.ts +11 -0
- package/src/registry/native.ts +70 -2
- package/src/registry/runtime.ts +1 -0
- package/src/registry/wasm-runtime.ts +5 -0
- package/src/workflow/context.ts +4 -0
- package/src/workflow/inspector.ts +8 -0
- package/dist/tsup/chunk-3UWWME7J.js.map +0 -1
- package/dist/tsup/chunk-D5KMS3WU.js.map +0 -1
- package/dist/tsup/chunk-EIB2XNTL.js.map +0 -1
- package/dist/tsup/chunk-KVSK67EL.cjs.map +0 -1
- package/dist/tsup/chunk-MLFI5BLT.cjs.map +0 -1
- package/dist/tsup/chunk-T5YE5THK.cjs.map +0 -1
- /package/dist/tsup/{chunk-TXO4XNNB.js.map → chunk-CLQHFXG3.js.map} +0 -0
- /package/dist/tsup/{chunk-J7NGTEDW.js.map → chunk-Q6EIXJ2L.js.map} +0 -0
- /package/dist/tsup/{chunk-2ZBWR7HC.js.map → chunk-URLGKL2B.js.map} +0 -0
- /package/dist/tsup/{chunk-VNWYKWBM.js.map → chunk-ZEBW32PT.js.map} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWorkflowInspectorAdapter
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-OUIOGTEL.js";
|
|
4
4
|
import {
|
|
5
5
|
decodeWorkflowHistoryTransport,
|
|
6
6
|
encodeWorkflowHistoryTransport
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-QRPFFGZB.js";
|
|
8
|
+
import "../chunk-URLGKL2B.js";
|
|
9
|
+
import "../chunk-VPKNVMUA.js";
|
|
10
10
|
import "../chunk-ZZ3WBRPD.js";
|
|
11
11
|
|
|
12
|
-
// src/common/bare/generated/inspector/
|
|
12
|
+
// src/common/bare/generated/inspector/v5.ts
|
|
13
13
|
import * as bare from "@rivetkit/bare-ts";
|
|
14
14
|
var DEFAULT_CONFIG = /* @__PURE__ */ bare.Config({});
|
|
15
15
|
function readState(bc) {
|
|
@@ -267,6 +267,20 @@ function writeConnection(bc, x) {
|
|
|
267
267
|
bare.writeString(bc, x.id);
|
|
268
268
|
bare.writeData(bc, x.details);
|
|
269
269
|
}
|
|
270
|
+
function readTabConfigEntry(bc) {
|
|
271
|
+
return {
|
|
272
|
+
id: bare.readString(bc),
|
|
273
|
+
label: read0(bc),
|
|
274
|
+
icon: read0(bc),
|
|
275
|
+
hidden: bare.readBool(bc)
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
function writeTabConfigEntry(bc, x) {
|
|
279
|
+
bare.writeString(bc, x.id);
|
|
280
|
+
write0(bc, x.label);
|
|
281
|
+
write0(bc, x.icon);
|
|
282
|
+
bare.writeBool(bc, x.hidden);
|
|
283
|
+
}
|
|
270
284
|
function read1(bc) {
|
|
271
285
|
const len = bare.readUintSafe(bc);
|
|
272
286
|
if (len === 0) {
|
|
@@ -319,6 +333,23 @@ function write4(bc, x) {
|
|
|
319
333
|
writeWorkflowHistory(bc, x);
|
|
320
334
|
}
|
|
321
335
|
}
|
|
336
|
+
function read5(bc) {
|
|
337
|
+
const len = bare.readUintSafe(bc);
|
|
338
|
+
if (len === 0) {
|
|
339
|
+
return [];
|
|
340
|
+
}
|
|
341
|
+
const result = [readTabConfigEntry(bc)];
|
|
342
|
+
for (let i = 1; i < len; i++) {
|
|
343
|
+
result[i] = readTabConfigEntry(bc);
|
|
344
|
+
}
|
|
345
|
+
return result;
|
|
346
|
+
}
|
|
347
|
+
function write5(bc, x) {
|
|
348
|
+
bare.writeUintSafe(bc, x.length);
|
|
349
|
+
for (let i = 0; i < x.length; i++) {
|
|
350
|
+
writeTabConfigEntry(bc, x[i]);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
322
353
|
function readInit(bc) {
|
|
323
354
|
return {
|
|
324
355
|
connections: read1(bc),
|
|
@@ -328,7 +359,8 @@ function readInit(bc) {
|
|
|
328
359
|
isDatabaseEnabled: bare.readBool(bc),
|
|
329
360
|
queueSize: bare.readUint(bc),
|
|
330
361
|
workflowHistory: read4(bc),
|
|
331
|
-
isWorkflowEnabled: bare.readBool(bc)
|
|
362
|
+
isWorkflowEnabled: bare.readBool(bc),
|
|
363
|
+
tabConfig: read5(bc)
|
|
332
364
|
};
|
|
333
365
|
}
|
|
334
366
|
function writeInit(bc, x) {
|
|
@@ -340,6 +372,7 @@ function writeInit(bc, x) {
|
|
|
340
372
|
bare.writeUint(bc, x.queueSize);
|
|
341
373
|
write4(bc, x.workflowHistory);
|
|
342
374
|
bare.writeBool(bc, x.isWorkflowEnabled);
|
|
375
|
+
write5(bc, x.tabConfig);
|
|
343
376
|
}
|
|
344
377
|
function readConnectionsResponse(bc) {
|
|
345
378
|
return {
|
|
@@ -395,7 +428,7 @@ function writeQueueMessageSummary(bc, x) {
|
|
|
395
428
|
bare.writeString(bc, x.name);
|
|
396
429
|
bare.writeUint(bc, x.createdAtMs);
|
|
397
430
|
}
|
|
398
|
-
function
|
|
431
|
+
function read6(bc) {
|
|
399
432
|
const len = bare.readUintSafe(bc);
|
|
400
433
|
if (len === 0) {
|
|
401
434
|
return [];
|
|
@@ -406,7 +439,7 @@ function read5(bc) {
|
|
|
406
439
|
}
|
|
407
440
|
return result;
|
|
408
441
|
}
|
|
409
|
-
function
|
|
442
|
+
function write6(bc, x) {
|
|
410
443
|
bare.writeUintSafe(bc, x.length);
|
|
411
444
|
for (let i = 0; i < x.length; i++) {
|
|
412
445
|
writeQueueMessageSummary(bc, x[i]);
|
|
@@ -416,14 +449,14 @@ function readQueueStatus(bc) {
|
|
|
416
449
|
return {
|
|
417
450
|
size: bare.readUint(bc),
|
|
418
451
|
maxSize: bare.readUint(bc),
|
|
419
|
-
messages:
|
|
452
|
+
messages: read6(bc),
|
|
420
453
|
truncated: bare.readBool(bc)
|
|
421
454
|
};
|
|
422
455
|
}
|
|
423
456
|
function writeQueueStatus(bc, x) {
|
|
424
457
|
bare.writeUint(bc, x.size);
|
|
425
458
|
bare.writeUint(bc, x.maxSize);
|
|
426
|
-
|
|
459
|
+
write6(bc, x.messages);
|
|
427
460
|
bare.writeBool(bc, x.truncated);
|
|
428
461
|
}
|
|
429
462
|
function readQueueResponse(bc) {
|
|
@@ -713,6 +746,7 @@ export {
|
|
|
713
746
|
readStateRequest,
|
|
714
747
|
readStateResponse,
|
|
715
748
|
readStateUpdated,
|
|
749
|
+
readTabConfigEntry,
|
|
716
750
|
readToClient,
|
|
717
751
|
readToClientBody,
|
|
718
752
|
readToServer,
|
|
@@ -749,6 +783,7 @@ export {
|
|
|
749
783
|
writeStateRequest,
|
|
750
784
|
writeStateResponse,
|
|
751
785
|
writeStateUpdated,
|
|
786
|
+
writeTabConfigEntry,
|
|
752
787
|
writeToClient,
|
|
753
788
|
writeToClientBody,
|
|
754
789
|
writeToServer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/common/bare/generated/inspector/v4.ts"],"sourcesContent":["// @generated - post-processed by build.rs\nimport * as bare from \"@rivetkit/bare-ts\"\n\nconst DEFAULT_CONFIG = /* @__PURE__ */ bare.Config({})\n\nexport type uint = bigint\n\nexport type State = ArrayBuffer\n\nexport function readState(bc: bare.ByteCursor): State {\n return bare.readData(bc)\n}\n\nexport function writeState(bc: bare.ByteCursor, x: State): void {\n bare.writeData(bc, x)\n}\n\nexport type WorkflowHistory = ArrayBuffer\n\nexport function readWorkflowHistory(bc: bare.ByteCursor): WorkflowHistory {\n return bare.readData(bc)\n}\n\nexport function writeWorkflowHistory(bc: bare.ByteCursor, x: WorkflowHistory): void {\n bare.writeData(bc, x)\n}\n\nexport type PatchStateRequest = {\n readonly state: ArrayBuffer\n}\n\nexport function readPatchStateRequest(bc: bare.ByteCursor): PatchStateRequest {\n return {\n state: bare.readData(bc),\n }\n}\n\nexport function writePatchStateRequest(bc: bare.ByteCursor, x: PatchStateRequest): void {\n bare.writeData(bc, x.state)\n}\n\nexport type ActionRequest = {\n readonly id: uint\n readonly name: string\n readonly args: ArrayBuffer\n}\n\nexport function readActionRequest(bc: bare.ByteCursor): ActionRequest {\n return {\n id: bare.readUint(bc),\n name: bare.readString(bc),\n args: bare.readData(bc),\n }\n}\n\nexport function writeActionRequest(bc: bare.ByteCursor, x: ActionRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.name)\n bare.writeData(bc, x.args)\n}\n\nexport type StateRequest = {\n readonly id: uint\n}\n\nexport function readStateRequest(bc: bare.ByteCursor): StateRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeStateRequest(bc: bare.ByteCursor, x: StateRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type ConnectionsRequest = {\n readonly id: uint\n}\n\nexport function readConnectionsRequest(bc: bare.ByteCursor): ConnectionsRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeConnectionsRequest(bc: bare.ByteCursor, x: ConnectionsRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type RpcsListRequest = {\n readonly id: uint\n}\n\nexport function readRpcsListRequest(bc: bare.ByteCursor): RpcsListRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeRpcsListRequest(bc: bare.ByteCursor, x: RpcsListRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type TraceQueryRequest = {\n readonly id: uint\n readonly startMs: uint\n readonly endMs: uint\n readonly limit: uint\n}\n\nexport function readTraceQueryRequest(bc: bare.ByteCursor): TraceQueryRequest {\n return {\n id: bare.readUint(bc),\n startMs: bare.readUint(bc),\n endMs: bare.readUint(bc),\n limit: bare.readUint(bc),\n }\n}\n\nexport function writeTraceQueryRequest(bc: bare.ByteCursor, x: TraceQueryRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeUint(bc, x.startMs)\n bare.writeUint(bc, x.endMs)\n bare.writeUint(bc, x.limit)\n}\n\nexport type QueueRequest = {\n readonly id: uint\n readonly limit: uint\n}\n\nexport function readQueueRequest(bc: bare.ByteCursor): QueueRequest {\n return {\n id: bare.readUint(bc),\n limit: bare.readUint(bc),\n }\n}\n\nexport function writeQueueRequest(bc: bare.ByteCursor, x: QueueRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeUint(bc, x.limit)\n}\n\nexport type WorkflowHistoryRequest = {\n readonly id: uint\n}\n\nexport function readWorkflowHistoryRequest(bc: bare.ByteCursor): WorkflowHistoryRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeWorkflowHistoryRequest(bc: bare.ByteCursor, x: WorkflowHistoryRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nfunction read0(bc: bare.ByteCursor): string | null {\n return bare.readBool(bc) ? bare.readString(bc) : null\n}\n\nfunction write0(bc: bare.ByteCursor, x: string | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n bare.writeString(bc, x)\n }\n}\n\nexport type WorkflowReplayRequest = {\n readonly id: uint\n readonly entryId: string | null\n}\n\nexport function readWorkflowReplayRequest(bc: bare.ByteCursor): WorkflowReplayRequest {\n return {\n id: bare.readUint(bc),\n entryId: read0(bc),\n }\n}\n\nexport function writeWorkflowReplayRequest(bc: bare.ByteCursor, x: WorkflowReplayRequest): void {\n bare.writeUint(bc, x.id)\n write0(bc, x.entryId)\n}\n\nexport type DatabaseSchemaRequest = {\n readonly id: uint\n}\n\nexport function readDatabaseSchemaRequest(bc: bare.ByteCursor): DatabaseSchemaRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeDatabaseSchemaRequest(bc: bare.ByteCursor, x: DatabaseSchemaRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type DatabaseTableRowsRequest = {\n readonly id: uint\n readonly table: string\n readonly limit: uint\n readonly offset: uint\n}\n\nexport function readDatabaseTableRowsRequest(bc: bare.ByteCursor): DatabaseTableRowsRequest {\n return {\n id: bare.readUint(bc),\n table: bare.readString(bc),\n limit: bare.readUint(bc),\n offset: bare.readUint(bc),\n }\n}\n\nexport function writeDatabaseTableRowsRequest(bc: bare.ByteCursor, x: DatabaseTableRowsRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.table)\n bare.writeUint(bc, x.limit)\n bare.writeUint(bc, x.offset)\n}\n\nexport type ToServerBody =\n | { readonly tag: \"PatchStateRequest\"; readonly val: PatchStateRequest }\n | { readonly tag: \"StateRequest\"; readonly val: StateRequest }\n | { readonly tag: \"ConnectionsRequest\"; readonly val: ConnectionsRequest }\n | { readonly tag: \"ActionRequest\"; readonly val: ActionRequest }\n | { readonly tag: \"RpcsListRequest\"; readonly val: RpcsListRequest }\n | { readonly tag: \"TraceQueryRequest\"; readonly val: TraceQueryRequest }\n | { readonly tag: \"QueueRequest\"; readonly val: QueueRequest }\n | { readonly tag: \"WorkflowHistoryRequest\"; readonly val: WorkflowHistoryRequest }\n | { readonly tag: \"WorkflowReplayRequest\"; readonly val: WorkflowReplayRequest }\n | { readonly tag: \"DatabaseSchemaRequest\"; readonly val: DatabaseSchemaRequest }\n | { readonly tag: \"DatabaseTableRowsRequest\"; readonly val: DatabaseTableRowsRequest }\n\nexport function readToServerBody(bc: bare.ByteCursor): ToServerBody {\n const offset = bc.offset\n const tag = bare.readU8(bc)\n switch (tag) {\n case 0:\n return { tag: \"PatchStateRequest\", val: readPatchStateRequest(bc) }\n case 1:\n return { tag: \"StateRequest\", val: readStateRequest(bc) }\n case 2:\n return { tag: \"ConnectionsRequest\", val: readConnectionsRequest(bc) }\n case 3:\n return { tag: \"ActionRequest\", val: readActionRequest(bc) }\n case 4:\n return { tag: \"RpcsListRequest\", val: readRpcsListRequest(bc) }\n case 5:\n return { tag: \"TraceQueryRequest\", val: readTraceQueryRequest(bc) }\n case 6:\n return { tag: \"QueueRequest\", val: readQueueRequest(bc) }\n case 7:\n return { tag: \"WorkflowHistoryRequest\", val: readWorkflowHistoryRequest(bc) }\n case 8:\n return { tag: \"WorkflowReplayRequest\", val: readWorkflowReplayRequest(bc) }\n case 9:\n return { tag: \"DatabaseSchemaRequest\", val: readDatabaseSchemaRequest(bc) }\n case 10:\n return { tag: \"DatabaseTableRowsRequest\", val: readDatabaseTableRowsRequest(bc) }\n default: {\n bc.offset = offset\n throw new bare.BareError(offset, \"invalid tag\")\n }\n }\n}\n\nexport function writeToServerBody(bc: bare.ByteCursor, x: ToServerBody): void {\n switch (x.tag) {\n case \"PatchStateRequest\": {\n bare.writeU8(bc, 0)\n writePatchStateRequest(bc, x.val)\n break\n }\n case \"StateRequest\": {\n bare.writeU8(bc, 1)\n writeStateRequest(bc, x.val)\n break\n }\n case \"ConnectionsRequest\": {\n bare.writeU8(bc, 2)\n writeConnectionsRequest(bc, x.val)\n break\n }\n case \"ActionRequest\": {\n bare.writeU8(bc, 3)\n writeActionRequest(bc, x.val)\n break\n }\n case \"RpcsListRequest\": {\n bare.writeU8(bc, 4)\n writeRpcsListRequest(bc, x.val)\n break\n }\n case \"TraceQueryRequest\": {\n bare.writeU8(bc, 5)\n writeTraceQueryRequest(bc, x.val)\n break\n }\n case \"QueueRequest\": {\n bare.writeU8(bc, 6)\n writeQueueRequest(bc, x.val)\n break\n }\n case \"WorkflowHistoryRequest\": {\n bare.writeU8(bc, 7)\n writeWorkflowHistoryRequest(bc, x.val)\n break\n }\n case \"WorkflowReplayRequest\": {\n bare.writeU8(bc, 8)\n writeWorkflowReplayRequest(bc, x.val)\n break\n }\n case \"DatabaseSchemaRequest\": {\n bare.writeU8(bc, 9)\n writeDatabaseSchemaRequest(bc, x.val)\n break\n }\n case \"DatabaseTableRowsRequest\": {\n bare.writeU8(bc, 10)\n writeDatabaseTableRowsRequest(bc, x.val)\n break\n }\n }\n}\n\nexport type ToServer = {\n readonly body: ToServerBody\n}\n\nexport function readToServer(bc: bare.ByteCursor): ToServer {\n return {\n body: readToServerBody(bc),\n }\n}\n\nexport function writeToServer(bc: bare.ByteCursor, x: ToServer): void {\n writeToServerBody(bc, x.body)\n}\n\nexport function encodeToServer(x: ToServer, config?: Partial<bare.Config>): Uint8Array {\n const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG\n const bc = new bare.ByteCursor(\n new Uint8Array(fullConfig.initialBufferLength),\n fullConfig,\n )\n writeToServer(bc, x)\n return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset)\n}\n\nexport function decodeToServer(bytes: Uint8Array): ToServer {\n const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG)\n const result = readToServer(bc)\n if (bc.offset < bc.view.byteLength) {\n throw new bare.BareError(bc.offset, \"remaining bytes\")\n }\n return result\n}\n\nexport type Connection = {\n readonly id: string\n readonly details: ArrayBuffer\n}\n\nexport function readConnection(bc: bare.ByteCursor): Connection {\n return {\n id: bare.readString(bc),\n details: bare.readData(bc),\n }\n}\n\nexport function writeConnection(bc: bare.ByteCursor, x: Connection): void {\n bare.writeString(bc, x.id)\n bare.writeData(bc, x.details)\n}\n\nfunction read1(bc: bare.ByteCursor): readonly Connection[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [readConnection(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = readConnection(bc)\n }\n return result\n}\n\nfunction write1(bc: bare.ByteCursor, x: readonly Connection[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n writeConnection(bc, x[i])\n }\n}\n\nfunction read2(bc: bare.ByteCursor): State | null {\n return bare.readBool(bc) ? readState(bc) : null\n}\n\nfunction write2(bc: bare.ByteCursor, x: State | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n writeState(bc, x)\n }\n}\n\nfunction read3(bc: bare.ByteCursor): readonly string[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [bare.readString(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = bare.readString(bc)\n }\n return result\n}\n\nfunction write3(bc: bare.ByteCursor, x: readonly string[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n bare.writeString(bc, x[i])\n }\n}\n\nfunction read4(bc: bare.ByteCursor): WorkflowHistory | null {\n return bare.readBool(bc) ? readWorkflowHistory(bc) : null\n}\n\nfunction write4(bc: bare.ByteCursor, x: WorkflowHistory | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n writeWorkflowHistory(bc, x)\n }\n}\n\nexport type Init = {\n readonly connections: readonly Connection[]\n readonly state: State | null\n readonly isStateEnabled: boolean\n readonly rpcs: readonly string[]\n readonly isDatabaseEnabled: boolean\n readonly queueSize: uint\n readonly workflowHistory: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n}\n\nexport function readInit(bc: bare.ByteCursor): Init {\n return {\n connections: read1(bc),\n state: read2(bc),\n isStateEnabled: bare.readBool(bc),\n rpcs: read3(bc),\n isDatabaseEnabled: bare.readBool(bc),\n queueSize: bare.readUint(bc),\n workflowHistory: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeInit(bc: bare.ByteCursor, x: Init): void {\n write1(bc, x.connections)\n write2(bc, x.state)\n bare.writeBool(bc, x.isStateEnabled)\n write3(bc, x.rpcs)\n bare.writeBool(bc, x.isDatabaseEnabled)\n bare.writeUint(bc, x.queueSize)\n write4(bc, x.workflowHistory)\n bare.writeBool(bc, x.isWorkflowEnabled)\n}\n\nexport type ConnectionsResponse = {\n readonly rid: uint\n readonly connections: readonly Connection[]\n}\n\nexport function readConnectionsResponse(bc: bare.ByteCursor): ConnectionsResponse {\n return {\n rid: bare.readUint(bc),\n connections: read1(bc),\n }\n}\n\nexport function writeConnectionsResponse(bc: bare.ByteCursor, x: ConnectionsResponse): void {\n bare.writeUint(bc, x.rid)\n write1(bc, x.connections)\n}\n\nexport type StateResponse = {\n readonly rid: uint\n readonly state: State | null\n readonly isStateEnabled: boolean\n}\n\nexport function readStateResponse(bc: bare.ByteCursor): StateResponse {\n return {\n rid: bare.readUint(bc),\n state: read2(bc),\n isStateEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeStateResponse(bc: bare.ByteCursor, x: StateResponse): void {\n bare.writeUint(bc, x.rid)\n write2(bc, x.state)\n bare.writeBool(bc, x.isStateEnabled)\n}\n\nexport type ActionResponse = {\n readonly rid: uint\n readonly output: ArrayBuffer\n}\n\nexport function readActionResponse(bc: bare.ByteCursor): ActionResponse {\n return {\n rid: bare.readUint(bc),\n output: bare.readData(bc),\n }\n}\n\nexport function writeActionResponse(bc: bare.ByteCursor, x: ActionResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.output)\n}\n\nexport type TraceQueryResponse = {\n readonly rid: uint\n readonly payload: ArrayBuffer\n}\n\nexport function readTraceQueryResponse(bc: bare.ByteCursor): TraceQueryResponse {\n return {\n rid: bare.readUint(bc),\n payload: bare.readData(bc),\n }\n}\n\nexport function writeTraceQueryResponse(bc: bare.ByteCursor, x: TraceQueryResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.payload)\n}\n\nexport type QueueMessageSummary = {\n readonly id: uint\n readonly name: string\n readonly createdAtMs: uint\n}\n\nexport function readQueueMessageSummary(bc: bare.ByteCursor): QueueMessageSummary {\n return {\n id: bare.readUint(bc),\n name: bare.readString(bc),\n createdAtMs: bare.readUint(bc),\n }\n}\n\nexport function writeQueueMessageSummary(bc: bare.ByteCursor, x: QueueMessageSummary): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.name)\n bare.writeUint(bc, x.createdAtMs)\n}\n\nfunction read5(bc: bare.ByteCursor): readonly QueueMessageSummary[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [readQueueMessageSummary(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = readQueueMessageSummary(bc)\n }\n return result\n}\n\nfunction write5(bc: bare.ByteCursor, x: readonly QueueMessageSummary[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n writeQueueMessageSummary(bc, x[i])\n }\n}\n\nexport type QueueStatus = {\n readonly size: uint\n readonly maxSize: uint\n readonly messages: readonly QueueMessageSummary[]\n readonly truncated: boolean\n}\n\nexport function readQueueStatus(bc: bare.ByteCursor): QueueStatus {\n return {\n size: bare.readUint(bc),\n maxSize: bare.readUint(bc),\n messages: read5(bc),\n truncated: bare.readBool(bc),\n }\n}\n\nexport function writeQueueStatus(bc: bare.ByteCursor, x: QueueStatus): void {\n bare.writeUint(bc, x.size)\n bare.writeUint(bc, x.maxSize)\n write5(bc, x.messages)\n bare.writeBool(bc, x.truncated)\n}\n\nexport type QueueResponse = {\n readonly rid: uint\n readonly status: QueueStatus\n}\n\nexport function readQueueResponse(bc: bare.ByteCursor): QueueResponse {\n return {\n rid: bare.readUint(bc),\n status: readQueueStatus(bc),\n }\n}\n\nexport function writeQueueResponse(bc: bare.ByteCursor, x: QueueResponse): void {\n bare.writeUint(bc, x.rid)\n writeQueueStatus(bc, x.status)\n}\n\nexport type WorkflowHistoryResponse = {\n readonly rid: uint\n readonly history: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n}\n\nexport function readWorkflowHistoryResponse(bc: bare.ByteCursor): WorkflowHistoryResponse {\n return {\n rid: bare.readUint(bc),\n history: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeWorkflowHistoryResponse(bc: bare.ByteCursor, x: WorkflowHistoryResponse): void {\n bare.writeUint(bc, x.rid)\n write4(bc, x.history)\n bare.writeBool(bc, x.isWorkflowEnabled)\n}\n\nexport type WorkflowReplayResponse = {\n readonly rid: uint\n readonly history: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n}\n\nexport function readWorkflowReplayResponse(bc: bare.ByteCursor): WorkflowReplayResponse {\n return {\n rid: bare.readUint(bc),\n history: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeWorkflowReplayResponse(bc: bare.ByteCursor, x: WorkflowReplayResponse): void {\n bare.writeUint(bc, x.rid)\n write4(bc, x.history)\n bare.writeBool(bc, x.isWorkflowEnabled)\n}\n\nexport type DatabaseSchemaResponse = {\n readonly rid: uint\n readonly schema: ArrayBuffer\n}\n\nexport function readDatabaseSchemaResponse(bc: bare.ByteCursor): DatabaseSchemaResponse {\n return {\n rid: bare.readUint(bc),\n schema: bare.readData(bc),\n }\n}\n\nexport function writeDatabaseSchemaResponse(bc: bare.ByteCursor, x: DatabaseSchemaResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.schema)\n}\n\nexport type DatabaseTableRowsResponse = {\n readonly rid: uint\n readonly result: ArrayBuffer\n}\n\nexport function readDatabaseTableRowsResponse(bc: bare.ByteCursor): DatabaseTableRowsResponse {\n return {\n rid: bare.readUint(bc),\n result: bare.readData(bc),\n }\n}\n\nexport function writeDatabaseTableRowsResponse(bc: bare.ByteCursor, x: DatabaseTableRowsResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.result)\n}\n\nexport type StateUpdated = {\n readonly state: State\n}\n\nexport function readStateUpdated(bc: bare.ByteCursor): StateUpdated {\n return {\n state: readState(bc),\n }\n}\n\nexport function writeStateUpdated(bc: bare.ByteCursor, x: StateUpdated): void {\n writeState(bc, x.state)\n}\n\nexport type QueueUpdated = {\n readonly queueSize: uint\n}\n\nexport function readQueueUpdated(bc: bare.ByteCursor): QueueUpdated {\n return {\n queueSize: bare.readUint(bc),\n }\n}\n\nexport function writeQueueUpdated(bc: bare.ByteCursor, x: QueueUpdated): void {\n bare.writeUint(bc, x.queueSize)\n}\n\nexport type WorkflowHistoryUpdated = {\n readonly history: WorkflowHistory\n}\n\nexport function readWorkflowHistoryUpdated(bc: bare.ByteCursor): WorkflowHistoryUpdated {\n return {\n history: readWorkflowHistory(bc),\n }\n}\n\nexport function writeWorkflowHistoryUpdated(bc: bare.ByteCursor, x: WorkflowHistoryUpdated): void {\n writeWorkflowHistory(bc, x.history)\n}\n\nexport type RpcsListResponse = {\n readonly rid: uint\n readonly rpcs: readonly string[]\n}\n\nexport function readRpcsListResponse(bc: bare.ByteCursor): RpcsListResponse {\n return {\n rid: bare.readUint(bc),\n rpcs: read3(bc),\n }\n}\n\nexport function writeRpcsListResponse(bc: bare.ByteCursor, x: RpcsListResponse): void {\n bare.writeUint(bc, x.rid)\n write3(bc, x.rpcs)\n}\n\nexport type ConnectionsUpdated = {\n readonly connections: readonly Connection[]\n}\n\nexport function readConnectionsUpdated(bc: bare.ByteCursor): ConnectionsUpdated {\n return {\n connections: read1(bc),\n }\n}\n\nexport function writeConnectionsUpdated(bc: bare.ByteCursor, x: ConnectionsUpdated): void {\n write1(bc, x.connections)\n}\n\nexport type Error = {\n readonly message: string\n}\n\nexport function readError(bc: bare.ByteCursor): Error {\n return {\n message: bare.readString(bc),\n }\n}\n\nexport function writeError(bc: bare.ByteCursor, x: Error): void {\n bare.writeString(bc, x.message)\n}\n\nexport type ToClientBody =\n | { readonly tag: \"StateResponse\"; readonly val: StateResponse }\n | { readonly tag: \"ConnectionsResponse\"; readonly val: ConnectionsResponse }\n | { readonly tag: \"ActionResponse\"; readonly val: ActionResponse }\n | { readonly tag: \"ConnectionsUpdated\"; readonly val: ConnectionsUpdated }\n | { readonly tag: \"QueueUpdated\"; readonly val: QueueUpdated }\n | { readonly tag: \"StateUpdated\"; readonly val: StateUpdated }\n | { readonly tag: \"WorkflowHistoryUpdated\"; readonly val: WorkflowHistoryUpdated }\n | { readonly tag: \"RpcsListResponse\"; readonly val: RpcsListResponse }\n | { readonly tag: \"TraceQueryResponse\"; readonly val: TraceQueryResponse }\n | { readonly tag: \"QueueResponse\"; readonly val: QueueResponse }\n | { readonly tag: \"WorkflowHistoryResponse\"; readonly val: WorkflowHistoryResponse }\n | { readonly tag: \"WorkflowReplayResponse\"; readonly val: WorkflowReplayResponse }\n | { readonly tag: \"Error\"; readonly val: Error }\n | { readonly tag: \"Init\"; readonly val: Init }\n | { readonly tag: \"DatabaseSchemaResponse\"; readonly val: DatabaseSchemaResponse }\n | { readonly tag: \"DatabaseTableRowsResponse\"; readonly val: DatabaseTableRowsResponse }\n\nexport function readToClientBody(bc: bare.ByteCursor): ToClientBody {\n const offset = bc.offset\n const tag = bare.readU8(bc)\n switch (tag) {\n case 0:\n return { tag: \"StateResponse\", val: readStateResponse(bc) }\n case 1:\n return { tag: \"ConnectionsResponse\", val: readConnectionsResponse(bc) }\n case 2:\n return { tag: \"ActionResponse\", val: readActionResponse(bc) }\n case 3:\n return { tag: \"ConnectionsUpdated\", val: readConnectionsUpdated(bc) }\n case 4:\n return { tag: \"QueueUpdated\", val: readQueueUpdated(bc) }\n case 5:\n return { tag: \"StateUpdated\", val: readStateUpdated(bc) }\n case 6:\n return { tag: \"WorkflowHistoryUpdated\", val: readWorkflowHistoryUpdated(bc) }\n case 7:\n return { tag: \"RpcsListResponse\", val: readRpcsListResponse(bc) }\n case 8:\n return { tag: \"TraceQueryResponse\", val: readTraceQueryResponse(bc) }\n case 9:\n return { tag: \"QueueResponse\", val: readQueueResponse(bc) }\n case 10:\n return { tag: \"WorkflowHistoryResponse\", val: readWorkflowHistoryResponse(bc) }\n case 11:\n return { tag: \"WorkflowReplayResponse\", val: readWorkflowReplayResponse(bc) }\n case 12:\n return { tag: \"Error\", val: readError(bc) }\n case 13:\n return { tag: \"Init\", val: readInit(bc) }\n case 14:\n return { tag: \"DatabaseSchemaResponse\", val: readDatabaseSchemaResponse(bc) }\n case 15:\n return { tag: \"DatabaseTableRowsResponse\", val: readDatabaseTableRowsResponse(bc) }\n default: {\n bc.offset = offset\n throw new bare.BareError(offset, \"invalid tag\")\n }\n }\n}\n\nexport function writeToClientBody(bc: bare.ByteCursor, x: ToClientBody): void {\n switch (x.tag) {\n case \"StateResponse\": {\n bare.writeU8(bc, 0)\n writeStateResponse(bc, x.val)\n break\n }\n case \"ConnectionsResponse\": {\n bare.writeU8(bc, 1)\n writeConnectionsResponse(bc, x.val)\n break\n }\n case \"ActionResponse\": {\n bare.writeU8(bc, 2)\n writeActionResponse(bc, x.val)\n break\n }\n case \"ConnectionsUpdated\": {\n bare.writeU8(bc, 3)\n writeConnectionsUpdated(bc, x.val)\n break\n }\n case \"QueueUpdated\": {\n bare.writeU8(bc, 4)\n writeQueueUpdated(bc, x.val)\n break\n }\n case \"StateUpdated\": {\n bare.writeU8(bc, 5)\n writeStateUpdated(bc, x.val)\n break\n }\n case \"WorkflowHistoryUpdated\": {\n bare.writeU8(bc, 6)\n writeWorkflowHistoryUpdated(bc, x.val)\n break\n }\n case \"RpcsListResponse\": {\n bare.writeU8(bc, 7)\n writeRpcsListResponse(bc, x.val)\n break\n }\n case \"TraceQueryResponse\": {\n bare.writeU8(bc, 8)\n writeTraceQueryResponse(bc, x.val)\n break\n }\n case \"QueueResponse\": {\n bare.writeU8(bc, 9)\n writeQueueResponse(bc, x.val)\n break\n }\n case \"WorkflowHistoryResponse\": {\n bare.writeU8(bc, 10)\n writeWorkflowHistoryResponse(bc, x.val)\n break\n }\n case \"WorkflowReplayResponse\": {\n bare.writeU8(bc, 11)\n writeWorkflowReplayResponse(bc, x.val)\n break\n }\n case \"Error\": {\n bare.writeU8(bc, 12)\n writeError(bc, x.val)\n break\n }\n case \"Init\": {\n bare.writeU8(bc, 13)\n writeInit(bc, x.val)\n break\n }\n case \"DatabaseSchemaResponse\": {\n bare.writeU8(bc, 14)\n writeDatabaseSchemaResponse(bc, x.val)\n break\n }\n case \"DatabaseTableRowsResponse\": {\n bare.writeU8(bc, 15)\n writeDatabaseTableRowsResponse(bc, x.val)\n break\n }\n }\n}\n\nexport type ToClient = {\n readonly body: ToClientBody\n}\n\nexport function readToClient(bc: bare.ByteCursor): ToClient {\n return {\n body: readToClientBody(bc),\n }\n}\n\nexport function writeToClient(bc: bare.ByteCursor, x: ToClient): void {\n writeToClientBody(bc, x.body)\n}\n\nexport function encodeToClient(x: ToClient, config?: Partial<bare.Config>): Uint8Array {\n const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG\n const bc = new bare.ByteCursor(\n new Uint8Array(fullConfig.initialBufferLength),\n fullConfig,\n )\n writeToClient(bc, x)\n return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset)\n}\n\nexport function decodeToClient(bytes: Uint8Array): ToClient {\n const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG)\n const result = readToClient(bc)\n if (bc.offset < bc.view.byteLength) {\n throw new bare.BareError(bc.offset, \"remaining bytes\")\n }\n return result\n}\n\n\nfunction assert(condition: boolean, message?: string): asserts condition {\n if (!condition) throw new Error(message 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eAAe,GAAa,QAA2C;AACnF,QAAM,aAAa,UAAU,OAAY,YAAO,MAAM,IAAI;AAC1D,QAAM,KAAK,IAAS;AAAA,IAChB,IAAI,WAAW,WAAW,mBAAmB;AAAA,IAC7C;AAAA,EACJ;AACA,gBAAc,IAAI,CAAC;AACnB,SAAO,IAAI,WAAW,GAAG,KAAK,QAAQ,GAAG,KAAK,YAAY,GAAG,MAAM;AACvE;AAEO,SAAS,eAAe,OAA6B;AACxD,QAAM,KAAK,IAAS,gBAAW,OAAO,cAAc;AACpD,QAAM,SAAS,aAAa,EAAE;AAC9B,MAAI,GAAG,SAAS,GAAG,KAAK,YAAY;AAChC,UAAM,IAAS,eAAU,GAAG,QAAQ,iBAAiB;AAAA,EACzD;AACA,SAAO;AACX;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/common/bare/generated/inspector/v5.ts"],"sourcesContent":["// @generated - post-processed by build.rs\nimport * as bare from \"@rivetkit/bare-ts\"\n\nconst DEFAULT_CONFIG = /* @__PURE__ */ bare.Config({})\n\nexport type uint = bigint\n\nexport type State = ArrayBuffer\n\nexport function readState(bc: bare.ByteCursor): State {\n return bare.readData(bc)\n}\n\nexport function writeState(bc: bare.ByteCursor, x: State): void {\n bare.writeData(bc, x)\n}\n\nexport type WorkflowHistory = ArrayBuffer\n\nexport function readWorkflowHistory(bc: bare.ByteCursor): WorkflowHistory {\n return bare.readData(bc)\n}\n\nexport function writeWorkflowHistory(bc: bare.ByteCursor, x: WorkflowHistory): void {\n bare.writeData(bc, x)\n}\n\nexport type PatchStateRequest = {\n readonly state: ArrayBuffer\n}\n\nexport function readPatchStateRequest(bc: bare.ByteCursor): PatchStateRequest {\n return {\n state: bare.readData(bc),\n }\n}\n\nexport function writePatchStateRequest(bc: bare.ByteCursor, x: PatchStateRequest): void {\n bare.writeData(bc, x.state)\n}\n\nexport type ActionRequest = {\n readonly id: uint\n readonly name: string\n readonly args: ArrayBuffer\n}\n\nexport function readActionRequest(bc: bare.ByteCursor): ActionRequest {\n return {\n id: bare.readUint(bc),\n name: bare.readString(bc),\n args: bare.readData(bc),\n }\n}\n\nexport function writeActionRequest(bc: bare.ByteCursor, x: ActionRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.name)\n bare.writeData(bc, x.args)\n}\n\nexport type StateRequest = {\n readonly id: uint\n}\n\nexport function readStateRequest(bc: bare.ByteCursor): StateRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeStateRequest(bc: bare.ByteCursor, x: StateRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type ConnectionsRequest = {\n readonly id: uint\n}\n\nexport function readConnectionsRequest(bc: bare.ByteCursor): ConnectionsRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeConnectionsRequest(bc: bare.ByteCursor, x: ConnectionsRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type RpcsListRequest = {\n readonly id: uint\n}\n\nexport function readRpcsListRequest(bc: bare.ByteCursor): RpcsListRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeRpcsListRequest(bc: bare.ByteCursor, x: RpcsListRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type TraceQueryRequest = {\n readonly id: uint\n readonly startMs: uint\n readonly endMs: uint\n readonly limit: uint\n}\n\nexport function readTraceQueryRequest(bc: bare.ByteCursor): TraceQueryRequest {\n return {\n id: bare.readUint(bc),\n startMs: bare.readUint(bc),\n endMs: bare.readUint(bc),\n limit: bare.readUint(bc),\n }\n}\n\nexport function writeTraceQueryRequest(bc: bare.ByteCursor, x: TraceQueryRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeUint(bc, x.startMs)\n bare.writeUint(bc, x.endMs)\n bare.writeUint(bc, x.limit)\n}\n\nexport type QueueRequest = {\n readonly id: uint\n readonly limit: uint\n}\n\nexport function readQueueRequest(bc: bare.ByteCursor): QueueRequest {\n return {\n id: bare.readUint(bc),\n limit: bare.readUint(bc),\n }\n}\n\nexport function writeQueueRequest(bc: bare.ByteCursor, x: QueueRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeUint(bc, x.limit)\n}\n\nexport type WorkflowHistoryRequest = {\n readonly id: uint\n}\n\nexport function readWorkflowHistoryRequest(bc: bare.ByteCursor): WorkflowHistoryRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeWorkflowHistoryRequest(bc: bare.ByteCursor, x: WorkflowHistoryRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nfunction read0(bc: bare.ByteCursor): string | null {\n return bare.readBool(bc) ? bare.readString(bc) : null\n}\n\nfunction write0(bc: bare.ByteCursor, x: string | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n bare.writeString(bc, x)\n }\n}\n\nexport type WorkflowReplayRequest = {\n readonly id: uint\n readonly entryId: string | null\n}\n\nexport function readWorkflowReplayRequest(bc: bare.ByteCursor): WorkflowReplayRequest {\n return {\n id: bare.readUint(bc),\n entryId: read0(bc),\n }\n}\n\nexport function writeWorkflowReplayRequest(bc: bare.ByteCursor, x: WorkflowReplayRequest): void {\n bare.writeUint(bc, x.id)\n write0(bc, x.entryId)\n}\n\nexport type DatabaseSchemaRequest = {\n readonly id: uint\n}\n\nexport function readDatabaseSchemaRequest(bc: bare.ByteCursor): DatabaseSchemaRequest {\n return {\n id: bare.readUint(bc),\n }\n}\n\nexport function writeDatabaseSchemaRequest(bc: bare.ByteCursor, x: DatabaseSchemaRequest): void {\n bare.writeUint(bc, x.id)\n}\n\nexport type DatabaseTableRowsRequest = {\n readonly id: uint\n readonly table: string\n readonly limit: uint\n readonly offset: uint\n}\n\nexport function readDatabaseTableRowsRequest(bc: bare.ByteCursor): DatabaseTableRowsRequest {\n return {\n id: bare.readUint(bc),\n table: bare.readString(bc),\n limit: bare.readUint(bc),\n offset: bare.readUint(bc),\n }\n}\n\nexport function writeDatabaseTableRowsRequest(bc: bare.ByteCursor, x: DatabaseTableRowsRequest): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.table)\n bare.writeUint(bc, x.limit)\n bare.writeUint(bc, x.offset)\n}\n\nexport type ToServerBody =\n | { readonly tag: \"PatchStateRequest\"; readonly val: PatchStateRequest }\n | { readonly tag: \"StateRequest\"; readonly val: StateRequest }\n | { readonly tag: \"ConnectionsRequest\"; readonly val: ConnectionsRequest }\n | { readonly tag: \"ActionRequest\"; readonly val: ActionRequest }\n | { readonly tag: \"RpcsListRequest\"; readonly val: RpcsListRequest }\n | { readonly tag: \"TraceQueryRequest\"; readonly val: TraceQueryRequest }\n | { readonly tag: \"QueueRequest\"; readonly val: QueueRequest }\n | { readonly tag: \"WorkflowHistoryRequest\"; readonly val: WorkflowHistoryRequest }\n | { readonly tag: \"WorkflowReplayRequest\"; readonly val: WorkflowReplayRequest }\n | { readonly tag: \"DatabaseSchemaRequest\"; readonly val: DatabaseSchemaRequest }\n | { readonly tag: \"DatabaseTableRowsRequest\"; readonly val: DatabaseTableRowsRequest }\n\nexport function readToServerBody(bc: bare.ByteCursor): ToServerBody {\n const offset = bc.offset\n const tag = bare.readU8(bc)\n switch (tag) {\n case 0:\n return { tag: \"PatchStateRequest\", val: readPatchStateRequest(bc) }\n case 1:\n return { tag: \"StateRequest\", val: readStateRequest(bc) }\n case 2:\n return { tag: \"ConnectionsRequest\", val: readConnectionsRequest(bc) }\n case 3:\n return { tag: \"ActionRequest\", val: readActionRequest(bc) }\n case 4:\n return { tag: \"RpcsListRequest\", val: readRpcsListRequest(bc) }\n case 5:\n return { tag: \"TraceQueryRequest\", val: readTraceQueryRequest(bc) }\n case 6:\n return { tag: \"QueueRequest\", val: readQueueRequest(bc) }\n case 7:\n return { tag: \"WorkflowHistoryRequest\", val: readWorkflowHistoryRequest(bc) }\n case 8:\n return { tag: \"WorkflowReplayRequest\", val: readWorkflowReplayRequest(bc) }\n case 9:\n return { tag: \"DatabaseSchemaRequest\", val: readDatabaseSchemaRequest(bc) }\n case 10:\n return { tag: \"DatabaseTableRowsRequest\", val: readDatabaseTableRowsRequest(bc) }\n default: {\n bc.offset = offset\n throw new bare.BareError(offset, \"invalid tag\")\n }\n }\n}\n\nexport function writeToServerBody(bc: bare.ByteCursor, x: ToServerBody): void {\n switch (x.tag) {\n case \"PatchStateRequest\": {\n bare.writeU8(bc, 0)\n writePatchStateRequest(bc, x.val)\n break\n }\n case \"StateRequest\": {\n bare.writeU8(bc, 1)\n writeStateRequest(bc, x.val)\n break\n }\n case \"ConnectionsRequest\": {\n bare.writeU8(bc, 2)\n writeConnectionsRequest(bc, x.val)\n break\n }\n case \"ActionRequest\": {\n bare.writeU8(bc, 3)\n writeActionRequest(bc, x.val)\n break\n }\n case \"RpcsListRequest\": {\n bare.writeU8(bc, 4)\n writeRpcsListRequest(bc, x.val)\n break\n }\n case \"TraceQueryRequest\": {\n bare.writeU8(bc, 5)\n writeTraceQueryRequest(bc, x.val)\n break\n }\n case \"QueueRequest\": {\n bare.writeU8(bc, 6)\n writeQueueRequest(bc, x.val)\n break\n }\n case \"WorkflowHistoryRequest\": {\n bare.writeU8(bc, 7)\n writeWorkflowHistoryRequest(bc, x.val)\n break\n }\n case \"WorkflowReplayRequest\": {\n bare.writeU8(bc, 8)\n writeWorkflowReplayRequest(bc, x.val)\n break\n }\n case \"DatabaseSchemaRequest\": {\n bare.writeU8(bc, 9)\n writeDatabaseSchemaRequest(bc, x.val)\n break\n }\n case \"DatabaseTableRowsRequest\": {\n bare.writeU8(bc, 10)\n writeDatabaseTableRowsRequest(bc, x.val)\n break\n }\n }\n}\n\nexport type ToServer = {\n readonly body: ToServerBody\n}\n\nexport function readToServer(bc: bare.ByteCursor): ToServer {\n return {\n body: readToServerBody(bc),\n }\n}\n\nexport function writeToServer(bc: bare.ByteCursor, x: ToServer): void {\n writeToServerBody(bc, x.body)\n}\n\nexport function encodeToServer(x: ToServer, config?: Partial<bare.Config>): Uint8Array {\n const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG\n const bc = new bare.ByteCursor(\n new Uint8Array(fullConfig.initialBufferLength),\n fullConfig,\n )\n writeToServer(bc, x)\n return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset)\n}\n\nexport function decodeToServer(bytes: Uint8Array): ToServer {\n const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG)\n const result = readToServer(bc)\n if (bc.offset < bc.view.byteLength) {\n throw new bare.BareError(bc.offset, \"remaining bytes\")\n }\n return result\n}\n\nexport type Connection = {\n readonly id: string\n readonly details: ArrayBuffer\n}\n\nexport function readConnection(bc: bare.ByteCursor): Connection {\n return {\n id: bare.readString(bc),\n details: bare.readData(bc),\n }\n}\n\nexport function writeConnection(bc: bare.ByteCursor, x: Connection): void {\n bare.writeString(bc, x.id)\n bare.writeData(bc, x.details)\n}\n\n/**\n * Inspector tab descriptor. `label`/`icon` are set for author-declared custom\n * tabs; a hidden built-in only carries `id` with `hidden` set.\n */\nexport type TabConfigEntry = {\n readonly id: string\n readonly label: string | null\n readonly icon: string | null\n readonly hidden: boolean\n}\n\nexport function readTabConfigEntry(bc: bare.ByteCursor): TabConfigEntry {\n return {\n id: bare.readString(bc),\n label: read0(bc),\n icon: read0(bc),\n hidden: bare.readBool(bc),\n }\n}\n\nexport function writeTabConfigEntry(bc: bare.ByteCursor, x: TabConfigEntry): void {\n bare.writeString(bc, x.id)\n write0(bc, x.label)\n write0(bc, x.icon)\n bare.writeBool(bc, x.hidden)\n}\n\nfunction read1(bc: bare.ByteCursor): readonly Connection[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [readConnection(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = readConnection(bc)\n }\n return result\n}\n\nfunction write1(bc: bare.ByteCursor, x: readonly Connection[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n writeConnection(bc, x[i])\n }\n}\n\nfunction read2(bc: bare.ByteCursor): State | null {\n return bare.readBool(bc) ? readState(bc) : null\n}\n\nfunction write2(bc: bare.ByteCursor, x: State | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n writeState(bc, x)\n }\n}\n\nfunction read3(bc: bare.ByteCursor): readonly string[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [bare.readString(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = bare.readString(bc)\n }\n return result\n}\n\nfunction write3(bc: bare.ByteCursor, x: readonly string[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n bare.writeString(bc, x[i])\n }\n}\n\nfunction read4(bc: bare.ByteCursor): WorkflowHistory | null {\n return bare.readBool(bc) ? readWorkflowHistory(bc) : null\n}\n\nfunction write4(bc: bare.ByteCursor, x: WorkflowHistory | null): void {\n bare.writeBool(bc, x != null)\n if (x != null) {\n writeWorkflowHistory(bc, x)\n }\n}\n\nfunction read5(bc: bare.ByteCursor): readonly TabConfigEntry[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [readTabConfigEntry(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = readTabConfigEntry(bc)\n }\n return result\n}\n\nfunction write5(bc: bare.ByteCursor, x: readonly TabConfigEntry[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n writeTabConfigEntry(bc, x[i])\n }\n}\n\nexport type Init = {\n readonly connections: readonly Connection[]\n readonly state: State | null\n readonly isStateEnabled: boolean\n readonly rpcs: readonly string[]\n readonly isDatabaseEnabled: boolean\n readonly queueSize: uint\n readonly workflowHistory: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n readonly tabConfig: readonly TabConfigEntry[]\n}\n\nexport function readInit(bc: bare.ByteCursor): Init {\n return {\n connections: read1(bc),\n state: read2(bc),\n isStateEnabled: bare.readBool(bc),\n rpcs: read3(bc),\n isDatabaseEnabled: bare.readBool(bc),\n queueSize: bare.readUint(bc),\n workflowHistory: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n tabConfig: read5(bc),\n }\n}\n\nexport function writeInit(bc: bare.ByteCursor, x: Init): void {\n write1(bc, x.connections)\n write2(bc, x.state)\n bare.writeBool(bc, x.isStateEnabled)\n write3(bc, x.rpcs)\n bare.writeBool(bc, x.isDatabaseEnabled)\n bare.writeUint(bc, x.queueSize)\n write4(bc, x.workflowHistory)\n bare.writeBool(bc, x.isWorkflowEnabled)\n write5(bc, x.tabConfig)\n}\n\nexport type ConnectionsResponse = {\n readonly rid: uint\n readonly connections: readonly Connection[]\n}\n\nexport function readConnectionsResponse(bc: bare.ByteCursor): ConnectionsResponse {\n return {\n rid: bare.readUint(bc),\n connections: read1(bc),\n }\n}\n\nexport function writeConnectionsResponse(bc: bare.ByteCursor, x: ConnectionsResponse): void {\n bare.writeUint(bc, x.rid)\n write1(bc, x.connections)\n}\n\nexport type StateResponse = {\n readonly rid: uint\n readonly state: State | null\n readonly isStateEnabled: boolean\n}\n\nexport function readStateResponse(bc: bare.ByteCursor): StateResponse {\n return {\n rid: bare.readUint(bc),\n state: read2(bc),\n isStateEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeStateResponse(bc: bare.ByteCursor, x: StateResponse): void {\n bare.writeUint(bc, x.rid)\n write2(bc, x.state)\n bare.writeBool(bc, x.isStateEnabled)\n}\n\nexport type ActionResponse = {\n readonly rid: uint\n readonly output: ArrayBuffer\n}\n\nexport function readActionResponse(bc: bare.ByteCursor): ActionResponse {\n return {\n rid: bare.readUint(bc),\n output: bare.readData(bc),\n }\n}\n\nexport function writeActionResponse(bc: bare.ByteCursor, x: ActionResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.output)\n}\n\nexport type TraceQueryResponse = {\n readonly rid: uint\n readonly payload: ArrayBuffer\n}\n\nexport function readTraceQueryResponse(bc: bare.ByteCursor): TraceQueryResponse {\n return {\n rid: bare.readUint(bc),\n payload: bare.readData(bc),\n }\n}\n\nexport function writeTraceQueryResponse(bc: bare.ByteCursor, x: TraceQueryResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.payload)\n}\n\nexport type QueueMessageSummary = {\n readonly id: uint\n readonly name: string\n readonly createdAtMs: uint\n}\n\nexport function readQueueMessageSummary(bc: bare.ByteCursor): QueueMessageSummary {\n return {\n id: bare.readUint(bc),\n name: bare.readString(bc),\n createdAtMs: bare.readUint(bc),\n }\n}\n\nexport function writeQueueMessageSummary(bc: bare.ByteCursor, x: QueueMessageSummary): void {\n bare.writeUint(bc, x.id)\n bare.writeString(bc, x.name)\n bare.writeUint(bc, x.createdAtMs)\n}\n\nfunction read6(bc: bare.ByteCursor): readonly QueueMessageSummary[] {\n const len = bare.readUintSafe(bc)\n if (len === 0) {\n return []\n }\n const result = [readQueueMessageSummary(bc)]\n for (let i = 1; i < len; i++) {\n result[i] = readQueueMessageSummary(bc)\n }\n return result\n}\n\nfunction write6(bc: bare.ByteCursor, x: readonly QueueMessageSummary[]): void {\n bare.writeUintSafe(bc, x.length)\n for (let i = 0; i < x.length; i++) {\n writeQueueMessageSummary(bc, x[i])\n }\n}\n\nexport type QueueStatus = {\n readonly size: uint\n readonly maxSize: uint\n readonly messages: readonly QueueMessageSummary[]\n readonly truncated: boolean\n}\n\nexport function readQueueStatus(bc: bare.ByteCursor): QueueStatus {\n return {\n size: bare.readUint(bc),\n maxSize: bare.readUint(bc),\n messages: read6(bc),\n truncated: bare.readBool(bc),\n }\n}\n\nexport function writeQueueStatus(bc: bare.ByteCursor, x: QueueStatus): void {\n bare.writeUint(bc, x.size)\n bare.writeUint(bc, x.maxSize)\n write6(bc, x.messages)\n bare.writeBool(bc, x.truncated)\n}\n\nexport type QueueResponse = {\n readonly rid: uint\n readonly status: QueueStatus\n}\n\nexport function readQueueResponse(bc: bare.ByteCursor): QueueResponse {\n return {\n rid: bare.readUint(bc),\n status: readQueueStatus(bc),\n }\n}\n\nexport function writeQueueResponse(bc: bare.ByteCursor, x: QueueResponse): void {\n bare.writeUint(bc, x.rid)\n writeQueueStatus(bc, x.status)\n}\n\nexport type WorkflowHistoryResponse = {\n readonly rid: uint\n readonly history: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n}\n\nexport function readWorkflowHistoryResponse(bc: bare.ByteCursor): WorkflowHistoryResponse {\n return {\n rid: bare.readUint(bc),\n history: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeWorkflowHistoryResponse(bc: bare.ByteCursor, x: WorkflowHistoryResponse): void {\n bare.writeUint(bc, x.rid)\n write4(bc, x.history)\n bare.writeBool(bc, x.isWorkflowEnabled)\n}\n\nexport type WorkflowReplayResponse = {\n readonly rid: uint\n readonly history: WorkflowHistory | null\n readonly isWorkflowEnabled: boolean\n}\n\nexport function readWorkflowReplayResponse(bc: bare.ByteCursor): WorkflowReplayResponse {\n return {\n rid: bare.readUint(bc),\n history: read4(bc),\n isWorkflowEnabled: bare.readBool(bc),\n }\n}\n\nexport function writeWorkflowReplayResponse(bc: bare.ByteCursor, x: WorkflowReplayResponse): void {\n bare.writeUint(bc, x.rid)\n write4(bc, x.history)\n bare.writeBool(bc, x.isWorkflowEnabled)\n}\n\nexport type DatabaseSchemaResponse = {\n readonly rid: uint\n readonly schema: ArrayBuffer\n}\n\nexport function readDatabaseSchemaResponse(bc: bare.ByteCursor): DatabaseSchemaResponse {\n return {\n rid: bare.readUint(bc),\n schema: bare.readData(bc),\n }\n}\n\nexport function writeDatabaseSchemaResponse(bc: bare.ByteCursor, x: DatabaseSchemaResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.schema)\n}\n\nexport type DatabaseTableRowsResponse = {\n readonly rid: uint\n readonly result: ArrayBuffer\n}\n\nexport function readDatabaseTableRowsResponse(bc: bare.ByteCursor): DatabaseTableRowsResponse {\n return {\n rid: bare.readUint(bc),\n result: bare.readData(bc),\n }\n}\n\nexport function writeDatabaseTableRowsResponse(bc: bare.ByteCursor, x: DatabaseTableRowsResponse): void {\n bare.writeUint(bc, x.rid)\n bare.writeData(bc, x.result)\n}\n\nexport type StateUpdated = {\n readonly state: State\n}\n\nexport function readStateUpdated(bc: bare.ByteCursor): StateUpdated {\n return {\n state: readState(bc),\n }\n}\n\nexport function writeStateUpdated(bc: bare.ByteCursor, x: StateUpdated): void {\n writeState(bc, x.state)\n}\n\nexport type QueueUpdated = {\n readonly queueSize: uint\n}\n\nexport function readQueueUpdated(bc: bare.ByteCursor): QueueUpdated {\n return {\n queueSize: bare.readUint(bc),\n }\n}\n\nexport function writeQueueUpdated(bc: bare.ByteCursor, x: QueueUpdated): void {\n bare.writeUint(bc, x.queueSize)\n}\n\nexport type WorkflowHistoryUpdated = {\n readonly history: WorkflowHistory\n}\n\nexport function readWorkflowHistoryUpdated(bc: bare.ByteCursor): WorkflowHistoryUpdated {\n return {\n history: readWorkflowHistory(bc),\n }\n}\n\nexport function writeWorkflowHistoryUpdated(bc: bare.ByteCursor, x: WorkflowHistoryUpdated): void {\n writeWorkflowHistory(bc, x.history)\n}\n\nexport type RpcsListResponse = {\n readonly rid: uint\n readonly rpcs: readonly string[]\n}\n\nexport function readRpcsListResponse(bc: bare.ByteCursor): RpcsListResponse {\n return {\n rid: bare.readUint(bc),\n rpcs: read3(bc),\n }\n}\n\nexport function writeRpcsListResponse(bc: bare.ByteCursor, x: RpcsListResponse): void {\n bare.writeUint(bc, x.rid)\n write3(bc, x.rpcs)\n}\n\nexport type ConnectionsUpdated = {\n readonly connections: readonly Connection[]\n}\n\nexport function readConnectionsUpdated(bc: bare.ByteCursor): ConnectionsUpdated {\n return {\n connections: read1(bc),\n }\n}\n\nexport function writeConnectionsUpdated(bc: bare.ByteCursor, x: ConnectionsUpdated): void {\n write1(bc, x.connections)\n}\n\nexport type Error = {\n readonly message: string\n}\n\nexport function readError(bc: bare.ByteCursor): Error {\n return {\n message: bare.readString(bc),\n }\n}\n\nexport function writeError(bc: bare.ByteCursor, x: Error): void {\n bare.writeString(bc, x.message)\n}\n\nexport type ToClientBody =\n | { readonly tag: \"StateResponse\"; readonly val: StateResponse }\n | { readonly tag: \"ConnectionsResponse\"; readonly val: ConnectionsResponse }\n | { readonly tag: \"ActionResponse\"; readonly val: ActionResponse }\n | { readonly tag: \"ConnectionsUpdated\"; readonly val: ConnectionsUpdated }\n | { readonly tag: \"QueueUpdated\"; readonly val: QueueUpdated }\n | { readonly tag: \"StateUpdated\"; readonly val: StateUpdated }\n | { readonly tag: \"WorkflowHistoryUpdated\"; readonly val: WorkflowHistoryUpdated }\n | { readonly tag: \"RpcsListResponse\"; readonly val: RpcsListResponse }\n | { readonly tag: \"TraceQueryResponse\"; readonly val: TraceQueryResponse }\n | { readonly tag: \"QueueResponse\"; readonly val: QueueResponse }\n | { readonly tag: \"WorkflowHistoryResponse\"; readonly val: WorkflowHistoryResponse }\n | { readonly tag: \"WorkflowReplayResponse\"; readonly val: WorkflowReplayResponse }\n | { readonly tag: \"Error\"; readonly val: Error }\n | { readonly tag: \"Init\"; readonly val: Init }\n | { readonly tag: \"DatabaseSchemaResponse\"; readonly val: DatabaseSchemaResponse }\n | { readonly tag: \"DatabaseTableRowsResponse\"; readonly val: DatabaseTableRowsResponse }\n\nexport function readToClientBody(bc: bare.ByteCursor): ToClientBody {\n const offset = bc.offset\n const tag = bare.readU8(bc)\n switch (tag) {\n case 0:\n return { tag: \"StateResponse\", val: readStateResponse(bc) }\n case 1:\n return { tag: \"ConnectionsResponse\", val: readConnectionsResponse(bc) }\n case 2:\n return { tag: \"ActionResponse\", val: readActionResponse(bc) }\n case 3:\n return { tag: \"ConnectionsUpdated\", val: readConnectionsUpdated(bc) }\n case 4:\n return { tag: \"QueueUpdated\", val: readQueueUpdated(bc) }\n case 5:\n return { tag: \"StateUpdated\", val: readStateUpdated(bc) }\n case 6:\n return { tag: \"WorkflowHistoryUpdated\", val: readWorkflowHistoryUpdated(bc) }\n case 7:\n return { tag: \"RpcsListResponse\", val: readRpcsListResponse(bc) }\n case 8:\n return { tag: \"TraceQueryResponse\", val: readTraceQueryResponse(bc) }\n case 9:\n return { tag: \"QueueResponse\", val: readQueueResponse(bc) }\n case 10:\n return { tag: \"WorkflowHistoryResponse\", val: readWorkflowHistoryResponse(bc) }\n case 11:\n return { tag: \"WorkflowReplayResponse\", val: readWorkflowReplayResponse(bc) }\n case 12:\n return { tag: \"Error\", val: readError(bc) }\n case 13:\n return { tag: \"Init\", val: readInit(bc) }\n case 14:\n return { tag: \"DatabaseSchemaResponse\", val: readDatabaseSchemaResponse(bc) }\n case 15:\n return { tag: \"DatabaseTableRowsResponse\", val: readDatabaseTableRowsResponse(bc) }\n default: {\n bc.offset = offset\n throw new bare.BareError(offset, \"invalid tag\")\n }\n }\n}\n\nexport function writeToClientBody(bc: bare.ByteCursor, x: ToClientBody): void {\n switch (x.tag) {\n case \"StateResponse\": {\n bare.writeU8(bc, 0)\n writeStateResponse(bc, x.val)\n break\n }\n case \"ConnectionsResponse\": {\n bare.writeU8(bc, 1)\n writeConnectionsResponse(bc, x.val)\n break\n }\n case \"ActionResponse\": {\n bare.writeU8(bc, 2)\n writeActionResponse(bc, x.val)\n break\n }\n case \"ConnectionsUpdated\": {\n bare.writeU8(bc, 3)\n writeConnectionsUpdated(bc, x.val)\n break\n }\n case \"QueueUpdated\": {\n bare.writeU8(bc, 4)\n writeQueueUpdated(bc, x.val)\n break\n }\n case \"StateUpdated\": {\n bare.writeU8(bc, 5)\n writeStateUpdated(bc, x.val)\n break\n }\n case \"WorkflowHistoryUpdated\": {\n bare.writeU8(bc, 6)\n writeWorkflowHistoryUpdated(bc, x.val)\n break\n }\n case \"RpcsListResponse\": {\n bare.writeU8(bc, 7)\n writeRpcsListResponse(bc, x.val)\n break\n }\n case \"TraceQueryResponse\": {\n bare.writeU8(bc, 8)\n writeTraceQueryResponse(bc, x.val)\n break\n }\n case \"QueueResponse\": {\n bare.writeU8(bc, 9)\n writeQueueResponse(bc, x.val)\n break\n }\n case \"WorkflowHistoryResponse\": {\n bare.writeU8(bc, 10)\n writeWorkflowHistoryResponse(bc, x.val)\n break\n }\n case \"WorkflowReplayResponse\": {\n bare.writeU8(bc, 11)\n writeWorkflowReplayResponse(bc, x.val)\n break\n }\n case \"Error\": {\n bare.writeU8(bc, 12)\n writeError(bc, x.val)\n break\n }\n case \"Init\": {\n bare.writeU8(bc, 13)\n writeInit(bc, x.val)\n break\n }\n case \"DatabaseSchemaResponse\": {\n bare.writeU8(bc, 14)\n writeDatabaseSchemaResponse(bc, x.val)\n break\n }\n case \"DatabaseTableRowsResponse\": {\n bare.writeU8(bc, 15)\n writeDatabaseTableRowsResponse(bc, x.val)\n break\n }\n }\n}\n\nexport type ToClient = {\n readonly body: ToClientBody\n}\n\nexport function readToClient(bc: bare.ByteCursor): ToClient {\n return {\n body: readToClientBody(bc),\n }\n}\n\nexport function writeToClient(bc: bare.ByteCursor, x: ToClient): void {\n writeToClientBody(bc, x.body)\n}\n\nexport function encodeToClient(x: ToClient, config?: Partial<bare.Config>): Uint8Array {\n const fullConfig = config != null ? bare.Config(config) : DEFAULT_CONFIG\n const bc = new bare.ByteCursor(\n new Uint8Array(fullConfig.initialBufferLength),\n fullConfig,\n )\n writeToClient(bc, x)\n return new Uint8Array(bc.view.buffer, bc.view.byteOffset, bc.offset)\n}\n\nexport function decodeToClient(bytes: Uint8Array): ToClient {\n const bc = new bare.ByteCursor(bytes, DEFAULT_CONFIG)\n const result = readToClient(bc)\n if (bc.offset < bc.view.byteLength) {\n throw new bare.BareError(bc.offset, \"remaining bytes\")\n }\n return result\n}\n\n\nfunction assert(condition: boolean, message?: string): asserts condition {\n if (!condition) throw new Error(message ?? \"Assertion failed\")\n}\n"],"mappings":";;;;;;;;;;;;AACA,YAAY,UAAU;AAEtB,IAAM,iBAAiC,gBAAK,YAAO,CAAC,CAAC;AAM9C,SAAS,UAAU,IAA4B;AAClD,SAAY,cAAS,EAAE;AAC3B;AAEO,SAAS,WAAW,IAAqB,GAAgB;AAC5D,EAAK,eAAU,IAAI,CAAC;AACxB;AAIO,SAAS,oBAAoB,IAAsC;AACtE,SAAY,cAAS,EAAE;AAC3B;AAEO,SAAS,qBAAqB,IAAqB,GAA0B;AAChF,EAAK,eAAU,IAA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AA,IACA,KAAK,QAAQ;AACT,MAAK,aAAQ,IAAI,EAAE;AACnB,gBAAU,IAAI,EAAE,GAAG;AACnB;AAAA,IACJ;AAAA,IACA,KAAK,0BAA0B;AAC3B,MAAK,aAAQ,IAAI,EAAE;AACnB,kCAA4B,IAAI,EAAE,GAAG;AACrC;AAAA,IACJ;AAAA,IACA,KAAK,6BAA6B;AAC9B,MAAK,aAAQ,IAAI,EAAE;AACnB,qCAA+B,IAAI,EAAE,GAAG;AACxC;AAAA,IACJ;AAAA,EACJ;AACJ;AAMO,SAAS,aAAa,IAA+B;AACxD,SAAO;AAAA,IACH,MAAM,iBAAiB,EAAE;AAAA,EAC7B;AACJ;AAEO,SAAS,cAAc,IAAqB,GAAmB;AAClE,oBAAkB,IAAI,EAAE,IAAI;AAChC;AAEO,SAAS,eAAe,GAAa,QAA2C;AACnF,QAAM,aAAa,UAAU,OAAY,YAAO,MAAM,IAAI;AAC1D,QAAM,KAAK,IAAS;AAAA,IAChB,IAAI,WAAW,WAAW,mBAAmB;AAAA,IAC7C;AAAA,EACJ;AACA,gBAAc,IAAI,CAAC;AACnB,SAAO,IAAI,WAAW,GAAG,KAAK,QAAQ,GAAG,KAAK,YAAY,GAAG,MAAM;AACvE;AAEO,SAAS,eAAe,OAA6B;AACxD,QAAM,KAAK,IAAS,gBAAW,OAAO,cAAc;AACpD,QAAM,SAAS,aAAa,EAAE;AAC9B,MAAI,GAAG,SAAS,GAAG,KAAK,YAAY;AAChC,UAAM,IAAS,eAAU,GAAG,QAAQ,iBAAiB;AAAA,EACzD;AACA,SAAO;AACX;","names":[]}
|
|
@@ -132,17 +132,6 @@ var InspectorQueueResponseSchema = _zod.z.object({
|
|
|
132
132
|
truncated: _zod.z.boolean(),
|
|
133
133
|
messages: _zod.z.array(InspectorQueueMessageSchema)
|
|
134
134
|
});
|
|
135
|
-
var InspectorTabConfigResponseSchema = _zod.z.object({
|
|
136
|
-
tabs: _zod.z.array(
|
|
137
|
-
_zod.z.object({
|
|
138
|
-
id: _zod.z.string(),
|
|
139
|
-
label: _zod.z.string().optional(),
|
|
140
|
-
icon: _zod.z.string().nullable().optional(),
|
|
141
|
-
hidden: _zod.z.boolean().optional()
|
|
142
|
-
})
|
|
143
|
-
)
|
|
144
|
-
});
|
|
145
|
-
|
|
146
135
|
|
|
147
136
|
|
|
148
137
|
|
|
@@ -169,5 +158,5 @@ var InspectorTabConfigResponseSchema = _zod.z.object({
|
|
|
169
158
|
|
|
170
159
|
|
|
171
160
|
|
|
172
|
-
exports.ACTOR_ID_PARAM = ACTOR_ID_PARAM; exports.ActorInspectorConfigSchema = _chunk3MHDOUD7cjs.ActorInspectorConfigSchema; exports.BUILTIN_INSPECTOR_TAB_IDS = _chunk3MHDOUD7cjs.BUILTIN_INSPECTOR_TAB_IDS; exports.BuiltinInspectorTabIdSchema = _chunk3MHDOUD7cjs.BuiltinInspectorTabIdSchema; exports.CustomInspectorTabEntrySchema = _chunk3MHDOUD7cjs.CustomInspectorTabEntrySchema; exports.HideInspectorTabEntrySchema = _chunk3MHDOUD7cjs.HideInspectorTabEntrySchema; exports.InspectorActionRequestSchema = InspectorActionRequestSchema; exports.InspectorActionResponseSchema = InspectorActionResponseSchema; exports.InspectorConnectionSchema = InspectorConnectionSchema; exports.InspectorConnectionsResponseSchema = InspectorConnectionsResponseSchema; exports.InspectorQueueMessageSchema = InspectorQueueMessageSchema; exports.InspectorQueueResponseSchema = InspectorQueueResponseSchema; exports.InspectorRpcsResponseSchema = InspectorRpcsResponseSchema; exports.InspectorStateResponseSchema = InspectorStateResponseSchema; exports.
|
|
161
|
+
exports.ACTOR_ID_PARAM = ACTOR_ID_PARAM; exports.ActorInspectorConfigSchema = _chunk3MHDOUD7cjs.ActorInspectorConfigSchema; exports.BUILTIN_INSPECTOR_TAB_IDS = _chunk3MHDOUD7cjs.BUILTIN_INSPECTOR_TAB_IDS; exports.BuiltinInspectorTabIdSchema = _chunk3MHDOUD7cjs.BuiltinInspectorTabIdSchema; exports.CustomInspectorTabEntrySchema = _chunk3MHDOUD7cjs.CustomInspectorTabEntrySchema; exports.HideInspectorTabEntrySchema = _chunk3MHDOUD7cjs.HideInspectorTabEntrySchema; exports.InspectorActionRequestSchema = InspectorActionRequestSchema; exports.InspectorActionResponseSchema = InspectorActionResponseSchema; exports.InspectorConnectionSchema = InspectorConnectionSchema; exports.InspectorConnectionsResponseSchema = InspectorConnectionsResponseSchema; exports.InspectorQueueMessageSchema = InspectorQueueMessageSchema; exports.InspectorQueueResponseSchema = InspectorQueueResponseSchema; exports.InspectorRpcsResponseSchema = InspectorRpcsResponseSchema; exports.InspectorStateResponseSchema = InspectorStateResponseSchema; exports.InspectorTabDescriptorSchema = InspectorTabDescriptorSchema; exports.InspectorTabEntrySchema = _chunk3MHDOUD7cjs.InspectorTabEntrySchema; exports.POSTMESSAGE_PROTOCOL_VERSION = POSTMESSAGE_PROTOCOL_VERSION; exports.SHELL_ORIGIN_PARAM = SHELL_ORIGIN_PARAM; exports.ShellToTabMessageSchema = ShellToTabMessageSchema; exports.TabToShellMessageSchema = TabToShellMessageSchema; exports.V1InitSchema = V1InitSchema; exports.V1ReadySchema = V1ReadySchema; exports.V1SetActiveTabSchema = V1SetActiveTabSchema; exports.V1TabsAvailableSchema = V1TabsAvailableSchema; exports.V1TokenRefreshNeededSchema = V1TokenRefreshNeededSchema;
|
|
173
162
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector-tab/mod.cjs","../../../src/inspector-tab/mod.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACA;ACuBA,0BAAkB;AAmDX,IAAM,6BAAA,EAA+B,MAAA,CAAE,MAAA,CAAO;AAAA,EACpD,EAAA,EAAI,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA,EACb,KAAA,EAAO,MAAA,CAAE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;AACA;AACA;AACA;AACF,+rDAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector-tab/mod.cjs","sourcesContent":[null,"/**\n * Type and schema declarations for custom Rivet inspector tabs.\n *\n * Everything here is **derived from runtime Zod schemas** that the\n * dashboard and rivetkit itself use, so the published types cannot\n * drift from the wire format. There are three sources of truth:\n *\n * 1. The `inspector.tabs[]` actor-config Zod schemas in\n * `../actor/config.ts` — re-exported below. These validate the\n * authoring surface (`defineActor({ inspector: { tabs: [...] } })`).\n * 2. The dashboard ↔ tab postMessage envelopes defined in this file.\n * The inspector-ui SPA (`frontend/apps/inspector-ui/src/bridge.ts`)\n * imports the same schemas to validate messages at runtime, so any\n * change here lands on both ends in lockstep.\n * 3. The inspector HTTP endpoint response schemas defined in this\n * file. The dashboard parses every response through them; if the\n * Rust handler ever emits a different shape, the dashboard fails\n * loudly at the parse step instead of silently casting `unknown`.\n *\n * Tab bundles import these types for autocomplete and compile-time\n * safety:\n *\n * ```ts\n * import type {\n * ShellToTabMessage,\n * TabToShellMessage,\n * V1Init,\n * InspectorStateResponse,\n * } from \"rivetkit/inspector-tab\";\n * ```\n */\n\nimport { z } from \"zod\";\n\n// ============================================================================\n// Re-exported from `../actor/config.ts` — the authoring schema for\n// `defineActor({ inspector: { tabs: [...] } })`.\n// ============================================================================\n\nexport type { ActorInspectorConfig } from \"../actor/config\";\nexport {\n\tActorInspectorConfigSchema,\n\tBUILTIN_INSPECTOR_TAB_IDS,\n\tBuiltinInspectorTabIdSchema,\n\tCustomInspectorTabEntrySchema,\n\tHideInspectorTabEntrySchema,\n\tInspectorTabEntrySchema,\n} from \"../actor/config\";\n\nimport type {\n\tCustomInspectorTabEntrySchema,\n\tHideInspectorTabEntrySchema,\n\tInspectorTabEntrySchema,\n} from \"../actor/config\";\n\n/** One entry in the actor's `inspector.tabs[]` declaration. */\nexport type ActorInspectorTabEntry = z.input<typeof InspectorTabEntrySchema>;\n/** A custom-tab entry — adds a new tab to the dashboard strip. */\nexport type ActorCustomInspectorTabEntry = z.input<\n\ttypeof CustomInspectorTabEntrySchema\n>;\n/** A hide modifier — removes a built-in tab from the strip. */\nexport type ActorHideInspectorTabEntry = z.input<\n\ttypeof HideInspectorTabEntrySchema\n>;\n/** Union of the six built-in inspector tab ids. */\nexport type BuiltinInspectorTabId =\n\t| \"workflow\"\n\t| \"database\"\n\t| \"state\"\n\t| \"queue\"\n\t| \"connections\"\n\t| \"console\";\n\n// ============================================================================\n// Dashboard ↔ tab postMessage envelope (source of truth).\n//\n// These Zod schemas are imported by `frontend/apps/inspector-ui/src/bridge.ts`\n// and used to validate inbound messages at runtime. Changes here flow to\n// both sides in a single commit.\n// ============================================================================\n\n/** Public tab descriptor that crosses the dashboard ↔ inspector-ui bridge. */\nexport const InspectorTabDescriptorSchema = z.object({\n\tid: z.string(),\n\tlabel: z.string(),\n\ticon: z.string(),\n\t/**\n\t * `true` for author-shipped custom tabs; absent or `false` for\n\t * built-in tabs the SPA renders. Lets the dashboard route the\n\t * iframe `src` to `/inspector/custom-tabs/<id>/` for custom tabs and\n\t * `/inspector/ui/` for built-ins without the dashboard needing to\n\t * know which ids are built-in.\n\t */\n\tisCustom: z.boolean().optional(),\n});\n\n/**\n * Initial handshake from the dashboard. Sent on first mount and again on\n * every token refresh. Tabs MUST accept late `init` messages and replace\n * the cached token.\n */\nexport const V1InitSchema = z.object({\n\ttype: z.literal(\"init\"),\n\tv: z.literal(1),\n\t/** The actor this tab is mounted for. */\n\tactorId: z.string(),\n\t/**\n\t * Per-actor inspector bearer token. Tabs include it as\n\t * `Authorization: Bearer ${authToken}` on every authenticated fetch.\n\t */\n\tauthToken: z.string(),\n\t/**\n\t * Outer Rivet API token. Optional; not required for inspector HTTP\n\t * routes but available to tabs that want to call the engine REST API.\n\t */\n\trivetToken: z.string().optional(),\n\t/**\n\t * The tab id the dashboard wants active at mount time. Multi-view\n\t * tabs may read this to seed their initial route; most tabs ignore it.\n\t */\n\tactiveTab: z.string().optional(),\n\t/**\n\t * Dashboard's currently active theme. Tabs that use the shared\n\t * stylesheet (`/inspector/tab.css`) mirror it by toggling the `dark`\n\t * class on `<html>`. Optional for backwards compatibility — tabs\n\t * should default to `\"dark\"` if absent (the dashboard pinned dark\n\t * mode before this field was added).\n\t */\n\ttheme: z.enum([\"light\", \"dark\"]).optional(),\n});\n\n/**\n * Dashboard tells the inspector-ui SPA which built-in tab to render. Not\n * sent to custom tabs — when the user activates a custom tab the\n * dashboard navigates the outer iframe to a different `src`.\n */\nexport const V1SetActiveTabSchema = z.object({\n\ttype: z.literal(\"set-active-tab\"),\n\tv: z.literal(1),\n\ttab: z.string(),\n});\n\n/**\n * Tab → dashboard. Sent once after the message listener is registered.\n * The dashboard hides the \"Connecting to inspector…\" overlay on receipt;\n * if it never arrives the overlay times out after 8 s.\n */\nexport const V1ReadySchema = z.object({\n\ttype: z.literal(\"ready\"),\n\tv: z.literal(1),\n});\n\n/**\n * Tab → dashboard. Sent when the tab gets a 401 on an inspector data\n * call. The dashboard refreshes the token and re-issues `v1Init`.\n */\nexport const V1TokenRefreshNeededSchema = z.object({\n\ttype: z.literal(\"token-refresh-needed\"),\n\tv: z.literal(1),\n});\n\n/**\n * Emitted by the inspector-ui SPA to tell the dashboard which tabs to\n * render in the strip. Custom tab bundles do NOT emit this — only the\n * SPA does.\n */\nexport const V1TabsAvailableSchema = z.object({\n\ttype: z.literal(\"tabs-available\"),\n\tv: z.literal(1),\n\ttabs: z.array(InspectorTabDescriptorSchema),\n});\n\n/** Discriminated union of messages a tab can RECEIVE from the dashboard. */\nexport const ShellToTabMessageSchema = z.discriminatedUnion(\"type\", [\n\tV1InitSchema,\n\tV1SetActiveTabSchema,\n]);\n\n/** Discriminated union of messages a tab can SEND to the dashboard. */\nexport const TabToShellMessageSchema = z.discriminatedUnion(\"type\", [\n\tV1ReadySchema,\n\tV1TabsAvailableSchema,\n\tV1TokenRefreshNeededSchema,\n]);\n\nexport type InspectorTabDescriptor = z.infer<\n\ttypeof InspectorTabDescriptorSchema\n>;\nexport type V1Init = z.infer<typeof V1InitSchema>;\nexport type V1SetActiveTab = z.infer<typeof V1SetActiveTabSchema>;\nexport type V1Ready = z.infer<typeof V1ReadySchema>;\nexport type V1TokenRefreshNeeded = z.infer<typeof V1TokenRefreshNeededSchema>;\nexport type V1TabsAvailable = z.infer<typeof V1TabsAvailableSchema>;\nexport type ShellToTabMessage = z.infer<typeof ShellToTabMessageSchema>;\nexport type TabToShellMessage = z.infer<typeof TabToShellMessageSchema>;\n\n/** Stable envelope protocol version. Bump only when introducing a v2 shape. */\nexport const POSTMESSAGE_PROTOCOL_VERSION = 1;\n\n/** URL query parameters the dashboard sets on the tab iframe `src`. */\nexport const SHELL_ORIGIN_PARAM = \"shellOrigin\";\nexport const ACTOR_ID_PARAM = \"actorId\";\n\n// ============================================================================\n// Inspector HTTP endpoint response schemas (source of truth).\n//\n// The dashboard parses every authenticated inspector response through\n// these schemas (`frontend/src/components/actors/actor-inspector-context.tsx`).\n// If the Rust handler emits a different shape the parse fails and the\n// dashboard surfaces an error — drift is loud.\n// ============================================================================\n\n/** `GET /inspector/state` response shape. */\nexport const InspectorStateResponseSchema = z.object({\n\t/** Current actor state (whatever shape the actor declared). */\n\tstate: z.unknown(),\n\t/**\n\t * `false` when the actor did not declare any state — `state` is then\n\t * `null` and `PATCH /inspector/state` returns an error.\n\t */\n\tisStateEnabled: z.boolean(),\n});\n\n/** `POST /inspector/action/<name>` request body. */\nexport const InspectorActionRequestSchema = z\n\t.object({\n\t\t/** Positional arguments. Mutually exclusive with `properties`. */\n\t\targs: z.array(z.unknown()).optional(),\n\t\t/** Keyed arguments. Mutually exclusive with `args`. */\n\t\tproperties: z.record(z.string(), z.unknown()).optional(),\n\t})\n\t.refine(\n\t\t(body) => !(body.args !== undefined && body.properties !== undefined),\n\t\t\"Use either `args` or `properties`, not both\",\n\t);\n\n/** `POST /inspector/action/<name>` response shape. */\nexport const InspectorActionResponseSchema = z.object({\n\toutput: z.unknown(),\n});\n\n/** `GET /inspector/rpcs` response shape — the list of action names. */\nexport const InspectorRpcsResponseSchema = z.object({\n\trpcs: z.array(z.string()),\n});\n\n/** One connection record in `GET /inspector/connections`. */\nexport const InspectorConnectionSchema = z.object({\n\tconnectionType: z.string().nullable(),\n\tid: z.string(),\n\tdetails: z.object({\n\t\tconnectionType: z.string().nullable(),\n\t\tparams: z.unknown(),\n\t\tstateEnabled: z.boolean(),\n\t\tstate: z.unknown(),\n\t\tsubscriptions: z.number(),\n\t\tisHibernatable: z.boolean(),\n\t}),\n});\n\n/** `GET /inspector/connections` response shape. */\nexport const InspectorConnectionsResponseSchema = z.object({\n\tconnections: z.array(InspectorConnectionSchema),\n});\n\n/** One queued message in `GET /inspector/queue`. */\nexport const InspectorQueueMessageSchema = z.object({\n\tid: z.string(),\n\tname: z.string(),\n\tcreatedAtMs: z.number(),\n});\n\n/** `GET /inspector/queue` response shape. */\nexport const InspectorQueueResponseSchema = z.object({\n\tsize: z.number(),\n\tmaxSize: z.number(),\n\t/** `true` if `?limit=N` truncated the message list below `size`. */\n\ttruncated: z.boolean(),\n\tmessages: z.array(InspectorQueueMessageSchema),\n});\n\n/** `GET /inspector/tab-config` response shape. */\nexport const InspectorTabConfigResponseSchema = z.object({\n\ttabs: z.array(\n\t\tz.object({\n\t\t\tid: z.string(),\n\t\t\tlabel: z.string().optional(),\n\t\t\ticon: z.string().nullable().optional(),\n\t\t\thidden: z.boolean().optional(),\n\t\t}),\n\t),\n});\n\nexport type InspectorStateResponse = z.infer<\n\ttypeof InspectorStateResponseSchema\n>;\nexport type InspectorActionRequest = z.infer<\n\ttypeof InspectorActionRequestSchema\n>;\nexport type InspectorActionResponse = z.infer<\n\ttypeof InspectorActionResponseSchema\n>;\nexport type InspectorRpcsResponse = z.infer<typeof InspectorRpcsResponseSchema>;\nexport type InspectorConnection = z.infer<typeof InspectorConnectionSchema>;\nexport type InspectorConnectionsResponse = z.infer<\n\ttypeof InspectorConnectionsResponseSchema\n>;\nexport type InspectorQueueMessage = z.infer<typeof InspectorQueueMessageSchema>;\nexport type InspectorQueueResponse = z.infer<\n\ttypeof InspectorQueueResponseSchema\n>;\nexport type InspectorTabConfigResponse = z.infer<\n\ttypeof InspectorTabConfigResponseSchema\n>;\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector-tab/mod.cjs","../../../src/inspector-tab/mod.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACA;ACuBA,0BAAkB;AAmDX,IAAM,6BAAA,EAA+B,MAAA,CAAE,MAAA,CAAO;AAAA,EACpD,EAAA,EAAI,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA,EACb,KAAA,EAAO,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA,EAChB,IAAA,EAAM,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQf,QAAA,EAAU,MAAA,CAAE,OAAA,CAAQ,CAAA,CAAE,QAAA,CAAS;AAChC,CAAC,CAAA;AAOM,IAAM,aAAA,EAAe,MAAA,CAAE,MAAA,CAAO;AAAA,EACpC,IAAA,EAAM,MAAA,CAAE,OAAA,CAAQ,MAAM,CAAA;AAAA,EACtB,CAAA,EAAG,MAAA,CAAE,OAAA,CAAQ,CAAC,CAAA;AAAA;AAAA,EAEd,OAAA,EAAS,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,SAAA,EAAW,MAAA,CAAE,MAAA,CAAO,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpB,UAAA,EAAY,MAAA,CAAE,MAAA,CAAO,CAAA,CAAE,QAAA,CAAS,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhC,SAAA,EAAW,MAAA,CAAE,MAAA,CAAO,CAAA,CAAE,QAAA,CAAS,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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,knDAAC","file":"/home/runner/work/rivet/rivet/rivetkit-typescript/packages/rivetkit/dist/tsup/inspector-tab/mod.cjs","sourcesContent":[null,"/**\n * Type and schema declarations for custom Rivet inspector tabs.\n *\n * Everything here is **derived from runtime Zod schemas** that the\n * dashboard and rivetkit itself use, so the published types cannot\n * drift from the wire format. There are three sources of truth:\n *\n * 1. The `inspector.tabs[]` actor-config Zod schemas in\n * `../actor/config.ts` — re-exported below. These validate the\n * authoring surface (`defineActor({ inspector: { tabs: [...] } })`).\n * 2. The dashboard ↔ tab postMessage envelopes defined in this file.\n * The inspector-ui SPA (`frontend/apps/inspector-ui/src/bridge.ts`)\n * imports the same schemas to validate messages at runtime, so any\n * change here lands on both ends in lockstep.\n * 3. The inspector HTTP endpoint response schemas defined in this\n * file. The dashboard parses every response through them; if the\n * Rust handler ever emits a different shape, the dashboard fails\n * loudly at the parse step instead of silently casting `unknown`.\n *\n * Tab bundles import these types for autocomplete and compile-time\n * safety:\n *\n * ```ts\n * import type {\n * ShellToTabMessage,\n * TabToShellMessage,\n * V1Init,\n * InspectorStateResponse,\n * } from \"rivetkit/inspector-tab\";\n * ```\n */\n\nimport { z } from \"zod\";\n\n// ============================================================================\n// Re-exported from `../actor/config.ts` — the authoring schema for\n// `defineActor({ inspector: { tabs: [...] } })`.\n// ============================================================================\n\nexport type { ActorInspectorConfig } from \"../actor/config\";\nexport {\n\tActorInspectorConfigSchema,\n\tBUILTIN_INSPECTOR_TAB_IDS,\n\tBuiltinInspectorTabIdSchema,\n\tCustomInspectorTabEntrySchema,\n\tHideInspectorTabEntrySchema,\n\tInspectorTabEntrySchema,\n} from \"../actor/config\";\n\nimport type {\n\tCustomInspectorTabEntrySchema,\n\tHideInspectorTabEntrySchema,\n\tInspectorTabEntrySchema,\n} from \"../actor/config\";\n\n/** One entry in the actor's `inspector.tabs[]` declaration. */\nexport type ActorInspectorTabEntry = z.input<typeof InspectorTabEntrySchema>;\n/** A custom-tab entry — adds a new tab to the dashboard strip. */\nexport type ActorCustomInspectorTabEntry = z.input<\n\ttypeof CustomInspectorTabEntrySchema\n>;\n/** A hide modifier — removes a built-in tab from the strip. */\nexport type ActorHideInspectorTabEntry = z.input<\n\ttypeof HideInspectorTabEntrySchema\n>;\n/** Union of the six built-in inspector tab ids. */\nexport type BuiltinInspectorTabId =\n\t| \"workflow\"\n\t| \"database\"\n\t| \"state\"\n\t| \"queue\"\n\t| \"connections\"\n\t| \"console\";\n\n// ============================================================================\n// Dashboard ↔ tab postMessage envelope (source of truth).\n//\n// These Zod schemas are imported by `frontend/apps/inspector-ui/src/bridge.ts`\n// and used to validate inbound messages at runtime. Changes here flow to\n// both sides in a single commit.\n// ============================================================================\n\n/** Public tab descriptor that crosses the dashboard ↔ inspector-ui bridge. */\nexport const InspectorTabDescriptorSchema = z.object({\n\tid: z.string(),\n\tlabel: z.string(),\n\ticon: z.string(),\n\t/**\n\t * `true` for author-shipped custom tabs; absent or `false` for\n\t * built-in tabs the SPA renders. Lets the dashboard route the\n\t * iframe `src` to `/inspector/custom-tabs/<id>/` for custom tabs and\n\t * `/inspector/ui/` for built-ins without the dashboard needing to\n\t * know which ids are built-in.\n\t */\n\tisCustom: z.boolean().optional(),\n});\n\n/**\n * Initial handshake from the dashboard. Sent on first mount and again on\n * every token refresh. Tabs MUST accept late `init` messages and replace\n * the cached token.\n */\nexport const V1InitSchema = z.object({\n\ttype: z.literal(\"init\"),\n\tv: z.literal(1),\n\t/** The actor this tab is mounted for. */\n\tactorId: z.string(),\n\t/**\n\t * Per-actor inspector bearer token. Tabs include it as\n\t * `Authorization: Bearer ${authToken}` on every authenticated fetch.\n\t */\n\tauthToken: z.string(),\n\t/**\n\t * Outer Rivet API token. Optional; not required for inspector HTTP\n\t * routes but available to tabs that want to call the engine REST API.\n\t */\n\trivetToken: z.string().optional(),\n\t/**\n\t * The tab id the dashboard wants active at mount time. Multi-view\n\t * tabs may read this to seed their initial route; most tabs ignore it.\n\t */\n\tactiveTab: z.string().optional(),\n\t/**\n\t * Dashboard's currently active theme. Tabs that use the shared\n\t * stylesheet (`/inspector/tab.css`) mirror it by toggling the `dark`\n\t * class on `<html>`. Optional for backwards compatibility — tabs\n\t * should default to `\"dark\"` if absent (the dashboard pinned dark\n\t * mode before this field was added).\n\t */\n\ttheme: z.enum([\"light\", \"dark\"]).optional(),\n});\n\n/**\n * Dashboard tells the inspector-ui SPA which built-in tab to render. Not\n * sent to custom tabs — when the user activates a custom tab the\n * dashboard navigates the outer iframe to a different `src`.\n */\nexport const V1SetActiveTabSchema = z.object({\n\ttype: z.literal(\"set-active-tab\"),\n\tv: z.literal(1),\n\ttab: z.string(),\n});\n\n/**\n * Tab → dashboard. Sent once after the message listener is registered.\n * The dashboard hides the \"Connecting to inspector…\" overlay on receipt;\n * if it never arrives the overlay times out after 8 s.\n */\nexport const V1ReadySchema = z.object({\n\ttype: z.literal(\"ready\"),\n\tv: z.literal(1),\n});\n\n/**\n * Tab → dashboard. Sent when the tab gets a 401 on an inspector data\n * call. The dashboard refreshes the token and re-issues `v1Init`.\n */\nexport const V1TokenRefreshNeededSchema = z.object({\n\ttype: z.literal(\"token-refresh-needed\"),\n\tv: z.literal(1),\n});\n\n/**\n * Emitted by the inspector-ui SPA to tell the dashboard which tabs to\n * render in the strip. Custom tab bundles do NOT emit this — only the\n * SPA does.\n */\nexport const V1TabsAvailableSchema = z.object({\n\ttype: z.literal(\"tabs-available\"),\n\tv: z.literal(1),\n\ttabs: z.array(InspectorTabDescriptorSchema),\n});\n\n/** Discriminated union of messages a tab can RECEIVE from the dashboard. */\nexport const ShellToTabMessageSchema = z.discriminatedUnion(\"type\", [\n\tV1InitSchema,\n\tV1SetActiveTabSchema,\n]);\n\n/** Discriminated union of messages a tab can SEND to the dashboard. */\nexport const TabToShellMessageSchema = z.discriminatedUnion(\"type\", [\n\tV1ReadySchema,\n\tV1TabsAvailableSchema,\n\tV1TokenRefreshNeededSchema,\n]);\n\nexport type InspectorTabDescriptor = z.infer<\n\ttypeof InspectorTabDescriptorSchema\n>;\nexport type V1Init = z.infer<typeof V1InitSchema>;\nexport type V1SetActiveTab = z.infer<typeof V1SetActiveTabSchema>;\nexport type V1Ready = z.infer<typeof V1ReadySchema>;\nexport type V1TokenRefreshNeeded = z.infer<typeof V1TokenRefreshNeededSchema>;\nexport type V1TabsAvailable = z.infer<typeof V1TabsAvailableSchema>;\nexport type ShellToTabMessage = z.infer<typeof ShellToTabMessageSchema>;\nexport type TabToShellMessage = z.infer<typeof TabToShellMessageSchema>;\n\n/** Stable envelope protocol version. Bump only when introducing a v2 shape. */\nexport const POSTMESSAGE_PROTOCOL_VERSION = 1;\n\n/** URL query parameters the dashboard sets on the tab iframe `src`. */\nexport const SHELL_ORIGIN_PARAM = \"shellOrigin\";\nexport const ACTOR_ID_PARAM = \"actorId\";\n\n// ============================================================================\n// Inspector HTTP endpoint response schemas (source of truth).\n//\n// The dashboard parses every authenticated inspector response through\n// these schemas (`frontend/src/components/actors/actor-inspector-context.tsx`).\n// If the Rust handler emits a different shape the parse fails and the\n// dashboard surfaces an error — drift is loud.\n// ============================================================================\n\n/** `GET /inspector/state` response shape. */\nexport const InspectorStateResponseSchema = z.object({\n\t/** Current actor state (whatever shape the actor declared). */\n\tstate: z.unknown(),\n\t/**\n\t * `false` when the actor did not declare any state — `state` is then\n\t * `null` and `PATCH /inspector/state` returns an error.\n\t */\n\tisStateEnabled: z.boolean(),\n});\n\n/** `POST /inspector/action/<name>` request body. */\nexport const InspectorActionRequestSchema = z\n\t.object({\n\t\t/** Positional arguments. Mutually exclusive with `properties`. */\n\t\targs: z.array(z.unknown()).optional(),\n\t\t/** Keyed arguments. Mutually exclusive with `args`. */\n\t\tproperties: z.record(z.string(), z.unknown()).optional(),\n\t})\n\t.refine(\n\t\t(body) => !(body.args !== undefined && body.properties !== undefined),\n\t\t\"Use either `args` or `properties`, not both\",\n\t);\n\n/** `POST /inspector/action/<name>` response shape. */\nexport const InspectorActionResponseSchema = z.object({\n\toutput: z.unknown(),\n});\n\n/** `GET /inspector/rpcs` response shape — the list of action names. */\nexport const InspectorRpcsResponseSchema = z.object({\n\trpcs: z.array(z.string()),\n});\n\n/** One connection record in `GET /inspector/connections`. */\nexport const InspectorConnectionSchema = z.object({\n\tconnectionType: z.string().nullable(),\n\tid: z.string(),\n\tdetails: z.object({\n\t\tconnectionType: z.string().nullable(),\n\t\tparams: z.unknown(),\n\t\tstateEnabled: z.boolean(),\n\t\tstate: z.unknown(),\n\t\tsubscriptions: z.number(),\n\t\tisHibernatable: z.boolean(),\n\t}),\n});\n\n/** `GET /inspector/connections` response shape. */\nexport const InspectorConnectionsResponseSchema = z.object({\n\tconnections: z.array(InspectorConnectionSchema),\n});\n\n/** One queued message in `GET /inspector/queue`. */\nexport const InspectorQueueMessageSchema = z.object({\n\tid: z.string(),\n\tname: z.string(),\n\tcreatedAtMs: z.number(),\n});\n\n/** `GET /inspector/queue` response shape. */\nexport const InspectorQueueResponseSchema = z.object({\n\tsize: z.number(),\n\tmaxSize: z.number(),\n\t/** `true` if `?limit=N` truncated the message list below `size`. */\n\ttruncated: z.boolean(),\n\tmessages: z.array(InspectorQueueMessageSchema),\n});\n\nexport type InspectorStateResponse = z.infer<\n\ttypeof InspectorStateResponseSchema\n>;\nexport type InspectorActionRequest = z.infer<\n\ttypeof InspectorActionRequestSchema\n>;\nexport type InspectorActionResponse = z.infer<\n\ttypeof InspectorActionResponseSchema\n>;\nexport type InspectorRpcsResponse = z.infer<typeof InspectorRpcsResponseSchema>;\nexport type InspectorConnection = z.infer<typeof InspectorConnectionSchema>;\nexport type InspectorConnectionsResponse = z.infer<\n\ttypeof InspectorConnectionsResponseSchema\n>;\nexport type InspectorQueueMessage = z.infer<typeof InspectorQueueMessageSchema>;\nexport type InspectorQueueResponse = z.infer<\n\ttypeof InspectorQueueResponseSchema\n>;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a0 as CustomInspectorTabEntrySchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { s as ActorInspectorConfig, t as ActorInspectorConfigSchema, U as BUILTIN_INSPECTOR_TAB_IDS, X as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { a0 as CustomInspectorTabEntrySchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema } from '../config-BfBhjEbk.cjs';
|
|
3
|
+
export { s as ActorInspectorConfig, t as ActorInspectorConfigSchema, U as BUILTIN_INSPECTOR_TAB_IDS, X as BuiltinInspectorTabIdSchema } from '../config-BfBhjEbk.cjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-D49x8NpL.cjs';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
@@ -228,15 +228,6 @@ declare const InspectorQueueResponseSchema: z.ZodObject<{
|
|
|
228
228
|
createdAtMs: z.ZodNumber;
|
|
229
229
|
}, z.core.$strip>>;
|
|
230
230
|
}, z.core.$strip>;
|
|
231
|
-
/** `GET /inspector/tab-config` response shape. */
|
|
232
|
-
declare const InspectorTabConfigResponseSchema: z.ZodObject<{
|
|
233
|
-
tabs: z.ZodArray<z.ZodObject<{
|
|
234
|
-
id: z.ZodString;
|
|
235
|
-
label: z.ZodOptional<z.ZodString>;
|
|
236
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
-
}, z.core.$strip>>;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
231
|
type InspectorStateResponse = z.infer<typeof InspectorStateResponseSchema>;
|
|
241
232
|
type InspectorActionRequest = z.infer<typeof InspectorActionRequestSchema>;
|
|
242
233
|
type InspectorActionResponse = z.infer<typeof InspectorActionResponseSchema>;
|
|
@@ -245,6 +236,5 @@ type InspectorConnection = z.infer<typeof InspectorConnectionSchema>;
|
|
|
245
236
|
type InspectorConnectionsResponse = z.infer<typeof InspectorConnectionsResponseSchema>;
|
|
246
237
|
type InspectorQueueMessage = z.infer<typeof InspectorQueueMessageSchema>;
|
|
247
238
|
type InspectorQueueResponse = z.infer<typeof InspectorQueueResponseSchema>;
|
|
248
|
-
type InspectorTabConfigResponse = z.infer<typeof InspectorTabConfigResponseSchema>;
|
|
249
239
|
|
|
250
|
-
export { ACTOR_ID_PARAM, type ActorCustomInspectorTabEntry, type ActorHideInspectorTabEntry, type ActorInspectorTabEntry, type BuiltinInspectorTabId, CustomInspectorTabEntrySchema, HideInspectorTabEntrySchema, type InspectorActionRequest, InspectorActionRequestSchema, type InspectorActionResponse, InspectorActionResponseSchema, type InspectorConnection, InspectorConnectionSchema, type InspectorConnectionsResponse, InspectorConnectionsResponseSchema, type InspectorQueueMessage, InspectorQueueMessageSchema, type InspectorQueueResponse, InspectorQueueResponseSchema, type InspectorRpcsResponse, InspectorRpcsResponseSchema, type InspectorStateResponse, InspectorStateResponseSchema, type
|
|
240
|
+
export { ACTOR_ID_PARAM, type ActorCustomInspectorTabEntry, type ActorHideInspectorTabEntry, type ActorInspectorTabEntry, type BuiltinInspectorTabId, CustomInspectorTabEntrySchema, HideInspectorTabEntrySchema, type InspectorActionRequest, InspectorActionRequestSchema, type InspectorActionResponse, InspectorActionResponseSchema, type InspectorConnection, InspectorConnectionSchema, type InspectorConnectionsResponse, InspectorConnectionsResponseSchema, type InspectorQueueMessage, InspectorQueueMessageSchema, type InspectorQueueResponse, InspectorQueueResponseSchema, type InspectorRpcsResponse, InspectorRpcsResponseSchema, type InspectorStateResponse, InspectorStateResponseSchema, type InspectorTabDescriptor, InspectorTabDescriptorSchema, InspectorTabEntrySchema, POSTMESSAGE_PROTOCOL_VERSION, SHELL_ORIGIN_PARAM, type ShellToTabMessage, ShellToTabMessageSchema, type TabToShellMessage, TabToShellMessageSchema, type V1Init, V1InitSchema, type V1Ready, V1ReadySchema, type V1SetActiveTab, V1SetActiveTabSchema, type V1TabsAvailable, V1TabsAvailableSchema, type V1TokenRefreshNeeded, V1TokenRefreshNeededSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a0 as CustomInspectorTabEntrySchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema } from '../config-
|
|
3
|
-
export { s as ActorInspectorConfig, t as ActorInspectorConfigSchema, U as BUILTIN_INSPECTOR_TAB_IDS, X as BuiltinInspectorTabIdSchema } from '../config-
|
|
2
|
+
import { a0 as CustomInspectorTabEntrySchema, ae as HideInspectorTabEntrySchema, af as InspectorTabEntrySchema } from '../config-ZkIsRFsN.js';
|
|
3
|
+
export { s as ActorInspectorConfig, t as ActorInspectorConfigSchema, U as BUILTIN_INSPECTOR_TAB_IDS, X as BuiltinInspectorTabIdSchema } from '../config-ZkIsRFsN.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../config-D49x8NpL.js';
|
|
6
6
|
import '@rivetkit/rivetkit-wasm';
|
|
@@ -228,15 +228,6 @@ declare const InspectorQueueResponseSchema: z.ZodObject<{
|
|
|
228
228
|
createdAtMs: z.ZodNumber;
|
|
229
229
|
}, z.core.$strip>>;
|
|
230
230
|
}, z.core.$strip>;
|
|
231
|
-
/** `GET /inspector/tab-config` response shape. */
|
|
232
|
-
declare const InspectorTabConfigResponseSchema: z.ZodObject<{
|
|
233
|
-
tabs: z.ZodArray<z.ZodObject<{
|
|
234
|
-
id: z.ZodString;
|
|
235
|
-
label: z.ZodOptional<z.ZodString>;
|
|
236
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
-
}, z.core.$strip>>;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
231
|
type InspectorStateResponse = z.infer<typeof InspectorStateResponseSchema>;
|
|
241
232
|
type InspectorActionRequest = z.infer<typeof InspectorActionRequestSchema>;
|
|
242
233
|
type InspectorActionResponse = z.infer<typeof InspectorActionResponseSchema>;
|
|
@@ -245,6 +236,5 @@ type InspectorConnection = z.infer<typeof InspectorConnectionSchema>;
|
|
|
245
236
|
type InspectorConnectionsResponse = z.infer<typeof InspectorConnectionsResponseSchema>;
|
|
246
237
|
type InspectorQueueMessage = z.infer<typeof InspectorQueueMessageSchema>;
|
|
247
238
|
type InspectorQueueResponse = z.infer<typeof InspectorQueueResponseSchema>;
|
|
248
|
-
type InspectorTabConfigResponse = z.infer<typeof InspectorTabConfigResponseSchema>;
|
|
249
239
|
|
|
250
|
-
export { ACTOR_ID_PARAM, type ActorCustomInspectorTabEntry, type ActorHideInspectorTabEntry, type ActorInspectorTabEntry, type BuiltinInspectorTabId, CustomInspectorTabEntrySchema, HideInspectorTabEntrySchema, type InspectorActionRequest, InspectorActionRequestSchema, type InspectorActionResponse, InspectorActionResponseSchema, type InspectorConnection, InspectorConnectionSchema, type InspectorConnectionsResponse, InspectorConnectionsResponseSchema, type InspectorQueueMessage, InspectorQueueMessageSchema, type InspectorQueueResponse, InspectorQueueResponseSchema, type InspectorRpcsResponse, InspectorRpcsResponseSchema, type InspectorStateResponse, InspectorStateResponseSchema, type
|
|
240
|
+
export { ACTOR_ID_PARAM, type ActorCustomInspectorTabEntry, type ActorHideInspectorTabEntry, type ActorInspectorTabEntry, type BuiltinInspectorTabId, CustomInspectorTabEntrySchema, HideInspectorTabEntrySchema, type InspectorActionRequest, InspectorActionRequestSchema, type InspectorActionResponse, InspectorActionResponseSchema, type InspectorConnection, InspectorConnectionSchema, type InspectorConnectionsResponse, InspectorConnectionsResponseSchema, type InspectorQueueMessage, InspectorQueueMessageSchema, type InspectorQueueResponse, InspectorQueueResponseSchema, type InspectorRpcsResponse, InspectorRpcsResponseSchema, type InspectorStateResponse, InspectorStateResponseSchema, type InspectorTabDescriptor, InspectorTabDescriptorSchema, InspectorTabEntrySchema, POSTMESSAGE_PROTOCOL_VERSION, SHELL_ORIGIN_PARAM, type ShellToTabMessage, ShellToTabMessageSchema, type TabToShellMessage, TabToShellMessageSchema, type V1Init, V1InitSchema, type V1Ready, V1ReadySchema, type V1SetActiveTab, V1SetActiveTabSchema, type V1TabsAvailable, V1TabsAvailableSchema, type V1TokenRefreshNeeded, V1TokenRefreshNeededSchema };
|
|
@@ -132,16 +132,6 @@ var InspectorQueueResponseSchema = z.object({
|
|
|
132
132
|
truncated: z.boolean(),
|
|
133
133
|
messages: z.array(InspectorQueueMessageSchema)
|
|
134
134
|
});
|
|
135
|
-
var InspectorTabConfigResponseSchema = z.object({
|
|
136
|
-
tabs: z.array(
|
|
137
|
-
z.object({
|
|
138
|
-
id: z.string(),
|
|
139
|
-
label: z.string().optional(),
|
|
140
|
-
icon: z.string().nullable().optional(),
|
|
141
|
-
hidden: z.boolean().optional()
|
|
142
|
-
})
|
|
143
|
-
)
|
|
144
|
-
});
|
|
145
135
|
export {
|
|
146
136
|
ACTOR_ID_PARAM,
|
|
147
137
|
ActorInspectorConfigSchema,
|
|
@@ -157,7 +147,6 @@ export {
|
|
|
157
147
|
InspectorQueueResponseSchema,
|
|
158
148
|
InspectorRpcsResponseSchema,
|
|
159
149
|
InspectorStateResponseSchema,
|
|
160
|
-
InspectorTabConfigResponseSchema,
|
|
161
150
|
InspectorTabDescriptorSchema,
|
|
162
151
|
InspectorTabEntrySchema,
|
|
163
152
|
POSTMESSAGE_PROTOCOL_VERSION,
|