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