ai-spend-agent 0.6.0 → 0.7.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/README.md +15 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +708 -37
- package/dist/statuslineInstaller.d.ts +80 -0
- package/dist/statuslineInstaller.js +1100 -0
- package/dist/statuslineRuntime.d.ts +125 -0
- package/dist/statuslineRuntime.js +917 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,11 +3,26 @@
|
|
|
3
3
|
The full [aibill](https://github.com/futurastudio/ai-spend-agent) CLI.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
+
npx aibill init
|
|
7
|
+
npx aibill statusline install # optional Claude Code cache-only status line
|
|
6
8
|
npx ai-spend-agent
|
|
7
9
|
# short alias
|
|
8
10
|
npx aibill
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
Run `npx aibill init` from a project to detect machine-wide local Claude Code
|
|
14
|
+
and Codex history, print the first evidence-labeled personal receipt, and seed a private
|
|
15
|
+
aggregate cache under `~/.aibill/cache/`. Init never replaces missing personal
|
|
16
|
+
evidence with the bundled sample and never overwrites existing connected
|
|
17
|
+
source or audit state.
|
|
18
|
+
|
|
19
|
+
The optional status line is explicit and reversible. It installs a standalone
|
|
20
|
+
Node-builtins-only runner at Claude user scope, rereads only the private
|
|
21
|
+
aggregate cache, and never scans transcripts or contacts a provider from the
|
|
22
|
+
hook. Subscription runway appears only when it was transcript-reported; `~`
|
|
23
|
+
means API-equivalent value, and untilded `billed` money requires verified
|
|
24
|
+
provider evidence. Remove it with `npx aibill statusline uninstall`.
|
|
25
|
+
|
|
11
26
|
It reads local Claude Code and Codex metadata, labels API-equivalent estimates,
|
|
12
27
|
and can optionally add official OpenAI or Anthropic provider-reported cost
|
|
13
28
|
through an environment-variable reference. No product telemetry is sent.
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,16 @@ export type CliResult = {
|
|
|
4
4
|
stdout: string;
|
|
5
5
|
stderr: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CliRuntimeOptions = {
|
|
8
|
+
/** Test/embedding override. Production always defaults to the OS home. */
|
|
9
|
+
homeDirectory?: string;
|
|
10
|
+
/** Test/embedding override. Packed production reads the built runtime asset. */
|
|
11
|
+
statuslineRunnerContents?: string | Uint8Array;
|
|
12
|
+
statuslineNow?: Date;
|
|
13
|
+
statuslineColumns?: number;
|
|
14
|
+
statuslineTimeZone?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function runCli(argv?: string[], runtime?: CliRuntimeOptions): Promise<CliResult>;
|
|
8
17
|
/**
|
|
9
18
|
* Full bin entrypoint (node guard, spinner, error voice, exit code).
|
|
10
19
|
* Exported so the thin alias packages (`aispend`, `aireceipt`) run the EXACT
|