fwdloop 0.35.0 → 0.35.2
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 +1 -1
- package/src/pagefetch.js +1 -1
- package/src/panel/index.html +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fwdloop",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.2",
|
|
4
4
|
"description": "Describe a job as steps and guardrails; an agent builds the workflow, pauses for humans where you said, checks every step happened, and reruns it under budgets it cannot touch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
package/src/pagefetch.js
CHANGED
|
@@ -156,7 +156,7 @@ export async function fetchPageText(url, { connect, timeoutMs = PAGE_FETCH_TIMEO
|
|
|
156
156
|
]);
|
|
157
157
|
if (text && typeof text === 'object' && 'refused' in text) return { ok: false, error: String(text.refused) };
|
|
158
158
|
if (typeof text !== 'string') return { ok: false, error: `${u.href} did not come back as text` };
|
|
159
|
-
if (/\[BOT CHALLENGE DETECTED\]/.test(text)) return { ok: false, error: `${u.href} asked for a human check (a bot challenge), so the page could not be read` };
|
|
159
|
+
if (/\[BOT CHALLENGE DETECTED[\] ]/.test(text)) return { ok: false, error: `${u.href} asked for a human check (a bot challenge), so the page could not be read` };
|
|
160
160
|
const size = text.trim().length;
|
|
161
161
|
if (size < MIN_PAGE_CHARS) return { ok: false, error: `${u.href} came back with ${size === 0 ? 'no text' : `only ${size} characters of text`} (less than ${MIN_PAGE_CHARS}) - the page did not load, or holds nothing to read` };
|
|
162
162
|
if (pageContentChars(text) < MIN_CONTENT_CHARS) return { ok: false, error: `${u.href} came back with only the site's own header and menus - the page did not load its content, so there is nothing to read` };
|
package/src/panel/index.html
CHANGED
|
@@ -3078,7 +3078,12 @@
|
|
|
3078
3078
|
var verdict = document.getElementById("active-wf-verdict");
|
|
3079
3079
|
var date = document.getElementById("active-wf-date");
|
|
3080
3080
|
|
|
3081
|
-
if(detail.signWords)
|
|
3081
|
+
if(detail.signWords){
|
|
3082
|
+
var wordsChanged = JSON.stringify(detail.signWords) !== JSON.stringify(signWords);
|
|
3083
|
+
signWords = detail.signWords;
|
|
3084
|
+
// the audit reply can land before this detail: the groups it painted had no sign words, and the poll skips an unchanged audit
|
|
3085
|
+
if(wordsChanged && lastAuditResult) renderAudit(lastAuditResult);
|
|
3086
|
+
}
|
|
3082
3087
|
name.textContent = detail.flow + " (" + detail.runId + ")";
|
|
3083
3088
|
dot.className = dotClass(detail.glyph, detail.pulse);
|
|
3084
3089
|
verdict.innerHTML = signHtml(detail.word, detail.line, detail.label);
|