@makaio/framework 1.0.0-dev-1789138982585 → 1.0.0-dev-1789160791094

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.
Files changed (53) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-B-PQO_TB.mjs +1 -0
  3. package/dist/bus/index.d.mts +41 -1
  4. package/dist/bus/index.mjs +1 -8
  5. package/dist/bus-DU_7GM0J.mjs +9 -0
  6. package/dist/contracts/artifact/index.d.mts +2 -2
  7. package/dist/contracts/artifact/index.mjs +1 -1
  8. package/dist/contracts/capabilities/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/extension/index.d.mts +2 -2
  11. package/dist/contracts/index.d.mts +13 -13
  12. package/dist/contracts/index.mjs +1 -1
  13. package/dist/contracts/worker/index.d.mts +1 -1
  14. package/dist/contracts/worker/index.mjs +1 -1
  15. package/dist/contracts/workflow/index.d.mts +1 -1
  16. package/dist/contracts/workflow/index.mjs +1 -1
  17. package/dist/{index-ohUp4w1P.d.mts → index-Bt9YxVg5.d.mts} +52 -52
  18. package/dist/{index-OLGGmjgd.d.mts → index-CU9xmTkP.d.mts} +1 -1
  19. package/dist/{index-BXPMLk9W.d.mts → index-CdPWA8co.d.mts} +23 -23
  20. package/dist/{index-BGg5g9cK.d.mts → index-DN2Odrnz.d.mts} +183 -9
  21. package/dist/{index-H2NL2OwF2.d.mts → index-EJFdPYs32.d.mts} +3 -3
  22. package/dist/{index-it0mr4vE.d.mts → index-KmZLl8Ne.d.mts} +1 -1
  23. package/dist/{index-DcfuHw2O.d.mts → index-WhgPewY4.d.mts} +6 -6
  24. package/dist/{namespace-BHkEHrUG.d.mts → namespace-DyWNxLt1.d.mts} +6 -6
  25. package/dist/package.json +1 -1
  26. package/dist/{schemas-COQUToGQ.d.mts → schemas-BGcAiQE0.d.mts} +4 -4
  27. package/dist/{schemas-BhOepTL5.d.mts → schemas-Dt1YwXLN.d.mts} +2 -2
  28. package/dist/{schemas-DYtUc2WA.d.mts → schemas-FkLOBJgq.d.mts} +4 -4
  29. package/dist/{schemas-DNvDh0eE2.d.mts → schemas-Fn-eeay32.d.mts} +7 -7
  30. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  31. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  32. package/dist/services/index.d.mts +15 -15
  33. package/dist/services/preferences/index.d.mts +2 -2
  34. package/dist/services/preferences/schemas.d.mts +1 -1
  35. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  36. package/dist/services/provider-context/index.d.mts +1 -1
  37. package/dist/services/session/index.d.mts +1 -1
  38. package/dist/services/settings/namespace.d.mts +2 -2
  39. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  40. package/dist/services/subagent-template/index.d.mts +1 -1
  41. package/dist/services/subagent-template/schemas.d.mts +1 -1
  42. package/dist/{storage-namespace-DITavhRL.d.mts → storage-namespace-BUSNKZLw.d.mts} +10 -10
  43. package/dist/ui-kernel/index.d.mts +4 -4
  44. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  45. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  46. package/dist/{worker-CaRR3V7o.mjs → worker-CrYtBGy1.mjs} +1 -1
  47. package/dist/workflow-engine/index.d.mts +41 -41
  48. package/dist/{workflow-BD7Pw5JY.mjs → workflow-mCL6Xv-J.mjs} +1 -1
  49. package/package.json +1 -1
  50. package/dist/artifact-BPK_ywFP.mjs +0 -1
  51. package/dist/bus-CobBUqjo.mjs +0 -2
  52. package/dist/bus-Uy9C3TBM.mjs +0 -1
  53. package/dist/scoped-bus-DwVrmi_1.mjs +0 -1
@@ -1,4 +1,4 @@
1
- import { C as ArtifactScope, K as ArtifactKindRegistration$1, V as ArtifactCategory, X as ArtifactLifecycleState, _ as ArtifactRelationTarget, it as ArtifactRef$1, p as ArtifactRelation, s as ArtifactObservation$1, t as ArtifactActor, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-CXCdmM5K.mjs";
1
+ import { C as ArtifactScope, K as ArtifactKindRegistration$1, V as ArtifactCategory, X as ArtifactLifecycleState, _ as ArtifactRelationTarget, it as ArtifactRef$1, p as ArtifactRelation, s as ArtifactObservation$1, t as ArtifactActor, tt as ArtifactUniquenessRule, x as ArtifactRevision$1, y as ArtifactRepresentations } from "./schemas-CXCdmM5K.mjs";
2
2
  import { l as JsonValue$1 } from "./json-value-DyMQrwGz.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -1800,6 +1800,7 @@ declare const ArtifactSchemas$1: {
1800
1800
  NO_MATCH: "NO_MATCH";
1801
1801
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
1802
1802
  NO_CHANGE: "NO_CHANGE";
1803
+ STORE_REJECTED: "STORE_REJECTED";
1803
1804
  HOST_FAILED: "HOST_FAILED";
1804
1805
  }>;
1805
1806
  message: z.ZodString;
@@ -4516,6 +4517,7 @@ declare const ArtifactNamespace: _$_makaio_core0.BusNamespaceDefinition<"artifac
4516
4517
  NO_MATCH: "NO_MATCH";
4517
4518
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
4518
4519
  NO_CHANGE: "NO_CHANGE";
4520
+ STORE_REJECTED: "STORE_REJECTED";
4519
4521
  HOST_FAILED: "HOST_FAILED";
4520
4522
  }>;
4521
4523
  message: z.ZodString;
@@ -7253,6 +7255,7 @@ declare const ArtifactSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
7253
7255
  NO_MATCH: "NO_MATCH";
7254
7256
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
7255
7257
  NO_CHANGE: "NO_CHANGE";
7258
+ STORE_REJECTED: "STORE_REJECTED";
7256
7259
  HOST_FAILED: "HOST_FAILED";
7257
7260
  }>;
7258
7261
  message: z.ZodString;
@@ -9380,7 +9383,7 @@ declare const ArtifactPatchRequestSchema: z.ZodObject<{
9380
9383
  }, z.core.$strict>>>;
9381
9384
  }, z.core.$strict>;
9382
9385
  /** Stable failure classifications for a patch request. */
9383
- declare const ARTIFACT_PATCH_ERROR_CODES: readonly ["ARTIFACT_NOT_FOUND", "BASE_REVISION_CONFLICT", "KIND_NOT_REGISTERED", "SCHEMA_VERSION_MISMATCH", "PATH_NOT_DECLARED", "PATH_NOT_RESOLVABLE", "TARGET_NOT_A_COLLECTION", "UNSUPPORTED_TARGET", "NO_MATCH", "SCHEMA_VALIDATION_FAILED", "NO_CHANGE", "HOST_FAILED"];
9386
+ declare const ARTIFACT_PATCH_ERROR_CODES: readonly ["ARTIFACT_NOT_FOUND", "BASE_REVISION_CONFLICT", "KIND_NOT_REGISTERED", "SCHEMA_VERSION_MISMATCH", "PATH_NOT_DECLARED", "PATH_NOT_RESOLVABLE", "TARGET_NOT_A_COLLECTION", "UNSUPPORTED_TARGET", "NO_MATCH", "SCHEMA_VALIDATION_FAILED", "NO_CHANGE", "STORE_REJECTED", "HOST_FAILED"];
9384
9387
  /** One reason the patched result was rejected, addressed within `data`. */
