Commit 32e3da7
Repo standardisation and DB layer simplification (#12)
# TLDR;
Standardises repo infrastructure (Makefile, CI workflows, docs
structure, agent config) and simplifies the DB layer by removing
unnecessary Result wrapping from internal functions.
# Details
**What Was Added:**
- New Claude skills: `code-dedup`, `spec-check`, `upgrade-packages`
- Agent instruction files for Cursor, Windsurf, Copilot, Cline (all
point to CLAUDE.md)
- `opencode.json` config
- `post-release` job in release workflow: auto-bumps `package.json`
version and triggers website deploy
- `deploy-pages.yml` replaces both `deploy-website.yml` (now
`workflow_dispatch`) and `deploy.yml` (deleted)
- Lock recovery spec section in `docs/specs/database.md`
- Parsing strategy spec `[DISC-PARSE-STRATEGY]` in discovery docs
- Mise task type added to README supported types table
**What Was Changed:**
- `Makefile` rewritten with cross-platform OS detection, help target,
public/private target split, `fmt-check` target, and standardised
interface
- `CLAUDE.md` / `Agents.md` consolidated and restructured with logging
standards, spec ID rules, and updated command table
- `.gitignore` expanded with universal patterns and secret exclusions
- `.prettierrc` renamed to `.prettierrc.json` with explicit settings
- DB layer (`db.ts`, `lifecycle.ts`): `initSchema`, `registerCommand`,
`ensureCommandExists`, `closeDatabase`, `addTagToCommand`,
`removeTagFromCommand`, `getAllTagNames`, `getCommandIdsByTag`,
`reorderTagCommands`, `getAllRows`, `upsertSummary` — all changed from
`Result<T,E>` returns to direct returns (throw on unrecoverable errors
only). New `getDbOrThrow()` convenience function replaces repeated
`getDb()` + `Result` unwrapping
- `CommandTreeProvider`, `QuickTasksProvider`, `TagConfig`,
`extension.ts`, `TaskRunner`, `summaryPipeline` — simplified by removing
`Result` unwrapping boilerplate, using `getDbOrThrow()`
- CI workflow: `make format` replaces `make fmt-check` for the format
step
- Coverage thresholds updated to reflect current coverage levels
- Docs moved from `docs/*.md` to `docs/specs/*.md` and `docs/plans/`
- `release.yml` adds marketplace publish step and `post-release` job
- VS Code workspace settings add title bar colour customisation
- Lint fix: renamed `dbPath` parameter to `targetDbPath` in
`dbLockRecovery.unit.test.ts` to resolve `no-shadow` error
- README updated: 22 tool types, Mise added, text filter references
removed
**What Was Deleted:**
- `.github/workflows/deploy.yml` (superseded by `release.yml`
post-release job)
- `.prettierrc` (replaced by `.prettierrc.json`)
- `Result` wrapping removed from all internal DB functions that cannot
meaningfully recover from errors
- `/* istanbul ignore */` comments removed from DB functions that are
now directly tested
# How do the tests prove the change works
- 84 unit tests pass (including `dbLockRecovery.unit.test.ts` lock
removal tests, model selection, task runner param formatting, tree
hierarchy, discovery, PowerShell parser)
- 143 E2E tests pass covering: tree view click behaviour, folder
hierarchy, make target line navigation, tag commands, junction table
tagging, command runner (shell/npm/make/python/launch/vscode tasks),
discovery (22 providers), configuration, quick tasks drag-and-drop,
markdown preview, filtering, file utils, DB operations
- 48 website Playwright tests pass (SEO, navigation, blog, docs, dark
mode, responsive)
- Coverage thresholds met (84.19% lines, 76.73% branches, 81.91%
functions)
---------
Co-authored-by: Jon Canning <jon.canning@gmail.com>1 parent 23cafc2 commit 32e3da7
107 files changed
Lines changed: 2287 additions & 1570 deletions
File tree
- .claude
- skills
- ci-prep
- code-dedup
- spec-check
- submit-pr
- upgrade-packages
- .clinerules
- .github
- workflows
- .vscode
- docs
- plans
- specs
- src
- config
- db
- discovery
- models
- runners
- semantic
- tags
- test
- e2e
- fixtures/workspace
- .vscode
- scripts
- unit
- tree
- utils
- tools
- website
- src
- _data
- blog
- docs
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
15 | 32 | | |
16 | 33 | | |
17 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
18 | 39 | | |
19 | 40 | | |
20 | | - | |
| 41 | + | |
21 | 42 | | |
22 | | - | |
| 43 | + | |
23 | 44 | | |
24 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
25 | 49 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 50 | + | |
31 | 51 | | |
32 | | - | |
| 52 | + | |
33 | 53 | | |
34 | | - | |
| 54 | + | |
35 | 55 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
41 | 60 | | |
42 | | - | |
| 61 | + | |
43 | 62 | | |
44 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
45 | 67 | | |
46 | | - | |
| 68 | + | |
47 | 69 | | |
48 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
49 | 75 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
53 | 92 | | |
54 | 93 | | |
55 | 94 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
0 commit comments