humanish 0.135.0 → 0.136.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/CHANGELOG.md +15 -0
- package/dist/actors/computer-use/loop/session.js +7 -2
- package/dist/actors/scripted-browser/actor.js +3 -3
- package/dist/actors/scripted-browser/steps.d.ts +9 -2
- package/dist/actors/scripted-browser/steps.js +17 -12
- package/dist/analysis/evidence-sources.js +4 -7
- package/dist/analysis/evidence.js +4 -4
- package/dist/analysis/source.d.ts +7 -4
- package/dist/analysis/source.js +22 -4
- package/dist/cli/commands/setup.js +7 -10
- package/dist/evidence/image.d.ts +2 -2
- package/dist/evidence/image.js +47 -32
- package/dist/observer/data.d.ts +7 -3
- package/dist/observer/render.js +2 -4
- package/dist/routes/computer-use/participant-execution.js +1 -1
- package/dist/run/bundle.d.ts +5 -1
- package/dist/run/locate.d.ts +13 -11
- package/dist/run/locate.js +20 -13
- package/dist/run/paths.js +38 -28
- package/dist/run/stream-trace.d.ts +2 -2
- package/dist/run/stream-trace.js +24 -11
- package/dist/run/streams.d.ts +18 -3
- package/dist/study/bundle-estimate.d.ts +21 -1
- package/dist/study/bundle-estimate.js +55 -29
- package/dist/tui-app.js +23 -23
- package/dist/verify/screenshot-reads.js +1 -1
- package/docs/architecture/state-driven-executor.md +4 -3
- package/docs/contracts/study-analysis.md +3 -2
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ export async function readScreenshot(runPaths, relativePath) {
|
|
|
35
35
|
const facts = {
|
|
36
36
|
state: "read",
|
|
37
37
|
size: read.bytes.length,
|
|
38
|
-
error: screenshotEvidenceError(relativePath, read.bytes),
|
|
38
|
+
error: await screenshotEvidenceError(relativePath, read.bytes),
|
|
39
39
|
redactedShape: isRedactedFrameShape(read.bytes),
|
|
40
40
|
};
|
|
41
41
|
if (read.stamp.ctimeNs <= startedNs - RACY_WINDOW_NS)
|
|
@@ -110,9 +110,10 @@ action**, not a fatal error:
|
|
|
110
110
|
|
|
111
111
|
Public-safety: the notice text carries only the substrate's own stderr (tailed +
|
|
112
112
|
whitespace-collapsed) and a numeric exit code, and is still run through the loop's
|
|
113
|
-
`redactNarration` (known-value scrub
|
|
114
|
-
|
|
115
|
-
`describeCuaAction`, which never includes typed
|
|
113
|
+
`redactNarration` (known-value scrub, then pattern redaction of keys as written, base64- or
|
|
114
|
+
percent-encoded, then the known-value scrub again). Raw typed text, secret values, and machine
|
|
115
|
+
paths never appear. The action label comes from `describeCuaAction`, which never includes typed
|
|
116
|
+
text.
|
|
116
117
|
|
|
117
118
|
## You need a non-vision provider too
|
|
118
119
|
|
|
@@ -191,8 +191,9 @@ from run.json before any trace is read, and the first 80 captures selection may
|
|
|
191
191
|
read. Beside the one trace it is reading, analysis holds at most 800 entries for
|
|
192
192
|
each request and 80 for each participant; their size grows with each trace
|
|
193
193
|
item's text. A run.json past 16 MiB is refused as `ANALYSIS_SOURCE_TOO_LARGE`, and
|
|
194
|
-
a run.json or trace without the fields analysis reads
|
|
195
|
-
|
|
194
|
+
a run.json or trace without the fields analysis reads, or a run.json with two of a
|
|
195
|
+
participant's run events sharing an id, as `ANALYSIS_SOURCE_INVALID`; each message
|
|
196
|
+
names the file, says why, and says no request was sent. Analysis
|
|
196
197
|
verifies the run before it reads a trace, so a trace that does not match its
|
|
197
198
|
index in run.json fails verify and `humanish analyze` reports
|
|
198
199
|
`ANALYSIS_VERIFY_FAILED`. A trace past 32 MiB leaves the run `local_only`, and
|