@karlorz/codexhost-cli-win32-x64 0.15.0-1 → 0.16.1-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 +60 -25
- package/app/console-web.js +143 -57
- package/app/cpa-live-voice-hook.js +58 -24
- package/app/desktop-controller.mjs +649 -53
- package/app/host-runtime.mjs +10959 -10075
- package/app/plugins/antigravity/plugin.mjs +73 -29
- package/app/plugins/claude-code/plugin.mjs +104 -72
- package/app/plugins/codebuddy/plugin.mjs +113 -34
- package/app/plugins/codex-usage/plugin.mjs +65 -31
- package/app/plugins/copilot/plugin.mjs +73 -29
- package/app/plugins/cursor-cli/plugin.mjs +70 -26
- package/app/plugins/deepseek-harness/plugin.mjs +88 -34
- package/app/plugins/grok/plugin.mjs +1505 -502
- package/app/plugins/hermes/plugin.mjs +68 -24
- package/app/plugins/kimi-code/plugin.mjs +70 -26
- package/app/plugins/kiro-cli/plugin.mjs +70 -26
- package/app/plugins/omp/plugin.mjs +71 -27
- package/app/plugins/opencode/plugin.mjs +84 -30
- package/app/plugins/pi/plugin.mjs +87 -31
- package/app/plugins/qoder/plugin.mjs +96 -52
- package/app/plugins/qoder-cn/plugin.mjs +96 -52
- package/app/plugins/workbuddy/plugin.mjs +113 -34
- package/app/plugins/zcode/plugin.mjs +144 -47
- package/app/renderer-extension.js +1843 -213
- package/bin/codexhost.exe +0 -0
- package/libexec/codexhost-node-repl.exe +0 -0
- package/libexec/codexhost-shim.exe +0 -0
- package/libexec/codexhost-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -8888,8 +8888,8 @@ function az_default() {
|
|
|
8888
8888
|
}
|
|
8889
8889
|
|
|
8890
8890
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
8891
|
-
function getBelarusianPlural(
|
|
8892
|
-
const absCount = Math.abs(
|
|
8891
|
+
function getBelarusianPlural(count4, one, few, many) {
|
|
8892
|
+
const absCount = Math.abs(count4);
|
|
8893
8893
|
const lastDigit = absCount % 10;
|
|
8894
8894
|
const lastTwoDigits = absCount % 100;
|
|
8895
8895
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -10967,8 +10967,8 @@ function hu_default() {
|
|
|
10967
10967
|
}
|
|
10968
10968
|
|
|
10969
10969
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
10970
|
-
function getArmenianPlural(
|
|
10971
|
-
return Math.abs(
|
|
10970
|
+
function getArmenianPlural(count4, one, many) {
|
|
10971
|
+
return Math.abs(count4) === 1 ? one : many;
|
|
10972
10972
|
}
|
|
10973
10973
|
function withDefiniteArticle(word) {
|
|
10974
10974
|
if (!word)
|
|
@@ -13096,8 +13096,8 @@ function ro_default() {
|
|
|
13096
13096
|
}
|
|
13097
13097
|
|
|
13098
13098
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
13099
|
-
function getRussianPlural(
|
|
13100
|
-
const absCount = Math.abs(
|
|
13099
|
+
function getRussianPlural(count4, one, few, many) {
|
|
13100
|
+
const absCount = Math.abs(count4);
|
|
13101
13101
|
const lastDigit = absCount % 10;
|
|
13102
13102
|
const lastTwoDigits = absCount % 100;
|
|
13103
13103
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -18766,6 +18766,33 @@ function date4(params) {
|
|
|
18766
18766
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
18767
18767
|
config(en_default());
|
|
18768
18768
|
|
|
18769
|
+
// ../../shared-contracts/dist/goals.js
|
|
18770
|
+
var harnessGoalStatusSchema = external_exports.enum([
|
|
18771
|
+
"active",
|
|
18772
|
+
"paused",
|
|
18773
|
+
"blocked",
|
|
18774
|
+
"usageLimited",
|
|
18775
|
+
"budgetLimited",
|
|
18776
|
+
"complete"
|
|
18777
|
+
]);
|
|
18778
|
+
var count = external_exports.number().int().nonnegative().safe();
|
|
18779
|
+
var harnessGoalSchema = external_exports.object({
|
|
18780
|
+
objective: external_exports.string().min(1),
|
|
18781
|
+
status: harnessGoalStatusSchema,
|
|
18782
|
+
tokenBudget: count.positive().nullable(),
|
|
18783
|
+
tokensUsed: count,
|
|
18784
|
+
timeUsedSeconds: count,
|
|
18785
|
+
createdAt: count,
|
|
18786
|
+
updatedAt: count
|
|
18787
|
+
});
|
|
18788
|
+
var goalOriginSchema = external_exports.enum(["user", "automatic"]).nullable();
|
|
18789
|
+
var harnessGoalSetSchema = external_exports.object({
|
|
18790
|
+
objective: external_exports.string().min(1).optional(),
|
|
18791
|
+
status: external_exports.enum(["active", "paused"]).optional(),
|
|
18792
|
+
tokenBudget: count.positive().nullable().optional(),
|
|
18793
|
+
origin: goalOriginSchema
|
|
18794
|
+
});
|
|
18795
|
+
|
|
18769
18796
|
// ../../shared-contracts/dist/delegation-read.js
|
|
18770
18797
|
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
18771
18798
|
var delegationReadParamsSchema = external_exports.strictObject({
|
|
@@ -18896,7 +18923,7 @@ var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
|
18896
18923
|
|
|
18897
18924
|
// ../../shared-contracts/dist/usage-statistics.js
|
|
18898
18925
|
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
18899
|
-
var
|
|
18926
|
+
var count2 = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
18900
18927
|
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
18901
18928
|
var harness = external_exports.string().min(1).max(128);
|
|
18902
18929
|
var model = external_exports.string().min(1).max(512);
|
|
@@ -18919,22 +18946,24 @@ var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
|
18919
18946
|
date: localDate.optional()
|
|
18920
18947
|
});
|
|
18921
18948
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
18922
|
-
requests:
|
|
18923
|
-
inputTokens:
|
|
18924
|
-
cachedInputTokens:
|
|
18925
|
-
cacheWriteInputTokens:
|
|
18926
|
-
cacheKnownInputTokens:
|
|
18927
|
-
|
|
18928
|
-
|
|
18949
|
+
requests: count2,
|
|
18950
|
+
inputTokens: count2,
|
|
18951
|
+
cachedInputTokens: count2,
|
|
18952
|
+
cacheWriteInputTokens: count2,
|
|
18953
|
+
cacheKnownInputTokens: count2,
|
|
18954
|
+
cacheHitCachedInputTokens: count2,
|
|
18955
|
+
cacheHitInputTokens: count2,
|
|
18956
|
+
outputTokens: count2,
|
|
18957
|
+
reasoningOutputTokens: count2,
|
|
18929
18958
|
/** USD at the public price, summed over the priced requests only. */
|
|
18930
18959
|
costUsd: external_exports.number().finite().min(0),
|
|
18931
18960
|
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
18932
|
-
unpricedRequests:
|
|
18961
|
+
unpricedRequests: count2,
|
|
18933
18962
|
/**
|
|
18934
18963
|
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
18935
18964
|
* cost, and not as unpriced.
|
|
18936
18965
|
*/
|
|
18937
|
-
unmeteredRequests:
|
|
18966
|
+
unmeteredRequests: count2
|
|
18938
18967
|
});
|
|
18939
18968
|
var totals = usageStatisticsTotalsSchema.shape;
|
|
18940
18969
|
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
@@ -18945,8 +18974,8 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
18945
18974
|
title: external_exports.string().min(1).max(200).optional(),
|
|
18946
18975
|
/** Models the session used, most requests first. */
|
|
18947
18976
|
models: external_exports.array(model).max(16),
|
|
18948
|
-
firstAtMs:
|
|
18949
|
-
lastAtMs:
|
|
18977
|
+
firstAtMs: count2,
|
|
18978
|
+
lastAtMs: count2,
|
|
18950
18979
|
...totals
|
|
18951
18980
|
});
|
|
18952
18981
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
@@ -18964,7 +18993,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
18964
18993
|
date: localDate.nullable()
|
|
18965
18994
|
}),
|
|
18966
18995
|
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
18967
|
-
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources:
|
|
18996
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count2, read: count2 }),
|
|
18968
18997
|
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
18969
18998
|
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
18970
18999
|
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
@@ -18984,8 +19013,8 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
18984
19013
|
harness,
|
|
18985
19014
|
model: model.nullable(),
|
|
18986
19015
|
credits: external_exports.number().finite().min(0),
|
|
18987
|
-
reportedRequests:
|
|
18988
|
-
requests:
|
|
19016
|
+
reportedRequests: count2,
|
|
19017
|
+
requests: count2
|
|
18989
19018
|
})).max(4096).optional(),
|
|
18990
19019
|
/** All filters applied. */
|
|
18991
19020
|
totals: usageStatisticsTotalsSchema,
|
|
@@ -19002,7 +19031,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
19002
19031
|
model: model.nullable(),
|
|
19003
19032
|
...totals,
|
|
19004
19033
|
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
19005
|
-
harnessPricedRequests:
|
|
19034
|
+
harnessPricedRequests: count2
|
|
19006
19035
|
})).max(4096),
|
|
19007
19036
|
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
19008
19037
|
/**
|
|
@@ -19616,7 +19645,9 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
19616
19645
|
var harnessHistoryCapabilitiesSchema = external_exports.object({
|
|
19617
19646
|
fork: external_exports.boolean(),
|
|
19618
19647
|
forkAcrossCwd: external_exports.boolean(),
|
|
19619
|
-
rollbackLastTurn: external_exports.boolean()
|
|
19648
|
+
rollbackLastTurn: external_exports.boolean(),
|
|
19649
|
+
/** Remove the selected checkpoint's Turn and every later Turn, without restoring files. */
|
|
19650
|
+
rollbackToCheckpoint: external_exports.boolean().optional()
|
|
19620
19651
|
}).strict().refine((history) => history.fork || !history.forkAcrossCwd, {
|
|
19621
19652
|
path: ["forkAcrossCwd"],
|
|
19622
19653
|
message: "Cross-cwd Fork requires exact history Fork support"
|
|
@@ -19854,7 +19885,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
19854
19885
|
harnessId: harnessPluginIdSchema,
|
|
19855
19886
|
model: harnessModelRefSchema.optional(),
|
|
19856
19887
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
19857
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
19888
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
19889
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
19890
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
19891
|
+
prewarm: external_exports.literal(true).optional()
|
|
19858
19892
|
}).strict();
|
|
19859
19893
|
|
|
19860
19894
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -22271,7 +22305,7 @@ var DEEPSEEK_V4_PROFILE = Object.freeze({
|
|
|
22271
22305
|
function isRecord5(value) {
|
|
22272
22306
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
22273
22307
|
}
|
|
22274
|
-
function
|
|
22308
|
+
function count3(value) {
|
|
22275
22309
|
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0 ? value : null;
|
|
22276
22310
|
}
|
|
22277
22311
|
function firstTokenTime(chunks) {
|
|
@@ -22308,11 +22342,11 @@ function deepSeekUsageRecord(event, historical) {
|
|
|
22308
22342
|
return data.interrupted === true ? { kind: "none" } : { kind: "missing" };
|
|
22309
22343
|
if (!isRecord5(usage))
|
|
22310
22344
|
return { kind: "missing" };
|
|
22311
|
-
const input =
|
|
22312
|
-
const output =
|
|
22313
|
-
const cacheRead =
|
|
22314
|
-
const cacheWrite =
|
|
22315
|
-
const reasoning2 = usage.reasoningTokens === void 0 ? null :
|
|
22345
|
+
const input = count3(usage.inputTokens);
|
|
22346
|
+
const output = count3(usage.outputTokens);
|
|
22347
|
+
const cacheRead = count3(usage.cacheReadTokens ?? 0);
|
|
22348
|
+
const cacheWrite = count3(usage.cacheWriteTokens ?? 0);
|
|
22349
|
+
const reasoning2 = usage.reasoningTokens === void 0 ? null : count3(usage.reasoningTokens);
|
|
22316
22350
|
if (input === null || output === null || cacheRead === null || cacheWrite === null) {
|
|
22317
22351
|
return { kind: "missing" };
|
|
22318
22352
|
}
|
|
@@ -26408,15 +26442,24 @@ function attachedKnownInvocation(value, sinks) {
|
|
|
26408
26442
|
return { event: value.event, eventId: value.eventId, agentId: value.agentId };
|
|
26409
26443
|
}
|
|
26410
26444
|
function parseApprovalRequest(value) {
|
|
26411
|
-
if (!hasOnlyKeys(value, ["toolName"], ["callId", "reason"]) || !nonBlankString3(value.toolName) || Object.hasOwn(value, "callId") && !nonBlankString3(value.callId) || Object.hasOwn(value, "reason") && !boundedString3(value.reason)) {
|
|
26445
|
+
if (!hasOnlyKeys(value, ["toolName"], ["callId", "reason", "displayReason"]) || !nonBlankString3(value.toolName) || Object.hasOwn(value, "callId") && !nonBlankString3(value.callId) || Object.hasOwn(value, "reason") && !boundedString3(value.reason) || Object.hasOwn(value, "displayReason") && !isApprovalDisplayReason(value.displayReason)) {
|
|
26412
26446
|
throw invalidFrame();
|
|
26413
26447
|
}
|
|
26414
26448
|
return {
|
|
26415
26449
|
toolName: value.toolName,
|
|
26416
26450
|
...typeof value.callId === "string" ? { callId: value.callId } : {},
|
|
26417
|
-
...typeof value.reason === "string" ? { reason: value.reason } : {}
|
|
26451
|
+
...typeof value.reason === "string" ? { reason: value.reason } : {},
|
|
26452
|
+
...Object.hasOwn(value, "displayReason") ? { displayReason: value.displayReason } : {}
|
|
26418
26453
|
};
|
|
26419
26454
|
}
|
|
26455
|
+
function isApprovalDisplayReason(value) {
|
|
26456
|
+
if (!isPlainRecord6(value))
|
|
26457
|
+
return false;
|
|
26458
|
+
const entries = Object.entries(value);
|
|
26459
|
+
if (entries.length === 0)
|
|
26460
|
+
return false;
|
|
26461
|
+
return entries.every(([locale, text]) => locale.length > 0 && nonBlankString3(text) && boundedString3(text));
|
|
26462
|
+
}
|
|
26420
26463
|
function parseQuestionRequest(value) {
|
|
26421
26464
|
if (!hasOnlyKeys(value, ["questions"], ["wait"]) || !Array.isArray(value.questions)) {
|
|
26422
26465
|
throw invalidFrame();
|
|
@@ -28374,7 +28417,7 @@ function validateInboxSplice(data, profile) {
|
|
|
28374
28417
|
}
|
|
28375
28418
|
}
|
|
28376
28419
|
function validateApprovalAsked(data) {
|
|
28377
|
-
requiredOptionalKeys(data, ["id", "toolName"], ["callId", "reason"]);
|
|
28420
|
+
requiredOptionalKeys(data, ["id", "toolName"], ["callId", "reason", "displayReason"]);
|
|
28378
28421
|
requiredString(data.id, "approval/asked id");
|
|
28379
28422
|
requiredString(data.toolName, "approval/asked toolName");
|
|
28380
28423
|
if (data.callId !== void 0)
|
|
@@ -28382,6 +28425,17 @@ function validateApprovalAsked(data) {
|
|
|
28382
28425
|
if (data.reason !== void 0 && typeof data.reason !== "string") {
|
|
28383
28426
|
fail("Modern history approval/asked reason is malformed");
|
|
28384
28427
|
}
|
|
28428
|
+
if (data.displayReason !== void 0 && !isApprovalDisplayReason2(data.displayReason)) {
|
|
28429
|
+
fail("Modern history approval/asked displayReason is malformed");
|
|
28430
|
+
}
|
|
28431
|
+
}
|
|
28432
|
+
function isApprovalDisplayReason2(value) {
|
|
28433
|
+
if (!isRecord4(value))
|
|
28434
|
+
return false;
|
|
28435
|
+
const entries = Object.entries(value);
|
|
28436
|
+
if (entries.length === 0)
|
|
28437
|
+
return false;
|
|
28438
|
+
return entries.every(([locale, text]) => locale.length > 0 && typeof text === "string" && text.length > 0 && nonBlankString(text));
|
|
28385
28439
|
}
|
|
28386
28440
|
function validateApprovalDecided(data) {
|
|
28387
28441
|
exactKeys(data, ["id", "outcome"]);
|
|
@@ -29295,7 +29349,7 @@ var ModernHarnessSession = class {
|
|
|
29295
29349
|
type: "approval",
|
|
29296
29350
|
interactionId,
|
|
29297
29351
|
turnId: active.turnId,
|
|
29298
|
-
title: delivery.request.reason ?? `Allow ${delivery.request.toolName}?`,
|
|
29352
|
+
title: delivery.request.displayReason?.en ?? delivery.request.reason ?? `Allow ${delivery.request.toolName}?`,
|
|
29299
29353
|
description: delivery.request.callId ? `${delivery.request.toolName} (${delivery.request.callId})` : delivery.request.toolName,
|
|
29300
29354
|
subject: { type: "nativeAction" },
|
|
29301
29355
|
actions: [
|