@hearsay-tools/squawk 0.18.0-pr4069.7774 → 0.18.0-pr4070.7775

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 (147) hide show
  1. package/dist/ci-wait/controller.d.ts +4 -4
  2. package/dist/cli-dispatch.js +1 -2
  3. package/dist/cli-dispatch.js.map +1 -1
  4. package/dist/contract/index.js +1 -2
  5. package/dist/core/backend-detect.js +3 -3
  6. package/dist/core/backend-detect.js.map +1 -1
  7. package/dist/core/runner-definition.d.ts +1 -8
  8. package/dist/core/runner-definition.js.map +1 -1
  9. package/dist/delegation/routes.d.ts +15 -15
  10. package/dist/runners/acp/events.d.ts +0 -15
  11. package/dist/runners/acp/events.js +2 -58
  12. package/dist/runners/acp/events.js.map +1 -1
  13. package/dist/runners/acp/protocol.d.ts +2 -10
  14. package/dist/runners/acp/session.d.ts +3 -11
  15. package/dist/runners/acp/session.js +16 -48
  16. package/dist/runners/acp/session.js.map +1 -1
  17. package/dist/runners/antigravity/account-home.js +1 -1
  18. package/dist/runners/antigravity/account-home.js.map +1 -1
  19. package/dist/runners/antigravity/accounts.d.ts +1 -1
  20. package/dist/runners/antigravity/accounts.js +1 -1
  21. package/dist/runners/antigravity/accounts.js.map +1 -1
  22. package/dist/runners/antigravity/antigravity-model-catalog.d.ts +2 -4
  23. package/dist/runners/antigravity/antigravity-model-catalog.js +20 -25
  24. package/dist/runners/antigravity/antigravity-model-catalog.js.map +1 -1
  25. package/dist/runners/antigravity/antigravity-runner.d.ts +6 -6
  26. package/dist/runners/antigravity/antigravity-runner.js +2 -3
  27. package/dist/runners/antigravity/antigravity-runner.js.map +1 -1
  28. package/dist/runners/antigravity/antigravity-session.d.ts +2 -27
  29. package/dist/runners/antigravity/antigravity-session.js +96 -204
  30. package/dist/runners/antigravity/antigravity-session.js.map +1 -1
  31. package/dist/runners/antigravity/antigravity-skill-catalog.d.ts +2 -2
  32. package/dist/runners/antigravity/antigravity-skill-catalog.js +4 -6
  33. package/dist/runners/antigravity/antigravity-skill-catalog.js.map +1 -1
  34. package/dist/runners/antigravity/antigravity-ui-mapper.d.ts +3 -5
  35. package/dist/runners/antigravity/antigravity-ui-mapper.js +12 -27
  36. package/dist/runners/antigravity/antigravity-ui-mapper.js.map +1 -1
  37. package/dist/runners/antigravity/browser-sign-in.d.ts +2 -8
  38. package/dist/runners/antigravity/browser-sign-in.js +122 -100
  39. package/dist/runners/antigravity/browser-sign-in.js.map +1 -1
  40. package/dist/runners/antigravity/build-label.d.ts +2 -0
  41. package/dist/runners/antigravity/build-label.js +32 -0
  42. package/dist/runners/antigravity/build-label.js.map +1 -0
  43. package/dist/runners/antigravity/catalog-home.d.ts +2 -0
  44. package/dist/runners/antigravity/catalog-home.js +23 -0
  45. package/dist/runners/antigravity/catalog-home.js.map +1 -0
  46. package/dist/runners/antigravity/definition.js +2 -3
  47. package/dist/runners/antigravity/definition.js.map +1 -1
  48. package/dist/runners/antigravity/detection.d.ts +4 -6
  49. package/dist/runners/antigravity/detection.js +5 -8
  50. package/dist/runners/antigravity/detection.js.map +1 -1
  51. package/dist/runners/antigravity/display.d.ts +3 -3
  52. package/dist/runners/antigravity/display.js +2 -2
  53. package/dist/runners/antigravity/display.js.map +1 -1
  54. package/dist/runners/antigravity/facts.d.ts +4 -4
  55. package/dist/runners/antigravity/facts.js +5 -10
  56. package/dist/runners/antigravity/facts.js.map +1 -1
  57. package/dist/runners/antigravity/launch-args.d.ts +2 -4
  58. package/dist/runners/antigravity/launch-args.js +4 -5
  59. package/dist/runners/antigravity/launch-args.js.map +1 -1
  60. package/dist/runners/antigravity/login-probe.d.ts +1 -6
  61. package/dist/runners/antigravity/login-probe.js +19 -41
  62. package/dist/runners/antigravity/login-probe.js.map +1 -1
  63. package/dist/runners/antigravity/login.d.ts +1 -1
  64. package/dist/runners/antigravity/login.js +1 -1
  65. package/dist/runners/antigravity/login.js.map +1 -1
  66. package/dist/runners/antigravity/mock.d.ts +13 -24
  67. package/dist/runners/antigravity/mock.js +15 -19
  68. package/dist/runners/antigravity/mock.js.map +1 -1
  69. package/dist/runners/antigravity/native-diagnostics.d.ts +2 -3
  70. package/dist/runners/antigravity/native-diagnostics.js +6 -9
  71. package/dist/runners/antigravity/native-diagnostics.js.map +1 -1
  72. package/dist/runners/antigravity/permissions.d.ts +3 -2
  73. package/dist/runners/antigravity/permissions.js +32 -1
  74. package/dist/runners/antigravity/permissions.js.map +1 -1
  75. package/dist/runners/antigravity/probe-process.d.ts +1 -4
  76. package/dist/runners/antigravity/probe-process.js +5 -21
  77. package/dist/runners/antigravity/probe-process.js.map +1 -1
  78. package/dist/runners/antigravity/runtime-env.d.ts +3 -4
  79. package/dist/runners/antigravity/runtime-env.js +26 -14
  80. package/dist/runners/antigravity/runtime-env.js.map +1 -1
  81. package/dist/runners/antigravity/spec-support.js +8 -8
  82. package/dist/runners/antigravity/spec-support.js.map +1 -1
  83. package/dist/runners/antigravity/stderr.d.ts +2 -0
  84. package/dist/runners/antigravity/stderr.js +15 -0
  85. package/dist/runners/antigravity/stderr.js.map +1 -0
  86. package/dist/runners/antigravity/tool-normalization.d.ts +2 -6
  87. package/dist/runners/antigravity/tool-normalization.js +12 -23
  88. package/dist/runners/antigravity/tool-normalization.js.map +1 -1
  89. package/dist/runners/antigravity/wire-updates.d.ts +1 -14
  90. package/dist/runners/antigravity/wire-updates.js +6 -21
  91. package/dist/runners/antigravity/wire-updates.js.map +1 -1
  92. package/dist/runs/lifecycle.d.ts +1 -1
  93. package/dist/runs/ports.d.ts +0 -11
  94. package/dist/runs/store.d.ts +2 -3
  95. package/dist/runs/store.js +5 -22
  96. package/dist/runs/store.js.map +1 -1
  97. package/dist/server/activity-routes.d.ts +23 -23
  98. package/dist/server/live-routes.d.ts +6 -6
  99. package/dist/server/project-context.js +3 -3
  100. package/dist/server/project-context.js.map +1 -1
  101. package/dist/server/provider-sign-in-routes.js +1 -1
  102. package/dist/server/provider-sign-in-routes.js.map +1 -1
  103. package/dist/server/runners-routes.d.ts +10 -10
  104. package/dist/server/server.d.ts +238 -238
  105. package/package.json +4 -4
  106. package/scripts/mock-acp.mjs +79 -128
  107. package/scripts/mock-antigravity-auth.mjs +37 -39
  108. package/web/dist/assets/{activity-motion-CMaQA87f.js → activity-motion-BSsgWgJe.js} +1 -1
  109. package/web/dist/assets/{activity-route-CTJT4zv2.js → activity-route-q9sOR4Wb.js} +1 -1
  110. package/web/dist/assets/{commit-diff-panel-BoK-qLXZ.js → commit-diff-panel-Btiebm6D.js} +1 -1
  111. package/web/dist/assets/{diff-BHFOGiZQ.js → diff-DNIkChMc.js} +2 -2
  112. package/web/dist/assets/{diff-view-BcEpsdxN.js → diff-view-jhjgH27W.js} +1 -1
  113. package/web/dist/assets/{file-preview-DQmUdQku.js → file-preview-De5UjJTG.js} +1 -1
  114. package/web/dist/assets/{git-toolbar-CIMGnrx-.js → git-toolbar-Ol1142ti.js} +1 -1
  115. package/web/dist/assets/{github-DNt7fatG.js → github-BylUlaAL.js} +1 -1
  116. package/web/dist/assets/{global-activity-route-DvJfgzVz.js → global-activity-route-DI3QqvQL.js} +1 -1
  117. package/web/dist/assets/{index-Bcs60T3F.js → index-Dbb0-RtK.js} +4 -4
  118. package/web/dist/assets/{markdown-C78nwKGh.js → markdown-D3aDM4O5.js} +1 -1
  119. package/web/dist/assets/{preview-pane-connected-DAkxP33O.js → preview-pane-connected-C-f5rJGZ.js} +1 -1
  120. package/web/dist/assets/{repo-git-DTINuV7R.js → repo-git-D-j1tyQj.js} +1 -1
  121. package/web/dist/assets/{report-reader-TsL5jS1q.js → report-reader-0-k8FTCM.js} +1 -1
  122. package/web/dist/assets/{reports-MBONm90i.js → reports--2BDXGSj.js} +1 -1
  123. package/web/dist/assets/{run-header-BbuegkrJ.js → run-header-B69_lBSt.js} +1 -1
  124. package/web/dist/assets/{skills-Cc2FsHZq.js → skills-CzyYKL6l.js} +1 -1
  125. package/web/dist/assets/{task-changes-Bis3iY6D.js → task-changes-D1Oi0yoX.js} +1 -1
  126. package/web/dist/assets/{task-commits-CELN07IE.js → task-commits-DV91fVHF.js} +1 -1
  127. package/web/dist/assets/{task-files-Xj9SbIQY.js → task-files-_ap-MUjL.js} +1 -1
  128. package/web/dist/assets/{task-github-item-8Wi29msX.js → task-github-item-9oibIBa8.js} +1 -1
  129. package/web/dist/assets/{task-thread-BpprgiEm.js → task-thread-D8IfseH4.js} +1 -1
  130. package/web/dist/assets/{thread-state-DjdzGdTP.js → thread-state-BLS3a1XA.js} +1 -1
  131. package/web/dist/assets/{use-hand-to-agent-state-BrTzbU6r.js → use-hand-to-agent-state-DaPTyzCV.js} +1 -1
  132. package/web/dist/assets/{workflows-BgbhcFeb.js → workflows-BAIP3wxi.js} +1 -1
  133. package/web/dist/index.html +1 -1
  134. package/dist/managed-install/runtime-home.d.ts +0 -8
  135. package/dist/managed-install/runtime-home.js +0 -14
  136. package/dist/managed-install/runtime-home.js.map +0 -1
  137. package/dist/runners/acp/usage.d.ts +0 -3
  138. package/dist/runners/acp/usage.js +0 -12
  139. package/dist/runners/acp/usage.js.map +0 -1
  140. package/dist/runners/antigravity/ask-question.d.ts +0 -9
  141. package/dist/runners/antigravity/ask-question.js +0 -37
  142. package/dist/runners/antigravity/ask-question.js.map +0 -1
  143. package/dist/runners/antigravity/executable.d.ts +0 -45
  144. package/dist/runners/antigravity/executable.js +0 -184
  145. package/dist/runners/antigravity/executable.js.map +0 -1
  146. package/scripts/mock-acp-login.mjs +0 -20
  147. package/scripts/mock-acp-sessions.mjs +0 -30
