norn-cli 4.0.1 → 4.2.0
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 +23 -0
- package/dist/cli.js +1254 -1010
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -74,6 +74,29 @@ npm install -g norn-cli
|
|
|
74
74
|
norn ./tests/smoke.norn -e dev
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
For a hosted agent workflow, select one sequence and supply its runtime inputs explicitly:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
norn run ./workflows/ticket.norn \
|
|
81
|
+
--sequence HandleTicket \
|
|
82
|
+
--param NORN-482 \
|
|
83
|
+
--param-json context=./inputs/ticket-context.json \
|
|
84
|
+
--recording ./artifacts/ticket-run.json \
|
|
85
|
+
--json
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
`--param [name=]value` is repeatable and preserves the value as a string.
|
|
89
|
+
`--param-json [name=]file.json` is also repeatable; it parses the file and assigns its typed JSON
|
|
90
|
+
value directly to the declared sequence parameter. Unnamed values follow declaration order and
|
|
91
|
+
skip parameters supplied by name, so named and positional inputs can be mixed. CLI values override
|
|
92
|
+
authored defaults. Both forms require one file plus `--sequence`, reject undeclared or missing
|
|
93
|
+
required parameters before execution, and cannot be combined with `@data`/`@theory` cases.
|
|
94
|
+
`--recording` writes the normal secret-masked agent recording to an exact artifact path instead of
|
|
95
|
+
the rolling local cache.
|
|
96
|
+
|
|
97
|
+
Ordinary sequence runs handle `SIGINT` and `SIGTERM` as graceful cancellation requests. A repeated
|
|
98
|
+
signal forces exit; cancelled processes use status 130 (`SIGINT`) or 143 (`SIGTERM`).
|
|
99
|
+
|
|
77
100
|
## `.nornenv` Templates And Extends
|
|
78
101
|
|
|
79
102
|
Use `[template:name]` sections for reusable environment building blocks, then compose selectable `[env:name]` sections with `extends`. Only templates can be extended. Templates are not selectable from the VS Code environment picker or CLI; only `[env:...]` names can be used with `-e`.
|