agentlife 1.3.0 → 1.3.1
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/index.js +9 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1679,7 +1679,7 @@ async function ensureVisionPosters(state, runtime, log, options = {}) {
|
|
|
1679
1679
|
const now = Date.now();
|
|
1680
1680
|
if (now - lastBootstrapSentAt < BOOTSTRAP_COOLDOWN_MS) {
|
|
1681
1681
|
log(`[agentlife] ensureVisionPosters: skipped — bootstrap cooldown (${Math.round((BOOTSTRAP_COOLDOWN_MS - (now - lastBootstrapSentAt)) / 1000)}s remaining)`);
|
|
1682
|
-
return { status: "skipped", reason: "
|
|
1682
|
+
return { status: "skipped", reason: "cooldown", details: `${Math.round((BOOTSTRAP_COOLDOWN_MS - (now - lastBootstrapSentAt)) / 1000)}s remaining` };
|
|
1683
1683
|
}
|
|
1684
1684
|
const builderKey = buildAgentSessionKey("agentlife-builder");
|
|
1685
1685
|
const bootstrapMsg = [
|
|
@@ -4290,9 +4290,10 @@ function extractCronTitle(meta) {
|
|
|
4290
4290
|
const headingLine = meta.lines.find((l) => /^\s*text\s+"[^"]+"\s+h[1-4]/.test(l));
|
|
4291
4291
|
if (headingLine)
|
|
4292
4292
|
return headingLine.match(/text\s+"([^"]+)"/)?.[1] ?? null;
|
|
4293
|
-
const goalLine = meta.lines.find((l) => /^\s*goal
|
|
4294
|
-
if (goalLine)
|
|
4295
|
-
return goalLine.match(/goal
|
|
4293
|
+
const goalLine = meta.lines.find((l) => /^\s*goal:?\s+"[^"]+"/.test(l) || /^\s*goal:\s+\S/.test(l));
|
|
4294
|
+
if (goalLine) {
|
|
4295
|
+
return goalLine.match(/goal:?\s+"([^"]+)"/)?.[1] ?? goalLine.match(/goal:\s+(.+)/)?.[1]?.trim() ?? null;
|
|
4296
|
+
}
|
|
4296
4297
|
const textLine = meta.lines.find((l) => /^\s*text\s+"[^"]+"/.test(l));
|
|
4297
4298
|
if (textLine)
|
|
4298
4299
|
return textLine.match(/text\s+"([^"]+)"/)?.[1] ?? null;
|
|
@@ -5808,9 +5809,10 @@ function extractWidgetText(meta) {
|
|
|
5808
5809
|
const headingLine = meta.lines.find((l) => /^\s*text\s+"[^"]+"\s+h[1-4]/.test(l));
|
|
5809
5810
|
if (headingLine)
|
|
5810
5811
|
return headingLine.match(/text\s+"([^"]+)"/)?.[1] ?? null;
|
|
5811
|
-
const goalLine = meta.lines.find((l) => /^\s*goal
|
|
5812
|
-
if (goalLine)
|
|
5813
|
-
return goalLine.match(/goal
|
|
5812
|
+
const goalLine = meta.lines.find((l) => /^\s*goal:?\s+"[^"]+"/.test(l) || /^\s*goal:\s+\S/.test(l));
|
|
5813
|
+
if (goalLine) {
|
|
5814
|
+
return goalLine.match(/goal:?\s+"([^"]+)"/)?.[1] ?? goalLine.match(/goal:\s+(.+)/)?.[1]?.trim() ?? null;
|
|
5815
|
+
}
|
|
5814
5816
|
const textLine = meta.lines.find((l) => /^\s*text\s+"[^"]+"/.test(l));
|
|
5815
5817
|
if (textLine)
|
|
5816
5818
|
return textLine.match(/text\s+"([^"]+)"/)?.[1] ?? null;
|