Move parser, tokenize, and area-aliases under cli/parse; runner and read-only under cli/run; printer under cli/output; help plus the docs/naming contract tests under cli/help. types.ts and helpers.ts stay at the cli root. Update imports, the app-root depth calculation, test fixtures, and the CLI doc generator path. No behavior change.
The root keeps README.md; every subdirectory README must be <dir>.readme.md with leading dots stripped. Add a blocking governance checker with 12 tests, wire it into package scripts, CI, and pre-commit, and rename the existing subdirectory READMEs.
The directory covers cross-host operations (mac15, mac13, WSL, Aliyun), not just WSL. Update the backup script's archive paths, README commands, and AGENTS/README references; the remote ops-backups directory name stays unchanged.
Unify the visible command surface on one canonical spelling per
semantic concept while keeping every legacy spelling working as a
silent parser/dispatcher alias (per .agents/rules/cli-protocol.md §6):
- Fix silent-ignore accept-set gaps: webhook resource-pack export now
reads --out/--output-file and --downloads/--download; approval-runs
and webhook read canonical --start-date/--end-date; webhook secret
reveal accepts --reveal/-r alongside legacy --show-secret.
- Add kebab-case parser registrations for camel-only flags (human-result,
manual-approval-status, include-bridge, rule-version, document-limit,
context-lines, source-document-sn/-id, simulation-batch-id) and read
them in rules/documents search, context, approval-runs list/summary/
bridge/export.
- Retire verbs on the visible surface only: webhook create (add),
simulation delete (clean), preference thinking-depth policies delete
(remove); dispatch keeps both. Runtime nextAction suggestions and
doctor knowledge switch to canonical spellings.
- Add src/cli/naming-charter.test.ts: help surface must be lowercase
kebab-case and free of retired tokens; canonical/legacy spellings
must both parse; P0 accept-sets pinned.
- Document the charter in .agents/rules/cli-protocol.md §7; sync
AGENTS.md, README, and skills/references docs; regenerate cli.md and
embedded skill artifacts.
AGENT.md was a misremembering of AGENTS.md (no plural); the rule at the end of AGENTS.md therefore pointed at a file that should never exist. Remove the symlink and name AGENTS.md instead. CLAUDE.md -> AGENTS.md stays as the genuine consumer link.
- ops/ never said what it holds; wsl-infra/ carries the systemd release-sync and backup scripts that run on the WSL host
- remove enterprises/: the loader only reads ~/.config/seal-use/enterprises, so the in-repo dir (examples + local copies) was dead config; AGENTS/README/SECURITY no longer reference it, the .gitignore whitelist is gone, and doctor's local.json comment points at the global dir
- docs update: SECURITY custom-linter scope narrowed to the global dir; rule-lint.md documents the manifest-driven plaintext exposure
The plugin's MCP surface (dist/mcp/server.js, ~9.8MB) was never turned on
(the enable_mcp default was false, README says most users do not need it) and
its only consumer was .zcode-plugin's .mcp.json. Meanwhile every source change
had to rebuild and re-commit a fresh 9.8MB minified version — 129 versions,
~556MB of blob history — for a tool nobody used.
What goes away:
- .mcp.json, dist/mcp/server.js, scripts/build-plugin.mjs, the `build:plugin`
script, and the CI "Build MCP Plugin & Verify" step (and its bundle gate).
- plugin.json drops `mcpServers` and the `enable_mcp` userConfig: the plugin
now ships skills only.
- bump-version and the PR template stop rebuilding/reminding about the bundle.
What stays:
- The local MCP: `seal-use mcp` runs the stdio server from source/the binary,
and `seal-use mcp-config` still prints the snippet for Cursor/Claude
Desktop/Codex. src/server.ts keeps its in-process tests (6/6) — only the
"boot the packaged bundle" test is dropped, since there is no artifact.
- The embedded skill images in the compiled binary: build:binary still runs
generate-embedded-skill, so `seal-use skill install` writes all 6 real PNGs
(verified: 22 files, valid PNG signatures).
Docs updated (README, AGENTS, issue-pr rule, PR template, SKILL.md) so no
reference to dist/mcp or build:plugin remains outside historical proposals
and CHANGELOG.
The repo had no linter: style and hygiene were convention-only, and the
dead-symbol cleanup needed for noUnusedLocals was invisible until tsc was
reconfigured. Pin oxlint 1.86.0 as a devDependency, add `bun run lint`, and
run it in CI right after the type check. The codebase is at zero warnings,
and AGENTS.md documents the new gate.
The classifier only matched English usage wording, so every Chinese-language
usage error, every enterprise-selection failure, and every Zod/SyntaxError
fell through to exit 1 ("upstream failure"), while environment safety guards
were reported as exit 2 or 1. Add two semantic codes:
- 13 (validationError): well-formed command, unusable value — missing --corp,
unparseable enterprise JSON, missing required parameter, ambiguous webhook
channel selection.
- 14 (safetyBlocked): the target environment forbids the action — replaying
into production, regression outside a test tenant.
classifyCliError now recognises Chinese usage wording, enterprise-selection
phrasing, local file problems, Zod issue lists (structural, not textual) and
SyntaxError; English Usage:/Unknown-command stays 2, domain failures and
quality gates stay 1. Docs (AGENTS, cli-protocol, skill cli.md) and the exit
code assertions follow.
- Gate rules push behind --yes at CLI and domain layers (fail-closed on
dryRun=false without confirm)
- Raise webhook replay partial failure as CliError so exit 1 survives
cli.ts exitCode overwrite; route webhook stdout through printJson for
exit-12 protection and --output-file support
- Narrow MCP read-only allowlist: drop config mode/lint (write forms are
indistinguishable under token-prefix matching; config get covers reads)
- Extract redactSensitiveText to core, extend credential patterns, apply
to HTTP sendError/500 and domain error messages
- Pass release TAG_NAME via env instead of inline ${{ }} interpolation
to close script injection through crafted tag names
- Track .zcodeignore so enterprise credential exclusions travel with the
repo
- Add .agents/rules/security-posture.md documenting usability-first
accepted risks (loopback adapter auth, update verification, mutation
command gates, skill dump stdout); register skill dump as a documented
stdout Markdown exception in AGENTS.md and cli-protocol.md
- Rebuild dist/mcp/server.js
- 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.
- Decouple getHoseProvisionalAuthLink from internal closeapi session cache to prevent silent truncation and cache pollution (#137)
- Add --force, --refresh, -f options and positive integer validation to auth hose-link
- Clarify distinction between Hose web assistance links and Seal delegation tokens across CLI help, SKILL.md, and docs
- Add modular issue resolution and PR workflow rule under .agents/rules/
`872b617` removed the in-repo `.agents/skills/seal-use` symlink, but two docs
still described it as present, so the repository's own instructions
contradicted the tree:
- AGENTS.md claimed the symlink exists "so workspace and Codex skill loading
keep working". It is gone; loading now uses the global
~/.agents/skills/seal-use copy installed by `seal-use skill install`.
- README.md told readers the symlink mirrors `skills/seal-use`, and pointed
them at a path that no longer resolves.
No code or test depended on the removed path — verified by grepping src/ and
scripts/, which only ever reference the global `~/.agents/skills/seal-use`.
plugin-migration-plan.md also mentions the symlink, but it is a historical
record of that migration and is left as-is.