norn-cli 1.13.0 → 2.0.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/CHANGELOG.md +42 -0
- package/README.md +14 -12
- package/demos/tests-showcase/norn.config.json +16 -0
- package/dist/cli.js +1954 -1956
- package/package.json +7 -4
- package/schemas/norn.config.schema.json +316 -0
- package/demos/tests-showcase/norn.adapters.json +0 -8
- package/demos/tests-showcase/norn.sql.json +0 -9
- package/schemas/norn.mcp.schema.json +0 -125
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,48 @@ All notable changes to the "Norn" extension will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [2.0.0] - 2026-04-29
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **SQL Environment Templates (Extension + CLI)**:
|
|
11
|
+
- Added `.nornenv` template interpolation for SQL connection/profile values using `{{name}}` and `{{$env.name}}` references.
|
|
12
|
+
- Resolved SQL connection templates from the active merged `.nornenv`, including imported files and selected `[env:...]` overrides.
|
|
13
|
+
- Added CLI redaction support for resolved secret-derived template values.
|
|
14
|
+
- Added regression coverage for imported `.nornenv` template variables and live SQL Server execution.
|
|
15
|
+
|
|
16
|
+
### Improved
|
|
17
|
+
- **`.nornenv` Authoring (VS Code)**:
|
|
18
|
+
- Added template-variable IntelliSense inside `.nornenv` values, including single-brace completion to `{{name}}`.
|
|
19
|
+
- Added syntax highlighting for `{{...}}` template references inside environment values and connection strings.
|
|
20
|
+
- Added diagnostics for unsupported, missing, and invalid-scope `.nornenv` template references.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **Breaking Config Consolidation**:
|
|
24
|
+
- Replaced separate SQL and MCP project config files with a single `norn.config.json` file.
|
|
25
|
+
- Moved SQL connection aliases and custom SQL adapters under `sql.connections` and `sql.adapters`.
|
|
26
|
+
- Moved MCP server aliases under `mcp.servers` and updated schema-backed IntelliSense for the unified config file.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
- **SQL Connection Safety**:
|
|
30
|
+
- Rejected invalid environment-to-environment SQL connection template references before adapter invocation.
|
|
31
|
+
- Masked the SQL environment-template regression fixture output so sample secrets are not printed in CLI logs.
|
|
32
|
+
|
|
33
|
+
## [1.13.1] - 2026-04-28
|
|
34
|
+
|
|
35
|
+
### Improved
|
|
36
|
+
- **MCP Tool Discovery Display (VS Code)**:
|
|
37
|
+
- Replaced raw JSON rendering for `run mcp list` steps in the response panel with a readable tool directory showing names, descriptions, parameter metadata, required markers, and structured-output badges.
|
|
38
|
+
- Kept the underlying captured `tools` value unchanged for assertions, runtime variables, reports, and CLI parity.
|
|
39
|
+
|
|
40
|
+
- **Variable IntelliSense (VS Code)**:
|
|
41
|
+
- Added sequence-local variables and sequence parameters to `{{...}}` interpolation completions, including single-brace partial typing such as `{s`.
|
|
42
|
+
- Added completion fallback for `.nornenv` variable names when no active environment is selected.
|
|
43
|
+
- Fixed completion replacement ranges so selected interpolation suggestions apply on the current cursor line.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
- **Norn API IntelliSense (VS Code)**:
|
|
47
|
+
- Fixed `.nornapi` block detection so top-level `headers` suggestions appear after `end endpoints`, while header-name suggestions still work inside `headers ... end headers` blocks.
|
|
48
|
+
|
|
7
49
|
## [1.13.0] - 2026-04-26
|
|
8
50
|
|
|
9
51
|
### Added
|
package/README.md
CHANGED
|
@@ -76,23 +76,25 @@ norn ./tests/smoke.norn -e dev
|
|
|
76
76
|
|
|
77
77
|
Norn can call MCP tools from sequences without leaving the `.norn` runtime. MCP sessions are deterministic and shared across the full sequence run, so nested sequences reuse the same connection for the same resolved server alias.
|
|
78
78
|
|
|
79
|
-
Create a `norn.
|
|
79
|
+
Create a `norn.config.json` in the root of your project:
|
|
80
80
|
|
|
81
81
|
```json
|
|
82
82
|
{
|
|
83
83
|
"version": 1,
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"remoteTools": {
|
|
90
|
-
"transport": "http",
|
|
91
|
-
"url": "https://mcp.example.com/mcp",
|
|
92
|
-
"headers": {
|
|
93
|
-
"Authorization": "Bearer {{$env.mcpToken}}"
|
|
84
|
+
"mcp": {
|
|
85
|
+
"servers": {
|
|
86
|
+
"localTools": {
|
|
87
|
+
"transport": "stdio",
|
|
88
|
+
"command": ["node", "./tools/mcp-server.js"]
|
|
94
89
|
},
|
|
95
|
-
"
|
|
90
|
+
"remoteTools": {
|
|
91
|
+
"transport": "http",
|
|
92
|
+
"url": "https://mcp.example.com/mcp",
|
|
93
|
+
"headers": {
|
|
94
|
+
"Authorization": "Bearer {{$env.mcpToken}}"
|
|
95
|
+
},
|
|
96
|
+
"timeoutMs": 5000
|
|
97
|
+
}
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"sql": {
|
|
4
|
+
"connections": {
|
|
5
|
+
"buyerDemoDb": {
|
|
6
|
+
"adapter": "buyer-demo-sql-adapter",
|
|
7
|
+
"profile": "buyerDemoDb"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"adapters": {
|
|
11
|
+
"buyer-demo-sql-adapter": {
|
|
12
|
+
"command": ["node", "./scripts/fake-sql-adapter.js"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|