Spaces:
Running
Running
Deploy b57e7f7 to Docker Space
Browse filesSource: MisonL/gpt-image-playground-customer@b57e7f75c9ffae678e9cbedbfdf4458dc1f0b1af
scripts/agent-skill-scripts.test.mjs
CHANGED
|
@@ -3232,10 +3232,18 @@ describe('Agent skill script argument validation', () => {
|
|
| 3232 |
assert.match(skillText, /-- --json/);
|
| 3233 |
assert.match(skillText, /--base-url <url>/);
|
| 3234 |
assert.match(skillText, /\.env\.agent\.local\.example/);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3235 |
assert.match(apiReference, /npm run first-run/);
|
| 3236 |
assert.match(apiReference, /npm run first-run -- --json/);
|
| 3237 |
assert.match(apiReference, /--base-url <url>/);
|
| 3238 |
assert.match(apiReference, /\.env\.agent\.local\.example/);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3239 |
assert.match(readmeText, /不要手动并行启动多个单张脚本/);
|
| 3240 |
assert.match(readmeText, /streamingBatch\.recommendedConcurrency/);
|
| 3241 |
assert.match(readmeText, /channelQueue\.capacityPerCredential/);
|
|
|
|
| 3232 |
assert.match(skillText, /-- --json/);
|
| 3233 |
assert.match(skillText, /--base-url <url>/);
|
| 3234 |
assert.match(skillText, /\.env\.agent\.local\.example/);
|
| 3235 |
+
assert.match(skillText, /page_sse_real_smoke_status/);
|
| 3236 |
+
assert.match(skillText, /responses_image_backend_real_smoke_status/);
|
| 3237 |
+
assert.match(skillText, /summary\.responses_page_sse_generate_smoke/);
|
| 3238 |
+
assert.match(skillText, /summary\.real_smoke_checks/);
|
| 3239 |
assert.match(apiReference, /npm run first-run/);
|
| 3240 |
assert.match(apiReference, /npm run first-run -- --json/);
|
| 3241 |
assert.match(apiReference, /--base-url <url>/);
|
| 3242 |
assert.match(apiReference, /\.env\.agent\.local\.example/);
|
| 3243 |
+
assert.match(apiReference, /page_sse_real_smoke_status/);
|
| 3244 |
+
assert.match(apiReference, /responses_image_backend_real_smoke_status/);
|
| 3245 |
+
assert.match(apiReference, /summary\.responses_page_sse_generate_smoke/);
|
| 3246 |
+
assert.match(apiReference, /summary\.real_smoke_checks/);
|
| 3247 |
assert.match(readmeText, /不要手动并行启动多个单张脚本/);
|
| 3248 |
assert.match(readmeText, /streamingBatch\.recommendedConcurrency/);
|
| 3249 |
assert.match(readmeText, /channelQueue\.capacityPerCredential/);
|
skills/gpt-image-playground-agent/SKILL.md
CHANGED
|
@@ -137,6 +137,10 @@ Authorization: Bearer <token>
|
|
| 137 |
| `agent_auth_process.has_token` | `first-run --json` | 当前进程是否已经拿到 `GPT_IMAGE_AGENT_TOKEN`。 |
|
| 138 |
| `page_sse_auth_available_to_process` | `first-run --json` | 目标服务要求页面 SSE `passwordHash` 时,当前进程是否已加载 `GPT_IMAGE_APP_PASSWORD_HASH`。 |
|
| 139 |
| `summary.page_sse_auth_ready` | `agent:doctor` | 页面 SSE 鉴权是否已满足;为 `false` 时不要运行 `--page-sse` 真实计费请求。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
| `private_agent_env.exists` | `first-run --json` | 本机是否存在 `.env.agent.local` 私有配置;Agent CLI 默认从当前仓库根目录读取该文件。 |
|
| 141 |
| `capabilities.ok` | `first-run --json`、`agent:doctor` | 目标地址是否返回 Agent capabilities;失败时先看 HTTP 状态、鉴权提示和服务地址。 |
|
| 142 |
| `diagnostics_retention` | `diagnose-request.mjs` | 页面日志诊断的保留窗口;无匹配日志不等于请求一定没发生。 |
|
|
|
|
| 137 |
| `agent_auth_process.has_token` | `first-run --json` | 当前进程是否已经拿到 `GPT_IMAGE_AGENT_TOKEN`。 |
|
| 138 |
| `page_sse_auth_available_to_process` | `first-run --json` | 目标服务要求页面 SSE `passwordHash` 时,当前进程是否已加载 `GPT_IMAGE_APP_PASSWORD_HASH`。 |
|
| 139 |
| `summary.page_sse_auth_ready` | `agent:doctor` | 页面 SSE 鉴权是否已满足;为 `false` 时不要运行 `--page-sse` 真实计费请求。 |
|
| 140 |
+
| `page_sse_real_smoke_status` | `first-run --json` | 结构化说明 `first-run` 未执行真实 `/api/images` smoke;`state=not_run` 且 `billable=false` 表示它只是只读就绪检查。 |
|
| 141 |
+
| `responses_image_backend_real_smoke_status` | `first-run --json` | 结构化说明 `first-run` 未执行真实 Responses image_generation smoke;不要把声明支持当作实测通过。 |
|
| 142 |
+
| `summary.responses_page_sse_generate_smoke` | `agent:doctor` | `--allow-billable` 时对 `responses-image-generation` + page SSE + `responses-sse` 这条文生图路径的真实 smoke 状态;非计费时为 `skipped`。 |
|
| 143 |
+
| `summary.real_smoke_checks` | `agent:doctor` | 各真实 smoke 的状态汇总,包含 `agent_generate_1k`、`responses_page_sse_generate_1k`、`agent_edit_1k` 和 `page_sse_edit_2k`。 |
|
| 144 |
| `private_agent_env.exists` | `first-run --json` | 本机是否存在 `.env.agent.local` 私有配置;Agent CLI 默认从当前仓库根目录读取该文件。 |
|
| 145 |
| `capabilities.ok` | `first-run --json`、`agent:doctor` | 目标地址是否返回 Agent capabilities;失败时先看 HTTP 状态、鉴权提示和服务地址。 |
|
| 146 |
| `diagnostics_retention` | `diagnose-request.mjs` | 页面日志诊断的保留窗口;无匹配日志不等于请求一定没发生。 |
|
skills/gpt-image-playground-agent/references/api.md
CHANGED
|
@@ -552,6 +552,10 @@ node "<skill-root>/scripts/diagnose-request.mjs" --base-url https://your-space.h
|
|
| 552 |
| `agent_auth_process.has_token` | `first-run --json` | 当前进程是否已经拿到 `GPT_IMAGE_AGENT_TOKEN`。 |
|
| 553 |
| `page_sse_auth_available_to_process` | `first-run --json` | 目标服务要求页面 SSE `passwordHash` 时,当前进程是否已加载 `GPT_IMAGE_APP_PASSWORD_HASH`。 |
|
| 554 |
| `summary.page_sse_auth_ready` | `agent:doctor` | 页面 SSE 鉴权是否已满足;为 `false` 时不要运行 `--page-sse` 真实计费请求。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 555 |
| `private_agent_env.exists` | `first-run --json` | 本机是否存在 `.env.agent.local` 私有配置;Agent CLI 默认从当前仓库根目录读取该文件。 |
|
| 556 |
| `capabilities.ok` | `first-run --json`、`agent:doctor` | 目标地址是否返回 Agent capabilities;失败时先看 HTTP 状态、鉴权提示和服务地址。 |
|
| 557 |
| `diagnostics_retention` | `diagnose-request.mjs` | 页面日志诊断的保留窗口;无匹配日志不等于请求一定没发生。 |
|
|
|
|
| 552 |
| `agent_auth_process.has_token` | `first-run --json` | 当前进程是否已经拿到 `GPT_IMAGE_AGENT_TOKEN`。 |
|
| 553 |
| `page_sse_auth_available_to_process` | `first-run --json` | 目标服务要求页面 SSE `passwordHash` 时,当前进程是否已加载 `GPT_IMAGE_APP_PASSWORD_HASH`。 |
|
| 554 |
| `summary.page_sse_auth_ready` | `agent:doctor` | 页面 SSE 鉴权是否已满足;为 `false` 时不要运行 `--page-sse` 真实计费请求。 |
|
| 555 |
+
| `page_sse_real_smoke_status` | `first-run --json` | 结构化说明 `first-run` 未执行真实 `/api/images` smoke;`state=not_run` 且 `billable=false` 表示它只是只读就绪检查。 |
|
| 556 |
+
| `responses_image_backend_real_smoke_status` | `first-run --json` | 结构化说明 `first-run` 未执行真实 Responses image_generation smoke;不要把声明支持当作实测通过。 |
|
| 557 |
+
| `summary.responses_page_sse_generate_smoke` | `agent:doctor` | `--allow-billable` 时对 `responses-image-generation` + page SSE + `responses-sse` 这条文生图路径的真实 smoke 状态;非计费时为 `skipped`。 |
|
| 558 |
+
| `summary.real_smoke_checks` | `agent:doctor` | 各真实 smoke 的状态汇总,包含 `agent_generate_1k`、`responses_page_sse_generate_1k`、`agent_edit_1k` 和 `page_sse_edit_2k`。 |
|
| 559 |
| `private_agent_env.exists` | `first-run --json` | 本机是否存在 `.env.agent.local` 私有配置;Agent CLI 默认从当前仓库根目录读取该文件。 |
|
| 560 |
| `capabilities.ok` | `first-run --json`、`agent:doctor` | 目标地址是否返回 Agent capabilities;失败时先看 HTTP 状态、鉴权提示和服务地址。 |
|
| 561 |
| `diagnostics_retention` | `diagnose-request.mjs` | 页面日志诊断的保留窗口;无匹配日志不等于请求一定没发生。 |
|