diff --git a/.agents/rules/cli-protocol.md b/.agents/rules/cli-protocol.md
index bc1d21c..010f4fb 100644
--- a/.agents/rules/cli-protocol.md
+++ b/.agents/rules/cli-protocol.md
@@ -25,8 +25,8 @@ When developing or refactoring CLI commands under `src/cli/`:
## 2. Performance Contract & SWR Architecture
-- **Sub-50ms Local Execution**:
- - Read-only discovery commands (e.g. `seal-use version`, `seal-use doctor paths`, `seal-use corps list`) MUST return in under 50ms wall clock (Bun interpreter startup is ~7ms on its own, so this leaves ~40ms for the module graph).
+- **Sub-70ms Local Execution**:
+ - Read-only discovery commands (e.g. `seal-use version`, `seal-use doctor paths`, `seal-use corps list`) MUST return in under 70ms wall clock (Bun interpreter startup is ~7ms on its own, so this leaves ~60ms for the module graph).
- Achieved by keeping `src/cli/runner.ts` free of static command-module imports: dispatch branches load their handler with `await import("./commands/.js")` on demand, so `seal-use version` never loads the Excel/zip tool chain.
- Never trigger synchronous external HTTP requests during routine discovery or inspection invocations. Measured on the maintainer's machine (2026-09): version 45ms, help 41ms, corps list 41ms, bare `bun -e` 7ms.
- **Stale-While-Revalidate (SWR) Pattern**:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6ec24ec..882a4a7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,6 +41,12 @@ jobs:
- name: Linter Plaintext Sync
run: bun run verify:linter-plaintext
+ - name: CLI Documentation Sync
+ run: bun run verify:cli-md
+
+ - name: Embedded Skill Sync
+ run: bun run verify:embedded-skill
+
- name: Colocated Unit Tests
run: bun test
diff --git a/AGENTS.md b/AGENTS.md
index d67d123..67b681e 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -34,7 +34,7 @@ Prefer small domain functions over broad utility modules.
- **Machine Channel (`stdout`)**: Data commands MUST output clean, parseable JSON on `stdout`. Never dump human prose, raw logs, or progress banners into `stdout`. The Agent Harness parses `stdout` directly into typed payloads.
- **Documented exception — document-output commands**: `seal-use --help` / `seal-use help ` (`src/cli/printer.ts`), `seal-use doctor guide` (`src/cli/commands/doctor.ts`), and `seal-use skill dump` (`src/cli/commands/skill.ts`) intentionally write Markdown to `stdout`, because their output *is* the payload the caller redirects or reads (e.g. `seal-use doctor guide > guide.md`, `seal-use skill dump > SKILL.md`). Never add a new prose-on-stdout command outside this list: return structured JSON and put the readable rendering on `stderr` instead. `src/probe.ts` is a local developer probe script rather than a `bin` entry point, so its `[probe] …` lines are outside this contract.
- **Guidance & Diagnostic Channel (`stderr`)**: Use `stderr` for runtime logs, network probing status, self-healing notifications, and explicit **Next-Step Command Suggestions** (e.g. `👉 Next action: seal-use deploy hosecloud sync `).
-- **Performance Contract & SWR Architecture**: Read-only discovery and version commands (`seal-use version`, `seal-use doctor`, `seal-use corps list`) MUST execute in under 50ms wall clock (Bun startup alone is ~7ms; runner dispatch uses lazy `await import()` per command area, so the version path never loads the Excel/zip tool chain). Never block on external network I/O during routine invocations. Use the Stale-While-Revalidate (SWR) pattern: read local cache from `~/.config/seal-use/*.json` synchronously (<0.2ms), and refresh stale/missing data via detached, unref'd child processes (`triggerBackgroundUpdateCheck`, `unref()`).
+- **Performance Contract & SWR Architecture**: Read-only discovery and version commands (`seal-use version`, `seal-use doctor`, `seal-use corps list`) MUST execute in under 70ms wall clock (Bun startup alone is ~7ms; runner dispatch uses lazy `await import()` per command area, so the version path never loads the Excel/zip tool chain). Never block on external network I/O during routine invocations. Use the Stale-While-Revalidate (SWR) pattern: read local cache from `~/.config/seal-use/*.json` synchronously (<0.2ms), and refresh stale/missing data via detached, unref'd child processes (`triggerBackgroundUpdateCheck`, `unref()`).
- **Safety Guardrail & Mutation Preview (`--dry-run`)**: All potentially destructive or state-mutating commands (e.g. `rules push/clear`, `corps sync-test`, `preference update`, `webhook add/update`) MUST support `--dry-run` returning structured JSON previews with `preview: true` and a clean diff, without executing mutations. Live execution requires explicit `--yes` or `--confirm`.
- **Exit Code Contract**:
- `0`: Successful execution.
diff --git a/SECURITY.md b/SECURITY.md
index a82a358..a6039eb 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -22,7 +22,7 @@ initial response within a few business days — this is a small project, not a s
| `enterprises/*.json` (working tree) | Same, for enterprises added from a checkout | `0600` |
| `~/.cache/seal-use/usage.json` | Per-enterprise command counts | `0600` |
-The tool writes these `0600`; a config placed by hand can keep the `0o644` default, so
+Credential writes tighten existing files to `0600` before storing new content, including updates, overwrites, and legacy migration. A hand-placed file can retain `0o644` until the next write, so
`seal-use doctor` reports any credential file whose mode is wider than `0600`. Real enterprise
configs are gitignored — never commit them.
diff --git a/package.json b/package.json
index ba2d25a..064b18b 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,11 @@
"generate:linter-plaintext": "bun run scripts/generate-linter-plaintext.mjs",
"verify:linter-plaintext": "bun run scripts/check-linter-plaintext.mjs",
"test": "bun test",
- "prepare": "git config core.hooksPath .githooks"
+ "prepare": "git config core.hooksPath .githooks",
+ "generate:embedded-skill": "bun run scripts/generate-embedded-skill.mjs",
+ "verify:embedded-skill": "bun run scripts/check-embedded-skill.mjs",
+ "generate:cli-md": "bun run scripts/generate-cli-md.mjs",
+ "verify:cli-md": "bun run scripts/check-cli-md.mjs"
},
"dependencies": {
"@modelcontextprotocol/server": "^2.0.0",
diff --git a/scripts/build-binary.mjs b/scripts/build-binary.mjs
index 8e0bfe7..0acd85d 100644
--- a/scripts/build-binary.mjs
+++ b/scripts/build-binary.mjs
@@ -128,6 +128,11 @@ function getBuildInfo(releaseMode) {
async function main() {
const startTime = Date.now();
+ const generatedCliDoc = spawnSync(bun, [resolve(root, "scripts/generate-cli-md.mjs")], {
+ cwd: root,
+ stdio: "inherit"
+ });
+ if (generatedCliDoc.status !== 0) throw new Error("Failed to generate CLI documentation");
const generatedSkill = spawnSync(bun, [resolve(root, "scripts/generate-embedded-skill.mjs")], {
cwd: root,
stdio: "inherit"
diff --git a/scripts/bump-version.ts b/scripts/bump-version.ts
index 6707a62..fa60c5d 100644
--- a/scripts/bump-version.ts
+++ b/scripts/bump-version.ts
@@ -87,6 +87,10 @@ writeFileSync(skillPath, skillContent);
console.log("✓ Updated skills/seal-use/SKILL.md");
+// Keep command documentation and the embedded file manifest synchronized before installation.
+execSync("bun run generate:cli-md", { cwd: ROOT, stdio: "inherit" });
+execSync("bun run generate:embedded-skill", { cwd: ROOT, stdio: "inherit" });
+
// 5. Sync to global ~/.agents/skills/seal-use/ if present
const globalSkillDir = join(homedir(), ".agents", "skills", "seal-use");
const legacyGlobalSkillDir = join(homedir(), ".agents", "skills", "seal-home");
diff --git a/scripts/check-cli-md.mjs b/scripts/check-cli-md.mjs
new file mode 100644
index 0000000..8ea9026
--- /dev/null
+++ b/scripts/check-cli-md.mjs
@@ -0,0 +1,11 @@
+#!/usr/bin/env bun
+import { readFileSync } from "node:fs";
+import { cliDocPath, updateCliDoc } from "./generate-cli-md.mjs";
+
+const content = readFileSync(cliDocPath, "utf8");
+if (content !== updateCliDoc(content)) {
+ console.error("CLI command documentation is stale. Run bun run generate:cli-md and commit the result.");
+ process.exitCode = 1;
+} else {
+ console.log("CLI command documentation is synchronized.");
+}
diff --git a/scripts/check-embedded-skill.mjs b/scripts/check-embedded-skill.mjs
new file mode 100644
index 0000000..f3320c7
--- /dev/null
+++ b/scripts/check-embedded-skill.mjs
@@ -0,0 +1,10 @@
+#!/usr/bin/env bun
+import { existsSync, readFileSync } from "node:fs";
+import { embeddedSkillOutput, renderEmbeddedSkill } from "./generate-embedded-skill.mjs";
+
+if (!existsSync(embeddedSkillOutput) || readFileSync(embeddedSkillOutput, "utf8") !== renderEmbeddedSkill()) {
+ console.error("Embedded Skill manifest is stale. Run bun run generate:embedded-skill and commit the result.");
+ process.exitCode = 1;
+} else {
+ console.log("Embedded Skill manifest is synchronized.");
+}
diff --git a/scripts/generate-cli-md.mjs b/scripts/generate-cli-md.mjs
new file mode 100644
index 0000000..5488496
--- /dev/null
+++ b/scripts/generate-cli-md.mjs
@@ -0,0 +1,28 @@
+#!/usr/bin/env bun
+import { readFileSync, writeFileSync } from "node:fs";
+import { resolve } from "node:path";
+import { HELP_REGISTRY } from "../src/cli/help.ts";
+
+export const cliDocPath = resolve(import.meta.dirname, "../skills/seal-use/references/cli.md");
+const begin = "";
+const end = "";
+
+export function renderCliCommandBlock() {
+ const usages = ["seal-use version", ...HELP_REGISTRY.flatMap((area) => area.commands.flatMap((command) => command.usage))];
+ return [begin, "", "```bash", ...usages, "```", "", end].join("\n");
+}
+
+export function updateCliDoc(markdown) {
+ if (markdown.split(begin).length !== 2 || markdown.split(end).length !== 2 || markdown.indexOf(end) < markdown.indexOf(begin)) {
+ throw new Error("CLI documentation must contain exactly one ordered generated command block.");
+ }
+ const start = markdown.indexOf(begin);
+ const finish = markdown.indexOf(end) + end.length;
+ return markdown.slice(0, start) + renderCliCommandBlock() + markdown.slice(finish);
+}
+
+if (import.meta.main) {
+ const before = readFileSync(cliDocPath, "utf8");
+ const after = updateCliDoc(before);
+ if (before !== after) writeFileSync(cliDocPath, after, "utf8");
+}
diff --git a/scripts/generate-embedded-skill.mjs b/scripts/generate-embedded-skill.mjs
index 1f4726f..0f9381d 100644
--- a/scripts/generate-embedded-skill.mjs
+++ b/scripts/generate-embedded-skill.mjs
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const skillRoot = resolve(root, "skills", "seal-use");
-const output = resolve(root, "src", "core", "embedded-skill.generated.ts");
+export const embeddedSkillOutput = resolve(root, "src", "core", "embedded-skill.generated.ts");
const textExtensions = new Set([".md", ".yaml", ".yml", ".json", ".txt"]);
function walk(dir) {
@@ -20,40 +20,39 @@ function walk(dir) {
return files;
}
-const files = walk(skillRoot).map((fullPath) => ({
- fullPath,
- relativePath: relative(skillRoot, fullPath).split("\\").join("/"),
- importPath: relative(resolve(root, "src", "core"), fullPath).split("\\").join("/"),
- kind: textExtensions.has(extname(fullPath).toLowerCase()) ? "text" : "asset"
-}));
+export function renderEmbeddedSkill(sourceDir = skillRoot, coreDir = resolve(root, "src", "core")) {
+ const files = walk(sourceDir).map((fullPath) => ({
+ relativePath: relative(sourceDir, fullPath).split("\\").join("/"),
+ importPath: relative(coreDir, fullPath).split("\\").join("/"),
+ kind: textExtensions.has(extname(fullPath).toLowerCase()) ? "text" : "asset"
+ }));
+ const lines = [
+ "// Generated by scripts/generate-embedded-skill.mjs. Do not edit manually.",
+ ""
+ ];
-const lines = [
- "// Generated by scripts/generate-embedded-skill.mjs. Do not edit manually.",
- ""
-];
-
-for (const [index, file] of files.entries()) {
- if (file.kind === "text") {
- lines.push(`import file${index} from ${JSON.stringify(file.importPath)} with { type: "text" };`);
- } else {
- const base64 = readFileSync(file.fullPath).toString("base64");
- lines.push(`const file${index} = ${JSON.stringify(base64)};`);
+ for (const [index, file] of files.entries()) {
+ const loader = file.kind === "text" ? "text" : "file";
+ lines.push(`import file${index} from ${JSON.stringify(file.importPath)} with { type: "${loader}" };`);
}
+
+ lines.push("", "export const EMBEDDED_SKILL_TEXT_FILES: Record = {");
+ for (const [index, file] of files.entries()) {
+ if (file.kind === "text") lines.push(` ${JSON.stringify(file.relativePath)}: file${index},`);
+ }
+ lines.push("};", "", "export const EMBEDDED_SKILL_ASSET_PATHS: Record = {");
+ for (const [index, file] of files.entries()) {
+ if (file.kind === "asset") lines.push(` ${JSON.stringify(file.relativePath)}: file${index},`);
+ }
+ lines.push("};", "", "export const EMBEDDED_SKILL_ALL_PATHS = [");
+ for (const file of files) lines.push(` ${JSON.stringify(file.relativePath)},`);
+ lines.push("];", "");
+ return lines.join("\n");
}
-lines.push("", "export const EMBEDDED_SKILL_TEXT_FILES: Record = {");
-for (const [index, file] of files.entries()) {
- if (file.kind === "text") lines.push(` ${JSON.stringify(file.relativePath)}: file${index},`);
+if (import.meta.main) {
+ const content = renderEmbeddedSkill();
+ const previous = existsSync(embeddedSkillOutput) ? readFileSync(embeddedSkillOutput, "utf8") : "";
+ if (previous !== content) writeFileSync(embeddedSkillOutput, content, "utf8");
}
-lines.push("};", "", "export const EMBEDDED_SKILL_ASSET_DATA: Record = {");
-for (const [index, file] of files.entries()) {
- if (file.kind === "asset") lines.push(` ${JSON.stringify(file.relativePath)}: file${index},`);
-}
-lines.push("};", "", "export const EMBEDDED_SKILL_ALL_PATHS = [");
-for (const file of files) lines.push(` ${JSON.stringify(file.relativePath)},`);
-lines.push("];", "");
-
-const content = lines.join("\n");
-const previous = existsSync(output) ? readFileSync(output, "utf8").replace(/\r\n/g, "\n") : "";
-if (previous !== content) writeFileSync(output, content, "utf8");
diff --git a/scripts/generators.test.ts b/scripts/generators.test.ts
new file mode 100644
index 0000000..bc3abad
--- /dev/null
+++ b/scripts/generators.test.ts
@@ -0,0 +1,77 @@
+import { afterEach, describe, expect, test } from "bun:test"
+import { copyFileSync, mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs"
+import { tmpdir } from "node:os"
+import { join } from "node:path"
+import { embeddedSkillOutput, renderEmbeddedSkill } from "./generate-embedded-skill.mjs"
+import { cliDocPath, renderCliCommandBlock, updateCliDoc } from "./generate-cli-md.mjs"
+
+const tempDirs: string[] = []
+afterEach(() => {
+ for (const dir of tempDirs.splice(0)) rmSync(dir, { recursive: true, force: true })
+})
+
+describe("generated documentation contracts", () => {
+ test("both committed generated artifacts match their source", () => {
+ const markdown = readFileSync(cliDocPath, "utf8")
+ expect(updateCliDoc(markdown)).toBe(markdown)
+ expect(readFileSync(embeddedSkillOutput, "utf8")).toBe(renderEmbeddedSkill())
+ })
+
+ test("CLI regeneration repairs drift while preserving surrounding handwritten content", () => {
+ const block = renderCliCommandBlock()
+ const drifted = `before\n${block.replace("seal-use version", "seal-use stale-command")}\nafter`
+ expect(updateCliDoc(drifted)).toBe(`before\n${block}\nafter`)
+ expect(() => updateCliDoc("missing markers")).toThrow("exactly one ordered")
+ expect(() => updateCliDoc(`${block}\n${block}`)).toThrow("exactly one ordered")
+ })
+
+ test("embedded manifests follow added and removed paths without inlining asset bytes", () => {
+ const dir = mkdtempSync(join(tmpdir(), "seal-generator-"))
+ tempDirs.push(dir)
+ const skill = join(dir, "skill")
+ mkdirSync(skill)
+ writeFileSync(join(skill, "SKILL.md"), "first")
+ const before = renderEmbeddedSkill(skill, dir)
+ writeFileSync(join(skill, "SKILL.md"), "second")
+ expect(renderEmbeddedSkill(skill, dir)).toBe(before)
+ writeFileSync(join(skill, "fixture.png"), new Uint8Array([1, 2, 3]))
+ const after = renderEmbeddedSkill(skill, dir)
+ expect(after).not.toBe(before)
+ expect(after).toContain('with { type: "file" }')
+ expect(after).not.toContain("AQID")
+ // Rendering and checking never write the generated output or alter sources.
+ expect(readFileSync(join(skill, "SKILL.md"), "utf8")).toBe("second")
+ rmSync(join(skill, "fixture.png"))
+ expect(renderEmbeddedSkill(skill, dir)).toBe(before)
+ })
+
+ test("check commands reject stale artifacts without rewriting them", () => {
+ const dir = mkdtempSync(join(tmpdir(), "seal-generator-check-"))
+ tempDirs.push(dir)
+ const scripts = join(dir, "scripts")
+ const core = join(dir, "src/core")
+ const cli = join(dir, "src/cli")
+ const skill = join(dir, "skills/seal-use")
+ for (const path of [scripts, core, cli, join(skill, "references")]) mkdirSync(path, { recursive: true })
+ for (const name of ["generate-embedded-skill.mjs", "check-embedded-skill.mjs", "generate-cli-md.mjs", "check-cli-md.mjs"]) {
+ copyFileSync(join(import.meta.dir, name), join(scripts, name))
+ }
+ writeFileSync(join(cli, "help.ts"), 'export const HELP_REGISTRY = [{ commands: [{ usage: ["seal-use fixture list"] }] }];')
+ writeFileSync(join(skill, "SKILL.md"), "fixture skill")
+ const embeddedPath = join(core, "embedded-skill.generated.ts")
+ const markdownPath = join(skill, "references/cli.md")
+ writeFileSync(embeddedPath, "stale embedded fixture")
+ const markdown = renderCliCommandBlock().replace("seal-use version", "seal-use stale-command")
+ writeFileSync(markdownPath, markdown)
+ for (const script of ["check-embedded-skill.mjs", "check-cli-md.mjs"]) {
+ const result = Bun.spawnSync([process.execPath, join(scripts, script)], { cwd: dir })
+ expect(result.exitCode).toBe(1)
+ }
+ expect(readFileSync(embeddedPath, "utf8")).toBe("stale embedded fixture")
+ expect(readFileSync(markdownPath, "utf8")).toBe(markdown)
+ for (const script of ["generate-cli-md.mjs", "generate-embedded-skill.mjs", "check-embedded-skill.mjs", "check-cli-md.mjs"]) {
+ const result = Bun.spawnSync([process.execPath, join(scripts, script)], { cwd: dir })
+ expect(result.exitCode).toBe(0)
+ }
+ })
+})
diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md
index 35f8a28..31cb46d 100644
--- a/skills/seal-use/SKILL.md
+++ b/skills/seal-use/SKILL.md
@@ -8,7 +8,7 @@ metadata:
# Seal Use
-CLI 是主执行通道。机器通道 `stdout` 必须是纯 JSON;诊断日志、进度和下一步建议写入 `stderr`。插件不带 MCP;本地 MCP 需显式 `seal-use mcp` 启动。
+CLI 是主执行通道。运行 `seal-use help` 获取完整命令清单,使用 `seal-use help [command]` 按需查询参数。机器通道 `stdout` 必须是纯 JSON;诊断日志、进度和下一步建议写入 `stderr`。插件不带 MCP;本地 MCP 需显式 `seal-use mcp` 启动。
## 工具就绪检测与安装 (Bootstrap & Installation)
@@ -86,11 +86,7 @@ bun run dev:override # 编译本机二进制、打版本号并原子覆盖
## `corps` 主线
-- 接入:`add-link`、`add-seal-bearer`、`add-hose-persistent`、`add-hose-web-session`
-- 发现:`list`、`search`/`find`、`get`/`show`、`current`、`switch`
-- 维护:`mark`、`rename`
-- 测试闭环:`bind-test`、`unbind-test`、`sync-test`、`replay-test`
-- Hose 专属:`probe-hose`、`hose-staffs`、`hose-extract-keys`、`hose-keys`
+企业接入、发现、维护与测试配对的具体语法见 `seal-use help corps`;材料选择与操作流程按下方 reference 路由。
Hose 专属命令应从命令名或选项中明确可见:`auth hose-*`、`approval-runs hose-flow`、`deploy hosecloud`、`simulation --mode hosecloud`。跨来源入口只有在明确使用 `--elevate-hose`、`--with-flow` 或 `--type hose-document` 时才启用对应 Hose 能力。
diff --git a/skills/seal-use/references/cli.md b/skills/seal-use/references/cli.md
index 270e735..5897ef0 100644
--- a/skills/seal-use/references/cli.md
+++ b/skills/seal-use/references/cli.md
@@ -35,13 +35,30 @@ override that path. The legacy `current-corp` file is not read.
## Top-Level Commands
+
+
```bash
seal-use version
-seal-use config paths
-seal-use config get
-seal-use config mode [--corp ]
-seal-use config test-dir [|--clear]
-seal-use config lint [--linter ] [--min-score ]
+seal-use corps list [query] [--all] [--limit ] [--env ] [--strict] [--corp ]
+seal-use corps search [--env ] [--strict]
+seal-use corps get
+seal-use corps current [--corp ]
+seal-use corps switch
+seal-use corps mark --env [--confirm]
+seal-use corps rename --name
+seal-use corps bind-test [--confirm] [--force]
+seal-use corps bind-test --corp [--confirm] [--force]
+seal-use corps unbind-test [] [--confirm]
+seal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]
+seal-use corps replay-test [] [--record-id ] [--sn ] [--limit ] [--status ] [--webhook ] [--sn-suffix ] [--dry-run] [--confirm|--yes] [--force]
+seal-use corps add-hose-persistent --json '{"name":"企业名称","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'
+seal-use corps add-seal-bearer --json '{"sealUrl":"https://tenant.sealai.cc","token":"seal-bearer-token"}'
+seal-use corps add-hose-web-session --json '{"baseUrl":"https://wx2.ekuaibao.com","corpId":"...","staffId":"...","accessToken":"..."}'
+seal-use corps add-link [--name ] [--elevate-hose] [--app-key ] [--key-id ] [--overwrite] [--dry-run]
+seal-use corps probe-hose --json '{"appKey":"...","appSecurity":"...","domain":"https://..."}'
+seal-use corps hose-staffs --json '{"appKey":"...","appSecurity":"...","role":"admin"}'
+seal-use corps hose-extract-keys [--reveal] [--save] [--app-key ] [--key-id ] [--name ] [--overwrite]
+seal-use corps hose-keys [ | ] [--reveal] [--save] [--app-key ]
seal-use rules count [--version ] [--corp ]
seal-use rules list [--version ] [--summary] [--limit 20] [--offset 0] [--output-file ] [--corp ]
seal-use rules get [--version ] [--record-id ] [--corp ]
@@ -61,102 +78,78 @@ seal-use rules push status [--file ] [--corp ]
seal-use rules clear [--dry-run|--yes] [--corp ]
seal-use rules recode [--dry-run] --corp
seal-use rules map [--version ] [--code ] [--corp ]
-seal-use documents list [--scenarios ] [--limit 50] [--offset 0] [--corp ]
-seal-use documents get [--corp ]
-seal-use documents search [--maxResults 20] [--corp ]
-seal-use documents create --title --purpose [--content |--content-file ] [--type ] [--scenarios ] [--tags ] [--status ] [--corp ]
-seal-use documents update [--title ] [--purpose ] [--content |--content-file ] [--type ] [--enabled ] [--scenarios ] [--tags ] [--status ] [--corp ]
-seal-use documents delete --yes [--corp ]
-seal-use langfuse check
-seal-use langfuse cache-refresh
-seal-use langfuse outline [--include-io-preview] [--max-preview-chars ] [--full] [--refresh-if-missing]
-seal-use langfuse search --query [--fields ] [--max-results ] [--context-chars ] [--observation-types ] [--metadata ] [--session-id ] [--refresh-if-missing]
-seal-use langfuse observation [--fields ] [--max-chars ] [--json-path ] [--full] [--refresh-if-missing]
-seal-use langfuse session [--trace-limit ]
-seal-use langfuse observations [--name-contains ] [--type ] [--metadata-key ] [--has-input] [--has-output] [--max-results ] [--refresh-if-missing]
-seal-use langfuse url
-seal-use langfuse attachment-flow [--file-id ] [--file-name ] [--content-hints ] [--context-chars ] [--refresh-if-missing]
-seal-use langfuse rule-flow --rule [--rule-hints ] [--context-chars ] [--refresh-if-missing]
-seal-use update [--check] [--force] [--version ]
-seal-use update check
-seal-use update changelog [--limit ]
-seal-use changelog [--limit ]
-seal-use mcp
-seal-use mcp config
-seal-use mcp-config
-seal-use skill dump
-seal-use skill install [--dir |--local]
-seal-use skill status
-seal-use doctor [--quiet]
-seal-use doctor tenant [--corp ] [--quiet]
-seal-use doctor guide
-seal-use doctor paths
-seal-use test regression [--corp ] [--samples ] [--dry-run] [--fail-on-flips]
-seal-use probe []
-seal-use corps list [query] [--env ] [--limit ] [--all] [--strict] [--corp ]
-seal-use corps search [--env ] [--strict]
-seal-use corps get
-seal-use corps current [--corp ]
-seal-use corps switch
-seal-use corps mark --env [--confirm]
-seal-use corps bind-test [--confirm] [--force]
-seal-use corps unbind-test [] [--confirm]
-seal-use corps sync-test [] [--dry-run] [--yes] [--version-name ]
-seal-use corps replay-test [] [--record-id ] [--sn ] [--limit ] [--status ] [--webhook ] [--sn-suffix ] [--dry-run] [--confirm|--yes] [--force]
-seal-use corps add-hose-persistent --json '{"name":"企业名称","domain":"https://app.ekuaibao.com","appKey":"...","appSecurity":"...","proxyStaffBizId":"corpId:staffId"}'
-seal-use corps add-seal-bearer --json '{"sealUrl":"https://tenant.sealai.cc","token":"seal-bearer-token"}'
-seal-use corps add-link [--name ] [--elevate-hose] [--app-key ] [--key-id ] [--overwrite] [--dry-run]
-seal-use corps probe-hose --json '{"appKey":"...","appSecurity":"...","domain":"https://..."}'
-seal-use corps hose-staffs --json '{"appKey":"...","appSecurity":"...","role":"admin"}'
-seal-use corps hose-extract-keys [--reveal] [--save] [--name ] [--app-key ] [--key-id ] [--overwrite]
-seal-use corps hose-keys [ | ] [--reveal] [--save] [--app-key ] [--key-id ]
-seal-use auth hose-extract-keys [--reveal] [--save] [--name ] [--app-key ] [--key-id ] [--overwrite]
-seal-use auth hose-keys [--corp ] [--reveal]
-seal-use auth check [--corp ]
-seal-use auth link [--corp ] [--note ]
-seal-use auth link --from-link [--note ]
-seal-use auth link list [--corp ]
-seal-use auth link revoke [--corp ]
-seal-use auth hose-link [--corp ] [--expire ] [--force]
-seal-use auth hose-openapi-token [--corp ] [--force]
-seal-use users create --name --phone [--dept ] [--corp ]
-seal-use users search [--corp ]
-seal-use users delegation [--note ] [--corp ]
-seal-use users activate [--corp ]
-seal-use users reset-password --yes [--corp ]
-seal-use users get [--corp ]
-seal-use users delete --yes [--corp ]
-seal-use contacts departments [] [--corp ]
-seal-use contacts children [--corp ]
-seal-use contacts users [--corp ]
-seal-use contacts sync-time [--corp ]
-seal-use data expenses --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]
-seal-use data invoices --corp [--search ] [--start-date ] [--end-date ] [--offset ] [--limit ]
-seal-use llm config [--corp ]
-seal-use llm providers [--corp ]
-seal-use permissions available [--corp ]
-seal-use permissions configs [--corp ]
-seal-use billing status [--corp ]
-seal-use billing plans [--corp ]
-seal-use billing features [--corp ]
-seal-use webhook ready [<资源包.zip>] [--webhook ] [--corp ]
+seal-use webhook ready [<材料包.zip>] [--webhook ] [--corp ]
+seal-use webhook status [<材料包.zip>] [--corp ]
seal-use webhook list [--query ] [--show-secret] [--corp ]
seal-use webhook get|find [--show-secret] [--corp ]
-seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]
+seal-use webhook add --name --result-url [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret ] [--min-file-size 500] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--dry-run] [--corp ]
seal-use webhook update [--name ] [--result-url ] [--mode assisted|semi_automatic|fully_automatic] [--auto-approval-rate 60] [--secret |--rotate-secret] [--min-file-size ] [--max-file-size ] [--allowed-extensions <.pdf,.xlsx,...>] [--clear-max-file-size] [--dry-run] [--corp ]
seal-use webhook delete [--yes|--dry-run] [--corp