@wrongstack/cli 1.1.7 → 1.1.8

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.
@@ -10117,6 +10117,17 @@ function emptySessionState(heartbeatIntervalMs) {
10117
10117
  stopAfterTaskIds: /* @__PURE__ */ new Set()
10118
10118
  };
10119
10119
  }
10120
+ function logShadowFailure(event, sessionId, error) {
10121
+ console.warn(
10122
+ JSON.stringify({
10123
+ level: "warn",
10124
+ event: `fleet.${event}`,
10125
+ sessionId,
10126
+ message: error instanceof Error ? error.message : String(error),
10127
+ timestamp: (/* @__PURE__ */ new Date()).toISOString()
10128
+ })
10129
+ );
10130
+ }
10120
10131
  function isDisposable(state) {
10121
10132
  return state.agentId === null && state.observedWorkDepth === 0 && state.autoStartSuppressions === 0 && !state.passInFlight && state.queuedProblem === null && state.outstandingTaskIds.size === 0 && state.stopAfterTaskIds.size === 0;
10122
10133
  }
@@ -10197,7 +10208,10 @@ var HostShadowManager = class {
10197
10208
  const state = this.peek(sessionId);
10198
10209
  state?.outstandingTaskIds.delete(taskId);
10199
10210
  if (state?.stopAfterTaskIds.delete(taskId)) {
10200
- void this.stopShadowAfterTask(subagentId, this.resolve(sessionId));
10211
+ const owner = this.resolve(sessionId);
10212
+ void this.stopShadowAfterTask(subagentId, owner).catch(
10213
+ (error) => logShadowFailure("shadow_stop_failed", owner, error)
10214
+ );
10201
10215
  }
10202
10216
  }
10203
10217
  armIfNeeded() {
@@ -10304,7 +10318,9 @@ var HostShadowManager = class {
10304
10318
  requestShadowPass(reason, sessionId) {
10305
10319
  const id = this.resolve(sessionId);
10306
10320
  queueMicrotask(() => {
10307
- void this.runShadowPass(reason, id);
10321
+ void this.runShadowPass(reason, id).catch(
10322
+ (error) => logShadowFailure("shadow_pass_failed", id, error)
10323
+ );
10308
10324
  });
10309
10325
  }
10310
10326
  async runShadowPass(reason, sessionId) {
@@ -43865,4 +43881,4 @@ export {
43865
43881
  CLI_VERSION,
43866
43882
  runInteractive
43867
43883
  };
43868
- //# sourceMappingURL=cli-main-BPYX7AC6.js.map
43884
+ //# sourceMappingURL=cli-main-MBWZX6PH.js.map
package/dist/index.js CHANGED
@@ -144,7 +144,7 @@ async function main(argv) {
144
144
  } else {
145
145
  startupOutput.stop();
146
146
  }
147
- const { runInteractive } = await import("./cli-main-BPYX7AC6.js");
147
+ const { runInteractive } = await import("./cli-main-MBWZX6PH.js");
148
148
  return await runInteractive(cliCtx);
149
149
  } finally {
150
150
  startupOutput.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/cli",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack CLI — terminal AI coding agent with provider catalog from models.dev. Provides `wrongstack` and `wstack` binaries.",
6
6
  "keywords": [