@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.
Files changed (213) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/dist/dsl.d.ts +75 -4
  3. package/dist/dsl.values-rhsroqi0.d.ts +21 -0
  4. package/dist/dsl.values.d.ts +5 -0
  5. package/dist/dsl.values.js +675 -0
  6. package/dist/dsl.values.js.map +1 -0
  7. package/dist/function-registry/beliefs.d.ts +1 -17
  8. package/dist/function-registry/beliefs.js +155 -117
  9. package/dist/function-registry/beliefs.js.map +1 -1
  10. package/dist/function-registry/coding.d.ts +1 -17
  11. package/dist/function-registry/coding.js +155 -117
  12. package/dist/function-registry/coding.js.map +1 -1
  13. package/dist/function-registry/context.d.ts +1 -17
  14. package/dist/function-registry/context.js +155 -117
  15. package/dist/function-registry/context.js.map +1 -1
  16. package/dist/function-registry/contracts.d.ts +1 -17
  17. package/dist/function-registry/contracts.js +155 -117
  18. package/dist/function-registry/contracts.js.map +1 -1
  19. package/dist/function-registry/coordination.d.ts +1 -17
  20. package/dist/function-registry/coordination.js +155 -117
  21. package/dist/function-registry/coordination.js.map +1 -1
  22. package/dist/function-registry/edges.d.ts +1 -17
  23. package/dist/function-registry/edges.js +155 -117
  24. package/dist/function-registry/edges.js.map +1 -1
  25. package/dist/function-registry/evidence.d.ts +1 -17
  26. package/dist/function-registry/evidence.js +155 -117
  27. package/dist/function-registry/evidence.js.map +1 -1
  28. package/dist/function-registry/graph.d.ts +1 -17
  29. package/dist/function-registry/graph.js +155 -117
  30. package/dist/function-registry/graph.js.map +1 -1
  31. package/dist/function-registry/helpers.d.ts +1 -1
  32. package/dist/function-registry/helpers.js +155 -117
  33. package/dist/function-registry/helpers.js.map +1 -1
  34. package/dist/function-registry/identity.d.ts +1 -17
  35. package/dist/function-registry/identity.js +155 -117
  36. package/dist/function-registry/identity.js.map +1 -1
  37. package/dist/function-registry/index.d.ts +1 -1
  38. package/dist/function-registry/index.js +158 -118
  39. package/dist/function-registry/index.js.map +1 -1
  40. package/dist/function-registry/judgments.d.ts +1 -17
  41. package/dist/function-registry/judgments.js +155 -117
  42. package/dist/function-registry/judgments.js.map +1 -1
  43. package/dist/function-registry/legacy.d.ts +1 -17
  44. package/dist/function-registry/legacy.js +155 -117
  45. package/dist/function-registry/legacy.js.map +1 -1
  46. package/dist/function-registry/lenses.d.ts +1 -17
  47. package/dist/function-registry/lenses.js +155 -117
  48. package/dist/function-registry/lenses.js.map +1 -1
  49. package/dist/function-registry/manifest.d.ts +3 -3
  50. package/dist/function-registry/manifest.js +1 -0
  51. package/dist/function-registry/manifest.js.map +1 -1
  52. package/dist/function-registry/nodes.d.ts +1 -17
  53. package/dist/function-registry/nodes.js +155 -117
  54. package/dist/function-registry/nodes.js.map +1 -1
  55. package/dist/function-registry/ontologies.d.ts +1 -17
  56. package/dist/function-registry/ontologies.js +155 -117
  57. package/dist/function-registry/ontologies.js.map +1 -1
  58. package/dist/function-registry/pipeline.d.ts +1 -17
  59. package/dist/function-registry/pipeline.js +155 -117
  60. package/dist/function-registry/pipeline.js.map +1 -1
  61. package/dist/function-registry/questions.d.ts +1 -17
  62. package/dist/function-registry/questions.js +155 -117
  63. package/dist/function-registry/questions.js.map +1 -1
  64. package/dist/function-registry/tasks.d.ts +1 -17
  65. package/dist/function-registry/tasks.js +155 -117
  66. package/dist/function-registry/tasks.js.map +1 -1
  67. package/dist/function-registry/topics.d.ts +1 -17
  68. package/dist/function-registry/topics.js +155 -117
  69. package/dist/function-registry/topics.js.map +1 -1
  70. package/dist/function-registry/types.d.ts +2 -2
  71. package/dist/function-registry/worktrees.d.ts +41 -17
  72. package/dist/function-registry/worktrees.js +174 -117
  73. package/dist/function-registry/worktrees.js.map +1 -1
  74. package/dist/generated/lucernWebPublicEnv.js.map +1 -1
  75. package/dist/generated/lucernWebServerEnv.js.map +1 -1
  76. package/dist/{idOf-DR8tkhQS.d.ts → idOf-BmkVDhD8.d.ts} +1 -1
  77. package/dist/index.d.ts +47 -8
  78. package/dist/index.js +45072 -45005
  79. package/dist/index.js.map +1 -1
  80. package/dist/infisical-runtime.base.d.ts +444 -0
  81. package/dist/infisical-runtime.base.js +640 -0
  82. package/dist/infisical-runtime.base.js.map +1 -0
  83. package/dist/infisical-runtime.contract.d.ts +9 -440
  84. package/dist/infisical-runtime.contract.js +14 -1
  85. package/dist/infisical-runtime.contract.js.map +1 -1
  86. package/dist/infisical-runtime.platform-ops-secrets.d.ts +743 -0
  87. package/dist/infisical-runtime.platform-ops-secrets.js +962 -0
  88. package/dist/infisical-runtime.platform-ops-secrets.js.map +1 -0
  89. package/dist/infisical-runtime.platform-secrets.d.ts +598 -0
  90. package/dist/infisical-runtime.platform-secrets.js +726 -0
  91. package/dist/infisical-runtime.platform-secrets.js.map +1 -0
  92. package/dist/infisical-runtime.tenant-secrets.d.ts +486 -0
  93. package/dist/infisical-runtime.tenant-secrets.js +1131 -0
  94. package/dist/infisical-runtime.tenant-secrets.js.map +1 -0
  95. package/dist/manifests/edge-policy-manifest.d.ts +1 -1
  96. package/dist/manifests/infisical-runtime-manifest.d.ts +1 -1
  97. package/dist/manifests/infisical-runtime-manifest.js +14 -1
  98. package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
  99. package/dist/manifests/tenant-client-manifest.d.ts +5 -1
  100. package/dist/manifests/tenant-client-manifest.js +5 -0
  101. package/dist/manifests/tenant-client-manifest.js.map +1 -1
  102. package/dist/proof-attestation.json +1 -1
  103. package/dist/schemas/index.d.ts +1 -1
  104. package/dist/schemas/index.js.map +1 -1
  105. package/dist/schemas/manifest.d.ts +61 -61
  106. package/dist/schemas/manifest.js.map +1 -1
  107. package/dist/schemas/tables/kernel/config.js.map +1 -1
  108. package/dist/schemas/tables/kernel/coordination.js.map +1 -1
  109. package/dist/schemas/tables/kernel/decision.d.ts +1 -1
  110. package/dist/schemas/tables/kernel/decision.js.map +1 -1
  111. package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
  112. package/dist/schemas/tables/kernel/embedding.js.map +1 -1
  113. package/dist/schemas/tables/kernel/epistemic.d.ts +1 -1
  114. package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
  115. package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
  116. package/dist/schemas/tables/kernel/infra.js.map +1 -1
  117. package/dist/schemas/tables/kernel/intelligence.d.ts +1 -1
  118. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  119. package/dist/schemas/tables/kernel/lens.d.ts +5 -5
  120. package/dist/schemas/tables/kernel/lens.js.map +1 -1
  121. package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
  122. package/dist/schemas/tables/kernel/ontology.js.map +1 -1
  123. package/dist/schemas/tables/kernel/platform.js.map +1 -1
  124. package/dist/schemas/tables/kernel/spine.d.ts +1 -1
  125. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  126. package/dist/schemas/tables/kernel/task.d.ts +1 -1
  127. package/dist/schemas/tables/kernel/task.js.map +1 -1
  128. package/dist/schemas/tables/kernel/topic.d.ts +1 -1
  129. package/dist/schemas/tables/kernel/topic.js.map +1 -1
  130. package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
  131. package/dist/schemas/tables/kernel/workflow.js.map +1 -1
  132. package/dist/schemas/tables/kernel/worktree.d.ts +1 -1
  133. package/dist/schemas/tables/kernel/worktree.js.map +1 -1
  134. package/dist/schemas/tables/mc/identity.d.ts +1 -1
  135. package/dist/schemas/tables/mc/methodology.d.ts +1 -1
  136. package/dist/schemas/tables/mc/pack.d.ts +9 -9
  137. package/dist/schemas/tables/mc/policy.d.ts +1 -1
  138. package/dist/schemas/tables/mc/registry.d.ts +1 -1
  139. package/dist/schemas/tables/mc/runtime.d.ts +1 -1
  140. package/dist/schemas/tables/mc/tenant.d.ts +1 -1
  141. package/dist/schemas/tables/mc/workspace.d.ts +1 -1
  142. package/dist/schemas.values-5J5oIK7z.d.ts +26 -0
  143. package/dist/schemas.values.d.ts +7 -0
  144. package/dist/schemas.values.js +5324 -0
  145. package/dist/schemas.values.js.map +1 -0
  146. package/dist/sdk-tools.contract.analytics.d.ts +27 -0
  147. package/dist/sdk-tools.contract.analytics.js +616 -0
  148. package/dist/sdk-tools.contract.analytics.js.map +1 -0
  149. package/dist/sdk-tools.contract.d.ts +43 -2
  150. package/dist/sdk-tools.contract.graph.d.ts +11 -0
  151. package/dist/sdk-tools.contract.graph.js +156 -0
  152. package/dist/sdk-tools.contract.graph.js.map +1 -0
  153. package/dist/sdk-tools.contract.js +4107 -4062
  154. package/dist/sdk-tools.contract.js.map +1 -1
  155. package/dist/sdk-tools.contract.registry.d.ts +25 -0
  156. package/dist/sdk-tools.contract.registry.js +5504 -0
  157. package/dist/sdk-tools.contract.registry.js.map +1 -0
  158. package/dist/sdk-tools.contract.types.d.ts +15 -0
  159. package/dist/sdk-tools.contract.types.js +3 -0
  160. package/dist/sdk-tools.contract.types.js.map +1 -0
  161. package/dist/sdk-tools.contract.values-LuBh95zg.d.ts +58 -0
  162. package/dist/sdk-tools.contract.values.d.ts +7 -0
  163. package/dist/sdk-tools.contract.values.js +5581 -0
  164. package/dist/sdk-tools.contract.values.js.map +1 -0
  165. package/dist/sdk-tools.contract.workflow.d.ts +17 -0
  166. package/dist/sdk-tools.contract.workflow.js +287 -0
  167. package/dist/sdk-tools.contract.workflow.js.map +1 -0
  168. package/dist/tenant-client.contract.d.ts +5 -1
  169. package/dist/tenant-client.contract.js +5 -0
  170. package/dist/tenant-client.contract.js.map +1 -1
  171. package/dist/tool-contracts.d.ts +34 -1
  172. package/dist/tool-contracts.graph.d.ts +18 -0
  173. package/dist/tool-contracts.graph.js +378 -0
  174. package/dist/tool-contracts.graph.js.map +1 -0
  175. package/dist/tool-contracts.intelligence-evidence.d.ts +15 -0
  176. package/dist/tool-contracts.intelligence-evidence.js +303 -0
  177. package/dist/tool-contracts.intelligence-evidence.js.map +1 -0
  178. package/dist/tool-contracts.js +155 -118
  179. package/dist/tool-contracts.js.map +1 -1
  180. package/dist/tool-contracts.lifecycle.d.ts +13 -0
  181. package/dist/tool-contracts.lifecycle.js +410 -0
  182. package/dist/tool-contracts.lifecycle.js.map +1 -0
  183. package/dist/tool-contracts.nodes-lenses.d.ts +17 -0
  184. package/dist/tool-contracts.nodes-lenses.js +334 -0
  185. package/dist/tool-contracts.nodes-lenses.js.map +1 -0
  186. package/dist/tool-contracts.ontology.d.ts +16 -0
  187. package/dist/tool-contracts.ontology.js +344 -0
  188. package/dist/tool-contracts.ontology.js.map +1 -0
  189. package/dist/tool-contracts.pipeline-coordination.d.ts +25 -0
  190. package/dist/tool-contracts.pipeline-coordination.js +684 -0
  191. package/dist/tool-contracts.pipeline-coordination.js.map +1 -0
  192. package/dist/tool-contracts.policy-observation-task-topic.d.ts +25 -0
  193. package/dist/tool-contracts.policy-observation-task-topic.js +740 -0
  194. package/dist/tool-contracts.policy-observation-task-topic.js.map +1 -0
  195. package/dist/tool-contracts.questions-listing.d.ts +27 -0
  196. package/dist/tool-contracts.questions-listing.js +782 -0
  197. package/dist/tool-contracts.questions-listing.js.map +1 -0
  198. package/dist/tool-contracts.types.d.ts +34 -0
  199. package/dist/tool-contracts.types.js +3 -0
  200. package/dist/tool-contracts.types.js.map +1 -0
  201. package/dist/tool-contracts.values-DjctSW7S.d.ts +147 -0
  202. package/dist/tool-contracts.values.d.ts +11 -0
  203. package/dist/tool-contracts.values.js +4398 -0
  204. package/dist/tool-contracts.values.js.map +1 -0
  205. package/dist/tool-contracts.worktrees.d.ts +8 -0
  206. package/dist/tool-contracts.worktrees.js +280 -0
  207. package/dist/tool-contracts.worktrees.js.map +1 -0
  208. package/package.json +3 -11
  209. package/dist/dsl-DVPthQGY.d.ts +0 -110
  210. package/dist/index-CM1Pl_vI.d.ts +0 -28
  211. package/dist/sdk-tools.contract-CKmSsrZ2.d.ts +0 -146
  212. package/dist/tool-contracts-C_xvM9q2.d.ts +0 -326
  213. package/dist/{edge-policy-manifest-Dw5IhT1L.d.ts → edge-policy-manifest-4KOSP4nk.d.ts} +2 -2
