@codexhost/cli-linux-arm64 0.18.0-beta.3 → 0.18.0-beta.5
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 +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +102 -57
- package/app/console-web.js +168 -123
- package/app/desktop-controller.mjs +292 -117
- package/app/host-runtime.mjs +5875 -3270
- package/app/plugins/antigravity/plugin.mjs +796 -307
- package/app/plugins/claude-code/plugin.mjs +214 -103
- package/app/plugins/codebuddy/plugin.mjs +108 -63
- package/app/plugins/codex-usage/plugin.mjs +94 -49
- package/app/plugins/copilot/plugin.mjs +99 -54
- package/app/plugins/cursor-cli/plugin.mjs +122 -77
- package/app/plugins/deepseek-harness/plugin.mjs +125 -80
- package/app/plugins/devin/plugin.mjs +99 -54
- package/app/plugins/grok/plugin.mjs +105 -60
- package/app/plugins/hermes/plugin.mjs +86 -41
- package/app/plugins/kimi-code/plugin.mjs +103 -58
- package/app/plugins/kiro-cli/plugin.mjs +99 -54
- package/app/plugins/omp/plugin.mjs +90 -45
- package/app/plugins/opencode/plugin.mjs +87 -42
- package/app/plugins/pi/plugin.mjs +103 -58
- package/app/plugins/qoder/plugin.mjs +115 -70
- package/app/plugins/qoder-cn/plugin.mjs +115 -70
- package/app/plugins/qwen-code/plugin.mjs +110 -65
- package/app/plugins/workbuddy/plugin.mjs +108 -63
- package/app/plugins/zcode/plugin.mjs +91 -46
- package/app/renderer-extension.js +362 -299
- package/app/web/assets/index-C0aXz2jD.js +199 -0
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +163 -118
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +61 -61
- package/app/web/plugins/deepseek-ai__dsh-client-connection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +63 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-permission-presets/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +9 -13
- package/app/web/plugins.json +4 -0
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2443 -1345
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
- package/app/web/assets/index-aKvkfNJN.js +0 -199
|
@@ -26,9 +26,9 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
26
26
|
throw mod = 0, e;
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
var __export = (
|
|
29
|
+
var __export = (target2, all) => {
|
|
30
30
|
for (var name in all)
|
|
31
|
-
__defProp(
|
|
31
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
32
32
|
};
|
|
33
33
|
var __copyProps = (to, from, except, desc) => {
|
|
34
34
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -38,12 +38,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
38
38
|
}
|
|
39
39
|
return to;
|
|
40
40
|
};
|
|
41
|
-
var __toESM = (mod, isNodeMode,
|
|
41
|
+
var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
42
42
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
43
43
|
// file that has been converted to a CommonJS file using a Babel-
|
|
44
44
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
45
45
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
46
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(
|
|
46
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target2, "default", { value: mod, enumerable: true }) : target2,
|
|
47
47
|
mod
|
|
48
48
|
));
|
|
49
49
|
|
|
@@ -4809,8 +4809,8 @@ function defineLazy(object2, key, getter) {
|
|
|
4809
4809
|
function objectClone(obj) {
|
|
4810
4810
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
4811
4811
|
}
|
|
4812
|
-
function assignProp(
|
|
4813
|
-
Object.defineProperty(
|
|
4812
|
+
function assignProp(target2, prop, value) {
|
|
4813
|
+
Object.defineProperty(target2, prop, {
|
|
4814
4814
|
value,
|
|
4815
4815
|
writable: true,
|
|
4816
4816
|
enumerable: true,
|
|
@@ -4993,35 +4993,35 @@ function normalizeParams(_params) {
|
|
|
4993
4993
|
return params;
|
|
4994
4994
|
}
|
|
4995
4995
|
function createTransparentProxy(getter) {
|
|
4996
|
-
let
|
|
4996
|
+
let target2;
|
|
4997
4997
|
return new Proxy({}, {
|
|
4998
4998
|
get(_, prop, receiver) {
|
|
4999
|
-
|
|
5000
|
-
return Reflect.get(
|
|
4999
|
+
target2 ?? (target2 = getter());
|
|
5000
|
+
return Reflect.get(target2, prop, receiver);
|
|
5001
5001
|
},
|
|
5002
5002
|
set(_, prop, value, receiver) {
|
|
5003
|
-
|
|
5004
|
-
return Reflect.set(
|
|
5003
|
+
target2 ?? (target2 = getter());
|
|
5004
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
5005
5005
|
},
|
|
5006
5006
|
has(_, prop) {
|
|
5007
|
-
|
|
5008
|
-
return Reflect.has(
|
|
5007
|
+
target2 ?? (target2 = getter());
|
|
5008
|
+
return Reflect.has(target2, prop);
|
|
5009
5009
|
},
|
|
5010
5010
|
deleteProperty(_, prop) {
|
|
5011
|
-
|
|
5012
|
-
return Reflect.deleteProperty(
|
|
5011
|
+
target2 ?? (target2 = getter());
|
|
5012
|
+
return Reflect.deleteProperty(target2, prop);
|
|
5013
5013
|
},
|
|
5014
5014
|
ownKeys(_) {
|
|
5015
|
-
|
|
5016
|
-
return Reflect.ownKeys(
|
|
5015
|
+
target2 ?? (target2 = getter());
|
|
5016
|
+
return Reflect.ownKeys(target2);
|
|
5017
5017
|
},
|
|
5018
5018
|
getOwnPropertyDescriptor(_, prop) {
|
|
5019
|
-
|
|
5020
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
5019
|
+
target2 ?? (target2 = getter());
|
|
5020
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
5021
5021
|
},
|
|
5022
5022
|
defineProperty(_, prop, descriptor) {
|
|
5023
|
-
|
|
5024
|
-
return Reflect.defineProperty(
|
|
5023
|
+
target2 ?? (target2 = getter());
|
|
5024
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
5025
5025
|
}
|
|
5026
5026
|
});
|
|
5027
5027
|
}
|
|
@@ -15473,15 +15473,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15473
15473
|
|
|
15474
15474
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
15475
15475
|
function initializeContext(params) {
|
|
15476
|
-
let
|
|
15477
|
-
if (
|
|
15478
|
-
|
|
15479
|
-
if (
|
|
15480
|
-
|
|
15476
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
15477
|
+
if (target2 === "draft-4")
|
|
15478
|
+
target2 = "draft-04";
|
|
15479
|
+
if (target2 === "draft-7")
|
|
15480
|
+
target2 = "draft-07";
|
|
15481
15481
|
return {
|
|
15482
15482
|
processors: params.processors ?? {},
|
|
15483
15483
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
15484
|
-
target,
|
|
15484
|
+
target: target2,
|
|
15485
15485
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
15486
15486
|
override: params?.override ?? (() => {
|
|
15487
15487
|
}),
|
|
@@ -15823,8 +15823,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
15823
15823
|
return finalize(ctx, schema);
|
|
15824
15824
|
};
|
|
15825
15825
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
15826
|
-
const { libraryOptions, target } = params ?? {};
|
|
15827
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
15826
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
15827
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
15828
15828
|
process2(schema, ctx);
|
|
15829
15829
|
extractDefs(ctx, schema);
|
|
15830
15830
|
return finalize(ctx, schema);
|
|
@@ -16883,8 +16883,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
16883
16883
|
catch(params) {
|
|
16884
16884
|
return _catch2(this, params);
|
|
16885
16885
|
},
|
|
16886
|
-
pipe(
|
|
16887
|
-
return pipe(this,
|
|
16886
|
+
pipe(target2) {
|
|
16887
|
+
return pipe(this, target2);
|
|
16888
16888
|
},
|
|
16889
16889
|
readonly() {
|
|
16890
16890
|
return readonly(this);
|
|
@@ -19114,15 +19114,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
19114
19114
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
19115
19115
|
}).strict().superRefine(({ threads }, context) => {
|
|
19116
19116
|
const seen = /* @__PURE__ */ new Set();
|
|
19117
|
-
for (const [index,
|
|
19118
|
-
if (seen.has(
|
|
19117
|
+
for (const [index, thread2] of threads.entries()) {
|
|
19118
|
+
if (seen.has(thread2.threadId)) {
|
|
19119
19119
|
context.addIssue({
|
|
19120
19120
|
code: "custom",
|
|
19121
19121
|
message: "Thread ownership-list results must be unique",
|
|
19122
19122
|
path: ["threads", index, "threadId"]
|
|
19123
19123
|
});
|
|
19124
19124
|
}
|
|
19125
|
-
seen.add(
|
|
19125
|
+
seen.add(thread2.threadId);
|
|
19126
19126
|
}
|
|
19127
19127
|
});
|
|
19128
19128
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -19331,13 +19331,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
19331
19331
|
});
|
|
19332
19332
|
|
|
19333
19333
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
19334
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
19334
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
19335
|
+
includeArchived: external_exports.boolean().optional(),
|
|
19336
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
19337
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
19338
|
+
}).strict();
|
|
19335
19339
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
19336
19340
|
threads: external_exports.array(jsonObjectSchema),
|
|
19337
19341
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
19338
19342
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
19339
|
-
* excluded. Native archived IDs
|
|
19340
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
19343
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
19344
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
19345
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
19341
19346
|
}).strict();
|
|
19342
19347
|
|
|
19343
19348
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -19552,7 +19557,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
19552
19557
|
});
|
|
19553
19558
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
19554
19559
|
enabled: false,
|
|
19555
|
-
timeoutMinutes:
|
|
19560
|
+
timeoutMinutes: 10
|
|
19556
19561
|
});
|
|
19557
19562
|
|
|
19558
19563
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -20455,6 +20460,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
20455
20460
|
}).strict();
|
|
20456
20461
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
20457
20462
|
|
|
20463
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
20464
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
20465
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
20466
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
20467
|
+
var thread = { ...target, threadId: identity };
|
|
20468
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
20469
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
20470
|
+
external_exports.strictObject({
|
|
20471
|
+
kind: external_exports.literal("list"),
|
|
20472
|
+
...target,
|
|
20473
|
+
cursor: external_exports.string().nullable(),
|
|
20474
|
+
archived: external_exports.boolean()
|
|
20475
|
+
}),
|
|
20476
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
20477
|
+
external_exports.strictObject({
|
|
20478
|
+
kind: external_exports.literal("prompt"),
|
|
20479
|
+
...thread,
|
|
20480
|
+
epoch: identity,
|
|
20481
|
+
text: external_exports.string().min(1).max(8e3),
|
|
20482
|
+
requestId: identity.optional()
|
|
20483
|
+
}),
|
|
20484
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
20485
|
+
external_exports.strictObject({
|
|
20486
|
+
kind: external_exports.literal("rename"),
|
|
20487
|
+
...thread,
|
|
20488
|
+
epoch: identity,
|
|
20489
|
+
name: external_exports.string().min(1).max(512)
|
|
20490
|
+
}),
|
|
20491
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
20492
|
+
external_exports.strictObject({
|
|
20493
|
+
kind: external_exports.literal("respond"),
|
|
20494
|
+
...thread,
|
|
20495
|
+
epoch: identity,
|
|
20496
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
20497
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
20498
|
+
})
|
|
20499
|
+
]);
|
|
20500
|
+
|
|
20458
20501
|
// ../../shared-contracts/dist/remote-connections.js
|
|
20459
20502
|
var hostId = external_exports.string().min(1).max(1024);
|
|
20460
20503
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -20475,7 +20518,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
20475
20518
|
identity: external_exports.string().max(4096).nullable()
|
|
20476
20519
|
});
|
|
20477
20520
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
20521
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
20478
20522
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
20523
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
20479
20524
|
external_exports.strictObject({
|
|
20480
20525
|
action: external_exports.literal("read-thread"),
|
|
20481
20526
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -26463,10 +26508,10 @@ function getWorkflowDefinition(handle) {
|
|
|
26463
26508
|
function isWorkflowResumeErrorCode(value) {
|
|
26464
26509
|
return value === "not_found" || value === "non_resumable" || value === "workflow_run_not_resumable" || value === "already_active" || value === "workflow_already_running" || value === "workflow_limits_invalid" || value === "workflow_session_disposed" || value === "workflow_storage_unavailable" || value === "workflow_storage_corrupt";
|
|
26465
26510
|
}
|
|
26466
|
-
function copyDefinedWorkflowAgentOption(source,
|
|
26511
|
+
function copyDefinedWorkflowAgentOption(source, target2, key) {
|
|
26467
26512
|
const value = source[key];
|
|
26468
26513
|
if (value !== void 0) {
|
|
26469
|
-
|
|
26514
|
+
target2[key] = value;
|
|
26470
26515
|
}
|
|
26471
26516
|
}
|
|
26472
26517
|
function toToolDefinition(tool) {
|
|
@@ -32354,9 +32399,9 @@ import path4 from "node:path";
|
|
|
32354
32399
|
function referencesNpmBin(shim, name, bin) {
|
|
32355
32400
|
if (bin.includes(".."))
|
|
32356
32401
|
return false;
|
|
32357
|
-
const
|
|
32402
|
+
const target2 = `node_modules/${name}/${bin.replace(/^\.\//, "")}`.toLowerCase();
|
|
32358
32403
|
const text = shim.replaceAll("\\", "/").toLowerCase();
|
|
32359
|
-
return text.includes(`%dp0%/${
|
|
32404
|
+
return text.includes(`%dp0%/${target2}"`) || text.includes(`%~dp0/${target2}"`);
|
|
32360
32405
|
}
|
|
32361
32406
|
async function npmInstallation(command, packages, environment) {
|
|
32362
32407
|
let selected = await realpath(command);
|
|
@@ -32395,8 +32440,8 @@ async function npmInstallation(command, packages, environment) {
|
|
|
32395
32440
|
const launchers = await Promise.all(Object.entries(bins).map(async ([bin, entry]) => {
|
|
32396
32441
|
if (path4.basename(bin) !== bin || entry.includes(".."))
|
|
32397
32442
|
return false;
|
|
32398
|
-
const
|
|
32399
|
-
if (
|
|
32443
|
+
const target2 = await realpath(path4.join(directory, entry)).catch(() => "");
|
|
32444
|
+
if (target2.toLowerCase() !== selected.toLowerCase())
|
|
32400
32445
|
return false;
|
|
32401
32446
|
const shim = await readFile(path4.join(prefix, `${bin}.cmd`), "utf8").catch(() => "");
|
|
32402
32447
|
return referencesNpmBin(shim, name, entry);
|
|
@@ -32461,13 +32506,13 @@ function resolveCopilotExecutable(input, dependencies = {}) {
|
|
|
32461
32506
|
const metadata = JSON.parse(read(paths.join(root, "package.json")));
|
|
32462
32507
|
const bin = typeof metadata.bin === "string" ? metadata.bin : metadata.bin?.copilot;
|
|
32463
32508
|
if (metadata.name === "@github/copilot" && typeof bin === "string" && !paths.parse(bin).root && !bin.split(/[\\/]/u).includes("..") && (bin.endsWith(".js") || /\.exe$/iu.test(bin))) {
|
|
32464
|
-
const
|
|
32509
|
+
const target2 = paths.resolve(root, bin);
|
|
32465
32510
|
const relative2 = `node_modules/@github/copilot/${bin.replaceAll("\\", "/").replace(/^\.\//u, "")}`.toLowerCase();
|
|
32466
32511
|
const shim = read(executable).replaceAll("\\", "/").toLowerCase();
|
|
32467
32512
|
if (shim.includes(`"%dp0%/${relative2}" %*`) || shim.includes(`"%~dp0/${relative2}" %*`)) {
|
|
32468
32513
|
const exists = dependencies.isExecutable ?? ((file2) => isExecutableFile(file2, platform));
|
|
32469
|
-
if (exists(
|
|
32470
|
-
return
|
|
32514
|
+
if (exists(target2))
|
|
32515
|
+
return target2;
|
|
32471
32516
|
}
|
|
32472
32517
|
}
|
|
32473
32518
|
} catch {
|
|
@@ -32957,9 +33002,9 @@ async function readModels(client, session, auth, refresh = true) {
|
|
|
32957
33002
|
auto = !!result.auto || !!result.providers?.some((provider) => provider.kind === "copilot");
|
|
32958
33003
|
} else {
|
|
32959
33004
|
const result = await bounded(client.rpc.models.list({}));
|
|
32960
|
-
const
|
|
33005
|
+
const identity3 = auth ?? await bounded(client.getAuthStatus());
|
|
32961
33006
|
entries = result.models;
|
|
32962
|
-
auto = !!result.auto ||
|
|
33007
|
+
auto = !!result.auto || identity3.isAuthenticated && ["user", "env", "gh-cli", "hmac", "token"].includes(identity3.authType ?? "");
|
|
32963
33008
|
}
|
|
32964
33009
|
const models = entries.map((entry) => modelSchema.parse(entry));
|
|
32965
33010
|
if (auto && !models.some((model2) => model2.id === "auto"))
|
|
@@ -34031,15 +34076,15 @@ var CopilotHarnessSession = class {
|
|
|
34031
34076
|
}
|
|
34032
34077
|
startTurn(id) {
|
|
34033
34078
|
this.usageTelemetry.begin(id);
|
|
34034
|
-
const
|
|
34035
|
-
void
|
|
34079
|
+
const identity3 = Promise.withResolvers();
|
|
34080
|
+
void identity3.promise.catch(() => {
|
|
34036
34081
|
});
|
|
34037
34082
|
return {
|
|
34038
34083
|
id,
|
|
34039
34084
|
items: new CopilotItems(id, (event) => this.emit(event)),
|
|
34040
34085
|
cancelling: false,
|
|
34041
34086
|
accepted: false,
|
|
34042
|
-
identity:
|
|
34087
|
+
identity: identity3,
|
|
34043
34088
|
aliases: /* @__PURE__ */ new Set()
|
|
34044
34089
|
};
|
|
34045
34090
|
}
|
|
@@ -34544,7 +34589,7 @@ function projectCopilotAccount(quota) {
|
|
|
34544
34589
|
|
|
34545
34590
|
// dist/account.js
|
|
34546
34591
|
var CACHE_MS = 15e3;
|
|
34547
|
-
var
|
|
34592
|
+
var identity2 = (auth) => JSON.stringify([auth.authType, auth.host, auth.login]);
|
|
34548
34593
|
async function deleteDraft(client, id) {
|
|
34549
34594
|
try {
|
|
34550
34595
|
await bounded(client.deleteSession(id), 5e3);
|
|
@@ -34628,7 +34673,7 @@ var CopilotAccount = class {
|
|
|
34628
34673
|
return null;
|
|
34629
34674
|
const quota = await bounded(session.rpc.quota.refresh(), 1e4);
|
|
34630
34675
|
const after = await bounded(client.getAuthStatus(), 3e3);
|
|
34631
|
-
if (after.isAuthenticated &&
|
|
34676
|
+
if (after.isAuthenticated && identity2(before) === identity2(after))
|
|
34632
34677
|
result = projectCopilotAccount(quota);
|
|
34633
34678
|
} catch {
|
|
34634
34679
|
result = null;
|