Add embedded OpenAPI specification exporter subcommand
Binaries / Verify (push) Has been cancelled
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build macos-x64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled
Binaries / Verify (push) Has been cancelled
Binaries / Build linux-x64 (push) Has been cancelled
Binaries / Build macos-arm64 (push) Has been cancelled
Binaries / Build macos-x64 (push) Has been cancelled
Binaries / Build windows-x64 (push) Has been cancelled
Binaries / Publish release assets (push) Has been cancelled
This commit is contained in:
1 parent
f1380873e4
commit
bf2bb3d87a
9 files changed
+3405
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { getOpenApiSchema } from "../../core/embedded-openapi.js";
|
||||
import { outputOptions, printJson } from "../printer.js";
|
||||
import type { ParsedArgs } from "../types.js";
|
||||
|
||||
export function handleOpenApiCommand(args: ParsedArgs) {
|
||||
const schema = getOpenApiSchema();
|
||||
printJson(schema, { ...outputOptions(args.options), allowFull: true });
|
||||
}
|
||||
@@ -80,6 +80,7 @@ Usage:
|
||||
seal-home skill dump
|
||||
seal-home skill install [--dir <path>|--local]
|
||||
seal-home skill status
|
||||
seal-home openapi
|
||||
seal-home probe [<corpId>]
|
||||
seal-home config paths
|
||||
seal-home config get
|
||||
|
||||
@@ -13,6 +13,7 @@ import { handleCorpsCommand } from "./commands/corps.js";
|
||||
import { handleDelegationCommand } from "./commands/delegation.js";
|
||||
import { handleLlmCommand } from "./commands/llm.js";
|
||||
import { handleMcpCommand, printMcpConfig } from "./commands/mcp.js";
|
||||
import { handleOpenApiCommand } from "./commands/openapi.js";
|
||||
import { handlePermissionsCommand } from "./commands/permissions.js";
|
||||
import { handleProbeCommand } from "./commands/probe.js";
|
||||
import { handleRulesCommand } from "./commands/rules.js";
|
||||
@@ -61,6 +62,7 @@ const KNOWN_AREAS = new Set([
|
||||
"server",
|
||||
"mcp-config",
|
||||
"skill",
|
||||
"openapi",
|
||||
"probe"
|
||||
]);
|
||||
|
||||
@@ -144,6 +146,11 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-home help' for available commands.`);
|
||||
}
|
||||
|
||||
if (area === "openapi") {
|
||||
handleOpenApiCommand(args);
|
||||
return;
|
||||
}
|
||||
|
||||
if (area === "mcp-config") {
|
||||
printMcpConfig();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user