@quantiya/codevibe-antigravity-plugin 1.0.8 → 1.0.9

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/server.js +22 -16
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -2901,7 +2901,13 @@ var McpServer = class {
2901
2901
  (0, import_codevibe_core4.startDeviceKeyWatcher)(this.appSyncClient, logger);
2902
2902
  try {
2903
2903
  const swept = await this.appSyncClient.sweepOrphanSessions({
2904
- agentType: "ANTIGRAVITY"
2904
+ agentType: "ANTIGRAVITY",
2905
+ // 6 min (core default is 15 min). A live daemon heartbeats every
2906
+ // 2 min, so a session stale >6 min has missed 3 beats and is
2907
+ // provably dead — safe to reap without false-positiving a
2908
+ // concurrently-running agy wrapper, while catching orphans on the
2909
+ // next start sooner. (agy orphaned-session fix 2026-05-31.)
2910
+ staleThresholdMs: 6 * 60 * 1e3
2905
2911
  });
2906
2912
  if (swept > 0) {
2907
2913
  logger.info("Orphan sweep: marked stale Antigravity sessions INACTIVE", { swept });
@@ -2966,16 +2972,6 @@ var McpServer = class {
2966
2972
  }
2967
2973
  async doStop() {
2968
2974
  this.started = false;
2969
- try {
2970
- await this.transcriptTailer.stop();
2971
- } catch (err) {
2972
- logger.warn("transcriptTailer.stop failed", { error: String(err) });
2973
- }
2974
- try {
2975
- await this.paneObserver.stop();
2976
- } catch (err) {
2977
- logger.warn("paneObserver.stop failed", { error: String(err) });
2978
- }
2979
2975
  if (this.subscription) {
2980
2976
  try {
2981
2977
  this.subscription();
@@ -2990,8 +2986,11 @@ var McpServer = class {
2990
2986
  }
2991
2987
  }
2992
2988
  this.listenerHandles = [];
2993
- this.unregisterSignalHandlers();
2994
2989
  if (this.session) {
2990
+ try {
2991
+ this.appSyncClient.stopHeartbeat(this.session.sessionId);
2992
+ } catch {
2993
+ }
2995
2994
  try {
2996
2995
  await this.appSyncClient.updateSession({
2997
2996
  sessionId: this.session.sessionId,
@@ -3003,10 +3002,17 @@ var McpServer = class {
3003
3002
  error: String(err)
3004
3003
  });
3005
3004
  }
3006
- try {
3007
- this.appSyncClient.stopHeartbeat(this.session.sessionId);
3008
- } catch {
3009
- }
3005
+ }
3006
+ this.unregisterSignalHandlers();
3007
+ try {
3008
+ await this.transcriptTailer.stop();
3009
+ } catch (err) {
3010
+ logger.warn("transcriptTailer.stop failed", { error: String(err) });
3011
+ }
3012
+ try {
3013
+ await this.paneObserver.stop();
3014
+ } catch (err) {
3015
+ logger.warn("paneObserver.stop failed", { error: String(err) });
3010
3016
  }
3011
3017
  try {
3012
3018
  await this.approvalDetector.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-antigravity-plugin",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Control Antigravity CLI from your iPhone and Android — real-time sync, approve file edits, send prompts by voice. Part of CodeVibe.",
5
5
  "main": "dist/server.js",
6
6
  "bin": {