@@ -0,0 +1,8 @@
1
+ import { McpToolContract } from './tool-contracts.types.js';
2
+
3
+ declare const ADD_WORKTREE: McpToolContract;
4
+ declare const MERGE: McpToolContract;
5
+ declare const PUSH: McpToolContract;
6
+ declare const OPEN_PULL_REQUEST: McpToolContract;
7
+
8
+ export { ADD_WORKTREE, MERGE, OPEN_PULL_REQUEST, PUSH };
@@ -0,0 +1,280 @@
1
+ // src/tool-contracts.worktrees.ts
2
+ var ADD_WORKTREE = {
3
+ name: "add_worktree",
4
+ 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.",
5
+ parameters: {
6
+ title: { type: "string", description: "Worktree name/objective" },
7
+ name: {
8
+ type: "string",
9
+ description: "Optional storage-name alias for callers that already use backend naming"
10
+ },
11
+ projectId: {
12
+ type: "string",
13
+ description: "Legacy topicId alias or resolver hint"
14
+ },
15
+ topicId: {
16
+ type: "string",
17
+ description: "Optional topic scope hint for resolver validation"
18
+ },
19
+ topicHint: {
20
+ type: "string",
21
+ description: "Natural-language topic hint for automatic topic resolution"
22
+ },
23
+ branchId: {
24
+ type: "string",
25
+ description: "The branch this worktree investigates"
26
+ },
27
+ objective: {
28
+ type: "string",
29
+ description: "Plain-text reasoning objective to auto-shape into a hypothesis, questions, tasks, and dependencies"
30
+ },
31
+ hypothesis: {
32
+ type: "string",
33
+ description: "The testable claim this worktree investigates"
34
+ },
35
+ rationale: {
36
+ type: "string",
37
+ description: "Why this worktree exists and why it belongs in the campaign"
38
+ },
39
+ worktreeType: {
40
+ type: "string",
41
+ description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
42
+ },
43
+ gate: {
44
+ type: "string",
45
+ description: "Exit gate name for this worktree"
46
+ },
47
+ startDate: {
48
+ type: "number",
49
+ description: "Planned start timestamp in milliseconds since epoch"
50
+ },
51
+ endDate: {
52
+ type: "number",
53
+ description: "Planned end timestamp in milliseconds since epoch"
54
+ },
55
+ durationWeeks: {
56
+ type: "number",
57
+ description: "Planned duration in weeks"
58
+ },
59
+ confidenceImpact: {
60
+ type: "string",
61
+ description: "Expected confidence impact if the worktree succeeds",
62
+ enum: ["high", "medium", "low"]
63
+ },
64
+ beliefFocus: {
65
+ type: "string",
66
+ description: "Natural-language focus spanning the target belief neighborhood"
67
+ },
68
+ beliefIds: {
69
+ type: "array",
70
+ description: "Legacy alias for targetBeliefIds"
71
+ },
72
+ beliefs: {
73
+ type: "array",
74
+ description: "Legacy alias for targetBeliefIds"
75
+ },
76
+ targetBeliefIds: {
77
+ type: "array",
78
+ description: "Belief node IDs this worktree is expected to test or update"
79
+ },
80
+ targetQuestionIds: {
81
+ type: "array",
82
+ description: "Question node IDs this worktree is expected to answer"
83
+ },
84
+ keyQuestions: {
85
+ type: "array",
86
+ description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
87
+ },
88
+ evidenceSignals: {
89
+ type: "array",
90
+ description: "Evidence signal objects with signal, optional collected state, progress, and notes"
91
+ },
92
+ decisionGate: {
93
+ type: "object",
94
+ description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
95
+ },
96
+ goCriteria: {
97
+ type: "array",
98
+ description: "Shorthand go criteria used to build decisionGate"
99
+ },
100
+ noGoSignals: {
101
+ type: "array",
102
+ description: "Shorthand no-go signals used to build decisionGate"
103
+ },
104
+ proofArtifacts: {
105
+ type: "array",
106
+ description: "Expected proof artifacts required to close the worktree"
107
+ },
108
+ autoShape: {
109
+ type: "boolean",
110
+ description: "Whether to invoke inquiry auto-shaping during worktree creation"
111
+ },
112
+ autoFixPolicy: {
113
+ type: "object",
114
+ description: "Policy for permitted automatic remediation inside the worktree"
115
+ },
116
+ domainPackId: {
117
+ type: "string",
118
+ description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
119
+ },
120
+ tags: {
121
+ type: "array",
122
+ description: "Additional topic-resolution tags for the worktree"
123
+ },
124
+ touchedPaths: {
125
+ type: "array",
126
+ description: "File paths used as topic-resolution signals"
127
+ },
128
+ sourceRef: {
129
+ type: "string",
130
+ description: "Source reference used as a topic-resolution signal"
131
+ },
132
+ sourceKind: {
133
+ type: "string",
134
+ description: "Source kind used as a topic-resolution signal"
135
+ },
136
+ campaign: {
137
+ type: "number",
138
+ description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
139
+ },
140
+ lane: {
141
+ type: "string",
142
+ description: "GitButler-aligned workstream lane name inside the campaign."
143
+ },
144
+ laneOrderInCampaign: {
145
+ type: "number",
146
+ description: "Ordering for this lane within its campaign."
147
+ },
148
+ orderInLane: {
149
+ type: "number",
150
+ description: "Position of this worktree inside its lane."
151
+ },
152
+ dependsOn: {
153
+ type: "array",
154
+ description: "Worktree IDs that must complete before this one can activate"
155
+ },
156
+ blocks: {
157
+ type: "array",
158
+ description: "Worktree IDs blocked by this worktree"
159
+ },
160
+ staffingHint: {
161
+ type: "string",
162
+ description: "Suggested staffing or agent allocation note"
163
+ },
164
+ lensId: {
165
+ type: "string",
166
+ description: "Lens that scopes this worktree when applicable"
167
+ },
168
+ lastReconciledAt: {
169
+ type: "number",
170
+ description: "Timestamp when worktree metadata was last reconciled"
171
+ }
172
+ },
173
+ required: ["title"],
174
+ response: {
175
+ description: "The created worktree",
176
+ fields: {
177
+ worktreeId: "string",
178
+ branchId: "string | null",
179
+ status: "string \u2014 usually 'planning' or 'active'",
180
+ title: "string",
181
+ hypothesis: "string | null",
182
+ questionCount: "number",
183
+ taskCount: "number",
184
+ autoShapeApplied: "boolean",
185
+ frameworkSuggestions: "array",
186
+ dependencySuggestions: "array"
187
+ }
188
+ },
189
+ ownerModule: "workflow-engine",
190
+ ontologyPrimitive: "worktree",
191
+ tier: "showcase"
192
+ };
193
+ var MERGE = {
194
+ name: "merge",
195
+ description: "Merge a worktree's findings into the stable knowledge base (main). Like `git merge` to main \u2014 formulations freeze, confidence is recorded, findings are integrated. Each belief gets a confidence score and rationale. After merge, beliefs can only evolve via fork. Low-confidence beliefs may need forking.",
196
+ parameters: {
197
+ worktreeId: { type: "string", description: "The worktree to merge" },
198
+ outcomes: {
199
+ type: "array",
200
+ description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
201
+ },
202
+ summary: { type: "string", description: "Overall findings summary" }
203
+ },
204
+ required: ["worktreeId", "outcomes"],
205
+ response: {
206
+ description: "Merge result",
207
+ fields: {
208
+ worktreeId: "string",
209
+ status: "string \u2014 'merged'",
210
+ beliefsScored: "number"
211
+ }
212
+ },
213
+ ownerModule: "workflow-engine",
214
+ ontologyPrimitive: "worktree",
215
+ tier: "showcase"
216
+ };
217
+ var PUSH = {
218
+ name: "push",
219
+ 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.",
220
+ parameters: {
221
+ worktreeId: {
222
+ type: "string",
223
+ description: "The merged worktree whose findings to push"
224
+ },
225
+ targetContext: {
226
+ type: "string",
227
+ description: "Where to push (e.g., 'portfolio', 'ic_review', 'external')"
228
+ },
229
+ beliefIds: {
230
+ type: "array",
231
+ description: "Optional subset of beliefs to push (default: all scored)"
232
+ }
233
+ },
234
+ required: ["worktreeId", "targetContext"],
235
+ response: {
236
+ description: "Push result",
237
+ fields: {
238
+ pushedCount: "number",
239
+ targetContext: "string",
240
+ pushedAt: "number"
241
+ }
242
+ },
243
+ ownerModule: "workflow-engine",
244
+ ontologyPrimitive: "worktree",
245
+ tier: "workhorse"
246
+ };
247
+ var OPEN_PULL_REQUEST = {
248
+ name: "open_pull_request",
249
+ 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.",
250
+ parameters: {
251
+ worktreeId: {
252
+ type: "string",
253
+ description: "The worktree to submit for review"
254
+ },
255
+ reviewers: {
256
+ type: "array",
257
+ description: "User IDs of requested reviewers"
258
+ },
259
+ summary: {
260
+ type: "string",
261
+ description: "Summary of findings and why they're ready for merge"
262
+ }
263
+ },
264
+ required: ["worktreeId", "summary"],
265
+ response: {
266
+ description: "The pull request",
267
+ fields: {
268
+ pullRequestId: "string",
269
+ worktreeId: "string",
270
+ status: "string \u2014 'pending_review'"
271
+ }
272
+ },
273
+ ownerModule: "workflow-engine",
274
+ ontologyPrimitive: "worktree",
275
+ tier: "showcase"
276
+ };
277
+
278
+ export { ADD_WORKTREE, MERGE, OPEN_PULL_REQUEST, PUSH };
279
+ //# sourceMappingURL=tool-contracts.worktrees.js.map
280
+ //# sourceMappingURL=tool-contracts.worktrees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tool-contracts.worktrees.ts"],"names":[],"mappings":";AAEO,IAAM,YAAA,GAAgC;AAAA,EAC3C,IAAA,EAAM,cAAA;AAAA,EACN,WAAA,EACE,oUAAA;AAAA,EAIF,UAAA,EAAY;AAAA,IACV,KAAA,EAAO,EAAE,IAAA,EAAM,QAAA,EAAU,aAAa,yBAAA,EAA0B;AAAA,IAChE,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EACE;AAAA,KACJ;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,QAAA,EAAU;AAAA,MACR,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EACE;AAAA,KACJ;AAAA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AAmB,UAAA;AAAA,EACnB,IAAA,EAAM;AACR;AAMO,IAAM,iBAAA,GAAqC;AAAA,EAChD,IAAA,EAAM,mBAAA;AAAA,EACN,WAAA,EACE,kSAAA;AAAA,EAIF,UAAA,EAAY;AAAA,IACV,UAAA,EAAY;AAAA,MACV,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM,OAAA;AAAA,MACN,WAAA,EAAa;AAAA,KACf;AAAA,IACA,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,QAAA;AAAA,MACN,WAAA,EAAa;AAAA;AACf,GACF;AAAA,EACA,QAAA,EAAU,CAAC,YAAA,EAAc,SAAS,CAAA;AAAA,EAClC,QAAA,EAAU;AAAA,IACR,WAAA,EAAa,kBAAA;AAAA,IACb,MAAA,EAAQ;AAAA,MACN,aAAA,EAAe,QAAA;AAAA,MACf,UAAA,EAAY,QAAA;AAAA,MACZ,MAAA,EAAQ;AAAA;AACV,GACF;AAAA,EACA,WAAA,EAAa,iBAAA;AAAA,EACb,iBAAA,EAAmB,UAAA;AAAA,EACnB,IAAA,EAAM;AACR","file":"tool-contracts.worktrees.js","sourcesContent":["import type { McpToolContract } from \"./tool-contracts.types\";\n\nexport const ADD_WORKTREE: McpToolContract = {\n name: \"add_worktree\",\n description:\n \"Check out a branch into an active worktree for investigation. \" +\n \"Like `git worktree add <branch>` — creates independent working state on a thematic branch. \" +\n \"Beliefs committed within the worktree can be freely amended (draft code on a feature branch). \" +\n \"When investigation is complete, `merge` integrates findings into main.\",\n parameters: {\n title: { type: \"string\", description: \"Worktree name/objective\" },\n name: {\n type: \"string\",\n description:\n \"Optional storage-name alias for callers that already use backend naming\",\n },\n projectId: {\n type: \"string\",\n description: \"Legacy topicId alias or resolver hint\",\n },\n topicId: {\n type: \"string\",\n description: \"Optional topic scope hint for resolver validation\",\n },\n topicHint: {\n type: \"string\",\n description: \"Natural-language topic hint for automatic topic resolution\",\n },\n branchId: {\n type: \"string\",\n description: \"The branch this worktree investigates\",\n },\n objective: {\n type: \"string\",\n description:\n \"Plain-text reasoning objective to auto-shape into a hypothesis, questions, tasks, and dependencies\",\n },\n hypothesis: {\n type: \"string\",\n description: \"The testable claim this worktree investigates\",\n },\n rationale: {\n type: \"string\",\n description:\n \"Why this worktree exists and why it belongs in the campaign\",\n },\n worktreeType: {\n type: \"string\",\n description:\n \"Schema-enum worktree type used by the kernel lifecycle and retrieval layers\",\n },\n gate: {\n type: \"string\",\n description: \"Exit gate name for this worktree\",\n },\n startDate: {\n type: \"number\",\n description: \"Planned start timestamp in milliseconds since epoch\",\n },\n endDate: {\n type: \"number\",\n description: \"Planned end timestamp in milliseconds since epoch\",\n },\n durationWeeks: {\n type: \"number\",\n description: \"Planned duration in weeks\",\n },\n confidenceImpact: {\n type: \"string\",\n description: \"Expected confidence impact if the worktree succeeds\",\n enum: [\"high\", \"medium\", \"low\"],\n },\n beliefFocus: {\n type: \"string\",\n description:\n \"Natural-language focus spanning the target belief neighborhood\",\n },\n beliefIds: {\n type: \"array\",\n description: \"Legacy alias for targetBeliefIds\",\n },\n beliefs: {\n type: \"array\",\n description: \"Legacy alias for targetBeliefIds\",\n },\n targetBeliefIds: {\n type: \"array\",\n description: \"Belief node IDs this worktree is expected to test or update\",\n },\n targetQuestionIds: {\n type: \"array\",\n description: \"Question node IDs this worktree is expected to answer\",\n },\n keyQuestions: {\n type: \"array\",\n description:\n \"Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId\",\n },\n evidenceSignals: {\n type: \"array\",\n description:\n \"Evidence signal objects with signal, optional collected state, progress, and notes\",\n },\n decisionGate: {\n type: \"object\",\n description:\n \"Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy\",\n },\n goCriteria: {\n type: \"array\",\n description: \"Shorthand go criteria used to build decisionGate\",\n },\n noGoSignals: {\n type: \"array\",\n description: \"Shorthand no-go signals used to build decisionGate\",\n },\n proofArtifacts: {\n type: \"array\",\n description: \"Expected proof artifacts required to close the worktree\",\n },\n autoShape: {\n type: \"boolean\",\n description:\n \"Whether to invoke inquiry auto-shaping during worktree creation\",\n },\n autoFixPolicy: {\n type: \"object\",\n description:\n \"Policy for permitted automatic remediation inside the worktree\",\n },\n domainPackId: {\n type: \"string\",\n description:\n \"Optional domain pack whose shaping hooks should influence generated questions and tasks\",\n },\n tags: {\n type: \"array\",\n description: \"Additional topic-resolution tags for the worktree\",\n },\n touchedPaths: {\n type: \"array\",\n description: \"File paths used as topic-resolution signals\",\n },\n sourceRef: {\n type: \"string\",\n description: \"Source reference used as a topic-resolution signal\",\n },\n sourceKind: {\n type: \"string\",\n description: \"Source kind used as a topic-resolution signal\",\n },\n campaign: {\n type: \"number\",\n description:\n \"Top-level pipeline campaign number. Campaigns define the outer execution slice.\",\n },\n lane: {\n type: \"string\",\n description:\n \"GitButler-aligned workstream lane name inside the campaign.\",\n },\n laneOrderInCampaign: {\n type: \"number\",\n description:\n \"Ordering for this lane within its campaign.\",\n },\n orderInLane: {\n type: \"number\",\n description:\n \"Position of this worktree inside its lane.\",\n },\n dependsOn: {\n type: \"array\",\n description: \"Worktree IDs that must complete before this one can activate\",\n },\n blocks: {\n type: \"array\",\n description: \"Worktree IDs blocked by this worktree\",\n },\n staffingHint: {\n type: \"string\",\n description: \"Suggested staffing or agent allocation note\",\n },\n lensId: {\n type: \"string\",\n description: \"Lens that scopes this worktree when applicable\",\n },\n lastReconciledAt: {\n type: \"number\",\n description: \"Timestamp when worktree metadata was last reconciled\",\n },\n },\n required: [\"title\"],\n response: {\n description: \"The created worktree\",\n fields: {\n worktreeId: \"string\",\n branchId: \"string | null\",\n status: \"string — usually 'planning' or 'active'\",\n title: \"string\",\n hypothesis: \"string | null\",\n questionCount: \"number\",\n taskCount: \"number\",\n autoShapeApplied: \"boolean\",\n frameworkSuggestions: \"array\",\n dependencySuggestions: \"array\",\n },\n },\n ownerModule: \"workflow-engine\",\n ontologyPrimitive: \"worktree\",\n tier: \"showcase\",\n};\n\nexport const MERGE: McpToolContract = {\n name: \"merge\",\n description:\n \"Merge a worktree's findings into the stable knowledge base (main). \" +\n \"Like `git merge` to main — formulations freeze, confidence is recorded, findings are integrated. \" +\n \"Each belief gets a confidence score and rationale. After merge, beliefs can only evolve via fork. \" +\n \"Low-confidence beliefs may need forking.\",\n parameters: {\n worktreeId: { type: \"string\", description: \"The worktree to merge\" },\n outcomes: {\n type: \"array\",\n description:\n \"Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }\",\n },\n summary: { type: \"string\", description: \"Overall findings summary\" },\n },\n required: [\"worktreeId\", \"outcomes\"],\n response: {\n description: \"Merge result\",\n fields: {\n worktreeId: \"string\",\n status: \"string — 'merged'\",\n beliefsScored: \"number\",\n },\n },\n ownerModule: \"workflow-engine\",\n ontologyPrimitive: \"worktree\",\n tier: \"showcase\",\n};\n\n// =============================================================================\n// LINEAGE AND AUDIT TOOLS\n// =============================================================================\n\nexport const PUSH: McpToolContract = {\n name: \"push\",\n description:\n \"Push scored beliefs from a merged worktree to other contexts. \" +\n \"Like `git push` — makes local findings available on the remote. \" +\n \"Only merged beliefs can be pushed. \" +\n \"Publication makes findings visible to other projects, teams, or external consumers.\",\n parameters: {\n worktreeId: {\n type: \"string\",\n description: \"The merged worktree whose findings to push\",\n },\n targetContext: {\n type: \"string\",\n description: \"Where to push (e.g., 'portfolio', 'ic_review', 'external')\",\n },\n beliefIds: {\n type: \"array\",\n description: \"Optional subset of beliefs to push (default: all scored)\",\n },\n },\n required: [\"worktreeId\", \"targetContext\"],\n response: {\n description: \"Push result\",\n fields: {\n pushedCount: \"number\",\n targetContext: \"string\",\n pushedAt: \"number\",\n },\n },\n ownerModule: \"workflow-engine\",\n ontologyPrimitive: \"worktree\",\n tier: \"workhorse\",\n};\n\n// =============================================================================\n// PULL REQUEST TOOLS (git pull request)\n// =============================================================================\n\nexport const OPEN_PULL_REQUEST: McpToolContract = {\n name: \"open_pull_request\",\n description:\n \"Open a pull request for peer review before merging a worktree. \" +\n \"Like opening a `git pull request` — the worktree's findings are ready but await approval before merge. \" +\n \"Reviewers can approve, request changes, or block the merge. \" +\n \"This is the gate between draft work and scored knowledge.\",\n parameters: {\n worktreeId: {\n type: \"string\",\n description: \"The worktree to submit for review\",\n },\n reviewers: {\n type: \"array\",\n description: \"User IDs of requested reviewers\",\n },\n summary: {\n type: \"string\",\n description: \"Summary of findings and why they're ready for merge\",\n },\n },\n required: [\"worktreeId\", \"summary\"],\n response: {\n description: \"The pull request\",\n fields: {\n pullRequestId: \"string\",\n worktreeId: \"string\",\n status: \"string — 'pending_review'\",\n },\n },\n ownerModule: \"workflow-engine\",\n ontologyPrimitive: \"worktree\",\n tier: \"showcase\",\n};\n\n// =============================================================================\n// FORENSIC TOOLS (git bisect)\n// =============================================================================\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucern/contracts",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -195,19 +195,11 @@
195
195
  "typecheck": "tsc --noEmit"
