@boboddy/sdk 0.4.2 → 0.5.0
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/dist/client.js +0 -23
- package/dist/definitions/advancement-policies/define-advancement-policy.d.ts +30 -5
- package/dist/definitions/advancement-policies/index.js +11 -1
- package/dist/definitions/pipelines/bindings.d.ts +62 -0
- package/dist/definitions/pipelines/builder-helpers.d.ts +36 -94
- package/dist/definitions/pipelines/chain-graph.d.ts +15 -14
- package/dist/definitions/pipelines/compile-node-definitions.d.ts +27 -0
- package/dist/definitions/pipelines/define-default-pipeline-assignment.d.ts +64 -14
- package/dist/definitions/pipelines/define-pipeline.d.ts +101 -154
- package/dist/definitions/pipelines/index.d.ts +1 -2
- package/dist/definitions/pipelines/index.js +485 -585
- package/dist/definitions/pipelines/node-input-ctx.d.ts +31 -0
- package/dist/definitions/pipelines/pipeline-definitions-client.d.ts +42 -12
- package/dist/definitions/pipelines/pipeline-states.d.ts +104 -0
- package/dist/definitions/pipelines/work-item-fields.d.ts +98 -0
- package/dist/definitions/steps/define-code-step.d.ts +50 -0
- package/dist/definitions/steps/define-step.d.ts +40 -8
- package/dist/definitions/steps/index.d.ts +1 -0
- package/dist/definitions/steps/index.js +41 -24
- package/dist/definitions/steps/step-definitions-client.d.ts +47 -11
- package/dist/definitions/validation/index.js +15148 -94
- package/dist/definitions/validation/validate-definition-specs.d.ts +19 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +1 -4
- package/dist/generated/types.gen.d.ts +469 -875
- package/dist/index.js +525 -585
- package/dist/push/collect-definitions.d.ts +40 -1
- package/dist/push/index.d.ts +2 -2
- package/dist/push/index.js +756 -664
- package/dist/step-execution-plane-client.d.ts +9 -4
- package/package.json +2 -2
- package/dist/definitions/pipelines/builder.d.ts +0 -80
- package/dist/definitions/pipelines/fan-out-builder.d.ts +0 -66
- package/dist/definitions/pipelines/input-accessor.d.ts +0 -25
|
@@ -16,10 +16,18 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
16
16
|
description: string | unknown;
|
|
17
17
|
prompt: string | unknown;
|
|
18
18
|
version: number;
|
|
19
|
-
kind: "built_in" | "user_defined";
|
|
19
|
+
kind: "built_in" | "user_defined" | "code";
|
|
20
|
+
entrypointJson: {
|
|
21
|
+
sourceFile: string;
|
|
22
|
+
exportName: string;
|
|
23
|
+
} | unknown;
|
|
20
24
|
executionMode: "workspace" | "no_workspace";
|
|
21
|
-
inputSchemaJson:
|
|
22
|
-
|
|
25
|
+
inputSchemaJson: {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
} | unknown;
|
|
28
|
+
resultSchemaJson: {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
} | unknown;
|
|
23
31
|
opencodeMcpJson: {
|
|
24
32
|
[key: string]: {
|
|
25
33
|
type: string;
|
|
@@ -80,10 +88,18 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
80
88
|
description: string | unknown;
|
|
81
89
|
prompt: string | unknown;
|
|
82
90
|
version: number;
|
|
83
|
-
kind: "built_in" | "user_defined";
|
|
91
|
+
kind: "built_in" | "user_defined" | "code";
|
|
92
|
+
entrypointJson: {
|
|
93
|
+
sourceFile: string;
|
|
94
|
+
exportName: string;
|
|
95
|
+
} | unknown;
|
|
84
96
|
executionMode: "workspace" | "no_workspace";
|
|
85
|
-
inputSchemaJson:
|
|
86
|
-
|
|
97
|
+
inputSchemaJson: {
|
|
98
|
+
[key: string]: unknown;
|
|
99
|
+
} | unknown;
|
|
100
|
+
resultSchemaJson: {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
} | unknown;
|
|
87
103
|
opencodeMcpJson: {
|
|
88
104
|
[key: string]: {
|
|
89
105
|
type: string;
|
|
@@ -138,8 +154,20 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
138
154
|
}>;
|
|
139
155
|
/**
|
|
140
156
|
* Upserts a step definition keyed by (projectId, key, version). Accepts the
|
|
141
|
-
* `StepDefinitionSpec` produced by `defineStep()` directly —
|
|
142
|
-
* fetch-existing/branch-on-id step needed.
|
|
157
|
+
* `StepDefinitionSpec` produced by `defineStep()`/`codeStep()` directly —
|
|
158
|
+
* no separate fetch-existing/branch-on-id step needed.
|
|
159
|
+
*
|
|
160
|
+
* `entrypointJson` (a `kind: "code"` step's resolved entrypoint — see
|
|
161
|
+
* `collect-definitions.ts`) and the widened `kind` union
|
|
162
|
+
* (`"user_defined" | "code"`) are not yet reflected in the
|
|
163
|
+
* OpenAPI-generated `UpsertStepDefinitionInput` type, so the request
|
|
164
|
+
* body is built explicitly and cast at the boundary rather than spread
|
|
165
|
+
* + `satisfies`-checked, mirroring the same pattern
|
|
166
|
+
* `pipeline-definitions-client.ts`'s `upsertFromSpec` already uses for
|
|
167
|
+
* its own wire-format-ahead-of-codegen gap. The spec's transient
|
|
168
|
+
* `entrypoint.fn` (a live, unserializable function reference —
|
|
169
|
+
* present only if a caller bypasses `collect-definitions.ts`'s own
|
|
170
|
+
* strip step) is never included here.
|
|
143
171
|
*/
|
|
144
172
|
upsertFromSpec: (projectId: string, spec: StepDefinitionSpec, options?: RequestOptions) => Promise<{
|
|
145
173
|
id: string;
|
|
@@ -149,10 +177,18 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
149
177
|
description: string | unknown;
|
|
150
178
|
prompt: string | unknown;
|
|
151
179
|
version: number;
|
|
152
|
-
kind: "built_in" | "user_defined";
|
|
180
|
+
kind: "built_in" | "user_defined" | "code";
|
|
181
|
+
entrypointJson: {
|
|
182
|
+
sourceFile: string;
|
|
183
|
+
exportName: string;
|
|
184
|
+
} | unknown;
|
|
153
185
|
executionMode: "workspace" | "no_workspace";
|
|
154
|
-
inputSchemaJson:
|
|
155
|
-
|
|
186
|
+
inputSchemaJson: {
|
|
187
|
+
[key: string]: unknown;
|
|
188
|
+
} | unknown;
|
|
189
|
+
resultSchemaJson: {
|
|
190
|
+
[key: string]: unknown;
|
|
191
|
+
} | unknown;
|
|
156
192
|
opencodeMcpJson: {
|
|
157
193
|
[key: string]: {
|
|
158
194
|
type: string;
|