@oracle-agent/oracle 0.9.2 → 0.9.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oracle-agent/oracle",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Oracle: prepare-only multichain agent control plane. Policy-bounded intents for a user-signed wallet. Self-custody by default — the public package never takes your key. Built for Hermes; no model key required.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -10,12 +10,12 @@ import sys
10
10
 
11
11
 
12
12
  WORDMARK = (
13
- " ██████ ████████ ██████ ██████ ░███ ██████ ",
14
- " ███░░███░░███░░███ ░░░░░███ ███░░███ ░███ ███░░███",
15
- "░███ ░███ ░███ ░░░ ███████ ░███ ░░░ ░███ ░███████ ",
16
- "░███ ░███ ░███ ███░░███ ░███ ███ ░███ ░███░░░ ",
17
- "░░██████ █████ ░░████████░░██████ █████░░██████ ",
18
- " ░░░░░░ ░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ",
13
+ " ██████ ███████ ██████ ██████ ██ ██████ ",
14
+ "██ ██ ██ ██ ██ ██ ██ ██ ██ ██",
15
+ "██ ██ ██ ███████ ██ ██ ████████",
16
+ "██ ██ ██ ██ ██ ██ ██ ██ ",
17
+ "██ ██ ██ ██ ██ ██ ██ ██ ██ ",
18
+ " ██████ ██ ███████ ██████ ████████ ███████",
19
19
  )
20
20
 
21
21
  SILENT_OUTPUT = {
@@ -125,7 +125,7 @@ def patch_cli(module):
125
125
  "#B8F0FF",
126
126
  )
127
127
  for index, line in enumerate(WORDMARK):
128
- body.append(line.rstrip(), style=f"bold {colors[index]}")
128
+ body.append(line, style=f"bold {colors[index]}")
129
129
  if index != len(WORDMARK) - 1:
130
130
  body.append("\n")
131
131
  else:
@@ -195,38 +195,44 @@ def patch_cli(module):
195
195
  effort = reasoning_config.get("effort") or "default"
196
196
  thinking = snapshot.get("prompt_elapsed") or "0s"
197
197
  thinking = thinking.replace("⏱ ", "").replace("⏲ ", "")
198
+ chain = os.environ.get("ORACLE_ACTIVE_CHAIN", "").strip()
199
+
200
+ def status_tail():
201
+ fragments = [
202
+ ("class:status-bar-dim", " / "),
203
+ ("class:status-bar-effort", effort),
204
+ ("class:status-bar-dim", " / "),
205
+ ("class:status-bar-time", thinking),
206
+ ]
207
+ if chain:
208
+ fragments.extend(
209
+ [
210
+ ("class:status-bar-dim", " / "),
211
+ ("class:status-bar-chain", chain),
212
+ ]
213
+ )
214
+ fragments.append(("class:status-bar", " "))
215
+ return fragments
198
216
 
199
217
  if width < 48:
200
218
  short_bar = self._build_context_bar(percent, width=4)
201
219
  return [
202
220
  ("class:status-bar", " "),
203
221
  ("class:status-bar-context", f"ctx {short_bar} {percent}%"),
204
- ("class:status-bar-dim", " / "),
205
- ("class:status-bar-effort", effort),
206
- ("class:status-bar-dim", " / "),
207
- ("class:status-bar-time", f"{thinking} "),
208
- ]
222
+ ] + status_tail()
209
223
  if width < 70:
210
224
  short_bar = self._build_context_bar(percent, width=4)
211
225
  return [
212
226
  ("class:status-bar", " "),
213
227
  ("class:status-bar-context", f"ctx {short_bar} {percent}%"),
214
- ("class:status-bar-dim", " / "),
215
- ("class:status-bar-effort", f"effort {effort}"),
216
- ("class:status-bar-dim", " / "),
217
- ("class:status-bar-time", f"think {thinking} "),
218
- ]
228
+ ] + status_tail()
219
229
  if width < 92:
220
230
  return [
221
231
  ("class:status-bar", " "),
222
232
  ("class:status-bar-strong", model),
223
233
  ("class:status-bar-dim", " / "),
224
234
  ("class:status-bar-context", f"ctx {context_bar} {usage}{percent}%"),
225
- ("class:status-bar-dim", " / "),
226
- ("class:status-bar-effort", f"effort {effort}"),
227
- ("class:status-bar-dim", " / "),
228
- ("class:status-bar-time", f"think {thinking} "),
229
- ]
235
+ ] + status_tail()
230
236
  return [
231
237
  ("class:status-bar", " "),
232
238
  ("class:status-bar-brand", "oracle"),
@@ -234,11 +240,7 @@ def patch_cli(module):
234
240
  ("class:status-bar-strong", model),
235
241
  ("class:status-bar-dim", " / "),
236
242
  ("class:status-bar-context", f"ctx {context_bar} {usage}{percent}%"),
237
- ("class:status-bar-dim", " / "),
238
- ("class:status-bar-effort", f"effort {effort}"),
239
- ("class:status-bar-dim", " / "),
240
- ("class:status-bar-time", f"think {thinking} "),
241
- ]
243
+ ] + status_tail()
242
244
  except Exception:
243
245
  return [("class:status-bar-brand", " oracle ")]
244
246
 
@@ -317,6 +319,7 @@ def patch_cli(module):
317
319
  "status-bar-context": "bg:#11161B #A5D9EB",
318
320
  "status-bar-effort": "bg:#11161B #C5B8FF",
319
321
  "status-bar-time": "bg:#11161B #91A2B1",
322
+ "status-bar-chain": "bg:#11161B #B8F0FF",
320
323
  "status-bar-dim": "bg:#11161B #60717F",
321
324
  }
322
325
  )