costlayers 0.8.9 → 0.8.11
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 +3 -3
- package/bin/agentspend.js +5 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ One-command setup:
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
cd your-repo
|
|
11
|
-
npx -y
|
|
11
|
+
npx -y costlayers@latest start --email you@example.com
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
@@ -24,7 +24,7 @@ Launch Codex with CostLayers context:
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
cd your-repo
|
|
27
|
-
npx -y
|
|
27
|
+
npx -y costlayers@latest start --email you@example.com -- codex
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
This gives Codex `.agentspend/repo-pack.md` and `.agentspend/runtime-plan.md`
|
|
@@ -36,7 +36,7 @@ telemetry for ChatGPT-login sessions.
|
|
|
36
36
|
To install only the Codex profile after signup:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
npx -y
|
|
39
|
+
npx -y costlayers@latest codex-profile
|
|
40
40
|
codex --profile costlayers
|
|
41
41
|
```
|
|
42
42
|
|
package/bin/agentspend.js
CHANGED
|
@@ -9,7 +9,7 @@ const https = require("https");
|
|
|
9
9
|
const os = require("os");
|
|
10
10
|
const { spawnSync } = require("child_process");
|
|
11
11
|
|
|
12
|
-
const VERSION = "0.8.
|
|
12
|
+
const VERSION = "0.8.11";
|
|
13
13
|
const DEFAULT_RUNS_PER_WEEK = 20;
|
|
14
14
|
const WEEKS_PER_MONTH = 4.33;
|
|
15
15
|
const DEFAULT_EXCLUDES = new Set([
|
|
@@ -122,7 +122,7 @@ function guardRepoRoot(repo, args) {
|
|
|
122
122
|
"",
|
|
123
123
|
"Run it inside a project folder instead:",
|
|
124
124
|
" cd path/to/your-repo",
|
|
125
|
-
" npx -y
|
|
125
|
+
" npx -y costlayers@latest start --email you@example.com",
|
|
126
126
|
"",
|
|
127
127
|
"Or pass --repo path/to/your-repo from anywhere.",
|
|
128
128
|
"If you really intend to scan your whole home directory, add --allow-home.",
|
|
@@ -541,7 +541,6 @@ function profileTomlString(connection) {
|
|
|
541
541
|
"",
|
|
542
542
|
"[otel]",
|
|
543
543
|
'environment = "costlayers"',
|
|
544
|
-
'exporter = "otlp-http"',
|
|
545
544
|
"log_user_prompt = false",
|
|
546
545
|
"",
|
|
547
546
|
'[otel.exporter."otlp-http"]',
|
|
@@ -883,10 +882,10 @@ async function start(repo, args, argv) {
|
|
|
883
882
|
}
|
|
884
883
|
process.stdout.write(`\nNext options:\n`);
|
|
885
884
|
process.stdout.write(` Use gateway URL in your model client: ${result.base_url}\n`);
|
|
886
|
-
process.stdout.write(` Run Codex metered: npx -y
|
|
885
|
+
process.stdout.write(` Run Codex metered: npx -y costlayers@latest start --email you@example.com -- codex\n`);
|
|
887
886
|
process.stdout.write(` Or run Codex directly: codex --profile costlayers\n`);
|
|
888
|
-
process.stdout.write(` View savings: npx -y
|
|
889
|
-
process.stdout.write(` Dashboard: npx -y
|
|
887
|
+
process.stdout.write(` View savings: npx -y costlayers@latest gateway report\n`);
|
|
888
|
+
process.stdout.write(` Dashboard: npx -y costlayers@latest dashboard\n`);
|
|
890
889
|
}
|
|
891
890
|
|
|
892
891
|
function doctor() {
|
package/package.json
CHANGED