modelroom 0.0.5 → 0.1.0

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 (69) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +40 -8
  3. package/dist/bin/modelroom.js +241 -75
  4. package/dist/bin/modelroom.js.map +1 -1
  5. package/dist/lib/agents/index.d.ts +6 -0
  6. package/dist/lib/agents/index.d.ts.map +1 -1
  7. package/dist/lib/agents/index.js +22 -4
  8. package/dist/lib/agents/index.js.map +1 -1
  9. package/dist/lib/artifact.d.ts +1 -1
  10. package/dist/lib/artifact.d.ts.map +1 -1
  11. package/dist/lib/artifact.js +9 -5
  12. package/dist/lib/artifact.js.map +1 -1
  13. package/dist/lib/config.d.ts +17 -1
  14. package/dist/lib/config.d.ts.map +1 -1
  15. package/dist/lib/config.js +40 -4
  16. package/dist/lib/config.js.map +1 -1
  17. package/dist/lib/frontmatter.d.ts +2 -0
  18. package/dist/lib/frontmatter.d.ts.map +1 -1
  19. package/dist/lib/frontmatter.js +11 -2
  20. package/dist/lib/frontmatter.js.map +1 -1
  21. package/dist/lib/i18n.d.ts +315 -0
  22. package/dist/lib/i18n.d.ts.map +1 -0
  23. package/dist/lib/i18n.js +651 -0
  24. package/dist/lib/i18n.js.map +1 -0
  25. package/dist/lib/lang.d.ts +4 -0
  26. package/dist/lib/lang.d.ts.map +1 -0
  27. package/dist/lib/lang.js +5 -0
  28. package/dist/lib/lang.js.map +1 -0
  29. package/dist/lib/lint.d.ts +3 -0
  30. package/dist/lib/lint.d.ts.map +1 -1
  31. package/dist/lib/lint.js +22 -12
  32. package/dist/lib/lint.js.map +1 -1
  33. package/dist/lib/locale.d.ts +9 -0
  34. package/dist/lib/locale.d.ts.map +1 -0
  35. package/dist/lib/locale.js +32 -0
  36. package/dist/lib/locale.js.map +1 -0
  37. package/dist/lib/opencode.d.ts +31 -1
  38. package/dist/lib/opencode.d.ts.map +1 -1
  39. package/dist/lib/opencode.js +83 -1
  40. package/dist/lib/opencode.js.map +1 -1
  41. package/dist/lib/server.d.ts +3 -0
  42. package/dist/lib/server.d.ts.map +1 -1
  43. package/dist/lib/server.js +79 -36
  44. package/dist/lib/server.js.map +1 -1
  45. package/dist/lib/templates.d.ts +7 -0
  46. package/dist/lib/templates.d.ts.map +1 -0
  47. package/dist/lib/templates.js +30 -0
  48. package/dist/lib/templates.js.map +1 -0
  49. package/docs/02-convention.md +10 -5
  50. package/docs/03-cli.md +59 -14
  51. package/docs/04-agents.md +27 -3
  52. package/package.json +9 -19
  53. package/templates/{AGENTS.md → en/AGENTS.md} +8 -3
  54. package/templates/ja/AGENTS.md +38 -0
  55. package/templates/ja/room/BEHAVIOUR.md +18 -0
  56. package/templates/ja/room/BRIEF.md +16 -0
  57. package/templates/ja/room/SPEC.md +9 -0
  58. package/templates/ja/room/index.html +53 -0
  59. package/templates/modelroom.json +3 -1
  60. package/ui/assets/app.js +120 -47
  61. package/ui/dashboard.html +11 -7
  62. package/ui/kit.html +13 -9
  63. package/ui/modelroom.css +1 -2
  64. package/ui/room.html +11 -7
  65. package/ui/settings.html +11 -7
  66. /package/templates/{room → en/room}/BEHAVIOUR.md +0 -0
  67. /package/templates/{room → en/room}/BRIEF.md +0 -0
  68. /package/templates/{room → en/room}/SPEC.md +0 -0
  69. /package/templates/{room → en/room}/index.html +0 -0
package/ui/dashboard.html CHANGED
@@ -8,17 +8,21 @@
8
8
  <title>modelroom</title>
9
9
  <link rel="stylesheet" href="/ui/modelroom.css">
10
10
  <script>
11
- // Theme before paint: the bundle is React, but the first frame should not flash.
11
+ // Theme before paint: Mantine reads `data-mantine-color-scheme`, so the first
12
+ // frame is already the right colour and nothing flashes on load.
12
13
  try {
13
14
  var stored = localStorage.getItem('modelroom.theme');
14
- document.documentElement.dataset.theme = stored
15
- ? JSON.parse(stored)
16
- : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
17
- } catch (error) { /* the default is light */ }
15
+ document.documentElement.setAttribute(
16
+ 'data-mantine-color-scheme',
17
+ stored
18
+ ? JSON.parse(stored)
19
+ : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'),
20
+ );
21
+ } catch (error) { /* Mantine falls back to the OS preference */ }
18
22
  </script>
19
23
  </head>
20
- <body class="bg-background text-foreground font-sans">
21
- <div id="root" data-app="dashboard"></div>
24
+ <body>
25
+ <div id="root" data-app="dashboard" class="mr-app"></div>
22
26
  <script type="module" src="/ui/assets/app.js"></script>
23
27
  </body>
24
28
  </html>
package/ui/kit.html CHANGED
@@ -1,6 +1,6 @@
1
1
  <!doctype html>
2
- <!-- modelroom — the component workshop. Every UI primitive and every panel state
3
- rendered in isolation, so a change can be seen before it is wired up. It is
2
+ <!-- modelroom — the component workshop. Every Mantine component the tool wires
3
+ up, rendered in isolation, so a change can be seen before it is used. It is
4
4
  the tool's own UI only; it never touches the convention or the artifacts. -->
5
5
  <html lang="en">
6
6
  <head>
@@ -9,17 +9,21 @@
9
9
  <title>Workshop — modelroom</title>
10
10
  <link rel="stylesheet" href="/ui/modelroom.css">
11
11
  <script>
12
- // Theme before paint: the bundle is React, but the first frame should not flash.
12
+ // Theme before paint: Mantine reads `data-mantine-color-scheme`, so the first
13
+ // frame is already the right colour and nothing flashes on load.
13
14
  try {
14
15
  var stored = localStorage.getItem('modelroom.theme');
15
- document.documentElement.dataset.theme = stored
16
- ? JSON.parse(stored)
17
- : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
18
- } catch (error) { /* the default is light */ }
16
+ document.documentElement.setAttribute(
17
+ 'data-mantine-color-scheme',
18
+ stored
19
+ ? JSON.parse(stored)
20
+ : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'),
21
+ );
22
+ } catch (error) { /* Mantine falls back to the OS preference */ }
19
23
  </script>
20
24
  </head>
21
- <body class="bg-muted/30 text-foreground font-sans">
22
- <div id="root" data-app="kit"></div>
25
+ <body>
26
+ <div id="root" data-app="kit" class="mr-app"></div>
23
27
  <script type="module" src="/ui/assets/app.js"></script>
24
28
  </body>
25
29
  </html>