@@ -1,12 +1,9 @@
1
1
  import { productEnv } from '../../core/product-env.js';
2
- import { cachedAntigravityOnPath, checkAntigravityCli, managedAntigravity } from './executable.js';
3
2
  export const ANTIGRAVITY_DETECTION = {
4
- binary: 'agy', binOverride: () => productEnv('ANTIGRAVITY_BIN') || undefined, dryRun: 'unless-bin-override',
5
- locate: () => managedAntigravity() ?? cachedAntigravityOnPath(),
6
- // The CLI prints a bare version; its --help names the CLI and the acp command.
7
- identify: checkAntigravityCli,
8
- banner: { pattern: /^\d+\.\d+\.\d+$/, label: 'the Google Antigravity CLI' },
9
- availableHint: 'Uses GEMINI_API_KEY, GOOGLE_API_KEY, or the Google sign-in of the selected account.',
10
- missingHint: 'Install the Antigravity CLI from Settings > Accounts > Install CLI, or put agy on PATH.',
3
+ binary: 'agy', binOverride: () => productEnv('ANTIGRAVITY_BIN'), dryRun: 'unless-bin-override',
4
+ banner: { pattern: /antigravity_extensions\/acp_server/, label: 'Google Antigravity ACP server' },
5
+ versionPattern: /^Build label:\s*(\S+)/m,
6
+ availableHint: 'Uses GEMINI_API_KEY, GOOGLE_API_KEY, or your Antigravity sign-in in GEMINI_HOME (default ~/.gemini).',
7
+ missingHint: 'Install the Antigravity ACP registry archive and link agy to agy_acp_server.par. Keep localharness_external beside the .par.',
11
8
  };
12
9
  //# sourceMappingURL=detection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/antigravity/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACnG,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,SAAS,EAAE,MAAM,EAAE,qBAAqB;IAC3G,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE,IAAI,uBAAuB,EAAE;IAC/D,+EAA+E;IAC/E,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,4BAA4B,EAAE;IAC3E,aAAa,EAAE,qFAAqF;IACpG,WAAW,EAAE,yFAAyF;CACpE,CAAC"}
