Skip to content

Commands ​

CommandRole
npm run devVite server on playground/ (http://localhost:5173)
npm run buildnpm audit, then library build (dist/editor.js) + declarations (dist/types/)
npm run test / test:watchVitest with coverage of src/ (100 % required) and playground/ (a floor): library, playground, custom rules, ESLint audit, tests/ (backlog, bibliography, barrels, diagrams, dependencies, fitness), scripts and hooks
npm run lint / lint:fixESLint, zero warning tolerated
npm run lint:secretssecretlint: no key, token or password in any file
npm run format / format:checkPrettier
npm run typechecktsc --noEmit
npm run fixPrettier then ESLint --fix: run before check
npm run checkPrettier + ESLint + secretlint + tsc + Vitest + npm audit + knip: must be green to finish a task
npm run deps:auditnpm audit, any severity fails
npm run deps:outdatedfails when a dependency is not on its latest version
npm run deps:unusedknip: unused files, exports and dependencies (knip.json)
npm run deps:toolsfails when a GitHub Action is not on its latest major version or .nvmrc not on the latest Node.js LTS
npm run check:allcheck + deps:outdated + deps:tools + docs build + playground build (what CI and the pre-push hook run)
npm run docs:dev / docs:build / docs:previewdocumentation site (TypeDoc API generated first)
npm run docs:apiregenerate docs/api/ from the TSDoc
npm run metrics:sessiontime and tokens of the current turn; --markdown for the chat, --all for the conversation (metrics)
npm run library -- …the local source library: search, get, read, list (sources)
npm run metricsMarkdown report of the agent's work: commands by count and time, slowest calls, time and tokens per session, feature, story and task (metrics)
npm run playground:buildstatic build of the playground into the docs site (docs/.vitepress/dist/playground/)

Playground ​

playground/index.html loads playground/index.ts, which may only import the public API (../src). It is published with the docs site on each release: https://alexandregallais.github.io/synoptic-studio/playground/ (menu Playground). It will show each pipeline stage (integer model → d → <path>) as features arrive.

Build ​

Vite library mode (build.lib), a single unminified ESM output; tsc -p tsconfig.build.json emits the .d.ts. package.json: "sideEffects": false, exports points to dist/.

CI ​

See ci.md.

IDE ​

See formatting. WebStorm and VS Code settings are in the repository (.idea/, .vscode/).