context-doctor 0.38.0 → 0.40.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.
Files changed (65) hide show
  1. package/README.md +28 -19
  2. package/dist/antigravity.d.ts +44 -0
  3. package/dist/antigravity.js +80 -0
  4. package/dist/autoclear.d.ts +15 -0
  5. package/dist/autoclear.js +17 -0
  6. package/dist/autopilot.js +3 -2
  7. package/dist/cachemisses.d.ts +56 -2
  8. package/dist/cachemisses.js +252 -42
  9. package/dist/cachettl.d.ts +127 -0
  10. package/dist/cachettl.js +357 -0
  11. package/dist/claudedir.d.ts +17 -0
  12. package/dist/claudedir.js +32 -0
  13. package/dist/cli.js +303 -26
  14. package/dist/coldresume.d.ts +15 -0
  15. package/dist/coldresume.js +60 -11
  16. package/dist/compactquality.d.ts +5 -0
  17. package/dist/compactquality.js +108 -61
  18. package/dist/compactwindow.d.ts +14 -5
  19. package/dist/compactwindow.js +36 -43
  20. package/dist/doctor.d.ts +14 -0
  21. package/dist/doctor.js +94 -8
  22. package/dist/effective.d.ts +55 -0
  23. package/dist/effective.js +163 -0
  24. package/dist/experiment.js +2 -2
  25. package/dist/extract.js +4 -1
  26. package/dist/fanout.js +2 -2
  27. package/dist/fix.d.ts +176 -0
  28. package/dist/fix.js +574 -0
  29. package/dist/hook.js +2 -2
  30. package/dist/install.d.ts +27 -1
  31. package/dist/install.js +248 -37
  32. package/dist/ledger.js +2 -2
  33. package/dist/lens.d.ts +2 -0
  34. package/dist/lens.js +50 -24
  35. package/dist/limits.d.ts +10 -0
  36. package/dist/limits.js +36 -12
  37. package/dist/mcp.js +61 -61
  38. package/dist/mcpclient.js +28 -28
  39. package/dist/mcpschema.d.ts +18 -0
  40. package/dist/mcpschema.js +74 -31
  41. package/dist/missledger.d.ts +61 -0
  42. package/dist/missledger.js +198 -0
  43. package/dist/overhead.js +22 -25
  44. package/dist/profile.js +8 -8
  45. package/dist/proxy.d.ts +1 -1
  46. package/dist/proxy.js +2 -1
  47. package/dist/prune.d.ts +4 -0
  48. package/dist/prune.js +89 -49
  49. package/dist/reads.js +2 -2
  50. package/dist/recall.js +2 -1
  51. package/dist/savings.d.ts +5 -9
  52. package/dist/savings.js +217 -115
  53. package/dist/scan.d.ts +96 -0
  54. package/dist/scan.js +482 -0
  55. package/dist/session.d.ts +6 -0
  56. package/dist/session.js +16 -3
  57. package/dist/settingsedit.d.ts +72 -0
  58. package/dist/settingsedit.js +493 -0
  59. package/dist/statusline.d.ts +38 -2
  60. package/dist/statusline.js +66 -4
  61. package/dist/subagentpay.js +2 -2
  62. package/dist/tasks.js +2 -2
  63. package/dist/tokens.d.ts +5 -0
  64. package/dist/tokens.js +11 -1
  65. package/package.json +2 -2
