@learnrudi/cli 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +85 -32
- package/dist/packages-manifest.json +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 RUDI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -31848,60 +31848,64 @@ USAGE
|
|
|
31848
31848
|
SETUP
|
|
31849
31849
|
init Bootstrap RUDI (download runtimes, create shims)
|
|
31850
31850
|
|
|
31851
|
-
|
|
31852
|
-
home Show ~/.rudi structure and installed packages
|
|
31853
|
-
stacks List installed stacks
|
|
31854
|
-
runtimes List installed runtimes
|
|
31855
|
-
binaries List installed binaries
|
|
31856
|
-
agents List installed agents
|
|
31857
|
-
prompts List installed prompts
|
|
31858
|
-
doctor Check system health and dependencies
|
|
31859
|
-
doctor --all Show all available runtimes/binaries from registry
|
|
31860
|
-
|
|
31861
|
-
PACKAGE MANAGEMENT
|
|
31851
|
+
REGISTRY
|
|
31862
31852
|
search <query> Search registry for packages
|
|
31863
31853
|
search --all List all available packages
|
|
31864
31854
|
install <pkg> Install a package
|
|
31865
31855
|
remove <pkg> Remove a package
|
|
31866
31856
|
update [pkg] Update packages
|
|
31867
|
-
run <stack> Run a stack
|
|
31868
31857
|
|
|
31869
|
-
|
|
31870
|
-
|
|
31871
|
-
|
|
31872
|
-
|
|
31873
|
-
|
|
31874
|
-
|
|
31858
|
+
INSTALLED
|
|
31859
|
+
list [kind] List installed packages (stacks, prompts, runtimes, binaries, agents)
|
|
31860
|
+
home Show ~/.rudi structure and status
|
|
31861
|
+
doctor Check system health and dependencies
|
|
31862
|
+
which <cmd> Show path to a command
|
|
31863
|
+
info <pkg> Show package details
|
|
31864
|
+
|
|
31865
|
+
AGENT INTEGRATION
|
|
31866
|
+
integrate <agent> Wire up RUDI router (claude, cursor, gemini, codex, all)
|
|
31867
|
+
integrate --list Show detected agents
|
|
31868
|
+
index Rebuild tool cache for router
|
|
31875
31869
|
|
|
31876
|
-
|
|
31877
|
-
|
|
31878
|
-
import status Show import status
|
|
31870
|
+
RUN
|
|
31871
|
+
run <stack> Run a stack directly
|
|
31879
31872
|
|
|
31880
31873
|
SECRETS
|
|
31881
31874
|
secrets set <name> Set a secret
|
|
31882
31875
|
secrets list List configured secrets
|
|
31883
31876
|
secrets remove <name> Remove a secret
|
|
31884
31877
|
|
|
31878
|
+
DATABASE
|
|
31879
|
+
db stats Show database statistics
|
|
31880
|
+
db search <query> Search conversation history
|
|
31881
|
+
db tables Show table row counts
|
|
31882
|
+
db vacuum Compact and reclaim space
|
|
31883
|
+
|
|
31884
|
+
SESSIONS
|
|
31885
|
+
session list List sessions
|
|
31886
|
+
session search <q> Search session content
|
|
31887
|
+
session export <id> Export a session
|
|
31888
|
+
session index Build search embeddings
|
|
31889
|
+
|
|
31885
31890
|
OPTIONS
|
|
31886
31891
|
-h, --help Show help
|
|
31887
31892
|
-v, --version Show version
|
|
31888
31893
|
--verbose Verbose output
|
|
31889
31894
|
--json Output as JSON
|
|
31890
|
-
--force Force operation
|
|
31891
31895
|
|
|
31892
31896
|
EXAMPLES
|
|
31893
|
-
rudi
|
|
31894
|
-
rudi
|
|
31895
|
-
rudi
|
|
31896
|
-
rudi
|
|
31897
|
-
rudi
|
|
31897
|
+
rudi search --all List all available packages
|
|
31898
|
+
rudi install slack Install Slack stack
|
|
31899
|
+
rudi secrets set SLACK_TOKEN Configure secret
|
|
31900
|
+
rudi integrate claude Wire up Claude Desktop/Code
|
|
31901
|
+
rudi list Show installed packages
|
|
31898
31902
|
|
|
31899
31903
|
PACKAGE TYPES
|
|
31900
|
-
stack
|
|
31901
|
-
runtime
|
|
31902
|
-
binary
|
|
31903
|
-
agent
|
|
31904
|
-
prompt
|
|
31904
|
+
stack:<name> MCP server stack
|
|
31905
|
+
runtime:<name> Node, Python, Deno, Bun
|
|
31906
|
+
binary:<name> ffmpeg, ripgrep, etc.
|
|
31907
|
+
agent:<name> Claude, Codex, Gemini CLIs
|
|
31908
|
+
prompt:<name> Prompt template
|
|
31905
31909
|
`);
|
|
31906
31910
|
}
|
|
31907
31911
|
function printCommandHelp(command) {
|
|
@@ -32119,6 +32123,38 @@ EXAMPLES
|
|
|
32119
32123
|
rudi doctor
|
|
32120
32124
|
rudi doctor --fix
|
|
32121
32125
|
rudi doctor --all
|
|
32126
|
+
`,
|
|
32127
|
+
integrate: `
|
|
32128
|
+
rudi integrate - Wire RUDI router into agent configs
|
|
32129
|
+
|
|
32130
|
+
USAGE
|
|
32131
|
+
rudi integrate <agent> Integrate with specific agent
|
|
32132
|
+
rudi integrate all Integrate with all detected agents
|
|
32133
|
+
rudi integrate --list Show detected agents
|
|
32134
|
+
|
|
32135
|
+
AGENTS
|
|
32136
|
+
claude Claude Desktop + Claude Code
|
|
32137
|
+
cursor Cursor IDE
|
|
32138
|
+
windsurf Windsurf IDE
|
|
32139
|
+
vscode VS Code / GitHub Copilot
|
|
32140
|
+
gemini Gemini CLI
|
|
32141
|
+
codex OpenAI Codex CLI
|
|
32142
|
+
zed Zed Editor
|
|
32143
|
+
|
|
32144
|
+
OPTIONS
|
|
32145
|
+
--verbose Show detailed output
|
|
32146
|
+
--dry-run Show what would be done without making changes
|
|
32147
|
+
|
|
32148
|
+
WHAT IT DOES
|
|
32149
|
+
1. Detects agent config files
|
|
32150
|
+
2. Creates backup before modifying
|
|
32151
|
+
3. Adds RUDI router entry (single MCP server for all stacks)
|
|
32152
|
+
4. Cleans up old direct stack entries
|
|
32153
|
+
|
|
32154
|
+
EXAMPLES
|
|
32155
|
+
rudi integrate claude
|
|
32156
|
+
rudi integrate all
|
|
32157
|
+
rudi integrate --list
|
|
32122
32158
|
`,
|
|
32123
32159
|
logs: `
|
|
32124
32160
|
rudi logs - Query agent visibility logs
|
|
@@ -38263,9 +38299,26 @@ ${agentConfig.name}:`);
|
|
|
38263
38299
|
config[key] = {};
|
|
38264
38300
|
}
|
|
38265
38301
|
const rudiMcpShimPath = path29.join(PATHS.home, "shims", "rudi-mcp");
|
|
38302
|
+
const rudiStacksPath = path29.join(PATHS.home, "stacks");
|
|
38266
38303
|
const removedEntries = [];
|
|
38267
38304
|
for (const [serverName, serverConfig] of Object.entries(config[key])) {
|
|
38305
|
+
if (serverName === "rudi") continue;
|
|
38306
|
+
let shouldRemove = false;
|
|
38268
38307
|
if (serverConfig.command === rudiMcpShimPath) {
|
|
38308
|
+
shouldRemove = true;
|
|
38309
|
+
}
|
|
38310
|
+
if (serverConfig.cwd && serverConfig.cwd.startsWith(rudiStacksPath)) {
|
|
38311
|
+
shouldRemove = true;
|
|
38312
|
+
}
|
|
38313
|
+
if (serverConfig.args && Array.isArray(serverConfig.args)) {
|
|
38314
|
+
for (const arg of serverConfig.args) {
|
|
38315
|
+
if (typeof arg === "string" && arg.startsWith(rudiStacksPath)) {
|
|
38316
|
+
shouldRemove = true;
|
|
38317
|
+
break;
|
|
38318
|
+
}
|
|
38319
|
+
}
|
|
38320
|
+
}
|
|
38321
|
+
if (shouldRemove) {
|
|
38269
38322
|
delete config[key][serverName];
|
|
38270
38323
|
removedEntries.push(serverName);
|
|
38271
38324
|
}
|