mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 09:24:46 +00:00
logicsrc CLI 0.2.0: every LogicSRC tool is a word after logicsrc (#157)
OpenContext, OpenCreds, OpenOntology and OpenPRD were already registered under the umbrella. Three were not: - `logicsrc openmcp …`: OpenMCP lives in its own repository, so it is a dependency (@logicsrc/openmcp ^0.3.1, which exports ./cli for this) and every argument goes untouched to the same main the standalone binary runs. Imported on first use, because the catalog is node:sqlite (Node 24) while the rest of the CLI runs on 18; below the floor that one word says so and offers the standalone installer, which brings its own Node. - `logicsrc openspec <anything else>`: import, export and change stay ours; any other word (init, list, validate, archive, show) runs OpenSpec.dev's own CLI (@fission-ai/openspec) as the group's default subcommand, flags intact. One command for a repo in compatibility mode, and the OpenSpec.dev half is upstream itself rather than a copy that would drift. - `logicsrc mcp`: the LogicSRC MCP server (@profullstack/logicsrc-mcp) over stdio, spawned as a child because it owns the process's stdio. build:cli now builds that workspace. README gets a table of every word and the standalone name it mirrors; the OpenMCP spec page and doc mention the umbrella form. Claude-Session: https://claude.ai/code/session_01Qh2dieNyPZ4Hx5g3XNJ1Eo Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
0f6326e910
commit
8951e824d5
11 changed files with 1466 additions and 12 deletions
|
|
@ -38,6 +38,9 @@ import { registerOpenContextCommands } from "./context.js";
|
|||
import { registerOpenCredsCommands } from "./creds.js";
|
||||
import { registerOntologyCommands } from "./ontology.js";
|
||||
import { registerPrdCommands } from "./prd.js";
|
||||
import { registerOpenMcpCommands } from "./openmcp.js";
|
||||
import { registerOpenSpecDevPassthrough } from "./openspec-dev.js";
|
||||
import { registerMcpCommands } from "./mcp.js";
|
||||
import { defaultPluginRegistry } from "./registry.js";
|
||||
import {
|
||||
GH_REPO,
|
||||
|
|
@ -300,7 +303,12 @@ program
|
|||
}, "json");
|
||||
});
|
||||
|
||||
const openspec = program.command("openspec").description("Import, export, and generate OpenSpec.dev-compatible repo-local planning artifacts.");
|
||||
const openspec = program
|
||||
.command("openspec")
|
||||
.description(
|
||||
"Import, export, and generate OpenSpec.dev-compatible repo-local planning artifacts; any other word " +
|
||||
"(init, list, validate, archive, show, ...) runs OpenSpec.dev's own CLI.",
|
||||
);
|
||||
|
||||
openspec
|
||||
.command("import")
|
||||
|
|
@ -1049,6 +1057,10 @@ registerOpenContextCommands(program);
|
|||
registerOpenCredsCommands(program);
|
||||
registerOntologyCommands(program);
|
||||
registerPrdCommands(program);
|
||||
registerOpenMcpCommands(program);
|
||||
registerMcpCommands(program);
|
||||
// Every other word under `logicsrc openspec` is OpenSpec.dev's own CLI.
|
||||
registerOpenSpecDevPassthrough(openspec);
|
||||
|
||||
program.parseAsync(process.argv).catch((error: unknown) => {
|
||||
console.error(error instanceof Error ? error.message : String(error));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue