@lucern/sdk 0.2.0-alpha.7 → 0.2.0-alpha.8

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 (257) hide show
  1. package/dist/adminClient.d.ts +409 -0
  2. package/dist/adminClient.js +755 -0
  3. package/dist/adminClient.js.map +1 -0
  4. package/dist/answersClient.d.ts +23 -0
  5. package/dist/answersClient.js +333 -0
  6. package/dist/answersClient.js.map +1 -0
  7. package/dist/audiencesClient.d.ts +99 -0
  8. package/dist/audiencesClient.js +472 -0
  9. package/dist/audiencesClient.js.map +1 -0
  10. package/dist/auditClient.d.ts +29 -0
  11. package/dist/auditClient.js +386 -0
  12. package/dist/auditClient.js.map +1 -0
  13. package/dist/beliefsClient.d.ts +162 -0
  14. package/dist/beliefsClient.js +477 -0
  15. package/dist/beliefsClient.js.map +1 -0
  16. package/dist/client.d.ts +2378 -0
  17. package/dist/client.js +6134 -0
  18. package/dist/client.js.map +1 -0
  19. package/dist/contextClient.d.ts +27 -0
  20. package/dist/contextClient.js +396 -0
  21. package/dist/contextClient.js.map +1 -0
  22. package/dist/contextFacade.d.ts +2 -0
  23. package/dist/contextFacade.js +73 -0
  24. package/dist/contextFacade.js.map +1 -0
  25. package/dist/contextPackCompiler.d.ts +102 -0
  26. package/dist/contextPackCompiler.js +1091 -0
  27. package/dist/contextPackCompiler.js.map +1 -0
  28. package/dist/contextPackPolicy.d.ts +84 -0
  29. package/dist/contextPackPolicy.js +347 -0
  30. package/dist/contextPackPolicy.js.map +1 -0
  31. package/dist/contextPackSchema.d.ts +7 -0
  32. package/{src/contextPackSchema.ts → dist/contextPackSchema.js} +22 -70
  33. package/dist/contextPackSchema.js.map +1 -0
  34. package/dist/contextTypes.d.ts +135 -0
  35. package/dist/contextTypes.js +3 -0
  36. package/dist/contextTypes.js.map +1 -0
  37. package/dist/contracts/api-enums.contract.d.ts +81 -0
  38. package/dist/contracts/api-enums.contract.js +92 -0
  39. package/dist/contracts/api-enums.contract.js.map +1 -0
  40. package/dist/contracts/auth-session.contract.d.ts +55 -0
  41. package/dist/contracts/auth-session.contract.js +48 -0
  42. package/dist/contracts/auth-session.contract.js.map +1 -0
  43. package/dist/contracts/context-pack.contract.d.ts +492 -0
  44. package/dist/contracts/context-pack.contract.js +98 -0
  45. package/dist/contracts/context-pack.contract.js.map +1 -0
  46. package/dist/contracts/contextPack.d.ts +1 -0
  47. package/dist/contracts/contextPack.js +98 -0
  48. package/dist/contracts/contextPack.js.map +1 -0
  49. package/dist/contracts/index.d.ts +9 -0
  50. package/dist/contracts/index.js +4892 -0
  51. package/dist/contracts/index.js.map +1 -0
  52. package/dist/contracts/lens-filter.contract.d.ts +72 -0
  53. package/dist/contracts/lens-filter.contract.js +71 -0
  54. package/dist/contracts/lens-filter.contract.js.map +1 -0
  55. package/dist/contracts/lens-workflow.contract.d.ts +87 -0
  56. package/dist/contracts/lens-workflow.contract.js +123 -0
  57. package/dist/contracts/lens-workflow.contract.js.map +1 -0
  58. package/dist/contracts/lensFilter.d.ts +1 -0
  59. package/dist/contracts/lensFilter.js +71 -0
  60. package/dist/contracts/lensFilter.js.map +1 -0
  61. package/dist/contracts/lensWorkflow.d.ts +2 -0
  62. package/dist/contracts/lensWorkflow.js +123 -0
  63. package/dist/contracts/lensWorkflow.js.map +1 -0
  64. package/dist/contracts/mcp-tools.contract.d.ts +1 -0
  65. package/dist/contracts/mcp-tools.contract.js +2986 -0
  66. package/dist/contracts/mcp-tools.contract.js.map +1 -0
  67. package/dist/contracts/mcpTools.d.ts +1 -0
  68. package/dist/contracts/mcpTools.js +2986 -0
  69. package/dist/contracts/mcpTools.js.map +1 -0
  70. package/dist/contracts/prompt.contract.d.ts +26 -0
  71. package/dist/contracts/prompt.contract.js +12 -0
  72. package/dist/contracts/prompt.contract.js.map +1 -0
  73. package/dist/contracts/prompt.d.ts +1 -0
  74. package/dist/contracts/prompt.js +12 -0
  75. package/dist/contracts/prompt.js.map +1 -0
  76. package/dist/contracts/sdk-tools.contract.d.ts +2 -0
  77. package/dist/contracts/sdk-tools.contract.js +4134 -0
  78. package/dist/contracts/sdk-tools.contract.js.map +1 -0
  79. package/dist/contracts/sdkTools.d.ts +2 -0
  80. package/dist/contracts/sdkTools.js +4134 -0
  81. package/dist/contracts/sdkTools.js.map +1 -0
  82. package/dist/contracts/workflow-runtime.contract.d.ts +163 -0
  83. package/dist/contracts/workflow-runtime.contract.js +245 -0
  84. package/dist/contracts/workflow-runtime.contract.js.map +1 -0
  85. package/dist/contracts/workflowRuntime.d.ts +1 -0
  86. package/dist/contracts/workflowRuntime.js +245 -0
  87. package/dist/contracts/workflowRuntime.js.map +1 -0
  88. package/dist/controlObjectOwnership.d.ts +310 -0
  89. package/{src/controlObjectOwnership.ts → dist/controlObjectOwnership.js} +53 -124
  90. package/dist/controlObjectOwnership.js.map +1 -0
  91. package/dist/coreClient.d.ts +144 -0
  92. package/dist/coreClient.js +339 -0
  93. package/dist/coreClient.js.map +1 -0
  94. package/dist/customTools.d.ts +88 -0
  95. package/dist/customTools.js +248 -0
  96. package/dist/customTools.js.map +1 -0
  97. package/dist/decisionsClient.d.ts +111 -0
  98. package/dist/decisionsClient.js +522 -0
  99. package/dist/decisionsClient.js.map +1 -0
  100. package/dist/domainContext.d.ts +1 -0
  101. package/dist/domainContext.js +3 -0
  102. package/dist/domainContext.js.map +1 -0
  103. package/dist/events.d.ts +178 -0
  104. package/dist/events.js +249 -0
  105. package/dist/events.js.map +1 -0
  106. package/dist/eventsCore.d.ts +49 -0
  107. package/dist/eventsCore.js +429 -0
  108. package/dist/eventsCore.js.map +1 -0
  109. package/dist/facade/context.d.ts +18 -0
  110. package/dist/facade/context.js +73 -0
  111. package/dist/facade/context.js.map +1 -0
  112. package/dist/gatewayFacades.d.ts +591 -0
  113. package/dist/gatewayFacades.js +1953 -0
  114. package/dist/gatewayFacades.js.map +1 -0
  115. package/dist/graphClient.d.ts +271 -0
  116. package/dist/graphClient.js +698 -0
  117. package/dist/graphClient.js.map +1 -0
  118. package/dist/harnessClient.d.ts +314 -0
  119. package/dist/harnessClient.js +607 -0
  120. package/dist/harnessClient.js.map +1 -0
  121. package/dist/identityClient.d.ts +140 -0
  122. package/dist/identityClient.js +497 -0
  123. package/dist/identityClient.js.map +1 -0
  124. package/dist/index.d.ts +42 -0
  125. package/dist/index.js +11381 -0
  126. package/dist/index.js.map +1 -0
  127. package/dist/learningClient.d.ts +46 -0
  128. package/dist/learningClient.js +409 -0
  129. package/dist/learningClient.js.map +1 -0
  130. package/dist/mcpParityClient.d.ts +74 -0
  131. package/dist/mcpParityClient.js +516 -0
  132. package/dist/mcpParityClient.js.map +1 -0
  133. package/dist/mcpParitySurface.d.ts +12 -0
  134. package/{src/mcpParitySurface.ts → dist/mcpParitySurface.js} +9 -14
  135. package/dist/mcpParitySurface.js.map +1 -0
  136. package/dist/mcpTools-DPZxowDX.d.ts +254 -0
  137. package/dist/ontologyClient.d.ts +137 -0
  138. package/dist/ontologyClient.js +513 -0
  139. package/dist/ontologyClient.js.map +1 -0
  140. package/dist/packRuntime.d.ts +2 -0
  141. package/dist/packRuntime.js +3 -0
  142. package/dist/packRuntime.js.map +1 -0
  143. package/dist/packsClient.d.ts +131 -0
  144. package/dist/packsClient.js +525 -0
  145. package/dist/packsClient.js.map +1 -0
  146. package/dist/policyClient.d.ts +299 -0
  147. package/dist/policyClient.js +625 -0
  148. package/dist/policyClient.js.map +1 -0
  149. package/dist/realtime/index.d.ts +29 -0
  150. package/dist/realtime/index.js +23 -0
  151. package/dist/realtime/index.js.map +1 -0
  152. package/{src/realtime/refs.ts → dist/realtime/refs.d.ts} +5 -5
  153. package/dist/realtime/refs.js +9 -0
  154. package/dist/realtime/refs.js.map +1 -0
  155. package/dist/reportsClient.d.ts +41 -0
  156. package/dist/reportsClient.js +418 -0
  157. package/dist/reportsClient.js.map +1 -0
  158. package/dist/schemaClient.d.ts +64 -0
  159. package/dist/schemaClient.js +434 -0
  160. package/dist/schemaClient.js.map +1 -0
  161. package/dist/sdkSurface.d.ts +61 -0
  162. package/dist/sdkSurface.js +112 -0
  163. package/dist/sdkSurface.js.map +1 -0
  164. package/dist/sdkTools-CwXJDACb.d.ts +150 -0
  165. package/dist/topicsClient.d.ts +84 -0
  166. package/dist/topicsClient.js +492 -0
  167. package/dist/topicsClient.js.map +1 -0
  168. package/dist/types.d.ts +696 -0
  169. package/dist/types.js +3 -0
  170. package/dist/types.js.map +1 -0
  171. package/dist/version.d.ts +4 -0
  172. package/dist/version.js +6 -0
  173. package/dist/version.js.map +1 -0
  174. package/dist/workflowClient.d.ts +316 -0
  175. package/dist/workflowClient.js +830 -0
  176. package/dist/workflowClient.js.map +1 -0
  177. package/package.json +31 -7
  178. package/.turbo/turbo-build.log +0 -7
  179. package/.turbo/turbo-typecheck.log +0 -4
  180. package/examples/README.md +0 -69
  181. package/examples/contradiction.ts +0 -94
  182. package/examples/investigation-context.ts +0 -118
  183. package/examples/questions-and-tasks.ts +0 -55
  184. package/examples/quickstart.ts +0 -97
  185. package/examples/shared.ts +0 -318
  186. package/examples/strict-public-types.ts +0 -143
  187. package/examples/worktree-lifecycle.ts +0 -79
  188. package/src/README.md +0 -6
  189. package/src/adminClient.ts +0 -789
  190. package/src/answersClient.ts +0 -29
  191. package/src/audiencesClient.ts +0 -209
  192. package/src/auditClient.ts +0 -50
  193. package/src/beliefsClient.ts +0 -319
  194. package/src/client.ts +0 -2647
  195. package/src/contextClient.ts +0 -130
  196. package/src/contextFacade.ts +0 -15
  197. package/src/contextPackCompiler.ts +0 -828
  198. package/src/contextTypes.ts +0 -153
  199. package/src/contracts/api-enums.contract.ts +0 -202
  200. package/src/contracts/auth-session.contract.ts +0 -109
  201. package/src/contracts/context-pack.contract.ts +0 -700
  202. package/src/contracts/contextPack.ts +0 -1
  203. package/src/contracts/index.ts +0 -10
  204. package/src/contracts/lens-filter.contract.ts +0 -183
  205. package/src/contracts/lens-workflow.contract.ts +0 -162
  206. package/src/contracts/lensFilter.ts +0 -1
  207. package/src/contracts/lensWorkflow.ts +0 -1
  208. package/src/contracts/mcp-tools.contract.ts +0 -3636
  209. package/src/contracts/mcpTools.ts +0 -1
  210. package/src/contracts/prompt.contract.ts +0 -50
  211. package/src/contracts/prompt.ts +0 -1
  212. package/src/contracts/sdk-tools.contract.ts +0 -1457
  213. package/src/contracts/sdkTools.ts +0 -1
  214. package/src/contracts/workflow-runtime.contract.ts +0 -440
  215. package/src/contracts/workflowRuntime.ts +0 -1
  216. package/src/coreClient.ts +0 -570
  217. package/src/customTools.ts +0 -398
  218. package/src/decisionsClient.ts +0 -286
  219. package/src/domainContext.ts +0 -15
  220. package/src/events.ts +0 -531
  221. package/src/eventsCore.ts +0 -168
  222. package/src/facade/beliefs.ts +0 -83
  223. package/src/facade/context.ts +0 -110
  224. package/src/facade/contradictions.ts +0 -29
  225. package/src/facade/edges.ts +0 -30
  226. package/src/facade/events.ts +0 -23
  227. package/src/facade/evidence.ts +0 -41
  228. package/src/facade/graph.ts +0 -38
  229. package/src/facade/identity.ts +0 -16
  230. package/src/facade/ontologies.ts +0 -34
  231. package/src/facade/questions.ts +0 -59
  232. package/src/facade/search.ts +0 -16
  233. package/src/facade/tasks.ts +0 -37
  234. package/src/facade/topics.ts +0 -42
  235. package/src/facade/webhooks.ts +0 -58
  236. package/src/facade/worktrees.ts +0 -51
  237. package/src/gatewayFacades.ts +0 -1666
  238. package/src/graphClient.ts +0 -529
  239. package/src/harnessClient.ts +0 -585
  240. package/src/identityClient.ts +0 -278
  241. package/src/index.ts +0 -49
  242. package/src/learningClient.ts +0 -95
  243. package/src/mcpParityClient.ts +0 -240
  244. package/src/ontologyClient.ts +0 -275
  245. package/src/packRuntime.ts +0 -3
  246. package/src/packsClient.ts +0 -260
  247. package/src/policyClient.ts +0 -572
  248. package/src/promptCatalog.ts +0 -1
  249. package/src/realtime/index.ts +0 -51
  250. package/src/reportsClient.ts +0 -99
  251. package/src/schemaClient.ts +0 -129
  252. package/src/sdkSurface.ts +0 -190
  253. package/src/topicsClient.ts +0 -243
  254. package/src/types.ts +0 -807
  255. package/src/version.ts +0 -2
  256. package/src/workflowClient.ts +0 -826
  257. package/tsconfig.json +0 -9
