@eddyskywalker/dsh-chatgpt-subscription 0.80.1 → 0.80.2
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 +7 -0
- package/lib/client.js.map +1 -1
- package/lib/index.js +95 -45
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/antigravity-acp/acp-client.d.ts +7 -0
- package/lib/types/host/antigravity-acp/acp-client.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/binary.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/login.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/process-temp.d.ts +11 -0
- package/lib/types/host/antigravity-acp/process-temp.d.ts.map +1 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import os, { homedir, platform, userInfo } from "node:os";
|
|
|
15
15
|
import { constants, createCipheriv, createDecipheriv, createHash, createHmac, publicEncrypt, randomBytes, randomUUID } from "node:crypto";
|
|
16
16
|
import { isDeepStrictEqual } from "node:util";
|
|
17
17
|
import { execFileSync, spawn } from "node:child_process";
|
|
18
|
-
import fs$1, { appendFileSync, constants as constants$1, copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, utimesSync, writeFileSync } from "node:fs";
|
|
18
|
+
import fs$1, { appendFileSync, constants as constants$1, copyFileSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, rmdirSync, statSync, utimesSync, writeFileSync } from "node:fs";
|
|
19
19
|
import http, { createServer } from "node:http";
|
|
20
20
|
import { WebError } from "@deepseek-ai/dsh-web";
|
|
21
21
|
import { lookup } from "node:dns/promises";
|
|
@@ -832,7 +832,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
|
|
|
832
832
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
833
833
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
834
834
|
*/
|
|
835
|
-
const PLUGIN_VERSION = "0.80.
|
|
835
|
+
const PLUGIN_VERSION = "0.80.2";
|
|
836
836
|
const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
|
|
837
837
|
const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
|
|
838
838
|
const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
|
|
@@ -24917,6 +24917,46 @@ function imageBlockToInline$2(block, images) {
|
|
|
24917
24917
|
} : void 0;
|
|
24918
24918
|
}
|
|
24919
24919
|
//#endregion
|
|
24920
|
+
//#region src/host/antigravity-acp/process-temp.ts
|
|
24921
|
+
/**
|
|
24922
|
+
* Per-process temporary storage for the official Antigravity executable.
|
|
24923
|
+
*
|
|
24924
|
+
* The standalone Windows server is a PyInstaller onefile: it unpacks a large
|
|
24925
|
+
* `_MEI` tree beneath TMP/TEMP and removes that tree itself during a graceful
|
|
24926
|
+
* exit. Keeping every launch under DSH's own cache prevents a killed or polled
|
|
24927
|
+
* process from writing into the user's system TEMP. Cleanup here is deliberately
|
|
24928
|
+
* non-recursive: only the empty run directory owned by this module is removed.
|
|
24929
|
+
*/
|
|
24930
|
+
/** Create one launch's temporary directory beneath DSH's ACP process cache. */
|
|
24931
|
+
function createAcpProcessTemp(tempRoot) {
|
|
24932
|
+
const root = tempRoot ?? path.join(dshHomeDir(), "cache", "antigravity-acp", "process-tmp");
|
|
24933
|
+
mkdirSync(root, { recursive: true });
|
|
24934
|
+
const directory = mkdtempSync(path.join(root, "run-"));
|
|
24935
|
+
return {
|
|
24936
|
+
directory,
|
|
24937
|
+
environment: isolatedTempEnvironment(directory),
|
|
24938
|
+
release: () => {
|
|
24939
|
+
try {
|
|
24940
|
+
rmdirSync(directory);
|
|
24941
|
+
} catch {}
|
|
24942
|
+
}
|
|
24943
|
+
};
|
|
24944
|
+
}
|
|
24945
|
+
/** Redirect every PyInstaller-supported temp variable to this launch's directory. */
|
|
24946
|
+
function isolatedTempEnvironment(directory) {
|
|
24947
|
+
const environment = {};
|
|
24948
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
24949
|
+
if (value === void 0) continue;
|
|
24950
|
+
if (/key|token|secret|password|credential/i.test(key)) continue;
|
|
24951
|
+
if (/^(?:tmp|temp|tmpdir)$/i.test(key)) continue;
|
|
24952
|
+
environment[key] = value;
|
|
24953
|
+
}
|
|
24954
|
+
environment.TMP = directory;
|
|
24955
|
+
environment.TEMP = directory;
|
|
24956
|
+
environment.TMPDIR = directory;
|
|
24957
|
+
return environment;
|
|
24958
|
+
}
|
|
24959
|
+
//#endregion
|
|
24920
24960
|
//#region src/host/antigravity-acp/acp-client.ts
|
|
24921
24961
|
/**
|
|
24922
24962
|
* Minimal ACP v1 client over stdio JSON-RPC.
|
|
@@ -24968,24 +25008,33 @@ var AcpClient = class {
|
|
|
24968
25008
|
handlers;
|
|
24969
25009
|
disposeEofGraceMs;
|
|
24970
25010
|
disposeGraceMs;
|
|
25011
|
+
temp;
|
|
24971
25012
|
exitDetail;
|
|
24972
25013
|
constructor(options, handlers = {}) {
|
|
24973
25014
|
this.handlers = handlers;
|
|
24974
|
-
this.disposeEofGraceMs = options.disposeEofGraceMs ??
|
|
24975
|
-
this.disposeGraceMs = options.disposeGraceMs ??
|
|
24976
|
-
this.
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
|
|
24981
|
-
|
|
24982
|
-
|
|
24983
|
-
|
|
24984
|
-
|
|
24985
|
-
|
|
24986
|
-
|
|
24987
|
-
|
|
24988
|
-
|
|
25015
|
+
this.disposeEofGraceMs = options.disposeEofGraceMs ?? 6e4;
|
|
25016
|
+
this.disposeGraceMs = options.disposeGraceMs ?? 1e4;
|
|
25017
|
+
this.temp = createAcpProcessTemp(options.tempRoot);
|
|
25018
|
+
let child;
|
|
25019
|
+
try {
|
|
25020
|
+
child = spawn(options.command, [...options.args ?? []], {
|
|
25021
|
+
cwd: options.cwd,
|
|
25022
|
+
stdio: [
|
|
25023
|
+
"pipe",
|
|
25024
|
+
"pipe",
|
|
25025
|
+
"pipe"
|
|
25026
|
+
],
|
|
25027
|
+
env: {
|
|
25028
|
+
...this.temp.environment,
|
|
25029
|
+
...options.env
|
|
25030
|
+
},
|
|
25031
|
+
windowsHide: true
|
|
25032
|
+
});
|
|
25033
|
+
} catch (error) {
|
|
25034
|
+
this.temp.release();
|
|
25035
|
+
throw error;
|
|
25036
|
+
}
|
|
25037
|
+
this.child = child;
|
|
24989
25038
|
this.child.stdout.on("data", (chunk) => {
|
|
24990
25039
|
this.handlers.onActivity?.();
|
|
24991
25040
|
this.consume(this.decoder.write(chunk));
|
|
@@ -24996,7 +25045,10 @@ var AcpClient = class {
|
|
|
24996
25045
|
this.child.stderr.on("data", (chunk) => {
|
|
24997
25046
|
this.stderrTail = (this.stderrTail + chunk.toString("utf8")).slice(-2048);
|
|
24998
25047
|
});
|
|
24999
|
-
this.child.on("error", (error) =>
|
|
25048
|
+
this.child.on("error", (error) => {
|
|
25049
|
+
this.temp.release();
|
|
25050
|
+
this.failAll(error);
|
|
25051
|
+
});
|
|
25000
25052
|
this.child.on("exit", (code, signal) => {
|
|
25001
25053
|
this.exitDetail = {
|
|
25002
25054
|
code,
|
|
@@ -25004,6 +25056,7 @@ var AcpClient = class {
|
|
|
25004
25056
|
...this.stderrTail === "" ? {} : { stderrTail: redactStderr(this.stderrTail) }
|
|
25005
25057
|
};
|
|
25006
25058
|
this.closed = true;
|
|
25059
|
+
this.temp.release();
|
|
25007
25060
|
this.failAll(new AcpError(`Antigravity ACP process exited (code ${code ?? "null"}, signal ${signal ?? "none"})`));
|
|
25008
25061
|
this.handlers.onExit?.(this.exitDetail);
|
|
25009
25062
|
});
|
|
@@ -25220,21 +25273,6 @@ function settlesWithin(promise, budgetMs) {
|
|
|
25220
25273
|
});
|
|
25221
25274
|
});
|
|
25222
25275
|
}
|
|
25223
|
-
/**
|
|
25224
|
-
* A copy of this process's environment without credentials.
|
|
25225
|
-
*
|
|
25226
|
-
* The agent authenticates itself and must not inherit a provider key from the
|
|
25227
|
-
* host's own environment; the caller may still layer explicit entries on top.
|
|
25228
|
-
*/
|
|
25229
|
-
function scrubbedEnvironment() {
|
|
25230
|
-
const env = {};
|
|
25231
|
-
for (const [key, value] of Object.entries(process.env)) {
|
|
25232
|
-
if (value === void 0) continue;
|
|
25233
|
-
if (/key|token|secret|password|credential/i.test(key)) continue;
|
|
25234
|
-
env[key] = value;
|
|
25235
|
-
}
|
|
25236
|
-
return env;
|
|
25237
|
-
}
|
|
25238
25276
|
function redactStderr(text) {
|
|
25239
25277
|
return text.replace(/([A-Za-z0-9_\-]{24,})/g, "[redacted]").slice(-2048);
|
|
25240
25278
|
}
|
|
@@ -28075,18 +28113,26 @@ async function exists(candidate) {
|
|
|
28075
28113
|
/** Read `agy --version`, or undefined when the executable does not answer. */
|
|
28076
28114
|
async function readCliVersion(command) {
|
|
28077
28115
|
const { execFile } = await import("node:child_process");
|
|
28116
|
+
const temp = createAcpProcessTemp();
|
|
28078
28117
|
return new Promise((resolve) => {
|
|
28079
|
-
|
|
28080
|
-
|
|
28081
|
-
|
|
28082
|
-
|
|
28083
|
-
|
|
28084
|
-
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
28089
|
-
|
|
28118
|
+
try {
|
|
28119
|
+
execFile(command, ["--version"], {
|
|
28120
|
+
timeout: 1e4,
|
|
28121
|
+
windowsHide: true,
|
|
28122
|
+
env: temp.environment
|
|
28123
|
+
}, (error, stdout) => {
|
|
28124
|
+
temp.release();
|
|
28125
|
+
if (error !== null) {
|
|
28126
|
+
resolve(void 0);
|
|
28127
|
+
return;
|
|
28128
|
+
}
|
|
28129
|
+
const text = stdout.trim().split(/\r?\n/)[0]?.trim();
|
|
28130
|
+
resolve(text === void 0 || text === "" ? void 0 : text);
|
|
28131
|
+
});
|
|
28132
|
+
} catch {
|
|
28133
|
+
temp.release();
|
|
28134
|
+
resolve(void 0);
|
|
28135
|
+
}
|
|
28090
28136
|
});
|
|
28091
28137
|
}
|
|
28092
28138
|
/**
|
|
@@ -28239,6 +28285,7 @@ async function startProtocolLogin(client, methodId) {
|
|
|
28239
28285
|
}
|
|
28240
28286
|
}
|
|
28241
28287
|
function startTerminalLogin(launch) {
|
|
28288
|
+
const temp = createAcpProcessTemp();
|
|
28242
28289
|
let child;
|
|
28243
28290
|
try {
|
|
28244
28291
|
child = spawn(launch.command, [...launch.args, "--login"], {
|
|
@@ -28248,14 +28295,18 @@ function startTerminalLogin(launch) {
|
|
|
28248
28295
|
"ignore",
|
|
28249
28296
|
"pipe"
|
|
28250
28297
|
],
|
|
28298
|
+
env: temp.environment,
|
|
28251
28299
|
windowsHide: true
|
|
28252
28300
|
});
|
|
28253
28301
|
} catch (error) {
|
|
28302
|
+
temp.release();
|
|
28254
28303
|
return Promise.resolve({
|
|
28255
28304
|
started: false,
|
|
28256
28305
|
error: error instanceof Error ? error.message : String(error)
|
|
28257
28306
|
});
|
|
28258
28307
|
}
|
|
28308
|
+
child.once("error", () => temp.release());
|
|
28309
|
+
child.once("exit", () => temp.release());
|
|
28259
28310
|
return watchLauncher(child);
|
|
28260
28311
|
}
|
|
28261
28312
|
/**
|
|
@@ -28289,7 +28340,6 @@ function watchLauncher(child) {
|
|
|
28289
28340
|
windowTimer.unref?.();
|
|
28290
28341
|
const detachTimer = setTimeout(() => {
|
|
28291
28342
|
child.stderr?.removeAllListeners("data");
|
|
28292
|
-
child.removeAllListeners();
|
|
28293
28343
|
}, LOGIN_LAUNCH_BUDGET_MS);
|
|
28294
28344
|
detachTimer.unref?.();
|
|
28295
28345
|
child.once("error", (error) => settle(failed(error.message)));
|
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.80.
|
|
79
|
+
export declare const PLUGIN_VERSION: "0.80.2";
|
|
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";
|
|
@@ -44,6 +44,8 @@ export interface AcpSpawnOptions {
|
|
|
44
44
|
cwd: string;
|
|
45
45
|
/** Extra environment entries layered over a scrubbed copy of this process's environment. */
|
|
46
46
|
env?: Readonly<Record<string, string>>;
|
|
47
|
+
/** Parent for this process's private temporary directory; defaults to DSH's ACP cache. */
|
|
48
|
+
tempRoot?: string;
|
|
47
49
|
/** Grace after stdin EOF before the process is killed. */
|
|
48
50
|
disposeEofGraceMs?: number;
|
|
49
51
|
/** Grace between the kill signal and a forced termination. */
|
|
@@ -74,6 +76,10 @@ export declare class AcpError extends Error {
|
|
|
74
76
|
readonly code: number | undefined;
|
|
75
77
|
constructor(message: string, code?: number);
|
|
76
78
|
}
|
|
79
|
+
/** PyInstaller onefile needs time to unpack and to remove its own `_MEI` directory after stdin EOF. */
|
|
80
|
+
export declare const ACP_DISPOSE_EOF_GRACE_MS = 60000;
|
|
81
|
+
/** A second, shorter bound applies only after the graceful EOF window has elapsed. */
|
|
82
|
+
export declare const ACP_DISPOSE_KILL_GRACE_MS = 10000;
|
|
77
83
|
/**
|
|
78
84
|
* One live ACP connection.
|
|
79
85
|
*
|
|
@@ -92,6 +98,7 @@ export declare class AcpClient {
|
|
|
92
98
|
private handlers;
|
|
93
99
|
private readonly disposeEofGraceMs;
|
|
94
100
|
private readonly disposeGraceMs;
|
|
101
|
+
private readonly temp;
|
|
95
102
|
private exitDetail;
|
|
96
103
|
constructor(options: AcpSpawnOptions, handlers?: AcpClientHandlers);
|
|
97
104
|
/** Whether the underlying process is still running. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp-client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/acp-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"acp-client.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/acp-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,+BAA+B;AAC/B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,2EAA2E;AAC3E,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,EAAE,CAAC,EAAE,YAAY,GAAG,MAAM,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAC5D;AAED,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACxB,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,4FAA4F;IAC5F,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACtC,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,eAAe,CAAC,CAAC,SAAS,E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AAC,QAAQ,CAAC,iBAAiB,CAAQ;IAC1C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAQ;IACvC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,UAAU,CAA2B;gBAEjC,OAAO,EAAE,eAAe,EAAE,QAAQ,GAAE,iBAAsB;IAiDtE,uDAAuD;IACvD,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAIzC,gDAAgD;IAChD,IAAI,IAAI,IAAI,aAAa,GAAG,SAAS,CAEpC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAiChF,oDAAoD;IACpD,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAK7C;;;;;;OAMG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB9B,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,OAAO;IAsBf,OAAO,CAAC,QAAQ;YA0BF,mBAAmB;IAsBjC,OAAO,CAAC,OAAO;CAKhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/binary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAUH,6FAA6F;AAC7F,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAA;IACX,2DAA2D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G,SAAS;IAKvC;;;;;OAKG;IACG,IAAI,CAAC,OAAO,GAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAiC/F,wEAAwE;IACxE,UAAU,IAAI,IAAI;CAKnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAgCrH;AAkCD;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiC/F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AAEtF,4EAA4E;AAC5E,eAAO,MAAM,sBAAsB,QAAS,CAAA;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,OAAQ,CAAA;AAK5C,iCAAiC;AACjC,eAAO,MAAM,oBAAoB,QAAS,CAAA;AAE1C,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAA;IAChB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuB7E;AAkGD;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4BvG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AcpProcessTemp {
|
|
2
|
+
/** Private directory passed through TMP, TEMP and TMPDIR. */
|
|
3
|
+
directory: string;
|
|
4
|
+
/** Credential-scrubbed environment containing the isolated temp overrides. */
|
|
5
|
+
environment: NodeJS.ProcessEnv;
|
|
6
|
+
/** Remove the run directory only when it is empty; never remove its contents. */
|
|
7
|
+
release(): void;
|
|
8
|
+
}
|
|
9
|
+
/** Create one launch's temporary directory beneath DSH's ACP process cache. */
|
|
10
|
+
export declare function createAcpProcessTemp(tempRoot?: string): AcpProcessTemp;
|
|
11
|
+
//# sourceMappingURL=process-temp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-temp.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/process-temp.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAA;IACjB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,CAAC,UAAU,CAAA;IAC9B,iFAAiF;IACjF,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,CAgBtE"}
|