@vizuh/sabi 0.1.0 → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +13 -0
- package/mod/sabi.mjs +1 -1
- package/package.json +4 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vizuh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -8,6 +8,19 @@ round 2 on, a read round goes cheap, edits and tests go mid, and a failing tool
|
|
|
8
8
|
This package is the **mod only**. The local proxy (BYOK, for any harness that accepts a `baseURL`)
|
|
9
9
|
lives in the [repository](https://github.com/vizuh/sabi).
|
|
10
10
|
|
|
11
|
+
The two paths are independent:
|
|
12
|
+
|
|
13
|
+
- **Command Code mod:** no Sabi provider key and no proxy; it routes the subscription already
|
|
14
|
+
available to Command Code.
|
|
15
|
+
- **Local proxy:** works with OpenCode, Hermes, Kilo and other OpenAI-compatible clients, using
|
|
16
|
+
OpenRouter, Ollama or another configured upstream.
|
|
17
|
+
|
|
18
|
+
For the proxy, Sabi loads only the credential names referenced by `sabi.config.json`. Existing
|
|
19
|
+
environment variables win, followed by `SABI_SECRETS_FILE`, the nearest workspace `secrets/.env`,
|
|
20
|
+
and `~/.config/sabi/secrets.env` or `~/.config/sabi/.env`. It never copies secret values into a
|
|
21
|
+
harness config, terminal, worktree, log or Git. Users who do not use Jev can set `judge.enabled` to
|
|
22
|
+
`false`; users without a central secrets file can keep exporting provider variables normally.
|
|
23
|
+
|
|
11
24
|
## Install
|
|
12
25
|
|
|
13
26
|
```bash
|
package/mod/sabi.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @vizuh/sabi 0.1.
|
|
1
|
+
// @vizuh/sabi 0.1.2 — generated by pack.mjs from packages/adapters/command-code/mod/sabi.ts.
|
|
2
2
|
// Source and docs: https://github.com/vizuh/sabi
|
|
3
3
|
|
|
4
4
|
// packages/core/src/state.ts
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizuh/sabi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Adaptive inference scheduling for Command Code: one bundled mod that routes each continuing round by model, effort and trajectory state.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/vizuh/sabi.git",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"files": [
|
|
28
29
|
"mod/sabi.mjs",
|
|
29
30
|
"sabi.config.json",
|
|
30
|
-
"README.md"
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
31
33
|
]
|
|
32
34
|
}
|