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.
- package/CHANGELOG.md +15 -0
- package/README.md +40 -8
- package/dist/bin/modelroom.js +241 -75
- package/dist/bin/modelroom.js.map +1 -1
- package/dist/lib/agents/index.d.ts +6 -0
- package/dist/lib/agents/index.d.ts.map +1 -1
- package/dist/lib/agents/index.js +22 -4
- package/dist/lib/agents/index.js.map +1 -1
- package/dist/lib/artifact.d.ts +1 -1
- package/dist/lib/artifact.d.ts.map +1 -1
- package/dist/lib/artifact.js +9 -5
- package/dist/lib/artifact.js.map +1 -1
- package/dist/lib/config.d.ts +17 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +40 -4
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/frontmatter.d.ts +2 -0
- package/dist/lib/frontmatter.d.ts.map +1 -1
- package/dist/lib/frontmatter.js +11 -2
- package/dist/lib/frontmatter.js.map +1 -1
- package/dist/lib/i18n.d.ts +315 -0
- package/dist/lib/i18n.d.ts.map +1 -0
- package/dist/lib/i18n.js +651 -0
- package/dist/lib/i18n.js.map +1 -0
- package/dist/lib/lang.d.ts +4 -0
- package/dist/lib/lang.d.ts.map +1 -0
- package/dist/lib/lang.js +5 -0
- package/dist/lib/lang.js.map +1 -0
- package/dist/lib/lint.d.ts +3 -0
- package/dist/lib/lint.d.ts.map +1 -1
- package/dist/lib/lint.js +22 -12
- package/dist/lib/lint.js.map +1 -1
- package/dist/lib/locale.d.ts +9 -0
- package/dist/lib/locale.d.ts.map +1 -0
- package/dist/lib/locale.js +32 -0
- package/dist/lib/locale.js.map +1 -0
- package/dist/lib/opencode.d.ts +31 -1
- package/dist/lib/opencode.d.ts.map +1 -1
- package/dist/lib/opencode.js +83 -1
- package/dist/lib/opencode.js.map +1 -1
- package/dist/lib/server.d.ts +3 -0
- package/dist/lib/server.d.ts.map +1 -1
- package/dist/lib/server.js +79 -36
- package/dist/lib/server.js.map +1 -1
- package/dist/lib/templates.d.ts +7 -0
- package/dist/lib/templates.d.ts.map +1 -0
- package/dist/lib/templates.js +30 -0
- package/dist/lib/templates.js.map +1 -0
- package/docs/02-convention.md +10 -5
- package/docs/03-cli.md +59 -14
- package/docs/04-agents.md +27 -3
- package/package.json +9 -19
- package/templates/{AGENTS.md → en/AGENTS.md} +8 -3
- package/templates/ja/AGENTS.md +38 -0
- package/templates/ja/room/BEHAVIOUR.md +18 -0
- package/templates/ja/room/BRIEF.md +16 -0
- package/templates/ja/room/SPEC.md +9 -0
- package/templates/ja/room/index.html +53 -0
- package/templates/modelroom.json +3 -1
- package/ui/assets/app.js +120 -47
- package/ui/dashboard.html +11 -7
- package/ui/kit.html +13 -9
- package/ui/modelroom.css +1 -2
- package/ui/room.html +11 -7
- package/ui/settings.html +11 -7
- /package/templates/{room → en/room}/BEHAVIOUR.md +0 -0
- /package/templates/{room → en/room}/BRIEF.md +0 -0
- /package/templates/{room → en/room}/SPEC.md +0 -0
- /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:
|
|
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.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
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
|
|
3
|
-
rendered in isolation, so a change can be seen before 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:
|
|
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.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
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>
|