@todoforai/cli 0.1.43 → 0.1.44

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
@@ -4,8 +4,11 @@ CLI for [TODOforAI](https://todofor.ai) — create, watch, and inspect AI-powere
4
4
 
5
5
  ## Install
6
6
 
7
+ Runs on Node ≥ 20 or Bun.
8
+
7
9
  ```bash
8
- bun install -g @todoforai/cli
10
+ npm install -g @todoforai/cli # or: bun install -g @todoforai/cli
11
+ npx @todoforai/cli "Fix the login bug" # no install
9
12
  # Install the native bridge once, if it is not already on PATH:
10
13
  curl -fsSL https://raw.githubusercontent.com/todoforai/bridge/main/install.sh | sh
11
14
  ```
@@ -97,7 +100,7 @@ Pick **TODOforAI** from the agent dropdown in AI Chat.
97
100
 
98
101
  **VS Code** — no built-in ACP client yet; install a community ACP client extension (e.g. [`strato-space.acp-plugin`](https://marketplace.visualstudio.com/items?itemName=strato-space.acp-plugin)) and add the same `agent_servers` entry to `settings.json`.
99
102
 
100
- `--agent`, `--project` and `--api-url` apply to `acp` as well (e.g. `"args": ["acp", "--agent", "backend"]`). If `todoforai-cli` is not on the editor's `PATH`, use its absolute path (`which todoforai-cli`).
103
+ No global install needed — `"command": "npx", "args": ["-y", "@todoforai/cli", "acp"]` works in every host above. `--agent`, `--project` and `--api-url` apply to `acp` as well (e.g. `"args": ["acp", "--agent", "backend"]`). If `todoforai-cli` is not on the editor's `PATH`, use its absolute path (`which todoforai-cli`). Your agent settings show up in the host's mode picker, so you can switch agents per session without touching the config.
101
104
 
102
105
  ## All Options
103
106
 
@@ -1,9 +1,10 @@
1
- #!/usr/bin/env bun
2
- // Dev (linked repo): run src directly so there is no stale-build step.
3
- // Published package ships only dist/ (the @shared/* file: deps are bundled in).
1
+ #!/usr/bin/env node
2
+ // Dev (linked repo) under bun: run src directly so there is no stale-build step.
3
+ // Node (and the published package, which ships only dist/) runs the bundle;
4
+ // the @shared/* file: deps are bundled in.
4
5
  import { existsSync } from "node:fs";
5
6
  import { fileURLToPath } from "node:url";
6
7
 
7
8
  const src = fileURLToPath(new URL("../src/index.ts", import.meta.url));
8
9
  const dist = fileURLToPath(new URL("../dist/todoforai-cli.js", import.meta.url));
9
- await import(existsSync(src) ? src : dist);
10
+ await import(existsSync(src) && typeof Bun !== "undefined" ? src : dist);