@lucern/sdk 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +35 -0
- package/dist/.generated +2 -0
- package/dist/accessControl.d.ts +19 -26
- package/dist/accessControl.js +195 -1423
- package/dist/adminClient.d.ts +52 -59
- package/dist/adminClient.js +364 -1142
- package/dist/answersClient.d.ts +5 -14
- package/dist/answersClient.js +19 -737
- package/dist/audience/index.d.ts +18 -18
- package/dist/audience/index.js +87 -90
- package/dist/audiencesClient.d.ts +19 -27
- package/dist/audiencesClient.js +107 -868
- package/dist/auditClient.d.ts +8 -15
- package/dist/auditClient.js +18 -791
- package/dist/authContext.d.ts +11 -16
- package/dist/authContext.js +122 -154
- package/dist/authDeviceClient.d.ts +8 -17
- package/dist/authDeviceClient.js +113 -102
- package/dist/beliefs/index.d.ts +15 -67
- package/dist/beliefs/index.js +17 -10172
- package/dist/beliefs/lifecycle.d.ts +10 -11
- package/dist/beliefs/lifecycle.js +78 -80
- package/dist/beliefsClient.d.ts +26 -32
- package/dist/beliefsClient.js +250 -990
- package/dist/boundaryClientSurface.d.ts +11 -16
- package/dist/boundaryClientSurface.js +49 -68
- package/dist/client.d.ts +73 -112
- package/dist/client.js +232 -10146
- package/dist/clientAssemblyTypes.d.ts +3 -3
- package/dist/clientAssemblyTypes.js +1 -2
- package/dist/clientConfig.d.ts +45 -59
- package/dist/clientConfig.js +1 -2
- package/dist/clientEvidenceCompat.d.ts +7 -14
- package/dist/clientEvidenceCompat.js +50 -64
- package/dist/clientGraphNamespaces.d.ts +3 -5
- package/dist/clientGraphNamespaces.js +170 -245
- package/dist/clientHelpers.d.ts +20 -25
- package/dist/clientHelpers.js +104 -127
- package/dist/clientKnowledgeNamespaces.d.ts +6 -53
- package/dist/clientKnowledgeNamespaces.js +502 -506
- package/dist/clientLocalHelpers.d.ts +11 -56
- package/dist/clientLocalHelpers.js +503 -732
- package/dist/clientPlatformNamespaces.d.ts +14 -53
- package/dist/clientPlatformNamespaces.js +229 -314
- package/dist/clientRuntime.d.ts +5 -53
- package/dist/clientRuntime.js +26 -30
- package/dist/clientWorkflowNamespaces.d.ts +6 -15
- package/dist/clientWorkflowNamespaces.js +529 -596
- package/dist/contextClient.d.ts +9 -17
- package/dist/contextClient.js +92 -805
- package/dist/contextFacade.d.ts +11 -2
- package/dist/contextFacade.js +10 -81
- package/dist/contextPackCompiler.d.ts +10 -11
- package/dist/contextPackCompiler.js +494 -1040
- package/dist/contextPackPolicy.d.ts +14 -15
- package/dist/contextPackPolicy.js +227 -305
- package/dist/contextPackSchema.d.ts +3 -3
- package/dist/contextPackSchema.js +169 -176
- package/dist/contextTypes.d.ts +14 -15
- package/dist/contextTypes.js +1 -2
- package/dist/contracts/api-enums.contract.d.ts +29 -30
- package/dist/contracts/api-enums.contract.js +162 -88
- package/dist/contracts/auth-session.contract.d.ts +13 -14
- package/dist/contracts/auth-session.contract.js +55 -52
- package/dist/contracts/context-pack.contract.d.ts +54 -55
- package/dist/contracts/context-pack.contract.js +160 -88
- package/dist/contracts/contextPack.d.ts +2 -1
- package/dist/contracts/contextPack.js +1 -97
- package/dist/contracts/index.d.ts +11 -12
- package/dist/contracts/index.js +10 -854
- package/dist/contracts/lens-filter.contract.d.ts +9 -10
- package/dist/contracts/lens-filter.contract.js +82 -58
- package/dist/contracts/lens-workflow.contract.d.ts +21 -23
- package/dist/contracts/lens-workflow.contract.js +48 -117
- package/dist/contracts/lensFilter.d.ts +2 -1
- package/dist/contracts/lensFilter.js +1 -71
- package/dist/contracts/lensWorkflow.d.ts +2 -2
- package/dist/contracts/lensWorkflow.js +1 -123
- package/dist/contracts/mcpTools.d.ts +16 -18
- package/dist/contracts/mcpTools.js +89 -123
- package/dist/contracts/prompt.contract.d.ts +4 -5
- package/dist/contracts/prompt.contract.js +23 -10
- package/dist/contracts/prompt.d.ts +2 -1
- package/dist/contracts/prompt.js +1 -11
- package/dist/contracts/sdk-tools.contract.d.ts +2 -1
- package/dist/contracts/sdk-tools.contract.js +1 -2
- package/dist/contracts/sdkTools.d.ts +2 -1
- package/dist/contracts/sdkTools.js +1 -26
- package/dist/contracts/tool-contracts.d.ts +2 -1
- package/dist/contracts/tool-contracts.js +1 -2
- package/dist/contracts/workflow-runtime.contract.d.ts +45 -46
- package/dist/contracts/workflow-runtime.contract.js +241 -228
- package/dist/contracts/workflowRuntime.d.ts +2 -1
- package/dist/contracts/workflowRuntime.js +1 -244
- package/dist/contradictions/index.d.ts +8 -60
- package/dist/contradictions/index.js +11 -10166
- package/dist/control-plane.d.ts +17 -24
- package/dist/control-plane.js +124 -840
- package/dist/controlObjectOwnership.d.ts +19 -20
- package/dist/controlObjectOwnership.js +207 -201
- package/dist/coreClient.d.ts +23 -28
- package/dist/coreClient.js +567 -692
- package/dist/customTools.d.ts +17 -21
- package/dist/customTools.js +221 -221
- package/dist/decisions/index.d.ts +7 -58
- package/dist/decisions/index.js +14 -10168
- package/dist/decisionsClient.d.ts +25 -32
- package/dist/decisionsClient.js +113 -913
- package/dist/domainContext.d.ts +2 -1
- package/dist/domainContext.js +1 -2
- package/dist/edges/index.d.ts +21 -73
- package/dist/edges/index.js +12 -10167
- package/dist/embeddingsClient.d.ts +22 -30
- package/dist/embeddingsClient.js +73 -922
- package/dist/eventingClient.d.ts +23 -31
- package/dist/eventingClient.js +89 -918
- package/dist/events.d.ts +48 -49
- package/dist/events.js +257 -241
- package/dist/eventsCore.d.ts +20 -29
- package/dist/eventsCore.js +86 -830
- package/dist/evidence/index.d.ts +9 -60
- package/dist/evidence/index.js +13 -10167
- package/dist/evidenceClient.d.ts +13 -22
- package/dist/evidenceClient.js +34 -751
- package/dist/facade/context.d.ts +7 -8
- package/dist/facade/context.js +73 -72
- package/dist/functionSurface.d.ts +2 -156
- package/dist/functionSurface.js +1 -1460
- package/dist/functionSurfaceClient.d.ts +2 -9
- package/dist/functionSurfaceClient.js +1 -1460
- package/dist/gatewayFacades.d.ts +79 -296
- package/dist/gatewayFacades.factories.d.ts +209 -14
- package/dist/gatewayFacades.factories.js +561 -2227
- package/dist/gatewayFacades.js +284 -2627
- package/dist/generated/functionSurface.d.ts +149 -0
- package/dist/generated/functionSurface.js +749 -0
- package/dist/graphAnalysisClient.d.ts +41 -49
- package/dist/graphAnalysisClient.js +185 -974
- package/dist/graphClient.d.ts +53 -60
- package/dist/graphClient.js +219 -1090
- package/dist/graphIntel.d.ts +2 -4
- package/dist/graphIntel.js +1 -2
- package/dist/graphIntelligence.d.ts +4 -2
- package/dist/graphIntelligence.js +2 -46
- package/dist/graphRecommendationsClient.d.ts +15 -23
- package/dist/graphRecommendationsClient.js +70 -849
- package/dist/graphStateClassifierClient.d.ts +17 -25
- package/dist/graphStateClassifierClient.js +67 -908
- package/dist/harnessClient.d.ts +40 -47
- package/dist/harnessClient.js +198 -993
- package/dist/identityClient.d.ts +25 -33
- package/dist/identityClient.js +245 -1186
- package/dist/index.d.ts +73 -69
- package/dist/index.js +72 -13304
- package/dist/infisicalRuntime.d.ts +12 -14
- package/dist/infisicalRuntime.js +290 -297
- package/dist/jobsClient.d.ts +24 -32
- package/dist/jobsClient.js +101 -916
- package/dist/learningClient.d.ts +8 -16
- package/dist/learningClient.js +45 -809
- package/dist/lenses/index.d.ts +13 -65
- package/dist/lenses/index.js +11 -10166
- package/dist/mcpClient.d.ts +14 -23
- package/dist/mcpClient.js +115 -856
- package/dist/modelRuntimeClient.d.ts +18 -26
- package/dist/modelRuntimeClient.js +74 -894
- package/dist/nodes/index.d.ts +7 -58
- package/dist/nodes/index.js +14 -10168
- package/dist/ontologies/index.d.ts +21 -73
- package/dist/ontologies/index.js +14 -10169
- package/dist/ontologyClient.d.ts +23 -31
- package/dist/ontologyClient.js +138 -924
- package/dist/ontologyLinksClient.d.ts +16 -24
- package/dist/ontologyLinksClient.js +76 -886
- package/dist/opinion.d.ts +5 -6
- package/dist/opinion.js +21 -25
- package/dist/orgGraphSearchClient.d.ts +19 -27
- package/dist/orgGraphSearchClient.js +89 -857
- package/dist/packRuntime.d.ts +2 -2
- package/dist/packRuntime.js +1 -2
- package/dist/packsClient.d.ts +30 -37
- package/dist/packsClient.js +131 -906
- package/dist/policyClient.d.ts +21 -29
- package/dist/policyClient.js +267 -1026
- package/dist/proof-attestation.json +1 -1
- package/dist/questions/index.d.ts +9 -60
- package/dist/questions/index.js +15 -10169
- package/dist/realtime/index.d.ts +20 -16
- package/dist/realtime/index.js +30 -19
- package/dist/realtime/refs.d.ts +4 -6
- package/dist/realtime/refs.js +12 -7
- package/dist/realtime-refs.d.ts +1 -0
- package/dist/realtime-refs.js +1 -0
- package/dist/realtime.d.ts +1 -0
- package/dist/realtime.js +1 -0
- package/dist/reportsClient.d.ts +10 -19
- package/dist/reportsClient.js +48 -836
- package/dist/schemaClient.d.ts +16 -23
- package/dist/schemaClient.js +62 -832
- package/dist/sdkSurface.d.ts +18 -25
- package/dist/sdkSurface.js +135 -106
- package/dist/secrets.d.ts +2 -1
- package/dist/secrets.js +1 -2
- package/dist/sourcesClient.d.ts +11 -18
- package/dist/sourcesClient.js +18 -741
- package/dist/telemetryClient.d.ts +22 -30
- package/dist/telemetryClient.js +107 -931
- package/dist/toolRegistryClient.d.ts +27 -35
- package/dist/toolRegistryClient.js +116 -954
- package/dist/topics/index.d.ts +13 -64
- package/dist/topics/index.js +15 -10169
- package/dist/topicsClient.d.ts +19 -27
- package/dist/topicsClient.js +106 -894
- package/dist/types.d.ts +84 -87
- package/dist/types.js +1 -2
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -5
- package/dist/workflowClient.d.ts +60 -65
- package/dist/workflowClient.js +343 -1219
- package/dist/worktrees/index.d.ts +16 -68
- package/dist/worktrees/index.js +14 -10169
- package/package.json +6 -6
- package/dist/accessControl.js.map +0 -1
- package/dist/adminClient.js.map +0 -1
- package/dist/answersClient.js.map +0 -1
- package/dist/audience/index.js.map +0 -1
- package/dist/audiencesClient.js.map +0 -1
- package/dist/auditClient.js.map +0 -1
- package/dist/authContext.js.map +0 -1
- package/dist/authDeviceClient.js.map +0 -1
- package/dist/beliefs/index.js.map +0 -1
- package/dist/beliefs/lifecycle.js.map +0 -1
- package/dist/beliefsClient.js.map +0 -1
- package/dist/boundaryClientSurface.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/clientAssemblyTypes.js.map +0 -1
- package/dist/clientConfig.js.map +0 -1
- package/dist/clientEvidenceCompat.js.map +0 -1
- package/dist/clientGraphNamespaces.js.map +0 -1
- package/dist/clientHelpers.js.map +0 -1
- package/dist/clientKnowledgeNamespaces.js.map +0 -1
- package/dist/clientLocalHelpers.js.map +0 -1
- package/dist/clientPlatformNamespaces.js.map +0 -1
- package/dist/clientRuntime.js.map +0 -1
- package/dist/clientWorkflowNamespaces.js.map +0 -1
- package/dist/contextClient.js.map +0 -1
- package/dist/contextFacade.js.map +0 -1
- package/dist/contextPackCompiler.js.map +0 -1
- package/dist/contextPackPolicy.js.map +0 -1
- package/dist/contextPackSchema.js.map +0 -1
- package/dist/contextTypes.js.map +0 -1
- package/dist/contracts/api-enums.contract.js.map +0 -1
- package/dist/contracts/auth-session.contract.js.map +0 -1
- package/dist/contracts/context-pack.contract.js.map +0 -1
- package/dist/contracts/contextPack.js.map +0 -1
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/lens-filter.contract.js.map +0 -1
- package/dist/contracts/lens-workflow.contract.js.map +0 -1
- package/dist/contracts/lensFilter.js.map +0 -1
- package/dist/contracts/lensWorkflow.js.map +0 -1
- package/dist/contracts/mcpTools.js.map +0 -1
- package/dist/contracts/prompt.contract.js.map +0 -1
- package/dist/contracts/prompt.js.map +0 -1
- package/dist/contracts/sdk-tools.contract.js.map +0 -1
- package/dist/contracts/sdkTools.js.map +0 -1
- package/dist/contracts/tool-contracts.js.map +0 -1
- package/dist/contracts/workflow-runtime.contract.js.map +0 -1
- package/dist/contracts/workflowRuntime.js.map +0 -1
- package/dist/contradictions/index.js.map +0 -1
- package/dist/control-plane.js.map +0 -1
- package/dist/controlObjectOwnership.js.map +0 -1
- package/dist/coreClient.js.map +0 -1
- package/dist/customTools.js.map +0 -1
- package/dist/decisions/index.js.map +0 -1
- package/dist/decisionsClient.js.map +0 -1
- package/dist/domainContext.js.map +0 -1
- package/dist/edges/index.js.map +0 -1
- package/dist/embeddingsClient.js.map +0 -1
- package/dist/eventingClient.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/eventsCore.js.map +0 -1
- package/dist/evidence/index.js.map +0 -1
- package/dist/evidenceClient.js.map +0 -1
- package/dist/facade/context.js.map +0 -1
- package/dist/functionSurface.js.map +0 -1
- package/dist/functionSurfaceClient.js.map +0 -1
- package/dist/gatewayFacades.factories.js.map +0 -1
- package/dist/gatewayFacades.js.map +0 -1
- package/dist/graphAnalysisClient.js.map +0 -1
- package/dist/graphClient.js.map +0 -1
- package/dist/graphIntel.js.map +0 -1
- package/dist/graphIntelligence.js.map +0 -1
- package/dist/graphRecommendationsClient.js.map +0 -1
- package/dist/graphStateClassifierClient.js.map +0 -1
- package/dist/harnessClient.js.map +0 -1
- package/dist/identityClient.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/infisicalRuntime.js.map +0 -1
- package/dist/jobsClient.js.map +0 -1
- package/dist/learningClient.js.map +0 -1
- package/dist/lenses/index.js.map +0 -1
- package/dist/mcpClient.js.map +0 -1
- package/dist/modelRuntimeClient.js.map +0 -1
- package/dist/nodes/index.js.map +0 -1
- package/dist/ontologies/index.js.map +0 -1
- package/dist/ontologyClient.js.map +0 -1
- package/dist/ontologyLinksClient.js.map +0 -1
- package/dist/opinion.js.map +0 -1
- package/dist/orgGraphSearchClient.js.map +0 -1
- package/dist/packRuntime.js.map +0 -1
- package/dist/packsClient.js.map +0 -1
- package/dist/policyClient.js.map +0 -1
- package/dist/questions/index.js.map +0 -1
- package/dist/realtime/index.js.map +0 -1
- package/dist/realtime/refs.js.map +0 -1
- package/dist/reportsClient.js.map +0 -1
- package/dist/schemaClient.js.map +0 -1
- package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +0 -22
- package/dist/sdkSurface.js.map +0 -1
- package/dist/secrets.js.map +0 -1
- package/dist/sourcesClient.js.map +0 -1
- package/dist/telemetryClient.js.map +0 -1
- package/dist/tool-contracts-BUiL9P6z.d.ts +0 -22
- package/dist/toolRegistryClient.js.map +0 -1
- package/dist/topics/index.js.map +0 -1
- package/dist/topicsClient.js.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/version.js.map +0 -1
- package/dist/workflowClient.js.map +0 -1
- package/dist/worktrees/index.js.map +0 -1
package/dist/workflowClient.d.ts
CHANGED
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
import { GatewayClientConfig,
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import './authContext.js';
|
|
9
|
-
import './contracts/auth-session.contract.js';
|
|
10
|
-
import './contracts/lens-filter.contract.js';
|
|
11
|
-
|
|
1
|
+
import { type GatewayClientConfig, LucernApiError } from "./coreClient";
|
|
2
|
+
import type { LensPerspectiveType, LensPromptTemplateReference, LensStatus, LensTaskTemplate, LensWorkflowTemplate } from "./contracts/lensWorkflow";
|
|
3
|
+
import type { WorkflowAutoFixPolicy, WorkflowProofArtifact, WorkflowStaffingHint } from "./contracts/workflowRuntime";
|
|
4
|
+
import type { CompleteTaskResponse, CreateTaskResponse, JsonObject, ListTopicsResponse, ListWorktreesResponse, MergeWorktreeResponse, OpenPullRequestResponse, PushWorktreeResponse, SwitchTopicContextResponse, TopicIdentifierInput, UpdateTaskResponse, WorkflowBranchRecord, WorkflowLensRecord, WorkflowWorktreeRecord } from "./types";
|
|
5
|
+
export { LucernApiError };
|
|
6
|
+
export type { PlatformGatewaySuccess } from "./coreClient";
|
|
7
|
+
export type { AddWorktreeResponse, CompleteTaskResponse, CreateBranchResponse, CreateLensResponse, CreateTaskResponse, LensTopicBindingResponse, ListBranchesResponse, ListLensesResponse, ListTopicsResponse, ListWorktreesResponse, MergeWorktreeResponse, OpenPullRequestResponse, PushWorktreeResponse, SwitchTopicContextResponse, UpdateTaskResponse, } from "./types";
|
|
12
8
|
/** Configuration for the workflow client. */
|
|
13
|
-
type WorkflowClientConfig = GatewayClientConfig;
|
|
9
|
+
export type WorkflowClientConfig = GatewayClientConfig;
|
|
14
10
|
/** Lifecycle status of a workflow branch. */
|
|
15
|
-
type WorkflowBranchStatus = "dormant" | "active" | "archived";
|
|
11
|
+
export type WorkflowBranchStatus = "dormant" | "active" | "archived";
|
|
16
12
|
/** Lifecycle status of a workflow lens. */
|
|
17
|
-
type WorkflowLensStatus = LensStatus;
|
|
13
|
+
export type WorkflowLensStatus = LensStatus;
|
|
18
14
|
/** Analytical perspective type for a lens overlay. */
|
|
19
|
-
type WorkflowLensPerspectiveType = LensPerspectiveType;
|
|
15
|
+
export type WorkflowLensPerspectiveType = LensPerspectiveType;
|
|
20
16
|
/** Lifecycle status of a workflow worktree. */
|
|
21
|
-
type WorkflowWorktreeStatus = "planning" | "active" | "paused" | "completed" | "merged" | "failed" | "archived";
|
|
17
|
+
export type WorkflowWorktreeStatus = "planning" | "active" | "paused" | "completed" | "merged" | "failed" | "archived";
|
|
22
18
|
/** Possible outcomes when merging worktree findings into the main belief line. */
|
|
23
|
-
type WorkflowMergeOutcome = "validated" | "invalidated" | "forked" | "inconclusive";
|
|
19
|
+
export type WorkflowMergeOutcome = "validated" | "invalidated" | "forked" | "inconclusive";
|
|
24
20
|
/** Input for creating a new workflow worktree. */
|
|
25
|
-
type AddWorktreeInput = {
|
|
21
|
+
export type AddWorktreeInput = {
|
|
26
22
|
title: string;
|
|
27
23
|
topicId?: string;
|
|
28
24
|
topicHint?: string;
|
|
@@ -81,18 +77,18 @@ type AddWorktreeInput = {
|
|
|
81
77
|
autoFixPolicy?: WorkflowAutoFixPolicy;
|
|
82
78
|
lensId?: string;
|
|
83
79
|
} & TopicIdentifierInput;
|
|
84
|
-
type WorkflowMergeInputOutcome = string | {
|
|
80
|
+
export type WorkflowMergeInputOutcome = string | {
|
|
85
81
|
beliefId: string;
|
|
86
82
|
confidence: number;
|
|
87
83
|
rationale: string;
|
|
88
84
|
};
|
|
89
85
|
/** Input for merging worktree findings with optional belief confidence outcomes. */
|
|
90
|
-
type MergeInput = {
|
|
86
|
+
export type MergeInput = {
|
|
91
87
|
outcomes: WorkflowMergeInputOutcome[];
|
|
92
88
|
summary?: string;
|
|
93
89
|
};
|
|
94
90
|
/** Input for updating the beliefs and questions tracked by a worktree. */
|
|
95
|
-
type UpdateWorktreeTargetsInput = {
|
|
91
|
+
export type UpdateWorktreeTargetsInput = {
|
|
96
92
|
worktreeId: string;
|
|
97
93
|
addBeliefIds?: string[];
|
|
98
94
|
addQuestionIds?: string[];
|
|
@@ -100,41 +96,41 @@ type UpdateWorktreeTargetsInput = {
|
|
|
100
96
|
removeQuestionIds?: string[];
|
|
101
97
|
};
|
|
102
98
|
/** Input for marking a worktree complete with recorded outcomes. */
|
|
103
|
-
type CompleteWorktreeInput = {
|
|
99
|
+
export type CompleteWorktreeInput = {
|
|
104
100
|
worktreeId: string;
|
|
105
101
|
keyFindings?: string[];
|
|
106
102
|
decisionsReached?: string[];
|
|
107
103
|
nextSteps?: string[];
|
|
108
104
|
};
|
|
109
105
|
/** Input for moving a worktree forward to its next phase. */
|
|
110
|
-
type AdvanceWorktreePhaseInput = {
|
|
106
|
+
export type AdvanceWorktreePhaseInput = {
|
|
111
107
|
worktreeId: string;
|
|
112
108
|
};
|
|
113
109
|
/** Input for forcing a worktree into a specific phase. */
|
|
114
|
-
type SetWorktreePhaseInput = {
|
|
110
|
+
export type SetWorktreePhaseInput = {
|
|
115
111
|
worktreeId: string;
|
|
116
112
|
phase: string;
|
|
117
113
|
};
|
|
118
114
|
/** Input for patching arbitrary structured worktree state. */
|
|
119
|
-
type PatchWorktreeStateInput = {
|
|
115
|
+
export type PatchWorktreeStateInput = {
|
|
120
116
|
worktreeId: string;
|
|
121
117
|
patch: JsonObject;
|
|
122
118
|
};
|
|
123
119
|
/** Input for batch-creating worktrees through the workflow surface. */
|
|
124
|
-
type BulkCreateWorktreesInput = {
|
|
120
|
+
export type BulkCreateWorktreesInput = {
|
|
125
121
|
worktrees: unknown[];
|
|
126
122
|
};
|
|
127
123
|
/** Input for listing accessible topic contexts. */
|
|
128
|
-
type ListTopicsInput = {
|
|
124
|
+
export type ListTopicsInput = {
|
|
129
125
|
includeShared?: boolean;
|
|
130
126
|
limit?: number;
|
|
131
127
|
};
|
|
132
128
|
/** Input for switching the active topic context by name. */
|
|
133
|
-
type SwitchTopicContextInput = {
|
|
129
|
+
export type SwitchTopicContextInput = {
|
|
134
130
|
targetTopicName: string;
|
|
135
131
|
};
|
|
136
132
|
/** Input for creating a workflow task linked to a question or worktree. */
|
|
137
|
-
type CreateTaskInput = {
|
|
133
|
+
export type CreateTaskInput = {
|
|
138
134
|
title: string;
|
|
139
135
|
topicId?: string;
|
|
140
136
|
taskType?: "research" | "interview" | "analysis" | "data_collection";
|
|
@@ -145,12 +141,12 @@ type CreateTaskInput = {
|
|
|
145
141
|
priority?: "low" | "medium" | "high" | "urgent";
|
|
146
142
|
} & TopicIdentifierInput;
|
|
147
143
|
/** Input for marking a workflow task as completed with an output summary. */
|
|
148
|
-
type CompleteTaskInput = {
|
|
144
|
+
export type CompleteTaskInput = {
|
|
149
145
|
outputSummary: string;
|
|
150
146
|
evidenceCreated?: boolean;
|
|
151
147
|
};
|
|
152
148
|
/** Input for partially updating an existing workflow task. */
|
|
153
|
-
type UpdateTaskInput = {
|
|
149
|
+
export type UpdateTaskInput = {
|
|
154
150
|
title?: string;
|
|
155
151
|
description?: string;
|
|
156
152
|
linkedBeliefId?: string;
|
|
@@ -167,7 +163,7 @@ type UpdateTaskInput = {
|
|
|
167
163
|
* @param config - Gateway transport configuration.
|
|
168
164
|
* @returns An object with methods to manage branches, lenses, worktrees, topics, and tasks.
|
|
169
165
|
*/
|
|
170
|
-
declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
166
|
+
export declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
171
167
|
/**
|
|
172
168
|
* List workflow branches for a topic scope.
|
|
173
169
|
*/
|
|
@@ -175,7 +171,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
175
171
|
topicId?: string;
|
|
176
172
|
status?: WorkflowBranchStatus;
|
|
177
173
|
limit?: number;
|
|
178
|
-
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowBranchRecord, "branches">>>;
|
|
174
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowBranchRecord, "branches">>>;
|
|
179
175
|
/**
|
|
180
176
|
* Create a workflow branch.
|
|
181
177
|
*/
|
|
@@ -184,7 +180,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
184
180
|
topicId?: string;
|
|
185
181
|
description?: string;
|
|
186
182
|
metadata?: JsonObject;
|
|
187
|
-
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
183
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
188
184
|
/**
|
|
189
185
|
* List reusable lenses for a workspace or topic scope.
|
|
190
186
|
*/
|
|
@@ -193,7 +189,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
193
189
|
topicId?: string;
|
|
194
190
|
status?: WorkflowLensStatus;
|
|
195
191
|
perspectiveType?: WorkflowLensPerspectiveType;
|
|
196
|
-
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowLensRecord, "lenses">>>;
|
|
192
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowLensRecord, "lenses">>>;
|
|
197
193
|
/**
|
|
198
194
|
* Create a reusable workflow lens.
|
|
199
195
|
*/
|
|
@@ -207,7 +203,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
207
203
|
workflowTemplates?: LensWorkflowTemplate[];
|
|
208
204
|
taskTemplates?: LensTaskTemplate[];
|
|
209
205
|
filterCriteria?: JsonObject;
|
|
210
|
-
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensRecord>>;
|
|
206
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowLensRecord>>;
|
|
211
207
|
/**
|
|
212
208
|
* Apply an existing lens to a topic.
|
|
213
209
|
*/
|
|
@@ -215,14 +211,14 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
215
211
|
lensId: string;
|
|
216
212
|
topicId?: string;
|
|
217
213
|
metadata?: JsonObject;
|
|
218
|
-
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
|
|
214
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
219
215
|
/**
|
|
220
216
|
* Remove an applied lens from a topic.
|
|
221
217
|
*/
|
|
222
218
|
removeLensFromTopic(input: {
|
|
223
219
|
lensId: string;
|
|
224
220
|
topicId?: string;
|
|
225
|
-
} & TopicIdentifierInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowLensBindingRecord>>;
|
|
221
|
+
} & TopicIdentifierInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").WorkflowLensBindingRecord>>;
|
|
226
222
|
/**
|
|
227
223
|
* List worktrees for a topic scope.
|
|
228
224
|
*/
|
|
@@ -234,7 +230,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
234
230
|
lane?: string;
|
|
235
231
|
campaign?: number;
|
|
236
232
|
limit?: number;
|
|
237
|
-
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<ListResult<WorkflowWorktreeRecord, "worktrees">>>;
|
|
233
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<import("./types").ListResult<WorkflowWorktreeRecord, "worktrees">>>;
|
|
238
234
|
/**
|
|
239
235
|
* List all worktrees across accessible topics.
|
|
240
236
|
*/
|
|
@@ -244,7 +240,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
244
240
|
lane?: string;
|
|
245
241
|
campaign?: number;
|
|
246
242
|
limit?: number;
|
|
247
|
-
}): Promise<PlatformGatewaySuccess<ListWorktreesResponse>>;
|
|
243
|
+
}): Promise<import("./coreClient").PlatformGatewaySuccess<ListWorktreesResponse>>;
|
|
248
244
|
/**
|
|
249
245
|
* List compact pipeline campaigns with nested lanes.
|
|
250
246
|
*/
|
|
@@ -252,43 +248,43 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
252
248
|
topicId?: string;
|
|
253
249
|
status?: WorkflowWorktreeStatus;
|
|
254
250
|
limit?: number;
|
|
255
|
-
} & TopicIdentifierInput): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
251
|
+
} & TopicIdentifierInput): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
256
252
|
/**
|
|
257
253
|
* Create a workflow worktree.
|
|
258
254
|
*/
|
|
259
|
-
createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
255
|
+
createWorktree(input: AddWorktreeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
260
256
|
/**
|
|
261
257
|
* Merge a worktree into the main belief line.
|
|
262
258
|
*/
|
|
263
|
-
merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
259
|
+
merge(worktreeId: string, input: MergeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
264
260
|
/**
|
|
265
261
|
* Activate a planning worktree.
|
|
266
262
|
*/
|
|
267
|
-
activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
263
|
+
activateWorktree(worktreeId: string, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
268
264
|
/**
|
|
269
265
|
* Update targeted beliefs/questions for a worktree.
|
|
270
266
|
*/
|
|
271
|
-
updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
267
|
+
updateWorktreeTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
272
268
|
/**
|
|
273
269
|
* Mark a worktree record complete.
|
|
274
270
|
*/
|
|
275
|
-
completeWorktree(input: CompleteWorktreeInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
271
|
+
completeWorktree(input: CompleteWorktreeInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
276
272
|
/**
|
|
277
273
|
* Advance a worktree to its next lifecycle phase.
|
|
278
274
|
*/
|
|
279
|
-
advanceWorktreePhase(input: AdvanceWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
275
|
+
advanceWorktreePhase(input: AdvanceWorktreePhaseInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
280
276
|
/**
|
|
281
277
|
* Force a worktree into a specific lifecycle phase.
|
|
282
278
|
*/
|
|
283
|
-
setWorktreePhase(input: SetWorktreePhaseInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
279
|
+
setWorktreePhase(input: SetWorktreePhaseInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
284
280
|
/**
|
|
285
281
|
* Patch opaque worktree state for orchestration flows.
|
|
286
282
|
*/
|
|
287
|
-
patchWorktreeState(input: PatchWorktreeStateInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
283
|
+
patchWorktreeState(input: PatchWorktreeStateInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
288
284
|
/**
|
|
289
285
|
* Batch create worktree records.
|
|
290
286
|
*/
|
|
291
|
-
bulkCreateWorktrees(input: BulkCreateWorktreesInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
287
|
+
bulkCreateWorktrees(input: BulkCreateWorktreesInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<Record<string, unknown>>>;
|
|
292
288
|
/**
|
|
293
289
|
* Open a pull request for a worktree.
|
|
294
290
|
*/
|
|
@@ -296,7 +292,7 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
296
292
|
summary: string;
|
|
297
293
|
reviewers?: string[];
|
|
298
294
|
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
299
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
295
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
300
296
|
/**
|
|
301
297
|
* Push scored worktree findings into another context.
|
|
302
298
|
*/
|
|
@@ -304,47 +300,46 @@ declare function createWorkflowClient(config?: WorkflowClientConfig): {
|
|
|
304
300
|
targetContext: string;
|
|
305
301
|
beliefIds?: string[];
|
|
306
302
|
metadata?: JsonObject;
|
|
307
|
-
}, idempotencyKey?: string): Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
303
|
+
}, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
308
304
|
/**
|
|
309
305
|
* List accessible topic contexts.
|
|
310
306
|
*/
|
|
311
|
-
listTopics(query?: ListTopicsInput): Promise<PlatformGatewaySuccess<ListTopicsResponse>>;
|
|
307
|
+
listTopics(query?: ListTopicsInput): Promise<import("./coreClient").PlatformGatewaySuccess<ListTopicsResponse>>;
|
|
312
308
|
/**
|
|
313
309
|
* Switch the active context by topic or project name.
|
|
314
310
|
*/
|
|
315
|
-
switchTopicContext(input: SwitchTopicContextInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<SwitchTopicContextResponse>>;
|
|
311
|
+
switchTopicContext(input: SwitchTopicContextInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<SwitchTopicContextResponse>>;
|
|
316
312
|
/**
|
|
317
313
|
* Create a workflow task.
|
|
318
314
|
*/
|
|
319
|
-
createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CreateTaskResponse>>;
|
|
315
|
+
createTask(input: CreateTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<CreateTaskResponse>>;
|
|
320
316
|
/**
|
|
321
317
|
* Complete a workflow task.
|
|
322
318
|
*/
|
|
323
|
-
completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<CompleteTaskResponse>>;
|
|
319
|
+
completeTask(taskId: string, input: CompleteTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<CompleteTaskResponse>>;
|
|
324
320
|
/**
|
|
325
321
|
* Update a workflow task.
|
|
326
322
|
*/
|
|
327
|
-
updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<PlatformGatewaySuccess<UpdateTaskResponse>>;
|
|
323
|
+
updateTask(taskId: string, input: UpdateTaskInput, idempotencyKey?: string): Promise<import("./coreClient").PlatformGatewaySuccess<UpdateTaskResponse>>;
|
|
328
324
|
} & {
|
|
329
|
-
addWorktree: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
325
|
+
addWorktree: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
330
326
|
createPillar: (input: {
|
|
331
327
|
name: string;
|
|
332
328
|
topicId?: string;
|
|
333
329
|
description?: string;
|
|
334
330
|
metadata?: JsonObject;
|
|
335
|
-
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
336
|
-
createSprint: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
337
|
-
completeSprint: (worktreeId: string, input: MergeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
331
|
+
} & TopicIdentifierInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowBranchRecord>>;
|
|
332
|
+
createSprint: (input: AddWorktreeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<WorkflowWorktreeRecord>>;
|
|
333
|
+
completeSprint: (worktreeId: string, input: MergeInput, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<MergeWorktreeResponse>>;
|
|
338
334
|
requestReview: (worktreeId: string, input: {
|
|
339
335
|
summary: string;
|
|
340
336
|
reviewers?: string[];
|
|
341
337
|
status?: "pending_review" | "changes_requested" | "approved" | "blocked";
|
|
342
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
338
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<OpenPullRequestResponse>>;
|
|
343
339
|
publishFindings: (worktreeId: string, input: {
|
|
344
340
|
targetContext: string;
|
|
345
341
|
beliefIds?: string[];
|
|
346
342
|
metadata?: JsonObject;
|
|
347
|
-
}, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
343
|
+
}, idempotencyKey?: string) => Promise<import("./coreClient").PlatformGatewaySuccess<PushWorktreeResponse>>;
|
|
348
344
|
};
|
|
349
|
-
|
|
350
|
-
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 WorkflowMergeInputOutcome, type WorkflowMergeOutcome, type WorkflowWorktreeStatus, createWorkflowClient };
|
|
345
|
+
//# sourceMappingURL=workflowClient.d.ts.map
|