castle-web-cli 0.4.163 → 0.4.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/agent-prompts.d.ts +3 -0
  2. package/dist/agent-prompts.js +14 -6
  3. package/dist/agent.js +14 -1
  4. package/dist/castle-host/host.js +276 -0
  5. package/dist/devSessionChild.js +66 -1
  6. package/dist/devSessionServer.js +21 -2
  7. package/dist/devSessionStorage.d.ts +9 -0
  8. package/dist/devSessionStorage.js +139 -0
  9. package/dist/forks.js +1 -1
  10. package/dist/headlessCover.js +12 -1
  11. package/dist/ide.d.ts +0 -2
  12. package/dist/ide.js +1 -7
  13. package/dist/imports.js +5 -0
  14. package/dist/init.js +1 -1
  15. package/dist/platformDoc.js +18 -3
  16. package/dist/rawData.d.ts +2 -0
  17. package/dist/rawData.js +10 -0
  18. package/dist/save-deck.d.ts +2 -0
  19. package/dist/save-deck.js +53 -20
  20. package/dist/serve.js +98 -0
  21. package/dist/shell/assets/index-CG9TrvCm.js +444 -0
  22. package/dist/shell/assets/index-CIRBt1qf.css +1 -0
  23. package/dist/shell/index.html +2 -2
  24. package/kits/base/CLAUDE.md +1 -1
  25. package/kits/base/castle.json +1 -1
  26. package/kits/base/node_modules/.package-lock.json +28 -0
  27. package/kits/base/node_modules/castle-web-fonts/README.md +114 -0
  28. package/kits/base/node_modules/castle-web-fonts/dist/catalog.d.ts +18 -0
  29. package/kits/base/node_modules/castle-web-fonts/dist/catalog.js +142 -0
  30. package/kits/base/node_modules/castle-web-fonts/dist/face.d.ts +1 -0
  31. package/kits/base/node_modules/castle-web-fonts/dist/face.js +52 -0
  32. package/kits/base/node_modules/castle-web-fonts/dist/faces/Bore.d.ts +3 -0
  33. package/kits/base/node_modules/castle-web-fonts/dist/faces/Bore.js +10 -0
  34. package/kits/base/node_modules/castle-web-fonts/dist/faces/CourierPrime.d.ts +3 -0
  35. package/kits/base/node_modules/castle-web-fonts/dist/faces/CourierPrime.js +10 -0
  36. package/kits/base/node_modules/castle-web-fonts/dist/faces/DMSans.d.ts +3 -0
  37. package/kits/base/node_modules/castle-web-fonts/dist/faces/DMSans.js +10 -0
  38. package/kits/base/node_modules/castle-web-fonts/dist/faces/Glacier.d.ts +3 -0
  39. package/kits/base/node_modules/castle-web-fonts/dist/faces/Glacier.js +10 -0
  40. package/kits/base/node_modules/castle-web-fonts/dist/faces/HelicoCentrica.d.ts +3 -0
  41. package/kits/base/node_modules/castle-web-fonts/dist/faces/HelicoCentrica.js +10 -0
  42. package/kits/base/node_modules/castle-web-fonts/dist/faces/Piazzolla.d.ts +3 -0
  43. package/kits/base/node_modules/castle-web-fonts/dist/faces/Piazzolla.js +10 -0
  44. package/kits/base/node_modules/castle-web-fonts/dist/faces/Synco.d.ts +3 -0
  45. package/kits/base/node_modules/castle-web-fonts/dist/faces/Synco.js +10 -0
  46. package/kits/base/node_modules/castle-web-fonts/dist/faces/Tektur.d.ts +3 -0
  47. package/kits/base/node_modules/castle-web-fonts/dist/faces/Tektur.js +10 -0
  48. package/kits/base/node_modules/castle-web-fonts/dist/faces/YatraOne.d.ts +3 -0
  49. package/kits/base/node_modules/castle-web-fonts/dist/faces/YatraOne.js +10 -0
  50. package/kits/base/node_modules/castle-web-fonts/dist/index.d.ts +16 -0
  51. package/kits/base/node_modules/castle-web-fonts/dist/index.js +15 -0
  52. package/kits/base/node_modules/castle-web-fonts/licenses/CC-BY-ND-4.0.txt +393 -0
  53. package/kits/base/node_modules/castle-web-fonts/licenses/FONTS.md +64 -0
  54. package/kits/base/node_modules/castle-web-fonts/licenses/OFL-1.1.txt +95 -0
  55. package/kits/base/node_modules/castle-web-fonts/package.json +47 -0
  56. package/kits/base/node_modules/castle-web-fonts/woff2/Bore.woff2 +0 -0
  57. package/kits/base/node_modules/castle-web-fonts/woff2/CourierPrime.woff2 +0 -0
  58. package/kits/base/node_modules/castle-web-fonts/woff2/DMSans.woff2 +0 -0
  59. package/kits/base/node_modules/castle-web-fonts/woff2/Glacier.woff2 +0 -0
  60. package/kits/base/node_modules/castle-web-fonts/woff2/HelicoCentrica.woff2 +0 -0
  61. package/kits/base/node_modules/castle-web-fonts/woff2/Piazzolla.woff2 +0 -0
  62. package/kits/base/node_modules/castle-web-fonts/woff2/SOURCE.txt +2 -0
  63. package/kits/base/node_modules/castle-web-fonts/woff2/Synco.woff2 +0 -0
  64. package/kits/base/node_modules/castle-web-fonts/woff2/Tektur.woff2 +0 -0
  65. package/kits/base/node_modules/castle-web-fonts/woff2/YatraOne.woff2 +0 -0
  66. package/kits/base/package-lock.json +1 -1
  67. package/kits/base/sdk/README.md +184 -38
  68. package/kits/base/sdk/castle.d.ts +2 -0
  69. package/kits/base/sdk/castle.js +1 -0
  70. package/kits/base/sdk/chunk.d.ts +1 -0
  71. package/kits/base/sdk/chunk.js +15 -0
  72. package/kits/base/sdk/commands.d.ts +86 -0
  73. package/kits/base/sdk/runtime.js +21 -12
  74. package/kits/base/sdk/server/platformHandle.d.ts +10 -0
  75. package/kits/base/sdk/server/storage.d.ts +46 -0
  76. package/kits/base/sdk/server/storage.js +218 -0
  77. package/kits/base/sdk/server/wrapper.d.ts +14 -1
  78. package/kits/base/sdk/server/wrapper.js +4 -1
  79. package/kits/base/sdk/storage.d.ts +15 -0
  80. package/kits/base/sdk/storage.js +29 -86
  81. package/kits/base/sdk/storageJson.d.ts +5 -0
  82. package/kits/base/sdk/storageJson.js +69 -0
  83. package/kits/base/sdk/store.d.ts +67 -0
  84. package/kits/base/sdk/store.js +313 -0
  85. package/kits/base/sdk/unloadFlush.d.ts +3 -0
  86. package/kits/base/sdk/unloadFlush.js +30 -0
  87. package/kits/blank/node_modules/.package-lock.json +13 -0
  88. package/kits/blank/node_modules/castle-web-fonts/README.md +114 -0
  89. package/kits/blank/node_modules/castle-web-fonts/dist/catalog.d.ts +18 -0
  90. package/kits/blank/node_modules/castle-web-fonts/dist/catalog.js +142 -0
  91. package/kits/blank/node_modules/castle-web-fonts/dist/face.d.ts +1 -0
  92. package/kits/blank/node_modules/castle-web-fonts/dist/face.js +52 -0
  93. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Bore.d.ts +3 -0
  94. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Bore.js +10 -0
  95. package/kits/blank/node_modules/castle-web-fonts/dist/faces/CourierPrime.d.ts +3 -0
  96. package/kits/blank/node_modules/castle-web-fonts/dist/faces/CourierPrime.js +10 -0
  97. package/kits/blank/node_modules/castle-web-fonts/dist/faces/DMSans.d.ts +3 -0
  98. package/kits/blank/node_modules/castle-web-fonts/dist/faces/DMSans.js +10 -0
  99. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Glacier.d.ts +3 -0
  100. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Glacier.js +10 -0
  101. package/kits/blank/node_modules/castle-web-fonts/dist/faces/HelicoCentrica.d.ts +3 -0
  102. package/kits/blank/node_modules/castle-web-fonts/dist/faces/HelicoCentrica.js +10 -0
  103. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Piazzolla.d.ts +3 -0
  104. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Piazzolla.js +10 -0
  105. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Synco.d.ts +3 -0
  106. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Synco.js +10 -0
  107. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Tektur.d.ts +3 -0
  108. package/kits/blank/node_modules/castle-web-fonts/dist/faces/Tektur.js +10 -0
  109. package/kits/blank/node_modules/castle-web-fonts/dist/faces/YatraOne.d.ts +3 -0
  110. package/kits/blank/node_modules/castle-web-fonts/dist/faces/YatraOne.js +10 -0
  111. package/kits/blank/node_modules/castle-web-fonts/dist/index.d.ts +16 -0
  112. package/kits/blank/node_modules/castle-web-fonts/dist/index.js +15 -0
  113. package/kits/blank/node_modules/castle-web-fonts/licenses/CC-BY-ND-4.0.txt +393 -0
  114. package/kits/blank/node_modules/castle-web-fonts/licenses/FONTS.md +64 -0
  115. package/kits/blank/node_modules/castle-web-fonts/licenses/OFL-1.1.txt +95 -0
  116. package/kits/blank/node_modules/castle-web-fonts/package.json +47 -0
  117. package/kits/blank/node_modules/castle-web-fonts/woff2/Bore.woff2 +0 -0
  118. package/kits/blank/node_modules/castle-web-fonts/woff2/CourierPrime.woff2 +0 -0
  119. package/kits/blank/node_modules/castle-web-fonts/woff2/DMSans.woff2 +0 -0
  120. package/kits/blank/node_modules/castle-web-fonts/woff2/Glacier.woff2 +0 -0
  121. package/kits/blank/node_modules/castle-web-fonts/woff2/HelicoCentrica.woff2 +0 -0
  122. package/kits/blank/node_modules/castle-web-fonts/woff2/Piazzolla.woff2 +0 -0
  123. package/kits/blank/node_modules/castle-web-fonts/woff2/SOURCE.txt +2 -0
  124. package/kits/blank/node_modules/castle-web-fonts/woff2/Synco.woff2 +0 -0
  125. package/kits/blank/node_modules/castle-web-fonts/woff2/Tektur.woff2 +0 -0
  126. package/kits/blank/node_modules/castle-web-fonts/woff2/YatraOne.woff2 +0 -0
  127. package/kits/physics-2d/castle.json +1 -1
  128. package/kits/physics-2d/editors/SceneEditor.jsx +2 -1
  129. package/kits/physics-2d/engine/blueprint.js +29 -28
  130. package/kits/physics-2d/engine/ui.jsx +24 -0
  131. package/kits/physics-2d/engine/ui.module.css +5 -0
  132. package/kits/physics-2d/package-lock.json +1 -6
  133. package/package.json +3 -2
  134. package/dist/shell/assets/index-BJO7LVCM.js +0 -422
  135. package/dist/shell/assets/index-DfZmu3XC.css +0 -1
  136. package/kits/blank/.castle/agent/children.json +0 -1
  137. package/kits/blank/.castle/agent/messages.json +0 -9
  138. package/kits/blank/.castle/agent/pending-sends.json +0 -1
  139. package/kits/blank/.castle/agent/tasks/index.md +0 -2
  140. package/kits/blank/.castle/docs/platform.md +0 -36
  141. package/kits/blank/node_modules/.vite/deps/_metadata.json +0 -8
  142. package/kits/blank/node_modules/.vite/deps/package.json +0 -3
