krims-code-cli 1.5.2__py3-none-any.whl

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 (43) hide show
  1. krims_code_cli-1.5.2.dist-info/METADATA +336 -0
  2. krims_code_cli-1.5.2.dist-info/RECORD +43 -0
  3. krims_code_cli-1.5.2.dist-info/WHEEL +5 -0
  4. krims_code_cli-1.5.2.dist-info/entry_points.txt +2 -0
  5. krims_code_cli-1.5.2.dist-info/licenses/LICENSE +21 -0
  6. krims_code_cli-1.5.2.dist-info/top_level.txt +1 -0
  7. krims_pip/__init__.py +1 -0
  8. krims_pip/cli.py +50 -0
  9. krims_pip/node_project/bin/krims-code.js +10 -0
  10. krims_pip/node_project/package-lock.json +793 -0
  11. krims_pip/node_project/package.json +46 -0
  12. krims_pip/node_project/src/agent.js +415 -0
  13. krims_pip/node_project/src/ai/fallback.js +239 -0
  14. krims_pip/node_project/src/ai/google.js +87 -0
  15. krims_pip/node_project/src/ai/providers.js +203 -0
  16. krims_pip/node_project/src/ai/router.js +146 -0
  17. krims_pip/node_project/src/ai/search.js +94 -0
  18. krims_pip/node_project/src/ai/telemetry.js +125 -0
  19. krims_pip/node_project/src/ai/tokens.js +101 -0
  20. krims_pip/node_project/src/ai/universal.js +507 -0
  21. krims_pip/node_project/src/ai/xai.js +50 -0
  22. krims_pip/node_project/src/chat.js +2543 -0
  23. krims_pip/node_project/src/cli.js +632 -0
  24. krims_pip/node_project/src/commands/commit.js +157 -0
  25. krims_pip/node_project/src/commands/dashboard.js +59 -0
  26. krims_pip/node_project/src/commands/github.js +349 -0
  27. krims_pip/node_project/src/commands/index.js +67 -0
  28. krims_pip/node_project/src/commands/status.js +66 -0
  29. krims_pip/node_project/src/commands/teamwork-preview.js +326 -0
  30. krims_pip/node_project/src/commands/theme.js +42 -0
  31. krims_pip/node_project/src/commands/themes.js +30 -0
  32. krims_pip/node_project/src/config.js +400 -0
  33. krims_pip/node_project/src/dashboard.js +112 -0
  34. krims_pip/node_project/src/file-parser.js +164 -0
  35. krims_pip/node_project/src/git.js +41 -0
  36. krims_pip/node_project/src/mic.js +220 -0
  37. krims_pip/node_project/src/modes.js +92 -0
  38. krims_pip/node_project/src/telemetry-server.js +855 -0
  39. krims_pip/node_project/src/ui/banner.js +204 -0
  40. krims_pip/node_project/src/ui/dashboard.html +834 -0
  41. krims_pip/node_project/src/ui/spinner.js +43 -0
  42. krims_pip/node_project/src/ui/theme.js +624 -0
  43. krims_pip/node_project/src/updater.js +196 -0
