ohmyjev 0.9.0 → 0.9.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/README.md CHANGED
@@ -1,16 +1,9 @@
1
- ```
2
- Y88b 888 d8b
3
- Y88b 888 Y8P
4
- Y88b 888
5
- Y88b .d88b. 88888b. 88888b.d88b. 888 888 8888 .d88b. 888 888
6
- d88P d88""88b 888 "88b 888 "888 "88b 888 888 "888 d8P Y8b 888 888
7
- d88P 888 888 888 888 888 888 888 888 888 888 88888888 Y88 88P
8
- d88P Y88..88P 888 888 888 888 888 Y88b 888 888 Y8b. Y8bd8P
9
- d88P 88888888 "Y88P" 888 888 888 888 888 "Y88888 888 "Y8888 Y88P
10
- 888 888
11
- Y8b d88P d88P
12
- "Y88P" 888P"
13
- ```
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: light)" srcset="docs/logo-light.png">
4
+ <img src="docs/logo.png" alt="ohmyjev" width="420">
5
+ </picture>
6
+ </p>
14
7
 
15
8
  <p align="center">
16
9
  <a href="https://typesafe.ai">Jev</a>, batteries included, for Claude Code, Codex, pi and omp.<br>
@@ -19,8 +12,8 @@ d88P 88888888 "Y88P" 888 888 888 888 888 "Y88888 888 "Y8888 Y88P
19
12
 
20
13
  <p align="center">
21
14
  <img alt="Claude Code 2.1.287+" src="https://img.shields.io/badge/Claude_Code-2.1.287%2B-d97757">
22
- <img alt="Decided by Jev" src="https://img.shields.io/badge/decided_by-Jev-101315">
23
- <img alt="Codex, pi and omp" src="https://img.shields.io/badge/also_for-Codex_·_pi_·_omp-86a893">
15
+ <img alt="Decided by Jev" src="https://img.shields.io/badge/decided_by-Jev-9d78ff">
16
+ <img alt="Codex, pi and omp" src="https://img.shields.io/badge/also_for-Codex_·_pi_·_omp-b69cff">
24
17
  <a href="https://www.npmjs.com/package/ohmyjev"><img alt="npm" src="https://img.shields.io/npm/v/ohmyjev?color=de6145"></a>
25
18
  <img alt="MIT license" src="https://img.shields.io/badge/license-MIT-798186">
26
19
  </p>
@@ -5,7 +5,8 @@
5
5
  */
6
6
  import type { LogEntry } from './policy.ts'
7
7
 
8
- const FONTS = 'https://ohmyjev.xyz/fonts'
8
+ const SITE = 'https://ohmyjev.xyz'
9
+ const FONTS = `${SITE}/fonts`
9
10
  const DAYS = 30
10
11
 
11
12
  export const esc = (s: unknown): string =>
