@automatalabs/workflows 0.32.0 → 0.32.1
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/README.md +5 -5
- package/dist/cli.js +5 -4
- package/dist/validate.js +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -494,11 +494,11 @@ The package ships a bin that validates a workflow script **without spending toke
|
|
|
494
494
|
npx @automatalabs/workflows validate my-workflow.js --args '{"target":"src/"}'
|
|
495
495
|
```
|
|
496
496
|
|
|
497
|
-
Three passes: a **static parse** (the `meta` literal, syntax,
|
|
498
|
-
**dry run** — the script executes in the real engine realm while every
|
|
499
|
-
by an in-process mock `AgentRunner` that fabricates schema-conforming
|
|
500
|
-
catches what a parse can't: thunk-vs-promise mistakes, reference errors,
|
|
501
|
-
calls. Finally, validation opens one no-prompt session on every distinct routed ACP harness,
|
|
497
|
+
Three passes: a **static parse** (the `meta` literal, syntax, and direct nondeterministic call
|
|
498
|
+
expressions), then a **dry run** — the script executes in the real engine realm while every
|
|
499
|
+
`agent()` call is served by an in-process mock `AgentRunner` that fabricates schema-conforming
|
|
500
|
+
results. The dry run catches what a parse can't: thunk-vs-promise mistakes, reference errors,
|
|
501
|
+
broken plumbing between calls. Finally, validation opens one no-prompt session on every distinct routed ACP harness,
|
|
502
502
|
surfaces the complete advertised config-option catalog, and checks every authored `configOptions`
|
|
503
503
|
bag against it. This probe uses zero tokens. A harness that cannot spawn, authenticate, or open a
|
|
504
504
|
session contributes one warning and `probed:false`; only that harness's option checks are skipped,
|
package/dist/cli.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
// agentprism-workflows validate <workflow-file> [options]
|
|
5
5
|
//
|
|
6
6
|
// Validates a workflow script without spending tokens: static parse (meta literal,
|
|
7
|
-
// syntax,
|
|
8
|
-
// that fabricates schema-conforming results, then one no-prompt option
|
|
9
|
-
// ACP harness. See
|
|
7
|
+
// syntax, direct nondeterministic call expressions), then a dry run over an in-process
|
|
8
|
+
// mock AgentRunner that fabricates schema-conforming results, then one no-prompt option
|
|
9
|
+
// probe per routed ACP harness. See
|
|
10
10
|
// ./validate.ts for the programmatic API (`validateWorkflowScript`).
|
|
11
11
|
import { existsSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
@@ -15,7 +15,8 @@ import { validateWorkflowScript, formatValidateReport } from "./validate.js";
|
|
|
15
15
|
const USAGE = `Usage: agentprism-workflows validate <workflow-file-or-name> [options]
|
|
16
16
|
|
|
17
17
|
Validates an AgentPrism workflow script without spending tokens:
|
|
18
|
-
1. static parse — the meta literal, syntax, and
|
|
18
|
+
1. static parse — the meta literal, syntax, and direct nondeterministic call
|
|
19
|
+
expressions
|
|
19
20
|
2. dry run — the script executes against a mock agent backend that fabricates
|
|
20
21
|
schema-conforming results; no tokens are spent, and a mock live confirm
|
|
21
22
|
resolves checkpoints to their declared defaults
|
package/dist/validate.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Token-free validation for workflow scripts: a static parse (meta literal, syntax,
|
|
2
|
-
//
|
|
3
|
-
// in the engine's deterministic realm, but every agent() call is served by
|
|
4
|
-
// mock AgentRunner that fabricates schema-conforming results. Afterward, each
|
|
5
|
-
// is opened once without a prompt to read its advertised config options.
|
|
6
|
-
// mock live confirm resolves checkpoints to their declared defaults,
|
|
7
|
-
// nowhere (journaling off + a throwaway persistence root for the run lease).
|
|
2
|
+
// direct nondeterministic call expressions) followed by an optional DRY RUN — the script
|
|
3
|
+
// executes for real in the engine's deterministic realm, but every agent() call is served by
|
|
4
|
+
// an in-process mock AgentRunner that fabricates schema-conforming results. Afterward, each
|
|
5
|
+
// routed ACP harness is opened once without a prompt to read its advertised config options.
|
|
6
|
+
// No tokens are spent, a mock live confirm resolves checkpoints to their declared defaults,
|
|
7
|
+
// and run state is journaled nowhere (journaling off + a throwaway persistence root for the run lease).
|
|
8
8
|
//
|
|
9
9
|
// This is the programmatic core behind `agentprism-workflows validate` (see ./cli.ts).
|
|
10
10
|
import { mkdtempSync, rmSync } from "node:fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automatalabs/workflows",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"typebox": "1.3.2",
|
|
34
34
|
"@automatalabs/shared-types": "0.20.0",
|
|
35
|
-
"@automatalabs/workflow-engine": "0.21.
|
|
35
|
+
"@automatalabs/workflow-engine": "0.21.1",
|
|
36
36
|
"@automatalabs/acp-agents": "0.26.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|