@makaio/framework 1.0.0-dev-1783282710723 → 1.0.0-dev-1783355411417
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-BRxCc72E.mjs +1 -0
- package/dist/adapters/index.d.mts +11 -2
- package/dist/adapters/index.mjs +1 -1
- package/dist/adapters/node.d.mts +1 -1
- package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-BNysGvaM.d.mts} +70 -2
- package/dist/bus/index.mjs +1 -1
- package/dist/{client-BcfR-LJC.mjs → client-BgUjVbXX.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +24 -24
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/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-b9jyJqPD.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/meta/_journal.json +14 -0
- package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
- package/dist/handlers-v47Gbsr1.mjs +57 -0
- package/dist/hooks/index.d.mts +8 -0
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-CTEsbp9H.d.mts → index-31vR1sxk.d.mts} +31 -13
- package/dist/{index-9b2_jXxq.d.mts → index-3J0HZlPH.d.mts} +372 -87
- package/dist/{index-Bh6lHiW4.d.mts → index-3X0368CL.d.mts} +16 -16
- package/dist/{index-Y2r0Zvcm.d.mts → index-B5w-0Gg9.d.mts} +4 -4
- package/dist/{index-DdBRlm7m.d.mts → index-BKZhnb2B.d.mts} +3 -3
- package/dist/{index-gAFwNiJT.d.mts → index-BYfSAJRC.d.mts} +64 -0
- package/dist/{index-2fK9iSHI.d.mts → index-BwGfdbI0.d.mts} +9 -9
- package/dist/{index-DLy-tc0L.d.mts → index-C5C1tk9f.d.mts} +214 -1
- package/dist/{index-CL2T6LVv.d.mts → index-C6Ys8pxt.d.mts} +9 -9
- package/dist/{index-NkNbYFud.d.mts → index-CaerrEDH.d.mts} +1 -1
- package/dist/{index-CfIW5biI.d.mts → index-D7rWAEY0.d.mts} +1 -0
- package/dist/{index-CaOWqztb.d.mts → index-DQYj8-53.d.mts} +1 -1
- package/dist/{index-Dg-y1mrq.d.mts → index-DV4nRk0h.d.mts} +14 -14
- package/dist/{index-GD-i3DW7.d.mts → index-DvHYpi-J.d.mts} +365 -163
- package/dist/{index-BMbmoarE.d.mts → index-O08Q2ikz.d.mts} +8 -8
- 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-DGAWYjbO.d.mts → namespace-Bm77p82L.d.mts} +5 -5
- package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
- package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
- package/dist/{namespace-KMxsPJwm.d.mts → namespace-DhDY0juT.d.mts} +66 -0
- package/dist/{namespace-DXW-voCe.d.mts → namespace-DmqoDDRD.d.mts} +158 -22
- 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-BmRhhi-3.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-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
- package/dist/{schema-D1HrnvT7.d.mts → schema-DLNBajAV.d.mts} +23 -1
- package/dist/{schemas-DMCGXlKa.d.mts → schemas-DMMWmWjq.d.mts} +3 -3
- package/dist/schemas-DZGnr9Tl.mjs +1 -0
- package/dist/{schemas-D-9zNyAM2.d.mts → schemas-DuuVuhHX2.d.mts} +2 -2
- package/dist/schemas-ftgVeWIG.mjs +1 -0
- package/dist/services/context-rules/index.d.mts +6 -6
- package/dist/services/filesystem/namespace.d.mts +12 -12
- package/dist/services/filesystem/schemas.d.mts +6 -6
- package/dist/services/git/namespace.d.mts +4 -4
- package/dist/services/git/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +1 -1
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +87 -18
- 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 +73 -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/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 +9 -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/settings/namespace.d.mts +2 -2
- package/dist/services/subagent-template/index.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/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-CKWfn3oc.mjs +1 -0
- package/dist/session-DCbJwYEU.mjs +69 -0
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-MU_DmJsf.mjs} +1 -1
- package/dist/tools-BrNm-een.mjs +1 -0
- package/dist/{transition-DnXibkhX.d.mts → transition-Dq41YCkc.d.mts} +1 -1
- package/dist/{types-BslClRkH.d.mts → types-BMlzmWp6.d.mts} +11 -1
- package/dist/{types-Dur8EtpR.d.mts → types-C76EP81O.d.mts} +125 -82
- package/dist/ui-components/index.mjs +1 -1
- package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +1 -1
- package/dist/workflow-engine/index.mjs +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/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
|
@@ -80,6 +80,7 @@ declare const LogImportNamespace: _$_makaio_core0.BusNamespaceDefinition<"log-im
|
|
|
80
80
|
logFilePattern: _$zod.ZodString;
|
|
81
81
|
isRunning: _$zod.ZodBoolean;
|
|
82
82
|
supportsManualImport: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
83
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
83
84
|
}, _$zod_v4_core0.$strip>>;
|
|
84
85
|
}, _$zod_v4_core0.$strip>;
|
|
85
86
|
};
|
|
@@ -116,12 +117,38 @@ declare const LogImportNamespace: _$_makaio_core0.BusNamespaceDefinition<"log-im
|
|
|
116
117
|
request: _$zod.ZodObject<{
|
|
117
118
|
adapterSessionId: _$zod.ZodString;
|
|
118
119
|
adapterName: _$zod.ZodString;
|
|
120
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
121
|
+
live: "live";
|
|
122
|
+
backfill: "backfill";
|
|
123
|
+
}>>;
|
|
119
124
|
}, _$zod_v4_core0.$strip>;
|
|
120
125
|
response: _$zod.ZodObject<{
|
|
121
126
|
sessionId: _$zod.ZodString;
|
|
122
127
|
messageCount: _$zod.ZodNumber;
|
|
123
128
|
}, _$zod_v4_core0.$strip>;
|
|
124
129
|
};
|
|
130
|
+
importFile: {
|
|
131
|
+
request: _$zod.ZodObject<{
|
|
132
|
+
filePath: _$zod.ZodString;
|
|
133
|
+
adapterName: _$zod.ZodString;
|
|
134
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
135
|
+
live: "live";
|
|
136
|
+
backfill: "backfill";
|
|
137
|
+
}>>;
|
|
138
|
+
}, _$zod_v4_core0.$strip>;
|
|
139
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
140
|
+
status: _$zod.ZodLiteral<"imported">;
|
|
141
|
+
sessionId: _$zod.ZodString;
|
|
142
|
+
messageCount: _$zod.ZodNumber;
|
|
143
|
+
turnCount: _$zod.ZodNumber;
|
|
144
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
145
|
+
status: _$zod.ZodLiteral<"skipped">;
|
|
146
|
+
reason: _$zod.ZodEnum<{
|
|
147
|
+
"no-importer": "no-importer";
|
|
148
|
+
"file-missing": "file-missing";
|
|
149
|
+
}>;
|
|
150
|
+
}, _$zod_v4_core0.$strip>], "status">;
|
|
151
|
+
};
|
|
125
152
|
getMode: {
|
|
126
153
|
request: _$zod.ZodObject<{
|
|
127
154
|
adapterName: _$zod.ZodString;
|
|
@@ -240,6 +267,7 @@ declare const LogImportSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
240
267
|
logFilePattern: _$zod.ZodString;
|
|
241
268
|
isRunning: _$zod.ZodBoolean;
|
|
242
269
|
supportsManualImport: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
270
|
+
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
243
271
|
}, _$zod_v4_core0.$strip>>;
|
|
244
272
|
}, _$zod_v4_core0.$strip>;
|
|
245
273
|
};
|
|
@@ -276,12 +304,38 @@ declare const LogImportSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
276
304
|
request: _$zod.ZodObject<{
|
|
277
305
|
adapterSessionId: _$zod.ZodString;
|
|
278
306
|
adapterName: _$zod.ZodString;
|
|
307
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
308
|
+
live: "live";
|
|
309
|
+
backfill: "backfill";
|
|
310
|
+
}>>;
|
|
279
311
|
}, _$zod_v4_core0.$strip>;
|
|
280
312
|
response: _$zod.ZodObject<{
|
|
281
313
|
sessionId: _$zod.ZodString;
|
|
282
314
|
messageCount: _$zod.ZodNumber;
|
|
283
315
|
}, _$zod_v4_core0.$strip>;
|
|
284
316
|
};
|
|
317
|
+
importFile: {
|
|
318
|
+
request: _$zod.ZodObject<{
|
|
319
|
+
filePath: _$zod.ZodString;
|
|
320
|
+
adapterName: _$zod.ZodString;
|
|
321
|
+
ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
322
|
+
live: "live";
|
|
323
|
+
backfill: "backfill";
|
|
324
|
+
}>>;
|
|
325
|
+
}, _$zod_v4_core0.$strip>;
|
|
326
|
+
response: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
327
|
+
status: _$zod.ZodLiteral<"imported">;
|
|
328
|
+
sessionId: _$zod.ZodString;
|
|
329
|
+
messageCount: _$zod.ZodNumber;
|
|
330
|
+
turnCount: _$zod.ZodNumber;
|
|
331
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
332
|
+
status: _$zod.ZodLiteral<"skipped">;
|
|
333
|
+
reason: _$zod.ZodEnum<{
|
|
334
|
+
"no-importer": "no-importer";
|
|
335
|
+
"file-missing": "file-missing";
|
|
336
|
+
}>;
|
|
337
|
+
}, _$zod_v4_core0.$strip>], "status">;
|
|
338
|
+
};
|
|
285
339
|
getMode: {
|
|
286
340
|
request: _$zod.ZodObject<{
|
|
287
341
|
adapterName: _$zod.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../schemas-
|
|
1
|
+
import{t as e}from"../../schemas-DZGnr9Tl.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`log-import`,e),r=n.subjects;export{n as LogImportNamespace,r as LogImportSubjects};
|
|
@@ -96,6 +96,7 @@ declare const LogImportSchemas: {
|
|
|
96
96
|
logFilePattern: z.ZodString;
|
|
97
97
|
isRunning: z.ZodBoolean;
|
|
98
98
|
supportsManualImport: z.ZodDefault<z.ZodBoolean>;
|
|
99
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
99
100
|
}, z.core.$strip>>;
|
|
100
101
|
}, z.core.$strip>;
|
|
101
102
|
};
|
|
@@ -139,12 +140,55 @@ declare const LogImportSchemas: {
|
|
|
139
140
|
request: z.ZodObject<{
|
|
140
141
|
adapterSessionId: z.ZodString;
|
|
141
142
|
adapterName: z.ZodString;
|
|
143
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
live: "live";
|
|
145
|
+
backfill: "backfill";
|
|
146
|
+
}>>;
|
|
142
147
|
}, z.core.$strip>;
|
|
143
148
|
response: z.ZodObject<{
|
|
144
149
|
sessionId: z.ZodString;
|
|
145
150
|
messageCount: z.ZodNumber;
|
|
146
151
|
}, z.core.$strip>;
|
|
147
152
|
};
|
|
153
|
+
/**
|
|
154
|
+
* Import a transcript file by path, addressable without prior discovery.
|
|
155
|
+
*
|
|
156
|
+
* Subject: `log-import.importFile`
|
|
157
|
+
* Type: Request (RPC)
|
|
158
|
+
* Purpose: Parses the given transcript file with the named importer and
|
|
159
|
+
* persists the resulting segment tree (messages + turns).
|
|
160
|
+
*
|
|
161
|
+
* **Graceful-absence contract:** unlike `importSession`, this subject NEVER
|
|
162
|
+
* throws for a missing importer registration — framework-only hosts (no
|
|
163
|
+
* product importers contributed) receive a `skipped` status with reason
|
|
164
|
+
* `no-importer`. It is addressable by file path directly (no prior
|
|
165
|
+
* discovery stub required) and performs a full re-parse from byte 0,
|
|
166
|
+
* relying on message/turn idempotency (import cursors do not persist parser
|
|
167
|
+
* state across restarts). Concurrent calls for the same `filePath` are
|
|
168
|
+
* serialized by the handler.
|
|
169
|
+
*/
|
|
170
|
+
importFile: {
|
|
171
|
+
request: z.ZodObject<{
|
|
172
|
+
filePath: z.ZodString;
|
|
173
|
+
adapterName: z.ZodString;
|
|
174
|
+
ingestionMarker: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
live: "live";
|
|
176
|
+
backfill: "backfill";
|
|
177
|
+
}>>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
response: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
status: z.ZodLiteral<"imported">;
|
|
181
|
+
sessionId: z.ZodString;
|
|
182
|
+
messageCount: z.ZodNumber;
|
|
183
|
+
turnCount: z.ZodNumber;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
status: z.ZodLiteral<"skipped">;
|
|
186
|
+
reason: z.ZodEnum<{
|
|
187
|
+
"no-importer": "no-importer";
|
|
188
|
+
"file-missing": "file-missing";
|
|
189
|
+
}>;
|
|
190
|
+
}, z.core.$strip>], "status">;
|
|
191
|
+
};
|
|
148
192
|
/**
|
|
149
193
|
* Resolve the effective global import mode for a given adapter.
|
|
150
194
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../schemas-
|
|
1
|
+
import{t as e}from"../../schemas-DZGnr9Tl.mjs";export{e as LogImportSchemas};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as registerCompressHandler, i as registerForkHandler, n as routeToAgents, o as registerAttachHandler, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore } from "../../../index-
|
|
1
|
+
import { a as registerCompressHandler, i as registerForkHandler, n as routeToAgents, o as registerAttachHandler, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore } from "../../../index-BYfSAJRC.mjs";
|
|
2
2
|
export { registerAbandonHandler, registerAttachHandler, registerCompressHandler, registerForkHandler, registerMergeHandler, routeToAgents, routeToAgentsCore };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,r as i,t as a,u as o}from"../../../handlers-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,r as i,t as a,u as o}from"../../../handlers-v47Gbsr1.mjs";export{t as registerAbandonHandler,o as registerAttachHandler,e as registerCompressHandler,n as registerForkHandler,i as registerMergeHandler,a as routeToAgents,r as routeToAgentsCore};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as registerCompressHandler, c as SessionTurnManager, d as Turn, f as TurnConfig, h as TurnStateChange, i as registerForkHandler, l as TurnCompleteCallback, m as TurnResult, n as routeToAgents, o as registerAttachHandler, p as TurnContext, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore, u as TurnCompletionResult } from "../../index-
|
|
1
|
+
import { $ as emitSessionTurnStarted, $t as resolveAdapterId, A as registerMemoryTurnStorage, At as FallbackRuntimeOptions, B as ObservedSessionIngestionPolicyInput, Bt as registerResumeHandler, C as messages, Ct as registerMemorySessionStorage, D as SelectTurn, Dt as createSessionExtensionContext, E as InsertTurn, Et as SessionExtensionContextImpl, F as importCursorsDual, Ft as registerListActionsHandler, G as IngestCompletedTurnParams, Gt as buildTurnInitiator, H as unregisterObservedSessionIngestionPolicyProvider, Ht as AgentContextState, I as IObservedSessionIngestionPolicyProvider, It as registerBuiltInActions, J as ingestCompletedTurn, Jt as ensureAgentCwd, K as IngestCompletedTurnResult, Kt as RecoveryConfig, L as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, Lt as resetBuiltInActionsRegistration, M as EmbeddingIndexManager, Mt as CONNECTOR_SWAP_DEFAULT_PIPELINE, N as registerDrizzleImportCursorStorage, Nt as normalizeSelectionString, O as turns, Ot as SessionBridge, P as importCursors, Pt as resolveAdapterNameById, Q as appendSessionLifecycleEvent, Qt as buildRecoveryContext, R as ObservedSessionIngestionPolicyDecision, Rt as actionRegistry, S as SelectMessage, St as registerDrizzleSessionStorage, T as registerDrizzleMessageStorage, Tt as AgentStorageSubjects, U as LogImportTriggerSubjects, Ut as ContextWindowTrackerConfig, V as registerObservedSessionIngestionPolicyProvider, Vt as ContextWindowTracker, W as isPolicyDiscoveredObservedSession, Wt as SessionContextWindowState, X as SessionLifecycleEventArgs, Xt as recoverAgent, Y as EventTransform, Yt as ensureAgentModel, Z as SessionTurnStartedPayload, Zt as verifyAndRecoverAgents, _ as messageRoutingDual, _t as mapRowToSession, a as kindToBranchKind, an as extractTextContent, at as sessionEvents, b as MessageRoutingSubjects, bt as registerDrizzleAgentStorage, c as registerSpawningToolCallResolver, cn as AdapterRegistry, ct as SessionPreviewMaps, d as MakaioSession, dn as registerCoreSessionServiceHandlers, dt as mapToSession, en as resolveExecutionTarget, et as registerSessionLifecycleEventWriters, f as MakaioSessionConfig, fn as MakaioSessionService, ft as SearchFilters, g as messageRouting, gt as fetchPreviewBySession, h as SelectMessageRouting, ht as fetchMessageCountsBySession, i as ContextAssemblyResult, in as resolveTargetAgents, it as SelectSessionEvent, j as registerDrizzleTurnStorage, jt as pickFallbackRuntimeOptions, k as turnsDual, kt as assembleForkContext, l as registerCompressLineageResolver, ln as ISessionOrchestrator, lt as fetchSessionPreviewMaps, m as InsertMessageRouting, mt as fetchAgentsBySession, n as buildSessionContext, nn as findTurnByAgent, nt as registerMemorySessionEventStorage, o as toSessionLineage, on as normalizeToBlocks, ot as sessionEventsDual, p as StartTurnOptions, pt as SearchSessionRow, q as IngestTurnMessage, qt as buildRecoveryContextWithPipeline, r as BuildContextOptions, rn as getOrCreateSession, rt as InsertSessionEvent, s as registerSessionDiscoveredHandler, sn as TurnContextEnricher, st as getSessionAncestorChain, t as getFullConversation, tn as resolveModelCapabilities, tt as registerDrizzleSessionEventStorage, u as registerParentResolver, un as SessionOrchestrator, ut as mapAgentsBySession, v as registerDrizzleMessageRoutingStorage, vt as parseForkTransforms, w as registerMemoryMessageStorage, wt as AgentStorageNamespace, x as InsertMessage, xt as registerMemoryAgentStorage, y as MessageRoutingNamespace, yt as registerFtsSearchHandler, z as ObservedSessionIngestionPolicyImportStatus, zt as registerGetStatusCountsHandler } from "../../index-3J0HZlPH.mjs";
|
|
2
|
+
import { a as registerCompressHandler, c as SessionTurnManager, d as Turn, f as TurnConfig, h as TurnStateChange, i as registerForkHandler, l as TurnCompleteCallback, m as TurnResult, n as routeToAgents, o as registerAttachHandler, p as TurnContext, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore, u as TurnCompletionResult } from "../../index-BYfSAJRC.mjs";
|
|
3
3
|
import { r as buildProviderContext } from "../../index-DtwGhFFQ.mjs";
|
|
4
|
-
import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-
|
|
5
|
-
import { a as agents, c as sessionsDual, o as agentsDual, s as sessions } from "../../schema-
|
|
6
|
-
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace-
|
|
7
|
-
import { t as TurnStorageNamespace } from "../../namespace-
|
|
8
|
-
import { n as TurnStorageSubjects } from "../../namespace-
|
|
9
|
-
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-
|
|
10
|
-
export { AdapterRegistry, AgentContextState, AgentStorageNamespace, AgentStorageSubjects, BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, ContextAssemblyResult, ContextWindowTracker, ContextWindowTrackerConfig, EmbeddingIndexManager, EventTransform, FallbackRuntimeOptions, ISessionOrchestrator, InsertMessage, InsertMessageRouting, InsertSessionEvent, InsertTurn, MakaioSession, MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, RecoveryConfig, SearchFilters, SearchSessionRow, SelectMessage, SelectMessageRouting, SelectSessionEvent, SelectTurn, SessionBridge, SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl,
|
|
4
|
+
import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-DmqoDDRD.mjs";
|
|
5
|
+
import { a as agents, c as sessionsDual, o as agentsDual, s as sessions } from "../../schema-DLNBajAV.mjs";
|
|
6
|
+
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace-DhDY0juT.mjs";
|
|
7
|
+
import { t as TurnStorageNamespace } from "../../namespace-D1_9WVCo.mjs";
|
|
8
|
+
import { n as TurnStorageSubjects } from "../../namespace-DAj_riOn.mjs";
|
|
9
|
+
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-Bm77p82L.mjs";
|
|
10
|
+
export { AdapterRegistry, AgentContextState, AgentStorageNamespace, AgentStorageSubjects, BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, ContextAssemblyResult, ContextWindowTracker, ContextWindowTrackerConfig, EmbeddingIndexManager, EventTransform, FallbackRuntimeOptions, IObservedSessionIngestionPolicyProvider, ISessionOrchestrator, IngestCompletedTurnParams, IngestCompletedTurnResult, IngestTurnMessage, InsertMessage, InsertMessageRouting, InsertSessionEvent, InsertTurn, LogImportTriggerSubjects, MakaioSession, MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, ObservedSessionIngestionPolicyDecision, ObservedSessionIngestionPolicyImportStatus, ObservedSessionIngestionPolicyInput, RecoveryConfig, SearchFilters, SearchSessionRow, SelectMessage, SelectMessageRouting, SelectSessionEvent, SelectTurn, SessionBridge, SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLifecycleEventArgs, SessionOrchestrator, SessionPreviewMaps, SessionStorageNamespace, SessionStorageSubjects, SessionTurnManager, SessionTurnStartedPayload, StartTurnOptions, Turn, TurnCompleteCallback, TurnCompletionResult, TurnConfig, TurnContext, TurnContextEnricher, TurnResult, TurnStateChange, TurnStorageNamespace, TurnStorageSubjects, actionRegistry, agents, agentsDual, appendSessionLifecycleEvent, assembleForkContext, buildProviderContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, createSessionExtensionContext, emitSessionTurnStarted, ensureAgentCwd, ensureAgentModel, extractTextContent, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, getFullConversation, getOrCreateSession, getSessionAncestorChain, importCursors, importCursorsDual, ingestCompletedTurn, isPolicyDiscoveredObservedSession, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, messageRouting, messageRoutingDual, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, recoverAgent, registerAbandonHandler, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerObservedSessionIngestionPolicyProvider, registerParentResolver, registerResumeHandler, registerSessionDiscoveredHandler, registerSessionLifecycleEventWriters, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveExecutionTarget, resolveModelCapabilities, resolveTargetAgents, routeToAgents, routeToAgentsCore, sessionEvents, sessionEventsDual, sessions, sessionsDual, toSessionLineage, turns, turnsDual, unregisterObservedSessionIngestionPolicyProvider, verifyAndRecoverAgents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{agents as e,agentsDual as t,sessions as n,sessionsDual as r}from"./storage/schema.mjs";import{n as i,t as a}from"../../schema-CHp6I33k.mjs";import{t as o}from"../../schema-7aKBGB7S.mjs";import{i as s,n as c,r as l,t as u}from"../../namespace-dFBD2ZmS.mjs";import{A as d,B as f,C as p,D as m,E as h,F as g,I as _,L as v,M as y,N as b,O as x,P as S,R as C,S as w,T,_ as E,a as D,b as O,c as k,d as A,f as j,g as M,h as N,i as P,j as F,k as I,l as L,m as R,n as z,o as B,p as V,r as H,s as U,t as W,u as G,v as K,w as q,x as J,y as Y,z as X}from"../../handlers-v47Gbsr1.mjs";import{TurnStorageSubjects as Z}from"../turn/namespace.mjs";import{SessionStorageNamespace as Q,SessionStorageSubjects as $}from"./storage/namespace.mjs";import{$ as ee,A as te,B as ne,C as re,D as ie,E as ae,F as oe,G as se,H as ce,I as le,J as ue,K as de,L as fe,M as pe,N as me,O as he,P as ge,Q as _e,R as ve,S as ye,T as be,U as xe,V as Se,W as Ce,X as we,Y as Te,Z as Ee,_ as De,a as Oe,b as ke,c as Ae,d as je,et as Me,g as Ne,h as Pe,i as Fe,j as Ie,k as Le,l as Re,m as ze,n as Be,o as Ve,p as He,q as Ue,r as We,s as Ge,t as Ke,u as qe,v as Je,w as Ye,x as Xe,y as Ze,z as Qe}from"../../session-DCbJwYEU.mjs";import{r as $e}from"../../provider-context-DC_eq7es.mjs";import{MessageStorageNamespace as et,MessageStorageSubjects as tt}from"./messages/namespace.mjs";import{TurnStorageNamespace as nt}from"./turns/namespace.mjs";export{_e as AdapterRegistry,S as AgentStorageNamespace,g as AgentStorageSubjects,ve as CONNECTOR_SWAP_DEFAULT_PIPELINE,Ke as ContextWindowTracker,Ge as EmbeddingIndexManager,je as LogImportTriggerSubjects,Ve as MakaioSession,ee as MakaioSessionService,de as MessageRoutingNamespace,Ue as MessageRoutingSubjects,et as MessageStorageNamespace,tt as MessageStorageSubjects,ze as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID,le as SessionBridge,u as SessionEventStorageNamespace,c as SessionEventStorageSubjects,ge as SessionExtensionContextImpl,xe as SessionOrchestrator,Q as SessionStorageNamespace,$ as SessionStorageSubjects,Ce as SessionTurnManager,Y as Turn,ce as TurnContextEnricher,nt as TurnStorageNamespace,Z as TurnStorageSubjects,I as actionRegistry,e as agents,t as agentsDual,_ as appendSessionLifecycleEvent,z as assembleForkContext,$e as buildProviderContext,m as buildRecoveryContext,w as buildRecoveryContextWithPipeline,d as buildSessionContext,V as buildTurnInitiator,oe as createSessionExtensionContext,v as emitSessionTurnStarted,p as ensureAgentCwd,q as ensureAgentModel,E as extractTextContent,ke as fetchAgentsBySession,Xe as fetchMessageCountsBySession,ye as fetchPreviewBySession,ie as fetchSessionPreviewMaps,R as findTurnByAgent,x as getFullConversation,N as getOrCreateSession,Je as getSessionAncestorChain,Re as importCursors,qe as importCursorsDual,De as ingestCompletedTurn,He as isPolicyDiscoveredObservedSession,pe as kindToBranchKind,he as mapAgentsBySession,re as mapRowToSession,Le as mapToSession,ue as messageRouting,Te as messageRoutingDual,o as messages,A as normalizeSelectionString,K as normalizeToBlocks,Ye as parseForkTransforms,fe as pickFallbackRuntimeOptions,T as recoverAgent,k as registerAbandonHandler,G as registerAttachHandler,B as registerBuiltInActions,D as registerCompressHandler,Fe as registerCompressLineageResolver,Me as registerCoreSessionServiceHandlers,te as registerDrizzleAgentStorage,Ae as registerDrizzleImportCursorStorage,se as registerDrizzleMessageRoutingStorage,Ee as registerDrizzleMessageStorage,X as registerDrizzleSessionEventStorage,ae as registerDrizzleSessionStorage,J as registerDrizzleTurnStorage,P as registerForkHandler,Ze as registerFtsSearchHandler,ne as registerGetStatusCountsHandler,Qe as registerListActionsHandler,be as registerMemoryAgentStorage,we as registerMemoryMessageStorage,f as registerMemorySessionEventStorage,Ie as registerMemorySessionStorage,O as registerMemoryTurnStorage,H as registerMergeHandler,Pe as registerObservedSessionIngestionPolicyProvider,Oe as registerParentResolver,Se as registerResumeHandler,Be as registerSessionDiscoveredHandler,C as registerSessionLifecycleEventWriters,We as registerSpawningToolCallResolver,U as resetBuiltInActionsRegistration,F as resolveAdapterId,j as resolveAdapterNameById,y as resolveExecutionTarget,b as resolveModelCapabilities,M as resolveTargetAgents,W as routeToAgents,L as routeToAgentsCore,l as sessionEvents,s as sessionEventsDual,n as sessions,r as sessionsDual,me as toSessionLineage,a as turns,i as turnsDual,Ne as unregisterObservedSessionIngestionPolicyProvider,h as verifyAndRecoverAgents};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-
|
|
1
|
+
import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-Bm77p82L.mjs";
|
|
2
2
|
export { MessagePageCursor, MessagePageCursorSchema, MessageStorageNamespace, MessageStorageSubjects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../../schema-
|
|
1
|
+
import{t as e}from"../../../schema-7aKBGB7S.mjs";import{MessagePageCursorSchema as t,MessageStorageNamespace as n,MessageStorageSubjects as r}from"@makaio/framework/contracts";const i={...n,extensions:{drizzle:{messages:e}}};export{t as MessagePageCursorSchema,i as MessageStorageNamespace,r as MessageStorageSubjects};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as collectUserMessageAcknowledgedEvents, D as getStoredEvents, E as emitAdapterInitialized, O as resetBusHandlers, S as collectTurnStartedEvents, T as collectUserMessageSentEvents, _ as registerSendMessageHandler, a as emitAgentComplete, b as UnsubscribeFunction, c as registerCapturingStartAgentHandler, d as registerFailingSendMessageHandler, f as registerFailingStartAgentHandler, g as registerRehydrateAgentHandler, h as registerModelChangeHandler, i as emitAgentAdded, k as waitForAsync, l as registerCreateSessionHandler, m as registerGetSessionHandler, n as createMockAgent, o as emitAgentError, p as registerGetAgentHandler, r as createMockSession, s as registerAgentAddedHandler, t as MockSessionConfig, u as registerCwdChangeHandler, v as registerStartAgentHandler, w as collectUserMessageCompletedEvents, x as collectTurnCompletedEvents, y as EventCollector } from "../../../orchestrator-shared-
|
|
1
|
+
import { C as collectUserMessageAcknowledgedEvents, D as getStoredEvents, E as emitAdapterInitialized, O as resetBusHandlers, S as collectTurnStartedEvents, T as collectUserMessageSentEvents, _ as registerSendMessageHandler, a as emitAgentComplete, b as UnsubscribeFunction, c as registerCapturingStartAgentHandler, d as registerFailingSendMessageHandler, f as registerFailingStartAgentHandler, g as registerRehydrateAgentHandler, h as registerModelChangeHandler, i as emitAgentAdded, k as waitForAsync, l as registerCreateSessionHandler, m as registerGetSessionHandler, n as createMockAgent, o as emitAgentError, p as registerGetAgentHandler, r as createMockSession, s as registerAgentAddedHandler, t as MockSessionConfig, u as registerCwdChangeHandler, v as registerStartAgentHandler, w as collectUserMessageCompletedEvents, x as collectTurnCompletedEvents, y as EventCollector } from "../../../orchestrator-shared-DFLb1otg.mjs";
|
|
2
2
|
export { type EventCollector, type MockSessionConfig, type UnsubscribeFunction, collectTurnCompletedEvents, collectTurnStartedEvents, collectUserMessageAcknowledgedEvents, collectUserMessageCompletedEvents, collectUserMessageSentEvents, createMockAgent, createMockSession, emitAdapterInitialized, emitAgentAdded, emitAgentComplete, emitAgentError, getStoredEvents, registerAgentAddedHandler, registerCapturingStartAgentHandler, registerCreateSessionHandler, registerCwdChangeHandler, registerFailingSendMessageHandler, registerFailingStartAgentHandler, registerGetAgentHandler, registerGetSessionHandler, registerModelChangeHandler, registerRehydrateAgentHandler, registerSendMessageHandler, registerStartAgentHandler, resetBusHandlers, waitForAsync };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x,v as S,w as C,x as w,y as T}from"../../../orchestrator-shared-
|
|
1
|
+
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x,v as S,w as C,x as w,y as T}from"../../../orchestrator-shared-ChygCvR1.mjs";export{S as collectTurnCompletedEvents,T as collectTurnStartedEvents,o as collectUserMessageAcknowledgedEvents,w as collectUserMessageCompletedEvents,n as collectUserMessageSentEvents,b as createMockAgent,h as createMockSession,e as emitAdapterInitialized,v as emitAgentAdded,f as emitAgentComplete,a as emitAgentError,C as getStoredEvents,g as registerAgentAddedHandler,y as registerCapturingStartAgentHandler,s as registerCreateSessionHandler,p as registerCwdChangeHandler,x as registerFailingSendMessageHandler,c as registerFailingStartAgentHandler,l as registerGetAgentHandler,_ as registerGetSessionHandler,m as registerModelChangeHandler,d as registerRehydrateAgentHandler,u as registerSendMessageHandler,i as registerStartAgentHandler,r as resetBusHandlers,t as waitForAsync};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../../namespace-
|
|
1
|
+
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../../namespace-DhDY0juT.mjs";
|
|
2
2
|
export { SessionEventStorageNamespace, SessionEventStorageSubjects };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"../../../namespace-
|
|
1
|
+
import{n as e,t}from"../../../namespace-dFBD2ZmS.mjs";export{t as SessionEventStorageNamespace,e as SessionEventStorageSubjects};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SessionWithPreview, i as SessionStorageSubjects, n as SessionPreviewDataSchema, o as SessionWithPreviewSchema, r as SessionStorageNamespace, t as SessionPreviewData } from "../../../namespace-
|
|
1
|
+
import { a as SessionWithPreview, i as SessionStorageSubjects, n as SessionPreviewDataSchema, o as SessionWithPreviewSchema, r as SessionStorageNamespace, t as SessionPreviewData } from "../../../namespace-DmqoDDRD.mjs";
|
|
2
2
|
export { SessionPreviewData, SessionPreviewDataSchema, SessionStorageNamespace, SessionStorageSubjects, SessionWithPreview, SessionWithPreviewSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as agents, c as sessionsDual, i as SelectSession, n as InsertSession, o as agentsDual, r as SelectAgent, s as sessions, t as InsertAgent } from "../../../schema-
|
|
1
|
+
import { a as agents, c as sessionsDual, i as SelectSession, n as InsertSession, o as agentsDual, r as SelectAgent, s as sessions, t as InsertAgent } from "../../../schema-DLNBajAV.mjs";
|
|
2
2
|
export { InsertAgent, InsertSession, SelectAgent, SelectSession, agents, agentsDual, sessions, sessionsDual };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{check as e,index as t,uniqueIndex as n}from"drizzle-orm/sqlite-core";import{check as r,index as i,uniqueIndex as a}from"drizzle-orm/pg-core";import{defineDualTable as o}from"@makaio/framework/storage/drizzle";import{sql as s}from"drizzle-orm";const c=o(`sessions`,e=>({sessionId:e.text(`session_id`).primaryKey(),createdAt:e.epochMs(`created_at`).notNull(),lastActivityAt:e.epochMs(`last_activity_at`).notNull(),status:e.textEnum(`status`,{enum:[`active`,`closed`,`archived`,`discovered`]}).notNull(),leadAgentId:e.text(`lead_agent_id`),parentSessionId:e.text(`parent_session_id`),contextInheritance:e.textEnum(`context_inheritance`,{enum:[`parent-history`,`none`]}),rootSessionId:e.text(`root_session_id`),forkPointMessageId:e.text(`fork_point_message_id`),branchKind:e.textEnum(`branch_kind`,{enum:[`fork`,`branch`,`subagent`,`compress`,`rewrite`,`coordinator`,`aside`]}),adapterName:e.text(`adapter_name`),adapterSessionId:e.text(`adapter_session_id`),adapterId:e.text(`adapter_id`),clientId:e.text(`client_id`),clientAccountId:e.text(`client_account_id`),lastClientIdentityObservation:e.text(`last_client_identity_observation`),isOrchestrated:e.bool(`is_orchestrated`).default(!1),title:e.text(`title`),summary:e.text(`summary`),summaryUpdatedAt:e.epochMs(`summary_updated_at`),isImported:e.bool(`is_imported`).default(!1),forkTransforms:e.text(`fork_transforms`),targetWorkingDirectory:e.text(`target_working_directory`),executionTargetId:e.text(`execution_target_id`),approvalPolicyOverride:e.textEnum(`approval_policy_override`,{enum:[`reject`,`always-ask`,`full-access`]}),metadata:e.jsonCol(`metadata`),spawningToolCallId:e.text(`spawning_tool_call_id`),source:e.text(`source`),parentExternalSessionId:e.text(`parent_external_session_id`),logFilePath:e.text(`log_file_path`),discoveredAt:e.epochMs(`discovered_at`),importStatus:e.textEnum(`import_status`,{enum:[`discovered`,`imported`,`tracking`]})}),{sqlite:r=>[n(`uniq_sessions_source_adapter_session_id`).on(r.source,r.adapterSessionId),n(`uniq_sessions_log_file_path`).on(r.logFilePath),t(`sessions_adapter_session_id_idx`).on(r.adapterSessionId),t(`idx_sessions_import_status`).on(r.importStatus),t(`sessions_execution_target_id_idx`).on(r.executionTargetId),t(`idx_sessions_parent_session_id`).on(r.parentSessionId),e(`sessions_import_status_check`,s`${r.importStatus} IS NULL OR ${r.importStatus} IN ('discovered', 'imported', 'tracking')`),e(`sessions_context_inheritance_check`,s`${r.contextInheritance} IS NULL OR ${r.contextInheritance} IN ('parent-history', 'none')`)],postgres:e=>[a(`uniq_sessions_source_adapter_session_id`).on(e.source,e.adapterSessionId),a(`uniq_sessions_log_file_path`).on(e.logFilePath),i(`sessions_adapter_session_id_idx`).on(e.adapterSessionId),i(`idx_sessions_import_status`).on(e.importStatus),i(`sessions_execution_target_id_idx`).on(e.executionTargetId),i(`idx_sessions_parent_session_id`).on(e.parentSessionId),r(`sessions_import_status_check`,s`${e.importStatus} IS NULL OR ${e.importStatus} IN ('discovered', 'imported', 'tracking')`),r(`sessions_context_inheritance_check`,s`${e.contextInheritance} IS NULL OR ${e.contextInheritance} IN ('parent-history', 'none')`)]}),l=c.sqlite,u=o(`agents`,e=>({agentId:e.text(`agent_id`).primaryKey(),adapterId:e.text(`adapter_id`).notNull(),adapterName:e.text(`adapter_name`).notNull(),sessionId:e.text(`session_id`).notNull().references(()=>c.columnPair(`sessionId`),{onDelete:`cascade`}),adapterSessionId:e.text(`adapter_session_id`),model:e.text(`model`),cwd:e.text(`cwd`),allowedDirectories:e.jsonCol(`allowed_directories`),providerConfigId:e.text(`provider_config_id`),personaId:e.text(`persona_id`),profileId:e.text(`profile_id`),harnessId:e.text(`harness_id`),clientId:e.text(`client_id`),compressionMode:e.text(`compression_mode`),role:e.textEnum(`role`,{enum:[`lead`,`member`]}).notNull(),status:e.textEnum(`status`,{enum:[`idle`,`active`,`dead`,`disposed`]}).notNull(),createdAt:e.epochMs(`created_at`).notNull(),lastActivityAt:e.epochMs(`last_activity_at`).notNull()}),{sqlite:e=>[t(`agents_session_id_idx`).on(e.sessionId),t(`agents_adapter_name_idx`).on(e.adapterName),t(`agents_status_idx`).on(e.status),t(`agents_client_id_idx`).on(e.clientId)],postgres:e=>[i(`agents_session_id_idx`).on(e.sessionId),i(`agents_adapter_name_idx`).on(e.adapterName),i(`agents_status_idx`).on(e.status),i(`agents_client_id_idx`).on(e.clientId)]}),d=u.sqlite;export{d as agents,u as agentsDual,l as sessions,c as sessionsDual};
|
|
1
|
+
import{check as e,index as t,uniqueIndex as n}from"drizzle-orm/sqlite-core";import{check as r,index as i,uniqueIndex as a}from"drizzle-orm/pg-core";import{defineDualTable as o}from"@makaio/framework/storage/drizzle";import{sql as s}from"drizzle-orm";const c=o(`sessions`,e=>({sessionId:e.text(`session_id`).primaryKey(),createdAt:e.epochMs(`created_at`).notNull(),lastActivityAt:e.epochMs(`last_activity_at`).notNull(),status:e.textEnum(`status`,{enum:[`active`,`closed`,`archived`,`discovered`]}).notNull(),leadAgentId:e.text(`lead_agent_id`),parentSessionId:e.text(`parent_session_id`),contextInheritance:e.textEnum(`context_inheritance`,{enum:[`parent-history`,`none`]}),rootSessionId:e.text(`root_session_id`),forkPointMessageId:e.text(`fork_point_message_id`),branchKind:e.textEnum(`branch_kind`,{enum:[`fork`,`branch`,`subagent`,`compress`,`rewrite`,`coordinator`,`aside`]}),adapterName:e.text(`adapter_name`),adapterSessionId:e.text(`adapter_session_id`),adapterId:e.text(`adapter_id`),clientId:e.text(`client_id`),clientAccountId:e.text(`client_account_id`),lastClientIdentityObservation:e.text(`last_client_identity_observation`),isOrchestrated:e.bool(`is_orchestrated`).default(!1),title:e.text(`title`),summary:e.text(`summary`),summaryUpdatedAt:e.epochMs(`summary_updated_at`),isImported:e.bool(`is_imported`).default(!1),forkTransforms:e.text(`fork_transforms`),targetWorkingDirectory:e.text(`target_working_directory`),executionTargetId:e.text(`execution_target_id`),approvalPolicyOverride:e.textEnum(`approval_policy_override`,{enum:[`reject`,`always-ask`,`full-access`]}),metadata:e.jsonCol(`metadata`),spawningToolCallId:e.text(`spawning_tool_call_id`),source:e.text(`source`),parentExternalSessionId:e.text(`parent_external_session_id`),logFilePath:e.text(`log_file_path`),discoveredAt:e.epochMs(`discovered_at`),importStatus:e.textEnum(`import_status`,{enum:[`discovered`,`imported`,`tracking`]}),isSidechain:e.bool(`is_sidechain`)}),{sqlite:r=>[n(`uniq_sessions_source_adapter_session_id`).on(r.source,r.adapterSessionId),n(`uniq_sessions_log_file_path`).on(r.logFilePath),t(`sessions_adapter_session_id_idx`).on(r.adapterSessionId),t(`idx_sessions_import_status`).on(r.importStatus),t(`sessions_execution_target_id_idx`).on(r.executionTargetId),t(`idx_sessions_parent_session_id`).on(r.parentSessionId),e(`sessions_import_status_check`,s`${r.importStatus} IS NULL OR ${r.importStatus} IN ('discovered', 'imported', 'tracking')`),e(`sessions_context_inheritance_check`,s`${r.contextInheritance} IS NULL OR ${r.contextInheritance} IN ('parent-history', 'none')`)],postgres:e=>[a(`uniq_sessions_source_adapter_session_id`).on(e.source,e.adapterSessionId),a(`uniq_sessions_log_file_path`).on(e.logFilePath),i(`sessions_adapter_session_id_idx`).on(e.adapterSessionId),i(`idx_sessions_import_status`).on(e.importStatus),i(`sessions_execution_target_id_idx`).on(e.executionTargetId),i(`idx_sessions_parent_session_id`).on(e.parentSessionId),r(`sessions_import_status_check`,s`${e.importStatus} IS NULL OR ${e.importStatus} IN ('discovered', 'imported', 'tracking')`),r(`sessions_context_inheritance_check`,s`${e.contextInheritance} IS NULL OR ${e.contextInheritance} IN ('parent-history', 'none')`)]}),l=c.sqlite,u=o(`agents`,e=>({agentId:e.text(`agent_id`).primaryKey(),adapterId:e.text(`adapter_id`).notNull(),adapterName:e.text(`adapter_name`).notNull(),sessionId:e.text(`session_id`).notNull().references(()=>c.columnPair(`sessionId`),{onDelete:`cascade`}),adapterSessionId:e.text(`adapter_session_id`),model:e.text(`model`),cwd:e.text(`cwd`),allowedDirectories:e.jsonCol(`allowed_directories`),providerConfigId:e.text(`provider_config_id`),personaId:e.text(`persona_id`),profileId:e.text(`profile_id`),harnessId:e.text(`harness_id`),clientId:e.text(`client_id`),compressionMode:e.text(`compression_mode`),role:e.textEnum(`role`,{enum:[`lead`,`member`]}).notNull(),status:e.textEnum(`status`,{enum:[`idle`,`active`,`dead`,`disposed`]}).notNull(),createdAt:e.epochMs(`created_at`).notNull(),lastActivityAt:e.epochMs(`last_activity_at`).notNull()}),{sqlite:e=>[t(`agents_session_id_idx`).on(e.sessionId),t(`agents_adapter_name_idx`).on(e.adapterName),t(`agents_status_idx`).on(e.status),t(`agents_client_id_idx`).on(e.clientId)],postgres:e=>[i(`agents_session_id_idx`).on(e.sessionId),i(`agents_adapter_name_idx`).on(e.adapterName),i(`agents_status_idx`).on(e.status),i(`agents_client_id_idx`).on(e.clientId)]}),d=u.sqlite;export{d as agents,u as agentsDual,l as sessions,c as sessionsDual};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e}from"../../../namespace-dFBD2ZmS.mjs";import{F as t}from"../../../handlers-v47Gbsr1.mjs";import{TurnStorageSubjects as n}from"../../turn/namespace.mjs";import{SessionStorageSubjects as r}from"../storage/namespace.mjs";import{q as i}from"../../../session-DCbJwYEU.mjs";import{n as a}from"../../../namespace-DBHwyhME.mjs";import{AdapterRuntimeSubjects as o}from"../../adapter-runtime/namespace.mjs";import{ProviderStorageSubjects as s}from"../../settings/storage/providers-namespace.mjs";import{ExecutionTargetSubjects as c}from"../../execution-target/namespace.mjs";import{MessageStorageSubjects as l}from"../messages/namespace.mjs";import{t as u}from"../../../identity-BarL3JYI.mjs";import{MakaioBus as d}from"@makaio/framework/bus";import{AdapterSubjects as f}from"@makaio/framework/contracts";import{getRawSqlExecutor as p}from"@makaio/framework/storage/drizzle";import{sql as m}from"drizzle-orm";import{buildStoredCredentialRef as h}from"@makaio/framework/contracts/config";function g(e){let t=new u(e);return{registerHandlers(){let e=[d.on(f.initialized,e=>{t.rememberAdapterId(e.payload.adapterId,e.payload.adapterName)}),d.on(o.resolveId,e=>{let n=t.resolveId(e.payload);e.setResult({adapterId:n})}),d.on(o.resolveName,e=>{let n=t.resolveAdapterName(e.payload.adapterId);if(!n)throw Error(`Adapter not found for adapterId="${e.payload.adapterId}"`);e.setResult({adapterName:n})})];return()=>{for(let t of e)t()}},async registerKnownAdapter(e,n){let r=n??t.resolveId({adapterName:e});await d.emit(f.initialized,{adapterName:e,adapterId:r,capabilities:[]})}}}function _(e){let t=g(e);return{registry:t,unsubscribe:t.registerHandlers()}}const v=[m`
|
|
2
2
|
CREATE TABLE IF NOT EXISTS sessions (
|
|
3
3
|
session_id TEXT PRIMARY KEY,
|
|
4
4
|
created_at INTEGER NOT NULL,
|
|
@@ -41,7 +41,8 @@ import{TurnStorageSubjects as e}from"../../turn/namespace.mjs";import{n as t}fro
|
|
|
41
41
|
import_status TEXT CHECK (
|
|
42
42
|
import_status IS NULL
|
|
43
43
|
OR import_status IN ('discovered', 'imported', 'tracking')
|
|
44
|
-
)
|
|
44
|
+
),
|
|
45
|
+
is_sidechain INTEGER
|
|
45
46
|
)
|
|
46
47
|
`,m`CREATE UNIQUE INDEX IF NOT EXISTS uniq_sessions_source_adapter_session_id ON sessions(source, adapter_session_id)`,m`CREATE UNIQUE INDEX IF NOT EXISTS uniq_sessions_log_file_path ON sessions(log_file_path)`,m`CREATE INDEX IF NOT EXISTS sessions_adapter_session_id_idx ON sessions(adapter_session_id)`,m`CREATE INDEX IF NOT EXISTS idx_sessions_import_status ON sessions(import_status)`,m`CREATE INDEX IF NOT EXISTS sessions_execution_target_id_idx ON sessions(execution_target_id)`,m`
|
|
47
48
|
CREATE TABLE IF NOT EXISTS agents (
|
|
@@ -72,7 +73,8 @@ import{TurnStorageSubjects as e}from"../../turn/namespace.mjs";import{n as t}fro
|
|
|
72
73
|
completed_at INTEGER,
|
|
73
74
|
status TEXT NOT NULL CHECK (status IN ('active', 'completed', 'error')),
|
|
74
75
|
error TEXT,
|
|
75
|
-
initiator TEXT
|
|
76
|
+
initiator TEXT,
|
|
77
|
+
turn_anchor_id TEXT
|
|
76
78
|
)
|
|
77
79
|
`,m`
|
|
78
80
|
CREATE TABLE IF NOT EXISTS messages (
|
|
@@ -89,6 +91,9 @@ import{TurnStorageSubjects as e}from"../../turn/namespace.mjs";import{n as t}fro
|
|
|
89
91
|
edit_of TEXT,
|
|
90
92
|
origin TEXT
|
|
91
93
|
)
|
|
94
|
+
`,m`
|
|
95
|
+
CREATE UNIQUE INDEX IF NOT EXISTS uniq_messages_adapter_message_id_session
|
|
96
|
+
ON messages(adapter_message_id, session_id)
|
|
92
97
|
`,m`
|
|
93
98
|
CREATE VIRTUAL TABLE IF NOT EXISTS messages_fts USING fts5(
|
|
94
99
|
session_id,
|
|
@@ -114,4 +119,4 @@ import{TurnStorageSubjects as e}from"../../turn/namespace.mjs";import{n as t}fro
|
|
|
114
119
|
INSERT INTO messages_fts(rowid, session_id, content_text)
|
|
115
120
|
VALUES (NEW.rowid, NEW.session_id, NEW.content_text);
|
|
116
121
|
END
|
|
117
|
-
`];async function x(e){let t=p(e);for(let e of b)await t.run(e)}function S(){let e=[];return w(e),T(e),E(e),D(e),O(e),k(e),()=>e.forEach(e=>e())}function C(){let e=[];return A(e),j(e),()=>e.forEach(e=>e())}function w(
|
|
122
|
+
`];async function x(e){let t=p(e);for(let e of b)await t.run(e)}function S(){let e=[];return w(e),T(e),E(e),D(e),O(e),k(e),()=>e.forEach(e=>e())}function C(){let e=[];return A(e),j(e),()=>e.forEach(e=>e())}function w(e){let t=new Map,r=new Map;e.push(d.on(n.create,e=>{let{sessionId:n}=e.payload,i=(t.get(n)??0)+1;t.set(n,i);let a=e.payload.turnId??crypto.randomUUID(),o=Date.now();r.set(a,{sessionId:n,turnNumber:i,startedAt:o}),e.setResult({turn:{turnId:a,sessionId:n,turnNumber:i,startedAt:o,status:`active`}})})),e.push(d.on(n.complete,e=>{let t=r.get(e.payload.turnId);if(!t)throw Error(`Mock turn ${e.payload.turnId} was not created before completion`);e.setResult({turn:{turnId:e.payload.turnId,sessionId:t.sessionId,turnNumber:t.turnNumber,startedAt:t.startedAt,completedAt:Date.now(),status:e.payload.status,error:e.payload.error,usage:e.payload.usage},transitioned:!0})})),e.push(d.on(n.set,e=>{let{turn:n}=e.payload;r.set(n.turnId,{sessionId:n.sessionId,turnNumber:n.turnNumber,startedAt:n.startedAt}),t.set(n.sessionId,Math.max(t.get(n.sessionId)??0,n.turnNumber)),e.setResult({turn:n})})),e.push(d.on(n.getBySession,e=>{e.setResult({turns:[]})}))}function T(e){e.push(d.on(l.append,e=>{let{message:t}=e.payload;e.setResult({message:{messageId:t.messageId??`msg-${crypto.randomUUID().slice(0,8)}`,turnId:t.turnId,sessionId:t.sessionId,role:t.role,contentText:t.contentText,blocks:t.blocks,agentId:t.agentId,adapterSessionId:t.adapterSessionId,adapterMessageId:t.adapterMessageId,timestamp:t.timestamp,editOf:t.editOf}})})),e.push(d.on(l.getByTurn,e=>{e.setResult({messages:[]})})),e.push(d.on(l.getBySession,e=>{e.setResult({messages:[],nextCursor:null})}))}function E(e){e.push(d.on(i.record,e=>{e.setResult({success:!0})})),e.push(d.on(i.getByMessage,e=>{e.setResult({routing:[]})}))}function D(e){e.push(_(`test-machine`).unsubscribe)}function O(e){e.push(d.on(t.set,e=>{e.setResult({success:!0})})),e.push(d.on(t.get,e=>{e.setResult({agent:null})})),e.push(d.on(t.listBySession,e=>{e.setResult({agents:[]})}))}function k(t){t.push(d.on(r.get,e=>{e.setResult({session:{sessionId:e.payload.sessionId,createdAt:Date.now(),lastActivityAt:Date.now(),status:`active`,agents:[]}})})),t.push(d.on(e.getEvents,e=>{e.setResult({events:[],nextCursor:null,totalCount:0})})),t.push(d.on(l.get,e=>{e.setResult({message:null})})),t.push(d.on(r.update,e=>{e.setResult({success:!0})}))}function A(e){e.push(d.on(c.resolve,e=>{e.setResult({executionTarget:{id:`system:local`,name:`Local`,description:`Default local process execution`,type:`local`,scope:`default`,enabled:!0,createdAt:0,updatedAt:0}})}))}function j(e){e.push(d.on(a.getProviderConfig,e=>{e.setResult({config:{id:e.payload.id,definitionId:`test-provider`,name:`Test Provider`,modelFilterMode:`show-all`,isDefault:!1,enabled:!0,isSentinel:!1,hasCredentials:!0}})})),e.push(d.on(a.buildProviderContext,e=>{e.setResult({context:{providerConfigId:e.payload.providerConfigId,definitionId:`test-provider`,credentialRefs:{apiKey:h(e.payload.providerConfigId,`apiKey`)},credentialEnvVars:{apiKey:`API_KEY`}}})})),e.push(d.on(s.get,e=>{e.setResult({provider:{id:e.payload.id,packageName:`@makaio/test-provider`,name:`Test Provider`,availableModels:[],defaultModelFilterMode:`show-all`,enabled:!0,createdAt:0,updatedAt:0}})}))}export{b as MESSAGES_FTS_TEST_SCHEMA_SQL,v as SESSION_STORAGE_TEST_SCHEMA_SQL,x as installMessagesFtsTestSchema,y as installSessionStorageTestSchema,C as registerMockProviderHandlers,S as registerMockStorageHandlers};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as collectUserMessageAcknowledgedEvents, D as getStoredEvents, E as emitAdapterInitialized, O as resetBusHandlers, S as collectTurnStartedEvents, T as collectUserMessageSentEvents, _ as registerSendMessageHandler, a as emitAgentComplete, b as UnsubscribeFunction, c as registerCapturingStartAgentHandler, d as registerFailingSendMessageHandler, f as registerFailingStartAgentHandler, g as registerRehydrateAgentHandler, h as registerModelChangeHandler, i as emitAgentAdded, k as waitForAsync, l as registerCreateSessionHandler, m as registerGetSessionHandler, n as createMockAgent, o as emitAgentError, p as registerGetAgentHandler, r as createMockSession, s as registerAgentAddedHandler, t as MockSessionConfig, u as registerCwdChangeHandler, v as registerStartAgentHandler, w as collectUserMessageCompletedEvents, x as collectTurnCompletedEvents, y as EventCollector } from "../../../orchestrator-shared-
|
|
1
|
+
import { C as collectUserMessageAcknowledgedEvents, D as getStoredEvents, E as emitAdapterInitialized, O as resetBusHandlers, S as collectTurnStartedEvents, T as collectUserMessageSentEvents, _ as registerSendMessageHandler, a as emitAgentComplete, b as UnsubscribeFunction, c as registerCapturingStartAgentHandler, d as registerFailingSendMessageHandler, f as registerFailingStartAgentHandler, g as registerRehydrateAgentHandler, h as registerModelChangeHandler, i as emitAgentAdded, k as waitForAsync, l as registerCreateSessionHandler, m as registerGetSessionHandler, n as createMockAgent, o as emitAgentError, p as registerGetAgentHandler, r as createMockSession, s as registerAgentAddedHandler, t as MockSessionConfig, u as registerCwdChangeHandler, v as registerStartAgentHandler, w as collectUserMessageCompletedEvents, x as collectTurnCompletedEvents, y as EventCollector } from "../../../orchestrator-shared-DFLb1otg.mjs";
|
|
2
2
|
export { EventCollector, MockSessionConfig, UnsubscribeFunction, collectTurnCompletedEvents, collectTurnStartedEvents, collectUserMessageAcknowledgedEvents, collectUserMessageCompletedEvents, collectUserMessageSentEvents, createMockAgent, createMockSession, emitAdapterInitialized, emitAgentAdded, emitAgentComplete, emitAgentError, getStoredEvents, registerAgentAddedHandler, registerCapturingStartAgentHandler, registerCreateSessionHandler, registerCwdChangeHandler, registerFailingSendMessageHandler, registerFailingStartAgentHandler, registerGetAgentHandler, registerGetSessionHandler, registerModelChangeHandler, registerRehydrateAgentHandler, registerSendMessageHandler, registerStartAgentHandler, resetBusHandlers, waitForAsync };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x,v as S,w as C,x as w,y as T}from"../../../orchestrator-shared-
|
|
1
|
+
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as l,g as u,h as d,i as f,l as p,m,n as h,o as g,p as _,r as v,s as y,t as b,u as x,v as S,w as C,x as w,y as T}from"../../../orchestrator-shared-ChygCvR1.mjs";export{S as collectTurnCompletedEvents,T as collectTurnStartedEvents,o as collectUserMessageAcknowledgedEvents,w as collectUserMessageCompletedEvents,n as collectUserMessageSentEvents,b as createMockAgent,h as createMockSession,e as emitAdapterInitialized,v as emitAgentAdded,f as emitAgentComplete,a as emitAgentError,C as getStoredEvents,g as registerAgentAddedHandler,y as registerCapturingStartAgentHandler,s as registerCreateSessionHandler,p as registerCwdChangeHandler,x as registerFailingSendMessageHandler,c as registerFailingStartAgentHandler,l as registerGetAgentHandler,_ as registerGetSessionHandler,m as registerModelChangeHandler,d as registerRehydrateAgentHandler,u as registerSendMessageHandler,i as registerStartAgentHandler,r as resetBusHandlers,t as waitForAsync};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TurnStorageNamespace } from "../../../namespace-
|
|
1
|
+
import { t as TurnStorageNamespace } from "../../../namespace-D1_9WVCo.mjs";
|
|
2
2
|
export { TurnStorageNamespace };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as e}from"../../../schema-CHp6I33k.mjs";import{TurnStorageNamespace as t}from"../../turn/namespace.mjs";const n={...t,extensions:{drizzle:{turns:e}}};export{n as TurnStorageNamespace};
|
|
@@ -520,9 +520,9 @@ declare const SubagentTemplateSettingsNamespace: _$_makaio_core0.BusNamespaceDef
|
|
|
520
520
|
name: _$zod.ZodString;
|
|
521
521
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
522
522
|
adapterName: _$zod.ZodString;
|
|
523
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
523
524
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
524
525
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
525
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
526
526
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
527
527
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
528
528
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
@@ -611,9 +611,9 @@ declare const SubagentTemplateSettingsSubjects: _$_makaio_core0.BusSubjects<_$_m
|
|
|
611
611
|
name: _$zod.ZodString;
|
|
612
612
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
613
613
|
adapterName: _$zod.ZodString;
|
|
614
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
614
615
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
615
616
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
616
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
617
617
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
618
618
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
619
619
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-
|
|
1
|
+
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-DuuVuhHX2.mjs";
|
|
2
2
|
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../../namespace-D8P8Sxce2.mjs";
|
|
3
3
|
export { type SubagentTemplate, SubagentTemplateCompletedEventSchema, type SubagentTemplateCreate, SubagentTemplateCreateSchema, type SubagentTemplateInstance, SubagentTemplateInstanceSchema, type SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelNamespace, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, type SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSubjects, type SubagentTemplateSummary, SubagentTemplateSummarySchema, type SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-
|
|
1
|
+
import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../../schemas-DuuVuhHX2.mjs";
|
|
2
2
|
export { SubagentTemplate, SubagentTemplateCompletedEventSchema, SubagentTemplateCreate, SubagentTemplateCreateSchema, SubagentTemplateInstance, SubagentTemplateInstanceSchema, SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSummary, SubagentTemplateSummarySchema, SubagentTemplateUpdate, SubagentTemplateUpdateSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../tool-approval-service-
|
|
1
|
+
import{t as e}from"../../tool-approval-service-MU_DmJsf.mjs";export{e as ToolApprovalService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,n as t,r as n,t as r}from"../../tools-
|
|
1
|
+
import{B as e,n as t,r as n,t as r}from"../../tools-BrNm-een.mjs";export{r as FILE_ACCESS_RULES_KEY,e as ToolRegistry,n as createToolContributionProcessor,t as extractToolFilePath};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TurnStorageSubjects, t as TurnStorageNamespace } from "../../namespace-
|
|
1
|
+
import { n as TurnStorageSubjects, t as TurnStorageNamespace } from "../../namespace-DAj_riOn.mjs";
|
|
2
2
|
export { TurnStorageNamespace, TurnStorageSubjects };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TurnStorageSubjects, t as TurnStorageNamespace } from "../../namespace-
|
|
1
|
+
import { n as TurnStorageSubjects, t as TurnStorageNamespace } from "../../namespace-DAj_riOn.mjs";
|
|
2
2
|
export { TurnStorageNamespace, TurnStorageSubjects };
|
|
@@ -211,6 +211,95 @@ declare const TurnStorageSchemas: {
|
|
|
211
211
|
}, z.core.$strip>;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
213
|
};
|
|
214
|
+
/**
|
|
215
|
+
* Idempotent upsert of an externally-completed turn, keyed on
|
|
216
|
+
* `(sessionId, turnAnchorId)`.
|
|
217
|
+
*
|
|
218
|
+
* The anchor is a content-derived idempotency key (the adapterMessageId of
|
|
219
|
+
* the turn-start user message in an imported transcript). The first insert
|
|
220
|
+
* assigns `turnNumber` atomically (MAX+1 per session); a conflicting
|
|
221
|
+
* re-ingestion of the same anchor updates completion fields only and NEVER
|
|
222
|
+
* changes `turnId`, `turnNumber`, or `startedAt` — `(sessionId, turnNumber)`
|
|
223
|
+
* is a stable downstream watermark, so re-parsing the same transcript
|
|
224
|
+
* (including compaction re-reads from byte 0) must never renumber or
|
|
225
|
+
* duplicate existing turns.
|
|
226
|
+
*
|
|
227
|
+
* `created` in the response distinguishes first ingestion (`true`) from an
|
|
228
|
+
* anchor-conflicting re-ingestion (`false`), letting callers gate
|
|
229
|
+
* exactly-once side effects (event emission) on it.
|
|
230
|
+
*
|
|
231
|
+
* Subject: `storage:turn.ingestCompleted`
|
|
232
|
+
* Type: Request (RPC)
|
|
233
|
+
*/
|
|
234
|
+
ingestCompleted: {
|
|
235
|
+
request: z.ZodObject<{
|
|
236
|
+
sessionId: z.ZodString;
|
|
237
|
+
turnAnchorId: z.ZodString;
|
|
238
|
+
startedAt: z.ZodNumber;
|
|
239
|
+
completedAt: z.ZodNumber;
|
|
240
|
+
status: z.ZodEnum<{
|
|
241
|
+
error: "error";
|
|
242
|
+
completed: "completed";
|
|
243
|
+
}>;
|
|
244
|
+
error: z.ZodOptional<z.ZodString>;
|
|
245
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
total: z.ZodObject<{
|
|
247
|
+
inputTokens: z.ZodNumber;
|
|
248
|
+
outputTokens: z.ZodNumber;
|
|
249
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
252
|
+
inputTokens: z.ZodNumber;
|
|
253
|
+
outputTokens: z.ZodNumber;
|
|
254
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
}, z.core.$strip>>>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
initiator: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
source: z.ZodEnum<{
|
|
259
|
+
user: "user";
|
|
260
|
+
system: "system";
|
|
261
|
+
extension: "extension";
|
|
262
|
+
}>;
|
|
263
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
response: z.ZodObject<{
|
|
267
|
+
turn: z.ZodObject<{
|
|
268
|
+
turnId: z.ZodString;
|
|
269
|
+
sessionId: z.ZodString;
|
|
270
|
+
turnNumber: z.ZodNumber;
|
|
271
|
+
startedAt: z.ZodNumber;
|
|
272
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
273
|
+
status: z.ZodEnum<{
|
|
274
|
+
error: "error";
|
|
275
|
+
completed: "completed";
|
|
276
|
+
active: "active";
|
|
277
|
+
}>;
|
|
278
|
+
error: z.ZodOptional<z.ZodString>;
|
|
279
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
total: z.ZodObject<{
|
|
281
|
+
inputTokens: z.ZodNumber;
|
|
282
|
+
outputTokens: z.ZodNumber;
|
|
283
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
286
|
+
inputTokens: z.ZodNumber;
|
|
287
|
+
outputTokens: z.ZodNumber;
|
|
288
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
}, z.core.$strip>>>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
initiator: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
source: z.ZodEnum<{
|
|
293
|
+
user: "user";
|
|
294
|
+
system: "system";
|
|
295
|
+
extension: "extension";
|
|
296
|
+
}>;
|
|
297
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
created: z.ZodBoolean;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
};
|
|
214
303
|
/**
|
|
215
304
|
* Get a turn by ID.
|
|
216
305
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as e}from"zod";import{TurnInitiatorSchema as t,TurnSchema as n,TurnStatusSchema as r,TurnUsageSchema as i}from"@makaio/framework/contracts";const a={create:{request:e.object({sessionId:e.string(),turnId:e.string().optional(),initiator:t.optional()}),response:e.object({turn:n})},complete:{request:e.object({turnId:e.string(),status:e.enum([`completed`,`error`]),expectedStatus:r.optional(),error:e.string().optional(),usage:i.optional()}),response:e.object({turn:n,transitioned:e.boolean()})},set:{request:e.object({turn:n}),response:e.object({turn:n})},get:{request:e.object({turnId:e.string()}),response:e.object({turn:n.nullable()})},getBySession:{request:e.object({sessionId:e.string(),limit:e.number().int().min(1).optional(),status:r.optional()}),response:e.object({turns:e.array(n)})},getActive:{request:e.object({sessionId:e.string()}),response:e.object({turn:n.nullable()})},listActive:{request:e.object({}),response:e.object({turns:e.array(n)})}};export{a as TurnStorageSchemas};
|
|
1
|
+
import{z as e}from"zod";import{TurnInitiatorSchema as t,TurnSchema as n,TurnStatusSchema as r,TurnUsageSchema as i}from"@makaio/framework/contracts";const a={create:{request:e.object({sessionId:e.string(),turnId:e.string().optional(),initiator:t.optional()}),response:e.object({turn:n})},complete:{request:e.object({turnId:e.string(),status:e.enum([`completed`,`error`]),expectedStatus:r.optional(),error:e.string().optional(),usage:i.optional()}),response:e.object({turn:n,transitioned:e.boolean()})},set:{request:e.object({turn:n}),response:e.object({turn:n})},ingestCompleted:{request:e.object({sessionId:e.string(),turnAnchorId:e.string().min(1),startedAt:e.number(),completedAt:e.number(),status:e.enum([`completed`,`error`]),error:e.string().optional(),usage:i.optional(),initiator:t.optional()}),response:e.object({turn:n,created:e.boolean()})},get:{request:e.object({turnId:e.string()}),response:e.object({turn:n.nullable()})},getBySession:{request:e.object({sessionId:e.string(),limit:e.number().int().min(1).optional(),status:r.optional()}),response:e.object({turns:e.array(n)})},getActive:{request:e.object({sessionId:e.string()}),response:e.object({turn:n.nullable()})},listActive:{request:e.object({}),response:e.object({turns:e.array(n)})}};export{a as TurnStorageSchemas};
|