@codexhost/cli-darwin-x64 0.18.0-beta.4 → 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 +93 -53
- package/app/console-web.js +159 -119
- package/app/desktop-controller.mjs +283 -113
- package/app/host-runtime.mjs +2129 -1529
- package/app/plugins/antigravity/plugin.mjs +787 -303
- package/app/plugins/claude-code/plugin.mjs +85 -45
- package/app/plugins/codebuddy/plugin.mjs +99 -59
- package/app/plugins/codex-usage/plugin.mjs +85 -45
- package/app/plugins/copilot/plugin.mjs +90 -50
- package/app/plugins/cursor-cli/plugin.mjs +113 -73
- package/app/plugins/deepseek-harness/plugin.mjs +116 -76
- package/app/plugins/devin/plugin.mjs +90 -50
- package/app/plugins/grok/plugin.mjs +96 -56
- package/app/plugins/hermes/plugin.mjs +77 -37
- package/app/plugins/kimi-code/plugin.mjs +94 -54
- package/app/plugins/kiro-cli/plugin.mjs +90 -50
- package/app/plugins/omp/plugin.mjs +81 -41
- package/app/plugins/opencode/plugin.mjs +78 -38
- package/app/plugins/pi/plugin.mjs +94 -54
- package/app/plugins/qoder/plugin.mjs +106 -66
- package/app/plugins/qoder-cn/plugin.mjs +106 -66
- package/app/plugins/qwen-code/plugin.mjs +101 -61
- package/app/plugins/workbuddy/plugin.mjs +99 -59
- package/app/plugins/zcode/plugin.mjs +82 -42
- package/app/renderer-extension.js +353 -295
- package/app/web/assets/{index-D1dOzBMI.js → index-C0aXz2jD.js} +63 -63
- package/app/web/codex-agent.png +0 -0
- package/app/web/codexhost-settings.js +154 -114
- package/app/web/index.html +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-ui-chat/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +12 -12
- 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-tool/client.js +18 -18
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -8
- package/app/web/sw.js +1 -6
- package/app/web-modules/server.mjs +2079 -1201
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire as __codexhostCreateRequire } from "node:module"; const require = __codexhostCreateRequire(import.meta.url);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __export = (
|
|
3
|
+
var __export = (target2, all) => {
|
|
4
4
|
for (var name in all)
|
|
5
|
-
__defProp(
|
|
5
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// ../../harness-discovery/dist/environment.js
|
|
@@ -1298,8 +1298,8 @@ function defineLazy(object3, key, getter) {
|
|
|
1298
1298
|
function objectClone(obj) {
|
|
1299
1299
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1300
1300
|
}
|
|
1301
|
-
function assignProp(
|
|
1302
|
-
Object.defineProperty(
|
|
1301
|
+
function assignProp(target2, prop, value) {
|
|
1302
|
+
Object.defineProperty(target2, prop, {
|
|
1303
1303
|
value,
|
|
1304
1304
|
writable: true,
|
|
1305
1305
|
enumerable: true,
|
|
@@ -1482,35 +1482,35 @@ function normalizeParams(_params) {
|
|
|
1482
1482
|
return params;
|
|
1483
1483
|
}
|
|
1484
1484
|
function createTransparentProxy(getter) {
|
|
1485
|
-
let
|
|
1485
|
+
let target2;
|
|
1486
1486
|
return new Proxy({}, {
|
|
1487
1487
|
get(_, prop, receiver) {
|
|
1488
|
-
|
|
1489
|
-
return Reflect.get(
|
|
1488
|
+
target2 ?? (target2 = getter());
|
|
1489
|
+
return Reflect.get(target2, prop, receiver);
|
|
1490
1490
|
},
|
|
1491
1491
|
set(_, prop, value, receiver) {
|
|
1492
|
-
|
|
1493
|
-
return Reflect.set(
|
|
1492
|
+
target2 ?? (target2 = getter());
|
|
1493
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1494
1494
|
},
|
|
1495
1495
|
has(_, prop) {
|
|
1496
|
-
|
|
1497
|
-
return Reflect.has(
|
|
1496
|
+
target2 ?? (target2 = getter());
|
|
1497
|
+
return Reflect.has(target2, prop);
|
|
1498
1498
|
},
|
|
1499
1499
|
deleteProperty(_, prop) {
|
|
1500
|
-
|
|
1501
|
-
return Reflect.deleteProperty(
|
|
1500
|
+
target2 ?? (target2 = getter());
|
|
1501
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1502
1502
|
},
|
|
1503
1503
|
ownKeys(_) {
|
|
1504
|
-
|
|
1505
|
-
return Reflect.ownKeys(
|
|
1504
|
+
target2 ?? (target2 = getter());
|
|
1505
|
+
return Reflect.ownKeys(target2);
|
|
1506
1506
|
},
|
|
1507
1507
|
getOwnPropertyDescriptor(_, prop) {
|
|
1508
|
-
|
|
1509
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1508
|
+
target2 ?? (target2 = getter());
|
|
1509
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1510
1510
|
},
|
|
1511
1511
|
defineProperty(_, prop, descriptor) {
|
|
1512
|
-
|
|
1513
|
-
return Reflect.defineProperty(
|
|
1512
|
+
target2 ?? (target2 = getter());
|
|
1513
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
@@ -11962,15 +11962,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11962
11962
|
|
|
11963
11963
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11964
11964
|
function initializeContext(params) {
|
|
11965
|
-
let
|
|
11966
|
-
if (
|
|
11967
|
-
|
|
11968
|
-
if (
|
|
11969
|
-
|
|
11965
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11966
|
+
if (target2 === "draft-4")
|
|
11967
|
+
target2 = "draft-04";
|
|
11968
|
+
if (target2 === "draft-7")
|
|
11969
|
+
target2 = "draft-07";
|
|
11970
11970
|
return {
|
|
11971
11971
|
processors: params.processors ?? {},
|
|
11972
11972
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11973
|
-
target,
|
|
11973
|
+
target: target2,
|
|
11974
11974
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11975
11975
|
override: params?.override ?? (() => {
|
|
11976
11976
|
}),
|
|
@@ -12312,8 +12312,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12312
12312
|
return finalize(ctx, schema);
|
|
12313
12313
|
};
|
|
12314
12314
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12315
|
-
const { libraryOptions, target } = params ?? {};
|
|
12316
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12315
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12316
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12317
12317
|
process2(schema, ctx);
|
|
12318
12318
|
extractDefs(ctx, schema);
|
|
12319
12319
|
return finalize(ctx, schema);
|
|
@@ -13372,8 +13372,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13372
13372
|
catch(params) {
|
|
13373
13373
|
return _catch2(this, params);
|
|
13374
13374
|
},
|
|
13375
|
-
pipe(
|
|
13376
|
-
return pipe(this,
|
|
13375
|
+
pipe(target2) {
|
|
13376
|
+
return pipe(this, target2);
|
|
13377
13377
|
},
|
|
13378
13378
|
readonly() {
|
|
13379
13379
|
return readonly(this);
|
|
@@ -15603,15 +15603,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15603
15603
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15604
15604
|
}).strict().superRefine(({ threads }, context) => {
|
|
15605
15605
|
const seen = /* @__PURE__ */ new Set();
|
|
15606
|
-
for (const [index,
|
|
15607
|
-
if (seen.has(
|
|
15606
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15607
|
+
if (seen.has(thread2.threadId)) {
|
|
15608
15608
|
context.addIssue({
|
|
15609
15609
|
code: "custom",
|
|
15610
15610
|
message: "Thread ownership-list results must be unique",
|
|
15611
15611
|
path: ["threads", index, "threadId"]
|
|
15612
15612
|
});
|
|
15613
15613
|
}
|
|
15614
|
-
seen.add(
|
|
15614
|
+
seen.add(thread2.threadId);
|
|
15615
15615
|
}
|
|
15616
15616
|
});
|
|
15617
15617
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -16949,6 +16949,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16949
16949
|
}).strict();
|
|
16950
16950
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16951
16951
|
|
|
16952
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16953
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16954
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16955
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16956
|
+
var thread = { ...target, threadId: identity };
|
|
16957
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16958
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16959
|
+
external_exports.strictObject({
|
|
16960
|
+
kind: external_exports.literal("list"),
|
|
16961
|
+
...target,
|
|
16962
|
+
cursor: external_exports.string().nullable(),
|
|
16963
|
+
archived: external_exports.boolean()
|
|
16964
|
+
}),
|
|
16965
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16966
|
+
external_exports.strictObject({
|
|
16967
|
+
kind: external_exports.literal("prompt"),
|
|
16968
|
+
...thread,
|
|
16969
|
+
epoch: identity,
|
|
16970
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16971
|
+
requestId: identity.optional()
|
|
16972
|
+
}),
|
|
16973
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16974
|
+
external_exports.strictObject({
|
|
16975
|
+
kind: external_exports.literal("rename"),
|
|
16976
|
+
...thread,
|
|
16977
|
+
epoch: identity,
|
|
16978
|
+
name: external_exports.string().min(1).max(512)
|
|
16979
|
+
}),
|
|
16980
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16981
|
+
external_exports.strictObject({
|
|
16982
|
+
kind: external_exports.literal("respond"),
|
|
16983
|
+
...thread,
|
|
16984
|
+
epoch: identity,
|
|
16985
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16986
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16987
|
+
})
|
|
16988
|
+
]);
|
|
16989
|
+
|
|
16952
16990
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16953
16991
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16954
16992
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16969,7 +17007,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16969
17007
|
identity: external_exports.string().max(4096).nullable()
|
|
16970
17008
|
});
|
|
16971
17009
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17010
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16972
17011
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17012
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16973
17013
|
external_exports.strictObject({
|
|
16974
17014
|
action: external_exports.literal("read-thread"),
|
|
16975
17015
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -18523,17 +18563,17 @@ function piHistoryMessageIdentities(sessionId, entries) {
|
|
|
18523
18563
|
const timestampCounts = /* @__PURE__ */ new Map();
|
|
18524
18564
|
const identities = /* @__PURE__ */ new Map();
|
|
18525
18565
|
for (const entry of entries) {
|
|
18526
|
-
const
|
|
18527
|
-
if (
|
|
18528
|
-
identities.set(entry.id,
|
|
18566
|
+
const identity2 = piMessageIdentity(sessionId, entry.message, timestampCounts);
|
|
18567
|
+
if (identity2)
|
|
18568
|
+
identities.set(entry.id, identity2);
|
|
18529
18569
|
}
|
|
18530
18570
|
return { identities, timestampCounts };
|
|
18531
18571
|
}
|
|
18532
|
-
function piMessageItemId(
|
|
18533
|
-
if (!
|
|
18572
|
+
function piMessageItemId(identity2, kind) {
|
|
18573
|
+
if (!identity2)
|
|
18534
18574
|
return null;
|
|
18535
|
-
const timestampIdentity = "timestamp" in
|
|
18536
|
-
const value = timestampIdentity ? JSON.stringify([
|
|
18575
|
+
const timestampIdentity = "timestamp" in identity2;
|
|
18576
|
+
const value = timestampIdentity ? JSON.stringify([identity2.sessionId, identity2.timestamp, identity2.occurrence]) : identity2.responseId;
|
|
18537
18577
|
const digest = createHash("sha256").update(value).digest("hex");
|
|
18538
18578
|
return hostItemIdSchema.parse(`pi-${timestampIdentity ? "message" : "response"}-v1-${digest}-${kind}`);
|
|
18539
18579
|
}
|
|
@@ -20835,7 +20875,7 @@ function record8(value) {
|
|
|
20835
20875
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20836
20876
|
}
|
|
20837
20877
|
var MAX_SESSION_BYTES = 8 * 1024 * 1024;
|
|
20838
|
-
async function childHistory(file2, parentSessionId,
|
|
20878
|
+
async function childHistory(file2, parentSessionId, identity2, validateParent = false) {
|
|
20839
20879
|
if (!path13.isAbsolute(file2))
|
|
20840
20880
|
throw new Error("Pi child Session path is not absolute");
|
|
20841
20881
|
const handle = await open3(file2, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0));
|
|
@@ -20866,7 +20906,7 @@ async function childHistory(file2, parentSessionId, identity, validateParent = f
|
|
|
20866
20906
|
model: null,
|
|
20867
20907
|
...typeof header.cwd === "string" ? { cwd: header.cwd } : {}
|
|
20868
20908
|
});
|
|
20869
|
-
const prefix = createHash6("sha256").update(
|
|
20909
|
+
const prefix = createHash6("sha256").update(identity2).digest("hex");
|
|
20870
20910
|
return {
|
|
20871
20911
|
turns: snapshot.turns.map((turn) => {
|
|
20872
20912
|
const readonlyTurn = {
|
|
@@ -21212,7 +21252,7 @@ function nodeOnPath(environment) {
|
|
|
21212
21252
|
}
|
|
21213
21253
|
return process.execPath;
|
|
21214
21254
|
}
|
|
21215
|
-
function npmShim(
|
|
21255
|
+
function npmShim(target2, pathExtFix = false) {
|
|
21216
21256
|
return `@ECHO off
|
|
21217
21257
|
GOTO start
|
|
21218
21258
|
:find_dp0
|
|
@@ -21228,7 +21268,7 @@ IF EXIST "%dp0%\\node.exe" (
|
|
|
21228
21268
|
SET "_prog=node"
|
|
21229
21269
|
${pathExtFix ? "" : " SET PATHEXT=%PATHEXT:;.JS;=;%\n"})
|
|
21230
21270
|
|
|
21231
|
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ${pathExtFix ? "set PATHEXT=%PATHEXT:;.JS;=;% & " : ""}"%_prog%" "%dp0%\\${
|
|
21271
|
+
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & ${pathExtFix ? "set PATHEXT=%PATHEXT:;.JS;=;% & " : ""}"%_prog%" "%dp0%\\${target2}" %*`;
|
|
21232
21272
|
}
|
|
21233
21273
|
var standaloneNodeSetup = 'IF EXIST "%LOCALAPPDATA%\\pi-node\\current\\node.exe" SET "node=%LOCALAPPDATA%\\pi-node\\current\\node.exe"';
|
|
21234
21274
|
function managedShim(standalone) {
|
|
@@ -21258,8 +21298,8 @@ function piUncNodeInvocation(command, arguments_, environment) {
|
|
|
21258
21298
|
const manifest = JSON.parse(text3(path15.join(packageDirectory, "package.json")) ?? "");
|
|
21259
21299
|
if (typeof manifest === "object" && manifest !== null && "name" in manifest && manifest.name === "@earendil-works/pi-coding-agent") {
|
|
21260
21300
|
const entry = findPiCliEntry(packageDirectory);
|
|
21261
|
-
const
|
|
21262
|
-
if (entry &&
|
|
21301
|
+
const target2 = entry && path15.relative(directory, entry).replaceAll("/", "\\");
|
|
21302
|
+
if (entry && target2 && [npmShim(target2), npmShim(target2, true)].includes(source)) {
|
|
21263
21303
|
const localNode = path15.join(directory, "node.exe");
|
|
21264
21304
|
return {
|
|
21265
21305
|
command: isFile(localNode) ? localNode : nodeOnPath(environment),
|
|
@@ -23377,15 +23417,15 @@ var PiHarnessSession = class {
|
|
|
23377
23417
|
void transport.runTurn(text4, (event) => this.#handleTurnEvent(active, event)).then(async (result) => {
|
|
23378
23418
|
active.settling = true;
|
|
23379
23419
|
try {
|
|
23380
|
-
const
|
|
23420
|
+
const identity2 = await this.#completedTurnIdentity(active, transport);
|
|
23381
23421
|
this.#completeTurn(active, result.cancelled ? {
|
|
23382
23422
|
status: "cancelled",
|
|
23383
23423
|
reason: "Cancelled by user",
|
|
23384
|
-
...
|
|
23424
|
+
...identity2.checkpoint ? { checkpoint: identity2.checkpoint } : {}
|
|
23385
23425
|
} : {
|
|
23386
23426
|
status: "succeeded",
|
|
23387
|
-
...
|
|
23388
|
-
}, result.text,
|
|
23427
|
+
...identity2.checkpoint ? { checkpoint: identity2.checkpoint } : {}
|
|
23428
|
+
}, result.text, identity2.nativeTurnRef);
|
|
23389
23429
|
} catch (error51) {
|
|
23390
23430
|
this.#completeTurn(active, {
|
|
23391
23431
|
status: "failed",
|
|
@@ -23394,20 +23434,20 @@ var PiHarnessSession = class {
|
|
|
23394
23434
|
}
|
|
23395
23435
|
}).catch(async (error51) => {
|
|
23396
23436
|
active.settling = true;
|
|
23397
|
-
let
|
|
23437
|
+
let identity2;
|
|
23398
23438
|
try {
|
|
23399
|
-
|
|
23439
|
+
identity2 = await this.#completedTurnIdentity(active, transport);
|
|
23400
23440
|
} catch {
|
|
23401
23441
|
}
|
|
23402
23442
|
this.#completeTurn(active, active.cancellationRequested ? {
|
|
23403
23443
|
status: "cancelled",
|
|
23404
23444
|
reason: "Cancelled by user",
|
|
23405
|
-
...
|
|
23445
|
+
...identity2?.checkpoint ? { checkpoint: identity2.checkpoint } : {}
|
|
23406
23446
|
} : {
|
|
23407
23447
|
status: "failed",
|
|
23408
23448
|
error: normalizedError(error51, "nativeFailure"),
|
|
23409
|
-
...
|
|
23410
|
-
}, void 0,
|
|
23449
|
+
...identity2?.checkpoint ? { checkpoint: identity2.checkpoint } : {}
|
|
23450
|
+
}, void 0, identity2?.nativeTurnRef);
|
|
23411
23451
|
});
|
|
23412
23452
|
return { ok: true, value: { turnId: command.turnId } };
|
|
23413
23453
|
} finally {
|
|
@@ -12,9 +12,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
12
12
|
throw mod = 0, e;
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
|
-
var __export = (
|
|
15
|
+
var __export = (target2, all) => {
|
|
16
16
|
for (var name in all)
|
|
17
|
-
__defProp(
|
|
17
|
+
__defProp(target2, name, { get: all[name], enumerable: true });
|
|
18
18
|
};
|
|
19
19
|
var __copyProps = (to3, from, except, desc) => {
|
|
20
20
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -24,12 +24,12 @@ var __copyProps = (to3, from, except, desc) => {
|
|
|
24
24
|
}
|
|
25
25
|
return to3;
|
|
26
26
|
};
|
|
27
|
-
var __toESM = (mod, isNodeMode,
|
|
27
|
+
var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
28
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
29
|
// file that has been converted to a CommonJS file using a Babel-
|
|
30
30
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
31
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target2, "default", { value: mod, enumerable: true }) : target2,
|
|
33
33
|
mod
|
|
34
34
|
));
|
|
35
35
|
|
|
@@ -3649,57 +3649,57 @@ var require_fast_uri = __commonJS({
|
|
|
3649
3649
|
return serialize(resolved, schemelessOptions);
|
|
3650
3650
|
}
|
|
3651
3651
|
function resolveComponent(base, relative, options, skipNormalization) {
|
|
3652
|
-
const
|
|
3652
|
+
const target2 = {};
|
|
3653
3653
|
if (!skipNormalization) {
|
|
3654
3654
|
base = parse3(serialize(base, options), options);
|
|
3655
3655
|
relative = parse3(serialize(relative, options), options);
|
|
3656
3656
|
}
|
|
3657
3657
|
options = options || {};
|
|
3658
3658
|
if (!options.tolerant && relative.scheme) {
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3659
|
+
target2.scheme = relative.scheme;
|
|
3660
|
+
target2.userinfo = relative.userinfo;
|
|
3661
|
+
target2.host = relative.host;
|
|
3662
|
+
target2.port = relative.port;
|
|
3663
|
+
target2.path = removeDotSegments(relative.path || "");
|
|
3664
|
+
target2.query = relative.query;
|
|
3665
3665
|
} else {
|
|
3666
3666
|
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3667
|
+
target2.userinfo = relative.userinfo;
|
|
3668
|
+
target2.host = relative.host;
|
|
3669
|
+
target2.port = relative.port;
|
|
3670
|
+
target2.path = removeDotSegments(relative.path || "");
|
|
3671
|
+
target2.query = relative.query;
|
|
3672
3672
|
} else {
|
|
3673
3673
|
if (!relative.path) {
|
|
3674
|
-
|
|
3674
|
+
target2.path = base.path;
|
|
3675
3675
|
if (relative.query !== void 0) {
|
|
3676
|
-
|
|
3676
|
+
target2.query = relative.query;
|
|
3677
3677
|
} else {
|
|
3678
|
-
|
|
3678
|
+
target2.query = base.query;
|
|
3679
3679
|
}
|
|
3680
3680
|
} else {
|
|
3681
3681
|
if (relative.path[0] === "/") {
|
|
3682
|
-
|
|
3682
|
+
target2.path = removeDotSegments(relative.path);
|
|
3683
3683
|
} else {
|
|
3684
3684
|
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
3685
|
-
|
|
3685
|
+
target2.path = "/" + relative.path;
|
|
3686
3686
|
} else if (!base.path) {
|
|
3687
|
-
|
|
3687
|
+
target2.path = relative.path;
|
|
3688
3688
|
} else {
|
|
3689
|
-
|
|
3689
|
+
target2.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3690
3690
|
}
|
|
3691
|
-
|
|
3691
|
+
target2.path = removeDotSegments(target2.path);
|
|
3692
3692
|
}
|
|
3693
|
-
|
|
3693
|
+
target2.query = relative.query;
|
|
3694
3694
|
}
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3695
|
+
target2.userinfo = base.userinfo;
|
|
3696
|
+
target2.host = base.host;
|
|
3697
|
+
target2.port = base.port;
|
|
3698
3698
|
}
|
|
3699
|
-
|
|
3699
|
+
target2.scheme = base.scheme;
|
|
3700
3700
|
}
|
|
3701
|
-
|
|
3702
|
-
return
|
|
3701
|
+
target2.fragment = relative.fragment;
|
|
3702
|
+
return target2;
|
|
3703
3703
|
}
|
|
3704
3704
|
function equal(uriA, uriB, options) {
|
|
3705
3705
|
const normalizedA = normalizeComparableURI(uriA, options);
|
|
@@ -13744,8 +13744,8 @@ function defineLazy(object3, key, getter) {
|
|
|
13744
13744
|
function objectClone(obj) {
|
|
13745
13745
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
13746
13746
|
}
|
|
13747
|
-
function assignProp(
|
|
13748
|
-
Object.defineProperty(
|
|
13747
|
+
function assignProp(target2, prop, value) {
|
|
13748
|
+
Object.defineProperty(target2, prop, {
|
|
13749
13749
|
value,
|
|
13750
13750
|
writable: true,
|
|
13751
13751
|
enumerable: true,
|
|
@@ -13928,35 +13928,35 @@ function normalizeParams(_params) {
|
|
|
13928
13928
|
return params;
|
|
13929
13929
|
}
|
|
13930
13930
|
function createTransparentProxy(getter) {
|
|
13931
|
-
let
|
|
13931
|
+
let target2;
|
|
13932
13932
|
return new Proxy({}, {
|
|
13933
13933
|
get(_, prop, receiver) {
|
|
13934
|
-
|
|
13935
|
-
return Reflect.get(
|
|
13934
|
+
target2 ?? (target2 = getter());
|
|
13935
|
+
return Reflect.get(target2, prop, receiver);
|
|
13936
13936
|
},
|
|
13937
13937
|
set(_, prop, value, receiver) {
|
|
13938
|
-
|
|
13939
|
-
return Reflect.set(
|
|
13938
|
+
target2 ?? (target2 = getter());
|
|
13939
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
13940
13940
|
},
|
|
13941
13941
|
has(_, prop) {
|
|
13942
|
-
|
|
13943
|
-
return Reflect.has(
|
|
13942
|
+
target2 ?? (target2 = getter());
|
|
13943
|
+
return Reflect.has(target2, prop);
|
|
13944
13944
|
},
|
|
13945
13945
|
deleteProperty(_, prop) {
|
|
13946
|
-
|
|
13947
|
-
return Reflect.deleteProperty(
|
|
13946
|
+
target2 ?? (target2 = getter());
|
|
13947
|
+
return Reflect.deleteProperty(target2, prop);
|
|
13948
13948
|
},
|
|
13949
13949
|
ownKeys(_) {
|
|
13950
|
-
|
|
13951
|
-
return Reflect.ownKeys(
|
|
13950
|
+
target2 ?? (target2 = getter());
|
|
13951
|
+
return Reflect.ownKeys(target2);
|
|
13952
13952
|
},
|
|
13953
13953
|
getOwnPropertyDescriptor(_, prop) {
|
|
13954
|
-
|
|
13955
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
13954
|
+
target2 ?? (target2 = getter());
|
|
13955
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
13956
13956
|
},
|
|
13957
13957
|
defineProperty(_, prop, descriptor) {
|
|
13958
|
-
|
|
13959
|
-
return Reflect.defineProperty(
|
|
13958
|
+
target2 ?? (target2 = getter());
|
|
13959
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
13960
13960
|
}
|
|
13961
13961
|
});
|
|
13962
13962
|
}
|
|
@@ -24408,15 +24408,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
24408
24408
|
|
|
24409
24409
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
24410
24410
|
function initializeContext(params) {
|
|
24411
|
-
let
|
|
24412
|
-
if (
|
|
24413
|
-
|
|
24414
|
-
if (
|
|
24415
|
-
|
|
24411
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
24412
|
+
if (target2 === "draft-4")
|
|
24413
|
+
target2 = "draft-04";
|
|
24414
|
+
if (target2 === "draft-7")
|
|
24415
|
+
target2 = "draft-07";
|
|
24416
24416
|
return {
|
|
24417
24417
|
processors: params.processors ?? {},
|
|
24418
24418
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
24419
|
-
target,
|
|
24419
|
+
target: target2,
|
|
24420
24420
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
24421
24421
|
override: params?.override ?? (() => {
|
|
24422
24422
|
}),
|
|
@@ -24758,8 +24758,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
24758
24758
|
return finalize(ctx, schema);
|
|
24759
24759
|
};
|
|
24760
24760
|
var createStandardJSONSchemaMethod = (schema, io3, processors = {}) => (params) => {
|
|
24761
|
-
const { libraryOptions, target } = params ?? {};
|
|
24762
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io: io3, processors });
|
|
24761
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
24762
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io3, processors });
|
|
24763
24763
|
process2(schema, ctx);
|
|
24764
24764
|
extractDefs(ctx, schema);
|
|
24765
24765
|
return finalize(ctx, schema);
|
|
@@ -25818,8 +25818,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
25818
25818
|
catch(params) {
|
|
25819
25819
|
return _catch2(this, params);
|
|
25820
25820
|
},
|
|
25821
|
-
pipe(
|
|
25822
|
-
return pipe(this,
|
|
25821
|
+
pipe(target2) {
|
|
25822
|
+
return pipe(this, target2);
|
|
25823
25823
|
},
|
|
25824
25824
|
readonly() {
|
|
25825
25825
|
return readonly(this);
|
|
@@ -28049,15 +28049,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
28049
28049
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
28050
28050
|
}).strict().superRefine(({ threads }, context) => {
|
|
28051
28051
|
const seen = /* @__PURE__ */ new Set();
|
|
28052
|
-
for (const [index,
|
|
28053
|
-
if (seen.has(
|
|
28052
|
+
for (const [index, thread2] of threads.entries()) {
|
|
28053
|
+
if (seen.has(thread2.threadId)) {
|
|
28054
28054
|
context.addIssue({
|
|
28055
28055
|
code: "custom",
|
|
28056
28056
|
message: "Thread ownership-list results must be unique",
|
|
28057
28057
|
path: ["threads", index, "threadId"]
|
|
28058
28058
|
});
|
|
28059
28059
|
}
|
|
28060
|
-
seen.add(
|
|
28060
|
+
seen.add(thread2.threadId);
|
|
28061
28061
|
}
|
|
28062
28062
|
});
|
|
28063
28063
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -29395,6 +29395,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
29395
29395
|
}).strict();
|
|
29396
29396
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
29397
29397
|
|
|
29398
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
29399
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
29400
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
29401
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
29402
|
+
var thread = { ...target, threadId: identity };
|
|
29403
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29404
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29405
|
+
external_exports.strictObject({
|
|
29406
|
+
kind: external_exports.literal("list"),
|
|
29407
|
+
...target,
|
|
29408
|
+
cursor: external_exports.string().nullable(),
|
|
29409
|
+
archived: external_exports.boolean()
|
|
29410
|
+
}),
|
|
29411
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
29412
|
+
external_exports.strictObject({
|
|
29413
|
+
kind: external_exports.literal("prompt"),
|
|
29414
|
+
...thread,
|
|
29415
|
+
epoch: identity,
|
|
29416
|
+
text: external_exports.string().min(1).max(8e3),
|
|
29417
|
+
requestId: identity.optional()
|
|
29418
|
+
}),
|
|
29419
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
29420
|
+
external_exports.strictObject({
|
|
29421
|
+
kind: external_exports.literal("rename"),
|
|
29422
|
+
...thread,
|
|
29423
|
+
epoch: identity,
|
|
29424
|
+
name: external_exports.string().min(1).max(512)
|
|
29425
|
+
}),
|
|
29426
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
29427
|
+
external_exports.strictObject({
|
|
29428
|
+
kind: external_exports.literal("respond"),
|
|
29429
|
+
...thread,
|
|
29430
|
+
epoch: identity,
|
|
29431
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
29432
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
29433
|
+
})
|
|
29434
|
+
]);
|
|
29435
|
+
|
|
29398
29436
|
// ../../shared-contracts/dist/remote-connections.js
|
|
29399
29437
|
var hostId = external_exports.string().min(1).max(1024);
|
|
29400
29438
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -29415,7 +29453,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
29415
29453
|
identity: external_exports.string().max(4096).nullable()
|
|
29416
29454
|
});
|
|
29417
29455
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
29456
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
29418
29457
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
29458
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
29419
29459
|
external_exports.strictObject({
|
|
29420
29460
|
action: external_exports.literal("read-thread"),
|
|
29421
29461
|
hostId: hostId.refine((id3) => id3 !== "local"),
|
|
@@ -29563,9 +29603,9 @@ function creditAmount(used, limit, unit) {
|
|
|
29563
29603
|
unit: typeof unit === "string" && unit.trim() ? unit : "credits"
|
|
29564
29604
|
};
|
|
29565
29605
|
}
|
|
29566
|
-
function projectQoderAccount(usage,
|
|
29606
|
+
function projectQoderAccount(usage, identity2) {
|
|
29567
29607
|
const data = record3(usage);
|
|
29568
|
-
const account = record3(
|
|
29608
|
+
const account = record3(identity2);
|
|
29569
29609
|
const quota = record3(data.userQuota);
|
|
29570
29610
|
const shared = record3(data.orgResourcePackage);
|
|
29571
29611
|
const nativePercent = quota.percentage ?? data.totalUsagePercentage;
|
|
@@ -31742,8 +31782,8 @@ var ZodType2 = class {
|
|
|
31742
31782
|
description
|
|
31743
31783
|
});
|
|
31744
31784
|
}
|
|
31745
|
-
pipe(
|
|
31746
|
-
return ZodPipeline.create(this,
|
|
31785
|
+
pipe(target2) {
|
|
31786
|
+
return ZodPipeline.create(this, target2);
|
|
31747
31787
|
}
|
|
31748
31788
|
readonly() {
|
|
31749
31789
|
return ZodReadonly2.create(this);
|
|
@@ -54840,7 +54880,7 @@ var QoderAdapter = class {
|
|
|
54840
54880
|
}
|
|
54841
54881
|
});
|
|
54842
54882
|
return await Promise.race([
|
|
54843
|
-
Promise.all([probe.getUsageInfo?.(), probe.accountInfo?.().catch(() => void 0)]).then(([usage,
|
|
54883
|
+
Promise.all([probe.getUsageInfo?.(), probe.accountInfo?.().catch(() => void 0)]).then(([usage, identity2]) => projectQoderAccount(usage, identity2)),
|
|
54844
54884
|
new Promise((resolve) => {
|
|
54845
54885
|
timer = setTimeout(() => resolve(null), 1e4);
|
|
54846
54886
|
})
|