@@ -0,0 +1,6 @@
1
+ // src/version.ts
2
+ var LUCERN_SDK_VERSION = "0.2.0-alpha.1";
3
+
4
+ export { LUCERN_SDK_VERSION };
5
+ //# sourceMappingURL=version.js.map
6
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"names":[],"mappings":";AACO,IAAM,kBAAA,GAAqB","file":"version.js","sourcesContent":["/** Current SDK package version. */\nexport const LUCERN_SDK_VERSION = \"0.2.0-alpha.1\";\n"]}
@@ -0,0 +1,316 @@
1
+ import { GatewayClientConfig, PlatformGatewaySuccess } from './coreClient.js';
2
+ export { LucernApiError } from './coreClient.js';
3
+ import { TopicIdentifierInput, JsonObject, ListResult, WorkflowBranchRecord, WorkflowLensRecord, WorkflowLensBindingRecord, WorkflowWorktreeRecord, ListWorktreesResponse, MergeWorktreeResponse, OpenPullRequestResponse, PushWorktreeResponse, ListTopicsResponse, SwitchTopicContextResponse, CreateTaskResponse, CompleteTaskResponse, UpdateTaskResponse } from './types.js';
4
+ export { AddWorktreeResponse, CreateBranchResponse, CreateLensResponse, LensTopicBindingResponse, ListBranchesResponse, ListLensesResponse } from './types.js';
5
+ import { LensPerspectiveType, LensStatus, LensPromptTemplateReference, LensWorkflowTemplate, LensTaskTemplate } from './contracts/lens-workflow.contract.js';
6
+ import { WorkflowProofArtifact, WorkflowStaffingHint, WorkflowAutoFixPolicy } from './contracts/workflow-runtime.contract.js';
7
+ import './contracts/lens-filter.contract.js';
8
+
9
+ /** Configuration for the workflow client. */
10
+ type WorkflowClientConfig = GatewayClientConfig;
11
+ /** Lifecycle status of a workflow branch. */
12
+ type WorkflowBranchStatus = "dormant" | "active" | "archived";
13
+ /** Lifecycle status of a workflow lens. */
14
+ type WorkflowLensStatus = LensStatus;
15
+ /** Analytical perspective type for a lens overlay. */
16
+ type WorkflowLensPerspectiveType = LensPerspectiveType;
17
+ /** Lifecycle status of a workflow worktree. */
18
+ type WorkflowWorktreeStatus = "planning" | "active" | "paused" | "completed" | "merged" | "failed" | "archived";
19
+ /** Possible outcomes when merging worktree findings into the main belief line. */
20
+ type WorkflowMergeOutcome = "validated" | "invalidated" | "forked" | "inconclusive";
21
+ /** Input for creating a new workflow worktree. */
22
+ type AddWorktreeInput = {
23
+ title: string;
24
+ topicId?: string;
25
+ branchId?: string;
26
+ objective?: string;
27
+ hypothesis?: string;
28
+ beliefIds?: string[];
29
+ autoShape?: boolean;
30
+ domainPackId?: string;
31
+ executionOrder?: number;
32
+ dependsOn?: string[];
33
+ blocks?: string[];
34
+ gate?: string;
35
+ proofArtifacts?: WorkflowProofArtifact[];
36
+ staffingHint?: WorkflowStaffingHint | string;
37
+ lastReconciledAt?: number;
38
+ autoFixPolicy?: WorkflowAutoFixPolicy;
39
+ } & TopicIdentifierInput;
40
+ /** Input for merging worktree findings with belief confidence outcomes. */
41
+ type MergeInput = {
42
+ outcomes: Array<{
43
+ beliefId: string;
44
+ confidence: number;
45
+ rationale: string;
46
+ }>;
47
+ summary?: string;
48
+ };
49
+ /** Input for updating the beliefs and questions tracked by a worktree. */
50
+ type UpdateWorktreeTargetsInput = {
51
+ worktreeId: string;
52
+ addBeliefIds?: string[];
53
+ addQuestionIds?: string[];
54
+ removeBeliefIds?: string[];
55
+ removeQuestionIds?: string[];
56
+ };
57
+ /** Input for marking a worktree complete with recorded outcomes. */
58
+ type CompleteWorktreeInput = {
59
+ worktreeId: string;
60
+ keyFindings?: string[];
61
+ decisionsReached?: string[];
62
+ nextSteps?: string[];
63
+ };
64
+ /** Input for moving a worktree forward to its next phase. */
65
+ type AdvanceWorktreePhaseInput = {
66
+ worktreeId: string;
67
+ };
68
+ /** Input for forcing a worktree into a specific phase. */
69
+ type SetWorktreePhaseInput = {
70
+ worktreeId: string;
71
+ phase: string;
72
+ };
73
+ /** Input for patching arbitrary structured worktree state. */
74
+ type PatchWorktreeStateInput = {
75
+ worktreeId: string;
76
+ patch: JsonObject;
77
+ };
78
+ /** Input for batch-creating worktrees through the workflow surface. */
79
+ type BulkCreateWorktreesInput = {
80
+ worktrees: unknown[];
81
+ };
82
+ /** Input for listing accessible topic contexts. */
83
+ type ListTopicsInput = {
84
+ includeShared?: boolean;
85
+ limit?: number;
86
+ };
87
+ /** Input for switching the active topic context by name. */
88
+ type SwitchTopicContextInput = {
89
+ targetTopicName: string;
90
+ };
91
+ /** Input for creating a workflow task linked to a question or worktree. */
92
+ type CreateTaskInput = {
93
+ title: string;
94
+ topicId?: string;
95
+ taskType?: "research" | "interview" | "analysis" | "data_collection";
96
+ linkedQuestionId?: string;
97
+ linkedWorktreeId?: string;
98
+ linkedBeliefId?: string;
99
+ description?: string;
100
+ priority?: "low" | "medium" | "high" | "urgent";
101
+ } & TopicIdentifierInput;
102
+ /** Input for marking a workflow task as completed with an output summary. */
103
+ type CompleteTaskInput = {
104
+ outputSummary: string;
105
+ evidenceCreated?: boolean;
106
+ };
107
+ /** Input for partially updating an existing workflow task. */
108
+ type UpdateTaskInput = {
109
+ title?: string;
110
+ description?: string;
111
+ linkedBeliefId?: string;
112
+ linkedQuestionId?: string;
113
+ linkedWorktreeId?: string;
114
+ priority?: "critical" | "high" | "medium" | "low";
115
+ status?: "todo" | "in_progress" | "blocked" | "done";
116
+ };
117
+ /**
118
+ * Create the workflow client for lenses, legacy branches, worktrees, context,
119
+ * and tasks.
120
+ * @param config - Gateway transport configuration.
121
+ * @returns An object with methods to manage branches, lenses, worktrees, topics, and tasks.
122
+ */
123
+ declare function createWorkflowClient(config?: WorkflowClientConfig): {
124
+ /**
125
+ * List workflow branches for a topic scope.
126
+ */
127
+ listBranches(query: {
128
+ topicId?: string;
129
+ status?: WorkflowBranchStatus;
130
+ limit?: number;
131
+ } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowBranchRecord, "branches">>>;
132
+ /**
133
+ * Create a workflow branch.
134
+ */
135
+ createBranch(input: {
136
+ name: string;
137
+ topicId?: string;
138
+ description?: string;
139
+ metadata?: JsonObject;
140
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
141
+ /**
142
+ * List reusable lenses for a workspace or topic scope.
143
+ */
144
+ listLenses(query: {
145
+ workspaceId?: string;
146
+ topicId?: string;
147
+ status?: WorkflowLensStatus;
148
+ perspectiveType?: WorkflowLensPerspectiveType;
149
+ } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
150
+ /**
151
+ * Create a reusable workflow lens.
152
+ */
153
+ createLens(input: {
154
+ name: string;
155
+ workspaceId?: string;
156
+ topicId?: string;
157
+ description?: string;
158
+ perspectiveType: WorkflowLensPerspectiveType;
159
+ promptTemplates?: LensPromptTemplateReference[];
160
+ workflowTemplates?: LensWorkflowTemplate[];
161
+ taskTemplates?: LensTaskTemplate[];
162
+ filterCriteria?: JsonObject;
163
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
164
+ /**
165
+ * Apply an existing lens to a topic.
166
+ */
167
+ applyLensToTopic(input: {
168
+ lensId: string;
169
+ topicId?: string;
170
+ metadata?: JsonObject;
171
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
172
+ /**
173
+ * Remove an applied lens from a topic.
174
+ */
175
+ removeLensFromTopic(input: {
176
+ lensId: string;
177
+ topicId?: string;
178
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
179
+ /**
180
+ * List worktrees for a topic scope.
181
+ */
182
+ listWorktrees(query: {
183
+ topicId?: string;
184
+ branchId?: string;
185
+ status?: WorkflowWorktreeStatus;
186
+ track?: string;
187
+ executionBand?: number;
188
+ limit?: number;
189
+ } & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>;
190
+ /**
191
+ * List all worktrees across accessible topics.
192
+ */
193
+ listAllWorktrees(query?: {
194
+ status?: WorkflowWorktreeStatus;
195
+ track?: string;
196
+ executionBand?: number;
197
+ limit?: number;
198
+ }): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
199
+ /**
200
+ * Create a workflow worktree.
201
+ */
202
+ createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
203
+ /**
204
+ * @deprecated Use createWorktree.
205
+ */
206
+ addWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
207
+ /**
208
+ * Merge a worktree into the main belief line.
209
+ */
210
+ merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
211
+ /**
212
+ * Activate a planning worktree.
213
+ */
214
+ activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
215
+ /**
216
+ * Update targeted beliefs/questions for a worktree.
217
+ */
218
+ updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
219
+ /**
220
+ * Mark a worktree record complete.
221
+ */
222
+ completeWorktree(input: CompleteWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
223
+ /**
224
+ * Advance a worktree to its next lifecycle phase.
225
+ */
226
+ advanceWorktreePhase(input: AdvanceWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
227
+ /**
228
+ * Force a worktree into a specific lifecycle phase.
229
+ */
230
+ setWorktreePhase(input: SetWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
231
+ /**
232
+ * Patch opaque worktree state for orchestration flows.
233
+ */
234
+ patchWorktreeState(input: PatchWorktreeStateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
235
+ /**
236
+ * Batch create worktree records.
237
+ */
238
+ bulkCreateWorktrees(input: BulkCreateWorktreesInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
239
+ /**
240
+ * Open a pull request for a worktree.
241
+ */
242
+ openPullRequest(worktreeId: string, input: {
243
+ summary: string;
244
+ reviewers?: string[];
245
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
246
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
247
+ /**
248
+ * Push scored worktree findings into another context.
249
+ */
250
+ push(worktreeId: string, input: {
251
+ targetContext: string;
252
+ beliefIds?: string[];
253
+ metadata?: JsonObject;
254
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
255
+ /**
256
+ * List accessible topic contexts.
257
+ */
258
+ listTopics(query?: ListTopicsInput): Promise<PlatformGatewaySuccess<ListTopicsResponse>>;
259
+ /**
260
+ * Switch the active context by topic or project name.
261
+ */
262
+ switchTopicContext(input: SwitchTopicContextInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<SwitchTopicContextResponse>>;
263
+ /**
264
+ * Create a workflow task.
265
+ */
266
+ createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CreateTaskResponse>>;
267
+ /**
268
+ * Complete a workflow task.
269
+ */
270
+ completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CompleteTaskResponse>>;
271
+ /**
272
+ * Update a workflow task.
273
+ */
274
+ updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<UpdateTaskResponse>>;
275
+ /**
276
+ * @deprecated Use createBranch.
277
+ */
278
+ createPillar(input: {
279
+ name: string;
280
+ topicId?: string;
281
+ description?: string;
282
+ metadata?: JsonObject;
283
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
284
+ /**
285
+ * @deprecated Use addWorktree.
286
+ */
287
+ createSprint(input: {
288
+ title: string;
289
+ topicId?: string;
290
+ branchId?: string;
291
+ hypothesis?: string;
292
+ beliefIds?: string[];
293
+ } & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
294
+ /**
295
+ * @deprecated Use merge.
296
+ */
297
+ completeSprint(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
298
+ /**
299
+ * @deprecated Use openPullRequest.
300
+ */
301
+ requestReview(worktreeId: string, input: {
302
+ summary: string;
303
+ reviewers?: string[];
304
+ status?: "pending_review" | "changes_requested" | "approved" | "blocked";
305
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
306
+ /**
307
+ * @deprecated Use push.
308
+ */
309
+ publishFindings(worktreeId: string, input: {
310
+ targetContext: string;
311
+ beliefIds?: string[];
312
+ metadata?: JsonObject;
313
+ }, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
314
+ };
315
+
316
+ export { type AddWorktreeInput, type AdvanceWorktreePhaseInput, type BulkCreateWorktreesInput, type CompleteTaskInput, CompleteTaskResponse, type CompleteWorktreeInput, type CreateTaskInput, CreateTaskResponse, type ListTopicsInput, ListTopicsResponse, ListWorktreesResponse, type MergeInput, MergeWorktreeResponse, OpenPullRequestResponse, type PatchWorktreeStateInput, PlatformGatewaySuccess, PushWorktreeResponse, type SetWorktreePhaseInput, type SwitchTopicContextInput, SwitchTopicContextResponse, type UpdateTaskInput, UpdateTaskResponse, type UpdateWorktreeTargetsInput, type WorkflowBranchStatus, type WorkflowClientConfig, type WorkflowLensPerspectiveType, type WorkflowLensStatus, type WorkflowMergeOutcome, type WorkflowWorktreeStatus, createWorkflowClient };