@makaio/framework 1.0.0-dev-1783477169057 → 1.0.0-dev-1783687982716
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-CA8rPIUz.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +142 -168
- package/dist/adapters/index.mjs +6 -6
- package/dist/bus/index.d.mts +22 -22
- package/dist/bus/index.mjs +1 -1
- package/dist/client-DaR4mzqn.mjs +1 -0
- 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/canonical-model/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/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 +255 -203
- 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/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DePb3ke-.d.mts → definition-s9PIua2B.d.mts} +1 -1
- package/dist/drizzle/0024_external_settlement_fingerprint.sql +1 -0
- package/dist/drizzle/0025_external_registration_frame.sql +1 -0
- package/dist/drizzle/meta/_journal.json +14 -0
- package/dist/{index-Dv4oGVZK.d.mts → index-B4ZddkPI.d.mts} +413 -336
- package/dist/{index-BX1MxwFr.d.mts → index-B9d_8_V2.d.mts} +21 -21
- package/dist/{index-BeouVICp.d.mts → index-BUrNl0QJ.d.mts} +4 -4
- package/dist/{index-2fK9iSHI.d.mts → index-BWIkf5oJ.d.mts} +6 -6
- package/dist/{index-Bl42SCEI.d.mts → index-Bc82MC0z.d.mts} +4 -4
- package/dist/{index-CQQcnpev.d.mts → index-CAhKyxfm.d.mts} +437 -57
- package/dist/{index-B3fjN5HX.d.mts → index-CmHdpW0E.d.mts} +7 -7
- package/dist/{index-CA-AJbq6.d.mts → index-D4gn93gL.d.mts} +16 -16
- package/dist/{index-B-6DtLLz.d.mts → index-D7rWAEY0.d.mts} +1 -1
- package/dist/{index-j_X5xefv2.d.mts → index-D94cDExW2.d.mts} +11 -11
- package/dist/{index-DScUb-hF.d.mts → index-DLDQDXhD.d.mts} +2 -2
- package/dist/{index-uM4KZopE.d.mts → index-DNfNwGu6.d.mts} +8 -8
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-CwFSL4xI.d.mts → index-DTkGyKKA.d.mts} +180 -21
- package/dist/{index-BjO4Zkap.d.mts → index-DsLpP5ek.d.mts} +1 -1
- package/dist/{index-DMz-2ACU.d.mts → index-WHUV7neB.d.mts} +105 -105
- package/dist/{index-BcwOnvUh.d.mts → index-mU2lnU7O.d.mts} +6 -6
- package/dist/{index-C_xQM96Y.d.mts → index-oePgeOph.d.mts} +473 -389
- 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/loop-gate-handlers-o2B5FPdF.mjs +1 -0
- package/dist/{namespace-TPbegIMi.d.mts → namespace-B9V9R3AY.d.mts} +25 -25
- package/dist/{namespace-Boh42UoL.d.mts → namespace-BGIeqwfU.d.mts} +24 -0
- package/dist/{namespace-COEUMuHL.d.mts → namespace-BLER-Qom.d.mts} +154 -154
- package/dist/{namespace-OLAh9wHU.d.mts → namespace-Dm454cNM.d.mts} +9 -9
- package/dist/{namespace-D94HrTtq.d.mts → namespace-d_0I6P7N.d.mts} +6 -6
- package/dist/node/transports/index.d.mts +25 -3
- package/dist/node/transports/index.mjs +1 -1
- package/dist/package-Co_GO3UD.mjs +7 -0
- package/dist/{package-B6mEMD8r.d.mts → package-DmVZxufT.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CDBn9MTz.d.mts → schemas-B_t6oOK-.d.mts} +154 -154
- package/dist/{schemas-D512XweP.d.mts → schemas-CJ2JvA7d.d.mts} +3 -3
- package/dist/{schemas-DOV4UouN2.d.mts → schemas-CNUk34qC2.d.mts} +2 -2
- package/dist/schemas-CVo8qAK-.mjs +1 -0
- 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/execution-target/index.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +94 -94
- 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 +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- 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/session-CX6QDhi2.mjs +76 -0
- package/dist/session-DBfQkgdy.mjs +1 -0
- package/dist/{tool-approval-service-BNXgr-az.mjs → tool-approval-service-DEiMKTv9.mjs} +1 -1
- package/dist/{tools-BaO4GYj0.mjs → tools-CGFZkB7F.mjs} +1 -1
- package/dist/{transition-Bbjlwv5K.d.mts → transition-OzGXyy3p.d.mts} +1 -1
- package/dist/{types-D7W0ntGr.d.mts → types-1a2D10yb.d.mts} +28 -3
- package/dist/{types-BNW5n6qm.d.mts → types-BMS6yfLS.d.mts} +1 -1
- package/dist/{types-jruUn6oW.d.mts → types-BSilhlYE.d.mts} +260 -246
- package/dist/{types-CNkx2awa.d.mts → types-BWduCvRU.d.mts} +1 -1
- package/dist/workflow-C3dgVwTY.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +295 -27
- 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-Lx6K7yQS.mjs +0 -1
- package/dist/client-l1Rq5p6X.mjs +0 -1
- package/dist/loop-gate-handlers-Bjmat-K3.mjs +0 -1
- package/dist/package-BQn_RTo7.mjs +0 -1
- package/dist/schemas-CkOigLAT.mjs +0 -1
- package/dist/session-CoGaTin6.mjs +0 -69
- package/dist/session-Dp7z5N1d.mjs +0 -1
- package/dist/workflow-C1z7I5CI.mjs +0 -1
|
@@ -160,9 +160,9 @@ declare const ResolvedContextRulesSchema: z.ZodObject<{
|
|
|
160
160
|
declare const ContextRuleChangedEventSchema: z.ZodObject<{
|
|
161
161
|
ruleId: z.ZodString;
|
|
162
162
|
changeType: z.ZodEnum<{
|
|
163
|
-
updated: "updated";
|
|
164
163
|
deleted: "deleted";
|
|
165
164
|
created: "created";
|
|
165
|
+
updated: "updated";
|
|
166
166
|
}>;
|
|
167
167
|
previous: z.ZodNullable<z.ZodObject<{
|
|
168
168
|
scope: z.ZodEnum<{
|
|
@@ -313,9 +313,9 @@ declare const ContextRulesServiceNamespace: _$_makaio_core0.BusNamespaceDefiniti
|
|
|
313
313
|
changed: _$zod.ZodObject<{
|
|
314
314
|
ruleId: _$zod.ZodString;
|
|
315
315
|
changeType: _$zod.ZodEnum<{
|
|
316
|
-
updated: "updated";
|
|
317
316
|
deleted: "deleted";
|
|
318
317
|
created: "created";
|
|
318
|
+
updated: "updated";
|
|
319
319
|
}>;
|
|
320
320
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
321
321
|
scope: _$zod.ZodEnum<{
|
|
@@ -383,9 +383,9 @@ declare const ContextRulesServiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio
|
|
|
383
383
|
changed: _$zod.ZodObject<{
|
|
384
384
|
ruleId: _$zod.ZodString;
|
|
385
385
|
changeType: _$zod.ZodEnum<{
|
|
386
|
-
updated: "updated";
|
|
387
386
|
deleted: "deleted";
|
|
388
387
|
created: "created";
|
|
388
|
+
updated: "updated";
|
|
389
389
|
}>;
|
|
390
390
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
391
391
|
scope: _$zod.ZodEnum<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../../schemas-D4zaFE2p.mjs";
|
|
2
2
|
import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../../namespace-65uwTpbg.mjs";
|
|
3
|
-
import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, a as ContainerBootstrapConfig, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, o as ContainerBootstrapConfigSchema, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../../index-
|
|
3
|
+
import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, a as ContainerBootstrapConfig, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, o as ContainerBootstrapConfigSchema, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../../index-mU2lnU7O.mjs";
|
|
4
4
|
export { ContainerBootstrapConfig, ContainerBootstrapConfigSchema, ContainerCreated, ContainerCreatedSchema, ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, ContainerRuntime, ContainerRuntimeSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, ContainerStarted, ContainerStartedSchema, ContainerState, ContainerStateSchema, ContainerStopped, ContainerStoppedSchema, DockerNamespace, DockerSubjects, ExecutionTarget, ExecutionTargetInput, ExecutionTargetInputSchema, ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, ExecutionTargetType, ExecutionTargetTypeSchema, LocalExecutionTargetSchema, SpawnRequest, SpawnRequestSchema, SpawnResponse, SpawnResponseSchema, StatusRequest, StatusRequestSchema, StatusResponse, StatusResponseSchema, StopRequest, StopRequestSchema, StopResponse, StopResponseSchema };
|
|
@@ -14,8 +14,8 @@ declare const HarnessInputSchema: z.ZodObject<{
|
|
|
14
14
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15
15
|
name: z.ZodString;
|
|
16
16
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
17
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18
17
|
clientId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
19
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
20
20
|
"file.read": "file.read";
|
|
21
21
|
"file.write": "file.write";
|
|
@@ -131,8 +131,8 @@ declare const HarnessStorageNamespace: _$_makaio_storage_core0.StorageNamespaceD
|
|
|
131
131
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
132
|
name: z.ZodString;
|
|
133
133
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
134
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
135
134
|
clientId: z.ZodOptional<z.ZodString>;
|
|
135
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
136
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
137
137
|
"file.read": "file.read";
|
|
138
138
|
"file.write": "file.write";
|
|
@@ -738,8 +738,8 @@ declare const HarnessStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core
|
|
|
738
738
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
739
739
|
name: z.ZodString;
|
|
740
740
|
adapterName: z.ZodOptional<z.ZodString>;
|
|
741
|
-
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
742
741
|
clientId: z.ZodOptional<z.ZodString>;
|
|
742
|
+
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
743
743
|
toolCapabilityMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
744
744
|
"file.read": "file.read";
|
|
745
745
|
"file.write": "file.write";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as ResolveIdResponse, d as ResolveNameRequestSchema, f as ResolveNameResponse, l as ResolveIdResponseSchema, o as ResolveIdRequest, p as ResolveNameResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveNameRequest } from "../schemas-t6h9oSct.mjs";
|
|
2
2
|
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-BigVYQyx.mjs";
|
|
3
3
|
import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../index-h5go5Dtd.mjs";
|
|
4
|
-
import { _ as BindingRecord } from "../index-
|
|
5
|
-
import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-
|
|
6
|
-
import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-
|
|
4
|
+
import { _ as BindingRecord } from "../index-BUrNl0QJ.mjs";
|
|
5
|
+
import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-B_t6oOK-.mjs";
|
|
6
|
+
import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-BLER-Qom.mjs";
|
|
7
7
|
import { t as CapabilityService } from "../index-C4nStEdA.mjs";
|
|
8
8
|
import { n as CodebaseSubjects, t as CodebaseNamespace } from "../namespace-CQ8uza7o.mjs";
|
|
9
9
|
import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseChangedEvent } from "../schemas-DKncXGnb.mjs";
|
|
@@ -12,16 +12,16 @@ import { n as CompressionSubjects, t as CompressionNamespace } from "../namespac
|
|
|
12
12
|
import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from "../types-Bo78h9e3.mjs";
|
|
13
13
|
import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../schemas-D4zaFE2p.mjs";
|
|
14
14
|
import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-65uwTpbg.mjs";
|
|
15
|
-
import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../index-
|
|
16
|
-
import { $t as ensureAgentCwd, A as SelectTurn, At as AgentStorageSubjects, Bt as registerListActionsHandler, C as MessageRoutingSubjects, Ct as parseForkTransforms, D as registerMemoryMessageStorage, Dt as registerDrizzleSessionStorage, E as messages, Et as registerMemoryAgentStorage, F as EmbeddingIndexManager, Ft as FallbackRuntimeOptions, Gt as registerResumeHandler, Ht as resetBuiltInActionsRegistration, I as registerDrizzleImportCursorStorage, It as pickFallbackRuntimeOptions, Jt as ContextWindowTrackerConfig, Kt as ContextWindowTracker, L as importCursors, Lt as CONNECTOR_SWAP_DEFAULT_PIPELINE, M as turnsDual, Mt as createSessionExtensionContext, N as registerMemoryTurnStorage, Nt as SessionBridge, O as registerDrizzleMessageStorage, Ot as registerMemorySessionStorage, P as registerDrizzleTurnStorage, Pt as assembleForkContext, Qt as buildRecoveryContextWithPipeline, R as importCursorsDual, Rt as normalizeSelectionString, S as MessageRoutingNamespace, St as mapRowToSession, T as SelectMessage, Tt as registerDrizzleAgentStorage, Ut as actionRegistry, Vt as registerBuiltInActions, Wt as registerGetStatusCountsHandler, Xt as buildTurnInitiator, Yt as SessionContextWindowState, Zt as RecoveryConfig, _ as InsertMessageRouting, _n as MakaioSessionService, _t as SearchFilters, a as buildSessionContext, an as resolveExecutionTarget, b as messageRoutingDual, bt as fetchMessageCountsBySession, c as kindToBranchKind, cn as getOrCreateSession, ct as InsertSessionEvent, d as registerSpawningToolCallResolver, dn as normalizeToBlocks, dt as sessionEventsDual, en as ensureAgentModel, et as EventTransform, f as registerCompressLineageResolver, fn as TurnContextEnricher, g as StartTurnOptions, gn as registerCoreSessionServiceHandlers, gt as mapToSession, h as MakaioSessionConfig, hn as SessionOrchestrator, ht as mapAgentsBySession, i as getFullConversation, in as resolveAdapterId, j as turns, jt as SessionExtensionContextImpl, k as InsertTurn, kt as AgentStorageNamespace, ln as resolveTargetAgents, lt as SelectSessionEvent, m as MakaioSession, mn as ISessionOrchestrator, mt as fetchSessionPreviewMaps, nn as verifyAndRecoverAgents, o as BuildContextOptions, on as resolveModelCapabilities, ot as registerDrizzleSessionEventStorage, p as registerParentResolver, pn as AdapterRegistry, pt as SessionPreviewMaps, qt as AgentContextState, rn as buildRecoveryContext, s as ContextAssemblyResult, sn as findTurnByAgent, st as registerMemorySessionEventStorage, tn as recoverAgent, un as extractTextContent, ut as sessionEvents, v as SelectMessageRouting, vt as SearchSessionRow, w as InsertMessage, wt as registerFtsSearchHandler, x as registerDrizzleMessageRoutingStorage, xt as fetchPreviewBySession, y as messageRouting, yt as fetchAgentsBySession, zt as resolveAdapterNameById } from "../index-
|
|
15
|
+
import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../index-mU2lnU7O.mjs";
|
|
16
|
+
import { $t as ensureAgentCwd, A as SelectTurn, At as AgentStorageSubjects, Bt as registerListActionsHandler, C as MessageRoutingSubjects, Ct as parseForkTransforms, D as registerMemoryMessageStorage, Dt as registerDrizzleSessionStorage, E as messages, Et as registerMemoryAgentStorage, F as EmbeddingIndexManager, Ft as FallbackRuntimeOptions, Gt as registerResumeHandler, Ht as resetBuiltInActionsRegistration, I as registerDrizzleImportCursorStorage, It as pickFallbackRuntimeOptions, Jt as ContextWindowTrackerConfig, Kt as ContextWindowTracker, L as importCursors, Lt as CONNECTOR_SWAP_DEFAULT_PIPELINE, M as turnsDual, Mt as createSessionExtensionContext, N as registerMemoryTurnStorage, Nt as SessionBridge, O as registerDrizzleMessageStorage, Ot as registerMemorySessionStorage, P as registerDrizzleTurnStorage, Pt as assembleForkContext, Qt as buildRecoveryContextWithPipeline, R as importCursorsDual, Rt as normalizeSelectionString, S as MessageRoutingNamespace, St as mapRowToSession, T as SelectMessage, Tt as registerDrizzleAgentStorage, Ut as actionRegistry, Vt as registerBuiltInActions, Wt as registerGetStatusCountsHandler, Xt as buildTurnInitiator, Yt as SessionContextWindowState, Zt as RecoveryConfig, _ as InsertMessageRouting, _n as MakaioSessionService, _t as SearchFilters, a as buildSessionContext, an as resolveExecutionTarget, b as messageRoutingDual, bt as fetchMessageCountsBySession, c as kindToBranchKind, cn as getOrCreateSession, ct as InsertSessionEvent, d as registerSpawningToolCallResolver, dn as normalizeToBlocks, dt as sessionEventsDual, en as ensureAgentModel, et as EventTransform, f as registerCompressLineageResolver, fn as TurnContextEnricher, g as StartTurnOptions, gn as registerCoreSessionServiceHandlers, gt as mapToSession, h as MakaioSessionConfig, hn as SessionOrchestrator, ht as mapAgentsBySession, i as getFullConversation, in as resolveAdapterId, j as turns, jt as SessionExtensionContextImpl, k as InsertTurn, kt as AgentStorageNamespace, ln as resolveTargetAgents, lt as SelectSessionEvent, m as MakaioSession, mn as ISessionOrchestrator, mt as fetchSessionPreviewMaps, nn as verifyAndRecoverAgents, o as BuildContextOptions, on as resolveModelCapabilities, ot as registerDrizzleSessionEventStorage, p as registerParentResolver, pn as AdapterRegistry, pt as SessionPreviewMaps, qt as AgentContextState, rn as buildRecoveryContext, s as ContextAssemblyResult, sn as findTurnByAgent, st as registerMemorySessionEventStorage, tn as recoverAgent, un as extractTextContent, ut as sessionEvents, v as SelectMessageRouting, vt as SearchSessionRow, w as InsertMessage, wt as registerFtsSearchHandler, x as registerDrizzleMessageRoutingStorage, xt as fetchPreviewBySession, y as messageRouting, yt as fetchAgentsBySession, zt as resolveAdapterNameById } from "../index-DLDQDXhD.mjs";
|
|
17
17
|
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-BvTd61i5.mjs";
|
|
18
18
|
import { n as activateProviderContextStrict, r as buildProviderContext, t as activateProviderContext } from "../index-DtwGhFFQ.mjs";
|
|
19
|
-
import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-
|
|
19
|
+
import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-BGIeqwfU.mjs";
|
|
20
20
|
import { a as agents, s as sessions } from "../schema-B5vHi7Uu.mjs";
|
|
21
|
-
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-
|
|
21
|
+
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-Dm454cNM.mjs";
|
|
22
22
|
import { t as TurnStorageNamespace } from "../namespace-D1_9WVCo.mjs";
|
|
23
23
|
import { n as TurnStorageSubjects } from "../namespace-DAj_riOn.mjs";
|
|
24
|
-
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-
|
|
24
|
+
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-B9V9R3AY.mjs";
|
|
25
25
|
import { a as createToolContributionProcessor, c as ToolRegistryOptions, d as ToolsetPolicy, f as ToolsetPolicyProvider, l as ToolsWithToolsetsResult, o as ToolRegistry, s as ListToolsFilter, u as ToolsetInfo } from "../index-Cr9lh21j.mjs";
|
|
26
26
|
import { t as ToolApprovalService } from "../index-BvLXySoB2.mjs";
|
|
27
27
|
import { t as TrayMenuService } from "../index-DUD7wikz2.mjs";
|
|
@@ -31,7 +31,7 @@ import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModel
|
|
|
31
31
|
import { a as InternalPendingRequest, c as SubagentServiceToken, i as InputResolver, l as subagentServicePackage, n as TrackOptions, o as SpawnOptions, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as SubagentService } from "../index-C23g_M_J2.mjs";
|
|
32
32
|
import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DWfo0wp4.mjs";
|
|
33
33
|
import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-Di1A3DMm.mjs";
|
|
34
|
-
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-
|
|
34
|
+
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-CNUk34qC2.mjs";
|
|
35
35
|
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-6sIu5nBI2.mjs";
|
|
36
36
|
import * as _$zod from "zod";
|
|
37
37
|
import { z } from "zod";
|
|
@@ -1334,8 +1334,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1334
1334
|
response: _$zod.ZodObject<{
|
|
1335
1335
|
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
1336
1336
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1337
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1338
1337
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1338
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1339
1339
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1340
1340
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1341
1341
|
label: _$zod.ZodString;
|
|
@@ -1359,8 +1359,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1359
1359
|
response: _$zod.ZodObject<{
|
|
1360
1360
|
configs: _$zod.ZodArray<_$zod.ZodObject<{
|
|
1361
1361
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1362
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1363
1362
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1363
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1364
1364
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1365
1365
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1366
1366
|
label: _$zod.ZodString;
|
|
@@ -1846,8 +1846,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1846
1846
|
response: _$zod.ZodObject<{
|
|
1847
1847
|
config: _$zod.ZodObject<{
|
|
1848
1848
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1849
|
-
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1850
1849
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1850
|
+
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1851
1851
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1852
1852
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1853
1853
|
label: _$zod.ZodString;
|
|
@@ -2001,25 +2001,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2001
2001
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
2002
2002
|
mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2003
2003
|
sessionId: _$zod.ZodString;
|
|
2004
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2005
|
-
fullName: _$zod.ZodString;
|
|
2006
|
-
originalName: _$zod.ZodString;
|
|
2007
|
-
serverName: _$zod.ZodString;
|
|
2008
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2009
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2010
|
-
exposureMode: _$zod.ZodEnum<{
|
|
2011
|
-
hidden: "hidden";
|
|
2012
|
-
discovery: "discovery";
|
|
2013
|
-
direct: "direct";
|
|
2014
|
-
}>;
|
|
2015
|
-
enabled: _$zod.ZodBoolean;
|
|
2016
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2017
|
-
discovery: "discovery";
|
|
2018
|
-
toolset: "toolset";
|
|
2019
|
-
}>>;
|
|
2020
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2021
|
-
exposed: _$zod.ZodBoolean;
|
|
2022
|
-
}, _$zod_v4_core0.$strip>>;
|
|
2023
2004
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2024
2005
|
name: _$zod.ZodString;
|
|
2025
2006
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -2056,20 +2037,39 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2056
2037
|
type: _$zod.ZodLiteral<"http">;
|
|
2057
2038
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
2058
2039
|
exposureMode: _$zod.ZodEnum<{
|
|
2059
|
-
discovery: "discovery";
|
|
2060
2040
|
direct: "direct";
|
|
2041
|
+
discovery: "discovery";
|
|
2061
2042
|
}>;
|
|
2062
2043
|
}, _$zod_v4_core0.$strip>>;
|
|
2063
|
-
|
|
2044
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2064
2045
|
fullName: _$zod.ZodString;
|
|
2065
2046
|
originalName: _$zod.ZodString;
|
|
2066
2047
|
serverName: _$zod.ZodString;
|
|
2067
2048
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2068
2049
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2069
2050
|
exposureMode: _$zod.ZodEnum<{
|
|
2051
|
+
direct: "direct";
|
|
2052
|
+
discovery: "discovery";
|
|
2070
2053
|
hidden: "hidden";
|
|
2054
|
+
}>;
|
|
2055
|
+
enabled: _$zod.ZodBoolean;
|
|
2056
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2071
2057
|
discovery: "discovery";
|
|
2058
|
+
toolset: "toolset";
|
|
2059
|
+
}>>;
|
|
2060
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2061
|
+
exposed: _$zod.ZodBoolean;
|
|
2062
|
+
}, _$zod_v4_core0.$strip>>;
|
|
2063
|
+
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2064
|
+
fullName: _$zod.ZodString;
|
|
2065
|
+
originalName: _$zod.ZodString;
|
|
2066
|
+
serverName: _$zod.ZodString;
|
|
2067
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2068
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2069
|
+
exposureMode: _$zod.ZodEnum<{
|
|
2072
2070
|
direct: "direct";
|
|
2071
|
+
discovery: "discovery";
|
|
2072
|
+
hidden: "hidden";
|
|
2073
2073
|
}>;
|
|
2074
2074
|
enabled: _$zod.ZodBoolean;
|
|
2075
2075
|
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
@@ -2098,18 +2098,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2098
2098
|
env?: Record<string, string> | undefined;
|
|
2099
2099
|
mcpSessionContext?: {
|
|
2100
2100
|
sessionId: string;
|
|
2101
|
-
directTools: {
|
|
2102
|
-
fullName: string;
|
|
2103
|
-
originalName: string;
|
|
2104
|
-
serverName: string;
|
|
2105
|
-
inputSchema: Record<string, unknown>;
|
|
2106
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
2107
|
-
enabled: boolean;
|
|
2108
|
-
exposed: boolean;
|
|
2109
|
-
description?: string | undefined;
|
|
2110
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2111
|
-
enabledAt?: number | undefined;
|
|
2112
|
-
}[];
|
|
2113
2101
|
servers: {
|
|
2114
2102
|
name: string;
|
|
2115
2103
|
transport: {
|
|
@@ -2137,14 +2125,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2137
2125
|
}[] | undefined;
|
|
2138
2126
|
alwaysLoad?: boolean | undefined;
|
|
2139
2127
|
};
|
|
2140
|
-
exposureMode: "
|
|
2128
|
+
exposureMode: "direct" | "discovery";
|
|
2129
|
+
}[];
|
|
2130
|
+
directTools: {
|
|
2131
|
+
fullName: string;
|
|
2132
|
+
originalName: string;
|
|
2133
|
+
serverName: string;
|
|
2134
|
+
inputSchema: Record<string, unknown>;
|
|
2135
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2136
|
+
enabled: boolean;
|
|
2137
|
+
exposed: boolean;
|
|
2138
|
+
description?: string | undefined;
|
|
2139
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2140
|
+
enabledAt?: number | undefined;
|
|
2141
2141
|
}[];
|
|
2142
2142
|
discoverableTools: {
|
|
2143
2143
|
fullName: string;
|
|
2144
2144
|
originalName: string;
|
|
2145
2145
|
serverName: string;
|
|
2146
2146
|
inputSchema: Record<string, unknown>;
|
|
2147
|
-
exposureMode: "
|
|
2147
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2148
2148
|
enabled: boolean;
|
|
2149
2149
|
exposed: boolean;
|
|
2150
2150
|
description?: string | undefined;
|
|
@@ -2172,18 +2172,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2172
2172
|
env?: Record<string, string> | undefined;
|
|
2173
2173
|
mcpSessionContext?: {
|
|
2174
2174
|
sessionId: string;
|
|
2175
|
-
directTools: {
|
|
2176
|
-
fullName: string;
|
|
2177
|
-
originalName: string;
|
|
2178
|
-
serverName: string;
|
|
2179
|
-
inputSchema: Record<string, unknown>;
|
|
2180
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
2181
|
-
enabled: boolean;
|
|
2182
|
-
exposed: boolean;
|
|
2183
|
-
description?: string | undefined;
|
|
2184
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2185
|
-
enabledAt?: number | undefined;
|
|
2186
|
-
}[];
|
|
2187
2175
|
servers: {
|
|
2188
2176
|
name: string;
|
|
2189
2177
|
transport: {
|
|
@@ -2211,14 +2199,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2211
2199
|
}[] | undefined;
|
|
2212
2200
|
alwaysLoad?: boolean | undefined;
|
|
2213
2201
|
};
|
|
2214
|
-
exposureMode: "
|
|
2202
|
+
exposureMode: "direct" | "discovery";
|
|
2203
|
+
}[];
|
|
2204
|
+
directTools: {
|
|
2205
|
+
fullName: string;
|
|
2206
|
+
originalName: string;
|
|
2207
|
+
serverName: string;
|
|
2208
|
+
inputSchema: Record<string, unknown>;
|
|
2209
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2210
|
+
enabled: boolean;
|
|
2211
|
+
exposed: boolean;
|
|
2212
|
+
description?: string | undefined;
|
|
2213
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2214
|
+
enabledAt?: number | undefined;
|
|
2215
2215
|
}[];
|
|
2216
2216
|
discoverableTools: {
|
|
2217
2217
|
fullName: string;
|
|
2218
2218
|
originalName: string;
|
|
2219
2219
|
serverName: string;
|
|
2220
2220
|
inputSchema: Record<string, unknown>;
|
|
2221
|
-
exposureMode: "
|
|
2221
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2222
2222
|
enabled: boolean;
|
|
2223
2223
|
exposed: boolean;
|
|
2224
2224
|
description?: string | undefined;
|
|
@@ -2244,18 +2244,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2244
2244
|
env?: Record<string, string> | undefined;
|
|
2245
2245
|
mcpSessionContext?: {
|
|
2246
2246
|
sessionId: string;
|
|
2247
|
-
directTools: {
|
|
2248
|
-
fullName: string;
|
|
2249
|
-
originalName: string;
|
|
2250
|
-
serverName: string;
|
|
2251
|
-
inputSchema: Record<string, unknown>;
|
|
2252
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
2253
|
-
enabled: boolean;
|
|
2254
|
-
exposed: boolean;
|
|
2255
|
-
description?: string | undefined;
|
|
2256
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2257
|
-
enabledAt?: number | undefined;
|
|
2258
|
-
}[];
|
|
2259
2247
|
servers: {
|
|
2260
2248
|
name: string;
|
|
2261
2249
|
transport: {
|
|
@@ -2283,14 +2271,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2283
2271
|
}[] | undefined;
|
|
2284
2272
|
alwaysLoad?: boolean | undefined;
|
|
2285
2273
|
};
|
|
2286
|
-
exposureMode: "
|
|
2274
|
+
exposureMode: "direct" | "discovery";
|
|
2275
|
+
}[];
|
|
2276
|
+
directTools: {
|
|
2277
|
+
fullName: string;
|
|
2278
|
+
originalName: string;
|
|
2279
|
+
serverName: string;
|
|
2280
|
+
inputSchema: Record<string, unknown>;
|
|
2281
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2282
|
+
enabled: boolean;
|
|
2283
|
+
exposed: boolean;
|
|
2284
|
+
description?: string | undefined;
|
|
2285
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2286
|
+
enabledAt?: number | undefined;
|
|
2287
2287
|
}[];
|
|
2288
2288
|
discoverableTools: {
|
|
2289
2289
|
fullName: string;
|
|
2290
2290
|
originalName: string;
|
|
2291
2291
|
serverName: string;
|
|
2292
2292
|
inputSchema: Record<string, unknown>;
|
|
2293
|
-
exposureMode: "
|
|
2293
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2294
2294
|
enabled: boolean;
|
|
2295
2295
|
exposed: boolean;
|
|
2296
2296
|
description?: string | undefined;
|
|
@@ -2318,18 +2318,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2318
2318
|
env?: Record<string, string> | undefined;
|
|
2319
2319
|
mcpSessionContext?: {
|
|
2320
2320
|
sessionId: string;
|
|
2321
|
-
directTools: {
|
|
2322
|
-
fullName: string;
|
|
2323
|
-
originalName: string;
|
|
2324
|
-
serverName: string;
|
|
2325
|
-
inputSchema: Record<string, unknown>;
|
|
2326
|
-
exposureMode: "hidden" | "discovery" | "direct";
|
|
2327
|
-
enabled: boolean;
|
|
2328
|
-
exposed: boolean;
|
|
2329
|
-
description?: string | undefined;
|
|
2330
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2331
|
-
enabledAt?: number | undefined;
|
|
2332
|
-
}[];
|
|
2333
2321
|
servers: {
|
|
2334
2322
|
name: string;
|
|
2335
2323
|
transport: {
|
|
@@ -2357,14 +2345,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2357
2345
|
}[] | undefined;
|
|
2358
2346
|
alwaysLoad?: boolean | undefined;
|
|
2359
2347
|
};
|
|
2360
|
-
exposureMode: "
|
|
2348
|
+
exposureMode: "direct" | "discovery";
|
|
2349
|
+
}[];
|
|
2350
|
+
directTools: {
|
|
2351
|
+
fullName: string;
|
|
2352
|
+
originalName: string;
|
|
2353
|
+
serverName: string;
|
|
2354
|
+
inputSchema: Record<string, unknown>;
|
|
2355
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2356
|
+
enabled: boolean;
|
|
2357
|
+
exposed: boolean;
|
|
2358
|
+
description?: string | undefined;
|
|
2359
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
2360
|
+
enabledAt?: number | undefined;
|
|
2361
2361
|
}[];
|
|
2362
2362
|
discoverableTools: {
|
|
2363
2363
|
fullName: string;
|
|
2364
2364
|
originalName: string;
|
|
2365
2365
|
serverName: string;
|
|
2366
2366
|
inputSchema: Record<string, unknown>;
|
|
2367
|
-
exposureMode: "
|
|
2367
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
2368
2368
|
enabled: boolean;
|
|
2369
2369
|
exposed: boolean;
|
|
2370
2370
|
description?: string | undefined;
|
|
@@ -3263,9 +3263,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3263
3263
|
changed: _$zod.ZodObject<{
|
|
3264
3264
|
ruleId: _$zod.ZodString;
|
|
3265
3265
|
changeType: _$zod.ZodEnum<{
|
|
3266
|
-
updated: "updated";
|
|
3267
3266
|
deleted: "deleted";
|
|
3268
3267
|
created: "created";
|
|
3268
|
+
updated: "updated";
|
|
3269
3269
|
}>;
|
|
3270
3270
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
3271
3271
|
scope: _$zod.ZodEnum<{
|
|
@@ -3468,8 +3468,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3468
3468
|
response: _$zod.ZodObject<{
|
|
3469
3469
|
state: _$zod.ZodEnum<{
|
|
3470
3470
|
running: "running";
|
|
3471
|
-
created: "created";
|
|
3472
3471
|
stopped: "stopped";
|
|
3472
|
+
created: "created";
|
|
3473
3473
|
destroyed: "destroyed";
|
|
3474
3474
|
}>;
|
|
3475
3475
|
sessionId: _$zod.ZodString;
|
|
@@ -3814,8 +3814,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3814
3814
|
extensionConfig: _$zod.ZodObject<{
|
|
3815
3815
|
id: _$zod.ZodString;
|
|
3816
3816
|
config: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
3817
|
-
extensionName: _$zod.ZodString;
|
|
3818
3817
|
enabled: _$zod.ZodBoolean;
|
|
3818
|
+
extensionName: _$zod.ZodString;
|
|
3819
3819
|
scope: _$zod.ZodString;
|
|
3820
3820
|
}, _$zod_v4_core0.$strip>;
|
|
3821
3821
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -4065,8 +4065,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
4065
4065
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
4066
4066
|
name: _$zod.ZodString;
|
|
4067
4067
|
adapterName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4068
|
-
credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
4069
4068
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4069
|
+
credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
4070
4070
|
toolCapabilityMap: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodReadonly<_$zod.ZodArray<_$zod.ZodEnum<{
|
|
4071
4071
|
"file.read": "file.read";
|
|
4072
4072
|
"file.write": "file.write";
|
|
@@ -6368,8 +6368,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
6368
6368
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
6369
6369
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
6370
6370
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
6371
|
-
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
6372
6371
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
6372
|
+
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
6373
6373
|
}, _$zod_v4_core0.$strip>;
|
|
6374
6374
|
response: _$zod.ZodObject<{
|
|
6375
6375
|
id: _$zod.ZodString;
|
package/dist/services/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{n,t as r}from"../schema-CHp6I33k.mjs";import{t as i}from"../schema-7aKBGB7S.mjs";import{i as a,n as o,r as s,t as c}from"../namespace-dFBD2ZmS.mjs";import{A as l,B as u,C as d,D as f,E as p,F as m,I as h,M as ee,N as te,O as ne,P as re,T as ie,V as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as de,g as fe,h as pe,i as me,j as he,k as ge,l as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,w as De,x as Oe,y as ke}from"../handlers-B74FvKlA.mjs";import{TurnStorageNamespace as Ae,TurnStorageSubjects as je}from"./turn/namespace.mjs";import{SessionStorageNamespace as Me,SessionStorageSubjects as Ne}from"./session/storage/namespace.mjs";import{$ as g,A as _,B as v,C as y,D as b,E as Pe,F as Fe,G as Ie,H as Le,I as Re,J as ze,K as Be,L as Ve,M as He,N as Ue,O as We,Q as Ge,R as Ke,S as qe,T as Je,U as Ye,V as Xe,W as Ze,X as Qe,Y as $e,Z as et,a as tt,b as nt,c as rt,et as it,i as at,j as ot,k as st,l as ct,o as lt,q as x,r as ut,s as dt,t as ft,tt as pt,u as mt,w as ht,x as gt,z as _t}from"../session-CoGaTin6.mjs";import{t as vt}from"../namespace-DBHwyhME.mjs";import{n as yt,r as bt,t as xt}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as St,ResolveIdRequestSchema as Ct,ResolveIdResponseSchema as wt,ResolveNameRequestSchema as Tt,ResolveNameResponseSchema as Et}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as S,AdapterRuntimeSubjects as Dt}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as Ot}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as kt,ContainerLocalExecutionTargetSchema as At,ExecutionTargetInputSchema as jt,ExecutionTargetListQuerySchema as Mt,ExecutionTargetResolveRequestSchema as Nt,ExecutionTargetSchema as Pt,ExecutionTargetSchemas as Ft,ExecutionTargetTypeSchema as It,LocalExecutionTargetSchema as Lt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as C,ExecutionTargetSubjects as Rt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as zt,MessageStorageSubjects as Bt}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as Vt}from"./session/turns/namespace.mjs";import{BugEntrySchema as Ht,CompressRequestSchema as Ut,CompressResponseSchema as Wt,CompressionEventSchema as Gt,CompressionSchemas as Kt,ExtractedContextSchema as qt,TechnicalDetailsSchema as Jt,TodoEntrySchema as Yt}from"./compression/schemas.mjs";import{PreferenceItemSchema as Xt,PreferenceKeySchema as Zt,PreferenceValueSchema as Qt,PreferencesSchemas as $t}from"./preferences/schemas.mjs";import{PreferencesNamespace as w,PreferencesSubjects as en}from"./preferences/storage-namespace.mjs";import{t as tn}from"../namespace-wke7juzy.mjs";import{A as nn,B as rn,C as an,D as on,E as sn,F as cn,G as ln,H as un,I as dn,J as fn,K as pn,L as mn,M as hn,N as gn,O as _n,P as vn,R as yn,S as bn,T as xn,U as Sn,V as Cn,W as wn,Y as Tn,_ as En,a as T,b as Dn,c as On,d as kn,f as An,g as E,h as jn,i as D,j as Mn,k as O,l as Nn,m as Pn,o as Fn,p as k,q as In,r as Ln,s as A,u as Rn,v as j,w as zn,x as Bn,y as Vn,z as Hn}from"../tools-BaO4GYj0.mjs";import{t as Un}from"../capability-service-XlymTzz1.mjs";import{a as Wn,c as Gn,i as Kn,l as qn,n as Jn,o as M,r as Yn,s as Xn,t as Zn,u as Qn}from"../model-registry-rYICIwyR.mjs";import{t as $n}from"../tool-approval-service-BNXgr-az.mjs";import{TrayMenuEntrySchema as er,TrayMenuGroupEntrySchema as tr,TrayMenuGroupSchema as nr,TrayMenuItemClickedSchema as rr,TrayMenuListEntrySchema as ir,TrayMenuMetadataSchema as ar,TrayMenuSchemas as or,TrayMenuSectionSchema as sr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as N,TrayMenuSubjects as cr}from"./tray-menu/namespace.mjs";import{t as lr}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ur}from"../handler-BFNvtv5t.mjs";import{i as dr,n as fr,r as pr,t as mr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as hr}from"./filesystem/namespace.mjs";import"./capability/index.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as gr,AgentRuntimeSchemas as _r,AgentRuntimeSelectionSchema as vr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as P,AgentRuntimeSubjects as yr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as br,CodebaseSchemas as xr}from"./codebase/schemas.mjs";import{CodebaseNamespace as F,CodebaseSubjects as Sr}from"./codebase/namespace.mjs";import{CompressionNamespace as I,CompressionSubjects as Cr}from"./compression/namespace.mjs";import{r as wr,t as Tr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as Er}from"./definition/namespace.mjs";import{DialogNamespace as Dr}from"./dialog/namespace.mjs";import{_ as Or,c as kr,d as Ar,f as jr,g as Mr,h as Nr,i as Pr,l as Fr,m as Ir,n as Lr,o as Rr,p as zr,r as L,s as Br,t as Vr,u as Hr,v as Ur,y as Wr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as Gr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Kr}from"./local-notification/namespace.mjs";import{t as qr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Jr}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Yr}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Xr,SubagentTemplateCreateSchema as Zr,SubagentTemplateInstanceSchema as Qr,SubagentTemplateInstanceStatusSchema as $r,SubagentTemplateKernelSchemas as ei,SubagentTemplateSchema as ti,SubagentTemplateSettingsSchemas as ni,SubagentTemplateSpawnRequestSchema as ri,SubagentTemplateSpawnedEventSchema as ii,SubagentTemplateSummarySchema as ai,SubagentTemplateUpdateSchema as oi}from"./subagent-template/schemas.mjs";import{r as si,t as ci}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as R,SubagentTemplateSubjects as li}from"./subagent-template/namespace.mjs";import{i as ui,n as di,r as fi,t as pi}from"../identity-DC3Pk0ps.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ArtifactSubjects as mi}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as hi}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as gi}from"@makaio/framework/contracts/model-registry";function _i(e){return{source:`extension`,ownerKey:`extension:${e}`}}function vi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function yi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}vi(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(T);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=_i(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function bi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function xi(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(D);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(bi(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}async function Si(e){let t=e.maxDepth??5,n={bus:e.bus,kindRegistry:e.kindRegistry,maxDepth:t,resolvedByKey:new Map,kindDefaultsCache:new Map,walkedByKey:new Set,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await B(n,e.ref);if(!r)throw Error(`artifact.resolveContext: root artifact '${e.ref.kind}:${e.ref.id}:${e.ref.revision}' not found`);return n.resolved.push(r),await z(n,r,H(await V(n,r),e.selectors),0,new Set([Z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function z(e,t,n,r,i){let a=Mi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=ki(t);for(let a of t.relations)await Ci(e,o,a,n,r,i)}async function Ci(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!wi(o,n.target)){W(e,U(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){W(e,U(t,n,s,`unsupported-ref-class`));return}let c=Z(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){W(e,U(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await B(e,n.target);if(!d){W(e,U(t,n,s,`not-found`));return}if(W(e,{sourceRef:t,target:n.target,relationType:n.type,hint:s,status:`resolved`},{resolvedViaBackEdge:l}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=f>0?{[n.type]:{...o,depth:f}}:void 0,m=H(H(await V(e,d),p),o.nested),h=new Set(a);h.add(c),await z(e,d,m,i+1,h)}async function B(e,t){let n=Z(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(mi.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}async function V(e,t){let n=JSON.stringify([t.kind,t.schemaVersion]);if(e.kindDefaultsCache.has(n))return e.kindDefaultsCache.get(n);let r=(await e.kindRegistry.getKind(t.kind,t.schemaVersion))?.defaultContext;return e.kindDefaultsCache.set(n,r),r}function H(e,t){if(!t)return e;if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]=r;return n}function wi(e,t){return e?e.kinds?e.kinds.includes(Ti(t)):!0:!1}function Ti(e){return e.refClass===`local`?e.artifact.kind:e.kind}function U(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,hint:n,status:`unresolved`,reason:r}}function W(e,t,n){let r=Ai(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),J(e,r,t,n),e.refs.push(t);return}let a=e.refs[i];if(a){if(t.status===`unresolved`&&t.reason===`depth-exceeded`){if(!Ei(a,Oi(e,r)))return;q(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&X(n)||t.status===`unresolved`&&!G(t.reason,a.reason))return;q(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){G(t.reason,a.reason)&&q(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){q(e,i,r,t,n);return}t.status===`resolved`&&!X(n)&&Y(e,r,n)}}function Ei(e,t){return e.status===`resolved`?t:G(`depth-exceeded`,e.reason)}function G(e,t){return K(e)>K(t)}function K(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function q(e,t,n,r,i){J(e,n,r,i),e.refs[t]=r}function J(e,t,n,r){if(n.status===`resolved`){Y(e,t,r);return}Di(e,t)}function Y(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Di(e,t){e.refMetadataByKey.delete(t)}function Oi(e,t){return X(e.refMetadataByKey.get(t))}function X(e){return e?.resolvedViaBackEdge===!0}function ki(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function Z(e){return JSON.stringify([e.kind,e.id,e.revision])}function Ai(e){return JSON.stringify([Z(e.sourceRef),e.relationType,ji(e.target)])}function ji(e){return e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,Z(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}function Mi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function Q(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ni(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}Q(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(A);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw Q(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function Pi(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}$(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,a){let o=a.getService(k);if(!o)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let s=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerBinding(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterBinding(l[e].id);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}function Fi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(j);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Ii(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(E);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${E.name}' is started before extensions with transitionRules or transitionActions.`);let a=n.transitionRules?.rules??[],o=n.transitionActions?.actions,s=a.length>0,c=o!==void 0;s&&Li(t,a),c&&Ri(t,o);let l=!1,u=!1;try{s&&(i.ruleRegistry.register(t,a),l=!0),c&&(i.actionRegistry.register(t,o),u=!0)}catch(e){throw l&&i.ruleRegistry.deregister(t),u&&i.actionRegistry.deregister(t),e}e.set(t,()=>{s&&i.ruleRegistry.deregister(t),c&&i.actionRegistry.deregister(t)})},async processStopped(t){let n=e.get(t);if(n){try{n()}catch(e){console.error(`[TransitionContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Li(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function Ri(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}const zi=[S,vt,P,m,Gr,Yr,F,I,wr,Tr,Er,Dr,L,C,Jr,hr,ur,hi,Kr,x,M,gi,w,qr,Ot,tn,ci,N,Ae,R,si];export{pi as AdapterIdentityRegistry,g as AdapterRegistry,S as AdapterRuntimeNamespace,St as AdapterRuntimeSchemas,Dt as AdapterRuntimeSubjects,gr as AgentInstanceStatusSchema,P as AgentRuntimeNamespace,_r as AgentRuntimeSchemas,vr as AgentRuntimeSelectionSchema,yr as AgentRuntimeSubjects,m as AgentStorageNamespace,h as AgentStorageSubjects,In as ArtifactLifecycleHookRegistry,D as ArtifactLifecycleHookRegistryToken,fn as ArtifactLifecycleHookRejectedError,Tn as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,Ht as BugEntrySchema,_t as CONNECTOR_SWAP_DEFAULT_PIPELINE,Zn as CachedRegistryFetcher,wn as CanonicalModelResolutionError,Sn as CanonicalModelResolver,un as CanonicalModelService,Un as CapabilityService,Fn as CapabilityToken,br as CodebaseChangedEventSchema,F as CodebaseNamespace,xr as CodebaseSchemas,Sr as CodebaseSubjects,Ut as CompressRequestSchema,Wt as CompressResponseSchema,Gt as CompressionEventSchema,I as CompressionNamespace,Kt as CompressionSchemas,Cr as CompressionSubjects,Rr as ContainerCreatedSchema,Br as ContainerDestroyedSchema,kt as ContainerIsolatedExecutionTargetSchema,kr as ContainerIsolatedSpawnRequestSchema,At as ContainerLocalExecutionTargetSchema,Fr as ContainerLocalSpawnRequestSchema,Hr as ContainerRuntimeSchema,Vr as ContainerSpawnNamespace,Lr as ContainerSpawnSubjects,Ar as ContainerStartedSchema,jr as ContainerStateSchema,zr as ContainerStoppedSchema,ft as ContextWindowTracker,L as DockerNamespace,Pr as DockerSubjects,dt as EmbeddingIndexManager,jt as ExecutionTargetInputSchema,Mt as ExecutionTargetListQuerySchema,C as ExecutionTargetNamespace,Nt as ExecutionTargetResolveRequestSchema,Pt as ExecutionTargetSchema,Ft as ExecutionTargetSchemas,Rt as ExecutionTargetSubjects,It as ExecutionTargetTypeSchema,qt as ExtractedContextSchema,pn as FacetNamespaceRegistry,A as FacetNamespaceRegistryToken,Jn as FallbackRegistryFetcher,zi as FrameworkServicesCoreNamespaces,Lt as LocalExecutionTargetSchema,lt as MakaioSession,it as MakaioSessionService,x as MessageRoutingNamespace,ze as MessageRoutingSubjects,zt as MessageStorageNamespace,Bt as MessageStorageSubjects,M as ModelRegistryNamespace,Yn as ModelRegistryProviderNotFoundError,Gn as ModelRegistrySchema,qn as ModelRegistrySchemas,Kn as ModelRegistryService,Xn as ModelRegistrySubjects,On as ModelRegistryToken,Xt as PreferenceItemSchema,Zt as PreferenceKeySchema,Qt as PreferenceValueSchema,w as PreferencesNamespace,$t as PreferencesSchemas,en as PreferencesSubjects,Qn as ProviderModelOverrideSchema,Ct as ResolveIdRequestSchema,wt as ResolveIdResponseSchema,Tt as ResolveNameRequestSchema,Et as ResolveNameResponseSchema,Ve as SessionBridge,Nn as SessionBridgeToken,c as SessionEventStorageNamespace,o as SessionEventStorageSubjects,Fe as SessionExtensionContextImpl,Ze as SessionOrchestrator,Rn as SessionOrchestratorToken,Me as SessionStorageNamespace,Ne as SessionStorageSubjects,kn as SessionStorageToken,An as SessionToken,Ie as SessionTurnManager,Ir as SpawnRequestSchema,Nr as SpawnResponseSchema,Mr as StatusRequestSchema,Or as StatusResponseSchema,Ur as StopRequestSchema,Wr as StopResponseSchema,dr as SubagentManager,pr as SubagentService,mr as SubagentServiceToken,Xr as SubagentTemplateCompletedEventSchema,Zr as SubagentTemplateCreateSchema,Qr as SubagentTemplateInstanceSchema,$r as SubagentTemplateInstanceStatusSchema,R as SubagentTemplateKernelNamespace,ei as SubagentTemplateKernelSchemas,ti as SubagentTemplateSchema,ni as SubagentTemplateSettingsSchemas,ri as SubagentTemplateSpawnRequestSchema,ii as SubagentTemplateSpawnedEventSchema,li as SubagentTemplateSubjects,ai as SubagentTemplateSummarySchema,oi as SubagentTemplateUpdateSchema,ln as SurfaceBindingRegistry,k as SurfaceBindingRegistryToken,Jt as TechnicalDetailsSchema,Yt as TodoEntrySchema,$n as ToolApprovalService,Pn as ToolApprovalToken,rn as ToolRegistry,jn as ToolRegistryToken,mn as TransitionActionRegistry,cn as TransitionPipelineService,E as TransitionPipelineToken,dn as TransitionRuleRegistry,er as TrayMenuEntrySchema,tr as TrayMenuGroupEntrySchema,nr as TrayMenuGroupSchema,rr as TrayMenuItemClickedSchema,ir as TrayMenuListEntrySchema,ar as TrayMenuMetadataSchema,N as TrayMenuNamespace,or as TrayMenuSchemas,sr as TrayMenuSectionSchema,lr as TrayMenuService,cr as TrayMenuSubjects,En as TrayMenuToken,ke as Turn,Ye as TurnContextEnricher,Vt as TurnStorageNamespace,je as TurnStorageSubjects,yn as WORKFLOW_START_ACTION_TYPE,Hn as WorkflowBlockRegistry,j as WorkflowBlockRegistryToken,l as actionRegistry,xt as activateProviderContext,yt as activateProviderContextStrict,e as agents,Vn as artifactLifecycleHookRegistryPackage,Dn as artifactSchemaRegistryPackage,ye as assembleForkContext,di as buildDeterministicAdapterId,bt as buildProviderContext,ne as buildRecoveryContext,d as buildRecoveryContextWithPipeline,he as buildSessionContext,xe as buildTurnInitiator,Cn as canonicalModelPackage,Bn as capabilityPackage,yi as createArtifactKindContributionProcessor,xi as createArtifactLifecycleHookContributionProcessor,Ni as createFacetNamespaceContributionProcessor,bn as createModelRegistryPackage,Re as createSessionExtensionContext,Pi as createSurfaceBindingContributionProcessor,Ln as createToolContributionProcessor,Ii as createTransitionContributionProcessor,Fi as createWorkflowBlockContributionProcessor,De as ensureAgentCwd,ie as ensureAgentModel,oe as extractTextContent,an as facetNamespaceRegistryPackage,gt as fetchAgentsBySession,qe as fetchMessageCountsBySession,y as fetchPreviewBySession,We as fetchSessionPreviewMaps,ve as findTurnByAgent,zn as frameworkCorePackages,ge as getFullConversation,pe as getOrCreateSession,ct as importCursors,mt as importCursorsDual,Ue as kindToBranchKind,st as mapAgentsBySession,ht as mapRowToSession,_ as mapToSession,Wn as mergeModelMetadata,$e as messageRouting,Qe as messageRoutingDual,i as messages,ue as normalizeSelectionString,Ee as normalizeToBlocks,Je as parseForkTransforms,Ke as pickFallbackRuntimeOptions,p as recoverAgent,le as registerAbandonHandler,fi as registerAdapterRuntimeIdentityHandlers,Te as registerAttachHandler,be as registerBuiltInActions,se as registerCompressHandler,at as registerCompressLineageResolver,pt as registerCoreSessionServiceHandlers,ot as registerDrizzleAgentStorage,rt as registerDrizzleImportCursorStorage,Be as registerDrizzleMessageRoutingStorage,Ge as registerDrizzleMessageStorage,u as registerDrizzleSessionEventStorage,b as registerDrizzleSessionStorage,Oe as registerDrizzleTurnStorage,me as registerForkHandler,nt as registerFtsSearchHandler,Xe as registerGetStatusCountsHandler,v as registerListActionsHandler,Pe as registerMemoryAgentStorage,et as registerMemoryMessageStorage,ae as registerMemorySessionEventStorage,He as registerMemorySessionStorage,ce as registerMemoryTurnStorage,Se as registerMergeHandler,tt as registerParentResolver,Le as registerResumeHandler,ut as registerSpawningToolCallResolver,Ce as resetBuiltInActionsRegistration,ee as resolveAdapterId,de as resolveAdapterNameById,Si as resolveArtifactContext,ui as resolveDeterministicAdapterId,te as resolveExecutionTarget,re as resolveModelCapabilities,fe as resolveTargetAgents,we as routeToAgents,_e as routeToAgentsCore,xn as sessionBridgePackage,s as sessionEvents,a as sessionEventsDual,sn as sessionOrchestratorPackage,on as sessionPackage,_n as sessionStoragePackage,t as sessions,fr as subagentServicePackage,O as surfaceBindingRegistryPackage,nn as toolApprovalPackage,Mn as toolRegistryPackage,hn as transitionPipelinePackage,gn as trayMenuPackage,r as turns,n as turnsDual,f as verifyAndRecoverAgents,vn as workflowBlockRegistryPackage};
|
|
1
|
+
import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{n,t as r}from"../schema-CHp6I33k.mjs";import{t as i}from"../schema-7aKBGB7S.mjs";import{i as a,n as o,r as s,t as c}from"../namespace-dFBD2ZmS.mjs";import{A as l,B as u,C as d,D as f,E as p,F as m,I as h,M as ee,N as te,O as ne,P as re,T as ie,V as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as de,g as fe,h as pe,i as me,j as he,k as ge,l as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,w as De,x as Oe,y as ke}from"../handlers-B74FvKlA.mjs";import{TurnStorageNamespace as Ae,TurnStorageSubjects as je}from"./turn/namespace.mjs";import{SessionStorageNamespace as Me,SessionStorageSubjects as Ne}from"./session/storage/namespace.mjs";import{$ as g,A as _,B as v,C as y,D as b,E as Pe,F as Fe,G as Ie,H as Le,I as Re,J as ze,K as Be,L as Ve,M as He,N as Ue,O as We,Q as Ge,R as Ke,S as qe,T as Je,U as Ye,V as Xe,W as Ze,X as Qe,Y as $e,Z as et,a as tt,b as nt,c as rt,et as it,i as at,j as ot,k as st,l as ct,o as lt,q as x,r as ut,s as dt,t as ft,tt as pt,u as mt,w as ht,x as gt,z as _t}from"../session-CX6QDhi2.mjs";import{t as vt}from"../namespace-DBHwyhME.mjs";import{n as yt,r as bt,t as xt}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as St,ResolveIdRequestSchema as Ct,ResolveIdResponseSchema as wt,ResolveNameRequestSchema as Tt,ResolveNameResponseSchema as Et}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as S,AdapterRuntimeSubjects as Dt}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as Ot}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as kt,ContainerLocalExecutionTargetSchema as At,ExecutionTargetInputSchema as jt,ExecutionTargetListQuerySchema as Mt,ExecutionTargetResolveRequestSchema as Nt,ExecutionTargetSchema as Pt,ExecutionTargetSchemas as Ft,ExecutionTargetTypeSchema as It,LocalExecutionTargetSchema as Lt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as C,ExecutionTargetSubjects as Rt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as zt,MessageStorageSubjects as Bt}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as Vt}from"./session/turns/namespace.mjs";import{BugEntrySchema as Ht,CompressRequestSchema as Ut,CompressResponseSchema as Wt,CompressionEventSchema as Gt,CompressionSchemas as Kt,ExtractedContextSchema as qt,TechnicalDetailsSchema as Jt,TodoEntrySchema as Yt}from"./compression/schemas.mjs";import{PreferenceItemSchema as Xt,PreferenceKeySchema as Zt,PreferenceValueSchema as Qt,PreferencesSchemas as $t}from"./preferences/schemas.mjs";import{PreferencesNamespace as w,PreferencesSubjects as en}from"./preferences/storage-namespace.mjs";import{t as tn}from"../namespace-wke7juzy.mjs";import{A as nn,B as rn,C as an,D as on,E as sn,F as cn,G as ln,H as un,I as dn,J as fn,K as pn,L as mn,M as hn,N as gn,O as _n,P as vn,R as yn,S as bn,T as xn,U as Sn,V as Cn,W as wn,Y as Tn,_ as En,a as T,b as Dn,c as On,d as kn,f as An,g as E,h as jn,i as D,j as Mn,k as O,l as Nn,m as Pn,o as Fn,p as k,q as In,r as Ln,s as A,u as Rn,v as j,w as zn,x as Bn,y as Vn,z as Hn}from"../tools-CGFZkB7F.mjs";import{t as Un}from"../capability-service-XlymTzz1.mjs";import{a as Wn,c as Gn,i as Kn,l as qn,n as Jn,o as M,r as Yn,s as Xn,t as Zn,u as Qn}from"../model-registry-rYICIwyR.mjs";import{t as $n}from"../tool-approval-service-DEiMKTv9.mjs";import{TrayMenuEntrySchema as er,TrayMenuGroupEntrySchema as tr,TrayMenuGroupSchema as nr,TrayMenuItemClickedSchema as rr,TrayMenuListEntrySchema as ir,TrayMenuMetadataSchema as ar,TrayMenuSchemas as or,TrayMenuSectionSchema as sr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as N,TrayMenuSubjects as cr}from"./tray-menu/namespace.mjs";import{t as lr}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ur}from"../handler-BFNvtv5t.mjs";import{i as dr,n as fr,r as pr,t as mr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as hr}from"./filesystem/namespace.mjs";import"./capability/index.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as gr,AgentRuntimeSchemas as _r,AgentRuntimeSelectionSchema as vr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as P,AgentRuntimeSubjects as yr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as br,CodebaseSchemas as xr}from"./codebase/schemas.mjs";import{CodebaseNamespace as F,CodebaseSubjects as Sr}from"./codebase/namespace.mjs";import{CompressionNamespace as I,CompressionSubjects as Cr}from"./compression/namespace.mjs";import{r as wr,t as Tr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as Er}from"./definition/namespace.mjs";import{DialogNamespace as Dr}from"./dialog/namespace.mjs";import{_ as Or,c as kr,d as Ar,f as jr,g as Mr,h as Nr,i as Pr,l as Fr,m as Ir,n as Lr,o as Rr,p as zr,r as L,s as Br,t as Vr,u as Hr,v as Ur,y as Wr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as Gr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Kr}from"./local-notification/namespace.mjs";import{t as qr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Jr}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Yr}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Xr,SubagentTemplateCreateSchema as Zr,SubagentTemplateInstanceSchema as Qr,SubagentTemplateInstanceStatusSchema as $r,SubagentTemplateKernelSchemas as ei,SubagentTemplateSchema as ti,SubagentTemplateSettingsSchemas as ni,SubagentTemplateSpawnRequestSchema as ri,SubagentTemplateSpawnedEventSchema as ii,SubagentTemplateSummarySchema as ai,SubagentTemplateUpdateSchema as oi}from"./subagent-template/schemas.mjs";import{r as si,t as ci}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as R,SubagentTemplateSubjects as li}from"./subagent-template/namespace.mjs";import{i as ui,n as di,r as fi,t as pi}from"../identity-DC3Pk0ps.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ArtifactSubjects as mi}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as hi}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as gi}from"@makaio/framework/contracts/model-registry";function _i(e){return{source:`extension`,ownerKey:`extension:${e}`}}function vi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function yi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}vi(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(T);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=_i(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function bi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function xi(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(D);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(bi(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}async function Si(e){let t=e.maxDepth??5,n={bus:e.bus,kindRegistry:e.kindRegistry,maxDepth:t,resolvedByKey:new Map,kindDefaultsCache:new Map,walkedByKey:new Set,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await B(n,e.ref);if(!r)throw Error(`artifact.resolveContext: root artifact '${e.ref.kind}:${e.ref.id}:${e.ref.revision}' not found`);return n.resolved.push(r),await z(n,r,H(await V(n,r),e.selectors),0,new Set([Z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function z(e,t,n,r,i){let a=Mi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=ki(t);for(let a of t.relations)await Ci(e,o,a,n,r,i)}async function Ci(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!wi(o,n.target)){W(e,U(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){W(e,U(t,n,s,`unsupported-ref-class`));return}let c=Z(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){W(e,U(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await B(e,n.target);if(!d){W(e,U(t,n,s,`not-found`));return}if(W(e,{sourceRef:t,target:n.target,relationType:n.type,hint:s,status:`resolved`},{resolvedViaBackEdge:l}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=f>0?{[n.type]:{...o,depth:f}}:void 0,m=H(H(await V(e,d),p),o.nested),h=new Set(a);h.add(c),await z(e,d,m,i+1,h)}async function B(e,t){let n=Z(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(mi.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}async function V(e,t){let n=JSON.stringify([t.kind,t.schemaVersion]);if(e.kindDefaultsCache.has(n))return e.kindDefaultsCache.get(n);let r=(await e.kindRegistry.getKind(t.kind,t.schemaVersion))?.defaultContext;return e.kindDefaultsCache.set(n,r),r}function H(e,t){if(!t)return e;if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]=r;return n}function wi(e,t){return e?e.kinds?e.kinds.includes(Ti(t)):!0:!1}function Ti(e){return e.refClass===`local`?e.artifact.kind:e.kind}function U(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,hint:n,status:`unresolved`,reason:r}}function W(e,t,n){let r=Ai(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),J(e,r,t,n),e.refs.push(t);return}let a=e.refs[i];if(a){if(t.status===`unresolved`&&t.reason===`depth-exceeded`){if(!Ei(a,Oi(e,r)))return;q(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&X(n)||t.status===`unresolved`&&!G(t.reason,a.reason))return;q(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){G(t.reason,a.reason)&&q(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){q(e,i,r,t,n);return}t.status===`resolved`&&!X(n)&&Y(e,r,n)}}function Ei(e,t){return e.status===`resolved`?t:G(`depth-exceeded`,e.reason)}function G(e,t){return K(e)>K(t)}function K(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function q(e,t,n,r,i){J(e,n,r,i),e.refs[t]=r}function J(e,t,n,r){if(n.status===`resolved`){Y(e,t,r);return}Di(e,t)}function Y(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Di(e,t){e.refMetadataByKey.delete(t)}function Oi(e,t){return X(e.refMetadataByKey.get(t))}function X(e){return e?.resolvedViaBackEdge===!0}function ki(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function Z(e){return JSON.stringify([e.kind,e.id,e.revision])}function Ai(e){return JSON.stringify([Z(e.sourceRef),e.relationType,ji(e.target)])}function ji(e){return e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,Z(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}function Mi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function Q(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ni(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}Q(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(A);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw Q(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function Pi(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}$(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,a){let o=a.getService(k);if(!o)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let s=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerBinding(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterBinding(l[e].id);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}function Fi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(j);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Ii(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(E);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${E.name}' is started before extensions with transitionRules or transitionActions.`);let a=n.transitionRules?.rules??[],o=n.transitionActions?.actions,s=a.length>0,c=o!==void 0;s&&Li(t,a),c&&Ri(t,o);let l=!1,u=!1;try{s&&(i.ruleRegistry.register(t,a),l=!0),c&&(i.actionRegistry.register(t,o),u=!0)}catch(e){throw l&&i.ruleRegistry.deregister(t),u&&i.actionRegistry.deregister(t),e}e.set(t,()=>{s&&i.ruleRegistry.deregister(t),c&&i.actionRegistry.deregister(t)})},async processStopped(t){let n=e.get(t);if(n){try{n()}catch(e){console.error(`[TransitionContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Li(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function Ri(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}const zi=[S,vt,P,m,Gr,Yr,F,I,wr,Tr,Er,Dr,L,C,Jr,hr,ur,hi,Kr,x,M,gi,w,qr,Ot,tn,ci,N,Ae,R,si];export{pi as AdapterIdentityRegistry,g as AdapterRegistry,S as AdapterRuntimeNamespace,St as AdapterRuntimeSchemas,Dt as AdapterRuntimeSubjects,gr as AgentInstanceStatusSchema,P as AgentRuntimeNamespace,_r as AgentRuntimeSchemas,vr as AgentRuntimeSelectionSchema,yr as AgentRuntimeSubjects,m as AgentStorageNamespace,h as AgentStorageSubjects,In as ArtifactLifecycleHookRegistry,D as ArtifactLifecycleHookRegistryToken,fn as ArtifactLifecycleHookRejectedError,Tn as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,Ht as BugEntrySchema,_t as CONNECTOR_SWAP_DEFAULT_PIPELINE,Zn as CachedRegistryFetcher,wn as CanonicalModelResolutionError,Sn as CanonicalModelResolver,un as CanonicalModelService,Un as CapabilityService,Fn as CapabilityToken,br as CodebaseChangedEventSchema,F as CodebaseNamespace,xr as CodebaseSchemas,Sr as CodebaseSubjects,Ut as CompressRequestSchema,Wt as CompressResponseSchema,Gt as CompressionEventSchema,I as CompressionNamespace,Kt as CompressionSchemas,Cr as CompressionSubjects,Rr as ContainerCreatedSchema,Br as ContainerDestroyedSchema,kt as ContainerIsolatedExecutionTargetSchema,kr as ContainerIsolatedSpawnRequestSchema,At as ContainerLocalExecutionTargetSchema,Fr as ContainerLocalSpawnRequestSchema,Hr as ContainerRuntimeSchema,Vr as ContainerSpawnNamespace,Lr as ContainerSpawnSubjects,Ar as ContainerStartedSchema,jr as ContainerStateSchema,zr as ContainerStoppedSchema,ft as ContextWindowTracker,L as DockerNamespace,Pr as DockerSubjects,dt as EmbeddingIndexManager,jt as ExecutionTargetInputSchema,Mt as ExecutionTargetListQuerySchema,C as ExecutionTargetNamespace,Nt as ExecutionTargetResolveRequestSchema,Pt as ExecutionTargetSchema,Ft as ExecutionTargetSchemas,Rt as ExecutionTargetSubjects,It as ExecutionTargetTypeSchema,qt as ExtractedContextSchema,pn as FacetNamespaceRegistry,A as FacetNamespaceRegistryToken,Jn as FallbackRegistryFetcher,zi as FrameworkServicesCoreNamespaces,Lt as LocalExecutionTargetSchema,lt as MakaioSession,it as MakaioSessionService,x as MessageRoutingNamespace,ze as MessageRoutingSubjects,zt as MessageStorageNamespace,Bt as MessageStorageSubjects,M as ModelRegistryNamespace,Yn as ModelRegistryProviderNotFoundError,Gn as ModelRegistrySchema,qn as ModelRegistrySchemas,Kn as ModelRegistryService,Xn as ModelRegistrySubjects,On as ModelRegistryToken,Xt as PreferenceItemSchema,Zt as PreferenceKeySchema,Qt as PreferenceValueSchema,w as PreferencesNamespace,$t as PreferencesSchemas,en as PreferencesSubjects,Qn as ProviderModelOverrideSchema,Ct as ResolveIdRequestSchema,wt as ResolveIdResponseSchema,Tt as ResolveNameRequestSchema,Et as ResolveNameResponseSchema,Ve as SessionBridge,Nn as SessionBridgeToken,c as SessionEventStorageNamespace,o as SessionEventStorageSubjects,Fe as SessionExtensionContextImpl,Ze as SessionOrchestrator,Rn as SessionOrchestratorToken,Me as SessionStorageNamespace,Ne as SessionStorageSubjects,kn as SessionStorageToken,An as SessionToken,Ie as SessionTurnManager,Ir as SpawnRequestSchema,Nr as SpawnResponseSchema,Mr as StatusRequestSchema,Or as StatusResponseSchema,Ur as StopRequestSchema,Wr as StopResponseSchema,dr as SubagentManager,pr as SubagentService,mr as SubagentServiceToken,Xr as SubagentTemplateCompletedEventSchema,Zr as SubagentTemplateCreateSchema,Qr as SubagentTemplateInstanceSchema,$r as SubagentTemplateInstanceStatusSchema,R as SubagentTemplateKernelNamespace,ei as SubagentTemplateKernelSchemas,ti as SubagentTemplateSchema,ni as SubagentTemplateSettingsSchemas,ri as SubagentTemplateSpawnRequestSchema,ii as SubagentTemplateSpawnedEventSchema,li as SubagentTemplateSubjects,ai as SubagentTemplateSummarySchema,oi as SubagentTemplateUpdateSchema,ln as SurfaceBindingRegistry,k as SurfaceBindingRegistryToken,Jt as TechnicalDetailsSchema,Yt as TodoEntrySchema,$n as ToolApprovalService,Pn as ToolApprovalToken,rn as ToolRegistry,jn as ToolRegistryToken,mn as TransitionActionRegistry,cn as TransitionPipelineService,E as TransitionPipelineToken,dn as TransitionRuleRegistry,er as TrayMenuEntrySchema,tr as TrayMenuGroupEntrySchema,nr as TrayMenuGroupSchema,rr as TrayMenuItemClickedSchema,ir as TrayMenuListEntrySchema,ar as TrayMenuMetadataSchema,N as TrayMenuNamespace,or as TrayMenuSchemas,sr as TrayMenuSectionSchema,lr as TrayMenuService,cr as TrayMenuSubjects,En as TrayMenuToken,ke as Turn,Ye as TurnContextEnricher,Vt as TurnStorageNamespace,je as TurnStorageSubjects,yn as WORKFLOW_START_ACTION_TYPE,Hn as WorkflowBlockRegistry,j as WorkflowBlockRegistryToken,l as actionRegistry,xt as activateProviderContext,yt as activateProviderContextStrict,e as agents,Vn as artifactLifecycleHookRegistryPackage,Dn as artifactSchemaRegistryPackage,ye as assembleForkContext,di as buildDeterministicAdapterId,bt as buildProviderContext,ne as buildRecoveryContext,d as buildRecoveryContextWithPipeline,he as buildSessionContext,xe as buildTurnInitiator,Cn as canonicalModelPackage,Bn as capabilityPackage,yi as createArtifactKindContributionProcessor,xi as createArtifactLifecycleHookContributionProcessor,Ni as createFacetNamespaceContributionProcessor,bn as createModelRegistryPackage,Re as createSessionExtensionContext,Pi as createSurfaceBindingContributionProcessor,Ln as createToolContributionProcessor,Ii as createTransitionContributionProcessor,Fi as createWorkflowBlockContributionProcessor,De as ensureAgentCwd,ie as ensureAgentModel,oe as extractTextContent,an as facetNamespaceRegistryPackage,gt as fetchAgentsBySession,qe as fetchMessageCountsBySession,y as fetchPreviewBySession,We as fetchSessionPreviewMaps,ve as findTurnByAgent,zn as frameworkCorePackages,ge as getFullConversation,pe as getOrCreateSession,ct as importCursors,mt as importCursorsDual,Ue as kindToBranchKind,st as mapAgentsBySession,ht as mapRowToSession,_ as mapToSession,Wn as mergeModelMetadata,$e as messageRouting,Qe as messageRoutingDual,i as messages,ue as normalizeSelectionString,Ee as normalizeToBlocks,Je as parseForkTransforms,Ke as pickFallbackRuntimeOptions,p as recoverAgent,le as registerAbandonHandler,fi as registerAdapterRuntimeIdentityHandlers,Te as registerAttachHandler,be as registerBuiltInActions,se as registerCompressHandler,at as registerCompressLineageResolver,pt as registerCoreSessionServiceHandlers,ot as registerDrizzleAgentStorage,rt as registerDrizzleImportCursorStorage,Be as registerDrizzleMessageRoutingStorage,Ge as registerDrizzleMessageStorage,u as registerDrizzleSessionEventStorage,b as registerDrizzleSessionStorage,Oe as registerDrizzleTurnStorage,me as registerForkHandler,nt as registerFtsSearchHandler,Xe as registerGetStatusCountsHandler,v as registerListActionsHandler,Pe as registerMemoryAgentStorage,et as registerMemoryMessageStorage,ae as registerMemorySessionEventStorage,He as registerMemorySessionStorage,ce as registerMemoryTurnStorage,Se as registerMergeHandler,tt as registerParentResolver,Le as registerResumeHandler,ut as registerSpawningToolCallResolver,Ce as resetBuiltInActionsRegistration,ee as resolveAdapterId,de as resolveAdapterNameById,Si as resolveArtifactContext,ui as resolveDeterministicAdapterId,te as resolveExecutionTarget,re as resolveModelCapabilities,fe as resolveTargetAgents,we as routeToAgents,_e as routeToAgentsCore,xn as sessionBridgePackage,s as sessionEvents,a as sessionEventsDual,sn as sessionOrchestratorPackage,on as sessionPackage,_n as sessionStoragePackage,t as sessions,fr as subagentServicePackage,O as surfaceBindingRegistryPackage,nn as toolApprovalPackage,Mn as toolRegistryPackage,hn as transitionPipelinePackage,gn as trayMenuPackage,r as turns,n as turnsDual,f as verifyAndRecoverAgents,vn as workflowBlockRegistryPackage};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as LogImporterInfo } from "../../index-
|
|
2
|
-
import { a as OrchestratorFactory, i as OrchestratorEntry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-
|
|
1
|
+
import { t as LogImporterInfo } from "../../index-D7rWAEY0.mjs";
|
|
2
|
+
import { a as OrchestratorFactory, i as OrchestratorEntry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BWduCvRU.mjs";
|
|
3
3
|
export { type LogImportRegistryOptions, type LogImporterInfo, type LogImporterRegistration, type OrchestratorEntry, type OrchestratorFactory };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as LogImportSettings, t as LogImporterInfo } from "../../index-
|
|
2
|
-
import { a as OrchestratorFactory, i as OrchestratorEntry, n as LogImportServiceInstance, o as LogImportRegistry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-
|
|
1
|
+
import { i as LogImportSettings, t as LogImporterInfo } from "../../index-D7rWAEY0.mjs";
|
|
2
|
+
import { a as OrchestratorFactory, i as OrchestratorEntry, n as LogImportServiceInstance, o as LogImportRegistry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BWduCvRU.mjs";
|
|
3
3
|
import { LogImportNamespace, LogImportSubjects } from "./namespace.mjs";
|
|
4
4
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
5
5
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as IMPORT_LAST_SCAN_CATEGORY, r as LogImportMode, t as LogImporterInfo } from "../../index-
|
|
1
|
+
import { n as IMPORT_LAST_SCAN_CATEGORY, r as LogImportMode, t as LogImporterInfo } from "../../index-D7rWAEY0.mjs";
|
|
2
2
|
import { LogImportSubjects } from "./namespace.mjs";
|
|
3
3
|
export { IMPORT_LAST_SCAN_CATEGORY, type LogImportMode, LogImportSubjects, type LogImporterInfo };
|
|
@@ -74,8 +74,8 @@ declare const LogImportNamespace: _$_makaio_core0.BusNamespaceDefinition<"log-im
|
|
|
74
74
|
adapterName: _$zod.ZodString;
|
|
75
75
|
displayName: _$zod.ZodString;
|
|
76
76
|
source: _$zod.ZodEnum<{
|
|
77
|
-
extension: "extension";
|
|
78
77
|
adapter: "adapter";
|
|
78
|
+
extension: "extension";
|
|
79
79
|
}>;
|
|
80
80
|
logFilePattern: _$zod.ZodString;
|
|
81
81
|
isRunning: _$zod.ZodBoolean;
|
|
@@ -261,8 +261,8 @@ declare const LogImportSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
261
261
|
adapterName: _$zod.ZodString;
|
|
262
262
|
displayName: _$zod.ZodString;
|
|
263
263
|
source: _$zod.ZodEnum<{
|
|
264
|
-
extension: "extension";
|
|
265
264
|
adapter: "adapter";
|
|
265
|
+
extension: "extension";
|
|
266
266
|
}>;
|
|
267
267
|
logFilePattern: _$zod.ZodString;
|
|
268
268
|
isRunning: _$zod.ZodBoolean;
|