@@ -0,0 +1,163 @@
1
+ /**
2
+ * The value Claude Code will actually use for a setting `fix` writes, and
3
+ * what would override the user-level value `fix` writes.
4
+ *
5
+ * Claude Code merges settings from several files, highest first: managed
6
+ * (policy) settings, the project's `.claude/settings.local.json`, its
7
+ * `.claude/settings.json`, then the user's `settings.json` (in
8
+ * CLAUDE_CONFIG_DIR when set). Read from the 2.1.309 binary:
9
+ * - the prompt cache lifetime: FORCE_PROMPT_CACHING_5M wins, then
10
+ * CLAUDE_CODE_PROMPT_CACHE_TTL (CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL for
11
+ * subagents), then the merged `promptCacheTtl` / `subagentPromptCacheTtl`,
12
+ * then an agent's own frontmatter, then ENABLE_PROMPT_CACHING_1H; and
13
+ * CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL=5m turns the main conversation's
14
+ * 1 hour into 5 minutes;
15
+ * - the auto-compact window: CLAUDE_CODE_AUTO_COMPACT_WINDOW, else, from the
16
+ * highest file down, `modelSettings.<model>.autoCompactWindow` (what
17
+ * /autocompact writes) before that file's `autoCompactWindow` ("auto"
18
+ * meaning the model's own window).
19
+ * Environment variables count from the process and from every settings
20
+ * file's `env` block (Claude Code applies those at start).
21
+ */
22
+ import { existsSync, readdirSync } from "node:fs";
23
+ import { join } from "node:path";
24
+ import { claudeDir, tilde } from "./claudedir.js";
25
+ import { readSettings } from "./settingsedit.js";
26
+ /** Managed (policy) settings files: CLAUDE_CODE_MANAGED_SETTINGS_PATH, else the platform's place and its drop-in folder. */
27
+ export function managedSettingsPaths(env = process.env) {
28
+ if (env.CONTEXT_DOCTOR_NO_MANAGED_SETTINGS)
29
+ return [];
30
+ if (env.CLAUDE_CODE_MANAGED_SETTINGS_PATH)
31
+ return [env.CLAUDE_CODE_MANAGED_SETTINGS_PATH];
32
+ const dir = process.platform === "darwin" ? "/Library/Application Support/ClaudeCode"
33
+ : process.platform === "win32" ? join(env.ProgramFiles ?? "C:\\Program Files", "ClaudeCode")
34
+ : "/etc/claude-code";
35
+ const out = [join(dir, "managed-settings.json")];
36
+ try {
37
+ for (const f of readdirSync(join(dir, "managed-settings.d")).sort())
38
+ if (f.endsWith(".json"))
39
+ out.push(join(dir, "managed-settings.d", f));
40
+ }
41
+ catch {
42
+ /* none */
43
+ }
44
+ return out;
45
+ }
46
+ /** The settings files that apply in `cwd`, highest precedence first; unreadable ones are skipped. */
47
+ export function settingsSources(opts = {}) {
48
+ const env = opts.env ?? process.env;
49
+ const cwd = opts.cwd ?? process.cwd();
50
+ const user = join(claudeDir(opts.home, env), "settings.json");
51
+ const list = [
52
+ ...managedSettingsPaths(env).map((p) => ["managed", p]),
53
+ ["project local", join(cwd, ".claude", "settings.local.json")],
54
+ ["project", join(cwd, ".claude", "settings.json")],
55
+ ["user", user],
56
+ ];
57
+ const out = [];
58
+ const seen = new Set();
59
+ for (const [name, path] of list) {
60
+ // In the home folder the project's settings.json IS the user's: it counts once, as the user's.
61
+ if (seen.has(path) || (name !== "user" && path === user))
62
+ continue;
63
+ seen.add(path);
64
+ if (!existsSync(path))
65
+ continue;
66
+ try {
67
+ out.push({ name, path, settings: readSettings(path).data });
68
+ }
69
+ catch {
70
+ /* unreadable: Claude Code skips it too */
71
+ }
72
+ }
73
+ return out;
74
+ }
75
+ /** An environment variable as Claude Code sees it: a settings file's `env` (highest first), else the process. */
76
+ export function effectiveEnv(name, sources, env = process.env) {
77
+ for (const s of sources) {
78
+ const v = s.settings.env?.[name];
79
+ if (v !== undefined && v !== null && String(v).trim() !== "")
80
+ return { value: String(v), where: `${name}=${v} in ${tilde(s.path)} env` };
81
+ }
82
+ const v = env[name];
83
+ if (v !== undefined && v.trim() !== "")
84
+ return { value: v, where: `${name}=${v} in the environment` };
85
+ return undefined;
86
+ }
87
+ const truthy = (v) => v !== "0" && v.toLowerCase() !== "false";
88
+ /** The prompt cache lifetime Claude Code will use, as far as settings and environment decide it. */
89
+ export function effectiveTtl(kind, sources, env = process.env) {
90
+ const force = effectiveEnv("FORCE_PROMPT_CACHING_5M", sources, env);
91
+ if (force && truthy(force.value))
92
+ return { value: "5m", where: force.where, fromUser: false };
93
+ const ev = effectiveEnv(kind === "main" ? "CLAUDE_CODE_PROMPT_CACHE_TTL" : "CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL", sources, env);
94
+ const clamp = kind === "main" ? effectiveEnv("CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL", sources, env) : undefined;
95
+ const clamped = (r) => (clamp?.value === "5m" && r.value === "1h" ? { value: "5m", where: clamp.where, fromUser: false } : r);
96
+ if (ev)
97
+ return clamped({ value: ev.value, where: ev.where, fromUser: false });
98
+ const key = kind === "main" ? "promptCacheTtl" : "subagentPromptCacheTtl";
99
+ for (const s of sources) {
100
+ const v = s.settings[key];
101
+ if (v !== undefined)
102
+ return clamped({ value: String(v), where: `${key} in ${tilde(s.path)}`, fromUser: s.name === "user" });
103
+ }
104
+ const on1h = effectiveEnv("ENABLE_PROMPT_CACHING_1H", sources, env);
105
+ if (on1h && truthy(on1h.value))
106
+ return clamped({ value: "1h", where: on1h.where, fromUser: false });
107
+ return { fromUser: false };
108
+ }
109
+ /** What keeps a user-level promptCacheTtl / subagentPromptCacheTtl from taking effect. */
110
+ export function ttlOverrides(kind, sources, env = process.env) {
111
+ const out = [];
112
+ const force = effectiveEnv("FORCE_PROMPT_CACHING_5M", sources, env);
113
+ if (force && truthy(force.value))
114
+ out.push(force.where);
115
+ const ev = effectiveEnv(kind === "main" ? "CLAUDE_CODE_PROMPT_CACHE_TTL" : "CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL", sources, env);
116
+ if (ev)
117
+ out.push(ev.where);
118
+ const key = kind === "main" ? "promptCacheTtl" : "subagentPromptCacheTtl";
119
+ for (const s of sources)
120
+ if (s.name !== "user" && s.settings[key] !== undefined)
121
+ out.push(`${key} "${s.settings[key]}" in ${tilde(s.path)}`);
122
+ if (kind === "main") {
123
+ const clamp = effectiveEnv("CLAUDE_CODE_MESSAGES_PROMPT_CACHE_TTL", sources, env);
124
+ if (clamp?.value === "5m")
125
+ out.push(`${clamp.where} (keeps the main conversation at 5 minutes)`);
126
+ }
127
+ return out;
128
+ }
129
+ /** The auto-compact window Claude Code will use (for `model`, when given). */
130
+ export function effectiveCompactWindow(sources, env = process.env, model) {
131
+ const ev = effectiveEnv("CLAUDE_CODE_AUTO_COMPACT_WINDOW", sources, env);
132
+ if (ev && Number(ev.value) > 0)
133
+ return { value: Number(ev.value), where: ev.where, fromUser: false };
134
+ for (const s of sources) {
135
+ if (model) {
136
+ const per = s.settings.modelSettings?.[model]?.autoCompactWindow;
137
+ if (per !== undefined)
138
+ return { value: per, where: `modelSettings.${model}.autoCompactWindow in ${tilde(s.path)}`, fromUser: false };
139
+ }
140
+ const v = s.settings.autoCompactWindow;
141
+ if (v !== undefined)
142
+ return { value: v, where: `autoCompactWindow in ${tilde(s.path)}`, fromUser: s.name === "user" };
143
+ }
144
+ return { fromUser: false };
145
+ }
146
+ /** What keeps a user-level autoCompactWindow from taking effect (everywhere, or for some models). */
147
+ export function compactWindowOverrides(sources, env = process.env) {
148
+ const out = [];
149
+ const ev = effectiveEnv("CLAUDE_CODE_AUTO_COMPACT_WINDOW", sources, env);
150
+ if (ev)
151
+ out.push(ev.where);
152
+ for (const s of sources) {
153
+ if (s.name !== "user" && s.settings.autoCompactWindow !== undefined)
154
+ out.push(`autoCompactWindow ${JSON.stringify(s.settings.autoCompactWindow)} in ${tilde(s.path)}`);
155
+ const per = s.settings.modelSettings;
156
+ if (per && typeof per === "object") {
157
+ const models = Object.entries(per).filter(([, v]) => v?.autoCompactWindow !== undefined).map(([m]) => m);
158
+ if (models.length)
159
+ out.push(`a per-model autoCompactWindow for ${models.join(", ")} in ${tilde(s.path)} (wins for ${models.length === 1 ? "that model" : "those models"})`);
160
+ }
161
+ }
162
+ return out;
163
+ }
@@ -14,11 +14,11 @@
14
14
  */
