@droconnell/agent-inbox-cli 2.11.0 → 2.11.1

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
@@ -10,14 +10,14 @@ Needs Node 18 or later. No other dependencies.
10
10
  npm i -g @droconnell/agent-inbox-cli
11
11
  ```
12
12
 
13
- That installs the command `agent-inbox`. On a Mac or Linux, if npm says `EACCES: permission denied`, give npm a folder of your own once, then install again without `sudo`:
13
+ That installs the command `agent-inbox` (`agent-inbox-cli` works too). On a Mac or Linux, if npm says `EACCES: permission denied`, give npm a folder of your own once, then install again without `sudo`:
14
14
 
15
15
  ```bash
16
16
  mkdir -p ~/.npm-global && npm config set prefix ~/.npm-global
17
17
  echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
18
18
  ```
19
19
 
20
- You can also download the single file from your own Next address and run it with Node: `curl -fsSLO https://your-next-address/cli/agent-inbox.mjs`, then `node agent-inbox.mjs ...`.
20
+ You can also download the single file from your own Next address and run it with Node: `curl -fsSLO https://your-next-address/cli/agent-inbox.mjs` (in Windows PowerShell, `curl.exe`), then `node agent-inbox.mjs ...`.
21
21
 
22
22
  ## Set everything up at once
23
23
 
package/agent-inbox.mjs CHANGED
@@ -44,7 +44,7 @@ import { spawn, spawnSync } from "node:child_process";
44
44
  import { fileURLToPath, pathToFileURL } from "node:url";
45
45
  import { createRequire } from "node:module";
46
46
 
47
- export const VERSION = "2.11.0";
47
+ export const VERSION = "2.11.1";
48
48
  /** The npm package; its command is agent-inbox. (The name agent-inbox itself belongs to someone else on npm.) */
49
49
  export const PACKAGE = "@droconnell/agent-inbox-cli";
50
50
  const DIR = join(process.env.XDG_CONFIG_HOME || join(homedir(), ".config"), "agent-inbox");
@@ -98,7 +98,7 @@ const urlArg = take("--url", true);
98
98
  const tokenArg = take("--token", true);
99
99
  /** The CLI's own commands. Anything else is a terminal command, sent as typed. */
100
100
  export const OWN = new Set(["login", "logout", "update", "export", "pull", "plan", "diff", "push", "propose", "run", "tail", "script", "check", "ci", "test", "rehearse", "commands", "help", "submit", "dev",
101
- "whoami", "policy", "audit", "mcp", "claude", "init", "connect", "app", "events", "listen", "completion", "__complete", "--version", "-v", "--help", "-h"]);
101
+ "whoami", "policy", "audit", "mcp", "claude", "init", "connect", "app", "events", "listen", "completion", "__complete", "version", "--version", "-v", "--help", "-h"]);
102
102
  const first = args[0];
103
103
  // plan, diff and run are also terminal commands: the CLI's own only for a folder or file that is there (plan, diff) or
104
104
  // a quoted command (run "ls unassigned"); otherwise they go to the terminal as typed (diff 40 42, run onboarding).
@@ -1040,6 +1040,7 @@ const USAGE = [
1040
1040
  ["completion bash|zsh|fish", "Tab completion of commands and real names for your shell"],
1041
1041
  ["logout", "forget this computer's sign-in (and revoke a browser sign-in in Next)"],
1042
1042
  ["update", "how to get the newest version (a downloaded file updates itself)"],
1043
+ ["version", "which version you have (also --version)"],
1043
1044
  ["help <command>", "one terminal command with an example; ME commands lists them all"],
1044
1045
  ];
1045
1046
  /** The usage, naming the command the way it was run, so each line can be copied as it is. */
@@ -2217,7 +2218,7 @@ switch (cmd) {
2217
2218
  say(markdown ? `### Proposed\n\n${fence(text)}\n\n${sent.text}` : `${text}\n\n${sent.text}`);
2218
2219
  process.exit(2);
2219
2220
  }
2220
- case "--version": case "-v": say(VERSION); break;
2221
+ case "version": case "--version": case "-v": say(VERSION); break;
2221
2222
  case "check": {
2222
2223
  // A support folder's pull request: what it would change, and a rehearsal of the change.
2223
2224
  const opt = (name) => { const i = rest.indexOf(`--${name}`); return i >= 0 ? rest[i + 1] : undefined; };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@droconnell/agent-inbox-cli",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "The Next CLI, built for agents: JSON on every command, an MCP server for any AI tool, live events, apps and webhooks from the terminal, and a support workspace's setup as files in git.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "agent-inbox": "agent-inbox.mjs"
7
+ "agent-inbox": "agent-inbox.mjs",
8
+ "agent-inbox-cli": "agent-inbox.mjs"
8
9
  },
9
10
  "files": [
10
11
  "agent-inbox.mjs",