9385
9388
  declare const ArtifactPatchIssueSchema: z.ZodObject<{
9386
9389
  path: z.ZodString;
@@ -9414,6 +9417,7 @@ declare const ArtifactPatchErrorSchema: z.ZodObject<{
9414
9417
  NO_MATCH: "NO_MATCH";
9415
9418
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9416
9419
  NO_CHANGE: "NO_CHANGE";
9420
+ STORE_REJECTED: "STORE_REJECTED";
9417
9421
  HOST_FAILED: "HOST_FAILED";
9418
9422
  }>;
9419
9423
  message: z.ZodString;
@@ -9576,8 +9580,9 @@ declare const ArtifactPatchSuccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9576
9580
  * A rejected patch.
9577
9581
  *
9578
9582
  * A rejection by the engine — an undeclared path, an unmatched filter, a result
9579
- * the kind schema refuses — and a `BASE_REVISION_CONFLICT`, whether the stale
9580
- * base revision was caught before the write or the store refused it, all
9583
+ * the kind schema refuses — a `BASE_REVISION_CONFLICT`, whether the stale
9584
+ * base revision was caught before the write or the store refused it, and a
9585
+ * `STORE_REJECTED`, the host's own refusal before writing anything, all
9581
9586
  * guarantee that nothing was persisted. `HOST_FAILED` does not: a host that
9582
9587
  * failed while persisting may have committed the write before the failure
9583
9588
  * surfaced, so the outcome is unknown and the caller must re-read before
@@ -9598,6 +9603,7 @@ declare const ArtifactPatchFailureSchema: z.ZodObject<{
9598
9603
  NO_MATCH: "NO_MATCH";
9599
9604
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9600
9605
  NO_CHANGE: "NO_CHANGE";
9606
+ STORE_REJECTED: "STORE_REJECTED";
9601
9607
  HOST_FAILED: "HOST_FAILED";
9602
9608
  }>;
9603
9609
  message: z.ZodString;
@@ -9692,6 +9698,7 @@ declare const ArtifactPatchResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminat
9692
9698
  NO_MATCH: "NO_MATCH";
9693
9699
  SCHEMA_VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED";
9694
9700
  NO_CHANGE: "NO_CHANGE";
9701
+ STORE_REJECTED: "STORE_REJECTED";
9695
9702
  HOST_FAILED: "HOST_FAILED";
9696
9703
  }>;
9697
9704
  message: z.ZodString;
