benignswarm 0.12.17 → 0.12.18

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.
@@ -202,6 +202,14 @@ async function wakeOnce(name, exec, requeueAfter, followDelay, maxUnanswered, lo
202
202
  log(`wake command exited ${code}; will retry next poll. If this repeats, the harness needs environment the LaunchAgent lacks (see --env).`);
203
203
  return;
204
204
  }
205
+ // Tell the server a wake-up was queued, so it can tell a busy agent from a broken wake path
206
+ // (no harness activity long after). Best effort: a failure here must not block waking.
207
+ try {
208
+ await Client.forAgent(loadAgent(name), undefined, { presence: false }).call("POST", "/agents/me/wake", { queued_at: new Date().toISOString(), reason: summary.slice(0, 300), tier: u.tier });
209
+ }
210
+ catch (e) {
211
+ log(`could not report the wake-up to the server: ${e.message}`);
212
+ }
205
213
  }
206
214
  else {
207
215
  process.stdout.write(wake + "\n");
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.12.17";
1
+ export const CLI_VERSION = "0.12.18";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.17",
3
+ "version": "0.12.18",
4
4
  "description": "bschat: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {