@eddyskywalker/dsh-chatgpt-subscription 0.74.0 → 0.74.1
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/CHANGELOG.md +11 -0
- package/lib/client.js.map +1 -1
- package/lib/index.js +262 -25
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/antigravity-acp/adapter.d.ts +102 -10
- package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/catalog.d.ts +11 -2
- package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/history.d.ts +31 -2
- package/lib/types/host/antigravity-acp/history.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -817,7 +817,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
|
|
|
817
817
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
818
818
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
819
819
|
*/
|
|
820
|
-
const PLUGIN_VERSION = "0.74.
|
|
820
|
+
const PLUGIN_VERSION = "0.74.1";
|
|
821
821
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
822
822
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
823
823
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -25298,9 +25298,10 @@ function acpError(code, detail) {
|
|
|
25298
25298
|
* that history is the only transcript the model may rely on.
|
|
25299
25299
|
* - **An existing ACP session** is fed only the messages DSH added since the
|
|
25300
25300
|
* last prompt, because the agent already has the rest.
|
|
25301
|
-
* - A mismatch (compaction, an edited turn, a
|
|
25301
|
+
* - A mismatch (compaction, an edited turn, a rewritten prefix) means the ACP
|
|
25302
25302
|
* transcript can no longer be trusted as a prefix of DSH's: the session is
|
|
25303
|
-
* abandoned and replayed in full.
|
|
25303
|
+
* abandoned and replayed in full, behind a history boundary marker. A different
|
|
25304
|
+
* model is not a mismatch - it is a config option of the same conversation.
|
|
25304
25305
|
*
|
|
25305
25306
|
* The fingerprint is an HMAC-style digest rather than a stored transcript: it
|
|
25306
25307
|
* costs one hash per message and never keeps a second copy of user content.
|
|
@@ -25310,6 +25311,28 @@ function acpError(code, detail) {
|
|
|
25310
25311
|
/** ACP's own image ceiling per content block. */
|
|
25311
25312
|
const ACP_MAX_INLINE_IMAGE_BYTES = 12 * 1024 * 1024;
|
|
25312
25313
|
/**
|
|
25314
|
+
* The sentence every replayed transcript ends with.
|
|
25315
|
+
*
|
|
25316
|
+
* ACP has no notion of "this is the current task". A session created now and fed
|
|
25317
|
+
* a hundred messages is one long prompt, and a transcript that reads like a stack
|
|
25318
|
+
* of outstanding requests is exactly how a long session ends up redoing its first
|
|
25319
|
+
* request: the user writes "go with A" and the agent, reading a wall of earlier
|
|
25320
|
+
* instructions, starts over on the first one. The anchor marks where the history
|
|
25321
|
+
* ends and which line the turn is about.
|
|
25322
|
+
*
|
|
25323
|
+
* It is appended to a *replay* only. A fresh session's first prompt already ends
|
|
25324
|
+
* with the request it is answering, and a boundary sentence there would be noise
|
|
25325
|
+
* on every cold start.
|
|
25326
|
+
*/
|
|
25327
|
+
const REPLAY_ANCHOR_INSTRUCTION = [
|
|
25328
|
+
"[history boundary]",
|
|
25329
|
+
"Everything above this line is earlier conversation, replayed to you for context only.",
|
|
25330
|
+
"The current request is the LAST user message in that history.",
|
|
25331
|
+
"Do not re-run, re-answer or re-dispatch work an earlier message already asked for; completed requests are completed.",
|
|
25332
|
+
"A short reference such as \"do that\" or \"go with A\" points at the assistant message immediately before it.",
|
|
25333
|
+
"Model names, providers and routing mentioned in older turns describe the turn they ran on, not the one you are answering now."
|
|
25334
|
+
].join(" ");
|
|
25335
|
+
/**
|
|
25313
25336
|
* Build the prompt for one generation.
|
|
25314
25337
|
*
|
|
25315
25338
|
* @param options - Normalized request options.
|
|
@@ -25330,6 +25353,10 @@ function buildPrompt(options, images, fromMessage) {
|
|
|
25330
25353
|
return inlineBytes <= ACP_MAX_INLINE_IMAGE_BYTES;
|
|
25331
25354
|
});
|
|
25332
25355
|
}
|
|
25356
|
+
if (start === 0 && messages.some((message) => message.role === "assistant")) blocks.push({
|
|
25357
|
+
type: "text",
|
|
25358
|
+
text: REPLAY_ANCHOR_INSTRUCTION
|
|
25359
|
+
});
|
|
25333
25360
|
return {
|
|
25334
25361
|
blocks,
|
|
25335
25362
|
coveredMessages: messages.length,
|
|
@@ -25362,6 +25389,35 @@ function fingerprintMessages(messages, from, to) {
|
|
|
25362
25389
|
return hash.digest("hex");
|
|
25363
25390
|
}
|
|
25364
25391
|
/**
|
|
25392
|
+
* Digest over the tool catalogue an ACP session's bridge exposes.
|
|
25393
|
+
*
|
|
25394
|
+
* The catalogue is fixed when the session is created: the agent listed it once,
|
|
25395
|
+
* and the bridge answers `listChanged: false`, so a session resumed after the
|
|
25396
|
+
* harness's tool set changed would keep offering the old schemas to the agent. The
|
|
25397
|
+
* digest is therefore part of "may this session be reused", and a changed
|
|
25398
|
+
* catalogue forces a fresh session.
|
|
25399
|
+
*
|
|
25400
|
+
* @param tools - The tool schemas of one request.
|
|
25401
|
+
* @returns Hex digest; one catalogue always produces one value.
|
|
25402
|
+
*/
|
|
25403
|
+
function fingerprintTools(tools) {
|
|
25404
|
+
const hash = createHash("sha256");
|
|
25405
|
+
const entries = (tools ?? []).map((tool) => ({
|
|
25406
|
+
name: tool.name,
|
|
25407
|
+
description: tool.description ?? "",
|
|
25408
|
+
parameters: JSON.stringify(tool.parameters ?? {})
|
|
25409
|
+
})).sort((left, right) => left.name === right.name ? 0 : left.name < right.name ? -1 : 1);
|
|
25410
|
+
for (const entry of entries) {
|
|
25411
|
+
hash.update(entry.name);
|
|
25412
|
+
hash.update("\0");
|
|
25413
|
+
hash.update(entry.description);
|
|
25414
|
+
hash.update("\0");
|
|
25415
|
+
hash.update(entry.parameters);
|
|
25416
|
+
hash.update("");
|
|
25417
|
+
}
|
|
25418
|
+
return hash.digest("hex");
|
|
25419
|
+
}
|
|
25420
|
+
/**
|
|
25365
25421
|
* Whether `messages` still begins with everything a live ACP session has seen.
|
|
25366
25422
|
*
|
|
25367
25423
|
* @param messages - The history about to be sent.
|
|
@@ -25602,12 +25658,22 @@ function missingBinaryMessage(detail) {
|
|
|
25602
25658
|
* This class therefore keeps a *live turn* per DSH session: the ACP session, the
|
|
25603
25659
|
* bridge, and how much history that turn has already been told about.
|
|
25604
25660
|
*
|
|
25605
|
-
*
|
|
25606
|
-
*
|
|
25607
|
-
*
|
|
25608
|
-
*
|
|
25609
|
-
*
|
|
25610
|
-
*
|
|
25661
|
+
* A turn that ends without a tool round does not lose its ACP session: it is
|
|
25662
|
+
* parked *dormant* together with the process it runs on, and the next user
|
|
25663
|
+
* message on the same DSH session is sent as an increment on that same
|
|
25664
|
+
* conversation. That is worth more than the prefill it saves. A session created
|
|
25665
|
+
* per message hands a thinking model a hundred-message transcript and hopes it
|
|
25666
|
+
* picks out the newest line; the observed failure was a model re-running the
|
|
25667
|
+
* conversation's *first* request when the user wrote "go with option A".
|
|
25668
|
+
*
|
|
25669
|
+
* Reuse is never assumed. The prefix the agent was told about must still match
|
|
25670
|
+
* the harness's history (the history module's fingerprint), the tool catalogue
|
|
25671
|
+
* the bridge exposed must be unchanged, and a different model or effort is
|
|
25672
|
+
* applied with `session/set_config_option` on the same conversation. A
|
|
25673
|
+
* compaction, an edited turn, a new tool set, a dead process, or a refused
|
|
25674
|
+
* reconfiguration all fall back to a fresh session fed the complete history - and
|
|
25675
|
+
* that replay ends with a history boundary marker, so it is read as a transcript
|
|
25676
|
+
* rather than as a task list.
|
|
25611
25677
|
*
|
|
25612
25678
|
* Where the tool calls come from
|
|
25613
25679
|
* ------------------------------
|
|
@@ -25687,6 +25753,8 @@ var UpdateQueue = class {
|
|
|
25687
25753
|
var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
25688
25754
|
options;
|
|
25689
25755
|
live = /* @__PURE__ */ new Map();
|
|
25756
|
+
/** Finished sessions, keyed by DSH session, waiting for the next user message. */
|
|
25757
|
+
dormant = /* @__PURE__ */ new Map();
|
|
25690
25758
|
idle = [];
|
|
25691
25759
|
activeTurns = 0;
|
|
25692
25760
|
lastUsage;
|
|
@@ -25739,12 +25807,20 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
25739
25807
|
}
|
|
25740
25808
|
/** Close every process this adapter owns. */
|
|
25741
25809
|
async dispose() {
|
|
25810
|
+
for (const entry of [...this.dormant.values()]) await this.closeDormant(entry);
|
|
25811
|
+
for (const turn of [...this.live.values()]) {
|
|
25812
|
+
if (this.live.get(turn.dshSessionId) === turn) this.live.delete(turn.dshSessionId);
|
|
25813
|
+
this.activeTurns = Math.max(0, this.activeTurns - 1);
|
|
25814
|
+
turn.queue.close();
|
|
25815
|
+
this.cancelTurn(turn);
|
|
25816
|
+
await turn.bridge.close().catch(() => void 0);
|
|
25817
|
+
await turn.client.dispose().catch(() => void 0);
|
|
25818
|
+
}
|
|
25819
|
+
this.live.clear();
|
|
25742
25820
|
for (const entry of this.idle.splice(0)) {
|
|
25743
25821
|
clearTimeout(entry.timer);
|
|
25744
25822
|
await entry.client.dispose().catch(() => void 0);
|
|
25745
25823
|
}
|
|
25746
|
-
for (const turn of [...this.live.values()]) await this.closeTurn(turn);
|
|
25747
|
-
this.live.clear();
|
|
25748
25824
|
}
|
|
25749
25825
|
/**
|
|
25750
25826
|
* Resolve which turn this generation belongs to, then hand back its stream.
|
|
@@ -25766,10 +25842,16 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
25766
25842
|
const live = this.live.get(dshSessionId);
|
|
25767
25843
|
if (live !== void 0 && live.model === options.model && live.effort === effort && canContinue(options.messages, live.covered, live.fingerprint)) return this.continueTurn(live, options, images, signal, activity);
|
|
25768
25844
|
if (live !== void 0) await this.closeTurn(live);
|
|
25769
|
-
|
|
25845
|
+
const auxiliary = options.purpose !== void 0;
|
|
25846
|
+
const dormant = auxiliary ? void 0 : this.dormant.get(dshSessionId);
|
|
25847
|
+
if (dormant !== void 0) if (this.usableDormant(dormant, options)) {
|
|
25848
|
+
const resumed = await this.resumeDormant(dormant, options, settings, effort, images, signal, activity);
|
|
25849
|
+
if (resumed !== void 0) return resumed;
|
|
25850
|
+
} else await this.closeDormant(dormant);
|
|
25851
|
+
return this.startTurn(dshSessionId, options, settings, images, effort, signal, activity, !auxiliary);
|
|
25770
25852
|
}
|
|
25771
25853
|
/** Start a fresh ACP session for one generation and stream its answer. */
|
|
25772
|
-
async startTurn(dshSessionId, options, settings, images, effort, signal, activity) {
|
|
25854
|
+
async startTurn(dshSessionId, options, settings, images, effort, signal, activity, parkable) {
|
|
25773
25855
|
const limit = this.options.maxActiveTurns ?? 4;
|
|
25774
25856
|
if (this.activeTurns >= limit) throw new LlmError(`${PROVIDER_NAME$9} already has ${this.activeTurns} turns in flight; wait for one to finish before starting another.`, "RATE_LIMIT");
|
|
25775
25857
|
this.activeTurns += 1;
|
|
@@ -25809,7 +25891,9 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
25809
25891
|
nativeToolPolicy: settings.nativeToolPolicy,
|
|
25810
25892
|
startedAt: this.now(),
|
|
25811
25893
|
awaitingHarness: false,
|
|
25812
|
-
sessionsUsed: reusedSessions + 1
|
|
25894
|
+
sessionsUsed: reusedSessions + 1,
|
|
25895
|
+
tools: fingerprintTools(options.tools),
|
|
25896
|
+
parkable
|
|
25813
25897
|
};
|
|
25814
25898
|
this.live.set(dshSessionId, turn);
|
|
25815
25899
|
this.sendPrompt(turn, prompt.blocks);
|
|
@@ -26034,13 +26118,12 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
26034
26118
|
]);
|
|
26035
26119
|
}
|
|
26036
26120
|
} finally {
|
|
26037
|
-
if (!finished)
|
|
26038
|
-
|
|
26039
|
-
await this.closeTurn(turn);
|
|
26040
|
-
} else if (!turn.awaitingHarness && this.live.get(turn.dshSessionId) === turn) {
|
|
26121
|
+
if (!finished) await this.closeTurn(turn);
|
|
26122
|
+
else if (!turn.awaitingHarness && this.live.get(turn.dshSessionId) === turn) {
|
|
26041
26123
|
this.live.delete(turn.dshSessionId);
|
|
26042
26124
|
this.activeTurns = Math.max(0, this.activeTurns - 1);
|
|
26043
|
-
await this.
|
|
26125
|
+
if (turn.parkable) await this.park(turn);
|
|
26126
|
+
else await this.release(turn);
|
|
26044
26127
|
}
|
|
26045
26128
|
}
|
|
26046
26129
|
}
|
|
@@ -26196,12 +26279,164 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
26196
26279
|
turn.queue.push({ sessionUpdate: "prompt_settled" });
|
|
26197
26280
|
}
|
|
26198
26281
|
}
|
|
26282
|
+
/**
|
|
26283
|
+
* Abandon one live turn.
|
|
26284
|
+
*
|
|
26285
|
+
* The turn cannot be resumed by the harness any more, so its prompt is cancelled
|
|
26286
|
+
* and its process is handed back to the pool. Disposing the process instead -
|
|
26287
|
+
* what this used to do - made every cancellation pay a fresh spawn and the
|
|
26288
|
+
* agent's own start-up wait on the next message.
|
|
26289
|
+
*/
|
|
26199
26290
|
async closeTurn(turn) {
|
|
26200
26291
|
if (this.live.get(turn.dshSessionId) === turn) this.live.delete(turn.dshSessionId);
|
|
26201
26292
|
this.activeTurns = Math.max(0, this.activeTurns - 1);
|
|
26202
26293
|
turn.queue.close();
|
|
26203
|
-
|
|
26204
|
-
await
|
|
26294
|
+
this.cancelTurn(turn);
|
|
26295
|
+
await this.release(turn);
|
|
26296
|
+
}
|
|
26297
|
+
/**
|
|
26298
|
+
* Ask the agent to stop the prompt this turn left running.
|
|
26299
|
+
*
|
|
26300
|
+
* `session/cancel` is an ACP notification, not a request, so it is written
|
|
26301
|
+
* without waiting for an answer: a prompt that already settled ignores it, and a
|
|
26302
|
+
* client that waited would hang on a server that never replies.
|
|
26303
|
+
*/
|
|
26304
|
+
cancelTurn(turn) {
|
|
26305
|
+
if (!turn.client.alive) return;
|
|
26306
|
+
turn.client.notify("session/cancel", { sessionId: turn.acpSessionId });
|
|
26307
|
+
}
|
|
26308
|
+
/**
|
|
26309
|
+
* Whether the parked session is still a prefix of the history about to be sent.
|
|
26310
|
+
*
|
|
26311
|
+
* Three questions, and every one of them must answer yes: the process is alive,
|
|
26312
|
+
* the bridge still exposes the tool catalogue the agent listed (the bridge
|
|
26313
|
+
* publishes no change feed, so a different set cannot reach a resumed session),
|
|
26314
|
+
* and the harness history still begins with exactly what the agent was told.
|
|
26315
|
+
*
|
|
26316
|
+
* @param entry - The parked session.
|
|
26317
|
+
* @param options - The generation about to run.
|
|
26318
|
+
*/
|
|
26319
|
+
usableDormant(entry, options) {
|
|
26320
|
+
if (!entry.client.alive) return false;
|
|
26321
|
+
if (entry.tools !== fingerprintTools(options.tools)) return false;
|
|
26322
|
+
return canContinue(options.messages, entry.covered, entry.fingerprint);
|
|
26323
|
+
}
|
|
26324
|
+
/**
|
|
26325
|
+
* Continue a parked session with only what the harness added since.
|
|
26326
|
+
*
|
|
26327
|
+
* @param entry - The parked session to reuse.
|
|
26328
|
+
* @param options - The generation about to run.
|
|
26329
|
+
* @param settings - This line's own preferences, read for the native-tool policy.
|
|
26330
|
+
* @param effort - The thinking level this generation asked for.
|
|
26331
|
+
* @param images - Images resolved for this request.
|
|
26332
|
+
* @param signal - Caller cancellation.
|
|
26333
|
+
* @param activity - Watchdog pulse.
|
|
26334
|
+
* @returns the stream, or undefined when the session could not be reused. On
|
|
26335
|
+
* that path the process has already been handed back, so the caller starts a
|
|
26336
|
+
* cold turn rather than failing the generation.
|
|
26337
|
+
*/
|
|
26338
|
+
async resumeDormant(entry, options, settings, effort, images, signal, activity) {
|
|
26339
|
+
const limit = this.options.maxActiveTurns ?? 4;
|
|
26340
|
+
if (this.activeTurns >= limit) return void 0;
|
|
26341
|
+
this.dormant.delete(entry.dshSessionId);
|
|
26342
|
+
if (entry.timer !== void 0) clearTimeout(entry.timer);
|
|
26343
|
+
const queue = new UpdateQueue();
|
|
26344
|
+
try {
|
|
26345
|
+
if (entry.model !== options.model || entry.effort !== effort) await this.applyModelAndEffort(entry.client, entry.acpSessionId, options.model, effort);
|
|
26346
|
+
this.attachHandlers(entry.client, queue, activity);
|
|
26347
|
+
const prompt = buildPrompt(options, images, entry.covered);
|
|
26348
|
+
const turn = {
|
|
26349
|
+
dshSessionId: entry.dshSessionId,
|
|
26350
|
+
client: entry.client,
|
|
26351
|
+
bridge: entry.bridge,
|
|
26352
|
+
acpSessionId: entry.acpSessionId,
|
|
26353
|
+
covered: prompt.coveredMessages,
|
|
26354
|
+
fingerprint: prompt.fingerprint,
|
|
26355
|
+
model: options.model,
|
|
26356
|
+
effort,
|
|
26357
|
+
queue,
|
|
26358
|
+
settled: void 0,
|
|
26359
|
+
surfaced: /* @__PURE__ */ new Set(),
|
|
26360
|
+
notedNative: /* @__PURE__ */ new Set(),
|
|
26361
|
+
nativeToolPolicy: settings.nativeToolPolicy,
|
|
26362
|
+
startedAt: this.now(),
|
|
26363
|
+
awaitingHarness: false,
|
|
26364
|
+
sessionsUsed: entry.sessionsUsed,
|
|
26365
|
+
tools: entry.tools,
|
|
26366
|
+
parkable: true
|
|
26367
|
+
};
|
|
26368
|
+
this.live.set(turn.dshSessionId, turn);
|
|
26369
|
+
this.activeTurns += 1;
|
|
26370
|
+
this.sendPrompt(turn, prompt.blocks);
|
|
26371
|
+
return this.pump(turn, signal, activity);
|
|
26372
|
+
} catch {
|
|
26373
|
+
queue.close();
|
|
26374
|
+
await this.release({
|
|
26375
|
+
client: entry.client,
|
|
26376
|
+
bridge: entry.bridge,
|
|
26377
|
+
sessionsUsed: entry.sessionsUsed
|
|
26378
|
+
});
|
|
26379
|
+
return;
|
|
26380
|
+
}
|
|
26381
|
+
}
|
|
26382
|
+
/**
|
|
26383
|
+
* Keep a finished turn's session ready for the next user message.
|
|
26384
|
+
*
|
|
26385
|
+
* The bridge stays open on purpose: its endpoint is what the parked session's
|
|
26386
|
+
* tool list points at, and closing it would leave the agent calling a port
|
|
26387
|
+
* nobody answers.
|
|
26388
|
+
*/
|
|
26389
|
+
async park(turn) {
|
|
26390
|
+
turn.queue.close();
|
|
26391
|
+
const limit = this.options.dormantSessionLimit ?? 2;
|
|
26392
|
+
if (limit <= 0 || !turn.client.alive) {
|
|
26393
|
+
await this.release(turn);
|
|
26394
|
+
return;
|
|
26395
|
+
}
|
|
26396
|
+
const previous = this.dormant.get(turn.dshSessionId);
|
|
26397
|
+
if (previous !== void 0) await this.closeDormant(previous);
|
|
26398
|
+
const entry = {
|
|
26399
|
+
dshSessionId: turn.dshSessionId,
|
|
26400
|
+
client: turn.client,
|
|
26401
|
+
bridge: turn.bridge,
|
|
26402
|
+
acpSessionId: turn.acpSessionId,
|
|
26403
|
+
covered: turn.covered,
|
|
26404
|
+
fingerprint: turn.fingerprint,
|
|
26405
|
+
tools: turn.tools,
|
|
26406
|
+
model: turn.model,
|
|
26407
|
+
effort: turn.effort,
|
|
26408
|
+
sessionsUsed: turn.sessionsUsed,
|
|
26409
|
+
timer: void 0
|
|
26410
|
+
};
|
|
26411
|
+
const timer = setTimeout(() => {
|
|
26412
|
+
this.closeDormant(entry);
|
|
26413
|
+
}, this.options.dormantSessionTimeoutMs ?? 3e5);
|
|
26414
|
+
timer.unref?.();
|
|
26415
|
+
entry.timer = timer;
|
|
26416
|
+
this.dormant.set(turn.dshSessionId, entry);
|
|
26417
|
+
while (this.dormant.size > limit) {
|
|
26418
|
+
const oldest = this.dormant.values().next().value;
|
|
26419
|
+
if (oldest === void 0) break;
|
|
26420
|
+
await this.closeDormant(oldest);
|
|
26421
|
+
}
|
|
26422
|
+
}
|
|
26423
|
+
/**
|
|
26424
|
+
* Drop a parked session and hand its process back to the pool.
|
|
26425
|
+
*
|
|
26426
|
+
* The conversation itself is abandoned rather than closed with `session/close`:
|
|
26427
|
+
* not every agent version this line supports answers that request, and a request
|
|
26428
|
+
* that never settles would occupy one of the client's protocol slots for the
|
|
26429
|
+
* life of the process. The next turn opens a fresh conversation on the same warm
|
|
26430
|
+
* process.
|
|
26431
|
+
*/
|
|
26432
|
+
async closeDormant(entry) {
|
|
26433
|
+
if (this.dormant.get(entry.dshSessionId) === entry) this.dormant.delete(entry.dshSessionId);
|
|
26434
|
+
if (entry.timer !== void 0) clearTimeout(entry.timer);
|
|
26435
|
+
await this.release({
|
|
26436
|
+
client: entry.client,
|
|
26437
|
+
bridge: entry.bridge,
|
|
26438
|
+
sessionsUsed: entry.sessionsUsed
|
|
26439
|
+
});
|
|
26205
26440
|
}
|
|
26206
26441
|
/**
|
|
26207
26442
|
* Take one warm process out of the pool.
|
|
@@ -26248,12 +26483,14 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
26248
26483
|
onActivity: () => activity.pulse()
|
|
26249
26484
|
});
|
|
26250
26485
|
}
|
|
26486
|
+
/** Hand one turn's process back to the idle pool, disposing it when it is spent. */
|
|
26251
26487
|
async release(turn) {
|
|
26252
|
-
turn.queue
|
|
26488
|
+
turn.queue?.close();
|
|
26253
26489
|
await turn.bridge.close().catch(() => void 0);
|
|
26254
26490
|
const limit = this.options.idleProcessLimit ?? 2;
|
|
26255
26491
|
const cap = this.options.maxSessionsPerProcess ?? 100;
|
|
26256
|
-
|
|
26492
|
+
const sessionsUsed = turn.sessionsUsed ?? 1;
|
|
26493
|
+
if (limit <= 0 || !turn.client.alive || sessionsUsed >= cap) {
|
|
26257
26494
|
await turn.client.dispose().catch(() => void 0);
|
|
26258
26495
|
return;
|
|
26259
26496
|
}
|
|
@@ -26267,7 +26504,7 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
|
|
|
26267
26504
|
this.idle.push({
|
|
26268
26505
|
client,
|
|
26269
26506
|
timer,
|
|
26270
|
-
sessions:
|
|
26507
|
+
sessions: sessionsUsed
|
|
26271
26508
|
});
|
|
26272
26509
|
while (this.idle.length > limit) {
|
|
26273
26510
|
const oldest = this.idle.shift();
|
|
@@ -26727,7 +26964,7 @@ var AcpCatalog = class {
|
|
|
26727
26964
|
*/
|
|
26728
26965
|
async read(options = {}) {
|
|
26729
26966
|
const current = this.cached ?? await this.rehydrate();
|
|
26730
|
-
if (!options.force && current !== void 0 && this.now() - current.fetchedAt <
|
|
26967
|
+
if (!options.force && current !== void 0 && this.now() - current.fetchedAt < 9e5) return current;
|
|
26731
26968
|
if (this.inflight !== void 0) return this.inflight;
|
|
26732
26969
|
this.inflight = this.refresh(options.signal).catch(() => current).finally(() => {
|
|
26733
26970
|
this.inflight = void 0;
|
package/lib/types/compat.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
76
76
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
77
77
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
78
78
|
*/
|
|
79
|
-
export declare const PLUGIN_VERSION: "0.74.
|
|
79
|
+
export declare const PLUGIN_VERSION: "0.74.1";
|
|
80
80
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
81
81
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
82
82
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
@@ -11,12 +11,22 @@
|
|
|
11
11
|
* This class therefore keeps a *live turn* per DSH session: the ACP session, the
|
|
12
12
|
* bridge, and how much history that turn has already been told about.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* A turn that ends without a tool round does not lose its ACP session: it is
|
|
15
|
+
* parked *dormant* together with the process it runs on, and the next user
|
|
16
|
+
* message on the same DSH session is sent as an increment on that same
|
|
17
|
+
* conversation. That is worth more than the prefill it saves. A session created
|
|
18
|
+
* per message hands a thinking model a hundred-message transcript and hopes it
|
|
19
|
+
* picks out the newest line; the observed failure was a model re-running the
|
|
20
|
+
* conversation's *first* request when the user wrote "go with option A".
|
|
21
|
+
*
|
|
22
|
+
* Reuse is never assumed. The prefix the agent was told about must still match
|
|
23
|
+
* the harness's history (the history module's fingerprint), the tool catalogue
|
|
24
|
+
* the bridge exposed must be unchanged, and a different model or effort is
|
|
25
|
+
* applied with `session/set_config_option` on the same conversation. A
|
|
26
|
+
* compaction, an edited turn, a new tool set, a dead process, or a refused
|
|
27
|
+
* reconfiguration all fall back to a fresh session fed the complete history - and
|
|
28
|
+
* that replay ends with a history boundary marker, so it is read as a transcript
|
|
29
|
+
* rather than as a task list.
|
|
20
30
|
*
|
|
21
31
|
* Where the tool calls come from
|
|
22
32
|
* ------------------------------
|
|
@@ -54,12 +64,26 @@ export declare const DEFAULT_MAX_ACTIVE_TURNS = 4;
|
|
|
54
64
|
/**
|
|
55
65
|
* How many ACP sessions one agent process may open before it is recycled.
|
|
56
66
|
*
|
|
57
|
-
* Every
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
67
|
+
* Every turn that cannot be continued on an existing conversation creates a fresh
|
|
68
|
+
* ACP session, so a warm process that is reused indefinitely accumulates sessions
|
|
69
|
+
* and whatever the agent keeps beside each of them - including conversations whose
|
|
70
|
+
* process outlived their parked session. The reference implementation caps this at
|
|
71
|
+
* 100 and recycles; the same number is used here so the two behave alike under a
|
|
72
|
+
* long session.
|
|
61
73
|
*/
|
|
62
74
|
export declare const DEFAULT_MAX_SESSIONS_PER_PROCESS = 100;
|
|
75
|
+
/**
|
|
76
|
+
* How many finished ACP sessions stay parked, ready for the next user message.
|
|
77
|
+
*
|
|
78
|
+
* A parked session pins the agent process it runs on, and that process is not
|
|
79
|
+
* small (244 MB in the reference report). Two is the number of conversations a
|
|
80
|
+
* person is realistically switching between; beyond that the parked session is
|
|
81
|
+
* recycled and its process goes back to the idle pool, which keeps the spawn
|
|
82
|
+
* cheap even when the conversation is not.
|
|
83
|
+
*/
|
|
84
|
+
export declare const DEFAULT_DORMANT_SESSION_LIMIT = 2;
|
|
85
|
+
/** How long one parked session stays ready before its process is recycled. */
|
|
86
|
+
export declare const DEFAULT_DORMANT_SESSION_TIMEOUT_MS = 300000;
|
|
63
87
|
/** Where the executable comes from. */
|
|
64
88
|
export interface AcpLaunch {
|
|
65
89
|
/** Absolute path of the executable. */
|
|
@@ -99,6 +123,10 @@ export interface AntigravityAcpAdapterOptions {
|
|
|
99
123
|
maxActiveTurns?: number;
|
|
100
124
|
/** ACP sessions one warm process may open before it is recycled. */
|
|
101
125
|
maxSessionsPerProcess?: number;
|
|
126
|
+
/** Finished ACP sessions kept ready for the next user message. */
|
|
127
|
+
dormantSessionLimit?: number;
|
|
128
|
+
/** How long one parked session may sit unused. */
|
|
129
|
+
dormantSessionTimeoutMs?: number;
|
|
102
130
|
/** Clock seam. */
|
|
103
131
|
now?(): number;
|
|
104
132
|
}
|
|
@@ -106,6 +134,8 @@ export interface AntigravityAcpAdapterOptions {
|
|
|
106
134
|
export declare class AntigravityAcpAdapter extends LlmAdapter {
|
|
107
135
|
private readonly options;
|
|
108
136
|
private readonly live;
|
|
137
|
+
/** Finished sessions, keyed by DSH session, waiting for the next user message. */
|
|
138
|
+
private readonly dormant;
|
|
109
139
|
private readonly idle;
|
|
110
140
|
private activeTurns;
|
|
111
141
|
private lastUsage;
|
|
@@ -186,7 +216,68 @@ export declare class AntigravityAcpAdapter extends LlmAdapter {
|
|
|
186
216
|
private applyModelAndEffort;
|
|
187
217
|
private applyConfigQuietly;
|
|
188
218
|
private sendPrompt;
|
|
219
|
+
/**
|
|
220
|
+
* Abandon one live turn.
|
|
221
|
+
*
|
|
222
|
+
* The turn cannot be resumed by the harness any more, so its prompt is cancelled
|
|
223
|
+
* and its process is handed back to the pool. Disposing the process instead -
|
|
224
|
+
* what this used to do - made every cancellation pay a fresh spawn and the
|
|
225
|
+
* agent's own start-up wait on the next message.
|
|
226
|
+
*/
|
|
189
227
|
private closeTurn;
|
|
228
|
+
/**
|
|
229
|
+
* Ask the agent to stop the prompt this turn left running.
|
|
230
|
+
*
|
|
231
|
+
* `session/cancel` is an ACP notification, not a request, so it is written
|
|
232
|
+
* without waiting for an answer: a prompt that already settled ignores it, and a
|
|
233
|
+
* client that waited would hang on a server that never replies.
|
|
234
|
+
*/
|
|
235
|
+
private cancelTurn;
|
|
236
|
+
/**
|
|
237
|
+
* Whether the parked session is still a prefix of the history about to be sent.
|
|
238
|
+
*
|
|
239
|
+
* Three questions, and every one of them must answer yes: the process is alive,
|
|
240
|
+
* the bridge still exposes the tool catalogue the agent listed (the bridge
|
|
241
|
+
* publishes no change feed, so a different set cannot reach a resumed session),
|
|
242
|
+
* and the harness history still begins with exactly what the agent was told.
|
|
243
|
+
*
|
|
244
|
+
* @param entry - The parked session.
|
|
245
|
+
* @param options - The generation about to run.
|
|
246
|
+
*/
|
|
247
|
+
private usableDormant;
|
|
248
|
+
/**
|
|
249
|
+
* Continue a parked session with only what the harness added since.
|
|
250
|
+
*
|
|
251
|
+
* @param entry - The parked session to reuse.
|
|
252
|
+
* @param options - The generation about to run.
|
|
253
|
+
* @param settings - This line's own preferences, read for the native-tool policy.
|
|
254
|
+
* @param effort - The thinking level this generation asked for.
|
|
255
|
+
* @param images - Images resolved for this request.
|
|
256
|
+
* @param signal - Caller cancellation.
|
|
257
|
+
* @param activity - Watchdog pulse.
|
|
258
|
+
* @returns the stream, or undefined when the session could not be reused. On
|
|
259
|
+
* that path the process has already been handed back, so the caller starts a
|
|
260
|
+
* cold turn rather than failing the generation.
|
|
261
|
+
*/
|
|
262
|
+
private resumeDormant;
|
|
263
|
+
/**
|
|
264
|
+
* Keep a finished turn's session ready for the next user message.
|
|
265
|
+
*
|
|
266
|
+
* The bridge stays open on purpose: its endpoint is what the parked session's
|
|
267
|
+
* tool list points at, and closing it would leave the agent calling a port
|
|
268
|
+
* nobody answers.
|
|
269
|
+
*/
|
|
270
|
+
private park;
|
|
271
|
+
/**
|
|
272
|
+
* Drop a parked session and hand its process back to the pool.
|
|
273
|
+
*
|
|
274
|
+
* The conversation itself is abandoned rather than closed with `session/close`:
|
|
275
|
+
* not every agent version this line supports answers that request, and a request
|
|
276
|
+
* that never settles would occupy one of the client's protocol slots for the
|
|
277
|
+
* life of the process. The next turn opens a fresh conversation on the same warm
|
|
278
|
+
* process.
|
|
279
|
+
*/
|
|
280
|
+
private closeDormant;
|
|
190
281
|
/**
|
|
191
282
|
* Take one warm process out of the pool.
|
|
192
283
|
*
|
|
@@ -199,6 +290,7 @@ export declare class AntigravityAcpAdapter extends LlmAdapter {
|
|
|
199
290
|
private checkoutIdle;
|
|
200
291
|
/** Re-install per-turn handlers on a reused client. */
|
|
201
292
|
private attachHandlers;
|
|
293
|
+
/** Hand one turn's process back to the idle pool, disposing it when it is spent. */
|
|
202
294
|
private release;
|
|
203
295
|
private visibleModels;
|
|
204
296
|
private now;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/adapter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,UAAU,EAGV,KAAK,eAAe,IAAI,sBAAsB,EAC9C,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAIL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EACV,sBAAsB,EAEtB,sBAAsB,EACvB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,SAAS,EAAY,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAiB7E,OAAO,KAAK,EAA0B,2BAA2B,EAAE,MAAM,eAAe,CAAA;AACxF,OAAO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
|
|
|
23
23
|
import { AcpClient as Client } from './acp-client.ts';
|
|
24
24
|
import type { AntigravityAcpModelDto } from '../../shared/antigravity-acp-contracts.ts';
|
|
25
25
|
import type { AcpLaunch } from './adapter.ts';
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* How long a live listing is trusted before a background refresh replaces it.
|
|
28
|
+
*
|
|
29
|
+
* Fifteen minutes, the same value the Codex line uses, because one refresh is not
|
|
30
|
+
* cheap: it spawns the whole `agy` process (244 MB in the reference report) to
|
|
31
|
+
* read one `session/new`. The card polls this listing on every render, so a
|
|
32
|
+
* short TTL turned a model picker into a process spawner every minute. A plan
|
|
33
|
+
* change is rare and the card's own refresh button - `read({ force: true })` -
|
|
34
|
+
* is what a user reaches for when it happens.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CATALOG_TTL_MS: number;
|
|
28
37
|
/** Budget for one catalogue read; a hung agent must not hold the picker. */
|
|
29
38
|
export declare const CATALOG_TIMEOUT_MS = 20000;
|
|
30
39
|
/** One read's result. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAOrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAG7C
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,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