1
+ {"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/antigravity/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,qBAAqB;IAC9F,MAAM,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,KAAK,EAAE,+BAA+B,EAAE;IACjG,cAAc,EAAE,wBAAwB;IACxC,aAAa,EAAE,sGAAsG;IACrH,WAAW,EAAE,8HAA8H;CACzG,CAAC"}
@@ -3,9 +3,9 @@ export declare const ANTIGRAVITY_DISPLAY: {
3
3
  readonly modelListName: 'Antigravity';
4
4
  readonly modelIdScope: 'own';
5
5
  readonly pickerLabel: 'Antigravity';
6
- readonly pickerDescription: 'Google Antigravity CLI over ACP';
6
+ readonly pickerDescription: 'Google Antigravity over ACP';
7
7
  readonly icon: 'bot';
8
- readonly installHint: 'Settings > Accounts > Install CLI';
9
- readonly loginCommand: 'Set GEMINI_API_KEY or GOOGLE_API_KEY, or connect a personal Google account in Settings > Accounts';
8
+ readonly installHint: 'https://antigravity.google';
9
+ readonly loginCommand: 'Set GEMINI_API_KEY or GOOGLE_API_KEY, or use your Antigravity sign-in in GEMINI_HOME (default ~/.gemini)';
10
10
  readonly accountFolderExample: '~/.gemini';
11
11
  };
@@ -1,7 +1,7 @@
1
1
  export const ANTIGRAVITY_DISPLAY = {
2
2
  displayName: 'Antigravity', modelListName: 'Antigravity', modelIdScope: 'own',
3
- pickerLabel: 'Antigravity', pickerDescription: 'Google Antigravity CLI over ACP', icon: 'bot',
4
- installHint: 'Settings > Accounts > Install CLI', loginCommand: 'Set GEMINI_API_KEY or GOOGLE_API_KEY, or connect a personal Google account in Settings > Accounts',
3
+ pickerLabel: 'Antigravity', pickerDescription: 'Google Antigravity over ACP', icon: 'bot',
4
+ installHint: 'https://antigravity.google', loginCommand: 'Set GEMINI_API_KEY or GOOGLE_API_KEY, or use your Antigravity sign-in in GEMINI_HOME (default ~/.gemini)',
5
5
  accountFolderExample: '~/.gemini',
6
6
  };
7
7
  //# sourceMappingURL=display.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/antigravity/display.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK;IAC7E,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,IAAI,EAAE,KAAK;IAC7F,WAAW,EAAE,mCAAmC,EAAE,YAAY,EAAE,mGAAmG;IACnK,oBAAoB,EAAE,WAAW;CACD,CAAC"}
1
+ {"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/antigravity/display.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK;IAC7E,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,IAAI,EAAE,KAAK;IACzF,WAAW,EAAE,4BAA4B,EAAE,YAAY,EAAE,0GAA0G;IACnK,oBAAoB,EAAE,WAAW;CACD,CAAC"}
@@ -5,21 +5,21 @@ export declare const ANTIGRAVITY_FACTS: {
5
5
  readonly skillsSeenBySession: 'live';
6
6
  readonly transport: 'stdio';
7
7
  readonly sessionIdSource: 'native';
8
- readonly systemPromptOnResume: 'in-thread';
8
+ readonly systemPromptOnResume: 'resent';
9
9
  readonly inputDelivery: {
10
10
  readonly mode: 'steer';
11
11
  readonly consumption: 'unobservable';
12
12
  readonly acknowledgement: 'response';
13
- readonly humanInputAtTurnEnd: 'never-held';
13
+ readonly humanInputAtTurnEnd: 'held-when-late';
14
14
  readonly via: 'second session/prompt while busy';
15
15
  };
16
- readonly nativePermission: 'after-turn';
16
+ readonly nativePermission: 'in-turn';
17
17
  readonly nativeAsk: 'answerable';
18
18
  readonly nativeSubagents: 'turn-held';
19
19
  readonly childWork: 'none';
20
20
  readonly hookEvents: 'none';
21
21
  readonly humanPromptHold: 'acknowledgement';
22
- readonly nativeTimerTool: 'schedule';
22
+ readonly nativeTimerTool: null;
23
23
  readonly costReport: 'per-turn';
24
24
  readonly claudeModelAliases: false;
25
25
  readonly turnStart: 'on-write';
@@ -1,17 +1,12 @@
1
- // Live Google Antigravity CLI 1.5.14 probes (hearsay-tools/squawk#4058, hearsay-tools/squawk#4060);
2
- // docs/runners/antigravity-wire.md names the fixture behind each value.
3
- // systemPromptOnResume: the CLI saves the session/new system prompt with the session and appends
4
- // a resent one, so a resume never resends it; it prepends it to the opening turn, as Codex does.
5
- // humanInputAtTurnEnd: a steer sent while the final text streamed was read in the same turn.
6
- // nativePermission: a background command or timer wakes the idle session, which then asks.
1
+ // Live Google antigravity-acp 1.5.0 probes: hearsay-tools/squawk#4000.
7
2
  export const ANTIGRAVITY_FACTS = {
8
3
  shutdownDescendants: 'observed-tree',
9
4
  skillTriggerMidTurn: true, skillUnknownName: 'silent', skillsSeenBySession: 'live',
10
- transport: 'stdio', sessionIdSource: 'native', systemPromptOnResume: 'in-thread',
5
+ transport: 'stdio', sessionIdSource: 'native', systemPromptOnResume: 'resent',
11
6
  inputDelivery: { mode: 'steer', consumption: 'unobservable', acknowledgement: 'response',
12
- humanInputAtTurnEnd: 'never-held', via: 'second session/prompt while busy' },
13
- nativePermission: 'after-turn', nativeAsk: 'answerable', nativeSubagents: 'turn-held',
7
+ humanInputAtTurnEnd: 'held-when-late', via: 'second session/prompt while busy' },
8
+ nativePermission: 'in-turn', nativeAsk: 'answerable', nativeSubagents: 'turn-held',
14
9
  childWork: 'none', hookEvents: 'none', humanPromptHold: 'acknowledgement',
15
- nativeTimerTool: 'schedule', costReport: 'per-turn', claudeModelAliases: false, turnStart: 'on-write',
10
+ nativeTimerTool: null, costReport: 'per-turn', claudeModelAliases: false, turnStart: 'on-write',
16
11
  };
17
12
  //# sourceMappingURL=facts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"facts.js","sourceRoot":"","sources":["../../../src/runners/antigravity/facts.ts"],"names":[],"mappings":"AACA,oGAAoG;AACpG,wEAAwE;AACxE,iGAAiG;AACjG,iGAAiG;AACjG,6FAA6F;AAC7F,2FAA2F;AAC3F,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM;IAClF,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE,WAAW;IAChF,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU;QACtF,mBAAmB,EAAE,YAAY,EAAE,GAAG,EAAE,kCAAkC,EAAE;IAC9E,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW;IACrF,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB;IACzE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU;CACvE,CAAC"}
