@boboddy/sdk 0.1.35-alpha → 0.1.37-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/definitions/steps/define-step.d.ts +9 -0
- package/dist/definitions/steps/index.js +3 -1
- package/dist/definitions/steps/step-definitions-client.d.ts +3 -0
- package/dist/generated/types.gen.d.ts +13 -13
- package/dist/index.js +3 -1
- package/dist/opencode-plugin.d.ts +14 -0
- package/dist/opencode-plugin.js +14302 -0
- package/dist/push/index.js +3 -1
- package/dist/step-execution-plane-client.d.ts +1 -0
- package/package.json +5 -1
|
@@ -21,6 +21,13 @@ type OpenCodeMcpServers = Record<string, {
|
|
|
21
21
|
} | {
|
|
22
22
|
enabled: boolean;
|
|
23
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* A single entry in the OpenCode `plugin` config array.
|
|
26
|
+
* Either a package name string or a [packageName, options] tuple.
|
|
27
|
+
*/
|
|
28
|
+
type OpenCodePluginEntry = string | [string, Record<string, unknown>];
|
|
29
|
+
/** Full value of the OpenCode `plugin` config field. */
|
|
30
|
+
type OpenCodePlugins = OpenCodePluginEntry[];
|
|
24
31
|
type SignalTypeStr = "string" | "number" | "boolean" | "object" | "array";
|
|
25
32
|
export type DotPaths<T, D extends readonly unknown[] = []> = D["length"] extends 4 ? string : unknown extends T ? string : T extends readonly unknown[] ? string : T extends object ? {
|
|
26
33
|
[K in keyof T & string]: K | (NonNullable<T[K]> extends object ? `${K}.${DotPaths<NonNullable<T[K]>, [...D, unknown]> & string}` : never);
|
|
@@ -54,6 +61,7 @@ export type DefineStepInput<TInput extends ZodType = ZodType, TResult extends Zo
|
|
|
54
61
|
signals?: SignalSpecInput<TResult["_output"]>[];
|
|
55
62
|
features?: AnyStepFeature[];
|
|
56
63
|
mcpServers?: OpenCodeMcpServers | null;
|
|
64
|
+
plugins?: OpenCodePlugins | null;
|
|
57
65
|
status?: "draft" | "active";
|
|
58
66
|
};
|
|
59
67
|
export type AdditionalStepInputLiteralBinding = {
|
|
@@ -82,6 +90,7 @@ export type StepDefinitionSpec = {
|
|
|
82
90
|
availableWhenResultStatusIn: string[] | null;
|
|
83
91
|
}>;
|
|
84
92
|
opencodeMcpJson: OpenCodeMcpServers | null;
|
|
93
|
+
opencodePluginJson: OpenCodePlugins | null;
|
|
85
94
|
};
|
|
86
95
|
export type SignalTypeStrToTs<T extends SignalTypeStr> = T extends "string" ? string : T extends "number" ? number : T extends "boolean" ? boolean : T extends "array" ? unknown[] : T extends "object" ? object : unknown;
|
|
87
96
|
export type SignalTypeMapOf<TSignals extends readonly unknown[], TResult> = {
|
|
@@ -12027,7 +12027,8 @@ ${feature._promptAddition}` : feature._promptAddition;
|
|
|
12027
12027
|
availableWhenResultStatusIn: s.availableWhenResultStatusIn ?? null
|
|
12028
12028
|
}))
|
|
12029
12029
|
],
|
|
12030
|
-
opencodeMcpJson: config2.mcpServers ?? null
|
|
12030
|
+
opencodeMcpJson: config2.mcpServers ?? null,
|
|
12031
|
+
opencodePluginJson: config2.plugins ?? null
|
|
12031
12032
|
};
|
|
12032
12033
|
return spec;
|
|
12033
12034
|
}
|
|
@@ -13397,6 +13398,7 @@ var buildStepDefinitionsClient = (stepDefinitions) => {
|
|
|
13397
13398
|
upsertFromSpec: async (projectId, spec, options) => {
|
|
13398
13399
|
const body = {
|
|
13399
13400
|
...spec,
|
|
13401
|
+
prompt: spec.prompt ?? "",
|
|
13400
13402
|
projectId
|
|
13401
13403
|
};
|
|
13402
13404
|
const result = await stepDefinitions.upsertStepDefinition({
|
|
@@ -46,6 +46,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
46
46
|
enabled: boolean;
|
|
47
47
|
};
|
|
48
48
|
} | unknown;
|
|
49
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
49
50
|
status: "draft" | "active" | "archived";
|
|
50
51
|
signalExtractorDefinitions: Array<{
|
|
51
52
|
id: string;
|
|
@@ -98,6 +99,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
98
99
|
enabled: boolean;
|
|
99
100
|
};
|
|
100
101
|
} | unknown;
|
|
102
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
101
103
|
status: "draft" | "active" | "archived";
|
|
102
104
|
signalExtractorDefinitions: Array<{
|
|
103
105
|
id: string;
|
|
@@ -155,6 +157,7 @@ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) =>
|
|
|
155
157
|
enabled: boolean;
|
|
156
158
|
};
|
|
157
159
|
} | unknown;
|
|
160
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
158
161
|
status: "draft" | "active" | "archived";
|
|
159
162
|
signalExtractorDefinitions: Array<{
|
|
160
163
|
id: string;
|
|
@@ -679,6 +679,7 @@ export type GetApiStepDefinitionsResponses = {
|
|
|
679
679
|
enabled: boolean;
|
|
680
680
|
};
|
|
681
681
|
} | unknown;
|
|
682
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
682
683
|
status: 'draft' | 'active' | 'archived';
|
|
683
684
|
signalExtractorDefinitions: Array<{
|
|
684
685
|
id: string;
|
|
@@ -701,7 +702,7 @@ export type PostApiStepDefinitionsData = {
|
|
|
701
702
|
key: string;
|
|
702
703
|
name: string;
|
|
703
704
|
description: string | unknown;
|
|
704
|
-
prompt: string
|
|
705
|
+
prompt: string;
|
|
705
706
|
version: number;
|
|
706
707
|
kind: 'built_in' | 'user_defined';
|
|
707
708
|
inputSchemaJson: unknown;
|
|
@@ -733,6 +734,7 @@ export type PostApiStepDefinitionsData = {
|
|
|
733
734
|
enabled: boolean;
|
|
734
735
|
};
|
|
735
736
|
} | unknown;
|
|
737
|
+
opencodePluginJson?: Array<string | Array<unknown>> | unknown;
|
|
736
738
|
status: 'draft' | 'active' | 'archived';
|
|
737
739
|
signalExtractorDefinitions: Array<{
|
|
738
740
|
key: string;
|
|
@@ -903,6 +905,7 @@ export type PostApiStepDefinitionsResponses = {
|
|
|
903
905
|
enabled: boolean;
|
|
904
906
|
};
|
|
905
907
|
} | unknown;
|
|
908
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
906
909
|
status: 'draft' | 'active' | 'archived';
|
|
907
910
|
signalExtractorDefinitions: Array<{
|
|
908
911
|
id: string;
|
|
@@ -925,7 +928,7 @@ export type PutApiStepDefinitionsData = {
|
|
|
925
928
|
key: string;
|
|
926
929
|
name: string;
|
|
927
930
|
description: string | unknown;
|
|
928
|
-
prompt: string
|
|
931
|
+
prompt: string;
|
|
929
932
|
version: number;
|
|
930
933
|
kind: 'built_in' | 'user_defined';
|
|
931
934
|
inputSchemaJson: unknown;
|
|
@@ -957,6 +960,7 @@ export type PutApiStepDefinitionsData = {
|
|
|
957
960
|
enabled: boolean;
|
|
958
961
|
};
|
|
959
962
|
} | unknown;
|
|
963
|
+
opencodePluginJson?: Array<string | Array<unknown>> | unknown;
|
|
960
964
|
status: 'draft' | 'active' | 'archived';
|
|
961
965
|
signalExtractorDefinitions: Array<{
|
|
962
966
|
key: string;
|
|
@@ -1095,6 +1099,7 @@ export type PutApiStepDefinitionsResponses = {
|
|
|
1095
1099
|
enabled: boolean;
|
|
1096
1100
|
};
|
|
1097
1101
|
} | unknown;
|
|
1102
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
1098
1103
|
status: 'draft' | 'active' | 'archived';
|
|
1099
1104
|
signalExtractorDefinitions: Array<{
|
|
1100
1105
|
id: string;
|
|
@@ -1244,6 +1249,7 @@ export type GetApiStepDefinitionsByStepDefinitionIdResponses = {
|
|
|
1244
1249
|
enabled: boolean;
|
|
1245
1250
|
};
|
|
1246
1251
|
} | unknown;
|
|
1252
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
1247
1253
|
status: 'draft' | 'active' | 'archived';
|
|
1248
1254
|
signalExtractorDefinitions: Array<{
|
|
1249
1255
|
id: string;
|
|
@@ -1393,6 +1399,7 @@ export type PutApiStepDefinitionsByStepDefinitionIdArchiveResponses = {
|
|
|
1393
1399
|
enabled: boolean;
|
|
1394
1400
|
};
|
|
1395
1401
|
} | unknown;
|
|
1402
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
1396
1403
|
status: 'draft' | 'active' | 'archived';
|
|
1397
1404
|
signalExtractorDefinitions: Array<{
|
|
1398
1405
|
id: string;
|
|
@@ -2176,6 +2183,7 @@ export type PostApiStepExecutionsByStepExecutionIdWorkerContextResponses = {
|
|
|
2176
2183
|
enabled: boolean;
|
|
2177
2184
|
};
|
|
2178
2185
|
} | unknown;
|
|
2186
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
2179
2187
|
};
|
|
2180
2188
|
agentPrompt: {
|
|
2181
2189
|
sessionTitle: string;
|
|
@@ -5454,7 +5462,6 @@ export type GetApiLinearPipelineExecutionsResponses = {
|
|
|
5454
5462
|
acceptedByUserId: string | unknown;
|
|
5455
5463
|
acceptedAt: string | unknown;
|
|
5456
5464
|
acceptanceReason: string | unknown;
|
|
5457
|
-
inputJson: unknown;
|
|
5458
5465
|
outputJson: unknown;
|
|
5459
5466
|
evaluation: {
|
|
5460
5467
|
id: string;
|
|
@@ -5659,7 +5666,6 @@ export type PostApiLinearPipelineExecutionsResponses = {
|
|
|
5659
5666
|
acceptedByUserId: string | unknown;
|
|
5660
5667
|
acceptedAt: string | unknown;
|
|
5661
5668
|
acceptanceReason: string | unknown;
|
|
5662
|
-
inputJson: unknown;
|
|
5663
5669
|
outputJson: unknown;
|
|
5664
5670
|
evaluation: {
|
|
5665
5671
|
id: string;
|
|
@@ -5829,7 +5835,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStartRespon
|
|
|
5829
5835
|
acceptedByUserId: string | unknown;
|
|
5830
5836
|
acceptedAt: string | unknown;
|
|
5831
5837
|
acceptanceReason: string | unknown;
|
|
5832
|
-
inputJson: unknown;
|
|
5833
5838
|
outputJson: unknown;
|
|
5834
5839
|
evaluation: {
|
|
5835
5840
|
id: string;
|
|
@@ -5999,7 +6004,6 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsFi
|
|
|
5999
6004
|
acceptedByUserId: string | unknown;
|
|
6000
6005
|
acceptedAt: string | unknown;
|
|
6001
6006
|
acceptanceReason: string | unknown;
|
|
6002
|
-
inputJson: unknown;
|
|
6003
6007
|
outputJson: unknown;
|
|
6004
6008
|
evaluation: {
|
|
6005
6009
|
id: string;
|
|
@@ -6170,7 +6174,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsByL
|
|
|
6170
6174
|
acceptedByUserId: string | unknown;
|
|
6171
6175
|
acceptedAt: string | unknown;
|
|
6172
6176
|
acceptanceReason: string | unknown;
|
|
6173
|
-
inputJson: unknown;
|
|
6174
6177
|
outputJson: unknown;
|
|
6175
6178
|
evaluation: {
|
|
6176
6179
|
id: string;
|
|
@@ -6345,7 +6348,6 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
|
|
|
6345
6348
|
acceptedByUserId: string | unknown;
|
|
6346
6349
|
acceptedAt: string | unknown;
|
|
6347
6350
|
acceptanceReason: string | unknown;
|
|
6348
|
-
inputJson: unknown;
|
|
6349
6351
|
outputJson: unknown;
|
|
6350
6352
|
evaluation: {
|
|
6351
6353
|
id: string;
|
|
@@ -6522,7 +6524,6 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdStepRunsBy
|
|
|
6522
6524
|
acceptedByUserId: string | unknown;
|
|
6523
6525
|
acceptedAt: string | unknown;
|
|
6524
6526
|
acceptanceReason: string | unknown;
|
|
6525
|
-
inputJson: unknown;
|
|
6526
6527
|
outputJson: unknown;
|
|
6527
6528
|
evaluation: {
|
|
6528
6529
|
id: string;
|
|
@@ -6694,7 +6695,6 @@ export type PostApiLinearPipelineExecutionsByLinearPipelineExecutionIdRerunRespo
|
|
|
6694
6695
|
acceptedByUserId: string | unknown;
|
|
6695
6696
|
acceptedAt: string | unknown;
|
|
6696
6697
|
acceptanceReason: string | unknown;
|
|
6697
|
-
inputJson: unknown;
|
|
6698
6698
|
outputJson: unknown;
|
|
6699
6699
|
evaluation: {
|
|
6700
6700
|
id: string;
|
|
@@ -6864,7 +6864,6 @@ export type PutApiLinearPipelineExecutionsByLinearPipelineExecutionIdCancelRespo
|
|
|
6864
6864
|
acceptedByUserId: string | unknown;
|
|
6865
6865
|
acceptedAt: string | unknown;
|
|
6866
6866
|
acceptanceReason: string | unknown;
|
|
6867
|
-
inputJson: unknown;
|
|
6868
6867
|
outputJson: unknown;
|
|
6869
6868
|
evaluation: {
|
|
6870
6869
|
id: string;
|
|
@@ -7034,7 +7033,6 @@ export type GetApiLinearPipelineExecutionsByLinearPipelineExecutionIdResponses =
|
|
|
7034
7033
|
acceptedByUserId: string | unknown;
|
|
7035
7034
|
acceptedAt: string | unknown;
|
|
7036
7035
|
acceptanceReason: string | unknown;
|
|
7037
|
-
inputJson: unknown;
|
|
7038
7036
|
outputJson: unknown;
|
|
7039
7037
|
evaluation: {
|
|
7040
7038
|
id: string;
|
|
@@ -7204,7 +7202,6 @@ export type GetApiLinearPipelineExecutionsByDefinitionByLinearPipelineDefinition
|
|
|
7204
7202
|
acceptedByUserId: string | unknown;
|
|
7205
7203
|
acceptedAt: string | unknown;
|
|
7206
7204
|
acceptanceReason: string | unknown;
|
|
7207
|
-
inputJson: unknown;
|
|
7208
7205
|
outputJson: unknown;
|
|
7209
7206
|
evaluation: {
|
|
7210
7207
|
id: string;
|
|
@@ -8859,6 +8856,7 @@ export type GetApiStepDefinitionTemplatesResponses = {
|
|
|
8859
8856
|
enabled: boolean;
|
|
8860
8857
|
};
|
|
8861
8858
|
} | unknown;
|
|
8859
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
8862
8860
|
signalExtractorDefinitions: Array<{
|
|
8863
8861
|
key: string;
|
|
8864
8862
|
sourcePath: string;
|
|
@@ -8994,6 +8992,7 @@ export type GetApiStepDefinitionTemplatesByStepDefinitionTemplateIdResponses = {
|
|
|
8994
8992
|
enabled: boolean;
|
|
8995
8993
|
};
|
|
8996
8994
|
} | unknown;
|
|
8995
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
8997
8996
|
signalExtractorDefinitions: Array<{
|
|
8998
8997
|
key: string;
|
|
8999
8998
|
sourcePath: string;
|
|
@@ -9186,6 +9185,7 @@ export type PostApiStepDefinitionTemplatesByStepDefinitionTemplateIdInstantiateR
|
|
|
9186
9185
|
enabled: boolean;
|
|
9187
9186
|
};
|
|
9188
9187
|
} | unknown;
|
|
9188
|
+
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
9189
9189
|
status: 'draft' | 'active' | 'archived';
|
|
9190
9190
|
signalExtractorDefinitions: Array<{
|
|
9191
9191
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -13412,7 +13412,8 @@ ${feature._promptAddition}` : feature._promptAddition;
|
|
|
13412
13412
|
availableWhenResultStatusIn: s.availableWhenResultStatusIn ?? null
|
|
13413
13413
|
}))
|
|
13414
13414
|
],
|
|
13415
|
-
opencodeMcpJson: config2.mcpServers ?? null
|
|
13415
|
+
opencodeMcpJson: config2.mcpServers ?? null,
|
|
13416
|
+
opencodePluginJson: config2.plugins ?? null
|
|
13416
13417
|
};
|
|
13417
13418
|
return spec;
|
|
13418
13419
|
}
|
|
@@ -13467,6 +13468,7 @@ var buildStepDefinitionsClient = (stepDefinitions) => {
|
|
|
13467
13468
|
upsertFromSpec: async (projectId, spec, options) => {
|
|
13468
13469
|
const body = {
|
|
13469
13470
|
...spec,
|
|
13471
|
+
prompt: spec.prompt ?? "",
|
|
13470
13472
|
projectId
|
|
13471
13473
|
};
|
|
13472
13474
|
const result = await stepDefinitions.upsertStepDefinition({
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* A single entry in the OpenCode `plugin` config field.
|
|
4
|
+
* Mirrors the OpenCode config.json schema:
|
|
5
|
+
* - string: npm package name, e.g. "opencode-wakatime"
|
|
6
|
+
* - [string, object]: package name + options object, e.g. ["@my-org/plugin", { key: "val" }]
|
|
7
|
+
*/
|
|
8
|
+
export declare const openCodePluginEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodNever>]>;
|
|
9
|
+
/**
|
|
10
|
+
* The full value of the OpenCode `plugin` config array.
|
|
11
|
+
*/
|
|
12
|
+
export declare const openCodePluginsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodNever>]>>;
|
|
13
|
+
export type OpenCodePluginEntry = z.infer<typeof openCodePluginEntrySchema>;
|
|
14
|
+
export type OpenCodePlugins = z.infer<typeof openCodePluginsSchema>;
|