omp-antigravity-acp-provider 0.1.21 → 0.1.22

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.
package/README.md CHANGED
@@ -19,9 +19,9 @@ The repository keeps the OMP adapter sources separately and uses upstream versio
19
19
 
20
20
  ## Status
21
21
 
22
- Version 0.1.21 protects plan refinement from the official single-step text limit and fixes uncertain checkpoints, duplicate tool continuations and stale-session reconstruction. Restart OMP after upgrading to load the new code.
22
+ Version 0.1.22 fixes a 0.1.21 regression that rejected normal successive tool/permission batches as an already active continuation. It retains plan-refinement size protection, durable checkpoints and stale-session reconstruction. Restart OMP after upgrading to load the new code.
23
23
 
24
- Version 0.1.21 supports all models advertised by the official ACP server. Earlier live inference was tested with macOS, OMP 18.12.5, upstream provider 0.1.15 and official ACP runtime 1.4.1. The 0.1.21 continuity fixes are verified offline, including OMP 18.13.3 catalog loading and the local OMP summarizer source. Other platforms and full interactive Refine plan behavior with a real model remain unverified.
24
+ Version 0.1.22 supports all models advertised by the official ACP server. Earlier live inference was tested with macOS, OMP 18.12.5, upstream provider 0.1.15 and official ACP runtime 1.4.1. The 0.1.21–0.1.22 continuity fixes are verified offline, including OMP 18.13.3 catalog loading and the local OMP summarizer source. Other platforms and full interactive Refine plan behavior with a real model remain unverified.
25
25
 
26
26
  Google's consumer-plan policies can restrict third-party agent access even through the official CLI or ACP executable. An official transport does not establish permission to use a subscription in OMP. Check the current [Antigravity FAQ](https://www.antigravity.google/docs/faq/) and [terms](https://antigravity.google/terms) for your account.
27
27
 
@@ -58,7 +58,7 @@ Or, inside OMP:
58
58
 
59
59
  Select **omp-antigravity-acp-provider** in the browser, install it, and restart OMP to load the provider.
60
60
 
61
- OMP's marketplace installer currently copies Git content without installing npm dependencies. This marketplace therefore ships a small source launcher that retrieves the exact published **0.1.21** prebuilt npm adapter on first load. It disables npm install scripts and performs no local compilation. Node.js 22.19+ and npm must be on PATH. The standalone build bundles the required code and supervisor assets with no production dependencies: a clean test installation occupied approximately **2.6 MiB** (477 KiB tarball), down from roughly 150 MiB with the old dependency tree. This excludes the separately downloaded Google runtime. First preparation needs internet access; later loads reuse the installed cache without npm network access.
61
+ OMP's marketplace installer currently copies Git content without installing npm dependencies. This marketplace therefore ships a small source launcher that retrieves the exact published **0.1.22** prebuilt npm adapter on first load. It disables npm install scripts and performs no local compilation. Node.js 22.19+ and npm must be on PATH. The standalone build bundles the required code and supervisor assets with no production dependencies: a clean test installation occupied approximately **2.6 MiB** (477 KiB tarball), down from roughly 150 MiB with the old dependency tree. This excludes the separately downloaded Google runtime. First preparation needs internet access; later loads reuse the installed cache without npm network access.
62
62
 
63
63
  The launcher stores its versioned dependencies in `.runtime/` inside the installed marketplace plugin's cache directory. Uninstalling the marketplace plugin removes that cache when it is no longer referenced by another scope. Google credentials and the separately downloaded official ACP runtime are unaffected.
64
64
 
@@ -82,7 +82,7 @@ omp plugin install npm:omp-antigravity-acp-provider
82
82
  To pin a specific release:
83
83
 
84
84
  ```sh
85
- omp plugin install npm:omp-antigravity-acp-provider@0.1.21
85
+ omp plugin install npm:omp-antigravity-acp-provider@0.1.22
86
86
  ```
87
87
 
88
88
  Restart OMP after installation. The npm package includes the built adapter; users do not need esbuild or a manual build step. Disable any older ACP adapter for the same provider before loading this package.
@@ -3,6 +3,9 @@ const owners = new WeakSet<object>();
3
3
  // Tool/permission continuations must run while the original prompt is waiting
4
4
  // for them, so they cannot use that prompt's queue. Claim before the first await
5
5
  // instead; a duplicate caller must never replace the owner's response writer.
