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

+8 -17
View File
@@ -16,6 +16,7 @@ import { handleContextCommand } from "./commands/context.js";
import { handleCorpsCommand } from "./commands/corps.js";
import { handleDeployCommand } from "./commands/deploy.js";
import { handleDoctorCommand } from "./commands/doctor.js";
import { handleDocumentsCommand } from "./commands/documents.js";
import { handleHttpCommand } from "./commands/http.js";
import { handleLlmCommand } from "./commands/llm.js";
import { handleMcpCommand, printMcpConfig } from "./commands/mcp.js";
@@ -29,8 +30,6 @@ import { handleSimulationCommand } from "./commands/simulation.js";
import { handleSkillCommand } from "./commands/skill.js";
import { handleSourceCommand } from "./commands/source.js";
import { handleTestCommand } from "./commands/test.js";
import { handleToolCommand } from "./commands/tool.js";
import { handleToolsListCommand } from "./commands/tools.js";
import { handleUpdateCommand, isNewerVersion } from "./commands/update.js";
import { isUpdateCacheExpired, loadUpdateCache, triggerBackgroundUpdateCheck } from "../core/update-cache.js";
import { handleUsersCommand } from "./commands/users.js";
@@ -74,10 +73,8 @@ export const KNOWN_AREAS = new Set([
"http",
"serve",
"update",
"tools",
"corps",
"corp",
"tool",
"source",
"auth",
"users",
@@ -89,6 +86,7 @@ export const KNOWN_AREAS = new Set([
"webhook",
"webhooks",
"context",
"documents",
"rules",
"approval-runs",
"analytics",
@@ -189,9 +187,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
if (
area === "version" ||
area === "v" ||
Boolean(args.options.version) ||
Boolean(args.options.v) ||
Boolean(args.options.V)
(!area && (Boolean(args.options.version) || Boolean(args.options.v) || Boolean(args.options.V)))
) {
const cache = loadUpdateCache();
const isUpgrade = cache?.latestVersion ? isNewerVersion(cache.latestVersion, VERSION_INFO.version) : false;
@@ -335,11 +331,6 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
return;
}
if (area === "tools" && action === "list") {
handleToolsListCommand();
return;
}
if (area === "corps" || area === "corp") {
if (action === "regression" || action === "test-regression") {
await handleTestCommand("regression", maybeName, args);
@@ -435,6 +426,11 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
return;
}
if (area === "documents") {
await handleDocumentsCommand(action, maybeName, client, corp, args);
return;
}
if (area === "rules") {
await handleRulesCommand(action, maybeName, client, corp, args);
return;
@@ -465,10 +461,5 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
return;
}
if (area === "tool") {
await handleToolCommand(action, client, corp, args);
return;
}
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-use help' for available commands.`);
}