diff --git a/.ai-work/01-fix-lint-and-ci.md b/.ai-work/01-fix-lint-and-ci.md new file mode 100644 index 0000000..553f542 --- /dev/null +++ b/.ai-work/01-fix-lint-and-ci.md @@ -0,0 +1,9 @@ +# 01. Fix lint and add CI scripts + +Status: pending + +Make the hygiene baseline green and easy to run locally/CI: + +- fix current `npm run lint` failures; +- keep `npm run typecheck` green; +- add a single verification script that runs typecheck and lint. diff --git a/.ai-work/02-extract-shared-dto-event-types.md b/.ai-work/02-extract-shared-dto-event-types.md new file mode 100644 index 0000000..09cd934 --- /dev/null +++ b/.ai-work/02-extract-shared-dto-event-types.md @@ -0,0 +1,5 @@ +# 02. Extract shared DTO/event types + +Status: pending + +Move duplicated API/session DTO definitions into shared modules used by both client and server. diff --git a/.ai-work/03-split-client-api.md b/.ai-work/03-split-client-api.md new file mode 100644 index 0000000..a1fe8fc --- /dev/null +++ b/.ai-work/03-split-client-api.md @@ -0,0 +1,5 @@ +# 03. Split client API into feature clients + +Status: pending + +Decompose `src/client/src/api.ts` into composable feature clients, shared HTTP helper, parsers, URL builders, and socket helpers. diff --git a/.ai-work/04-extract-file-git-controllers.md b/.ai-work/04-extract-file-git-controllers.md new file mode 100644 index 0000000..46749d3 --- /dev/null +++ b/.ai-work/04-extract-file-git-controllers.md @@ -0,0 +1,5 @@ +# 04. Extract file/git controllers from PiWebApp + +Status: pending + +Move file explorer and git orchestration out of `PiWebApp` into focused controllers. diff --git a/.ai-work/05-add-vitest-unit-tests.md b/.ai-work/05-add-vitest-unit-tests.md new file mode 100644 index 0000000..d41f7fc --- /dev/null +++ b/.ai-work/05-add-vitest-unit-tests.md @@ -0,0 +1,5 @@ +# 05. Add Vitest and pure unit tests + +Status: pending + +Add a test runner and cover pure/domain logic such as route parsing, chat transcript updates, cache merge, path safety, and git parsing. diff --git a/.ai-work/06-type-session-event-protocol.md b/.ai-work/06-type-session-event-protocol.md new file mode 100644 index 0000000..9efea3d --- /dev/null +++ b/.ai-work/06-type-session-event-protocol.md @@ -0,0 +1,5 @@ +# 06. Type the session event protocol + +Status: pending + +Define a shared discriminated union for session UI events and use it across server event publishing, sockets, and transcript handling. diff --git a/.ai-work/07-session-daemon-health-lifecycle.md b/.ai-work/07-session-daemon-health-lifecycle.md new file mode 100644 index 0000000..9389eb5 --- /dev/null +++ b/.ai-work/07-session-daemon-health-lifecycle.md @@ -0,0 +1,5 @@ +# 07. Improve session daemon health and lifecycle + +Status: pending + +Add health visibility and explicit lifecycle cleanup for the long-lived session daemon.