@@ -9749,10 +9756,11 @@ declare const ArtifactLifecycleIdentitySchema: z.ZodObject<{
9749
9756
  /** Monotonic administration version, independent of the content revision. */
9750
9757
  declare const ArtifactLifecycleVersionSchema: z.ZodNumber;
9751
9758
  /**
9752
- * Current administration state; each category admits only its own states. Version 1 is
9753
- * reserved for the category initial state because every transition increments the version.
9754
- * The reverse rule (initial state implies version 1) is deliberately not enforced: it only
9755
- * holds while no transition re-enters an initial state, a property of the current matrix.
9759
+ * Current administration state; each category admits only its own states. Version 1 implies
9760
+ * the category initial state (every transition increments the version, so only the creation
9761
+ * entry can be version 1). The converse does not hold: a `knowledge` artifact retired and
9762
+ * then reinstated re-enters `valid` at a version greater than 1, so the reverse rule is
9763
+ * deliberately not enforced.
9756
9764
  */
9757
9765
  declare const ArtifactLifecycleSnapshotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9758
9766
  category: z.ZodLiteral<"knowledge">;
@@ -11397,4 +11405,170 @@ type ArtifactLifecycleFailure = z.infer<typeof ArtifactLifecycleFailureSchema>;
11397
11405
  /** Supplemental reaction input following a rejected valid transition request. */
11398
11406
  type ArtifactLifecycleRejectedPayload = z.infer<typeof ArtifactLifecycleRejectedPayloadSchema>;
11399
11407
  //#endregion
11400
- export { ArtifactPatchErrorSchema as $, EvidenceResolveRequestSchema as $n, ArtifactResolveResponse as $t, ArtifactLifecycleSituation as A, compileArtifactDataChecker as An, ArtifactCreateRequest as At, ArtifactLifecycleVersionSchema as B, ArtifactDraftPatch as Bn, ArtifactNamespace as Bt, ArtifactLifecycleHistoryEntry as C, ArtifactContextRenderHintSchema as Cn, artifactPatchSegment as Ct, ArtifactLifecycleInitializedEntrySchema as D, ArtifactDataChecker as Dn, inspectArtifactDataLocation as Dt, ArtifactLifecycleInitializedEntry as E, ArtifactDataCheck as En, ArtifactSchemaFragment as Et, ArtifactLifecycleTransitionCommandSchema as F, ArtifactOf as Fn, ArtifactKindChangedPayload as Ft, ARTIFACT_PATCH_OPERATORS as G, ArtifactLifecycleSemanticEvent as Gn, ArtifactRelationAddedPayload as Gt, initialArtifactLifecycle as H, ArtifactLifecycleHookDefinition as Hn, ArtifactPatchSubjectRequest as Ht, ArtifactLifecycleTransitionIntent as I, defineArtifactKind as In, ArtifactKindListRequest as It, ArtifactPatchDocument as J, defineArtifactLifecycleHooks as Jn, ArtifactRelationTypeRegisterRequest as Jt, ArtifactPatchArrayFilter as K, BeforeArtifactHookContext as Kn, ArtifactRelationTypeListRequest as Kt, ArtifactLifecycleTransitionIntentSchema as L, AfterArtifactHookContext as Ln, ArtifactKindListResponse as Lt, ArtifactLifecycleSnapshot as M, AnyArtifactKindDefinition as Mn, ArtifactCreatedPayload as Mt, ArtifactLifecycleSnapshotSchema as N, ArtifactDataOf as Nn, ArtifactEvidenceResolveRequest as Nt, ArtifactLifecycleRejection as O, ArtifactDataIssue as On, isArtifactDataPathDeclared as Ot, ArtifactLifecycleTransitionCommand as P, ArtifactKindDefinition as Pn, ArtifactEvidenceResolveResponse$1 as Pt, ArtifactPatchErrorCode as Q, EvidenceResolveRequest as Qn, ArtifactResolveRequest as Qt, ArtifactLifecycleTransitionedEntry as R, AfterArtifactHookRegistration as Rn, ArtifactKindRegisterRequest as Rt, ArtifactLifecycleError as S, ArtifactContextRenderHint as Sn, artifactPatchPathFilterNames as St, ArtifactLifecycleIdentitySchema as T, ArtifactContextSelectorSchema as Tn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Tt, isArtifactLifecycleTransitionAllowed as U, ArtifactLifecycleHookEvent as Un, ArtifactPatchSubjectResponse as Ut, advanceArtifactLifecycle as V, ArtifactHookFilter as Vn, ArtifactObservationAddedPayload as Vt, ARTIFACT_PATCH_ERROR_CODES as W, ArtifactLifecycleHookRegistration$1 as Wn, ArtifactQueryResponse as Wt, ArtifactPatchDryRunSchema as X, EvidenceOccurrenceExtractionOptions as Xn, ArtifactResolveContextRequest as Xt, ArtifactPatchDocumentSchema as Y, EvidenceOccurrence as Yn, ArtifactRelationTypeRegisterResponse as Yt, ArtifactPatchError as Z, extractEvidenceOccurrences as Zn, ArtifactResolveContextResponse as Zt, ArtifactLifecycleTransitionResponseSchema as _, ResolvedArtifactContextWireSchema as _n, ArtifactPatchSuccessSchema as _t, ArtifactLifecycleGetRequest as a, ArtifactSubjects$1 as an, EvidenceValueSchema$1 as ar, ArtifactPatchMigrationSchema as at, ArtifactLifecycleCurrent as b, ArtifactContextRelationSelector as bn, artifactPatchFilterName as bt, ArtifactLifecycleGetResponseSchema as c, ArtifactContextRootNode as cn, ArtifactPatchOperator as ct, ArtifactLifecycleHistoryResponse as d, UnresolvedArtifactContextNode as dn, ArtifactPatchRequest as dt, ArtifactReviseRequest as en, EvidenceResolveResponse as er, ArtifactPatchFailureSchema as et, ArtifactLifecycleHistoryResponseSchema as f, ArtifactContextRefEntry as fn, ArtifactPatchRequestSchema as ft, ArtifactLifecycleTransitionResponse as g, ResolvedArtifactContextWire$1 as gn, ArtifactPatchSuccess as gt, ArtifactLifecycleSchemas as h, ArtifactContextUnresolvedReasonSchema as hn, ArtifactPatchSegment as ht, ArtifactLifecycleFailureSchema as i, ArtifactStatusChangedPayload as in, EvidenceValue$1 as ir, ArtifactPatchMigration as it, ArtifactLifecycleSituationSchema as j, compileArtifactDataSchema as jn, ArtifactCreateResponse as jt, ArtifactLifecycleRejectionSchema as k, ArtifactDataValidator as kn, readArtifactTitle as kt, ArtifactLifecycleHistoryRequest as l, ArtifactContextTree as ln, ArtifactPatchPathSchema as lt, ArtifactLifecycleRejectedPayloadSchema as m, ArtifactContextUnresolvedReason as mn, ArtifactPatchResponseSchema as mt, ArtifactLifecycleCommittedPayloadSchema as n, ArtifactRevisedPayload as nn, ARTIFACT_VALUE_TYPE_KEYWORD as nr, ArtifactPatchIssue as nt, ArtifactLifecycleGetRequestSchema as o, hydrateArtifactContextTree as on, ArtifactPatchOperationResult as ot, ArtifactLifecycleRejectedPayload as p, ArtifactContextRefEntrySchema as pn, ArtifactPatchResponse as pt, ArtifactPatchArrayFilterSchema as q, BeforeArtifactHookRegistration as qn, ArtifactRelationTypeListResponse as qt, ArtifactLifecycleFailure as r, ArtifactSchemas$1 as rn, EVIDENCE_VALUE_TYPE as rr, ArtifactPatchIssueSchema as rt, ArtifactLifecycleGetResponse as s, ArtifactContextNode as sn, ArtifactPatchOperationResultSchema as st, ArtifactLifecycleCommittedPayload as t, ArtifactReviseResponse as tn, EvidenceResolveResponseSchema as tr, ArtifactPatchInstruction as tt, ArtifactLifecycleHistoryRequestSchema as u, ResolvedArtifactContextNode as un, ArtifactPatchPersistedSchema as ut, toArtifactLifecycleFailure as v, ARTIFACT_CONTEXT_RENDER_HINTS as vn, ArtifactPatchTarget as vt, ArtifactLifecycleHistoryEntrySchema as w, ArtifactContextSelector$1 as wn, artifactPatchSegments as wt, ArtifactLifecycleCurrentSchema as x, ArtifactContextRelationSelectorSchema as xn, artifactPatchInstructions as xt, ARTIFACT_LIFECYCLE_REJECTED_CODE as y, ArtifactContextKnownRenderHint as yn, ArtifactPatchTargetSchema as yt, ArtifactLifecycleTransitionedEntrySchema as z, ArtifactDraft as zn, ArtifactKindRegisterResponse as zt };
11408
+ //#region core/contracts/src/artifact/relation-target-identity.d.ts
11409
+ /**
11410
+ * Pin-less identity of a relation target.
11411
+ *
11412
+ * The schema is derived from the canonical ref schemas so validation cannot
11413
+ * drift from the definitions of what constitutes a valid artifact or entity
11414
+ * reference: an `artifact` target is identified by its kind and stable id
11415
+ * only (the mutable revision pin is omitted), and an `entity` target is
11416
+ * identified by its entity type and id.
11417
+ *
11418
+ * Local and evidence targets carry no comparable stable identity and are
11419
+ * therefore excluded from this union.
11420
+ */
11421
+ declare const ArtifactRelationTargetIdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11422
+ id: z.ZodString;
11423
+ kind: z.ZodString;
11424
+ refClass: z.ZodLiteral<"artifact">;
11425
+ }, z.core.$strict>, z.ZodObject<{
11426
+ refClass: z.ZodLiteral<"entity">;
11427
+ entityType: z.ZodString;
11428
+ id: z.ZodString;
11429
+ }, z.core.$strict>], "refClass">;
11430
+ /**
11431
+ * Pin-less identity of a relation target.
11432
+ * @see {@link ArtifactRelationTargetIdentitySchema}
11433
+ */
11434
+ type ArtifactRelationTargetIdentity = z.infer<typeof ArtifactRelationTargetIdentitySchema>;
11435
+ /**
11436
+ * Strip the revision pin from an artifact target and keep an entity target as
11437
+ * is, producing the comparable pin-less identity for uniqueness checks.
11438
+ * @param target - A parsed {@link ArtifactRelationTarget}.
11439
+ * @returns The pin-less {@link ArtifactRelationTargetIdentity} for `artifact`
11440
+ * and `entity` targets, or `undefined` for `local` and `evidence` targets
11441
+ * which carry no stable comparable identity.
11442
+ */
11443
+ declare function artifactRelationTargetIdentity(target: ArtifactRelationTarget): ArtifactRelationTargetIdentity | undefined;
11444
+ /**
11445
+ * Injective string form of an identity; equal identities serialize equally,
11446
+ * distinct ones never collide.
11447
+ *
11448
+ * The serialization is a JSON-stringified fixed-order tuple:
11449
+ * `['artifact', kind, id]` for artifact targets or
11450
+ * `['entity', entityType, id]` for entity targets.
11451
+ * @param identity - A validated {@link ArtifactRelationTargetIdentity}.
11452
+ * @returns A stable, unique string for the identity.
11453
+ */
11454
+ declare function serializeArtifactRelationTargetIdentity(identity: ArtifactRelationTargetIdentity): string;
11455
+ /**
11456
+ * Human-readable form of an identity.
11457
+ * @param identity - A validated {@link ArtifactRelationTargetIdentity}.
11458
+ * @returns `artifact:<kind>/<id>` for artifact targets or
11459
+ * `entity:<entityType>/<id>` for entity targets.
11460
+ */
11461
+ declare function describeArtifactRelationTargetIdentity(identity: ArtifactRelationTargetIdentity): string;
11462
+ //#endregion
11463
+ //#region core/contracts/src/artifact/uniqueness.d.ts
11464
+ /**
11465
+ * What a store can derive and enforce; declared rules outside this set are
11466
+ * reported as issues rather than silently dropped.
11467
+ */
11468
+ type UniquenessSelectorCapability = 'relation-target' | 'lifecycle-states';
11469
+ /** Per-rule or per-selector issue surfaced when a capability is missing. */
11470
+ interface UniquenessSupportIssue {
11471
+ /** Zero-based index of the rule in the declared uniqueness array. */
11472
+ ruleIndex: number;
11473
+ /**
11474
+ * Zero-based index of the selector within `rule.by`.
11475
+ * Absent when the issue concerns `lifecycleStates` rather than a selector.
11476
+ */
11477
+ selectorIndex?: number;
11478
+ /**
11479
+ * The missing capability.
11480
+ * May be `'data'` even though it is not in {@link UniquenessSelectorCapability},
11481
+ * because a data-path selector is always undeivable regardless of what the
11482
+ * store declares.
11483
+ */
11484
+ capability: ArtifactUniquenessRule['by'][number]['kind'] | 'lifecycle-states';
11485
+ /** Human-readable explanation. */
11486
+ message: string;
11487
+ }
11488
+ /**
11489
+ * Split declared rules into enforceable rules and issues, given a store's
11490
+ * capabilities. A rule is enforceable when every selector kind and, if
11491
+ * declared, `lifecycleStates` are supported.
11492
+ * A selector is reported as unsupported when its kind is not in
11493
+ * {@link DERIVABLE_SELECTOR_KINDS} or not in `supported`.
11494
+ * Undefined or empty rules yield `{ ok: true, rules: [] }`.
11495
+ * @param rules - Declared uniqueness rules from the kind registration.
11496
+ * @param supported - Capability set the calling store can enforce.
11497
+ * @returns Either an ok result with the rules array or a list of issues.
11498
+ */
11499
+ declare function assessUniquenessSupport(rules: readonly ArtifactUniquenessRule[] | undefined, supported: readonly UniquenessSelectorCapability[]): {
11500
+ ok: true;
11501
+ rules: readonly ArtifactUniquenessRule[];
11502
+ } | {
11503
+ ok: false;
11504
+ issues: UniquenessSupportIssue[];
11505
+ };
11506
+ /**
11507
+ * One selector's contribution to a uniqueness key.
11508
+ * A part is structurally a `Partial<ArtifactRelation>` and can be used
11509
+ * directly as a jsonb containment probe against the `relations_json` column:
11510
+ * `relations_json @> '[{"type":"...","target":{...}}]'::jsonb`.
11511
+ */
11512
+ interface UniquenessKeyPart {
11513
+ /** Relation type matching the selector's `relationType`. */
11514
+ type: string;
11515
+ /** Pin-less comparable identity of the resolved target. */
11516
+ target: ArtifactRelationTargetIdentity;
11517
+ }
11518
+ /** A fully resolved uniqueness key derived from an artifact's relations. */
11519
+ interface UniquenessKey {
11520
+ /** The rule this key was derived from, in its original declared form. */
11521
+ rule: ArtifactUniquenessRule;
11522
+ /** Zero-based index of the rule in the declared uniqueness array. */
11523
+ ruleIndex: number;
11524
+ /**
11525
+ * One part per selector, in declaration order; the containment probe a store
11526
+ * can run against a stored relations array.
11527
+ */
11528
+ parts: UniquenessKeyPart[];
11529
+ /** Injective string form for equality and logging (stable key order). */
11530
+ serialized: string;
11531
+ }
11532
+ /** Reason a key could not be derived for a selector. */
11533
+ type UniquenessKeyIssueReason = 'missing-target' | 'ambiguous-target' | 'unsupported-target' | 'unsupported-selector';
11534
+ /** Diagnostic for a single selector within a rule that blocked key derivation. */
11535
+ interface UniquenessKeyIssue {
11536
+ /** Zero-based index of the rule in the declared uniqueness array. */
11537
+ ruleIndex: number;
11538
+ /** Zero-based index of the failing selector within `rule.by`. */
11539
+ selectorIndex: number;
11540
+ /** Why derivation failed. */
11541
+ reason: UniquenessKeyIssueReason;
11542
+ /**
11543
+ * Relation type string for `relation-target` selectors.
11544
+ * Absent for `unsupported-selector` issues on `data` selectors.
11545
+ */
11546
+ relationType?: string;
11547
+ /** Human-readable explanation. */
11548
+ message: string;
11549
+ }
11550
+ /** Combined result of {@link buildUniquenessKeys}. */
11551
+ interface BuildUniquenessKeysResult {
11552
+ /** Derived keys, one per fully resolved rule. */
11553
+ keys: UniquenessKey[];
11554
+ /** Selector-level issues for rules that could not be fully resolved. */
11555
+ issues: UniquenessKeyIssue[];
11556
+ }
11557
+ /**
11558
+ * Derive one key per rule from an artifact's relations.
11559
+ * Rules with any issue produce no key; keys and issues are returned together.
11560
+ * @param rules - Declared uniqueness rules to derive keys for.
11561
+ * @param relations - Full relation list of the artifact being written.
11562
+ * @returns Combined set of derived keys and selector-level issues.
11563
+ */
11564
+ declare function buildUniquenessKeys(rules: readonly ArtifactUniquenessRule[], relations: readonly ArtifactRelation[]): BuildUniquenessKeysResult;
11565
+ /**
11566
+ * Human-readable one-liner for a key.
11567
+ * @example `about → artifact:concept/abc`
11568
+ * @example `owned-by → entity:workpiece/W-1; about → artifact:concept/abc`
11569
+ * @param key - A fully resolved uniqueness key.
11570
+ * @returns A string describing each part in `type → identity` form, joined by `'; '`.
11571
+ */
11572
+ declare function describeUniquenessKey(key: UniquenessKey): string;
11573
+ //#endregion
11574
+ export { ArtifactLifecycleTransitionedEntry as $, AfterArtifactHookRegistration as $n, ArtifactKindRegisterRequest as $t, ArtifactLifecycleSchemas as A, ArtifactContextUnresolvedReasonSchema as An, ArtifactPatchSegment as At, ArtifactLifecycleIdentitySchema as B, ArtifactContextSelectorSchema as Bn, ARTIFACT_COLLECTION_ELEMENT_SEGMENT as Bt, ArtifactLifecycleGetResponseSchema as C, ArtifactContextRootNode as Cn, ArtifactPatchOperator as Ct, ArtifactLifecycleHistoryResponseSchema as D, ArtifactContextRefEntry as Dn, ArtifactPatchRequestSchema as Dt, ArtifactLifecycleHistoryResponse as E, UnresolvedArtifactContextNode as En, ArtifactPatchRequest as Et, ArtifactLifecycleCurrent as F, ArtifactContextRelationSelector as Fn, artifactPatchFilterName as Ft, ArtifactLifecycleSituation as G, compileArtifactDataChecker as Gn, ArtifactCreateRequest as Gt, ArtifactLifecycleInitializedEntrySchema as H, ArtifactDataChecker as Hn, inspectArtifactDataLocation as Ht, ArtifactLifecycleCurrentSchema as I, ArtifactContextRelationSelectorSchema as In, artifactPatchInstructions as It, ArtifactLifecycleSnapshotSchema as J, ArtifactDataOf as Jn, ArtifactEvidenceResolveRequest as Jt, ArtifactLifecycleSituationSchema as K, compileArtifactDataSchema as Kn, ArtifactCreateResponse as Kt, ArtifactLifecycleError as L, ArtifactContextRenderHint as Ln, artifactPatchPathFilterNames as Lt, ArtifactLifecycleTransitionResponseSchema as M, ResolvedArtifactContextWireSchema as Mn, ArtifactPatchSuccessSchema as Mt, toArtifactLifecycleFailure as N, ARTIFACT_CONTEXT_RENDER_HINTS as Nn, ArtifactPatchTarget as Nt, ArtifactLifecycleRejectedPayload as O, ArtifactContextRefEntrySchema as On, ArtifactPatchResponse as Ot, ARTIFACT_LIFECYCLE_REJECTED_CODE as P, ArtifactContextKnownRenderHint as Pn, ArtifactPatchTargetSchema as Pt, ArtifactLifecycleTransitionIntentSchema as Q, AfterArtifactHookContext as Qn, ArtifactKindListResponse as Qt, ArtifactLifecycleHistoryEntry as R, ArtifactContextRenderHintSchema as Rn, artifactPatchSegment as Rt, ArtifactLifecycleGetResponse as S, ArtifactContextNode as Sn, ArtifactPatchOperationResultSchema as St, ArtifactLifecycleHistoryRequestSchema as T, ResolvedArtifactContextNode as Tn, ArtifactPatchPersistedSchema as Tt, ArtifactLifecycleRejection as U, ArtifactDataIssue as Un, isArtifactDataPathDeclared as Ut, ArtifactLifecycleInitializedEntry as V, ArtifactDataCheck as Vn, ArtifactSchemaFragment as Vt, ArtifactLifecycleRejectionSchema as W, ArtifactDataValidator as Wn, readArtifactTitle as Wt, ArtifactLifecycleTransitionCommandSchema as X, ArtifactOf as Xn, ArtifactKindChangedPayload as Xt, ArtifactLifecycleTransitionCommand as Y, ArtifactKindDefinition as Yn, ArtifactEvidenceResolveResponse$1 as Yt, ArtifactLifecycleTransitionIntent as Z, defineArtifactKind as Zn, ArtifactKindListRequest as Zt, ArtifactLifecycleCommittedPayloadSchema as _, ArtifactRevisedPayload as _n, ARTIFACT_VALUE_TYPE_KEYWORD as _r, ArtifactPatchIssue as _t, UniquenessKeyPart as a, ArtifactQueryResponse as an, ArtifactLifecycleHookRegistration$1 as ar, ARTIFACT_PATCH_ERROR_CODES as at, ArtifactLifecycleGetRequest as b, ArtifactSubjects$1 as bn, EvidenceValueSchema$1 as br, ArtifactPatchMigrationSchema as bt, assessUniquenessSupport as c, ArtifactRelationTypeListResponse as cn, BeforeArtifactHookRegistration as cr, ArtifactPatchArrayFilterSchema as ct, ArtifactRelationTargetIdentity as d, ArtifactResolveContextRequest as dn, EvidenceOccurrenceExtractionOptions as dr, ArtifactPatchDryRunSchema as dt, ArtifactKindRegisterResponse as en, ArtifactDraft as er, ArtifactLifecycleTransitionedEntrySchema as et, ArtifactRelationTargetIdentitySchema as f, ArtifactResolveContextResponse as fn, extractEvidenceOccurrences as fr, ArtifactPatchError as ft, ArtifactLifecycleCommittedPayload as g, ArtifactReviseResponse as gn, EvidenceResolveResponseSchema as gr, ArtifactPatchInstruction as gt, serializeArtifactRelationTargetIdentity as h, ArtifactReviseRequest as hn, EvidenceResolveResponse as hr, ArtifactPatchFailureSchema as ht, UniquenessKeyIssueReason as i, ArtifactPatchSubjectResponse as in, ArtifactLifecycleHookEvent as ir, isArtifactLifecycleTransitionAllowed as it, ArtifactLifecycleTransitionResponse as j, ResolvedArtifactContextWire$1 as jn, ArtifactPatchSuccess as jt, ArtifactLifecycleRejectedPayloadSchema as k, ArtifactContextUnresolvedReason as kn, ArtifactPatchResponseSchema as kt, buildUniquenessKeys as l, ArtifactRelationTypeRegisterRequest as ln, defineArtifactLifecycleHooks as lr, ArtifactPatchDocument as lt, describeArtifactRelationTargetIdentity as m, ArtifactResolveResponse as mn, EvidenceResolveRequestSchema as mr, ArtifactPatchErrorSchema as mt, UniquenessKey as n, ArtifactObservationAddedPayload as nn, ArtifactHookFilter as nr, advanceArtifactLifecycle as nt, UniquenessSelectorCapability as o, ArtifactRelationAddedPayload as on, ArtifactLifecycleSemanticEvent as or, ARTIFACT_PATCH_OPERATORS as ot, artifactRelationTargetIdentity as p, ArtifactResolveRequest as pn, EvidenceResolveRequest as pr, ArtifactPatchErrorCode as pt, ArtifactLifecycleSnapshot as q, AnyArtifactKindDefinition as qn, ArtifactCreatedPayload as qt, UniquenessKeyIssue as r, ArtifactPatchSubjectRequest as rn, ArtifactLifecycleHookDefinition as rr, initialArtifactLifecycle as rt, UniquenessSupportIssue as s, ArtifactRelationTypeListRequest as sn, BeforeArtifactHookContext as sr, ArtifactPatchArrayFilter as st, BuildUniquenessKeysResult as t, ArtifactNamespace as tn, ArtifactDraftPatch as tr, ArtifactLifecycleVersionSchema as tt, describeUniquenessKey as u, ArtifactRelationTypeRegisterResponse as un, EvidenceOccurrence as ur, ArtifactPatchDocumentSchema as ut, ArtifactLifecycleFailure as v, ArtifactSchemas$1 as vn, EVIDENCE_VALUE_TYPE as vr, ArtifactPatchIssueSchema as vt, ArtifactLifecycleHistoryRequest as w, ArtifactContextTree as wn, ArtifactPatchPathSchema as wt, ArtifactLifecycleGetRequestSchema as x, hydrateArtifactContextTree as xn, ArtifactPatchOperationResult as xt, ArtifactLifecycleFailureSchema as y, ArtifactStatusChangedPayload as yn, EvidenceValue$1 as yr, ArtifactPatchMigration as yt, ArtifactLifecycleHistoryEntrySchema as z, ArtifactContextSelector$1 as zn, artifactPatchSegments as zt };
@@ -777,8 +777,8 @@ declare const WorkerSchemas$1: {
777
777
  }, z.core.$strict>;
