@makaio/framework 1.0.0-dev-1789148673705 → 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.
- package/dist/.makaio-build.json +2 -2
- package/dist/artifact-B-PQO_TB.mjs +1 -0
- package/dist/bus/index.d.mts +41 -1
- package/dist/bus/index.mjs +1 -8
- package/dist/bus-DU_7GM0J.mjs +9 -0
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/artifact/index.mjs +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 +2 -2
- package/dist/contracts/index.d.mts +12 -12
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/worker/index.mjs +1 -1
- package/dist/contracts/workflow/index.d.mts +1 -1
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{index-Zf9Zayey2.d.mts → index-BUoIGZmF2.d.mts} +43 -43
- package/dist/{index-2YEh0vHQ.d.mts → index-Bt9YxVg5.d.mts} +12 -12
- package/dist/{index-OLGGmjgd.d.mts → index-CU9xmTkP.d.mts} +1 -1
- package/dist/{index-DKI-qw1F.d.mts → index-CdPWA8co.d.mts} +19 -19
- package/dist/{index-LFS-KagP.d.mts → index-DN2Odrnz.d.mts} +173 -6
- package/dist/{index-DC2C-u2k.d.mts → index-DhW9WHFS.d.mts} +1 -1
- package/dist/{index-Bk-hwMue.d.mts → index-KmZLl8Ne.d.mts} +3 -3
- package/dist/{index-DcfuHw2O.d.mts → index-WhgPewY4.d.mts} +6 -6
- package/dist/{namespace-Bw7YLQHw.d.mts → namespace-CvCk6Y9i.d.mts} +25 -25
- package/dist/{namespace-BHkEHrUG.d.mts → namespace-DyWNxLt1.d.mts} +6 -6
- package/dist/{namespace-BD4lgMfP.d.mts → namespace-TX9DlWiQ.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/{schema-CbmZYwEl.d.mts → schema-B098Jz9p.d.mts} +1 -1
- package/dist/{schemas-COQUToGQ.d.mts → schemas-BGcAiQE0.d.mts} +4 -4
- package/dist/{schemas-DYtUc2WA.d.mts → schemas-FkLOBJgq.d.mts} +4 -4
- package/dist/{schemas-DNvDh0eE2.d.mts → schemas-Fn-eeay32.d.mts} +7 -7
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/index.d.mts +16 -16
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +5 -5
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/storage/schema.d.mts +1 -1
- package/dist/{storage-namespace-DITavhRL.d.mts → storage-namespace-BUSNKZLw.d.mts} +10 -10
- package/dist/{types-BrD4l8JJ.d.mts → types-HFQQoeAz.d.mts} +11 -11
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{view-builder--qgYM35J.d.mts → view-builder-ADC1ng2t.d.mts} +1 -1
- package/dist/{worker-DHZKWcLx.mjs → worker-CrYtBGy1.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +15 -15
- package/dist/{workflow-D8uoSvcR.mjs → workflow-mCL6Xv-J.mjs} +1 -1
- package/package.json +1 -1
- package/dist/artifact-0LaQv515.mjs +0 -1
- package/dist/bus-CobBUqjo.mjs +0 -2
- package/dist/bus-Uy9C3TBM.mjs +0 -1
- package/dist/scoped-bus-DwVrmi_1.mjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as JsonObjectContractSchema } from "./json-value-DyMQrwGz.mjs";
|
|
2
2
|
import { o as ICapabilityProvider } from "./index-DLsopffG.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-Bt9YxVg5.mjs";
|
|
4
4
|
import { t as WorkerRuntimeInputs } from "./runtime-inputs-CIYLDuBM.mjs";
|
|
5
5
|
import * as _$zod from "zod";
|
|
6
6
|
import { z } from "zod";
|
|
@@ -2055,13 +2055,13 @@ declare const ReviewSchemas: {
|
|
|
2055
2055
|
deferred: "deferred";
|
|
2056
2056
|
}>;
|
|
2057
2057
|
startLine: z.ZodNullable<z.ZodNumber>;
|
|
2058
|
-
sourceId: z.ZodString;
|
|
2059
2058
|
severity: z.ZodEnum<{
|
|
2060
2059
|
critical: "critical";
|
|
2061
2060
|
major: "major";
|
|
2062
2061
|
minor: "minor";
|
|
2063
2062
|
nitpick: "nitpick";
|
|
2064
2063
|
}>;
|
|
2064
|
+
sourceId: z.ZodString;
|
|
2065
2065
|
reviewer: z.ZodString;
|
|
2066
2066
|
threadId: z.ZodNullable<z.ZodString>;
|
|
2067
2067
|
endLine: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2732,13 +2732,13 @@ declare const ReviewNamespace: _$_makaio_core0.BusNamespaceDefinition<"review",
|
|
|
2732
2732
|
deferred: "deferred";
|
|
2733
2733
|
}>;
|
|
2734
2734
|
startLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
2735
|
-
sourceId: _$zod.ZodString;
|
|
2736
2735
|
severity: _$zod.ZodEnum<{
|
|
2737
2736
|
critical: "critical";
|
|
2738
2737
|
major: "major";
|
|
2739
2738
|
minor: "minor";
|
|
2740
2739
|
nitpick: "nitpick";
|
|
2741
2740
|
}>;
|
|
2741
|
+
sourceId: _$zod.ZodString;
|
|
2742
2742
|
reviewer: _$zod.ZodString;
|
|
2743
2743
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
2744
2744
|
endLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
@@ -3184,13 +3184,13 @@ declare const ReviewSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
|
|
|
3184
3184
|
deferred: "deferred";
|
|
3185
3185
|
}>;
|
|
3186
3186
|
startLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
3187
|
-
sourceId: _$zod.ZodString;
|
|
3188
3187
|
severity: _$zod.ZodEnum<{
|
|
3189
3188
|
critical: "critical";
|
|
3190
3189
|
major: "major";
|
|
3191
3190
|
minor: "minor";
|
|
3192
3191
|
nitpick: "nitpick";
|
|
3193
3192
|
}>;
|
|
3193
|
+
sourceId: _$zod.ZodString;
|
|
3194
3194
|
reviewer: _$zod.ZodString;
|
|
3195
3195
|
threadId: _$zod.ZodNullable<_$zod.ZodString>;
|
|
3196
3196
|
endLine: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
@@ -3733,8 +3733,8 @@ type VoiceStatusState = z.infer<typeof VoiceStatusStateSchema>;
|
|
|
3733
3733
|
*/
|
|
3734
3734
|
declare const VoicePipelineLegSchema: z.ZodObject<{
|
|
3735
3735
|
runtime: z.ZodEnum<{
|
|
3736
|
-
server: "server";
|
|
3737
3736
|
client: "client";
|
|
3737
|
+
server: "server";
|
|
3738
3738
|
}>;
|
|
3739
3739
|
providerId: z.ZodString;
|
|
3740
3740
|
providerName: z.ZodString;
|
|
@@ -3753,16 +3753,16 @@ type VoicePipelineLegSchemaType = VoicePipelineLeg;
|
|
|
3753
3753
|
declare const VoicePipelineStrategySchema: z.ZodObject<{
|
|
3754
3754
|
stt: z.ZodObject<{
|
|
3755
3755
|
runtime: z.ZodEnum<{
|
|
3756
|
-
server: "server";
|
|
3757
3756
|
client: "client";
|
|
3757
|
+
server: "server";
|
|
3758
3758
|
}>;
|
|
3759
3759
|
providerId: z.ZodString;
|
|
3760
3760
|
providerName: z.ZodString;
|
|
3761
3761
|
}, z.core.$strip>;
|
|
3762
3762
|
tts: z.ZodObject<{
|
|
3763
3763
|
runtime: z.ZodEnum<{
|
|
3764
|
-
server: "server";
|
|
3765
3764
|
client: "client";
|
|
3765
|
+
server: "server";
|
|
3766
3766
|
}>;
|
|
3767
3767
|
providerId: z.ZodString;
|
|
3768
3768
|
providerName: z.ZodString;
|
|
@@ -3811,16 +3811,16 @@ declare const VoiceSchemas: {
|
|
|
3811
3811
|
strategy: z.ZodObject<{
|
|
3812
3812
|
stt: z.ZodObject<{
|
|
3813
3813
|
runtime: z.ZodEnum<{
|
|
3814
|
-
server: "server";
|
|
3815
3814
|
client: "client";
|
|
3815
|
+
server: "server";
|
|
3816
3816
|
}>;
|
|
3817
3817
|
providerId: z.ZodString;
|
|
3818
3818
|
providerName: z.ZodString;
|
|
3819
3819
|
}, z.core.$strip>;
|
|
3820
3820
|
tts: z.ZodObject<{
|
|
3821
3821
|
runtime: z.ZodEnum<{
|
|
3822
|
-
server: "server";
|
|
3823
3822
|
client: "client";
|
|
3823
|
+
server: "server";
|
|
3824
3824
|
}>;
|
|
3825
3825
|
providerId: z.ZodString;
|
|
3826
3826
|
providerName: z.ZodString;
|
|
@@ -3833,16 +3833,16 @@ declare const VoiceSchemas: {
|
|
|
3833
3833
|
strategy: z.ZodObject<{
|
|
3834
3834
|
stt: z.ZodObject<{
|
|
3835
3835
|
runtime: z.ZodEnum<{
|
|
3836
|
-
server: "server";
|
|
3837
3836
|
client: "client";
|
|
3837
|
+
server: "server";
|
|
3838
3838
|
}>;
|
|
3839
3839
|
providerId: z.ZodString;
|
|
3840
3840
|
providerName: z.ZodString;
|
|
3841
3841
|
}, z.core.$strip>;
|
|
3842
3842
|
tts: z.ZodObject<{
|
|
3843
3843
|
runtime: z.ZodEnum<{
|
|
3844
|
-
server: "server";
|
|
3845
3844
|
client: "client";
|
|
3845
|
+
server: "server";
|
|
3846
3846
|
}>;
|
|
3847
3847
|
providerId: z.ZodString;
|
|
3848
3848
|
providerName: z.ZodString;
|
|
@@ -3943,16 +3943,16 @@ declare const VoiceNamespace: _$_makaio_core0.BusNamespaceDefinition<"voice", {
|
|
|
3943
3943
|
strategy: _$zod.ZodObject<{
|
|
3944
3944
|
stt: _$zod.ZodObject<{
|
|
3945
3945
|
runtime: _$zod.ZodEnum<{
|
|
3946
|
-
server: "server";
|
|
3947
3946
|
client: "client";
|
|
3947
|
+
server: "server";
|
|
3948
3948
|
}>;
|
|
3949
3949
|
providerId: _$zod.ZodString;
|
|
3950
3950
|
providerName: _$zod.ZodString;
|
|
3951
3951
|
}, _$zod_v4_core0.$strip>;
|
|
3952
3952
|
tts: _$zod.ZodObject<{
|
|
3953
3953
|
runtime: _$zod.ZodEnum<{
|
|
3954
|
-
server: "server";
|
|
3955
3954
|
client: "client";
|
|
3955
|
+
server: "server";
|
|
3956
3956
|
}>;
|
|
3957
3957
|
providerId: _$zod.ZodString;
|
|
3958
3958
|
providerName: _$zod.ZodString;
|
|
@@ -3965,16 +3965,16 @@ declare const VoiceNamespace: _$_makaio_core0.BusNamespaceDefinition<"voice", {
|
|
|
3965
3965
|
strategy: _$zod.ZodObject<{
|
|
3966
3966
|
stt: _$zod.ZodObject<{
|
|
3967
3967
|
runtime: _$zod.ZodEnum<{
|
|
3968
|
-
server: "server";
|
|
3969
3968
|
client: "client";
|
|
3969
|
+
server: "server";
|
|
3970
3970
|
}>;
|
|
3971
3971
|
providerId: _$zod.ZodString;
|
|
3972
3972
|
providerName: _$zod.ZodString;
|
|
3973
3973
|
}, _$zod_v4_core0.$strip>;
|
|
3974
3974
|
tts: _$zod.ZodObject<{
|
|
3975
3975
|
runtime: _$zod.ZodEnum<{
|
|
3976
|
-
server: "server";
|
|
3977
3976
|
client: "client";
|
|
3977
|
+
server: "server";
|
|
3978
3978
|
}>;
|
|
3979
3979
|
providerId: _$zod.ZodString;
|
|
3980
3980
|
providerName: _$zod.ZodString;
|
|
@@ -4029,16 +4029,16 @@ declare const VoiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
4029
4029
|
strategy: _$zod.ZodObject<{
|
|
4030
4030
|
stt: _$zod.ZodObject<{
|
|
4031
4031
|
runtime: _$zod.ZodEnum<{
|
|
4032
|
-
server: "server";
|
|
4033
4032
|
client: "client";
|
|
4033
|
+
server: "server";
|
|
4034
4034
|
}>;
|
|
4035
4035
|
providerId: _$zod.ZodString;
|
|
4036
4036
|
providerName: _$zod.ZodString;
|
|
4037
4037
|
}, _$zod_v4_core0.$strip>;
|
|
4038
4038
|
tts: _$zod.ZodObject<{
|
|
4039
4039
|
runtime: _$zod.ZodEnum<{
|
|
4040
|
-
server: "server";
|
|
4041
4040
|
client: "client";
|
|
4041
|
+
server: "server";
|
|
4042
4042
|
}>;
|
|
4043
4043
|
providerId: _$zod.ZodString;
|
|
4044
4044
|
providerName: _$zod.ZodString;
|
|
@@ -4051,16 +4051,16 @@ declare const VoiceSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSub
|
|
|
4051
4051
|
strategy: _$zod.ZodObject<{
|
|
4052
4052
|
stt: _$zod.ZodObject<{
|
|
4053
4053
|
runtime: _$zod.ZodEnum<{
|
|
4054
|
-
server: "server";
|
|
4055
4054
|
client: "client";
|
|
4055
|
+
server: "server";
|
|
4056
4056
|
}>;
|
|
4057
4057
|
providerId: _$zod.ZodString;
|
|
4058
4058
|
providerName: _$zod.ZodString;
|
|
4059
4059
|
}, _$zod_v4_core0.$strip>;
|
|
4060
4060
|
tts: _$zod.ZodObject<{
|
|
4061
4061
|
runtime: _$zod.ZodEnum<{
|
|
4062
|
-
server: "server";
|
|
4063
4062
|
client: "client";
|
|
4063
|
+
server: "server";
|
|
4064
4064
|
}>;
|
|
4065
4065
|
providerId: _$zod.ZodString;
|
|
4066
4066
|
providerName: _$zod.ZodString;
|
|
@@ -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";
|
|
@@ -9756,10 +9756,11 @@ declare const ArtifactLifecycleIdentitySchema: z.ZodObject<{
|
|
|
9756
9756
|
/** Monotonic administration version, independent of the content revision. */
|
|
9757
9757
|
declare const ArtifactLifecycleVersionSchema: z.ZodNumber;
|
|
9758
9758
|
/**
|
|
9759
|
-
* Current administration state; each category admits only its own states. Version 1
|
|
9760
|
-
*
|
|
9761
|
-
*
|
|
9762
|
-
*
|
|
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.
|
|
9763
9764
|
*/
|
|
9764
9765
|
declare const ArtifactLifecycleSnapshotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9765
9766
|
category: z.ZodLiteral<"knowledge">;
|
|
@@ -11404,4 +11405,170 @@ type ArtifactLifecycleFailure = z.infer<typeof ArtifactLifecycleFailureSchema>;
|
|
|
11404
11405
|
/** Supplemental reaction input following a rejected valid transition request. */
|
|
11405
11406
|
type ArtifactLifecycleRejectedPayload = z.infer<typeof ArtifactLifecycleRejectedPayloadSchema>;
|
|
11406
11407
|
//#endregion
|
|
11407
|
-
|
|
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 };
|
|
@@ -3003,7 +3003,7 @@ declare const sessionStorageSchema: _$_makaio_storage_drizzle0.DialectSchema<{
|
|
|
3003
3003
|
tableName: "sessions";
|
|
3004
3004
|
dataType: "string";
|
|
3005
3005
|
columnType: "SQLiteText";
|
|
3006
|
-
data: "closed" | "discovered" | "
|
|
3006
|
+
data: "closed" | "discovered" | "active" | "archived";
|
|
3007
3007
|
driverParam: string;
|
|
3008
3008
|
notNull: true;
|
|
3009
3009
|
hasDefault: false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
@@ -6,11 +6,11 @@ import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActi
|
|
|
6
6
|
import { E as ClientDefinition$1, Q as VersionLiteral$1, et as VersionRange, f as ExtensionClientHookResponsesContribution } from "./hook-responses-DVjMuGh9.mjs";
|
|
7
7
|
import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-Ckt_WmJw.mjs";
|
|
8
8
|
import { t as RequiredTimeoutConfig } from "./index-DK8lSIvY.mjs";
|
|
9
|
-
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-
|
|
9
|
+
import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-HFQQoeAz.mjs";
|
|
10
10
|
import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-BZrlHkpM2.mjs";
|
|
11
11
|
import { l as FacetNamespaceDefinition } from "./index-tCFckLG6.mjs";
|
|
12
12
|
import { t as ExtensionReactionsContribution } from "./index-BgKU1PuR2.mjs";
|
|
13
|
-
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder
|
|
13
|
+
import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-ADC1ng2t.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";
|
|
@@ -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>;
|