jsdoc typing round, phases 1-2: tsc as a no-emit checker over plain mjs (checkJs, strict), the shared shapes in server/shapes.mjs (log events as a tagged union, wire messages, manifests, job state, the ctx), all 12 server modules annotated; requireOwner/requireSuperuser as JSDoc assertion functions so the router guarantee narrows without callsite churn; runtime stays zero-dependency (typescript + @types/node as pinned devDeps, node_modules gitignored, QUESTIONS #4 amended: dev tooling exempt); every non-annotation delta audited onto a small intended list (clerk status ?? 1, dead 401 guards, async wraps on enqueue callsites); smoke 105/105 + restart + repo checks green; the clerk and web/ are the next phases
This commit is contained in:
@@ -83,14 +83,24 @@ memory the agent owes itself across sessions.
|
||||
- The repo lives at `C:\data\opencode\tiny-worlds` (renamed from
|
||||
`rp-test` with the project name, 2026-11-15). The rename could not
|
||||
happen in place -- the running app held the old dir -- so the move
|
||||
was robocopy + session repoint; `C:\data\opencode\rp-test` is a
|
||||
frozen snapshot awaiting deletion (its MOVED.txt says so). Always
|
||||
was robocopy + session repoint, plus a one-time sqlite edit of
|
||||
opencode's own db (`~/.local/share/opencode/opencode.db`) to
|
||||
repoint the project record and drop the stale duplicate project
|
||||
the desktop UI cannot delete (anomalyco/opencode#28030). The old
|
||||
dir and the db backup are gone; the rename is complete. Always
|
||||
launch from the new path.
|
||||
- The test scripts: `smoke.mjs` expects a CLEAN state/ plus a running
|
||||
`--mock` server, prints its run ids, and leaves a temp token file
|
||||
for `restart-check.mjs`; `check-reminder.mjs` takes a run id;
|
||||
`check-repo.mjs` needs no server. Clean up state/ and the smoke
|
||||
runs afterwards -- only the real runs stay.
|
||||
runs afterwards -- only the real runs stay. The type gate:
|
||||
`npm.cmd run typecheck` (plain `npx.cmd tsc -p tsconfig.json`)
|
||||
runs tsc as a no-emit checker over the JSDoc annotations --
|
||||
dev-only tooling (typescript + @types/node in devDependencies,
|
||||
node_modules gitignored); the runtime stays zero-dependency
|
||||
(QUESTIONS #4 amended 2026-11-15). Server core is typed under
|
||||
strict; the clerk (tool/memory.mjs) and web/ are phases to come --
|
||||
widen tsconfig include as they land.
|
||||
|
||||
## State pointers
|
||||
|
||||
@@ -120,7 +130,9 @@ memory the agent owes itself across sessions.
|
||||
- Substrate design round complete (2026-11-13); rulings live in ROADMAP
|
||||
("The harness") and HANDOFF. Bridge retired before ever going live;
|
||||
REST + SPA is the MVP; runs are per-deployment instances copied from
|
||||
packages at creation; zero-dep stack. Doc set updated to match.
|
||||
packages at creation; zero-dependency runtime (dev tooling exempt,
|
||||
QUESTIONS #4 amended 2026-11-15: typescript rides devDependencies,
|
||||
nothing imports it). Doc set updated to match.
|
||||
- Build order: ALL FOUR PHASES DONE (2026-11-13/14) -- clerk paper
|
||||
migration, preset/run split, prompt split, server, housekeeping
|
||||
job, SPA. The MVP substrate is complete and live-proven end to end
|
||||
|
||||
Reference in New Issue
Block a user