@makaio/framework 1.0.0-dev-1788978977154 → 1.0.0-dev-1789000242829
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/{2020-CpDjcHDh.mjs → 2020-DvDj4r_K.mjs} +1 -1
- package/dist/{account-identity-D00LLclm.mjs → account-identity-CNdiLYaM.mjs} +1 -1
- package/dist/{adapter-D92pfm_b.mjs → adapter-BdMny6vw.mjs} +1 -1
- package/dist/adapters/claude/index.d.mts +24 -24
- package/dist/adapters/index.mjs +1 -1
- package/dist/artifact-Cxm5ZX7L.mjs +1 -0
- package/dist/{auth-CB4an9bh.mjs → auth-BIgwGHp-.mjs} +1 -1
- package/dist/{authority-state-bootstrap-B8jG1zI1.mjs → authority-state-bootstrap-DVFYemDL.mjs} +1 -1
- package/dist/{automation-trigger-xNDX0Am_.mjs → automation-trigger-CQNQpzkA.mjs} +1 -1
- package/dist/bus/index.mjs +8 -1
- package/dist/{caller-owned-adapter-stub-oM1G1KvC.mjs → caller-owned-adapter-stub-NiR7KT2N.mjs} +1 -1
- package/dist/{canonical-model-D7Cg0l2R.mjs → canonical-model-BMnzRhG_.mjs} +1 -1
- package/dist/{capabilities-D2ggcMem.mjs → capabilities-CEwSeTB3.mjs} +1 -1
- package/dist/{client-CpUVfDxa.mjs → client-C0HcPzvw.mjs} +1 -1
- package/dist/{code-execution-CMqsHnGg.mjs → code-execution-BhUo84eg.mjs} +1 -1
- package/dist/{compression-Civ-rf-O.mjs → compression-DvPXSBWS.mjs} +1 -1
- package/dist/{config-namespace-CQnsvr77.mjs → config-namespace-CE3KasJn.mjs} +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +3 -3
- package/dist/contracts/artifact/index.mjs +1 -1
- package/dist/contracts/auth/index.mjs +1 -1
- package/dist/contracts/automation-trigger/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/capabilities/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/code-execution/index.mjs +1 -1
- package/dist/contracts/common/index.mjs +1 -1
- package/dist/contracts/config/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.mjs +1 -1
- package/dist/contracts/harness/index.mjs +1 -1
- package/dist/contracts/host/index.mjs +1 -1
- package/dist/contracts/index.d.mts +22 -22
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/materialization/index.mjs +1 -1
- package/dist/contracts/model-registry/index.mjs +1 -1
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/platform/index.mjs +1 -1
- package/dist/contracts/provider/index.mjs +1 -1
- package/dist/contracts/reaction/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/shared/index.mjs +1 -1
- package/dist/contracts/skill/index.mjs +1 -1
- package/dist/contracts/telemetry/index.mjs +1 -1
- package/dist/contracts/timeout/index.mjs +1 -1
- package/dist/contracts/toast/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/variant/index.mjs +1 -1
- package/dist/contracts/worker/index.d.mts +1 -1
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-Dqw0YJdi.mjs → definition-o5Dfg5j-.mjs} +1 -1
- package/dist/{dist-DeI9zYMP.mjs → dist-DMIaE8sg.mjs} +1 -1
- package/dist/{execution-target-_oVNW6Zm.mjs → execution-target-Ba7b_UmX.mjs} +1 -1
- package/dist/{extension-CAi7bbyv.mjs → extension-D9D8tJQY.mjs} +1 -1
- package/dist/{extension-CrghVa93.mjs → extension-GQEL-NCV.mjs} +1 -1
- package/dist/{framework-packages-BOPhhtK7.mjs → framework-packages-DdCJ4JsE.mjs} +1 -1
- package/dist/{handlers-YPTyZDhF.mjs → handlers-CqL2TWbk.mjs} +1 -1
- package/dist/{harness-Ds1I4smU.mjs → harness-CYzkReGi.mjs} +1 -1
- package/dist/{index-2ww5IWeo.d.mts → index-BTluq4-E.d.mts} +85 -42
- package/dist/{index-CQ8MVY5G.d.mts → index-BxJRljy-.d.mts} +77 -77
- package/dist/{index-CWuPfOzU.d.mts → index-CCNCo440.d.mts} +5 -5
- package/dist/{index-OQeNNbiX2.d.mts → index-CRM23ToM2.d.mts} +2 -2
- package/dist/{index-D_oDoazF.d.mts → index-D7IZQNhD.d.mts} +1 -1
- package/dist/{index-h7_ddTvG2.d.mts → index-DR308wUB2.d.mts} +3 -3
- package/dist/{index-VLZJ3Scz.d.mts → index-DvoitgXV.d.mts} +5 -5
- package/dist/{index-CWq-9Mpk.d.mts → index-GTCM4lXx.d.mts} +1 -1
- package/dist/{index-CVBlYxKV2.d.mts → index-hm8NV4CJ2.d.mts} +4 -4
- package/dist/kernel/cli/index.mjs +1 -1
- package/dist/kernel/cli/register.mjs +1 -1
- package/dist/kernel/cli/schemas.mjs +1 -1
- package/dist/kernel/extension/index.mjs +1 -1
- package/dist/kernel/index.mjs +1 -1
- package/dist/kernel/namespace/index.mjs +1 -1
- package/dist/kernel/observability/index.mjs +1 -1
- package/dist/kernel/providers/index.mjs +1 -1
- package/dist/kernel/window/index.mjs +1 -1
- package/dist/kind-registration-BanX_UAF.mjs +1 -0
- package/dist/{materialization-BwC7pVg2.mjs → materialization--bg6ZwQd.mjs} +1 -1
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/model-Dya0clsM.mjs +1 -0
- package/dist/{namespace-CnRcpgJ8.mjs → namespace-CD9mJGhU.mjs} +1 -1
- package/dist/{namespace-B1sjokHd.d.mts → namespace-CfA0C0JR.d.mts} +2 -2
- package/dist/namespace-D53UGrP6.mjs +1 -0
- package/dist/{namespace-Cy62a3YP.d.mts → namespace-Dmbm2JzV.d.mts} +2 -2
- package/dist/{native-session-supervisor-B0rziwHI.mjs → native-session-supervisor-i3PeijHn.mjs} +1 -1
- package/dist/{orchestrator-shared-CmS8iU9_.mjs → orchestrator-shared-DMldWEah.mjs} +1 -1
- package/dist/{ownership-memory-handler-DMirNILL.mjs → ownership-memory-handler-LXaweX6V.mjs} +1 -1
- package/dist/{package-Co36_pRw.mjs → package-BFto8lbP.mjs} +1 -1
- package/dist/{package-BDaNGoBY.mjs → package-BT94BLu4.mjs} +1 -1
- package/dist/{package-DQgqWIcX.d.mts → package-BaTrCWZl.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/packages-DAw3Z011.mjs +1 -0
- package/dist/{profile-C9RV7ao-.mjs → profile-Cjq4QnUQ.mjs} +1 -1
- package/dist/{provider-context-BPITm0cn.mjs → provider-context-BpabfMlj.mjs} +1 -1
- package/dist/{provider-context-CyGvwXPz.mjs → provider-context-CYUUoI6x.mjs} +1 -1
- package/dist/{resolved-M6PyrgFr.mjs → resolved-XQTiHgrA.mjs} +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/{schema-DrHrto2J.mjs → schema-BVbkNHVQ.mjs} +1 -1
- package/dist/{schemas-DGKWi7mk.d.mts → schemas-CQe4xCRn.d.mts} +2 -2
- package/dist/{schemas-DRho446W.mjs → schemas-NKlV5jqJ.mjs} +1 -1
- package/dist/{schemas-DyZNwquY.mjs → schemas-QEr2LI43.mjs} +1 -1
- package/dist/{schemas-uWyTgMWm.d.mts → schemas-bcDK-fK3.d.mts} +17 -8
- package/dist/{schemas-CQKfd2Xd.mjs → schemas-pHboaOxJ.mjs} +1 -1
- package/dist/{schemas-C_kxk6gr.d.mts → schemas-yXs929kr.d.mts} +7 -7
- package/dist/{selection-BDs7K53w.mjs → selection-D7V0wyHX.mjs} +1 -1
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-subsystem/index.mjs +1 -1
- package/dist/services/adapter-subsystem/namespace.mjs +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/execution-target/index.mjs +1 -1
- package/dist/services/execution-target/namespace.mjs +1 -1
- package/dist/services/execution-target/schemas.mjs +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 +10 -10
- package/dist/services/index.mjs +1 -1
- package/dist/services/materialization/index.mjs +1 -1
- package/dist/services/provider-context/index.mjs +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.mjs +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.mjs +1 -1
- package/dist/services/settings/index.mjs +1 -1
- package/dist/services/settings/namespace.d.mts +4 -4
- package/dist/services/settings/storage/clients-namespace.mjs +1 -1
- package/dist/services/settings/storage/index.mjs +1 -1
- package/dist/services/settings/storage/providers-namespace.mjs +1 -1
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/workflow-transitions/index.mjs +1 -1
- package/dist/{session-Cn8z1hxD.mjs → session-CAKfa5o8.mjs} +1 -1
- package/dist/{session-9C42TPQq.mjs → session-CODDwsGa.mjs} +1 -1
- package/dist/{shared-DqvfJVYk.mjs → shared-CkCrHz66.mjs} +1 -1
- package/dist/{skill-BmRp8GhW.mjs → skill-91kZNQnF.mjs} +1 -1
- package/dist/{tool-approval-service-DchkAdAr.mjs → tool-approval-service-BV3WxxX6.mjs} +1 -1
- package/dist/{tools-r50UBPJ9.mjs → tools-CElCajoS.mjs} +1 -1
- package/dist/{transition-h6UZHLGq.d.mts → transition-bYkXnLY2.d.mts} +1 -1
- package/dist/{types-Bcsp_FCp.d.mts → types-BNKqcHfP.d.mts} +1 -1
- package/dist/{version-sDSWOMn_.mjs → version-DdGhNoY5.mjs} +1 -1
- package/dist/{view-builder-BMmmF-Mf.d.mts → view-builder-CA5qUx85.d.mts} +2 -2
- package/dist/{visibility-syKffo3e.mjs → visibility-cMXbf9nY.mjs} +1 -1
- package/dist/{worker-DRQGyWAS.mjs → worker-B0xwfo9-.mjs} +1 -1
- package/dist/{worker-DzbPk2YI.mjs → worker-Cx1JDOB9.mjs} +1 -1
- package/dist/{workflow-D-yrAZW8.mjs → workflow-5yHn_Knq.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +48 -48
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/{workflow-transitions-D5RvMSnf.mjs → workflow-transitions-DH246j6E.mjs} +1 -1
- package/package.json +1 -1
- package/dist/artifact-_pN73_7c.mjs +0 -1
- package/dist/kind-registration-DggkrLkv.mjs +0 -1
- package/dist/model-Cn1IFEP8.mjs +0 -1
- package/dist/namespace-DFc1nkal.mjs +0 -1
- package/dist/packages-COqPg5TI.mjs +0 -1
- /package/dist/{ajv-IlnfOGAj.mjs → ajv-Dz-0DD7m.mjs} +0 -0
- /package/dist/{attach-error-DOlUtquX.mjs → attach-error-D5BWfaBO.mjs} +0 -0
- /package/dist/{capability-BQHyskJB.mjs → capability-BnQx1BWc.mjs} +0 -0
- /package/dist/{common-CylczUIW.mjs → common-Bta2ivrd.mjs} +0 -0
- /package/dist/{definitions-2T95Q-y6.mjs → definitions-CyFaNG_c.mjs} +0 -0
- /package/dist/{extension-namespace-CWfV3IiR.mjs → extension-namespace-AaHKv6tQ.mjs} +0 -0
- /package/dist/{facet-6tnSbjXc.mjs → facet-De-2AP_o.mjs} +0 -0
- /package/dist/{host-D7v3YlDG.mjs → host-CbaJg6D4.mjs} +0 -0
- /package/dist/{identity-CxMRRAXx.mjs → identity-B6RqbCn7.mjs} +0 -0
- /package/dist/{model-registry-BTjKBCCw.mjs → model-registry-DVTFd0RF.mjs} +0 -0
- /package/dist/{modes-Bo9Vv5c9.mjs → modes-Dc9_sSbr.mjs} +0 -0
- /package/dist/{namespace-DX3QsYpv.mjs → namespace-BZ7UQmW4.mjs} +0 -0
- /package/dist/{namespace-Dyxpur8_.mjs → namespace-BnNBM94X.mjs} +0 -0
- /package/dist/{namespace-DORNUF0_.mjs → namespace-DGi7tw_W.mjs} +0 -0
- /package/dist/{namespace-BCSJz417.mjs → namespace-KYIbWPvl.mjs} +0 -0
- /package/dist/{ownership-recovery-guard-CYA5CsiO.mjs → ownership-recovery-guard-BIB5uqgz.mjs} +0 -0
- /package/dist/{platform-BdLHWgVc.mjs → platform-BObC-WJA.mjs} +0 -0
- /package/dist/{providers-DGTA-lki.mjs → providers-BysYiNMO.mjs} +0 -0
- /package/dist/{reaction-aQJGWUWl.mjs → reaction-Cev6JNcb.mjs} +0 -0
- /package/dist/{schema-mXXJcaQT.mjs → schema-bfw9nz8B.mjs} +0 -0
- /package/dist/{schema-introspection-BsWP1vGC.mjs → schema-introspection-BTS7FZT_.mjs} +0 -0
- /package/dist/{schemas-HffXbw8C.mjs → schemas-A2hlgeNu.mjs} +0 -0
- /package/dist/{schemas-NYUz8K9Q.mjs → schemas-B3UNnzKG.mjs} +0 -0
- /package/dist/{schemas-7fHmNUQc.mjs → schemas-BEDq3Psz.mjs} +0 -0
- /package/dist/{schemas-MIYusvwn.mjs → schemas-mLjTSUvJ.mjs} +0 -0
- /package/dist/{semver-_h8-BJ8k.mjs → semver-ByPlHR3P.mjs} +0 -0
- /package/dist/{shared-schemas-CaL1iEk6.mjs → shared-schemas-CKsgVsGX.mjs} +0 -0
- /package/dist/{storage-namespace-definition-4UYuij1r.mjs → storage-namespace-definition-Ct9ohqU0.mjs} +0 -0
- /package/dist/{telemetry-BLYrkonr.mjs → telemetry-Be3u4I7b.mjs} +0 -0
- /package/dist/{timeout-d0dzIY3V.mjs → timeout-Bscg1B-y.mjs} +0 -0
- /package/dist/{ui-config-CsH94fwa.mjs → ui-config-Bl2Wbkr-.mjs} +0 -0
- /package/dist/{variant-BZ9UcJBi.mjs → variant-B5j5wR2p.mjs} +0 -0
- /package/dist/{window-registry-DQkv5wM9.mjs → window-registry-DWHz8TA5.mjs} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as AnyArtifactKindDefinition, dt as ArtifactLifecycleHookRegistration$1, ut as ArtifactLifecycleHookEvent } from "./index-BTluq4-E.mjs";
|
|
2
2
|
import { s as AdapterProviderAuth$1 } from "./adapter-binding-DhANVB-O.mjs";
|
|
3
3
|
import { i as ExtensionService$1, n as NodeExtensionContext$1, t as ExtensionContext$1 } from "./extension-context-Cpf_n5FH.mjs";
|
|
4
4
|
import { t as ExtensionAutomationTriggersContribution } from "./contribution-BfEEQ8YZ.mjs";
|
|
5
|
-
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-
|
|
5
|
+
import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-bYkXnLY2.mjs";
|
|
6
6
|
import { E as ClientDefinition$1, Q as VersionLiteral$1, et as VersionRange, f as ExtensionClientHookResponsesContribution } from "./hook-responses-CpEfxEmG.mjs";
|
|
7
7
|
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-VK1rERAp.mjs";
|
|
8
8
|
import { t as RequiredTimeoutConfig } from "./index-Ccaqmi0J.mjs";
|
|
9
|
-
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-
|
|
10
|
-
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-
|
|
9
|
+
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-BNKqcHfP.mjs";
|
|
10
|
+
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-D7IZQNhD.mjs";
|
|
11
11
|
import { l as FacetNamespaceDefinition } from "./index-DCHdW5g-.mjs";
|
|
12
12
|
import { t as ExtensionReactionsContribution } from "./index-BfzuauBt2.mjs";
|
|
13
|
-
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-
|
|
13
|
+
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-CA5qUx85.mjs";
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
|
|
16
16
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-
|
|
2
|
-
import { o as Message$1 } from "./index-
|
|
1
|
+
import { Hn as BranchKind$1, bn as SessionMessage$1 } from "./types-BNKqcHfP.mjs";
|
|
2
|
+
import { o as Message$1 } from "./index-D7IZQNhD.mjs";
|
|
3
3
|
import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-CsaZPU3n.mjs";
|
|
4
4
|
import * as _$zod from "zod";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -58,9 +58,9 @@ declare const StructuredOutputValidationErrorSchema: z.ZodObject<{
|
|
|
58
58
|
* - `enforced` – A structured-output enforcement handler produced conformant output.
|
|
59
59
|
*/
|
|
60
60
|
declare const StructuredOutputValidationStatusSchema: z.ZodEnum<{
|
|
61
|
+
failed: "failed";
|
|
61
62
|
passed: "passed";
|
|
62
63
|
enforced: "enforced";
|
|
63
|
-
failed: "failed";
|
|
64
64
|
}>;
|
|
65
65
|
/**
|
|
66
66
|
* Full validation result emitted after a turn completes when a
|
|
@@ -649,9 +649,9 @@ declare const WorkerSchemas$1: {
|
|
|
649
649
|
confidence: z.ZodOptional<z.ZodObject<{
|
|
650
650
|
level: z.ZodEnum<{
|
|
651
651
|
inferred: "inferred";
|
|
652
|
-
confirmed: "confirmed";
|
|
653
652
|
assumed: "assumed";
|
|
654
653
|
stated: "stated";
|
|
654
|
+
confirmed: "confirmed";
|
|
655
655
|
verified: "verified";
|
|
656
656
|
}>;
|
|
657
657
|
basis: z.ZodArray<z.ZodObject<{
|
|
@@ -1221,9 +1221,9 @@ declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker",
|
|
|
1221
1221
|
confidence: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1222
1222
|
level: _$zod.ZodEnum<{
|
|
1223
1223
|
inferred: "inferred";
|
|
1224
|
-
confirmed: "confirmed";
|
|
1225
1224
|
assumed: "assumed";
|
|
1226
1225
|
stated: "stated";
|
|
1226
|
+
confirmed: "confirmed";
|
|
1227
1227
|
verified: "verified";
|
|
1228
1228
|
}>;
|
|
1229
1229
|
basis: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -1716,9 +1716,9 @@ declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
|
|
|
1716
1716
|
confidence: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
1717
1717
|
level: _$zod.ZodEnum<{
|
|
1718
1718
|
inferred: "inferred";
|
|
1719
|
-
confirmed: "confirmed";
|
|
1720
1719
|
assumed: "assumed";
|
|
1721
1720
|
stated: "stated";
|
|
1721
|
+
confirmed: "confirmed";
|
|
1722
1722
|
verified: "verified";
|
|
1723
1723
|
}>;
|
|
1724
1724
|
basis: _$zod.ZodArray<_$zod.ZodObject<{
|
|
@@ -507,8 +507,8 @@ declare const ClientSchemas: {
|
|
|
507
507
|
machineId: z.ZodOptional<z.ZodString>;
|
|
508
508
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
509
509
|
fork: "fork";
|
|
510
|
-
resume: "resume";
|
|
511
510
|
fresh: "fresh";
|
|
511
|
+
resume: "resume";
|
|
512
512
|
clear: "clear";
|
|
513
513
|
compact: "compact";
|
|
514
514
|
}>>;
|
|
@@ -1487,8 +1487,8 @@ declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "
|
|
|
1487
1487
|
/** Zod schema for the client-reported session start mode. */
|
|
1488
1488
|
declare const ClientSessionStartModeSchema: z.ZodEnum<{
|
|
1489
1489
|
fork: "fork";
|
|
1490
|
-
resume: "resume";
|
|
1491
1490
|
fresh: "fresh";
|
|
1491
|
+
resume: "resume";
|
|
1492
1492
|
clear: "clear";
|
|
1493
1493
|
compact: "compact";
|
|
1494
1494
|
}>;
|
|
@@ -1506,8 +1506,8 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
|
|
|
1506
1506
|
machineId: z.ZodOptional<z.ZodString>;
|
|
1507
1507
|
startMode: z.ZodOptional<z.ZodEnum<{
|
|
1508
1508
|
fork: "fork";
|
|
1509
|
-
resume: "resume";
|
|
1510
1509
|
fresh: "fresh";
|
|
1510
|
+
resume: "resume";
|
|
1511
1511
|
clear: "clear";
|
|
1512
1512
|
compact: "compact";
|
|
1513
1513
|
}>>;
|
|
@@ -2077,8 +2077,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
|
|
|
2077
2077
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2078
2078
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2079
2079
|
fork: "fork";
|
|
2080
|
-
resume: "resume";
|
|
2081
2080
|
fresh: "fresh";
|
|
2081
|
+
resume: "resume";
|
|
2082
2082
|
clear: "clear";
|
|
2083
2083
|
compact: "compact";
|
|
2084
2084
|
}>>;
|
|
@@ -2717,8 +2717,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
2717
2717
|
machineId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
2718
2718
|
startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
|
|
2719
2719
|
fork: "fork";
|
|
2720
|
-
resume: "resume";
|
|
2721
2720
|
fresh: "fresh";
|
|
2721
|
+
resume: "resume";
|
|
2722
2722
|
clear: "clear";
|
|
2723
2723
|
compact: "compact";
|
|
2724
2724
|
}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as JsonObjectContractSchema } from "./json-value-BKUDMT7k.mjs";
|
|
2
2
|
import { o as ICapabilityProvider } from "./index-Du-eXjEN.mjs";
|
|
3
|
-
import { Qt as WorkerContributionManifest, fn as WorkflowWorkerConfig, un as WorkflowWorkerBusAuth } from "./index-
|
|
3
|
+
import { Qt as WorkerContributionManifest, fn as WorkflowWorkerConfig, un as WorkflowWorkerBusAuth } from "./index-BxJRljy-.mjs";
|
|
4
4
|
import { t as WorkerRuntimeInputs } from "./runtime-inputs-DeOea-ab.mjs";
|
|
5
5
|
import * as _$zod from "zod";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -27,10 +27,10 @@ type MakaioVariant = z.infer<typeof MakaioVariantSchema>;
|
|
|
27
27
|
*/
|
|
28
28
|
declare const VariantUpgradeStatusSchema: z.ZodEnum<{
|
|
29
29
|
error: "error";
|
|
30
|
-
complete: "complete";
|
|
31
30
|
progress: "progress";
|
|
32
31
|
downloading: "downloading";
|
|
33
32
|
applying: "applying";
|
|
33
|
+
complete: "complete";
|
|
34
34
|
}>;
|
|
35
35
|
/** Inferred TypeScript type for an upgrade status value. */
|
|
36
36
|
type VariantUpgradeStatus = z.infer<typeof VariantUpgradeStatusSchema>;
|
|
@@ -101,10 +101,10 @@ declare const VariantSchemas: {
|
|
|
101
101
|
upgradeProgress: z.ZodObject<{
|
|
102
102
|
status: z.ZodEnum<{
|
|
103
103
|
error: "error";
|
|
104
|
-
complete: "complete";
|
|
105
104
|
progress: "progress";
|
|
106
105
|
downloading: "downloading";
|
|
107
106
|
applying: "applying";
|
|
107
|
+
complete: "complete";
|
|
108
108
|
}>;
|
|
109
109
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
110
110
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -158,10 +158,10 @@ declare const VariantNamespace: _$_makaio_core0.BusNamespaceDefinition<"host:var
|
|
|
158
158
|
upgradeProgress: _$zod.ZodObject<{
|
|
159
159
|
status: _$zod.ZodEnum<{
|
|
160
160
|
error: "error";
|
|
161
|
-
complete: "complete";
|
|
162
161
|
progress: "progress";
|
|
163
162
|
downloading: "downloading";
|
|
164
163
|
applying: "applying";
|
|
164
|
+
complete: "complete";
|
|
165
165
|
}>;
|
|
166
166
|
percent: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
167
167
|
message: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -205,10 +205,10 @@ declare const VariantSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
|
|
|
205
205
|
upgradeProgress: _$zod.ZodObject<{
|
|
206
206
|
status: _$zod.ZodEnum<{
|
|
207
207
|
error: "error";
|
|
208
|
-
complete: "complete";
|
|
209
208
|
progress: "progress";
|
|
210
209
|
downloading: "downloading";
|
|
211
210
|
applying: "applying";
|
|
211
|
+
complete: "complete";
|
|
212
212
|
}>;
|
|
213
213
|
percent: _$zod.ZodOptional<_$zod.ZodNumber>;
|
|
214
214
|
message: _$zod.ZodOptional<_$zod.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"../../namespace-
|
|
1
|
+
import{n as e,t}from"../../namespace-D53UGrP6.mjs";import{i as n,n as r,r as i,t as a}from"../../schema-introspection-BTS7FZT_.mjs";const o=`__interactive__`,s={proceed:!0};function c(e){if(!e.bus)throw Error(`This command requires a running Makaio server.`);return e.bus}function l(e,t,n,r){return{name:e,description:t,schema:n,handler:r}}export{s as ALWAYS_PROCEED,t as CliNamespace,e as CliRpcSubjects,o as INTERACTIVE_SUBCOMMAND,l as defineCliSubcommand,r as getMeta,i as isBooleanSchema,n as isNumberSchema,c as requireBus,a as toCliArgManifests};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"../../namespace-
|
|
1
|
+
import{n as e,t}from"../../namespace-D53UGrP6.mjs";export{t as CliNamespace,e as CliRpcSubjects};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../schemas-
|
|
1
|
+
import{t as e}from"../../schemas-BEDq3Psz.mjs";export{e as CliSchemas};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../../extension-
|
|
1
|
+
import{n as e,r as t,t as n}from"../../extension-D9D8tJQY.mjs";export{n as ExtensionCoordinator,e as coalesceExtensionOverrides,t as filterEligibleExtensions};
|
package/dist/kernel/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../namespace-
|
|
1
|
+
import{n as e,r as t,t as n}from"../namespace-DGi7tw_W.mjs";import{n as r,t as i}from"../window-registry-DWHz8TA5.mjs";import"./window/index.mjs";import{n as a,r as o,t as s}from"../providers-BysYiNMO.mjs";import{a as c,i as l,n as u,o as d,r as f,t as p}from"../extension-D9D8tJQY.mjs";import{a as m,c as h,n as g,o as _,t as v}from"../extension-namespace-AaHKv6tQ.mjs";import"./observability/index.mjs";function y(e){let t=null;return()=>(t??=(async()=>{let t=[];for(let n of e)try{await n()}catch(e){t.push(e)}if(t.length>0)throw AggregateError(t,`Shutdown completed with ${t.length} of ${e.length} steps failing`)})(),t)}export{c as BootNamespace,d as BootSubjects,m as ComponentStateSchema,s as EphemeralIdentityProvider,p as ExtensionCoordinator,_ as ExtensionInfoSchema,v as ExtensionNamespace,g as ExtensionSubjects,n as KernelNamespace,t as KernelSchemas,e as KernelSubjects,o as MemoryStorageProvider,a as NoTransportProvider,i as STYLE_DEFAULTS,h as ServiceInfoSchema,l as ServiceSkipError,r as WindowRegistry,u as coalesceExtensionOverrides,y as createShutdownSequence,f as filterEligibleExtensions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../../namespace-
|
|
1
|
+
import{n as e,r as t,t as n}from"../../namespace-DGi7tw_W.mjs";export{n as KernelNamespace,t as KernelSchemas,e as KernelSubjects};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../extension-namespace-
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../extension-namespace-AaHKv6tQ.mjs";export{a as ComponentIdentitySchema,n as ComponentInfoSchema,e as ComponentStateSchema,i as ExtensionInfoSchema,s as ExtensionNamespace,r as ExtensionSubjects,o as ExtensionWarningEntrySchema,t as ServiceInfoSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../../providers-
|
|
1
|
+
import{n as e,r as t,t as n}from"../../providers-BysYiNMO.mjs";export{n as EphemeralIdentityProvider,t as MemoryStorageProvider,e as NoTransportProvider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"../../window-registry-
|
|
1
|
+
import{n as e,t}from"../../window-registry-DWHz8TA5.mjs";export{t as STYLE_DEFAULTS,e as WindowRegistry};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./json-value-DM-EjTC1.mjs";import{z as t}from"zod";function n(e){return r(e)?e:void 0}function r(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function i(e,t){return Object.keys(t).length===0?e:e?t:!1}function a(e,t){if(t===`#`)return e;if(!t.startsWith(`#/`))return;let r=e;for(let e of t.slice(2).split(`/`)){let t=n(r),i=e.replace(/~1/g,`/`).replace(/~0/g,`~`);if(!t||!Object.hasOwn(t,i))return;r=t[i]}return r}function o(e,t){let r=t.$ref;if(typeof r!=`string`)return;let o=a(e,r);if(typeof o==`boolean`){if(e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return o;let{$ref:n,...r}=t;return i(o,r)}let s=n(o);if(!s||e.$schema!==`https://json-schema.org/draft/2020-12/schema`)return s;let{$ref:c,...l}=t;return Object.keys(l).length===0?s:{...s,allOf:[l,...Array.isArray(s.allOf)?s.allOf:[]]}}function s(e,t){for(let[n,r]of Object.entries(t))e[n]=Object.hasOwn(e,n)?{allOf:[e[n],r]}:r}function c(e){return Array.isArray(e.required)?e.required.filter(e=>typeof e==`string`):[]}function l(e,t){let r=n(e.properties);if(!r||!Object.hasOwn(r,t))return;let i=r[t];return typeof i==`boolean`?i:n(i)}function u(e,t,i){if(typeof t.$ref==`string`){if(i.has(t.$ref))return;let n=o(e,t);return r(n)?u(e,n,new Set([...i,t.$ref])):void 0}if(!Array.isArray(t.allOf))return t;let{allOf:a,...l}=t,d={},f={},p=new Set;for(let t of[l,...a]){let r=n(t),a=r?u(e,r,i):void 0;if(!a||a.anyOf||a.oneOf)return;if(a.type!==void 0){if(d.type!==void 0&&d.type!==a.type)return;d.type=a.type}s(f,n(a.properties)??{});for(let e of c(a))p.add(e)}return{...d,properties:f,required:[...p]}}function d(e,t,n,r,i,a,s){if(a.has(n))return;let c=o(e,t);return typeof c==`boolean`?r.length===0?[c]:void 0:c?f(e,c,r,i,new Set([...a,n]),s):void 0}function f(e,t,r,i,a=new Set,o=!1){if(typeof t.$ref==`string`)return d(e,t,t.$ref,r,i,a,o);let s=Array.isArray(t.anyOf)?`anyOf`:`oneOf`,p=t[s];if(Array.isArray(p)){let{[s]:c,...l}=t,u=p.map(t=>{let s=n(t);if(s)return f(e,typeof s.$ref==`string`?{allOf:[l,s]}:{...s,allOf:[l,...Array.isArray(s.allOf)?s.allOf:[]]},r,i,a,o)});return u.every(e=>e!==void 0)?u.flatMap(e=>e??[]):void 0}if(Array.isArray(t.allOf)){let n=u(e,t,a);return n?f(e,n,r,i,a,o):void 0}if(r.length===0)return[t];if(t.type!==`object`&&!(t.type===void 0&&o))return;let[m,...h]=r;if(!m||i&&!c(t).includes(m))return;let g=l(t,m);return typeof g==`boolean`?h.length===0?[g]:void 0:g?f(e,g,h,i):void 0}function p(e,t){return f(e,e,t.split(`.`),!1,new Set,!0)}function m(e,t){return p(e,t)!==void 0}function h(e){let t=[],r=(e,r)=>{let i=n(e);i&&t.push({node:i,path:r})};for(let t of[`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`])for(let[i,a]of Object.entries(n(e[t])??{}))r(a,[t,i]);for(let t of[`allOf`,`anyOf`,`oneOf`,`prefixItems`,`items`]){let n=e[t];Array.isArray(n)&&n.forEach((e,n)=>r(e,[t,n]))}for(let t of[`items`,`additionalItems`,`additionalProperties`,`unevaluatedItems`,`unevaluatedProperties`,`propertyNames`,`contains`,`not`,`if`,`then`,`else`,`contentSchema`])r(e[t],[t]);return t}function g(e,t=[`dataSchema`]){if(Array.isArray(e.prefixItems)||Array.isArray(e.items))throw Error(`Unsupported tuple serialization at ${t.join(`.`)}: use an array schema or an explicit JSON Schema registration`);for(let n of h(e))g(n.node,[...t,...n.path])}function _(e,t,n=new Set){if(t.additionalProperties===!1)return!0;if(typeof t.$ref==`string`&&!n.has(t.$ref)){let i=o(e,t);if(i===void 0||r(i)&&_(e,i,new Set([...n,t.$ref])))return!0}return h(t).some(t=>_(e,t.node,n))}function v(e,t,r,i){if(Object.hasOwn(t,`$ref`)&&typeof t.$ref!=`string`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Schema reference must be a string`}),typeof t.$ref==`string`&&!t.$ref.startsWith(`#`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Only fragment schema references are supported; absolute and document-relative references are outside the artifact registration profile`}),Object.hasOwn(t,`$anchor`)&&r.addIssue({code:`custom`,path:[...i,`$anchor`],message:`Named schema anchors are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&t.$ref.startsWith(`#`)&&t.$ref.length>1&&!t.$ref.startsWith(`#/`)&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Named schema references are not supported; use local JSON Pointer references`}),typeof t.$ref==`string`&&(t.$ref===`#`||t.$ref.startsWith(`#/`))){let o=a(e,t.$ref);!n(o)&&typeof o!=`boolean`&&r.addIssue({code:`custom`,path:[...i,`$ref`],message:`Fragment schema reference must resolve to an existing object or boolean schema`})}}function y(e,t,n,r=[`dataSchema`]){Object.hasOwn(t,`$async`)&&t.$async!==!1&&n.addIssue({code:`custom`,path:[...r,`$async`],message:`Asynchronous artifact schemas are not supported`}),v(e,t,n,r);for(let e of[`anyOf`,`oneOf`]){let i=t[e];Array.isArray(i)&&i.some(e=>typeof e==`boolean`)&&n.addIssue({code:`custom`,path:[...r,e],message:`Unsupported boolean union alternative: use object schema declarations`})}Array.isArray(t.allOf)&&(_(e,t)||!u(e,t,new Set))&&n.addIssue({code:`custom`,path:[...r,`allOf`],message:`Unsupported intersection: use open compatible conjuncts or a single closed object schema`});for(let i of h(t))y(e,i.node,n,[...r,...i.path])}function b(e,t){y(e.dataSchema,e.dataSchema,t);let n=f(e.dataSchema,e.dataSchema,e.titlePath.split(`.`),!0,new Set,!0);(!n?.length||n.some(e=>!r(e)||e.type!==`string`))&&t.addIssue({code:`custom`,path:[`titlePath`],message:`titlePath must select a required string in every data schema variant`});let i=[...(e.indexedFields??[]).map((e,t)=>({path:e,location:[`indexedFields`,t]})),...(e.searchableFields??[]).map((e,t)=>({path:e,location:[`searchableFields`,t]})),...(e.uniqueness??[]).flatMap((e,t)=>e.by.flatMap((e,n)=>e.kind===`data`?[{path:e.path,location:[`uniqueness`,t,`by`,n,`path`]}]:[])),...Object.entries(e.views??{}).flatMap(([e,t])=>t.fields.map((t,n)=>({path:t,location:[`views`,e,`fields`,n]})))];for(let{path:n,location:r}of i)m(e.dataSchema,n)||t.addIssue({code:`custom`,path:r,message:`Data path ${n} must select a declared field`})}function x(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n||Array.isArray(n)||!Object.hasOwn(n,e))throw Error(`Artifact title is missing at ${t}`);n=Reflect.get(n,e)}if(typeof n!=`string`||n.trim().length===0)throw Error(`Artifact title at ${t} must be a nonblank string`);return n}const S=t.number().int().positive(),C=t.enum([`knowledge`,`commitment`,`interaction`,`record`]),w=t.string().regex(/^[A-Za-z_$][\w$-]*(?:\.[A-Za-z_$][\w$-]*)*$/),T=t.strictObject({fields:t.array(w).min(1)}),E=new Set([`full`]),D={knowledge:[`valid`,`retired`],commitment:[`proposed`,`decided`,`fulfilled`,`revoked`],interaction:[`open`,`resolved`,`closed-without-resolution`],record:[]},O=t.enum([...D.knowledge,...D.commitment,...D.interaction]),k=t.strictObject({relationType:t.string().trim().min(1),targetKinds:t.array(t.string().trim().min(1)).min(1).optional(),minItems:t.number().int().nonnegative(),maxItems:t.number().int().nonnegative().optional()}).refine(e=>e.maxItems===void 0||e.maxItems>=e.minItems,{path:[`maxItems`],message:`maxItems must be at least minItems`}),A=t.discriminatedUnion(`kind`,[t.strictObject({kind:t.literal(`data`),path:w}),t.strictObject({kind:t.literal(`relation-target`),relationType:t.string().trim().min(1)})]),j=t.strictObject({by:t.array(A).min(1),lifecycleStates:t.array(O).min(1).optional()}),M=t.strictObject({minItems:t.number().int().nonnegative()}),N=t.enum([`http://json-schema.org/draft-07/schema#`,`https://json-schema.org/draft/2020-12/schema`]).optional(),P=t.strictObject({kind:t.string().trim().min(1),description:t.string().trim().min(1),schemaVersion:S,category:C,dataSchema:e,titlePath:w,relations:t.array(k).optional(),uniqueness:t.array(j).optional(),evidenceRequirements:M.optional(),indexedFields:t.array(w).optional(),searchableFields:t.array(w).optional(),views:t.record(t.string().trim().min(1),T).optional()}).superRefine((e,t)=>{N.safeParse(e.dataSchema.$schema).success||t.addIssue({code:`custom`,path:[`dataSchema`,`$schema`],message:`Unsupported data schema dialect: omit $schema for draft-7 or declare the supported draft-7 or 2020-12 URI`});let n=D[e.category];e.uniqueness?.forEach((r,i)=>{r.lifecycleStates?.some(e=>!n.includes(e))&&t.addIssue({code:`custom`,path:[`uniqueness`,i,`lifecycleStates`],message:`Lifecycle conditions are incompatible with category ${e.category}`})}),Object.keys(e.views??{}).forEach(e=>{E.has(e)&&t.addIssue({code:`custom`,path:[`views`,e],message:`Artifact kind view ${e} is reserved for the generic complete-payload view`})}),b(e,t)});export{P as a,k as c,A as d,g as f,M as i,S as l,x as m,C as n,T as o,m as p,w as r,O as s,D as t,j as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{C as n}from"./schemas-
|
|
1
|
+
import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{C as n}from"./schemas-NKlV5jqJ.mjs";import{z as r}from"zod";import{createBusNamespace as i}from"@makaio/framework/core";const a=r.enum([`link`,`summary`,`full`]),o=r.object({artifactId:r.string().min(1).optional(),url:r.string().min(1).optional(),label:r.string().min(1)}),s=r.object({id:r.string().min(1),kind:r.string().min(1),revision:r.string().min(1),status:r.string().min(1).optional()}),c=r.object({breadcrumbs:r.array(o),related:r.array(o)}),l=r.object({dashboard:r.string().min(1).optional(),materialized:r.string().min(1).optional()}),u=r.object({type:r.literal(`summary`),title:r.string().min(1),text:r.string().min(1)}),d=r.object({type:r.literal(`properties`),title:r.string().min(1),rows:r.array(r.object({label:r.string().min(1),value:r.string()}))}),f=r.object({type:r.literal(`table`),title:r.string().min(1),columns:r.array(r.string().min(1)),rows:r.array(r.object({cells:r.array(r.string()),link:o.optional()}))}),p=r.object({type:r.literal(`relations`),title:r.string().min(1),groups:r.array(r.object({type:r.string().min(1),items:r.array(o)}))}),m=r.object({type:r.literal(`evidence`),title:r.string().min(1),items:r.array(r.object({kind:r.string().min(1),id:r.string().min(1),locator:r.string().min(1).optional()}))}),h=r.object({type:r.literal(`raw`),title:r.string().min(1),json:t}),g=r.object({type:r.literal(`code`),title:r.string().min(1),language:r.string().min(1),content:r.string()}),_=r.object({type:r.literal(`diagram`),title:r.string().min(1),notation:r.literal(`mermaid`),source:r.string().min(1)}),v=r.discriminatedUnion(`type`,[u,d,f,p,m,h,g,_]),y=r.object({title:r.string().min(1),artifact:s,navigation:c,sections:r.array(v),links:l}),b=e,x=r.object({level:a,params:b.optional()}),S=r.object({kind:r.literal(`entry`),via:r.string().min(1).optional(),collection:r.string().min(1).optional()});function C(e){return(t,n)=>{t.via!==void 0==(t.collection!==void 0)&&n.addIssue({code:r.ZodIssueCode.custom,message:`Entry ${e} must have exactly one of via or collection`})}}const w=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1),as:a.optional()}),S.extend({title:r.string().min(1).optional(),hostRelation:r.string().min(1).optional()}).superRefine(C(`affordance`))]),T=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`own-view`)}),r.object({kind:r.literal(`inline`),hostRelation:r.string().min(1)}),S.superRefine(C(`request`))]);function E(e){return e}const D=r.enum([`title`,`summary`]),O=r.discriminatedUnion(`kind`,[r.object({kind:r.literal(`label`),prefix:r.string().min(1).optional()}),r.object({kind:r.literal(`field`),name:r.string().min(1),fieldId:r.string().min(1).optional()}),r.object({kind:r.literal(`issue-type`),name:r.string().min(1),typeId:r.string().min(1).optional()}),r.object({kind:r.literal(`body-fragment`),slot:r.string().min(1)}),r.object({kind:r.literal(`comment`),template:r.string().min(1)})]),k=r.object({id:r.string().min(1),provider:r.string().min(1),namespace:r.string().min(1),target:O,appliesTo:r.array(r.enum([`workpiece`,`artifact`,`surface`])).min(1),valueMapping:r.record(r.string(),r.string()).optional(),description:r.string().min(1).optional(),params:e.optional()}),A=r.enum([`status`,`workflow`,`priority`]),j=r.object({path:r.string().min(1),semantic:A.optional(),fromLevel:a.optional(),viewRole:D.optional()}),M=r.object({mode:r.enum([`none`,`surface`,`comment`]),defaultRole:r.enum([`workpiece`,`artifact`]).optional(),semanticEvents:r.array(r.enum([`created`,`revised`,`status-changed`,`observation-added`])).optional(),projectedFields:r.array(j).optional(),affordances:r.array(w).optional()}).superRefine((e,t)=>{if(!e.projectedFields)return;let n=0,i=0;for(let t of e.projectedFields)t.viewRole===`title`&&n++,t.viewRole===`summary`&&i++;n>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: title`}),i>1&&t.addIssue({code:r.ZodIssueCode.custom,path:[`projectedFields`],message:`At most one projected field may declare viewRole: summary`})}),N=r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),externalUrl:r.string().optional(),surfaceRole:r.enum([`workpiece`,`artifact`]),lastSyncedRevision:r.string().optional(),metadata:r.record(r.string(),r.unknown()).optional()}),P=x.extend({ref:n,affordance:T}),F=r.discriminatedUnion(`status`,[r.object({status:r.literal(`ok`),view:y,builderVersion:r.number().int().positive(),sourceRevision:r.string().min(1)}),r.object({status:r.literal(`artifact-not-found`),view:r.null()}),r.object({status:r.literal(`not-rendered`),view:r.null()})]),I={"surfaceBinding.register":{request:k,response:r.object({registered:r.boolean()})},"surfaceBinding.list":{request:r.object({id:r.string().min(1).optional(),provider:r.string().min(1).optional(),namespace:r.string().min(1).optional()}),response:r.object({bindings:r.array(k)})},"surfaceBinding.changed":r.object({id:r.string().min(1),provider:r.string().min(1)}),"ref.changed":r.object({artifactId:r.string().min(1),provider:r.string().min(1),externalId:r.string().min(1),operation:r.enum([`upserted`,`deleted`]),origin:r.enum([`factory`,`external`]).optional()}),"capability.resolved":r.object({provider:r.string().min(1),surface:r.string().min(1),capabilities:r.record(r.string().min(1),r.boolean()),degraded:r.boolean()}),"artifact.view.resolve":{request:P,response:F}},L=i(`materialization`,I),R=L.subjects;function z(e){return{id:e.id,toRegistration:()=>({id:e.id,provider:e.provider,namespace:e.namespace,target:structuredClone(e.target),appliesTo:[...e.appliesTo],...e.valueMapping===void 0?{}:{valueMapping:{...e.valueMapping}},...e.description===void 0?{}:{description:e.description},...e.params===void 0?{}:{params:structuredClone(e.params)}})}}export{v as A,a as C,d as D,c as E,l as M,f as N,h as O,s as S,y as T,x as _,I as a,_ as b,M as c,D as d,k as f,b as g,T as h,L as i,u as j,p as k,j as l,w as m,P as n,R as o,O as p,F as r,N as s,z as t,A as u,E as v,o as w,m as x,g as y};
|