@bizzywork/routing 0.4.1 → 0.4.2

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.
@@ -24,7 +24,7 @@ async function readStdin() {
24
24
  for await (const chunk of process.stdin) text += String(chunk);
25
25
  return text;
26
26
  }
27
- var { run } = await import("./main-ELNMGFLI.js");
27
+ var { run } = await import("./main-FBJOREHY.js");
28
28
  var { plainUi } = await import("./ui-PEKFVWX7.js");
29
29
  var { clackUi, showError } = await import("./clack-ui-KG2I32T5.js");
30
30
  var interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY);
@@ -35,7 +35,7 @@ try {
35
35
  home: homedir(),
36
36
  execPath: process.execPath,
37
37
  bundleDir: dirname(fileURLToPath(import.meta.url)),
38
- version: true ? "0.4.1" : "dev",
38
+ version: true ? "0.4.2" : "dev",
39
39
  platform: process.platform,
40
40
  uid: process.getuid?.(),
41
41
  interactive,
@@ -83726,6 +83726,8 @@ Options:
83726
83726
  --key-stdin install: read the routing key from stdin instead of asking.
83727
83727
  --no-share-prompts install: keep prompts on this machine; the hosted API then routes on its rules.
83728
83728
  --share-prompts install: send prompts to the hosted judge again (the default).
83729
+ --jev-grade install claude-code: grade every available model directly instead of
83730
+ comparing a fixed efficient/capable pair. Off by default.
83729
83731
  --stdin key: read the key from stdin instead of asking.
83730
83732
  --purge uninstall: also remove ~/.bizzy/routing, with its data and key.
83731
83733
  -h, --help Show this help.
@@ -83773,6 +83775,8 @@ async function installFlow(harness, target, flags) {
83773
83775
  else if (io.interactive && !hasKey) ui.warn("No routing key: turns route with Bizzy's own rules");
83774
83776
  if (flags.sharePrompts === false) writeEnvValues(target.dataDir, { BIZZY_SHARE_PROMPTS: "0" });
83775
83777
  else if (flags.sharePrompts) writeEnvValues(target.dataDir, { BIZZY_SHARE_PROMPTS: void 0 });
83778
+ if (flags.jevGrade && harness === "claude-code")
83779
+ writeEnvValues(target.dataDir, { BIZZY_API_CLAUDE_CODE_PROFILE: "jev-grade" });
83776
83780
  if (wired.run) ui.command(wired.run.command, wired.run.title);
83777
83781
  ui.note(wired.next, "Next");
83778
83782
  }
@@ -83795,6 +83799,7 @@ async function run2(io) {
83795
83799
  "key-stdin": { type: "boolean" },
83796
83800
  "share-prompts": { type: "boolean" },
83797
83801
  "no-share-prompts": { type: "boolean" },
83802
+ "jev-grade": { type: "boolean" },
83798
83803
  help: { type: "boolean", short: "h" },
83799
83804
  version: { type: "boolean", short: "v" }
83800
83805
  }
@@ -83827,7 +83832,8 @@ async function run2(io) {
83827
83832
  };
83828
83833
  const flags = {
83829
83834
  keyStdin: values["key-stdin"] === true,
83830
- sharePrompts: values["no-share-prompts"] ? false : values["share-prompts"] ? true : void 0
83835
+ sharePrompts: values["no-share-prompts"] ? false : values["share-prompts"] ? true : void 0,
83836
+ jevGrade: values["jev-grade"] === true
83831
83837
  };
83832
83838
  if (command && !["install", "uninstall", "key", "status", "doctor"].includes(command))
83833
83839
  throw new Error(`unknown command: ${command}; run \`${npx} help\` for usage`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizzywork/routing",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "Bizzy Auto routing for Claude Code, oh-my-pi and Codex: npx @bizzywork/routing install <harness>.",
6
6
  "license": "SEE LICENSE IN LICENSE",