@stratusagent/tool-browser 0.11.8 → 0.11.10
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 +8 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -82,11 +82,16 @@ speaks: the **origin of the page the conversation is on**.
|
|
|
82
82
|
|
|
83
83
|
```jsonc
|
|
84
84
|
// ~/.stratus/agents/blair/whitelist.json — in the agent's own directory, 0600
|
|
85
|
-
{ "version": 1, "scopes": [], "origins": [{ "origin": "https://app.example.com" }] }
|
|
85
|
+
{ "version": 1, "scopes": [], "origins": [{ "origin": "https://app.example.com", "tool": "browser.act" }] }
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
Name the tool. A grant without `tool` covers every tool judged by site,
|
|
89
|
+
`web.fetch` included, which is how a grant written before grants named a
|
|
90
|
+
tool keeps working, and not what a hand-written browser grant should mean.
|
|
91
|
+
|
|
92
|
+
`Tool.originFor` is how the tool answers. It is handed the call's input,
|
|
93
|
+
because `web.fetch` is judged by the URL it was asked for, but the browser
|
|
94
|
+
deliberately **ignores** it. An origin parameter would be the model's claim
|
|
90
95
|
about where it is, which is precisely what a grant must not take on trust;
|
|
91
96
|
the pool already tracks a page per conversation, so the origin comes from
|
|
92
97
|
there. A conversation that has not navigated has no origin, so nothing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratusagent/tool-browser",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"playwright-core": "^1.49.0",
|
|
22
|
-
"@stratusagent/core": "0.11.
|
|
23
|
-
"@stratusagent/egress": "0.11.
|
|
24
|
-
"@stratusagent/plugins": "0.11.
|
|
22
|
+
"@stratusagent/core": "0.11.10",
|
|
23
|
+
"@stratusagent/egress": "0.11.10",
|
|
24
|
+
"@stratusagent/plugins": "0.11.10"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^24.6.0",
|
|
28
28
|
"typescript": "^5.9.3",
|
|
29
|
-
"@stratusagent/tool-web": "0.11.
|
|
29
|
+
"@stratusagent/tool-web": "0.11.10"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"repository": {
|