@zseven-w/dsh-game-studio 0.1.0-rc.3 → 0.1.0-rc.4

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/README.de.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Aktuelles Plugin-Release: <code>0.1.0-rc.3</code> &middot; Getestet mit DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Aktuelles Plugin-Release: <code>0.1.0-rc.4</code> &middot; Getestet mit DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.es.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Paquete: <code>@zseven-w/dsh-game-studio</code> &middot; Versión actual del plugin: <code>0.1.0-rc.3</code> &middot; Probado con DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Paquete: <code>@zseven-w/dsh-game-studio</code> &middot; Versión actual del plugin: <code>0.1.0-rc.4</code> &middot; Probado con DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.fr.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Paquet : <code>@zseven-w/dsh-game-studio</code> &middot; Version actuelle du plugin : <code>0.1.0-rc.3</code> &middot; Testé avec DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Paquet : <code>@zseven-w/dsh-game-studio</code> &middot; Version actuelle du plugin : <code>0.1.0-rc.4</code> &middot; Testé avec DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.hi.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>पैकेज: <code>@zseven-w/dsh-game-studio</code> &middot; वर्तमान प्लगइन रिलीज़: <code>0.1.0-rc.3</code> &middot; DSH <code>0.2.1-rc.5</code> के साथ परीक्षित</sub>
17
+ <sub>पैकेज: <code>@zseven-w/dsh-game-studio</code> &middot; वर्तमान प्लगइन रिलीज़: <code>0.1.0-rc.4</code> &middot; DSH <code>0.2.1-rc.5</code> के साथ परीक्षित</sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.id.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Rilis plugin saat ini: <code>0.1.0-rc.3</code> &middot; Diuji dengan DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Rilis plugin saat ini: <code>0.1.0-rc.4</code> &middot; Diuji dengan DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.ja.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>パッケージ: <code>@zseven-w/dsh-game-studio</code> &middot; 現在のプラグインリリース: <code>0.1.0-rc.3</code> &middot; 動作確認: DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>パッケージ: <code>@zseven-w/dsh-game-studio</code> &middot; 現在のプラグインリリース: <code>0.1.0-rc.4</code> &middot; 動作確認: DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.ko.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>패키지: <code>@zseven-w/dsh-game-studio</code> &middot; 현재 플러그인 릴리스: <code>0.1.0-rc.3</code> &middot; DSH <code>0.2.1-rc.5</code>로 테스트됨</sub>
17
+ <sub>패키지: <code>@zseven-w/dsh-game-studio</code> &middot; 현재 플러그인 릴리스: <code>0.1.0-rc.4</code> &middot; DSH <code>0.2.1-rc.5</code>로 테스트됨</sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Package: <code>@zseven-w/dsh-game-studio</code> &middot; Current plugin release: <code>0.1.0-rc.3</code> &middot; Tested with DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Package: <code>@zseven-w/dsh-game-studio</code> &middot; Current plugin release: <code>0.1.0-rc.4</code> &middot; Tested with DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
@@ -40,8 +40,9 @@ Ask the agent for a game in plain words — "a 3D game: a red panda collects bam
40
40
  | 🤖 **Self-playing playtests** | `game_studio_playtest` plays the latest code in a headless Chrome or Edge and reports phases, score, frame rate, script errors and screenshots. Games that are not steered with arrow keys (grids, cards, aiming, rhythm…) define `window.__autoplay`, so the playtest plays their real loop. |
41
41
  | 🕰️ **Version history** | Every build that changed the game is saved; `game_studio_restore_version` brings back code, rules and art together. |
42
42
  | 📦 **One-file export** | `game_studio_export` writes a self-contained HTML file with no network access — open it in any browser or put it on any static host. |
