49 KiB
49 KiB
Changelog
All notable changes to seal-use will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
[0.10.24] - 2026-09-15
Added & Enhanced
- Hose Subdomain Privilege Elevation & Assist Link Key Extraction (
extract-keys/add-link --as-hose):- Implemented extracting permanent OpenAPI developer credentials (
appKeyandappSecurity) from incoming Hose/Ekuaibao assistance links (thirdparty.html) via internal session key interfaces (GET /api/innerapi/v1/key). - Added
seal-use corps extract-keys <url>(alias:seal-use auth extract-keys) with--reveal(-r) for explicit unmasking and--saveto upgrade short-lived session links into durable standard Hose enterprise configurations. - Added
--as-hoseoption toseal-use corps add-linkto automatically elevate privileges to standard Hose configuration upon link import.
- Implemented extracting permanent OpenAPI developer credentials (
- Strict Subdomain Hierarchy & Core Domain Boundaries:
- Explicitly defined the Hose capability boundary:
seal-useis the primary smart approval platform; Hose is an upstream integrated ecosystem. - Calling key extraction or
keyson native Seal enterprises (corp.source.type !== "hose") is strictly rejected with exit code 2 and explicit subdomain boundary explanations.
- Explicitly defined the Hose capability boundary:
- Multi-Key Disambiguation Guardrails:
- Enforced interactive disambiguation when an enterprise has multiple OpenAPI keys configured instead of guessing or silently picking the first key.
- Emits candidate key lists with application names, appKeys, keyIds, and active status to
stderr, requiring explicit selection via--app-key <key>or--key-id <id>. Single-key enterprises are safely auto-selected.
- Key Inspection Commands (
corps keys/auth keys):- Added
seal-use corps keys [<url> | <corpId>]andseal-use auth keys [--corp <corpId>]to safely inspect configured developer credentials with automatic middle-segment masking (sec_1234...5678) and optional--revealdisplay.
- Added
- 同等凭据原则(Equal Credential Scope Principle)— Skill & Documentation:
- Fully documented that a Hose assistance link and a browser cURL from an authenticated Hose admin session are both Hose web frontend sessions with identical privilege scope — the structural difference is delivery format only.
- Updated
SKILL.mdFirst Rules andenterprise-onboarding.mdRoute 3 with explicit guidance: when a Hose administrator provides a browser cURL, attempt privilege elevation first (extractaccesstoken+corpid+baseUrl→ call/api/innerapi/v1/key), not a downgraded short-term session import. - Added Route 3a/3b/3c classification in
enterprise-onboarding.mdand a privilege comparison table (F12 session vs. elevated OpenAPI credentials).
[0.10.23] - 2026-09-15
Added & Enhanced
- Hose Native Approval Flow Alignment (
--with-flow):- Added opt-in
--with-flowflag toseal-use approval-runs exportto enrich reports with E人工行为 and E人工意见 columns from native Hose/Ekuaibao approval timelines. - Rejection Formatting (样式 2-B 三行展开式): Cleanly structures rejections with explicit reject target nodes, staff names with roles, and resubmission routing (
↳ 驳回至: .../↳ 重新提交后由...继续审批). - Mid-Flow Modification Detection: Identifies mid-flow edits (
已支付 (中途修改)/审批通过 (中途修改)), hoists modification events to top (✏️: 修改了单据) for instant fact visibility while strictly preserving genuine approval-flow chronological sequence numbers. - Action Emojis: Visual distinction across approval actions (
✏️修改、🤖自动同意、❌驳回、💰支付、💬附言、↩️撤回、🔀转审),while normal approvals maintain a clean text format (: 同意).
- Added opt-in
- Targeted Document SN Export Filter (
--sn/--sns):- Supported
--sn <SN1,SN2>or--snsoption forseal-use approval-runs exportto filter specific documents by single or comma-separated document SNs. - Direct indexed lookup via Seal backend
search: sn, bypassing full pagination scans and reducing export runtimes from 30+ seconds to ~1.5 seconds. - Smart time windowing: searches across full history without artificial 1-day truncation when start/end dates are omitted, and dynamically computes filename date interval from retrieved records.
- Supported
- Strict Clean Export Filenames with Forced Minute Timestamp:
- Enforced a standard format
${safeCorpName}_审核记录_${dateTag}_${countTag}_${YYYYMMDD_HHmm}.xlsx. - Filename timestamp suffix accurate to the minute prevents accidental overwrites and ambiguity.
- Eradicated document SN numbers from the output filename to maintain a concise, standard pattern regardless of export batch size.
- Enforced a standard format
- CLI Help, Guidance & Diagnostics Channel:
- Enhanced
seal-use approval-runs export --helpwith complete option table. - Added next-step command suggestions (
👉 查看导出文件: open "...") and flow enrichment hints tostderr. - Synchronized
skills/seal-use/SKILL.mdand CLI documentation references.
- Enhanced
[0.10.22] - 2026-09-14
Added & Enhanced
- Webhook Resource Pack Export & Dataset Renaming:
- Formally renamed the Webhook dataset format to Webhook 资源包 (Webhook Resource Pack, CLI:
resource-pack, alias:pack), cleanly distinguishing it from Seal backend's native simulation material pack while keepingmaterial-pack100% backward-compatible. - Implemented
exportApprovalRunsToResourcePackand CLI commandseal-use webhook resource-pack exportto export online approval runs and downloaded attachments into a local standard.zipresource pack for offline distribution via third-party channels. - Refined bidirectional ZIP validation so documents without attachments do not trigger false directory-missing errors.
- Formally renamed the Webhook dataset format to Webhook 资源包 (Webhook Resource Pack, CLI:
- Official HLab Structured Rule Linter (
hlab):- Implemented the official HLab Rule Linter (
hlab, aliases:hlab-sop,hlab-rules,hlab-standard) based on industrial Rule-as-SOP standards. - Enforces check methods (
**检查方法**), evaluation standards (**判定标准**), ternary decision closure (- PASS,- FAIL,- 证据不足with manual review), disposal action decoupling, and false-skip prevention. - Automatically synchronizes plaintext template to
~/.config/seal-use/linters/official/hlab.ts.
- Implemented the official HLab Rule Linter (
[0.10.21] - 2026-09-14
Added & Enhanced
- Standardized Export Date Range & Filename Contract:
- Unified all Excel export filenames (
approval-runs exportandanalytics export) into a strict closed interval format${safeCorpName}_..._${startDate}至${endDate}.... - Completely eradicated open-ended naming phrases (
至今and截至), guaranteeing 100% deterministic and parseable filenames across the CLI and MCP tools.
- Unified all Excel export filenames (
- Smart Date Boundary Defaults & Stderr Notifications:
- Implemented intuitive interval fallbacks when date boundaries are omitted:
- Omitted both: defaults to yesterday through today (
yesterday至today). - Omitted end date: defaults to today (
startDate至today). - Omitted start date: defaults to 30 days prior to end date (
endDate - 30d至endDate).
- Omitted both: defaults to yesterday through today (
- Emits explicit interval fallback declarations to
stderr(ℹ️ 未指定导出起止时间...) while keepingstdoutstrictly machine-parseable JSON.
- Implemented intuitive interval fallbacks when date boundaries are omitted:
- 180-Day Safety Guardrail &
--forceFlag:- Added an automatic 180-day (~6 months) span guardrail for both approval run audit logs and smart insights risk exports.
- Export requests exceeding 180 days are cleanly intercepted with non-zero exit code and diagnostic guidance unless
--forceis explicitly provided. - Emits a prominent warning to
stderrwhen--forceis applied to massive exports.
- Approval Runs Count Time Filtering:
- Extended
seal-use approval-runs countto support--start <YYYY-MM-DD|ms>and--end <YYYY-MM-DD|ms>options for bounded quantity counts without requiring full record retrieval.
- Extended
[0.10.20] - 2026-09-13
Added & Enhanced
- Tenant Contract Doctor Probe (
seal-use doctor tenant):- Implemented 100% deterministic tenant contract probe
seal-use doctor tenant [--corp <corpId>] [--quiet]with structured JSON onstdoutand terminal diagnostic dashboard onstderr. - Probes 5 critical tenant contracts: identity & admin roles (
getMe), AI approval billing quota & point deductions (getBillingStatusbalance, deductionAmount, estimated runs), active rules & unreleased draft safety (listApprovalRules), webhook integration readiness, and test environment pairing.
- Implemented 100% deterministic tenant contract probe
- Automated Rule Regression Test Matrix (
seal-use test regression):- Added
seal-use test regression(alias:seal-use corps regression) to run automated regression testing across paired production and test environments. - Enforced Hard Red Line 1: strictly prohibits running directly against pure production enterprises; target MUST be a paired test enterprise (
environment: "test"). - Enforced Hard Red Line 2: pre-flight checks AI approval balance (
balance >= samples * deductionAmount), blocking immediately if points are insufficient. - Implemented outbound HTTPS polling for test run completion, eliminating any inbound port or public IP requirement in NAT/VPN corporate networks.
- Compares production vs. test decisions (
APPROVE,REJECT,MANUAL,ERROR), detects decision flips, computes concordance rate, determinessafeToPublish, and supports--dry-runand--fail-on-flipsfor CI/CD safety gates.
- Added
- 7-Day Enterprise Usage Tracking & List Optimization (
seal-use corps list):- Added enterprise usage tracker (
src/core/stats/usage-tracker.ts) recording 7-day call frequencies and recency. seal-use corps listdefaults to displaying the top 10 most frequently used enterprises in the last 7 days to prevent list dump spam for large enterprise catalogs.- Supported
--allto display the entire enterprise list, and--sort <usage|name|id>to customize ordering.
- Added enterprise usage tracker (
- Skill & Guidance Modernization:
- Synchronized
skills/seal-use/SKILL.mdand reference documentation withdoctor tenant,test regression, and usage ranking.
- Synchronized
[0.10.19] - 2026-09-13
Added & Enhanced
- Smart Insights Full Suite & Multi-Sheet Excel Export:
- Implemented complete Smart Insights analytics suite:
seal-use analytics risks(risk tag frequency and interception trends),seal-use analytics performance(Sankey review throughput, adoption rates, avg duration),seal-use analytics analyze(on-demand rule/document risk diagnosis), andseal-use analytics insight(overview metrics). - Added multi-sheet Excel export CLI
seal-use analytics export(aliases:report,download) and MCP toolseal_insight_export. Generates styled.xlsxreports with 3 dedicated sheets (审核效能与决策流向,Top 风险标签分析,风险单据穿透明细), supporting--downloadsto system downloads directory and custom--outpaths.
- Implemented complete Smart Insights analytics suite:
- Rule Linter Directory Restructuring & Official Isolation:
- Structured
~/.config/seal-use/linters/for custom user linters while isolating official linters in~/.config/seal-use/linters/official/. - Added plaintext sync mechanism (
syncOfficialLinters): writes human- and Agent-readable TypeScript source files (builtin.tsandstrict.ts) with types and JSDoc, overwrites user modifications unconditionally, and prunes rogue files inofficial/. - Added
strict.tslinter: enforces quantitative boundaries (amounts, days, strict limits), catches vague expressions, errors on hanging exceptions without required notes/attachments, and enforces concrete approver roles. - Added CLI
seal-use rules lintersto inspect available linters and updatedseal-use doctor pathswithofficialLintersDir.
- Structured
- Unified Seal Backend HTTP Client & Enterprise Context Injection:
- Enhanced
createSealClientForUrlinsrc/core/http/factory.tswith optional Bearer token support, allowing pre-auth endpoints (SSO exchange, OAuth2 session, whoami) to use the unified client without sending invalid Authorization headers. - Unified all outbound Seal backend HTTP calls across
auth.ts,corps.ts,hose.ts,api.ts,webhook-replay.ts, andmaterial-pack/service.ts, ensuring enterprise custom headers (corp.seal.headers) and gateway cookies (corp.seal.cookies) are consistently injected.
- Enhanced
- Test Enterprise Webhook Replay & Auto-Pairing:
- Added
seal-use corps replay-test <sn>andseal-use webhook replayfor dry-run and live event replay against bound test enterprises. - Automatically sanitizes payloads, strips incompatible reference structures, and enforces test target safeguards (
--forcerequired for non-test targets).
- Added
[0.10.18] - 2026-09-11
Added & Enhanced
- System Diagnostic Doctor & Embedded Specification Whitepaper:
- Added
seal-use doctorfor unified system health diagnostics, inspecting executable runtime, 8 core filesystem paths, enterprise assets, and health checks. - Implemented
seal-use doctor guideto output the full system architecture, 10-tier directory specifications, security guarantees, and capability matrix directly from binary memory with zero additional disk writes. - Added
seal-use doctor pathsfor compact JSON inspection of core directory status and descriptions. - Adheres strictly to dual-channel protocol: typed JSON on
stdoutand terminal diagnostic dashboard onstderr.
- Added
- Intelligent Soft Fuzzy Search for Enterprise Discovery:
- Introduced dedicated fuzzy engine (
src/core/search/fuzzy.ts) supporting case-insensitivity, Chinese homophones/allophones, pinyin initials (简拼), full pinyin, nasal/retroflex normalization, and Levenshtein typo tolerance. - Enabled soft fuzzy search by default on
seal-use corps search <keyword>andseal-use corps list, with--strictoption for exact substring matching. - Enforced
corps searchin Agent Skill guidelines over dumping entire enterprise lists when names or hints are known.
- Introduced dedicated fuzzy engine (
- Dedicated Enterprise Lookup & Compatibility Alias:
- Added
seal-use corps get <idOrName>to inspect a single enterprise by ID, exact name, or unique prefix. - Added
corpas a first-class CLI compatibility alias forcorpsacross command dispatching and help registry.
- Added
- Approval Run Deep Link & SSO URL Generation:
- Added
seal-use runs url <runId> [--sso] [--corp <corpId>]to generate direct Web UI links and security-guarded SSO links for approval runs.
- Added
- Approval Run to Webhook Replay:
- Added
seal-use runs replay <runId> [--corp <corpId>] [--target <url>]to reconstruct webhook payloads from historical runs for deterministic regression testing.
- Added
[0.10.17] - 2026-09-11
Added & Enhanced
- Automatic Hosecloud Integration Synchronization for Staging Test:
seal-use corps sync-testautomatically syncs Hosecloud (合思) integrations from production to bound test Seal enterprises.- Generates standardized outbound name
{企业名前缀}(Seal测)capped at 13 characters to satisfy platform limits. - Automatically overrides mode to
assistedin test environments regardless of production mode. - Reuses production
apiOriginandcustomApiUrl, while extracting credentials directly from local enterprise source config (appKey/appSecuritywithkey/passwordfallback). - Automatically deduplicates multiple production integrations belonging to the same enterprise into a single test integration.
- Retains existing
signKeywhen updating for idempotency; skips outbound sync to Hosecloud to guarantee zero impact on production approval workflows. - Added
hosecloudSyncPlanto--dry-runoutput andhosecloudSyncresult to execution summary.
- Comprehensive Staging Simulation & Production Rule Evolution Guide:
- Added
skills/seal-use/references/staging-simulation-workflow.mdcovering enterprise pairing, auto-sync, staging simulation validation, and production rule rollout. - Enhanced
skills/seal-use/SKILL.mdwith version verification mandates, self-update instructions (seal-use update), and staging-first safety guidelines.
- Added
- Complete Dispatchable Area CLI Help Coverage:
- Registered missing
serviceandstophelp entries, aliasedservertomcphelp, and resolvedconfig statusaliases. - Dynamically generated global help from
HELP_REGISTRY, eliminating drift and redundant usage blocks. - Only emit subcommand footers for areas that have subcommands.
- Added automated coverage tests across all
KNOWN_AREAS.
- Registered missing
- Skill Documentation & Routing Expansion:
- Updated
SKILL.mdandreferences/cli.mdcovering read-only discovery, rule workspace, analytics/export, async simulation, and knowledge document lifecycle capabilities.
- Updated
[0.10.16] - 2026-09-11
Added & Enhanced
- Full-Coverage Knowledge Document Synchronization:
- Extended
seal-use corps sync-testto synchronize knowledge articles (api/v1/knowledge/articles) alongside rules and preferences. - Natural key matching by title: creates missing documents, updates changed documents, and physically deletes redundant test documents (
DELETE /api/v1/knowledge/articles/:id) to prevent stale background knowledge from distorting audit simulation. - Safe scenario fallback: automatically defaults empty
scenariosto["audit"], preventing backend 400 validation failures. - Added
deleteApprovalDocumentin Seal API, exportedseal_approval_delete_documentin MCP tools, and updated OpenAPI schema. - Added
documentsPlanto--dry-runoutput and structureddocumentsexecution summary.
- Extended
- Semantic Sync Versioning with Target Test Version Visibility:
- Enhanced published version name format to
Sync from <ProdCorpName> [Prod v<ProdVersion> · #<Iteration> -> Test v<TestVersion>]. - Solves the Seal Web UI limitation where custom version names omit the assigned test version number.
- Backward-compatible regex parsing in
computeNextSyncIterationhandles legacy un-numbered, bracketed, and arrow-mapped formats.
- Enhanced published version name format to
- Cross-Tenant Rule Mapping & Inspection:
- Tracks bidirectional rule relationships (
versionMappingandruleMapping) between production source IDs/Codes and test target Codes/IDs. - Automatically saves lightweight mapping snapshots to
~/.config/seal-use/mappings/<testCorpId>-v<versionNumber>.json. - Added
seal-use rules map [--corp <corpId>] [--code <ruleCode>]command for easy querying and filtering of mapped rule origins.
- Tracks bidirectional rule relationships (
- Approval Style Preferences HTTP Method Alignment:
- Aligned approval style preferences endpoint updates to use
POST(api/v1/agent/ai-approval/config) matching Seal backend contract.
- Aligned approval style preferences endpoint updates to use
- Local Dev Binary Override & Git-Aware Versioning:
- Added
bun run dev:overrideto compile host binaries with Git dev version metadata, macOS code sign, atomically override/opt/homebrew/bin/seal-use, and sync agent skills. - CLI version output reports active channel (
devvsrelease), commits ahead, dirty state, and commit hash.
- Added
[0.10.15] - 2026-09-11
Added & Enhanced
- Contextual & Subcommand-Scoped CLI Help System:
- Implemented structured help registry in
src/cli/help.tssupporting hierarchical command lookups. - Subcommands (e.g.
seal-use corps bind-test --help) now show only targeted usage, options, and descriptions instead of dumping all 120+ top-level commands across unrelated domains. - Domains (e.g.
seal-use corps --help) now show only relevant domain commands. - Eliminates context window pollution for AI agent harnesses and human operators while preserving backwards-compatible global
help.
- Implemented structured help registry in
- Production to Test Enterprise Association & Staging Rule Sync:
- Added
seal-use corps bind-test <prodCorpId> <testCorpId> [--confirm] [--force]establishing a strict 1-to-1 association. - Added anti-chaining validation preventing test enterprises from being nested or looped as production parents.
- Added
seal-use corps sync-test [<prodCorpId>] [--dry-run] [--yes] [--version-name <name>]to synchronize production draft rules and decision preferences to the bound test enterprise. - Automatically publishes a new rule version on the test enterprise while guaranteeing production rules remain safely in draft state.
- Added
seal-use corps unbind-test [<corpId>] [--confirm]andcorps mark <corpId> --env <production|test> [--confirm].
- Added
- Configuration Directory Normalization & Migration:
- Automatically syncs legacy enterprise configs (
~/.config/seal-home/enterprises) into primary directory (~/.config/seal-use/enterprises). - Restricts runtime enterprise loading strictly to the primary directory once present, preventing stale legacy reads.
- Safely deletes the legacy directory when all files are synchronized and unmodified for more than 7 days.
- Automatically syncs legacy enterprise configs (
- Release Pipeline & Exit Code Standardization:
- Fixed Gitea release asset fallback when artifact quota is full.
- Standardized unknown command and subcommand error classifications to exit code 2.
[0.10.14] - 2026-09-11
Added
-
Material Pack Webhook Attachment File Policy:
- Added per-Webhook minimum file size (default 500 bytes), optional maximum file size, and configurable file-extension whitelist.
- Added unified configuration fields for creating and updating Webhook policies.
- Enforced the policy before attachment upload and document push, with detailed validation errors and no partial push on failure.
- Added default support for common PDF, Office, text, email, and image formats.
-
Unified CLI coverage for staging frontend capabilities:
- Added read-only contacts queries for department trees, department details, department users, and last synchronization time.
- Added
analytics insightfor risk-tag statistics with date-range filtering and current-month defaults. - Added paginated
data expensesanddata invoicesqueries with frontend-compatible filters. - Added
simulation approval-definitionsto discover Feishu approval codes before creating a test batch.
Fixed & Enhanced
- Added non-blocking simulation status checks and
simulation create --no-wait. - Added semantic CLI exit codes and actionable next-command guidance.
- Added universal
--dry-runpreviews for supported configuration and destructive operations. - Changed approval-rule pushes to apply incrementally while preserving existing rule IDs.
- Preserved HTTP error response bodies for actionable upstream diagnostics.
- Documented draft versus published rule code spaces and knowledge-document creation constraints.
[0.10.13] - 2026-09-08
Fixed & Enhanced
- Material Pack Scope Isolation & Strict Path Uniqueness:
- Enforced per-document directory scope isolation: all attachments declared for a document must strictly reside in its own folder (
<documentId>/or<documentId>@annotation/), preventing cross-document file borrowing or path confusion. - Enforced global declaration uniqueness: identical attachment file paths can no longer be declared more than once across the entire material pack (even within the same document or different line-items). Multiple uses require placing distinct physical files in independent paths.
- Added comprehensive unit tests covering cross-document directory violations, intra-document duplicate paths, and multi-document path collisions.
- Updated documentation in
cli.mddetailing the strict scope isolation and declaration uniqueness rules.
- Enforced per-document directory scope isolation: all attachments declared for a document must strictly reside in its own folder (
[0.10.12] - 2026-09-07
Added & Refactored
- Material Pack Pure Path Declaration & Validation Refactor:
- Replaced ambiguous filename heuristics with explicit
[附件]Excel column headers and full ZIP-relative file paths. - Added
@annotation suffix support for ZIP root directories (<documentId>@annotation/) to bypass document idempotency blocks safely. - Enforced bidirectional validation between Excel declarations and ZIP entries without fail-fast, collecting all errors together.
- Added automatic key collision deduplication with numeric suffixes (
-2,-3).
- Replaced ambiguous filename heuristics with explicit
[0.10.11] - 2026-09-07
Added & Enhanced
- Standard Approval Runs Excel Export:
- Added
seal-use approval-runs exportcommand to export tenant approval records into high-fidelity Excel workbooks with frozen headers, dynamic rule columns, and color-coded status badges. - Automatically resolves document template names, manual approval statuses (
APPROVED,TERMINATED,PROCESSING), and human reviewer reject comments frommanualApprovalRecord. - Dynamically fetches tenant active approval rules (
api.listApprovalRules) and appends rule check results (PASS,FAIL,TRIGGERED) as individual column badges. - Added
--downloadsflag to conveniently output directly to the user's~/Downloadsfolder. - Added
seal_approval_runs_exporttool in MCP/agent tools for automated reporting and data inspection. - Supports
--start,--end,--limit,--status,--manual-status, and--completed-onlyfilters with gentle pagination and progress reporting tostderr.
- Added
[0.10.10] - 2026-09-07
Changed & Fixed
- Enterprise Config Resolution Isolation:
- Removed default loading of
./enterprisesfrom the current working directory (cwd), ensuring local repo files never unintentionally leak or override user enterprise configs. - Candidate enterprise directories now strictly default to user global configuration directories (
~/.config/seal-use/enterprises,~/.config/seal-home/enterprises) unless an explicit environment variable or test directory is configured.
- Removed default loading of
- Global Test Enterprises Directory Configuration:
- Added
testEnterprisesDirfield toGlobalConfigSchema. - Added
seal-use config test-dir [<path>|--clear]command to safely configure or clear a dedicated test enterprise directory without impacting normal user operations. - Included
testEnterprisesDirin global configuration summaries and candidate directory listings.
- Added
[0.10.9] - 2026-09-04
Refactored & Purged
- MCP Legacy Code Purge & Strict CLI-First Architecture:
- Removed obsolete intermediate MCP definitions (
sealMcpTools,mcpDirectToolNames,sealActionNames,sealActionAliases,runSealAction,sealActionHelp,findSealMcpTool) fromsrc/domains/seal/tools.ts. - Removed mistakenly registered
seal_approval_run_attachments_downloadtool definition and aliases fromtools.ts. - Decoupled
seal-use approval-runs attachments(inspection & download) CLI commands to invoke pure domain functions insrc/domains/seal/attachments.tsdirectly, bypassing the legacy tool runner. - Purged obsolete "Fine-Grained Tools" lists from
README.mdandskills/seal-use/references/cli.md, reinforcing the CLI-First contract where agents executeseal-use <command>directly or via the singleseal_cliMCP tool.
- Removed obsolete intermediate MCP definitions (
- Repository-Wide Dead Code & Unused Export Cleanup:
- Eliminated duplicate enterprise directory export aliases in
src/core/config/loader.ts. - Converted internal helpers in
src/core/embedded-skill.ts,src/cli/printer.ts,src/cli/commands/auth.ts,src/domains/seal/linter/loader.ts,src/domains/seal/material-pack/validate.ts, andsrc/core/auth/seal.tsto private module functions.
- Eliminated duplicate enterprise directory export aliases in
[0.10.8] - 2026-09-04
Added & Enhanced
- Approval Run Attachments Extraction Compatibility (Issue #35):
- Generalized
extractApprovalRunAttachmentsto inspectdocument.fields[].type === "ATTACHMENT"arrays with nestedvalue[]collections, properly recognizing HoseCloud/Seal 2026 flattened attachment fields that previously resolved tocount: 0. - Extracted comprehensive metadata including
ossSignedUrl,token(automatically parsing embeddedfileIdand objectkey),ossFileSize,mimeType, and preserved parent field labels assourceField. - Added
hasSignedUrlandossFileSizeto compact summary outputs without exposing raw signed URLs.
- Generalized
- New Attachments Download Command (Issue #35):
- Added
seal-use approval-runs attachments download <recordId> [--name <pattern>] [--all] [--out-dir <path>]CLI command. - Prioritizes direct
ossSignedUrllinks from the run record and verifies downloaded file size againstossFileSize. - Automatically sanitizes sensitive temporary signatures in CLI logging (
?[MASKED]) to prevent credential leakage in build/agent transcripts. - Implemented graceful error recovery for expired temporary URLs (HTTP 403) or missing links, reporting diagnostics for failed items while allowing valid attachments to complete without interruption.
- Added
[0.10.7] - 2026-09-04
Added & Enhanced
- Local Approval Rules Workspace & Offline Linting:
- Added
seal-use rules pull(seal_approval_rules_pull) to export remote draft or published version rules to a local JSON file (defaults to./rules.local.json), eliminating unwanted mutations to remote drafts. - Added
seal-use rules lint --file <path>to execute rule quality and execution checks completely offline with zero network requests and zero dirty version records in the remote backend. Supports quality score gates (--min-score) and operates seamlessly even without configured enterprise credentials. - Added
seal-use rules push(seal_approval_rules_push) to apply refined local rules to the remote draft with preview (--dry-run), confirmation (--yes), and optional single-step formal release publishing (--publish).
- Added
- Persistent HTTP Companion Daemon in Background Service:
- Embedded the HTTP API server into
seal-use service run, allowingseal-use service startto run as a detached background daemon with persistent HTTP service (serving/docs,/openapi.json, andPOST /api/cli). - Added
seal-use service logs(--lines <N>) to easily inspect service background activity. - Enhanced
seal-use service statusto track active host, port, and URL via daemon metadata state. - Optimized
parseJsonBodyand CLI runner concurrency with standing command bypasses to prevent process queue blocks. - Added top-level
seal-use stopcommand, intuitive service aliases (seal-use service kill|down|shutdown), andPOST /shutdownHTTP endpoint to gracefully terminate the background daemon from any terminal or script.
- Embedded the HTTP API server into
[0.10.6] - 2026-09-03
Added & Enhanced
- Inbound Webhook Material Pack Import (Issue #27): Added local preview and push workflows for SealAI material packs, including strict ZIP/XLSX validation, normalized approval-document parsing, attachment upload, and HMAC-signed Webhook delivery.
- CLI and MCP Support: Added
seal-use webhook material-pack preview|pushand theseal_webhook_material_packtool, while keeping the existing simulationmaterial_packflow separate. - Test-Enterprise Verification: Verified the new push path against the configured test enterprise with official sample materials; customer enterprise data was not used.
[0.10.5] - 2026-09-03
Added & Enhanced
- Intelligent HoseCloud Sync Discovery & Actionable Guidance (Issue #26): In
seal-use deploy hosecloud syncanddeploy hosecloud get, when<sign-key>is omitted, the CLI dynamically discovers all active HoseCloud integration configs for the tenant and renders structured cards onstderrwith 1-click copy commands (e.g.👉 同步命令: seal-use deploy hosecloud sync <signKey> --corp <corpId>). - Single-Config Fast Track (
--auto): Added--auto(and--yes) flag todeploy hosecloud sync. When a tenant has exactly one configured HoseCloud integration,--autoautomatically locks and syncs without requiring manualsignKeyextraction. - Enhanced Empty State & Diagnostic Hints: If a tenant has zero HoseCloud integrations configured, clearly prompts the user with next-step configuration command
seal-use deploy hosecloud configure .... - Updated Reference Documentation: Updated
skills/seal-use/references/hose-enterprise-deploy.mdand CLI references with--autoand dynamic discovery patterns.
[0.10.4] - 2026-09-03
Added & Enhanced
- Built-in Approval Rule Linter & Quality Validation Engine: Introduced a pure TypeScript/heuristic rule quality validator (
seal-use rules lint&seal_approval_rules_lint). Detects subjective fuzzy words (原则上,尽量,适当,酌情), hanging exception clauses lacking evidence keywords (除非/特殊情况未指明备注/附件/截图凭证来源), and short invalid descriptions. - Plugin-as-Code Dynamic TS Linter Loader: Supports loading custom enterprise TypeScript linter plugins dynamically from
~/.config/seal-use/linters/*.tsor explicit paths (--linter <name|path>). - Fault-Tolerant Automatic Fallback (Anti-Crash Guarantee): If a user's custom
.tslinter file contains syntax errors, throws runtime exceptions, or is missing, the engine automatically catches errors, logs diagnostic warnings tostderr, and seamlessly falls back to the built-in heuristic linter without failing or blocking CLI execution. - Global Config & Default-Disabled Policy: Added
lint: { enabled: false, activeLinter: "builtin", minScore: 0 }to global configuration (~/.config/seal-use/config.json). Linter is disabled by default to avoid unsolicited noise; can be enabled viaseal-use config lint enable. - Real-time Diagnostic Hook on Rule Updates: When linting is enabled,
seal_approval_rule_updateautomatically inspects modified descriptions and outputs structured warnings onstderrwhile keeping clean machine JSON onstdout. - Comprehensive Scenarios & Gatekeeping:
seal-use rules lintsupports full draft scanning, historical version review (--version <num>), rule filtering (--code <code>), summary mode (--summary), and quality gate scoring (--min-score <score>) with non-zero exit codes. - Dedicated Reference Documentation: Added
skills/seal-use/references/rule-lint.mdand updated SKILL router.
[0.10.3] - 2026-09-02
Added & Enhanced
- Auto Platform Probing for HoseCloud Deployment: In
deploy hosecloud configure(seal_deploy_hosecloud_configure), automatically probes 6 standard Hose SaaS platform domains (Standard, DingTalk, WeChat Work, Feishu, CloudHub, DingTalk Enterprise) usingprobeHoseDomainwhencustomApiUrlis omitted. Eliminates manual platform guessing and prevents authentication failures (请检查 API 平台和凭证配置是否正确). - Standardized Business Terminology: Aligned all CLI and tool descriptions with Seal AI product semantics:
Seal AI 智能审核发布到合思费控(replacing raw backend jargon like "合思出站消息"). - Dedicated Reference Documentation: Added
skills/seal-use/references/hose-enterprise-deploy.mdcovering end-to-end deployment, auto platform detection, 3-step publishing, and EBot node integration.
[0.10.2] - 2026-09-02
Added & Enhanced
- Agent Skill Self-Bootstrap & Auto-Installation: Embedded direct 1-line installation scripts into
skills/seal-use/SKILL.mdand onboarding references. Third-party AI Agents can now automatically self-install and bootstrapseal-usewhen missing without human intervention. - CI / Mirror Routing Isolation: Added intelligent mirror mode resolver (
SEAL_USE_MIRROR=github|gitea|auto). Automatically bypasses Gitea in CI environments to ensure 100% offline, deterministic, and fast (<20s) test execution.
[0.10.1] - 2026-09-02
Changed & Infrastructure
- Default Branch Modernization (
master\rightarrowmain): Standardized default branch tomainacross GitHub and Gitea with dual-branch transition compatibility for legacy script URLs. - Repository Rename (
seal-home\rightarrowseal-use): Updated primary repository references toyunyingk/seal-useandgitea/seal-usewith multi-source fallback and GitHub 301/302 redirect support. - Two-Job Decoupled Release Architecture: Split CI/CD release workflow into independent GitHub Release job (~40s fast path) and asynchronous Gitea mirror sync job.
- Tiered Gitea Sync with Supreme Priority: Prioritized
seal-use-darwin-arm64.tar.gzandchecksums.txt(Tier 1, ~26MB) for 10-second sync completion on macOS Apple Silicon.
[0.10.0] - 2026-09-02
Added & Changed
- Rebrand to
seal-use: Aligned naming mental model withhose-usefor a unified developer and Agent CLI/SDK ecosystem. - Clean Agent Skill Cutover: Replaced
skills/seal-homewithskills/seal-useand.agents/skills/seal-use. Embedded installer and runtime automatically clean up legacy~/.agents/skills/seal-hometo eliminate model prompt pollution and routing collisions. - Dual CLI Binary & Alias Compatibility:
package.jsonexposes bothseal-useandseal-home. Binaries, installer, and self-updater maintain symlinks for 100% backward compatibility with existing terminal habits. - Cascading Configuration & Token Fallback: Primary storage in
~/.config/seal-use/with seamless fallback and lazy migration from legacy~/.config/seal-home/. Environment variables supportSEAL_USE_*withSEAL_HOME_*fallback. - Runtime Self-Healing Bootstrap: Added zero-overhead runtime self-healing that automatically repairs missing
seal-usebinaries and upgrades global skills when older<= 0.9.8installations update. - Installer Modernization: Updated
scripts/install.shto downloadseal-useassets, create alias symlinks, and clean legacy skills.
[0.9.8] - 2026-09-02
Added
- Hose Assistance-Link Onboarding: Added
seal-home corps add-link <url>to parse supportedthirdparty.htmllinks, exchange the temporary Hose token through Seal SSO, verify the tenant identity, and write a short-lived enterprise config. - Direct Delegation Link Generation: Added
seal-home delegation create --from-link <url>to generate a Seal delegation link without first persisting an enterprise config. - Credential Safety Checks: Restricted incoming links to HTTPS Hose domains, redacted temporary credentials from CLI output, rejected tenant mismatches, and added focused parser, exchange, onboarding, and delegation tests.
[0.9.7] - 2026-09-01
Enhanced
- Agent-first Enterprise Onboarding: Added a dedicated first-run workflow that makes Agents discover configured enterprises before asking users for parameters, resolves human enterprise names to internal IDs, and avoids asking users for discoverable
corpId,staffId, or tenant identifiers. - Identity and Credential Classification: Clearly separated Hose/合思-sourced versus Seal-native tenant identity from the way access was obtained: standard Hose app credentials, incoming assistance links, or browser-copied cURL sessions.
- Browser cURL Guidance and Secret Handling: Added concrete F12/Network/Fetch-XHR capture instructions, read-only verification guidance, credential redaction rules, and explicit boundaries for raw cURL and assistance-link capabilities not yet supported by the CLI.
- Simplified Hose Setup Routing: Updated the standard Hose path to request only
appKeyandappSecurityinitially, while automatically discovering the domain, enterprise, and administrator candidates.
[0.9.6] - 2026-08-27
Fixed & Enhanced
- Smart Download Speed & Stall Monitor: Added dynamic transfer speed monitoring with a 50 KB/s low-speed threshold and 5s stall detection in
seal-home update, allowing fast downloads to complete without artificial timeouts while proactively abandoning crawling mirrors. - Deduplicated Progress Logging: Eliminated duplicated stderr/console progress logging in binary downloads.
- Curated Mirror List: Pruned expired/broken CDN mirrors from the fallback candidate chain.
[0.9.5] - 2026-08-27
Enhanced & Optimized
- CI/CD Pipeline Security & Least Privilege: Updated GitHub Actions CI to strictly enforce
permissions: contents: readand automatic concurrency cancellation (concurrency.cancel-in-progress: true), preventing workflow backlogs and privilege escalation. - CI Build Integrity & Artifact Drift Validation: Added automated OpenAPI bundling, MCP plugin build, and standalone binary build steps in CI, ensuring
dist/openapi.jsonanddist/mcp/server.jsstay perfectly in sync with source definitions (git diff --exit-code). - Parallel Multi-Platform Cross-Compilation: Refactored
scripts/build-binary.mjsto compile all 5 target platform binaries concurrently viaPromise.all, reducing full build time by 60%+. - Binary & Plugin Minification: Enabled
--minifyacross standalone binary and MCP plugin builds, reducing plugin bundle size from 1.32MB down to 0.75MB and optimizing binary startup latency. - Automated SHA-256 Checksums Generation: Integrated automated
checksums.txtgeneration in release pipelines, allowing secure verification of binary integrity upon download. - Enhanced Installer (
install.sh): Added support forSEAL_HOME_VERSIONcustom version targeting and automated SHA-256 integrity verification. - Repository Hygiene & Community Standards: Added standard MIT
LICENSE,.editorconfig, GitHub Issue Forms (bug_report.yml,feature_request.yml,config.yml), Pull Request template, and status badges.
[0.9.4] - 2026-08-26
Fixed & Enhanced
- Seamless Release Mirror Fallback & Fail-Safe Routing: Enhanced
seal-home updaterelease discovery and asset downloading to automatically fall through to fast CDN and GitHub direct mirrors if a primary mirror returns an incomplete/empty asset list or times out, preventing update failures during in-progress release publishing. - Unconditional Global Skill Synchronization: Ensured
seal-home updateandskill installalways overwrite and synchronize all latest embedded skill files (includingSKILL.mdand all references) to~/.agents/skills/seal-home/. - Parallel Gitea Asset Release Upload: Optimized CI release workflow to upload release binaries in parallel, reducing publishing latency from 6+ minutes down to ~30 seconds.
[0.9.3] - 2026-08-26
Added
- Automated Hose Enterprise Initialization & Probing: Added
seal-home corps probe-hoseto probe enterprise metadata and discover available role definition groups via OpenAPI. - Multi-Domain Concurrent Probing: Intelligently probes candidate public SaaS domains (
app.ekuaibao.com,dd2.hosecloud.com,wx2.ekuaibao.com,kdcloud2.ekuaibao.com,ddenterprise.ekuaibao.com,feishu.ekuaibao.com) whendomainis omitted, while supporting explicit custom domains for private cloud / dedicated tenants (e.g. 美年大健康). - OpenAPI Role & Staff Discovery: Added
seal-home corps hose-staffsto query members under any role (defaults toadmin, or business roles like财务主管,采购申请权限) and batch resolve member details (name, cellphone, activation status, third-party user ID) viaPOST /api/openapi/v1/staffs/getStaffIds. - Strict Staff Selection Guard (Anti-Silent Activation): Guarded
seal-home corps add-hoseagainst silent administrator activation. When multiple candidate administrators exist, the system requires explicit selection (staffId,staffName, orstaffPhone) or structured candidate confirmation. - Dedicated Skill Reference: Added
skills/seal-home/references/hose-enterprise-init.mdcovering domain decision tiering, OpenAPI contracts, and non-TUI Agent autonomous workflows.
[0.9.2] - 2026-08-25
Fixed & Enhanced
- Real-Time Streaming Download Progress in Self-Update: Upgraded
seal-home updateto stream download progress, mirror probe status, and live percentages directly tostderrin real-time, eliminating silent waiting and terminal stalling during binary upgrades. - Fast Mirror Connectivity Probes: Added fast 10s connection timeouts and stream chunk tracking for Gitea, fast CDN proxies, and GitHub download candidates.
[0.9.1] - 2026-08-25
Added
- Native HTTP REST API & Documentation Server: Added
seal-home http [--port 8787] [--host 127.0.0.1]andseal-home serveto start a zero-dependency local HTTP API server. - Interactive API Reference (
/docs): Built-in interactive Scalar API documentation rendering the full OpenAPI 3.1.0 specification. - Agent CLI & Tool Execution Endpoints: Added
POST /api/cli(executing arbitrary seal-home commands over HTTP with JSON responses) andPOST /api/tool/:name(invoking granular tools directly). - Standard RESTful API Endpoints (
/v1/*): Exposed OpenAPI-mapped RESTful endpoints for corps, whoami, approval runs, rules, simulations, and decision preferences. - Full CORS & Enterprise Header Routing: Enabled out-of-the-box CORS support and
X-Seal-Corpheader routing for web frontends, Dify, FastGPT, and external automation workflows.
[0.9.0] - 2026-08-25
Added
- Multi-Platform Simulation & Lifecycle Management: Added support for multi-source system simulation (
hosecloud,feishu,weaver,helios,maycur,material_pack) along withsimulation wait <batchId>(polling batch completion),simulation clean <batchId>(purging test data), andsimulation specifications(listing available templates). - HoseCloud Deployment & Outbound Sync: Added
deploy hosecloudcommand suite (requirements,list,get,status,configure,sync) for seamless tenant credential verification, integration management, and outbound webhook synchronization. - Audit Decision Preferences & Thinking Depth Management: Added
preferencecommand suite (get,decision update,thinking-depth set,thinking-depth policies list|upsert|remove) to configure immediate decision preferences, global default thinking depth, and routing policies. - Approval Runs Analytics & Deduplication: Added
approval-runs stats(with status distribution, source system aggregation, and customizable deduplication bysourceDocumentSN,sourceDocumentId, orid) andapproval-runs count. - sealai-cli Feature Parity: Full feature superset matching all capabilities and command ergonomics of
@sealai-official/cli(v0.3.1).
[0.8.1] - 2026-08-25
Added
- Automated Gitea Releases Dual-Publishing: Automated cross-publishing of compiled standalone binary assets to both GitHub Releases and Gitea (
git.ying-qing.cn) via GitHub Actions. - Enhanced Installer Visuals: Added real-time progress bar, source host identifier, and human-readable byte size indicators to
install.sh. - One-Command Version Bumping: Added
bun run bump <version|patch|minor>script to automatically synchronize all manifest, documentation, OpenAPI, and bundled assets.
[0.8.0] - 2026-08-25
Added
- Multi-Source Download & Gitea Acceleration: Enhanced
install.shandseal-home updatewith intelligent multi-source racing and automatic fallback across Gitea (git.ying-qing.cn), GitHub Releases, and CDN mirrors, achieving lightning-fast downloads in mainland China. - Strict Anti-Rollback & Forward-Only Enforcement: Guarded update commands against downgrades to prevent state schema and skill definition corruption.
- Release History & Changelog Introspection: Integrated
seal-home changelogandupdate checkwith publish timestamps, author identity, and intermediate version diff calculations. - Automated CI Tag Release Notes: Updated GitHub Actions release workflow to extract annotated git tag messages and append GitHub-generated PR and commit notes.
[0.7.1] - 2026-08-25
Added
- Release History & Changelog Query: Added
seal-home changelogandseal-home update checkwith release publish timestamps, author info, and changelog body. - Cross-Version Diff Tracking: Automatically computes skipped/intermediate versions (
pendingReleases) with commit notes when local version is behind. - Strict Downgrade Protection (Anti-rollback Guard): Enforced forward-only updates. Attempts to downgrade to an older version (e.g.
seal-home update 0.3.3) are strictly blocked with explicit guidance. - Latest Keyword Normalization: Normalized
seal-home update latestand--version latestto point cleanly to the newest release. - Approval Runs List Alias: Added
seal-home approval-runs listas a friendly alias forapproval-runs search.
Fixed
- UNIX Pipe EPIPE Handling: Handled
EPIPEbroken pipe errors onprocess.stdoutso piped commands (e.g.seal-home openapi | head) exit cleanly without dumping stack traces. - Empty Filter Guidance: Added friendly stderr diagnostics when queries (e.g.
approval-runs summaryorcorps list) find no records for the current date/filter.
[0.7.0] - 2026-08-25
Added
- Zero-Dependency Native Binaries: Compiled standalone native executables for macOS (arm64/x64), Linux (x64/arm64), and Windows (x64) via Bun compiled standalone target.
- High-Speed Release Pipeline: GitHub Actions multi-target cross-compilation pipeline delivering release assets in under 60 seconds.
- Sudo-Free One-Line Installer: Created
scripts/install.shwith automatic writable path detection (/opt/homebrew/bin→/usr/local/bin→~/.local/bin) and macOS ad-hoc code-signing. - Strict POSIX Stream Isolation: Guaranteed
stdoutemits 100% pure, parseable JSON for AI agents and scripts, while diagnostics and human onboarding tips route tostderr. - Simulation Batch Management: Added
simulation createfor both HoseCloud flow IDs and material package ZIP imports. - In-place Self-Update:
seal-home updateatomic binary replacement with automatic global skill directory synchronization.
[0.3.3] - 2026-06-13
Added
- Initial proof-of-concept release for Seal tenant operations and Hose approval automation.