@@ -96,8 +97,8 @@ export function dashboardHtml(rows: LogEntry[], opts: { now: number; sid?: strin
96
97
  @font-face { font-family: "JetBrains Mono"; src: url("${FONTS}/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
97
98
  :root {
98
99
  --ground: #0a0a0a; --surface: #131313; --panel: rgba(19, 19, 19, .9); --panel-hi: rgba(28, 28, 28, .94);
99
- --paper: #f4f8f5; --muted: #a5b5a9; --faint: #829487; --line: #2e2e2e; --steel: #829487;
100
- --brand: #00ee22; --brand-hi: #39ff53; --link: #79ff98; --lavender: #b69cff;
100
+ --paper: #f5f3fa; --muted: #b3aec2; --faint: #91899f; --line: #2e2e2e; --steel: #91899f;
101
+ --brand: #9d78ff; --brand-hi: #b69cff; --link: #c9b8ff; --lavender: #b69cff;
101
102
  --ok: #56e887; --warn: #ffc857; --err: #ff737d; --info: #74c7ff;
102
103
  --ui: clamp(.875rem, .82rem + .15vw, 1rem);
103
104
  --logo: "Changa", "Space Grotesk", system-ui, sans-serif; --display: "Space Grotesk", system-ui, sans-serif;
@@ -113,7 +114,7 @@ body {
113
114
  background-image: linear-gradient(rgba(140, 140, 140, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 140, 140, .07) 1px, transparent 1px);
114
115
  background-size: 64px 64px;
115
116
  }
116
- ::selection { background: rgba(0, 238, 34, .3); color: var(--paper); }
117
+ ::selection { background: rgba(157, 120, 255, .3); color: var(--paper); }
117
118
  a { color: inherit; text-decoration: none; }
118
119
  :focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
119
120
  code { font-family: var(--mono); font-size: .875em; color: var(--paper); }
@@ -150,12 +151,12 @@ section { margin-bottom: clamp(24px, 4vh, 44px); }
150
151
  .chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; border-bottom: 1px solid var(--line); }
151
152
  .bar { position: relative; flex: 1; height: 100%; min-width: 0; }
152
153
  .bar i, .bar b { position: absolute; left: 0; right: 0; bottom: 0; display: block; }
153
- .bar i { background: rgba(0, 238, 34, .45); transition: background .2s ease; }
154
+ .bar i { background: rgba(157, 120, 255, .45); transition: background .2s ease; }
154
155
  .bar b { background: var(--err); }
155
156
  .bar:hover i { background: var(--brand-hi); }
156
157
  .axis { display: flex; justify-content: space-between; color: var(--faint); font: .75rem var(--mono); padding-top: 6px; }
157
158
  .legend { display: flex; gap: 18px; color: var(--faint); font: 600 .75rem var(--label); letter-spacing: .06em; text-transform: uppercase; }
158
- .legend i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 6px; background: rgba(0, 238, 34, .45); }
159
+ .legend i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 6px; background: rgba(157, 120, 255, .45); }
159
160
  .legend i.o { background: var(--err); }
160
161
  .tbl { overflow: auto; border: 1px solid var(--line); scrollbar-width: thin; }
161
162
  table { width: 100%; border-collapse: collapse; }
@@ -166,7 +167,7 @@ tr:hover td { background: var(--panel-hi); }
166
167
  td:first-child, td:nth-child(2) { white-space: nowrap; }
167
168
  td.o { color: var(--err); }
168
169
  .g { color: var(--ok); }
169
- .me td { background: rgba(0, 238, 34, .06); }
170
+ .me td { background: rgba(157, 120, 255, .06); }
170
171
  .empty { padding: 18px 14px; color: var(--faint); }
171
172
  .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: .875rem; }
172
173
  .foot a { color: var(--link); }
@@ -175,7 +176,7 @@ td.o { color: var(--err); }
175
176
  </style></head>
176
177
  <body>
177
178
  <header class="header">
178
- <a class="brand" href="https://ohmyjev.xyz" aria-label="ohmyjev"><span class="acc">&gt;_</span>ohmy<span class="acc">jev</span></a>
179
+ <a class="brand" href="https://ohmyjev.xyz" aria-label="ohmyjev"><img src="${SITE}/logo.webp" alt="ohmyjev" height="40"></a>
179
180
  <div class="lbl">stats <span>·</span> ${esc(when(opts.now))} UTC${opts.source ? ` <span>·</span> ${esc(opts.source)}` : ''}</div>
180
181
  </header>
181
182
  <p class="section-label lbl">What Jev decided <span>every session on this machine</span></p>
package/hooks/policy.ts CHANGED
@@ -758,7 +758,8 @@ export function browseCommand(
758
758
  ? { TEXT_MODEL_API_KEY: env.OPENROUTER_API_KEY, TEXT_MODEL_BASE_URL: 'https://openrouter.ai/api/v1', TEXT_MODEL: 'inception/mercury-2.5', TEXT_MODEL_REASONING: 'none' }
759
759
  : {}
760
760
  return {
761
- argv: ['uv', 'run', '--no-project', '--quiet', '--with', JEV_ULTRAFAST, 'python', '-c', BROWSE_PY, url, goal],
761
+ // uv's own Python: a PATH python can be the wrong architecture or version (an Intel python3.13 on Apple silicon)
762
+ argv: ['uv', 'run', '--no-project', '--quiet', '--python-preference', 'only-managed', '--python', '3.12', '--with', JEV_ULTRAFAST, 'python', '-c', BROWSE_PY, url, goal],
762
763
  env: { TYPESAFE_API_KEY: typesafe, ...text, ...(Array.isArray(input.values) ? { OMJ_BROWSE_VALUES: JSON.stringify(input.values.filter(v => typeof v === 'string').slice(0, 20)) } : {}) },
763
764
  }
764
765
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohmyjev",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Guardrails for coding agents, decided by TypeSafe's Jev: blocks destructive commands, catches prompt injection, pushes back on an unverified done and routes effort per turn. For Claude Code, pi and omp.",
5
5
  "type": "module",
6
6
  "license": "MIT",