norn-cli 4.3.2 → 4.5.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 +7 -7
- package/dist/cli.js +1272 -1094
- package/dist/knowledgeIndexWorker.js +78 -13
- package/package.json +13 -15
- package/schemas/norn.config.schema.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ That means you can:
|
|
|
27
27
|
- `.nornenv` files for environments and secrets
|
|
28
28
|
- `.nornapi` files for reusable endpoint definitions
|
|
29
29
|
- `.nornsql` files for database queries and commands
|
|
30
|
-
- `.nornagent` files for contract-checked AI agents and model-directed delegation
|
|
30
|
+
- `.nornai` or `.nornagent` files for contract-checked AI agents and model-directed delegation
|
|
31
31
|
- syntax highlighting, IntelliSense, and diagnostics
|
|
32
32
|
- response inspection, JSON diffing, and click-to-generate assertions
|
|
33
33
|
- tagged and parameterized test execution in VS Code and the CLI
|
|
@@ -140,7 +140,7 @@ Norn can call MCP tools from sequences without leaving the `.norn` runtime. MCP
|
|
|
140
140
|
|
|
141
141
|
A server can be declared in two places, and an alias resolves through them in this order:
|
|
142
142
|
|
|
143
|
-
1. an `mcp <Alias> ... end mcp` block in a `.
|
|
143
|
+
1. an `mcp <Alias> ... end mcp` block in a `.nornai` sidecar the file imports — see
|
|
144
144
|
[Contract-Checked Agent Graphs](#contract-checked-agent-graphs), and prefer this when agents
|
|
145
145
|
use the server too, because the file then says what it connects to;
|
|
146
146
|
2. `mcp.servers` in the nearest `norn.config.json`.
|
|
@@ -194,7 +194,7 @@ Behavior:
|
|
|
194
194
|
|
|
195
195
|
## Contract-Checked Agent Graphs
|
|
196
196
|
|
|
197
|
-
Define agents in an imported `.nornagent` sidecar. An agent can grant another
|
|
197
|
+
Define agents in an imported `.nornai` or `.nornagent` sidecar. Both extensions use the same syntax and behavior. An agent can grant another
|
|
198
198
|
agent through `agents`; the callee then appears to the calling model as an
|
|
199
199
|
ordinary tool. Its `accepts` schema constrains and validates the generated tool
|
|
200
200
|
input, and its `returns` schema validates the result before it travels back up
|
|
@@ -277,7 +277,7 @@ Deterministic `run mcp` steps resolve the same aliases, so a server can be prove
|
|
|
277
277
|
with no model and no cost:
|
|
278
278
|
|
|
279
279
|
```norn
|
|
280
|
-
import "./agents.
|
|
280
|
+
import "./agents.nornai"
|
|
281
281
|
|
|
282
282
|
test sequence ServersUp
|
|
283
283
|
var tools = run mcp list House
|
|
@@ -290,7 +290,7 @@ shape end to end: a browser agent, a backend agent narrowed on the same custom s
|
|
|
290
290
|
reporter, and a `judge` over the expected test cases.
|
|
291
291
|
|
|
292
292
|
A prompt that outgrows its sidecar can live in its own file instead. `describe`
|
|
293
|
-
and `system` both accept `file <path>`, resolved relative to the
|
|
293
|
+
and `system` both accept `file <path>`, resolved relative to the agent sidecar
|
|
294
294
|
file just like an import:
|
|
295
295
|
|
|
296
296
|
```nornagent
|
|
@@ -309,7 +309,7 @@ Run the graph from an ordinary sequence; the same nested contract and retry
|
|
|
309
309
|
trace appears in VS Code and the CLI:
|
|
310
310
|
|
|
311
311
|
```norn
|
|
312
|
-
import "./agents.
|
|
312
|
+
import "./agents.nornai"
|
|
313
313
|
|
|
314
314
|
test sequence RouteTicket
|
|
315
315
|
var ticket = run readJson "./ticket.json"
|
|
@@ -370,7 +370,7 @@ fixture. `--from` accepts a unique agent name or canonical path such as
|
|
|
370
370
|
onward runs live against the current graph.
|
|
371
371
|
|
|
372
372
|
**Norn: Show Agent Graph**, or the CodeLens on any agent block, draws the graph
|
|
373
|
-
for
|
|
373
|
+
for an agent sidecar: who calls whom, the `accepts`/`returns` contract on each
|
|
374
374
|
boundary, and how each one turned out. Hover an agent or a boundary for the full
|
|
375
375
|
detail — models, timings, usage, prompts, payloads, contract issues.
|
|
376
376
|
|