@makaio/framework 1.0.0-dev-1790165411632 → 1.0.0-dev-1790175294701
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/adapters/claude/index.d.mts +24 -24
- package/dist/bridge/pty-bridge.cjs +222 -0
- package/dist/bus/index.d.mts +20 -20
- package/dist/bus/index.mjs +1 -1
- package/dist/{bus-D4DBDaoS.mjs → bus-30AlabEz.mjs} +1 -1
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +188 -188
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +2 -2
- package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
- package/dist/contracts/reaction/index.d.mts +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/framework-packages-mquh5_Yw.mjs +1 -0
- package/dist/{index-C9Dz8UoK2.d.mts → index-2YW8DTb62.d.mts} +6 -6
- package/dist/{index-DyzmUD1S.d.mts → index-7pt_bh4z.d.mts} +51 -51
- package/dist/{index-B7KgjUmJ2.d.mts → index-9O8N514B2.d.mts} +4 -4
- package/dist/{index-CI5ss_XH.d.mts → index-B1iXL1pW.d.mts} +341 -341
- package/dist/{index-QYdQSOnc2.d.mts → index-BMr77str2.d.mts} +15 -15
- package/dist/{index-BRF5X-EZ.d.mts → index-BRXETFym.d.mts} +9 -1
- package/dist/{index-BDTcg6tu.d.mts → index-BV3nQpdO.d.mts} +100 -100
- package/dist/{index-BnNNfBck.d.mts → index-BVN64wQx.d.mts} +12 -12
- package/dist/{index-D5BLD2Pw.d.mts → index-BgkQiruC.d.mts} +7 -7
- package/dist/{index-DRSeELQh.d.mts → index-Bgz81LHZ.d.mts} +1 -1
- package/dist/{index-z_wA9LhQ.d.mts → index-BusmMFMN.d.mts} +10 -10
- package/dist/{index-BM53WQaQ.d.mts → index-CVRQS5jk.d.mts} +1 -1
- package/dist/{index-Bmb7jPIe2.d.mts → index-Csua5M_M2.d.mts} +8 -8
- package/dist/{index-8hJCLlAE.d.mts → index-Cu8k2ZGe.d.mts} +25 -25
- package/dist/{index-CmTVBNCe.d.mts → index-D8V1DhrY.d.mts} +291 -291
- package/dist/{index-BUxs65tf.d.mts → index-DDCixELI.d.mts} +1 -1
- package/dist/{index-CDuEmakt2.d.mts → index-DIEnLLhi2.d.mts} +347 -347
- package/dist/{index-BVG-RaIu.d.mts → index-DWKSiTxX.d.mts} +72 -72
- package/dist/{index-CLwnkYRD.d.mts → index-DxtUM-qd.d.mts} +1 -1
- package/dist/{index-qtH2O8j_.d.mts → index-Mk478DlF.d.mts} +7 -7
- package/dist/{index-B1uHTa1l.d.mts → index-oE2q0pTG.d.mts} +1 -1
- package/dist/kernel/extension/index.d.mts +2 -2
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/{namespace-BhpzgnH3.d.mts → namespace-B9iQN3FQ.d.mts} +3 -3
- package/dist/{namespace-CNX4llM5.d.mts → namespace-C1-ZAKEG.d.mts} +6 -6
- package/dist/{namespace-D6W4Erwp.d.mts → namespace-DAzOxaux.d.mts} +2 -2
- package/dist/{namespace-B0__88KU.d.mts → namespace-HLrZerLd.d.mts} +154 -154
- package/dist/{namespace-BaUgxONS.d.mts → namespace-KomML5ti.d.mts} +2 -2
- package/dist/{namespace-CHSwZhH7.d.mts → namespace-h7gq_v5U.d.mts} +2 -2
- package/dist/{package-jjugnMVh.d.mts → package-BswWlFSn.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/reaction-DVa5lwm5.mjs +1 -0
- package/dist/{schemas-DFamD1UF.d.mts → schemas-BOT1HUv6.d.mts} +154 -154
- package/dist/{schemas-BXkSHQaF.d.mts → schemas-BTJvvq9Y.d.mts} +2 -2
- package/dist/{schemas-Cb9OJ9va.d.mts → schemas-CBDNnyz4.d.mts} +1 -1
- package/dist/{schemas-KyQQPGjX.d.mts → schemas-Dec5VtBU.d.mts} +5 -5
- package/dist/{schemas-D9pXu76T.d.mts → schemas-Dyp3rHZ7.d.mts} +4 -4
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +1 -1
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +2 -2
- package/dist/services/execution-target/namespace.d.mts +1 -1
- package/dist/services/execution-target/schemas.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/index.d.mts +137 -104
- package/dist/services/index.mjs +1 -1
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{session-lineage-CmP7L5g2.d.mts → session-lineage-BQ9NWlt6.d.mts} +1 -1
- package/dist/{tools-ByDy0ueE.mjs → tools-K3DWA4Jr.mjs} +1 -1
- package/dist/{transition-CAtcgdUp.d.mts → transition-CSN6QoMp.d.mts} +1 -1
- package/dist/{types-BbqmHOM-.d.mts → types-DTpwvvY9.d.mts} +328 -328
- package/dist/{view-builder-6YQFmKD6.d.mts → view-builder-cjQZJmTY.d.mts} +11 -11
- package/dist/workflow-engine/index.d.mts +42 -42
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/{workflow-transitions-UOXY-VZa.mjs → workflow-transitions-C2BLDE5N.mjs} +1 -1
- package/package.json +1 -1
- package/dist/framework-packages-C2tvdFmP.mjs +0 -1
- package/dist/reaction-C8WbJqLk.mjs +0 -1
- package/dist/{schemas-CuOZoC08.d.mts → schemas-CU2NE5Lg.d.mts} +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as ResolveNameResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, l as ResolveIdResponseSchema, m as ResolveNameRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../schemas-
|
|
2
|
-
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-
|
|
3
|
-
import { c as resolveDeterministicAdapterId, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../index-
|
|
4
|
-
import { p as BindingRecord } from "../schemas-
|
|
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-
|
|
1
|
+
import { _ as ResolveNameResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, l as ResolveIdResponseSchema, m as ResolveNameRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../schemas-CBDNnyz4.mjs";
|
|
2
|
+
import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-DAzOxaux.mjs";
|
|
3
|
+
import { c as resolveDeterministicAdapterId, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../index-CVRQS5jk.mjs";
|
|
4
|
+
import { p as BindingRecord } from "../schemas-Dyp3rHZ7.mjs";
|
|
5
|
+
import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-BOT1HUv6.mjs";
|
|
6
|
+
import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-HLrZerLd.mjs";
|
|
7
7
|
import { t as CapabilityService } from "../capability-service-BHcRd1td.mjs";
|
|
8
8
|
import { n as capabilityPackage, t as CapabilityToken } from "../index-t6LnywuE.mjs";
|
|
9
9
|
import { a as selectCodeExecutionProvider, c as createEffectiveExecutionSignal, d as CodeExecutionService, i as CodeExecutionSelectionFailureCode, l as CodeExecutionServiceToken, n as CodeExecutionProviderSelected, o as EffectiveExecutionSignal, r as CodeExecutionProviderSelection, s as EffectiveExecutionSignalOptions, t as CodeExecutionProviderRejected, u as codeExecutionPackage } from "../index-CdkIg4Gu.mjs";
|
|
@@ -12,18 +12,18 @@ import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseCha
|
|
|
12
12
|
import { a as CompressResponse, c as CompressionEventSchema, d as ExtractedContextSchema, f as TechnicalDetails, h as TodoEntrySchema, i as CompressRequestSchema, l as CompressionSchemas, m as TodoEntry, n as BugEntrySchema, o as CompressResponseSchema, p as TechnicalDetailsSchema, r as CompressRequest, s as CompressionEvent, t as BugEntry, u as ExtractedContext } from "../schemas-C0Fb2-LN.mjs";
|
|
13
13
|
import { n as CompressionSubjects, t as CompressionNamespace } from "../namespace-QV_2m25r.mjs";
|
|
14
14
|
import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from "../types-B_mVEuYd.mjs";
|
|
15
|
-
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-
|
|
16
|
-
import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-
|
|
15
|
+
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-BTJvvq9Y.mjs";
|
|
16
|
+
import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-h7gq_v5U.mjs";
|
|
17
17
|
import { A as ContainerRuntimeSchema, B as SpawnRequest, C as ContainerIsolatedSpawnRequest, D as ContainerLocalWorkflowSpawnRequest, E as ContainerLocalSpawnRequestSchema, F as ContainerState, G as StatusRequestSchema, H as SpawnResponse, I as ContainerStateSchema, J as StopRequest, K as StatusResponse, L as ContainerStopped, N as ContainerStarted, O as ContainerLocalWorkflowSpawnRequestSchema, P as ContainerStartedSchema, R as ContainerStoppedSchema, S as ContainerDestroyedSchema, T as ContainerLocalSpawnRequest, U as SpawnResponseSchema, V as SpawnRequestSchema, W as StatusRequest, X as StopResponse, Y as StopRequestSchema, Z as StopResponseSchema, a as DockerSubjects, b as ContainerCreatedSchema, i as DockerNamespace, k as ContainerRuntime, n as ContainerSpawnSubjects, q as StatusResponseSchema, t as ContainerSpawnNamespace, w as ContainerIsolatedSpawnRequestSchema, x as ContainerDestroyed, y as ContainerCreated } from "../index-BOxMyaqG.mjs";
|
|
18
|
-
import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-
|
|
19
|
-
import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-
|
|
20
|
-
import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-
|
|
18
|
+
import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-BgkQiruC.mjs";
|
|
19
|
+
import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-DxtUM-qd.mjs";
|
|
20
|
+
import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-oE2q0pTG.mjs";
|
|
21
21
|
import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-6O0G1s65.mjs";
|
|
22
22
|
import { g as sessions, u as agents } from "../schema-De6d0FWI.mjs";
|
|
23
23
|
import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-Bz0ZDWhE.mjs";
|
|
24
24
|
import { t as TurnStorageNamespace } from "../namespace-Sd6qj6w22.mjs";
|
|
25
25
|
import { n as TurnStorageSubjects } from "../namespace-DbtfwD5Z.mjs";
|
|
26
|
-
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-
|
|
26
|
+
import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-B9iQN3FQ.mjs";
|
|
27
27
|
import { v as ArtifactSchemaRegistry } from "../packages-KX9yofCa.mjs";
|
|
28
28
|
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-BjrbddkU.mjs";
|
|
29
29
|
import { a as WORKFLOW_START_ACTION_TYPE, i as TransitionActionRegistry, n as TransitionPipelineService, r as TransitionRuleRegistry, t as createTransitionContributionProcessor } from "../index-BCuWtlv5.mjs";
|
|
@@ -35,8 +35,8 @@ import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModel
|
|
|
35
35
|
import { a as InternalPendingRequest, c as SubagentServiceToken, d as SubagentFailureFinalizationError, f as SubagentFailureFinalizationErrorCode, i as InputResolver, l as createSubagentServicePackage, n as TrackOptions, o as SpawnOptions, p as SubagentService, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as subagentServicePackage } from "../index-DAqAa9aL.mjs";
|
|
36
36
|
import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DPtj1sPC2.mjs";
|
|
37
37
|
import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-CwwiV3kt.mjs";
|
|
38
|
-
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-
|
|
39
|
-
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-
|
|
38
|
+
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-Dec5VtBU.mjs";
|
|
39
|
+
import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-KomML5ti.mjs";
|
|
40
40
|
import * as _$zod from "zod";
|
|
41
41
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
42
42
|
import { MakaioError } from "@makaio/framework/core";
|
|
@@ -597,11 +597,44 @@ declare class ReactionRegistry extends BaseService {
|
|
|
597
597
|
* @param kind - Reaction kind that failed to invoke.
|
|
598
598
|
* @param invocationId - Runtime-minted identifier of the failed invocation.
|
|
599
599
|
* @param correlationId - Bus correlation identifier, when one exists.
|
|
600
|
+
* @param code - Stable machine-readable classification of the failure.
|
|
600
601
|
* @param message - Normalized failure message for the log line and outcome.
|
|
601
602
|
* @param cause - Original thrown value, retained only in the log.
|
|
602
603
|
* @returns Normalized failure outcome carrying `message`.
|
|
603
604
|
*/
|
|
604
605
|
private failure;
|
|
606
|
+
/**
|
|
607
|
+
* Returns the normalized outcome when cancellation prevents handler entry.
|
|
608
|
+
* @param kind - Reaction kind that was cancelled.
|
|
609
|
+
* @param invocationId - Runtime-minted identifier of the cancelled invocation.
|
|
610
|
+
* @param correlationId - Bus correlation identifier, when one exists.
|
|
611
|
+
* @param reason - Cancellation reason owned by the invocation signal.
|
|
612
|
+
* @returns Normalized cancelled outcome carrying the existing diagnostic message.
|
|
613
|
+
*/
|
|
614
|
+
private cancelledBeforeHandler;
|
|
615
|
+
/**
|
|
616
|
+
* Returns the normalized outcome when an invocation is cancelled before validation starts.
|
|
617
|
+
* @param kind - Reaction kind that was cancelled.
|
|
618
|
+
* @param invocationId - Runtime-minted identifier of the cancelled invocation.
|
|
619
|
+
* @param input - Host-supplied input for the invocation.
|
|
620
|
+
* @param deadlineEpochMs - Normalized invocation deadline, when one exists.
|
|
621
|
+
* @returns A normalized cancellation outcome, or `undefined` when validation may proceed.
|
|
622
|
+
*/
|
|
623
|
+
private cancelledBeforeValidation;
|
|
624
|
+
/**
|
|
625
|
+
* Returns the normalized outcome when cancellation wins after validation settles.
|
|
626
|
+
*
|
|
627
|
+
* A synchronous or CPU-heavy schema can cross a deadline before its timer
|
|
628
|
+
* callback runs. This authoritative check therefore precedes both a parsed
|
|
629
|
+
* validation failure and handler entry.
|
|
630
|
+
* @param kind - Reaction kind that was cancelled.
|
|
631
|
+
* @param invocationId - Runtime-minted identifier of the cancelled invocation.
|
|
632
|
+
* @param correlationId - Bus correlation identifier, when one exists.
|
|
633
|
+
* @param cancellation - Runtime-owned cancellation wiring for the invocation.
|
|
634
|
+
* @param deadlineEpochMs - Normalized invocation deadline, when one exists.
|
|
635
|
+
* @returns A normalized cancellation outcome, or `undefined` when processing may continue.
|
|
636
|
+
*/
|
|
637
|
+
private cancelledAfterValidation;
|
|
605
638
|
/**
|
|
606
639
|
* Logs an invocation failure line with correlation metadata.
|
|
607
640
|
* @param kind - Reaction kind that failed to invoke.
|
|
@@ -1057,8 +1090,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1057
1090
|
teardownCompleted: _$zod.ZodObject<{
|
|
1058
1091
|
evidence: _$zod.ZodEnum<{
|
|
1059
1092
|
unknown: "unknown";
|
|
1060
|
-
closed: "closed";
|
|
1061
1093
|
exited: "exited";
|
|
1094
|
+
closed: "closed";
|
|
1062
1095
|
released: "released";
|
|
1063
1096
|
detached: "detached";
|
|
1064
1097
|
}>;
|
|
@@ -1076,13 +1109,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1076
1109
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1077
1110
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1078
1111
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1079
|
-
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1080
1112
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1081
1113
|
label: _$zod.ZodString;
|
|
1082
1114
|
url: _$zod.ZodString;
|
|
1083
1115
|
}, _$zod_v4_core0.$strict>>>;
|
|
1084
1116
|
instructions: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1085
1117
|
providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1118
|
+
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1086
1119
|
name: _$zod.ZodString;
|
|
1087
1120
|
enabled: _$zod.ZodBoolean;
|
|
1088
1121
|
bindings: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -1101,13 +1134,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
1101
1134
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1102
1135
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1103
1136
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1104
|
-
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1105
1137
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
1106
1138
|
label: _$zod.ZodString;
|
|
1107
1139
|
url: _$zod.ZodString;
|
|
1108
1140
|
}, _$zod_v4_core0.$strict>>>;
|
|
1109
1141
|
instructions: _$zod.ZodOptional<_$zod.ZodString>;
|
|
1110
1142
|
providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
1143
|
+
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1111
1144
|
name: _$zod.ZodString;
|
|
1112
1145
|
enabled: _$zod.ZodBoolean;
|
|
1113
1146
|
bindings: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -2712,13 +2745,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2712
2745
|
displayName: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2713
2746
|
protocol: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2714
2747
|
clientId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2715
|
-
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
2716
2748
|
helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
|
|
2717
2749
|
label: _$zod.ZodString;
|
|
2718
2750
|
url: _$zod.ZodString;
|
|
2719
2751
|
}, _$zod_v4_core0.$strict>>>;
|
|
2720
2752
|
instructions: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2721
2753
|
providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
2754
|
+
settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
2722
2755
|
name: _$zod.ZodString;
|
|
2723
2756
|
enabled: _$zod.ZodBoolean;
|
|
2724
2757
|
bindings: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -2946,25 +2979,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
2946
2979
|
env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
|
|
2947
2980
|
mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
2948
2981
|
sessionId: _$zod.ZodString;
|
|
2949
|
-
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2950
|
-
fullName: _$zod.ZodString;
|
|
2951
|
-
originalName: _$zod.ZodString;
|
|
2952
|
-
serverName: _$zod.ZodString;
|
|
2953
|
-
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2954
|
-
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
2955
|
-
exposureMode: _$zod.ZodEnum<{
|
|
2956
|
-
discovery: "discovery";
|
|
2957
|
-
direct: "direct";
|
|
2958
|
-
hidden: "hidden";
|
|
2959
|
-
}>;
|
|
2960
|
-
enabled: _$zod.ZodBoolean;
|
|
2961
|
-
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2962
|
-
discovery: "discovery";
|
|
2963
|
-
toolset: "toolset";
|
|
2964
|
-
}>>;
|
|
2965
|
-
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
2966
|
-
exposed: _$zod.ZodBoolean;
|
|
2967
|
-
}, _$zod_v4_core0.$strip>>;
|
|
2968
2982
|
servers: _$zod.ZodArray<_$zod.ZodObject<{
|
|
2969
2983
|
name: _$zod.ZodString;
|
|
2970
2984
|
transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
@@ -3001,9 +3015,28 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3001
3015
|
type: _$zod.ZodLiteral<"http">;
|
|
3002
3016
|
}, _$zod_v4_core0.$strip>], "type">;
|
|
3003
3017
|
exposureMode: _$zod.ZodEnum<{
|
|
3018
|
+
direct: "direct";
|
|
3004
3019
|
discovery: "discovery";
|
|
3020
|
+
}>;
|
|
3021
|
+
}, _$zod_v4_core0.$strip>>;
|
|
3022
|
+
directTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
3023
|
+
fullName: _$zod.ZodString;
|
|
3024
|
+
originalName: _$zod.ZodString;
|
|
3025
|
+
serverName: _$zod.ZodString;
|
|
3026
|
+
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3027
|
+
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
3028
|
+
exposureMode: _$zod.ZodEnum<{
|
|
3005
3029
|
direct: "direct";
|
|
3030
|
+
discovery: "discovery";
|
|
3031
|
+
hidden: "hidden";
|
|
3006
3032
|
}>;
|
|
3033
|
+
enabled: _$zod.ZodBoolean;
|
|
3034
|
+
enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
3035
|
+
discovery: "discovery";
|
|
3036
|
+
toolset: "toolset";
|
|
3037
|
+
}>>;
|
|
3038
|
+
enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
3039
|
+
exposed: _$zod.ZodBoolean;
|
|
3007
3040
|
}, _$zod_v4_core0.$strip>>;
|
|
3008
3041
|
discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
|
|
3009
3042
|
fullName: _$zod.ZodString;
|
|
@@ -3012,8 +3045,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3012
3045
|
description: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3013
3046
|
inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
3014
3047
|
exposureMode: _$zod.ZodEnum<{
|
|
3015
|
-
discovery: "discovery";
|
|
3016
3048
|
direct: "direct";
|
|
3049
|
+
discovery: "discovery";
|
|
3017
3050
|
hidden: "hidden";
|
|
3018
3051
|
}>;
|
|
3019
3052
|
enabled: _$zod.ZodBoolean;
|
|
@@ -3043,18 +3076,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3043
3076
|
env?: Record<string, string> | undefined;
|
|
3044
3077
|
mcpSessionContext?: {
|
|
3045
3078
|
sessionId: string;
|
|
3046
|
-
directTools: {
|
|
3047
|
-
fullName: string;
|
|
3048
|
-
originalName: string;
|
|
3049
|
-
serverName: string;
|
|
3050
|
-
inputSchema: Record<string, unknown>;
|
|
3051
|
-
exposureMode: "discovery" | "direct" | "hidden";
|
|
3052
|
-
enabled: boolean;
|
|
3053
|
-
exposed: boolean;
|
|
3054
|
-
description?: string | undefined;
|
|
3055
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3056
|
-
enabledAt?: number | undefined;
|
|
3057
|
-
}[];
|
|
3058
3079
|
servers: {
|
|
3059
3080
|
name: string;
|
|
3060
3081
|
transport: {
|
|
@@ -3082,14 +3103,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3082
3103
|
}[] | undefined;
|
|
3083
3104
|
alwaysLoad?: boolean | undefined;
|
|
3084
3105
|
};
|
|
3085
|
-
exposureMode: "
|
|
3106
|
+
exposureMode: "direct" | "discovery";
|
|
3107
|
+
}[];
|
|
3108
|
+
directTools: {
|
|
3109
|
+
fullName: string;
|
|
3110
|
+
originalName: string;
|
|
3111
|
+
serverName: string;
|
|
3112
|
+
inputSchema: Record<string, unknown>;
|
|
3113
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3114
|
+
enabled: boolean;
|
|
3115
|
+
exposed: boolean;
|
|
3116
|
+
description?: string | undefined;
|
|
3117
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3118
|
+
enabledAt?: number | undefined;
|
|
3086
3119
|
}[];
|
|
3087
3120
|
discoverableTools: {
|
|
3088
3121
|
fullName: string;
|
|
3089
3122
|
originalName: string;
|
|
3090
3123
|
serverName: string;
|
|
3091
3124
|
inputSchema: Record<string, unknown>;
|
|
3092
|
-
exposureMode: "
|
|
3125
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3093
3126
|
enabled: boolean;
|
|
3094
3127
|
exposed: boolean;
|
|
3095
3128
|
description?: string | undefined;
|
|
@@ -3118,18 +3151,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3118
3151
|
env?: Record<string, string> | undefined;
|
|
3119
3152
|
mcpSessionContext?: {
|
|
3120
3153
|
sessionId: string;
|
|
3121
|
-
directTools: {
|
|
3122
|
-
fullName: string;
|
|
3123
|
-
originalName: string;
|
|
3124
|
-
serverName: string;
|
|
3125
|
-
inputSchema: Record<string, unknown>;
|
|
3126
|
-
exposureMode: "discovery" | "direct" | "hidden";
|
|
3127
|
-
enabled: boolean;
|
|
3128
|
-
exposed: boolean;
|
|
3129
|
-
description?: string | undefined;
|
|
3130
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3131
|
-
enabledAt?: number | undefined;
|
|
3132
|
-
}[];
|
|
3133
3154
|
servers: {
|
|
3134
3155
|
name: string;
|
|
3135
3156
|
transport: {
|
|
@@ -3157,14 +3178,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3157
3178
|
}[] | undefined;
|
|
3158
3179
|
alwaysLoad?: boolean | undefined;
|
|
3159
3180
|
};
|
|
3160
|
-
exposureMode: "
|
|
3181
|
+
exposureMode: "direct" | "discovery";
|
|
3182
|
+
}[];
|
|
3183
|
+
directTools: {
|
|
3184
|
+
fullName: string;
|
|
3185
|
+
originalName: string;
|
|
3186
|
+
serverName: string;
|
|
3187
|
+
inputSchema: Record<string, unknown>;
|
|
3188
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3189
|
+
enabled: boolean;
|
|
3190
|
+
exposed: boolean;
|
|
3191
|
+
description?: string | undefined;
|
|
3192
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3193
|
+
enabledAt?: number | undefined;
|
|
3161
3194
|
}[];
|
|
3162
3195
|
discoverableTools: {
|
|
3163
3196
|
fullName: string;
|
|
3164
3197
|
originalName: string;
|
|
3165
3198
|
serverName: string;
|
|
3166
3199
|
inputSchema: Record<string, unknown>;
|
|
3167
|
-
exposureMode: "
|
|
3200
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3168
3201
|
enabled: boolean;
|
|
3169
3202
|
exposed: boolean;
|
|
3170
3203
|
description?: string | undefined;
|
|
@@ -3190,18 +3223,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3190
3223
|
env?: Record<string, string> | undefined;
|
|
3191
3224
|
mcpSessionContext?: {
|
|
3192
3225
|
sessionId: string;
|
|
3193
|
-
directTools: {
|
|
3194
|
-
fullName: string;
|
|
3195
|
-
originalName: string;
|
|
3196
|
-
serverName: string;
|
|
3197
|
-
inputSchema: Record<string, unknown>;
|
|
3198
|
-
exposureMode: "discovery" | "direct" | "hidden";
|
|
3199
|
-
enabled: boolean;
|
|
3200
|
-
exposed: boolean;
|
|
3201
|
-
description?: string | undefined;
|
|
3202
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3203
|
-
enabledAt?: number | undefined;
|
|
3204
|
-
}[];
|
|
3205
3226
|
servers: {
|
|
3206
3227
|
name: string;
|
|
3207
3228
|
transport: {
|
|
@@ -3229,14 +3250,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3229
3250
|
}[] | undefined;
|
|
3230
3251
|
alwaysLoad?: boolean | undefined;
|
|
3231
3252
|
};
|
|
3232
|
-
exposureMode: "
|
|
3253
|
+
exposureMode: "direct" | "discovery";
|
|
3254
|
+
}[];
|
|
3255
|
+
directTools: {
|
|
3256
|
+
fullName: string;
|
|
3257
|
+
originalName: string;
|
|
3258
|
+
serverName: string;
|
|
3259
|
+
inputSchema: Record<string, unknown>;
|
|
3260
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3261
|
+
enabled: boolean;
|
|
3262
|
+
exposed: boolean;
|
|
3263
|
+
description?: string | undefined;
|
|
3264
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3265
|
+
enabledAt?: number | undefined;
|
|
3233
3266
|
}[];
|
|
3234
3267
|
discoverableTools: {
|
|
3235
3268
|
fullName: string;
|
|
3236
3269
|
originalName: string;
|
|
3237
3270
|
serverName: string;
|
|
3238
3271
|
inputSchema: Record<string, unknown>;
|
|
3239
|
-
exposureMode: "
|
|
3272
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3240
3273
|
enabled: boolean;
|
|
3241
3274
|
exposed: boolean;
|
|
3242
3275
|
description?: string | undefined;
|
|
@@ -3265,18 +3298,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3265
3298
|
env?: Record<string, string> | undefined;
|
|
3266
3299
|
mcpSessionContext?: {
|
|
3267
3300
|
sessionId: string;
|
|
3268
|
-
directTools: {
|
|
3269
|
-
fullName: string;
|
|
3270
|
-
originalName: string;
|
|
3271
|
-
serverName: string;
|
|
3272
|
-
inputSchema: Record<string, unknown>;
|
|
3273
|
-
exposureMode: "discovery" | "direct" | "hidden";
|
|
3274
|
-
enabled: boolean;
|
|
3275
|
-
exposed: boolean;
|
|
3276
|
-
description?: string | undefined;
|
|
3277
|
-
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3278
|
-
enabledAt?: number | undefined;
|
|
3279
|
-
}[];
|
|
3280
3301
|
servers: {
|
|
3281
3302
|
name: string;
|
|
3282
3303
|
transport: {
|
|
@@ -3304,14 +3325,26 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3304
3325
|
}[] | undefined;
|
|
3305
3326
|
alwaysLoad?: boolean | undefined;
|
|
3306
3327
|
};
|
|
3307
|
-
exposureMode: "
|
|
3328
|
+
exposureMode: "direct" | "discovery";
|
|
3329
|
+
}[];
|
|
3330
|
+
directTools: {
|
|
3331
|
+
fullName: string;
|
|
3332
|
+
originalName: string;
|
|
3333
|
+
serverName: string;
|
|
3334
|
+
inputSchema: Record<string, unknown>;
|
|
3335
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3336
|
+
enabled: boolean;
|
|
3337
|
+
exposed: boolean;
|
|
3338
|
+
description?: string | undefined;
|
|
3339
|
+
enabledBy?: "discovery" | "toolset" | undefined;
|
|
3340
|
+
enabledAt?: number | undefined;
|
|
3308
3341
|
}[];
|
|
3309
3342
|
discoverableTools: {
|
|
3310
3343
|
fullName: string;
|
|
3311
3344
|
originalName: string;
|
|
3312
3345
|
serverName: string;
|
|
3313
3346
|
inputSchema: Record<string, unknown>;
|
|
3314
|
-
exposureMode: "
|
|
3347
|
+
exposureMode: "direct" | "discovery" | "hidden";
|
|
3315
3348
|
enabled: boolean;
|
|
3316
3349
|
exposed: boolean;
|
|
3317
3350
|
description?: string | undefined;
|
|
@@ -3342,9 +3375,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
3342
3375
|
status: _$zod.ZodEnum<{
|
|
3343
3376
|
completed: "completed";
|
|
3344
3377
|
cancelled: "cancelled";
|
|
3378
|
+
failed: "failed";
|
|
3345
3379
|
running: "running";
|
|
3346
3380
|
waiting_input: "waiting_input";
|
|
3347
|
-
failed: "failed";
|
|
3348
3381
|
}>;
|
|
3349
3382
|
result: _$zod.ZodOptional<_$zod.ZodString>;
|
|
3350
3383
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -4496,8 +4529,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
4496
4529
|
changed: _$zod.ZodObject<{
|
|
4497
4530
|
ruleId: _$zod.ZodString;
|
|
4498
4531
|
changeType: _$zod.ZodEnum<{
|
|
4499
|
-
updated: "updated";
|
|
4500
4532
|
created: "created";
|
|
4533
|
+
updated: "updated";
|
|
4501
4534
|
deleted: "deleted";
|
|
4502
4535
|
}>;
|
|
4503
4536
|
previous: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
@@ -4850,8 +4883,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
4850
4883
|
name: _$zod.ZodString;
|
|
4851
4884
|
image: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4852
4885
|
enabled: _$zod.ZodBoolean;
|
|
4853
|
-
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4854
4886
|
scope: _$zod.ZodString;
|
|
4887
|
+
busUrl: _$zod.ZodOptional<_$zod.ZodString>;
|
|
4855
4888
|
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
4856
4889
|
type: _$zod.ZodLiteral<"container-isolated">;
|
|
4857
4890
|
id: _$zod.ZodString;
|
|
@@ -5125,8 +5158,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
5125
5158
|
changed: _$zod.ZodObject<{
|
|
5126
5159
|
path: _$zod.ZodString;
|
|
5127
5160
|
kind: _$zod.ZodEnum<{
|
|
5128
|
-
delete: "delete";
|
|
5129
5161
|
create: "create";
|
|
5162
|
+
delete: "delete";
|
|
5130
5163
|
change: "change";
|
|
5131
5164
|
}>;
|
|
5132
5165
|
}, _$zod_v4_core0.$strip>;
|
|
@@ -5134,8 +5167,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
5134
5167
|
changes: _$zod.ZodArray<_$zod.ZodObject<{
|
|
5135
5168
|
path: _$zod.ZodString;
|
|
5136
5169
|
kind: _$zod.ZodEnum<{
|
|
5137
|
-
delete: "delete";
|
|
5138
5170
|
create: "create";
|
|
5171
|
+
delete: "delete";
|
|
5139
5172
|
change: "change";
|
|
5140
5173
|
}>;
|
|
5141
5174
|
}, _$zod_v4_core0.$strip>>;
|
|
@@ -5961,8 +5994,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
5961
5994
|
agentId: _$zod.ZodString;
|
|
5962
5995
|
status: _$zod.ZodEnum<{
|
|
5963
5996
|
completed: "completed";
|
|
5964
|
-
sent: "sent";
|
|
5965
5997
|
acknowledged: "acknowledged";
|
|
5998
|
+
sent: "sent";
|
|
5966
5999
|
}>;
|
|
5967
6000
|
timestamp: _$zod.ZodNumber;
|
|
5968
6001
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -5981,8 +6014,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
5981
6014
|
agentId: _$zod.ZodString;
|
|
5982
6015
|
status: _$zod.ZodEnum<{
|
|
5983
6016
|
completed: "completed";
|
|
5984
|
-
sent: "sent";
|
|
5985
6017
|
acknowledged: "acknowledged";
|
|
6018
|
+
sent: "sent";
|
|
5986
6019
|
}>;
|
|
5987
6020
|
timestamp: _$zod.ZodNumber;
|
|
5988
6021
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -6056,7 +6089,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
6056
6089
|
tableName: "message_routing";
|
|
6057
6090
|
dataType: "string";
|
|
6058
6091
|
columnType: "SQLiteText";
|
|
6059
|
-
data: "completed" | "
|
|
6092
|
+
data: "completed" | "acknowledged" | "sent";
|
|
6060
6093
|
driverParam: string;
|
|
6061
6094
|
notNull: true;
|
|
6062
6095
|
hasDefault: false;
|
|
@@ -7639,9 +7672,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
7639
7672
|
status: _$zod.ZodEnum<{
|
|
7640
7673
|
completed: "completed";
|
|
7641
7674
|
cancelled: "cancelled";
|
|
7675
|
+
failed: "failed";
|
|
7642
7676
|
running: "running";
|
|
7643
7677
|
waiting_input: "waiting_input";
|
|
7644
|
-
failed: "failed";
|
|
7645
7678
|
}>;
|
|
7646
7679
|
result: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7647
7680
|
error: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -7719,8 +7752,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
|
|
|
7719
7752
|
enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
|
|
7720
7753
|
adapterName: _$zod.ZodString;
|
|
7721
7754
|
model: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7722
|
-
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7723
7755
|
systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7756
|
+
providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
7724
7757
|
allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
7725
7758
|
disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
7726
7759
|
allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
package/dist/services/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-BnuyCklU.mjs";import{t as r}from"../schema-Cz6-4_Dn.mjs";import{n as i,r as a,t as o}from"../namespace-CMntzAPI.mjs";import{$ as s,A as c,B as l,D as u,G as d,H as f,K as p,L as m,M as ee,O as te,R as ne,Tt as re,U as ie,V as ae,W as oe,Z as se,a as ce,b as le,c as ue,d as de,f as fe,i as pe,j as me,k as he,l as ge,n as _e,nt as ve,o as ye,r as be,s as xe,t as Se,tt as Ce,wt as we,x as Te,z as Ee}from"../handlers-mjky_fP2.mjs";import{TurnStorageNamespace as De,TurnStorageSubjects as Oe}from"./turn/namespace.mjs";import{a as ke,i as h}from"../ownership-recovery-guard-C9h8K1jo.mjs";import{SessionStorageNamespace as g,SessionStorageSubjects as _}from"./session/storage/namespace.mjs";import{AdapterRuntimeSchemas as v,ResolveIdRequestSchema as y,ResolveIdResponseSchema as b,ResolveLiveIdentityRequestSchema as x,ResolveLiveIdentityResponseSchema as S,ResolveNameRequestSchema as C,ResolveNameResponseSchema as w}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as T,AdapterRuntimeSubjects as Ae}from"./adapter-runtime/namespace.mjs";import{$ as je,A as Me,B as Ne,C as Pe,E as Fe,F as Ie,G as Le,H as Re,I as ze,J as Be,K as Ve,L as He,M as Ue,N as We,P as Ge,R as Ke,S as qe,T as Je,U as Ye,V as Xe,X as Ze,Y as E,Z as Qe,a as $e,b as et,c as tt,et as nt,i as rt,j as it,k as at,l as ot,nt as st,o as ct,r as lt,rt as ut,s as dt,t as ft,tt as pt,w as mt,x as ht,z as gt}from"../session-D38UuGGX.mjs";import{n as _t}from"../namespace-J87EeVTm.mjs";import{ProviderStorageNamespace as vt}from"./settings/storage/providers-namespace.mjs";import{A as yt,E as bt,M as xt,N as St,O as Ct,S as wt,T as Tt,_ as Et,a as Dt,b as Ot,c as kt,i as At,j as jt,k as Mt,l as Nt,n as Pt,o as Ft,r as It,s as Lt,t as Rt,v as zt,w as Bt,x as Vt,y as Ht}from"../schemas-Djjq4LLs.mjs";import{ExecutionTargetNamespace as D,ExecutionTargetSubjects as Ut}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Wt,MessageStorageSubjects as Gt}from"./session/messages/namespace.mjs";import{a as Kt,o as qt,r as Jt,t as Yt}from"../provider-context-D6GIZ5DC.mjs";import{TurnStorageNamespace as Xt}from"./session/turns/namespace.mjs";import{i as Zt,n as Qt,r as $t,t as en}from"../identity-DgTjgflr.mjs";import{BugEntrySchema as tn,CompressRequestSchema as nn,CompressResponseSchema as rn,CompressionEventSchema as an,CompressionSchemas as on,ExtractedContextSchema as sn,TechnicalDetailsSchema as cn,TodoEntrySchema as ln}from"./compression/schemas.mjs";import{PreferenceItemSchema as un,PreferenceKeySchema as dn,PreferenceValueSchema as fn,PreferencesSchemas as pn}from"./preferences/schemas.mjs";import{PreferencesNamespace as O,PreferencesSubjects as mn}from"./preferences/storage-namespace.mjs";import{t as hn}from"../namespace-Bo6-o_rW.mjs";import{l as gn,n as _n,p as vn,r as yn,t as bn}from"../ownership-memory-handler-C-y9zQf8.mjs";import{_ as xn,g as k,v as Sn}from"../packages-vF9F4M41.mjs";import{A as Cn,B as wn,C as Tn,D as En,E as Dn,F as On,I as kn,L as An,M as A,N as jn,O as Mn,P as Nn,R as j,S as Pn,T as Fn,V as In,_ as Ln,a as Rn,b as zn,c as Bn,d as Vn,f as M,g as Hn,h as Un,i as Wn,j as Gn,k as Kn,l as qn,m as Jn,n as N,o as Yn,p as Xn,r as Zn,s as Qn,t as P,u as $n,v as er,w as tr,x as nr,y as rr,z as ir}from"../framework-packages-C2tvdFmP.mjs";import{n as ar,r as or,t as sr}from"../package-BCKYMTYG.mjs";import{a as cr,c as lr,i as ur,l as dr,n as fr,o as F,r as pr,s as mr,t as hr,u as gr}from"../model-registry-CeDu27XL.mjs";import{t as _r}from"../tool-approval-service-vG2mEC9p.mjs";import{TrayMenuEntrySchema as vr,TrayMenuGroupEntrySchema as yr,TrayMenuGroupSchema as br,TrayMenuItemClickedSchema as xr,TrayMenuListEntrySchema as Sr,TrayMenuMetadataSchema as Cr,TrayMenuSchemas as wr,TrayMenuSectionSchema as Tr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as I,TrayMenuSubjects as Er}from"./tray-menu/namespace.mjs";import{t as Dr}from"../tray-menu-service-BRrnoqaY.mjs";import{n as Or}from"../handler-Cc1MhaR4.mjs";import{a as kr,i as Ar,n as jr,o as Mr,r as Nr,t as Pr}from"../package-BSz4hbav.mjs";import{FsNamespace as Fr}from"./filesystem/namespace.mjs";import{r as Ir}from"../tools-ByDy0ueE.mjs";import{t as Lr}from"../workflow-transitions-UOXY-VZa.mjs";import"./capability/index.mjs";import{a as Rr,i as zr,n as Br,r as Vr,t as Hr}from"../code-execution-BspFbEdT.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as Ur,AgentRuntimeSchemas as Wr,AgentRuntimeSelectionSchema as Gr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as L,AgentRuntimeSubjects as Kr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as qr,CodebaseSchemas as Jr}from"./codebase/schemas.mjs";import{CodebaseNamespace as R,CodebaseSubjects as Yr}from"./codebase/namespace.mjs";import{CompressionNamespace as z,CompressionSubjects as Xr}from"./compression/namespace.mjs";import{r as Zr,t as Qr}from"../storage-namespace-TBX8VgK3.mjs";import{DefinitionNamespace as $r}from"./definition/namespace.mjs";import{DialogNamespace as ei}from"./dialog/namespace.mjs";import{a as ti,i as B,n as ni,t as ri}from"../execution-target-CDeIBu4b.mjs";import{CLIDetectionNamespace as ii}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as ai}from"./local-notification/namespace.mjs";import{t as oi}from"../namespace-C9xmGXbW.mjs";import{ExtensionConfigStorageNamespace as si}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as ci}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as li,SubagentTemplateCreateSchema as ui,SubagentTemplateInstanceSchema as di,SubagentTemplateInstanceStatusSchema as fi,SubagentTemplateKernelSchemas as pi,SubagentTemplateSchema as mi,SubagentTemplateSettingsSchemas as hi,SubagentTemplateSpawnRequestSchema as gi,SubagentTemplateSpawnedEventSchema as _i,SubagentTemplateSummarySchema as vi,SubagentTemplateUpdateSchema as yi}from"./subagent-template/schemas.mjs";import{r as bi,t as xi}from"../namespace-CqJhR19O.mjs";import{SubagentTemplateKernelNamespace as V,SubagentTemplateSubjects as Si}from"./subagent-template/namespace.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 Ci}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as wi}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as Ti}from"@makaio/framework/contracts/model-registry";function Ei(e){return{source:`extension`,ownerKey:`extension:${e}`}}function Di(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function Oi(){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)}Di(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(k);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=Ei(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 ki(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function Ai(){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(P);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(ki(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 ji(e){let t=e.maxDepth??5,n={bus:e.bus,maxDepth:t,resolvedByKey:new Map,walkedByKey:new Set,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await U(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 H(n,r,e.selectors,0,new Set([Q(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function H(e,t,n,r,i){let a=Hi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=zi(t);for(let a of t.relations)await Mi(e,o,a,n,r,i)}async function Mi(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!Pi(o,n.target)){G(e,W(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){G(e,W(t,n,s,`unsupported-ref-class`));return}let c=Q(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){G(e,W(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await U(e,n.target);if(!d){G(e,W(t,n,s,`not-found`));return}if(G(e,{sourceRef:t,target:n.target,relationType:n.type,sourceLocalId:n.sourceLocalId,hint:s,status:`resolved`},{resolvedViaBackEdge:l}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=Ni(f>0?{[n.type]:{...o,depth:f}}:void 0,o.nested),m=new Set(a);m.add(c),await H(e,d,p,i+1,m)}async function U(e,t){let n=Q(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(Ci.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}function Ni(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 Pi(e,t){if(!e)return!1;if(!e.kinds)return!0;let n=Fi(t);return n!==void 0&&e.kinds.includes(n)}function Fi(e){if(e.refClass!==`entity`)return e.refClass===`local`?e.artifact.kind:e.kind}function W(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,sourceLocalId:t.sourceLocalId,hint:n,status:`unresolved`,reason:r}}function G(e,t,n){let r=Bi(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),Y(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(!Ii(a,Ri(e,r)))return;J(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&Z(n)||t.status===`unresolved`&&!K(t.reason,a.reason))return;J(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){K(t.reason,a.reason)&&J(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){J(e,i,r,t,n);return}t.status===`resolved`&&!Z(n)&&X(e,r,n)}}function Ii(e,t){return e.status===`resolved`?t:K(`depth-exceeded`,e.reason)}function K(e,t){return q(e)>q(t)}function q(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function J(e,t,n,r,i){Y(e,n,r,i),e.refs[t]=r}function Y(e,t,n,r){if(n.status===`resolved`){X(e,t,r);return}Li(e,t)}function X(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Li(e,t){e.refMetadataByKey.delete(t)}function Ri(e,t){return Z(e.refMetadataByKey.get(t))}function Z(e){return e?.resolvedViaBackEdge===!0}function zi(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function Q(e){return JSON.stringify([e.kind,e.id,e.revision])}function Bi(e){return JSON.stringify([Q(e.sourceRef),e.sourceLocalId??null,e.relationType,Vi(e.target)])}function Vi(e){return e.refClass===`entity`?JSON.stringify([`entity`,e.entityType,e.id]):e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,Q(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}function Hi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ui(){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)}$(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(N);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 $(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 Wi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(M);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 Gi(e){let t=new Map,n=e=>{let n=t.get(e);n&&(t.delete(e),n())},r=async(e,n,r)=>{let i=n.reactions;if(!i)return;let a=r.getService(A);if(!a)throw Error(`ReactionRegistry is not available — ensure reaction-registry is started before extensions with reactions.`);let o=await i.createReactions(r);a.register(e,o),t.set(e,()=>a.deregister(e))};return{filter:e=>e.name===A.name||!!e.reactions,async processActivated(n,i,a){if(n===A.name){let n=[];e.forEachActiveExtension((e,t,r)=>{t.reactions&&n.push([e,t,r])});try{for(let[e,t,i]of n)await r(e,t,i)}catch(e){throw t.clear(),e}return}await r(n,i,a)},async processStopped(e){if(e===A.name){t.clear();return}try{n(e)}catch(t){console.error(`[ReactionContributionProcessor] Deregister error for "${e}":`,t)}}}}const Ki=[T,_t,L,h,ii,ci,R,z,Zr,Qr,$r,ei,B,D,si,Fr,Or,wi,ai,E,F,Ti,O,oi,vt,hn,xi,I,De,V,bi];export{en as AdapterIdentityRegistry,pt as AdapterRegistry,T as AdapterRuntimeNamespace,v as AdapterRuntimeSchemas,Ae as AdapterRuntimeSubjects,Ur as AgentInstanceStatusSchema,L as AgentRuntimeNamespace,Wr as AgentRuntimeSchemas,Gr as AgentRuntimeSelectionSchema,Kr as AgentRuntimeSubjects,h as AgentStorageNamespace,ke as AgentStorageSubjects,wn as ArtifactLifecycleHookRegistry,P as ArtifactLifecycleHookRegistryToken,In as ArtifactLifecycleHookRejectedError,Sn as ArtifactSchemaRegistry,k as ArtifactSchemaRegistryToken,tn as BugEntrySchema,Ke as CONNECTOR_SWAP_DEFAULT_PIPELINE,hr as CachedRegistryFetcher,j as CanonicalModelResolutionError,An as CanonicalModelResolver,kn as CanonicalModelService,or as CapabilityService,sr as CapabilityToken,Vr as CodeExecutionService,Hr as CodeExecutionServiceToken,qr as CodebaseChangedEventSchema,R as CodebaseNamespace,Jr as CodebaseSchemas,Yr as CodebaseSubjects,nn as CompressRequestSchema,rn as CompressResponseSchema,an as CompressionEventSchema,z as CompressionNamespace,on as CompressionSchemas,Xr as CompressionSubjects,Et as ContainerCreatedSchema,zt as ContainerDestroyedSchema,Rt as ContainerIsolatedExecutionTargetSchema,Ht as ContainerIsolatedSpawnRequestSchema,Pt as ContainerLocalExecutionTargetSchema,Ot as ContainerLocalSpawnRequestSchema,Vt as ContainerLocalWorkflowSpawnRequestSchema,wt as ContainerRuntimeSchema,ri as ContainerSpawnNamespace,ni as ContainerSpawnSubjects,Bt as ContainerStartedSchema,Tt as ContainerStateSchema,bt as ContainerStoppedSchema,ft as ContextWindowTracker,B as DockerNamespace,ti as DockerSubjects,dt as EmbeddingIndexManager,It as ExecutionTargetInputSchema,At as ExecutionTargetListQuerySchema,D as ExecutionTargetNamespace,Dt as ExecutionTargetResolveRequestSchema,Ft as ExecutionTargetSchema,Lt as ExecutionTargetSchemas,Ut as ExecutionTargetSubjects,kt as ExecutionTargetTypeSchema,sn as ExtractedContextSchema,ir as FacetNamespaceRegistry,N as FacetNamespaceRegistryToken,fr as FallbackRegistryFetcher,Ki as FrameworkServicesCoreNamespaces,Nt as LocalExecutionTargetSchema,ct as MakaioSession,st as MakaioSessionService,E as MessageRoutingNamespace,Ze as MessageRoutingSubjects,Wt as MessageStorageNamespace,Gt as MessageStorageSubjects,F as ModelRegistryNamespace,pr as ModelRegistryProviderNotFoundError,lr as ModelRegistrySchema,dr as ModelRegistrySchemas,ur as ModelRegistryService,mr as ModelRegistrySubjects,Zn as ModelRegistryToken,un as PreferenceItemSchema,dn as PreferenceKeySchema,fn as PreferenceValueSchema,O as PreferencesNamespace,pn as PreferencesSchemas,mn as PreferencesSubjects,Yt as ProviderContextActivationError,gr as ProviderModelOverrideSchema,Nn as ReactionRegistry,A as ReactionRegistryToken,y as ResolveIdRequestSchema,b as ResolveIdResponseSchema,x as ResolveLiveIdentityRequestSchema,S as ResolveLiveIdentityResponseSchema,C as ResolveNameRequestSchema,w as ResolveNameResponseSchema,Kt as RuntimeProviderContextResolutionError,ze as SessionBridge,Wn as SessionBridgeToken,o as SessionEventStorageNamespace,i as SessionEventStorageSubjects,Ge as SessionExtensionContextImpl,Ye as SessionOrchestrator,Rn as SessionOrchestratorToken,se as SessionStartError,g as SessionStorageNamespace,_ as SessionStorageSubjects,Yn as SessionStorageToken,Qn as SessionToken,Le as SessionTurnManager,Ct as SpawnRequestSchema,Mt as SpawnResponseSchema,yt as StatusRequestSchema,jt as StatusResponseSchema,xt as StopRequestSchema,St as StopResponseSchema,Ar as SubagentFailureFinalizationError,Mr as SubagentManager,kr as SubagentService,Pr as SubagentServiceToken,li as SubagentTemplateCompletedEventSchema,ui as SubagentTemplateCreateSchema,di as SubagentTemplateInstanceSchema,fi as SubagentTemplateInstanceStatusSchema,V as SubagentTemplateKernelNamespace,pi as SubagentTemplateKernelSchemas,mi as SubagentTemplateSchema,hi as SubagentTemplateSettingsSchemas,gi as SubagentTemplateSpawnRequestSchema,_i as SubagentTemplateSpawnedEventSchema,Si as SubagentTemplateSubjects,vi as SubagentTemplateSummarySchema,yi as SubagentTemplateUpdateSchema,cn as TechnicalDetailsSchema,ln as TodoEntrySchema,_r as ToolApprovalService,Bn as ToolApprovalToken,Gn as ToolRegistry,qn as ToolRegistryToken,Mn as TransitionActionRegistry,Dn as TransitionPipelineService,$n as TransitionPipelineToken,En as TransitionRuleRegistry,vr as TrayMenuEntrySchema,yr as TrayMenuGroupEntrySchema,br as TrayMenuGroupSchema,xr as TrayMenuItemClickedSchema,Sr as TrayMenuListEntrySchema,Cr as TrayMenuMetadataSchema,I as TrayMenuNamespace,wr as TrayMenuSchemas,Tr as TrayMenuSectionSchema,Dr as TrayMenuService,Er as TrayMenuSubjects,Vn as TrayMenuToken,Ve as Turn,Re as TurnContextEnricher,Xt as TurnStorageNamespace,Oe as TurnStorageSubjects,Kn as WORKFLOW_START_ACTION_TYPE,Cn as WorkflowBlockRegistry,M as WorkflowBlockRegistryToken,Ee as actionRegistry,Jt as activateProviderContext,e as agents,Xn as artifactLifecycleHookRegistryPackage,xn as artifactSchemaRegistryPackage,_e as assembleForkContext,Qt as buildDeterministicAdapterId,m as buildRecoveryContext,te as buildRecoveryContextWithPipeline,l as buildSessionContext,ae as buildTurnInitiator,On as canonicalModelPackage,ar as capabilityPackage,Br as codeExecutionPackage,Oi as createArtifactKindContributionProcessor,Ai as createArtifactLifecycleHookContributionProcessor,Rr as createEffectiveExecutionSignal,Ui as createFacetNamespaceContributionProcessor,Jn as createModelRegistryPackage,Gi as createReactionContributionProcessor,Ie as createSessionExtensionContext,vn as createSessionStorageMemoryState,jr as createSubagentServicePackage,Ir as createToolContributionProcessor,Lr as createTransitionContributionProcessor,Wi as createWorkflowBlockContributionProcessor,he as ensureAgentCwd,c as ensureAgentModel,d as extractTextContent,Un as facetNamespaceRegistryPackage,ht as fetchAgentsBySession,qe as fetchMessageCountsBySession,Pe as fetchPreviewBySession,Me as fetchSessionPreviewMaps,f as findTurnByAgent,Hn as frameworkCorePackages,ne as getFullConversation,ie as getOrCreateSession,ot as importCursors,gn as kindToBranchKind,it as mapAgentsBySession,mt as mapRowToSession,Ue as mapToSession,cr as mergeModelMetadata,Qe as messageRouting,r as messages,de as normalizeSelectionString,p as normalizeToBlocks,Je as parseForkTransforms,He as pickFallbackRuntimeOptions,jn as reactionRegistryPackage,me as recoverAgent,ue as registerAbandonHandler,$t as registerAdapterRuntimeIdentityHandlers,ge as registerAttachHandler,ye as registerBuiltInActions,ce as registerCompressHandler,rt as registerCompressLineageResolver,ut as registerCoreSessionServiceHandlers,We as registerDrizzleAgentStorage,tt as registerDrizzleImportCursorStorage,Be as registerDrizzleMessageRoutingStorage,nt as registerDrizzleMessageStorage,we as registerDrizzleSessionEventStorage,Fe as registerDrizzleSessionOwnershipStorage,at as registerDrizzleSessionStorage,Te as registerDrizzleTurnStorage,pe as registerForkHandler,et as registerFtsSearchHandler,Ne as registerGetStatusCountsHandler,gt as registerListActionsHandler,_n as registerMemoryAgentStorage,je as registerMemoryMessageStorage,re as registerMemorySessionEventStorage,bn as registerMemorySessionOwnershipStorage,yn as registerMemorySessionStorage,le as registerMemoryTurnStorage,be as registerMergeHandler,$e as registerParentResolver,Xe as registerResumeHandler,lt as registerSpawningToolCallResolver,xe as resetBuiltInActionsRegistration,s as resolveAdapterId,fe as resolveAdapterNameById,ji as resolveArtifactContext,Zt as resolveDeterministicAdapterId,Ce as resolveExecutionTarget,ve as resolveModelCapabilities,qt as resolveRuntimeProviderContext,oe as resolveTargetAgents,Se as routeToAgents,u as routeToAgentsCore,zr as selectCodeExecutionProvider,Ln as sessionBridgePackage,a as sessionEvents,er as sessionOrchestratorPackage,rr as sessionPackage,zn as sessionStoragePackage,t as sessions,Nr as subagentServicePackage,nr as toolApprovalPackage,Pn as toolRegistryPackage,Tn as transitionPipelinePackage,tr as trayMenuPackage,n as turns,ee as verifyAndRecoverAgents,Fn as workflowBlockRegistryPackage};
|
|
1
|
+
import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{t as n}from"../schema-BnuyCklU.mjs";import{t as r}from"../schema-Cz6-4_Dn.mjs";import{n as i,r as a,t as o}from"../namespace-CMntzAPI.mjs";import{$ as s,A as c,B as l,D as u,G as d,H as f,K as p,L as m,M as ee,O as te,R as ne,Tt as re,U as ie,V as ae,W as oe,Z as se,a as ce,b as le,c as ue,d as de,f as fe,i as pe,j as me,k as he,l as ge,n as _e,nt as ve,o as ye,r as be,s as xe,t as Se,tt as Ce,wt as we,x as Te,z as Ee}from"../handlers-mjky_fP2.mjs";import{TurnStorageNamespace as De,TurnStorageSubjects as Oe}from"./turn/namespace.mjs";import{a as ke,i as h}from"../ownership-recovery-guard-C9h8K1jo.mjs";import{SessionStorageNamespace as g,SessionStorageSubjects as _}from"./session/storage/namespace.mjs";import{AdapterRuntimeSchemas as v,ResolveIdRequestSchema as y,ResolveIdResponseSchema as b,ResolveLiveIdentityRequestSchema as x,ResolveLiveIdentityResponseSchema as S,ResolveNameRequestSchema as C,ResolveNameResponseSchema as w}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as T,AdapterRuntimeSubjects as Ae}from"./adapter-runtime/namespace.mjs";import{$ as je,A as Me,B as Ne,C as Pe,E as Fe,F as Ie,G as Le,H as Re,I as ze,J as Be,K as Ve,L as He,M as Ue,N as We,P as Ge,R as Ke,S as qe,T as Je,U as Ye,V as Xe,X as Ze,Y as E,Z as Qe,a as $e,b as et,c as tt,et as nt,i as rt,j as it,k as at,l as ot,nt as st,o as ct,r as lt,rt as ut,s as dt,t as ft,tt as pt,w as mt,x as ht,z as gt}from"../session-D38UuGGX.mjs";import{n as _t}from"../namespace-J87EeVTm.mjs";import{ProviderStorageNamespace as vt}from"./settings/storage/providers-namespace.mjs";import{A as yt,E as bt,M as xt,N as St,O as Ct,S as wt,T as Tt,_ as Et,a as Dt,b as Ot,c as kt,i as At,j as jt,k as Mt,l as Nt,n as Pt,o as Ft,r as It,s as Lt,t as Rt,v as zt,w as Bt,x as Vt,y as Ht}from"../schemas-Djjq4LLs.mjs";import{ExecutionTargetNamespace as D,ExecutionTargetSubjects as Ut}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Wt,MessageStorageSubjects as Gt}from"./session/messages/namespace.mjs";import{a as Kt,o as qt,r as Jt,t as Yt}from"../provider-context-D6GIZ5DC.mjs";import{TurnStorageNamespace as Xt}from"./session/turns/namespace.mjs";import{i as Zt,n as Qt,r as $t,t as en}from"../identity-DgTjgflr.mjs";import{BugEntrySchema as tn,CompressRequestSchema as nn,CompressResponseSchema as rn,CompressionEventSchema as an,CompressionSchemas as on,ExtractedContextSchema as sn,TechnicalDetailsSchema as cn,TodoEntrySchema as ln}from"./compression/schemas.mjs";import{PreferenceItemSchema as un,PreferenceKeySchema as dn,PreferenceValueSchema as fn,PreferencesSchemas as pn}from"./preferences/schemas.mjs";import{PreferencesNamespace as O,PreferencesSubjects as mn}from"./preferences/storage-namespace.mjs";import{t as hn}from"../namespace-Bo6-o_rW.mjs";import{l as gn,n as _n,p as vn,r as yn,t as bn}from"../ownership-memory-handler-C-y9zQf8.mjs";import{_ as xn,g as k,v as Sn}from"../packages-vF9F4M41.mjs";import{A as Cn,B as wn,C as Tn,D as En,E as Dn,F as On,I as kn,L as An,M as A,N as jn,O as Mn,P as Nn,R as j,S as Pn,T as Fn,V as In,_ as Ln,a as Rn,b as zn,c as Bn,d as Vn,f as M,g as Hn,h as Un,i as Wn,j as Gn,k as Kn,l as qn,m as Jn,n as N,o as Yn,p as Xn,r as Zn,s as Qn,t as P,u as $n,v as er,w as tr,x as nr,y as rr,z as ir}from"../framework-packages-mquh5_Yw.mjs";import{n as ar,r as or,t as sr}from"../package-BCKYMTYG.mjs";import{a as cr,c as lr,i as ur,l as dr,n as fr,o as F,r as pr,s as mr,t as hr,u as gr}from"../model-registry-CeDu27XL.mjs";import{t as _r}from"../tool-approval-service-vG2mEC9p.mjs";import{TrayMenuEntrySchema as vr,TrayMenuGroupEntrySchema as yr,TrayMenuGroupSchema as br,TrayMenuItemClickedSchema as xr,TrayMenuListEntrySchema as Sr,TrayMenuMetadataSchema as Cr,TrayMenuSchemas as wr,TrayMenuSectionSchema as Tr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as I,TrayMenuSubjects as Er}from"./tray-menu/namespace.mjs";import{t as Dr}from"../tray-menu-service-BRrnoqaY.mjs";import{n as Or}from"../handler-Cc1MhaR4.mjs";import{a as kr,i as Ar,n as jr,o as Mr,r as Nr,t as Pr}from"../package-BSz4hbav.mjs";import{FsNamespace as Fr}from"./filesystem/namespace.mjs";import{r as Ir}from"../tools-K3DWA4Jr.mjs";import{t as Lr}from"../workflow-transitions-C2BLDE5N.mjs";import"./capability/index.mjs";import{a as Rr,i as zr,n as Br,r as Vr,t as Hr}from"../code-execution-BspFbEdT.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as Ur,AgentRuntimeSchemas as Wr,AgentRuntimeSelectionSchema as Gr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as L,AgentRuntimeSubjects as Kr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as qr,CodebaseSchemas as Jr}from"./codebase/schemas.mjs";import{CodebaseNamespace as R,CodebaseSubjects as Yr}from"./codebase/namespace.mjs";import{CompressionNamespace as z,CompressionSubjects as Xr}from"./compression/namespace.mjs";import{r as Zr,t as Qr}from"../storage-namespace-TBX8VgK3.mjs";import{DefinitionNamespace as $r}from"./definition/namespace.mjs";import{DialogNamespace as ei}from"./dialog/namespace.mjs";import{a as ti,i as B,n as ni,t as ri}from"../execution-target-CDeIBu4b.mjs";import{CLIDetectionNamespace as ii}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as ai}from"./local-notification/namespace.mjs";import{t as oi}from"../namespace-C9xmGXbW.mjs";import{ExtensionConfigStorageNamespace as si}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as ci}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as li,SubagentTemplateCreateSchema as ui,SubagentTemplateInstanceSchema as di,SubagentTemplateInstanceStatusSchema as fi,SubagentTemplateKernelSchemas as pi,SubagentTemplateSchema as mi,SubagentTemplateSettingsSchemas as hi,SubagentTemplateSpawnRequestSchema as gi,SubagentTemplateSpawnedEventSchema as _i,SubagentTemplateSummarySchema as vi,SubagentTemplateUpdateSchema as yi}from"./subagent-template/schemas.mjs";import{r as bi,t as xi}from"../namespace-CqJhR19O.mjs";import{SubagentTemplateKernelNamespace as V,SubagentTemplateSubjects as Si}from"./subagent-template/namespace.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 Ci}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as wi}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as Ti}from"@makaio/framework/contracts/model-registry";function Ei(e){return{source:`extension`,ownerKey:`extension:${e}`}}function Di(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function Oi(){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)}Di(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(k);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=Ei(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 ki(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function Ai(){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(P);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(ki(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 ji(e){let t=e.maxDepth??5,n={bus:e.bus,maxDepth:t,resolvedByKey:new Map,walkedByKey:new Set,refIndexByKey:new Map,refMetadataByKey:new Map,resolved:[],refs:[]},r=await U(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 H(n,r,e.selectors,0,new Set([Q(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function H(e,t,n,r,i){let a=Hi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=zi(t);for(let a of t.relations)await Mi(e,o,a,n,r,i)}async function Mi(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!Pi(o,n.target)){G(e,W(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){G(e,W(t,n,s,`unsupported-ref-class`));return}let c=Q(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){G(e,W(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await U(e,n.target);if(!d){G(e,W(t,n,s,`not-found`));return}if(G(e,{sourceRef:t,target:n.target,relationType:n.type,sourceLocalId:n.sourceLocalId,hint:s,status:`resolved`},{resolvedViaBackEdge:l}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=Ni(f>0?{[n.type]:{...o,depth:f}}:void 0,o.nested),m=new Set(a);m.add(c),await H(e,d,p,i+1,m)}async function U(e,t){let n=Q(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(Ci.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}function Ni(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 Pi(e,t){if(!e)return!1;if(!e.kinds)return!0;let n=Fi(t);return n!==void 0&&e.kinds.includes(n)}function Fi(e){if(e.refClass!==`entity`)return e.refClass===`local`?e.artifact.kind:e.kind}function W(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,sourceLocalId:t.sourceLocalId,hint:n,status:`unresolved`,reason:r}}function G(e,t,n){let r=Bi(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),Y(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(!Ii(a,Ri(e,r)))return;J(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&Z(n)||t.status===`unresolved`&&!K(t.reason,a.reason))return;J(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){K(t.reason,a.reason)&&J(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){J(e,i,r,t,n);return}t.status===`resolved`&&!Z(n)&&X(e,r,n)}}function Ii(e,t){return e.status===`resolved`?t:K(`depth-exceeded`,e.reason)}function K(e,t){return q(e)>q(t)}function q(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function J(e,t,n,r,i){Y(e,n,r,i),e.refs[t]=r}function Y(e,t,n,r){if(n.status===`resolved`){X(e,t,r);return}Li(e,t)}function X(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Li(e,t){e.refMetadataByKey.delete(t)}function Ri(e,t){return Z(e.refMetadataByKey.get(t))}function Z(e){return e?.resolvedViaBackEdge===!0}function zi(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function Q(e){return JSON.stringify([e.kind,e.id,e.revision])}function Bi(e){return JSON.stringify([Q(e.sourceRef),e.sourceLocalId??null,e.relationType,Vi(e.target)])}function Vi(e){return e.refClass===`entity`?JSON.stringify([`entity`,e.entityType,e.id]):e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,Q(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}function Hi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ui(){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)}$(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(N);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 $(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 Wi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(M);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 Gi(e){let t=new Map,n=e=>{let n=t.get(e);n&&(t.delete(e),n())},r=async(e,n,r)=>{let i=n.reactions;if(!i)return;let a=r.getService(A);if(!a)throw Error(`ReactionRegistry is not available — ensure reaction-registry is started before extensions with reactions.`);let o=await i.createReactions(r);a.register(e,o),t.set(e,()=>a.deregister(e))};return{filter:e=>e.name===A.name||!!e.reactions,async processActivated(n,i,a){if(n===A.name){let n=[];e.forEachActiveExtension((e,t,r)=>{t.reactions&&n.push([e,t,r])});try{for(let[e,t,i]of n)await r(e,t,i)}catch(e){throw t.clear(),e}return}await r(n,i,a)},async processStopped(e){if(e===A.name){t.clear();return}try{n(e)}catch(t){console.error(`[ReactionContributionProcessor] Deregister error for "${e}":`,t)}}}}const Ki=[T,_t,L,h,ii,ci,R,z,Zr,Qr,$r,ei,B,D,si,Fr,Or,wi,ai,E,F,Ti,O,oi,vt,hn,xi,I,De,V,bi];export{en as AdapterIdentityRegistry,pt as AdapterRegistry,T as AdapterRuntimeNamespace,v as AdapterRuntimeSchemas,Ae as AdapterRuntimeSubjects,Ur as AgentInstanceStatusSchema,L as AgentRuntimeNamespace,Wr as AgentRuntimeSchemas,Gr as AgentRuntimeSelectionSchema,Kr as AgentRuntimeSubjects,h as AgentStorageNamespace,ke as AgentStorageSubjects,wn as ArtifactLifecycleHookRegistry,P as ArtifactLifecycleHookRegistryToken,In as ArtifactLifecycleHookRejectedError,Sn as ArtifactSchemaRegistry,k as ArtifactSchemaRegistryToken,tn as BugEntrySchema,Ke as CONNECTOR_SWAP_DEFAULT_PIPELINE,hr as CachedRegistryFetcher,j as CanonicalModelResolutionError,An as CanonicalModelResolver,kn as CanonicalModelService,or as CapabilityService,sr as CapabilityToken,Vr as CodeExecutionService,Hr as CodeExecutionServiceToken,qr as CodebaseChangedEventSchema,R as CodebaseNamespace,Jr as CodebaseSchemas,Yr as CodebaseSubjects,nn as CompressRequestSchema,rn as CompressResponseSchema,an as CompressionEventSchema,z as CompressionNamespace,on as CompressionSchemas,Xr as CompressionSubjects,Et as ContainerCreatedSchema,zt as ContainerDestroyedSchema,Rt as ContainerIsolatedExecutionTargetSchema,Ht as ContainerIsolatedSpawnRequestSchema,Pt as ContainerLocalExecutionTargetSchema,Ot as ContainerLocalSpawnRequestSchema,Vt as ContainerLocalWorkflowSpawnRequestSchema,wt as ContainerRuntimeSchema,ri as ContainerSpawnNamespace,ni as ContainerSpawnSubjects,Bt as ContainerStartedSchema,Tt as ContainerStateSchema,bt as ContainerStoppedSchema,ft as ContextWindowTracker,B as DockerNamespace,ti as DockerSubjects,dt as EmbeddingIndexManager,It as ExecutionTargetInputSchema,At as ExecutionTargetListQuerySchema,D as ExecutionTargetNamespace,Dt as ExecutionTargetResolveRequestSchema,Ft as ExecutionTargetSchema,Lt as ExecutionTargetSchemas,Ut as ExecutionTargetSubjects,kt as ExecutionTargetTypeSchema,sn as ExtractedContextSchema,ir as FacetNamespaceRegistry,N as FacetNamespaceRegistryToken,fr as FallbackRegistryFetcher,Ki as FrameworkServicesCoreNamespaces,Nt as LocalExecutionTargetSchema,ct as MakaioSession,st as MakaioSessionService,E as MessageRoutingNamespace,Ze as MessageRoutingSubjects,Wt as MessageStorageNamespace,Gt as MessageStorageSubjects,F as ModelRegistryNamespace,pr as ModelRegistryProviderNotFoundError,lr as ModelRegistrySchema,dr as ModelRegistrySchemas,ur as ModelRegistryService,mr as ModelRegistrySubjects,Zn as ModelRegistryToken,un as PreferenceItemSchema,dn as PreferenceKeySchema,fn as PreferenceValueSchema,O as PreferencesNamespace,pn as PreferencesSchemas,mn as PreferencesSubjects,Yt as ProviderContextActivationError,gr as ProviderModelOverrideSchema,Nn as ReactionRegistry,A as ReactionRegistryToken,y as ResolveIdRequestSchema,b as ResolveIdResponseSchema,x as ResolveLiveIdentityRequestSchema,S as ResolveLiveIdentityResponseSchema,C as ResolveNameRequestSchema,w as ResolveNameResponseSchema,Kt as RuntimeProviderContextResolutionError,ze as SessionBridge,Wn as SessionBridgeToken,o as SessionEventStorageNamespace,i as SessionEventStorageSubjects,Ge as SessionExtensionContextImpl,Ye as SessionOrchestrator,Rn as SessionOrchestratorToken,se as SessionStartError,g as SessionStorageNamespace,_ as SessionStorageSubjects,Yn as SessionStorageToken,Qn as SessionToken,Le as SessionTurnManager,Ct as SpawnRequestSchema,Mt as SpawnResponseSchema,yt as StatusRequestSchema,jt as StatusResponseSchema,xt as StopRequestSchema,St as StopResponseSchema,Ar as SubagentFailureFinalizationError,Mr as SubagentManager,kr as SubagentService,Pr as SubagentServiceToken,li as SubagentTemplateCompletedEventSchema,ui as SubagentTemplateCreateSchema,di as SubagentTemplateInstanceSchema,fi as SubagentTemplateInstanceStatusSchema,V as SubagentTemplateKernelNamespace,pi as SubagentTemplateKernelSchemas,mi as SubagentTemplateSchema,hi as SubagentTemplateSettingsSchemas,gi as SubagentTemplateSpawnRequestSchema,_i as SubagentTemplateSpawnedEventSchema,Si as SubagentTemplateSubjects,vi as SubagentTemplateSummarySchema,yi as SubagentTemplateUpdateSchema,cn as TechnicalDetailsSchema,ln as TodoEntrySchema,_r as ToolApprovalService,Bn as ToolApprovalToken,Gn as ToolRegistry,qn as ToolRegistryToken,Mn as TransitionActionRegistry,Dn as TransitionPipelineService,$n as TransitionPipelineToken,En as TransitionRuleRegistry,vr as TrayMenuEntrySchema,yr as TrayMenuGroupEntrySchema,br as TrayMenuGroupSchema,xr as TrayMenuItemClickedSchema,Sr as TrayMenuListEntrySchema,Cr as TrayMenuMetadataSchema,I as TrayMenuNamespace,wr as TrayMenuSchemas,Tr as TrayMenuSectionSchema,Dr as TrayMenuService,Er as TrayMenuSubjects,Vn as TrayMenuToken,Ve as Turn,Re as TurnContextEnricher,Xt as TurnStorageNamespace,Oe as TurnStorageSubjects,Kn as WORKFLOW_START_ACTION_TYPE,Cn as WorkflowBlockRegistry,M as WorkflowBlockRegistryToken,Ee as actionRegistry,Jt as activateProviderContext,e as agents,Xn as artifactLifecycleHookRegistryPackage,xn as artifactSchemaRegistryPackage,_e as assembleForkContext,Qt as buildDeterministicAdapterId,m as buildRecoveryContext,te as buildRecoveryContextWithPipeline,l as buildSessionContext,ae as buildTurnInitiator,On as canonicalModelPackage,ar as capabilityPackage,Br as codeExecutionPackage,Oi as createArtifactKindContributionProcessor,Ai as createArtifactLifecycleHookContributionProcessor,Rr as createEffectiveExecutionSignal,Ui as createFacetNamespaceContributionProcessor,Jn as createModelRegistryPackage,Gi as createReactionContributionProcessor,Ie as createSessionExtensionContext,vn as createSessionStorageMemoryState,jr as createSubagentServicePackage,Ir as createToolContributionProcessor,Lr as createTransitionContributionProcessor,Wi as createWorkflowBlockContributionProcessor,he as ensureAgentCwd,c as ensureAgentModel,d as extractTextContent,Un as facetNamespaceRegistryPackage,ht as fetchAgentsBySession,qe as fetchMessageCountsBySession,Pe as fetchPreviewBySession,Me as fetchSessionPreviewMaps,f as findTurnByAgent,Hn as frameworkCorePackages,ne as getFullConversation,ie as getOrCreateSession,ot as importCursors,gn as kindToBranchKind,it as mapAgentsBySession,mt as mapRowToSession,Ue as mapToSession,cr as mergeModelMetadata,Qe as messageRouting,r as messages,de as normalizeSelectionString,p as normalizeToBlocks,Je as parseForkTransforms,He as pickFallbackRuntimeOptions,jn as reactionRegistryPackage,me as recoverAgent,ue as registerAbandonHandler,$t as registerAdapterRuntimeIdentityHandlers,ge as registerAttachHandler,ye as registerBuiltInActions,ce as registerCompressHandler,rt as registerCompressLineageResolver,ut as registerCoreSessionServiceHandlers,We as registerDrizzleAgentStorage,tt as registerDrizzleImportCursorStorage,Be as registerDrizzleMessageRoutingStorage,nt as registerDrizzleMessageStorage,we as registerDrizzleSessionEventStorage,Fe as registerDrizzleSessionOwnershipStorage,at as registerDrizzleSessionStorage,Te as registerDrizzleTurnStorage,pe as registerForkHandler,et as registerFtsSearchHandler,Ne as registerGetStatusCountsHandler,gt as registerListActionsHandler,_n as registerMemoryAgentStorage,je as registerMemoryMessageStorage,re as registerMemorySessionEventStorage,bn as registerMemorySessionOwnershipStorage,yn as registerMemorySessionStorage,le as registerMemoryTurnStorage,be as registerMergeHandler,$e as registerParentResolver,Xe as registerResumeHandler,lt as registerSpawningToolCallResolver,xe as resetBuiltInActionsRegistration,s as resolveAdapterId,fe as resolveAdapterNameById,ji as resolveArtifactContext,Zt as resolveDeterministicAdapterId,Ce as resolveExecutionTarget,ve as resolveModelCapabilities,qt as resolveRuntimeProviderContext,oe as resolveTargetAgents,Se as routeToAgents,u as routeToAgentsCore,zr as selectCodeExecutionProvider,Ln as sessionBridgePackage,a as sessionEvents,er as sessionOrchestratorPackage,rr as sessionPackage,zn as sessionStoragePackage,t as sessions,Nr as subagentServicePackage,nr as toolApprovalPackage,Pn as toolRegistryPackage,Tn as transitionPipelinePackage,tr as trayMenuPackage,n as turns,ee as verifyAndRecoverAgents,Fn as workflowBlockRegistryPackage};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-
|
|
1
|
+
import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-oE2q0pTG.mjs";
|
|
2
2
|
export { ProviderContextActivationError, ProviderContextActivationErrorCode, ProviderContextActivationRollbackError, ProviderContextActivationTransaction, RuntimeProviderContextResolutionError, RuntimeProviderContextResolutionErrorCode, activateProviderContext, prepareProviderContextActivation, resolveRuntimeProviderContext };
|