pi-jev-lens 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -99,7 +99,7 @@ For development, clone the repository and load it directly:
99
99
  ```sh
100
100
  git clone https://github.com/dizk/jev-lens.git && cd jev-lens && npm install
101
101
  echo 'TYPESAFE_API_KEY=...' > .env
102
- pi -e ./packages/pi/index.ts
102
+ pi -e ./packages/pi-jev-lens/index.ts
103
103
  ```
104
104
 
105
105
  ## How it works
@@ -221,8 +221,10 @@ whether the agent needed the text. The benchmark uses real OpenHands trajectorie
221
221
  - edit-miss: the agent later edited a line that the view had dropped.
222
222
  - quote-miss: the agent quoted text that the view had dropped.
223
223
  - ref-miss: the agent used an identifier that only existed in the dropped part.
224
+ - recall-miss: in a recorded session with the extension, the agent recalled the result, and the replayed view would
225
+ still not have answered that recall (the whole output, a line range or a pattern). Only real sessions have recalls.
224
226
 
225
- An edit-miss counts five times in the objective, and edit-misses are rare. So you must score every change that
227
+ The objective is saved% − 5·edit-miss% − 2·quote-miss% − ref-miss% − 2·recall-miss%. An edit-miss counts five times, and edit-misses are rare. So you must score every change that
226
228
  touches code views on the 500-trajectory slice, not only on the 100-trajectory holdout.
227
229
 
228
230
  | slice | large results | saved | edit-miss | quote-miss | ref-miss |
@@ -271,10 +273,10 @@ as a library; its README shows the API. What is where:
271
273
  | the jev questions, the state shape, the decision rule, block expansion | `packages/core/src/presend.ts` | `@typesafe-ai/sdk` |
272
274
  | the parser for bash display commands | `packages/core/src/shell-display.ts` | nothing |
273
275
  | the recall tool's slicing | `packages/core/src/recall.ts` | nothing |
274
- | the wiring for pi (tool_result, the recall tool, the UI) | `packages/pi/index.ts`, `packages/pi/src/ui.ts` | pi |
276
+ | the wiring for pi (tool_result, the recall tool, the UI) | `packages/pi-jev-lens/index.ts`, `packages/pi-jev-lens/src/ui.ts` | pi |
275
277
  | the wiring for Claude Code (PostToolUse hook, MCP server) | `packages/claude-code/src/` | Claude Code |
276
278
  | the benchmark and the metrics on real trajectories | `eval/presend-score.ts`, `eval/bench/` | run `eval/bench/fetch.sh` first |
277
- | post-send decisions and the frozen ledger (pi only) | `packages/core/src/classifier.ts`, `packages/pi/src/policy.ts`, `packages/pi/src/ledger.ts` | `@typesafe-ai/sdk` |
279
+ | post-send decisions and the frozen ledger (pi only) | `packages/core/src/classifier.ts`, `packages/pi-jev-lens/src/policy.ts`, `packages/pi-jev-lens/src/ledger.ts` | `@typesafe-ai/sdk` |
278
280
 
279
281
  The sequence is this. When a large tool result arrives, code builds the views from the text. jev says which view is
280
282
  enough and whether the exact text is needed. Code applies the selection policy. If needed, a second request expands
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-jev-lens",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "pi extension that compresses large tool results before they reach the model: jev picks the view (outline, relevant blocks, sections, signals, testlog), full text stays recallable",
5
5
  "author": "Didrik Rognstad",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/dizk/jev-lens.git",
10
- "directory": "packages/pi"
10
+ "directory": "packages/pi-jev-lens"
11
11
  },
12
12
  "homepage": "https://github.com/dizk/jev-lens#readme",
13
13
  "bugs": {