Repository navigation
Add AI Office (AI 事务所) MiniApp - #23
Open
cristinamadureira353-svg wants to merge 3 commits into
Open
cristinamadureira353-svg wants to merge 3 commits into
cristinamadureira353-svg wants to merge 3 commits into
Conversation
MyPrototypeWhat
requested changes
Oct 16, 2026
MyPrototypeWhat
left a comment
Collaborator
There was a problem hiding this comment.
感谢贡献,这个游戏做得很完整!我在本地按包内的方式跑了一遍:
- Node 22 下
npm run check55/55 通过;配置好环境变量后,包内node --test tests/*.test.mjs34/34 通过。 - 用临时 dataDir 启动
server.mjs,保存配置后在 headless Chrome 里打开/ai-office,Godot 能正常进入游戏,没有外部请求;没配 Key 的员工显示「脑袋宕机了」,也不会发请求。 - 外来的 Host/Origin 会返回 403,
pythonPath指向非 python 可执行文件会被拒绝;Python 后端走 stdin/stdout,不监听端口;关闭后 Python 子进程会退出。 miniapp/目录和 v0.5.10 release 包逐字节一致,release 的 sha256 也对得上。- 首次运行由 Agent 在私有目录里建 venv 并安装 Flask、requests、python-dotenv,这种方式我们可以接受。
需要修改
- CONTRIBUTING 要求提交前在 MiniMax Code 里实际安装、打开并检查主要功能,并在 PR 里写明测试环境和结果。README 里目前写的是「has not been manually reinstalled and played in a real MiniMax Code host」(README.md 第 47 行)。麻烦在真实宿主里把首次配置、进入游戏、和员工聊天这些主流程走一遍,再把环境和结果补到 PR 描述和 README 的 Tested environment 里,同时更新第 47 行的这句话。
建议(可选)
THIRD_PARTY_NOTICES.md里LICENSES/Godot-MIT.txt、LICENSES/Godot-COPYRIGHT.txt、godot/assets/fonts/OFL.txt是源码仓库里的路径,这个包里没有,建议改成包内的LICENSE-GODOT.txt、COPYRIGHT-GODOT.txt、LICENSE-NOTO.txt。- 包内测试需要
AI_OFFICE_TEST_EVIDENCE、AI_OFFICE_TEST_NODE_MODULES等几个环境变量,目前只在源码仓库里有说明。可以在tests/下补一个简短说明,方便直接复现。 - 根目录两份 README 的表格里,新行可以放到末尾,和现有的顺序保持一致。
|
|
||
| - Copyright (c) 2014-present Godot Engine contributors. | ||
| - Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. | ||
| - License: LICENSES/Godot-MIT.txt |
Collaborator
There was a problem hiding this comment.
这里的 LICENSES/Godot-MIT.txt(以及下一行和第 21 行的路径)是源码仓库里的位置,这个插件包里没有 LICENSES/ 和 godot/ 目录。建议直接写包内的 LICENSE-GODOT.txt、COPYRIGHT-GODOT.txt、LICENSE-NOTO.txt。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds AI Office / AI 事务所, a Chinese-language pixel office management game with five model-powered employees (M3, Flash, LongCat, Kimi and Step5). Players assign client work, review deliveries, chat with employees and arrange breaks and meetings. When a provider's quota is exhausted or credentials become invalid, the affected employee enters a visible offline state and stops work and further requests until the player repairs the configuration and manually reboots it.
Package
plugins/cristinamadureira353-svg/ai-office/package, version 0.5.10, plus entries in both root README tables.Data and runtime access
context.dataDir.api.minimaxi.com,api.longcat.chat,api.kimi.com,api.stepfun.com, and optionallyopenrouter.ai. These calls use the player's own quota. Reading setup guidance and checking dependencies make no model calls.Validation
npm run check: 0 errors, 55/55 repository checker tests passed.ai-office: OK, no warnings.docs/VALIDATION.mdfor scope and reproducible commands.The whole-repository validator reports four existing
README_HEADING_MISSINGwarnings:plugins/amszuidas/mcode-token-usage-board/README.mdandplugins/yanhy2000/mcode-usage-monitor/README.mdeach lack## Tested environmentand## Data & access. Those packages are unchanged. The generated Godot HTML/JS retain the release exporter's whitespace; other staged files pass the whitespace check.Manual host play and validation scope
Manual play with real model providers. The project author installed, opened and played AI Office in the real MiniMax Code desktop host on macOS using real provider-issued API keys, live model API calls and actual provider responses, and confirmed this test method on 2026-10-17. Recorded environment: macOS 26.4 / MiniMax Code 3.0.73; the installed host version and OS were rechecked for this documentation correction.
Existing host screenshots show the game running. The author's gameplay feedback covers employee controls and chat access, rest seating, conflict-choice buttons and HUD visibility, and informed the corresponding fixes and regression coverage. Both READMEs and the detailed validation record explicitly record live-provider manual play.
Additional automated regression. The submitted 0.5.10 package also passed 34/34 automated interaction checks, including first-run configuration, game entry, reopening and employee chat, using temporary Host-context fixtures and headless Chromium. This separate scripted suite substitutes provider replies to exercise repeatable success and failure cases. The author's manual playtesting above used real provider keys and live model responses. Windows/Linux host play, Chinese IME behavior and long-term balance remain outside the recorded test coverage.
Need help on this PR? Tag
@codesmith-botwith what you need.