Skip to content

Commit cf5f63c

Browse files
committed
Refactor installation process: add setup script for streamlined setup and linking
1 parent e768a6a commit cf5f63c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ A zero-config **statusline + local dashboard** that turns Copilot CLI's OpenTele
2424
```bash
2525
git clone https://github.com/devartifex/copilot-cost.git
2626
cd copilot-cost
27-
npm install
28-
npm run build
29-
npm link # makes the `copilot-cost` command available on your PATH
30-
copilot-cost install
27+
npm run setup # installs deps, builds, links the `copilot-cost` command, runs install + doctor
3128
```
3229

30+
> Prefer manual control? The equivalent steps are `npm install && npm run build && npm link && copilot-cost install`.
31+
3332
Then **restart your shell and restart `copilot`**. That's it.
3433

3534
The installer configures the Copilot CLI statusline (including the required `"experimental": true` flag in `~/.copilot/settings.json` — the GitHub Copilot CLI gates custom status lines behind that flag), appends an idempotent OpenTelemetry block to your shell profile, and enables local JSONL span output under `~/.copilot/otel/`. It does **not** start the dashboard.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"lint": "tsc --noEmit",
4545
"start": "node dist/cli.js",
4646
"cli": "npm run build --silent && node dist/cli.js",
47+
"setup": "npm install && npm run build && npm link && node dist/cli.js install && node dist/cli.js doctor",
4748
"local:install": "npm run build && node dist/cli.js install",
4849
"local:uninstall": "node dist/cli.js uninstall",
4950
"local:doctor": "node dist/cli.js doctor",

0 commit comments

Comments
 (0)