gitea
37b54065d9
Remove workspace backup script
...
The host-infra files are already tracked in git and mirrored to Gitea, so the per-host snapshot fan-out added redundancy without operational value. The documentation section was removed earlier.
2026-11-19 16:32:48 +08:00
gitea
a189f49223
Group core utility modules into util, skill, and update
...
Move duration, redact, runtime, secure-file, and semver under core/util; embedded-skill and skill-version under core/skill; update-cache under core/update. Move the dev-override test next to the script it covers, and update the embedded-skill generator output path and regenerated manifest. No behavior change.
2026-11-19 16:31:50 +08:00
gitea
666a12c676
Enforce README naming convention for subdirectories
...
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.
2026-11-19 16:26:37 +08:00
gitea
7fe5cae62c
Rename wsl-infra to host-infra
...
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.
2026-11-19 16:14:15 +08:00
gitea
35f761e8a0
Remove legacy key/password aliases and clean up workspace
...
Drop the Hose key/password compatibility path from the config schema, credential reads, CLI messages, tests, and docs; appKey/appSecurity are now the only accepted fields. Isolate seal-renew tests from the real enterprises directory so renewals never write local config. Remove the tracked pkg/ report spec and local artifacts, and rewrite .gitignore with complete sections.
2026-11-19 16:10:21 +08:00
gitea
8d6b65d3d5
Remove redundant enterprise provider metadata
...
Drop source.provider/providerName, cached enterprise.provider, onboarding writes, CLI outputs, and the search index entry; legacy configs and token caches still parse. Add a compatibility test for stripping the old keys.
2026-11-19 15:48:59 +08:00
yunyingk
8adae54c54
Merge pull request #288 from yunyingk/mac15/add-windows-installer
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
Add native Windows PowerShell installer script (install.ps1)
2026-11-17 15:51:47 +08:00
gitea
09c72d998a
Add native Windows PowerShell installer script (install.ps1)
...
- Add scripts/install.ps1 for native Windows (PowerShell) one-line bootstrap (irm ... | iex) without requiring WSL2, Node.js, or Bun.
- Support candidate mirror failover (Gitea primary, GitHub fallback), SHA-256 checksum verification, non-admin User PATH configuration, and automatic Agent Skill initialization.
- Update README.md, skills/seal-use/SKILL.md, and scripts/README.md to document the Windows one-liner installation.
2026-11-17 15:44:33 +08:00
yunyingk
e88f472b50
Merge pull request #287 from yunyingk/codex/release-v0.11.22
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
🚀 Release / 🚀 Build & Publish GitHub Release (push) Canceled after 0s
Release v0.11.22: Automated release bump
v0.11.22
2026-11-17 11:17:58 +08:00
gitea
1ddf6db9e8
Release v0.11.22: Automated release bump
2026-11-17 11:16:46 +08:00
yunyingk
4b92d397df
Merge pull request #286 from yunyingk/mac15/simulation-rule-source-maycur
...
feat(simulation): 支持单租户未发布草稿快照、已发布版本回溯与每刻报销接入
2026-11-17 11:15:43 +08:00
gitea
d25c09c3be
feat(simulation): 支持单租户未发布草稿快照、已发布版本回溯与每刻报销接入
...
- 模拟测试原生支持 ruleSource:默认保持以线上生效规则运行(无破坏性变更);显式传递 --draft 对未发布草稿拍摄不可变快照;传递 --rule-version <versionId> 回溯指定历史发布版本。
- 单租户原地即可闭环草稿模拟验证与多版本对比,彻底解耦对双企业组(corps sync-test 强制预发版)的硬依赖。
- 新增每刻报销(maycur / maycur-standard)来源系统支持,引入 --form-codes 单号批量测试并自动解析租户 signKey。
- 完善 simulation create 参数解析器、Zod 类型定义、Help 文档与 Skill 决策工作流规约。
2026-11-17 11:14:15 +08:00
yunyingk
03189c072d
Merge pull request #285 from yunyingk/codex/release-v0.11.21
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
🚀 Release / 🚀 Build & Publish GitHub Release (push) Canceled after 0s
Release v0.11.21: Automated release bump
v0.11.21
2026-11-13 12:42:13 +08:00
gitea
1a023f9996
Release v0.11.21: Automated release bump
2026-11-13 12:40:58 +08:00
yunyingk
0ddd8283fe
Merge pull request #284 from yunyingk/mac15/cli-langfuse-diagnose-ergonomics
...
Refactor: 优化 Langfuse 检索与审批单诊断的 CLI 人体工程学体验
2026-11-13 12:40:01 +08:00
gitea
b980c60c3a
Improve CLI ergonomics for Langfuse search and approval run diagnosis
2026-11-13 12:35:59 +08:00
yunyingk
67cd168ed4
Merge pull request #283 from yunyingk/mac15/fix-flow-error-attribution
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
fix(approval-runs): 不再把传输层失败当成业务结论
2026-11-10 19:49:37 +08:00
yunyingk
8bc1401eae
Merge pull request #282 from yunyingk/mac15/fix-retired-flow-switch
...
fix(cli): 停止在用户可见面上宣传已退役的 --flow 拼写
2026-11-10 19:49:28 +08:00
yunyingk
c572cba842
fix(approval-runs): 传输层失败不再被误判为业务结论
...
`sealApprovalRunFlowGet` 用两次"请求被拒"充当路由信号:记录查询被拒,就
认为入参是单号;运行记录列表被拒,就认为该单据没有 AI 记录。两处都写成
裸 `catch {}`,于是所有失败都被吸收进这两个业务结论。
后果不是偶尔不准,而是以十足的语气给出错误答案:token 过期、连接重置、
网关 5xx 会被渲染成「单据已删除」或「AI 从未审核」,用户没有任何线索去
怀疑刚才那次请求其实失败了;退出码同时失去语义,本该由 classifyCliError
产出 11(认证/上游失败),实际退化成一次"成功的查询"。
现在只有标识符形态的拒绝才计为未命中:HTTP 400/404/422,或响应体确实
到达但不是一条审批记录。认证失败、5xx、限流、以及根本没有响应的传输
错误一律原样上抛。
- errors:导出既有的 `responseStatus` 结构读取器,让调用方能区分"没有
响应"与"收到了 400/404 响应"。
- approval-runs:新增 `isUpstreamLookupMiss`,替换两处裸 catch。
- test:新增四个回归用例(401/403/503/连接失败),断言原始错误对象抵达
调用方;另加一条非合思租户的守卫用例。
2026-11-10 19:47:48 +08:00
yunyingk
71845c35e7
fix(cli): 不再在帮助与文档中暴露已退役的 --flow 拼写
...
`approval-runs get --flow` 至今仍是 `approval-runs hose-flow` 的静默遗留
别名:解析器的布尔标志白名单里还留着它,命令实现里也仍在转发。但 CLI
协议第 6 节要求兼容拼写只能停留在实现层,不得出现在 help、Skill、
references、README 或正常运行时提示中。
问题在于这条规矩被自己的文档破了:`get --help` 中 `--raw-json` 的描述写着
"incompatible with --summary, --fields and --flow",references 里同一句话也
照抄了一遍。用户只要撞上一次参数冲突,就会被 CLI 主动教一遍退役拼写。
- help:`--raw-json` 描述去掉 `--flow`,改为指向规范命令
`approval-runs hose-flow <recordId|SN>`。
- approval-run-lightweight.md:同步修正,并补上原生合思流程时间线的入口。
- 运行时:冲突报错改为只列调用方实际传入的标志,不再主动广播退役拼写。
- naming-charter:新增裸 `--flow` 的边界守卫。原有
LEGACY_SURFACE_TOKENS 是子串匹配,无法表达这个概念(`--flow-id`、
`--flow-ids`、`--flow-concurrency` 都是规范参数),这正是该泄漏存活
八个版本的根因。
2026-11-10 19:47:43 +08:00
yunyingk
8ecadbb124
Merge pull request #281 from yunyingk/codex/release-v0.11.20
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
🚀 Release / 🚀 Build & Publish GitHub Release (push) Canceled after 0s
chore: 发布 v0.11.20 补丁版本
v0.11.20
2026-11-08 23:19:40 +08:00
gitea
dec52cf5fa
chore: 发布 v0.11.20 补丁版本
2026-11-08 23:18:00 +08:00
yunyingk
b49e3a6ea0
Merge pull request #280 from yunyingk/mac15/tenant-disable-active-gate
...
feat: 新增租户 active 状态与统一禁用闸门
2026-11-08 12:53:31 +08:00
gitea
0ff3d9a313
feat: 新增租户 active 状态与统一禁用闸门
2026-11-08 12:52:05 +08:00
yunyingk
634f0e2b78
Merge pull request #279 from yunyingk/codex/release-v0.11.19
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Canceled after 0s
🚀 Release / 🚀 Build & Publish GitHub Release (push) Canceled after 0s
Release v0.11.19: Automated release bump
v0.11.19
2026-11-06 15:03:31 +08:00
gitea
9ec46b244e
Release v0.11.19: Automated release bump
2026-11-06 15:02:15 +08:00
yunyingk
cb07fad536
Merge pull request #278 from yunyingk/mac15/official-rules-export
...
feat: 增加 SealAI 官方规则 CSV 导出
2026-11-06 15:01:42 +08:00
gitea
f454d62be1
feat: 增加 SealAI 官方规则 CSV 导出
2026-11-06 15:00:05 +08:00
yunyingk
382fc1a7ae
Merge pull request #277 from yunyingk/codex/release-v0.11.18
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
🚀 Release / 🚀 Build & Publish GitHub Release (push) Has been cancelled
Release v0.11.18: Automated release bump
v0.11.18
2026-11-02 15:26:39 +08:00
gitea
a5b504d7a3
Release v0.11.18: Automated release bump
2026-11-02 15:25:42 +08:00
yunyingk
0a1eb015fb
Merge pull request #276 from yunyingk/mac15/sqlite-review-and-auth-session-pool
...
feat: 原生 Seal 授权续期自愈与本地 SQLite 分歧待办闭环
2026-11-02 15:24:20 +08:00
gitea
8c9f102931
feat: 原生 Seal 授权续期自愈与本地 SQLite 分歧待办闭环
...
- 授权自愈: 引入长效会话 Cookie 备份池,支持 Seal 原生协助授权到期与 401 报错时平滑自动换发与静默续期;
- 存储升级: 审核报告人工裁决底座迁移至 SQLite (~/.config/seal-use/state/reviews.sqlite),支持历史 JSONL 自动平滑导入与向后兼容双写;
- 分歧待办: 新增 report review unreviewed 与 dismiss 命令,收集人机不一致单据并在日常企业命令完成后于 stderr 注入 Agent 动作指引;
- 精密频控: 实现 30 天单据时效窗口过滤(陈年单据自动归档)、动态 5 小时滑动窗口频控与 24 小时人工拒审静音抑制协议;
- 透明认知: 全面补充 Skill 路由与帮助手册,消除黑盒,透传数据边界与安全红线。
2026-11-02 15:22:47 +08:00
yunyingk
5c46c9bcc4
Merge pull request #275 from yunyingk/mac15/fix-update-clean-test-isolation
...
test(update): 为 cleanStaleBinaries 增加临时目录沙箱隔离
2026-10-29 15:50:15 +08:00
gitea
a885d1478e
test(update): 为 cleanStaleBinaries 增加临时目录沙箱隔离
...
在 `src/cli/commands/update.ts` 中为 `cleanStaleBinaries` 增加可选的 `candidateOverrides` 参数,允许在单元测试中注入沙箱路径。
在 `src/cli/commands/update.test.ts` 中重构单测,使用 `mkdtempSync` 创建临时隔离文件测试活跃路径保留与废弃文件清理逻辑,杜绝在宿主机测试期间误伤或删除真实全局二进制。
2026-10-29 15:48:34 +08:00
yunyingk
e71a81402c
Merge pull request #274 from yunyingk/codex/release-v0.11.17
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
🚀 Release / 🚀 Build & Publish GitHub Release (push) Has been cancelled
Release v0.11.17: Automated release bump
v0.11.17
2026-10-29 15:29:06 +08:00
gitea
fc137910b4
Release v0.11.17: Automated release bump
2026-10-29 15:27:52 +08:00
yunyingk
b8acfc7595
Merge pull request #273 from yunyingk/mac15/fix-skill-version-test-isolation
...
test: 为全局技能版本检查增加测试环境隔离与环境变量覆盖
2026-10-29 15:26:57 +08:00
gitea
3540c634a0
test: 为全局技能版本检查增加测试环境隔离与环境变量覆盖
...
在 `src/core/skill-version.ts` 中引入 `SEAL_USE_GLOBAL_SKILL_DIR` 环境变量,支持自定义覆盖全局 Skill 路径。
在 `src/cli/runner.test.ts` 中通过隔离的临时目录运行 CLI runner 测试,避免开发者本地环境或发版预检期间 `~/.agents/skills/seal-use` 版本漂移导致 `runner.test.ts` 误报。
同时增加专门的单测验证 Skill 新于 CLI 时 stderr 告警与引导输出。
2026-10-29 15:25:23 +08:00
yunyingk
a40bcd1967
Merge pull request #271 from yunyingk/mac15/improve-export-tasks
...
fix: 统一审核记录导出的后台等待与实时进度
2026-10-29 15:15:03 +08:00
yunyingk
375d20a8c1
Merge pull request #272 from yunyingk/mac15/install-migration-and-cleanup
...
feat(install): 支持 --system 与 --user 模式切换并自动清理残留二进制
2026-10-29 15:13:12 +08:00
gitea
0ab524a2aa
feat(dev): dev:override 增加系统目录权限预检与友好的 sudo/迁移引导
2026-10-29 15:12:01 +08:00
gitea
87bb10f527
feat(install): 支持 --system 与 --user 模式切换并自动清理残留二进制
...
- 在 scripts/install.sh 中默认安装至用户目录 ~/.local/bin,并自动清理历史遗留的 /opt/homebrew/bin/seal-use
- 在 scripts/dev-override.ts 中优先命中 ~/.local/bin/seal-use,忽略 Homebrew 路径并自动清理残留
- 在 seal-use update 中支持 --system(提权迁移至 /usr/local/bin)与 --user(降权回归至 ~/.local/bin)选项,添加 seal-use migrate 别名
- 迁移与更新时自动清理另一端的非活动实体二进制(恪守 Single Binary Invariant)
- 自更新权限预检:当目标位于系统目录且缺少写权限时,友好提示 sudo seal-use update 而非底层报错
- 在 seal-use doctor 中增加执行模式识别与多份二进制(PATH 阴影)检测告警
2026-10-29 15:10:40 +08:00
gitea
db5a3f7139
fix: 修复审核记录导出进度与后台等待机制
...
为审核记录导出增加可复用的本地后台任务及 status/wait/list,等待超时或观察进程退出后任务继续执行。
统一实时脱敏诊断输出,保留 stdout 单一 JSON;补齐高级参数、预览和筛选配置摘要。
默认保留合思未找到单据,分别统计单据与审核记录,并显式报告部分补取失败。
补充 CLI/Skill 版本诊断、技能路由及回归测试,修复企业列表加载开销和源码更新测试隔离。
2026-10-27 15:59:04 +08:00
yunyingk
477cc630b4
Merge pull request #270 from yunyingk/mac15/refine-github-templates
...
refactor(github): 为 seal-use 量身优化精简 GitHub PR 与 Issue 模板
2026-10-27 11:20:17 +08:00
gitea
3d942f6303
refactor(github): 为 seal-use 量身优化精简 GitHub PR 与 Issue 模板
...
- PR 模板:
- 移除冗余的形式主义目录勾选列表(直接看 Files Changed)
- 聚焦核心契约核验清单:stdout 纯 JSON、--dry-run 预览防线、代码/类型/单元测试全通、严禁提前发版红线
- Bug 反馈模板:
- 去除冗长且重复的系统/架构下拉框表单项,大幅精简反馈门槛
- 引导附带 `seal-use doctor` 自诊断输出与脱敏报错日志
- 需求建议模板:
- 强化业务痛点与期望 CLI/MCP 交互方案的收集
2026-10-27 11:17:16 +08:00
yunyingk
2b8b8c33f3
Merge pull request #269 from yunyingk/mac15/sync-github-templates
...
feat(infra): 统一 GitHub PR 与 Issue 模板为简体中文标准规范
2026-10-27 10:58:43 +08:00
gitea
793c4c56d8
feat(infra): 统一 GitHub PR 与 Issue 模板为简体中文标准规范
...
- 对齐来自 hose-sealai-bridge 的 GitHub 社区交互模板标准
- 重构 .github/pull_request_template.md:
- 增加统一简体中文语言规范提醒
- 规范变更分类、影响范围模块划分及质量验证清单
- 重构 .github/ISSUE_TEMPLATE/feature_request.yml:
- 规范化功能建议标题前缀 [需求建议]: 与简体中文提示
- 增加业务场景与期望实现方案的结构化收集
- 重构 .github/ISSUE_TEMPLATE/bug_report.yml:
- 规范化缺陷反馈标题前缀 [缺陷反馈]: 与简体中文提示
- 增加运行形态(CLI/MCP/Skill/脚本)及敏感信息脱敏指引
- 更新 .github/ISSUE_TEMPLATE/config.yml 官方指引说明
2026-10-27 10:56:56 +08:00
yunyingk
5608d5fe06
Merge pull request #268 from yunyingk/mac15/sync-dev-standards
...
feat(infra): 同步 Windows 跨平台规范与 Markdown-First 协作流
2026-10-27 10:48:52 +08:00
gitea
f906fa25c3
feat(infra): 同步 Windows 跨平台规范与 Markdown-First 协作流
...
- 吸收来自 hose-sealai-bridge 仓库的近期协作与开发规范演进
- 增强 Git Hooks 防护体系:
- .githooks/pre-commit:拦截主干分支 (main/master) 直接提交,校验分支全小写与设备前缀,拦截 >15MB 单文件与 Windows 非法字符/保留设备名
- .githooks/pre-push:拦截向远端推送含大写字母的分支名
- .githooks/branch-guard.sh:增加大写字符强校验
- .githooks/setup.sh & setup.ps1:跨平台一键配置 hooksPath、autocrlf 与 symlinks
- 跨平台与敏感文件防护:
- 新增 .gitattributes 固化 LF 换行符(防止 Windows 下 CRLF 篡改 Shell 脚本)
- 更新 .gitignore 增加 .env、*.pem、*.key 及 .drafts/* 忽略
- 确立 Markdown 实体先行标准 (Markdown-First):
- 设立 .drafts/ 目录作为草稿落盘规范
- 新增项目级 Skill .agents/skills/repo-gh/SKILL.md
- 新增 .agents/rules/windows-development.md
- 更新 .agents/rules/issue-pr-workflow.md、.agents/rules/branch-naming.md、.agents/README.md 与 AGENTS.md
2026-10-27 10:43:30 +08:00
yunyingk
6379702a42
Merge pull request #267 from yunyingk/mac15/agents-md-governance-gates
...
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
Enforce documentation governance gates, terminal routing anchor, and scripts partitioning
2026-10-25 18:24:55 +08:00