Commit Graph

1195 Commits

Author SHA1 Message Date
Dave
68a19c393e Spike: PTY-based Claude Code integration with multi-agent concurrency
Proves that spawning `claude -p` in a pseudo-terminal from Rust gets Max
subscription billing (apiKeySource: "none", rateLimitType: "five_hour")
instead of per-token API charges. Concurrent agents run in parallel PTY
sessions with session resumption via --resume for multi-turn conversations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:25:22 +00:00
Dave
644644d5b3 Update story 28 to read TODOs from story file instead of tests/todo/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:08:20 +00:00
Dave
8973d22afc Renumber upcoming stories and add .ignore updates
Drop story 28, renumber 30-33 to 28-31, add story 31 (View Upcoming
Stories), and extend .ignore for .claude/ and .story_kit/ directories.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 15:07:06 +00:00
Dave
9864e0a9e6 Finished a few more stories 2026-02-19 14:53:44 +00:00
Dave
959755cd6e Fix post-merge: pass None for coverage arg in to_review_story tests
Story 27 added a coverage parameter to to_review_story(). Story 29's
tests called the old 2-arg signature. Pass None to fix compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:47:19 +00:00
Dave
fd152cb5b7 Merge story-29: Backfill tests for maximum coverage
Adds 57 Rust tests and 60 frontend tests across 4 batches:
- Batch 1: store, search, workflow
- Batch 2: fs, shell, http/workflow
- Batch 3: usePathCompletion, api/client, api/workflow
- Batch 4: App, GatePanel, ReviewPanel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:46:42 +00:00
Dave
8f684a6ca4 Story 27: Coverage tracking (full-stack)
Add end-to-end coverage tracking: backend collects vitest coverage,
records metrics with threshold/baseline tracking, and blocks acceptance
on regression. Frontend displays coverage in gate/review panels with
a "Collect Coverage" button. Includes 20 Rust tests, 17 Vitest tests,
and 14 Playwright E2E tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:45:57 +00:00
Dave
f56d9e04e0 WIP: Batch 4 — App, GatePanel, ReviewPanel frontend tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:05:57 +00:00
Dave
b6e55a513f WIP: Batch 3 — backfill frontend tests
- usePathCompletion: 16 tests (isFuzzyMatch, getCurrentPartial, hook behavior)
- api/client.ts: 9 tests (fetch mocks for all major endpoints, error handling)
- api/workflow.ts: 6 tests (record, acceptance, review queue, ensure)

Frontend tests: 13 → 44

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:55:59 +00:00
Dave
de6334720a WIP: Batch 2 — backfill tests for fs, shell, and http/workflow
- io/fs.rs: 20 tests (path resolution, project open/close/get, known projects,
  model prefs, file read/write, list dir, validate path, scaffold)
- io/shell.rs: 4 new tests (allowlist, command execution, stdout capture, exit codes)
- http/workflow.rs: 8 tests (parse_test_status, to_test_case, to_review_story)

