modelroom 0.0.6 → 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 (64) hide show
  1. package/CHANGELOG.md +8 -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.map +1 -1
  6. package/dist/lib/agents/index.js +19 -4
  7. package/dist/lib/agents/index.js.map +1 -1
  8. package/dist/lib/artifact.d.ts +1 -1
  9. package/dist/lib/artifact.d.ts.map +1 -1
  10. package/dist/lib/artifact.js +9 -5
  11. package/dist/lib/artifact.js.map +1 -1
  12. package/dist/lib/config.d.ts +17 -1
  13. package/dist/lib/config.d.ts.map +1 -1
  14. package/dist/lib/config.js +40 -4
  15. package/dist/lib/config.js.map +1 -1
  16. package/dist/lib/frontmatter.d.ts +2 -0
  17. package/dist/lib/frontmatter.d.ts.map +1 -1
  18. package/dist/lib/frontmatter.js +11 -2
  19. package/dist/lib/frontmatter.js.map +1 -1
  20. package/dist/lib/i18n.d.ts +315 -0
  21. package/dist/lib/i18n.d.ts.map +1 -0
  22. package/dist/lib/i18n.js +651 -0
  23. package/dist/lib/i18n.js.map +1 -0
  24. package/dist/lib/lang.d.ts +4 -0
  25. package/dist/lib/lang.d.ts.map +1 -0
  26. package/dist/lib/lang.js +5 -0
  27. package/dist/lib/lang.js.map +1 -0
  28. package/dist/lib/lint.d.ts +3 -0
  29. package/dist/lib/lint.d.ts.map +1 -1
  30. package/dist/lib/lint.js +22 -12
  31. package/dist/lib/lint.js.map +1 -1
  32. package/dist/lib/locale.d.ts +9 -0
  33. package/dist/lib/locale.d.ts.map +1 -0
  34. package/dist/lib/locale.js +32 -0
  35. package/dist/lib/locale.js.map +1 -0
  36. package/dist/lib/server.d.ts +3 -0
  37. package/dist/lib/server.d.ts.map +1 -1
  38. package/dist/lib/server.js +44 -27
  39. package/dist/lib/server.js.map +1 -1
  40. package/dist/lib/templates.d.ts +7 -0
  41. package/dist/lib/templates.d.ts.map +1 -0
  42. package/dist/lib/templates.js +30 -0
  43. package/dist/lib/templates.js.map +1 -0
  44. package/docs/02-convention.md +10 -5
  45. package/docs/03-cli.md +59 -14
  46. package/docs/04-agents.md +10 -2
  47. package/package.json +9 -19
  48. package/templates/{AGENTS.md → en/AGENTS.md} +8 -3
  49. package/templates/ja/AGENTS.md +38 -0
  50. package/templates/ja/room/BEHAVIOUR.md +18 -0
  51. package/templates/ja/room/BRIEF.md +16 -0
  52. package/templates/ja/room/SPEC.md +9 -0
  53. package/templates/ja/room/index.html +53 -0
  54. package/templates/modelroom.json +3 -1
  55. package/ui/assets/app.js +120 -47
  56. package/ui/dashboard.html +11 -7
  57. package/ui/kit.html +13 -9
  58. package/ui/modelroom.css +1 -2
  59. package/ui/room.html +11 -7
  60. package/ui/settings.html +11 -7
  61. /package/templates/{room → en/room}/BEHAVIOUR.md +0 -0
  62. /package/templates/{room → en/room}/BRIEF.md +0 -0
  63. /package/templates/{room → en/room}/SPEC.md +0 -0
  64. /package/templates/{room → en/room}/index.html +0 -0
package/ui/room.html CHANGED
@@ -9,17 +9,21 @@
9
9
  <title>Room — 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="h-dvh overflow-hidden bg-background text-foreground font-sans">
22
- <div id="root" data-app="room" class="h-full"></div>
25
+ <body>
26
+ <div id="root" data-app="room" class="mr-app mr-app-fixed"></div>
23
27
  <script type="module" src="/ui/assets/app.js"></script>
24
28
  </body>
25
29
  </html>
package/ui/settings.html CHANGED
@@ -7,17 +7,21 @@
7
7
  <title>Settings — modelroom</title>
8
8
  <link rel="stylesheet" href="/ui/modelroom.css">
9
9
  <script>
10
- // Theme before paint: the bundle is React, but the first frame should not flash.
10
+ // Theme before paint: Mantine reads `data-mantine-color-scheme`, so the first
11
+ // frame is already the right colour and nothing flashes on load.
11
12
  try {
12
13
  var stored = localStorage.getItem('modelroom.theme');
13
- document.documentElement.dataset.theme = stored
14
- ? JSON.parse(stored)
15
- : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
16
- } catch (error) { /* the default is light */ }
14
+ document.documentElement.setAttribute(
15
+ 'data-mantine-color-scheme',
16
+ stored
17
+ ? JSON.parse(stored)
18
+ : (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'),
19
+ );
20
+ } catch (error) { /* Mantine falls back to the OS preference */ }
17
21
  </script>
18
22
  </head>
19
- <body class="bg-background text-foreground font-sans">
20
- <div id="root" data-app="settings"></div>
23
+ <body>
24
+ <div id="root" data-app="settings" class="mr-app"></div>
21
25
  <script type="module" src="/ui/assets/app.js"></script>
22
26
  </body>
23
27
  </html>
File without changes
File without changes
File without changes
File without changes