@ycodium-ai/agent-antigravity 0.2.2928 → 0.2.2936

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/index.js +6 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -29253,7 +29253,7 @@ function parseCache(raw) {
29253
29253
  models
29254
29254
  };
29255
29255
  }
29256
- async function readAntigravityModelCache(file2) {
29256
+ async function readCacheFile(file2) {
29257
29257
  try {
29258
29258
  return parseCache(JSON.parse(await NodeFSP3.readFile(file2, "utf8")));
29259
29259
  } catch {
@@ -29261,10 +29261,14 @@ async function readAntigravityModelCache(file2) {
29261
29261
  }
29262
29262
  }
29263
29263
  var writeQueues = /* @__PURE__ */ new Map();
29264
+ async function readAntigravityModelCache(file2) {
29265
+ await writeQueues.get(file2)?.catch(() => void 0);
29266
+ return readCacheFile(file2);
29267
+ }
29264
29268
  function updateAntigravityModelCache(file2, patch) {
29265
29269
  const previous = writeQueues.get(file2) ?? Promise.resolve();
29266
29270
  const next = previous.catch(() => void 0).then(async () => {
29267
- const existing = await readAntigravityModelCache(file2);
29271
+ const existing = await readCacheFile(file2);
29268
29272
  const catalog = patch.catalog !== void 0 && patch.catalog.models.length > 0 ? patch.catalog : void 0;
29269
29273
  const version2 = patch.version?.trim() || existing?.version;
29270
29274
  const currentModel = catalog === void 0 ? existing?.currentModel : catalog.currentModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-antigravity",
3
- "version": "0.2.2928",
3
+ "version": "0.2.2936",
4
4
  "description": "Google Antigravity executor: runs the Antigravity agent over Agent Client Protocol stdio.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -31,8 +31,8 @@
31
31
  "typescript": "~6.0.3",
32
32
  "vite-plus": "0.2.2",
33
33
  "yauzl": "^3.4.0",
34
- "@ycodium-ai/plugin-api": "0.2.2928",
35
- "ycodium-acp-executor": "0.2.2928",
34
+ "ycodium-acp-executor": "0.2.2936",
35
+ "@ycodium-ai/plugin-api": "0.2.2936",
36
36
  "ycodium-executor-testing": "0.0.0"
37
37
  },
38
38
  "ycodium": {