instar 1.3.45 → 1.3.47

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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+RH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAyrNtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA+RH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAksNtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
@@ -4792,7 +4792,15 @@ export async function startServer(options) {
4792
4792
  // Phase 1C of GRACEFUL_UPDATES: reduce noise for routine maintenance.
4793
4793
  const runningSessions = sessionManager.listRunningSessions();
4794
4794
  if (runningSessions.length > 0) {
4795
- notify('IMMEDIATE', 'system', `Applying update to v${request.targetVersion} — restarting now. Active sessions will resume automatically.`);
4795
+ // Route the pre-restart heads-up to the dedicated Agent Updates
4796
+ // topic, not the central-notify default (Attention). Every other
4797
+ // update-class emitter (AutoUpdater, AutoDispatcher, the restart
4798
+ // handshake, /telegram/post-update) routes here; this caller was
4799
+ // the lone path going to Attention. Falls through to the central
4800
+ // default when Updates is unset, preserving prior behavior for
4801
+ // agents without an Updates topic.
4802
+ const updatesTopicId = state.get('agent-updates-topic') || undefined;
4803
+ notify('IMMEDIATE', 'system', `Applying update to v${request.targetVersion} — restarting now. Active sessions will resume automatically.`, updatesTopicId);
4796
4804
  }
4797
4805
  else {
4798
4806
  console.log(`[ForegroundRestartWatcher] Silent restart — no active sessions (v${request.previousVersion} → v${request.targetVersion})`);