The editor's strip regex anchored on \\A — a Python-ism JS treats as a literal — so it never matched: the editor showed the raw frontmatter and every save re-wrapped the file in one more frontmatter layer. Extract the strip into lib/skillFrontmatter.ts with a ^ anchor, import it from the page, and guard it with scripts/check-skill-frontmatter.mjs (wired into npm test): strips the render_skill_md block shape, exact split boundary, idempotent, save-reload round-trip adds no layer, and the inline \\A pattern is banned statically. Also per review notes: skill toggles are now the spec-v2 §5 34x19 capsule (amber track + dark knob when on), and version-history timestamps render localized instead of the raw SQLite UTC string. Co-authored-by: multica-agent <github@multica.ai>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "calliope-web",
|
|
"version": "1.5.8",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"test": "node scripts/check-storage-ssr.mjs && node scripts/check-random-uuid.mjs && node scripts/check-skill-frontmatter.mjs",
|
|
"lint": "prettier --check . && eslint .",
|
|
"format": "prettier --write ."
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/adapter-static": "^3.0.8",
|
|
"@sveltejs/kit": "^2.70.3",
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
|
"@types/node": "^22.13.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"eslint": "^9.20.0",
|
|
"eslint-plugin-svelte": "^2.46.0",
|
|
"postcss": "^8.5.0",
|
|
"prettier": "^3.5.0",
|
|
"prettier-plugin-svelte": "^3.3.0",
|
|
"svelte": "^5.20.0",
|
|
"svelte-check": "^4.1.0",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^6.1.0"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/svelte-query": "^5.66.0",
|
|
"@types/three": "0.185.0",
|
|
"@xyflow/svelte": "^1.6.5",
|
|
"mannequin-js": "5.2.3",
|
|
"three": "0.185.1"
|
|
},
|
|
"type": "module"
|
|
}
|