778
778
  response: z.ZodObject<{
779
779
  decision: z.ZodEnum<{
780
- fenced: "fenced";
781
780
  accepted: "accepted";
781
+ fenced: "fenced";
782
782
  duplicate: "duplicate";
783
783
  conflict: "conflict";
784
784
  }>;
@@ -1379,8 +1379,8 @@ declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker",
1379
1379
  }, _$zod_v4_core0.$strict>;
1380
1380
  response: _$zod.ZodObject<{
1381
1381
  decision: _$zod.ZodEnum<{
1382
- fenced: "fenced";
1383
1382
  accepted: "accepted";
1383
+ fenced: "fenced";
1384
1384
  duplicate: "duplicate";
1385
1385
  conflict: "conflict";
1386
1386
  }>;
@@ -1888,8 +1888,8 @@ declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Flat
1888
1888
  }, _$zod_v4_core0.$strict>;
1889
1889
  response: _$zod.ZodObject<{
1890
1890
  decision: _$zod.ZodEnum<{
1891
- fenced: "fenced";
1892
1891
  accepted: "accepted";
1892
+ fenced: "fenced";
1893
1893
  duplicate: "duplicate";
1894
1894
  conflict: "conflict";
1895
1895
  }>;
@@ -1,4 +1,4 @@
1
- import { Mn as AnyArtifactKindDefinition, Un as ArtifactLifecycleHookEvent, Wn as ArtifactLifecycleHookRegistration$1 } from "./index-BGg5g9cK.mjs";
1
+ import { ar as ArtifactLifecycleHookRegistration$1, ir as ArtifactLifecycleHookEvent, qn as AnyArtifactKindDefinition } from "./index-DN2Odrnz.mjs";
2
2
  import { s as AdapterProviderAuth$1 } from "./adapter-binding-CZTWlcp9.mjs";
3
3
  import { i as ExtensionService$1, n as NodeExtensionContext$1, t as ExtensionContext$1 } from "./extension-context-BGNUn34r.mjs";
4
4
  import { t as ExtensionAutomationTriggersContribution } from "./contribution-Cdz5WTYk.mjs";
@@ -90,8 +90,8 @@ declare const ClientSchemas: {
90
90
  projectDir: z.ZodOptional<z.ZodString>;
91
91
  configInheritance: z.ZodOptional<z.ZodEnum<{
92
92
  empty: "empty";
93
- "auth-only": "auth-only";
94
93
  full: "full";
94
+ "auth-only": "auth-only";
95
95
  }>>;
96
96
  }, z.core.$strip>;
97
97
  response: z.ZodObject<{
@@ -1676,8 +1676,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1676
1676
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1677
1677
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1678
1678
  empty: "empty";
1679
- "auth-only": "auth-only";
1680
1679
  full: "full";
1680
+ "auth-only": "auth-only";
1681
1681
  }>>;
1682
1682
  }, _$zod_v4_core0.$strip>;
