@weft-js/cli 0.1.4 → 0.1.5-nightly.20261111.4
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/package.json +3 -3
- package/src/browser/client.mjs +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weft-js/cli",
|
|
3
|
-
"version": "0.1.4",
|
|
3
|
+
"version": "0.1.5-nightly.20261111.4",
|
|
4
4
|
"description": "The weft command: dev, build, check, the agent layer and the MCP server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"node": ">=24"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@weft-js/create": "0.1.4",
|
|
27
|
+
"@weft-js/create": "0.1.5-nightly.20261111.4",
|
|
28
28
|
"axe-core": "4.14.0",
|
|
29
29
|
"typescript": "6.0.3",
|
|
30
30
|
"yaml": "2.9.1",
|
|
31
31
|
"zod": "4.6.7"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@weft-js/core": "^0.1.4"
|
|
34
|
+
"@weft-js/core": "^0.1.5-nightly.20261111.4"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/browser/client.mjs
CHANGED
|
@@ -58,8 +58,11 @@ export async function tabs(root, { url } = {}) {
|
|
|
58
58
|
return { url: base, agent: out.agent, tabs: out.tabs }
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
/** Wait until a tab is connected (after `launch` or `navigate`). */
|
|
62
|
-
export async function waitForTab(
|
|
61
|
+
/** Wait until a tab is connected (after `launch` or `navigate`). WEFT_BROWSER_WAIT_MS lengthens it: a cold Chrome on a busy CI runner can take longer. */
|
|
62
|
+
export async function waitForTab(
|
|
63
|
+
root,
|
|
64
|
+
{ url, ms = Number(process.env.WEFT_BROWSER_WAIT_MS) || 15_000, check } = {},
|
|
65
|
+
) {
|
|
63
66
|
const until = Date.now() + ms
|
|
64
67
|
for (;;) {
|
|
65
68
|
check?.()
|