@lucern/sdk 1.0.11 → 1.0.12
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/CHANGELOG.md +3 -0
- package/dist/.generated +2 -0
- package/dist/accessControl.d.ts +19 -26
- package/dist/accessControl.js +195 -1423
- package/dist/adminClient.d.ts +52 -59
- package/dist/adminClient.js +364 -1142
- package/dist/answersClient.d.ts +5 -14
- package/dist/answersClient.js +19 -737
- package/dist/audience/index.d.ts +18 -18
- package/dist/audience/index.js +87 -90
- package/dist/audiencesClient.d.ts +19 -27
- package/dist/audiencesClient.js +107 -868
- package/dist/auditClient.d.ts +8 -15
- package/dist/auditClient.js +18 -791
- package/dist/authContext.d.ts +11 -16
- package/dist/authContext.js +122 -154
- package/dist/authDeviceClient.d.ts +8 -17
- package/dist/authDeviceClient.js +113 -102
- package/dist/beliefs/index.d.ts +15 -67
- package/dist/beliefs/index.js +17 -10181
- package/dist/beliefs/lifecycle.d.ts +10 -11
- package/dist/beliefs/lifecycle.js +78 -80
- package/dist/beliefsClient.d.ts +26 -32
- package/dist/beliefsClient.js +250 -990
- package/dist/boundaryClientSurface.d.ts +11 -16
- package/dist/boundaryClientSurface.js +49 -68
- package/dist/client.d.ts +64 -112
- package/dist/client.js +232 -10155
- package/dist/clientAssemblyTypes.d.ts +3 -3
- package/dist/clientAssemblyTypes.js +1 -2
- package/dist/clientConfig.d.ts +45 -59
- package/dist/clientConfig.js +1 -2
- package/dist/clientEvidenceCompat.d.ts +7 -14
- package/dist/clientEvidenceCompat.js +50 -64
- package/dist/clientGraphNamespaces.d.ts +3 -5
- package/dist/clientGraphNamespaces.js +170 -245
- package/dist/clientHelpers.d.ts +20 -25
- package/dist/clientHelpers.js +104 -127
- package/dist/clientKnowledgeNamespaces.d.ts +6 -53
- package/dist/clientKnowledgeNamespaces.js +502 -506
- package/dist/clientLocalHelpers.d.ts +11 -56
- package/dist/clientLocalHelpers.js +503 -732
- package/dist/clientPlatformNamespaces.d.ts +5 -53
- package/dist/clientPlatformNamespaces.js +229 -323
- package/dist/clientRuntime.d.ts +5 -53
- package/dist/clientRuntime.js +26 -30
- package/dist/clientWorkflowNamespaces.d.ts +6 -15
- package/dist/clientWorkflowNamespaces.js +529 -596
- package/dist/contextClient.d.ts +9 -17
- package/dist/contextClient.js +92 -805
- package/dist/contextFacade.d.ts +11 -2
- package/dist/contextFacade.js +10 -81
- package/dist/contextPackCompiler.d.ts +10 -11
- package/dist/contextPackCompiler.js +494 -1040
- package/dist/contextPackPolicy.d.ts +14 -15
- package/dist/contextPackPolicy.js +227 -305
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +169 -176
- package/dist/contextTypes.d.ts +14 -15
- package/dist/contextTypes.js +1 -2
- package/dist/contracts/api-enums.contract.d.ts +29 -30
- package/dist/contracts/api-enums.contract.js +162 -88
- package/dist/contracts/auth-session.contract.d.ts +13 -14
- package/dist/contracts/auth-session.contract.js +55 -52
- package/dist/contracts/context-pack.contract.d.ts +54 -55
- package/dist/contracts/context-pack.contract.js +160 -88
- package/dist/contracts/contextPack.d.ts +2 -1
- package/dist/contracts/contextPack.js +1 -97
- package/dist/contracts/index.d.ts +11 -12
- package/dist/contracts/index.js +10 -854
- package/dist/contracts/lens-filter.contract.d.ts +9 -10
- package/dist/contracts/lens-filter.contract.js +82 -58
- package/dist/contracts/lens-workflow.contract.d.ts +21 -23
- package/dist/contracts/lens-workflow.contract.js +48 -117
- package/dist/contracts/lensFilter.d.ts +2 -1
- package/dist/contracts/lensFilter.js +1 -71
- package/dist/contracts/lensWorkflow.d.ts +2 -2
- package/dist/contracts/lensWorkflow.js +1 -123
- package/dist/contracts/mcpTools.d.ts +16 -18
- package/dist/contracts/mcpTools.js +89 -123
- package/dist/contracts/prompt.contract.d.ts +4 -5
- package/dist/contracts/prompt.contract.js +23 -10
- package/dist/contracts/prompt.d.ts +2 -1
- package/dist/contracts/prompt.js +1 -11
- package/dist/contracts/sdk-tools.contract.d.ts +2 -1
- package/dist/contracts/sdk-tools.contract.js +1 -2
- package/dist/contracts/sdkTools.d.ts +2 -1
- package/dist/contracts/sdkTools.js +1 -26
- package/dist/contracts/tool-contracts.d.ts +2 -1
- package/dist/contracts/tool-contracts.js +1 -2
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -46
- package/dist/contracts/workflow-runtime.contract.js +241 -228
- package/dist/contracts/workflowRuntime.d.ts +2 -1
- package/dist/contracts/workflowRuntime.js +1 -244
- package/dist/contradictions/index.d.ts +8 -60
- package/dist/contradictions/index.js +11 -10175
- package/dist/control-plane.d.ts +17 -24
- package/dist/control-plane.js +124 -840
- package/dist/controlObjectOwnership.d.ts +19 -20
- package/dist/controlObjectOwnership.js +207 -201
- package/dist/coreClient.d.ts +23 -28
- package/dist/coreClient.js +567 -692
- package/dist/customTools.d.ts +17 -21
- package/dist/customTools.js +221 -221
- package/dist/decisions/index.d.ts +7 -58
- package/dist/decisions/index.js +14 -10177
- package/dist/decisionsClient.d.ts +25 -32
- package/dist/decisionsClient.js +113 -913
- package/dist/domainContext.d.ts +2 -1
- package/dist/domainContext.js +1 -2
- package/dist/edges/index.d.ts +21 -73
- package/dist/edges/index.js +12 -10176
- package/dist/embeddingsClient.d.ts +22 -30
- package/dist/embeddingsClient.js +73 -922
- package/dist/eventingClient.d.ts +23 -31
- package/dist/eventingClient.js +89 -918
- package/dist/events.d.ts +48 -49
- package/dist/events.js +257 -241
- package/dist/eventsCore.d.ts +20 -29
- package/dist/eventsCore.js +86 -830
- package/dist/evidence/index.d.ts +9 -60
- package/dist/evidence/index.js +13 -10176
- package/dist/evidenceClient.d.ts +13 -22
- package/dist/evidenceClient.js +34 -751
- package/dist/facade/context.d.ts +7 -8
- package/dist/facade/context.js +73 -72
- package/dist/functionSurface.d.ts +2 -156
- package/dist/functionSurface.js +1 -1460
- package/dist/functionSurfaceClient.d.ts +2 -9
- package/dist/functionSurfaceClient.js +1 -1460
- package/dist/gatewayFacades.d.ts +79 -296
- package/dist/gatewayFacades.factories.d.ts +209 -14
- package/dist/gatewayFacades.factories.js +561 -2227
- package/dist/gatewayFacades.js +284 -2627
- package/dist/generated/functionSurface.d.ts +149 -0
- package/dist/generated/functionSurface.js +749 -0
- package/dist/graphAnalysisClient.d.ts +41 -49
- package/dist/graphAnalysisClient.js +185 -974
- package/dist/graphClient.d.ts +53 -60
- package/dist/graphClient.js +219 -1090
- package/dist/graphIntel.d.ts +2 -4
- package/dist/graphIntel.js +1 -2
- package/dist/graphIntelligence.d.ts +4 -2
- package/dist/graphIntelligence.js +2 -46
- package/dist/graphRecommendationsClient.d.ts +15 -23
- package/dist/graphRecommendationsClient.js +70 -849
- package/dist/graphStateClassifierClient.d.ts +17 -25
- package/dist/graphStateClassifierClient.js +67 -908
- package/dist/harnessClient.d.ts +40 -47
- package/dist/harnessClient.js +198 -993
- package/dist/identityClient.d.ts +25 -33
- package/dist/identityClient.js +245 -1186
- package/dist/index.d.ts +73 -69
- package/dist/index.js +72 -13313
- package/dist/infisicalRuntime.d.ts +12 -14
- package/dist/infisicalRuntime.js +290 -297
- package/dist/jobsClient.d.ts +24 -32
- package/dist/jobsClient.js +101 -916
- package/dist/learningClient.d.ts +8 -16
- package/dist/learningClient.js +45 -809
- package/dist/lenses/index.d.ts +13 -65
- package/dist/lenses/index.js +11 -10175
- package/dist/mcpClient.d.ts +14 -23
- package/dist/mcpClient.js +115 -856
- package/dist/modelRuntimeClient.d.ts +18 -26
- package/dist/modelRuntimeClient.js +74 -894
- package/dist/nodes/index.d.ts +7 -58
- package/dist/nodes/index.js +14 -10177
- package/dist/ontologies/index.d.ts +21 -73
- package/dist/ontologies/index.js +14 -10178
- package/dist/ontologyClient.d.ts +23 -31
- package/dist/ontologyClient.js +138 -924
- package/dist/ontologyLinksClient.d.ts +16 -24
- package/dist/ontologyLinksClient.js +76 -886
- package/dist/opinion.d.ts +5 -6
- package/dist/opinion.js +21 -25
- package/dist/orgGraphSearchClient.d.ts +19 -27
- package/dist/orgGraphSearchClient.js +89 -857
- package/dist/packRuntime.d.ts +2 -2
- package/dist/packRuntime.js +1 -2
- package/dist/packsClient.d.ts +30 -37
- package/dist/packsClient.js +131 -906
- package/dist/policyClient.d.ts +21 -29
- package/dist/policyClient.js +267 -1026
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +9 -60
- package/dist/questions/index.js +15 -10178
- package/dist/realtime/index.d.ts +20 -16
- package/dist/realtime/index.js +30 -19
- package/dist/realtime/refs.d.ts +4 -6
- package/dist/realtime/refs.js +12 -7
- package/dist/realtime-refs.d.ts +1 -0
- package/dist/realtime-refs.js +1 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +1 -0
- package/dist/reportsClient.d.ts +10 -19
- package/dist/reportsClient.js +48 -836
- package/dist/schemaClient.d.ts +16 -23
- package/dist/schemaClient.js +62 -832
- package/dist/sdkSurface.d.ts +18 -25
- package/dist/sdkSurface.js +135 -106
- package/dist/secrets.d.ts +2 -1
- package/dist/secrets.js +1 -2
- package/dist/sourcesClient.d.ts +11 -18
- package/dist/sourcesClient.js +18 -741
- package/dist/telemetryClient.d.ts +22 -30
- package/dist/telemetryClient.js +107 -931
- package/dist/toolRegistryClient.d.ts +27 -35
- package/dist/toolRegistryClient.js +116 -954
- package/dist/topics/index.d.ts +13 -64
- package/dist/topics/index.js +15 -10178
- package/dist/topicsClient.d.ts +19 -27
- package/dist/topicsClient.js +106 -894
- package/dist/types.d.ts +84 -87
- package/dist/types.js +1 -2
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -5
- package/dist/workflowClient.d.ts +60 -65
- package/dist/workflowClient.js +343 -1219
- package/dist/worktrees/index.d.ts +16 -68
- package/dist/worktrees/index.js +14 -10178
- package/package.json +6 -6
- package/dist/accessControl.js.map +0 -1
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.js.map +0 -1
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.js.map +0 -1
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/clientAssemblyTypes.js.map +0 -1
- package/dist/clientConfig.js.map +0 -1
- package/dist/clientEvidenceCompat.js.map +0 -1
- package/dist/clientGraphNamespaces.js.map +0 -1
- package/dist/clientHelpers.js.map +0 -1
- package/dist/clientKnowledgeNamespaces.js.map +0 -1
- package/dist/clientLocalHelpers.js.map +0 -1
- package/dist/clientPlatformNamespaces.js.map +0 -1
- package/dist/clientRuntime.js.map +0 -1
- package/dist/clientWorkflowNamespaces.js.map +0 -1
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/tool-contracts.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.js.map +0 -1
- package/dist/control-plane.js.map +0 -1
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.js.map +0 -1
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.js.map +0 -1
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/gatewayFacades.factories.js.map +0 -1
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphClient.js.map +0 -1
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.js.map +0 -1
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js.map +0 -1
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/opinion.js.map +0 -1
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +0 -22
- package/dist/sdkSurface.js.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/sourcesClient.js.map +0 -1
- package/dist/telemetryClient.js.map +0 -1
- package/dist/tool-contracts-BUiL9P6z.d.ts +0 -22
- package/dist/toolRegistryClient.js.map +0 -1
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.js.map +0 -1
|
@@ -1,203 +1,196 @@
|
|
|
1
|
-
|
|
2
|
-
var CONTEXT_PACK_SCHEMA_VERSION = "1.0.0";
|
|
1
|
+
const CONTEXT_PACK_SCHEMA_VERSION = "1.0.0";
|
|
3
2
|
function isObject(value) {
|
|
4
|
-
|
|
3
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5
4
|
}
|
|
6
5
|
function isString(value) {
|
|
7
|
-
|
|
6
|
+
return typeof value === "string";
|
|
8
7
|
}
|
|
9
8
|
function isNumber(value) {
|
|
10
|
-
|
|
9
|
+
return typeof value === "number" && Number.isFinite(value);
|
|
11
10
|
}
|
|
12
11
|
function isNullableNumber(value) {
|
|
13
|
-
|
|
12
|
+
return value === null || isNumber(value);
|
|
14
13
|
}
|
|
15
14
|
function isStringArray(value) {
|
|
16
|
-
|
|
15
|
+
return Array.isArray(value) && value.every((entry) => isString(entry));
|
|
17
16
|
}
|
|
18
17
|
function requireObject(parent, key, errors) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const value = parent[key];
|
|
19
|
+
if (!isObject(value)) {
|
|
20
|
+
errors.push(`Expected '${key}' to be an object`);
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
25
24
|
}
|
|
26
25
|
function validateBeliefArray(key, value, errors) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
if (!Array.isArray(value)) {
|
|
27
|
+
errors.push(`Expected '${key}' to be an array`);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
31
|
+
const row = value[index];
|
|
32
|
+
if (!isObject(row)) {
|
|
33
|
+
errors.push(`Expected '${key}[${index}]' to be an object`);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if (!isString(row.nodeId)) {
|
|
37
|
+
errors.push(`Expected '${key}[${index}].nodeId' to be a string`);
|
|
38
|
+
}
|
|
39
|
+
if (!isString(row.canonicalText)) {
|
|
40
|
+
errors.push(`Expected '${key}[${index}].canonicalText' to be a string`);
|
|
41
|
+
}
|
|
42
|
+
if (!isNullableNumber(row.confidence)) {
|
|
43
|
+
errors.push(`Expected '${key}[${index}].confidence' to be number|null`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
47
46
|
}
|
|
48
47
|
function validateQuestionArray(key, value, errors) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
48
|
+
if (!Array.isArray(value)) {
|
|
49
|
+
errors.push(`Expected '${key}' to be an array`);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
53
|
+
const row = value[index];
|
|
54
|
+
if (!isObject(row)) {
|
|
55
|
+
errors.push(`Expected '${key}[${index}]' to be an object`);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if (!isString(row.questionId)) {
|
|
59
|
+
errors.push(`Expected '${key}[${index}].questionId' to be a string`);
|
|
60
|
+
}
|
|
61
|
+
if (!isString(row.text)) {
|
|
62
|
+
errors.push(`Expected '${key}[${index}].text' to be a string`);
|
|
63
|
+
}
|
|
64
|
+
if (!isString(row.status)) {
|
|
65
|
+
errors.push(`Expected '${key}[${index}].status' to be a string`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
69
68
|
}
|
|
70
69
|
function validateEvidenceArray(key, value, errors) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
70
|
+
if (!Array.isArray(value)) {
|
|
71
|
+
errors.push(`Expected '${key}' to be an array`);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
75
|
+
const row = value[index];
|
|
76
|
+
if (!isObject(row)) {
|
|
77
|
+
errors.push(`Expected '${key}[${index}]' to be an object`);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
if (!isString(row.nodeId)) {
|
|
81
|
+
errors.push(`Expected '${key}[${index}].nodeId' to be a string`);
|
|
82
|
+
}
|
|
83
|
+
if (!isString(row.canonicalText)) {
|
|
84
|
+
errors.push(`Expected '${key}[${index}].canonicalText' to be a string`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
88
87
|
}
|
|
89
88
|
function validateEntityArray(key, value, errors) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
89
|
+
if (!Array.isArray(value)) {
|
|
90
|
+
errors.push(`Expected '${key}' to be an array`);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
94
|
+
const row = value[index];
|
|
95
|
+
if (!isObject(row)) {
|
|
96
|
+
errors.push(`Expected '${key}[${index}]' to be an object`);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if (!isString(row.nodeId)) {
|
|
100
|
+
errors.push(`Expected '${key}[${index}].nodeId' to be a string`);
|
|
101
|
+
}
|
|
102
|
+
if (!isString(row.entityType)) {
|
|
103
|
+
errors.push(`Expected '${key}[${index}].entityType' to be a string`);
|
|
104
|
+
}
|
|
105
|
+
if (!isString(row.title)) {
|
|
106
|
+
errors.push(`Expected '${key}[${index}].title' to be a string`);
|
|
107
|
+
}
|
|
108
|
+
if (!isNumber(row.connectedBeliefCount)) {
|
|
109
|
+
errors.push(`Expected '${key}[${index}].connectedBeliefCount' to be a number`);
|
|
110
|
+
}
|
|
111
|
+
if (!isNumber(row.connectedEvidenceCount)) {
|
|
112
|
+
errors.push(`Expected '${key}[${index}].connectedEvidenceCount' to be a number`);
|
|
113
|
+
}
|
|
114
|
+
if (!isNumber(row.score)) {
|
|
115
|
+
errors.push(`Expected '${key}[${index}].score' to be a number`);
|
|
116
|
+
}
|
|
105
117
|
}
|
|
106
|
-
if (!isString(row.title)) {
|
|
107
|
-
errors.push(`Expected '${key}[${index}].title' to be a string`);
|
|
108
|
-
}
|
|
109
|
-
if (!isNumber(row.connectedBeliefCount)) {
|
|
110
|
-
errors.push(`Expected '${key}[${index}].connectedBeliefCount' to be a number`);
|
|
111
|
-
}
|
|
112
|
-
if (!isNumber(row.connectedEvidenceCount)) {
|
|
113
|
-
errors.push(`Expected '${key}[${index}].connectedEvidenceCount' to be a number`);
|
|
114
|
-
}
|
|
115
|
-
if (!isNumber(row.score)) {
|
|
116
|
-
errors.push(`Expected '${key}[${index}].score' to be a number`);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
118
|
}
|
|
120
119
|
function validateContradictionArray(key, value, errors) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
120
|
+
if (!Array.isArray(value)) {
|
|
121
|
+
errors.push(`Expected '${key}' to be an array`);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
125
|
+
const row = value[index];
|
|
126
|
+
if (!isObject(row)) {
|
|
127
|
+
errors.push(`Expected '${key}[${index}]' to be an object`);
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if (!isString(row.contradictionId)) {
|
|
131
|
+
errors.push(`Expected '${key}[${index}].contradictionId' to be a string`);
|
|
132
|
+
}
|
|
133
|
+
if (!isString(row.status)) {
|
|
134
|
+
errors.push(`Expected '${key}[${index}].status' to be a string`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
138
137
|
}
|
|
139
|
-
function validateContextPackSchema(payload) {
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
export function validateContextPackSchema(payload) {
|
|
139
|
+
const errors = [];
|
|
140
|
+
if (!isObject(payload)) {
|
|
141
|
+
return {
|
|
142
|
+
valid: false,
|
|
143
|
+
errors: ["Expected context pack payload to be an object"],
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
if (payload.schemaVersion !== CONTEXT_PACK_SCHEMA_VERSION) {
|
|
147
|
+
errors.push(`Expected schemaVersion='${CONTEXT_PACK_SCHEMA_VERSION}', received '${String(payload.schemaVersion)}'`);
|
|
148
|
+
}
|
|
149
|
+
if (!isString(payload.topicId)) {
|
|
150
|
+
errors.push("Expected 'topicId' to be a string");
|
|
151
|
+
}
|
|
152
|
+
if (!isString(payload.topicName)) {
|
|
153
|
+
errors.push("Expected 'topicName' to be a string");
|
|
154
|
+
}
|
|
155
|
+
if (!isStringArray(payload.scopedTopicIds)) {
|
|
156
|
+
errors.push("Expected 'scopedTopicIds' to be string[]");
|
|
157
|
+
}
|
|
158
|
+
if (!isNumber(payload.generatedAt)) {
|
|
159
|
+
errors.push("Expected 'generatedAt' to be a number");
|
|
160
|
+
}
|
|
161
|
+
if (!isString(payload.ranking)) {
|
|
162
|
+
errors.push("Expected 'ranking' to be a string");
|
|
163
|
+
}
|
|
164
|
+
validateBeliefArray("invariants", payload.invariants, errors);
|
|
165
|
+
validateBeliefArray("activeBeliefs", payload.activeBeliefs, errors);
|
|
166
|
+
validateQuestionArray("openQuestions", payload.openQuestions, errors);
|
|
167
|
+
validateEvidenceArray("recentEvidence", payload.recentEvidence, errors);
|
|
168
|
+
validateContradictionArray("contradictions", payload.contradictions, errors);
|
|
169
|
+
if (payload.relatedEntities !== undefined &&
|
|
170
|
+
payload.relatedEntities !== null) {
|
|
171
|
+
validateEntityArray("relatedEntities", payload.relatedEntities, errors);
|
|
172
|
+
}
|
|
173
|
+
if (!Array.isArray(payload.contextNarrative)) {
|
|
174
|
+
errors.push("Expected 'contextNarrative' to be an array");
|
|
175
|
+
}
|
|
176
|
+
const injectionPolicy = requireObject(payload, "injectionPolicy", errors);
|
|
177
|
+
if (injectionPolicy) {
|
|
178
|
+
if (!isNumber(injectionPolicy.tokenBudget)) {
|
|
179
|
+
errors.push("Expected 'injectionPolicy.tokenBudget' to be a number");
|
|
180
|
+
}
|
|
181
|
+
if (!isNumber(injectionPolicy.estimatedTokens)) {
|
|
182
|
+
errors.push("Expected 'injectionPolicy.estimatedTokens' to be a number");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (!isObject(payload.summary)) {
|
|
186
|
+
errors.push("Expected 'summary' to be an object");
|
|
187
|
+
}
|
|
188
|
+
if (!isObject(payload.diagnostics)) {
|
|
189
|
+
errors.push("Expected 'diagnostics' to be an object");
|
|
190
|
+
}
|
|
142
191
|
return {
|
|
143
|
-
|
|
144
|
-
|
|
192
|
+
valid: errors.length === 0,
|
|
193
|
+
errors,
|
|
145
194
|
};
|
|
146
|
-
}
|
|
147
|
-
if (payload.schemaVersion !== CONTEXT_PACK_SCHEMA_VERSION) {
|
|
148
|
-
errors.push(
|
|
149
|
-
`Expected schemaVersion='${CONTEXT_PACK_SCHEMA_VERSION}', received '${String(
|
|
150
|
-
payload.schemaVersion
|
|
151
|
-
)}'`
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
if (!isString(payload.topicId)) {
|
|
155
|
-
errors.push("Expected 'topicId' to be a string");
|
|
156
|
-
}
|
|
157
|
-
if (!isString(payload.topicName)) {
|
|
158
|
-
errors.push("Expected 'topicName' to be a string");
|
|
159
|
-
}
|
|
160
|
-
if (!isStringArray(payload.scopedTopicIds)) {
|
|
161
|
-
errors.push("Expected 'scopedTopicIds' to be string[]");
|
|
162
|
-
}
|
|
163
|
-
if (!isNumber(payload.generatedAt)) {
|
|
164
|
-
errors.push("Expected 'generatedAt' to be a number");
|
|
165
|
-
}
|
|
166
|
-
if (!isString(payload.ranking)) {
|
|
167
|
-
errors.push("Expected 'ranking' to be a string");
|
|
168
|
-
}
|
|
169
|
-
validateBeliefArray("invariants", payload.invariants, errors);
|
|
170
|
-
validateBeliefArray("activeBeliefs", payload.activeBeliefs, errors);
|
|
171
|
-
validateQuestionArray("openQuestions", payload.openQuestions, errors);
|
|
172
|
-
validateEvidenceArray("recentEvidence", payload.recentEvidence, errors);
|
|
173
|
-
validateContradictionArray("contradictions", payload.contradictions, errors);
|
|
174
|
-
if (payload.relatedEntities !== void 0 && payload.relatedEntities !== null) {
|
|
175
|
-
validateEntityArray("relatedEntities", payload.relatedEntities, errors);
|
|
176
|
-
}
|
|
177
|
-
if (!Array.isArray(payload.contextNarrative)) {
|
|
178
|
-
errors.push("Expected 'contextNarrative' to be an array");
|
|
179
|
-
}
|
|
180
|
-
const injectionPolicy = requireObject(payload, "injectionPolicy", errors);
|
|
181
|
-
if (injectionPolicy) {
|
|
182
|
-
if (!isNumber(injectionPolicy.tokenBudget)) {
|
|
183
|
-
errors.push("Expected 'injectionPolicy.tokenBudget' to be a number");
|
|
184
|
-
}
|
|
185
|
-
if (!isNumber(injectionPolicy.estimatedTokens)) {
|
|
186
|
-
errors.push("Expected 'injectionPolicy.estimatedTokens' to be a number");
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
if (!isObject(payload.summary)) {
|
|
190
|
-
errors.push("Expected 'summary' to be an object");
|
|
191
|
-
}
|
|
192
|
-
if (!isObject(payload.diagnostics)) {
|
|
193
|
-
errors.push("Expected 'diagnostics' to be an object");
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
valid: errors.length === 0,
|
|
197
|
-
errors
|
|
198
|
-
};
|
|
199
195
|
}
|
|
200
|
-
|
|
201
|
-
export { validateContextPackSchema };
|
|
202
|
-
//# sourceMappingURL=contextPackSchema.js.map
|
|
203
196
|
//# sourceMappingURL=contextPackSchema.js.map
|
package/dist/contextTypes.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
type ContextRankingProfile = "baseline_v1" | "hybrid_v1" | "weighted_v1";
|
|
2
|
-
type ContextCompilationMode = "standard" | "delta";
|
|
3
|
-
type ContextPackSectionKey = "invariants" | "activeBeliefs" | "openQuestions" | "recentEvidence" | "contradictions";
|
|
4
|
-
type RankingWeightVector = {
|
|
1
|
+
export type ContextRankingProfile = "baseline_v1" | "hybrid_v1" | "weighted_v1";
|
|
2
|
+
export type ContextCompilationMode = "standard" | "delta";
|
|
3
|
+
export type ContextPackSectionKey = "invariants" | "activeBeliefs" | "openQuestions" | "recentEvidence" | "contradictions";
|
|
4
|
+
export type RankingWeightVector = {
|
|
5
5
|
query: number;
|
|
6
6
|
recency: number;
|
|
7
7
|
confidence?: number;
|
|
@@ -9,11 +9,11 @@ type RankingWeightVector = {
|
|
|
9
9
|
priority?: number;
|
|
10
10
|
severity?: number;
|
|
11
11
|
};
|
|
12
|
-
type PackWeightOverride = {
|
|
12
|
+
export type PackWeightOverride = {
|
|
13
13
|
section: ContextPackSectionKey;
|
|
14
14
|
weights: Partial<RankingWeightVector>;
|
|
15
15
|
};
|
|
16
|
-
type CompileContextInput = {
|
|
16
|
+
export type CompileContextInput = {
|
|
17
17
|
/** Optional explicit topic. Omit to resolve by query. */
|
|
18
18
|
topicId?: string;
|
|
19
19
|
query?: string;
|
|
@@ -30,7 +30,7 @@ type CompileContextInput = {
|
|
|
30
30
|
tokenBudget?: number;
|
|
31
31
|
rankingProfile?: ContextRankingProfile;
|
|
32
32
|
};
|
|
33
|
-
type PublicContextBelief = {
|
|
33
|
+
export type PublicContextBelief = {
|
|
34
34
|
beliefId: string;
|
|
35
35
|
text: string;
|
|
36
36
|
confidence: number | null;
|
|
@@ -40,7 +40,7 @@ type PublicContextBelief = {
|
|
|
40
40
|
score: number;
|
|
41
41
|
justification?: string;
|
|
42
42
|
};
|
|
43
|
-
type PublicContextQuestion = {
|
|
43
|
+
export type PublicContextQuestion = {
|
|
44
44
|
questionId: string;
|
|
45
45
|
text: string;
|
|
46
46
|
status: string;
|
|
@@ -49,7 +49,7 @@ type PublicContextQuestion = {
|
|
|
49
49
|
score: number;
|
|
50
50
|
justification?: string;
|
|
51
51
|
};
|
|
52
|
-
type PublicContextEvidence = {
|
|
52
|
+
export type PublicContextEvidence = {
|
|
53
53
|
evidenceId: string;
|
|
54
54
|
text: string;
|
|
55
55
|
sourceUrl?: string | null;
|
|
@@ -58,7 +58,7 @@ type PublicContextEvidence = {
|
|
|
58
58
|
score: number;
|
|
59
59
|
justification?: string;
|
|
60
60
|
};
|
|
61
|
-
type PublicContextContradiction = {
|
|
61
|
+
export type PublicContextContradiction = {
|
|
62
62
|
contradictionId: string;
|
|
63
63
|
severity: string;
|
|
64
64
|
status: string;
|
|
@@ -66,7 +66,7 @@ type PublicContextContradiction = {
|
|
|
66
66
|
score: number;
|
|
67
67
|
justification?: string;
|
|
68
68
|
};
|
|
69
|
-
type PublicContextEntity = {
|
|
69
|
+
export type PublicContextEntity = {
|
|
70
70
|
entityId: string;
|
|
71
71
|
entityType: string;
|
|
72
72
|
title: string;
|
|
@@ -76,7 +76,7 @@ type PublicContextEntity = {
|
|
|
76
76
|
score: number;
|
|
77
77
|
metadata?: Record<string, unknown>;
|
|
78
78
|
};
|
|
79
|
-
type PublicContextInjectionPolicy = {
|
|
79
|
+
export type PublicContextInjectionPolicy = {
|
|
80
80
|
tokenBudget: number;
|
|
81
81
|
estimatedTokens: number;
|
|
82
82
|
sectionBudgets: Record<string, number>;
|
|
@@ -89,7 +89,7 @@ type PublicContextInjectionPolicy = {
|
|
|
89
89
|
score: number;
|
|
90
90
|
}>;
|
|
91
91
|
};
|
|
92
|
-
type PublicCompiledContext = {
|
|
92
|
+
export type PublicCompiledContext = {
|
|
93
93
|
schemaVersion: string;
|
|
94
94
|
topicId: string;
|
|
95
95
|
topicName: string;
|
|
@@ -133,5 +133,4 @@ type PublicCompiledContext = {
|
|
|
133
133
|
};
|
|
134
134
|
appliedWeightOverrides?: unknown[];
|
|
135
135
|
};
|
|
136
|
-
|
|
137
|
-
export type { CompileContextInput, ContextCompilationMode, ContextPackSectionKey, ContextRankingProfile, PackWeightOverride, PublicCompiledContext, PublicContextBelief, PublicContextContradiction, PublicContextEntity, PublicContextEvidence, PublicContextInjectionPolicy, PublicContextQuestion, RankingWeightVector };
|
|
136
|
+
//# sourceMappingURL=contextTypes.d.ts.map
|
package/dist/contextTypes.js
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* - belief: Validated through investigation, carries confidence score
|
|
15
15
|
* - fact: Resolved outcome anchored by strong evidence
|
|
16
16
|
*/
|
|
17
|
-
declare const BELIEF_STATUSES: readonly ["assumption", "hypothesis", "belief", "fact"];
|
|
18
|
-
type BeliefStatus = (typeof BELIEF_STATUSES)[number];
|
|
17
|
+
export declare const BELIEF_STATUSES: readonly ["assumption", "hypothesis", "belief", "fact"];
|
|
18
|
+
export type BeliefStatus = (typeof BELIEF_STATUSES)[number];
|
|
19
19
|
/** Why a scored belief was branched into a new version */
|
|
20
|
-
declare const FORK_REASONS: readonly ["refinement", "contradiction_response", "scope_change", "confidence_collapse", "manual"];
|
|
21
|
-
type ForkReason = (typeof FORK_REASONS)[number];
|
|
20
|
+
export declare const FORK_REASONS: readonly ["refinement", "contradiction_response", "scope_change", "confidence_collapse", "manual"];
|
|
21
|
+
export type ForkReason = (typeof FORK_REASONS)[number];
|
|
22
22
|
/** What caused a confidence change — every modulation must declare its trigger */
|
|
23
|
-
declare const CONFIDENCE_TRIGGERS: readonly ["evidence_added", "evidence_removed", "contradiction_detected", "contradiction_resolved", "agent_assessment", "worktree_outcome", "worktree_completed", "manual", "decay", "fusion", "discount", "deduction"];
|
|
24
|
-
type ConfidenceTrigger = (typeof CONFIDENCE_TRIGGERS)[number];
|
|
23
|
+
export declare const CONFIDENCE_TRIGGERS: readonly ["evidence_added", "evidence_removed", "contradiction_detected", "contradiction_resolved", "agent_assessment", "worktree_outcome", "worktree_completed", "manual", "decay", "fusion", "discount", "deduction"];
|
|
24
|
+
export type ConfidenceTrigger = (typeof CONFIDENCE_TRIGGERS)[number];
|
|
25
25
|
/**
|
|
26
26
|
* Core epistemic edge types — the grammar of reasoning relationships.
|
|
27
27
|
*
|
|
@@ -32,32 +32,32 @@ type ConfidenceTrigger = (typeof CONFIDENCE_TRIGGERS)[number];
|
|
|
32
32
|
* - contains: Structural containment (topic contains beliefs)
|
|
33
33
|
* - tests: Question tests a belief (falsification link)
|
|
34
34
|
*/
|
|
35
|
-
declare const EPISTEMIC_EDGE_TYPES: readonly ["supports", "informs", "depends_on", "derived_from", "contains", "tests"];
|
|
36
|
-
type EpistemicEdgeType = (typeof EPISTEMIC_EDGE_TYPES)[number];
|
|
35
|
+
export declare const EPISTEMIC_EDGE_TYPES: readonly ["supports", "informs", "depends_on", "derived_from", "contains", "tests"];
|
|
36
|
+
export type EpistemicEdgeType = (typeof EPISTEMIC_EDGE_TYPES)[number];
|
|
37
37
|
/** Structural and lifecycle edges — required for graph integrity */
|
|
38
|
-
declare const STRUCTURAL_EDGE_TYPES: readonly ["supersedes", "responds_to", "belongs_to", "relates_to_thesis"];
|
|
39
|
-
type StructuralEdgeType = (typeof STRUCTURAL_EDGE_TYPES)[number];
|
|
38
|
+
export declare const STRUCTURAL_EDGE_TYPES: readonly ["supersedes", "responds_to", "belongs_to", "relates_to_thesis"];
|
|
39
|
+
export type StructuralEdgeType = (typeof STRUCTURAL_EDGE_TYPES)[number];
|
|
40
40
|
/** All valid edge types (epistemic + structural) */
|
|
41
|
-
declare const EDGE_TYPES: readonly ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis"];
|
|
42
|
-
type EdgeType = EpistemicEdgeType | StructuralEdgeType;
|
|
41
|
+
export declare const EDGE_TYPES: readonly ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis"];
|
|
42
|
+
export type EdgeType = EpistemicEdgeType | StructuralEdgeType;
|
|
43
43
|
/** How an edge relationship was determined */
|
|
44
|
-
declare const REASONING_METHODS: readonly ["deductive", "inductive", "abductive", "analogical", "causal", "correlational", "testimonial", "statistical", "implicit", "pattern_match"];
|
|
45
|
-
type ReasoningMethod = (typeof REASONING_METHODS)[number];
|
|
44
|
+
export declare const REASONING_METHODS: readonly ["deductive", "inductive", "abductive", "analogical", "causal", "correlational", "testimonial", "statistical", "implicit", "pattern_match"];
|
|
45
|
+
export type ReasoningMethod = (typeof REASONING_METHODS)[number];
|
|
46
46
|
/** Defeat types (Pollock taxonomy) — how a contradiction operates */
|
|
47
|
-
declare const DEFEAT_TYPES: readonly ["rebuts", "undercuts", "undermines"];
|
|
48
|
-
type DefeatType = (typeof DEFEAT_TYPES)[number];
|
|
47
|
+
export declare const DEFEAT_TYPES: readonly ["rebuts", "undercuts", "undermines"];
|
|
48
|
+
export type DefeatType = (typeof DEFEAT_TYPES)[number];
|
|
49
49
|
/** Contradiction severity */
|
|
50
|
-
declare const CONTRADICTION_SEVERITIES: readonly ["low", "medium", "high", "critical"];
|
|
51
|
-
type ContradictionSeverity = (typeof CONTRADICTION_SEVERITIES)[number];
|
|
50
|
+
export declare const CONTRADICTION_SEVERITIES: readonly ["low", "medium", "high", "critical"];
|
|
51
|
+
export type ContradictionSeverity = (typeof CONTRADICTION_SEVERITIES)[number];
|
|
52
52
|
/** Contradiction resolution status */
|
|
53
|
-
declare const CONTRADICTION_STATUSES: readonly ["unresolved", "resolved", "accepted"];
|
|
54
|
-
type ContradictionStatus = (typeof CONTRADICTION_STATUSES)[number];
|
|
53
|
+
export declare const CONTRADICTION_STATUSES: readonly ["unresolved", "resolved", "accepted"];
|
|
54
|
+
export type ContradictionStatus = (typeof CONTRADICTION_STATUSES)[number];
|
|
55
55
|
/** How a worktree investigation concluded */
|
|
56
|
-
declare const MERGE_OUTCOMES: readonly ["validated", "invalidated", "forked", "inconclusive"];
|
|
57
|
-
type MergeOutcome = (typeof MERGE_OUTCOMES)[number];
|
|
56
|
+
export declare const MERGE_OUTCOMES: readonly ["validated", "invalidated", "forked", "inconclusive"];
|
|
57
|
+
export type MergeOutcome = (typeof MERGE_OUTCOMES)[number];
|
|
58
58
|
/** Investigation phases within a worktree */
|
|
59
|
-
declare const WORKTREE_PHASES: readonly ["hypothesis", "investigation", "evaluation", "resolution"];
|
|
60
|
-
type WorktreePhase = (typeof WORKTREE_PHASES)[number];
|
|
59
|
+
export declare const WORKTREE_PHASES: readonly ["hypothesis", "investigation", "evaluation", "resolution"];
|
|
60
|
+
export type WorktreePhase = (typeof WORKTREE_PHASES)[number];
|
|
61
61
|
/**
|
|
62
62
|
* The knowledge hierarchy — each layer builds on the one below it.
|
|
63
63
|
*
|
|
@@ -66,8 +66,8 @@ type WorktreePhase = (typeof WORKTREE_PHASES)[number];
|
|
|
66
66
|
* - L3: Beliefs — structural claims that carry confidence
|
|
67
67
|
* - L4: Judgments — irreversible commitments based on the epistemic state
|
|
68
68
|
*/
|
|
69
|
-
declare const EPISTEMIC_LAYERS: readonly ["L1", "L2", "L3", "L4"];
|
|
70
|
-
type EpistemicLayer = (typeof EPISTEMIC_LAYERS)[number];
|
|
69
|
+
export declare const EPISTEMIC_LAYERS: readonly ["L1", "L2", "L3", "L4"];
|
|
70
|
+
export type EpistemicLayer = (typeof EPISTEMIC_LAYERS)[number];
|
|
71
71
|
/**
|
|
72
72
|
* Classification of L4 judgments — irreversible determinations.
|
|
73
73
|
*
|
|
@@ -75,7 +75,6 @@ type EpistemicLayer = (typeof EPISTEMIC_LAYERS)[number];
|
|
|
75
75
|
* when they were made. They cannot be retroactively invalidated —
|
|
76
76
|
* only new judgments can supersede old ones.
|
|
77
77
|
*/
|
|
78
|
-
declare const JUDGMENT_TYPES: readonly ["thesis", "thesis_maturity", "contradiction_ruling", "scope_determination", "confidence_ruling"];
|
|
79
|
-
type JudgmentType = (typeof JUDGMENT_TYPES)[number];
|
|
80
|
-
|
|
81
|
-
export { BELIEF_STATUSES, type BeliefStatus, CONFIDENCE_TRIGGERS, CONTRADICTION_SEVERITIES, CONTRADICTION_STATUSES, type ConfidenceTrigger, type ContradictionSeverity, type ContradictionStatus, DEFEAT_TYPES, type DefeatType, EDGE_TYPES, EPISTEMIC_EDGE_TYPES, EPISTEMIC_LAYERS, type EdgeType, type EpistemicEdgeType, type EpistemicLayer, FORK_REASONS, type ForkReason, JUDGMENT_TYPES, type JudgmentType, MERGE_OUTCOMES, type MergeOutcome, REASONING_METHODS, type ReasoningMethod, STRUCTURAL_EDGE_TYPES, type StructuralEdgeType, WORKTREE_PHASES, type WorktreePhase };
|
|
78
|
+
export declare const JUDGMENT_TYPES: readonly ["thesis", "thesis_maturity", "contradiction_ruling", "scope_determination", "confidence_ruling"];
|
|
79
|
+
export type JudgmentType = (typeof JUDGMENT_TYPES)[number];
|
|
80
|
+
//# sourceMappingURL=api-enums.contract.d.ts.map
|