mirror of
https://github.com/multica-ai/multica.git
synced 2026-06-17 11:48:42 +02:00
Reserved workspace slugs lived in two parallel files (`workspace_reserved_slugs.go` and `packages/core/paths/reserved-slugs.ts`) with no parity check. Adding or renaming a global route on one side without the other would slip through CI and surface only when a real user hit the collision. Collapse the two lists into one source: `server/internal/handler/reserved_slugs.json`. Go embeds the JSON via `//go:embed` and parses it at package init; the TS file is regenerated by `scripts/generate-reserved-slugs.mjs` (run via `pnpm generate:reserved-slugs`). CI re-runs the generator and `git diff --exit-code`s the TS output, so a stale TS file cannot land. The slug set is unchanged (87 entries, byte-equivalent slug literals). Update CLAUDE.md to describe the new "edit JSON, run generator" workflow. Co-authored-by: multica-agent <github@multica.ai>
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "multica",
|
|
"version": "0.2.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev:web": "turbo dev --filter=@multica/web",
|
|
"dev:docs": "turbo dev --filter=@multica/docs",
|
|
"dev:desktop": "turbo dev --filter=@multica/desktop",
|
|
"dev:desktop:staging": "turbo dev:staging --filter=@multica/desktop",
|
|
"build": "turbo build",
|
|
"typecheck": "turbo typecheck",
|
|
"test": "turbo test",
|
|
"lint": "turbo lint",
|
|
"clean": "turbo clean && rm -rf node_modules",
|
|
"ui:add": "cd packages/ui && npx shadcn@latest add",
|
|
"generate:reserved-slugs": "node scripts/generate-reserved-slugs.mjs"
|
|
},
|
|
"packageManager": "pnpm@10.28.2",
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild",
|
|
"electron"
|
|
],
|
|
"overrides": {
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.58.2",
|
|
"@types/node": "catalog:",
|
|
"@types/pg": "^8.20.0",
|
|
"pg": "^8.20.0",
|
|
"turbo": "^2.5.4",
|
|
"typescript": "catalog:"
|
|
}
|
|
}
|