43
- | 📱 **Try it on your phone** | `game_studio_share` opens a temporary read-only link on your local network, with a QR code in the sidebar. |
44
- | 🗂️ **My games** | Open the sidebar's **+** and pick **Game Studio · My games**: every game in the workspace as a tile with its latest playtest picture, filtered by 2D/3D and sorted by recency, versions or name. Click one to play it — no agent, no tokens. **Export wall** packs the games shown into one offline page to send to friends. |
43
+ | 📱 **Try it on your phone** | `game_studio_share` opens a temporary read-only link on your local network — or a temporary public link via a Cloudflare Quick Tunnel (`cloudflared`) so friends on any network can play — with a QR code in the sidebar. |
44
+ | 🌐 **Publish to GitHub Pages** | `game_studio_publish` pushes the built HTML (or the whole game wall) to a public repository under your signed-in `gh` account and enables GitHub Pages for a permanent link that stays live after you close your computer. |
45
+ | 🗂️ **My games** | Open the sidebar's **+** and pick **Game Studio · My games**: every game in the workspace as a tile with its latest playtest picture, filtered by 2D/3D and sorted by recency, versions or name. Click one to play it — no agent, no tokens. You can also subscribe to online game sources (`owner/repo`, GitHub repository URL, or GitHub Pages URL) to browse and play published games alongside your own. **Export wall** packs your local games into one offline page to send to friends. |
45
46
 
46
47
  ## Games made with it
47
48
 
@@ -83,11 +84,12 @@ Measured in a real DSH with DeepSeek-V4.1-Flash, each game made from one sentenc
83
84
  | `game_studio_versions` | List saved versions, newest first. |
84
85
  | `game_studio_restore_version` | Restore an earlier version of the whole game. |
85
86
  | `game_studio_export` | Export one self-contained, offline HTML file. |
86
- | `game_studio_share` | Open (or close) a temporary read-only link on the local network so a phone can play the game. |
87
+ | `game_studio_share` | Open (or close) a temporary read-only link on the local network, or pass `public: true` for a temporary public link via `cloudflared` so anyone with the link can play. |
87
88
  | `game_studio_list` | List the games in the working directory with title, 2D/3D, build state and versions, so the agent finds "the penguin game" by name. |
88
89
  | `game_studio_export_wall` | Export the game wall: one offline HTML page with a tile per built game; click a tile to play it. |
90
+ | `game_studio_publish` | Publish the built game (or `wall: true` for the game wall) to GitHub Pages via the local signed-in `gh` CLI, or pass `remove: true` to delete it. Asks for approval first and only writes to repositories carrying its `.dsh-game-studio.json` marker. |
89
91
 
90
- The sidebar's buttons (apply, revert, build, export, restore, share) call the same operations through the `/game-studio` command.
92
+ The sidebar's buttons (apply, revert, build, export, restore, share, publish) call the same operations through the `/game-studio` command.
91
93
 
92
94
  ## Image services and spending
93
95
 
@@ -102,7 +104,9 @@ The sidebar's buttons (apply, revert, build, export, restore, share) call the sa
102
104
 
103
105
  - Games run in a sandboxed iframe with a content security policy that blocks network access; exported files make no network requests.
104
106
  - The only things sent off your machine are the prompts — and the reference picture, if you give one — to the image service you choose.
105
- - The share link is read-only, serves just that game's build, listens on your local network only and closes after the time you set (30 minutes by default).
107
+ - The share link is read-only, serves just that game's build, and closes after the time you set (30 minutes by default). Local links listen on your local network only; public links listen on `127.0.0.1` only and tunnel through Cloudflare (`trycloudflare.com`) after you approve.
108
+ - Publishing to GitHub Pages (`game_studio_publish`) uses your local signed-in `gh` CLI (the plugin never touches your GitHub token), uploads only the built HTML to a **public** repository after you approve, and refuses to write to any existing repository that does not carry its `.dsh-game-studio.json` marker.
109
+ - Online game sources run on the provider's own site inside a sandboxed iframe (`sandbox="allow-scripts"`) without access to DSH or your workspace, and are never copied or forwarded when exporting or publishing your local game wall.
106
110
  - API keys are read from DSH credentials or the environment and are never written into projects, logs or tool results.
107
111
 
108
112
  ## Requirements
