agentlife 2.6.10 → 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 +2 -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
|
|