@boboddy/sdk 0.2.3-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.
@@ -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");
@@ -64,6 +64,7 @@ export type DefineStepInput<TInput extends ZodType = ZodType, TResult extends Zo
64
64
  mcpServers?: OpenCodeMcpServers | null;
65
65
  plugins?: OpenCodePlugins | null;
66
66
  status?: "draft" | "active";
67
+ executionMode?: "workspace" | "no_workspace";
67
68
  };
68
69
  export type AdditionalStepInputLiteralBinding = {
69
70
  source: "literal";
@@ -80,6 +81,7 @@ export type StepDefinitionSpec = {
80
81
  version: number;
81
82
  kind: "user_defined";
82
83
  status: "draft" | "active" | "archived";
84
+ executionMode?: "workspace" | "no_workspace";
83
85
  prompt: string | null;
84
86
  inputSchemaJson: Record<string, unknown> | null;
85
87
  resultSchemaJson: Record<string, unknown> | null;
@@ -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,
@@ -17,6 +17,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
17
17
  prompt: string | unknown;
18
18
  version: number;
19
19
  kind: "built_in" | "user_defined";
20
+ executionMode: "workspace" | "no_workspace";
20
21
  inputSchemaJson: unknown;
21
22
  resultSchemaJson: unknown;
22
23
  opencodeMcpJson: {
@@ -70,6 +71,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
70
71
  prompt: string | unknown;
71
72
  version: number;
72
73
  kind: "built_in" | "user_defined";
74
+ executionMode: "workspace" | "no_workspace";
73
75
  inputSchemaJson: unknown;
74
76
  resultSchemaJson: unknown;
75
77
  opencodeMcpJson: {
@@ -128,6 +130,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
128
130
  prompt: string | unknown;
129
131
  version: number;
130
132
  kind: "built_in" | "user_defined";
133
+ executionMode: "workspace" | "no_workspace";
131
134
  inputSchemaJson: unknown;
132
135
  resultSchemaJson: unknown;
133
136
  opencodeMcpJson: {
@@ -1169,6 +1169,7 @@ export type GetApiStepDefinitionsResponses = {
1169
1169
  prompt: string | unknown;
1170
1170
  version: number;
1171
1171
  kind: 'built_in' | 'user_defined';
1172
+ executionMode: 'workspace' | 'no_workspace';
1172
1173
  inputSchemaJson: unknown;
1173
1174
  resultSchemaJson: unknown;
1174
1175
  opencodeMcpJson: {
@@ -1224,6 +1225,7 @@ export type PostApiStepDefinitionsData = {
1224
1225
  prompt: string;
1225
1226
  version: number;
1226
1227
  kind: 'built_in' | 'user_defined';
1228
+ executionMode?: 'workspace' | 'no_workspace';
1227
1229
  inputSchemaJson: unknown;
1228
1230
  resultSchemaJson: unknown;
1229
1231
  opencodeMcpJson?: {
@@ -1395,6 +1397,7 @@ export type PostApiStepDefinitionsResponses = {
1395
1397
  prompt: string | unknown;
1396
1398
  version: number;
1397
1399
  kind: 'built_in' | 'user_defined';
1400
+ executionMode: 'workspace' | 'no_workspace';
1398
1401
  inputSchemaJson: unknown;
1399
1402
  resultSchemaJson: unknown;
1400
1403
  opencodeMcpJson: {
@@ -1450,6 +1453,7 @@ export type PutApiStepDefinitionsData = {
1450
1453
  prompt: string;
1451
1454
  version: number;
1452
1455
  kind: 'built_in' | 'user_defined';
1456
+ executionMode?: 'workspace' | 'no_workspace';
1453
1457
  inputSchemaJson: unknown;
1454
1458
  resultSchemaJson: unknown;
1455
1459
  opencodeMcpJson?: {
@@ -1589,6 +1593,7 @@ export type PutApiStepDefinitionsResponses = {
1589
1593
  prompt: string | unknown;
1590
1594
  version: number;
1591
1595
  kind: 'built_in' | 'user_defined';
1596
+ executionMode: 'workspace' | 'no_workspace';
1592
1597
  inputSchemaJson: unknown;
1593
1598
  resultSchemaJson: unknown;
1594
1599
  opencodeMcpJson: {
@@ -1739,6 +1744,7 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
1739
1744
  prompt: string | unknown;
1740
1745
  version: number;
1741
1746
  kind: 'built_in' | 'user_defined';
1747
+ executionMode: 'workspace' | 'no_workspace';
1742
1748
  inputSchemaJson: unknown;
1743
1749
  resultSchemaJson: unknown;
1744
1750
  opencodeMcpJson: {
@@ -1889,6 +1895,7 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
1889
1895
  prompt: string | unknown;
1890
1896
  version: number;
1891
1897
  kind: 'built_in' | 'user_defined';
1898
+ executionMode: 'workspace' | 'no_workspace';
1892
1899
  inputSchemaJson: unknown;
1893
1900
  resultSchemaJson: unknown;
1894
1901
  opencodeMcpJson: {
@@ -3154,6 +3161,7 @@ export type PostApiStepExecutionsByStepExecutionIdWorkerContextResponses = {
3154
3161
  key: string;
3155
3162
  name: string;
3156
3163
  prompt: string;
3164
+ executionMode: 'workspace' | 'no_workspace';
3157
3165
  resultSchemaJson: {
3158
3166
  [key: string]: unknown;
3159
3167
  } | unknown;
@@ -10992,6 +11000,7 @@ export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateR
10992
11000
  prompt: string | unknown;
10993
11001
  version: number;
10994
11002
  kind: 'built_in' | 'user_defined';
11003
+ executionMode: 'workspace' | 'no_workspace';
10995
11004
  inputSchemaJson: unknown;
10996
11005
  resultSchemaJson: unknown;
10997
11006
  opencodeMcpJson: {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./client";
2
+ export * from "./contracts/artifacts";
2
3
  export * from "./definitions/steps";
3
4
  export * from "./definitions/pipelines";
4
5
  export * from "./opencode-mcp";