@bizzywork/routing 0.0.0-stage → 0.1.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/LICENSE +26 -0
- package/README.md +32 -2
- package/dist/bundle/THIRD-PARTY-NOTICES.txt +1800 -0
- package/dist/bundle/bizzy-routing.js +69 -0
- package/dist/bundle/harnesses/claude-code/.claude-plugin/plugin.json +6 -0
- package/dist/bundle/harnesses/claude-code/hooks/hooks.json +1 -0
- package/dist/bundle/harnesses/claude-code/hooks/register.ts +391 -0
- package/dist/bundle/harnesses/omp/index.ts +433 -0
- package/dist/bundle/harnesses/omp/routing.ts +164 -0
- package/dist/bundle/main-VPXMU5TG.js +83520 -0
- package/dist/bundle/static/csp.json +1 -0
- package/dist/bundle/static/favicon-16x16.png +0 -0
- package/dist/bundle/static/favicon-32x32.png +0 -0
- package/dist/bundle/static/index.css +16 -0
- package/dist/bundle/static/index.html +19 -0
- package/dist/bundle/static/logo.svg +43 -0
- package/dist/bundle/static/oauth2-redirect.html +6 -0
- package/dist/bundle/static/oauth2-redirect.js +1 -0
- package/dist/bundle/static/swagger-ui-bundle.js +2 -0
- package/dist/bundle/static/swagger-ui-standalone-preset.js +2 -0
- package/dist/bundle/static/swagger-ui.css +2 -0
- package/dist/bundle/static/swagger-ui.js +1 -0
- package/package.json +26 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Bizzy routing (@bizzywork/routing)
|
|
2
|
+
Copyright (c) 2026 33Labs. All rights reserved.
|
|
3
|
+
|
|
4
|
+
1. Permission. You may install and run this software, unmodified, to route
|
|
5
|
+
model requests for yourself or for your organisation's internal use.
|
|
6
|
+
|
|
7
|
+
2. Restrictions. You may not copy (except as installing and running it
|
|
8
|
+
requires), modify, merge, publish, distribute, sublicense or sell the
|
|
9
|
+
software or any part of it, or create works derived from it, except where
|
|
10
|
+
applicable law allows this despite the restriction.
|
|
11
|
+
|
|
12
|
+
3. Third-party components. The software includes components under their own
|
|
13
|
+
licences, listed in dist/bundle/THIRD-PARTY-NOTICES.txt. Those licences
|
|
14
|
+
govern those components.
|
|
15
|
+
|
|
16
|
+
4. Hosted service. Use of the hosted routing API at routing.33labs.ai is
|
|
17
|
+
governed by its own terms, not by this licence.
|
|
18
|
+
|
|
19
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
20
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
22
|
+
NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
23
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
24
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
25
|
+
|
|
26
|
+
6. Termination. This permission ends automatically if you break these terms.
|
package/README.md
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @bizzywork/routing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bizzy Auto picks the model for each request in Claude Code, oh-my-pi (omp) or Codex. The harness keeps its own login and conversation; a small server on `127.0.0.1` makes the choice, and nothing it reads leaves your machine.
|
|
4
|
+
|
|
5
|
+
Needs Node 22.13 or newer.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @bizzywork/routing install claude-code # or: omp, codex
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`install` copies the server to `~/.bizzy/routing/runtime` and points the harness at it, so clearing npm's cache breaks nothing.
|
|
12
|
+
|
|
13
|
+
| Harness | What install writes | Then |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| Claude Code | a local plugin marketplace in `~/.bizzy/claude-plugin`, installed through the `claude` CLI when it's on your PATH | `/reload-plugins` in a running session |
|
|
16
|
+
| omp | an extension in `~/.omp/agent/extensions/bizzy` | `/model bizzy/auto` |
|
|
17
|
+
| Codex | the `bizzy` profile, `~/.codex/bizzy.config.toml` (your `config.toml` is never touched), and a login service that runs the server (launchd on macOS, `systemd --user` on Linux) | `codex -p bizzy` |
|
|
18
|
+
|
|
19
|
+
The Claude Code plugin and the omp extension start the server themselves; when one already runs, the Codex service leaves it.
|
|
20
|
+
|
|
21
|
+
On a terminal, `install` asks once for your Bizzy routing key and saves it to `~/.bizzy/routing/.env` (mode 0600, never printed). With it, each turn's model is picked by Bizzy's hosted API, whose judge Jev reads the prompt you typed; tool output, the conversation and your harness logins stay on your machine. Without a key, or when the hosted API doesn't answer, Bizzy's own rules pick on your machine. `--no-share-prompts` keeps prompts local too, and the hosted API then routes on its rules.
|
|
22
|
+
|
|
23
|
+
Other commands:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx @bizzywork/routing key # save or replace the routing key (--stdin to pipe it in)
|
|
27
|
+
npx @bizzywork/routing status # what's installed and how it routes
|
|
28
|
+
npx @bizzywork/routing doctor # check the runtime, key, hosted API, server and each harness
|
|
29
|
+
npx @bizzywork/routing serve # run the server yourself (PORT, default 4100)
|
|
30
|
+
npx @bizzywork/routing uninstall <harness> # --purge also removes ~/.bizzy/routing
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
See LICENSE. Bundled third-party components and their licences are listed in `dist/bundle/THIRD-PARTY-NOTICES.txt`.
|