6
+ // Only attach the writer and deliver this batch's results inside work. Waiting
7
+ // for the ACP prompt to finish belongs outside the claim: it may request more
8
+ // tools/permissions, and those later batches must be allowed to attach a writer.
6
9
  export async function claimContinuation(
7
10
  binding: object,
8
11
  work: () => Promise<void>,
@@ -59976,7 +59976,7 @@ var AntigravityRuntime = class {
59976
59976
  await this.invalidateBinding(binding);
59977
59977
  binding = await this.getBinding(key, model, acpModelId, options.apiKey, writer, tools, options.signal);
59978
59978
  } else {
59979
- return await claimContinuation(binding, async () => {
59979
+ await claimContinuation(binding, async () => {
59980
59980
  binding.writer = writer;
59981
59981
  const continuationTurn = binding.turnCompletion;
59982
59982
  await this.noteContinuationInstructions(binding, context);
@@ -59990,8 +59990,9 @@ var AntigravityRuntime = class {
59990
59990
  } else {
59991
59991
  pending.resolve({ outcome: { outcome: "cancelled" } });
59992
59992
  }
59993
- await this.awaitContinuation(binding, options.signal);
59994
59993
  }, () => this.invalidateBinding(binding));
59994
+ await this.awaitContinuation(binding, options.signal);
59995
+ return;
59995
59996
  }
59996
59997
  }
59997
59998
  if (binding.pendingTools.size > 0) {
@@ -60004,7 +60005,7 @@ var AntigravityRuntime = class {
60004
60005
  await this.invalidateBinding(binding);
60005
60006
  binding = await this.getBinding(key, model, acpModelId, options.apiKey, writer, tools, options.signal);
60006
60007
  } else {
60007
- return await claimContinuation(binding, async () => {
60008
+ await claimContinuation(binding, async () => {
60008
60009
  binding.writer = writer;
60009
60010
  const continuationTurn = binding.turnCompletion;
60010
60011
  await this.noteContinuationInstructions(binding, context);
@@ -60015,8 +60016,9 @@ var AntigravityRuntime = class {
60015
60016
  binding.pendingTools.delete(pending.invocation.id);
60016
60017
  pending.resolve(toMcpToolResult(message));
60017
60018
  }
60018
- await this.awaitContinuation(binding, options.signal);
60019
60019
  }, () => this.invalidateBinding(binding));
60020
+ await this.awaitContinuation(binding, options.signal);
60021
+ return;
60020
60022
  }
60021
60023
  }
60022
60024
  const previous = this.queues.get(key) ?? Promise.resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-antigravity-acp-provider",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "ompAcpBundle": 1,
5
5
  "description": "Google Antigravity ACP provider for Oh My Pi (OMP), with tool bridging and per-model thinking; derived from zacbemis/pi-antigravity-acp-provider",
6
6
  "type": "module",
package/scripts/build.mjs CHANGED
@@ -243,8 +243,8 @@ const result = await build({
243
243
  const claimStart = 'binding.writer = writer;\n\t\t\t\tconst continuationTurn = binding.turnCompletion;';
244
244
  const claimEnd = 'await this.awaitContinuation(binding, options.signal);\n\t\t\t\treturn;';
245
245
  if (contents.split(claimStart).length !== 3 || contents.split(claimEnd).length !== 3) throw new Error('Pinned continuation ownership seams changed');
246
- contents = contents.replaceAll(claimStart, 'return await claimContinuation(binding, async () => {\n\t\t\t\t' + claimStart)
247
- .replaceAll(claimEnd, 'await this.awaitContinuation(binding, options.signal);\n\t\t\t\t}, () => this.invalidateBinding(binding));');
246
+ contents = contents.replaceAll(claimStart, 'await claimContinuation(binding, async () => {\n\t\t\t\t' + claimStart)
247
+ .replaceAll(claimEnd, '}, () => this.invalidateBinding(binding));\n\t\t\t\tawait this.awaitContinuation(binding, options.signal);\n\t\t\t\treturn;');
248
248
  const dropPattern = /\tprivate async dropBinding\([\s\S]*?\n\tprivate confirmedMode\(/g;
249
249
  if ([...contents.matchAll(dropPattern)].length !== 1) throw new Error('Pinned binding teardown seam changed');
250
250
  contents = contents.replace(dropPattern, `\tprivate async ompRemoveSaved(piSessionId: string, acpSessionId: string): Promise<void> {