Coverage: 28.6% → 48.1%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:52:19 +00:00
Dave
76e7c68b66 WIP: Batch 1 — backfill tests for store, search, and workflow
- store.rs: 8 tests (roundtrip, persistence, corrupt/empty file handling)
- io/search.rs: 5 tests (matching, nested dirs, gitignore, empty results)
- workflow.rs: 7 new tests (acceptance logic, summarize, can_start, record, refresh)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 13:49:33 +00:00
Dave
8f0bc971bf Ensuring we keep the current storykit stories folder 2026-02-19 12:59:02 +00:00
Dave
b333814fcc Added fronted test instructions 2026-02-19 12:58:40 +00:00
Dave
e47c8814e6 Removing unneeded tsconfig 2026-02-19 12:58:29 +00:00
Dave
013b28d77f Story 26: Establish TDD workflow and quality gates
Add workflow engine with acceptance gates, test recording, and review
queue. Frontend displays gate status (blocked/ready), test summaries,
failing badges, and warnings. Proceed action is disabled when gates
are not met. Includes 13 unit tests (Vitest) and 9 E2E tests
(Playwright) covering all five acceptance criteria.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 12:54:04 +00:00
Dave
3a98669c4c Ignore Playwright test results 2026-02-17 17:11:39 +00:00
Dave
d0a1da2176 Update Story Kit workflow docs and move story 26 2026-02-17 14:12:45 +00:00
Dave
5854ff5593 Consolidate upcoming TDD stories 2026-02-17 13:42:59 +00:00
Dave
37ef7abb2f Deleted orphan file 2026-02-17 13:39:46 +00:00
Dave
3302b62839 Rename workflow to story-driven test workflow 2026-02-17 13:38:31 +00:00
Dave
3079ea194f Add story for UI test TODO visibility 2026-02-17 13:35:27 +00:00
Dave
4c887d93b5 Refocus workflow on TDD and reorganize stories 2026-02-17 13:34:32 +00:00
Dave
1f4f10930f Archived story 25 2026-02-16 20:34:21 +00:00
Dave
f1e5ac72e0 Project creation is workign 2026-02-16 20:34:03 +00:00
Dave
3be9088794 Split into components 2026-02-16 19:59:45 +00:00
Dave
1adbadb6eb ibid 2026-02-16 19:53:43 +00:00
Dave
e6638a6517 Clean up previous project display 2026-02-16 19:53:31 +00:00
Dave
8ed40dd444 Fixed up project picker a bit 2026-02-16 19:48:39 +00:00
Dave
45bce740b6 Text-completion picker to select a project 2026-02-16 19:44:29 +00:00
Dave
ffab287d16 Put in a recent project picker 2026-02-16 18:57:39 +00:00
Dave
539cbba409 Ignoring the store.json 2026-02-16 17:18:03 +00:00
Dave
2bb987d629 Happier startup message 2026-02-16 17:10:23 +00:00
Dave
37be55242d Auto-build the fronted into the release binary on cargo build --release 2026-02-16 17:05:09 +00:00
Dave
dae772e619 Added some API doc comments 2026-02-16 16:55:59 +00:00
Dave
feb05dc8d0 Refactored and documented the HTTP API 2026-02-16 16:50:50 +00:00
Dave
f76376b203 More smoothing, as they say 2026-02-16 16:35:25 +00:00
Dave
5923165fcf Refactoring the structure a bit 2026-02-16 16:24:21 +00:00
Dave
a2188e2c7f Smoothing out some tauri conversion leftovers 2026-02-16 16:02:30 +00:00
Dave
b1706aaa3b Caonverting to workspace 2026-02-16 15:54:16 +00:00
Dave
caf293a8c4 Renamed .living_spec in a few more places 2026-02-16 15:45:44 +00:00
Dave
3865883998 Renamed living spec to Story Kit 2026-02-16 15:44:20 +00:00
Dave
0876c53e17 moved from tauri to a server with embedded UI 2026-02-13 12:31:36 +00:00
Dave
d4203cfaab Updating README 2026-02-06 16:28:50 +00:00
Dave
0465609295 Upating README for living spec 2026-02-06 16:28:40 +00:00
Dave
f6b86ea5a6 Testing more paths in search 2026-01-27 16:07:00 +00:00
Dave
1f11eaedab ibid 2026-01-27 15:28:09 +00:00
Dave
c24f44bf51 wip tests for chat.rs 2026-01-27 15:01:47 +00:00
Dave
97b0ce1b58 Wrote some tests. 2026-01-27 14:45:28 +00:00
Dave
8b14aa1f6f Fixing warnings and moving LLM providers into a module 2026-01-27 13:30:46 +00:00
Dave
1f1f5f6dac Updated dependencies, fixed some clippy warnings 2026-01-26 18:15:29 +00:00