15
15
  import { execFileSync, spawnSync } from "node:child_process";
16
16
  import { existsSync } from "node:fs";
17
- import { homedir } from "node:os";
18
17
  import { join } from "node:path";
19
18
  import { parseSessionFile } from "./session.js";
20
19
  import { formatTokens } from "./tokens.js";
21
20
  import { formatUsd } from "./pricing.js";
21
+ import { claudeDir } from "./claudedir.js";
22
22
  /** Where a test can point at a stub instead of the real CLI. */
23
23
  function claudeBinary() {
24
24
  return process.env.CONTEXT_DOCTOR_CLAUDE_BIN ?? "claude";
@@ -44,7 +44,7 @@ export function findTranscript(sessionId, cwd) {
44
44
  // character replaced (/Users/me/.claude/x_y -> -Users-me--claude-x-y), as
45
45
  // overhead.ts does. Replacing only separators missed any cwd with a dot,
46
46
  // underscore or space, and the "live context" row silently disappeared.
47
- const projectDir = join(homedir(), ".claude", "projects", cwd.replace(/[^A-Za-z0-9]/g, "-"));
47
+ const projectDir = join(claudeDir(), "projects", cwd.replace(/[^A-Za-z0-9]/g, "-"));
48
48
  const candidate = join(projectDir, `${sessionId}.jsonl`);
49
49
  return existsSync(candidate) ? candidate : undefined;
50
50
  }
package/dist/extract.js CHANGED
@@ -128,8 +128,11 @@ function runAsync(cmd, args, deadline) {
128
128
  }, timeout);
