@boboddy/sdk 0.2.10-alpha → 0.2.13-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/boboddy-config-parser.d.ts +0 -5
- package/dist/boboddy-config-parser.js +0 -6
- package/dist/definitions/steps/define-step.d.ts +22 -1
- package/dist/definitions/steps/index.js +2 -1
- package/dist/definitions/steps/step-definitions-client.d.ts +30 -0
- package/dist/definitions/validation/index.d.ts +2 -0
- package/dist/definitions/validation/index.js +440 -0
- package/dist/definitions/validation/json-schema-paths.d.ts +45 -0
- package/dist/definitions/validation/validate-definition-specs.d.ts +25 -0
- package/dist/generated/types.gen.d.ts +110 -5
- package/dist/health-checks.d.ts +45 -0
- package/dist/health-checks.js +14308 -0
- package/dist/index.js +2 -7
- package/dist/push/collect-definitions.d.ts +21 -0
- package/dist/push/index.d.ts +2 -0
- package/dist/push/index.js +471 -68
- package/dist/push/push-from-directory.d.ts +7 -1
- package/dist/step-execution-plane-client.d.ts +10 -5
- package/package.json +9 -1
|
@@ -14,12 +14,18 @@ export interface PushFromDirectoryResult {
|
|
|
14
14
|
/**
|
|
15
15
|
* Imports every `.ts`/`.js` file in `dir` (except the push script itself and
|
|
16
16
|
* `default-pipeline-assignment.ts`), collects all pipeline and step
|
|
17
|
-
* definitions, then upserts them via the strongly-typed SDK
|
|
17
|
+
* definitions, validates them, then upserts them via the strongly-typed SDK
|
|
18
|
+
* clients.
|
|
18
19
|
*
|
|
19
20
|
* If `default-pipeline-assignment.ts` is present, it is imported separately
|
|
20
21
|
* after pipelines are pushed, and the project default pipeline assignment is
|
|
21
22
|
* updated on the server.
|
|
22
23
|
*
|
|
24
|
+
* Collection is `collectDefinitionsFromDirectory` (offline, no token) and
|
|
25
|
+
* validation is `validateDefinitionSpecs` (pure). Both run before the first
|
|
26
|
+
* mutating request, so a batch with a dead signal `sourcePath`, a dangling
|
|
27
|
+
* route target, or a backwards signal binding fails without half-pushing.
|
|
28
|
+
*
|
|
23
29
|
* Designed to run on the user's native runtime (bun, node-with-tsx, deno),
|
|
24
30
|
* NOT inside a `bun --compile`'d binary — that runtime can't resolve scoped
|
|
25
31
|
* package `exports` field remappings from external user files.
|
|
@@ -122,11 +122,6 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
|
|
|
122
122
|
targetPort: number;
|
|
123
123
|
protocol: "tcp" | "http";
|
|
124
124
|
};
|
|
125
|
-
healthcheck: {
|
|
126
|
-
protocol: "tcp" | "http";
|
|
127
|
-
path: string | unknown;
|
|
128
|
-
expectedStatus: number | unknown;
|
|
129
|
-
};
|
|
130
125
|
}>;
|
|
131
126
|
};
|
|
132
127
|
stepExecution: {
|
|
@@ -172,6 +167,16 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
|
|
|
172
167
|
};
|
|
173
168
|
} | unknown;
|
|
174
169
|
opencodePluginJson: Array<string | Array<unknown>> | unknown;
|
|
170
|
+
healthChecksJson: Array<{
|
|
171
|
+
tool: string;
|
|
172
|
+
mcp?: string;
|
|
173
|
+
name?: string;
|
|
174
|
+
args?: {
|
|
175
|
+
[key: string]: unknown;
|
|
176
|
+
};
|
|
177
|
+
severity: "required" | "warn";
|
|
178
|
+
timeoutMs: number;
|
|
179
|
+
}> | unknown;
|
|
175
180
|
};
|
|
176
181
|
agentPrompt: {
|
|
177
182
|
sessionTitle: string;
|
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.13-alpha",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
"import": "./dist/definitions/advancement-policies/index.js",
|
|
29
29
|
"types": "./dist/definitions/advancement-policies/index.d.ts"
|
|
30
30
|
},
|
|
31
|
+
"./definitions/validation": {
|
|
32
|
+
"import": "./dist/definitions/validation/index.js",
|
|
33
|
+
"types": "./dist/definitions/validation/index.d.ts"
|
|
34
|
+
},
|
|
31
35
|
"./defaults": {
|
|
32
36
|
"import": "./dist/defaults/index.js",
|
|
33
37
|
"types": "./dist/defaults/index.d.ts"
|
|
@@ -44,6 +48,10 @@
|
|
|
44
48
|
"import": "./dist/opencode-plugin.js",
|
|
45
49
|
"types": "./dist/opencode-plugin.d.ts"
|
|
46
50
|
},
|
|
51
|
+
"./health-checks": {
|
|
52
|
+
"import": "./dist/health-checks.js",
|
|
53
|
+
"types": "./dist/health-checks.d.ts"
|
|
54
|
+
},
|
|
47
55
|
"./jsonc": {
|
|
48
56
|
"import": "./dist/jsonc.js",
|
|
49
57
|
"types": "./dist/jsonc.d.ts"
|