vexi-cli 0.5.4 → 0.5.5

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/README.md CHANGED
@@ -90,6 +90,22 @@ Inside the chat:
90
90
  /exit quit
91
91
  ```
92
92
 
93
+ ## ⚙️ Multi-language build support
94
+
95
+ Vexi can build and run projects in **any language** — not just JavaScript. When the AI suggests commands, it wraps them in a shell block, Vexi asks for confirmation, then executes them automatically and feeds the output back to the AI.
96
+
97
+ | Language | Commands Vexi can run |
98
+ | --- | --- |
99
+ | Python | `pip install -r requirements.txt`, `python main.py`, `pytest` |
100
+ | Java (Maven) | `mvn compile`, `mvn package`, `java -jar target/app.jar` |
101
+ | Java (Gradle) | `gradle build`, `java -jar build/libs/app.jar` |
102
+ | C / C++ | `gcc main.c -o main`, `make`, `cmake ..` |
103
+ | Rust | `cargo build`, `cargo run` |
104
+ | Go | `go build ./...`, `go run main.go` |
105
+ | JavaScript | `npm install`, `npm run build`, `npm test` |
106
+
107
+ The project scanner automatically detects `.py`, `.java`, `.c`, `.cpp`, `.rs`, `.go` files and tells the AI what language your project uses before the first message.
108
+
93
109
  ## 🧠 Project memory — Context Compression Engine
94
110
 
95
111
  Most AI coding tools forget earlier decisions once the conversation gets long.
package/dist/agent.js CHANGED
@@ -401,10 +401,18 @@ function buildSystemPrompt(lang, projectBlock, skillsText, memoryText, mcpText)
401
401
  `The user's preferred language is ${langNames[lang]}; reply in that language unless asked otherwise (code and identifiers stay in English).`,
402
402
  '',
403
403
  '## Command execution',
404
- 'You can run shell commands directly. Wrap any command you want to execute in a fenced code block tagged `bash` or `sh`.',
404
+ 'You can run shell commands directly. Wrap any command in a fenced code block tagged `bash` or `sh` — regardless of the project language.',
405
405
  'Vexi will show the command to the user, ask for confirmation, execute it, and report the output back to you.',
406
406
  'Use this to: install dependencies, build projects, run tests, start servers, scaffold files, etc.',
407
- 'Example: to install deps write: ```bash\nnpm install\n```',
407
+ 'Examples by language:',
408
+ ' JavaScript/Node: ```bash\nnpm install\nnpm run build\n```',
409
+ ' Python: ```bash\npip install -r requirements.txt\npython main.py\n```',
410
+ ' Java (Maven): ```bash\nmvn compile\nmvn package\njava -jar target/app.jar\n```',
411
+ ' Java (Gradle): ```bash\ngradle build\njava -jar build/libs/app.jar\n```',
412
+ ' C/C++: ```bash\ngcc main.c -o main\n./main\n```',
413
+ ' Rust: ```bash\ncargo build\ncargo run\n```',
414
+ ' Go: ```bash\ngo build ./...\ngo run main.go\n```',
415
+ 'Always use `bash` as the code block language tag for commands — never `python`, `java`, etc.',
408
416
  'After seeing the output, continue helping based on the result.',
409
417
  ];
410
418
  if (projectBlock)
package/dist/cli.js CHANGED
@@ -32,7 +32,7 @@ import { createProvider, PROVIDER_INFO } from './providers/index.js';
32
32
  import { openInDefaultApp } from './utils/open.js';
33
33
  import { detectSystemLang, getStrings, normalizeLang, t, SUPPORTED_LANGS } from './i18n/index.js';
34
34
  import { accent, dim, err, ok } from './ui/index.js';
35
- export const VERSION = '0.5.2';
35
+ export const VERSION = '0.5.5';
36
36
  /** Resolve the active language: --lang flag > saved config > system locale. */
37
37
  async function resolveLang(flag) {
38
38
  if (flag) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vexi-cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Open-source AI coding agent for your terminal. Bring your own key, zero config, multilingual.",
5
5
  "type": "module",
6
6
  "bin": {