Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions reqshape/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ bun link # exposes the `reqshape` binary

**`bun link` must be re-run after the repo moves, and can be silently pruned.** Writes `~/.bun/bin/reqshape` → `~/.bun/install/global/node_modules/reqshape/src/index.ts` (an **absolute** path), so a moved checkout leaves it dangling — and a later `bun link` in a sibling repo prunes the entry (only `mpc`, which shells it, notices). Fix: `bun link` here; verify `test -e ~/.bun/install/global/node_modules/reqshape/src/index.ts` (`ls -l` proves nothing — the symlink survives dangling).

- **`reqshapedev` needs `bun run dev:link`, and `mpcdev` for a working-copy `mpc`** — `bun link` points both bins at the _global install_, so the dev twin ran published code and shelled the published `mpc`; `dev:link` writes `~/.bun/bin/reqshapedev` at `src/index.ts`, and `--mpc mpcdev` (or `MPC_BIN`) is what keeps its pricing current without reinstalling (2026-11-09).

## The lexicon

- **req** — one model call (`assistant` row); sidebar and billing unit. Agentic ask = many reqs.
Expand Down
9 changes: 9 additions & 0 deletions reqshape/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ bun run src/index.ts --help
bun link
```

Working on the CLI itself? `bun run dev:link` points `reqshapedev` at this checkout, and
`--mpc mpcdev` (or `MPC_BIN=mpcdev`) makes it price through a working-copy `mpc` instead of
the installed one:

```sh
bun run dev:link
reqshapedev --format json --mpc mpcdev
```

## Usage

```sh
Expand Down
5 changes: 3 additions & 2 deletions reqshape/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jeffreyjyz/reqshape",
"version": "0.2.2",
"version": "0.2.3",
"description": "Measure the shape of your requests from opencode's own history, then price it against any model",
"license": "MIT",
"type": "module",
Expand All @@ -22,7 +22,8 @@
"start": "bun run src/index.ts",
"test": "bun test",
"lint": "biome lint --write .",
"typecheck": "bun check"
"typecheck": "bun check",
"dev:link": "ln -sfn \"$PWD/src/index.ts\" \"$HOME/.bun/bin/reqshapedev\""
},
"devDependencies": {
"@biomejs/biome": "^2.5.13",
Expand Down
Loading