@boboddy/sdk 0.0.13-alpha → 0.0.16-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.
Files changed (34) hide show
  1. package/dist/boboddy-config-parser.d.ts +34 -0
  2. package/dist/boboddy-config-parser.js +510 -0
  3. package/dist/client.d.ts +3 -1
  4. package/dist/client.js +1402 -45
  5. package/dist/define-step.d.ts +21 -1
  6. package/dist/define-step.js +11065 -69
  7. package/dist/generated/client/client.gen.d.ts +2 -0
  8. package/dist/generated/client/index.d.ts +8 -0
  9. package/dist/generated/client/types.gen.d.ts +117 -0
  10. package/dist/generated/client/utils.gen.d.ts +33 -0
  11. package/dist/generated/client.gen.d.ts +12 -0
  12. package/dist/generated/core/auth.gen.d.ts +18 -0
  13. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  14. package/dist/generated/core/params.gen.d.ts +43 -0
  15. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  16. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  17. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  18. package/dist/generated/core/types.gen.d.ts +78 -0
  19. package/dist/generated/core/utils.gen.d.ts +19 -0
  20. package/dist/generated/index.d.ts +2 -0
  21. package/dist/generated/sdk.gen.d.ts +162 -0
  22. package/dist/generated/types.gen.d.ts +9193 -0
  23. package/dist/index.d.ts +3 -0
  24. package/dist/index.js +16288 -957
  25. package/dist/jsonc.d.ts +3 -0
  26. package/dist/jsonc.js +133 -0
  27. package/dist/opencode-mcp.d.ts +73 -0
  28. package/dist/opencode-mcp.js +14326 -0
  29. package/dist/step-definitions-client.d.ts +138 -143
  30. package/dist/step-definitions-client.js +1354 -29
  31. package/dist/step-execution-plane-client.d.ts +107 -287
  32. package/package.json +30 -17
  33. package/dist/treaty.d.ts +0 -13
  34. package/dist/treaty.js +0 -34
@@ -1,200 +1,195 @@
1
- import type { App } from "@boboddy/api/app";
2
- import type { CreateStepDefinitionInput, UpdateStepDefinitionInput } from "@boboddy/core/pipeline-definitions/step-definition/contracts/step-definition-contracts";
3
- import { createBoboddyTreaty } from "./treaty";
1
+ import { StepDefinitions } from "./generated/sdk.gen";
2
+ import type { PostApiStepDefinitionsData, PutApiStepDefinitionsByStepDefinitionIdData } from "./generated/types.gen";
4
3
  type RequestOptions = {
5
4
  headers?: Record<string, unknown> | undefined;
6
5
  };
