feat: establish generated v2 foundation#216
Closed
anand-testcompare wants to merge 7 commits into
Closed
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
diagram-corethe canonical IntermediateFormat schema boundary, with the backend reusing that shared schema instead of carrying its own duplicate zod contractdiagram-agent-toolsas the host-neutral diagram tool catalog with MCP-shaped JSON schemas, descriptions, routing hints, and session-awarediagram_to_pnginputdiagram-exporteras the host-neutral Excalidraw share/file parsing, safe output path, and Playwright-backed PNG export packagesketchi-diagramagent config/hints and standalonediagram_to_pngflow to shared packages instead of duplicating tool names, Mermaid guardrails, and PNG export logic@sketchi/mcp-serveras a generic NodeNext MCP stdio adapter over the shared catalog, with a default HTTP executor for Sketchi server-backed generation/edit APIs plus shared PNG exporttest-storybooktarget that verifies indexed static stories?diagram=controls the selected diagram and catalog clicks update the TanStack Router search stateDiagramStatusStripStudio component and a structure guard requiring component file, test, Storybook story, local export, and package exportrun-many -t typecheck,test,buildruns do not race against missingdist/typecheckdeclarationsVerification
pnpm install --frozen-lockfilegit diff --checkbun x ultracite fixNX_DAEMON=false pnpm nx test diagram-exporter --skip-nx-cache(4 files, 14 tests)NX_DAEMON=false pnpm nx typecheck diagram-exporter --skip-nx-cacheNX_DAEMON=false pnpm nx build diagram-exporter --skip-nx-cacheNX_DAEMON=false pnpm nx run diagram-exporter:typecheck-tsgo --skip-nx-cacheNX_DAEMON=false pnpm nx test diagram-agent-tools --skip-nx-cache(1 file, 4 tests)NX_DAEMON=false pnpm nx test mcp-server --skip-nx-cache(2 files, 9 tests)NX_DAEMON=false pnpm nx typecheck mcp-server --skip-nx-cacheNX_DAEMON=false pnpm nx build mcp-server --skip-nx-cacheNX_DAEMON=false pnpm nx run mcp-server:typecheck-tsgo --skip-nx-cachetimeout 2 node packages/mcp-server/dist/stdio.js </dev/nullcd packages/opencode-excalidraw && bun test(32 tests)cd packages/opencode-excalidraw && bun x tsc -p tsconfig.ci.json --noEmit && bun run buildNX_DAEMON=false pnpm nx test web --skip-nx-cache(1 file, 2 tests)NX_DAEMON=false pnpm nx typecheck web --skip-nx-cacheNX_DAEMON=false pnpm nx build web --skip-nx-cacheNX_DAEMON=false pnpm nx run web:typecheck-tsgo --skip-nx-cacherm -rf packages/diagram-core/dist packages/diagram-renderer/dist packages/diagram-studio-ui/dist packages/diagram-agent-tools/dist packages/diagram-exporter/dist packages/mcp-server/dist apps/web/dist tools/sketchi-generators/dist && NX_DAEMON=false pnpm nx run-many -t typecheck,test,build --skip-nx-cache(10 projects)NX_DAEMON=false pnpm nx run-many -t typecheck-tsgo --skip-nx-cache(7 projects)NX_DAEMON=false pnpm nx test-storybook diagram-studio-ui --skip-nx-cacheverified 7 source story files across 11 static Storybook storiespnpm exec wrangler deploy --dry-run --config dist/server/wrangler.jsonNX_DAEMON=false pnpm nx graph --affected --file=.memory/nx-affected-diagram-exporter.htmlNX_DAEMON=false pnpm nx graph --affected --file=.memory/nx-affected-router-search.htmlpnpm devreached Vite ready onhttp://127.0.0.1:5174/;agent-browsersmoke opened/?diagram=flowchart, saw the flowchart prompt, clicked Architecture, and verified the URL changed to/?diagram=architectureNotes
pnpm devfailure on oldmainhappens because that branch stores catalog entries underpackage.json > workspaces.catalog; pnpm expects catalogs inpnpm-workspace.yaml. This v2 branch has the pnpm workspace file andpnpm devstarts cleanly.diagram_graderemains host-owned because it depends on the OpenCode LLM client;diagram_to_pngis now available in the generic MCP default executor through@sketchi/diagram-exporter.dist; this caught and fixed extensionless ESM imports before push.2ecee2d; that work is moving to/home/anandpant/Development/shpitdev/sketchi-v2-lab.2ecee2d.