@@ -110,6 +114,7 @@ The sidebar's buttons (apply, revert, build, export, restore, share) call the sa
110
114
  - DeepSeek Harness `0.2.1` or later (web or desktop), Node.js `24.11` or later.
111
115
  - Google Chrome or Microsoft Edge on the same computer for playtests.
112
116
  - For AI art, either an OpenAI API key or the Codex CLI signed in. Without either, games still work with their code-drawn characters.
117
+ - Optional: `cloudflared` (`brew install cloudflared` on macOS) for temporary public share links; `gh` (`brew install gh` and `gh auth login`) for publishing to GitHub Pages.
113
118
 
114
119
  ## Install into DSH
115
120
 
@@ -149,6 +154,9 @@ Set these under `config` in your profile's `cordis.patch.yml`:
149
154
  | `codexReasoningEffort` | `low` | Reasoning effort for Codex image runs. |
150
155
  | `codexTimeoutMinutes` | `15` | Give up on one Codex image after this long. |
151
156
  | `confirmSpending` | `true` | Ask for approval before every generation. |
157
+ | `cloudflaredPath` | found on `PATH` or Homebrew | `cloudflared` executable for temporary public share links. |
158
+ | `ghPath` | found on `PATH` or Homebrew | GitHub CLI (`gh`) executable for publishing to GitHub Pages. |
159
+ | `githubRepo` | `dsh-games` | Public GitHub repository name (under your signed-in account) for GitHub Pages. |
152
160
 
153
161
  ## Game project format
154
162
 
package/README.pt.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Pacote: <code>@zseven-w/dsh-game-studio</code> &middot; Versão atual do plugin: <code>0.1.0-rc.3</code> &middot; Testado com DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Pacote: <code>@zseven-w/dsh-game-studio</code> &middot; Versão atual do plugin: <code>0.1.0-rc.4</code> &middot; Testado com DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.ru.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Пакет: <code>@zseven-w/dsh-game-studio</code> &middot; Текущий релиз плагина: <code>0.1.0-rc.3</code> &middot; Протестировано с DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Пакет: <code>@zseven-w/dsh-game-studio</code> &middot; Текущий релиз плагина: <code>0.1.0-rc.4</code> &middot; Протестировано с DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.th.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>แพ็กเกจ: <code>@zseven-w/dsh-game-studio</code> &middot; เวอร์ชันปลั๊กอินปัจจุบัน: <code>0.1.0-rc.3</code> &middot; ทดสอบกับ DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>แพ็กเกจ: <code>@zseven-w/dsh-game-studio</code> &middot; เวอร์ชันปลั๊กอินปัจจุบัน: <code>0.1.0-rc.4</code> &middot; ทดสอบกับ DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.tr.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Güncel eklenti sürümü: <code>0.1.0-rc.3</code> &middot; DSH <code>0.2.1-rc.5</code> ile test edildi</sub>
17
+ <sub>Paket: <code>@zseven-w/dsh-game-studio</code> &middot; Güncel eklenti sürümü: <code>0.1.0-rc.4</code> &middot; DSH <code>0.2.1-rc.5</code> ile test edildi</sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.vi.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>Gói: <code>@zseven-w/dsh-game-studio</code> &middot; Bản phát hành plugin hiện tại: <code>0.1.0-rc.3</code> &middot; Đã thử nghiệm với DSH <code>0.2.1-rc.5</code></sub>
17
+ <sub>Gói: <code>@zseven-w/dsh-game-studio</code> &middot; Bản phát hành plugin hiện tại: <code>0.1.0-rc.4</code> &middot; Đã thử nghiệm với DSH <code>0.2.1-rc.5</code></sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.zh-TW.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>套件:<code>@zseven-w/dsh-game-studio</code> &middot; 目前的外掛版本:<code>0.1.0-rc.3</code> &middot; 已在 DSH <code>0.2.1-rc.5</code> 下測試</sub>
17
+ <sub>套件:<code>@zseven-w/dsh-game-studio</code> &middot; 目前的外掛版本:<code>0.1.0-rc.4</code> &middot; 已在 DSH <code>0.2.1-rc.5</code> 下測試</sub>
18
18
  </p>