@@ -0,0 +1,336 @@
1
+ Metadata-Version: 2.4
2
+ Name: krims-code-cli
3
+ Version: 1.5.2
4
+ Summary: Krims Code AI — Universal AI Gateway CLI (Python Wrapper)
5
+ Home-page: https://github.com/Krylo-60/krims-code-cli
6
+ Author: Krishiv PB
7
+ Author-email: krylobloxyt@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+ Dynamic: summary
23
+
24
+ # Krims Code AI CLI
25
+
26
+ > ⚡ **Universal AI Gateway** — 13+ providers, free & paid models, cyberpunk terminal
27
+
28
+ [![npm version](https://img.shields.io/npm/v/@krishivpb60/krims-code-cli.svg)](https://www.npmjs.com/package/@krishivpb60/krims-code-cli)
29
+ [![License: MIT](https://img.shields.io/badge/License-MIT-cyan.svg)](LICENSE)
30
+ [![Node.js](https://img.shields.io/badge/Node.js-≥18.0.0-green.svg)](https://nodejs.org)
31
+
32
+ ```
33
+ ╔═══════════════════════════════════════════════════════════╗
34
+ ║ █████╗ ███████╗████████╗██╗ ██╗███████╗██████╗ ║
35
+ ║ ██╔══██╗██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔══██╗ ║
36
+ ║ ███████║█████╗ ██║ ████████║█████╗ ██████╔╝ ║
37
+ ║ ██╔══██║██╔══╝ ██║ ██╔══██║██╔══╝ ██╔══██╗ ║
38
+ ║ ██║ ██║███████╗ ██║ ██║ ██║███████╗██║ ██║ ║
39
+ ║ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ║
40
+ ╚═══════════════════════════════════════════════════════════╝
41
+ ```
42
+
43
+ **Krims Code AI v110** is a production-ready, globally installable command-line AI assistant that connects to **any AI provider in the world** — both free and paid. Chat with GPT-4o, Claude, Gemini, Llama, Mixtral, DeepSeek, and 50+ more models, all from one terminal.
44
+
45
+ ---
46
+
47
+ ## ✨ Features
48
+
49
+ - 🌐 **13+ AI Providers** — OpenAI, Anthropic, Google, Groq, Together, Mistral, OpenRouter, DeepSeek, Cerebras, Cohere, Perplexity, Fireworks, xAI
50
+ - 🆓 **Free Models Included** — Groq, Together AI, Cerebras, OpenRouter, and Cohere all offer generous free tiers
51
+ - 💬 **Interactive Chat** — Full terminal chat with slash commands, mode switching, and file attachments
52
+ - ⚡ **Single-Shot Queries** — Quick one-off questions directly from the CLI
53
+ - 🧠 **4 Reasoning Modes** — Synthesis, Research, Architect, Titan Fusion — each with unique system prompts
54
+ - 📎 **File Context Injection** — Attach code files, logs, or documents for context-aware AI responses
55
+ - 🤖 **Autopilot Debug Loop** — Automatically correct build/test failures using AI self-correcting feedback loop
56
+ - 🌿 **Interactive Git TUI** — Beautiful cyberpunk ASCII branch tree commit history & interactive file staging checkbox menu
57
+ - 📊 **Web HUD Dashboard** — Companion local zero-dependency telemetry dashboard displaying real-time latencies & provider status
58
+ - 🎤 **Voice Microphone Input** — Record voice input directly from your terminal and transcribe it to text using Google Gemini or Whisper
59
+ - 🔄 **Failover Mesh** — Automatic failback across all configured providers
60
+ - 🔢 **Local Math Solver** — Evaluates mathematical expressions without an API call
61
+ - 🤖 **Krylo Companion** — Offline cyberpunk companion bot when no API keys are configured
62
+ - 🔐 **Your Keys, Your Control** — API keys stored locally on YOUR machine, never transmitted anywhere
63
+ - 📤 **Export Conversations** — Save full chat history as Markdown files
64
+ - 🎨 **Cyberpunk UI** — Neon colors, ASCII art, signal bars, and mode badges
65
+ - 🎭 **4 Color Themes** — Cyberpunk, Matrix, Synthwave, Crimson — switch with `/theme`
66
+ - ⌨️ **Custom Commands** — Create reusable prompt shortcuts with `/cmd add`
67
+ - 📝 **File Creation** — AI can create files on your system with path override prompts
68
+ - 📊 **Live Telemetry** — Real-time response latency & tokens/sec in the status bar
69
+ - 🎮 **Mini-Game** — Built-in mainframe hacking game (`/game`)
70
+ - 📋 **Clipboard Copy** — Copy last response to clipboard with `/copy`
71
+
72
+ ---
73
+
74
+ ## 🚀 Quick Start
75
+
76
+ ### Install globally via npm
77
+
78
+ ```bash
79
+ npm install -g @krishivpb60/krims-code-cli
80
+ ```
81
+
82
+ ### Or run directly with npx
83
+
84
+ ```bash
85
+ npx @krishivpb60/krims-code-cli chat
86
+ ```
87
+
88
+ ### Or install via pip (Python wrapper)
89
+
90
+ ```bash
91
+ pip install krims-code-agent-cli
92
+ # Run via terminal:
93
+ Krims Code-pip chat
94
+ ```
95
+
96
+ ### Setup (Interactive Wizard)
97
+
98
+ ```bash
99
+ Krims Code setup
100
+ ```
101
+
102
+ The wizard walks you through configuring providers — **start with free ones!**
103
+
104
+ ### Or set keys manually
105
+
106
+ ```bash
107
+ # Free providers (recommended to start)
108
+ krims-code config set GROQ_API_KEY gsk_your_key_here
109
+ krims-code config set GOOGLE_API_KEY AIza_your_key_here
110
+ krims-code config set OPENROUTER_API_KEY sk-or-your_key_here
111
+
112
+ # Paid providers
113
+ krims-code config set OPENAI_API_KEY sk-your_key_here
114
+ krims-code config set ANTHROPIC_API_KEY sk-ant-your_key_here
115
+ ```
116
+
117
+ ### Start chatting
118
+
119
+ ```bash
120
+ Krims Code chat
121
+ ```
122
+
123
+ ### Quick one-shot query
124
+
125
+ ```bash
126
+ Krims Code ask "Explain quantum computing in simple terms"
127
+ ```
128
+
129
+ ---
130
+
131
+ ## 📦 Supported Providers
132
+
133
+ | Provider | Key | Free Tier | Default Model |
134
+ |----------|-----|-----------|---------------|
135
+ | **Groq** | `GROQ_API_KEY` | ✅ Generous | `llama-3.3-70b-versatile` |
136
+ | **Together AI** | `TOGETHER_API_KEY` | ✅ Free credits | `Meta-Llama-3.1-70B-Instruct-Turbo` |
137
+ | **Cerebras** | `CEREBRAS_API_KEY` | ✅ Free tier | `llama-3.3-70b` |
138
+ | **OpenRouter** | `OPENROUTER_API_KEY` | ✅ Free models | `llama-3.1-70b-instruct:free` |
139
+ | **Google Gemini** | `GOOGLE_API_KEY` | ✅ Free tier | `gemini-2.5-flash` |
140
+ | **Cohere** | `COHERE_API_KEY` | ✅ Dev free | `command-r-plus` |
141
+ | **Fireworks AI** | `FIREWORKS_API_KEY` | ✅ Free tier | `llama-v3p1-70b-instruct` |
142
+ | **OpenAI** | `OPENAI_API_KEY` | 💳 Paid | `gpt-4o` |
143
+ | **Anthropic** | `ANTHROPIC_API_KEY` | 💳 Paid | `claude-sonnet-4` |
144
+ | **xAI** | `XAI_API_KEY` | 💳 Paid | `grok-2` |
145
+ | **Mistral** | `MISTRAL_API_KEY` | 💳 Paid | `mistral-large-latest` |
146
+ | **DeepSeek** | `DEEPSEEK_API_KEY` | 💳 Paid | `deepseek-chat` |
147
+ | **Perplexity** | `PERPLEXITY_API_KEY` | 💳 Paid | `sonar` |
148
+
149
+ > 💡 **Tip:** Start with **Groq** (fastest, free) or **Google Gemini** (most capable free tier). You can configure multiple providers and Krims Code will automatically failover between them!
150
+
151
+ ---
152
+
153
+ ## 🎮 Commands
154
+
155
+ ### Core Commands
156
+
157
+ ```bash
158
+ Krims Code chat # Interactive chat session
159
+ Krims Code ask "your question" # Single-shot query
160
+ Krims Code setup # Guided provider setup wizard
161
+ ```
162
+
163
+ ### Configuration
164
+
165
+ ```bash
166
+ krims-code config set <KEY> <value> # Set a config value
167
+ krims-code config get <KEY> # Get a config value
168
+ krims-code config list # List all config (keys masked)
169
+ krims-code config delete <KEY> # Delete a config key
170
+ krims-code config reset # Delete all config
171
+ krims-code config path # Show config file location
172
+ ```
173
+
174
+ ### Discovery
175
+
176
+ ```bash
177
+ Krims Code providers # List all 13+ supported providers
178
+ Krims Code providers --free # Show only free-tier providers
179
+ Krims Code models # List all available models
180
+ Krims Code models groq # Models for a specific provider
181
+ Krims Code modes # List reasoning modes
182
+ Krims Code status # System status & active providers
183
+ ```
184
+
185
+ ### Flags
186
+
187
+ ```bash
188
+ Krims Code ask "prompt" --mode research # Use specific reasoning mode
189
+ Krims Code ask "prompt" --file error.log # Attach file context
190
+ Krims Code ask "prompt" --model gpt-4o # Override model
191
+ Krims Code ask "prompt" --raw # Raw text output (for piping)
192
+ Krims Code chat --mode architect # Start chat in specific mode
193
+ ```
194
+
195
+ ---
196
+
197
+ ## 💬 Chat Commands
198
+
199
+ Inside interactive chat mode, use these slash commands:
200
+
201
+ | Command | Description |
202
+ |---------|-------------|
203
+ | `/help` | Show all commands |
204
+ | `/mode <name>` | Switch reasoning mode (synthesis, research, architect, titan) |
205
+ | `/modes` | List all modes with signal bars |
206
+ | `/theme <name>` | Switch visual theme (cyberpunk, matrix, synthwave, crimson) |
207
+ | `/themes` | List available color themes |
208
+ | `/attach <file>` | Attach a file for context (supports Tab autocomplete!) |
209
+ | `/files` | List attached files |
210
+ | `/clear` | Clear terminal screen |
211
+ | `/providers` | Show active providers |
212
+ | `/export` | Export chat to Markdown |
213
+ | `/copy` | Copy last response to clipboard |
214
+ | `/write <file>` | Extract last code block and save to file |
215
+ | `/cmd list` | List custom command shortcuts |
216
+ | `/cmd add <name> <template>` | Create a custom command shortcut |
217
+ | `/cmd remove <name>` | Delete a custom command |
218
+ | `/game` | Start the mainframe hacking mini-game |
219
+ | `/history` | List, switch, and resume past interactive chat sessions |
220
+ | `/history-clear` | Clear saved persistent chat history |
221
+ | `/autopilot <mode\|debug [cmd]>` | View/switch autopilot safety level or run autonomous debug loop |
222
+ | `/git` | Launch interactive cyberpunk Git TUI and file stager checkbox menu |
223
+ | `/github <status\|issues\|prs>` | Git/GitHub orchestration, auto-staging, semantic AI commit generation, and remote sync |
224
+ | `/teamwork-preview` | Render real-time multi-agent matrix status dashboard with heartbeats & tasks |
225
+ | `/dashboard` | Spawn zero-dependency local web server and launch telemetry dashboard HUD |
226
+ | `/mic` | Record audio voice input from microphone and transcribe to text |
227
+ | `/tokens` | View detailed session token usage and exchanges telemetry |
228
+ | `/update` | Force check for updates and update Krims Code CLI manually |
229
+ | `/review` | Run git diff and stream an AI code review |
230
+ | `/diagnose [cmd]` | Run build/tests and AI-debug any errors |
231
+ | `/explain <file>` | AI-explain the design and logic of a file |
232
+ | `/refactor <file>` | AI-refactor the code of a target file |
233
+ | `/bug <file>` | Scan a file to detect logical edge case failures |
234
+ | `/doc <file>` | Write documentation, inline comments, or JSDoc |
235
+ | `/translate <file> <lang>` | AI-translate file code into another target language |
236
+ | `/exit` | End session |
237
+
238
+ ---
239
+
240
+ ## 🧠 Reasoning Modes
241
+
242
+ | Mode | Layer | Style | Signal |
243
+ |------|-------|-------|--------|
244
+ | **Synthesis** | v2.5 | Balanced, clean, direct | ████████░░ 80% |
245
+ | **Research** | v104 | Deep analysis, evidence-based | █████████░ 85% |
246
+ | **Architect** | v55 | Systems thinking, debugging | █████████░ 90% |
247
+ | **Titan Fusion** | v110 | Premium, maximum signal density | █████████░ 95% |
248
+
249
+ ---
250
+
251
+ ## 🔐 Security
252
+
253
+ - **Your keys stay on YOUR machine** — stored at `~/.krims-code/config.json`
254
+ - **No keys are bundled** in the package
255
+ - **No telemetry** — zero data collection
256
+ - **Keys are masked** when displayed (`krims-code config list`)
257
+ - **Environment variables** also supported as fallback
258
+
259
+ ---
260
+
261
+ ## 🔄 Failover Mesh
262
+
263
+ Krims Code routes your prompt through all configured providers automatically:
264
+
265
+ ```
266
+ Your Prompt
267
+ ↓
268
+ [Provider 1] → Success? → Response ✓
269
+ ↓ (fail)
270
+ [Provider 2] → Success? → Response ✓
271
+ ↓ (fail)
272
+ [Provider N] → Success? → Response ✓
273
+ ↓ (all fail)
274
+ [Krylo Companion] → Local Response ✓
275
+ ```
276
+
277
+ If a provider returns an error (rate limit, quota, etc.), Krims Code automatically tries the next one. Configure multiple free providers for maximum resilience!
278
+
279
+ ---
280
+
281
+ ## 📁 File Attachment
282
+
283
+ Attach code files, logs, configs, or documents for context-aware responses:
284
+
285
+ ```bash
286
+ # From CLI
287
+ Krims Code ask "What's wrong with this code?" --file buggy.js
288
+
289
+ # In chat mode
290
+ /attach error.log
291
+ What errors are in this file?
292
+ ```
293
+
294
+ **Supported file types:** `.js`, `.ts`, `.py`, `.html`, `.css`, `.json`, `.md`, `.txt`, `.log`, `.yaml`, `.xml`, `.toml`, `.sql`, `.go`, `.rs`, `.java`, `.c`, `.cpp`, `.rb`, `.php`, `.swift`, `.kt`, `.dart`, `.vue`, `.svelte`, `.sh`, `.bat`, `.ps1`, `.env`, `.csv`
295
+
296
+ ---
297
+
298
+ ## 🏗️ Development
299
+
300
+ ```bash
301
+ # Clone the repo
302
+ git clone https://github.com/Krylo-60/krims-code-cli.git
303
+ cd krims-code-cli
304
+
305
+ # Install dependencies
306
+ npm install
307
+
308
+ # Link for local development
309
+ npm link
310
+
311
+ # Test
312
+ Krims Code --help
313
+ Krims Code status
314
+ Krims Code ask "hello"
315
+ ```
316
+
317
+ ---
318
+
319
+ ## 📄 License
320
+
321
+ MIT License — see [LICENSE](LICENSE) for details.
322
+
323
+ ---
324
+
325
+ ## 👨‍💻 Author
326
+
327
+ **Krishiv PB** ([@Krylo-60](https://github.com/Krylo-60))
328
+
329
+ > *"Stay cyberpunk. âš¡"*
330
+
331
+ ---
332
+
333
+ <p align="center">
334
+ <b>⚡ Krims Code AI v110 — Fusion Command Station ⚡</b><br>
335
+ <i>Universal AI Gateway for the Terminal</i>
336
+ </p>
@@ -0,0 +1,43 @@
1
+ krims_code_cli-1.5.2.dist-info/licenses/LICENSE,sha256=9kKNPpKXSdgtv9HXqHorQiVH6NQKwF34mvXadmIGHYI,1079
2
+ krims_pip/__init__.py,sha256=4Sx9mbVn7FqCcTQ7VUWZiXD7Coz_vGENU2v9lhh5k3U,40
3
+ krims_pip/cli.py,sha256=bP_1-bL_hLiRACP69EI7i62LXzsOLtpGzUb_-ffmyJY,2126
4
+ krims_pip/node_project/package-lock.json,sha256=pyOcefpETcGSC82Bv9vuI18FLU7Ij_-zwYUdAJ5gOBY,28419
5
+ krims_pip/node_project/package.json,sha256=srhM2xeC312inIgkYQWD3ZxIirRa89hR0gceRx7hQZU,1102
6
+ krims_pip/node_project/bin/krims-code.js,sha256=uExW1KeiLrjdgMzOUoCO_yV7ko_uKBjh56Mo464Tsj8,545
7
+ krims_pip/node_project/src/agent.js,sha256=tJ59vVLCMx7_W5ZXgEr-oKKhUYB9NOi10WdSpTtCcno,11955
8
+ krims_pip/node_project/src/chat.js,sha256=nsN7wxwl-4ZzW7VyQbklBdF89WNnAQBj2USCVb8yn44,92921
9
+ krims_pip/node_project/src/cli.js,sha256=ZZWOZ9a5kK0fgqCmCee1Z9xX1MVm-4UUxm99mVKBPbM,23316
10
+ krims_pip/node_project/src/config.js,sha256=UQr1Lrc8XA31vRXpEWFP9hTybmsf4TayKv9QZri41Ng,10559
11
+ krims_pip/node_project/src/dashboard.js,sha256=u5SxFdTJpf-bbkgqVlivOGtz2B-EcY7wBLidiZB6bRQ,3526
12
+ krims_pip/node_project/src/file-parser.js,sha256=JI0PR4bolvF-IJtRAFK0fUYlI2V5HgXK6_hkgAf3wAo,4866
13
+ krims_pip/node_project/src/git.js,sha256=dCla61d47xyXuSrbc3ksVATVtKCND0EFQ24ovciGxAA,1224
14
+ krims_pip/node_project/src/mic.js,sha256=IaGWJSXOZI-25IXxPxP5ppnYmGocTCKIYA6qPLT2_lI,7234
15
+ krims_pip/node_project/src/modes.js,sha256=PnQpfOvhi3ZMS-mqa_RxysvwessXyDrjXNqXp0CGCeo,6254
16
+ krims_pip/node_project/src/telemetry-server.js,sha256=GC_0gDq384Qn4Ok_ctSlc-eMcJ2AflbdKHz6zre4H0g,28603
17
+ krims_pip/node_project/src/updater.js,sha256=KrgvJ-jv9CUsUIPDtXL7QjY9TLaaV9TGoAVlh-wZkP0,7498
18
+ krims_pip/node_project/src/ai/fallback.js,sha256=-4jf6_Gm4wwCvG1yea7B4VRA4dxOPwzpefGnEAX19bg,8535
19
+ krims_pip/node_project/src/ai/google.js,sha256=BnULtDNs133xSlPxAcxt28KkLE0oJkid2iWJmchwnAM,2795
20
+ krims_pip/node_project/src/ai/providers.js,sha256=su0_9H9HQ3qUIp9-lQ4rEkr94rMdDE_7ZStgy9NDYW0,7504
21
+ krims_pip/node_project/src/ai/router.js,sha256=AY9WCnf_ae6ENhdh4LItCB5RVjEuB5KRmMf0BY_4_tw,6219
22
+ krims_pip/node_project/src/ai/search.js,sha256=7vDQjs2njnHr81D4ILkUJOKbIpBQQ0mWYxrrKu38W6o,2652
23
+ krims_pip/node_project/src/ai/telemetry.js,sha256=FN0qud17OArXKa3XCXZoOjKwmZ1JFqscSiegxmCtvlU,3606
24
+ krims_pip/node_project/src/ai/tokens.js,sha256=seRyRN4hSY8nwc6NEWtEXm9Bi5KpzInuISMI2eYZVHE,2944
25
+ krims_pip/node_project/src/ai/universal.js,sha256=wOjp1OIXr8RWwB0EfZh8km8vDZHX26Ipx4IN42axOlU,17185
26
+ krims_pip/node_project/src/ai/xai.js,sha256=h6RdoKBpUmwIGoOEJsZOCKXBBPKQAIPiQPPvXkAf75Y,1665
27
+ krims_pip/node_project/src/commands/commit.js,sha256=YSHkZmZ_lYU3s9zn8hDBOlvRifcCkFXZXeO0moXsYSo,6787
28
+ krims_pip/node_project/src/commands/dashboard.js,sha256=h-JcPvYh3-s2Jf9TedOdvB3KbpmkPuo346Rs7Ncn-nY,2443
29
+ krims_pip/node_project/src/commands/github.js,sha256=ElwNY_7s7zLg3tUAJAqERnnSaHDP-FUbB_OkU9oxp5g,13060
30
+ krims_pip/node_project/src/commands/index.js,sha256=07iqsSfNFZvKpNHb5uCjxWu57YqoMvIrVYjfmDEoTg8,1640
31
+ krims_pip/node_project/src/commands/status.js,sha256=VWqsHUZv0Bgc9ZlizsN-jA3G1DnsXkVH3etO0aamcrM,2930
32
+ krims_pip/node_project/src/commands/teamwork-preview.js,sha256=fi5d7btkaHg2rugVcgaXYLT3PPgBVUayfAt7PGBOYuQ,10096
33
+ krims_pip/node_project/src/commands/theme.js,sha256=QZ9ACs4eDB1Or2p7ncY9yoze8fG--Ixjxyri2pmJzow,1825
34
+ krims_pip/node_project/src/commands/themes.js,sha256=mbtT_YJgFjzZgoZGwbeizvW0MJTbxU2PLa61q8gENvU,1038
35
+ krims_pip/node_project/src/ui/banner.js,sha256=5FIWPLdesK4bYziTP_Lo1Jj3ySxB_8VlFVfDCIcaF5E,8465
36
+ krims_pip/node_project/src/ui/dashboard.html,sha256=5KY78wUjUB_m1h4B4OVyW41m1JsdW-XRUvMJ9Q-aYQQ,25200
37
+ krims_pip/node_project/src/ui/spinner.js,sha256=iJHE-nc7g07zM7REfWB4nWYZ-YBnmNxM-ujzyh2y1tY,1369
38
+ krims_pip/node_project/src/ui/theme.js,sha256=B8JoLH70PvcARWkEtCHvLUDMGsG_HkXj1wrFMq5wZGc,22025
39
+ krims_code_cli-1.5.2.dist-info/METADATA,sha256=Ex1TNpEFeSWr-JVeNr4lFX3dwhCYhC8Gi9yqL76VCHE,15888
40
+ krims_code_cli-1.5.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
+ krims_code_cli-1.5.2.dist-info/entry_points.txt,sha256=JskS9H9GWaM9ex7DqSYsXLAB0IYInQkORS8GEORKOuA,49
42
+ krims_code_cli-1.5.2.dist-info/top_level.txt,sha256=Z2u4WfWI-MwDl1R2-lJZyIuOtFTqVYuXVsPjtQpyXmQ,10
43
+ krims_code_cli-1.5.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ krims-pip = krims_pip.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Krishiv PB (@Krylo-60)
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.
@@ -0,0 +1 @@
1
+ krims_pip
krims_pip/__init__.py ADDED
@@ -0,0 +1 @@
1
+ # Krims Code AI CLI Pip Package Wrapper
krims_pip/cli.py ADDED
@@ -0,0 +1,50 @@
1
+ import sys
2
+ import os
3
+ import subprocess
4
+ import shutil
5
+
6
+ def main():
7
+ # Find the Node.js entry point absolute path inside KRIMS CODE_pip/node_project
8
+ script_dir = os.path.dirname(os.path.abspath(__file__))
9
+ node_project_dir = os.path.join(script_dir, "node_project")
10
+ krims_code_js = os.path.join(node_project_dir, "bin", "krims-code.js")
11
+
12
+ # If not found globally, check dev layout relative to current working directory
13
+ if not os.path.exists(krims_code_js):
14
+ krims_code_js = os.path.join(os.getcwd(), "bin", "krims-code.js")
15
+ node_project_dir = os.getcwd()
16
+
17
+ if not shutil.which("node"):
18
+ print("Error: Node.js is required to run Krims Code CLI.", file=sys.stderr)
19
+ print("Please install Node.js (https://nodejs.org) and try again.", file=sys.stderr)
20
+ sys.exit(1)
21
+
22
+ # Check if node_modules exists in the node_project directory.
23
+ # If not, automatically run npm install inside that directory!
24
+ node_modules_dir = os.path.join(node_project_dir, "node_modules")
25
+ if not os.path.exists(node_modules_dir):
26
+ print("First-time launch check: Installing node dependencies via npm...")
27
+ npm_cmd = shutil.which("npm")
28
+ if not npm_cmd:
29
+ print("Error: npm is required to install Node dependencies.", file=sys.stderr)
30
+ print("Please install Node.js/npm and try again.", file=sys.stderr)
31
+ sys.exit(1)
32
+
33
+ # On Windows, run npm using shell=True to handle cmd/bat resolution
34
+ subprocess.run([npm_cmd, "install", "--no-audit", "--no-fund"], cwd=node_project_dir, shell=(os.name == "nt"))
35
+
36
+ try:
37
+ # Run node krims-code.js passing all command line arguments
38
+ os.environ["KRIMS_PACKAGER"] = "pip"
39
+ cmd = ["node", krims_code_js] + sys.argv[1:]
40
+ result = subprocess.run(cmd, check=False)
41
+ sys.exit(result.returncode)
42
+ except KeyboardInterrupt:
43
+ print("\nSession terminated by user.")
44
+ sys.exit(0)
45
+ except Exception as e:
46
+ print(f"Error running Krims Code: {e}", file=sys.stderr)
47
+ sys.exit(1)
48
+
49
+ if __name__ == "__main__":
50
+ main()
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ // ═══════════════════════════════════════════════════════════
4
+ // KRIMS CODE AI CLI — Entry Point
5
+ // Universal AI Gateway — 13+ Providers, Free & Paid
6
+ // ═══════════════════════════════════════════════════════════
7
+
8
+ import { createCLI } from "../src/cli.js";
9
+
10
+ createCLI(process.argv);