@lucern/contracts 1.0.0 → 1.0.1
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 +4 -1
- package/dist/dsl.d.ts +75 -4
- package/dist/dsl.values-rhsroqi0.d.ts +21 -0
- package/dist/dsl.values.d.ts +5 -0
- package/dist/dsl.values.js +675 -0
- package/dist/dsl.values.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +1 -17
- package/dist/function-registry/beliefs.js +155 -117
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +1 -17
- package/dist/function-registry/coding.js +155 -117
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +1 -17
- package/dist/function-registry/context.js +155 -117
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +1 -17
- package/dist/function-registry/contracts.js +155 -117
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +1 -17
- package/dist/function-registry/coordination.js +155 -117
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +1 -17
- package/dist/function-registry/edges.js +155 -117
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +1 -17
- package/dist/function-registry/evidence.js +155 -117
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +1 -17
- package/dist/function-registry/graph.js +155 -117
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/helpers.js +155 -117
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +1 -17
- package/dist/function-registry/identity.js +155 -117
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +158 -118
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +1 -17
- package/dist/function-registry/judgments.js +155 -117
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -17
- package/dist/function-registry/legacy.js +155 -117
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +1 -17
- package/dist/function-registry/lenses.js +155 -117
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +1 -0
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +1 -17
- package/dist/function-registry/nodes.js +155 -117
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +1 -17
- package/dist/function-registry/ontologies.js +155 -117
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +1 -17
- package/dist/function-registry/pipeline.js +155 -117
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +1 -17
- package/dist/function-registry/questions.js +155 -117
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +1 -17
- package/dist/function-registry/tasks.js +155 -117
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +1 -17
- package/dist/function-registry/topics.js +155 -117
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +2 -2
- package/dist/function-registry/worktrees.d.ts +41 -17
- package/dist/function-registry/worktrees.js +174 -117
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/lucernWebPublicEnv.js.map +1 -1
- package/dist/generated/lucernWebServerEnv.js.map +1 -1
- package/dist/{idOf-DR8tkhQS.d.ts → idOf-BmkVDhD8.d.ts} +1 -1
- package/dist/index.d.ts +47 -8
- package/dist/index.js +45072 -45005
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.base.d.ts +444 -0
- package/dist/infisical-runtime.base.js +640 -0
- package/dist/infisical-runtime.base.js.map +1 -0
- package/dist/infisical-runtime.contract.d.ts +9 -440
- package/dist/infisical-runtime.contract.js +14 -1
- package/dist/infisical-runtime.contract.js.map +1 -1
- package/dist/infisical-runtime.platform-ops-secrets.d.ts +743 -0
- package/dist/infisical-runtime.platform-ops-secrets.js +962 -0
- package/dist/infisical-runtime.platform-ops-secrets.js.map +1 -0
- package/dist/infisical-runtime.platform-secrets.d.ts +598 -0
- package/dist/infisical-runtime.platform-secrets.js +726 -0
- package/dist/infisical-runtime.platform-secrets.js.map +1 -0
- package/dist/infisical-runtime.tenant-secrets.d.ts +486 -0
- package/dist/infisical-runtime.tenant-secrets.js +1131 -0
- package/dist/infisical-runtime.tenant-secrets.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.d.ts +1 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +1 -1
- package/dist/manifests/infisical-runtime-manifest.js +14 -1
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
- package/dist/manifests/tenant-client-manifest.d.ts +5 -1
- package/dist/manifests/tenant-client-manifest.js +5 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -1
- package/dist/proof-attestation.json +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +61 -61
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +1 -1
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +1 -1
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +1 -1
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +1 -1
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +1 -1
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +9 -9
- package/dist/schemas/tables/mc/policy.d.ts +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +1 -1
- package/dist/schemas.values-5J5oIK7z.d.ts +26 -0
- package/dist/schemas.values.d.ts +7 -0
- package/dist/schemas.values.js +5324 -0
- package/dist/schemas.values.js.map +1 -0
- package/dist/sdk-tools.contract.analytics.d.ts +27 -0
- package/dist/sdk-tools.contract.analytics.js +616 -0
- package/dist/sdk-tools.contract.analytics.js.map +1 -0
- package/dist/sdk-tools.contract.d.ts +43 -2
- package/dist/sdk-tools.contract.graph.d.ts +11 -0
- package/dist/sdk-tools.contract.graph.js +156 -0
- package/dist/sdk-tools.contract.graph.js.map +1 -0
- package/dist/sdk-tools.contract.js +4107 -4062
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/sdk-tools.contract.registry.d.ts +25 -0
- package/dist/sdk-tools.contract.registry.js +5504 -0
- package/dist/sdk-tools.contract.registry.js.map +1 -0
- package/dist/sdk-tools.contract.types.d.ts +15 -0
- package/dist/sdk-tools.contract.types.js +3 -0
- package/dist/sdk-tools.contract.types.js.map +1 -0
- package/dist/sdk-tools.contract.values-LuBh95zg.d.ts +58 -0
- package/dist/sdk-tools.contract.values.d.ts +7 -0
- package/dist/sdk-tools.contract.values.js +5581 -0
- package/dist/sdk-tools.contract.values.js.map +1 -0
- package/dist/sdk-tools.contract.workflow.d.ts +17 -0
- package/dist/sdk-tools.contract.workflow.js +287 -0
- package/dist/sdk-tools.contract.workflow.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +5 -1
- package/dist/tenant-client.contract.js +5 -0
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/tool-contracts.d.ts +34 -1
- package/dist/tool-contracts.graph.d.ts +18 -0
- package/dist/tool-contracts.graph.js +378 -0
- package/dist/tool-contracts.graph.js.map +1 -0
- package/dist/tool-contracts.intelligence-evidence.d.ts +15 -0
- package/dist/tool-contracts.intelligence-evidence.js +303 -0
- package/dist/tool-contracts.intelligence-evidence.js.map +1 -0
- package/dist/tool-contracts.js +155 -118
- package/dist/tool-contracts.js.map +1 -1
- package/dist/tool-contracts.lifecycle.d.ts +13 -0
- package/dist/tool-contracts.lifecycle.js +410 -0
- package/dist/tool-contracts.lifecycle.js.map +1 -0
- package/dist/tool-contracts.nodes-lenses.d.ts +17 -0
- package/dist/tool-contracts.nodes-lenses.js +334 -0
- package/dist/tool-contracts.nodes-lenses.js.map +1 -0
- package/dist/tool-contracts.ontology.d.ts +16 -0
- package/dist/tool-contracts.ontology.js +344 -0
- package/dist/tool-contracts.ontology.js.map +1 -0
- package/dist/tool-contracts.pipeline-coordination.d.ts +25 -0
- package/dist/tool-contracts.pipeline-coordination.js +684 -0
- package/dist/tool-contracts.pipeline-coordination.js.map +1 -0
- package/dist/tool-contracts.policy-observation-task-topic.d.ts +25 -0
- package/dist/tool-contracts.policy-observation-task-topic.js +740 -0
- package/dist/tool-contracts.policy-observation-task-topic.js.map +1 -0
- package/dist/tool-contracts.questions-listing.d.ts +27 -0
- package/dist/tool-contracts.questions-listing.js +782 -0
- package/dist/tool-contracts.questions-listing.js.map +1 -0
- package/dist/tool-contracts.types.d.ts +34 -0
- package/dist/tool-contracts.types.js +3 -0
- package/dist/tool-contracts.types.js.map +1 -0
- package/dist/tool-contracts.values-DjctSW7S.d.ts +147 -0
- package/dist/tool-contracts.values.d.ts +11 -0
- package/dist/tool-contracts.values.js +4398 -0
- package/dist/tool-contracts.values.js.map +1 -0
- package/dist/tool-contracts.worktrees.d.ts +8 -0
- package/dist/tool-contracts.worktrees.js +280 -0
- package/dist/tool-contracts.worktrees.js.map +1 -0
- package/package.json +3 -11
- package/dist/dsl-DVPthQGY.d.ts +0 -110
- package/dist/index-CM1Pl_vI.d.ts +0 -28
- package/dist/sdk-tools.contract-CKmSsrZ2.d.ts +0 -146
- package/dist/tool-contracts-C_xvM9q2.d.ts +0 -326
- package/dist/{edge-policy-manifest-Dw5IhT1L.d.ts → edge-policy-manifest-4KOSP4nk.d.ts} +2 -2
|
@@ -24,7 +24,7 @@ export { legacyContracts } from './legacy.js';
|
|
|
24
24
|
export { NODE_TYPE } from '../schemas/enums.js';
|
|
25
25
|
import 'zod';
|
|
26
26
|
import '../defineFunction-DO97DKs4.js';
|
|
27
|
-
import '../tool-contracts
|
|
27
|
+
import '../tool-contracts.types.js';
|
|
28
28
|
|
|
29
29
|
declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
|
|
30
30
|
declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
|
|
@@ -40,30 +40,7 @@ import { z } from 'zod';
|
|
|
40
40
|
|
|
41
41
|
// src/function-registry/index.ts
|
|
42
42
|
|
|
43
|
-
// src/
|
|
44
|
-
var REASONING_METHODS = [
|
|
45
|
-
"deductive",
|
|
46
|
-
"inductive",
|
|
47
|
-
"abductive",
|
|
48
|
-
"analogical",
|
|
49
|
-
"causal",
|
|
50
|
-
"correlational",
|
|
51
|
-
"testimonial",
|
|
52
|
-
"statistical",
|
|
53
|
-
"implicit",
|
|
54
|
-
"pattern_match"
|
|
55
|
-
];
|
|
56
|
-
|
|
57
|
-
// src/lens-workflow.contract.ts
|
|
58
|
-
var LENS_PERSPECTIVE_TYPES = [
|
|
59
|
-
"investigation",
|
|
60
|
-
"monitoring",
|
|
61
|
-
"analysis",
|
|
62
|
-
"comparison",
|
|
63
|
-
"taxonomy"
|
|
64
|
-
];
|
|
65
|
-
|
|
66
|
-
// src/tool-contracts.ts
|
|
43
|
+
// src/tool-contracts.lifecycle.ts
|
|
67
44
|
var CREATE_BELIEF = {
|
|
68
45
|
name: "create_belief",
|
|
69
46
|
description: "Commit a new belief (knowledge unit) to the reasoning graph. Like `git commit` \u2014 creates an atomic, traceable knowledge object with a prior. Creation stores the vacuous opinion `(0, 0, 1, a)`; use modulate_confidence to record the first evidential update.",
|
|
@@ -469,6 +446,8 @@ var FLAG_CONTRADICTION = {
|
|
|
469
446
|
ontologyPrimitive: "belief",
|
|
470
447
|
tier: "showcase"
|
|
471
448
|
};
|
|
449
|
+
|
|
450
|
+
// src/tool-contracts.worktrees.ts
|
|
472
451
|
var ADD_WORKTREE = {
|
|
473
452
|
name: "add_worktree",
|
|
474
453
|
description: "Check out a branch into an active worktree for investigation. Like `git worktree add <branch>` \u2014 creates independent working state on a thematic branch. Beliefs committed within the worktree can be freely amended (draft code on a feature branch). When investigation is complete, `merge` integrates findings into main.",
|
|
@@ -684,6 +663,82 @@ var MERGE = {
|
|
|
684
663
|
ontologyPrimitive: "worktree",
|
|
685
664
|
tier: "showcase"
|
|
686
665
|
};
|
|
666
|
+
var PUSH = {
|
|
667
|
+
name: "push",
|
|
668
|
+
description: "Push scored beliefs from a merged worktree to other contexts. Like `git push` \u2014 makes local findings available on the remote. Only merged beliefs can be pushed. Publication makes findings visible to other projects, teams, or external consumers.",
|
|
669
|
+
parameters: {
|
|
670
|
+
worktreeId: {
|
|
671
|
+
type: "string",
|
|
672
|
+
description: "The merged worktree whose findings to push"
|
|
673
|
+
},
|
|
674
|
+
targetContext: {
|
|
675
|
+
type: "string",
|
|
676
|
+
description: "Where to push (e.g., 'portfolio', 'ic_review', 'external')"
|
|
677
|
+
},
|
|
678
|
+
beliefIds: {
|
|
679
|
+
type: "array",
|
|
680
|
+
description: "Optional subset of beliefs to push (default: all scored)"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
required: ["worktreeId", "targetContext"],
|
|
684
|
+
response: {
|
|
685
|
+
description: "Push result",
|
|
686
|
+
fields: {
|
|
687
|
+
pushedCount: "number",
|
|
688
|
+
targetContext: "string",
|
|
689
|
+
pushedAt: "number"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
ownerModule: "workflow-engine",
|
|
693
|
+
ontologyPrimitive: "worktree",
|
|
694
|
+
tier: "workhorse"
|
|
695
|
+
};
|
|
696
|
+
var OPEN_PULL_REQUEST = {
|
|
697
|
+
name: "open_pull_request",
|
|
698
|
+
description: "Open a pull request for peer review before merging a worktree. Like opening a `git pull request` \u2014 the worktree's findings are ready but await approval before merge. Reviewers can approve, request changes, or block the merge. This is the gate between draft work and scored knowledge.",
|
|
699
|
+
parameters: {
|
|
700
|
+
worktreeId: {
|
|
701
|
+
type: "string",
|
|
702
|
+
description: "The worktree to submit for review"
|
|
703
|
+
},
|
|
704
|
+
reviewers: {
|
|
705
|
+
type: "array",
|
|
706
|
+
description: "User IDs of requested reviewers"
|
|
707
|
+
},
|
|
708
|
+
summary: {
|
|
709
|
+
type: "string",
|
|
710
|
+
description: "Summary of findings and why they're ready for merge"
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
required: ["worktreeId", "summary"],
|
|
714
|
+
response: {
|
|
715
|
+
description: "The pull request",
|
|
716
|
+
fields: {
|
|
717
|
+
pullRequestId: "string",
|
|
718
|
+
worktreeId: "string",
|
|
719
|
+
status: "string \u2014 'pending_review'"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
ownerModule: "workflow-engine",
|
|
723
|
+
ontologyPrimitive: "worktree",
|
|
724
|
+
tier: "showcase"
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
// src/types/reasoning-method.ts
|
|
728
|
+
var REASONING_METHODS = [
|
|
729
|
+
"deductive",
|
|
730
|
+
"inductive",
|
|
731
|
+
"abductive",
|
|
732
|
+
"analogical",
|
|
733
|
+
"causal",
|
|
734
|
+
"correlational",
|
|
735
|
+
"testimonial",
|
|
736
|
+
"statistical",
|
|
737
|
+
"implicit",
|
|
738
|
+
"pattern_match"
|
|
739
|
+
];
|
|
740
|
+
|
|
741
|
+
// src/tool-contracts.graph.ts
|
|
687
742
|
var QUERY_LINEAGE = {
|
|
688
743
|
name: "query_lineage",
|
|
689
744
|
description: "Trace a belief's full ancestry \u2014 every fork, score, and confidence modulation. Like `git log --graph`. Returns the complete evolution chain showing how understanding developed over time. Lineage is permanent and can never be erased (Invariant #3).",
|
|
@@ -883,6 +938,39 @@ var FIND_CONTRADICTIONS = {
|
|
|
883
938
|
ontologyPrimitive: "belief",
|
|
884
939
|
tier: "showcase"
|
|
885
940
|
};
|
|
941
|
+
var BISECT_CONFIDENCE = {
|
|
942
|
+
name: "bisect_confidence",
|
|
943
|
+
description: "Find when a belief's confidence diverged from reality. Like `git bisect` \u2014 binary search through the credence history to find the inflection point. Given a belief that is now known to be wrong (or right), traces back through confidence modulations to identify which evidence or event caused the divergence.",
|
|
944
|
+
parameters: {
|
|
945
|
+
nodeId: { type: "string", description: "The belief to bisect" },
|
|
946
|
+
expectedDirection: {
|
|
947
|
+
type: "string",
|
|
948
|
+
description: "Was confidence too high or too low?",
|
|
949
|
+
enum: ["overconfident", "underconfident"]
|
|
950
|
+
},
|
|
951
|
+
timeRange: {
|
|
952
|
+
type: "object",
|
|
953
|
+
description: "Optional time range to search within: { start: number, end: number }"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
required: ["nodeId", "expectedDirection"],
|
|
957
|
+
response: {
|
|
958
|
+
description: "The inflection point in confidence history",
|
|
959
|
+
fields: {
|
|
960
|
+
beliefId: "string \u2014 canonical belief ID",
|
|
961
|
+
expectedDirection: "string \u2014 overconfident | underconfident",
|
|
962
|
+
inflectionEntry: "object \u2014 the confidence modulation where divergence began",
|
|
963
|
+
triggerEvent: "string | null \u2014 what caused the divergence",
|
|
964
|
+
confidenceBefore: "number | null",
|
|
965
|
+
confidenceAfter: "number | null",
|
|
966
|
+
totalEntries: "number",
|
|
967
|
+
inflectionIndex: "number | null"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
ownerModule: "graph-search",
|
|
971
|
+
ontologyPrimitive: "belief",
|
|
972
|
+
tier: "showcase"
|
|
973
|
+
};
|
|
886
974
|
var CREATE_EDGE = {
|
|
887
975
|
name: "create_edge",
|
|
888
976
|
description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes. Accepts any public epistemic edge type between public graph node refs so agents can author the full spine.",
|
|
@@ -1010,6 +1098,17 @@ var BATCH_CREATE_EDGES = {
|
|
|
1010
1098
|
ontologyPrimitive: "edge",
|
|
1011
1099
|
tier: "workhorse"
|
|
1012
1100
|
};
|
|
1101
|
+
|
|
1102
|
+
// src/lens-workflow.contract.ts
|
|
1103
|
+
var LENS_PERSPECTIVE_TYPES = [
|
|
1104
|
+
"investigation",
|
|
1105
|
+
"monitoring",
|
|
1106
|
+
"analysis",
|
|
1107
|
+
"comparison",
|
|
1108
|
+
"taxonomy"
|
|
1109
|
+
];
|
|
1110
|
+
|
|
1111
|
+
// src/tool-contracts.nodes-lenses.ts
|
|
1013
1112
|
var CREATE_EPISTEMIC_NODE = {
|
|
1014
1113
|
name: "create_epistemic_node",
|
|
1015
1114
|
description: "Commit a generic epistemic graph node. Like `git commit` \u2014 creates a canonical node in the public spine for topics, beliefs, evidence, questions, answers, sources, and entities.",
|
|
@@ -1330,99 +1429,8 @@ var REMOVE_LENS_FROM_TOPIC = {
|
|
|
1330
1429
|
ontologyPrimitive: "lens",
|
|
1331
1430
|
tier: "workhorse"
|
|
1332
1431
|
};
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
description: "Push scored beliefs from a merged worktree to other contexts. Like `git push` \u2014 makes local findings available on the remote. Only merged beliefs can be pushed. Publication makes findings visible to other projects, teams, or external consumers.",
|
|
1336
|
-
parameters: {
|
|
1337
|
-
worktreeId: {
|
|
1338
|
-
type: "string",
|
|
1339
|
-
description: "The merged worktree whose findings to push"
|
|
1340
|
-
},
|
|
1341
|
-
targetContext: {
|
|
1342
|
-
type: "string",
|
|
1343
|
-
description: "Where to push (e.g., 'portfolio', 'ic_review', 'external')"
|
|
1344
|
-
},
|
|
1345
|
-
beliefIds: {
|
|
1346
|
-
type: "array",
|
|
1347
|
-
description: "Optional subset of beliefs to push (default: all scored)"
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
required: ["worktreeId", "targetContext"],
|
|
1351
|
-
response: {
|
|
1352
|
-
description: "Push result",
|
|
1353
|
-
fields: {
|
|
1354
|
-
pushedCount: "number",
|
|
1355
|
-
targetContext: "string",
|
|
1356
|
-
pushedAt: "number"
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
ownerModule: "workflow-engine",
|
|
1360
|
-
ontologyPrimitive: "worktree",
|
|
1361
|
-
tier: "workhorse"
|
|
1362
|
-
};
|
|
1363
|
-
var OPEN_PULL_REQUEST = {
|
|
1364
|
-
name: "open_pull_request",
|
|
1365
|
-
description: "Open a pull request for peer review before merging a worktree. Like opening a `git pull request` \u2014 the worktree's findings are ready but await approval before merge. Reviewers can approve, request changes, or block the merge. This is the gate between draft work and scored knowledge.",
|
|
1366
|
-
parameters: {
|
|
1367
|
-
worktreeId: {
|
|
1368
|
-
type: "string",
|
|
1369
|
-
description: "The worktree to submit for review"
|
|
1370
|
-
},
|
|
1371
|
-
reviewers: {
|
|
1372
|
-
type: "array",
|
|
1373
|
-
description: "User IDs of requested reviewers"
|
|
1374
|
-
},
|
|
1375
|
-
summary: {
|
|
1376
|
-
type: "string",
|
|
1377
|
-
description: "Summary of findings and why they're ready for merge"
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
required: ["worktreeId", "summary"],
|
|
1381
|
-
response: {
|
|
1382
|
-
description: "The pull request",
|
|
1383
|
-
fields: {
|
|
1384
|
-
pullRequestId: "string",
|
|
1385
|
-
worktreeId: "string",
|
|
1386
|
-
status: "string \u2014 'pending_review'"
|
|
1387
|
-
}
|
|
1388
|
-
},
|
|
1389
|
-
ownerModule: "workflow-engine",
|
|
1390
|
-
ontologyPrimitive: "worktree",
|
|
1391
|
-
tier: "showcase"
|
|
1392
|
-
};
|
|
1393
|
-
var BISECT_CONFIDENCE = {
|
|
1394
|
-
name: "bisect_confidence",
|
|
1395
|
-
description: "Find when a belief's confidence diverged from reality. Like `git bisect` \u2014 binary search through the credence history to find the inflection point. Given a belief that is now known to be wrong (or right), traces back through confidence modulations to identify which evidence or event caused the divergence.",
|
|
1396
|
-
parameters: {
|
|
1397
|
-
nodeId: { type: "string", description: "The belief to bisect" },
|
|
1398
|
-
expectedDirection: {
|
|
1399
|
-
type: "string",
|
|
1400
|
-
description: "Was confidence too high or too low?",
|
|
1401
|
-
enum: ["overconfident", "underconfident"]
|
|
1402
|
-
},
|
|
1403
|
-
timeRange: {
|
|
1404
|
-
type: "object",
|
|
1405
|
-
description: "Optional time range to search within: { start: number, end: number }"
|
|
1406
|
-
}
|
|
1407
|
-
},
|
|
1408
|
-
required: ["nodeId", "expectedDirection"],
|
|
1409
|
-
response: {
|
|
1410
|
-
description: "The inflection point in confidence history",
|
|
1411
|
-
fields: {
|
|
1412
|
-
beliefId: "string \u2014 canonical belief ID",
|
|
1413
|
-
expectedDirection: "string \u2014 overconfident | underconfident",
|
|
1414
|
-
inflectionEntry: "object \u2014 the confidence modulation where divergence began",
|
|
1415
|
-
triggerEvent: "string | null \u2014 what caused the divergence",
|
|
1416
|
-
confidenceBefore: "number | null",
|
|
1417
|
-
confidenceAfter: "number | null",
|
|
1418
|
-
totalEntries: "number",
|
|
1419
|
-
inflectionIndex: "number | null"
|
|
1420
|
-
}
|
|
1421
|
-
},
|
|
1422
|
-
ownerModule: "graph-search",
|
|
1423
|
-
ontologyPrimitive: "belief",
|
|
1424
|
-
tier: "showcase"
|
|
1425
|
-
};
|
|
1432
|
+
|
|
1433
|
+
// src/tool-contracts.intelligence-evidence.ts
|
|
1426
1434
|
var DETECT_CONFIRMATION_BIAS = {
|
|
1427
1435
|
name: "detect_confirmation_bias",
|
|
1428
1436
|
description: "Detect confirmation bias in the evidence graph. Like `git diff --stat` for reasoning \u2014 analyzes the ratio of supporting vs challenging evidence per belief and flags beliefs where the evidence is suspiciously one-sided. Returns risk classification (critical/high/moderate/healthy).",
|
|
@@ -1721,6 +1729,8 @@ var LINK_EVIDENCE_TO_BELIEF = {
|
|
|
1721
1729
|
ontologyPrimitive: "edge",
|
|
1722
1730
|
tier: "workhorse"
|
|
1723
1731
|
};
|
|
1732
|
+
|
|
1733
|
+
// src/tool-contracts.questions-listing.ts
|
|
1724
1734
|
var CREATE_QUESTION = {
|
|
1725
1735
|
name: "create_question",
|
|
1726
1736
|
description: "Commit an investigation question to the reasoning graph. Like `git issue` \u2014 creates a traceable question that drives research and evidence collection. Questions test beliefs and guide worktree investigation.",
|
|
@@ -2179,6 +2189,24 @@ var LIST_ALL_WORKTREES = {
|
|
|
2179
2189
|
ontologyPrimitive: "worktree",
|
|
2180
2190
|
tier: "showcase"
|
|
2181
2191
|
};
|
|
2192
|
+
var GET_WORKTREE = {
|
|
2193
|
+
name: "get_worktree",
|
|
2194
|
+
description: "Get one worktree by ID. Like `git worktree list --porcelain <worktree>` \u2014 inspects one investigation branch without scanning the full pipeline inventory.",
|
|
2195
|
+
parameters: {
|
|
2196
|
+
worktreeId: { type: "string", description: "Canonical worktree ID to retrieve" },
|
|
2197
|
+
id: { type: "string", description: "Legacy alias for worktreeId" }
|
|
2198
|
+
},
|
|
2199
|
+
required: ["worktreeId"],
|
|
2200
|
+
response: {
|
|
2201
|
+
description: "Single worktree record with pipeline metadata",
|
|
2202
|
+
fields: {
|
|
2203
|
+
worktree: "object \u2014 { worktreeId, title, topicId, status, hypothesis, campaign, lane, laneOrderInCampaign, orderInLane, dependsOn, blocks, gate }"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
ownerModule: "workflow-engine",
|
|
2207
|
+
ontologyPrimitive: "worktree",
|
|
2208
|
+
tier: "workhorse"
|
|
2209
|
+
};
|
|
2182
2210
|
var LIST_CAMPAIGNS = {
|
|
2183
2211
|
name: "list_campaigns",
|
|
2184
2212
|
description: "List compact pipeline campaigns with their nested lanes. Use this to see the top-level campaign > lane > worktree shape without pulling the full worktree inventory.",
|
|
@@ -2480,6 +2508,8 @@ var COMPILE_CONTEXT = {
|
|
|
2480
2508
|
ontologyPrimitive: "graph",
|
|
2481
2509
|
tier: "showcase"
|
|
2482
2510
|
};
|
|
2511
|
+
|
|
2512
|
+
// src/tool-contracts.policy-observation-task-topic.ts
|
|
2483
2513
|
var CHECK_PERMISSION = {
|
|
2484
2514
|
name: "check_permission",
|
|
2485
2515
|
description: "Check whether a principal can read or mutate a topic scope. Like `git check-ref-format` for ACLs \u2014 validates whether the requested operation is allowed before execution.",
|
|
@@ -3215,6 +3245,8 @@ var GET_GRAPH_GAPS = {
|
|
|
3215
3245
|
ontologyPrimitive: "graph",
|
|
3216
3246
|
tier: "showcase"
|
|
3217
3247
|
};
|
|
3248
|
+
|
|
3249
|
+
// src/tool-contracts.ontology.ts
|
|
3218
3250
|
var MANAGE_WRITE_POLICY = {
|
|
3219
3251
|
name: "manage_write_policy",
|
|
3220
3252
|
description: "Manage write policies for MCP mutation tools. Like `git config` for write permissions \u2014 sets per-topic or global policies that control which roles can mutate the graph.",
|
|
@@ -3554,6 +3586,8 @@ var RESOLVE_EFFECTIVE_ONTOLOGY = {
|
|
|
3554
3586
|
ontologyPrimitive: "ontology",
|
|
3555
3587
|
tier: "workhorse"
|
|
3556
3588
|
};
|
|
3589
|
+
|
|
3590
|
+
// src/tool-contracts.pipeline-coordination.ts
|
|
3557
3591
|
var RECORD_SCOPE_LEARNING = {
|
|
3558
3592
|
name: "record_scope_learning",
|
|
3559
3593
|
description: "Write a structured learning entry into the epistemic spine. Like `git commit` for scope learnings \u2014 records evidence, can attach to a belief, and can open a follow-up belief/question in one atomic workflow.",
|
|
@@ -4233,6 +4267,8 @@ var BEGIN_BUILD_SESSION = {
|
|
|
4233
4267
|
tier: "showcase",
|
|
4234
4268
|
internal: true
|
|
4235
4269
|
};
|
|
4270
|
+
|
|
4271
|
+
// src/tool-contracts.ts
|
|
4236
4272
|
var MCP_TOOL_CONTRACTS = {
|
|
4237
4273
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
4238
4274
|
create_belief: CREATE_BELIEF,
|
|
@@ -4315,6 +4351,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
4315
4351
|
find_missing_questions: FIND_MISSING_QUESTIONS,
|
|
4316
4352
|
// Listing & query (workhorse)
|
|
4317
4353
|
list_beliefs: LIST_BELIEFS,
|
|
4354
|
+
get_worktree: GET_WORKTREE,
|
|
4318
4355
|
list_worktrees: LIST_WORKTREES,
|
|
4319
4356
|
list_all_worktrees: LIST_ALL_WORKTREES,
|
|
4320
4357
|
list_campaigns: LIST_CAMPAIGNS,
|
|
@@ -4518,6 +4555,7 @@ var MCP_WORKFLOW_PLATFORM_OPERATION_NAMES = [
|
|
|
4518
4555
|
"match_entity_type",
|
|
4519
4556
|
"resolve_effective_ontology",
|
|
4520
4557
|
"add_worktree",
|
|
4558
|
+
"get_worktree",
|
|
4521
4559
|
"activate_worktree",
|
|
4522
4560
|
"list_worktrees",
|
|
4523
4561
|
"list_all_worktrees",
|
|
@@ -5105,7 +5143,9 @@ var ALL_FUNCTION_CONTRACTS = [
|
|
|
5105
5143
|
...legacyContracts
|
|
5106
5144
|
];
|
|
5107
5145
|
assertSurfaceCoverage(ALL_FUNCTION_CONTRACTS);
|
|
5108
|
-
var FUNCTION_SURFACE_CONTRACTS =
|
|
5146
|
+
var FUNCTION_SURFACE_CONTRACTS = [
|
|
5147
|
+
...ALL_FUNCTION_CONTRACTS
|
|
5148
|
+
];
|
|
5109
5149
|
var FUNCTION_CONTRACTS_BY_NAME = new Map(
|
|
5110
5150
|
ALL_FUNCTION_CONTRACTS.map((contract) => [contract.name, contract])
|
|
5111
5151
|
);
|