@boardwalk-labs/engine 0.1.2 → 0.1.4
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/engine.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/run/supervisor.d.ts +1 -1
- package/dist/run/supervisor.js +3 -3
- package/package.json +2 -2
package/dist/engine.js
CHANGED
|
@@ -83,7 +83,7 @@ export class Engine {
|
|
|
83
83
|
this.assertOpen();
|
|
84
84
|
const manifest = extractManifest(args.program, { fileName: "index.mjs" });
|
|
85
85
|
const workflow = this.store.upsertWorkflow({
|
|
86
|
-
name: manifest.
|
|
86
|
+
name: manifest.slug,
|
|
87
87
|
manifest,
|
|
88
88
|
program: args.program,
|
|
89
89
|
...(args.config !== undefined ? { config: args.config } : {}),
|
package/dist/errors.js
CHANGED
|
@@ -6,7 +6,7 @@ export const ENGINE_ERROR_CODES = [
|
|
|
6
6
|
"NOT_FOUND", // unknown workflow/run
|
|
7
7
|
"CONFLICT", // duplicate name, concurrent state conflict
|
|
8
8
|
"SECRET_MISSING", // declared secret has no value in this environment
|
|
9
|
-
"SECRET_UNDECLARED", // program read a secret not in
|
|
9
|
+
"SECRET_UNDECLARED", // program read a secret not in permissions.secrets
|
|
10
10
|
"MODEL_UNRESOLVED", // agent() with no model and no configured default
|
|
11
11
|
"PROVIDER_ERROR", // upstream inference provider failure
|
|
12
12
|
"BUDGET_EXCEEDED", // run terminated by budget.*
|
package/dist/run/supervisor.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare class RunSupervisor {
|
|
|
84
84
|
private resolveSecret;
|
|
85
85
|
/**
|
|
86
86
|
* The child's environment: the parent env plus manifest.env with whole-value
|
|
87
|
-
* `${{ secrets.NAME }}` interpolation resolved (fail-closed against
|
|
87
|
+
* `${{ secrets.NAME }}` interpolation resolved (fail-closed against permissions.secrets).
|
|
88
88
|
*/
|
|
89
89
|
private childEnv;
|
|
90
90
|
private setStatus;
|
package/dist/run/supervisor.js
CHANGED
|
@@ -571,9 +571,9 @@ export class RunSupervisor {
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
resolveSecret(manifest, name) {
|
|
574
|
-
const declared = (manifest.secrets ?? []).some((s) => s.name === name);
|
|
574
|
+
const declared = (manifest.permissions?.secrets ?? []).some((s) => s.name === name);
|
|
575
575
|
if (!declared) {
|
|
576
|
-
throw new EngineError("SECRET_UNDECLARED", `Secret "${name}" is not declared in
|
|
576
|
+
throw new EngineError("SECRET_UNDECLARED", `Secret "${name}" is not declared in permissions.secrets.`, `Add { name: "${name}" } to permissions.secrets — secret access is fail-closed everywhere.`);
|
|
577
577
|
}
|
|
578
578
|
const value = this.env.get(name) ?? process.env[name];
|
|
579
579
|
if (value === undefined || value.length === 0) {
|
|
@@ -583,7 +583,7 @@ export class RunSupervisor {
|
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
585
|
* The child's environment: the parent env plus manifest.env with whole-value
|
|
586
|
-
* `${{ secrets.NAME }}` interpolation resolved (fail-closed against
|
|
586
|
+
* `${{ secrets.NAME }}` interpolation resolved (fail-closed against permissions.secrets).
|
|
587
587
|
*/
|
|
588
588
|
childEnv(manifest) {
|
|
589
589
|
const out = { ...process.env };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boardwalk-labs/engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "The Boardwalk single-node engine: cron scheduling, run lifecycle, SQLite state, and the local run log. Powers `boardwalk dev` and the self-hosted server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"coverage": "vitest run --coverage"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@boardwalk-labs/workflow": "^0.1.
|
|
43
|
+
"@boardwalk-labs/workflow": "^0.1.5",
|
|
44
44
|
"zod": "^4.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|