costlayers 0.8.27 → 0.8.28
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 +6 -6
- package/bin/agentspend.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Run a free AI spend audit:
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
cd your-repo
|
|
11
|
-
npx -y
|
|
11
|
+
npx -y costlayers@latest audit --monthly-spend 10000
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Use your real monthly AI spend if you have it. Omit `--monthly-spend` to get a repo-only audit. The audit writes `.agentspend/ai-spend-audit.md` and labels scan estimates separately from verified invoice savings. After the audit, `costlayers dashboard` shows the local result even before signup.
|
|
@@ -17,7 +17,7 @@ Run a one-command API savings test:
|
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
export OPENAI_API_KEY=sk-proj-...
|
|
20
|
-
npx -y
|
|
20
|
+
npx -y costlayers@latest test --email you@example.com
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
@@ -25,13 +25,13 @@ npx -y https://costlayers.com/costlayers-0.8.27.tgz test --email you@example.com
|
|
|
25
25
|
Inside a repo:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npx -y
|
|
28
|
+
npx -y costlayers@latest audit --monthly-spend 10000
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Then run Codex with CostLayers:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npx -y
|
|
34
|
+
npx -y costlayers@latest codex --email you@example.com --chatgpt
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
This gives Codex `.agentspend/repo-pack.md` and `.agentspend/runtime-plan.md`
|
|
@@ -51,7 +51,7 @@ API write permission:
|
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
53
|
export OPENAI_API_KEY=sk-proj-...
|
|
54
|
-
npx -y
|
|
54
|
+
npx -y costlayers@latest codex --email you@example.com --api
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
ChatGPT-login Codex can be metered, but it does not create per-request OpenAI
|
|
@@ -68,7 +68,7 @@ Platform invoice savings because it is not billed through your Platform API key.
|
|
|
68
68
|
To install only the Codex profile after signup:
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
npx -y
|
|
71
|
+
npx -y costlayers@latest codex-profile
|
|
72
72
|
codex --profile costlayers
|
|
73
73
|
```
|
|
74
74
|
|
package/bin/agentspend.js
CHANGED
|
@@ -11,14 +11,14 @@ const { spawnSync } = require("child_process");
|
|
|
11
11
|
|
|
12
12
|
function packageVersion() {
|
|
13
13
|
try {
|
|
14
|
-
return require(path.join(__dirname, "..", "package.json")).version || "0.8.
|
|
14
|
+
return require(path.join(__dirname, "..", "package.json")).version || "0.8.28";
|
|
15
15
|
} catch (_err) {
|
|
16
|
-
return "0.8.
|
|
16
|
+
return "0.8.28";
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const VERSION = packageVersion();
|
|
21
|
-
const INSTALL_SPEC = process.env.COSTLAYERS_INSTALL_SPEC ||
|
|
21
|
+
const INSTALL_SPEC = process.env.COSTLAYERS_INSTALL_SPEC || "costlayers@latest";
|
|
22
22
|
const DEFAULT_RUNS_PER_WEEK = 20;
|
|
23
23
|
const WEEKS_PER_MONTH = 4.33;
|
|
24
24
|
const DEFAULT_EXCLUDES = new Set([
|
package/package.json
CHANGED