@boboddy/sdk 0.2.1-alpha → 0.2.4-alpha
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 +64 -0
- package/dist/contracts/artifacts.d.ts +6 -0
- package/dist/contracts/artifacts.js +14297 -0
- package/dist/definitions/pipelines/index.js +28 -2
- package/dist/definitions/steps/define-step.d.ts +2 -0
- package/dist/definitions/steps/index.js +29 -2
- package/dist/definitions/steps/step-definitions-client.d.ts +3 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +5 -1
- package/dist/generated/types.gen.d.ts +493 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +644 -575
- package/dist/opencode-mcp.js +2 -2
- package/dist/opencode-plugin.js +2 -2
- package/dist/push/index.js +29 -2
- package/dist/step-execution-plane-client.d.ts +39 -0
- package/package.json +5 -1
package/dist/opencode-mcp.js
CHANGED
|
@@ -11478,7 +11478,7 @@ function finalize(ctx, schema) {
|
|
|
11478
11478
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
11479
11479
|
} else if (ctx.target === "draft-04") {
|
|
11480
11480
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
11481
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
11481
|
+
} else if (ctx.target === "openapi-3.0") {} else {}
|
|
11482
11482
|
if (ctx.external?.uri) {
|
|
11483
11483
|
const id = ctx.external.registry.get(schema)?.id;
|
|
11484
11484
|
if (!id)
|
|
@@ -11722,7 +11722,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
11722
11722
|
if (val === undefined) {
|
|
11723
11723
|
if (ctx.unrepresentable === "throw") {
|
|
11724
11724
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
11725
|
-
}
|
|
11725
|
+
} else {}
|
|
11726
11726
|
} else if (typeof val === "bigint") {
|
|
11727
11727
|
if (ctx.unrepresentable === "throw") {
|
|
11728
11728
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
package/dist/opencode-plugin.js
CHANGED
|
@@ -11478,7 +11478,7 @@ function finalize(ctx, schema) {
|
|
|
11478
11478
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
11479
11479
|
} else if (ctx.target === "draft-04") {
|
|
11480
11480
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
11481
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
11481
|
+
} else if (ctx.target === "openapi-3.0") {} else {}
|
|
11482
11482
|
if (ctx.external?.uri) {
|
|
11483
11483
|
const id = ctx.external.registry.get(schema)?.id;
|
|
11484
11484
|
if (!id)
|
|
@@ -11722,7 +11722,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
11722
11722
|
if (val === undefined) {
|
|
11723
11723
|
if (ctx.unrepresentable === "throw") {
|
|
11724
11724
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
11725
|
-
}
|
|
11725
|
+
} else {}
|
|
11726
11726
|
} else if (typeof val === "bigint") {
|
|
11727
11727
|
if (ctx.unrepresentable === "throw") {
|
|
11728
11728
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
package/dist/push/index.js
CHANGED
|
@@ -11235,7 +11235,7 @@ function finalize(ctx, schema) {
|
|
|
11235
11235
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
|
11236
11236
|
} else if (ctx.target === "draft-04") {
|
|
11237
11237
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
|
11238
|
-
} else if (ctx.target === "openapi-3.0") {}
|
|
11238
|
+
} else if (ctx.target === "openapi-3.0") {} else {}
|
|
11239
11239
|
if (ctx.external?.uri) {
|
|
11240
11240
|
const id = ctx.external.registry.get(schema)?.id;
|
|
11241
11241
|
if (!id)
|
|
@@ -11479,7 +11479,7 @@ var literalProcessor = (schema, ctx, json, _params) => {
|
|
|
11479
11479
|
if (val === undefined) {
|
|
11480
11480
|
if (ctx.unrepresentable === "throw") {
|
|
11481
11481
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
11482
|
-
}
|
|
11482
|
+
} else {}
|
|
11483
11483
|
} else if (typeof val === "bigint") {
|
|
11484
11484
|
if (ctx.unrepresentable === "throw") {
|
|
11485
11485
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -12054,6 +12054,7 @@ ${feature._promptAddition}` : feature._promptAddition;
|
|
|
12054
12054
|
version: config2.version ?? 1,
|
|
12055
12055
|
kind: "user_defined",
|
|
12056
12056
|
status: config2.status ?? "active",
|
|
12057
|
+
executionMode: config2.executionMode,
|
|
12057
12058
|
prompt: effectivePrompt,
|
|
12058
12059
|
inputSchemaJson: config2.additionalInput ? toJSONSchema(config2.additionalInput) : null,
|
|
12059
12060
|
resultSchemaJson: effectiveResult ? toJSONSchema(effectiveResult) : null,
|
|
@@ -13001,6 +13002,32 @@ class StepDefinitions extends HeyApiClient {
|
|
|
13001
13002
|
}
|
|
13002
13003
|
|
|
13003
13004
|
class StepExecutions extends HeyApiClient {
|
|
13005
|
+
createArtifactUploadUrl(options) {
|
|
13006
|
+
return (options.client ?? this.client).post({
|
|
13007
|
+
url: "/api/step-executions/{stepExecutionId}/artifact-upload-url",
|
|
13008
|
+
...options,
|
|
13009
|
+
headers: {
|
|
13010
|
+
"Content-Type": "application/json",
|
|
13011
|
+
...options.headers
|
|
13012
|
+
}
|
|
13013
|
+
});
|
|
13014
|
+
}
|
|
13015
|
+
listStepExecutionArtifacts(options) {
|
|
13016
|
+
return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts", ...options });
|
|
13017
|
+
}
|
|
13018
|
+
recordStepExecutionArtifact(options) {
|
|
13019
|
+
return (options.client ?? this.client).post({
|
|
13020
|
+
url: "/api/step-executions/{stepExecutionId}/artifacts",
|
|
13021
|
+
...options,
|
|
13022
|
+
headers: {
|
|
13023
|
+
"Content-Type": "application/json",
|
|
13024
|
+
...options.headers
|
|
13025
|
+
}
|
|
13026
|
+
});
|
|
13027
|
+
}
|
|
13028
|
+
getArtifactDownloadUrl(options) {
|
|
13029
|
+
return (options.client ?? this.client).get({ url: "/api/step-executions/{stepExecutionId}/artifacts/{artifactId}/download-url", ...options });
|
|
13030
|
+
}
|
|
13004
13031
|
claimStepExecutions(options) {
|
|
13005
13032
|
return (options.client ?? this.client).post({
|
|
13006
13033
|
url: "/api/step-executions/claims",
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { StepExecutions } from "./generated/sdk.gen";
|
|
2
|
+
import type { PostApiStepExecutionsByStepExecutionIdArtifactUploadUrlData, PostApiStepExecutionsByStepExecutionIdArtifactsData } from "./generated/types.gen";
|
|
3
|
+
type CreateArtifactUploadUrlInput = PostApiStepExecutionsByStepExecutionIdArtifactUploadUrlData["body"];
|
|
4
|
+
type RecordStepExecutionArtifactInput = PostApiStepExecutionsByStepExecutionIdArtifactsData["body"];
|
|
2
5
|
type RequestOptions = {
|
|
3
6
|
headers?: Record<string, unknown> | undefined;
|
|
4
7
|
};
|
|
@@ -137,6 +140,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
|
|
|
137
140
|
key: string;
|
|
138
141
|
name: string;
|
|
139
142
|
prompt: string;
|
|
143
|
+
executionMode: "workspace" | "no_workspace";
|
|
140
144
|
resultSchemaJson: {
|
|
141
145
|
[key: string]: unknown;
|
|
142
146
|
} | unknown;
|
|
@@ -186,6 +190,40 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
|
|
|
186
190
|
resultJson: JsonValue;
|
|
187
191
|
errorJson: JsonValue;
|
|
188
192
|
}, options?: RequestOptions) => Promise<void>;
|
|
193
|
+
createArtifactUploadUrl: (stepExecutionId: string, body: CreateArtifactUploadUrlInput, options?: RequestOptions) => Promise<{
|
|
194
|
+
uploadUrl: string;
|
|
195
|
+
storeRef: string;
|
|
196
|
+
objectKey: string;
|
|
197
|
+
expiresInSeconds: number;
|
|
198
|
+
}>;
|
|
199
|
+
recordStepExecutionArtifact: (stepExecutionId: string, body: RecordStepExecutionArtifactInput, options?: RequestOptions) => Promise<{
|
|
200
|
+
id: string;
|
|
201
|
+
stepExecutionId: string;
|
|
202
|
+
relativeStorePath: string;
|
|
203
|
+
storeRef: string;
|
|
204
|
+
objectKey: string;
|
|
205
|
+
sizeBytes: number;
|
|
206
|
+
contentType: string | unknown;
|
|
207
|
+
kind: "generic" | "playwright-trace";
|
|
208
|
+
createdAt: string;
|
|
209
|
+
}>;
|
|
210
|
+
listStepExecutionArtifacts: (stepExecutionId: string, options?: RequestOptions) => Promise<{
|
|
211
|
+
id: string;
|
|
212
|
+
stepExecutionId: string;
|
|
213
|
+
relativeStorePath: string;
|
|
214
|
+
storeRef: string;
|
|
215
|
+
objectKey: string;
|
|
216
|
+
sizeBytes: number;
|
|
217
|
+
contentType: string | unknown;
|
|
218
|
+
kind: "generic" | "playwright-trace";
|
|
219
|
+
createdAt: string;
|
|
220
|
+
}[]>;
|
|
221
|
+
getArtifactDownloadUrl: (stepExecutionId: string, artifactId: string, options?: RequestOptions) => Promise<{
|
|
222
|
+
url: string | unknown;
|
|
223
|
+
sizeBytes: number;
|
|
224
|
+
contentType: string | unknown;
|
|
225
|
+
relativeStorePath: string;
|
|
226
|
+
}>;
|
|
189
227
|
appendStepExecutionLogs: (stepExecutionId: string, body: {
|
|
190
228
|
claimToken: string;
|
|
191
229
|
lines: {
|
|
@@ -193,6 +231,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
|
|
|
193
231
|
stream: "worker" | "ai-server" | "conversation";
|
|
194
232
|
ts: string;
|
|
195
233
|
content: string;
|
|
234
|
+
level: "debug" | "info" | "warn" | "error";
|
|
196
235
|
}[];
|
|
197
236
|
}, options?: RequestOptions) => Promise<{
|
|
198
237
|
nextOffset: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@boboddy/sdk",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4-alpha",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"import": "./dist/client.js",
|
|
13
13
|
"types": "./dist/client.d.ts"
|
|
14
14
|
},
|
|
15
|
+
"./contracts/artifacts": {
|
|
16
|
+
"import": "./dist/contracts/artifacts.js",
|
|
17
|
+
"types": "./dist/contracts/artifacts.d.ts"
|
|
18
|
+
},
|
|
15
19
|
"./definitions/steps": {
|
|
16
20
|
"import": "./dist/definitions/steps/index.js",
|
|
17
21
|
"types": "./dist/definitions/steps/index.d.ts"
|