19
19
 
20
20
  <br />
package/README.zh.md CHANGED
@@ -14,7 +14,7 @@
14
14
  </p>
15
15
 
16
16
  <p align="center">
17
- <sub>包名:<code>@zseven-w/dsh-game-studio</code> &middot; 当前插件版本:<code>0.1.0-rc.3</code> &middot; 已在 DSH <code>0.2.1-rc.5</code> 上测试</sub>
17
+ <sub>包名:<code>@zseven-w/dsh-game-studio</code> &middot; 当前插件版本:<code>0.1.0-rc.4</code> &middot; 已在 DSH <code>0.2.1-rc.5</code> 上测试</sub>
18
18
  </p>
19
19
 
20
20
  <br />
@@ -40,8 +40,9 @@
40
40
  | 🤖 **自动试玩** | `game_studio_playtest` 在无界面的 Chrome 或 Edge 里玩最新代码,报告阶段、得分、帧率、脚本错误并附截图。不靠方向键操作的游戏(格子、卡牌、瞄准、节奏……)定义 `window.__autoplay`,试玩就能玩到真正的玩法。 |
41
41
  | 🕰️ **版本历史** | 每次让游戏发生变化的构建都会保存;`game_studio_restore_version` 把代码、规则和美术一起恢复。 |
42
42
  | 📦 **单文件导出** | `game_studio_export` 生成一个不联网、自包含的 HTML 文件,用任何浏览器打开,或放到任意静态托管上。 |
43
- | 📱 **在手机上试玩** | `game_studio_share` 在本地网络上开一个临时只读链接,侧栏里会显示二维码。 |
44
- | 🗂️ **游戏墙** | 点右栏的 **+**,选 **游戏工坊 · 游戏墙**:工作区里做过的游戏铺满一面墙,封面是最近一次试玩的画面,可按 2D/3D 筛选,按最近修改、版本数或名称排序。点一下就能玩,不经过 agent,也不花 token。**导出游戏墙**会把墙上的游戏打包成一个离线网页,发给朋友就能玩。 |
43
+ | 📱 **在手机上试玩** | `game_studio_share` 在本地网络上开一个临时只读链接(或通过 `cloudflared` 开启 Cloudflare 临时公网链接,发给任何网络下的朋友都能玩),侧栏里会显示二维码。 |
44
+ | 🌐 **发布到 GitHub Pages** | `game_studio_publish` 用本机已登录的 `gh` 把构建好的 HTML(或整面游戏墙)推到你名下的公开仓库并开启 GitHub Pages,生成关掉电脑也能长期游玩的网址。 |
45
+ | 🗂️ **游戏墙** | 点右栏的 **+**,选 **游戏工坊 · 游戏墙**:工作区里做过的游戏铺满一面墙,封面是最近一次试玩的画面,可按 2D/3D 筛选,按最近修改、版本数或名称排序。点一下就能玩,不经过 agent,也不花 token。你还可以订阅在线游戏源(`owner/repo`、GitHub 仓库地址或 GitHub Pages 网址),把别人发布的游戏合入墙内直接游玩。**导出游戏墙**会把本地游戏打包成一个离线网页,发给朋友就能玩。 |
45
46
 
46
47
  ## 用它做出来的游戏
47
48
 
@@ -83,11 +84,12 @@
83
84
  | `game_studio_versions` | 列出已保存的版本,最新的在前。 |
84
85
  | `game_studio_restore_version` | 把整个游戏恢复到较早的版本。 |
85
86
  | `game_studio_export` | 导出一个自包含、可离线游玩的 HTML 文件。 |
86
- | `game_studio_share` | 在本地网络开启(或关闭)一个临时只读链接,让手机也能玩。 |
87
+ | `game_studio_share` | 在本地网络开启(或关闭)一个临时只读链接让手机试玩;传 `public: true` 则通过 `cloudflared` 生成任何网络都能打开的临时公网链接。 |
87
88
  | `game_studio_list` | 列出工作区里的游戏(标题、2D/3D、是否已构建、版本数),agent 能按名字找到「那个企鹅游戏」。 |
