feat(ultraplan-local): tally CLI baseline fixture for examples/02-real-cli (Spor B B2) [skip-docs]
Adds the runnable counterpart to examples/01-add-verbose-flag (which is artifacts-only). The fixture is the measurement target for Spor B's end-to-end pipeline run (B3) and Spor C's cache-prefix experiment. Baseline: - tally.mjs (80 lines, hand-rolled argv parser, zero deps) - 3 flags: --json, -i/--ignore-case, --lines + --help - Exit codes: 0 success, 1 file error, 2 invalid argv - 10 node:test cases, all green (~2.2s wall-clock) - Deterministic fixtures: sample.txt (foo×7, Foo×1, regex fo+×9) + poem.txt (--lines vs total distinction) - REGENERATED.md skeleton (B3 fills the pipeline walk-through) Brief preconditions verified: - grep -c 'foo' sample.txt = 4 (>= 1) - regex /fo+/g count = 9 (> grep count) - Brief assumptions for B3 SC #1, #3 hold This is the first runnable example in plugins/ultraplan-local/examples/. Next: B3 runs /ultraresearch-local + /ultraplan-local + /ultraexecute-local against the brief to add --regex/-r, then verifies all 10 Success Criteria.
This commit is contained in:
parent
baff890789
commit
c8146c143d
5 changed files with 272 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
foo on this line
|
||||
nothing here
|
||||
foo and foo here
|
||||
silence
|
||||
foo
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
Foo bar baz
|
||||
The quick brown fox jumps over the foo
|
||||
foo foo bar foo
|
||||
food for thought.
|
||||
fooo, fooooo, very loud
|
||||
This line has no match here.
|
||||
A line without the magic word
|
||||
And another one without it
|
||||
The end. Final period.
|
||||
Loading…
Add table
Add a link
Reference in a new issue