@learnrudi/cli 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +92 -0
  2. package/dist/index.cjs +19236 -0
  3. package/package.json +53 -0
package/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # pstack
2
+
3
+ Package manager for MCP stacks. Install binaries and stacks that work with Claude, Codex, and Gemini.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i -g @prompt-stack/cli
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # See what's available
15
+ pstack search --all
16
+
17
+ # Install a stack
18
+ pstack install stack:slack
19
+
20
+ # Add your API key
21
+ nano ~/.prompt-stack/stacks/slack/.env
22
+
23
+ # Done - Claude/Codex/Gemini can now use Slack tools
24
+ ```
25
+
26
+ ## Commands
27
+
28
+ ```bash
29
+ pstack search <query> # Search for packages
30
+ pstack search --all # List all packages
31
+ pstack install <pkg> # Install a package
32
+ pstack remove <pkg> # Remove a package
33
+ pstack list [kind] # List installed (stacks, runtimes, binaries, agents)
34
+ pstack update [pkg] # Update packages
35
+ pstack doctor # Check system health
36
+ ```
37
+
38
+ ## Available Stacks
39
+
40
+ | Stack | Description | Auth |
41
+ |-------|-------------|------|
42
+ | `stack:postgres` | Query PostgreSQL databases | DATABASE_URL |
43
+ | `stack:slack` | Send messages, search channels | SLACK_BOT_TOKEN |
44
+ | `stack:notion-workspace` | Pages, databases, search | NOTION_API_KEY |
45
+ | `stack:google-workspace` | Gmail, Sheets, Docs, Drive, Calendar | OAuth |
46
+ | `stack:google-ai` | Gemini, Imagen, Veo | GOOGLE_AI_API_KEY |
47
+ | `stack:openai` | DALL-E, Whisper, TTS, Sora | OPENAI_API_KEY |
48
+ | `stack:zoho-mail` | Email via Zoho | OAuth |
49
+ | `stack:content-extractor` | YouTube, Reddit, TikTok transcripts | - |
50
+ | `stack:video-editor` | Trim, speed, compress videos | - |
51
+ | `stack:ms-office` | Read Word/Excel files | - |
52
+ | `stack:whisper` | Local audio transcription | - |
53
+
54
+ ## Secrets
55
+
56
+ Each stack has its own `.env` file:
57
+
58
+ ```
59
+ ~/.prompt-stack/stacks/<stack>/.env
60
+ ```
61
+
62
+ When you install a stack, a `.env` is created with placeholders. Add your keys:
63
+
64
+ ```bash
65
+ # ~/.prompt-stack/stacks/postgres/.env
66
+ DATABASE_URL=postgresql://user:pass@host:5432/db
67
+ ```
68
+
69
+ Secrets are automatically injected into Claude, Codex, and Gemini configs.
70
+
71
+ ## How It Works
72
+
73
+ 1. `pstack install stack:slack` downloads the MCP server
74
+ 2. Creates `.env` with required secrets as placeholders
75
+ 3. Registers the MCP server in `~/.claude/settings.json`, `~/.codex/config.toml`, `~/.gemini/settings.json`
76
+ 4. You fill in the API key in `.env`
77
+ 5. Claude/Codex/Gemini can now use the tools
78
+
79
+ ## Data Location
80
+
81
+ ```
82
+ ~/.prompt-stack/
83
+ ├── stacks/ # MCP servers (each with .env)
84
+ ├── runtimes/ # Node, Python, Deno
85
+ ├── binaries/ # ffmpeg, ripgrep, etc.
86
+ ├── agents/ # Claude, Codex, Gemini CLIs
87
+ └── prompt-stack.db # Local database
88
+ ```
89
+
90
+ ## License
91
+
92
+ MIT