@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
|
@@ -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
|
|
@@ -1098,8 +1098,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1098
1098
|
function objectClone(obj) {
|
|
1099
1099
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1100
1100
|
}
|
|
1101
|
-
function assignProp(
|
|
1102
|
-
Object.defineProperty(
|
|
1101
|
+
function assignProp(target2, prop, value) {
|
|
1102
|
+
Object.defineProperty(target2, prop, {
|
|
1103
1103
|
value,
|
|
1104
1104
|
writable: true,
|
|
1105
1105
|
enumerable: true,
|
|
@@ -1282,35 +1282,35 @@ function normalizeParams(_params) {
|
|
|
1282
1282
|
return params;
|
|
1283
1283
|
}
|
|
1284
1284
|
function createTransparentProxy(getter) {
|
|
1285
|
-
let
|
|
1285
|
+
let target2;
|
|
1286
1286
|
return new Proxy({}, {
|
|
1287
1287
|
get(_, prop, receiver) {
|
|
1288
|
-
|
|
1289
|
-
return Reflect.get(
|
|
1288
|
+
target2 ?? (target2 = getter());
|
|
1289
|
+
return Reflect.get(target2, prop, receiver);
|
|
1290
1290
|
},
|
|
1291
1291
|
set(_, prop, value, receiver) {
|
|
1292
|
-
|
|
1293
|
-
return Reflect.set(
|
|
1292
|
+
target2 ?? (target2 = getter());
|
|
1293
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1294
1294
|
},
|
|
1295
1295
|
has(_, prop) {
|
|
1296
|
-
|
|
1297
|
-
return Reflect.has(
|
|
1296
|
+
target2 ?? (target2 = getter());
|
|
1297
|
+
return Reflect.has(target2, prop);
|
|
1298
1298
|
},
|
|
1299
1299
|
deleteProperty(_, prop) {
|
|
1300
|
-
|
|
1301
|
-
return Reflect.deleteProperty(
|
|
1300
|
+
target2 ?? (target2 = getter());
|
|
1301
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1302
1302
|
},
|
|
1303
1303
|
ownKeys(_) {
|
|
1304
|
-
|
|
1305
|
-
return Reflect.ownKeys(
|
|
1304
|
+
target2 ?? (target2 = getter());
|
|
1305
|
+
return Reflect.ownKeys(target2);
|
|
1306
1306
|
},
|
|
1307
1307
|
getOwnPropertyDescriptor(_, prop) {
|
|
1308
|
-
|
|
1309
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1308
|
+
target2 ?? (target2 = getter());
|
|
1309
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1310
1310
|
},
|
|
1311
1311
|
defineProperty(_, prop, descriptor) {
|
|
1312
|
-
|
|
1313
|
-
return Reflect.defineProperty(
|
|
1312
|
+
target2 ?? (target2 = getter());
|
|
1313
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
}
|
|
@@ -11762,15 +11762,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11762
11762
|
|
|
11763
11763
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11764
11764
|
function initializeContext(params) {
|
|
11765
|
-
let
|
|
11766
|
-
if (
|
|
11767
|
-
|
|
11768
|
-
if (
|
|
11769
|
-
|
|
11765
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11766
|
+
if (target2 === "draft-4")
|
|
11767
|
+
target2 = "draft-04";
|
|
11768
|
+
if (target2 === "draft-7")
|
|
11769
|
+
target2 = "draft-07";
|
|
11770
11770
|
return {
|
|
11771
11771
|
processors: params.processors ?? {},
|
|
11772
11772
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11773
|
-
target,
|
|
11773
|
+
target: target2,
|
|
11774
11774
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11775
11775
|
override: params?.override ?? (() => {
|
|
11776
11776
|
}),
|
|
@@ -12112,8 +12112,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12112
12112
|
return finalize(ctx, schema);
|
|
12113
12113
|
};
|
|
12114
12114
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12115
|
-
const { libraryOptions, target } = params ?? {};
|
|
12116
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12115
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12116
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12117
12117
|
process2(schema, ctx);
|
|
12118
12118
|
extractDefs(ctx, schema);
|
|
12119
12119
|
return finalize(ctx, schema);
|
|
@@ -13172,8 +13172,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13172
13172
|
catch(params) {
|
|
13173
13173
|
return _catch2(this, params);
|
|
13174
13174
|
},
|
|
13175
|
-
pipe(
|
|
13176
|
-
return pipe(this,
|
|
13175
|
+
pipe(target2) {
|
|
13176
|
+
return pipe(this, target2);
|
|
13177
13177
|
},
|
|
13178
13178
|
readonly() {
|
|
13179
13179
|
return readonly(this);
|
|
@@ -15403,15 +15403,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15403
15403
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15404
15404
|
}).strict().superRefine(({ threads }, context) => {
|
|
15405
15405
|
const seen = /* @__PURE__ */ new Set();
|
|
15406
|
-
for (const [index,
|
|
15407
|
-
if (seen.has(
|
|
15406
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15407
|
+
if (seen.has(thread2.threadId)) {
|
|
15408
15408
|
context.addIssue({
|
|
15409
15409
|
code: "custom",
|
|
15410
15410
|
message: "Thread ownership-list results must be unique",
|
|
15411
15411
|
path: ["threads", index, "threadId"]
|
|
15412
15412
|
});
|
|
15413
15413
|
}
|
|
15414
|
-
seen.add(
|
|
15414
|
+
seen.add(thread2.threadId);
|
|
15415
15415
|
}
|
|
15416
15416
|
});
|
|
15417
15417
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15620,13 +15620,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15620
15620
|
});
|
|
15621
15621
|
|
|
15622
15622
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15623
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15623
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15624
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15625
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15626
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15627
|
+
}).strict();
|
|
15624
15628
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15625
15629
|
threads: external_exports.array(jsonObjectSchema),
|
|
15626
15630
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15627
15631
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15628
|
-
* excluded. Native archived IDs
|
|
15629
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15632
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15633
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15634
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15630
15635
|
}).strict();
|
|
15631
15636
|
|
|
15632
15637
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -15841,7 +15846,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
15841
15846
|
});
|
|
15842
15847
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
15843
15848
|
enabled: false,
|
|
15844
|
-
timeoutMinutes:
|
|
15849
|
+
timeoutMinutes: 10
|
|
15845
15850
|
});
|
|
15846
15851
|
|
|
15847
15852
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16744,6 +16749,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16744
16749
|
}).strict();
|
|
16745
16750
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16746
16751
|
|
|
16752
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16753
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16754
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16755
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16756
|
+
var thread = { ...target, threadId: identity };
|
|
16757
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16758
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16759
|
+
external_exports.strictObject({
|
|
16760
|
+
kind: external_exports.literal("list"),
|
|
16761
|
+
...target,
|
|
16762
|
+
cursor: external_exports.string().nullable(),
|
|
16763
|
+
archived: external_exports.boolean()
|
|
16764
|
+
}),
|
|
16765
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16766
|
+
external_exports.strictObject({
|
|
16767
|
+
kind: external_exports.literal("prompt"),
|
|
16768
|
+
...thread,
|
|
16769
|
+
epoch: identity,
|
|
16770
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16771
|
+
requestId: identity.optional()
|
|
16772
|
+
}),
|
|
16773
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16774
|
+
external_exports.strictObject({
|
|
16775
|
+
kind: external_exports.literal("rename"),
|
|
16776
|
+
...thread,
|
|
16777
|
+
epoch: identity,
|
|
16778
|
+
name: external_exports.string().min(1).max(512)
|
|
16779
|
+
}),
|
|
16780
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16781
|
+
external_exports.strictObject({
|
|
16782
|
+
kind: external_exports.literal("respond"),
|
|
16783
|
+
...thread,
|
|
16784
|
+
epoch: identity,
|
|
16785
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16786
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16787
|
+
})
|
|
16788
|
+
]);
|
|
16789
|
+
|
|
16747
16790
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16748
16791
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16749
16792
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16764,7 +16807,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16764
16807
|
identity: external_exports.string().max(4096).nullable()
|
|
16765
16808
|
});
|
|
16766
16809
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16810
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16767
16811
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16812
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16768
16813
|
external_exports.strictObject({
|
|
16769
16814
|
action: external_exports.literal("read-thread"),
|
|
16770
16815
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -20689,11 +20734,11 @@ var AgentApp = class {
|
|
|
20689
20734
|
[runAgentConnectHandlers](connection) {
|
|
20690
20735
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20691
20736
|
}
|
|
20692
|
-
connect(
|
|
20693
|
-
return this.connectConnection(
|
|
20737
|
+
connect(target2, options = {}) {
|
|
20738
|
+
return this.connectConnection(target2, options).connection;
|
|
20694
20739
|
}
|
|
20695
|
-
connectWith(
|
|
20696
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20740
|
+
connectWith(target2, op) {
|
|
20741
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20697
20742
|
return rawConnection.runUntil(() => op(connection.client));
|
|
20698
20743
|
}
|
|
20699
20744
|
/**
|
|
@@ -20734,22 +20779,22 @@ var AgentApp = class {
|
|
|
20734
20779
|
registerAppNotification(this.builder, spec, (params, cx, signal) => agentNotificationContext(params, AgentContext.create(cx), signal), handler);
|
|
20735
20780
|
return this;
|
|
20736
20781
|
}
|
|
20737
|
-
connectConnection(
|
|
20738
|
-
if (isStream(
|
|
20739
|
-
const state2 = this.openStreamConnection(
|
|
20782
|
+
connectConnection(target2, options = {}) {
|
|
20783
|
+
if (isStream(target2)) {
|
|
20784
|
+
const state2 = this.openStreamConnection(target2);
|
|
20740
20785
|
if (!options.deferConnectHandlers) {
|
|
20741
20786
|
this[runAgentConnectHandlers](state2.connection);
|
|
20742
20787
|
}
|
|
20743
20788
|
return state2;
|
|
20744
20789
|
}
|
|
20745
20790
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20746
|
-
const peerRawConnection =
|
|
20791
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20747
20792
|
const peerConnection = clientConnection(peerRawConnection);
|
|
20748
20793
|
const state = this.openStreamConnection(thisStream);
|
|
20749
20794
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20750
20795
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20751
20796
|
try {
|
|
20752
|
-
|
|
20797
|
+
target2[runClientConnectHandlers](peerConnection);
|
|
20753
20798
|
this[runAgentConnectHandlers](state.connection);
|
|
20754
20799
|
} catch (error51) {
|
|
20755
20800
|
peerConnection.close(error51);
|
|
@@ -20789,11 +20834,11 @@ var ClientApp = class {
|
|
|
20789
20834
|
[runClientConnectHandlers](connection) {
|
|
20790
20835
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20791
20836
|
}
|
|
20792
|
-
connect(
|
|
20793
|
-
return this.connectConnection(
|
|
20837
|
+
connect(target2) {
|
|
20838
|
+
return this.connectConnection(target2).connection;
|
|
20794
20839
|
}
|
|
20795
|
-
connectWith(
|
|
20796
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20840
|
+
connectWith(target2, op) {
|
|
20841
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20797
20842
|
return rawConnection.runUntil(() => op(connection.agent));
|
|
20798
20843
|
}
|
|
20799
20844
|
/**
|
|
@@ -20834,20 +20879,20 @@ var ClientApp = class {
|
|
|
20834
20879
|
registerAppNotification(this.builder, spec, (params, cx, signal) => clientNotificationContext(params, ClientContext.create(cx), signal), handler);
|
|
20835
20880
|
return this;
|
|
20836
20881
|
}
|
|
20837
|
-
connectConnection(
|
|
20838
|
-
if (isStream(
|
|
20839
|
-
const state2 = this.openStreamConnection(
|
|
20882
|
+
connectConnection(target2) {
|
|
20883
|
+
if (isStream(target2)) {
|
|
20884
|
+
const state2 = this.openStreamConnection(target2);
|
|
20840
20885
|
this[runClientConnectHandlers](state2.connection);
|
|
20841
20886
|
return state2;
|
|
20842
20887
|
}
|
|
20843
20888
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20844
|
-
const peerRawConnection =
|
|
20889
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20845
20890
|
const peerConnection = agentConnection(peerRawConnection);
|
|
20846
20891
|
const state = this.openStreamConnection(thisStream);
|
|
20847
20892
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20848
20893
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20849
20894
|
try {
|
|
20850
|
-
|
|
20895
|
+
target2[runAgentConnectHandlers](peerConnection);
|
|
20851
20896
|
this[runClientConnectHandlers](state.connection);
|
|
20852
20897
|
} catch (error51) {
|
|
20853
20898
|
peerConnection.close(error51);
|
|
@@ -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
|
|
@@ -1301,8 +1301,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1301
1301
|
function objectClone(obj) {
|
|
1302
1302
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1303
1303
|
}
|
|
1304
|
-
function assignProp(
|
|
1305
|
-
Object.defineProperty(
|
|
1304
|
+
function assignProp(target2, prop, value) {
|
|
1305
|
+
Object.defineProperty(target2, prop, {
|
|
1306
1306
|
value,
|
|
1307
1307
|
writable: true,
|
|
1308
1308
|
enumerable: true,
|
|
@@ -1485,35 +1485,35 @@ function normalizeParams(_params) {
|
|
|
1485
1485
|
return params;
|
|
1486
1486
|
}
|
|
1487
1487
|
function createTransparentProxy(getter) {
|
|
1488
|
-
let
|
|
1488
|
+
let target2;
|
|
1489
1489
|
return new Proxy({}, {
|
|
1490
1490
|
get(_, prop, receiver) {
|
|
1491
|
-
|
|
1492
|
-
return Reflect.get(
|
|
1491
|
+
target2 ?? (target2 = getter());
|
|
1492
|
+
return Reflect.get(target2, prop, receiver);
|
|
1493
1493
|
},
|
|
1494
1494
|
set(_, prop, value, receiver) {
|
|
1495
|
-
|
|
1496
|
-
return Reflect.set(
|
|
1495
|
+
target2 ?? (target2 = getter());
|
|
1496
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1497
1497
|
},
|
|
1498
1498
|
has(_, prop) {
|
|
1499
|
-
|
|
1500
|
-
return Reflect.has(
|
|
1499
|
+
target2 ?? (target2 = getter());
|
|
1500
|
+
return Reflect.has(target2, prop);
|
|
1501
1501
|
},
|
|
1502
1502
|
deleteProperty(_, prop) {
|
|
1503
|
-
|
|
1504
|
-
return Reflect.deleteProperty(
|
|
1503
|
+
target2 ?? (target2 = getter());
|
|
1504
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1505
1505
|
},
|
|
1506
1506
|
ownKeys(_) {
|
|
1507
|
-
|
|
1508
|
-
return Reflect.ownKeys(
|
|
1507
|
+
target2 ?? (target2 = getter());
|
|
1508
|
+
return Reflect.ownKeys(target2);
|
|
1509
1509
|
},
|
|
1510
1510
|
getOwnPropertyDescriptor(_, prop) {
|
|
1511
|
-
|
|
1512
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1511
|
+
target2 ?? (target2 = getter());
|
|
1512
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1513
1513
|
},
|
|
1514
1514
|
defineProperty(_, prop, descriptor) {
|
|
1515
|
-
|
|
1516
|
-
return Reflect.defineProperty(
|
|
1515
|
+
target2 ?? (target2 = getter());
|
|
1516
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1517
1517
|
}
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
@@ -11965,15 +11965,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11965
11965
|
|
|
11966
11966
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11967
11967
|
function initializeContext(params) {
|
|
11968
|
-
let
|
|
11969
|
-
if (
|
|
11970
|
-
|
|
11971
|
-
if (
|
|
11972
|
-
|
|
11968
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11969
|
+
if (target2 === "draft-4")
|
|
11970
|
+
target2 = "draft-04";
|
|
11971
|
+
if (target2 === "draft-7")
|
|
11972
|
+
target2 = "draft-07";
|
|
11973
11973
|
return {
|
|
11974
11974
|
processors: params.processors ?? {},
|
|
11975
11975
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11976
|
-
target,
|
|
11976
|
+
target: target2,
|
|
11977
11977
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11978
11978
|
override: params?.override ?? (() => {
|
|
11979
11979
|
}),
|
|
@@ -12315,8 +12315,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12315
12315
|
return finalize(ctx, schema);
|
|
12316
12316
|
};
|
|
12317
12317
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12318
|
-
const { libraryOptions, target } = params ?? {};
|
|
12319
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12318
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12319
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12320
12320
|
process2(schema, ctx);
|
|
12321
12321
|
extractDefs(ctx, schema);
|
|
12322
12322
|
return finalize(ctx, schema);
|
|
@@ -13375,8 +13375,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13375
13375
|
catch(params) {
|
|
13376
13376
|
return _catch2(this, params);
|
|
13377
13377
|
},
|
|
13378
|
-
pipe(
|
|
13379
|
-
return pipe(this,
|
|
13378
|
+
pipe(target2) {
|
|
13379
|
+
return pipe(this, target2);
|
|
13380
13380
|
},
|
|
13381
13381
|
readonly() {
|
|
13382
13382
|
return readonly(this);
|
|
@@ -15606,15 +15606,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15606
15606
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15607
15607
|
}).strict().superRefine(({ threads }, context) => {
|
|
15608
15608
|
const seen = /* @__PURE__ */ new Set();
|
|
15609
|
-
for (const [index,
|
|
15610
|
-
if (seen.has(
|
|
15609
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15610
|
+
if (seen.has(thread2.threadId)) {
|
|
15611
15611
|
context.addIssue({
|
|
15612
15612
|
code: "custom",
|
|
15613
15613
|
message: "Thread ownership-list results must be unique",
|
|
15614
15614
|
path: ["threads", index, "threadId"]
|
|
15615
15615
|
});
|
|
15616
15616
|
}
|
|
15617
|
-
seen.add(
|
|
15617
|
+
seen.add(thread2.threadId);
|
|
15618
15618
|
}
|
|
15619
15619
|
});
|
|
15620
15620
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15823,13 +15823,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15823
15823
|
});
|
|
15824
15824
|
|
|
15825
15825
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15826
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15826
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15827
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15828
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15829
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15830
|
+
}).strict();
|
|
15827
15831
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15828
15832
|
threads: external_exports.array(jsonObjectSchema),
|
|
15829
15833
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15830
15834
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15831
|
-
* excluded. Native archived IDs
|
|
15832
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15835
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15836
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15837
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15833
15838
|
}).strict();
|
|
15834
15839
|
|
|
15835
15840
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -16044,7 +16049,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
16044
16049
|
});
|
|
16045
16050
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
16046
16051
|
enabled: false,
|
|
16047
|
-
timeoutMinutes:
|
|
16052
|
+
timeoutMinutes: 10
|
|
16048
16053
|
});
|
|
16049
16054
|
|
|
16050
16055
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16947,6 +16952,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16947
16952
|
}).strict();
|
|
16948
16953
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16949
16954
|
|
|
16955
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16956
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16957
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16958
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16959
|
+
var thread = { ...target, threadId: identity };
|
|
16960
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16961
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16962
|
+
external_exports.strictObject({
|
|
16963
|
+
kind: external_exports.literal("list"),
|
|
16964
|
+
...target,
|
|
16965
|
+
cursor: external_exports.string().nullable(),
|
|
16966
|
+
archived: external_exports.boolean()
|
|
16967
|
+
}),
|
|
16968
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16969
|
+
external_exports.strictObject({
|
|
16970
|
+
kind: external_exports.literal("prompt"),
|
|
16971
|
+
...thread,
|
|
16972
|
+
epoch: identity,
|
|
16973
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16974
|
+
requestId: identity.optional()
|
|
16975
|
+
}),
|
|
16976
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16977
|
+
external_exports.strictObject({
|
|
16978
|
+
kind: external_exports.literal("rename"),
|
|
16979
|
+
...thread,
|
|
16980
|
+
epoch: identity,
|
|
16981
|
+
name: external_exports.string().min(1).max(512)
|
|
16982
|
+
}),
|
|
16983
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16984
|
+
external_exports.strictObject({
|
|
16985
|
+
kind: external_exports.literal("respond"),
|
|
16986
|
+
...thread,
|
|
16987
|
+
epoch: identity,
|
|
16988
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16989
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16990
|
+
})
|
|
16991
|
+
]);
|
|
16992
|
+
|
|
16950
16993
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16951
16994
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16952
16995
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16967,7 +17010,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16967
17010
|
identity: external_exports.string().max(4096).nullable()
|
|
16968
17011
|
});
|
|
16969
17012
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17013
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16970
17014
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17015
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16971
17016
|
external_exports.strictObject({
|
|
16972
17017
|
action: external_exports.literal("read-thread"),
|
|
16973
17018
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -21466,12 +21511,12 @@ var OmpHarnessSession = class {
|
|
|
21466
21511
|
return;
|
|
21467
21512
|
}
|
|
21468
21513
|
try {
|
|
21469
|
-
const
|
|
21514
|
+
const identity2 = await this.#completedTurnIdentity(active, transport);
|
|
21470
21515
|
this.#completeTurn(active, result.cancelled ? {
|
|
21471
21516
|
status: "cancelled",
|
|
21472
21517
|
reason: "Cancelled by user",
|
|
21473
|
-
checkpoint:
|
|
21474
|
-
} : { status: "succeeded", checkpoint:
|
|
21518
|
+
checkpoint: identity2.checkpoint
|
|
21519
|
+
} : { status: "succeeded", checkpoint: identity2.checkpoint }, result.text, identity2.nativeTurnRef);
|
|
21475
21520
|
} catch (error51) {
|
|
21476
21521
|
this.#completeTurn(active, {
|
|
21477
21522
|
status: "failed",
|
|
@@ -21479,16 +21524,16 @@ var OmpHarnessSession = class {
|
|
|
21479
21524
|
});
|
|
21480
21525
|
}
|
|
21481
21526
|
}).catch(async (error51) => {
|
|
21482
|
-
let
|
|
21527
|
+
let identity2;
|
|
21483
21528
|
try {
|
|
21484
|
-
|
|
21529
|
+
identity2 = await this.#completedTurnIdentity(active, transport);
|
|
21485
21530
|
} catch {
|
|
21486
21531
|
}
|
|
21487
21532
|
this.#completeTurn(active, {
|
|
21488
21533
|
status: "failed",
|
|
21489
21534
|
error: normalizedError(error51, "nativeFailure"),
|
|
21490
|
-
...
|
|
21491
|
-
}, void 0,
|
|
21535
|
+
...identity2 ? { checkpoint: identity2.checkpoint } : {}
|
|
21536
|
+
}, void 0, identity2?.nativeTurnRef);
|
|
21492
21537
|
});
|
|
21493
21538
|
return { ok: true, value: { turnId: command.turnId } };
|
|
21494
21539
|
} finally {
|
|
@@ -22962,8 +23007,8 @@ function createOmpInstallation(environment, command) {
|
|
|
22962
23007
|
...environment,
|
|
22963
23008
|
[pathKey]: `${path8.dirname(executable)}${path8.delimiter}${environment[pathKey] ?? ""}`
|
|
22964
23009
|
};
|
|
22965
|
-
const
|
|
22966
|
-
const canUpdate = !selected.includes("/nix/store/") && !!
|
|
23010
|
+
const target2 = resolveHarnessExecutable({ id: "omp", command: "omp", installRoots: { posix: [], windows: [] } }, { environment: env });
|
|
23011
|
+
const canUpdate = !selected.includes("/nix/store/") && !!target2 && await realpath4(target2.executable) === selected;
|
|
22967
23012
|
const output = await runInstallationCommand(executable, ["update", "--check"], env);
|
|
22968
23013
|
const currentVersion = versionFromOutput(output);
|
|
22969
23014
|
const available = output.match(/New version available:\s*(\S+)/i);
|