Release v0.10.39: Standardize 0-based 00xx rule codes, draft-default rules CLI, and documents domain

This commit is contained in:
gitea committed 2026-09-28 11:49:31 +08:00
1 parent f8e083f3b2
commit 69fe2415a1
33 files changed
+1377 -777

No files matched your search

+7 -8
View File
@@ -15,13 +15,12 @@ import {
describe("seal-use MCP server", () => {
test("tokenizes quoted JSON without invoking a shell", () => {
expect(tokenizeCommand(
`seal-use tool seal_approval_search --json '{"keywords":["差旅 发票"]}' --corp corp-a`
`seal-use rules search "差旅 发票" --corp corp-a`
)).toEqual([
"seal-use",
"tool",
"seal_approval_search",
"--json",
'{"keywords":["差旅 发票"]}',
"rules",
"search",
"差旅 发票",
"--corp",
"corp-a"
]);
@@ -125,14 +124,14 @@ describe("seal-use MCP server", () => {
for (const command of [
"seal-use corps mark corp-a --env production --confirm",
"seal-use rules push",
"seal-use rules create --description test --scope all",
"seal-use documents create --title t --purpose p --content c",
"seal-use simulation create --mode hosecloud",
"seal-use deploy hosecloud sync sign-key",
"seal-use users reset-password corp-a:u1",
"seal-use webhook replay",
"seal-use update",
"seal-use mcp",
"seal-use tool seal_approval_rule_create --json '{}'",
"seal-use tool seal_webhook_replay --json '{}'",
"seal-use totally-unknown-area list",
""
]) {
@@ -142,7 +141,7 @@ describe("seal-use MCP server", () => {
// Read-only commands must get past the policy; `version` is a top-level command with no
// registry row, and `corp` is an area alias the CLI dispatches as `corps`.
for (const command of ["seal-use version", "seal-use corps list", "seal-use corp list", "seal-use tool seal_approval_search --json '{}'"]) {
for (const command of ["seal-use version", "seal-use corps list", "seal-use corp list", "seal-use documents list --corp corp-a"]) {
const allowed = await callRead(command);
expect({ command, refusedByPolicy: allowed.text.includes("only runs read-only commands") }).toEqual({
command,