7
- export declare function createStepDefinitionsClient(baseUrlOrApp: string | App): ReturnType<typeof buildStepDefinitionsClient>;
8
- declare const buildStepDefinitionsClient: (apiClient: ReturnType<typeof createBoboddyTreaty>) => {
6
+ export type CreateStepDefinitionInput = PostApiStepDefinitionsData["body"];
7
+ export type UpdateStepDefinitionInput = PutApiStepDefinitionsByStepDefinitionIdData["body"];
8
+ export declare function createStepDefinitionsClient(baseUrl: string): ReturnType<typeof buildStepDefinitionsClient>;
9
+ declare const buildStepDefinitionsClient: (stepDefinitions: StepDefinitions) => {
9
10
  listByProjectId: (projectId: string, options?: RequestOptions) => Promise<{
10
- id: string & {
11
- readonly __brand: "uuidv7";
12
- };
13
- projectId: string & {
14
- readonly __brand: "uuidv7";
15
- };
11
+ id: string;
12
+ projectId: string;
16
13
  key: string;
17
14
  name: string;
18
- description: string | null;
19
- prompt: string | null;
15
+ description: string | unknown;
16
+ prompt: string | unknown;
20
17
  version: number;
21
18
  kind: "built_in" | "user_defined";
22
- inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
23
- resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
24
- opencodeMcpJson: Record<string, {
25
- type: "local";
26
- command: string[];
27
- environment?: Record<string, string> | undefined;
28
- enabled?: boolean | undefined;
29
- timeout?: number | undefined;
30
- } | {
31
- type: "remote";
32
- url: string;
33
- enabled?: boolean | undefined;
34
- headers?: Record<string, string> | undefined;
35
- oauth?: false | {
36
- clientId?: string | undefined;
37
- clientSecret?: string | undefined;
38
- scope?: string | undefined;
39
- redirectUri?: string | undefined;
40
- } | undefined;
41
- timeout?: number | undefined;
42
- } | {
43
- enabled: boolean;
44
- }> | null;
45
- status: "draft" | "active" | "archived";
46
- signalExtractorDefinitions: {
47
- id: string & {
48
- readonly __brand: "uuidv7";
19
+ inputSchemaJson: unknown;
20
+ resultSchemaJson: unknown;
21
+ opencodeMcpJson: {
22
+ [key: string]: {
23
+ type: string;
24
+ command: Array<string>;
25
+ environment?: {
26
+ [key: string]: string;
27
+ };
28
+ enabled?: boolean;
29
+ timeout?: number;
30
+ } | {
31
+ type: string;
32
+ url: string;
33
+ enabled?: boolean;
34
+ headers?: {
35
+ [key: string]: string;
36
+ };
37
+ oauth?: {
38
+ clientId?: string;
39
+ clientSecret?: string;
40
+ scope?: string;
41
+ redirectUri?: string;
42
+ } | boolean;
43
+ timeout?: number;
44
+ } | {
45
+ enabled: boolean;
49
46
  };
47
+ } | unknown;
48
+ status: "draft" | "active" | "archived";
49
+ signalExtractorDefinitions: Array<{
50
+ id: string;
50
51
  key: string;
51
52
  sourcePath: string;
52
53
  type: "string" | "number" | "boolean" | "object" | "array";
53
54
  required: boolean;
54
- availableWhenResultStatusIn: string[] | null;
55
+ availableWhenResultStatusIn: Array<string> | unknown;
55
56
  createdAt: string;
56
57
  updatedAt: string;
57
- }[];
58
- computedSignalDefinitions: {
59
- id: string & {
60
- readonly __brand: "uuidv7";
61
- };
58
+ }>;
59
+ computedSignalDefinitions: Array<{
60
+ id: string;
62
61
  key: string;
63
- type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
64
- inputSignalKeys: string[];
65
- configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
66
- availableWhenResultStatusIn: string[] | null;
62
+ type: "average" | "weighted_average" | "sum" | "min" | "max" | "custom";
63
+ inputSignalKeys: Array<string>;
64
+ configJson: unknown;
65
+ availableWhenResultStatusIn: Array<string> | unknown;
67
66
  createdAt: string;
68
67
  updatedAt: string;
69
- }[];
68
+ }>;
70
69
  createdAt: string;
71
70
  updatedAt: string;
72
71
  }[]>;
73
72
  create: (body: CreateStepDefinitionInput, options?: RequestOptions) => Promise<{
74
- id: string & {
75
- readonly __brand: "uuidv7";
76
- };
77
- projectId: string & {
78
- readonly __brand: "uuidv7";
79
- };
73
+ id: string;
74
+ projectId: string;
80
75
  key: string;
81
76
  name: string;
82
- description: string | null;
83
- prompt: string | null;
77
+ description: string | unknown;
78
+ prompt: string | unknown;
84
79
  version: number;
85
80
  kind: "built_in" | "user_defined";
86
- inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
87
- resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
88
- opencodeMcpJson: Record<string, {
89
- type: "local";
90
- command: string[];
91
- environment?: Record<string, string> | undefined;
92
- enabled?: boolean | undefined;
93
- timeout?: number | undefined;
94
- } | {
95
- type: "remote";
96
- url: string;
97
- enabled?: boolean | undefined;
98
- headers?: Record<string, string> | undefined;
99
- oauth?: false | {
100
- clientId?: string | undefined;
101
- clientSecret?: string | undefined;
102
- scope?: string | undefined;
103
- redirectUri?: string | undefined;
104
- } | undefined;
105
- timeout?: number | undefined;
106
- } | {
107
- enabled: boolean;
108
- }> | null;
109
- status: "draft" | "active" | "archived";
110
- signalExtractorDefinitions: {
111
- id: string & {
112
- readonly __brand: "uuidv7";
81
+ inputSchemaJson: unknown;
82
+ resultSchemaJson: unknown;
83
+ opencodeMcpJson: {
84
+ [key: string]: {
85
+ type: string;
86
+ command: Array<string>;
87
+ environment?: {
88
+ [key: string]: string;
89
+ };
90
+ enabled?: boolean;
91
+ timeout?: number;
92
+ } | {
93
+ type: string;
94
+ url: string;
95
+ enabled?: boolean;
96
+ headers?: {
97
+ [key: string]: string;
98
+ };
99
+ oauth?: {
100
+ clientId?: string;
101
+ clientSecret?: string;
102
+ scope?: string;
103
+ redirectUri?: string;
104
+ } | boolean;
105
+ timeout?: number;
106
+ } | {
107
+ enabled: boolean;
113
108
  };
109
+ } | unknown;
110
+ status: "draft" | "active" | "archived";
111
+ signalExtractorDefinitions: Array<{
112
+ id: string;
114
113
  key: string;
115
114
  sourcePath: string;
116
115
  type: "string" | "number" | "boolean" | "object" | "array";
117
116
  required: boolean;
118
- availableWhenResultStatusIn: string[] | null;
117
+ availableWhenResultStatusIn: Array<string> | unknown;
119
118
  createdAt: string;
120
119
  updatedAt: string;
121
- }[];
122
- computedSignalDefinitions: {
123
- id: string & {
124
- readonly __brand: "uuidv7";
125
- };
120
+ }>;
121
+ computedSignalDefinitions: Array<{
122
+ id: string;
126
123
  key: string;
127
- type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
128
- inputSignalKeys: string[];
129
- configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
130
- availableWhenResultStatusIn: string[] | null;
124
+ type: "average" | "weighted_average" | "sum" | "min" | "max" | "custom";
125
+ inputSignalKeys: Array<string>;
126
+ configJson: unknown;
127
+ availableWhenResultStatusIn: Array<string> | unknown;
131
128
  createdAt: string;
132
129
  updatedAt: string;
133
- }[];
130
+ }>;
134
131
  createdAt: string;
135
132
  updatedAt: string;
136
133
  }>;
137
134
  update: (stepDefinitionId: string, body: UpdateStepDefinitionInput, options?: RequestOptions) => Promise<{
138
- id: string & {
139
- readonly __brand: "uuidv7";
140
- };
141
- projectId: string & {
142
- readonly __brand: "uuidv7";
143
- };
135
+ id: string;
136
+ projectId: string;
144
137
  key: string;
145
138
  name: string;
146
- description: string | null;
147
- prompt: string | null;
139
+ description: string | unknown;
140
+ prompt: string | unknown;
148
141
  version: number;
149
142
  kind: "built_in" | "user_defined";
150
- inputSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
151
- resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
152
- opencodeMcpJson: Record<string, {
153
- type: "local";
154
- command: string[];
155
- environment?: Record<string, string> | undefined;
156
- enabled?: boolean | undefined;
157
- timeout?: number | undefined;
158
- } | {
159
- type: "remote";
160
- url: string;
161
- enabled?: boolean | undefined;
162
- headers?: Record<string, string> | undefined;
163
- oauth?: false | {
164
- clientId?: string | undefined;
165
- clientSecret?: string | undefined;
166
- scope?: string | undefined;
167
- redirectUri?: string | undefined;
168
- } | undefined;
169
- timeout?: number | undefined;
170
- } | {
171
- enabled: boolean;
172
- }> | null;
173
- status: "draft" | "active" | "archived";
174
- signalExtractorDefinitions: {
175
- id: string & {
176
- readonly __brand: "uuidv7";
143
+ inputSchemaJson: unknown;
144
+ resultSchemaJson: unknown;
145
+ opencodeMcpJson: {
146
+ [key: string]: {
147
+ type: string;
148
+ command: Array<string>;
149
+ environment?: {
150
+ [key: string]: string;
151
+ };
152
+ enabled?: boolean;
153
+ timeout?: number;
154
+ } | {
155
+ type: string;
156
+ url: string;
157
+ enabled?: boolean;
158
+ headers?: {
159
+ [key: string]: string;
160
+ };
161
+ oauth?: {
162
+ clientId?: string;
163
+ clientSecret?: string;
164
+ scope?: string;
165
+ redirectUri?: string;
166
+ } | boolean;
167
+ timeout?: number;
168
+ } | {
169
+ enabled: boolean;
177
170
  };
171
+ } | unknown;
172
+ status: "draft" | "active" | "archived";
173
+ signalExtractorDefinitions: Array<{
174
+ id: string;
178
175
  key: string;
179
176
  sourcePath: string;
180
177
  type: "string" | "number" | "boolean" | "object" | "array";
181
178
  required: boolean;
182
- availableWhenResultStatusIn: string[] | null;
179
+ availableWhenResultStatusIn: Array<string> | unknown;
183
180
  createdAt: string;
184
181
  updatedAt: string;
185
- }[];
186
- computedSignalDefinitions: {
187
- id: string & {
188
- readonly __brand: "uuidv7";
189
- };
182
+ }>;
183
+ computedSignalDefinitions: Array<{
184
+ id: string;
190
185
  key: string;
191
- type: "custom" | "average" | "weighted_average" | "sum" | "min" | "max";
192
- inputSignalKeys: string[];
193
- configJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
194
- availableWhenResultStatusIn: string[] | null;
186
+ type: "average" | "weighted_average" | "sum" | "min" | "max" | "custom";
187
+ inputSignalKeys: Array<string>;
188
+ configJson: unknown;
189
+ availableWhenResultStatusIn: Array<string> | unknown;
195
190
  createdAt: string;
196
191
  updatedAt: string;
197
- }[];
192
+ }>;
198
193
  createdAt: string;
199
194
  updatedAt: string;
200
195
  }>;