1683
1683
  response: _$zod.ZodObject<{
@@ -2316,8 +2316,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2316
2316
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2317
2317
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2318
2318
  empty: "empty";
2319
- "auth-only": "auth-only";
2320
2319
  full: "full";
2320
+ "auth-only": "auth-only";
2321
2321
  }>>;
2322
2322
  }, _$zod_v4_core0.$strip>;
2323
2323
  response: _$zod.ZodObject<{
@@ -2979,8 +2979,8 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2979
2979
  */
2980
2980
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2981
2981
  empty: "empty";
2982
- "auth-only": "auth-only";
2983
2982
  full: "full";
2983
+ "auth-only": "auth-only";
2984
2984
  }>;
2985
2985
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2986
2986
  /**
@@ -3137,8 +3137,8 @@ declare const ClientSessionConfigSchemas: {
3137
3137
  projectDir: z.ZodOptional<z.ZodString>;
3138
3138
  configInheritance: z.ZodOptional<z.ZodEnum<{
3139
3139
  empty: "empty";
3140
- "auth-only": "auth-only";
3141
3140
  full: "full";
3141
+ "auth-only": "auth-only";
3142
3142
  }>>;
3143
3143
  }, z.core.$strip>;
3144
3144
  response: z.ZodObject<{
@@ -3193,8 +3193,8 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
3193
3193
  }>;
3194
3194
  configInheritance: z.ZodEnum<{
3195
3195
  empty: "empty";
3196
- "auth-only": "auth-only";
3197
3196
  full: "full";
3197
+ "auth-only": "auth-only";
3198
3198
  }>;
3199
3199
  }, z.core.$strip>;
3200
3200
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
@@ -15,8 +15,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
15
15
  config: _$zod.ZodNullable<_$zod.ZodObject<{
16
16
  description: _$zod.ZodOptional<_$zod.ZodString>;
17
17
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
18
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
19
18
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
19
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
20
20
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
21
21
  label: _$zod.ZodString;
22
22
  url: _$zod.ZodString;
@@ -40,8 +40,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
40
40
  configs: _$zod.ZodArray<_$zod.ZodObject<{
41
41
  description: _$zod.ZodOptional<_$zod.ZodString>;
42
42
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
43
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
44
43
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
44
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
45
45
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
46
46
  label: _$zod.ZodString;
47
47
  url: _$zod.ZodString;
@@ -1651,8 +1651,8 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
1651
1651
  config: _$zod.ZodObject<{
1652
1652
  description: _$zod.ZodOptional<_$zod.ZodString>;
1653
1653
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1654
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1655
1654
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1655
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1656
1656
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1657
1657
  label: _$zod.ZodString;
1658
1658
  url: _$zod.ZodString;
@@ -1876,8 +1876,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1876
1876
  config: _$zod.ZodNullable<_$zod.ZodObject<{
1877
1877
  description: _$zod.ZodOptional<_$zod.ZodString>;
1878
1878
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1879
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1880
1879
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1880
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1881
1881
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1882
1882
  label: _$zod.ZodString;
1883
1883
  url: _$zod.ZodString;
@@ -1901,8 +1901,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1901
1901
  configs: _$zod.ZodArray<_$zod.ZodObject<{
1902
1902
  description: _$zod.ZodOptional<_$zod.ZodString>;
1903
1903
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1904
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1905
1904
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1905
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1906
1906
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1907
1907
  label: _$zod.ZodString;
1908
1908
  url: _$zod.ZodString;
@@ -3512,8 +3512,8 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
3512
3512
  config: _$zod.ZodObject<{
3513
3513
  description: _$zod.ZodOptional<_$zod.ZodString>;
3514
3514
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
3515
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
3516
3515
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3516
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
3517
3517
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
3518
3518
  label: _$zod.ZodString;
3519
3519
  url: _$zod.ZodString;
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@makaio/framework",
3
- "version": "1.0.0-dev-1789138982585",
3
+ "version": "1.0.0-dev-1789160791094",
4
4
  "type": "module"
5
5
  }
@@ -18,8 +18,8 @@ declare const AdapterSubsystemSchemas: {
18
18
  config: z.ZodNullable<z.ZodObject<{
19
19
  description: z.ZodOptional<z.ZodString>;
20
20
  displayName: z.ZodOptional<z.ZodString>;
21
- protocol: z.ZodOptional<z.ZodString>;
22
21
  clientId: z.ZodOptional<z.ZodString>;
22
+ protocol: z.ZodOptional<z.ZodString>;
23
23
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
24
  label: z.ZodString;
25
25
  url: z.ZodString;
@@ -46,8 +46,8 @@ declare const AdapterSubsystemSchemas: {
46
46
  configs: z.ZodArray<z.ZodObject<{
47
47
  description: z.ZodOptional<z.ZodString>;
48
48
  displayName: z.ZodOptional<z.ZodString>;
49
- protocol: z.ZodOptional<z.ZodString>;
50
49
  clientId: z.ZodOptional<z.ZodString>;
50
+ protocol: z.ZodOptional<z.ZodString>;
51
51
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
52
  label: z.ZodString;
53
53
  url: z.ZodString;
@@ -1717,8 +1717,8 @@ declare const AdapterSubsystemSchemas: {
1717
1717
  config: z.ZodObject<{
1718
1718
  description: z.ZodOptional<z.ZodString>;
1719
1719
  displayName: z.ZodOptional<z.ZodString>;
1720
- protocol: z.ZodOptional<z.ZodString>;
1721
1720
  clientId: z.ZodOptional<z.ZodString>;
1721
+ protocol: z.ZodOptional<z.ZodString>;
1722
1722
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1723
1723
  label: z.ZodString;
1724
1724
  url: z.ZodString;
@@ -3122,8 +3122,8 @@ type BindingRecord = z.infer<typeof BindingRecordSchema>;
3122
3122
  declare const AdapterFileConfigSchema: z.ZodObject<{
3123
3123
  description: z.ZodOptional<z.ZodString>;
3124
3124
  displayName: z.ZodOptional<z.ZodString>;
3125
- protocol: z.ZodOptional<z.ZodString>;
3126
3125
  clientId: z.ZodOptional<z.ZodString>;
3126
+ protocol: z.ZodOptional<z.ZodString>;
3127
3127
  helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3128
3128
  label: z.ZodString;
3129
3129
  url: z.ZodString;
@@ -45,10 +45,10 @@ type SubagentTemplateSummary = z.infer<typeof SubagentTemplateSummarySchema>;
45
45
  declare const SubagentTemplateCreateSchema: z.ZodObject<{
46
46
  name: z.ZodString;
47
47
  enabled: z.ZodDefault<z.ZodBoolean>;
48
- providerConfigId: z.ZodOptional<z.ZodString>;
49
48
  adapterName: z.ZodString;
50
49
  model: z.ZodOptional<z.ZodString>;
51
50
  systemPrompt: z.ZodOptional<z.ZodString>;
51
+ providerConfigId: z.ZodOptional<z.ZodString>;
52
52
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
53
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
54
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -130,10 +130,10 @@ declare const SubagentTemplateSettingsSchemas: {
130
130
  request: z.ZodObject<{
131
131
  name: z.ZodString;
132
132
  enabled: z.ZodDefault<z.ZodBoolean>;
133
- providerConfigId: z.ZodOptional<z.ZodString>;
134
133
  adapterName: z.ZodString;
135
134
  model: z.ZodOptional<z.ZodString>;
136
135
  systemPrompt: z.ZodOptional<z.ZodString>;
136
+ providerConfigId: z.ZodOptional<z.ZodString>;
137
137
  allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
138
  disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
139
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -10,8 +10,8 @@ import { UiNavigationLevel } from "@makaio/framework/contracts";
10
10
  */
