trantor 0.15.0 → 0.16.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/deploy/setup.sh +3 -3
- package/engine/LICENSE +21 -0
- package/engine/README.md +5 -0
- package/engine/bin/scrooge +1276 -0
- package/engine/bin/scrooge-capabilities +209 -0
- package/engine/bin/scrooge-diverge +263 -0
- package/engine/bin/scrooge-drift +126 -0
- package/engine/bin/scrooge-verify +190 -0
- package/engine/capabilities.seed.json +112 -0
- package/engine/install.sh +138 -0
- package/engine/lessons.seed.json +17 -0
- package/engine/registry.template.json +329 -0
- package/package.json +3 -2
package/deploy/setup.sh
CHANGED
|
@@ -16,10 +16,10 @@ if [ "$(uname)" = "Darwin" ]; then
|
|
|
16
16
|
else
|
|
17
17
|
echo "Linux: run the hub under systemd/tmux: RELAY_PORT=4477 node $REPO/hub.mjs"
|
|
18
18
|
fi
|
|
19
|
-
# the economics engine —
|
|
20
|
-
if
|
|
19
|
+
# the economics engine — vendored in engine/, installed automatically (it IS the brain)
|
|
20
|
+
if [ -f "$REPO/engine/install.sh" ]; then
|
|
21
21
|
echo "▸ installing the economics engine (routing + cost ledger)…"
|
|
22
|
-
|
|
22
|
+
bash "$REPO/engine/install.sh" >/dev/null 2>&1 \
|
|
23
23
|
&& echo "✓ economics engine installed" \
|
|
24
24
|
|| echo " (engine install failed — Trantor still works; the Advisor runs without live pricing. Retry: trantor setup)"
|
|
25
25
|
case ":$PATH:" in *":$HOME/.local/bin:"*) ;; *) echo " note: add ~/.local/bin to your PATH";; esac
|
package/engine/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sashabogi
|
|
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/engine/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# The Trantor economics engine
|
|
2
|
+
Capability-weighted cheap-model routing, the cost ledger, and per-model lessons.
|
|
3
|
+
Formerly the standalone `token-scrooge` (now archived); this directory is the canonical home.
|
|
4
|
+
Installed automatically by `trantor setup` (symlinks `engine/bin/*` into `~/.local/bin`).
|
|
5
|
+
Self-contained python3 (stdlib only). Data lives in `~/.token-scrooge/` (kept for compatibility).
|