@ycodium-ai/agent-antigravity 0.2.3478 → 0.2.3502
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/dist/index.js +15 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -29233,19 +29233,28 @@ function toAcpMcpServers(entries) {
|
|
|
29233
29233
|
}
|
|
29234
29234
|
|
|
29235
29235
|
// ../../packages/ycodium-acp-executor/src/probe.ts
|
|
29236
|
-
function withProbeTimeout(promise2, timeoutMs, what) {
|
|
29236
|
+
function withProbeTimeout(promise2, timeoutMs, what, signal) {
|
|
29237
|
+
signal?.throwIfAborted();
|
|
29237
29238
|
return new Promise((resolve6, reject) => {
|
|
29239
|
+
const onAbort = () => {
|
|
29240
|
+
clearTimeout(timer);
|
|
29241
|
+
reject(signal?.reason ?? new Error("aborted"));
|
|
29242
|
+
};
|
|
29238
29243
|
const timer = setTimeout(() => {
|
|
29244
|
+
signal?.removeEventListener("abort", onAbort);
|
|
29239
29245
|
reject(new Error(`${what} timed out after ${timeoutMs}ms`));
|
|
29240
29246
|
}, timeoutMs);
|
|
29241
29247
|
timer.unref?.();
|
|
29248
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
29242
29249
|
promise2.then(
|
|
29243
29250
|
(value) => {
|
|
29244
29251
|
clearTimeout(timer);
|
|
29252
|
+
signal?.removeEventListener("abort", onAbort);
|
|
29245
29253
|
resolve6(value);
|
|
29246
29254
|
},
|
|
29247
29255
|
(error62) => {
|
|
29248
29256
|
clearTimeout(timer);
|
|
29257
|
+
signal?.removeEventListener("abort", onAbort);
|
|
29249
29258
|
reject(error62 instanceof Error ? error62 : new Error(String(error62)));
|
|
29250
29259
|
}
|
|
29251
29260
|
);
|
|
@@ -29261,14 +29270,16 @@ async function openAcpProbeHandshake(input2) {
|
|
|
29261
29270
|
const initializeResult = await withProbeTimeout(
|
|
29262
29271
|
connection.request("initialize", acpInitializePayload(input2.clientInfo)),
|
|
29263
29272
|
input2.requestTimeoutMs,
|
|
29264
|
-
"ACP probe request 'initialize'"
|
|
29273
|
+
"ACP probe request 'initialize'",
|
|
29274
|
+
input2.signal
|
|
29265
29275
|
);
|
|
29266
29276
|
return {
|
|
29267
29277
|
initializeResult,
|
|
29268
29278
|
request: (method, params) => withProbeTimeout(
|
|
29269
29279
|
connection.request(method, params),
|
|
29270
29280
|
input2.requestTimeoutMs,
|
|
29271
|
-
`ACP probe request '${method}'
|
|
29281
|
+
`ACP probe request '${method}'`,
|
|
29282
|
+
input2.signal
|
|
29272
29283
|
),
|
|
29273
29284
|
close: () => connection.close()
|
|
29274
29285
|
};
|
|
@@ -34123,7 +34134,7 @@ var executors = [
|
|
|
34123
34134
|
];
|
|
34124
34135
|
var index_default = definePlugin({
|
|
34125
34136
|
id: "agent-antigravity",
|
|
34126
|
-
apiVersion:
|
|
34137
|
+
apiVersion: 41,
|
|
34127
34138
|
executors,
|
|
34128
34139
|
activate(ctx) {
|
|
34129
34140
|
const runtime = createRuntimeManager({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ycodium-ai/agent-antigravity",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3502",
|
|
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-
|
|
35
|
-
"
|
|
34
|
+
"@ycodium-ai/plugin-api": "0.2.3502",
|
|
35
|
+
"ycodium-acp-executor": "0.2.3502",
|
|
36
36
|
"ycodium-executor-testing": "0.0.0"
|
|
37
37
|
},
|
|
38
38
|
"ycodium": {
|