@oracle-agent/oracle 0.33.0 → 0.34.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.
|
@@ -34,8 +34,27 @@ ORACLE = {
|
|
|
34
34
|
"chip_ink": "#061018",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
# Assets ship with the package, next to this
|
|
38
|
-
|
|
37
|
+
# Assets ship with the package. Search env, next to this file, then the
|
|
38
|
+
# published npm graphics tree so a copied renderer still finds lockups.
|
|
39
|
+
def _resolve_assets() -> Path:
|
|
40
|
+
env = os.environ.get("ORACLE_CARD_ASSETS")
|
|
41
|
+
if env:
|
|
42
|
+
p = Path(env)
|
|
43
|
+
if p.is_dir():
|
|
44
|
+
return p
|
|
45
|
+
here = Path(__file__).resolve().parent
|
|
46
|
+
candidates = [
|
|
47
|
+
here / "assets",
|
|
48
|
+
here.parent / "assets" / "graphics" / "assets",
|
|
49
|
+
here.parent / "graphics" / "assets",
|
|
50
|
+
]
|
|
51
|
+
for cand in candidates:
|
|
52
|
+
if (cand / "robinhood-lockup.png").is_file() or (cand / "oracle-globe.png").is_file():
|
|
53
|
+
return cand
|
|
54
|
+
return here / "assets"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
_ASSETS = _resolve_assets()
|
|
39
58
|
_WM = _ASSETS
|
|
40
59
|
ORACLE_MARK = _ASSETS / "oracle-globe.png"
|
|
41
60
|
CHAINS = {
|
|
@@ -224,6 +243,16 @@ def chain_meta(venue: str) -> dict:
|
|
|
224
243
|
return CHAINS.get(key, {"label": key.upper() or "UNKNOWN", "accent": ORACLE["blue"], "logo": None, "kind": "ohlc"})
|
|
225
244
|
|
|
226
245
|
|
|
246
|
+
def _logo_wh(lockup):
|
|
247
|
+
size = getattr(lockup, "size", None)
|
|
248
|
+
if isinstance(size, (tuple, list)) and len(size) >= 2:
|
|
249
|
+
return int(size[0] or 0), int(size[1] or 0)
|
|
250
|
+
shape = getattr(lockup, "shape", None)
|
|
251
|
+
if isinstance(shape, tuple) and len(shape) >= 2:
|
|
252
|
+
return int(shape[1] or 0), int(shape[0] or 0)
|
|
253
|
+
return 180, 28
|
|
254
|
+
|
|
255
|
+
|
|
227
256
|
def _load_logo(path: Path | None):
|
|
228
257
|
if not path or not Path(path).exists():
|
|
229
258
|
return None
|
|
@@ -275,11 +304,12 @@ def _chrome(fig, *, venue: str, eyebrow: str, hero: str, hero_color: str, chip:
|
|
|
275
304
|
drew_lockup = False
|
|
276
305
|
if lockup is not None:
|
|
277
306
|
try:
|
|
278
|
-
w, h =
|
|
307
|
+
w, h = _logo_wh(lockup)
|
|
279
308
|
aspect = (w / max(h, 1)) if w and h else 6.0
|
|
280
|
-
lh = 0.
|
|
281
|
-
lw = min(lh * aspect * (6.3 / 11.2), 0.
|
|
282
|
-
lax = fig.add_axes([tag_x + 0.
|
|
309
|
+
lh = 0.062
|
|
310
|
+
lw = min(lh * aspect * (6.3 / 11.2), 0.30)
|
|
311
|
+
lax = fig.add_axes([tag_x + 0.052, 0.922 - lh / 2, lw, lh], zorder=8)
|
|
312
|
+
lax.set_facecolor("none")
|
|
283
313
|
lax.imshow(lockup)
|
|
284
314
|
lax.axis("off")
|
|
285
315
|
drew_lockup = True
|
|
@@ -97,7 +97,7 @@ does not prove npm users receive it. A locally hosted model/data/policy loop doe
|
|
|
97
97
|
a bundled signer. A merged feature is not public until the npm artifact containing it is
|
|
98
98
|
published and inspected.
|
|
99
99
|
|
|
100
|
-
**Candidate release in this source tree:** public package `@oracle-agent/oracle@0.
|
|
100
|
+
**Candidate release in this source tree:** public package `@oracle-agent/oracle@0.34.0`
|
|
101
101
|
ships the encrypted local vault + short-lived loopback signer. Hosted/keyless
|
|
102
102
|
Oracle cannot hold keys or move funds. Self-host after `oracle sign init|import` is **auto-armed**
|
|
103
103
|
for user-initiated actions. Public still charges the disclosed fee card; Administrator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oracle-agent/oracle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "Oracle: standalone multichain agent control plane with an optional encrypted, loopback-only self-hosted signer.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"type": "module",
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"@scure/base": "^2.2.0",
|
|
97
97
|
"@scure/bip39": "^1.6.0",
|
|
98
98
|
"@scure/btc-signer": "2.3.0",
|
|
99
|
-
"@solana/addresses": "^7.
|
|
100
|
-
"@solana/transaction-messages": "7.
|
|
99
|
+
"@solana/addresses": "^7.1.0",
|
|
100
|
+
"@solana/transaction-messages": "7.1.1",
|
|
101
101
|
"ethers": "^6.16.0",
|
|
102
102
|
"sharp": "^0.35.3",
|
|
103
|
-
"sql.js": "^1.
|
|
104
|
-
"undici": "
|
|
103
|
+
"sql.js": "^1.14.2",
|
|
104
|
+
"undici": "8.10.0",
|
|
105
105
|
"viem": "^2.55.8"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|