Refine skill docs: redact signKey, split webhook reference, align exit codes

- Replace a real-looking signKey example with a placeholder in
  hose-enterprise-deploy.md and rebuild embedded bundles so no
  residual value ships in dist/mcp/server.js.
- Document exit codes 11 (auth missing/invalid) and 12 (output
  protection) in AGENTS.md and .agents/rules/cli-protocol.md so
  they match src/core/errors.ts and references/cli.md.
- Split the Webhook resource-pack workflow out of references/cli.md
  into references/webhook-resource-pack.md (cli.md 50KB -> 39KB) and
  add a routing row in SKILL.md; all 14 references stay covered.
This commit is contained in:
gitea committed 2026-09-23 14:08:50 +08:00
1 parent 28c3001758
commit e3ba7aeea5
8 files changed
+415 -256

No files matched your search

+2
View File
@@ -68,6 +68,8 @@ When developing or refactoring CLI commands under `src/cli/`:
| `1` | **Domain / Upstream Failure** | Upstream HTTP 500, business logic rejection, quota insufficient |
| `2` | **Usage / Syntax Error** | Unknown subcommand, invalid JSON payload, invalid argument format |
| `10` | **Confirmation Required** | Mutating command invoked without `--confirm` or `--yes` |
| `11` | **Authentication Missing / Invalid** | Upstream HTTP 401/403, or an expired/missing/invalid `token`/`bearer`/`session` (classified in `classifyCliError`) |
| `12` | **Output Protection** | Response exceeds the size limit (`PayloadTooLargeError` from `printer.ts`); use `--summary`/`--fields`/`--count`/`--output-file`, or `--full` when the full payload is genuinely required |
**Rule**: Never call `process.exit()` deep in domain functions. Throw structured errors and let `src/cli/runner.ts` handle error classification, stream routing, and exit code assignment.