11
11
  declare const SurfaceIdSchema: z.ZodEnum<{
12
12
  tray: "tray";
13
- mobile: "mobile";
14
13
  web: "web";
14
+ mobile: "mobile";
15
15
  electron: "electron";
16
16
  electrobun: "electrobun";
17
17
  }>;
@@ -101,8 +101,8 @@ declare const PageMetadataSchema: z.ZodObject<{
101
101
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
102
102
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
103
103
  tray: "tray";
104
- mobile: "mobile";
105
104
  web: "web";
105
+ mobile: "mobile";
106
106
  electron: "electron";
107
107
  electrobun: "electrobun";
108
108
  }>>]>>;
@@ -127,8 +127,8 @@ declare const PageSchemas: {
127
127
  readonly request: z.ZodObject<{
128
128
  surface: z.ZodOptional<z.ZodEnum<{
129
129
  tray: "tray";
130
- mobile: "mobile";
131
130
  web: "web";
131
+ mobile: "mobile";
132
132
  electron: "electron";
133
133
  electrobun: "electrobun";
134
134
  }>>;
@@ -147,8 +147,8 @@ declare const PageSchemas: {
147
147
  level: z.ZodCustom<UiNavigationLevel, UiNavigationLevel>;
148
148
  surfaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodArray<z.ZodEnum<{
149
149
  tray: "tray";
150
- mobile: "mobile";
151
150
  web: "web";
151
+ mobile: "mobile";
152
152
  electron: "electron";
153
153
  electrobun: "electrobun";
154
154
  }>>]>>;
@@ -13,9 +13,9 @@ declare const PreferenceKeySchema: z.ZodObject<{
13
13
  scope: z.ZodString;
14
14
  context: z.ZodOptional<z.ZodString>;
15
15
  viewport: z.ZodOptional<z.ZodEnum<{
16
+ mobile: "mobile";
16
17
  desktop: "desktop";
17
18
  tablet: "tablet";
18
- mobile: "mobile";
19
19
  }>>;
20
20
  }, z.core.$strip>;
21
21
  type PreferenceKey = z.infer<typeof PreferenceKeySchema>;
@@ -33,9 +33,9 @@ declare const PreferenceItemSchema: z.ZodObject<{
33
33
  scope: z.ZodString;
34
34
  context: z.ZodOptional<z.ZodString>;
35
35
  viewport: z.ZodOptional<z.ZodEnum<{
36
+ mobile: "mobile";
36
37
  desktop: "desktop";
37
38
  tablet: "tablet";
38
- mobile: "mobile";
39
39
  }>>;
40
40
  }, z.core.$strip>;
41
41
  category: z.ZodString;
@@ -67,9 +67,9 @@ declare const PreferencesSchemas: {
67
67
  scope: z.ZodString;
68
68
  context: z.ZodOptional<z.ZodString>;
69
69
  viewport: z.ZodOptional<z.ZodEnum<{
70
+ mobile: "mobile";
70
71
  desktop: "desktop";
71
72
  tablet: "tablet";
72
- mobile: "mobile";
73
73
  }>>;
74
74
  }, z.core.$strip>;
75
75
  category: z.ZodString;
@@ -94,9 +94,9 @@ declare const PreferencesSchemas: {
94
94
  scope: z.ZodString;
95
95
  context: z.ZodOptional<z.ZodString>;
96
96
  viewport: z.ZodOptional<z.ZodEnum<{
97
+ mobile: "mobile";
97
98
  desktop: "desktop";
98
99
  tablet: "tablet";
99
- mobile: "mobile";
100
100
  }>>;
101
101
  }, z.core.$strip>;
102
102
  category: z.ZodString;
@@ -122,9 +122,9 @@ declare const PreferencesSchemas: {
122
122
  scope: z.ZodString;
123
123
  context: z.ZodOptional<z.ZodString>;
124
124
  viewport: z.ZodOptional<z.ZodEnum<{
125
+ mobile: "mobile";
125
126
  desktop: "desktop";
126
127
  tablet: "tablet";
127
- mobile: "mobile";
128
128
  }>>;
129
129
  }, z.core.$strip>;
130
130
  category: z.ZodString;
@@ -149,9 +149,9 @@ declare const PreferencesSchemas: {
149
149
  scope: z.ZodOptional<z.ZodString>;
150
150
  context: z.ZodOptional<z.ZodOptional<z.ZodString>>;
151
151
  viewport: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
152
+ mobile: "mobile";
152
153
  desktop: "desktop";
153
154
  tablet: "tablet";
154
- mobile: "mobile";
155
155
  }>>>;
156
156
  }, z.core.$strip>>;
157
157
  category: z.ZodOptional<z.ZodString>;
@@ -166,9 +166,9 @@ declare const PreferencesSchemas: {
166
166
  scope: z.ZodString;
167
167
  context: z.ZodOptional<z.ZodString>;
168
168
  viewport: z.ZodOptional<z.ZodEnum<{
169
+ mobile: "mobile";
169
170
  desktop: "desktop";
170
171
  tablet: "tablet";
171
- mobile: "mobile";
172
172
  }>>;
173
173
  }, z.core.$strip>;
174
174
  category: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { C as ProviderRuntimeSnapshot, S as ProviderConfigFileRecordSchema, T as AdapterSubsystemSchemas, _ as EffectiveAdapter, a as AdapterRuntimePackages, b as ProviderConfigAuthSummarySchema, c as AdapterRuntimeSnapshotErrorCode, d as AdapterRuntimeSnapshotResolutionSchema, f as AdapterRuntimeSnapshotSchema, g as CompatibleAuthOptionSchema, h as CompatibleAuthOption, i as AdapterReadinessSchema, l as AdapterRuntimeSnapshotErrorCodeSchema, m as BindingRecordSchema, n as AdapterFileConfigSchema, o as AdapterRuntimePackagesSchema, p as BindingRecord, r as AdapterReadiness, s as AdapterRuntimeSnapshot, t as AdapterFileConfig, u as AdapterRuntimeSnapshotResolution, v as EffectiveAdapterSchema, w as ProviderRuntimeSnapshotSchema, x as ProviderConfigFileRecord, y as ProviderConfigAuthSummary } from "../../schemas-COQUToGQ.mjs";
1
+ import { C as ProviderRuntimeSnapshot, S as ProviderConfigFileRecordSchema, T as AdapterSubsystemSchemas, _ as EffectiveAdapter, a as AdapterRuntimePackages, b as ProviderConfigAuthSummarySchema, c as AdapterRuntimeSnapshotErrorCode, d as AdapterRuntimeSnapshotResolutionSchema, f as AdapterRuntimeSnapshotSchema, g as CompatibleAuthOptionSchema, h as CompatibleAuthOption, i as AdapterReadinessSchema, l as AdapterRuntimeSnapshotErrorCodeSchema, m as BindingRecordSchema, n as AdapterFileConfigSchema, o as AdapterRuntimePackagesSchema, p as BindingRecord, r as AdapterReadiness, s as AdapterRuntimeSnapshot, t as AdapterFileConfig, u as AdapterRuntimeSnapshotResolution, v as EffectiveAdapterSchema, w as ProviderRuntimeSnapshotSchema, x as ProviderConfigFileRecord, y as ProviderConfigAuthSummary } from "../../schemas-BGcAiQE0.mjs";
2
2
  import { a as CreateCanonicalProviderConfigInput, c as AdapterFileConfigSet, i as CanonicalProviderConfigPatchSchema, l as IAdapterConfigRepository, n as CanonicalProviderConfigAuthPayload, o as CreateCanonicalProviderConfigInputPayload, r as CanonicalProviderConfigPatch, s as CreateCanonicalProviderConfigInputSchema, t as CanonicalProviderConfigAuth, u as ProviderConfigFileSet } from "../../index-CrDp6vHG.mjs";
3
- import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-BHkEHrUG.mjs";
3
+ import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-DyWNxLt1.mjs";
4
4
  export { ADAPTER_SUBSYSTEM_PACKAGE_NAME, AdapterFileConfig, AdapterFileConfigSchema, AdapterFileConfigSet, AdapterReadiness, AdapterReadinessSchema, AdapterRuntimePackages, AdapterRuntimePackagesSchema, AdapterRuntimeSnapshot, AdapterRuntimeSnapshotErrorCode, AdapterRuntimeSnapshotErrorCodeSchema, AdapterRuntimeSnapshotResolution, AdapterRuntimeSnapshotResolutionSchema, AdapterRuntimeSnapshotSchema, AdapterSubsystemNamespace, AdapterSubsystemSchemas, AdapterSubsystemSubjects, BindingRecord, BindingRecordSchema, CanonicalProviderConfigAuth, CanonicalProviderConfigAuthPayload, CanonicalProviderConfigPatch, CanonicalProviderConfigPatchSchema, CompatibleAuthOption, CompatibleAuthOptionSchema, CreateCanonicalProviderConfigInput, CreateCanonicalProviderConfigInputPayload, CreateCanonicalProviderConfigInputSchema, EffectiveAdapter, EffectiveAdapterSchema, IAdapterConfigRepository, ProviderConfigAuthSummary, ProviderConfigAuthSummarySchema, ProviderConfigFileRecord, ProviderConfigFileRecordSchema, ProviderConfigFileSet, ProviderRuntimeSnapshot, ProviderRuntimeSnapshotSchema };
@@ -1,2 +1,2 @@
1
- import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-BHkEHrUG.mjs";
1
+ import { n as AdapterSubsystemNamespace, r as AdapterSubsystemSubjects, t as ADAPTER_SUBSYSTEM_PACKAGE_NAME } from "../../namespace-DyWNxLt1.mjs";
2
2
  export { ADAPTER_SUBSYSTEM_PACKAGE_NAME, AdapterSubsystemNamespace, AdapterSubsystemSubjects };