aether-browser 0.1.0-rc.1 → 0.1.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/README.md +2 -2
- package/package.json +1 -1
- package/src/index.js +7 -1
package/README.md
CHANGED
|
@@ -117,8 +117,8 @@ rejects unknown fields.
|
|
|
117
117
|
|
|
118
118
|
## Status
|
|
119
119
|
|
|
120
|
-
`0.1.0
|
|
121
|
-
|
|
120
|
+
`0.1.0` tracks Agent Browser `v0.1.0` and its `api_version: "v1"` contract, and is released
|
|
121
|
+
version for version with the PyPI client. Issues and design discussion are welcome on
|
|
122
122
|
[the repository](https://github.com/AetherAI3/agent-browser/issues).
|
|
123
123
|
|
|
124
124
|
Apache-2.0 · [Aether AI](https://github.com/AetherAI3)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aether-browser",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Client and CLI for Agent Browser by Aether AI: drive one self-hosted Chrome session over a closed HTTP API and watch or take over that same session through noVNC.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Aether AI",
|
package/src/index.js
CHANGED
|
@@ -75,8 +75,14 @@ function compact(object) {
|
|
|
75
75
|
return out
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// Trailing slashes are trimmed by scanning rather than with /\/+$/, which backtracks
|
|
79
|
+
// polynomially on a long run of slashes. The base URL is normally the developer's own
|
|
80
|
+
// config, but a linear scan costs nothing and removes the failure mode outright.
|
|
78
81
|
function normalizeBaseUrl(value) {
|
|
79
|
-
|
|
82
|
+
const text = String(value)
|
|
83
|
+
let end = text.length
|
|
84
|
+
while (end > 0 && text.charCodeAt(end - 1) === 0x2f) end -= 1
|
|
85
|
+
return text.slice(0, end)
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
/**
|