norn-cli 1.13.1 → 2.0.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/CHANGELOG.md CHANGED
@@ -4,6 +4,40 @@ All notable changes to the "Norn" extension will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [2.0.1] - 2026-04-30
8
+
9
+ ### Changed
10
+ - **Norn Icon Refresh**:
11
+ - Updated the extension package icon to match the Norn API/network mark used on the website and Activity Bar.
12
+ - Replaced the stylized `.norn` file icon with a teal-blue test tube icon.
13
+ - Recolored `.nornapi`, `.nornsql`, and `.nornenv` file icons to use the Norn teal-blue brand palette.
14
+
15
+ ## [2.0.0] - 2026-04-29
16
+
17
+ ### Added
18
+ - **SQL Environment Templates (Extension + CLI)**:
19
+ - Added `.nornenv` template interpolation for SQL connection/profile values using `{{name}}` and `{{$env.name}}` references.
20
+ - Resolved SQL connection templates from the active merged `.nornenv`, including imported files and selected `[env:...]` overrides.
21
+ - Added CLI redaction support for resolved secret-derived template values.
22
+ - Added regression coverage for imported `.nornenv` template variables and live SQL Server execution.
23
+
24
+ ### Improved
25
+ - **`.nornenv` Authoring (VS Code)**:
26
+ - Added template-variable IntelliSense inside `.nornenv` values, including single-brace completion to `{{name}}`.
27
+ - Added syntax highlighting for `{{...}}` template references inside environment values and connection strings.
28
+ - Added diagnostics for unsupported, missing, and invalid-scope `.nornenv` template references.
29
+
30
+ ### Changed
31
+ - **Breaking Config Consolidation**:
32
+ - Replaced separate SQL and MCP project config files with a single `norn.config.json` file.
33
+ - Moved SQL connection aliases and custom SQL adapters under `sql.connections` and `sql.adapters`.
34
+ - Moved MCP server aliases under `mcp.servers` and updated schema-backed IntelliSense for the unified config file.
35
+
36
+ ### Fixed
37
+ - **SQL Connection Safety**:
38
+ - Rejected invalid environment-to-environment SQL connection template references before adapter invocation.
39
+ - Masked the SQL environment-template regression fixture output so sample secrets are not printed in CLI logs.
40
+
7
41
  ## [1.13.1] - 2026-04-28
8
42
 
9
43
  ### Improved
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.mcp.json` in the root of your project:
79
+ Create a `norn.config.json` in the root of your project:
80
80
 
81
81
  ```json
82
82
  {
83
83
  "version": 1,
84
- "servers": {
85
- "localTools": {
86
- "transport": "stdio",
87
- "command": ["node", "./tools/mcp-server.js"]
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
- "timeoutMs": 5000
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
+ }