@bizzywork/routing 0.4.0 → 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-7SKYJ7DD.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.0" : "dev",
38
+ version: true ? "0.4.2" : "dev",
39
39
  platform: process.platform,
40
40
  uid: process.getuid?.(),
41
41
  interactive,
@@ -81461,6 +81461,7 @@ function createHostedRoute(options) {
81461
81461
  candidates: envelope.candidates,
81462
81462
  mode: envelope.mode,
81463
81463
  state: envelope.state,
81464
+ ...envelope.profile ? { profile: envelope.profile } : {},
81464
81465
  ...envelope.newUserTurn ? { newUserTurn: true } : {},
81465
81466
  ...shared ? { context: "summary", summary: shared } : {}
81466
81467
  };
@@ -83725,6 +83726,8 @@ Options:
83725
83726
  --key-stdin install: read the routing key from stdin instead of asking.
83726
83727
  --no-share-prompts install: keep prompts on this machine; the hosted API then routes on its rules.
83727
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.
83728
83731
  --stdin key: read the key from stdin instead of asking.
83729
83732
  --purge uninstall: also remove ~/.bizzy/routing, with its data and key.
83730
83733
  -h, --help Show this help.
@@ -83772,6 +83775,8 @@ async function installFlow(harness, target, flags) {
83772
83775
  else if (io.interactive && !hasKey) ui.warn("No routing key: turns route with Bizzy's own rules");
83773
83776
  if (flags.sharePrompts === false) writeEnvValues(target.dataDir, { BIZZY_SHARE_PROMPTS: "0" });
83774
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" });
83775
83780
  if (wired.run) ui.command(wired.run.command, wired.run.title);
83776
83781
  ui.note(wired.next, "Next");
83777
83782
  }
@@ -83794,6 +83799,7 @@ async function run2(io) {
83794
83799
  "key-stdin": { type: "boolean" },
83795
83800
  "share-prompts": { type: "boolean" },
83796
83801
  "no-share-prompts": { type: "boolean" },
83802
+ "jev-grade": { type: "boolean" },
83797
83803
  help: { type: "boolean", short: "h" },
83798
83804
  version: { type: "boolean", short: "v" }
83799
83805
  }
@@ -83826,7 +83832,8 @@ async function run2(io) {
83826
83832
  };
83827
83833
  const flags = {
83828
83834
  keyStdin: values["key-stdin"] === true,
83829
- 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
83830
83837
  };
83831
83838
  if (command && !["install", "uninstall", "key", "status", "doctor"].includes(command))
83832
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.0",
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",