@zseven-w/dsh-game-studio 0.1.0-rc.4 → 0.1.0-rc.6
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/.agents/plugins/marketplace.json +12 -0
- package/.claude-plugin/marketplace.json +15 -0
- package/.claude-plugin/plugin.json +8 -0
- package/.mcp.json +8 -0
- package/INSTALL.md +77 -0
- package/README.de.md +17 -6
- package/README.es.md +17 -6
- package/README.fr.md +17 -6
- package/README.hi.md +17 -6
- package/README.id.md +17 -6
- package/README.ja.md +17 -6
- package/README.ko.md +17 -6
- package/README.md +26 -7
- package/README.pt.md +17 -6
- package/README.ru.md +17 -6
- package/README.th.md +17 -6
- package/README.tr.md +17 -6
- package/README.vi.md +17 -6
- package/README.zh-TW.md +17 -6
- package/README.zh.md +26 -7
- package/lib/index.js +2686 -856
- package/lib/mcp-server.js +36211 -0
- package/package.json +34 -6
- package/plugins/game-studio/LICENSE +21 -0
- package/plugins/game-studio/assets/icon.svg +9 -0
- package/plugins/game-studio/assets/logo.png +0 -0
- package/plugins/game-studio/mcp.json +11 -0
- package/plugins/game-studio/plugin.json +54 -0
- package/plugins/game-studio/scripts/launch-mcp +28 -0
- package/plugins/game-studio/scripts/mcp-server.mjs +36211 -0
- package/plugins/game-studio/skills/game-studio/SKILL.md +42 -0
- package/plugins/game-studio/template/collector/assets/background.svg +49 -0
- package/plugins/game-studio/template/collector/assets/enemy.svg +29 -0
- package/plugins/game-studio/template/collector/assets/hero.svg +41 -0
- package/plugins/game-studio/template/collector/assets/pickup.svg +25 -0
- package/plugins/game-studio/template/collector/game.js +966 -0
- package/plugins/game-studio/template/collector/game.json +25 -0
- package/plugins/game-studio/template/voxel/assets/enemy.svg +12 -0
- package/plugins/game-studio/template/voxel/assets/ground.svg +1 -0
- package/plugins/game-studio/template/voxel/assets/hero.svg +19 -0
- package/plugins/game-studio/template/voxel/assets/pickup.svg +12 -0
- package/plugins/game-studio/template/voxel/game.js +826 -0
- package/plugins/game-studio/template/voxel/game.json +38 -0
- package/plugins/game-studio/vendor/three.LICENSE.txt +21 -0
- package/plugins/game-studio/vendor/three.js +4226 -0
- package/scripts/install-hosts.mjs +477 -0
- package/skills/game-studio/SKILL.md +42 -0
- package/template/collector/game.js +4 -1
- package/template/voxel/game.js +24 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zseven-game-studio",
|
|
3
|
+
"interface": { "displayName": "ZSeven · DSH Game Studio" },
|
|
4
|
+
"plugins": [
|
|
5
|
+
{
|
|
6
|
+
"name": "dsh-game-studio",
|
|
7
|
+
"source": { "source": "local", "path": "./plugins/game-studio" },
|
|
8
|
+
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
|
|
9
|
+
"category": "Creative & Media"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-game-studio",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "ZSeven-W"
|
|
5
|
+
},
|
|
6
|
+
"description": "DSH Game Studio for Claude Code, Codex, Antigravity, and DeepSeek Harness — create 2D/3D web games, run headless Chrome playtests, generate AI sprites, export WeChat Mini Games (< 4 MB), and publish to GitHub Pages.",
|
|
7
|
+
"plugins": [
|
|
8
|
+
{
|
|
9
|
+
"name": "dsh-game-studio",
|
|
10
|
+
"source": "./",
|
|
11
|
+
"description": "2D Canvas & 3D Three.js game studio with headless playtesting, AI sprite generation, WeChat Mini Game (< 4 MB) export & CLI upload, and GitHub Pages publishing",
|
|
12
|
+
"category": "creative"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-game-studio",
|
|
3
|
+
"version": "0.1.0-rc.6",
|
|
4
|
+
"description": "DSH Game Studio — build 2D/3D web games, run headless Chrome playtests (Web & WeChat Mini Game capsule simulation), generate transparent AI art, export < 4 MB WeChat Mini Games, and publish to GitHub Pages",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "ZSeven-W"
|
|
7
|
+
}
|
|
8
|
+
}
|
package/.mcp.json
ADDED
package/INSTALL.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Install and Start DSH Game Studio (`@zseven-w/dsh-game-studio`)
|
|
2
|
+
|
|
3
|
+
Give Codex, Claude Code, or Antigravity this prompt:
|
|
4
|
+
|
|
5
|
+
> Install and set up https://github.com/ZSeven-W/dsh-game-studio following its INSTALL.md, and verify the Game Studio MCP tools.
|
|
6
|
+
|
|
7
|
+
中文:
|
|
8
|
+
|
|
9
|
+
> 按照 https://github.com/ZSeven-W/dsh-game-studio 的 INSTALL.md 帮我安装并验证 DSH 游戏工坊插件。
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. DeepSeek Harness (DSH — includes Live Right-Sidebar UI)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
dsh plugin add @zseven-w/dsh-game-studio
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
In DeepSeek Harness, DSH Game Studio provides both the 15 agent tools and the interactive right-sidebar preview, candidate art picker, QR sharing modal, and Game Wall shelf.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Codex (`codex plugin`)
|
|
24
|
+
|
|
25
|
+
### Instructions for the installing agent
|
|
26
|
+
|
|
27
|
+
1. Require **Node.js 22+**, **Git**, **Google Chrome or Microsoft Edge** (for headless `game_studio_playtest` & WeChat SVG rasterization), and a recent **Codex CLI** with `codex plugin marketplace` and `codex plugin add`.
|
|
28
|
+
2. Clone the repository to a persistent location, install dependencies (`playwright-core`), and run `npm run setup`:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
git clone https://github.com/ZSeven-W/dsh-game-studio.git
|
|
32
|
+
cd dsh-game-studio
|
|
33
|
+
npm install
|
|
34
|
+
npm run setup
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
3. `npm run setup` (alias for `node scripts/install-hosts.mjs codex`) performs four verified steps:
|
|
38
|
+
- Records the current Node executable and checkout path in `~/.dsh-game-studio/` so the Codex Desktop GUI app can launch the stdio MCP server and locate `playwright-core` even when GUI `PATH` differs from the terminal.
|
|
39
|
+
- Registers this checkout as the `zseven-game-studio` local marketplace (`codex plugin marketplace add`).
|
|
40
|
+
- Installs `dsh-game-studio@zseven-game-studio` (`codex plugin add dsh-game-studio@zseven-game-studio`).
|
|
41
|
+
- Exercises Codex's real `codex app-server` plugin loader (`mcpServerStatus/list`) to verify `dsh_game_studio` loads all 15 tools (`game_studio_create`, `game_studio_build`, `game_studio_playtest`, `game_studio_generate_asset`, `game_studio_apply_asset`, `game_studio_revert_asset`, `game_studio_list`, `game_studio_export_wall`, `game_studio_export`, `game_studio_export_wechat`, `game_studio_upload_wechat`, `game_studio_versions`, `game_studio_restore_version`, `game_studio_share`, `game_studio_publish`) with zero `toolsError`.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 3. Claude Code / Antigravity / Grok CLI
|
|
46
|
+
|
|
47
|
+
From the cloned `dsh-game-studio` repository, run the one-click host installer for your preferred coding agent:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
node scripts/install-hosts.mjs claude # Register .claude-plugin marketplace + install dsh-game-studio@dsh-game-studio + permissions
|
|
51
|
+
node scripts/install-hosts.mjs agy # Register MCP server + game-studio skill in ~/.gemini/config/
|
|
52
|
+
node scripts/install-hosts.mjs grok # Register [mcp_servers.dsh-game-studio] in ~/.grok/config.toml
|
|
53
|
+
node scripts/install-hosts.mjs all # Install across Codex, Claude Code, Antigravity, and Grok
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Run a health check on browsers, AI art providers, GitHub CLI, and WeChat DevTools CLI at any time:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm run doctor
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
To uninstall cleanly:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
node scripts/install-hosts.mjs uninstall-codex
|
|
66
|
+
node scripts/install-hosts.mjs uninstall-claude
|
|
67
|
+
node scripts/install-hosts.mjs uninstall-agy
|
|
68
|
+
node scripts/install-hosts.mjs uninstall-grok
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. Optional External Tools
|
|
74
|
+
|
|
75
|
+
- **AI Art Generation (`game_studio_generate_asset`)**: Either set `OPENAI_API_KEY` or sign in to the local `codex` CLI.
|
|
76
|
+
- **WeChat Mini Game Upload (`game_studio_upload_wechat`)**: Install [WeChat DevTools](https://developers.weixin.qq.com/minigame/dev/devtools/download.html) (enable **Settings → Security → Service Port**) or `@tencent/wechatide-cli`. Note: `game_studio_export_wechat` requires **no** WeChat CLI — it generates the complete `< 4 MB` `wx-minigame/` directory locally.
|
|
77
|
+
- **GitHub Pages Publishing (`game_studio_publish`)**: Install and sign in to GitHub CLI (`gh auth login`).
|
package/README.de.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<sub>Paket: <code>@zseven-w/dsh-game-studio</code> · Aktuelles Plugin-Release: <code>0.1.0-rc.
|
|
17
|
+
<sub>Paket: <code>@zseven-w/dsh-game-studio</code> · Aktuelles Plugin-Release: <code>0.1.0-rc.5</code> · Getestet mit DSH <code>0.2.1-rc.5</code></sub><br />
|
|
18
|
+
🎮 <a href="https://finiking.github.io/dsh-games/wall/"><strong>Live-Demo-Spielewand (10 spielbare 2D- & 3D-Spiele)</strong></a> · <sub>In Online-Quellen abonnieren: <code>finiking/dsh-games</code></sub>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<br />
|
|
@@ -40,11 +41,14 @@ Bitte den Agenten in einfachen Worten um ein Spiel — „ein 3D-Spiel: ein rote
|
|
|
40
41
|
| 🤖 **Selbstspielende Playtests** | `game_studio_playtest` spielt den neuesten Code in einem Headless-Chrome oder -Edge und berichtet Phasen, Punkte, Bildrate, Skriptfehler und Screenshots. Spiele, die nicht mit Pfeiltasten gesteuert werden (Raster, Karten, Zielen, Rhythmus…), definieren `window.__autoplay`, damit der Playtest ihre echte Schleife spielt. |
|
|
41
42
|
| 🕰️ **Versionsverlauf** | Jeder Build, der das Spiel verändert hat, wird gespeichert; `game_studio_restore_version` bringt Code, Regeln und Grafiken gemeinsam zurück. |
|
|
42
43
|
| 📦 **Ein-Datei-Export** | `game_studio_export` schreibt eine in sich geschlossene HTML-Datei ohne Netzwerkzugriff — öffne sie in einem beliebigen Browser oder lade sie auf einen beliebigen statischen Host. |
|
|
43
|
-
| 📱 **Probiere es auf deinem Telefon** | `game_studio_share` öffnet einen temporären, schreibgeschützten Link in deinem lokalen Netzwerk, mit QR-Code in der Seitenleiste. |
|
|
44
|
-
|
|
|
44
|
+
| 📱 **Probiere es auf deinem Telefon** | `game_studio_share` öffnet einen temporären, schreibgeschützten Link in deinem lokalen Netzwerk — oder einen temporären öffentlichen Link über einen Cloudflare Quick Tunnel (`cloudflared`), damit Freunde in jedem Netzwerk spielen können — mit QR-Code in der Seitenleiste. |
|
|
45
|
+
| 🌐 **Auf GitHub Pages veröffentlichen** | `game_studio_publish` schiebt das gebaute HTML (oder die gesamte Spielewand) in ein öffentliches Repository unter deinem angemeldeten `gh`-Konto und aktiviert GitHub Pages für einen dauerhaften Link, der auch weiter erreichbar bleibt, wenn du deinen Rechner schließt. |
|
|
46
|
+
| 🗂️ **Meine Spiele** | Über das **+** der Seitenleiste **Game Studio · My games** wählen: jedes Spiel im Arbeitsbereich als Kachel mit dem Bild des letzten Testlaufs, filterbar nach 2D/3D und sortierbar nach Datum, Versionen oder Name. Ein Klick zum Spielen – ohne Agent, ohne Tokens. Du kannst außerdem Online-Spielequellen abonnieren (`owner/repo`, eine GitHub-Repository-URL oder eine GitHub-Pages-URL), um veröffentlichte Spiele neben deinen eigenen zu durchstöbern und zu spielen. **Export wall** packt deine lokalen Spiele in eine Offline-Seite zum Weiterschicken. |
|
|
45
47
|
|
|
46
48
|
## Damit gebaute Spiele
|
|
47
49
|
|
|
50
|
+
> 🎮 **10 Testspiele direkt im Browser ausprobieren (Desktop oder Mobil):** **[finiking.github.io/dsh-games/wall](https://finiking.github.io/dsh-games/wall/)** — oder `finiking/dsh-games` unter **Online-Quellen** in deiner lokalen Spielewand eintragen, um sie direkt in der Seitenleiste zu abonnieren und zu spielen.
|
|
51
|
+
|
|
48
52
|
Vier Spiele aus unseren Testläufen. Jedes begann mit dem Satz darunter in einer neuen Sitzung (Prompts aus dem Chinesischen übersetzt); bei einigen haben spätere Anfragen in derselben Sitzung nachgebessert, wie vermerkt. Aufgenommen mit dem eingebauten Autoplay des jeweiligen Spiels.
|
|
49
53
|
|
|
50
54
|
<p align="center">
|
|
@@ -83,11 +87,12 @@ Gemessen in einem echten DSH mit DeepSeek-V4.1-Flash, jedes Spiel aus einem Satz
|
|
|
83
87
|
| `game_studio_versions` | Listet gespeicherte Versionen auf, neueste zuerst. |
|
|
84
88
|
| `game_studio_restore_version` | Stellt eine frühere Version des gesamten Spiels wieder her. |
|
|
85
89
|
| `game_studio_export` | Exportiert eine in sich geschlossene, offline HTML-Datei. |
|
|
86
|
-
| `game_studio_share` | Öffnet (oder schließt) einen temporären, schreibgeschützten Link im lokalen Netzwerk,
|
|
90
|
+
| `game_studio_share` | Öffnet (oder schließt) einen temporären, schreibgeschützten Link im lokalen Netzwerk, oder mit `public: true` einen temporären öffentlichen Link über `cloudflared`, sodass jeder mit dem Link spielen kann. |
|
|
87
91
|
| `game_studio_list` | Listet die Spiele im Arbeitsbereich mit Titel, 2D/3D, Build-Stand und Versionen, damit der Agent „das Pinguin-Spiel“ beim Namen findet. |
|
|
88
92
|
| `game_studio_export_wall` | Exportiert die Spielewand: eine Offline-HTML-Seite mit einer Kachel pro gebautem Spiel; ein Klick auf eine Kachel startet es. |
|
|
93
|
+
| `game_studio_publish` | Veröffentlicht das gebaute Spiel (oder mit `wall: true` die Spielewand) über das lokal angemeldete `gh` CLI auf GitHub Pages, oder mit `remove: true` wird es gelöscht. Fragt zuerst nach Freigabe und schreibt nur in Repositories, die seine `.dsh-game-studio.json`-Markierung tragen. |
|
|
89
94
|
|
|
90
|
-
Die Schaltflächen der Seitenleiste (Anwenden, Zurücksetzen, Bauen, Exportieren, Wiederherstellen, Teilen) rufen dieselben Operationen über den Befehl `/game-studio` auf.
|
|
95
|
+
Die Schaltflächen der Seitenleiste (Anwenden, Zurücksetzen, Bauen, Exportieren, Wiederherstellen, Teilen, Veröffentlichen) rufen dieselben Operationen über den Befehl `/game-studio` auf.
|
|
91
96
|
|
|
92
97
|
## Bilddienste und Ausgaben
|
|
93
98
|
|
|
@@ -102,7 +107,9 @@ Die Schaltflächen der Seitenleiste (Anwenden, Zurücksetzen, Bauen, Exportieren
|
|
|
102
107
|
|
|
103
108
|
- Spiele laufen in einem Sandbox-iframe mit einer Content-Security-Policy, die Netzwerkzugriff blockiert; exportierte Dateien stellen keine Netzwerkanfragen.
|
|
104
109
|
- Die einzigen Daten, die deinen Rechner verlassen, sind die Prompts — und das Referenzbild, falls du eines angibst — an den Bilddienst, den du wählst.
|
|
105
|
-
- Der Share-Link ist schreibgeschützt, liefert nur den Build dieses einen Spiels
|
|
110
|
+
- Der Share-Link ist schreibgeschützt, liefert nur den Build dieses einen Spiels und schließt nach der von dir festgelegten Zeit (standardmäßig 30 Minuten). Lokale Links lauschen ausschließlich in deinem lokalen Netzwerk; öffentliche Links lauschen ausschließlich auf `127.0.0.1` und tunneln nach deiner Freigabe durch Cloudflare (`trycloudflare.com`).
|
|
111
|
+
- Die Veröffentlichung auf GitHub Pages (`game_studio_publish`) verwendet dein lokal angemeldetes `gh` CLI (das Plugin greift niemals auf deinen GitHub-Token zu), lädt nach deiner Freigabe nur das gebaute HTML in ein **öffentliches** Repository hoch und verweigert das Schreiben in jedes bestehende Repository, das seine `.dsh-game-studio.json`-Markierung nicht trägt.
|
|
112
|
+
- Online-Spielequellen laufen auf der eigenen Website des Anbieters in einem Sandbox-iframe (`sandbox="allow-scripts"`) ohne Zugriff auf DSH oder deinen Workspace und werden beim Exportieren oder Veröffentlichen deiner lokalen Spielewand niemals kopiert oder weitergeleitet.
|
|
106
113
|
- API-Schlüssel werden aus den DSH-Credentials oder der Umgebung gelesen und niemals in Projekte, Logs oder Tool-Ergebnisse geschrieben.
|
|
107
114
|
|
|
108
115
|
## Voraussetzungen
|
|
@@ -110,6 +117,7 @@ Die Schaltflächen der Seitenleiste (Anwenden, Zurücksetzen, Bauen, Exportieren
|
|
|
110
117
|
- DeepSeek Harness `0.2.1` oder neuer (Web oder Desktop), Node.js `24.11` oder neuer.
|
|
111
118
|
- Google Chrome oder Microsoft Edge auf demselben Rechner für Playtests.
|
|
112
119
|
- Für KI-Grafiken entweder ein OpenAI-API-Schlüssel oder das angemeldete Codex CLI. Ohne eines von beiden funktionieren Spiele weiterhin mit ihren im Code gezeichneten Figuren.
|
|
120
|
+
- Optional: `cloudflared` (`brew install cloudflared` auf macOS) für temporäre öffentliche Share-Links; `gh` (`brew install gh` und `gh auth login`) für die Veröffentlichung auf GitHub Pages.
|
|
113
121
|
|
|
114
122
|
## In DSH installieren
|
|
115
123
|
|
|
@@ -149,6 +157,9 @@ Lege diese unter `config` in der `cordis.patch.yml` deines Profils fest:
|
|
|
149
157
|
| `codexReasoningEffort` | `low` | Reasoning-Aufwand für Codex-Bildläufe. |
|
|
150
158
|
| `codexTimeoutMinutes` | `15` | Bricht ein Codex-Bild nach dieser Dauer ab. |
|
|
151
159
|
| `confirmSpending` | `true` | Fragt vor jeder Erzeugung nach Freigabe. |
|
|
160
|
+
| `cloudflaredPath` | wird auf dem `PATH` oder über Homebrew gefunden | `cloudflared`-Programmdatei für temporäre öffentliche Share-Links. |
|
|
161
|
+
| `ghPath` | wird auf dem `PATH` oder über Homebrew gefunden | GitHub-CLI-Programmdatei (`gh`) für die Veröffentlichung auf GitHub Pages. |
|
|
162
|
+
| `githubRepo` | `dsh-games` | Name des öffentlichen GitHub-Repositorys (unter deinem angemeldeten Konto) für GitHub Pages. |
|
|
152
163
|
|
|
153
164
|
## Format des Spielprojekts
|
|
154
165
|
|
package/README.es.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<sub>Paquete: <code>@zseven-w/dsh-game-studio</code> · Versión actual del plugin: <code>0.1.0-rc.
|
|
17
|
+
<sub>Paquete: <code>@zseven-w/dsh-game-studio</code> · Versión actual del plugin: <code>0.1.0-rc.5</code> · Probado con DSH <code>0.2.1-rc.5</code></sub><br />
|
|
18
|
+
🎮 <a href="https://finiking.github.io/dsh-games/wall/"><strong>Muro de juegos de demostración en vivo (10 juegos 2D y 3D jugables)</strong></a> · <sub>Suscribirse en Fuentes en línea: <code>finiking/dsh-games</code></sub>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<br />
|
|
@@ -40,11 +41,14 @@ Pídele al agente un juego en palabras sencillas — «un juego 3D: un panda roj
|
|
|
40
41
|
| 🤖 **Pruebas de juego autónomas** | `game_studio_playtest` juega el código más reciente en un Chrome o Edge sin interfaz e informa de fases, puntuación, frecuencia de fotogramas, errores de script y capturas de pantalla. Los juegos que no se dirigen con las flechas (cuadrículas, cartas, puntería, ritmo…) definen `window.__autoplay`, de modo que la prueba de juego ejecuta su bucle real. |
|
|
41
42
|
| 🕰️ **Historial de versiones** | Cada compilación que cambió el juego se guarda; `game_studio_restore_version` restaura juntos el código, las reglas y el arte. |
|
|
42
43
|
| 📦 **Exportación en un solo archivo** | `game_studio_export` escribe un archivo HTML autosuficiente y sin acceso a la red — ábrelo en cualquier navegador o ponlo en cualquier servidor estático. |
|
|
43
|
-
| 📱 **Pruébalo en tu teléfono** | `game_studio_share` abre un enlace temporal de solo lectura en tu red local
|
|
44
|
-
|
|
|
44
|
+
| 📱 **Pruébalo en tu teléfono** | `game_studio_share` abre un enlace temporal de solo lectura en tu red local — o un enlace público temporal a través de un Cloudflare Quick Tunnel (`cloudflared`) para que tus amigos puedan jugar desde cualquier red — con un código QR en la barra lateral. |
|
|
45
|
+
| 🌐 **Publicar en GitHub Pages** | `game_studio_publish` sube el HTML compilado (o el muro de juegos completo) a un repositorio público bajo tu cuenta de `gh` con la sesión iniciada y activa GitHub Pages para obtener un enlace permanente que se mantiene en línea después de apagar tu computadora. |
|
|
46
|
+
| 🗂️ **Mis juegos** | Abre el **+** de la barra lateral y elige **Game Studio · My games**: cada juego del espacio de trabajo como una tarjeta con la imagen de su última prueba, con filtro 2D/3D y orden por fecha, versiones o nombre. Un clic para jugar, sin agente y sin tokens. También puedes suscribirte a fuentes de juegos en línea (`owner/repo`, URL de repositorio de GitHub o URL de GitHub Pages) para explorar y jugar juegos publicados junto a los tuyos. **Export wall** reúne tus juegos locales en una sola página sin conexión para enviarla a tus amigos. |
|
|
45
47
|
|
|
46
48
|
## Juegos hechos con él
|
|
47
49
|
|
|
50
|
+
> 🎮 **Prueba 10 juegos en vivo desde tu navegador (escritorio o móvil):** **[finiking.github.io/dsh-games/wall](https://finiking.github.io/dsh-games/wall/)** — o introduce `finiking/dsh-games` en las **Fuentes en línea** de tu muro de juegos local para suscribirte y jugarlos en la barra lateral.
|
|
51
|
+
|
|
48
52
|
Cuatro juegos de nuestras pruebas. Cada uno empezó con la frase que aparece debajo, en una sesión nueva (instrucciones traducidas del chino); en algunos, peticiones posteriores en la misma sesión hicieron retoques, como se indica. Las partidas se grabaron con el piloto automático de cada juego.
|
|
49
53
|
|
|
50
54
|
<p align="center">
|
|
@@ -83,11 +87,12 @@ Medido en un DSH real con DeepSeek-V4.1-Flash, cada juego creado a partir de una
|
|
|
83
87
|
| `game_studio_versions` | Enumera las versiones guardadas, la más reciente primero. |
|
|
84
88
|
| `game_studio_restore_version` | Restaura una versión anterior del juego completo. |
|
|
85
89
|
| `game_studio_export` | Exporta un único archivo HTML autosuficiente y sin conexión. |
|
|
86
|
-
| `game_studio_share` | Abre (o cierra) un enlace temporal de solo lectura en la red local para que
|
|
90
|
+
| `game_studio_share` | Abre (o cierra) un enlace temporal de solo lectura en la red local, o acepta `public: true` para un enlace público temporal a través de `cloudflared` con el que cualquier persona que tenga el enlace pueda jugar. |
|
|
87
91
|
| `game_studio_list` | Lista los juegos del espacio de trabajo con título, 2D/3D, estado de compilación y versiones, para que el agente encuentre «el juego del pingüino» por su nombre. |
|
|
88
92
|
| `game_studio_export_wall` | Exporta el muro de juegos: una página HTML sin conexión con una tarjeta por juego compilado; haz clic en una para jugar. |
|
|
93
|
+
| `game_studio_publish` | Publica el juego compilado (o `wall: true` para el muro de juegos) en GitHub Pages a través de la CLI local `gh` con la sesión iniciada, o acepta `remove: true` para eliminarlo. Pide aprobación primero y solo escribe en repositorios que lleven su marcador `.dsh-game-studio.json`. |
|
|
89
94
|
|
|
90
|
-
Los botones de la barra lateral (aplicar, revertir, compilar, exportar, restaurar, compartir) llaman a las mismas operaciones a través del comando `/game-studio`.
|
|
95
|
+
Los botones de la barra lateral (aplicar, revertir, compilar, exportar, restaurar, compartir, publicar) llaman a las mismas operaciones a través del comando `/game-studio`.
|
|
91
96
|
|
|
92
97
|
## Servicios de imágenes y gasto
|
|
93
98
|
|
|
@@ -102,7 +107,9 @@ Los botones de la barra lateral (aplicar, revertir, compilar, exportar, restaura
|
|
|
102
107
|
|
|
103
108
|
- Los juegos corren en un iframe aislado con una política de seguridad de contenidos que bloquea el acceso a la red; los archivos exportados no hacen peticiones de red.
|
|
104
109
|
- Lo único que sale de tu máquina son los prompts — y la imagen de referencia, si aportas una — hacia el servicio de imágenes que elijas.
|
|
105
|
-
- El enlace para compartir es de solo lectura, sirve solo la compilación de ese juego
|
|
110
|
+
- El enlace para compartir es de solo lectura, sirve solo la compilación de ese juego y se cierra pasado el tiempo que configures (30 minutos por defecto). Los enlaces locales escuchan únicamente en tu red local; los enlaces públicos escuchan solo en `127.0.0.1` y pasan por un túnel de Cloudflare (`trycloudflare.com`) después de que lo apruebes.
|
|
111
|
+
- Publicar en GitHub Pages (`game_studio_publish`) usa tu CLI local `gh` con la sesión iniciada (el plugin nunca toca tu token de GitHub), sube solo el HTML compilado a un repositorio **público** después de que lo apruebes y se niega a escribir en cualquier repositorio existente que no lleve su marcador `.dsh-game-studio.json`.
|
|
112
|
+
- Las fuentes de juegos en línea corren en el propio sitio del proveedor dentro de un iframe aislado (`sandbox="allow-scripts"`) sin acceso a DSH ni a tu espacio de trabajo, y nunca se copian ni se reenvían al exportar o publicar tu muro de juegos local.
|
|
106
113
|
- Las claves de API se leen de las credenciales de DSH o del entorno y nunca se escriben en proyectos, registros ni resultados de herramientas.
|
|
107
114
|
|
|
108
115
|
## Requisitos
|
|
@@ -110,6 +117,7 @@ Los botones de la barra lateral (aplicar, revertir, compilar, exportar, restaura
|
|
|
110
117
|
- DeepSeek Harness `0.2.1` o posterior (web o escritorio), Node.js `24.11` o posterior.
|
|
111
118
|
- Google Chrome o Microsoft Edge en la misma computadora para las pruebas de juego.
|
|
112
119
|
- Para el arte con IA, una clave de API de OpenAI o el Codex CLI con la sesión iniciada. Sin ninguna de las dos, los juegos siguen funcionando con sus personajes dibujados por código.
|
|
120
|
+
- Opcional: `cloudflared` (`brew install cloudflared` en macOS) para enlaces públicos temporales para compartir; `gh` (`brew install gh` y `gh auth login`) para publicar en GitHub Pages.
|
|
113
121
|
|
|
114
122
|
## Instalar en DSH
|
|
115
123
|
|
|
@@ -149,6 +157,9 @@ Define estas opciones bajo `config` en el `cordis.patch.yml` de tu perfil:
|
|
|
149
157
|
| `codexReasoningEffort` | `low` | Esfuerzo de razonamiento para las ejecuciones de imágenes de Codex. |
|
|
150
158
|
| `codexTimeoutMinutes` | `15` | Abandona una imagen de Codex pasado este tiempo. |
|
|
151
159
|
| `confirmSpending` | `true` | Pide aprobación antes de cada generación. |
|
|
160
|
+
| `cloudflaredPath` | se encuentra en `PATH` o en Homebrew | Ejecutable de `cloudflared` para los enlaces públicos temporales para compartir. |
|
|
161
|
+
| `ghPath` | se encuentra en `PATH` o en Homebrew | Ejecutable de la CLI de GitHub (`gh`) para publicar en GitHub Pages. |
|
|
162
|
+
| `githubRepo` | `dsh-games` | Nombre del repositorio público de GitHub (bajo tu cuenta con la sesión iniciada) para GitHub Pages. |
|
|
152
163
|
|
|
153
164
|
## Formato del proyecto de juego
|
|
154
165
|
|
package/README.fr.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<sub>Paquet : <code>@zseven-w/dsh-game-studio</code> · Version actuelle du plugin : <code>0.1.0-rc.
|
|
17
|
+
<sub>Paquet : <code>@zseven-w/dsh-game-studio</code> · Version actuelle du plugin : <code>0.1.0-rc.5</code> · Testé avec DSH <code>0.2.1-rc.5</code></sub><br />
|
|
18
|
+
🎮 <a href="https://finiking.github.io/dsh-games/wall/"><strong>Mur de jeux de démo en direct (10 jeux 2D et 3D jouables)</strong></a> · <sub>S'abonner dans Sources en ligne : <code>finiking/dsh-games</code></sub>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<br />
|
|
@@ -40,11 +41,14 @@ Demandez un jeu à l'agent en mots simples — « un jeu 3D : un panda roux réc
|
|
|
40
41
|
| 🤖 **Tests de jeu autonomes** | `game_studio_playtest` joue le code le plus récent dans un Chrome ou Edge headless et rapporte les phases, le score, la fréquence d'images, les erreurs de script et des captures d'écran. Les jeux qui ne se pilotent pas aux touches fléchées (grilles, cartes, visée, rythme…) définissent `window.__autoplay`, afin que le test joue leur vraie boucle. |
|
|
41
42
|
| 🕰️ **Historique des versions** | Chaque build qui a modifié le jeu est enregistré ; `game_studio_restore_version` restaure code, règles et illustrations ensemble. |
|
|
42
43
|
| 📦 **Export en un seul fichier** | `game_studio_export` écrit un fichier HTML autonome sans accès réseau — ouvrez-le dans n'importe quel navigateur ou déposez-le sur n'importe quel hébergement statique. |
|
|
43
|
-
| 📱 **Essayez-le sur votre téléphone** | `game_studio_share` ouvre un lien temporaire en lecture seule sur votre réseau local, avec un code QR dans la barre latérale. |
|
|
44
|
-
|
|
|
44
|
+
| 📱 **Essayez-le sur votre téléphone** | `game_studio_share` ouvre un lien temporaire en lecture seule sur votre réseau local — ou un lien public temporaire via un Cloudflare Quick Tunnel (`cloudflared`), pour que des amis sur n'importe quel réseau puissent jouer — avec un code QR dans la barre latérale. |
|
|
45
|
+
| 🌐 **Publier sur GitHub Pages** | `game_studio_publish` envoie le HTML construit (ou tout le mur de jeux) vers un dépôt public sous votre compte `gh` connecté et active GitHub Pages, pour un lien permanent qui reste en ligne même après avoir éteint votre ordinateur. |
|
|
46
|
+
| 🗂️ **Mes jeux** | Ouvrez le **+** de la barre latérale et choisissez **Game Studio · My games** : chaque jeu de l'espace de travail en vignette, avec l'image de son dernier test, filtrable 2D/3D et triable par date, versions ou nom. Un clic pour jouer — sans agent, sans jetons. Vous pouvez aussi vous abonner à des sources de jeux en ligne (`owner/repo`, URL de dépôt GitHub ou URL GitHub Pages) pour parcourir et jouer aux jeux publiés aux côtés des vôtres. **Export wall** réunit vos jeux locaux dans une seule page hors ligne à envoyer à des amis. |
|
|
45
47
|
|
|
46
48
|
## Des jeux faits avec
|
|
47
49
|
|
|
50
|
+
> 🎮 **Essayez 10 jeux de test en direct dans votre navigateur (ordinateur ou mobile) :** **[finiking.github.io/dsh-games/wall](https://finiking.github.io/dsh-games/wall/)** — ou saisissez `finiking/dsh-games` dans les **Sources en ligne** de votre mur de jeux local pour vous y abonner et y jouer dans votre barre latérale.
|
|
51
|
+
|
|
48
52
|
Quatre jeux issus de nos tests. Chacun est parti de la phrase indiquée dessous, dans une session neuve (consignes traduites du chinois) ; certains ont ensuite été retouchés par d'autres demandes dans la même session, comme indiqué. Les parties sont enregistrées avec le pilote automatique de chaque jeu.
|
|
49
53
|
|
|
50
54
|
<p align="center">
|
|
@@ -83,11 +87,12 @@ Mesuré dans un vrai DSH avec DeepSeek-V4.1-Flash, chaque jeu créé à partir d
|
|
|
83
87
|
| `game_studio_versions` | Liste les versions enregistrées, de la plus récente à la plus ancienne. |
|
|
84
88
|
| `game_studio_restore_version` | Restaure une version antérieure du jeu entier. |
|
|
85
89
|
| `game_studio_export` | Exporte un seul fichier HTML autonome et hors ligne. |
|
|
86
|
-
| `game_studio_share` | Ouvre (ou ferme) un lien temporaire en lecture seule sur le réseau local pour
|
|
90
|
+
| `game_studio_share` | Ouvre (ou ferme) un lien temporaire en lecture seule sur le réseau local, ou prend `public: true` pour un lien public temporaire via `cloudflared`, accessible à quiconque possède le lien. |
|
|
87
91
|
| `game_studio_list` | Liste les jeux de l'espace de travail avec titre, 2D/3D, état de build et versions, pour que l'agent trouve « le jeu du manchot » par son nom. |
|
|
88
92
|
| `game_studio_export_wall` | Exporte le mur de jeux : une page HTML hors ligne avec une vignette par jeu construit ; un clic sur une vignette pour y jouer. |
|
|
93
|
+
| `game_studio_publish` | Publie le jeu construit (ou `wall: true` pour le mur de jeux) sur GitHub Pages via le CLI `gh` local connecté, ou prend `remove: true` pour le supprimer. Demande une approbation au préalable et n'écrit que dans les dépôts portant son marqueur `.dsh-game-studio.json`. |
|
|
89
94
|
|
|
90
|
-
Les boutons de la barre latérale (appliquer, annuler, compiler, exporter, restaurer, partager) appellent les mêmes opérations via la commande `/game-studio`.
|
|
95
|
+
Les boutons de la barre latérale (appliquer, annuler, compiler, exporter, restaurer, partager, publier) appellent les mêmes opérations via la commande `/game-studio`.
|
|
91
96
|
|
|
92
97
|
## Services d'images et dépenses
|
|
93
98
|
|
|
@@ -102,7 +107,9 @@ Les boutons de la barre latérale (appliquer, annuler, compiler, exporter, resta
|
|
|
102
107
|
|
|
103
108
|
- Les jeux s'exécutent dans une iframe isolée avec une politique de sécurité du contenu qui bloque l'accès réseau ; les fichiers exportés n'émettent aucune requête réseau.
|
|
104
109
|
- Les seuls éléments envoyés hors de votre machine sont les prompts — et l'image de référence, si vous en fournissez une — vers le service d'images que vous choisissez.
|
|
105
|
-
- Le lien de partage est en lecture seule, ne sert que le build de ce jeu
|
|
110
|
+
- Le lien de partage est en lecture seule, ne sert que le build de ce jeu et se ferme après le délai que vous définissez (30 minutes par défaut). Les liens locaux n'écoutent que sur votre réseau local ; les liens publics n'écoutent que sur `127.0.0.1` et passent par un tunnel Cloudflare (`trycloudflare.com`) après votre approbation.
|
|
111
|
+
- La publication sur GitHub Pages (`game_studio_publish`) utilise le CLI `gh` local connecté (le plugin ne touche jamais à votre jeton GitHub), n'envoie que le HTML construit vers un dépôt **public** après votre approbation et refuse d'écrire dans tout dépôt existant ne portant pas son marqueur `.dsh-game-studio.json`.
|
|
112
|
+
- Les sources de jeux en ligne s'exécutent sur le site même du fournisseur, dans une iframe isolée (`sandbox="allow-scripts"`), sans accès à DSH ni à votre espace de travail, et ne sont jamais copiées ni transmises lors de l'export ou de la publication de votre mur de jeux local.
|
|
106
113
|
- Les clés API sont lues depuis les identifiants DSH ou l'environnement et ne sont jamais écrites dans les projets, les journaux ou les résultats d'outils.
|
|
107
114
|
|
|
108
115
|
## Prérequis
|
|
@@ -110,6 +117,7 @@ Les boutons de la barre latérale (appliquer, annuler, compiler, exporter, resta
|
|
|
110
117
|
- DeepSeek Harness `0.2.1` ou version ultérieure (web ou bureau), Node.js `24.11` ou version ultérieure.
|
|
111
118
|
- Google Chrome ou Microsoft Edge sur le même ordinateur pour les tests de jeu.
|
|
112
119
|
- Pour l'art IA, soit une clé API OpenAI, soit le CLI Codex connecté. Sans aucun des deux, les jeux fonctionnent quand même avec leurs personnages dessinés par code.
|
|
120
|
+
- Facultatif : `cloudflared` (`brew install cloudflared` sur macOS) pour les liens de partage publics temporaires ; `gh` (`brew install gh` puis `gh auth login`) pour la publication sur GitHub Pages.
|
|
113
121
|
|
|
114
122
|
## Installer dans DSH
|
|
115
123
|
|
|
@@ -149,6 +157,9 @@ Définissez ces options sous `config` dans le `cordis.patch.yml` de votre profil
|
|
|
149
157
|
| `codexReasoningEffort` | `low` | Effort de raisonnement pour les générations d'images Codex. |
|
|
150
158
|
| `codexTimeoutMinutes` | `15` | Abandonne une image Codex après ce délai. |
|
|
151
159
|
| `confirmSpending` | `true` | Demande une approbation avant chaque génération. |
|
|
160
|
+
| `cloudflaredPath` | trouvé sur `PATH` ou via Homebrew | Exécutable `cloudflared` pour les liens de partage publics temporaires. |
|
|
161
|
+
| `ghPath` | trouvé sur `PATH` ou via Homebrew | Exécutable du CLI GitHub (`gh`) pour la publication sur GitHub Pages. |
|
|
162
|
+
| `githubRepo` | `dsh-games` | Nom du dépôt GitHub public (sous votre compte connecté) pour GitHub Pages. |
|
|
152
163
|
|
|
153
164
|
## Format du projet de jeu
|
|
154
165
|
|
package/README.hi.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<sub>पैकेज: <code>@zseven-w/dsh-game-studio</code> · वर्तमान प्लगइन रिलीज़: <code>0.1.0-rc.
|
|
17
|
+
<sub>पैकेज: <code>@zseven-w/dsh-game-studio</code> · वर्तमान प्लगइन रिलीज़: <code>0.1.0-rc.5</code> · DSH <code>0.2.1-rc.5</code> के साथ परीक्षित</sub><br />
|
|
18
|
+
🎮 <a href="https://finiking.github.io/dsh-games/wall/"><strong>लाइव डेमो गेम वॉल (10 खेलने योग्य 2D और 3D गेम्स)</strong></a> · <sub>ऑनलाइन स्रोतों में सब्सक्राइब करें: <code>finiking/dsh-games</code></sub>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<br />
|
|
@@ -40,11 +41,14 @@
|
|
|
40
41
|
| 🤖 **खुद खेलने वाले प्लेटैस्ट** | `game_studio_playtest` हेडलेस Chrome या Edge में नवीनतम कोड को चलाकर खेलता है और फ़ेज़, स्कोर, फ़्रेम रेट, स्क्रिप्ट एरर और स्क्रीनशॉट की रिपोर्ट देता है। जो गेम्स एरो कीज़ से नहीं चलते (ग्रिड, कार्ड, निशाना लगाना, रिदम…), वे `window.__autoplay` परिभाषित करते हैं, ताकि प्लेटैस्ट उनका असली गेमप्ले लूप खेल सके। |
|
|
41
42
|
| 🕰️ **वर्ज़न हिस्ट्री** | गेम में बदलाव करने वाला हर बिल्ड सेव होता है; `game_studio_restore_version` कोड, नियम और आर्ट तीनों को एक साथ वापस ले आता है। |
|
|
42
43
|
| 📦 **सिंगल-फ़ाइल एक्सपोर्ट** | `game_studio_export` बिना किसी नेटवर्क एक्सेस वाली एक आत्मनिर्भर HTML फ़ाइल बनाता है — इसे किसी भी ब्राउज़र में खोलें या किसी भी स्टैटिक होस्ट पर डालें। |
|
|
43
|
-
| 📱 **अपने फ़ोन पर आज़माएँ** | `game_studio_share` साइडबार में एक QR कोड के साथ आपके लोकल नेटवर्क पर एक अस्थायी रीड-ओनली लिंक खोलता है। |
|
|
44
|
-
|
|
|
44
|
+
| 📱 **अपने फ़ोन पर आज़माएँ** | `game_studio_share` साइडबार में एक QR कोड के साथ आपके लोकल नेटवर्क पर एक अस्थायी रीड-ओनली लिंक — या Cloudflare Quick Tunnel (`cloudflared`) के माध्यम से एक अस्थायी पब्लिक लिंक ताकि किसी भी नेटवर्क पर मौजूद दोस्त खेल सकें — खोलता है। |
|
|
45
|
+
| 🌐 **GitHub Pages पर पब्लिश करें** | `game_studio_publish` बिल्ड किए गए HTML (या पूरे गेम वॉल) को आपके साइन-इन किए गए `gh` अकाउंट के अंतर्गत एक पब्लिक रिपॉज़िटरी में पुश करता है और एक स्थायी लिंक के लिए GitHub Pages सक्षम करता है जो आपके कंप्यूटर बंद करने के बाद भी लाइव रहता है। |
|
|
46
|
+
| 🗂️ **मेरे गेम** | साइडबार का **+** खोलें और **Game Studio · My games** चुनें: वर्कस्पेस का हर गेम आख़िरी प्लेटेस्ट की तस्वीर वाली टाइल के रूप में दिखता है, 2D/3D फ़िल्टर और तारीख़, वर्शन या नाम से क्रम के साथ। क्लिक करते ही खेलें — न agent, न टोकन। आप अपने गेम्स के साथ-साथ पब्लिश किए गए गेम्स को ब्राउज़ करने और खेलने के लिए ऑनलाइन गेम स्रोतों (`owner/repo`, GitHub रिपॉज़िटरी URL, या GitHub Pages URL) को सब्सक्राइब भी कर सकते हैं। **Export wall** आपके लोकल गेम्स को एक ऑफ़लाइन पेज में बाँधता है जिसे दोस्तों को भेज सकते हैं। |
|
|
45
47
|
|
|
46
48
|
## इससे बने गेम
|
|
47
49
|
|
|
50
|
+
> 🎮 **अपने ब्राउज़र (डेस्कटॉप या मोबाइल) में 10 टेस्ट गेम्स लाइव खेलकर देखें:** **[finiking.github.io/dsh-games/wall](https://finiking.github.io/dsh-games/wall/)** — या साइडबार में सब्सक्राइब करने और खेलने के लिए अपने लोकल गेम वॉल के **ऑनलाइन स्रोतों** में `finiking/dsh-games` दर्ज करें।
|
|
51
|
+
|
|
48
52
|
हमारे परीक्षणों के चार गेम। हर एक नए सत्र में नीचे लिखे एक वाक्य से शुरू हुआ (प्रॉम्प्ट चीनी से अनूदित); कुछ में बाद में उसी सत्र के अनुरोधों से बदलाव किए गए, जैसा नोट किया है। गेमप्ले हर गेम के अपने ऑटोप्ले से रिकॉर्ड किया गया है।
|
|
49
53
|
|
|
50
54
|
<p align="center">
|
|
@@ -83,11 +87,12 @@
|
|
|
83
87
|
| `game_studio_versions` | सेव किए गए वर्ज़न की सूची दिखाएँ, सबसे नया सबसे पहले। |
|
|
84
88
|
| `game_studio_restore_version` | पूरे गेम के किसी पुराने वर्ज़न को रीस्टोर करें। |
|
|
85
89
|
| `game_studio_export` | एक आत्मनिर्भर, ऑफ़लाइन HTML फ़ाइल एक्सपोर्ट करें। |
|
|
86
|
-
| `game_studio_share` | लोकल नेटवर्क पर एक अस्थायी रीड-ओनली लिंक खोलें (या बंद करें) ताकि
|
|
90
|
+
| `game_studio_share` | लोकल नेटवर्क पर एक अस्थायी रीड-ओनली लिंक खोलें (या बंद करें), या `cloudflared` के माध्यम से एक अस्थायी पब्लिक लिंक के लिए `public: true` पास करें ताकि लिंक वाला कोई भी व्यक्ति खेल सके। |
|
|
87
91
|
| `game_studio_list` | वर्कस्पेस के गेम्स को शीर्षक, 2D/3D, बिल्ड स्थिति और वर्शन के साथ सूचीबद्ध करता है, ताकि agent "वह पेंगुइन वाला गेम" नाम से ढूँढ सके। |
|
|
88
92
|
| `game_studio_export_wall` | गेम वॉल एक्सपोर्ट करता है: हर बने हुए गेम की एक टाइल वाला ऑफ़लाइन HTML पेज; टाइल पर क्लिक करके खेलें। |
|
|
93
|
+
| `game_studio_publish` | लोकल साइन-इन किए गए `gh` CLI के माध्यम से बिल्ड किए गए गेम (या गेम वॉल के लिए `wall: true`) को GitHub Pages पर पब्लिश करें, या इसे हटाने के लिए `remove: true` पास करें। यह पहले मंज़ूरी माँगता है और केवल उन्हीं रिपॉज़िटरी में लिखता है जिनमें इसका `.dsh-game-studio.json` मार्कर होता है। |
|
|
89
94
|
|
|
90
|
-
साइडबार के बटन (apply, revert, build, export, restore, share) `/game-studio` कमांड के माध्यम से इन्हीं ऑपरेशनों को कॉल करते हैं।
|
|
95
|
+
साइडबार के बटन (apply, revert, build, export, restore, share, publish) `/game-studio` कमांड के माध्यम से इन्हीं ऑपरेशनों को कॉल करते हैं।
|
|
91
96
|
|
|
92
97
|
## इमेज सेवाएँ और खर्च
|
|
93
98
|
|
|
@@ -102,7 +107,9 @@
|
|
|
102
107
|
|
|
103
108
|
- गेम्स एक सैंडबॉक्स्ड iframe में कंटेंट सिक्योरिटी पॉलिसी के साथ चलते हैं जो नेटवर्क एक्सेस को ब्लॉक करती है; एक्सपोर्ट की गई फ़ाइलें कोई नेटवर्क रिक्वेस्ट नहीं करतीं।
|
|
104
109
|
- आपकी मशीन से बाहर केवल प्रॉम्प्ट्स — और यदि आप देते हैं तो रेफ़रेंस तस्वीर — आपके द्वारा चुनी गई इमेज सेवा को भेजे जाते हैं।
|
|
105
|
-
- शेयर लिंक रीड-ओनली होता है, केवल उस गेम का बिल्ड सर्व करता है,
|
|
110
|
+
- शेयर लिंक रीड-ओनली होता है, केवल उस गेम का बिल्ड सर्व करता है, और आपके द्वारा निर्धारित समय (डिफ़ॉल्ट रूप से 30 मिनट) के बाद बंद हो जाता है। लोकल लिंक केवल आपके लोकल नेटवर्क पर सुनते हैं; पब्लिक लिंक केवल `127.0.0.1` पर सुनते हैं और आपकी मंज़ूरी के बाद Cloudflare (`trycloudflare.com`) के माध्यम से टनल करते हैं।
|
|
111
|
+
- GitHub Pages पर पब्लिश करना (`game_studio_publish`) आपके लोकल साइन-इन किए गए `gh` CLI का उपयोग करता है (प्लगइन कभी भी आपके GitHub टोकन को नहीं छूता), आपकी मंज़ूरी के बाद केवल बिल्ड किए गए HTML को एक **पब्लिक** रिपॉज़िटरी में अपलोड करता है, और किसी भी ऐसी मौजूदा रिपॉज़िटरी में लिखने से मना कर देता है जिसमें इसका `.dsh-game-studio.json` मार्कर नहीं होता।
|
|
112
|
+
- ऑनलाइन गेम स्रोत प्रदाता की अपनी साइट पर एक सैंडबॉक्स्ड iframe (`sandbox="allow-scripts"`) के अंदर चलते हैं, जिन्हें DSH या आपके वर्कस्पेस का कोई एक्सेस नहीं होता, और आपके लोकल गेम वॉल को एक्सपोर्ट या पब्लिश करते समय उन्हें कभी भी कॉपी या फ़ॉरवर्ड नहीं किया जाता।
|
|
106
113
|
- API कीज़ को DSH क्रेडेंशियल्स या एनवायरनमेंट से पढ़ा जाता है और उन्हें कभी भी प्रोजेक्ट्स, लॉग्स या टूल के परिणामों में नहीं लिखा जाता।
|
|
107
114
|
|
|
108
115
|
## आवश्यकताएँ
|
|
@@ -110,6 +117,7 @@
|
|
|
110
117
|
- DeepSeek Harness `0.2.1` या उसके बाद का वर्ज़न (वेब या डेस्कटॉप), Node.js `24.11` या उसके बाद का वर्ज़न।
|
|
111
118
|
- प्लेटैस्ट के लिए उसी कंप्यूटर पर Google Chrome या Microsoft Edge।
|
|
112
119
|
- AI आर्ट के लिए, या तो एक OpenAI API की (key) या साइन-इन किया हुआ Codex CLI। इन दोनों के बिना भी, गेम्स अपने कोड से बने किरदारों के साथ काम करते हैं।
|
|
120
|
+
- वैकल्पिक: अस्थायी पब्लिक शेयर लिंक के लिए `cloudflared` (macOS पर `brew install cloudflared`); GitHub Pages पर पब्लिश करने के लिए `gh` (`brew install gh` और `gh auth login`)।
|
|
113
121
|
|
|
114
122
|
## DSH में इंस्टॉल करें
|
|
115
123
|
|
|
@@ -149,6 +157,9 @@ dsh web
|
|
|
149
157
|
| `codexReasoningEffort` | `low` | Codex इमेज रन के लिए रीज़निंग प्रयास (reasoning effort)। |
|
|
150
158
|
| `codexTimeoutMinutes` | `15` | इतने मिनट के बाद एक Codex इमेज पर प्रयास छोड़ दें। |
|
|
151
159
|
| `confirmSpending` | `true` | हर जनरेशन से पहले मंज़ूरी माँगें। |
|
|
160
|
+
| `cloudflaredPath` | `PATH` या Homebrew पर मिलता है | अस्थायी पब्लिक शेयर लिंक के लिए `cloudflared` निष्पादन योग्य फ़ाइल (executable)। |
|
|
161
|
+
| `ghPath` | `PATH` या Homebrew पर मिलता है | GitHub Pages पर पब्लिश करने के लिए GitHub CLI (`gh`) निष्पादन योग्य फ़ाइल (executable)। |
|
|
162
|
+
| `githubRepo` | `dsh-games` | GitHub Pages के लिए पब्लिक GitHub रिपॉज़िटरी का नाम (आपके साइन-इन किए गए अकाउंट के अंतर्गत)। |
|
|
152
163
|
|
|
153
164
|
## गेम प्रोजेक्ट फ़ॉर्मेट
|
|
154
165
|
|
package/README.id.md
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<sub>Paket: <code>@zseven-w/dsh-game-studio</code> · Rilis plugin saat ini: <code>0.1.0-rc.
|
|
17
|
+
<sub>Paket: <code>@zseven-w/dsh-game-studio</code> · Rilis plugin saat ini: <code>0.1.0-rc.5</code> · Diuji dengan DSH <code>0.2.1-rc.5</code></sub><br />
|
|
18
|
+
🎮 <a href="https://finiking.github.io/dsh-games/wall/"><strong>Dinding Game Demo Langsung (10 game 2D & 3D siap dimainkan)</strong></a> · <sub>Berlangganan di Sumber online: <code>finiking/dsh-games</code></sub>
|
|
18
19
|
</p>
|
|
19
20
|
|
|
20
21
|
<br />
|
|
@@ -40,11 +41,14 @@ Mintalah sebuah game kepada agen dengan kata-kata sederhana — "game 3D: seekor
|
|
|
40
41
|
| 🤖 **Uji main otomatis** | `game_studio_playtest` memainkan kode terbaru di Chrome atau Edge tanpa antarmuka (headless) dan melaporkan fase, skor, laju bingkai (frame rate), kesalahan skrip, dan tangkapan layar. Game yang tidak dikendalikan dengan tombol panah (grid, kartu, membidik, ritme…) mendefinisikan `window.__autoplay`, sehingga uji main menjalankan alur permainan yang sebenarnya. |
|
|
41
42
|
| 🕰️ **Riwayat versi** | Setiap build yang mengubah game akan disimpan; `game_studio_restore_version` mengembalikan kode, aturan, dan seni secara bersamaan. |
|
|
42
43
|
| 📦 **Ekspor satu file** | `game_studio_export` menulis file HTML mandiri tanpa akses jaringan — buka di browser apa pun atau unggah ke layanan hosting statis mana pun. |
|
|
43
|
-
| 📱 **Coba di ponsel Anda** | `game_studio_share` membuka tautan baca-saja sementara di jaringan lokal Anda
|
|
44
|
-
|
|
|
44
|
+
| 📱 **Coba di ponsel Anda** | `game_studio_share` membuka tautan baca-saja sementara di jaringan lokal Anda — atau tautan publik sementara melalui Cloudflare Quick Tunnel (`cloudflared`) agar teman di jaringan mana pun dapat bermain — lengkap dengan kode QR di bilah sisi. |
|
|
45
|
+
| 🌐 **Publikasikan ke GitHub Pages** | `game_studio_publish` mengunggah HTML hasil build (atau seluruh dinding game) ke repositori publik di akun `gh` Anda yang sudah masuk dan mengaktifkan GitHub Pages untuk tautan permanen yang tetap aktif setelah Anda menutup komputer. |
|
|
46
|
+
| 🗂️ **Game saya** | Buka **+** di bilah samping dan pilih **Game Studio · My games**: setiap game di ruang kerja tampil sebagai ubin dengan gambar uji main terakhir, bisa disaring 2D/3D dan diurutkan menurut waktu, jumlah versi, atau nama. Klik untuk bermain, tanpa agent dan tanpa token. Anda juga dapat berlangganan sumber game online (`owner/repo`, URL repositori GitHub, atau URL GitHub Pages) untuk menjelajahi dan memainkan game yang telah dipublikasikan bersama game Anda sendiri. **Export wall** mengemas game lokal Anda menjadi satu halaman offline untuk dikirim ke teman. |
|
|
45
47
|
|
|
46
48
|
## Game yang dibuat dengannya
|
|
47
49
|
|
|
50
|
+
> 🎮 **Coba langsung 10 game uji coba di browser Anda (desktop atau ponsel):** **[finiking.github.io/dsh-games/wall](https://finiking.github.io/dsh-games/wall/)** — atau masukkan `finiking/dsh-games` pada **Sumber online** di dinding game lokal Anda untuk berlangganan dan memainkannya di bilah sisi.
|
|
51
|
+
|
|
48
52
|
Empat game dari uji coba kami. Masing-masing dimulai dari satu kalimat di bawahnya, dalam sesi baru (prompt diterjemahkan dari bahasa Mandarin); beberapa kemudian disempurnakan lewat permintaan lanjutan di sesi yang sama, seperti dicatat. Gameplay direkam dengan autoplay bawaan tiap game.
|
|
49
53
|
|
|
50
54
|
<p align="center">
|
|
@@ -83,11 +87,12 @@ Diukur pada DSH nyata dengan DeepSeek-V4.1-Flash, setiap game dibuat dari satu k
|
|
|
83
87
|
| `game_studio_versions` | Menampilkan daftar versi yang disimpan, dari yang terbaru. |
|
|
84
88
|
| `game_studio_restore_version` | Memulihkan versi sebelumnya dari keseluruhan game. |
|
|
85
89
|
| `game_studio_export` | Mengekspor satu file HTML mandiri yang dapat dijalankan secara offline. |
|
|
86
|
-
| `game_studio_share` | Membuka (atau menutup) tautan baca-saja sementara di jaringan lokal agar
|
|
90
|
+
| `game_studio_share` | Membuka (atau menutup) tautan baca-saja sementara di jaringan lokal, atau berikan `public: true` untuk tautan publik sementara melalui `cloudflared` agar siapa pun yang memiliki tautan dapat bermain. |
|
|
87
91
|
| `game_studio_list` | Mendaftar game di ruang kerja beserta judul, 2D/3D, status build, dan jumlah versi, agar agent menemukan "game penguin itu" dari namanya. |
|
|
88
92
|
| `game_studio_export_wall` | Mengekspor dinding game: satu halaman HTML offline dengan satu ubin per game yang sudah di-build; klik ubin untuk bermain. |
|
|
93
|
+
| `game_studio_publish` | Mempublikasikan game hasil build (atau `wall: true` untuk dinding game) ke GitHub Pages melalui `gh` CLI lokal yang sudah masuk, atau berikan `remove: true` untuk menghapusnya. Meminta persetujuan terlebih dahulu dan hanya menulis ke repositori yang memiliki penanda `.dsh-game-studio.json`. |
|
|
89
94
|
|
|
90
|
-
Tombol-tombol di bilah sisi (terapkan, kembalikan, bangun, ekspor, pulihkan, bagikan) memanggil operasi yang sama melalui perintah `/game-studio`.
|
|
95
|
+
Tombol-tombol di bilah sisi (terapkan, kembalikan, bangun, ekspor, pulihkan, bagikan, publikasikan) memanggil operasi yang sama melalui perintah `/game-studio`.
|
|
91
96
|
|
|
92
97
|
## Layanan gambar dan pengeluaran biaya
|
|
93
98
|
|
|
@@ -102,7 +107,9 @@ Tombol-tombol di bilah sisi (terapkan, kembalikan, bangun, ekspor, pulihkan, bag
|
|
|
102
107
|
|
|
103
108
|
- Game berjalan di dalam iframe ber-sandbox dengan kebijakan keamanan konten (CSP) yang memblokir akses jaringan; file yang diekspor tidak melakukan permintaan jaringan apa pun.
|
|
104
109
|
- Satu-satunya hal yang dikirim keluar dari perangkat Anda adalah prompt — serta gambar referensi, jika Anda memberikannya — ke layanan gambar yang Anda pilih.
|
|
105
|
-
- Tautan berbagi bersifat baca-saja, hanya menyajikan build game tersebut,
|
|
110
|
+
- Tautan berbagi bersifat baca-saja, hanya menyajikan build game tersebut, dan otomatis ditutup setelah batas waktu yang Anda tentukan (default 30 menit). Tautan lokal hanya mendengarkan di jaringan lokal Anda; tautan publik hanya mendengarkan di `127.0.0.1` dan diteruskan melalui terowongan Cloudflare (`trycloudflare.com`) setelah Anda menyetujuinya.
|
|
111
|
+
- Mempublikasikan ke GitHub Pages (`game_studio_publish`) menggunakan `gh` CLI lokal Anda yang sudah masuk (plugin tidak pernah menyentuh token GitHub Anda), hanya mengunggah HTML hasil build ke repositori **publik** setelah Anda menyetujuinya, dan menolak menulis ke repositori mana pun yang sudah ada yang tidak memiliki penanda `.dsh-game-studio.json`.
|
|
112
|
+
- Sumber game online berjalan di situs milik penyedia itu sendiri di dalam iframe ber-sandbox (`sandbox="allow-scripts"`) tanpa akses ke DSH atau ruang kerja Anda, serta tidak pernah disalin atau diteruskan saat mengekspor atau mempublikasikan dinding game lokal Anda.
|
|
106
113
|
- Kunci API dibaca dari kredensial DSH atau variabel lingkungan dan tidak pernah ditulis ke dalam proyek, log, atau hasil alat.
|
|
107
114
|
|
|
108
115
|
## Persyaratan
|
|
@@ -110,6 +117,7 @@ Tombol-tombol di bilah sisi (terapkan, kembalikan, bangun, ekspor, pulihkan, bag
|
|
|
110
117
|
- DeepSeek Harness `0.2.1` atau versi lebih baru (web atau desktop), Node.js `24.11` atau versi lebih baru.
|
|
111
118
|
- Google Chrome atau Microsoft Edge di komputer yang sama untuk uji main.
|
|
112
119
|
- Untuk seni AI, diperlukan kunci API OpenAI atau Codex CLI yang sudah masuk. Tanpa keduanya, game tetap berfungsi dengan karakter yang digambar melalui kode.
|
|
120
|
+
- Opsional: `cloudflared` (`brew install cloudflared` di macOS) untuk tautan berbagi publik sementara; `gh` (`brew install gh` dan `gh auth login`) untuk mempublikasikan ke GitHub Pages.
|
|
113
121
|
|
|
114
122
|
## Instal ke DSH
|
|
115
123
|
|
|
@@ -149,6 +157,9 @@ Atur opsi berikut di bawah `config` dalam file `cordis.patch.yml` profil Anda:
|
|
|
149
157
|
| `codexReasoningEffort` | `low` | Tingkat upaya penalaran untuk pembuatan gambar Codex. |
|
|
150
158
|
| `codexTimeoutMinutes` | `15` | Batalkan pembuatan satu gambar Codex setelah durasi ini. |
|
|
151
159
|
| `confirmSpending` | `true` | Meminta persetujuan sebelum setiap pembuatan gambar. |
|
|
160
|
+
| `cloudflaredPath` | ditemukan di `PATH` atau Homebrew | File eksekusi `cloudflared` untuk tautan berbagi publik sementara. |
|
|
161
|
+
| `ghPath` | ditemukan di `PATH` atau Homebrew | File eksekusi GitHub CLI (`gh`) untuk mempublikasikan ke GitHub Pages. |
|
|
162
|
+
| `githubRepo` | `dsh-games` | Nama repositori GitHub publik (di bawah akun Anda yang sudah masuk) untuk GitHub Pages. |
|
|
152
163
|
|
|
153
164
|
## Format proyek game
|
|
154
165
|
|