clawmoney 0.15.11 → 0.15.13

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.
@@ -10,22 +10,49 @@ import { API_PRICES, RELAY_DISCOUNT, PLATFORM_FEE } from "../relay/pricing.js";
10
10
  // ── Per-cli_type model catalogs ──
11
11
  //
12
12
  // `RECOMMENDED_MODELS` is what gets registered when the user picks "all
13
- // recommended" — it's a curated subset of API_PRICES that maps to the
14
- // models a typical end-user actually wants to expose. Old / preview /
15
- // niche models are intentionally excluded from the default; the user
16
- // can pick them via "select individually" if needed.
13
+ // recommended" — it's a curated subset of API_PRICES that mirrors what
14
+ // each CLI's NATIVE /model picker exposes by default. Cross-checked
15
+ // against:
16
+ // - Claude Code 2.1.x /model menu (4 entries → 3 unique IDs;
17
+ // Sonnet 1M is the same model + context-1m beta header)
18
+ // - Codex CLI 0.117.x /model menu (4 entries: gpt-5.4 current,
19
+ // gpt-5.4-mini, gpt-5.3-codex, gpt-5.2)
20
+ // - sub2api backend/internal/pkg/gemini/models.go DefaultModels()
21
+ // for the Gemini CLI catalog
22
+ // - sub2api backend/internal/pkg/antigravity/claude_types.go
23
+ // claudeModels + geminiModels for the Antigravity catalog
17
24
  //
18
- // `modelsForCli` returns the full set per cli_type drawn directly from
19
- // API_PRICES so every priced model is available in the manual picker.
25
+ // The "manual select" path (when the user says no to recommended)
26
+ // falls through to modelsForCli(cli) which returns EVERY priced
27
+ // model in that family.
20
28
  const RECOMMENDED_MODELS = {
29
+ // Claude Code /model menu: Default(Sonnet 4.6) / Sonnet(1M) / Opus(1M) / Haiku
30
+ // → 3 unique model IDs (Sonnet 1M = same model + context-1m beta)
21
31
  claude: ["claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5"],
22
- codex: ["gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex"],
32
+ // Codex CLI /model menu: gpt-5.4 (current frontier) / gpt-5.4-mini /
33
+ // gpt-5.3-codex (Codex-optimized) / gpt-5.2 (long-running pro)
34
+ codex: ["gpt-5.4", "gpt-5.4-mini", "gpt-5.3-codex", "gpt-5.2"],
35
+ // Gemini CLI exposes a long list; mainstream picks are the production-
36
+ // stable 2.5 line (pro + flash) and the latest 3.x preview (pro + flash).
37
+ // Image / thinking variants and lite/customtools are intentionally
38
+ // skipped from the recommended set — users can pick them manually.
39
+ gemini: [
40
+ "gemini-2.5-pro",
41
+ "gemini-2.5-flash",
42
+ "gemini-3-pro-preview",
43
+ "gemini-3-flash-preview",
44
+ ],
45
+ // Antigravity exposes Claude Opus/Sonnet AND Gemini Pro/Flash via the
46
+ // SAME Google Antigravity OAuth token (one of its main selling points
47
+ // for providers). Recommended set spans both halves so a single
48
+ // antigravity provider serves both Anthropic and Google buyers.
23
49
  antigravity: [
24
- "antigravity-gemini-3-pro",
25
- "antigravity-claude-opus-4-6",
26
50
  "antigravity-claude-sonnet-4-6",
51
+ "antigravity-claude-opus-4-6",
52
+ "antigravity-gemini-3-pro",
53
+ "antigravity-gemini-3-flash",
54
+ "antigravity-gemini-2.5-pro",
27
55
  ],
28
- gemini: ["gemini-2.5-pro", "gemini-2.5-flash"],
29
56
  };
30
57
  function modelsForCli(cli) {
31
58
  const all = Object.keys(API_PRICES);
@@ -33,7 +60,11 @@ function modelsForCli(cli) {
33
60
  return all.filter((m) => m.startsWith("claude-"));
34
61
  }
35
62
  if (cli === "codex") {
36
- return all.filter((m) => m.startsWith("gpt-") || m.startsWith("o3") || m.startsWith("o4"));
63
+ // Only gpt-5.x family o3/o4 reasoning models are public Responses
64
+ // API only, NOT served by Codex CLI's internal ChatGPT WS path.
65
+ // They're in API_PRICES for OpenAI SDK callers via /v1/chat/completions
66
+ // but a `codex` daemon can't actually serve them.
67
+ return all.filter((m) => m.startsWith("gpt-"));
37
68
  }
38
69
  if (cli === "antigravity") {
39
70
  return all.filter((m) => m.startsWith("antigravity-"));
@@ -100,7 +131,7 @@ function formatBuyerPrice(input, output) {
100
131
  export async function relaySetupCommand() {
101
132
  const config = requireConfig();
102
133
  intro(chalk.cyan(" ClawMoney Relay Setup "));
103
- log.message("Sell your idle Claude Max / ChatGPT Pro / Google subscription capacity to other AI agents.");
134
+ log.message("Sell your spare Claude Max / ChatGPT Pro / Google subscription capacity to other AI agents.");
104
135
  // ── Step 1: detect installed CLIs ──
105
136
  const detectSpin = spinner();
106
137
  detectSpin.start("Scanning for installed CLI clients...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmoney",
3
- "version": "0.15.11",
3
+ "version": "0.15.13",
4
4
  "description": "ClawMoney CLI -- Earn rewards with your AI agent",
5
5
  "type": "module",
6
6
  "bin": {