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:
@@ -532,6 +532,12 @@ DICTIONARY.md the terms of art -- the ruled names, one source of
|
||||
AGENTS.md the agent's own working notes -- style lessons, gotchas,
|
||||
state pointers
|
||||
config.json the default package
|
||||
package.json dev tooling only -- the runtime is zero-dependency;
|
||||
typecheck script + pinned devDependencies (typescript,
|
||||
@types/node; node_modules/ gitignored)
|
||||
tsconfig.json tsc as a no-emit checker over the JSDoc annotations
|
||||
(checkJs, strict); server core typed, the clerk and
|
||||
web to follow
|
||||
names-female.txt the name dictionary -- one name per line; the new-run
|
||||
form rolls an unused one for the main character
|
||||
tool/
|
||||
@@ -585,6 +591,10 @@ server/ the substrate: a zero-dependency node:http service
|
||||
fork.mjs fork: the staged atomic copy with the owner replaced
|
||||
and the `forked` stamp
|
||||
clerk.mjs the clerk boundary (every state op via memory.mjs)
|
||||
shapes.mjs the shared type declarations -- no runtime code; the
|
||||
tsc checker and the humans agree on the load-bearing
|
||||
shapes (log events, wire messages, manifests, job
|
||||
state)
|
||||
housekeeping.mjs the pass as an async job: one trigger, two
|
||||
behaviors -- stop (close, move the tail, freeze,
|
||||
then the pass) and the re-run (rebase + fresh
|
||||
|
||||
Reference in New Issue
Block a user