@caveman-ai/cli 1.3.3 → 1.3.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.
@@ -498,8 +498,8 @@ async function main() {
498
498
  if (!response) {
499
499
  // A dead loopback gateway PORT at prompt time is the SessionStart revive
500
500
  // signal arriving mid-session: native routing still points this session's
501
- // next request at the local proxy, but a wrap-owned proxy idle-exits after
502
- // its wrap dies and a plain session has no other way to restart it — the
501
+ // next request at the local proxy. Crashes or older proxies that idle-exit
502
+ // can leave a plain session without a way to restart it — the
503
503
  // turn hard-fails with ConnectionRefused. Delegate this one event to the
504
504
  // full CLI, which revives the proxy exactly like SessionStart (and records
505
505
  // the event itself). The port probe — not the dead runtime socket — is the
@@ -0,0 +1,111 @@
1
+ // OpenClaw v2026.8.2 (0965053fe6b9341776df147a6934b7485c60b5ca):
2
+ // packages/ai/src/transports/openai-completions-compat.ts
3
+ // packages/ai/src/transports/openai-responses-payload-policy.ts
4
+ // packages/ai/src/providers/anthropic.ts
5
+ // src/agents/provider-attribution.ts, src/config/types.models.ts
6
+ // This is a bounded config-overlay gate, not a copy of OpenClaw's private
7
+ // plugin metadata registry. Unknown host policy must remain in the host.
8
+ function object(value) {
9
+ return value !== null && typeof value === "object" && !Array.isArray(value)
10
+ ? value : undefined;
11
+ }
12
+ function hostname(baseUrl) {
13
+ try {
14
+ return new URL(baseUrl).hostname.toLowerCase();
15
+ }
16
+ catch {
17
+ return undefined;
18
+ }
19
+ }
20
+ function nativeOpenAIHost(host) {
21
+ return host === "api.openai.com" || host === "chatgpt.com" || [
22
+ ".openai.azure.com", ".cognitiveservices.azure.com", ".services.ai.azure.com", ".api.cognitive.microsoft.com",
23
+ ].some(suffix => host.endsWith(suffix));
24
+ }
25
+ /** Overrides that change the final transport cannot be copied onto localhost. */
26
+ export function openClawRequestCompatibilityIssue(value) {
27
+ if (value === undefined)
28
+ return undefined;
29
+ const request = object(value);
30
+ if (!request)
31
+ return "its request transport overrides could not be resolved";
32
+ const auth = object(request.auth);
33
+ if (request.auth !== undefined && (!auth || auth.mode !== "provider-default")) {
34
+ return "its custom request authentication cannot be preserved through routing";
35
+ }
36
+ if (request.proxy !== undefined || request.tls !== undefined) {
37
+ return "its request proxy or TLS settings belong to the original endpoint";
38
+ }
39
+ if (request.allowPrivateNetwork === false) {
40
+ return "its request policy explicitly disallows the local proxy endpoint";
41
+ }
42
+ if (request.headers !== undefined && !object(request.headers)) {
43
+ return "its request headers could not be resolved";
44
+ }
45
+ return undefined;
46
+ }
47
+ /** Freeze public defaults only when their values do not require private metadata. */
48
+ export function preserveOpenClawProviderCompat(model) {
49
+ const host = hostname(model.baseUrl);
50
+ if (!host)
51
+ return { ok: false, reason: "its original endpoint compatibility could not be resolved" };
52
+ const compat = object(model.compat);
53
+ if (model.compat !== undefined && !compat) {
54
+ return { ok: false, reason: "its explicit model compatibility could not be resolved" };
55
+ }
56
+ if (model.api === "openai-completions") {
57
+ // Even a complete public compat object cannot override the private
58
+ // requiresNonEmptyUserOrAssistantMessage field or the native-route store
59
+ // wrapper. Calling the standalone resolver would guess active metadata.
60
+ return { ok: false, reason: "OpenClaw does not expose the resolved OpenAI Chat provider policy needed to preserve its payload defaults" };
61
+ }
62
+ // OpenClaw normalizes configured provider IDs before matching models and
63
+ // applying transport policy. Keep the config key intact, but compare the
64
+ // same identity its runtime sees (including for public provider defaults).
65
+ const provider = model.provider.trim().toLowerCase();
66
+ // Public model compat cannot freeze xAI's native compact-endpoint decision.
67
+ if (model.api === "openai-responses" && (provider === "xai" || provider === "x-ai") && host === "api.x.ai") {
68
+ return { ok: false, reason: "OpenClaw's native xAI compact-endpoint policy cannot be preserved by public compatibility settings" };
69
+ }
70
+ // These headers are generated after model resolution from endpoint metadata.
71
+ // Static config headers do not recover the installed runtime version, and
72
+ // OpenClaw's attribution defaults take precedence over configured values.
73
+ if ((provider === "openai" && nativeOpenAIHost(host)) ||
74
+ (provider === "openrouter" && (host === "openrouter.ai" || host.endsWith(".openrouter.ai"))) ||
75
+ (provider === "xai" && host === "api.x.ai") ||
76
+ host === "integrate.api.nvidia.com" || host === "generativelanguage.googleapis.com") {
77
+ return { ok: false, reason: "OpenClaw generates endpoint-specific request headers that this config overlay cannot preserve" };
78
+ }
79
+ if (model.api === "openai-responses") {
80
+ if (nativeOpenAIHost(host) || model.baseUrl.includes("api.openai.com")) {
81
+ return { ok: false, reason: "OpenClaw's native Responses cache, replay and service-tier policy cannot be preserved by public compatibility settings" };
82
+ }
83
+ // The bundled Responses payload resolver treats all other routes as
84
+ // non-native. xAI alone additionally defaults to an instructions field.
85
+ // Explicit switches prevent the transport host from re-deriving these
86
+ // public defaults after the endpoint changes to localhost.
87
+ return { ok: true, compat: {
88
+ ...compat,
89
+ supportsStore: compat?.supportsStore ?? true,
90
+ supportsPromptCacheKey: compat?.supportsPromptCacheKey ?? false,
91
+ supportsInstructions: compat?.supportsInstructions ?? host === "api.x.ai",
92
+ } };
93
+ }
94
+ if (model.api === "anthropic-messages") {
95
+ if (provider === "anthropic" && host === "api.anthropic.com") {
96
+ return { ok: false, reason: "OpenClaw's native Anthropic fallback beta, service-tier and stream validation policy cannot be preserved by public compatibility settings" };
97
+ }
98
+ const fireworks = provider === "fireworks";
99
+ return { ok: true, compat: {
100
+ ...compat,
101
+ supportsEagerToolInputStreaming: compat?.supportsEagerToolInputStreaming ?? !fireworks,
102
+ supportsLongCacheRetention: compat?.supportsLongCacheRetention ?? !fireworks,
103
+ sendSessionAffinityHeaders: compat?.sendSessionAffinityHeaders ??
104
+ (fireworks || (provider === "cloudflare-ai-gateway" && model.baseUrl.includes("anthropic"))),
105
+ } };
106
+ }
107
+ if (model.api === "google-generative-ai") {
108
+ return { ok: true, ...(compat ? { compat: { ...compat } } : {}) };
109
+ }
110
+ return { ok: false, reason: `OpenClaw's ${model.api} transport compatibility has not been verified` };
111
+ }
@@ -0,0 +1,140 @@
1
+ export const COMPAT_NAME_RE = /^[a-z0-9][a-z0-9._-]{0,63}$/;
2
+ function endpoint(raw) {
3
+ if (!raw || /[\s?#]/.test(raw))
4
+ return undefined;
5
+ try {
6
+ const url = new URL(raw);
7
+ if (!['http:', 'https:'].includes(url.protocol) || !url.hostname
8
+ || url.username || url.password || url.search || url.hash || url.pathname.includes("//"))
9
+ return undefined;
10
+ // Host SDKs disagree on repeated separators; refuse them rather than
11
+ // normalize a tenant path. Go adapters join decoded path segments.
12
+ // Do not claim equivalence for
13
+ // escaped separators, dot segments, or backslashes normalized by WHATWG URL.
14
+ if (/%|\\/.test(raw) || /(?:^|\/)\.{1,2}(?:\/|$)/.test(raw))
15
+ return undefined;
16
+ return url;
17
+ }
18
+ catch {
19
+ return undefined;
20
+ }
21
+ }
22
+ export function publishedUpstreamsOf(raw) {
23
+ const out = Object.create(null);
24
+ if (!raw || typeof raw !== 'object' || Array.isArray(raw))
25
+ return out;
26
+ for (const [name, value] of Object.entries(raw)) {
27
+ if (!COMPAT_NAME_RE.test(name))
28
+ continue;
29
+ // Retain an invalid mount as unavailable; it must not fall through to a
30
+ // same-named native provider after its credential-bearing URL is omitted.
31
+ out[name] = typeof value === 'string' && endpoint(value) ? value : '';
32
+ }
33
+ return out;
34
+ }
35
+ function append(base, path) {
36
+ return base.origin + base.pathname.replace(/\/+$/, '') + path;
37
+ }
38
+ function compatTarget(base, path) {
39
+ const leftPath = base.pathname.replace(/^\/+|\/+$/g, '');
40
+ const rightPath = path.replace(/^\/+|\/+$/g, '');
41
+ const left = leftPath ? leftPath.split('/') : [];
42
+ const right = rightPath ? rightPath.split('/') : [];
43
+ let overlap = Math.min(left.length, right.length);
44
+ while (overlap > 0 && left.slice(-overlap).join('/') !== right.slice(0, overlap).join('/'))
45
+ overlap--;
46
+ return base.origin + '/' + [...left, ...right.slice(overlap)].join('/');
47
+ }
48
+ export function verifiedProviderRoute(gateway, api, provider, originalBaseUrl, published) {
49
+ const original = endpoint(originalBaseUrl);
50
+ if (!original || !endpoint(gateway))
51
+ return undefined;
52
+ const family = api === 'anthropic-messages' ? 'anthropic'
53
+ : api === 'openai-completions' || api === 'openai-responses' ? 'openai'
54
+ : api === 'google-generative-ai' ? 'gemini' : undefined;
55
+ if (!family)
56
+ return undefined;
57
+ const operation = api === 'anthropic-messages' ? '/v1/messages'
58
+ : api === 'openai-completions' ? '/chat/completions'
59
+ : api === 'openai-responses' ? '/responses' : '/models/caveman-route-proof:streamGenerateContent';
60
+ const expected = append(original, operation);
61
+ const mount = COMPAT_NAME_RE.test(provider) && published?.compat_upstreams
62
+ && Object.hasOwn(published.compat_upstreams, provider) ? published.compat_upstreams[provider] : undefined;
63
+ if (mount !== undefined) {
64
+ const upstream = endpoint(mount);
65
+ if (!upstream || family === 'gemini')
66
+ return undefined;
67
+ const suffix = family === 'openai' ? '/v1' : '';
68
+ if (compatTarget(upstream, suffix + operation) !== expected)
69
+ return undefined;
70
+ return gateway.replace(/\/+$/, '') + `/compat/${provider}${suffix}`;
71
+ }
72
+ const upstream = endpoint(published?.provider_upstreams?.[family]);
73
+ if (!upstream)
74
+ return undefined;
75
+ const versions = family === 'gemini' ? ['/v1beta', '/v1'] : [family === 'openai' ? '/v1' : ''];
76
+ for (const version of versions) {
77
+ if (append(upstream, version + operation) === expected) {
78
+ return gateway.replace(/\/+$/, '') + `/${family}${version}`;
79
+ }
80
+ }
81
+ return undefined;
82
+ }
83
+ // This is the gateway's ordinary end-to-end header contract for these three
84
+ // wire protocols. Additional mount headers require explicit operator config;
85
+ // preserving them in an overlay alone does not make the proxy forward them.
86
+ const COPIED_HEADERS = ["content-type", "content-encoding", "accept", "accept-encoding", "idempotency-key", "openai-organization", "openai-project", "session_id", "x-session-id", "x-client-request-id", "x-session-affinity", "anthropic-version", "anthropic-beta", "api-version", "user-agent"];
87
+ const COMPAT_HEADERS = {
88
+ openrouter: ["http-referer", "x-openrouter-title", "x-openrouter-categories"],
89
+ nvidia: ["x-billing-invoke-origin"],
90
+ opencode: ["x-opencode-session", "x-opencode-client", "x-opencode-project", "x-opencode-request"],
91
+ "opencode-go": ["x-opencode-session", "x-opencode-client", "x-opencode-project", "x-opencode-request"],
92
+ };
93
+ export function publishedForwardHeadersOf(raw) {
94
+ const out = Object.create(null);
95
+ if (!raw || typeof raw !== "object" || Array.isArray(raw))
96
+ return out;
97
+ for (const [name, values] of Object.entries(raw)) {
98
+ if (COMPAT_NAME_RE.test(name) && Array.isArray(values))
99
+ out[name] = values.filter((v) => typeof v === "string").map(v => v.toLowerCase());
100
+ }
101
+ return out;
102
+ }
103
+ export function unforwardedProviderHeaders(api, provider, headers, published) {
104
+ if (headers == null)
105
+ return [];
106
+ if (typeof headers !== "object" || Array.isArray(headers))
107
+ return ["invalid header configuration"];
108
+ const allowed = new Set(COPIED_HEADERS);
109
+ if (api === "openai-completions" || api === "openai-responses")
110
+ allowed.add("authorization");
111
+ if (api === "anthropic-messages") {
112
+ allowed.add("authorization");
113
+ allowed.add("x-api-key");
114
+ }
115
+ if (api === "google-generative-ai") {
116
+ allowed.add("authorization");
117
+ allowed.add("x-goog-api-key");
118
+ allowed.add("x-goog-user-project");
119
+ }
120
+ if (published?.compat_upstreams && Object.hasOwn(published.compat_upstreams, provider)) {
121
+ for (const name of published.compat_forward_headers?.[provider] ?? [])
122
+ allowed.add(name.toLowerCase());
123
+ if (Object.hasOwn(COMPAT_HEADERS, provider))
124
+ for (const name of COMPAT_HEADERS[provider])
125
+ allowed.add(name);
126
+ }
127
+ return Object.entries(headers).filter(([name, value]) => {
128
+ if (value === undefined)
129
+ return false;
130
+ const lower = name.toLowerCase();
131
+ // SDK custom headers override their generated Authorization verbatim.
132
+ // The proxy's credential mapper supports Bearer on these routes, so Basic,
133
+ // Digest, empty, or explicitly suppressed auth cannot be certified by name.
134
+ if (lower === "authorization")
135
+ return typeof value !== "string" || !/^Bearer +\S+$/i.test(value.trim());
136
+ if (["x-api-key", "x-goog-api-key"].includes(lower) && (typeof value !== "string" || !value.trim()))
137
+ return true;
138
+ return value !== null && !allowed.has(lower);
139
+ }).map(([name]) => name).sort();
140
+ }
@@ -0,0 +1,105 @@
1
+ // The proxy owns accounting and HTML. This module only parses the public
2
+ // command and renders its already-calculated report; it never recomputes money.
3
+ export const STATS_USAGE = "stats [--json] [--days N | --all-time] [--provider ID] [--model ID] [--agent ID] [--auth MODE] [--plain | --open] [--out PATH]";
4
+ export const STATS_HELP = `caveman stats — your local token and cost report
5
+
6
+ caveman stats summary and visual dashboard
7
+ caveman stats --days 7 last 7 UTC calendar days
8
+ caveman stats --all-time all recorded history
9
+ caveman stats --provider openai one provider
10
+ caveman stats --model gpt-5.6 one recorded model
11
+ caveman stats --auth subscription
12
+ caveman stats --json complete machine-readable report
13
+ caveman stats --plain terminal summary, no browser
14
+ caveman stats --out savings.html --open
15
+
16
+ Filters: --provider, --model, --agent and --auth use exact recorded values.
17
+ Days: 30 by default; 1–3660, or --all-time. All dates use UTC.
18
+ The dashboard is a private, offline HTML snapshot. Run stats again to refresh.
19
+ API cost estimates and subscription API equivalents are separate. Neither
20
+ proves an invoice reduction. Unknown models and billing modes stay unpriced.
21
+ `;
22
+ export function parseStatsOptions(argv) {
23
+ const result = { json: false, plain: false, open: false, filters: [] };
24
+ const seen = new Set();
25
+ const valueFlags = new Set(["--days", "--provider", "--model", "--agent", "--auth", "--out"]);
26
+ for (let i = 0; i < argv.length; i++) {
27
+ const arg = argv[i];
28
+ if (seen.has(arg))
29
+ throw new Error(`duplicate ${arg}`);
30
+ seen.add(arg);
31
+ if (valueFlags.has(arg)) {
32
+ const value = argv[++i];
33
+ if (!value || value.startsWith("--") || /[\u0000-\u001f\u007f]/u.test(value))
34
+ throw new Error(`${arg} requires a value`);
35
+ if (arg === "--days" && (!/^\d+$/u.test(value) || Number(value) < 1 || Number(value) > 3660)) {
36
+ throw new Error("--days must be an integer from 1 to 3660");
37
+ }
38
+ if (arg === "--out")
39
+ result.out = value;
40
+ else
41
+ result.filters.push(arg, value);
42
+ }
43
+ else if (arg === "--json")
44
+ result.json = true;
45
+ else if (arg === "--plain" || arg === "--no-open")
46
+ result.plain = true;
47
+ else if (arg === "--open")
48
+ result.open = true;
49
+ else if (arg === "--all-time")
50
+ result.filters.push("--days", "0");
51
+ else
52
+ throw new Error(`unknown option ${arg}`);
53
+ }
54
+ if (seen.has("--days") && seen.has("--all-time"))
55
+ throw new Error("choose --days or --all-time");
56
+ if (result.plain && result.open)
57
+ throw new Error("choose --plain or --open");
58
+ if (result.json && result.open)
59
+ throw new Error("--json cannot open a browser");
60
+ return result;
61
+ }
62
+ const count = (n) => Number.isFinite(n) ? n.toLocaleString("en-US") : "unknown";
63
+ const money = (n) => typeof n === "number" && Number.isFinite(n)
64
+ ? `${n < 0 ? "−" : ""}$${Math.abs(n).toFixed(Math.abs(n) > 0 && Math.abs(n) < 0.01 ? 6 : 4)}`
65
+ : "unavailable";
66
+ const label = (value) => value.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/gu, "").replace(/[\u0000-\u001f\u007f-\u009f]/gu, "");
67
+ export function renderStatsSummary(report) {
68
+ const m = report.totals;
69
+ const usageCount = (n) => {
70
+ if (m.complete_usage_requests === 0 && n === 0)
71
+ return "unknown";
72
+ return `${count(n)}${m.partial_usage_requests > 0 ? " observed" : ""}`;
73
+ };
74
+ const lines = [
75
+ "Caveman Stats",
76
+ `${report.window.lifetime ? "All recorded history" : `Last ${report.window.days} days`} · UTC · local estimates`,
77
+ "",
78
+ ];
79
+ if (m.requests === 0) {
80
+ lines.push("No routed requests in this window.", "Run an agent through Caveman, then run caveman stats again.");
81
+ }
82
+ else {
83
+ const reduction = m.measured_requests > 0
84
+ ? `${count(m.saved_tokens)} tokens${m.before_tokens > 0 ? ` (${(100 * m.saved_tokens / m.before_tokens).toFixed(1)}%)` : ""}`
85
+ : "unavailable — no request comparisons recorded yet";
86
+ lines.push(`Input reduction estimate ${reduction}`, `Compared request tokens ${m.measured_requests > 0 ? `${count(m.before_tokens)} original / ${count(m.after_tokens)} delivered` : "unavailable"}`, `API input cost estimate ${money(m.api_savings_usd)} reduction · ${count(m.api_savings_requests)} priced requests`, `Subscription equivalent ${money(m.api_equivalent_savings_usd)} at API rates · ${count(m.equivalent_savings_requests)} priced requests`, `API spend estimate ${money(m.api_spend_usd)} · ${count(m.api_spend_requests)} priced requests`, "", `Requests ${count(m.requests)} total / ${count(m.successful_requests)} successful / ${count(m.failed_requests)} failed`, `Provider usage ${usageCount(m.input_tokens)} input / ${usageCount(m.output_tokens)} output`, `Cache usage ${usageCount(m.cache_read_tokens)} read / ${usageCount(m.cache_write_tokens)} written`, `Usage coverage ${count(m.complete_usage_requests)} complete / ${count(m.partial_usage_requests)} partial or unavailable`, `Comparison coverage ${count(m.measured_requests)} measured / ${count(m.unmeasured_requests)} unavailable`);
87
+ if (m.expanded_requests > 0)
88
+ lines.push(`Overhead regressions ${count(m.expanded_requests)} requests (included in net delta)`);
89
+ if (m.legacy_requests > 0)
90
+ lines.push(`Legacy segment reductions ${count(m.legacy_saved_tokens)} tokens / ${count(m.legacy_requests)} requests (separate)`);
91
+ if (m.unknown_auth_requests > 0)
92
+ lines.push(`Unknown billing ${count(m.unknown_auth_requests)} requests (excluded from money totals)`);
93
+ if (report.providers?.length) {
94
+ lines.push("", "By provider");
95
+ for (const p of report.providers) {
96
+ lines.push(` ${label(p.provider)}: ${count(p.requests)} requests · ${p.measured_requests > 0 ? count(p.saved_tokens) : "unknown"} tokens · API ${money(p.api_savings_usd)} · subscription equivalent ${money(p.api_equivalent_savings_usd)}`);
97
+ }
98
+ }
99
+ lines.push("", "API estimates assume the observed cache mix. Subscription equivalents do not reduce your bill.");
100
+ }
101
+ if (report.report_path)
102
+ lines.push("", `Dashboard: ${report.report_path}`);
103
+ lines.push("Full breakdown: caveman stats --json");
104
+ return `${lines.join("\n")}\n`;
105
+ }
@@ -0,0 +1,299 @@
1
+ {
2
+ "schema_version": 1,
3
+ "commands": [
4
+ "agent.list",
5
+ "agent.run",
6
+ "artifacts.get",
7
+ "artifacts.list",
8
+ "audit.list",
9
+ "auth.login",
10
+ "auth.status",
11
+ "builds.evidence",
12
+ "builds.get",
13
+ "builds.list",
14
+ "builds.register",
15
+ "builds.regressions",
16
+ "context.bind",
17
+ "context.data_source_catalog",
18
+ "context.get_capabilities",
19
+ "context.get_mode",
20
+ "context.get_org",
21
+ "context.get_semantic_cache",
22
+ "context.list",
23
+ "context.provider_capabilities",
24
+ "context.save",
25
+ "context.set",
26
+ "context.show",
27
+ "context.system_status",
28
+ "context.use",
29
+ "context.whoami",
30
+ "datasets.archive",
31
+ "datasets.create",
32
+ "datasets.diff",
33
+ "datasets.from-traces",
34
+ "datasets.get",
35
+ "datasets.list",
36
+ "datasets.pull",
37
+ "datasets.push",
38
+ "datasets.snapshot",
39
+ "datasets.update",
40
+ "datasets.validate",
41
+ "datasets.versions",
42
+ "doctor",
43
+ "evals.add_case",
44
+ "evals.archive",
45
+ "evals.cancel",
46
+ "evals.compare",
47
+ "evals.create",
48
+ "evals.create_suite",
49
+ "evals.diff",
50
+ "evals.get",
51
+ "evals.get_suite",
52
+ "evals.ingest_evidence",
53
+ "evals.list",
54
+ "evals.list_annotation_queue",
55
+ "evals.list_cases",
56
+ "evals.list_evidence",
57
+ "evals.list_run_annotations",
58
+ "evals.list_suites",
59
+ "evals.pull",
60
+ "evals.push",
61
+ "evals.replace_cases",
62
+ "evals.restore",
63
+ "evals.result",
64
+ "evals.run",
65
+ "evals.run_baseline",
66
+ "evals.runs",
67
+ "evals.snapshot",
68
+ "evals.update",
69
+ "evals.update_suite",
70
+ "evals.validate",
71
+ "evals.versions",
72
+ "evals.wait",
73
+ "evaluators.archive",
74
+ "evaluators.calibrate",
75
+ "evaluators.create",
76
+ "evaluators.diff",
77
+ "evaluators.get",
78
+ "evaluators.list",
79
+ "evaluators.pull",
80
+ "evaluators.push",
81
+ "evaluators.update",
82
+ "evaluators.validate",
83
+ "evaluators.versions",
84
+ "experiments.cancel",
85
+ "experiments.create",
86
+ "experiments.get",
87
+ "experiments.list",
88
+ "experiments.results",
89
+ "experiments.runs",
90
+ "experiments.start",
91
+ "findings.create",
92
+ "findings.list",
93
+ "fixes.create_experiment",
94
+ "fixes.create_proposal_from_move",
95
+ "fixes.dismiss_novelty",
96
+ "fixes.dismiss_opportunity",
97
+ "fixes.get_improvement_report",
98
+ "fixes.get_opportunity",
99
+ "fixes.get_theme",
100
+ "fixes.latest_improvement_report",
101
+ "fixes.list_moves",
102
+ "fixes.list_novelty",
103
+ "fixes.list_opportunities",
104
+ "fixes.list_outcomes",
105
+ "fixes.list_themes",
106
+ "fixes.mark_implemented",
107
+ "fixes.org_practice_evidence",
108
+ "fixes.practice_evidence",
109
+ "fixes.promote_novelty",
110
+ "fixes.proposal_runs",
111
+ "fixes.record_outcome",
112
+ "fixes.submit_practice_findings",
113
+ "human.add_proposal_evidence",
114
+ "human.agent_connections",
115
+ "human.audit",
116
+ "human.audit_findings",
117
+ "human.audits",
118
+ "human.autopilot_pause",
119
+ "human.billing_account",
120
+ "human.compute_usage",
121
+ "human.connectors",
122
+ "human.consents",
123
+ "human.create_audit",
124
+ "human.create_import",
125
+ "human.create_policy_draft",
126
+ "human.create_sample_data",
127
+ "human.data_request",
128
+ "human.data_requests",
129
+ "human.exports",
130
+ "human.external_spend",
131
+ "human.github",
132
+ "human.imports",
133
+ "human.job",
134
+ "human.list_keys",
135
+ "human.metering_receipts",
136
+ "human.onboarding",
137
+ "human.onboarding_learn",
138
+ "human.organizations",
139
+ "human.policies",
140
+ "human.policy",
141
+ "human.practice_consents",
142
+ "human.provider_catalog",
143
+ "human.reconcile_continuous_replay",
144
+ "human.replay_consents",
145
+ "human.replay_continuous_report",
146
+ "human.run_proposal",
147
+ "human.sso",
148
+ "human.start_onboarding_learn",
149
+ "human.system_version",
150
+ "human.tool_catalogs",
151
+ "human.update_budget",
152
+ "human.update_onboarding",
153
+ "human.update_org",
154
+ "human.update_policy_draft",
155
+ "human.validate_policy_draft",
156
+ "human.webhooks",
157
+ "manifests.push",
158
+ "manifests.validate",
159
+ "monitors.create",
160
+ "monitors.get",
161
+ "monitors.list",
162
+ "monitors.results",
163
+ "monitors.set_status",
164
+ "monitors.update",
165
+ "people.delivery",
166
+ "people.developers",
167
+ "people.list_members",
168
+ "people.member_spend",
169
+ "people.my_delivery",
170
+ "people.my_usage",
171
+ "people.repo_contributors",
172
+ "people.seats",
173
+ "people.spend_breakdown",
174
+ "plan.org_plan",
175
+ "plan.project_plan",
176
+ "plan.score",
177
+ "policy.budgets",
178
+ "policy.consent_status",
179
+ "policy.current",
180
+ "policy.delivery_status",
181
+ "policy.org_retention",
182
+ "policy.retention",
183
+ "project_setup.preview_routing",
184
+ "project_setup.set_capabilities",
185
+ "project_setup.set_mode",
186
+ "project_setup.set_pixel_density",
187
+ "project_setup.set_semantic_cache",
188
+ "projects.create",
189
+ "projects.get",
190
+ "projects.list",
191
+ "projects.update",
192
+ "prompts.add_version",
193
+ "prompts.create",
194
+ "prompts.create_experiment",
195
+ "prompts.delete",
196
+ "prompts.delete_experiment",
197
+ "prompts.get",
198
+ "prompts.get_experiment",
199
+ "prompts.get_version",
200
+ "prompts.list",
201
+ "prompts.list_experiments",
202
+ "prompts.pin_version",
203
+ "prompts.update_experiment",
204
+ "proposals.create",
205
+ "proposals.get",
206
+ "proposals.list",
207
+ "providers.list",
208
+ "providers.verify",
209
+ "qualifications.activate",
210
+ "qualifications.cancel",
211
+ "qualifications.list",
212
+ "qualifications.refresh",
213
+ "qualifications.sets",
214
+ "reports.agents",
215
+ "reports.cache",
216
+ "reports.compression",
217
+ "reports.costs",
218
+ "reports.fleet",
219
+ "reports.models",
220
+ "reports.overview",
221
+ "reports.population_savings",
222
+ "reports.routes",
223
+ "reports.spend_flow",
224
+ "reports.traffic_shape",
225
+ "reports.usage",
226
+ "reports.verified_savings",
227
+ "reports.why",
228
+ "reports.workflow_detail",
229
+ "reports.workflows",
230
+ "reports.wrap_savings",
231
+ "runs.cancel",
232
+ "runs.events",
233
+ "runs.get",
234
+ "runs.result",
235
+ "runs.wait",
236
+ "scenarios.compare",
237
+ "scenarios.create",
238
+ "scenarios.diff",
239
+ "scenarios.from-trace",
240
+ "scenarios.get",
241
+ "scenarios.list",
242
+ "scenarios.pull",
243
+ "scenarios.push",
244
+ "scenarios.run",
245
+ "scenarios.update",
246
+ "scenarios.validate",
247
+ "scenarios.versions",
248
+ "targets.get",
249
+ "targets.list",
250
+ "targets.validate",
251
+ "tools.describe",
252
+ "tools.list",
253
+ "tools.schema",
254
+ "traces.get",
255
+ "traces.list",
256
+ "traces.payload",
257
+ "traces.search",
258
+ "traces.spans",
259
+ "traces.timeline",
260
+ "traces.transcript",
261
+ "workflows.create",
262
+ "workflows.create_agent",
263
+ "workflows.get",
264
+ "workflows.get_agent",
265
+ "workflows.list",
266
+ "workflows.list_agents",
267
+ "workflows.list_fingerprints",
268
+ "workflows.update",
269
+ "workflows.update_agent"
270
+ ],
271
+ "mcp_tools": [
272
+ "caveman_audit",
273
+ "caveman_builds",
274
+ "caveman_builds_write",
275
+ "caveman_context",
276
+ "caveman_evals",
277
+ "caveman_evals_write",
278
+ "caveman_experiment_get",
279
+ "caveman_experiments",
280
+ "caveman_experiments_write",
281
+ "caveman_fixes",
282
+ "caveman_fixes_write",
283
+ "caveman_monitors",
284
+ "caveman_monitors_write",
285
+ "caveman_people",
286
+ "caveman_plan",
287
+ "caveman_policy",
288
+ "caveman_project_setup",
289
+ "caveman_prompts",
290
+ "caveman_prompts_write",
291
+ "caveman_report",
292
+ "caveman_reports",
293
+ "caveman_trace_get",
294
+ "caveman_trace_search",
295
+ "caveman_traces",
296
+ "caveman_workflows",
297
+ "caveman_workflows_write"
298
+ ]
299
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caveman-ai/cli",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Caveman CLI — wrap coding agents with recoverable local context compression and truthful metering (`caveman claude`), then drive Caveman Cloud from terminal. Compression and metering run in companion Go binaries: run `caveman setup` to see install state. Local savings stay inferred until verified.",
5
5
  "license": "MIT",
6
6
  "type": "module",