norn-cli 1.5.4 → 1.6.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 +38 -0
- package/README.md +35 -0
- package/dist/cli.js +1293 -1123
- package/package.json +72 -2
- package/.norn-cache/secret-keys.json +0 -9
- package/.norn-cache/swagger-body-intellisense.json +0 -409
- package/.norn-cache/validation-results.json +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,44 @@ All notable changes to the "Norn" extension will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.6.1] - 2026-03-04
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **Parameterized Debug Launch (VS Code)**:
|
|
11
|
+
- Fixed `Debug Sequence` launch from editor/CodeLens so `@data` / `@theory` case arguments are passed into the debug session.
|
|
12
|
+
- Added case selection prompt when multiple parameterized cases exist, so a single concrete case is debugged without unresolved placeholders.
|
|
13
|
+
|
|
14
|
+
- **CLI `--sequence` Parameterized Execution**:
|
|
15
|
+
- Fixed `node ./dist/cli.js <file> -s <sequence>` to execute `@data` / `@theory` cases (instead of ignoring case args and failing on unresolved variables).
|
|
16
|
+
- Aligned `--sequence` behavior with full test execution mode for parameterized sequences.
|
|
17
|
+
|
|
18
|
+
## [1.6.0] - 2026-03-04
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **Native VS Code Debugger for `.norn` Sequences (v1)**:
|
|
22
|
+
- Added Debug Adapter Protocol integration for debug type `norn`.
|
|
23
|
+
- Added line breakpoints in `.norn` files, including imported sequence sources.
|
|
24
|
+
- Added stepping controls: continue, pause, step over, step into sequence calls, step out, and stop.
|
|
25
|
+
- Added debugger variable scopes for runtime variables and response history (`$1`, `$2`, ...).
|
|
26
|
+
- Added launch support via `launch.json` with `file`, `sequence`, optional `env`, and `stopOnEntry`.
|
|
27
|
+
|
|
28
|
+
- **Debugger Entry Points**:
|
|
29
|
+
- Added `Debug Sequence` command (`norn.debugSequence`).
|
|
30
|
+
- Added `▷ Debug Sequence` CodeLens on runnable sequences.
|
|
31
|
+
- Added Testing sidebar `Debug Tests` profile (single-target debug in v1).
|
|
32
|
+
|
|
33
|
+
### Improved
|
|
34
|
+
- **Debugger Runtime Behavior**:
|
|
35
|
+
- Added breakpoint line verification/auto-adjust to nearest executable step in the same sequence.
|
|
36
|
+
- Added failure-stop behavior for request/assertion failures before session termination.
|
|
37
|
+
- Added source/line mapping across root and imported sequence files for call stack and stepping.
|
|
38
|
+
- Added smart launch default for `stopOnEntry` in command/test-driven debug starts (disabled when breakpoints already exist).
|
|
39
|
+
|
|
40
|
+
- **Documentation and Skills**:
|
|
41
|
+
- Added README debugger usage and `launch.json` example.
|
|
42
|
+
- Added debugger integration skill docs under `.github/skills/norn-debugger-integration`.
|
|
43
|
+
- Documented debugger as a VS Code-only v1 exception to CLI feature parity policy.
|
|
44
|
+
|
|
7
45
|
## [1.5.4] - 2026-03-02
|
|
8
46
|
|
|
9
47
|
### Improved
|
package/README.md
CHANGED
|
@@ -870,6 +870,41 @@ Run tests directly from VS Code's Testing sidebar:
|
|
|
870
870
|
- **Persistent Output**: Select a test to see its full output anytime
|
|
871
871
|
- **Failure Details**: Expected vs actual diffs, request/response info
|
|
872
872
|
|
|
873
|
+
### Debugging `.norn` Sequences (VS Code)
|
|
874
|
+
|
|
875
|
+
Norn supports native VS Code debugging for `.norn` sequences:
|
|
876
|
+
|
|
877
|
+
- Breakpoints in root and imported `.norn` files
|
|
878
|
+
- Continue, pause, step over, step into sequence calls, and step out
|
|
879
|
+
- Default `stopOnEntry: true`
|
|
880
|
+
- Variables pane scopes:
|
|
881
|
+
- Runtime Variables
|
|
882
|
+
- Responses (`$1`, `$2`, ...)
|
|
883
|
+
- Launch entry points:
|
|
884
|
+
- `🐞 Debug Sequence` CodeLens
|
|
885
|
+
- Testing sidebar `Debug Tests` profile (single target per debug session)
|
|
886
|
+
|
|
887
|
+
You can also define explicit launch configs in `.vscode/launch.json`:
|
|
888
|
+
|
|
889
|
+
```json
|
|
890
|
+
{
|
|
891
|
+
"version": "0.2.0",
|
|
892
|
+
"configurations": [
|
|
893
|
+
{
|
|
894
|
+
"type": "norn",
|
|
895
|
+
"request": "launch",
|
|
896
|
+
"name": "Debug LoginFlow",
|
|
897
|
+
"file": "${workspaceFolder}/tests/api-tests.norn",
|
|
898
|
+
"sequence": "LoginFlow",
|
|
899
|
+
"env": "prelive",
|
|
900
|
+
"stopOnEntry": true
|
|
901
|
+
}
|
|
902
|
+
]
|
|
903
|
+
}
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
Note: debugger support is currently VS Code-only by design. CLI behavior remains unchanged.
|
|
907
|
+
|
|
873
908
|
### Parameterized Tests
|
|
874
909
|
|
|
875
910
|
Use `@data` for data-driven testing - each data row becomes a separate test:
|