feat(web): 增加使用与发布引导 - #7
Conversation
在首页新增一屏双路径操作说明,清楚区分使用共享 Agent 与发布当前会话;加入可直接复制给 Codex 或 Claude Code 的完整指令、安装入口、Runner 确认边界及中英文文案,并在语言切换旁增加 GitHub Star 入口。同步补充响应式样式与回归断言。 任务执行摘要:Codex(GPT-5)独立完成,未使用 subagent;Token 与费用未由运行环境提供,无法可靠估算;使用 Sites Building、Sites Hosting;运行约 15 分钟;无关联 Issue。已通过 33 项根测试、10 项云端测试、文档检查、打包检查、生产构建和 ESLint。
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08d5c02f43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| consumerPrompt: | ||
| "Please use this Codex Sharing Agent:\n{agent}\n\nIf Codex Sharing is not installed yet, first run:\nnpx -y Equality-Machine/agent-as-a-service\n\nIf the client must restart after installation, tell me clearly. For this task, use the call instructions embedded in the share page when possible.\n\nUse this Agent to help me:\n<describe your task>", | ||
| publisherPrompt: | ||
| "Please publish the current session with Codex Sharing.\n\nIf Codex Sharing is not installed yet, first run:\nnpx -y Equality-Machine/agent-as-a-service\n\nCheck for a Runner before publishing. Install or configure one only when required, explain what will change, and ask for my approval first.\n\nPublish the current session as a locally run Agent named:\n<enter Agent name>\n\nReturn the Agent ID and share link when finished.", |
There was a problem hiding this comment.
Restart the client before continuing the publish flow
When Codex Sharing is not already installed, this copied prompt runs the default consumer installer and then immediately asks the same session to check the Runner and publish. That installer explicitly requires a client restart (scripts/install.mjs:249-255), so the current Codex or Claude Code process will not have the newly configured runner_status, install_local_runner, or publish_current_agent MCP tools and the advertised first-time publishing flow stalls. The prompt should tell the user to restart, reopen the source session, and repeat the publishing request before attempting the Runner check.
Useful? React with 👍 / 👎.
变更
验证
npm run checkgit diff --check