@bizzywork/routing 0.1.0 → 0.3.0

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.
package/README.md CHANGED
@@ -5,7 +5,9 @@ Bizzy Auto picks the model for each request in Claude Code, oh-my-pi (omp) or Co
5
5
  Needs Node 22.13 or newer.
6
6
 
7
7
  ```sh
8
- npx @bizzywork/routing install claude-code # or: omp, codex
8
+ npx @bizzywork/routing # pick a harness and set it up
9
+ npx @bizzywork/routing install claude-code # or name it: omp, codex
10
+ npx @bizzywork/routing help # every command and option
9
11
  ```
10
12
 
11
13
  `install` copies the server to `~/.bizzy/routing/runtime` and points the harness at it, so clearing npm's cache breaks nothing.
@@ -1,3 +1,83 @@
1
+ @clack/core@1.6.0
2
+
3
+ MIT License
4
+
5
+ MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+
9
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+
13
+ ------------------------------------------------------------------------
14
+
15
+ sisteransi@2.0.0
16
+
17
+ MIT License
18
+
19
+ Copyright (c) 2018 Terkel Gjervig Nielsen
20
+
21
+ Permission is hereby granted, free of charge, to any person obtaining a copy
22
+ of this software and associated documentation files (the "Software"), to deal
23
+ in the Software without restriction, including without limitation the rights
24
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25
+ copies of the Software, and to permit persons to whom the Software is
26
+ furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all
29
+ copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
+ SOFTWARE.
38
+
39
+ ------------------------------------------------------------------------
40
+
41
+ @clack/prompts@1.9.0
42
+
43
+ MIT License
44
+
45
+ MIT License Copyright (c) 2025-Present [Bombshell contributors](https://bomb.sh/team)
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
48
+
49
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52
+
53
+ ------------------------------------------------------------------------
54
+
55
+ sisteransi@2.0.0
56
+
57
+ MIT License
58
+
59
+ Copyright (c) 2018 Terkel Gjervig Nielsen
60
+
61
+ Permission is hereby granted, free of charge, to any person obtaining a copy
62
+ of this software and associated documentation files (the "Software"), to deal
63
+ in the Software without restriction, including without limitation the rights
64
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
65
+ copies of the Software, and to permit persons to whom the Software is
66
+ furnished to do so, subject to the following conditions:
67
+
68
+ The above copyright notice and this permission notice shall be included in all
69
+ copies or substantial portions of the Software.
70
+
71
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
74
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
77
+ SOFTWARE.
78
+
79
+ ------------------------------------------------------------------------
80
+
1
81
  @fastify/accept-negotiator@2.1.2
2
82
 
3
83
  MIT License
@@ -800,6 +880,58 @@ DEALINGS IN THE SOFTWARE.
800
880
 
801
881
  ------------------------------------------------------------------------
802
882
 
883
+ fast-string-truncated-width@3.0.3
884
+
885
+ The MIT License (MIT)
886
+
887
+ Copyright (c) 2024-present Fabio Spampinato
888
+
889
+ Permission is hereby granted, free of charge, to any person obtaining a
890
+ copy of this software and associated documentation files (the "Software"),
891
+ to deal in the Software without restriction, including without limitation
892
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
893
+ and/or sell copies of the Software, and to permit persons to whom the
894
+ Software is furnished to do so, subject to the following conditions:
895
+
896
+ The above copyright notice and this permission notice shall be included in
897
+ all copies or substantial portions of the Software.
898
+
899
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
900
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
901
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
902
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
903
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
904
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
905
+ DEALINGS IN THE SOFTWARE.
906
+
907
+ ------------------------------------------------------------------------
908
+
909
+ fast-string-width@3.0.2
910
+
911
+ The MIT License (MIT)
912
+
913
+ Copyright (c) 2024-present Fabio Spampinato
914
+
915
+ Permission is hereby granted, free of charge, to any person obtaining a
916
+ copy of this software and associated documentation files (the "Software"),
917
+ to deal in the Software without restriction, including without limitation
918
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
919
+ and/or sell copies of the Software, and to permit persons to whom the
920
+ Software is furnished to do so, subject to the following conditions:
921
+
922
+ The above copyright notice and this permission notice shall be included in
923
+ all copies or substantial portions of the Software.
924
+
925
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
926
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
927
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
928
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
929
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
930
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
931
+ DEALINGS IN THE SOFTWARE.
932
+
933
+ ------------------------------------------------------------------------
934
+
803
935
  fast-uri@4.2.3
804
936
 
805
937
  Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
@@ -835,6 +967,34 @@ The complete list of contributors can be found at:
835
967
 
836
968
  ------------------------------------------------------------------------
837
969
 
970
+ fast-wrap-ansi@0.2.2
971
+
972
+ MIT License
973
+
974
+ Copyright (c) 2025 James Garbutt
975
+
976
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
977
+
978
+ Permission is hereby granted, free of charge, to any person obtaining a copy
979
+ of this software and associated documentation files (the "Software"), to deal
980
+ in the Software without restriction, including without limitation the rights
981
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
982
+ copies of the Software, and to permit persons to whom the Software is
983
+ furnished to do so, subject to the following conditions:
984
+
985
+ The above copyright notice and this permission notice shall be included in all
986
+ copies or substantial portions of the Software.
987
+
988
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
989
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
990
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
991
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
992
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
993
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
994
+ SOFTWARE.
995
+
996
+ ------------------------------------------------------------------------
997
+
838
998
  fastify@5.12.7
839
999
 
840
1000
  MIT License
@@ -19,27 +19,15 @@ var emitWarning = process.emitWarning.bind(process);
19
19
  process.emitWarning = ((...args) => {
20
20
  if (!String(args[0]).startsWith("SQLite is an experimental feature")) emitWarning(...args);
21
21
  });
22
- async function askSecret(question) {
23
- const { createInterface } = await import("node:readline");
24
- const terminal = createInterface({
25
- input: process.stdin,
26
- output: process.stdout,
27
- terminal: true
28
- });
29
- process.stdout.write(question);
30
- terminal._writeToOutput = () => {
31
- };
32
- const answer = await new Promise((resolve) => terminal.once("line", resolve));
33
- terminal.close();
34
- process.stdout.write("\n");
35
- return answer;
36
- }
37
22
  async function readStdin() {
38
23
  let text = "";
39
24
  for await (const chunk of process.stdin) text += String(chunk);
40
25
  return text;
41
26
  }
42
- var { run } = await import("./main-VPXMU5TG.js");
27
+ var { run } = await import("./main-6WPWCLN3.js");
28
+ var { plainUi } = await import("./ui-PEKFVWX7.js");
29
+ var { clackUi, showError } = await import("./clack-ui-KG2I32T5.js");
30
+ var interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY);
43
31
  try {
44
32
  const result = await run({
45
33
  argv: process.argv.slice(2),
@@ -47,11 +35,11 @@ try {
47
35
  home: homedir(),
48
36
  execPath: process.execPath,
49
37
  bundleDir: dirname(fileURLToPath(import.meta.url)),
50
- version: true ? "0.1.0" : "dev",
38
+ version: true ? "0.3.0" : "dev",
51
39
  platform: process.platform,
52
40
  uid: process.getuid?.(),
53
- interactive: Boolean(process.stdin.isTTY && process.stdout.isTTY),
54
- askSecret,
41
+ interactive,
42
+ ui: interactive ? clackUi() : plainUi((text) => process.stdout.write(text)),
55
43
  readStdin,
56
44
  stdout: (text) => process.stdout.write(text),
57
45
  stderr: (text) => process.stderr.write(text)
@@ -63,7 +51,10 @@ try {
63
51
  void result.close().then(() => process.exit(0));
64
52
  });
65
53
  } catch (error) {
66
- process.stderr.write(`${error instanceof Error ? error.message : String(error)}
54
+ if (interactive) process.exitCode = showError(error);
55
+ else {
56
+ process.stderr.write(`${error instanceof Error ? error.message : String(error)}
67
57
  `);
68
- process.exitCode = 1;
58
+ process.exitCode = 1;
59
+ }
69
60
  }
@@ -0,0 +1,62 @@
1
+ import { createRequire as __bizzyRequire } from "node:module";
2
+ import { fileURLToPath as __bizzyPath } from "node:url";
3
+ const require = __bizzyRequire(import.meta.url);
4
+ const __filename = __bizzyPath(import.meta.url);
5
+ const __dirname = __bizzyPath(new URL(".", import.meta.url));
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
13
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
14
+ }) : x)(function(x) {
15
+ if (typeof require !== "undefined") return require.apply(this, arguments);
16
+ throw Error('Dynamic require of "' + x + '" is not supported');
17
+ });
18
+ var __esm = (fn, res, err) => function __init() {
19
+ if (err) throw err[0];
20
+ try {
21
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
22
+ } catch (e) {
23
+ throw err = [e], e;
24
+ }
25
+ };
26
+ var __commonJS = (cb, mod) => function __require2() {
27
+ try {
28
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
29
+ } catch (e) {
30
+ throw mod = 0, e;
31
+ }
32
+ };
33
+ var __export = (target, all) => {
34
+ for (var name in all)
35
+ __defProp(target, name, { get: all[name], enumerable: true });
36
+ };
37
+ var __copyProps = (to, from, except, desc) => {
38
+ if (from && typeof from === "object" || typeof from === "function") {
39
+ for (let key of __getOwnPropNames(from))
40
+ if (!__hasOwnProp.call(to, key) && key !== except)
41
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
42
+ }
43
+ return to;
44
+ };
45
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
46
+ // If the importer is in node compatibility mode or this is not an ESM
47
+ // file that has been converted to a CommonJS file using a Babel-
48
+ // compatible transform (i.e. "__esModule" has not been set), then set
49
+ // "default" to the CommonJS "module.exports" for node compatibility.
50
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
51
+ mod
52
+ ));
53
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
54
+
55
+ export {
56
+ __require,
57
+ __esm,
58
+ __commonJS,
59
+ __export,
60
+ __toESM,
61
+ __toCommonJS
62
+ };