@vibeprospecting/vpai 0.1.1 → 0.1.4

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
@@ -35,7 +35,7 @@ npm install -g @vibeprospecting/vpai
35
35
 
36
36
  ```bash
37
37
  git clone <repo>
38
- cd mcp-cli
38
+ cd vpai-cli
39
39
  npm install
40
40
  npm run build
41
41
  ```
@@ -136,12 +136,27 @@ OAuth runs automatically on first use (browser opens). Tokens are cached by mcpo
136
136
 
137
137
  MCP server URL, OAuth settings, and timeout are embedded in the build (`src/embedded-config.ts`). No external config files.
138
138
 
139
+ ### Error handling
140
+
141
+ All failure paths set `process.exitCode = 1` or call `process.exit(1)` so the process exits with a non-zero code:
142
+
143
+ | Failure | Behavior |
144
+ |---------|----------|
145
+ | Runtime init (`ensureRuntime`) | Logs "Failed to initialize MCP runtime", rethrows, CLI catches and exits 1 |
146
+ | List tools (`listTools`) | Logs "Failed to list tools from MCP server", rethrows, CLI catches and exits 1 |
147
+ | Schema resolution (`resolveToolSchema`) | Logs "Schema resolution failed", sets exitCode 1 |
148
+ | Tool execution (timeout, API error) | Logs "Tool execution timed out" or "Tool execution failed", sets exitCode 1 |
149
+ | Invalid `--args` JSON | Logs "Invalid JSON in --args", sets exitCode 1 |
150
+ | Non-object `--args` | Logs "--args must be a JSON object", sets exitCode 1 |
151
+
152
+ Errors are logged as JSON to stderr. No unhandled promise rejections or silent failures.
153
+
139
154
  ---
140
155
 
141
156
  ## Project Structure
142
157
 
143
158
  ```
144
- mcp-cli/
159
+ vpai-cli/
145
160
  ├── src/
146
161
  │ ├── cli.ts # Entry point
147
162
  │ ├── proxy.ts # Tool registration
package/dist/vpai CHANGED
Binary file