@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
|
// dist/adapter.js
|
|
@@ -756,8 +756,8 @@ function defineLazy(object2, key, getter) {
|
|
|
756
756
|
function objectClone(obj) {
|
|
757
757
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
758
758
|
}
|
|
759
|
-
function assignProp(
|
|
760
|
-
Object.defineProperty(
|
|
759
|
+
function assignProp(target2, prop, value) {
|
|
760
|
+
Object.defineProperty(target2, prop, {
|
|
761
761
|
value,
|
|
762
762
|
writable: true,
|
|
763
763
|
enumerable: true,
|
|
@@ -940,35 +940,35 @@ function normalizeParams(_params) {
|
|
|
940
940
|
return params;
|
|
941
941
|
}
|
|
942
942
|
function createTransparentProxy(getter) {
|
|
943
|
-
let
|
|
943
|
+
let target2;
|
|
944
944
|
return new Proxy({}, {
|
|
945
945
|
get(_, prop, receiver) {
|
|
946
|
-
|
|
947
|
-
return Reflect.get(
|
|
946
|
+
target2 ?? (target2 = getter());
|
|
947
|
+
return Reflect.get(target2, prop, receiver);
|
|
948
948
|
},
|
|
949
949
|
set(_, prop, value, receiver) {
|
|
950
|
-
|
|
951
|
-
return Reflect.set(
|
|
950
|
+
target2 ?? (target2 = getter());
|
|
951
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
952
952
|
},
|
|
953
953
|
has(_, prop) {
|
|
954
|
-
|
|
955
|
-
return Reflect.has(
|
|
954
|
+
target2 ?? (target2 = getter());
|
|
955
|
+
return Reflect.has(target2, prop);
|
|
956
956
|
},
|
|
957
957
|
deleteProperty(_, prop) {
|
|
958
|
-
|
|
959
|
-
return Reflect.deleteProperty(
|
|
958
|
+
target2 ?? (target2 = getter());
|
|
959
|
+
return Reflect.deleteProperty(target2, prop);
|
|
960
960
|
},
|
|
961
961
|
ownKeys(_) {
|
|
962
|
-
|
|
963
|
-
return Reflect.ownKeys(
|
|
962
|
+
target2 ?? (target2 = getter());
|
|
963
|
+
return Reflect.ownKeys(target2);
|
|
964
964
|
},
|
|
965
965
|
getOwnPropertyDescriptor(_, prop) {
|
|
966
|
-
|
|
967
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
966
|
+
target2 ?? (target2 = getter());
|
|
967
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
968
968
|
},
|
|
969
969
|
defineProperty(_, prop, descriptor) {
|
|
970
|
-
|
|
971
|
-
return Reflect.defineProperty(
|
|
970
|
+
target2 ?? (target2 = getter());
|
|
971
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
972
972
|
}
|
|
973
973
|
});
|
|
974
974
|
}
|
|
@@ -11420,15 +11420,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
11420
11420
|
|
|
11421
11421
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
11422
11422
|
function initializeContext(params) {
|
|
11423
|
-
let
|
|
11424
|
-
if (
|
|
11425
|
-
|
|
11426
|
-
if (
|
|
11427
|
-
|
|
11423
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
11424
|
+
if (target2 === "draft-4")
|
|
11425
|
+
target2 = "draft-04";
|
|
11426
|
+
if (target2 === "draft-7")
|
|
11427
|
+
target2 = "draft-07";
|
|
11428
11428
|
return {
|
|
11429
11429
|
processors: params.processors ?? {},
|
|
11430
11430
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
11431
|
-
target,
|
|
11431
|
+
target: target2,
|
|
11432
11432
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
11433
11433
|
override: params?.override ?? (() => {
|
|
11434
11434
|
}),
|
|
@@ -11770,8 +11770,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
11770
11770
|
return finalize(ctx, schema);
|
|
11771
11771
|
};
|
|
11772
11772
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
11773
|
-
const { libraryOptions, target } = params ?? {};
|
|
11774
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
11773
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
11774
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
11775
11775
|
process2(schema, ctx);
|
|
11776
11776
|
extractDefs(ctx, schema);
|
|
11777
11777
|
return finalize(ctx, schema);
|
|
@@ -12830,8 +12830,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12830
12830
|
catch(params) {
|
|
12831
12831
|
return _catch2(this, params);
|
|
12832
12832
|
},
|
|
12833
|
-
pipe(
|
|
12834
|
-
return pipe(this,
|
|
12833
|
+
pipe(target2) {
|
|
12834
|
+
return pipe(this, target2);
|
|
12835
12835
|
},
|
|
12836
12836
|
readonly() {
|
|
12837
12837
|
return readonly(this);
|
|
@@ -15061,15 +15061,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15061
15061
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15062
15062
|
}).strict().superRefine(({ threads }, context) => {
|
|
15063
15063
|
const seen = /* @__PURE__ */ new Set();
|
|
15064
|
-
for (const [index,
|
|
15065
|
-
if (seen.has(
|
|
15064
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15065
|
+
if (seen.has(thread2.threadId)) {
|
|
15066
15066
|
context.addIssue({
|
|
15067
15067
|
code: "custom",
|
|
15068
15068
|
message: "Thread ownership-list results must be unique",
|
|
15069
15069
|
path: ["threads", index, "threadId"]
|
|
15070
15070
|
});
|
|
15071
15071
|
}
|
|
15072
|
-
seen.add(
|
|
15072
|
+
seen.add(thread2.threadId);
|
|
15073
15073
|
}
|
|
15074
15074
|
});
|
|
15075
15075
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15278,13 +15278,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15278
15278
|
});
|
|
15279
15279
|
|
|
15280
15280
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15281
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15281
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15282
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15283
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15284
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15285
|
+
}).strict();
|
|
15282
15286
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15283
15287
|
threads: external_exports.array(jsonObjectSchema),
|
|
15284
15288
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15285
15289
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15286
|
-
* excluded. Native archived IDs
|
|
15287
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15290
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15291
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15292
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15288
15293
|
}).strict();
|
|
15289
15294
|
|
|
15290
15295
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -15499,7 +15504,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
15499
15504
|
});
|
|
15500
15505
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
15501
15506
|
enabled: false,
|
|
15502
|
-
timeoutMinutes:
|
|
15507
|
+
timeoutMinutes: 10
|
|
15503
15508
|
});
|
|
15504
15509
|
|
|
15505
15510
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16402,6 +16407,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16402
16407
|
}).strict();
|
|
16403
16408
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
16404
16409
|
|
|
16410
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
16411
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
16412
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
16413
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
16414
|
+
var thread = { ...target, threadId: identity };
|
|
16415
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
16416
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
16417
|
+
external_exports.strictObject({
|
|
16418
|
+
kind: external_exports.literal("list"),
|
|
16419
|
+
...target,
|
|
16420
|
+
cursor: external_exports.string().nullable(),
|
|
16421
|
+
archived: external_exports.boolean()
|
|
16422
|
+
}),
|
|
16423
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
16424
|
+
external_exports.strictObject({
|
|
16425
|
+
kind: external_exports.literal("prompt"),
|
|
16426
|
+
...thread,
|
|
16427
|
+
epoch: identity,
|
|
16428
|
+
text: external_exports.string().min(1).max(8e3),
|
|
16429
|
+
requestId: identity.optional()
|
|
16430
|
+
}),
|
|
16431
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
16432
|
+
external_exports.strictObject({
|
|
16433
|
+
kind: external_exports.literal("rename"),
|
|
16434
|
+
...thread,
|
|
16435
|
+
epoch: identity,
|
|
16436
|
+
name: external_exports.string().min(1).max(512)
|
|
16437
|
+
}),
|
|
16438
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
16439
|
+
external_exports.strictObject({
|
|
16440
|
+
kind: external_exports.literal("respond"),
|
|
16441
|
+
...thread,
|
|
16442
|
+
epoch: identity,
|
|
16443
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
16444
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
16445
|
+
})
|
|
16446
|
+
]);
|
|
16447
|
+
|
|
16405
16448
|
// ../../shared-contracts/dist/remote-connections.js
|
|
16406
16449
|
var hostId = external_exports.string().min(1).max(1024);
|
|
16407
16450
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -16422,7 +16465,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16422
16465
|
identity: external_exports.string().max(4096).nullable()
|
|
16423
16466
|
});
|
|
16424
16467
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16468
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
16425
16469
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16470
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
16426
16471
|
external_exports.strictObject({
|
|
16427
16472
|
action: external_exports.literal("read-thread"),
|
|
16428
16473
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -20242,11 +20287,11 @@ var AgentApp = class {
|
|
|
20242
20287
|
[runAgentConnectHandlers](connection) {
|
|
20243
20288
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20244
20289
|
}
|
|
20245
|
-
connect(
|
|
20246
|
-
return this.connectConnection(
|
|
20290
|
+
connect(target2, options = {}) {
|
|
20291
|
+
return this.connectConnection(target2, options).connection;
|
|
20247
20292
|
}
|
|
20248
|
-
connectWith(
|
|
20249
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20293
|
+
connectWith(target2, op) {
|
|
20294
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20250
20295
|
return rawConnection.runUntil(() => op(connection.client));
|
|
20251
20296
|
}
|
|
20252
20297
|
/**
|
|
@@ -20287,22 +20332,22 @@ var AgentApp = class {
|
|
|
20287
20332
|
registerAppNotification(this.builder, spec, (params, cx, signal) => agentNotificationContext(params, AgentContext.create(cx), signal), handler);
|
|
20288
20333
|
return this;
|
|
20289
20334
|
}
|
|
20290
|
-
connectConnection(
|
|
20291
|
-
if (isStream(
|
|
20292
|
-
const state2 = this.openStreamConnection(
|
|
20335
|
+
connectConnection(target2, options = {}) {
|
|
20336
|
+
if (isStream(target2)) {
|
|
20337
|
+
const state2 = this.openStreamConnection(target2);
|
|
20293
20338
|
if (!options.deferConnectHandlers) {
|
|
20294
20339
|
this[runAgentConnectHandlers](state2.connection);
|
|
20295
20340
|
}
|
|
20296
20341
|
return state2;
|
|
20297
20342
|
}
|
|
20298
20343
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20299
|
-
const peerRawConnection =
|
|
20344
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20300
20345
|
const peerConnection = clientConnection(peerRawConnection);
|
|
20301
20346
|
const state = this.openStreamConnection(thisStream);
|
|
20302
20347
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20303
20348
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20304
20349
|
try {
|
|
20305
|
-
|
|
20350
|
+
target2[runClientConnectHandlers](peerConnection);
|
|
20306
20351
|
this[runAgentConnectHandlers](state.connection);
|
|
20307
20352
|
} catch (error51) {
|
|
20308
20353
|
peerConnection.close(error51);
|
|
@@ -20342,11 +20387,11 @@ var ClientApp = class {
|
|
|
20342
20387
|
[runClientConnectHandlers](connection) {
|
|
20343
20388
|
runConnectHandlers(connection, this.connectHandlers);
|
|
20344
20389
|
}
|
|
20345
|
-
connect(
|
|
20346
|
-
return this.connectConnection(
|
|
20390
|
+
connect(target2) {
|
|
20391
|
+
return this.connectConnection(target2).connection;
|
|
20347
20392
|
}
|
|
20348
|
-
connectWith(
|
|
20349
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
20393
|
+
connectWith(target2, op) {
|
|
20394
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
20350
20395
|
return rawConnection.runUntil(() => op(connection.agent));
|
|
20351
20396
|
}
|
|
20352
20397
|
/**
|
|
@@ -20387,20 +20432,20 @@ var ClientApp = class {
|
|
|
20387
20432
|
registerAppNotification(this.builder, spec, (params, cx, signal) => clientNotificationContext(params, ClientContext.create(cx), signal), handler);
|
|
20388
20433
|
return this;
|
|
20389
20434
|
}
|
|
20390
|
-
connectConnection(
|
|
20391
|
-
if (isStream(
|
|
20392
|
-
const state2 = this.openStreamConnection(
|
|
20435
|
+
connectConnection(target2) {
|
|
20436
|
+
if (isStream(target2)) {
|
|
20437
|
+
const state2 = this.openStreamConnection(target2);
|
|
20393
20438
|
this[runClientConnectHandlers](state2.connection);
|
|
20394
20439
|
return state2;
|
|
20395
20440
|
}
|
|
20396
20441
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
20397
|
-
const peerRawConnection =
|
|
20442
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
20398
20443
|
const peerConnection = agentConnection(peerRawConnection);
|
|
20399
20444
|
const state = this.openStreamConnection(thisStream);
|
|
20400
20445
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
20401
20446
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
20402
20447
|
try {
|
|
20403
|
-
|
|
20448
|
+
target2[runAgentConnectHandlers](peerConnection);
|
|
20404
20449
|
this[runClientConnectHandlers](state.connection);
|
|
20405
20450
|
} catch (error51) {
|
|
20406
20451
|
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
|
|
@@ -1352,8 +1352,8 @@ function defineLazy(object2, key, getter) {
|
|
|
1352
1352
|
function objectClone(obj) {
|
|
1353
1353
|
return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
|
1354
1354
|
}
|
|
1355
|
-
function assignProp(
|
|
1356
|
-
Object.defineProperty(
|
|
1355
|
+
function assignProp(target2, prop, value) {
|
|
1356
|
+
Object.defineProperty(target2, prop, {
|
|
1357
1357
|
value,
|
|
1358
1358
|
writable: true,
|
|
1359
1359
|
enumerable: true,
|
|
@@ -1536,35 +1536,35 @@ function normalizeParams(_params) {
|
|
|
1536
1536
|
return params;
|
|
1537
1537
|
}
|
|
1538
1538
|
function createTransparentProxy(getter) {
|
|
1539
|
-
let
|
|
1539
|
+
let target2;
|
|
1540
1540
|
return new Proxy({}, {
|
|
1541
1541
|
get(_, prop, receiver) {
|
|
1542
|
-
|
|
1543
|
-
return Reflect.get(
|
|
1542
|
+
target2 ?? (target2 = getter());
|
|
1543
|
+
return Reflect.get(target2, prop, receiver);
|
|
1544
1544
|
},
|
|
1545
1545
|
set(_, prop, value, receiver) {
|
|
1546
|
-
|
|
1547
|
-
return Reflect.set(
|
|
1546
|
+
target2 ?? (target2 = getter());
|
|
1547
|
+
return Reflect.set(target2, prop, value, receiver);
|
|
1548
1548
|
},
|
|
1549
1549
|
has(_, prop) {
|
|
1550
|
-
|
|
1551
|
-
return Reflect.has(
|
|
1550
|
+
target2 ?? (target2 = getter());
|
|
1551
|
+
return Reflect.has(target2, prop);
|
|
1552
1552
|
},
|
|
1553
1553
|
deleteProperty(_, prop) {
|
|
1554
|
-
|
|
1555
|
-
return Reflect.deleteProperty(
|
|
1554
|
+
target2 ?? (target2 = getter());
|
|
1555
|
+
return Reflect.deleteProperty(target2, prop);
|
|
1556
1556
|
},
|
|
1557
1557
|
ownKeys(_) {
|
|
1558
|
-
|
|
1559
|
-
return Reflect.ownKeys(
|
|
1558
|
+
target2 ?? (target2 = getter());
|
|
1559
|
+
return Reflect.ownKeys(target2);
|
|
1560
1560
|
},
|
|
1561
1561
|
getOwnPropertyDescriptor(_, prop) {
|
|
1562
|
-
|
|
1563
|
-
return Reflect.getOwnPropertyDescriptor(
|
|
1562
|
+
target2 ?? (target2 = getter());
|
|
1563
|
+
return Reflect.getOwnPropertyDescriptor(target2, prop);
|
|
1564
1564
|
},
|
|
1565
1565
|
defineProperty(_, prop, descriptor) {
|
|
1566
|
-
|
|
1567
|
-
return Reflect.defineProperty(
|
|
1566
|
+
target2 ?? (target2 = getter());
|
|
1567
|
+
return Reflect.defineProperty(target2, prop, descriptor);
|
|
1568
1568
|
}
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
@@ -12016,15 +12016,15 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
12016
12016
|
|
|
12017
12017
|
// ../../../node_modules/zod/v4/core/to-json-schema.js
|
|
12018
12018
|
function initializeContext(params) {
|
|
12019
|
-
let
|
|
12020
|
-
if (
|
|
12021
|
-
|
|
12022
|
-
if (
|
|
12023
|
-
|
|
12019
|
+
let target2 = params?.target ?? "draft-2020-12";
|
|
12020
|
+
if (target2 === "draft-4")
|
|
12021
|
+
target2 = "draft-04";
|
|
12022
|
+
if (target2 === "draft-7")
|
|
12023
|
+
target2 = "draft-07";
|
|
12024
12024
|
return {
|
|
12025
12025
|
processors: params.processors ?? {},
|
|
12026
12026
|
metadataRegistry: params?.metadata ?? globalRegistry,
|
|
12027
|
-
target,
|
|
12027
|
+
target: target2,
|
|
12028
12028
|
unrepresentable: params?.unrepresentable ?? "throw",
|
|
12029
12029
|
override: params?.override ?? (() => {
|
|
12030
12030
|
}),
|
|
@@ -12366,8 +12366,8 @@ var createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
|
|
|
12366
12366
|
return finalize(ctx, schema);
|
|
12367
12367
|
};
|
|
12368
12368
|
var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) => {
|
|
12369
|
-
const { libraryOptions, target } = params ?? {};
|
|
12370
|
-
const ctx = initializeContext({ ...libraryOptions ?? {}, target, io, processors });
|
|
12369
|
+
const { libraryOptions, target: target2 } = params ?? {};
|
|
12370
|
+
const ctx = initializeContext({ ...libraryOptions ?? {}, target: target2, io, processors });
|
|
12371
12371
|
process2(schema, ctx);
|
|
12372
12372
|
extractDefs(ctx, schema);
|
|
12373
12373
|
return finalize(ctx, schema);
|
|
@@ -13426,8 +13426,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
13426
13426
|
catch(params) {
|
|
13427
13427
|
return _catch2(this, params);
|
|
13428
13428
|
},
|
|
13429
|
-
pipe(
|
|
13430
|
-
return pipe(this,
|
|
13429
|
+
pipe(target2) {
|
|
13430
|
+
return pipe(this, target2);
|
|
13431
13431
|
},
|
|
13432
13432
|
readonly() {
|
|
13433
13433
|
return readonly(this);
|
|
@@ -15657,15 +15657,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
15657
15657
|
threads: external_exports.array(threadOwnershipSchema).min(1).max(THREAD_OWNERSHIP_LIST_MAX_LENGTH)
|
|
15658
15658
|
}).strict().superRefine(({ threads }, context) => {
|
|
15659
15659
|
const seen = /* @__PURE__ */ new Set();
|
|
15660
|
-
for (const [index,
|
|
15661
|
-
if (seen.has(
|
|
15660
|
+
for (const [index, thread2] of threads.entries()) {
|
|
15661
|
+
if (seen.has(thread2.threadId)) {
|
|
15662
15662
|
context.addIssue({
|
|
15663
15663
|
code: "custom",
|
|
15664
15664
|
message: "Thread ownership-list results must be unique",
|
|
15665
15665
|
path: ["threads", index, "threadId"]
|
|
15666
15666
|
});
|
|
15667
15667
|
}
|
|
15668
|
-
seen.add(
|
|
15668
|
+
seen.add(thread2.threadId);
|
|
15669
15669
|
}
|
|
15670
15670
|
});
|
|
15671
15671
|
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
@@ -15874,13 +15874,18 @@ var clientChannelResponseSchema = external_exports.object({
|
|
|
15874
15874
|
});
|
|
15875
15875
|
|
|
15876
15876
|
// ../../shared-contracts/dist/thread-catalog.js
|
|
15877
|
-
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15877
|
+
var threadCatalogReadParamsSchema = external_exports.object({
|
|
15878
|
+
includeArchived: external_exports.boolean().optional(),
|
|
15879
|
+
/** Absent means first page; null means this branch is exhausted. Native cursors only. */
|
|
15880
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15881
|
+
}).strict();
|
|
15878
15882
|
var threadCatalogReadResultSchema = external_exports.object({
|
|
15879
15883
|
threads: external_exports.array(jsonObjectSchema),
|
|
15880
15884
|
ownership: external_exports.array(threadOwnershipSchema),
|
|
15881
15885
|
/** Known archived IDs, including visible local external records even when their rows are
|
|
15882
|
-
* excluded. Native archived IDs
|
|
15883
|
-
archivedThreadIds: external_exports.array(hostThreadIdSchema)
|
|
15886
|
+
* excluded. Native archived IDs describe only the returned page, never a complete set. */
|
|
15887
|
+
archivedThreadIds: external_exports.array(hostThreadIdSchema),
|
|
15888
|
+
officialCursor: external_exports.object({ live: external_exports.string().nullable(), archived: external_exports.string().nullable().optional() }).strict().optional()
|
|
15884
15889
|
}).strict();
|
|
15885
15890
|
|
|
15886
15891
|
// ../../shared-contracts/dist/voice.js
|
|
@@ -16095,7 +16100,7 @@ var idleReleaseSettingsSchema = external_exports.strictObject({
|
|
|
16095
16100
|
});
|
|
16096
16101
|
var DEFAULT_IDLE_RELEASE_SETTINGS = Object.freeze({
|
|
16097
16102
|
enabled: false,
|
|
16098
|
-
timeoutMinutes:
|
|
16103
|
+
timeoutMinutes: 10
|
|
16099
16104
|
});
|
|
16100
16105
|
|
|
16101
16106
|
// ../../shared-contracts/dist/harness-preferences.js
|
|
@@ -16998,6 +17003,44 @@ var remoteSshSetupParamsSchema = external_exports.object({
|
|
|
16998
17003
|
}).strict();
|
|
16999
17004
|
var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
|
|
17000
17005
|
|
|
17006
|
+
// ../../shared-contracts/dist/remote-sessions.js
|
|
17007
|
+
var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
|
|
17008
|
+
var identity = external_exports.string().min(1).max(1024);
|
|
17009
|
+
var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
|
|
17010
|
+
var thread = { ...target, threadId: identity };
|
|
17011
|
+
var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
|
|
17012
|
+
external_exports.strictObject({ kind: external_exports.literal("hosts") }),
|
|
17013
|
+
external_exports.strictObject({
|
|
17014
|
+
kind: external_exports.literal("list"),
|
|
17015
|
+
...target,
|
|
17016
|
+
cursor: external_exports.string().nullable(),
|
|
17017
|
+
archived: external_exports.boolean()
|
|
17018
|
+
}),
|
|
17019
|
+
external_exports.strictObject({ kind: external_exports.literal("read"), ...thread }),
|
|
17020
|
+
external_exports.strictObject({
|
|
17021
|
+
kind: external_exports.literal("prompt"),
|
|
17022
|
+
...thread,
|
|
17023
|
+
epoch: identity,
|
|
17024
|
+
text: external_exports.string().min(1).max(8e3),
|
|
17025
|
+
requestId: identity.optional()
|
|
17026
|
+
}),
|
|
17027
|
+
external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
|
|
17028
|
+
external_exports.strictObject({
|
|
17029
|
+
kind: external_exports.literal("rename"),
|
|
17030
|
+
...thread,
|
|
17031
|
+
epoch: identity,
|
|
17032
|
+
name: external_exports.string().min(1).max(512)
|
|
17033
|
+
}),
|
|
17034
|
+
external_exports.strictObject({ kind: external_exports.literal("archive"), ...thread, epoch: identity, archived: external_exports.boolean() }),
|
|
17035
|
+
external_exports.strictObject({
|
|
17036
|
+
kind: external_exports.literal("respond"),
|
|
17037
|
+
...thread,
|
|
17038
|
+
epoch: identity,
|
|
17039
|
+
requestId: external_exports.union([identity, external_exports.number().int()]),
|
|
17040
|
+
result: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
17041
|
+
})
|
|
17042
|
+
]);
|
|
17043
|
+
|
|
17001
17044
|
// ../../shared-contracts/dist/remote-connections.js
|
|
17002
17045
|
var hostId = external_exports.string().min(1).max(1024);
|
|
17003
17046
|
var codexSshConnectionSchema = external_exports.object({
|
|
@@ -17018,7 +17061,9 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
17018
17061
|
identity: external_exports.string().max(4096).nullable()
|
|
17019
17062
|
});
|
|
17020
17063
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
17064
|
+
external_exports.strictObject({ action: external_exports.literal("session"), operation: remoteSessionOperationSchema }),
|
|
17021
17065
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
17066
|
+
external_exports.strictObject({ action: external_exports.literal("catalog") }),
|
|
17022
17067
|
external_exports.strictObject({
|
|
17023
17068
|
action: external_exports.literal("read-thread"),
|
|
17024
17069
|
hostId: hostId.refine((id) => id !== "local"),
|
|
@@ -21303,11 +21348,11 @@ var AgentApp = class {
|
|
|
21303
21348
|
[runAgentConnectHandlers](connection) {
|
|
21304
21349
|
runConnectHandlers(connection, this.connectHandlers);
|
|
21305
21350
|
}
|
|
21306
|
-
connect(
|
|
21307
|
-
return this.connectConnection(
|
|
21351
|
+
connect(target2, options = {}) {
|
|
21352
|
+
return this.connectConnection(target2, options).connection;
|
|
21308
21353
|
}
|
|
21309
|
-
connectWith(
|
|
21310
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
21354
|
+
connectWith(target2, op) {
|
|
21355
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
21311
21356
|
return rawConnection.runUntil(() => op(connection.client));
|
|
21312
21357
|
}
|
|
21313
21358
|
/**
|
|
@@ -21348,22 +21393,22 @@ var AgentApp = class {
|
|
|
21348
21393
|
registerAppNotification(this.builder, spec, (params, cx, signal) => agentNotificationContext(params, AgentContext.create(cx), signal), handler);
|
|
21349
21394
|
return this;
|
|
21350
21395
|
}
|
|
21351
|
-
connectConnection(
|
|
21352
|
-
if (isStream(
|
|
21353
|
-
const state2 = this.openStreamConnection(
|
|
21396
|
+
connectConnection(target2, options = {}) {
|
|
21397
|
+
if (isStream(target2)) {
|
|
21398
|
+
const state2 = this.openStreamConnection(target2);
|
|
21354
21399
|
if (!options.deferConnectHandlers) {
|
|
21355
21400
|
this[runAgentConnectHandlers](state2.connection);
|
|
21356
21401
|
}
|
|
21357
21402
|
return state2;
|
|
21358
21403
|
}
|
|
21359
21404
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
21360
|
-
const peerRawConnection =
|
|
21405
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
21361
21406
|
const peerConnection = clientConnection(peerRawConnection);
|
|
21362
21407
|
const state = this.openStreamConnection(thisStream);
|
|
21363
21408
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
21364
21409
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
21365
21410
|
try {
|
|
21366
|
-
|
|
21411
|
+
target2[runClientConnectHandlers](peerConnection);
|
|
21367
21412
|
this[runAgentConnectHandlers](state.connection);
|
|
21368
21413
|
} catch (error53) {
|
|
21369
21414
|
peerConnection.close(error53);
|
|
@@ -21403,11 +21448,11 @@ var ClientApp = class {
|
|
|
21403
21448
|
[runClientConnectHandlers](connection) {
|
|
21404
21449
|
runConnectHandlers(connection, this.connectHandlers);
|
|
21405
21450
|
}
|
|
21406
|
-
connect(
|
|
21407
|
-
return this.connectConnection(
|
|
21451
|
+
connect(target2) {
|
|
21452
|
+
return this.connectConnection(target2).connection;
|
|
21408
21453
|
}
|
|
21409
|
-
connectWith(
|
|
21410
|
-
const { rawConnection, connection } = this.connectConnection(
|
|
21454
|
+
connectWith(target2, op) {
|
|
21455
|
+
const { rawConnection, connection } = this.connectConnection(target2);
|
|
21411
21456
|
return rawConnection.runUntil(() => op(connection.agent));
|
|
21412
21457
|
}
|
|
21413
21458
|
/**
|
|
@@ -21448,20 +21493,20 @@ var ClientApp = class {
|
|
|
21448
21493
|
registerAppNotification(this.builder, spec, (params, cx, signal) => clientNotificationContext(params, ClientContext.create(cx), signal), handler);
|
|
21449
21494
|
return this;
|
|
21450
21495
|
}
|
|
21451
|
-
connectConnection(
|
|
21452
|
-
if (isStream(
|
|
21453
|
-
const state2 = this.openStreamConnection(
|
|
21496
|
+
connectConnection(target2) {
|
|
21497
|
+
if (isStream(target2)) {
|
|
21498
|
+
const state2 = this.openStreamConnection(target2);
|
|
21454
21499
|
this[runClientConnectHandlers](state2.connection);
|
|
21455
21500
|
return state2;
|
|
21456
21501
|
}
|
|
21457
21502
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
21458
|
-
const peerRawConnection =
|
|
21503
|
+
const peerRawConnection = target2[appBuilder]().connect(peerStream, stableConnectionOptions);
|
|
21459
21504
|
const peerConnection = agentConnection(peerRawConnection);
|
|
21460
21505
|
const state = this.openStreamConnection(thisStream);
|
|
21461
21506
|
void state.rawConnection.closed.then(() => peerConnection.close());
|
|
21462
21507
|
void peerRawConnection.closed.then(() => state.connection.close());
|
|
21463
21508
|
try {
|
|
21464
|
-
|
|
21509
|
+
target2[runAgentConnectHandlers](peerConnection);
|
|
21465
21510
|
this[runClientConnectHandlers](state.connection);
|
|
21466
21511
|
} catch (error53) {
|
|
21467
21512
|
peerConnection.close(error53);
|
|
@@ -26659,11 +26704,11 @@ var GrokHarnessSession = class {
|
|
|
26659
26704
|
this.#publishUsage(usage, active.command.turnId);
|
|
26660
26705
|
}
|
|
26661
26706
|
#appendAgent(active, text, messageId) {
|
|
26662
|
-
const
|
|
26663
|
-
if (active.agentMessageId !==
|
|
26707
|
+
const identity2 = messageId ?? "agent";
|
|
26708
|
+
if (active.agentMessageId !== identity2) {
|
|
26664
26709
|
this.#completeReasoning(active, { status: "succeeded" });
|
|
26665
26710
|
this.#completeAgent(active, { status: "succeeded" });
|
|
26666
|
-
active.agentMessageId =
|
|
26711
|
+
active.agentMessageId = identity2;
|
|
26667
26712
|
}
|
|
26668
26713
|
if (!active.agent) {
|
|
26669
26714
|
active.agent = {
|
|
@@ -26689,10 +26734,10 @@ var GrokHarnessSession = class {
|
|
|
26689
26734
|
});
|
|
26690
26735
|
}
|
|
26691
26736
|
#appendReasoning(active, text, messageId) {
|
|
26692
|
-
const
|
|
26693
|
-
if (active.reasoningMessageId !==
|
|
26737
|
+
const identity2 = messageId ?? "thought";
|
|
26738
|
+
if (active.reasoningMessageId !== identity2) {
|
|
26694
26739
|
this.#completeReasoning(active, { status: "succeeded" });
|
|
26695
|
-
active.reasoningMessageId =
|
|
26740
|
+
active.reasoningMessageId = identity2;
|
|
26696
26741
|
}
|
|
26697
26742
|
if (!active.reasoning) {
|
|
26698
26743
|
active.reasoning = {
|