196
196
  },
197
197
  "dependencies": {
198
+ "convex": "^1.17.0",
198
199
  "typescript": "^5.7.0",
199
200
  "zod": "^3.23.0"
200
201
  },
201
- "peerDependencies": {
202
- "convex": "^1.17.0"
203
- },
204
- "peerDependenciesMeta": {
205
- "convex": {
206
- "optional": true
207
- }
208
- },
209
202
  "devDependencies": {
210
- "tsup": "^8.5.0",
211
- "typescript": "^5.7.0"
203
+ "tsup": "^8.5.0"
212
204
  }
213
205
  }
@@ -1,110 +0,0 @@
1
- import { a as FunctionContract, F as FunctionEffect, d as defineFunction } from './defineFunction-DO97DKs4.js';
2
- import { a as TableIndex, b as TableComponent, T as TableContract, c as TableDeprecation, d as defineTable } from './defineTable-t1wr5wgn.js';
3
- import { a as CONVEX_ID_TABLE, C as ConvexIdSchema, g as getConvexIdTable, i as idOf } from './idOf-DR8tkhQS.js';
4
- import { z, ZodTypeAny } from 'zod';
5
-
6
- type AdapterKind = "convex" | "jsonschema" | "cli";
7
- type AdapterPurpose = "table" | "function_args" | "function_returns";
8
- type AdapterContext = {
9
- adapter: AdapterKind;
10
- purpose?: AdapterPurpose;
11
- location?: string;
12
- path?: readonly string[];
13
- };
14
- declare class SchemaAdapterError extends Error {
15
- readonly context: AdapterContext;
16
- constructor(message: string, context: AdapterContext);
17
- }
18
- declare function schemaAdapterError(message: string, context: AdapterContext): SchemaAdapterError;
19
-
20
- type CliOptionKind = "string" | "number" | "bigint" | "boolean" | "json";
21
- type CliOptionSpec = {
22
- name: string;
23
- kind: CliOptionKind;
24
- required: boolean;
25
- variadic?: boolean;
26
- nullable?: boolean;
27
- choices?: readonly (string | number | boolean)[];
28
- defaultValue?: unknown;
29
- description?: string;
30
- };
31
- type CliCommandSpec = {
32
- options: readonly CliOptionSpec[];
33
- };
34
- type ZodToCliOptions = {
35
- location?: string;
36
- };
37
- declare function zodToCli(schema: z.ZodObject<z.ZodRawShape>, options?: ZodToCliOptions): CliCommandSpec;
38
-
39
- type ConvexDefault = {
40
- path: readonly string[];
41
- value: unknown;
42
- };
43
- type ZodToConvexOptions = {
44
- purpose?: AdapterPurpose;
45
- location?: string;
46
- };
47
- type ZodToConvexResult = {
48
- source: string;
49
- defaults: readonly ConvexDefault[];
50
- };
51
- declare function zodToConvex(schema: ZodTypeAny, options?: ZodToConvexOptions): ZodToConvexResult;
52
- declare function tableIndexToConvexSource(index: TableIndex): string;
53
-
54
- type JsonSchema = boolean | {
55
- $schema?: string;
56
- type?: string | readonly string[];
57
- properties?: Record<string, JsonSchema>;
58
- required?: readonly string[];
59
- additionalProperties?: boolean | JsonSchema;
60
- items?: JsonSchema;
61
- enum?: readonly (string | number | boolean)[];
62
- const?: string | number | boolean | null;
63
- anyOf?: readonly JsonSchema[];
64
- oneOf?: readonly JsonSchema[];
65
- default?: unknown;
66
- format?: string;
67
- description?: string;
68
- [key: string]: unknown;
69
- };
70
- type ZodToJsonSchemaOptions = {
71
- location?: string;
72
- };
73
- declare function zodToJsonSchema(schema: ZodTypeAny, options?: ZodToJsonSchemaOptions): JsonSchema;
74
-
75
- type dsl_AdapterContext = AdapterContext;
76
- type dsl_AdapterKind = AdapterKind;
77
- type dsl_AdapterPurpose = AdapterPurpose;
78
- declare const dsl_CONVEX_ID_TABLE: typeof CONVEX_ID_TABLE;
79
- type dsl_CliCommandSpec = CliCommandSpec;
80
- type dsl_CliOptionKind = CliOptionKind;
81
- type dsl_CliOptionSpec = CliOptionSpec;
82
- type dsl_ConvexDefault = ConvexDefault;
83
- declare const dsl_ConvexIdSchema: typeof ConvexIdSchema;
84
- declare const dsl_FunctionContract: typeof FunctionContract;
85
- declare const dsl_FunctionEffect: typeof FunctionEffect;
86
- type dsl_JsonSchema = JsonSchema;
87
- type dsl_SchemaAdapterError = SchemaAdapterError;
88
- declare const dsl_SchemaAdapterError: typeof SchemaAdapterError;
89
- declare const dsl_TableComponent: typeof TableComponent;
90
- declare const dsl_TableContract: typeof TableContract;
91
- declare const dsl_TableDeprecation: typeof TableDeprecation;
92
- declare const dsl_TableIndex: typeof TableIndex;
93
- type dsl_ZodToCliOptions = ZodToCliOptions;
94
- type dsl_ZodToConvexOptions = ZodToConvexOptions;
95
- type dsl_ZodToConvexResult = ZodToConvexResult;
96
- type dsl_ZodToJsonSchemaOptions = ZodToJsonSchemaOptions;
97
- declare const dsl_defineFunction: typeof defineFunction;
98
- declare const dsl_defineTable: typeof defineTable;
99
- declare const dsl_getConvexIdTable: typeof getConvexIdTable;
100
- declare const dsl_idOf: typeof idOf;
101
- declare const dsl_schemaAdapterError: typeof schemaAdapterError;
102
- declare const dsl_tableIndexToConvexSource: typeof tableIndexToConvexSource;
103
- declare const dsl_zodToCli: typeof zodToCli;
104
- declare const dsl_zodToConvex: typeof zodToConvex;
105
- declare const dsl_zodToJsonSchema: typeof zodToJsonSchema;
106
- declare namespace dsl {
107
- export { type dsl_AdapterContext as AdapterContext, type dsl_AdapterKind as AdapterKind, type dsl_AdapterPurpose as AdapterPurpose, dsl_CONVEX_ID_TABLE as CONVEX_ID_TABLE, type dsl_CliCommandSpec as CliCommandSpec, type dsl_CliOptionKind as CliOptionKind, type dsl_CliOptionSpec as CliOptionSpec, type dsl_ConvexDefault as ConvexDefault, dsl_ConvexIdSchema as ConvexIdSchema, dsl_FunctionContract as FunctionContract, dsl_FunctionEffect as FunctionEffect, type dsl_JsonSchema as JsonSchema, dsl_SchemaAdapterError as SchemaAdapterError, dsl_TableComponent as TableComponent, dsl_TableContract as TableContract, dsl_TableDeprecation as TableDeprecation, dsl_TableIndex as TableIndex, type dsl_ZodToCliOptions as ZodToCliOptions, type dsl_ZodToConvexOptions as ZodToConvexOptions, type dsl_ZodToConvexResult as ZodToConvexResult, type dsl_ZodToJsonSchemaOptions as ZodToJsonSchemaOptions, dsl_defineFunction as defineFunction, dsl_defineTable as defineTable, dsl_getConvexIdTable as getConvexIdTable, dsl_idOf as idOf, dsl_schemaAdapterError as schemaAdapterError, dsl_tableIndexToConvexSource as tableIndexToConvexSource, dsl_zodToCli as zodToCli, dsl_zodToConvex as zodToConvex, dsl_zodToJsonSchema as zodToJsonSchema };
108
- }
109
-
110
- export { type AdapterContext as A, type CliCommandSpec as C, type JsonSchema as J, SchemaAdapterError as S, type ZodToCliOptions as Z, type AdapterKind as a, type AdapterPurpose as b, type CliOptionKind as c, dsl as d, type CliOptionSpec as e, type ConvexDefault as f, type ZodToConvexOptions as g, type ZodToConvexResult as h, type ZodToJsonSchemaOptions as i, zodToConvex as j, zodToJsonSchema as k, schemaAdapterError as s, tableIndexToConvexSource as t, zodToCli as z };
@@ -1,28 +0,0 @@
1
- import { EDGE_TYPE, EDGE_TYPE_VALUES, NODE_TYPE, STORAGE_EDGE_TYPE, STORAGE_EDGE_TYPE_VALUES, TOPIC_STATUS, TOPIC_VISIBILITY } from './schemas/enums.js';
2
- import { ALL_TABLE_CONTRACTS, CONTROL_PLANE_TABLE_CONTRACTS, KERNEL_TABLE_CONTRACTS, MC_TABLE_CONTRACTS, TABLE_CONTRACTS_BY_COMPONENT, getTableContract, listTableContractsByName } from './schemas/manifest.js';
3
- import { ComponentTableManifest, ComponentTableManifestSchema } from './schemas/component-table-manifest.js';
4
- import { SLOpinionInput, SLOpinionInputSchema } from './schemas/sl-opinion.js';
5
-
6
- declare const index_ALL_TABLE_CONTRACTS: typeof ALL_TABLE_CONTRACTS;
7
- declare const index_CONTROL_PLANE_TABLE_CONTRACTS: typeof CONTROL_PLANE_TABLE_CONTRACTS;
8
- declare const index_ComponentTableManifest: typeof ComponentTableManifest;
9
- declare const index_ComponentTableManifestSchema: typeof ComponentTableManifestSchema;
10
- declare const index_EDGE_TYPE: typeof EDGE_TYPE;
11
- declare const index_EDGE_TYPE_VALUES: typeof EDGE_TYPE_VALUES;
12
- declare const index_KERNEL_TABLE_CONTRACTS: typeof KERNEL_TABLE_CONTRACTS;
13
- declare const index_MC_TABLE_CONTRACTS: typeof MC_TABLE_CONTRACTS;
14
- declare const index_NODE_TYPE: typeof NODE_TYPE;
15
- declare const index_SLOpinionInput: typeof SLOpinionInput;
16
- declare const index_SLOpinionInputSchema: typeof SLOpinionInputSchema;
17
- declare const index_STORAGE_EDGE_TYPE: typeof STORAGE_EDGE_TYPE;
18
- declare const index_STORAGE_EDGE_TYPE_VALUES: typeof STORAGE_EDGE_TYPE_VALUES;
19
- declare const index_TABLE_CONTRACTS_BY_COMPONENT: typeof TABLE_CONTRACTS_BY_COMPONENT;
20
- declare const index_TOPIC_STATUS: typeof TOPIC_STATUS;
21
- declare const index_TOPIC_VISIBILITY: typeof TOPIC_VISIBILITY;
22
- declare const index_getTableContract: typeof getTableContract;
23
- declare const index_listTableContractsByName: typeof listTableContractsByName;
24
- declare namespace index {
25
- export { index_ALL_TABLE_CONTRACTS as ALL_TABLE_CONTRACTS, index_CONTROL_PLANE_TABLE_CONTRACTS as CONTROL_PLANE_TABLE_CONTRACTS, index_ComponentTableManifest as ComponentTableManifest, index_ComponentTableManifestSchema as ComponentTableManifestSchema, index_EDGE_TYPE as EDGE_TYPE, index_EDGE_TYPE_VALUES as EDGE_TYPE_VALUES, index_KERNEL_TABLE_CONTRACTS as KERNEL_TABLE_CONTRACTS, index_MC_TABLE_CONTRACTS as MC_TABLE_CONTRACTS, index_NODE_TYPE as NODE_TYPE, index_SLOpinionInput as SLOpinionInput, index_SLOpinionInputSchema as SLOpinionInputSchema, index_STORAGE_EDGE_TYPE as STORAGE_EDGE_TYPE, index_STORAGE_EDGE_TYPE_VALUES as STORAGE_EDGE_TYPE_VALUES, index_TABLE_CONTRACTS_BY_COMPONENT as TABLE_CONTRACTS_BY_COMPONENT, index_TOPIC_STATUS as TOPIC_STATUS, index_TOPIC_VISIBILITY as TOPIC_VISIBILITY, index_getTableContract as getTableContract, index_listTableContractsByName as listTableContractsByName };
26
- }
27
-
28
- export { index as i };
@@ -1,146 +0,0 @@
1
- import { M as McpToolContract } from './tool-contracts-C_xvM9q2.js';
2
-
3
- /**
4
- * SDK-Only Tool Contract Definitions
5
- *
6
- * Tools available in @lucern/sdk but NOT in the MCP gateway.
7
- * The SDK unfolds deeper capabilities after the MCP gateway shows developers what's possible.
8
- *
9
- * Total SDK surface = MCP tools (44) + SDK-only tools (44) = 88 tools
10
- *
11
- * These tools are organized into capability tiers:
12
- * - Advanced workflow & phase management (12 tools)
13
- * - Deeper graph navigation (6 tools)
14
- * - Conviction & analytics (7 tools)
15
- * - Extended question & evidence analytics (1 tool; core lifecycle promoted to MCP)
16
- * - Task lifecycle (5 tools)
17
- * - Domain analytics (8 tools)
18
- * - Bias detection suite (5 tools)
19
- *
20
- * CONTRACT SURFACE: These definitions are the external API for SDK consumers.
21
- * Renaming a tool or changing its description is a BREAKING CHANGE.
22
- *
23
- * Git-native naming rules (same as MCP, enforced by lint):
24
- * 1. Workflow tools use git verbs directly
25
- * 2. Knowledge tools use epistemic verbs
26
- * 3. First sentence of description includes the git analog verb
27
- * 4. Description includes "Like `git X`" parenthetical
28
- * 5. Parameter names use domain terms (canonicalText, nodeId, confidence)
29
- */
30
-
31
- /** SDK-only tool contract — same shape as MCP but with sdk-only tier marker */
32
- interface SdkToolContract extends Omit<McpToolContract, "tier"> {
33
- tier: "sdk-only";
34
- }
35
- declare const START_WORKTREE: SdkToolContract;
36
- declare const UPDATE_WORKTREE_PHASE: SdkToolContract;
37
- declare const ADVANCE_WORKTREE_PHASE: SdkToolContract;
38
- declare const ADD_NOTE_TO_WORKTREE: SdkToolContract;
39
- declare const LINK_DOCUMENT_TO_WORKTREE: SdkToolContract;
40
- declare const LINK_EVIDENCE_TO_WORKTREE: SdkToolContract;
41
- declare const LINK_QUESTION_TO_WORKTREE: SdkToolContract;
42
- declare const LINK_BELIEF_TO_WORKTREE: SdkToolContract;
43
- declare const CREATE_SYNTHESIZED_BELIEF: SdkToolContract;
44
- declare const COMPLETE_HYPOTHESIS_FORMATION: SdkToolContract;
45
- declare const COMPLETE_EVIDENCE_REVIEW: SdkToolContract;
46
- declare const REFINE_WORKTREE_BELIEF: SdkToolContract;
47
- declare const TRACE_PROVENANCE: SdkToolContract;
48
- declare const GET_BELIEF_RELATIONSHIPS: SdkToolContract;
49
- declare const GET_BELIEF_SUPPORT_CHAIN: SdkToolContract;
50
- declare const EXPLORE_CONNECTIONS: SdkToolContract;
51
- declare const GET_DEEP_LINEAGE: SdkToolContract;
52
- declare const GRAPH_AWARE_SEARCH: SdkToolContract;
53
- declare const GET_COLLECTION_CONVICTION: SdkToolContract;
54
- declare const GET_CONVICTION_TREND: SdkToolContract;
55
- declare const ANALYZE_BELIEF_CRITICALITY: SdkToolContract;
56
- declare const ANALYZE_BELIEF_CLUSTER_CANDIDATES: SdkToolContract;
57
- declare const CREATE_BELIEF_CONDITIONAL: SdkToolContract;
58
- declare const GET_NECESSARY_EVIDENCE: SdkToolContract;
59
- declare const ANALYZE_REASONING_DEPTH: SdkToolContract;
60
- declare const GET_EVIDENCE_BY_METHODOLOGY: SdkToolContract;
61
- declare const CREATE_EVIDENCE_TASK: SdkToolContract;
62
- declare const LIST_TASKS: SdkToolContract;
63
- declare const UPDATE_TASK: SdkToolContract;
64
- declare const GET_TASK_COUNTS: SdkToolContract;
65
- declare const ADD_RESEARCH_ACTION: SdkToolContract;
66
- declare const GET_PREDICTIONS: SdkToolContract;
67
- declare const GET_SURPRISE_DETECTION: SdkToolContract;
68
- declare const GET_CHALLENGED_BELIEFS: SdkToolContract;
69
- declare const GET_CAUSAL_CHAINS: SdkToolContract;
70
- declare const GET_NON_CONSENSUS_BELIEFS: SdkToolContract;
71
- declare const GET_BELIEFS_BY_EPISTEMIC_STATUS: SdkToolContract;
72
- declare const DETECT_ANCHORING_BIAS: SdkToolContract;
73
- declare const DETECT_SOURCE_CONCENTRATION: SdkToolContract;
74
- declare const FIND_SOFT_CONTRADICTIONS: SdkToolContract;
75
- declare const FIND_SEMANTIC_BRIDGES: SdkToolContract;
76
- declare const FIND_SEMANTIC_ORPHANS: SdkToolContract;
77
- /** All SDK-only tool contracts, indexed by name */
78
- declare const SDK_ONLY_TOOL_CONTRACTS: Record<string, SdkToolContract>;
79
- /** Complete SDK surface: MCP gateway tools + SDK-only advanced tools */
80
- declare const ALL_SDK_TOOL_CONTRACTS: Record<string, McpToolContract | SdkToolContract>;
81
- /** All SDK-only tool names */
82
- declare const SDK_ONLY_TOOL_NAMES: string[];
83
- /** All tool names across the complete SDK surface */
84
- declare const ALL_SDK_TOOL_NAMES: string[];
85
- /**
86
- * Lint validation: every SDK tool description must contain "Like `git" reference.
87
- * Reuses the same git-semantic validation rule as MCP tools.
88
- */
89
- declare function validateSdkGitSemantics(tool: SdkToolContract): {
90
- valid: boolean;
91
- reason?: string;
92
- };
93
-
94
- declare const sdkTools_contract_ADD_NOTE_TO_WORKTREE: typeof ADD_NOTE_TO_WORKTREE;
95
- declare const sdkTools_contract_ADD_RESEARCH_ACTION: typeof ADD_RESEARCH_ACTION;
96
- declare const sdkTools_contract_ADVANCE_WORKTREE_PHASE: typeof ADVANCE_WORKTREE_PHASE;
97
- declare const sdkTools_contract_ALL_SDK_TOOL_CONTRACTS: typeof ALL_SDK_TOOL_CONTRACTS;
98
- declare const sdkTools_contract_ALL_SDK_TOOL_NAMES: typeof ALL_SDK_TOOL_NAMES;
99
- declare const sdkTools_contract_ANALYZE_BELIEF_CLUSTER_CANDIDATES: typeof ANALYZE_BELIEF_CLUSTER_CANDIDATES;
100
- declare const sdkTools_contract_ANALYZE_BELIEF_CRITICALITY: typeof ANALYZE_BELIEF_CRITICALITY;
101
- declare const sdkTools_contract_ANALYZE_REASONING_DEPTH: typeof ANALYZE_REASONING_DEPTH;
102
- declare const sdkTools_contract_COMPLETE_EVIDENCE_REVIEW: typeof COMPLETE_EVIDENCE_REVIEW;
103
- declare const sdkTools_contract_COMPLETE_HYPOTHESIS_FORMATION: typeof COMPLETE_HYPOTHESIS_FORMATION;
104
- declare const sdkTools_contract_CREATE_BELIEF_CONDITIONAL: typeof CREATE_BELIEF_CONDITIONAL;
105
- declare const sdkTools_contract_CREATE_EVIDENCE_TASK: typeof CREATE_EVIDENCE_TASK;
106
- declare const sdkTools_contract_CREATE_SYNTHESIZED_BELIEF: typeof CREATE_SYNTHESIZED_BELIEF;
107
- declare const sdkTools_contract_DETECT_ANCHORING_BIAS: typeof DETECT_ANCHORING_BIAS;
108
- declare const sdkTools_contract_DETECT_SOURCE_CONCENTRATION: typeof DETECT_SOURCE_CONCENTRATION;
109
- declare const sdkTools_contract_EXPLORE_CONNECTIONS: typeof EXPLORE_CONNECTIONS;
110
- declare const sdkTools_contract_FIND_SEMANTIC_BRIDGES: typeof FIND_SEMANTIC_BRIDGES;
111
- declare const sdkTools_contract_FIND_SEMANTIC_ORPHANS: typeof FIND_SEMANTIC_ORPHANS;
112
- declare const sdkTools_contract_FIND_SOFT_CONTRADICTIONS: typeof FIND_SOFT_CONTRADICTIONS;
113
- declare const sdkTools_contract_GET_BELIEFS_BY_EPISTEMIC_STATUS: typeof GET_BELIEFS_BY_EPISTEMIC_STATUS;
114
- declare const sdkTools_contract_GET_BELIEF_RELATIONSHIPS: typeof GET_BELIEF_RELATIONSHIPS;
115
- declare const sdkTools_contract_GET_BELIEF_SUPPORT_CHAIN: typeof GET_BELIEF_SUPPORT_CHAIN;
116
- declare const sdkTools_contract_GET_CAUSAL_CHAINS: typeof GET_CAUSAL_CHAINS;
117
- declare const sdkTools_contract_GET_CHALLENGED_BELIEFS: typeof GET_CHALLENGED_BELIEFS;
118
- declare const sdkTools_contract_GET_COLLECTION_CONVICTION: typeof GET_COLLECTION_CONVICTION;
119
- declare const sdkTools_contract_GET_CONVICTION_TREND: typeof GET_CONVICTION_TREND;
120
- declare const sdkTools_contract_GET_DEEP_LINEAGE: typeof GET_DEEP_LINEAGE;
121
- declare const sdkTools_contract_GET_EVIDENCE_BY_METHODOLOGY: typeof GET_EVIDENCE_BY_METHODOLOGY;
122
- declare const sdkTools_contract_GET_NECESSARY_EVIDENCE: typeof GET_NECESSARY_EVIDENCE;
123
- declare const sdkTools_contract_GET_NON_CONSENSUS_BELIEFS: typeof GET_NON_CONSENSUS_BELIEFS;
124
- declare const sdkTools_contract_GET_PREDICTIONS: typeof GET_PREDICTIONS;
125
- declare const sdkTools_contract_GET_SURPRISE_DETECTION: typeof GET_SURPRISE_DETECTION;
126
- declare const sdkTools_contract_GET_TASK_COUNTS: typeof GET_TASK_COUNTS;
127
- declare const sdkTools_contract_GRAPH_AWARE_SEARCH: typeof GRAPH_AWARE_SEARCH;
128
- declare const sdkTools_contract_LINK_BELIEF_TO_WORKTREE: typeof LINK_BELIEF_TO_WORKTREE;
129
- declare const sdkTools_contract_LINK_DOCUMENT_TO_WORKTREE: typeof LINK_DOCUMENT_TO_WORKTREE;
130
- declare const sdkTools_contract_LINK_EVIDENCE_TO_WORKTREE: typeof LINK_EVIDENCE_TO_WORKTREE;
131
- declare const sdkTools_contract_LINK_QUESTION_TO_WORKTREE: typeof LINK_QUESTION_TO_WORKTREE;
132
- declare const sdkTools_contract_LIST_TASKS: typeof LIST_TASKS;
133
- declare const sdkTools_contract_REFINE_WORKTREE_BELIEF: typeof REFINE_WORKTREE_BELIEF;
134
- declare const sdkTools_contract_SDK_ONLY_TOOL_CONTRACTS: typeof SDK_ONLY_TOOL_CONTRACTS;
135
- declare const sdkTools_contract_SDK_ONLY_TOOL_NAMES: typeof SDK_ONLY_TOOL_NAMES;
136
- declare const sdkTools_contract_START_WORKTREE: typeof START_WORKTREE;
137
- type sdkTools_contract_SdkToolContract = SdkToolContract;
138
- declare const sdkTools_contract_TRACE_PROVENANCE: typeof TRACE_PROVENANCE;
139
- declare const sdkTools_contract_UPDATE_TASK: typeof UPDATE_TASK;
140
- declare const sdkTools_contract_UPDATE_WORKTREE_PHASE: typeof UPDATE_WORKTREE_PHASE;
141
- declare const sdkTools_contract_validateSdkGitSemantics: typeof validateSdkGitSemantics;
142
- declare namespace sdkTools_contract {
143
- export { sdkTools_contract_ADD_NOTE_TO_WORKTREE as ADD_NOTE_TO_WORKTREE, sdkTools_contract_ADD_RESEARCH_ACTION as ADD_RESEARCH_ACTION, sdkTools_contract_ADVANCE_WORKTREE_PHASE as ADVANCE_WORKTREE_PHASE, sdkTools_contract_ALL_SDK_TOOL_CONTRACTS as ALL_SDK_TOOL_CONTRACTS, sdkTools_contract_ALL_SDK_TOOL_NAMES as ALL_SDK_TOOL_NAMES, sdkTools_contract_ANALYZE_BELIEF_CLUSTER_CANDIDATES as ANALYZE_BELIEF_CLUSTER_CANDIDATES, sdkTools_contract_ANALYZE_BELIEF_CRITICALITY as ANALYZE_BELIEF_CRITICALITY, sdkTools_contract_ANALYZE_REASONING_DEPTH as ANALYZE_REASONING_DEPTH, sdkTools_contract_COMPLETE_EVIDENCE_REVIEW as COMPLETE_EVIDENCE_REVIEW, sdkTools_contract_COMPLETE_HYPOTHESIS_FORMATION as COMPLETE_HYPOTHESIS_FORMATION, sdkTools_contract_CREATE_BELIEF_CONDITIONAL as CREATE_BELIEF_CONDITIONAL, sdkTools_contract_CREATE_EVIDENCE_TASK as CREATE_EVIDENCE_TASK, sdkTools_contract_CREATE_SYNTHESIZED_BELIEF as CREATE_SYNTHESIZED_BELIEF, sdkTools_contract_DETECT_ANCHORING_BIAS as DETECT_ANCHORING_BIAS, sdkTools_contract_DETECT_SOURCE_CONCENTRATION as DETECT_SOURCE_CONCENTRATION, sdkTools_contract_EXPLORE_CONNECTIONS as EXPLORE_CONNECTIONS, sdkTools_contract_FIND_SEMANTIC_BRIDGES as FIND_SEMANTIC_BRIDGES, sdkTools_contract_FIND_SEMANTIC_ORPHANS as FIND_SEMANTIC_ORPHANS, sdkTools_contract_FIND_SOFT_CONTRADICTIONS as FIND_SOFT_CONTRADICTIONS, sdkTools_contract_GET_BELIEFS_BY_EPISTEMIC_STATUS as GET_BELIEFS_BY_EPISTEMIC_STATUS, sdkTools_contract_GET_BELIEF_RELATIONSHIPS as GET_BELIEF_RELATIONSHIPS, sdkTools_contract_GET_BELIEF_SUPPORT_CHAIN as GET_BELIEF_SUPPORT_CHAIN, sdkTools_contract_GET_CAUSAL_CHAINS as GET_CAUSAL_CHAINS, sdkTools_contract_GET_CHALLENGED_BELIEFS as GET_CHALLENGED_BELIEFS, sdkTools_contract_GET_COLLECTION_CONVICTION as GET_COLLECTION_CONVICTION, sdkTools_contract_GET_CONVICTION_TREND as GET_CONVICTION_TREND, sdkTools_contract_GET_DEEP_LINEAGE as GET_DEEP_LINEAGE, sdkTools_contract_GET_EVIDENCE_BY_METHODOLOGY as GET_EVIDENCE_BY_METHODOLOGY, sdkTools_contract_GET_NECESSARY_EVIDENCE as GET_NECESSARY_EVIDENCE, sdkTools_contract_GET_NON_CONSENSUS_BELIEFS as GET_NON_CONSENSUS_BELIEFS, sdkTools_contract_GET_PREDICTIONS as GET_PREDICTIONS, sdkTools_contract_GET_SURPRISE_DETECTION as GET_SURPRISE_DETECTION, sdkTools_contract_GET_TASK_COUNTS as GET_TASK_COUNTS, sdkTools_contract_GRAPH_AWARE_SEARCH as GRAPH_AWARE_SEARCH, sdkTools_contract_LINK_BELIEF_TO_WORKTREE as LINK_BELIEF_TO_WORKTREE, sdkTools_contract_LINK_DOCUMENT_TO_WORKTREE as LINK_DOCUMENT_TO_WORKTREE, sdkTools_contract_LINK_EVIDENCE_TO_WORKTREE as LINK_EVIDENCE_TO_WORKTREE, sdkTools_contract_LINK_QUESTION_TO_WORKTREE as LINK_QUESTION_TO_WORKTREE, sdkTools_contract_LIST_TASKS as LIST_TASKS, sdkTools_contract_REFINE_WORKTREE_BELIEF as REFINE_WORKTREE_BELIEF, sdkTools_contract_SDK_ONLY_TOOL_CONTRACTS as SDK_ONLY_TOOL_CONTRACTS, sdkTools_contract_SDK_ONLY_TOOL_NAMES as SDK_ONLY_TOOL_NAMES, sdkTools_contract_START_WORKTREE as START_WORKTREE, type sdkTools_contract_SdkToolContract as SdkToolContract, sdkTools_contract_TRACE_PROVENANCE as TRACE_PROVENANCE, sdkTools_contract_UPDATE_TASK as UPDATE_TASK, sdkTools_contract_UPDATE_WORKTREE_PHASE as UPDATE_WORKTREE_PHASE, sdkTools_contract_validateSdkGitSemantics as validateSdkGitSemantics };
144
- }
145
-
146
- export { ADD_NOTE_TO_WORKTREE as A, GET_SURPRISE_DETECTION as B, COMPLETE_EVIDENCE_REVIEW as C, DETECT_ANCHORING_BIAS as D, EXPLORE_CONNECTIONS as E, FIND_SEMANTIC_BRIDGES as F, GET_BELIEFS_BY_EPISTEMIC_STATUS as G, GET_TASK_COUNTS as H, GRAPH_AWARE_SEARCH as I, LINK_DOCUMENT_TO_WORKTREE as J, LINK_EVIDENCE_TO_WORKTREE as K, LINK_BELIEF_TO_WORKTREE as L, LINK_QUESTION_TO_WORKTREE as M, LIST_TASKS as N, SDK_ONLY_TOOL_NAMES as O, START_WORKTREE as P, type SdkToolContract as Q, REFINE_WORKTREE_BELIEF as R, SDK_ONLY_TOOL_CONTRACTS as S, TRACE_PROVENANCE as T, UPDATE_TASK as U, UPDATE_WORKTREE_PHASE as V, validateSdkGitSemantics as W, ADD_RESEARCH_ACTION as a, ADVANCE_WORKTREE_PHASE as b, ALL_SDK_TOOL_CONTRACTS as c, ALL_SDK_TOOL_NAMES as d, ANALYZE_BELIEF_CLUSTER_CANDIDATES as e, ANALYZE_BELIEF_CRITICALITY as f, ANALYZE_REASONING_DEPTH as g, COMPLETE_HYPOTHESIS_FORMATION as h, CREATE_BELIEF_CONDITIONAL as i, CREATE_EVIDENCE_TASK as j, CREATE_SYNTHESIZED_BELIEF as k, DETECT_SOURCE_CONCENTRATION as l, FIND_SEMANTIC_ORPHANS as m, FIND_SOFT_CONTRADICTIONS as n, GET_BELIEF_RELATIONSHIPS as o, GET_BELIEF_SUPPORT_CHAIN as p, GET_CAUSAL_CHAINS as q, GET_CHALLENGED_BELIEFS as r, sdkTools_contract as s, GET_COLLECTION_CONVICTION as t, GET_CONVICTION_TREND as u, GET_DEEP_LINEAGE as v, GET_EVIDENCE_BY_METHODOLOGY as w, GET_NECESSARY_EVIDENCE as x, GET_NON_CONSENSUS_BELIEFS as y, GET_PREDICTIONS as z };