norn-cli 2.6.1 → 2.7.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 +22 -0
- package/README.md +33 -2
- package/dist/cli.js +647 -134798
- package/package.json +70 -10
- package/AGENTS.md +0 -95
- package/demos/tests-showcase/scripts/fake-sql-adapter.js +0 -70
- package/scripts/__pycache__/reddit_signal_miner.cpython-312.pyc +0 -0
- package/scripts/generate-coding-bed.mjs +0 -243
- package/scripts/reddit_signal_miner.py +0 -490
- package/scripts/validate-skills.mjs +0 -50
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "Norn" extension will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.7.0] - 2026-06-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **Kubernetes runbooks (VS Code + CLI)** — added the `.nornk8s` file type with syntax highlighting, a Kubernetes-inspired file icon, standalone commands, reusable `sequence` helpers, automatic `runbook sequence` CLI entry points, context selection, `.nornenv` variables, label-selector pod capture, and confirmed deployment restarts.
|
|
9
|
+
- **Live Kubernetes views** — standalone `get pods`, `describe pod`, and `logs` commands now open styled VS Code views with unhealthy-first pod sorting, pod details and events, live pod watches, live log following, level filters, folded stack traces, pause/resume, and snapshot refresh while paused.
|
|
10
|
+
- **Norn Terminal** — added an editor-area terminal that upgrades supported pod, log, event, restart, and rollout commands into structured blooms and live tiles while preserving normal shell fallback. Compact terminal tabs retain independent transcripts, working directories, environments, Kubernetes scopes, running tasks, and live views, with rename and close controls.
|
|
11
|
+
- **Kubernetes IntelliSense** — added cached namespace, pod, and deployment suggestions scoped by context and file namespace, `get pods` and `logs` flag suggestions, common `--tail` values, chained suggestions, and complete sequence-block insertion.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- **CLI regression reliability** — replaced external httpbin.org and Docker MCP dependencies with deterministic local HTTP and MCP fixtures.
|
|
15
|
+
- **Environment selection UI** — removed the global Norn environment selector from the VS Code status bar; environments remain selectable through CodeLens, `.nornenv` actions, and `Norn: Select Environment`.
|
|
16
|
+
- **Product metadata and docs** — updated Norn descriptions and documentation to cover API tests, database checks, and Kubernetes runbooks.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **Kubernetes completion replacement** — multiword completions replace the full typed command prefix instead of producing duplicated text such as `get get pods`.
|
|
20
|
+
- **Kubernetes live scope** — selector-filtered pod dashboards preserve selectors across watch updates and panel navigation.
|
|
21
|
+
- **Kubernetes CLI output safety** — complete kubectl output is redacted before printing, and empty `.nornk8s --json` runs now emit valid JSON.
|
|
22
|
+
- **Release packaging** — excluded caches, environment files, internal Docs, agent instructions, and development scripts from published artifacts.
|
|
23
|
+
|
|
24
|
+
### Testing
|
|
25
|
+
- **Kubernetes runtime coverage** — added Extension Host coverage for parsing, execution, safety, live views, caches, permission fallbacks, CLI behavior, and IntelliSense.
|
|
26
|
+
|
|
5
27
|
## [2.6.1] - 2026-05-30
|
|
6
28
|
|
|
7
29
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Norn
|
|
2
2
|
|
|
3
|
-
Norn
|
|
3
|
+
Norn keeps API tests, database checks, and Kubernetes runbooks in version-controlled files your whole team can keep. Author and inspect them in VS Code, then run the same files from the CLI and CI.
|
|
4
4
|
|
|
5
5
|
### Simple API Requests
|
|
6
6
|
|
|
@@ -26,6 +26,8 @@ That means you can:
|
|
|
26
26
|
- `.norn` files for requests, sequences, and tests
|
|
27
27
|
- `.nornenv` files for environments and secrets
|
|
28
28
|
- `.nornapi` files for reusable endpoint definitions
|
|
29
|
+
- `.nornsql` files for database queries and commands
|
|
30
|
+
- `.nornk8s` files for Kubernetes commands and runbooks
|
|
29
31
|
- syntax highlighting, IntelliSense, and diagnostics
|
|
30
32
|
- response inspection, JSON diffing, and click-to-generate assertions
|
|
31
33
|
- tagged and parameterized test execution in VS Code and the CLI
|
|
@@ -62,6 +64,7 @@ Use Norn to:
|
|
|
62
64
|
- run a whole sequence from the editor
|
|
63
65
|
- debug a sequence with breakpoints
|
|
64
66
|
- run test sequences from the Testing view
|
|
67
|
+
- inspect live Kubernetes pods and logs from `.nornk8s` files
|
|
65
68
|
|
|
66
69
|
## In The CLI
|
|
67
70
|
|
|
@@ -70,11 +73,38 @@ The CLI uses the same execution model as the extension, so local runs and CI run
|
|
|
70
73
|
```bash
|
|
71
74
|
npm install -g norn-cli
|
|
72
75
|
norn ./tests/smoke.norn -e dev
|
|
76
|
+
norn ./runbooks/triage.nornk8s --context prelive
|
|
73
77
|
```
|
|
74
78
|
|
|
79
|
+
## Kubernetes Runbooks
|
|
80
|
+
|
|
81
|
+
`.nornk8s` files turn common kubectl triage commands into reusable runbooks. Standalone
|
|
82
|
+
`get pods`, `describe pod`, and `logs` commands open styled VS Code views with live pod
|
|
83
|
+
and log updates. Helper sequences run explicitly, while `runbook sequence` blocks are
|
|
84
|
+
automatic CLI entry points.
|
|
85
|
+
|
|
86
|
+
```nornk8s
|
|
87
|
+
namespace {{ordersNs}}
|
|
88
|
+
|
|
89
|
+
get pods
|
|
90
|
+
logs orders-api-7d9f --tail 500
|
|
91
|
+
|
|
92
|
+
sequence RestartOrders
|
|
93
|
+
restart deployment/orders-api
|
|
94
|
+
end sequence
|
|
95
|
+
|
|
96
|
+
runbook sequence ClusterCheck
|
|
97
|
+
get pods
|
|
98
|
+
get pods -n kube-system
|
|
99
|
+
end sequence
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Select a Kubernetes context from the VS Code context lens or pass `--context` to the
|
|
103
|
+
CLI. Restart commands require a VS Code confirmation or CLI `--yes`.
|
|
104
|
+
|
|
75
105
|
## `.nornenv` Templates And Extends
|
|
76
106
|
|
|
77
|
-
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
|
|
107
|
+
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`.
|
|
78
108
|
|
|
79
109
|
```nornenv
|
|
80
110
|
var timeout = 30000
|
|
@@ -156,3 +186,4 @@ Behavior:
|
|
|
156
186
|
- QA and automation work that needs readable test flows
|
|
157
187
|
- regression and smoke suites that should run the same way locally and in CI
|
|
158
188
|
- projects that want API requests and API tests to live next to the code
|
|
189
|
+
- teams that want repeatable Kubernetes triage runbooks beside their services
|