88
89
  | `game_studio_export_wall` | 导出游戏墙:一个离线 HTML 页面,每个已构建的游戏一个格子,点格子就能玩。 |
90
+ | `game_studio_publish` | 通过本机已登录的 `gh` CLI 把已构建的游戏(或传 `wall: true` 把整面游戏墙)发布到 GitHub Pages,传 `remove: true` 则从仓库删除。操作前先经你批准,且只写入带有 `.dsh-game-studio.json` 标记的仓库。 |
89
91
 
90
- 侧栏上的按钮(应用、撤回、构建、导出、恢复、分享)通过 `/game-studio` 命令调用同样的操作。
92
+ 侧栏上的按钮(应用、撤回、构建、导出、恢复、分享、发布)通过 `/game-studio` 命令调用同样的操作。
91
93
 
92
94
  ## 生图服务与费用
93
95
 
@@ -102,7 +104,9 @@
102
104
 
103
105
  - 游戏在沙箱 iframe 里运行,内容安全策略禁止联网;导出的文件不发出任何网络请求。
104
106
  - 离开你电脑的只有提示词,以及你提供的参考图,发往你选择的生图服务。
105
- - 分享链接只读,只提供这个游戏的构建产物,只在本地网络上监听,到你设定的时间(默认 30 分钟)自动关闭。
107
+ - 分享链接只读,只提供这个游戏的构建产物,到你设定的时间(默认 30 分钟)自动关闭。局域网链接只在本地网络上监听;公网链接在本地只监听 `127.0.0.1`,经你确认后通过 Cloudflare 隧道(`trycloudflare.com`)转发。
108
+ - 发布到 GitHub Pages(`game_studio_publish`)通过本机已登录的 `gh` CLI 完成(插件不接触你的 GitHub token),经你批准后只把构建产物 HTML 上传到**公开仓库**(任何人都能查看文件),且绝不写入没有 `.dsh-game-studio.json` 标记的现有仓库。
109
+ - 订阅的在线游戏在提供者自己的网站上以沙箱 iframe(`sandbox="allow-scripts"`)运行,无法访问 DSH 或你的工作区,且在导出或发布本地游戏墙时绝不复制或转发第三方在线游戏。
106
110
  - API key 从 DSH 凭据或环境变量读取,不会写进项目、日志或工具结果。
107
111
 
108
112
  ## 环境要求
@@ -110,6 +114,7 @@
110
114
  - DeepSeek Harness `0.2.1` 或更新(网页版或桌面版),Node.js `24.11` 或更新。
111
115
  - 同一台电脑上装有 Google Chrome 或 Microsoft Edge,用于自动试玩。
112
116
  - 生成 AI 美术需要 OpenAI API key 或已登录的 Codex CLI。都没有时,游戏仍可用代码画的角色正常运行。
117
+ - 可选:安装 `cloudflared`(macOS 可用 `brew install cloudflared`)以使用公网临时分享链接;安装并登录 `gh`(`brew install gh` 并运行 `gh auth login`)以发布到 GitHub Pages。
113
118
 
114
119
  ## 安装到 DSH
115
120
 
@@ -149,6 +154,9 @@ dsh web
149
154
  | `codexReasoningEffort` | `low` | Codex 生图的推理强度。 |
150
155
  | `codexTimeoutMinutes` | `15` | 单张 Codex 图超过这个时间就放弃。 |
151
156
  | `confirmSpending` | `true` | 每次生成前都请求批准。 |
157
+ | `cloudflaredPath` | 从 `PATH` 或 Homebrew 目录查找 | 公网临时分享链接使用的 `cloudflared` 可执行文件。 |
158
+ | `ghPath` | 从 `PATH` 或 Homebrew 目录查找 | 发布到 GitHub Pages 使用的 GitHub CLI(`gh`)可执行文件。 |
159
+ | `githubRepo` | `dsh-games` | 发布到 GitHub Pages 时在你账号下使用的公开仓库名。 |
152
160
 
153
161
  ## 游戏项目格式
154
162