agentlife 2.6.9 → 2.6.11
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 +8 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1129,28 +1129,9 @@ context: <JSON — lookup keys: DB tables, date ranges, phase, config>
|
|
|
1129
1129
|
|
|
1130
1130
|
### Two-Phase Push — Loading Then Final
|
|
1131
1131
|
|
|
1132
|
-
Phase 1 — your FIRST tool call on every turn. Before any search, fetch, exec, or db call:
|
|
1132
|
+
Phase 1 — your FIRST tool call on every turn. Before any search, fetch, exec, or db call, push a widget with \`state=loading\` in the header. That attribute is the only rule: it triggers the animated border on the dashboard so the user sees "work in progress." Everything else — size, layout, what the face shows, even whether it's a brand-new surface or a reused one — is your call. Match the feel of the domain: a data fetch can show a progress bar, a long exec can list steps, a quick lookup can be one line.
|
|
1133
1133
|
|
|
1134
|
-
|
|
1135
|
-
surface <id> size=s state=loading
|
|
1136
|
-
card
|
|
1137
|
-
column
|
|
1138
|
-
text "<short description of what you are doing>" body
|
|
1139
|
-
\`\`\`
|
|
1140
|
-
|
|
1141
|
-
Phase 2 — your LAST tool call. Same surfaceId, without state=loading:
|
|
1142
|
-
|
|
1143
|
-
\`\`\`
|
|
1144
|
-
surface <id> size=m
|
|
1145
|
-
card
|
|
1146
|
-
column
|
|
1147
|
-
<face: metrics, badges, gauges — 2-second glance only>
|
|
1148
|
-
goal: <the user's objective — NOT the action you performed>
|
|
1149
|
-
detail:
|
|
1150
|
-
<full markdown: paragraphs, tables, lists, analysis>
|
|
1151
|
-
followup: +<duration> "<next step — specific action based on current data>"
|
|
1152
|
-
context: {"key": "value"}
|
|
1153
|
-
\`\`\`
|
|
1134
|
+
Phase 2 — your LAST tool call. Same surfaceId, without \`state=loading\`, with the real result (face, goal, detail, followup, context). See TOOLS.md for DSL structure.
|
|
1154
1135
|
|
|
1155
1136
|
A loading push without a final push = perpetual spinner.
|
|
1156
1137
|
|
|
@@ -1656,6 +1637,12 @@ async function provisionAgents(state, cfg, runtime, log) {
|
|
|
1656
1637
|
log(`[agentlife] backfilled subagents for ${agent.id}`);
|
|
1657
1638
|
}
|
|
1658
1639
|
}
|
|
1640
|
+
for (const agent of currentList) {
|
|
1641
|
+
const workspace = agent?.workspace || "";
|
|
1642
|
+
if (!workspace)
|
|
1643
|
+
continue;
|
|
1644
|
+
await fs3.unlink(path4.join(workspace, "BOOTSTRAP.md")).catch(() => {});
|
|
1645
|
+
}
|
|
1659
1646
|
const configPath = path4.join(os.homedir(), ".openclaw", "openclaw.json");
|
|
1660
1647
|
const rawCfgForVisibility = JSON.parse(readFileSync2(configPath, "utf-8"));
|
|
1661
1648
|
const backupPath = path4.join(os.homedir(), ".openclaw", "agentlife", "config-backup.json");
|