@@ -239,8 +239,10 @@ function humanizeActorId(id) {
239
239
  .join(' ');
240
240
  }
241
241
 
242
- // "Auto Tetris" -> "auto-tetris" for the filename slug. Kept independent of
243
- // the actor id's own formatting (an id could already be any casing/shape).
242
+ // "Auto Tetris" -> "auto-tetris" for an actor id. Kept independent of the
243
+ // display-name filename rule below: ids stay lowercase-hyphen for code refs
244
+ // (`Joints.target`, `getActor`), while blueprint/drawing files keep the
245
+ // creator's casing.
244
246
  function slugifyActorId(id) {
245
247
  return id
246
248
  .trim()
@@ -249,6 +251,18 @@ function slugifyActorId(id) {
249
251
  .replace(/^-+|-+$/g, '');
250
252
  }
251
253
 
254
+ // Display name -> filename stem: keep the creator's capitalization, turn
255
+ // spaces into `_`. "PlayerWrapper" -> "PlayerWrapper", "Player Wrapper" ->
256
+ // "Player_Wrapper". Other punctuation is dropped so the path stays a single
257
+ // segment.
258
+ function filenameFromDisplayName(name) {
259
+ return (typeof name === 'string' ? name : '')
260
+ .trim()
261
+ .replace(/\s+/g, '_')
262
+ .replace(/[^A-Za-z0-9_-]+/g, '')
263
+ .replace(/^_+|_+$/g, '');
264
+ }
265
+
252
266
  // Mint a readable, unique actor id from a display name (a blueprint's `name`):
253
267
  // slugified and slug-suffix-deduped against `existing` (`cauldron`,
254
268
  // `cauldron-2`, ...). This is the editor's placement/creation default, so a
@@ -460,7 +474,6 @@ export function blankPxArtText() {
460
474
 
461
475
  // `.pxart` is the legacy spelling and still reads; new art is `.sprite`.
462
476
  const DRAWING_EXT = '.sprite';
463
- const DRAWING_EXT_RE = '\\.(?:pxart|sprite)';
464
477
 
465
478
  // `drawings/drawing-N.sprite` -- next free numbered slug, so repeated adds don't
466
479
  // collide and a deleted drawing's number isn't reused.
@@ -516,14 +529,19 @@ export function addActorWithBlueprint(sceneData, files) {
516
529
  return { sceneData: next, newId, blueprintFile, drawingFile };
517
530
  }
518
531
 
519
- // `blueprints/wall.scene` from a display name: slugified, then suffix-deduped.
532
+ // `blueprints/Player_Wrapper.scene` from a display name: keep casing, spaces
533
+ // become `_`, then suffix-deduped. Case-insensitive collision check so a macOS
534
+ // default volume doesn't 409 on `Player` vs an existing `player.scene`.
520
535
  function mintPathFromName(existingPaths, name, dir, ext) {
521
- const base = slugifyActorId(typeof name === 'string' ? name : '') || 'blueprint';
536
+ const base = filenameFromDisplayName(name) || 'blueprint';
537
+ const takenLower = new Set(
538
+ [...existingPaths].map((path) => String(path).toLowerCase()),
539
+ );
522
540
  const MAX_ATTEMPTS = 1000;
523
541
  for (let suffix = 1; suffix <= MAX_ATTEMPTS; suffix += 1) {
524
542
  const slug = suffix === 1 ? base : `${base}-${suffix}`;
525
543
  const path = `${dir}/${slug}${ext}`;
526
- if (!existingPaths.has(path)) return path;
544
+ if (!takenLower.has(path.toLowerCase())) return path;
527
545
  }
528
546
  // Callers treat null as "couldn't name it" and fall back to the counter.
529
547
  return null;
@@ -763,26 +781,6 @@ function countSpriteRefs(files, drawingPath) {
763
781
  return count;
764
782
  }
765
783
 
766
- // Is `drawingPath` this blueprint's OWN auto-minted art -- the blank we made
767
- // for it at creation, under either the anonymous counter (`drawing-3.sprite`,
768
- // the zero-prompt path) or the blueprint's own slug (`wall.sprite`, the modal
769
- // pairing a name with its drawing)? Those two shapes are ours to keep in sync
770
- // with the name. A drawing the creator picked from the grid, or drew and named
771
- // themselves, is not: it may be shared, and its name means something to them.
772
- // Both spellings match, so a blueprint made before the `.sprite` rename still
773
- // carries its drawing along.
774
- function isOwnMintedDrawing(drawingPath, blueprintPath) {
775
- if (typeof drawingPath !== 'string') return false;
776
- if (new RegExp(`^${DRAWINGS_DIR}/drawing-\\d+${DRAWING_EXT_RE}$`).test(drawingPath)) return true;
777
- // Compared literally rather than by regex: a hand-authored blueprint path
778
- // can hold characters (`.`, `+`) that would match far too much as a pattern.
779
- const slug = blueprintPath.slice(BLUEPRINTS_DIR.length + 1, -'.scene'.length);
780
- return (
781
- drawingPath === `${DRAWINGS_DIR}/${slug}.sprite` ||
782
- drawingPath === `${DRAWINGS_DIR}/${slug}.pxart`
783
- );
784
- }
785
-
786
784
  // Renaming a blueprint means renaming the FILE, not just editing `name` --
787
785
  // that's the whole complaint. Returns the physical moves and the content
788
786
  // writes to apply (renames first, then writes, so a write never lands on a
@@ -792,7 +790,7 @@ function isOwnMintedDrawing(drawingPath, blueprintPath) {
792
790
  //
793
791
  // or null when the blueprint is missing/unparseable. What moves:
794
792
  // - the blueprint file, to its new name-derived slug
795
- // - its auto-minted drawing, when no other blueprint shares it
793
+ // - its Sprite drawing, when no other blueprint shares it
796
794
  // - every `"blueprint"` ref in every `scenes/*.scene`
797
795
  //
798
796
  // Actor ids are deliberately left alone. They're referenced by `Joints.target`,
@@ -809,7 +807,10 @@ export function renameBlueprintCascade(files, blueprintPath, nextName) {
809
807
  const fileRenames = [];
810
808
  const components = structuredClone(template.components ?? {});
811
809
  const drawingPath = components.Sprite?.file;
812
- if (isOwnMintedDrawing(drawingPath, blueprintPath) && countSpriteRefs(files, drawingPath) === 1) {
810
+ // Exclusive use is enough: if only this blueprint points at the drawing,
811
+ // keep its filename in sync with the new name — whether the art was
812
+ // auto-minted, picked from the grid, or drawn by hand.
813
+ if (typeof drawingPath === 'string' && countSpriteRefs(files, drawingPath) === 1) {
813
814
  taken.delete(drawingPath);
814
815
  // Keep the drawing's OWN extension: a deck made before the `.sprite`
815
816
  // rename holds `.pxart` files, and a rename is no place to migrate a
@@ -466,6 +466,30 @@ export function Panel({ title, action, children, overridden = false }) {
466
466
  </section>
467
467
  );
468
468
  }
469
+ // ---------------------------------------------------------------------------
470
+ // THE FIELD SET BELOW IS COPIED INTO THE SHELL. Keep the two in sync by hand.
471
+ //
472
+ // `FieldRow`, `TextField`, `NumberField` (with `NumpadSheet`,
473
+ // `NumberInlineInput`, `snapToStep` and the SCRUB_* constants), `CheckboxField`,
474
+ // `ColorField` and `FieldNote` are ported into
475
+ // `cli/src/shell/paramFields.tsx`, which renders the Params view over a source
476
+ // file's PARAMS object -- so a param scrubs exactly like a behavior prop. Their
477
+ // styles are copied the same way, from `ui.module.css` into
478
+ // `cli/src/shell/kitPanels.css`.
479
+ //
480
+ // It is a copy because there is no seam to share through: the shell cannot
481
+ // import kit code, kits have no shared package, and the SDK ships runtime
482
+ // services with no React in it. Nothing enforces the mirroring, so a change here
483
+ // -- a new field type, a scrub-feel tweak, a fix -- has to be made there too, or
484
+ // the two inspectors drift apart.
485
+ //
486
+ // The shell copy deliberately drops the instance-override chrome (`overridden`,
487
+ // the "Default: X [Reset]" sub-line): a module-level constant has no template to
488
+ // override. Don't port that part back.
489
+ //
490
+ // If you find yourself making this a THIRD copy, make it a shared source instead.
491
+ // ---------------------------------------------------------------------------
492
+
469
493
  // Render the "Default: X" value in an instance override's sub-line.
470
494
  function formatFieldDefault(value) {
471
495
  if (typeof value === 'boolean') return value ? 'On' : 'Off';
@@ -1729,6 +1729,11 @@
1729
1729
  padding: 8px 16px 4px;
1730
1730
  }
1731
1731
 
1732
+ /* The field styles from here down (.fieldRow through the numpad and checkbox
1733
+ rules) are COPIED into cli/src/shell/kitPanels.css, scoped there to
1734
+ .castle-params-panel, so the shell's Params view renders identically to this
1735
+ inspector. Nothing enforces it -- change one, change the other. See the
1736
+ matching note above the field components in ui.jsx. */
1732
1737
  .fieldRow {
1733
1738
  display: grid;
1734
1739
  grid-template-columns: minmax(82px, 0.5fr) minmax(0, 1fr);
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "../../sdk": {
35
35
  "name": "castle-web-sdk",
36
- "version": "0.4.23",
36
+ "version": "0.4.26",
37
37
  "dev": true,
38
38
  "devDependencies": {
39
39
  "eslint": "^9.0.0",
@@ -216,7 +216,6 @@
216
216
  "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz",
217
217
  "integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==",
218
218
  "license": "MIT",
219
- "peer": true,
220
219
  "dependencies": {
221
220
  "@dnd-kit/accessibility": "^3.1.1",
222
221
  "@dnd-kit/utilities": "^3.2.2",
@@ -670,7 +669,6 @@
670
669
  "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
671
670
  "dev": true,
672
671
  "license": "MIT",
673
- "peer": true,
674
672
  "bin": {
675
673
  "acorn": "bin/acorn"
676
674
  },
@@ -1131,7 +1129,6 @@
1131
1129
  "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
1132
1130
  "dev": true,
1133
1131
  "license": "MIT",
1134
- "peer": true,
1135
1132
  "dependencies": {
1136
1133
  "@eslint-community/eslint-utils": "^4.8.0",
1137
1134
  "@eslint-community/regexpp": "^4.12.1",
@@ -2441,7 +2438,6 @@
2441
2438
  "resolved": "https://registry.npmjs.org/react/-/react-19.2.7.tgz",
2442
2439
  "integrity": "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ==",
2443
2440
  "license": "MIT",
2444
- "peer": true,
2445
2441
  "engines": {
2446
2442
  "node": ">=0.10.0"
2447
2443
  }
@@ -2451,7 +2447,6 @@
2451
2447
  "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz",
2452
2448
  "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==",
2453
2449
  "license": "MIT",
2454
- "peer": true,
2455
2450
  "dependencies": {
2456
2451
  "scheduler": "^0.27.0"
2457
2452
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "castle-web-cli",
3
- "version": "0.4.163",
3
+ "version": "0.4.165",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "castle-web": "./dist/index.js"
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "build": "rm -rf dist && tsc && chmod +x dist/index.js && vite build && cp -R src/castle-host dist/castle-host && chmod -R u+w kits 2>/dev/null; rm -rf kits && cp -R ../kits kits && chmod -R u+w kits && rm -rf kits/*/imports",
10
10
  "dev": "tsc --watch",
11
- "check": "eslint . && jscpd && tsc --noEmit && tsc --noEmit -p src/shell/tsconfig.json"
11
+ "check": "node ../scripts/sync-tokens.mjs --check && eslint . && jscpd && tsc --noEmit && tsc --noEmit -p src/shell/tsconfig.json"
12
12
  },
13
13
  "jscpd": {
14
14
  "path": [
@@ -32,6 +32,7 @@
32
32
  "@codemirror/state": "^6.6.0",
33
33
  "@codemirror/view": "^6.41.1",
34
34
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
35
+ "@lezer/common": "^1.5.2",
35
36
  "@lezer/highlight": "^1.2.3",
36
37
  "@lydell/node-pty": "^1.2.0-beta.12",
37
38
  "@xterm/addon-fit": "^0.11.0",