@connortessaro/pai 0.4.3 → 0.5.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connortessaro/pai",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "Keys, money and subagents for AI agents: Phantom AI keys and child keys, budgets and plans, model routing, an agent wallet, and signed receipts. CLI, MCP server, and a skill for pi, Claude Code, Codex and Cursor.",
5
5
  "keywords": [
6
6
  "phantom",
@@ -21,7 +21,7 @@
21
21
  "wallet",
22
22
  "subagents"
23
23
  ],
24
- "homepage": "https://github.com/connortessaro/pai#readme",
24
+ "homepage": "https://connortessaro.github.io/pai/",
25
25
  "repository": {
26
26
  "type": "git",
27
27
  "url": "git+https://github.com/connortessaro/pai.git"
@@ -46,12 +46,12 @@
46
46
  "@solana/kit": "^8.3.0",
47
47
  "imapflow": "^2.0.6",
48
48
  "mailparser": "^3.9.28",
49
- "nodemailer": "^8.0.11",
49
+ "nodemailer": "^10.0.10",
50
50
  "zod": "^4.5.4"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "tsc -p .",
54
- "coverage": "vitest run --coverage --coverage.include=src/pai.mts",
54
+ "coverage": "vitest run --coverage",
55
55
  "dev": "node src/pai.mts",
56
56
  "docs": "node scripts/gen-docs.mjs",
57
57
  "prepare": "npm run build",
@@ -72,10 +72,10 @@
72
72
  "devDependencies": {
73
73
  "@types/mailparser": "^3.4.6",
74
74
  "@types/node": "^24.0.0",
75
- "@types/nodemailer": "^8.0.2",
76
- "@vitest/coverage-v8": "^4.1.11",
75
+ "@vitest/coverage-v8": "^5.0.2",
76
+ "typedoc": "^0.28.20",
77
77
  "typescript": "^5.9.0",
78
- "vitest": "^4.0.0"
78
+ "vitest": "^5.0.2"
79
79
  },
80
80
  "publishConfig": {
81
81
  "access": "public"
@@ -7,7 +7,7 @@ description: Manage a Phantom AI API key and its money from the terminal with th
7
7
 
8
8
  Phantom AI is an OpenAI-compatible API at `https://phantom.codes/v1`, paid for with prepaid keys. `pai` manages the key. Each command prints JSON; add `--table` to show the result to the user.
9
9
 
10
- A command runs as `PHANTOM_API_KEY` if it is set, then as the saved key named by `PHANTOM_KEY_NAME`, then as the key saved by `pai login`. If none is set, ask the user to run `pai login` themselves. Don't ask them to paste the key into the chat.
10
+ A command runs as the saved key named by `PHANTOM_KEY_NAME` if it is set, then as `PHANTOM_API_KEY`, then as the key saved by `pai login`. If none is set, ask the user to run `pai login` themselves. Don't ask them to paste the key into the chat.
11
11
 
12
12
  ## Check money
13
13