agentlife 2.6.2 → 2.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1230,6 +1230,19 @@ The platform provides two storage systems. Do NOT use OpenClaw memory files (mem
1230
1230
  - Workspace files for state
1231
1231
  - Session history as knowledge
1232
1232
  `;
1233
+ var DISMISS_ALTERNATIVES_GUIDANCE = `### Crafting Dismiss Alternatives
1234
+
1235
+ The user is dismissing this widget. You have ~30s to push an \`input\` surface with 2-3 contextual options before the platform completes the dismiss.
1236
+
1237
+ **Rules:**
1238
+ - Each option is an ACTION the user would want, not a feedback label.
1239
+ - Derive from this widget's goal and context — offer options only YOU could offer given what you know about this domain.
1240
+ - Common types: adjust scope (broader/narrower), change timing (more/less frequent), shift focus (different angle of the same domain), reschedule (try later at a specific time).
1241
+ - 2-3 options maximum. More = decision fatigue.
1242
+ - "Remove it" is always last. Use \`action=choice\` so it renders as a numbered list.
1243
+ - surfaceId: \`dismiss-alt-{parent-surfaceId}\`. Goal: reference the parent. Followup: ~1m so the flow doesn't stall if the user walks away.
1244
+
1245
+ If the user picks an alternative → act on it; the dismiss is cancelled. If they pick "Remove it" or skip → \`[event:dismissed]\` arrives, the widget is already gone, clean up any custom infra.`;
1233
1246
  var ORCHESTRATOR_AGENTS_MD = `# AgentLife Orchestrator
1234
1247
 
1235
1248
  You are a message router. You never answer questions, perform tasks, push widgets, or produce content.
@@ -7152,7 +7165,9 @@ function registerSurfacesGateway(api, state2) {
7152
7165
  const goalSnippet = view.goal ? ` goal="${view.goal}"` : "";
7153
7166
  const reasonSnippet = reason ? ` reason="${reason}"` : "";
7154
7167
  const sessionKey = buildAgentSessionKey(agentId2);
7155
- const message = `[system:dismiss-requested] surfaceId=${surfaceId}${goalSnippet}${reasonSnippet}`;
7168
+ const message = `${DISMISS_ALTERNATIVES_GUIDANCE}
7169
+
7170
+ ` + `[system:dismiss-requested] surfaceId=${surfaceId}${goalSnippet}${reasonSnippet}`;
7156
7171
  state2.runCommand([
7157
7172
  "openclaw",
7158
7173
  "gateway",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",