@mjasnikovs/pi-task 0.18.11 → 0.18.12
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/dist/task/final-gate.js +5 -2
- package/package.json +1 -1
package/dist/task/final-gate.js
CHANGED
|
@@ -172,9 +172,12 @@ export function discoverBootCommand(cwd) {
|
|
|
172
172
|
function isAddressInUse(text) {
|
|
173
173
|
return /EADDRINUSE|address already in use|address in use|port \d+ (?:is |already )?in use/i.test(text);
|
|
174
174
|
}
|
|
175
|
-
/** Best-effort port number from a bind-failure message, for the diagnosis line.
|
|
175
|
+
/** Best-effort port number from a bind-failure message, for the diagnosis line. The
|
|
176
|
+
* digit run ends on any non-digit (a `(?!\d)` lookahead, NOT `\b`): runtimes often
|
|
177
|
+
* print ":3000" flush against the next token with no separating space/newline
|
|
178
|
+
* ("…:3000error: script exited"), where a trailing `\b` would never match. */
|
|
176
179
|
function extractPort(text) {
|
|
177
|
-
const m = /(?:port|:)\s*(\d{2,5})
|
|
180
|
+
const m = /(?:port|:)\s*(\d{2,5})(?!\d)/i.exec(text) ?? /\baddress[^0-9]*(\d{2,5})(?!\d)/i.exec(text);
|
|
178
181
|
if (!m)
|
|
179
182
|
return null;
|
|
180
183
|
const n = Number(m[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjasnikovs/pi-task",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.12",
|
|
4
4
|
"description": "Deterministic task planning and spec-orchestration for local models — crash-safe /task pipelines with verify/enforce gates, a real-time remote web view, and web/docs/fetch/worker subagent tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|