@mercuryo-ai/agentbrowse 0.2.60 → 0.2.63
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 +33 -1
- package/README.md +132 -14
- package/dist/browser-session-state.d.ts +40 -10
- package/dist/browser-session-state.d.ts.map +1 -1
- package/dist/browser-session-state.js +63 -5
- package/dist/commands/act.d.ts.map +1 -1
- package/dist/commands/act.js +548 -535
- package/dist/commands/attach.d.ts +1 -3
- package/dist/commands/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +5 -12
- package/dist/commands/browser-connection-failure.d.ts +9 -0
- package/dist/commands/browser-connection-failure.d.ts.map +1 -0
- package/dist/commands/browser-connection-failure.js +15 -0
- package/dist/commands/browser-status.d.ts +0 -2
- package/dist/commands/browser-status.d.ts.map +1 -1
- package/dist/commands/browser-status.js +27 -37
- package/dist/commands/close.d.ts.map +1 -1
- package/dist/commands/close.js +5 -0
- package/dist/commands/extract.d.ts.map +1 -1
- package/dist/commands/extract.js +147 -144
- package/dist/commands/interaction-kernel.d.ts +1 -1
- package/dist/commands/interaction-kernel.d.ts.map +1 -1
- package/dist/commands/interaction-kernel.js +1 -1
- package/dist/commands/launch.d.ts +0 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +11 -12
- package/dist/commands/navigate.d.ts.map +1 -1
- package/dist/commands/navigate.js +79 -73
- package/dist/commands/observe-accessibility.d.ts.map +1 -1
- package/dist/commands/observe-accessibility.js +36 -2
- package/dist/commands/observe-inventory.d.ts +50 -7
- package/dist/commands/observe-inventory.d.ts.map +1 -1
- package/dist/commands/observe-inventory.js +822 -99
- package/dist/commands/observe-persistence.d.ts.map +1 -1
- package/dist/commands/observe-persistence.js +49 -6
- package/dist/commands/observe-projection.d.ts +6 -2
- package/dist/commands/observe-projection.d.ts.map +1 -1
- package/dist/commands/observe-projection.js +251 -27
- package/dist/commands/observe-semantics.d.ts +1 -0
- package/dist/commands/observe-semantics.d.ts.map +1 -1
- package/dist/commands/observe-semantics.js +541 -135
- package/dist/commands/observe-signals.d.ts +4 -4
- package/dist/commands/observe-signals.d.ts.map +1 -1
- package/dist/commands/observe-signals.js +2 -2
- package/dist/commands/observe-surfaces.d.ts +2 -1
- package/dist/commands/observe-surfaces.d.ts.map +1 -1
- package/dist/commands/observe-surfaces.js +143 -45
- package/dist/commands/observe.d.ts +5 -1
- package/dist/commands/observe.d.ts.map +1 -1
- package/dist/commands/observe.js +266 -274
- package/dist/commands/screenshot.d.ts.map +1 -1
- package/dist/commands/screenshot.js +50 -64
- package/dist/commands/semantic-observe.d.ts.map +1 -1
- package/dist/commands/semantic-observe.js +43 -0
- package/dist/library.d.ts +3 -1
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +3 -1
- package/dist/match-resolve-fill.d.ts +196 -0
- package/dist/match-resolve-fill.d.ts.map +1 -0
- package/dist/match-resolve-fill.js +700 -0
- package/dist/match-resolve-fill.test-support.d.ts +34 -0
- package/dist/match-resolve-fill.test-support.d.ts.map +1 -0
- package/dist/match-resolve-fill.test-support.js +81 -0
- package/dist/protected-fill.d.ts.map +1 -1
- package/dist/protected-fill.js +46 -7
- package/dist/runtime-protected-state.d.ts.map +1 -1
- package/dist/runtime-protected-state.js +12 -0
- package/dist/runtime-state.d.ts +6 -0
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +6 -0
- package/dist/secrets/form-matcher.d.ts.map +1 -1
- package/dist/secrets/form-matcher.js +76 -27
- package/dist/secrets/protected-exact-value-redaction.d.ts.map +1 -1
- package/dist/secrets/protected-exact-value-redaction.js +6 -0
- package/dist/secrets/protected-fill.js +3 -3
- package/dist/session.d.ts +3 -3
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +2 -2
- package/dist/solver/browser-launcher.d.ts.map +1 -1
- package/dist/solver/browser-launcher.js +2 -1
- package/dist/sticky-owner-host-entry.d.ts +2 -0
- package/dist/sticky-owner-host-entry.d.ts.map +1 -0
- package/dist/sticky-owner-host-entry.js +97 -0
- package/dist/sticky-owner.d.ts +15 -0
- package/dist/sticky-owner.d.ts.map +1 -0
- package/dist/sticky-owner.js +431 -0
- package/dist/testing.d.ts +1 -0
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +1 -0
- package/docs/README.md +28 -11
- package/docs/api-reference.md +311 -19
- package/docs/assistive-runtime.md +41 -16
- package/docs/configuration.md +36 -4
- package/docs/getting-started.md +73 -5
- package/docs/integration-checklist.md +32 -3
- package/docs/match-resolve-fill.md +699 -0
- package/docs/protected-fill.md +373 -91
- package/docs/testing.md +147 -15
- package/docs/troubleshooting.md +47 -6
- package/examples/README.md +7 -0
- package/examples/match-resolve-fill.ts +107 -0
- package/package.json +4 -2
- package/dist/protected-fill-browser.d.ts +0 -22
- package/dist/protected-fill-browser.d.ts.map +0 -1
- package/dist/protected-fill-browser.js +0 -52
|
@@ -13,9 +13,38 @@ integration.
|
|
|
13
13
|
- use `observeResult.targets` as the default flat inventory
|
|
14
14
|
- use `target.ref` as the input to `act(...)`
|
|
15
15
|
- pass a plain schema object or a Zod schema to `extract(...)`
|
|
16
|
-
- branch on stable top-level `error` codes, not on `reason`
|
|
16
|
+
- branch on stable top-level `error` codes, not on `reason` — the
|
|
17
|
+
per-command list lives in
|
|
18
|
+
[`api-reference.md` → Error codes by command](./api-reference.md#error-codes-by-command)
|
|
17
19
|
- treat `reason` as human-readable diagnostics, not as a stable switch key
|
|
18
20
|
|
|
21
|
+
## Match / Resolve / Fill
|
|
22
|
+
|
|
23
|
+
- branch on `match(...)` result `kind` — never infer from the presence
|
|
24
|
+
of individual fields on the result object
|
|
25
|
+
- default match results carry `valueRef` / `artifactRef` strings, not
|
|
26
|
+
raw values; the accessor that dereferences them is a non-enumerable
|
|
27
|
+
symbol on the `ready` result and does not survive JSON serialization
|
|
28
|
+
or `structuredClone`. Do not serialize ready results across process
|
|
29
|
+
boundaries — ship the `needs_resolution` plan instead and let the
|
|
30
|
+
downstream side run `resolve → fill` in one shot
|
|
31
|
+
- the main `AgentbrowseMatchResolver` has a required `resolve` plus
|
|
32
|
+
optional `resolveBatch` and optional `fill`. A narrow
|
|
33
|
+
`AgentbrowseGroupFillHandler` with just `fill` is also accepted in
|
|
34
|
+
the `{ resolver }` slot on `fill(...)` and is the right shape when
|
|
35
|
+
the caller already has a ready grouped artifact and does not fetch
|
|
36
|
+
anything. `resolve(plan, { with })` only accepts the main interface.
|
|
37
|
+
Runtime `fill(...)` returns `match_resolver_required` when the passed
|
|
38
|
+
object lacks a capability the current plan needs
|
|
39
|
+
- batch `resolve([...])` preserves input order — downstream code can
|
|
40
|
+
rebuild the `target → ready` mapping by index
|
|
41
|
+
- use `@mercuryo-ai/agentbrowse/testing` fixture builders
|
|
42
|
+
(`createFixtureMatchStore`, `createFixtureGroupStore`,
|
|
43
|
+
`createFixtureResolver`, `fixtureResolvedValue`,
|
|
44
|
+
`fixtureResolvedArtifact`) in unit tests instead of fabricating match
|
|
45
|
+
results by hand — hand-built results bypass the accessor pattern and
|
|
46
|
+
fail to fill
|
|
47
|
+
|
|
19
48
|
## Assistive Runtime
|
|
20
49
|
|
|
21
50
|
- the assistive runtime adapter receives `args.options`
|
|
@@ -25,8 +54,8 @@ integration.
|
|
|
25
54
|
|
|
26
55
|
## Testing
|
|
27
56
|
|
|
28
|
-
- use `@mercuryo-ai/agentbrowse/testing` for the
|
|
29
|
-
runtime helper
|
|
57
|
+
- use `@mercuryo-ai/agentbrowse/testing` for both the fetch-backed
|
|
58
|
+
assistive runtime helper and the match/resolve/fill fixture builders
|
|
30
59
|
- do not depend on internal fixtures or unexported runtime-state helpers
|
|
31
60
|
|
|
32
61
|
## Packaging
|