Skip to content

feat(reqshape): ship a reqshapedev twin pointed at the checkout - #14

Merged
JeffreyJYZ merged 1 commit into
mainfrom
feat/reqshapedev
Nov 9, 2026
Merged

JeffreyJYZ merged 1 commit into
mainfrom
feat/reqshapedev

Conversation

@jyzbot

@jyzbot jyzbot commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Same defect the mpc twin had: the reqshapedev bin entry existed, but bun link pointed both names at the global install, so the dev twin ran published code:

$ readlink ~/.bun/bin/reqshapedev
../install/global/node_modules/@jeffreyjyz/reqshape/src/index.ts

It also shelled the published mpc, which is still 0.1.6 here and calls Artificial Analysis's retired endpoint:

$ reqshape --format json
reqshape: mpc --json --shape off failed: mpc: Artificial Analysis API 410 ...

Fix

bun run dev:link writes the twin at the working copy, leaving the published reqshape untouched:

"dev:link": "ln -sfn \"$PWD/src/index.ts\" \"$HOME/.bun/bin/reqshapedev\""
$ readlink ~/.bun/bin/reqshapedev
/Users/jyz/dev/cmdcode-tools/reqshape/src/index.ts

README pairs it with --mpc mpcdev (or MPC_BIN=mpcdev) so the dev twin prices through a working-copy mpc rather than a stale global one. Verified:

$ reqshapedev --format json --mpc mpcdev
{ "weight": "turn", "store": "v2",
  "profile": { "input": 7058.2, "output": 313.5, "reasoning": 364.4,
               "cacheRead": 177321.2, "cacheWrite": 0.56 }, ... }

Gates: bun check clean, 68 tests pass, bun fmt --check clean, biome clean. Version 0.2.3.

bun link pointed both bins at the global install, so reqshapedev ran published
code and shelled the published mpc -- which was still 0.1.6 and hit AA's retired
endpoint. dev:link writes ~/.bun/bin/reqshapedev at src/index.ts, and the README
pairs it with --mpc mpcdev so the dev twin prices through the working copy.

Version 0.2.3.
@vercel

vercel Bot commented Nov 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cmdcode-tools-site Ready Ready Preview Nov 9, 2026 2:24pm UTC

@JeffreyJYZ
JeffreyJYZ merged commit 67b06b9 into main Nov 9, 2026
10 checks passed
@JeffreyJYZ
JeffreyJYZ deleted the feat/reqshapedev branch November 9, 2026 14:38

This branch was successfully deployed

1 active deployment
Preview — a3a14318 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants