@codexhost/cli-linux-arm64 0.18.0-beta.4 → 0.18.0
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 +98 -55
- package/app/console-web.js +276 -188
- 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 +435 -361
- 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 +229 -175
- 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-settings-general/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-ui-theme/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 +41 -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
|
@@ -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);
|
|
@@ -13341,8 +13341,8 @@ function defineLazy(object3, key, getter) {
|
|
|
13341
13341
|
function objectClone(obj) {
|
|
13342
13342
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
13343
13343
|
}
|
|
13344
|
-
function assignProp(
|
|
13345
|
-
Object.defineProperty(
|
|
13344
|
+
function assignProp(target2, prop, value) {
|
|
13345
|
+
Object.defineProperty(target2, prop, {
|
|
13346
13346
|
value,
|
|
13347
13347
|
writable: true,
|
|
13348
13348
|
enumerable: true,
|
|
@@ -13525,35 +13525,35 @@ function normalizeParams(_params) {
|
|
|
13525
13525
|
return params;
|
|
13526
13526
|
}
|
|
13527
13527
|
function createTransparentProxy(getter) {
|
|
13528
|
-
let
|
|
13528
|
+
let target2;
|
|
13529
13529
|
return new Proxy({}, {
|
|
13530
13530
|
get(_, prop, receiver) {
|
|
13531
|
-
|
|
13532
|
-
return Reflect.get(
|
|
13531
|
+
target2 ?? (target2 = getter());
|
|
13532
|
+
return Reflect.get(target2, prop, receiver);
|
|
13533
13533
|
},
|
|
13534
13534
|
set(_, prop, value, receiver) {
|
|
13535
|
-
|
|
13536
|
-
return Reflect.set(
|
|
13535
|
+
target2 ?? (target2 = getter());
|
|
13536
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
13537
13537
|
},
|
|
13538
13538
|
has(_, prop) {
|
|
13539
|
-
|
|
13540
|
-
return Reflect.has(
|
|
13539
|
+
target2 ?? (target2 = getter());
|
|
13540
|
+
return Reflect.has(target2, prop);
|
|
13541
13541
|
},
|
|
13542
13542
|
deleteProperty(_, prop) {
|
|
13543
|
-
|
|
13544
|
-
return Reflect.deleteProperty(
|
|
13543
|
+
target2 ?? (target2 = getter());
|
|
13544
|
+
return Reflect.deleteProperty(target2, prop);
|
|
13545
13545
|
},
|
|
13546
13546
|
ownKeys(_) {
|
|
13547
|
-
|
|
13548
|
-
return Reflect.ownKeys(
|
|
13547
|
+
target2 ?? (target2 = getter());
|
|
13548
|
+
return Reflect.ownKeys(target2);
|
|
13549
13549
|
},
|
|
13550
13550
|
getOwnPropertyDescriptor(_, prop) {
|
|
13551
|
-
|
|
13552
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
13551
|
+
target2 ?? (target2 = getter());
|
|
13552
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
13553
13553
|
},
|
|
13554
13554
|
defineProperty(_, prop, descriptor) {
|
|
13555
|
-
|
|
13556
|
-
return Reflect.defineProperty(
|
|
13555
|
+
target2 ?? (target2 = getter());
|
|
13556
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
13557
13557
|
}
|
|
13558
13558
|
});
|
|
13559
13559
|
}
|
|
@@ -24005,15 +24005,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
24005
24005
|
|
|
24006
24006
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
24007
24007
|
function initializeContext(params) {
|
|
24008
|
-
let
|
|
24009
|
-
if (
|
|
24010
|
-
|
|
24011
|
-
if (
|
|
24012
|
-
|
|
24008
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
24009
|
+
if (target2 === "draft-4")
|
|
24010
|
+
target2 = "draft-04";
|
|
24011
|
+
if (target2 === "draft-7")
|
|
24012
|
+
target2 = "draft-07";
|
|
24013
24013
|
return {
|
|
24014
24014
|
processors: params.processors ?? {},
|
|
24015
24015
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
24016
|
-
target,
|
|
24016
|
+
target: target2,
|
|
24017
24017
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
24018
24018
|
override: params?.override ?? (() => {
|
|
24019
24019
|
}),
|
|
@@ -24355,8 +24355,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
24355
24355
|
return finalize(ctx, schema);
|
|
24356
24356
|
};
|
|
24357
24357
|
var createStandardJSONSchemaMethod = (schema, io3, processors = {}) => (params) => {
|
|
24358
|
-
const { libraryOptions, target } = params ?? {};
|
|
24359
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io: io3, processors });
|
|
24358
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
24359
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io3, processors });
|
|
24360
24360
|
process2(schema, ctx);
|
|
24361
24361
|
extractDefs(ctx, schema);
|
|
24362
24362
|
return finalize(ctx, schema);
|
|
@@ -25415,8 +25415,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
25415
25415
|
catch(params) {
|
|
25416
25416
|
return _catch2(this, params);
|
|
25417
25417
|
},
|
|
25418
|
-
pipe(
|
|
25419
|
-
return pipe(this,
|
|
25418
|
+
pipe(target2) {
|
|
25419
|
+
return pipe(this, target2);
|
|
25420
25420
|
},
|
|
25421
25421
|
readonly() {
|
|
25422
25422
|
return readonly(this);
|
|
@@ -27646,15 +27646,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
27646
27646
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
27647
27647
|
}).strict().superRefine(({ threads }, context) => {
|
|
27648
27648
|
const seen = /* @__PURE__ */ new Set();
|
|
27649
|
-
for (const [index,
|
|
27650
|
-
if (seen.has(
|
|
27649
|
+
for (const [index, thread2] of threads.entries()) {
|
|
27650
|
+
if (seen.has(thread2.threadId)) {
|
|
27651
27651
|
context.addIssue({
|
|
27652
27652
|
code: "custom",
|
|
27653
27653
|
message: "Thread ownership-list results must be unique",
|
|
27654
27654
|
path: ["threads", index, "threadId"]
|
|
27655
27655
|
});
|
|
27656
27656
|
}
|
|
27657
|
-
seen.add(
|
|
27657
|
+
seen.add(thread2.threadId);
|
|
27658
27658
|
}
|
|
27659
27659
|
});
|
|
27660
27660
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -28992,6 +28992,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
28992
28992
|
}).strict();
|
|
28993
28993
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
28994
28994
|
|
|
28995
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
28996
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
28997
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
28998
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
28999
|
+
var thread = { ...target, threadId: identity };
|
|
29000
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
29001
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
29002
|
+
external_exports.strictObject({
|
|
29003
|
+
kind: external_exports.literal("list"),
|
|
29004
|
+
...target,
|
|
29005
|
+
cursor: external_exports.string().nullable(),
|
|
29006
|
+
archived: external_exports.boolean()
|
|
29007
|
+
}),
|
|
29008
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
29009
|
+
external_exports.strictObject({
|
|
29010
|
+
kind: external_exports.literal("prompt"),
|
|
29011
|
+
...thread,
|
|
29012
|
+
epoch: identity,
|
|
29013
|
+
text: external_exports.string().min(1).max(8e3),
|
|
29014
|
+
requestId: identity.optional()
|
|
29015
|
+
}),
|
|
29016
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
29017
|
+
external_exports.strictObject({
|
|
29018
|
+
kind: external_exports.literal("rename"),
|
|
29019
|
+
...thread,
|
|
29020
|
+
epoch: identity,
|
|
29021
|
+
name: external_exports.string().min(1).max(512)
|
|
29022
|
+
}),
|
|
29023
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
29024
|
+
external_exports.strictObject({
|
|
29025
|
+
kind: external_exports.literal("respond"),
|
|
29026
|
+
...thread,
|
|
29027
|
+
epoch: identity,
|
|
29028
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
29029
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
29030
|
+
})
|
|
29031
|
+
]);
|
|
29032
|
+
|
|
28995
29033
|
// ../../shared-contracts/dist/remote-connections.js
|
|
28996
29034
|
var hostId = external_exports.string().min(1).max(1024);
|
|
28997
29035
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -29012,7 +29050,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
29012
29050
|
identity: external_exports.string().max(4096).nullable()
|
|
29013
29051
|
});
|
|
29014
29052
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
29053
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
29015
29054
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
29055
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
29016
29056
|
external_exports.strictObject({
|
|
29017
29057
|
action: external_exports.literal("read-thread"),
|
|
29018
29058
|
hostId: hostId.refine((id3) => id3 !== "local"),
|
|
@@ -29565,9 +29605,9 @@ function creditAmount(used, limit, unit) {
|
|
|
29565
29605
|
unit: typeof unit === "string" && unit.trim() ? unit : "credits"
|
|
29566
29606
|
};
|
|
29567
29607
|
}
|
|
29568
|
-
function projectQoderAccount(usage,
|
|
29608
|
+
function projectQoderAccount(usage, identity2) {
|
|
29569
29609
|
const data = record3(usage);
|
|
29570
|
-
const account = record3(
|
|
29610
|
+
const account = record3(identity2);
|
|
29571
29611
|
const quota = record3(data.userQuota);
|
|
29572
29612
|
const shared = record3(data.orgResourcePackage);
|
|
29573
29613
|
const nativePercent = quota.percentage ?? data.totalUsagePercentage;
|
|
@@ -31744,8 +31784,8 @@ var ZodType2 = class {
|
|
|
31744
31784
|
description
|
|
31745
31785
|
});
|
|
31746
31786
|
}
|
|
31747
|
-
pipe(
|
|
31748
|
-
return ZodPipeline.create(this,
|
|
31787
|
+
pipe(target2) {
|
|
31788
|
+
return ZodPipeline.create(this, target2);
|
|
31749
31789
|
}
|
|
31750
31790
|
readonly() {
|
|
31751
31791
|
return ZodReadonly2.create(this);
|
|
@@ -54842,7 +54882,7 @@ var QoderAdapter = class {
|
|
|
54842
54882
|
}
|
|
54843
54883
|
});
|
|
54844
54884
|
return await Promise.race([
|
|
54845
|
-
Promise.all([probe.getUsageInfo?.(), probe.accountInfo?.().catch(() => void 0)]).then(([usage,
|
|
54885
|
+
Promise.all([probe.getUsageInfo?.(), probe.accountInfo?.().catch(() => void 0)]).then(([usage, identity2]) => projectQoderAccount(usage, identity2)),
|
|
54846
54886
|
new Promise((resolve) => {
|
|
54847
54887
|
timer = setTimeout(() => resolve(null), 1e4);
|
|
54848
54888
|
})
|
|
@@ -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 = (to2, from, except, desc) => {
|
|
20
20
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -24,12 +24,12 @@ var __copyProps = (to2, from, except, desc) => {
|
|
|
24
24
|
}
|
|
25
25
|
return to2;
|
|
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
|
|
|
@@ -3852,57 +3852,57 @@ var require_fast_uri = __commonJS({
|
|
|
3852
3852
|
return serialize(resolved, schemelessOptions);
|
|
3853
3853
|
}
|
|
3854
3854
|
function resolveComponent(base, relative, options, skipNormalization) {
|
|
3855
|
-
const
|
|
3855
|
+
const target2 = {};
|
|
3856
3856
|
if (!skipNormalization) {
|
|
3857
3857
|
base = parse4(serialize(base, options), options);
|
|
3858
3858
|
relative = parse4(serialize(relative, options), options);
|
|
3859
3859
|
}
|
|
3860
3860
|
options = options || {};
|
|
3861
3861
|
if (!options.tolerant && relative.scheme) {
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3862
|
+
target2.scheme = relative.scheme;
|
|
3863
|
+
target2.userinfo = relative.userinfo;
|
|
3864
|
+
target2.host = relative.host;
|
|
3865
|
+
target2.port = relative.port;
|
|
3866
|
+
target2.path = removeDotSegments(relative.path || "");
|
|
3867
|
+
target2.query = relative.query;
|
|
3868
3868
|
} else {
|
|
3869
3869
|
if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3870
|
+
target2.userinfo = relative.userinfo;
|
|
3871
|
+
target2.host = relative.host;
|
|
3872
|
+
target2.port = relative.port;
|
|
3873
|
+
target2.path = removeDotSegments(relative.path || "");
|
|
3874
|
+
target2.query = relative.query;
|
|
3875
3875
|
} else {
|
|
3876
3876
|
if (!relative.path) {
|
|
3877
|
-
|
|
3877
|
+
target2.path = base.path;
|
|
3878
3878
|
if (relative.query !== void 0) {
|
|
3879
|
-
|
|
3879
|
+
target2.query = relative.query;
|
|
3880
3880
|
} else {
|
|
3881
|
-
|
|
3881
|
+
target2.query = base.query;
|
|
3882
3882
|
}
|
|
3883
3883
|
} else {
|
|
3884
3884
|
if (relative.path[0] === "/") {
|
|
3885
|
-
|
|
3885
|
+
target2.path = removeDotSegments(relative.path);
|
|
3886
3886
|
} else {
|
|
3887
3887
|
if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
|
|
3888
|
-
|
|
3888
|
+
target2.path = "/" + relative.path;
|
|
3889
3889
|
} else if (!base.path) {
|
|
3890
|
-
|
|
3890
|
+
target2.path = relative.path;
|
|
3891
3891
|
} else {
|
|
3892
|
-
|
|
3892
|
+
target2.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3893
3893
|
}
|
|
3894
|
-
|
|
3894
|
+
target2.path = removeDotSegments(target2.path);
|
|
3895
3895
|
}
|
|
3896
|
-
|
|
3896
|
+
target2.query = relative.query;
|
|
3897
3897
|
}
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3898
|
+
target2.userinfo = base.userinfo;
|
|
3899
|
+
target2.host = base.host;
|
|
3900
|
+
target2.port = base.port;
|
|
3901
3901
|
}
|
|
3902
|
-
|
|
3902
|
+
target2.scheme = base.scheme;
|
|
3903
3903
|
}
|
|
3904
|
-
|
|
3905
|
-
return
|
|
3904
|
+
target2.fragment = relative.fragment;
|
|
3905
|
+
return target2;
|
|
3906
3906
|
}
|
|
3907
3907
|
function equal(uriA, uriB, options) {
|
|
3908
3908
|
const normalizedA = normalizeComparableURI(uriA, options);
|
|
@@ -7646,8 +7646,8 @@ function defineLazy(object2, key, getter) {
|
|
|
7646
7646
|
function objectClone(obj) {
|
|
7647
7647
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
7648
7648
|
}
|
|
7649
|
-
function assignProp(
|
|
7650
|
-
Object.defineProperty(
|
|
7649
|
+
function assignProp(target2, prop, value) {
|
|
7650
|
+
Object.defineProperty(target2, prop, {
|
|
7651
7651
|
value,
|
|
7652
7652
|
writable: true,
|
|
7653
7653
|
enumerable: true,
|
|
@@ -7830,35 +7830,35 @@ function normalizeParams(_params) {
|
|
|
7830
7830
|
return params;
|
|
7831
7831
|
}
|
|
7832
7832
|
function createTransparentProxy(getter) {
|
|
7833
|
-
let
|
|
7833
|
+
let target2;
|
|
7834
7834
|
return new Proxy({}, {
|
|
7835
7835
|
get(_, prop, receiver) {
|
|
7836
|
-
|
|
7837
|
-
return Reflect.get(
|
|
7836
|
+
target2 ?? (target2 = getter());
|
|
7837
|
+
return Reflect.get(target2, prop, receiver);
|
|
7838
7838
|
},
|
|
7839
7839
|
set(_, prop, value, receiver) {
|
|
7840
|
-
|
|
7841
|
-
return Reflect.set(
|
|
7840
|
+
target2 ?? (target2 = getter());
|
|
7841
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
7842
7842
|
},
|
|
7843
7843
|
has(_, prop) {
|
|
7844
|
-
|
|
7845
|
-
return Reflect.has(
|
|
7844
|
+
target2 ?? (target2 = getter());
|
|
7845
|
+
return Reflect.has(target2, prop);
|
|
7846
7846
|
},
|
|
7847
7847
|
deleteProperty(_, prop) {
|
|
7848
|
-
|
|
7849
|
-
return Reflect.deleteProperty(
|
|
7848
|
+
target2 ?? (target2 = getter());
|
|
7849
|
+
return Reflect.deleteProperty(target2, prop);
|
|
7850
7850
|
},
|
|
7851
7851
|
ownKeys(_) {
|
|
7852
|
-
|
|
7853
|
-
return Reflect.ownKeys(
|
|
7852
|
+
target2 ?? (target2 = getter());
|
|
7853
|
+
return Reflect.ownKeys(target2);
|
|
7854
7854
|
},
|
|
7855
7855
|
getOwnPropertyDescriptor(_, prop) {
|
|
7856
|
-
|
|
7857
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
7856
|
+
target2 ?? (target2 = getter());
|
|
7857
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
7858
7858
|
},
|
|
7859
7859
|
defineProperty(_, prop, descriptor) {
|
|
7860
|
-
|
|
7861
|
-
return Reflect.defineProperty(
|
|
7860
|
+
target2 ?? (target2 = getter());
|
|
7861
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
7862
7862
|
}
|
|
7863
7863
|
});
|
|
7864
7864
|
}
|
|
@@ -18310,15 +18310,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
18310
18310
|
|
|
18311
18311
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
18312
18312
|
function initializeContext(params) {
|
|
18313
|
-
let
|
|
18314
|
-
if (
|
|
18315
|
-
|
|
18316
|
-
if (
|
|
18317
|
-
|
|
18313
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
18314
|
+
if (target2 === "draft-4")
|
|
18315
|
+
target2 = "draft-04";
|
|
18316
|
+
if (target2 === "draft-7")
|
|
18317
|
+
target2 = "draft-07";
|
|
18318
18318
|
return {
|
|
18319
18319
|
processors: params.processors ?? {},
|
|
18320
18320
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
18321
|
-
target,
|
|
18321
|
+
target: target2,
|
|
18322
18322
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
18323
18323
|
override: params?.override ?? (() => {
|
|
18324
18324
|
}),
|
|
@@ -18660,8 +18660,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
18660
18660
|
return finalize(ctx, schema);
|
|
18661
18661
|
};
|
|
18662
18662
|
var createStandardJSONSchemaMethod = (schema, io2, processors = {}) => (params) => {
|
|
18663
|
-
const { libraryOptions, target } = params ?? {};
|
|
18664
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io: io2, processors });
|
|
18663
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
18664
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io: io2, processors });
|
|
18665
18665
|
process2(schema, ctx);
|
|
18666
18666
|
extractDefs(ctx, schema);
|
|
18667
18667
|
return finalize(ctx, schema);
|
|
@@ -19720,8 +19720,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
19720
19720
|
catch(params) {
|
|
19721
19721
|
return _catch2(this, params);
|
|
19722
19722
|
},
|
|
19723
|
-
pipe(
|
|
19724
|
-
return pipe(this,
|
|
19723
|
+
pipe(target2) {
|
|
19724
|
+
return pipe(this, target2);
|
|
19725
19725
|
},
|
|
19726
19726
|
readonly() {
|
|
19727
19727
|
return readonly(this);
|
|
@@ -21951,15 +21951,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
21951
21951
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
21952
21952
|
}).strict().superRefine(({ threads }, context) => {
|
|
21953
21953
|
const seen = /* @__PURE__ */ new Set();
|
|
21954
|
-
for (const [index,
|
|
21955
|
-
if (seen.has(
|
|
21954
|
+
for (const [index, thread2] of threads.entries()) {
|
|
21955
|
+
if (seen.has(thread2.threadId)) {
|
|
21956
21956
|
context.addIssue({
|
|
21957
21957
|
code: "custom",
|
|
21958
21958
|
message: "Thread ownership-list results must be unique",
|
|
21959
21959
|
path: ["threads", index, "threadId"]
|
|
21960
21960
|
});
|
|
21961
21961
|
}
|
|
21962
|
-
seen.add(
|
|
21962
|
+
seen.add(thread2.threadId);
|
|
21963
21963
|
}
|
|
21964
21964
|
});
|
|
21965
21965
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -23295,6 +23295,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
23295
23295
|
}).strict();
|
|
23296
23296
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
23297
23297
|
|
|
23298
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
23299
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
23300
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
23301
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
23302
|
+
var thread = { ...target, threadId: identity };
|
|
23303
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
23304
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
23305
|
+
external_exports.strictObject({
|
|
23306
|
+
kind: external_exports.literal("list"),
|
|
23307
|
+
...target,
|
|
23308
|
+
cursor: external_exports.string().nullable(),
|
|
23309
|
+
archived: external_exports.boolean()
|
|
23310
|
+
}),
|
|
23311
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
23312
|
+
external_exports.strictObject({
|
|
23313
|
+
kind: external_exports.literal("prompt"),
|
|
23314
|
+
...thread,
|
|
23315
|
+
epoch: identity,
|
|
23316
|
+
text: external_exports.string().min(1).max(8e3),
|
|
23317
|
+
requestId: identity.optional()
|
|
23318
|
+
}),
|
|
23319
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
23320
|
+
external_exports.strictObject({
|
|
23321
|
+
kind: external_exports.literal("rename"),
|
|
23322
|
+
...thread,
|
|
23323
|
+
epoch: identity,
|
|
23324
|
+
name: external_exports.string().min(1).max(512)
|
|
23325
|
+
}),
|
|
23326
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
23327
|
+
external_exports.strictObject({
|
|
23328
|
+
kind: external_exports.literal("respond"),
|
|
23329
|
+
...thread,
|
|
23330
|
+
epoch: identity,
|
|
23331
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
23332
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
23333
|
+
})
|
|
23334
|
+
]);
|
|
23335
|
+
|
|
23298
23336
|
// ../../shared-contracts/dist/remote-connections.js
|
|
23299
23337
|
var hostId = external_exports.string().min(1).max(1024);
|
|
23300
23338
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -23315,7 +23353,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
23315
23353
|
identity: external_exports.string().max(4096).nullable()
|
|
23316
23354
|
});
|
|
23317
23355
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
23356
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
23318
23357
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
23358
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
23319
23359
|
external_exports.strictObject({
|
|
23320
23360
|
action: external_exports.literal("read-thread"),
|
|
23321
23361
|
hostId: hostId.refine((id) => id !== "local"),
|