Remove the local HTTP adapter, service daemon, and OpenAPI contract
This commit is contained in:
1 parent
560e185bc0
commit
54895e5095
42 files changed
+61
-8602
No files matched your search
+1
-28
@@ -35,10 +35,6 @@ export const UPDATE_ALIASES = new Set([
|
||||
|
||||
export const KNOWN_AREAS = new Set([
|
||||
"config",
|
||||
"service",
|
||||
"stop",
|
||||
"http",
|
||||
"serve",
|
||||
"update",
|
||||
"corps",
|
||||
"corp",
|
||||
@@ -65,7 +61,6 @@ export const KNOWN_AREAS = new Set([
|
||||
"server",
|
||||
"mcp-config",
|
||||
"skill",
|
||||
"openapi",
|
||||
"probe",
|
||||
"doctor",
|
||||
"changelog",
|
||||
@@ -74,14 +69,12 @@ export const KNOWN_AREAS = new Set([
|
||||
|
||||
export type { CliResult, CliRunOptions } from "./types.js";
|
||||
|
||||
const STANDING_COMMANDS = new Set(["http", "server", "web", "mcp"]);
|
||||
const STANDING_COMMANDS = new Set(["server", "mcp"]);
|
||||
|
||||
function isStandingCommand(argv: string[]): boolean {
|
||||
if (!argv.length) return false;
|
||||
const first = argv[0]?.toLowerCase();
|
||||
const second = argv[1]?.toLowerCase();
|
||||
if (first && STANDING_COMMANDS.has(first)) return true;
|
||||
if ((first === "service" || first === "daemon") && second === "run") return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -204,11 +197,6 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "openapi") {
|
||||
(await import("./commands/openapi.js")).handleOpenApiCommand(args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "mcp-config") {
|
||||
(await import("./commands/mcp.js")).printMcpConfig();
|
||||
return;
|
||||
@@ -244,21 +232,6 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "service") {
|
||||
await (await import("./commands/service.js")).handleServiceCommand(action, runtime, args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "stop") {
|
||||
await (await import("./commands/service.js")).handleServiceCommand("stop", runtime, args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "http" || area === "serve") {
|
||||
await (await import("./commands/http.js")).handleHttpCommand(args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isUpdate || area === "changelog") {
|
||||
if (isUpdate && rawArea !== "update") {
|
||||
console.error(`⚠️ Notice: '${rawArea}' is an alias for 'seal-use update'. Please use 'seal-use update' instead.`);
|
||||
|
||||
Reference in new issue
Block a user