mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-02 22:41:01 +02:00
saving
This commit is contained in:
parent
9e9307a2aa
commit
e26caa0b12
123 changed files with 3478 additions and 10078 deletions
33
ts/packages/cli/src/index.ts
Normal file
33
ts/packages/cli/src/index.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* Unified TrustGraph CLI.
|
||||
*
|
||||
* Replaces the 60+ individual Python CLI scripts with a single
|
||||
* `tg` command using subcommands.
|
||||
*
|
||||
* Python reference: trustgraph-cli/trustgraph/cli/
|
||||
*/
|
||||
|
||||
import { Command } from "commander";
|
||||
import { registerAgentCommands } from "./commands/agent.js";
|
||||
import { registerGraphRagCommands } from "./commands/graph-rag.js";
|
||||
import { registerConfigCommands } from "./commands/config.js";
|
||||
import { registerFlowCommands } from "./commands/flow.js";
|
||||
|
||||
const program = new Command();
|
||||
|
||||
program
|
||||
.name("tg")
|
||||
.description("TrustGraph CLI — interact with TrustGraph services")
|
||||
.version("0.1.0")
|
||||
.option("-g, --gateway <url>", "Gateway WebSocket URL", "ws://localhost:8088/api/v1/socket")
|
||||
.option("-t, --token <token>", "Authentication token")
|
||||
.option("-f, --flow <id>", "Flow ID", "default");
|
||||
|
||||
registerAgentCommands(program);
|
||||
registerGraphRagCommands(program);
|
||||
registerConfigCommands(program);
|
||||
registerFlowCommands(program);
|
||||
|
||||
program.parse();
|
||||
Loading…
Add table
Add a link
Reference in a new issue