129
129
  try {
130
130
  child = execFile(cmd, args, { encoding: "utf8", timeout, killSignal: "SIGKILL", maxBuffer: 64 * 1024 * 1024, windowsHide: true }, (err, stdout) => {
131
+ // Only the clock says the budget ran out: a child killed for another
132
+ // reason (seen on Windows runners, well inside a 60 s budget) is a
133
+ // failed tool, and the next one is tried.
131
134
  if (err)
132
- return finish({ timedOut: Boolean(err.killed) || Date.now() >= deadline });
135
+ return finish({ timedOut: Date.now() >= deadline - 50 });
133
136
  finish({ out: typeof stdout === "string" && stdout.trim() ? stdout : undefined, timedOut: false });
134
137
  });
135
138
  child.on("error", () => finish({ timedOut: false }));
package/dist/fanout.js CHANGED
@@ -24,7 +24,7 @@ import { appendFileSync, existsSync, readdirSync, readFileSync, statSync, writeF
24
24
  import { createHash, randomUUID } from "node:crypto";
25
25
  import { basename, dirname, join } from "node:path";
26
26
  import { statePath } from "./ledger.js";
27
- import { listSessions } from "./session.js";
27
+ import { listSessions, isClaudeSession } from "./session.js";
28
28
  import { scanSubagent } from "./subagentpay.js";
29
29
  import { formatUsd, pricingFor } from "./pricing.js";
30
30
  import { tailUsage } from "./statusline.js";
@@ -59,7 +59,7 @@ export function measureSubagentCosts(days = 30, opts = {}) {
59
59
  const now = opts.now ?? Date.now();
60
60
  const since = now - days * DAY;
61
61
  const started = Date.now();
62
- const parents = opts.sessions ?? listSessions(10_000).filter((s) => s.path.includes(".claude") && s.modifiedAt.getTime() >= since).map((s) => s.path);
62
+ const parents = opts.sessions ?? listSessions(10_000).filter((s) => isClaudeSession(s) && s.modifiedAt.getTime() >= since).map((s) => s.path);
63
63
  const files = [];
64
64
  for (const parent of parents) {
65
65
  const dir = join(parent.replace(/\.jsonl$/, ""), "subagents");
package/dist/fix.d.ts ADDED
@@ -0,0 +1,176 @@
1
+ /**
2
+ * `context-doctor fix`: the findings as one plan, applied with consent,
3
+ * undone in one step, and re-measured afterwards.
4
+ *
5
+ * Every lever below already existed as its own command, and on the author's
6
+ * own machine none of the big ones was applied (the compact window unset,
7
+ * $1,423 a month of input it would have saved; the cold-resume offer
8
+ * followed 1 time in 33): a user had to read several reports and type the
9
+ * right command for each. `fix` measures them all on the user's history,
10
+ * ranks them by dollars, says what each changes and what it costs in
11
+ * quality, and applies a fix only on a yes (or an explicit `--apply`).
12
+ *
13
+ * Every fix is one setting Claude Code (or autopilot) reads, written with a
14
+ * backup and recorded in ~/.claude/.context-doctor-fixes.json with its
15
+ * previous value; `fix undo` puts back exactly that. Later runs say what each
16
+ * applied fix saved since, measured on the sessions after it:
17
+ * - the cache lifetime: the requests since, priced as billed against the
18
+ * lifetime they had before (the 1-hour share measured when it was set);
19
+ * the same content either way, so the replay is exact up to prices;
20
+ * - the compact window: each compaction since that came before the old
21
+ * window, priced as the context it removed from every later request until
22
+ * the session would have reached the old window, less the compaction's
23
+ * own request and summary (an estimate: what the summary dropped is not
24
+ * priced);
25
+ * - autopilot: what the proxy recorded saving since (its own ledger).
26
+ */
27
+ import { type CacheTtlReport, type CurrentTtl } from "./cachettl.js";
28
+ import { type ProjectPlan } from "./prune.js";
29
+ import { readLedger } from "./ledger.js";
30
+ export type FixId = "compact-window" | "cache-ttl" | "cache-ttl-subagents" | "autopilot" | "tool-search" | "prune";
31
+ export interface Fix {
32
+ id: FixId;
33
+ title: string;
34
+ /** Saved over the measured period, when it can be priced. */
35
+ savedUsd?: number;
36
+ savedShare?: number;
37
+ /** How the figure was measured. */
38
+ basis: string;
39
+ /** What it costs in quality, plainly. */
40
+ quality: string;
41
+ /** What it writes, where. */
42
+ change: string;
43
+ state: "available" | "applied" | "not-here";
44
+ /** Why not here, or what is already applied. */
45
+ note?: string;
46
+ /** The value it writes. */
47
+ value?: number | string;
48
+ /** What would keep it from taking effect (environment, project or managed settings, per-model values). */
49
+ overriddenBy?: string[];
50
+ }
51
+ /** The measurements a plan is made from (so the plan itself is testable without a machine's history). */
52
+ export interface FixInputs {
53
+ days: number;
54
+ /** Input billed over the period, the sessions `savings` counts. */
55
+ billedUsd: number;
56
+ compactWindow?: {
57
+ window: number;
58
+ savedUsd: number;
59
+ savedShare: number;
60
+ compactionsPerWeek: number;
61
+ nowPerWeek: number;
62
+ current?: number;
63
+ };
64
+ ttl?: CacheTtlReport;
65
+ currentTtl?: CurrentTtl;
66
+ autopilot?: {
67
+ on: boolean;
68
+ reachableUsd: number;
69
+ reachableShare: number;
70
+ unreachableSessions: number;
71
+ sessions: number;
72
+ };
73
+ /** ENABLE_TOOL_SEARCH in Claude Code's settings env, when it switches tool search off. */
74
+ toolSearchOff?: string;
75
+ /** MCP servers configured for Claude Code (user and this project), for the tool-search fix. */
76
+ mcpServers?: number;
77
+ /** This folder's project, when `overhead prune` finds unused servers or skills in it. */
78
+ prune?: ProjectPlan;
79
+ /** Per fix, what would keep the value fix writes from taking effect. */
80
+ overrides?: Partial<Record<FixId, string[]>>;
81
+ /** The record of applied fixes could not be read. */
82
+ recordProblem?: string;
83
+ /** The /compact offer at cold returns: advice, not a setting; `hooked` when the every-prompt hook (or the plugin) is there to make it. */
84
+ coldResume?: {
85
+ netUsd: number;
86
+ returns: number;
87
+ hooked: boolean;
88
+ };
89
+ }
90
+ export declare function planFixes(i: FixInputs): Fix[];
91
+ export interface FixRecord {
92
+ id: FixId;
93
+ /** When it was first applied (ms). */
94
+ at: number;
95
+ /** The value it wrote. */
96
+ value?: unknown;
97
+ /** The setting's value before context-doctor first changed it, as written (any JSON). */
98
+ previous?: unknown;
99
+ /** Whether the setting existed before (`previous` may itself be null). */
100
+ hadPrevious?: boolean;
101
+ /** The settings file and key path it wrote. */
102
+ file?: string;
103
+ key?: string[];
104
+ /** The whole file before its first change (null: there was no file), and as fix left it: undo puts `before` back when the file is still exactly `after`. */
105
+ before?: string | null;
106
+ after?: string;
107
+ /** For cache-ttl: the share of writes at 1 hour before the change, the baseline "since" compares against. */
108
+ oneHourShareBefore?: number;
109
+ /** For prune: the project folder. */
110
+ cwd?: string;
111
+ }
112
+ export declare function fixRecordPath(home?: string): string;
113
+ /**
114
+ * The records, strictly: an absent file is none; a file that is not ours to
115
+ * read (corrupt, the wrong shape) is refused, never treated as empty and
116
+ * overwritten: it lists what `fix undo` would put back.
117
+ */
118
+ export declare function loadFixRecords(home?: string): FixRecord[];
119
+ /** The records for reporting: a damaged file reads as none (the plan says so). */
120
+ export declare function readFixRecords(home?: string): FixRecord[];
121
+ export interface FixDeps {
122
+ home?: string;
123
+ now?: number;
124
+ cwd?: string;
125
+ env?: NodeJS.ProcessEnv;
126
+ /** Autopilot's own commands (injected in tests: they start and stop a service). */
127
+ autopilotOn?: () => Promise<{
128
+ ok: boolean;
129
+ lines: string[];
130
+ }>;
131
+ autopilotOff?: () => Promise<string[]>;
132
+ }
133
+ /** What would keep this fix's value from taking effect, as Claude Code merges settings. */
134
+ export declare function fixOverrides(id: FixId, deps?: {
135
+ home?: string;
136
+ cwd?: string;
137
+ env?: NodeJS.ProcessEnv;
138
+ }): string[];
139
+ /** Apply one fix; record it unless it changed nothing. Refusals (a damaged settings file, a damaged record) change nothing. */
140
+ export declare function applyFix(fix: Fix, deps?: FixDeps, context?: {
141
+ oneHourShare?: number;
142
+ prune?: ProjectPlan;
143
+ }): Promise<{
144
+ ok: boolean;
145
+ lines: string[];
146
+ }>;
147
+ /** Undo what fix applied: every fix, or the ones named. Returns what it did, line by line. */
148
+ export declare function undoFixes(ids: FixId[] | undefined, deps?: FixDeps): Promise<string[]>;
149
+ export interface SinceResult {
150
+ id: FixId;
151
+ at: number;
152
+ /** Saved since it was applied; undefined when not priced. */
153
+ savedUsd?: number;
154
+ detail: string;
155
+ }
156
+ /**
157
+ * Compactions since `since` that came before the old window, priced: every
158
+ * later request in that session re-read less context, until the session
159
+ * would have reached the old window and compacted anyway; less each
160
+ * compaction's own request and a 20k-token summary at the output rate.
161
+ */
162
+ export declare function compactWindowSavingsSince(since: number, previousWindow: number | undefined, paths?: string[]): {
163
+ usd: number;
164
+ compactions: number;
165
+ };
166
+ export declare function savedSince(records: FixRecord[], opts?: {
167
+ paths?: string[];
168
+ subagentPaths?: string[];
169
+ ledger?: ReturnType<typeof readLedger>;
170
+ }): SinceResult[];
171
+ export declare function renderFixPlan(days: number, billedUsd: number, fixes: Fix[], since: SinceResult[], command?: (s: string) => string, coldResume?: FixInputs["coldResume"], recordProblem?: string): string;
172
+ export declare function renderFixShare(days: number, billedUsd: number, fixes: Fix[]): string;
173
+ export declare function parseFixIds(raw: string, fixes: Fix[]): {
174
+ ids: FixId[];
175
+ unknown: string[];
176
+ };