@makaio/framework 1.0.0-dev-1783282710723 → 1.0.0-dev-1783439621927
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/.makaio-build.json +2 -2
- package/dist/adapter-Lx6K7yQS.mjs +1 -0
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +229 -41
- package/dist/adapters/index.mjs +6 -6
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-ODRyDBzu.d.mts} +79 -3
- package/dist/bus/index.mjs +1 -1
- package/dist/client-n0OJiTt1.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/config/index.d.mts +6 -6
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +375 -197
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/provider/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DFcxkf2i.d.mts → definition-DpkfJi8v.d.mts} +1 -1
- package/dist/drizzle/0021_m_mr8e1j84.sql +3 -0
- package/dist/drizzle/0022_m_mr8i4ky3.sql +43 -0
- package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
- package/dist/drizzle/meta/_journal.json +21 -0
- package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
- package/dist/handlers-B74FvKlA.mjs +57 -0
- package/dist/hooks/index.d.mts +27 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
- package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
- package/dist/{index-Bh6lHiW4.d.mts → index-B5Uczo3R.d.mts} +40 -40
- package/dist/{index-CL2T6LVv.d.mts → index-BIZeIA5k.d.mts} +8 -8
- package/dist/{index-gAFwNiJT.d.mts → index-BvTd61i5.d.mts} +212 -26
- package/dist/{index-Y2r0Zvcm.d.mts → index-BvjLe_w9.d.mts} +12 -12
- package/dist/{index-2fK9iSHI.d.mts → index-BwGfdbI0.d.mts} +9 -9
- package/dist/{index-CaOWqztb.d.mts → index-C8k2f_E0.d.mts} +1 -1
- package/dist/{index-DEzdNQum.d.mts → index-CYHWOXUm.d.mts} +1 -1
- package/dist/{index-9b2_jXxq.d.mts → index-CwHP8Jxs.d.mts} +514 -96
- package/dist/{index-D6aAzr32.d.mts → index-Cyi7y_aG.d.mts} +20 -20
- package/dist/{index-DdBRlm7m.d.mts → index-D7Fu3375.d.mts} +401 -21
- package/dist/{index-CfIW5biI.d.mts → index-D7rWAEY0.d.mts} +1 -0
- package/dist/{index-CTEsbp9H.d.mts → index-DFK3tpEY.d.mts} +83 -5
- package/dist/{index-Dg-y1mrq.d.mts → index-DS6kxiFl.d.mts} +28 -28
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-GD-i3DW7.d.mts → index-DmJ-OpTD.d.mts} +1275 -224
- package/dist/{index-DLy-tc0L.d.mts → index-Dtb2cVJz.d.mts} +260 -47
- package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{lib-Ba55od_d.mjs → lib-BOmKyjWD.mjs} +1 -1
- package/dist/{lib-CM_BUxN8.mjs → lib-DLZYp5z3.mjs} +1 -1
- package/dist/{loop-gate-handlers-BLoGCWMQ.mjs → loop-gate-handlers-Bjmat-K3.mjs} +1 -1
- package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
- package/dist/{namespace-CfvtDD_U.d.mts → namespace-BLER-Qom.d.mts} +2 -2
- package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
- package/dist/{namespace-j7vFsmYL.d.mts → namespace-C74bbsdZ.d.mts} +2 -2
- package/dist/{namespace-B4cV_pk3.d.mts → namespace-CGxFYDlK.d.mts} +32 -32
- package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
- package/dist/{namespace-KMxsPJwm.d.mts → namespace-D4Uf5Mw_.d.mts} +432 -18
- package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
- package/dist/{namespace-DXW-voCe.d.mts → namespace-DRXQyBe0.d.mts} +204 -24
- package/dist/{namespace-DGAWYjbO.d.mts → namespace-JFzrlNs4.d.mts} +27 -27
- package/dist/namespace-dFBD2ZmS.mjs +1 -0
- package/dist/node/transports/index.mjs +1 -1
- package/dist/orchestrator-shared-ChygCvR1.mjs +1 -0
- package/dist/{orchestrator-shared-ChOdIgh6.d.mts → orchestrator-shared-DFLb1otg.d.mts} +9 -3
- package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
- package/dist/package-BQn_RTo7.mjs +1 -0
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/schema-7aKBGB7S.mjs +1 -0
- package/dist/{schema-D1HrnvT7.d.mts → schema-B9goOieO.d.mts} +50 -1
- package/dist/{schema-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
- package/dist/{schemas-D-9zNyAM2.d.mts → schemas-9S9Y9PHT2.d.mts} +7 -7
- package/dist/{schemas-CoFCV42v.d.mts → schemas-B_t6oOK-.d.mts} +2 -2
- package/dist/{schemas-lnE9YoG7.d.mts → schemas-CW6YsPT4.d.mts} +3 -3
- package/dist/schemas-CkOigLAT.mjs +1 -0
- package/dist/{schemas-BemsLc_V.d.mts → schemas-CurUbHy4.d.mts} +4 -4
- package/dist/{schemas-DMCGXlKa.d.mts → schemas-DXeGCbJ9.d.mts} +4 -4
- package/dist/schemas-DZGnr9Tl.mjs +1 -0
- package/dist/{schemas-DWfo0wp4.d.mts → schemas-DnmbwE_V.d.mts} +7 -7
- package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
- package/dist/services/adapter-runtime/index.d.mts +4 -4
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +2 -2
- package/dist/services/adapter-runtime/schemas.mjs +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/harness/index.d.mts +4 -4
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +129 -53
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +86 -6
- package/dist/services/log-import/index.mjs +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +54 -0
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +44 -0
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/services/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.mjs +10 -4
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +7 -7
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +89 -0
- package/dist/services/turn/schemas.mjs +1 -1
- package/dist/session-CZUrp7gC.mjs +69 -0
- package/dist/session-Dp7z5N1d.mjs +1 -0
- package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-BvRF22by.d.mts} +10 -10
- package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-BIbUSuqg.mjs} +1 -1
- package/dist/tools-Yz8XyiwA.mjs +1 -0
- package/dist/{transition-DnXibkhX.d.mts → transition-DYorNHZu.d.mts} +1 -1
- package/dist/{types-Dur8EtpR.d.mts → types-9XCB1aPK.d.mts} +562 -107
- package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
- package/dist/{types-BslClRkH.d.mts → types-BWduCvRU.d.mts} +22 -1
- package/dist/{types-Cse8s_cD.d.mts → types-N_BOtTqt.d.mts} +29 -18
- package/dist/ui-components/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +45 -45
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/adapter-DaQqmKOJ.mjs +0 -1
- package/dist/client-BcfR-LJC.mjs +0 -1
- package/dist/handlers-BAycjV02.mjs +0 -41
- package/dist/namespace-C-piH3w4.mjs +0 -1
- package/dist/orchestrator-shared-Cxk3x8Vs.mjs +0 -1
- package/dist/package-B1AXe-oz.mjs +0 -1
- package/dist/schema-D6WAI8OL.mjs +0 -1
- package/dist/schemas-ArqQTC0Q.mjs +0 -1
- package/dist/schemas-uID59wR8.mjs +0 -1
- package/dist/session-0nWT4st6.mjs +0 -39
- package/dist/session-DH-ja8Ka.mjs +0 -1
- package/dist/tools-DFOsOboy.mjs +0 -1
|
@@ -8,11 +8,11 @@ import * as _$zod_v4_core0 from "zod/v4/core";
|
|
|
8
8
|
|
|
9
9
|
//#region core/contracts/src/session/schemas/crud.d.ts
|
|
10
10
|
/**
|
|
11
|
-
* Caller-facing fields
|
|
11
|
+
* Caller-facing fields of `session.create`.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* over this shape
|
|
13
|
+
* Kept as a named base shape so subjects that create sessions share one
|
|
14
|
+
* contract; {@link refineSpawningToolCallId} enforces the
|
|
15
|
+
* `spawningToolCallId` invariant over this shape.
|
|
16
16
|
*/
|
|
17
17
|
declare const SessionCreateBaseSchema: z.ZodObject<{
|
|
18
18
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -57,6 +57,7 @@ declare const SessionCreateBaseSchema: z.ZodObject<{
|
|
|
57
57
|
metadata: z.ZodOptional<z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
58
58
|
spawningToolCallId: z.ZodOptional<z.ZodString>;
|
|
59
59
|
originWindowId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
61
|
}, z.core.$strip>;
|
|
61
62
|
/** Parsed type for {@link SessionCreateBaseSchema}. */
|
|
62
63
|
type SessionCreateBase = z.infer<typeof SessionCreateBaseSchema>;
|
|
@@ -162,8 +163,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
|
|
|
162
163
|
lastActivityAt: z.ZodNumber;
|
|
163
164
|
}, z.core.$strip>>;
|
|
164
165
|
status: z.ZodEnum<{
|
|
165
|
-
discovered: "discovered";
|
|
166
166
|
closed: "closed";
|
|
167
|
+
discovered: "discovered";
|
|
167
168
|
active: "active";
|
|
168
169
|
archived: "archived";
|
|
169
170
|
}>;
|
|
@@ -239,6 +240,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
|
|
|
239
240
|
imported: "imported";
|
|
240
241
|
tracking: "tracking";
|
|
241
242
|
}>>;
|
|
243
|
+
isSidechain: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
245
|
}, z.core.$strip>;
|
|
243
246
|
/**
|
|
244
247
|
* Preview data for session list display.
|
|
@@ -288,8 +291,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
|
|
|
288
291
|
lastActivityAt: z.ZodNumber;
|
|
289
292
|
}, z.core.$strip>>;
|
|
290
293
|
status: z.ZodEnum<{
|
|
291
|
-
discovered: "discovered";
|
|
292
294
|
closed: "closed";
|
|
295
|
+
discovered: "discovered";
|
|
293
296
|
active: "active";
|
|
294
297
|
archived: "archived";
|
|
295
298
|
}>;
|
|
@@ -365,6 +368,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
|
|
|
365
368
|
imported: "imported";
|
|
366
369
|
tracking: "tracking";
|
|
367
370
|
}>>;
|
|
371
|
+
isSidechain: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
368
373
|
preview: z.ZodOptional<z.ZodObject<{
|
|
369
374
|
messageCount: z.ZodNumber;
|
|
370
375
|
firstUserMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -488,8 +493,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
488
493
|
lastActivityAt: z.ZodNumber;
|
|
489
494
|
}, z.core.$strip>>;
|
|
490
495
|
status: z.ZodEnum<{
|
|
491
|
-
discovered: "discovered";
|
|
492
496
|
closed: "closed";
|
|
497
|
+
discovered: "discovered";
|
|
493
498
|
active: "active";
|
|
494
499
|
archived: "archived";
|
|
495
500
|
}>;
|
|
@@ -565,6 +570,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
565
570
|
imported: "imported";
|
|
566
571
|
tracking: "tracking";
|
|
567
572
|
}>>;
|
|
573
|
+
isSidechain: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
+
machineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
568
575
|
}, z.core.$strip>>;
|
|
569
576
|
agents: z.ZodArray<z.ZodObject<{
|
|
570
577
|
agentId: z.ZodString;
|
|
@@ -672,8 +679,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
672
679
|
editOf: z.ZodOptional<z.ZodString>;
|
|
673
680
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
674
681
|
text: "text";
|
|
675
|
-
voice: "voice";
|
|
676
682
|
compact: "compact";
|
|
683
|
+
voice: "voice";
|
|
677
684
|
}>>;
|
|
678
685
|
}, z.core.$strip>>;
|
|
679
686
|
turns: z.ZodArray<z.ZodObject<{
|
|
@@ -716,7 +723,7 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
716
723
|
type: z.ZodLiteral<"agent.added">;
|
|
717
724
|
payload: z.ZodObject<{
|
|
718
725
|
sessionId: z.ZodString;
|
|
719
|
-
adapterSessionId: z.ZodString
|
|
726
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
720
727
|
agentId: z.ZodString;
|
|
721
728
|
adapterId: z.ZodString;
|
|
722
729
|
adapterName: z.ZodString;
|
|
@@ -867,8 +874,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
867
874
|
}>>;
|
|
868
875
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
869
876
|
text: "text";
|
|
870
|
-
voice: "voice";
|
|
871
877
|
compact: "compact";
|
|
878
|
+
voice: "voice";
|
|
872
879
|
}>>;
|
|
873
880
|
}, z.core.$strip>;
|
|
874
881
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -925,6 +932,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
925
932
|
}>;
|
|
926
933
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
927
934
|
}, z.core.$strip>>;
|
|
935
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
936
|
+
live: "live";
|
|
937
|
+
backfill: "backfill";
|
|
938
|
+
}>>;
|
|
928
939
|
}, z.core.$strip>;
|
|
929
940
|
}, z.core.$strip>, z.ZodObject<{
|
|
930
941
|
sessionId: z.ZodString;
|
|
@@ -957,6 +968,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
957
968
|
}>;
|
|
958
969
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
959
970
|
}, z.core.$strip>>;
|
|
971
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
972
|
+
live: "live";
|
|
973
|
+
backfill: "backfill";
|
|
974
|
+
}>>;
|
|
960
975
|
}, z.core.$strip>;
|
|
961
976
|
}, z.core.$strip>, z.ZodObject<{
|
|
962
977
|
sessionId: z.ZodString;
|
|
@@ -1012,6 +1027,47 @@ declare const SessionSnapshotSchema: z.ZodObject<{
|
|
|
1012
1027
|
tokensAfter: z.ZodOptional<z.ZodNumber>;
|
|
1013
1028
|
compressedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1014
1029
|
}, z.core.$strip>;
|
|
1030
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1031
|
+
sessionId: z.ZodString;
|
|
1032
|
+
eventId: z.ZodString;
|
|
1033
|
+
timestamp: z.ZodNumber;
|
|
1034
|
+
type: z.ZodLiteral<"locality.degraded">;
|
|
1035
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1036
|
+
intent: z.ZodEnum<{
|
|
1037
|
+
fork: "fork";
|
|
1038
|
+
resume: "resume";
|
|
1039
|
+
}>;
|
|
1040
|
+
verdictKind: z.ZodLiteral<"degrade">;
|
|
1041
|
+
reason: z.ZodEnum<{
|
|
1042
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
1043
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
1044
|
+
"no-adapter-session": "no-adapter-session";
|
|
1045
|
+
"missing-machine-id": "missing-machine-id";
|
|
1046
|
+
"machine-mismatch": "machine-mismatch";
|
|
1047
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
1048
|
+
"transforms-present": "transforms-present";
|
|
1049
|
+
"compression-present": "compression-present";
|
|
1050
|
+
"connector-swap": "connector-swap";
|
|
1051
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
1052
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
1053
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
1054
|
+
"agent-already-started": "agent-already-started";
|
|
1055
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
1056
|
+
}>;
|
|
1057
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1058
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1061
|
+
intent: z.ZodEnum<{
|
|
1062
|
+
fork: "fork";
|
|
1063
|
+
resume: "resume";
|
|
1064
|
+
}>;
|
|
1065
|
+
verdictKind: z.ZodLiteral<"foreign">;
|
|
1066
|
+
foreignMachineId: z.ZodString;
|
|
1067
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strip>], "verdictKind">;
|
|
1015
1071
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1016
1072
|
sessionId: z.ZodString;
|
|
1017
1073
|
eventId: z.ZodString;
|
|
@@ -1163,10 +1219,10 @@ declare const SessionMessageRoleSchema: z.ZodEnum<{
|
|
|
1163
1219
|
type SessionMessageRole = z.infer<typeof SessionMessageRoleSchema>;
|
|
1164
1220
|
declare const SessionMessageOriginSchema: z.ZodEnum<{
|
|
1165
1221
|
text: "text";
|
|
1166
|
-
voice: "voice";
|
|
1167
1222
|
compact: "compact";
|
|
1223
|
+
voice: "voice";
|
|
1168
1224
|
}>;
|
|
1169
|
-
type SessionMessageOrigin = z.infer<typeof SessionMessageOriginSchema>;
|
|
1225
|
+
type SessionMessageOrigin$1 = z.infer<typeof SessionMessageOriginSchema>;
|
|
1170
1226
|
/**
|
|
1171
1227
|
* A stored message in a session conversation.
|
|
1172
1228
|
*
|
|
@@ -1255,8 +1311,8 @@ declare const SessionMessageSchema$1: z.ZodObject<{
|
|
|
1255
1311
|
editOf: z.ZodOptional<z.ZodString>;
|
|
1256
1312
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1257
1313
|
text: "text";
|
|
1258
|
-
voice: "voice";
|
|
1259
1314
|
compact: "compact";
|
|
1315
|
+
voice: "voice";
|
|
1260
1316
|
}>>;
|
|
1261
1317
|
}, z.core.$strip>;
|
|
1262
1318
|
type SessionMessage$1 = z.infer<typeof SessionMessageSchema$1>;
|
|
@@ -1293,7 +1349,7 @@ declare const TurnUsageSchema$1: z.ZodObject<{
|
|
|
1293
1349
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
1294
1350
|
}, z.core.$strip>>>;
|
|
1295
1351
|
}, z.core.$strip>;
|
|
1296
|
-
type TurnUsage = z.infer<typeof TurnUsageSchema$1>;
|
|
1352
|
+
type TurnUsage$1 = z.infer<typeof TurnUsageSchema$1>;
|
|
1297
1353
|
/**
|
|
1298
1354
|
* Identifies the origin of a turn for loop prevention and audit.
|
|
1299
1355
|
*
|
|
@@ -1378,6 +1434,30 @@ type MessageRouting = z.infer<typeof MessageRoutingSchema$1>;
|
|
|
1378
1434
|
//#region core/contracts/src/session/schemas/orchestrator.d.ts
|
|
1379
1435
|
/** Parsed type for {@link TurnInitiatorSchema}. */
|
|
1380
1436
|
type TurnInitiator$1 = z.infer<typeof TurnInitiatorSchema$1>;
|
|
1437
|
+
/**
|
|
1438
|
+
* How a `session.turn.*` event entered the system.
|
|
1439
|
+
*
|
|
1440
|
+
* - `'live'` — the turn is ingested as it happens: managed orchestration
|
|
1441
|
+
* (session.sendMessage driving the turn) or a hook-triggered import of the
|
|
1442
|
+
* turn that just finished in an observed client.
|
|
1443
|
+
* - `'backfill'` — the turn is replayed from history: watcher discovery of an
|
|
1444
|
+
* existing transcript or an on-demand import of past sessions.
|
|
1445
|
+
*
|
|
1446
|
+
* This is an **emission property, not a session property**. The same observed
|
|
1447
|
+
* session can be live-followed today and backfilled for yesterday, so the
|
|
1448
|
+
* marker describes each individual emission and must never be persisted on the
|
|
1449
|
+
* turns table. Session classification lives on the session row instead
|
|
1450
|
+
* (`source` / `adapterName` / `adapterSessionId`).
|
|
1451
|
+
*
|
|
1452
|
+
* Orthogonal to {@link TurnInitiatorSchema}, which encodes actor provenance
|
|
1453
|
+
* (user | extension | system) of whoever started the turn.
|
|
1454
|
+
*/
|
|
1455
|
+
declare const TurnIngestionMarkerSchema$1: z.ZodEnum<{
|
|
1456
|
+
live: "live";
|
|
1457
|
+
backfill: "backfill";
|
|
1458
|
+
}>;
|
|
1459
|
+
/** Parsed type for {@link TurnIngestionMarkerSchema}. */
|
|
1460
|
+
type TurnIngestionMarker$1 = z.infer<typeof TurnIngestionMarkerSchema$1>;
|
|
1381
1461
|
/**
|
|
1382
1462
|
* Orchestrator schemas for turn lifecycle and user message routing.
|
|
1383
1463
|
*
|
|
@@ -2000,6 +2080,36 @@ declare const OrchestratorSchemas: {
|
|
|
2000
2080
|
fullPrefix: "fullPrefix";
|
|
2001
2081
|
}>>;
|
|
2002
2082
|
turnContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
2083
|
+
nativeLocality: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2084
|
+
kind: z.ZodLiteral<"native">;
|
|
2085
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2086
|
+
kind: z.ZodLiteral<"degrade">;
|
|
2087
|
+
reason: z.ZodEnum<{
|
|
2088
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
2089
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
2090
|
+
"no-adapter-session": "no-adapter-session";
|
|
2091
|
+
"missing-machine-id": "missing-machine-id";
|
|
2092
|
+
"machine-mismatch": "machine-mismatch";
|
|
2093
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
2094
|
+
"transforms-present": "transforms-present";
|
|
2095
|
+
"compression-present": "compression-present";
|
|
2096
|
+
"connector-swap": "connector-swap";
|
|
2097
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
2098
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
2099
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
2100
|
+
"agent-already-started": "agent-already-started";
|
|
2101
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
2102
|
+
}>;
|
|
2103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2104
|
+
kind: z.ZodLiteral<"foreign">;
|
|
2105
|
+
machineId: z.ZodString;
|
|
2106
|
+
}, z.core.$strip>], "kind">>;
|
|
2107
|
+
nativeFork: z.ZodOptional<z.ZodObject<{
|
|
2108
|
+
sourceSessionId: z.ZodString;
|
|
2109
|
+
sourceAdapterSessionId: z.ZodString;
|
|
2110
|
+
forkPointMessageId: z.ZodOptional<z.ZodString>;
|
|
2111
|
+
targetWorkingDirectory: z.ZodOptional<z.ZodString>;
|
|
2112
|
+
}, z.core.$strip>>;
|
|
2003
2113
|
}, z.core.$strip>>;
|
|
2004
2114
|
responseSchema: z.ZodOptional<z.ZodObject<{
|
|
2005
2115
|
schema: z.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, z.core.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
@@ -2016,8 +2126,8 @@ declare const OrchestratorSchemas: {
|
|
|
2016
2126
|
skipConnectorSwapWarning: z.ZodOptional<z.ZodBoolean>;
|
|
2017
2127
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2018
2128
|
text: "text";
|
|
2019
|
-
voice: "voice";
|
|
2020
2129
|
compact: "compact";
|
|
2130
|
+
voice: "voice";
|
|
2021
2131
|
}>>;
|
|
2022
2132
|
}, z.core.$strip>;
|
|
2023
2133
|
response: z.ZodObject<{
|
|
@@ -2294,7 +2404,7 @@ declare const OrchestratorSchemas: {
|
|
|
2294
2404
|
}, z.core.$strip>;
|
|
2295
2405
|
response: z.ZodObject<{
|
|
2296
2406
|
agentId: z.ZodString;
|
|
2297
|
-
adapterSessionId: z.ZodString
|
|
2407
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
2298
2408
|
role: z.ZodEnum<{
|
|
2299
2409
|
lead: "lead";
|
|
2300
2410
|
member: "member";
|
|
@@ -2560,7 +2670,7 @@ declare const OrchestratorSchemas: {
|
|
|
2560
2670
|
}, z.core.$strip>;
|
|
2561
2671
|
response: z.ZodObject<{
|
|
2562
2672
|
agentId: z.ZodString;
|
|
2563
|
-
adapterSessionId: z.ZodString
|
|
2673
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
2564
2674
|
role: z.ZodEnum<{
|
|
2565
2675
|
lead: "lead";
|
|
2566
2676
|
member: "member";
|
|
@@ -2590,6 +2700,10 @@ declare const OrchestratorSchemas: {
|
|
|
2590
2700
|
}>;
|
|
2591
2701
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
2592
2702
|
}, z.core.$strip>>;
|
|
2703
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
2704
|
+
live: "live";
|
|
2705
|
+
backfill: "backfill";
|
|
2706
|
+
}>>;
|
|
2593
2707
|
}, z.core.$strip>;
|
|
2594
2708
|
/**
|
|
2595
2709
|
* Turn completed.
|
|
@@ -2631,6 +2745,10 @@ declare const OrchestratorSchemas: {
|
|
|
2631
2745
|
}>;
|
|
2632
2746
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
2633
2747
|
}, z.core.$strip>>;
|
|
2748
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
2749
|
+
live: "live";
|
|
2750
|
+
backfill: "backfill";
|
|
2751
|
+
}>>;
|
|
2634
2752
|
}, z.core.$strip>;
|
|
2635
2753
|
/**
|
|
2636
2754
|
* Await completion of a specific session turn.
|
|
@@ -2677,6 +2795,10 @@ declare const OrchestratorSchemas: {
|
|
|
2677
2795
|
}>;
|
|
2678
2796
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
2679
2797
|
}, z.core.$strip>>;
|
|
2798
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
2799
|
+
live: "live";
|
|
2800
|
+
backfill: "backfill";
|
|
2801
|
+
}>>;
|
|
2680
2802
|
}, z.core.$strip>;
|
|
2681
2803
|
}, z.core.$strip>;
|
|
2682
2804
|
};
|
|
@@ -2822,8 +2944,8 @@ declare const OrchestratorSchemas: {
|
|
|
2822
2944
|
}>>;
|
|
2823
2945
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
2824
2946
|
text: "text";
|
|
2825
|
-
voice: "voice";
|
|
2826
2947
|
compact: "compact";
|
|
2948
|
+
voice: "voice";
|
|
2827
2949
|
}>>;
|
|
2828
2950
|
}, z.core.$strip>;
|
|
2829
2951
|
/**
|
|
@@ -2932,6 +3054,81 @@ declare const OrchestratorSchemas: {
|
|
|
2932
3054
|
};
|
|
2933
3055
|
type SendMessageRequest = z.infer<typeof OrchestratorSchemas.sendMessage.request>;
|
|
2934
3056
|
type SendMessageResponse = z.infer<typeof OrchestratorSchemas.sendMessage.response>;
|
|
3057
|
+
type TurnStarted = z.infer<(typeof OrchestratorSchemas)['turn.started']>;
|
|
3058
|
+
type TurnCompleted = z.infer<(typeof OrchestratorSchemas)['turn.completed']>;
|
|
3059
|
+
//#endregion
|
|
3060
|
+
//#region core/contracts/src/session/native-locality.d.ts
|
|
3061
|
+
/**
|
|
3062
|
+
* Closed set of reasons a session cannot be resumed or forked natively
|
|
3063
|
+
* on the current machine.
|
|
3064
|
+
*/
|
|
3065
|
+
declare const NativeLocalityReasonSchema: z.ZodEnum<{
|
|
3066
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
3067
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
3068
|
+
"no-adapter-session": "no-adapter-session";
|
|
3069
|
+
"missing-machine-id": "missing-machine-id";
|
|
3070
|
+
"machine-mismatch": "machine-mismatch";
|
|
3071
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
3072
|
+
"transforms-present": "transforms-present";
|
|
3073
|
+
"compression-present": "compression-present";
|
|
3074
|
+
"connector-swap": "connector-swap";
|
|
3075
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
3076
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
3077
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
3078
|
+
"agent-already-started": "agent-already-started";
|
|
3079
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
3080
|
+
}>;
|
|
3081
|
+
type NativeLocalityReason = z.infer<typeof NativeLocalityReasonSchema>;
|
|
3082
|
+
/**
|
|
3083
|
+
* Verdict produced by the locality evaluator for a given session.
|
|
3084
|
+
*
|
|
3085
|
+
* - `native`: The session is owned by this machine and can be resumed or
|
|
3086
|
+
* forked natively without any history injection.
|
|
3087
|
+
* - `degrade`: The session is local but a structural constraint (e.g. active
|
|
3088
|
+
* transforms, compression, connector swap) prevents native operation.
|
|
3089
|
+
* The adapter must fall back to fresh mode.
|
|
3090
|
+
* - `foreign`: The session's provider-native store lives on another machine.
|
|
3091
|
+
* Native operation is not possible without cross-machine coordination.
|
|
3092
|
+
*/
|
|
3093
|
+
declare const NativeLocalityVerdictSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3094
|
+
kind: z.ZodLiteral<"native">;
|
|
3095
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3096
|
+
kind: z.ZodLiteral<"degrade">;
|
|
3097
|
+
reason: z.ZodEnum<{
|
|
3098
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
3099
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
3100
|
+
"no-adapter-session": "no-adapter-session";
|
|
3101
|
+
"missing-machine-id": "missing-machine-id";
|
|
3102
|
+
"machine-mismatch": "machine-mismatch";
|
|
3103
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
3104
|
+
"transforms-present": "transforms-present";
|
|
3105
|
+
"compression-present": "compression-present";
|
|
3106
|
+
"connector-swap": "connector-swap";
|
|
3107
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
3108
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
3109
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
3110
|
+
"agent-already-started": "agent-already-started";
|
|
3111
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
3112
|
+
}>;
|
|
3113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3114
|
+
kind: z.ZodLiteral<"foreign">;
|
|
3115
|
+
machineId: z.ZodString;
|
|
3116
|
+
}, z.core.$strip>], "kind">;
|
|
3117
|
+
type NativeLocalityVerdict$1 = z.infer<typeof NativeLocalityVerdictSchema>;
|
|
3118
|
+
/**
|
|
3119
|
+
* Directive passed from the session orchestrator to the adapter when a
|
|
3120
|
+
* provider-native fork is requested.
|
|
3121
|
+
*
|
|
3122
|
+
* The adapter uses these fields to invoke the provider's branching API
|
|
3123
|
+
* rather than replaying history into a fresh session.
|
|
3124
|
+
*/
|
|
3125
|
+
declare const NativeForkDirectiveSchema: z.ZodObject<{
|
|
3126
|
+
sourceSessionId: z.ZodString;
|
|
3127
|
+
sourceAdapterSessionId: z.ZodString;
|
|
3128
|
+
forkPointMessageId: z.ZodOptional<z.ZodString>;
|
|
3129
|
+
targetWorkingDirectory: z.ZodOptional<z.ZodString>;
|
|
3130
|
+
}, z.core.$strip>;
|
|
3131
|
+
type NativeForkDirective$1 = z.infer<typeof NativeForkDirectiveSchema>;
|
|
2935
3132
|
//#endregion
|
|
2936
3133
|
//#region core/contracts/src/session/schemas/event.d.ts
|
|
2937
3134
|
/**
|
|
@@ -2944,7 +3141,7 @@ declare const SessionEventEnvelopeSchema: z.ZodObject<{
|
|
|
2944
3141
|
eventId: z.ZodString;
|
|
2945
3142
|
timestamp: z.ZodNumber;
|
|
2946
3143
|
}, z.core.$strip>;
|
|
2947
|
-
declare const SESSION_EVENT_TYPES: readonly ["message", "agent.added", "turn.started", "turn.completed", "user_message.sent", "user_message.acknowledged", "user_message.completed", "branch.created", "branch.merged", "squash"];
|
|
3144
|
+
declare const SESSION_EVENT_TYPES: readonly ["message", "agent.added", "turn.started", "turn.completed", "user_message.sent", "user_message.acknowledged", "user_message.completed", "branch.created", "branch.merged", "squash", "locality.degraded"];
|
|
2948
3145
|
/**
|
|
2949
3146
|
* Session event schema for storage and observability.
|
|
2950
3147
|
*
|
|
@@ -2959,7 +3156,7 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
2959
3156
|
type: z.ZodLiteral<"agent.added">;
|
|
2960
3157
|
payload: z.ZodObject<{
|
|
2961
3158
|
sessionId: z.ZodString;
|
|
2962
|
-
adapterSessionId: z.ZodString
|
|
3159
|
+
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
2963
3160
|
agentId: z.ZodString;
|
|
2964
3161
|
adapterId: z.ZodString;
|
|
2965
3162
|
adapterName: z.ZodString;
|
|
@@ -3110,8 +3307,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
3110
3307
|
}>>;
|
|
3111
3308
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
3112
3309
|
text: "text";
|
|
3113
|
-
voice: "voice";
|
|
3114
3310
|
compact: "compact";
|
|
3311
|
+
voice: "voice";
|
|
3115
3312
|
}>>;
|
|
3116
3313
|
}, z.core.$strip>;
|
|
3117
3314
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3168,6 +3365,10 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
3168
3365
|
}>;
|
|
3169
3366
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
3170
3367
|
}, z.core.$strip>>;
|
|
3368
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
3369
|
+
live: "live";
|
|
3370
|
+
backfill: "backfill";
|
|
3371
|
+
}>>;
|
|
3171
3372
|
}, z.core.$strip>;
|
|
3172
3373
|
}, z.core.$strip>, z.ZodObject<{
|
|
3173
3374
|
sessionId: z.ZodString;
|
|
@@ -3200,6 +3401,10 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
3200
3401
|
}>;
|
|
3201
3402
|
sourceId: z.ZodOptional<z.ZodString>;
|
|
3202
3403
|
}, z.core.$strip>>;
|
|
3404
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
3405
|
+
live: "live";
|
|
3406
|
+
backfill: "backfill";
|
|
3407
|
+
}>>;
|
|
3203
3408
|
}, z.core.$strip>;
|
|
3204
3409
|
}, z.core.$strip>, z.ZodObject<{
|
|
3205
3410
|
sessionId: z.ZodString;
|
|
@@ -3255,6 +3460,47 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
|
|
|
3255
3460
|
tokensAfter: z.ZodOptional<z.ZodNumber>;
|
|
3256
3461
|
compressedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3257
3462
|
}, z.core.$strip>;
|
|
3463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3464
|
+
sessionId: z.ZodString;
|
|
3465
|
+
eventId: z.ZodString;
|
|
3466
|
+
timestamp: z.ZodNumber;
|
|
3467
|
+
type: z.ZodLiteral<"locality.degraded">;
|
|
3468
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3469
|
+
intent: z.ZodEnum<{
|
|
3470
|
+
fork: "fork";
|
|
3471
|
+
resume: "resume";
|
|
3472
|
+
}>;
|
|
3473
|
+
verdictKind: z.ZodLiteral<"degrade">;
|
|
3474
|
+
reason: z.ZodEnum<{
|
|
3475
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
3476
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
3477
|
+
"no-adapter-session": "no-adapter-session";
|
|
3478
|
+
"missing-machine-id": "missing-machine-id";
|
|
3479
|
+
"machine-mismatch": "machine-mismatch";
|
|
3480
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
3481
|
+
"transforms-present": "transforms-present";
|
|
3482
|
+
"compression-present": "compression-present";
|
|
3483
|
+
"connector-swap": "connector-swap";
|
|
3484
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
3485
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
3486
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
3487
|
+
"agent-already-started": "agent-already-started";
|
|
3488
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
3489
|
+
}>;
|
|
3490
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3491
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
3492
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
3493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3494
|
+
intent: z.ZodEnum<{
|
|
3495
|
+
fork: "fork";
|
|
3496
|
+
resume: "resume";
|
|
3497
|
+
}>;
|
|
3498
|
+
verdictKind: z.ZodLiteral<"foreign">;
|
|
3499
|
+
foreignMachineId: z.ZodString;
|
|
3500
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
3501
|
+
adapterId: z.ZodOptional<z.ZodString>;
|
|
3502
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
3503
|
+
}, z.core.$strip>], "verdictKind">;
|
|
3258
3504
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
3259
3505
|
sessionId: z.ZodString;
|
|
3260
3506
|
eventId: z.ZodString;
|
|
@@ -3305,8 +3551,8 @@ interface SessionEventTypeMap {
|
|
|
3305
3551
|
* Agent added to session (correlation link).
|
|
3306
3552
|
*/
|
|
3307
3553
|
'agent.added': {
|
|
3308
|
-
sessionId: string;
|
|
3309
|
-
adapterSessionId
|
|
3554
|
+
sessionId: string; /** adapter's sessionId (generated by SDK / API); `undefined` for unconfirmed idle fork starts */
|
|
3555
|
+
adapterSessionId?: string;
|
|
3310
3556
|
agentId: string;
|
|
3311
3557
|
adapterId: string;
|
|
3312
3558
|
adapterName: string;
|
|
@@ -3320,9 +3566,11 @@ interface SessionEventTypeMap {
|
|
|
3320
3566
|
'turn.started': {
|
|
3321
3567
|
sessionId: string;
|
|
3322
3568
|
turnId: string;
|
|
3569
|
+
turnNumber: number;
|
|
3323
3570
|
messageId: string;
|
|
3324
3571
|
agentIds: string[];
|
|
3325
3572
|
initiator?: TurnInitiator$1;
|
|
3573
|
+
ingestionMarker?: TurnIngestionMarker$1;
|
|
3326
3574
|
};
|
|
3327
3575
|
/**
|
|
3328
3576
|
* Turn completed event.
|
|
@@ -3333,8 +3581,9 @@ interface SessionEventTypeMap {
|
|
|
3333
3581
|
turnNumber: number;
|
|
3334
3582
|
success: boolean;
|
|
3335
3583
|
error?: string;
|
|
3336
|
-
usage?: TurnUsage;
|
|
3584
|
+
usage?: TurnUsage$1;
|
|
3337
3585
|
initiator?: TurnInitiator$1;
|
|
3586
|
+
ingestionMarker?: TurnIngestionMarker$1;
|
|
3338
3587
|
};
|
|
3339
3588
|
/**
|
|
3340
3589
|
* User message sent to session.
|
|
@@ -3375,6 +3624,28 @@ interface SessionEventTypeMap {
|
|
|
3375
3624
|
tokensAfter?: number;
|
|
3376
3625
|
compressedMessageIds?: string[];
|
|
3377
3626
|
};
|
|
3627
|
+
/**
|
|
3628
|
+
* Native locality degradation event.
|
|
3629
|
+
*
|
|
3630
|
+
* Discriminated union on `verdictKind`: `degrade` carries `reason`,
|
|
3631
|
+
* `foreign` carries `foreignMachineId`. This makes illegal cross-field
|
|
3632
|
+
* combinations unrepresentable at compile time.
|
|
3633
|
+
*/
|
|
3634
|
+
'locality.degraded': {
|
|
3635
|
+
/** Whether the degradation occurred during a resume (attach) or fork. */intent: 'resume' | 'fork'; /** Structural constraint preventing native operation. */
|
|
3636
|
+
verdictKind: 'degrade'; /** Why native operation was degraded. */
|
|
3637
|
+
reason: z.infer<typeof NativeLocalityReasonSchema>; /** Agent ID involved, when cheaply available. */
|
|
3638
|
+
agentId?: string; /** Adapter instance ID, when cheaply available. */
|
|
3639
|
+
adapterId?: string; /** Turn ID when available (attach-time degrades have no turn yet). */
|
|
3640
|
+
turnId?: string;
|
|
3641
|
+
} | {
|
|
3642
|
+
/** Whether the degradation occurred during a resume (attach) or fork. */intent: 'resume' | 'fork'; /** Session's provider-native store lives on another machine. */
|
|
3643
|
+
verdictKind: 'foreign'; /** Machine ID that owns the provider-native session store. */
|
|
3644
|
+
foreignMachineId: string; /** Agent ID involved, when cheaply available. */
|
|
3645
|
+
agentId?: string; /** Adapter instance ID, when cheaply available. */
|
|
3646
|
+
adapterId?: string; /** Turn ID when available (attach-time degrades have no turn yet). */
|
|
3647
|
+
turnId?: string;
|
|
3648
|
+
};
|
|
3378
3649
|
/**
|
|
3379
3650
|
* Emitted on the parent session when a Claude Code compaction boundary is
|
|
3380
3651
|
* imported. Uses the plugin event path — not a core event type.
|
|
@@ -3392,7 +3663,7 @@ interface SessionEventTypeMap {
|
|
|
3392
3663
|
* Runtime validation uses {@link SessionEventTypeSchema} (accepts any string).
|
|
3393
3664
|
* Compile-time typing is derived from {@link SessionEventTypeMap} keys.
|
|
3394
3665
|
*/
|
|
3395
|
-
type SessionEventType = keyof SessionEventTypeMap;
|
|
3666
|
+
type SessionEventType$1 = keyof SessionEventTypeMap;
|
|
3396
3667
|
/**
|
|
3397
3668
|
* Get the payload type for a specific session event type.
|
|
3398
3669
|
* @typeParam T - The event type key
|
|
@@ -3402,7 +3673,7 @@ type SessionEventType = keyof SessionEventTypeMap;
|
|
|
3402
3673
|
* // { messageId: string; turnId: string | null; role: 'user' | 'assistant' }
|
|
3403
3674
|
* ```
|
|
3404
3675
|
*/
|
|
3405
|
-
type SessionEventPayload<T extends SessionEventType> = SessionEventTypeMap[T];
|
|
3676
|
+
type SessionEventPayload<T extends SessionEventType$1> = SessionEventTypeMap[T];
|
|
3406
3677
|
//#endregion
|
|
3407
3678
|
//#region core/contracts/src/session/schemas/fork-child-info.d.ts
|
|
3408
3679
|
/**
|
|
@@ -4253,6 +4524,36 @@ declare const SessionSchemas: {
|
|
|
4253
4524
|
fullPrefix: "fullPrefix";
|
|
4254
4525
|
}>>;
|
|
4255
4526
|
turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
4527
|
+
nativeLocality: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
4528
|
+
kind: _$zod.ZodLiteral<"native">;
|
|
4529
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
4530
|
+
kind: _$zod.ZodLiteral<"degrade">;
|
|
4531
|
+
reason: _$zod.ZodEnum<{
|
|
4532
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
4533
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
4534
|
+
"no-adapter-session": "no-adapter-session";
|
|
4535
|
+
"missing-machine-id": "missing-machine-id";
|
|
4536
|
+
"machine-mismatch": "machine-mismatch";
|
|
4537
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
4538
|
+
"transforms-present": "transforms-present";
|
|
4539
|
+
"compression-present": "compression-present";
|
|
4540
|
+
"connector-swap": "connector-swap";
|
|
4541
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
4542
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
4543
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
4544
|
+
"agent-already-started": "agent-already-started";
|
|
4545
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
4546
|
+
}>;
|
|
4547
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
4548
|
+
kind: _$zod.ZodLiteral<"foreign">;
|
|
4549
|
+
machineId: _$zod.ZodString;
|
|
4550
|
+
}, _$zod_v4_core0.$strip>], "kind">>;
|
|
4551
|
+
nativeFork: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
4552
|
+
sourceSessionId: _$zod.ZodString;
|
|
4553
|
+
sourceAdapterSessionId: _$zod.ZodString;
|
|
4554
|
+
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4555
|
+
targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4556
|
+
}, _$zod_v4_core0.$strip>>;
|
|
4256
4557
|
}, _$zod_v4_core0.$strip>>;
|
|
4257
4558
|
responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
4258
4559
|
schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
|
|
@@ -4269,8 +4570,8 @@ declare const SessionSchemas: {
|
|
|
4269
4570
|
skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
4270
4571
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
4271
4572
|
text: "text";
|
|
4272
|
-
voice: "voice";
|
|
4273
4573
|
compact: "compact";
|
|
4574
|
+
voice: "voice";
|
|
4274
4575
|
}>>;
|
|
4275
4576
|
}, _$zod_v4_core0.$strip>;
|
|
4276
4577
|
response: _$zod.ZodObject<{
|
|
@@ -4514,7 +4815,7 @@ declare const SessionSchemas: {
|
|
|
4514
4815
|
}, _$zod_v4_core0.$strip>;
|
|
4515
4816
|
response: _$zod.ZodObject<{
|
|
4516
4817
|
agentId: _$zod.ZodString;
|
|
4517
|
-
adapterSessionId: _$zod.ZodString
|
|
4818
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4518
4819
|
role: _$zod.ZodEnum<{
|
|
4519
4820
|
lead: "lead";
|
|
4520
4821
|
member: "member";
|
|
@@ -4772,7 +5073,7 @@ declare const SessionSchemas: {
|
|
|
4772
5073
|
}, _$zod_v4_core0.$strip>;
|
|
4773
5074
|
response: _$zod.ZodObject<{
|
|
4774
5075
|
agentId: _$zod.ZodString;
|
|
4775
|
-
adapterSessionId: _$zod.ZodString
|
|
5076
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4776
5077
|
role: _$zod.ZodEnum<{
|
|
4777
5078
|
lead: "lead";
|
|
4778
5079
|
member: "member";
|
|
@@ -4795,6 +5096,10 @@ declare const SessionSchemas: {
|
|
|
4795
5096
|
}>;
|
|
4796
5097
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4797
5098
|
}, _$zod_v4_core0.$strip>>;
|
|
5099
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5100
|
+
live: "live";
|
|
5101
|
+
backfill: "backfill";
|
|
5102
|
+
}>>;
|
|
4798
5103
|
}, _$zod_v4_core0.$strip>;
|
|
4799
5104
|
'turn.completed': _$zod.ZodObject<{
|
|
4800
5105
|
sessionId: _$zod.ZodString;
|
|
@@ -4822,6 +5127,10 @@ declare const SessionSchemas: {
|
|
|
4822
5127
|
}>;
|
|
4823
5128
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4824
5129
|
}, _$zod_v4_core0.$strip>>;
|
|
5130
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5131
|
+
live: "live";
|
|
5132
|
+
backfill: "backfill";
|
|
5133
|
+
}>>;
|
|
4825
5134
|
}, _$zod_v4_core0.$strip>;
|
|
4826
5135
|
'turn.await': {
|
|
4827
5136
|
request: _$zod.ZodObject<{
|
|
@@ -4856,6 +5165,10 @@ declare const SessionSchemas: {
|
|
|
4856
5165
|
}>;
|
|
4857
5166
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4858
5167
|
}, _$zod_v4_core0.$strip>>;
|
|
5168
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5169
|
+
live: "live";
|
|
5170
|
+
backfill: "backfill";
|
|
5171
|
+
}>>;
|
|
4859
5172
|
}, _$zod_v4_core0.$strip>;
|
|
4860
5173
|
}, _$zod_v4_core0.$strip>;
|
|
4861
5174
|
};
|
|
@@ -4994,8 +5307,8 @@ declare const SessionSchemas: {
|
|
|
4994
5307
|
}>>;
|
|
4995
5308
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
4996
5309
|
text: "text";
|
|
4997
|
-
voice: "voice";
|
|
4998
5310
|
compact: "compact";
|
|
5311
|
+
voice: "voice";
|
|
4999
5312
|
}>>;
|
|
5000
5313
|
}, _$zod_v4_core0.$strip>;
|
|
5001
5314
|
'user_message.acknowledged': _$zod.ZodObject<{
|
|
@@ -5295,8 +5608,8 @@ declare const SessionSchemas: {
|
|
|
5295
5608
|
lastActivityAt: _$zod.ZodNumber;
|
|
5296
5609
|
}, _$zod_v4_core0.$strip>>;
|
|
5297
5610
|
status: _$zod.ZodEnum<{
|
|
5298
|
-
discovered: "discovered";
|
|
5299
5611
|
closed: "closed";
|
|
5612
|
+
discovered: "discovered";
|
|
5300
5613
|
active: "active";
|
|
5301
5614
|
archived: "archived";
|
|
5302
5615
|
}>;
|
|
@@ -5372,6 +5685,8 @@ declare const SessionSchemas: {
|
|
|
5372
5685
|
imported: "imported";
|
|
5373
5686
|
tracking: "tracking";
|
|
5374
5687
|
}>>;
|
|
5688
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
5689
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
5375
5690
|
}, _$zod_v4_core0.$strip>>;
|
|
5376
5691
|
agents: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5377
5692
|
agentId: _$zod.ZodString;
|
|
@@ -5479,8 +5794,8 @@ declare const SessionSchemas: {
|
|
|
5479
5794
|
editOf: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5480
5795
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5481
5796
|
text: "text";
|
|
5482
|
-
voice: "voice";
|
|
5483
5797
|
compact: "compact";
|
|
5798
|
+
voice: "voice";
|
|
5484
5799
|
}>>;
|
|
5485
5800
|
}, _$zod_v4_core0.$strip>>;
|
|
5486
5801
|
turns: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -5523,7 +5838,7 @@ declare const SessionSchemas: {
|
|
|
5523
5838
|
type: _$zod.ZodLiteral<"agent.added">;
|
|
5524
5839
|
payload: _$zod.ZodObject<{
|
|
5525
5840
|
sessionId: _$zod.ZodString;
|
|
5526
|
-
adapterSessionId: _$zod.ZodString
|
|
5841
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5527
5842
|
agentId: _$zod.ZodString;
|
|
5528
5843
|
adapterId: _$zod.ZodString;
|
|
5529
5844
|
adapterName: _$zod.ZodString;
|
|
@@ -5674,8 +5989,8 @@ declare const SessionSchemas: {
|
|
|
5674
5989
|
}>>;
|
|
5675
5990
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
5676
5991
|
text: "text";
|
|
5677
|
-
voice: "voice";
|
|
5678
5992
|
compact: "compact";
|
|
5993
|
+
voice: "voice";
|
|
5679
5994
|
}>>;
|
|
5680
5995
|
}, _$zod_v4_core0.$strip>;
|
|
5681
5996
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
@@ -5732,6 +6047,10 @@ declare const SessionSchemas: {
|
|
|
5732
6047
|
}>;
|
|
5733
6048
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5734
6049
|
}, _$zod_v4_core0.$strip>>;
|
|
6050
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6051
|
+
live: "live";
|
|
6052
|
+
backfill: "backfill";
|
|
6053
|
+
}>>;
|
|
5735
6054
|
}, _$zod_v4_core0.$strip>;
|
|
5736
6055
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
5737
6056
|
sessionId: _$zod.ZodString;
|
|
@@ -5764,6 +6083,10 @@ declare const SessionSchemas: {
|
|
|
5764
6083
|
}>;
|
|
5765
6084
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
5766
6085
|
}, _$zod_v4_core0.$strip>>;
|
|
6086
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6087
|
+
live: "live";
|
|
6088
|
+
backfill: "backfill";
|
|
6089
|
+
}>>;
|
|
5767
6090
|
}, _$zod_v4_core0.$strip>;
|
|
5768
6091
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
5769
6092
|
sessionId: _$zod.ZodString;
|
|
@@ -5819,6 +6142,47 @@ declare const SessionSchemas: {
|
|
|
5819
6142
|
tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
5820
6143
|
compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
5821
6144
|
}, _$zod_v4_core0.$strip>;
|
|
6145
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6146
|
+
sessionId: _$zod.ZodString;
|
|
6147
|
+
eventId: _$zod.ZodString;
|
|
6148
|
+
timestamp: _$zod.ZodNumber;
|
|
6149
|
+
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
6150
|
+
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
6151
|
+
intent: _$zod.ZodEnum<{
|
|
6152
|
+
fork: "fork";
|
|
6153
|
+
resume: "resume";
|
|
6154
|
+
}>;
|
|
6155
|
+
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
6156
|
+
reason: _$zod.ZodEnum<{
|
|
6157
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
6158
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
6159
|
+
"no-adapter-session": "no-adapter-session";
|
|
6160
|
+
"missing-machine-id": "missing-machine-id";
|
|
6161
|
+
"machine-mismatch": "machine-mismatch";
|
|
6162
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
6163
|
+
"transforms-present": "transforms-present";
|
|
6164
|
+
"compression-present": "compression-present";
|
|
6165
|
+
"connector-swap": "connector-swap";
|
|
6166
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
6167
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
6168
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
6169
|
+
"agent-already-started": "agent-already-started";
|
|
6170
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
6171
|
+
}>;
|
|
6172
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6173
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6174
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6175
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6176
|
+
intent: _$zod.ZodEnum<{
|
|
6177
|
+
fork: "fork";
|
|
6178
|
+
resume: "resume";
|
|
6179
|
+
}>;
|
|
6180
|
+
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
6181
|
+
foreignMachineId: _$zod.ZodString;
|
|
6182
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6183
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6184
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6185
|
+
}, _$zod_v4_core0.$strip>], "verdictKind">;
|
|
5822
6186
|
}, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
|
|
5823
6187
|
sessionId: _$zod.ZodString;
|
|
5824
6188
|
eventId: _$zod.ZodString;
|
|
@@ -5877,8 +6241,8 @@ declare const SessionSchemas: {
|
|
|
5877
6241
|
lastActivityAt: _$zod.ZodNumber;
|
|
5878
6242
|
}, _$zod_v4_core0.$strip>>;
|
|
5879
6243
|
status: _$zod.ZodEnum<{
|
|
5880
|
-
discovered: "discovered";
|
|
5881
6244
|
closed: "closed";
|
|
6245
|
+
discovered: "discovered";
|
|
5882
6246
|
active: "active";
|
|
5883
6247
|
archived: "archived";
|
|
5884
6248
|
}>;
|
|
@@ -5954,6 +6318,8 @@ declare const SessionSchemas: {
|
|
|
5954
6318
|
imported: "imported";
|
|
5955
6319
|
tracking: "tracking";
|
|
5956
6320
|
}>>;
|
|
6321
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
6322
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
5957
6323
|
}, _$zod_v4_core0.$strip>>;
|
|
5958
6324
|
agents: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5959
6325
|
agentId: _$zod.ZodString;
|
|
@@ -6061,8 +6427,8 @@ declare const SessionSchemas: {
|
|
|
6061
6427
|
editOf: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6062
6428
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6063
6429
|
text: "text";
|
|
6064
|
-
voice: "voice";
|
|
6065
6430
|
compact: "compact";
|
|
6431
|
+
voice: "voice";
|
|
6066
6432
|
}>>;
|
|
6067
6433
|
}, _$zod_v4_core0.$strip>>;
|
|
6068
6434
|
turns: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -6105,7 +6471,7 @@ declare const SessionSchemas: {
|
|
|
6105
6471
|
type: _$zod.ZodLiteral<"agent.added">;
|
|
6106
6472
|
payload: _$zod.ZodObject<{
|
|
6107
6473
|
sessionId: _$zod.ZodString;
|
|
6108
|
-
adapterSessionId: _$zod.ZodString
|
|
6474
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6109
6475
|
agentId: _$zod.ZodString;
|
|
6110
6476
|
adapterId: _$zod.ZodString;
|
|
6111
6477
|
adapterName: _$zod.ZodString;
|
|
@@ -6256,8 +6622,8 @@ declare const SessionSchemas: {
|
|
|
6256
6622
|
}>>;
|
|
6257
6623
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6258
6624
|
text: "text";
|
|
6259
|
-
voice: "voice";
|
|
6260
6625
|
compact: "compact";
|
|
6626
|
+
voice: "voice";
|
|
6261
6627
|
}>>;
|
|
6262
6628
|
}, _$zod_v4_core0.$strip>;
|
|
6263
6629
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
@@ -6314,6 +6680,10 @@ declare const SessionSchemas: {
|
|
|
6314
6680
|
}>;
|
|
6315
6681
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6316
6682
|
}, _$zod_v4_core0.$strip>>;
|
|
6683
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6684
|
+
live: "live";
|
|
6685
|
+
backfill: "backfill";
|
|
6686
|
+
}>>;
|
|
6317
6687
|
}, _$zod_v4_core0.$strip>;
|
|
6318
6688
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6319
6689
|
sessionId: _$zod.ZodString;
|
|
@@ -6346,6 +6716,10 @@ declare const SessionSchemas: {
|
|
|
6346
6716
|
}>;
|
|
6347
6717
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6348
6718
|
}, _$zod_v4_core0.$strip>>;
|
|
6719
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6720
|
+
live: "live";
|
|
6721
|
+
backfill: "backfill";
|
|
6722
|
+
}>>;
|
|
6349
6723
|
}, _$zod_v4_core0.$strip>;
|
|
6350
6724
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6351
6725
|
sessionId: _$zod.ZodString;
|
|
@@ -6401,6 +6775,47 @@ declare const SessionSchemas: {
|
|
|
6401
6775
|
tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
6402
6776
|
compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
6403
6777
|
}, _$zod_v4_core0.$strip>;
|
|
6778
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6779
|
+
sessionId: _$zod.ZodString;
|
|
6780
|
+
eventId: _$zod.ZodString;
|
|
6781
|
+
timestamp: _$zod.ZodNumber;
|
|
6782
|
+
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
6783
|
+
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
6784
|
+
intent: _$zod.ZodEnum<{
|
|
6785
|
+
fork: "fork";
|
|
6786
|
+
resume: "resume";
|
|
6787
|
+
}>;
|
|
6788
|
+
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
6789
|
+
reason: _$zod.ZodEnum<{
|
|
6790
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
6791
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
6792
|
+
"no-adapter-session": "no-adapter-session";
|
|
6793
|
+
"missing-machine-id": "missing-machine-id";
|
|
6794
|
+
"machine-mismatch": "machine-mismatch";
|
|
6795
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
6796
|
+
"transforms-present": "transforms-present";
|
|
6797
|
+
"compression-present": "compression-present";
|
|
6798
|
+
"connector-swap": "connector-swap";
|
|
6799
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
6800
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
6801
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
6802
|
+
"agent-already-started": "agent-already-started";
|
|
6803
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
6804
|
+
}>;
|
|
6805
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6806
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6807
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6808
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6809
|
+
intent: _$zod.ZodEnum<{
|
|
6810
|
+
fork: "fork";
|
|
6811
|
+
resume: "resume";
|
|
6812
|
+
}>;
|
|
6813
|
+
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
6814
|
+
foreignMachineId: _$zod.ZodString;
|
|
6815
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6816
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6817
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6818
|
+
}, _$zod_v4_core0.$strip>], "verdictKind">;
|
|
6404
6819
|
}, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
|
|
6405
6820
|
sessionId: _$zod.ZodString;
|
|
6406
6821
|
eventId: _$zod.ZodString;
|
|
@@ -6435,7 +6850,7 @@ declare const SessionSchemas: {
|
|
|
6435
6850
|
};
|
|
6436
6851
|
'agent.added': _$zod.ZodObject<{
|
|
6437
6852
|
sessionId: _$zod.ZodString;
|
|
6438
|
-
adapterSessionId: _$zod.ZodString
|
|
6853
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6439
6854
|
agentId: _$zod.ZodString;
|
|
6440
6855
|
adapterId: _$zod.ZodString;
|
|
6441
6856
|
adapterName: _$zod.ZodString;
|
|
@@ -6490,6 +6905,46 @@ declare const SessionSchemas: {
|
|
|
6490
6905
|
previousModel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6491
6906
|
newModel: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6492
6907
|
}, _$zod_v4_core0.$strip>;
|
|
6908
|
+
'locality.degraded': _$zod.ZodIntersection<_$zod.ZodObject<{
|
|
6909
|
+
sessionId: _$zod.ZodString;
|
|
6910
|
+
eventId: _$zod.ZodString;
|
|
6911
|
+
timestamp: _$zod.ZodNumber;
|
|
6912
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
6913
|
+
intent: _$zod.ZodEnum<{
|
|
6914
|
+
fork: "fork";
|
|
6915
|
+
resume: "resume";
|
|
6916
|
+
}>;
|
|
6917
|
+
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
6918
|
+
reason: _$zod.ZodEnum<{
|
|
6919
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
6920
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
6921
|
+
"no-adapter-session": "no-adapter-session";
|
|
6922
|
+
"missing-machine-id": "missing-machine-id";
|
|
6923
|
+
"machine-mismatch": "machine-mismatch";
|
|
6924
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
6925
|
+
"transforms-present": "transforms-present";
|
|
6926
|
+
"compression-present": "compression-present";
|
|
6927
|
+
"connector-swap": "connector-swap";
|
|
6928
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
6929
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
6930
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
6931
|
+
"agent-already-started": "agent-already-started";
|
|
6932
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
6933
|
+
}>;
|
|
6934
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6935
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6936
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6937
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6938
|
+
intent: _$zod.ZodEnum<{
|
|
6939
|
+
fork: "fork";
|
|
6940
|
+
resume: "resume";
|
|
6941
|
+
}>;
|
|
6942
|
+
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
6943
|
+
foreignMachineId: _$zod.ZodString;
|
|
6944
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6945
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6946
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6947
|
+
}, _$zod_v4_core0.$strip>], "verdictKind">>;
|
|
6493
6948
|
getContextWindowState: {
|
|
6494
6949
|
request: _$zod.ZodObject<{
|
|
6495
6950
|
sessionId: _$zod.ZodString;
|
|
@@ -6528,7 +6983,7 @@ declare const SessionSchemas: {
|
|
|
6528
6983
|
type: _$zod.ZodLiteral<"agent.added">;
|
|
6529
6984
|
payload: _$zod.ZodObject<{
|
|
6530
6985
|
sessionId: _$zod.ZodString;
|
|
6531
|
-
adapterSessionId: _$zod.ZodString
|
|
6986
|
+
adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6532
6987
|
agentId: _$zod.ZodString;
|
|
6533
6988
|
adapterId: _$zod.ZodString;
|
|
6534
6989
|
adapterName: _$zod.ZodString;
|
|
@@ -6679,8 +7134,8 @@ declare const SessionSchemas: {
|
|
|
6679
7134
|
}>>;
|
|
6680
7135
|
origin: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6681
7136
|
text: "text";
|
|
6682
|
-
voice: "voice";
|
|
6683
7137
|
compact: "compact";
|
|
7138
|
+
voice: "voice";
|
|
6684
7139
|
}>>;
|
|
6685
7140
|
}, _$zod_v4_core0.$strip>;
|
|
6686
7141
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
@@ -6737,6 +7192,10 @@ declare const SessionSchemas: {
|
|
|
6737
7192
|
}>;
|
|
6738
7193
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6739
7194
|
}, _$zod_v4_core0.$strip>>;
|
|
7195
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
7196
|
+
live: "live";
|
|
7197
|
+
backfill: "backfill";
|
|
7198
|
+
}>>;
|
|
6740
7199
|
}, _$zod_v4_core0.$strip>;
|
|
6741
7200
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6742
7201
|
sessionId: _$zod.ZodString;
|
|
@@ -6769,6 +7228,10 @@ declare const SessionSchemas: {
|
|
|
6769
7228
|
}>;
|
|
6770
7229
|
sourceId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6771
7230
|
}, _$zod_v4_core0.$strip>>;
|
|
7231
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
7232
|
+
live: "live";
|
|
7233
|
+
backfill: "backfill";
|
|
7234
|
+
}>>;
|
|
6772
7235
|
}, _$zod_v4_core0.$strip>;
|
|
6773
7236
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
6774
7237
|
sessionId: _$zod.ZodString;
|
|
@@ -6824,6 +7287,47 @@ declare const SessionSchemas: {
|
|
|
6824
7287
|
tokensAfter: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
6825
7288
|
compressedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
6826
7289
|
}, _$zod_v4_core0.$strip>;
|
|
7290
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
7291
|
+
sessionId: _$zod.ZodString;
|
|
7292
|
+
eventId: _$zod.ZodString;
|
|
7293
|
+
timestamp: _$zod.ZodNumber;
|
|
7294
|
+
type: _$zod.ZodLiteral<"locality.degraded">;
|
|
7295
|
+
payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
7296
|
+
intent: _$zod.ZodEnum<{
|
|
7297
|
+
fork: "fork";
|
|
7298
|
+
resume: "resume";
|
|
7299
|
+
}>;
|
|
7300
|
+
verdictKind: _$zod.ZodLiteral<"degrade">;
|
|
7301
|
+
reason: _$zod.ZodEnum<{
|
|
7302
|
+
"adapter-unsupported": "adapter-unsupported";
|
|
7303
|
+
"adapter-mismatch": "adapter-mismatch";
|
|
7304
|
+
"no-adapter-session": "no-adapter-session";
|
|
7305
|
+
"missing-machine-id": "missing-machine-id";
|
|
7306
|
+
"machine-mismatch": "machine-mismatch";
|
|
7307
|
+
"cwd-mismatch": "cwd-mismatch";
|
|
7308
|
+
"transforms-present": "transforms-present";
|
|
7309
|
+
"compression-present": "compression-present";
|
|
7310
|
+
"connector-swap": "connector-swap";
|
|
7311
|
+
"mid-history-unsupported": "mid-history-unsupported";
|
|
7312
|
+
"hybrid-imported-orchestrated": "hybrid-imported-orchestrated";
|
|
7313
|
+
"native-attempt-failed": "native-attempt-failed";
|
|
7314
|
+
"agent-already-started": "agent-already-started";
|
|
7315
|
+
"fork-point-unresolvable": "fork-point-unresolvable";
|
|
7316
|
+
}>;
|
|
7317
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7318
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7319
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7320
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
7321
|
+
intent: _$zod.ZodEnum<{
|
|
7322
|
+
fork: "fork";
|
|
7323
|
+
resume: "resume";
|
|
7324
|
+
}>;
|
|
7325
|
+
verdictKind: _$zod.ZodLiteral<"foreign">;
|
|
7326
|
+
foreignMachineId: _$zod.ZodString;
|
|
7327
|
+
agentId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7328
|
+
adapterId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7329
|
+
turnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7330
|
+
}, _$zod_v4_core0.$strip>], "verdictKind">;
|
|
6827
7331
|
}, _$zod_v4_core0.$strip>], "type">, _$zod.ZodObject<{
|
|
6828
7332
|
sessionId: _$zod.ZodString;
|
|
6829
7333
|
eventId: _$zod.ZodString;
|
|
@@ -6835,8 +7339,8 @@ declare const SessionSchemas: {
|
|
|
6835
7339
|
request: _$zod.ZodObject<{
|
|
6836
7340
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6837
7341
|
all: "all";
|
|
6838
|
-
discovered: "discovered";
|
|
6839
7342
|
closed: "closed";
|
|
7343
|
+
discovered: "discovered";
|
|
6840
7344
|
active: "active";
|
|
6841
7345
|
archived: "archived";
|
|
6842
7346
|
}>>;
|
|
@@ -6883,8 +7387,8 @@ declare const SessionSchemas: {
|
|
|
6883
7387
|
lastActivityAt: _$zod.ZodNumber;
|
|
6884
7388
|
}, _$zod_v4_core0.$strip>>;
|
|
6885
7389
|
status: _$zod.ZodEnum<{
|
|
6886
|
-
discovered: "discovered";
|
|
6887
7390
|
closed: "closed";
|
|
7391
|
+
discovered: "discovered";
|
|
6888
7392
|
active: "active";
|
|
6889
7393
|
archived: "archived";
|
|
6890
7394
|
}>;
|
|
@@ -6960,6 +7464,8 @@ declare const SessionSchemas: {
|
|
|
6960
7464
|
imported: "imported";
|
|
6961
7465
|
tracking: "tracking";
|
|
6962
7466
|
}>>;
|
|
7467
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7468
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
6963
7469
|
preview: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
6964
7470
|
messageCount: _$zod.ZodNumber;
|
|
6965
7471
|
firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -6974,8 +7480,8 @@ declare const SessionSchemas: {
|
|
|
6974
7480
|
limit: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
6975
7481
|
status: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
6976
7482
|
all: "all";
|
|
6977
|
-
discovered: "discovered";
|
|
6978
7483
|
closed: "closed";
|
|
7484
|
+
discovered: "discovered";
|
|
6979
7485
|
active: "active";
|
|
6980
7486
|
archived: "archived";
|
|
6981
7487
|
}>>;
|
|
@@ -7019,8 +7525,8 @@ declare const SessionSchemas: {
|
|
|
7019
7525
|
lastActivityAt: _$zod.ZodNumber;
|
|
7020
7526
|
}, _$zod_v4_core0.$strip>>;
|
|
7021
7527
|
status: _$zod.ZodEnum<{
|
|
7022
|
-
discovered: "discovered";
|
|
7023
7528
|
closed: "closed";
|
|
7529
|
+
discovered: "discovered";
|
|
7024
7530
|
active: "active";
|
|
7025
7531
|
archived: "archived";
|
|
7026
7532
|
}>;
|
|
@@ -7096,6 +7602,8 @@ declare const SessionSchemas: {
|
|
|
7096
7602
|
imported: "imported";
|
|
7097
7603
|
tracking: "tracking";
|
|
7098
7604
|
}>>;
|
|
7605
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7606
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
7099
7607
|
preview: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
7100
7608
|
messageCount: _$zod.ZodNumber;
|
|
7101
7609
|
firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
|
|
@@ -7146,8 +7654,8 @@ declare const SessionSchemas: {
|
|
|
7146
7654
|
lastActivityAt: _$zod.ZodNumber;
|
|
7147
7655
|
}, _$zod_v4_core0.$strip>>;
|
|
7148
7656
|
status: _$zod.ZodEnum<{
|
|
7149
|
-
discovered: "discovered";
|
|
7150
7657
|
closed: "closed";
|
|
7658
|
+
discovered: "discovered";
|
|
7151
7659
|
active: "active";
|
|
7152
7660
|
archived: "archived";
|
|
7153
7661
|
}>;
|
|
@@ -7223,6 +7731,8 @@ declare const SessionSchemas: {
|
|
|
7223
7731
|
imported: "imported";
|
|
7224
7732
|
tracking: "tracking";
|
|
7225
7733
|
}>>;
|
|
7734
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7735
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
7226
7736
|
}, _$zod_v4_core0.$strip>>;
|
|
7227
7737
|
}, _$zod_v4_core0.$strip>;
|
|
7228
7738
|
};
|
|
@@ -7270,6 +7780,7 @@ declare const SessionSchemas: {
|
|
|
7270
7780
|
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
7271
7781
|
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7272
7782
|
originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7783
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
7273
7784
|
}, _$zod_v4_core0.$strip>;
|
|
7274
7785
|
response: _$zod.ZodObject<{
|
|
7275
7786
|
sessionId: _$zod.ZodString;
|
|
@@ -7294,6 +7805,7 @@ declare const SessionSchemas: {
|
|
|
7294
7805
|
restartAgents: {
|
|
7295
7806
|
request: _$zod.ZodObject<{
|
|
7296
7807
|
sessionId: _$zod.ZodString;
|
|
7808
|
+
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7297
7809
|
}, _$zod_v4_core0.$strip>;
|
|
7298
7810
|
response: _$zod.ZodObject<{
|
|
7299
7811
|
sessionId: _$zod.ZodString;
|
|
@@ -7385,8 +7897,8 @@ declare const SessionSchemas: {
|
|
|
7385
7897
|
lastActivityAt: _$zod.ZodNumber;
|
|
7386
7898
|
}, _$zod_v4_core0.$strip>>;
|
|
7387
7899
|
status: _$zod.ZodEnum<{
|
|
7388
|
-
discovered: "discovered";
|
|
7389
7900
|
closed: "closed";
|
|
7901
|
+
discovered: "discovered";
|
|
7390
7902
|
active: "active";
|
|
7391
7903
|
archived: "archived";
|
|
7392
7904
|
}>;
|
|
@@ -7462,6 +7974,8 @@ declare const SessionSchemas: {
|
|
|
7462
7974
|
imported: "imported";
|
|
7463
7975
|
tracking: "tracking";
|
|
7464
7976
|
}>>;
|
|
7977
|
+
isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7978
|
+
machineId: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodString>>;
|
|
7465
7979
|
}, _$zod_v4_core0.$strip>>;
|
|
7466
7980
|
}, _$zod_v4_core0.$strip>;
|
|
7467
7981
|
};
|
|
@@ -7475,65 +7989,6 @@ declare const SessionSchemas: {
|
|
|
7475
7989
|
discovered: _$zod.ZodNumber;
|
|
7476
7990
|
}, _$zod_v4_core0.$strip>;
|
|
7477
7991
|
};
|
|
7478
|
-
registerExternal: {
|
|
7479
|
-
request: _$zod.ZodObject<{
|
|
7480
|
-
sessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7481
|
-
parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7482
|
-
contextInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
7483
|
-
none: "none";
|
|
7484
|
-
"parent-history": "parent-history";
|
|
7485
|
-
}>>;
|
|
7486
|
-
forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7487
|
-
branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
7488
|
-
fork: "fork";
|
|
7489
|
-
subagent: "subagent";
|
|
7490
|
-
compress: "compress";
|
|
7491
|
-
branch: "branch";
|
|
7492
|
-
rewrite: "rewrite";
|
|
7493
|
-
coordinator: "coordinator";
|
|
7494
|
-
aside: "aside";
|
|
7495
|
-
}>>;
|
|
7496
|
-
forkTransforms: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
7497
|
-
removedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
7498
|
-
appliedPipeline: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
7499
|
-
actionId: _$zod.ZodString;
|
|
7500
|
-
options: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
7501
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
7502
|
-
segments: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
7503
|
-
fromMessageId: _$zod.ZodString;
|
|
7504
|
-
toMessageId: _$zod.ZodString;
|
|
7505
|
-
policy: _$zod.ZodEnum<{
|
|
7506
|
-
verbatim: "verbatim";
|
|
7507
|
-
summarize: "summarize";
|
|
7508
|
-
exclude: "exclude";
|
|
7509
|
-
}>;
|
|
7510
|
-
stripReasoning: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7511
|
-
stripToolOutputs: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
7512
|
-
overrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodLiteral<"exclude">>>;
|
|
7513
|
-
summaryText: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7514
|
-
}, _$zod_v4_core0.$strip>>>;
|
|
7515
|
-
}, _$zod_v4_core0.$strip>>;
|
|
7516
|
-
title: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7517
|
-
targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7518
|
-
executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7519
|
-
metadata: _$zod.ZodOptional<_$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>>;
|
|
7520
|
-
spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7521
|
-
originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7522
|
-
adapterName: _$zod.ZodString;
|
|
7523
|
-
adapterSessionId: _$zod.ZodString;
|
|
7524
|
-
lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
7525
|
-
clientId: _$zod.ZodString;
|
|
7526
|
-
source: _$zod.ZodString;
|
|
7527
|
-
kind: _$zod.ZodString;
|
|
7528
|
-
observedAt: _$zod.ZodNumber;
|
|
7529
|
-
payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
|
|
7530
|
-
}, _$zod_v4_core0.$strip>>;
|
|
7531
|
-
}, _$zod_v4_core0.$strip>;
|
|
7532
|
-
response: _$zod.ZodObject<{
|
|
7533
|
-
sessionId: _$zod.ZodString;
|
|
7534
|
-
created: _$zod.ZodBoolean;
|
|
7535
|
-
}, _$zod_v4_core0.$strip>;
|
|
7536
|
-
};
|
|
7537
7992
|
};
|
|
7538
7993
|
//#endregion
|
|
7539
7994
|
//#region core/contracts/src/session/types.d.ts
|
|
@@ -7637,4 +8092,4 @@ type KnownSessionEvent = { [K in RuntimeKnownSessionEventType]: SessionEventBase
|
|
|
7637
8092
|
*/
|
|
7638
8093
|
declare function isKnownSessionEvent(event: MakaioSessionEvent$1): event is KnownSessionEvent;
|
|
7639
8094
|
//#endregion
|
|
7640
|
-
export {
|
|
8095
|
+
export { TurnStatus as $, NativeLocalityVerdictSchema as A, MessageRoutingStatusSchema as B, SessionEventTypeMap as C, SessionRecordMetadataSchema$1 as Ct, NativeLocalityReason as D, MakaioSessionAgentSchema$1 as Dt, NativeForkDirectiveSchema as E, AgentStatusSchema$1 as Et, TurnIngestionMarkerSchema$1 as F, SessionMessageOriginSchema as G, SessionMessageBlock$1 as H, TurnStarted as I, SessionMessageSchema$1 as J, SessionMessageRole as K, MessageRouting as L, SendMessageResponse as M, TurnCompleted as N, NativeLocalityReasonSchema as O, SessionCreateBase as Ot, TurnIngestionMarker$1 as P, TurnSchema$1 as Q, MessageRoutingSchema$1 as R, SessionEventType$1 as S, SessionRecordMetadata as St, NativeForkDirective$1 as T, AgentStatus as Tt, SessionMessageBlockSchema as U, SessionMessage$1 as V, SessionMessageOrigin$1 as W, TurnInitiator$2 as X, Turn$1 as Y, TurnInitiatorSchema$1 as Z, ForkChildInfo as _, SnapshotPreviewData as _t, SessionPreviewData as a, AgentRole as at, SESSION_EVENT_TYPES as b, MakaioSessionSchema as bt, SessionSchemas as c, BranchKindSchema as ct, SegmentPolicy as d, SNAPSHOT_VERSION as dt, TurnStatusSchema$1 as et, SegmentPolicySchema as f, SessionSnapshot as ft, SessionUpdatedEventSchema as g, SnapshotImportConflictErrorData as gt, SessionUpdatedEvent as h, SnapshotExportOptionsSchema as ht, MakaioSessionEvent$1 as i, UsageMetricsSchema as it, SendMessageRequest as j, NativeLocalityVerdict$1 as k, SessionCreateBaseSchema as kt, ForkTransforms$1 as l, ImportStatus as lt, SessionCreatedEventSchema as m, SnapshotExportOptions as mt, KnownSessionEvent as n, TurnUsageSchema$1 as nt, SessionWithPreview as o, AgentRoleSchema as ot, SessionCreated as p, SessionSnapshotSchema as pt, SessionMessageRoleSchema as q, MakaioSessionAgent$1 as r, UsageMetrics as rt, isKnownSessionEvent as s, BranchKind$1 as st, IMakaioSession$1 as t, TurnUsage$1 as tt, ForkTransformsSchema$1 as u, ImportStatusSchema as ut, ForkChildInfoSchema as v, safeValidateSnapshot as vt, SessionEventTypeSchema as w, SessionWithPreviewSchema as wt, SessionEventPayload as x, SessionPreviewDataSchema as xt, MakaioSessionEventSchema as y, validateSnapshot as yt, MessageRoutingStatus as z };
|