1
+ {"version":3,"file":"facts.js","sourceRoot":"","sources":["../../../src/runners/antigravity/facts.ts"],"names":[],"mappings":"AACA,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM;IAClF,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,oBAAoB,EAAE,QAAQ;IAC7E,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU;QACtF,mBAAmB,EAAE,gBAAgB,EAAE,GAAG,EAAE,kCAAkC,EAAE;IAClF,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW;IAClF,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB;IACzE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU;CACjE,CAAC"}
@@ -1,4 +1,2 @@
1
- /** The CLI's own app data folder name, so the default account shares the terminal CLI's skills and sign-in. */
2
- export declare const ANTIGRAVITY_APP_DATA_DIR = "antigravity-cli";
3
- /** The CLI ignores GEMINI_HOME: the account folder is passed by flag, and the app data folder must be relative. */
4
- export declare function antigravityLaunchArgs(geminiDir: string, extra?: readonly string[]): string[];
1
+ /** The ACP registry specifies --uid= only for Linux archives. */
2
+ export declare function antigravityLaunchArgs(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): string[];
@@ -1,7 +1,6 @@
1
- /** The CLI's own app data folder name, so the default account shares the terminal CLI's skills and sign-in. */
2
- export const ANTIGRAVITY_APP_DATA_DIR = 'antigravity-cli';
3
- /** The CLI ignores GEMINI_HOME: the account folder is passed by flag, and the app data folder must be relative. */
4
- export function antigravityLaunchArgs(geminiDir, extra = []) {
5
- return ['acp', '--gemini-dir', geminiDir, '--app-data-dir', ANTIGRAVITY_APP_DATA_DIR, ...extra];
1
+ import { productEnv } from '../../core/product-env.js';
2
+ /** The ACP registry specifies --uid= only for Linux archives. */
3
+ export function antigravityLaunchArgs(platform = process.platform, env = process.env) {
4
+ return [...(platform === 'linux' ? ['--uid='] : []), ...(productEnv('ANTIGRAVITY_DEBUG', env) === '1' ? ['--debug'] : [])];
6
5
  }
7
6
  //# sourceMappingURL=launch-args.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"launch-args.js","sourceRoot":"","sources":["../../../src/runners/antigravity/launch-args.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AAE1D,mHAAmH;AACnH,MAAM,UAAU,qBAAqB,CAAC,SAAiB,EAAE,KAAK,GAAsB,EAAE;IACpF,OAAO,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,GAAG,KAAK,CAAC,CAAC;AAClG,CAAC"}
1
+ {"version":3,"file":"launch-args.js","sourceRoot":"","sources":["../../../src/runners/antigravity/launch-args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,iEAAiE;AACjE,MAAM,UAAU,qBAAqB,CAAC,QAAQ,GAAoB,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAsB,OAAO,CAAC,GAAG;IACtH,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,mBAAmB,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7H,CAAC"}
@@ -1,9 +1,4 @@
1
1
  import type { RunnerLoginStatus } from '../../core/runner-definition.ts';
2
- /**
3
- * Whether the account holds a Google sign-in. Where the CLI stores it is not recorded, so the CLI
4
- * answers: with SSH_CONNECTION set it refuses `oauth-personal` at once when no sign-in is stored,
5
- * and opens no browser (antigravity-wire.md, CLI sign-in). Credential contents stay unread.
6
- */
7
- export declare function antigravityPersonalSignIn(env: NodeJS.ProcessEnv): Promise<boolean>;
2
+ export declare function storedPersonalOAuth(env: NodeJS.ProcessEnv): Promise<boolean>;
8
3
  /** Presence is the same assurance as the other CLIs' stored-login status, not key validation. */
9
4
  export declare const antigravityLogin: RunnerLoginStatus;
@@ -1,54 +1,32 @@
1
- import { productEnv } from '../../core/product-env.js';
2
- import { AcpRpcError } from '../acp/transport.js';
3
- import { AntigravityProbe } from './probe-process.js';
4
- import { antigravityInstalled, antigravityStatusFromPath } from './executable.js';
5
- const VERSION = /^\d+\.\d+\.\d+$/;
6
- /**
7
- * Whether the account holds a Google sign-in. Where the CLI stores it is not recorded, so the CLI
8
- * answers: with SSH_CONNECTION set it refuses `oauth-personal` at once when no sign-in is stored,
9
- * and opens no browser (antigravity-wire.md, CLI sign-in). Credential contents stay unread.
10
- */
11
- export async function antigravityPersonalSignIn(env) {
12
- const { GEMINI_HOME, HOME, USERPROFILE, XDG_CONFIG_HOME } = env;
13
- const account = Object.fromEntries(Object.entries({ GEMINI_HOME, HOME, USERPROFILE, XDG_CONFIG_HOME }).flatMap(([key, value]) => value ? [[key, value]] : []));
14
- const probe = new AntigravityProbe(productEnv('ANTIGRAVITY_BIN', env), { ...account, BROWSER: '/bin/false' }, 15_000);
15
- try {
16
- await probe.acp.initialize();
17
- await probe.acp.authenticate('oauth-personal');
18
- return true;
19
- }
20
- catch (error) {
21
- if (error instanceof AcpRpcError)
22
- return false;
23
- throw error;
24
- }
25
- finally {
26
- await probe.close();
27
- }
1
+ import { readFile, stat } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { z } from 'zod';
4
+ import { agentHomeDir } from '../../paths.js';
5
+ const settingsSchema = z.object({ auth: z.object({ type: z.string().min(1) }) });
6
+ export async function storedPersonalOAuth(env) {
7
+ const home = agentHomeDir('antigravity', env);
8
+ const settings = settingsSchema.safeParse(JSON.parse(await readFile(join(home, 'antigravity-acp/settings.json'), 'utf8')));
9
+ if (!settings.success || settings.data.auth.type !== 'oauth-personal')
10
+ return false;
11
+ // Credential contents stay unread. File storage is enabled for every managed session.
12
+ return (await stat(join(home, 'antigravity-acp/acp_token.json'))).isFile();
28
13
  }
29
- const hasKey = (env) => !!(env.GEMINI_API_KEY || env.GOOGLE_API_KEY);
30
14
  /** Presence is the same assurance as the other CLIs' stored-login status, not key validation. */
31
15
  export const antigravityLogin = {
32
- requiresAccountHome: env => !hasKey(env),
33
- parse: result => result.exitCode === 0 && VERSION.test(result.stdout.trim()) ? 'disconnected' : null,
16
+ requiresAccountHome: env => !(env.GEMINI_API_KEY || env.GOOGLE_API_KEY),
17
+ parse: result => result.exitCode === 0 && result.stdout.includes('antigravity_extensions/acp_server') ? 'disconnected' : null,
34
18
  async inspect(result, env) {
35
- // From PATH, the cached CLI check decides, whatever entry the status command ran: a cold read may
36
- // have run an IDE launcher that comes before the CLI. An override or managed release answers itself.
37
- if (antigravityStatusFromPath(env)) {
38
- if (!await antigravityInstalled(env))
39
- return null;
40
- }
41
- else if (result.exitCode !== 0 || !VERSION.test(result.stdout.trim()))
19
+ if (result.exitCode !== 0 || !result.stdout.includes('antigravity_extensions/acp_server'))
42
20
  return null;
43
- if (hasKey(env))
21
+ if (env.GEMINI_API_KEY || env.GOOGLE_API_KEY)
44
22
  return 'connected';
45
- return await antigravityPersonalSignIn(env).catch(() => false) ? 'connected' : 'disconnected';
23
+ return await storedPersonalOAuth(env).catch(() => false) ? 'connected' : 'disconnected';
46
24
  },
47
25
  hint(env, status) {
48
- if (status === 'connected' && hasKey(env)) {
26
+ if (status === 'connected' && (env.GEMINI_API_KEY || env.GOOGLE_API_KEY)) {
49
27
  return `Uses ${env.GEMINI_API_KEY ? 'GEMINI_API_KEY' : 'GOOGLE_API_KEY'} from the Squawk host environment; no account folder is required.`;
50
28
  }
51
- return status === 'connected' ? 'Uses this account’s Google sign-in.'
29
+ return status === 'connected' ? 'Uses this account’s Antigravity personal sign-in.'
52
30
  : 'Connect with a personal Google account, or set GEMINI_API_KEY on the Squawk host. Business and agent-platform sign-in are not supported.';
53
31
  },
54
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"login-probe.js","sourceRoot":"","sources":["../../../src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readonly installHint: 'Install the Antigravity CLI from Settings > Accounts > Install CLI, or put agy on PATH. Then set GEMINI_API_KEY or GOOGLE_API_KEY, or connect a personal Google account.';
4
+ readonly installHint: 'Install the Antigravity ACP registry archive. Set GEMINI_API_KEY or GOOGLE_API_KEY, or sign in to Antigravity under GEMINI_HOME (default ~/.gemini).';
5
5
  };
@@ -1,5 +1,5 @@
1
1
  export const ANTIGRAVITY_LOGIN = {
2
2
  statusArgs: ['--version'], loginArgs: null,
3
- installHint: 'Install the Antigravity CLI from Settings > Accounts > Install CLI, or put agy on PATH. Then set GEMINI_API_KEY or GOOGLE_API_KEY, or connect a personal Google account.',
3
+ installHint: 'Install the Antigravity ACP registry archive. Set GEMINI_API_KEY or GOOGLE_API_KEY, or sign in to Antigravity under GEMINI_HOME (default ~/.gemini).',
4
4
  };
5
5
  //# sourceMappingURL=login.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/runners/antigravity/login.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,IAAI;IAC1C,WAAW,EAAE,0KAA0K;CACrJ,CAAC"}
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/runners/antigravity/login.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,IAAI;IAC1C,WAAW,EAAE,sJAAsJ;CACjI,CAAC"}
@@ -1,9 +1,5 @@
1
1
  export declare const ANTIGRAVITY_MOCK: {
2
2
  readonly nativeAskScenario: 'ask-resume';
3
- readonly sessionStore: {
4
- readonly env: 'CEZ_MOCK_ANTIGRAVITY_SESSIONS_FILE';
5
- readonly argsFileSuffix: '.antigravity-sessions.json';
6
- };
7
3
  readonly script: 'mock-acp.mjs';
8
4
  readonly toolGrantObservation: 'permission-policy';
9
5
  readonly promptResponseEndsTurn: true;
@@ -51,13 +47,12 @@ export declare const ANTIGRAVITY_MOCK: {
51
47
  readonly 'approval-turn-end': 'mock:approval-turn-end';
52
48
  readonly 'ask-bad': 'mock:ask-bad';
53
49
  readonly 'ask-resume': 'mock:ask-native mock:resume-cezar-done';
54
- readonly 'permission-late': 'mock:permission-late';
55
50
  readonly 'permission-default': 'mock:permission-default';
56
51
  readonly 'approval-malformed': 'mock:approval-malformed';
57
52
  readonly 'provider-unavailable': 'mock:provider-unavailable';
58
53
  };
59
54
  readonly askResumeCases: readonly [{
60
- readonly kind: 'ask_question';
55
+ readonly kind: 'interaction';
61
56
  readonly scenario: 'ask-resume';
62
57
  readonly answer: 'Question: Vitest';
63
58
  readonly header: 'Question';
@@ -69,12 +64,6 @@ export declare const ANTIGRAVITY_MOCK: {
69
64
  readonly 'approval-turn-end': {
70
65
  readonly HSQ_APPROVAL_GATE: '1';
71
66
  };
72
- readonly 'permission-late': {
73
- readonly HSQ_APPROVAL_GATE: '1';
74
- };
75
- readonly 'cezar-done': {
76
- readonly HSQ_APPROVAL_GATE: '1';
77
- };
78
67
  };
79
68
  readonly approvalDecisions: readonly [{
80
69
  readonly pick: 'allow';
@@ -86,51 +75,51 @@ export declare const ANTIGRAVITY_MOCK: {
86
75
  readonly parityExemptions: {
87
76
  readonly A13: {
88
77
  readonly kind: 'capability-absent';
89
- readonly reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on a fresh run. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
78
+ readonly reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on a fresh run. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
90
79
  };
91
80
  readonly A14: {
92
81
  readonly kind: 'capability-absent';
93
- readonly reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on Continue. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
82
+ readonly reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on Continue. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
94
83
  };
95
84
  readonly A15: {
96
85
  readonly kind: 'capability-absent';
97
- readonly reason: 'The native prompt response is also turn completion, so an unanswered independent ACK cannot leave a completed nudge turn behind it to arm the idle reply bound. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
86
+ readonly reason: 'The native prompt response is also turn completion, so an unanswered independent ACK cannot leave a completed nudge turn behind it to arm the idle reply bound. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
98
87
  };
99
88
  readonly U20h: {
100
89
  readonly kind: 'capability-absent';
101
- readonly reason: 'The native prompt response is also turn completion, so an independently acknowledged but unanswered refusal cannot park before its turn ends and start the next human cycle. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
90
+ readonly reason: 'The native prompt response is also turn completion, so an independently acknowledged but unanswered refusal cannot park before its turn ends and start the next human cycle. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
102
91
  };
103
92
  readonly U22s: {
104
93
  readonly kind: 'capability-absent';
105
- readonly reason: 'The native prompt response is also turn completion, so the silent refusal variant cannot independently acknowledge a nudge without completing its turn. Closing-session delivery and restart variants remain live in U22k/U22r. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
94
+ readonly reason: 'The native prompt response is also turn completion, so the silent refusal variant cannot independently acknowledge a nudge without completing its turn. Closing-session delivery and restart variants remain live in U22k/U22r. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
106
95
  };
107
96
  readonly U27: {
108
97
  readonly kind: 'capability-absent';
109
- readonly reason: 'The native prompt response is also turn completion, so no independent ACK can arrive after the carrying turn completes. Fresh and Continue entries without this late-ACK ordering remain live. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.';
98
+ readonly reason: 'The native prompt response is also turn completion, so no independent ACK can arrive after the carrying turn completes. Fresh and Continue entries without this late-ACK ordering remain live. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.';
110
99
  };
111
100
  readonly N8: {
112
101
  readonly kind: 'scenario-unconstructible';
113
- readonly reason: 'An idle ACP session/prompt starts a normalized turn on write and acknowledges only at completion; no idle ACK without turn-start exists (recording cli-prompt-command, docs/runners/antigravity-wire.md).';
102
+ readonly reason: 'An idle ACP session/prompt starts a normalized turn on write and acknowledges only at completion; no idle ACK without turn-start exists (recording prompt-text-usage, docs/runners/antigravity-wire.md).';
114
103
  };
115
104
  readonly F9: {
116
105
  readonly kind: 'scenario-unconstructible';
117
- readonly reason: 'ACP idle session/prompt response completes the turn; acknowledgement and turn completion cannot be separated (recording cli-prompt-command, docs/runners/antigravity-wire.md).';
106
+ readonly reason: 'ACP idle session/prompt response completes the turn; acknowledgement and turn completion cannot be separated (recording prompt-text-usage, docs/runners/antigravity-wire.md).';
118
107
  };
119
108
  readonly F8: {
120
109
  readonly kind: 'scenario-unconstructible';
121
- readonly reason: 'ACP idle session/prompt response completes its turn; it cannot acknowledge a nudge without completing a turn (recording cli-prompt-command, docs/runners/antigravity-wire.md).';
110
+ readonly reason: 'ACP idle session/prompt response completes its turn; it cannot acknowledge a nudge without completing a turn (recording prompt-text-usage, docs/runners/antigravity-wire.md).';
122
111
  };
123
112
  readonly UI1: {
124
113
  readonly kind: 'capability-absent';
125
- readonly reason: 'The Antigravity CLI sends no ACP plan update; plan is a mode and a command that write an artifact (docs/runners/antigravity-wire.md, Parity exemptions).';
114
+ readonly reason: 'Antigravity ACP 1.5.0 sends no plan update; /plan writes an artifact instead (docs/runners/antigravity-wire.md, Gaps that need a parity exemption).';
126
115
  };
127
116
  readonly D1: {
128
117
  readonly kind: 'capability-absent';
129
- readonly reason: 'The Antigravity CLI send_message tool reaches only the session\'s own subagents; there is no tool that messages another session to disable (docs/runners/antigravity-wire.md, Parity exemptions).';
118
+ readonly reason: 'Antigravity ACP 1.5.0 has no native cross-session messaging tool to disable.';
130
119
  };
131
120
  readonly D3: {
132
121
  readonly kind: 'capability-absent';
133
- readonly reason: 'The Antigravity CLI send_message tool reaches only the session\'s own subagents; it has no tool that messages another session (docs/runners/antigravity-wire.md, Parity exemptions).';
122
+ readonly reason: 'Antigravity ACP 1.5.0 has no native cross-session messaging tool.';
134
123
  };
135
124
  readonly P3: {
136
125
  readonly kind: 'scenario-unconstructible';
@@ -2,29 +2,25 @@ import { COMMON_MOCK_SCENARIOS, STDIO_ASK_MOCK_SCENARIOS, PROVIDER_ERROR_MOCK_SC
2
2
  const { 'no-progress-ack-only': _ackWithoutTurn, 'silent-tail-no-reply': _noReply, 'silent-tail-late-reply': _lateReply, ...commonScenarios } = COMMON_MOCK_SCENARIOS;
3
3
  export const ANTIGRAVITY_MOCK = {
4
4
  nativeAskScenario: 'ask-resume',
5
- // scripts/mock-acp-sessions.mjs: a resume finds only a session the mock saved, as the CLI does.
6
- sessionStore: { env: 'CEZ_MOCK_ANTIGRAVITY_SESSIONS_FILE', argsFileSuffix: '.antigravity-sessions.json' },
7
5
  script: 'mock-acp.mjs', toolGrantObservation: 'permission-policy', promptResponseEndsTurn: true, defaultApprovalEcho: 'Approval response: allow', malformedApprovalEcho: 'Malformed permission refused', binEnv: 'HSQ_ANTIGRAVITY_BIN',
8
6
  scenarios: { ...commonScenarios, ...STDIO_ASK_MOCK_SCENARIOS, ...PROVIDER_ERROR_MOCK_SCENARIOS,
9
- approval: 'mock:approval', 'approval-turn-end': 'mock:approval-turn-end', 'ask-bad': 'mock:ask-bad', 'ask-resume': 'mock:ask-native mock:resume-cezar-done', 'permission-late': 'mock:permission-late', 'permission-default': 'mock:permission-default', 'approval-malformed': 'mock:approval-malformed', 'provider-unavailable': 'mock:provider-unavailable' },
10
- askResumeCases: [{ kind: 'ask_question', scenario: 'ask-resume', answer: 'Question: Vitest', header: 'Question' }],
11
- scenarioEnv: { approval: { HSQ_APPROVAL_GATE: '1' }, 'approval-turn-end': { HSQ_APPROVAL_GATE: '1' }, 'permission-late': { HSQ_APPROVAL_GATE: '1' },
12
- // P8's Continue variant sends permission-late to a run started as cezar-done: its late request needs the same gate.
13
- 'cezar-done': { HSQ_APPROVAL_GATE: '1' } },
7
+ approval: 'mock:approval', 'approval-turn-end': 'mock:approval-turn-end', 'ask-bad': 'mock:ask-bad', 'ask-resume': 'mock:ask-native mock:resume-cezar-done', 'permission-default': 'mock:permission-default', 'approval-malformed': 'mock:approval-malformed', 'provider-unavailable': 'mock:provider-unavailable' },
8
+ askResumeCases: [{ kind: 'interaction', scenario: 'ask-resume', answer: 'Question: Vitest', header: 'Question' }],
9
+ scenarioEnv: { approval: { HSQ_APPROVAL_GATE: '1' }, 'approval-turn-end': { HSQ_APPROVAL_GATE: '1' } },
14
10
  approvalDecisions: [{ pick: 'allow', echo: 'Approval response: allow' }, { pick: 'deny', echo: 'Approval response: deny' }],
15
11
  parityExemptions: {
16
- A13: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on a fresh run. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
17
- A14: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on Continue. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
18
- A15: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so an unanswered independent ACK cannot leave a completed nudge turn behind it to arm the idle reply bound. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
19
- U20h: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so an independently acknowledged but unanswered refusal cannot park before its turn ends and start the next human cycle. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
20
- U22s: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so the silent refusal variant cannot independently acknowledge a nudge without completing its turn. Closing-session delivery and restart variants remain live in U22k/U22r. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
21
- U27: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can arrive after the carrying turn completes. Fresh and Continue entries without this late-ACK ordering remain live. Evidence: __fixtures__/cli-prompt-command.ndjson and docs/runners/antigravity-wire.md.' },
22
- N8: { kind: 'scenario-unconstructible', reason: 'An idle ACP session/prompt starts a normalized turn on write and acknowledges only at completion; no idle ACK without turn-start exists (recording cli-prompt-command, docs/runners/antigravity-wire.md).' },
23
- F9: { kind: 'scenario-unconstructible', reason: 'ACP idle session/prompt response completes the turn; acknowledgement and turn completion cannot be separated (recording cli-prompt-command, docs/runners/antigravity-wire.md).' },
24
- F8: { kind: 'scenario-unconstructible', reason: 'ACP idle session/prompt response completes its turn; it cannot acknowledge a nudge without completing a turn (recording cli-prompt-command, docs/runners/antigravity-wire.md).' },
25
- UI1: { kind: 'capability-absent', reason: 'The Antigravity CLI sends no ACP plan update; plan is a mode and a command that write an artifact (docs/runners/antigravity-wire.md, Parity exemptions).' },
26
- D1: { kind: 'capability-absent', reason: 'The Antigravity CLI send_message tool reaches only the session\'s own subagents; there is no tool that messages another session to disable (docs/runners/antigravity-wire.md, Parity exemptions).' },
27
- D3: { kind: 'capability-absent', reason: 'The Antigravity CLI send_message tool reaches only the session\'s own subagents; it has no tool that messages another session (docs/runners/antigravity-wire.md, Parity exemptions).' },
12
+ A13: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on a fresh run. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
13
+ A14: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can remain pending after the carrying turn and cause an idle refusal on Continue. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
14
+ A15: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so an unanswered independent ACK cannot leave a completed nudge turn behind it to arm the idle reply bound. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
15
+ U20h: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so an independently acknowledged but unanswered refusal cannot park before its turn ends and start the next human cycle. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
16
+ U22s: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so the silent refusal variant cannot independently acknowledge a nudge without completing its turn. Closing-session delivery and restart variants remain live in U22k/U22r. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
17
+ U27: { kind: 'capability-absent', reason: 'The native prompt response is also turn completion, so no independent ACK can arrive after the carrying turn completes. Fresh and Continue entries without this late-ACK ordering remain live. Evidence: __fixtures__/prompt-text-usage.ndjson and docs/runners/antigravity-wire.md.' },
18
+ N8: { kind: 'scenario-unconstructible', reason: 'An idle ACP session/prompt starts a normalized turn on write and acknowledges only at completion; no idle ACK without turn-start exists (recording prompt-text-usage, docs/runners/antigravity-wire.md).' },
19
+ F9: { kind: 'scenario-unconstructible', reason: 'ACP idle session/prompt response completes the turn; acknowledgement and turn completion cannot be separated (recording prompt-text-usage, docs/runners/antigravity-wire.md).' },
20
+ F8: { kind: 'scenario-unconstructible', reason: 'ACP idle session/prompt response completes its turn; it cannot acknowledge a nudge without completing a turn (recording prompt-text-usage, docs/runners/antigravity-wire.md).' },
21
+ UI1: { kind: 'capability-absent', reason: 'Antigravity ACP 1.5.0 sends no plan update; /plan writes an artifact instead (docs/runners/antigravity-wire.md, Gaps that need a parity exemption).' },
22
+ D1: { kind: 'capability-absent', reason: 'Antigravity ACP 1.5.0 has no native cross-session messaging tool to disable.' },
23
+ D3: { kind: 'capability-absent', reason: 'Antigravity ACP 1.5.0 has no native cross-session messaging tool.' },
28
24
  P3: { kind: 'scenario-unconstructible', reason: 'ACP has no provider notification that resolves its own pending permission.' },
29
25
  P5: { kind: 'scenario-unconstructible', reason: 'ACP JSON-RPC has no response to a permission response that can reject the reply.' },
30
26
  P7: { kind: 'scenario-unconstructible', reason: 'ACP default mode permission policy has no asynchronous configuration classification window.' },
@@ -1 +1 @@
1
- {"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/antigravity/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACpH,MAAM,EAAE,sBAAsB,EAAE,eAAe,EAAE,sBAAsB,EAAE,QAAQ,EAAE,wBAAwB,EAAE,UAAU,EAAE,GAAG,eAAe,EAAE,GAAG,qBAAqB,CAAC;AACtK,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,iBAAiB,EAAE,YAAY;IAC/B,gGAAgG;IAChG,YAAY,EAAE,EAAE,GAAG,EAAE,oCAAoC,EAAE,cAAc,EAAE,4BAA4B,EAAE;IACzG,MAAM,EAAE,cAAc,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,IAAI,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,EAAE,qBAAqB;IACtO,SAAS,EAAE,EAAE,GAAG,eAAe,EAAE,GAAG,wBAAwB,EAAE,GAAG,6BAA6B;QAC5F,QAAQ,EAAE,eAAe,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,wCAAwC,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE;IACjW,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAA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AE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,qJAAqJ,EAAE;QACjM,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,8EAA8E,EAAE;QACzH,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,mEAAmE,EAAE;QAC9G,EAAE,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,4EAA4E,EAAE;QAC9H,EAAE,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,kFAAkF,EAAE;QACpI,EAAE,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,6FAA6F,EAAE;QAC/I,EAAE,EAAE,EAAE,IAAI,EAAE,0BAA0B,EAAE,MAAM,EAAE,6GAA6G,EAAE;KAChK;CAC4B,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export declare function redactAntigravityDiagnostics(value: string, env: NodeJS.ProcessEnv): string;
2
- /** Preserve bounded native evidence in the server log. The CLI writes one log per process under
3
- * `<gemini-dir>/<app-data-dir>/log/acp-server-<time>-<pid>.log`. */
4
- export declare function logAntigravityFailure(geminiDir: string, pid: number | undefined, context: string, cause: unknown, env: NodeJS.ProcessEnv, stderr?: string): Promise<void>;
2
+ /** Preserve bounded native evidence in the server log before its private TMPDIR is removed. */
3
+ export declare function logAntigravityFailure(temp: string, context: string, cause: unknown, env: NodeJS.ProcessEnv, stderr?: string): Promise<void>;
@@ -4,7 +4,6 @@ import { join } from 'node:path';
4
4
  import { inspect } from 'node:util';
5
5
  import { redactBrowserSignInDetails } from '../../core/browser-sign-in-error.js';
6
6
  import { collectSecretValues, redactSecrets } from '../../core/secret-redaction.js';
7
- import { ANTIGRAVITY_APP_DATA_DIR } from './launch-args.js';
8
7
  const MAX_FILES = 4;
9
8
  const TAIL_BYTES = 16_384;
10
9
  export function redactAntigravityDiagnostics(value, env) {
@@ -34,9 +33,8 @@ async function nativeLogTail(path) {
34
33
  await file.close();
35
34
  }
36
35
  }
37
- /** Preserve bounded native evidence in the server log. The CLI writes one log per process under
38
- * `<gemini-dir>/<app-data-dir>/log/acp-server-<time>-<pid>.log`. */
39
- export async function logAntigravityFailure(geminiDir, pid, context, cause, env, stderr = '') {
36
+ /** Preserve bounded native evidence in the server log before its private TMPDIR is removed. */
37
+ export async function logAntigravityFailure(temp, context, cause, env, stderr = '') {
40
38
  const safe = (value) => redactAntigravityDiagnostics(value, env);
41
39
  const tails = [];
42
40
  if (stderr) {
@@ -44,17 +42,16 @@ export async function logAntigravityFailure(geminiDir, pid, context, cause, env,
44
42
  tails.push(safe(`stderr:\n${completeTail(bytes.subarray(-TAIL_BYTES), bytes.length > TAIL_BYTES)}`));
45
43
  }
46
44
  try {
47
- const dir = join(geminiDir, ANTIGRAVITY_APP_DATA_DIR, 'log');
48
- const entries = await readdir(dir, { withFileTypes: true });
49
- const files = entries.filter(entry => entry.isFile() && pid !== undefined && entry.name.startsWith('acp-server-') && entry.name.endsWith(`-${pid}.log`))
45
+ const entries = await readdir(temp, { withFileTypes: true });
46
+ const files = entries.filter(entry => entry.isFile() && /\.log\.(?:INFO|ERROR)\./.test(entry.name))
50
47
  .sort((a, b) => b.name.localeCompare(a.name)).slice(0, MAX_FILES);
51
48
  for (const entry of files) {
52
- const tail = await nativeLogTail(join(dir, entry.name)).catch(() => '');
49
+ const tail = await nativeLogTail(join(temp, entry.name)).catch(() => '');
53
50
  if (tail)
54
51
  tails.push(safe(`${entry.name}:\n${tail}`));
55
52
  }
56
53
  }
57
54
  catch { /* Missing/unreadable diagnostics must not replace the native failure. */ }
58
- console.error(`Antigravity ${context} failed:`, safe(inspect(cause, { customInspect: false })).slice(0, TAIL_BYTES), tails.length ? tails.join('\n') : 'No native log tail available.');
55
+ console.error(`Antigravity ${context} failed:`, safe(inspect(cause, { customInspect: false })).slice(0, TAIL_BYTES), tails.length ? tails.join('\n') : 'No native INFO/ERROR log tail available.');
59
56
  }
60
57
  //# sourceMappingURL=native-diagnostics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"native-diagnostics.js","sourceRoot":"","sources":["../../../src/runners/antigravity/native-diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,UAAU,GAAG,MAAM,CAAC;AAE1B,MAAM,UAAU,4BAA4B,CAAC,KAAa,EAAE,GAAsB;IAChF,OAAO,0BAA0B,CAAC,aAAa,CAAC,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC;AAED,SAAS,YAAY,CAAC,MAAc,EAAE,GAAY;IAChD,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrC,0EAA0E;IAC1E,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,KAAK,UAAU,aAAa,CAAC,IAAY;IACvC,2EAA2E;IAC3E,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,QA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,CAAC,CAAC,CAAC,CAAC,0CAA0C,CAAC,CAAC;AAClF,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type { ToolGrant } from '../../core/agent-runner.ts';
2
- import type { AcpPermissionOutcome, AcpPermissionRequest } from '../acp/protocol.ts';
3
- /** Every process is returned to default mode before prompting: a saved mode must not bypass policy. */
2
+ import type { AcpAsk, AcpAskRefusal, AcpPermissionOutcome, AcpPermissionRequest } from '../acp/protocol.ts';
3
+ export declare function antigravityAsk(request: AcpPermissionRequest): AcpAsk | AcpAskRefusal | undefined;
4
+ /** Every process is returned to default mode before prompting: saved yolo must not bypass policy. */
4
5
  export declare function permissionPolicy(grant: ToolGrant, request: AcpPermissionRequest, approvalGate?: boolean, trustedNames?: readonly string[]): AcpPermissionOutcome | undefined;
@@ -1,6 +1,35 @@
1
1
  import { z } from 'zod';
2
2
  import { unknownToolGrant } from '../../core/agent-runner-values.js';
3
3
  import { antigravityTool, antigravityNativeToolName, antigravityMcpTool } from './tool-normalization.js';
4
+ export function antigravityAsk(request) {
5
+ if (!request.toolCall.toolCallId.startsWith('interaction_'))
6
+ return undefined;
7
+ if (request.options.length < 2 || request.options.length > 4)
8
+ return { refused: 'Antigravity question cancelled: requires two to four offered answers' };
9
+ const used = new Set();
10
+ const choices = request.options.map(option => {
11
+ let label = option.name.slice(0, 60);
12
+ for (let index = 2; used.has(label); index++) {
13
+ const suffix = ` (${index})`;
14
+ label = `${option.name.slice(0, 60 - suffix.length)}${suffix}`;
15
+ }
16
+ used.add(label);
17
+ return { label, option };
18
+ });
19
+ const options = choices.map(({ label }) => ({ label }));
20
+ return {
21
+ questions: [{ header: 'Question', question: (request.toolCall.title ?? 'Choose an option').slice(0, 400),
22
+ options, allowFreeText: false }],
23
+ answer(value) {
24
+ const text = z.string().parse(value).trim().replace(/^Question:\s*/, '');
25
+ const option = choices.find(choice => choice.label === text)?.option
26
+ ?? request.options.find(option => option.optionId === text || option.name === text);
27
+ if (!option)
28
+ throw new Error('Antigravity requires one of the offered answers');
29
+ return { outcome: { outcome: 'selected', optionId: option.optionId } };
30
+ },
31
+ };
32
+ }
4
33
  function allowedTools(grant) {
5
34
  switch (grant.kind) {
6
35
  case 'unset': return undefined;
@@ -22,8 +51,10 @@ function commandAllowed(input, prefixes) {
22
51
  return false;
23
52
  return prefixes.some(prefix => parsed.data.command === prefix || parsed.data.command.startsWith(`${prefix} `));
24
53
  }
25
- /** Every process is returned to default mode before prompting: a saved mode must not bypass policy. */
54
+ /** Every process is returned to default mode before prompting: saved yolo must not bypass policy. */
26
55
  export function permissionPolicy(grant, request, approvalGate = false, trustedNames = []) {
56
+ if (request.toolCall.toolCallId.startsWith('interaction_'))
57
+ return undefined;
27
58
  const mcp = antigravityMcpTool(request.toolCall);
28
59
  if (mcp && trustedNames.includes(`${mcp.server}_${mcp.tool}`))
29
60
  return selected(request, true);