@karlorz/codexhost-cli-win32-x64 0.13.3-7 → 0.14.0-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 +55 -4
- package/app/console-web.js +344 -54
- package/app/cpa-live-voice-hook.js +55 -4
- package/app/desktop-controller.mjs +69 -8
- package/app/host-runtime.mjs +743 -230
- package/app/plugins/antigravity/plugin.mjs +88 -12
- package/app/plugins/claude-code/plugin.mjs +397 -21
- package/app/plugins/codebuddy/plugin.mjs +107 -17
- package/app/plugins/codex-usage/plugin.mjs +67 -7
- package/app/plugins/copilot/assets/icon.png +0 -0
- package/app/plugins/copilot/manifest.json +26 -0
- package/app/plugins/copilot/plugin.mjs +34645 -0
- package/app/plugins/cursor-cli/plugin.mjs +88 -6
- package/app/plugins/deepseek-harness/plugin.mjs +73 -6
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +272 -60
- package/app/plugins/hermes/plugin.mjs +70 -4
- package/app/plugins/kimi-code/plugin.mjs +73 -6
- package/app/plugins/kiro-cli/plugin.mjs +73 -6
- package/app/plugins/omp/plugin.mjs +73 -112
- package/app/plugins/opencode/plugin.mjs +75 -6
- package/app/plugins/pi/plugin.mjs +204 -44
- package/app/plugins/qoder/plugin.mjs +73 -6
- package/app/plugins/qoder-cn/plugin.mjs +73 -6
- package/app/plugins/workbuddy/plugin.mjs +368 -41
- package/app/plugins/zcode/plugin.mjs +74 -6
- package/app/renderer-extension.js +749 -157
- 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
|
@@ -27245,10 +27245,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
27245
27245
|
var project = external_exports.string().min(1).max(4096);
|
|
27246
27246
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
27247
27247
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
27248
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
27249
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
27250
|
+
try {
|
|
27251
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
27252
|
+
return true;
|
|
27253
|
+
} catch {
|
|
27254
|
+
return false;
|
|
27255
|
+
}
|
|
27256
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
27248
27257
|
harness: harness.optional(),
|
|
27249
27258
|
model: model.nullable().optional(),
|
|
27250
27259
|
project: project.nullable().optional(),
|
|
27251
|
-
/** One
|
|
27260
|
+
/** One date in the query timezone inside the range. */
|
|
27252
27261
|
date: localDate.optional()
|
|
27253
27262
|
});
|
|
27254
27263
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -27284,7 +27293,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
27284
27293
|
});
|
|
27285
27294
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
27286
27295
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
27287
|
-
/** First
|
|
27296
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
27288
27297
|
from: localDate.nullable(),
|
|
27289
27298
|
to: localDate,
|
|
27290
27299
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -27324,7 +27333,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
27324
27333
|
totals: usageStatisticsTotalsSchema,
|
|
27325
27334
|
/** Each date and Harness of the range: every filter except the day. */
|
|
27326
27335
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
27327
|
-
/**
|
|
27336
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
27328
27337
|
hourly: external_exports.array(external_exports.strictObject({
|
|
27329
27338
|
weekday: external_exports.number().int().min(0).max(6),
|
|
27330
27339
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -27415,6 +27424,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
27415
27424
|
"codexhost/harness/display-settings/set",
|
|
27416
27425
|
"codexhost/harness/inspect",
|
|
27417
27426
|
"codexhost/harness/installation",
|
|
27427
|
+
"codexhost/harness/installation/start",
|
|
27428
|
+
"codexhost/harness/installation/status",
|
|
27418
27429
|
"codexhost/harness/launch-settings/get",
|
|
27419
27430
|
"codexhost/harness/launch-settings/set",
|
|
27420
27431
|
"codexhost/harness/grok-computer-use/get",
|
|
@@ -27492,7 +27503,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
27492
27503
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27493
27504
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27494
27505
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27506
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
27507
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
27508
|
+
kind: external_exports.literal("countdown"),
|
|
27509
|
+
id: external_exports.string().min(1).max(64),
|
|
27510
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
27511
|
+
label: indicatorTextSchema(256).optional(),
|
|
27512
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
27513
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
27514
|
+
message: "Composer indicator IDs must be unique"
|
|
27515
|
+
});
|
|
27495
27516
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
27517
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
27496
27518
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27497
27519
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27498
27520
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -27900,7 +27922,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
27900
27922
|
}).strict().optional(),
|
|
27901
27923
|
autonomousTurns: external_exports.object({
|
|
27902
27924
|
observe: external_exports.boolean()
|
|
27903
|
-
}).strict().optional()
|
|
27925
|
+
}).strict().optional(),
|
|
27926
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
27927
|
+
steer: external_exports.boolean().optional()
|
|
27904
27928
|
}).strict();
|
|
27905
27929
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
27906
27930
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -28032,6 +28056,15 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
28032
28056
|
seen.add(thread.threadId);
|
|
28033
28057
|
}
|
|
28034
28058
|
});
|
|
28059
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
28060
|
+
threadId: hostThreadIdSchema,
|
|
28061
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
28062
|
+
text: external_exports.string().optional()
|
|
28063
|
+
}).strict();
|
|
28064
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
28065
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
28066
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
28067
|
+
}).strict();
|
|
28035
28068
|
|
|
28036
28069
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
28037
28070
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
@@ -28153,6 +28186,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28153
28186
|
latestVersion: external_exports.string().min(1).max(128),
|
|
28154
28187
|
updateAvailable: external_exports.boolean(),
|
|
28155
28188
|
canUpdate: external_exports.boolean(),
|
|
28189
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
28190
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
28191
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
28192
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
28156
28193
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28157
28194
|
message: external_exports.string().max(2048).optional(),
|
|
28158
28195
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -28160,6 +28197,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28160
28197
|
notice: harnessLocalizedTextSchema.optional(),
|
|
28161
28198
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28162
28199
|
}).strict();
|
|
28200
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
28201
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
28202
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
28203
|
+
external_exports.object({
|
|
28204
|
+
taskId: external_exports.string().uuid(),
|
|
28205
|
+
status: external_exports.literal("succeeded"),
|
|
28206
|
+
result: harnessInstallationStateSchema
|
|
28207
|
+
}).strict(),
|
|
28208
|
+
external_exports.object({
|
|
28209
|
+
taskId: external_exports.string().uuid(),
|
|
28210
|
+
status: external_exports.literal("failed"),
|
|
28211
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
28212
|
+
}).strict()
|
|
28213
|
+
]);
|
|
28163
28214
|
|
|
28164
28215
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
28165
28216
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -29364,6 +29415,18 @@ var HarnessOutputChannel = class {
|
|
|
29364
29415
|
}
|
|
29365
29416
|
};
|
|
29366
29417
|
|
|
29418
|
+
// ../../harness-adapter/dist/steer.js
|
|
29419
|
+
function unsupportedSteer(harnessLabel) {
|
|
29420
|
+
return {
|
|
29421
|
+
ok: false,
|
|
29422
|
+
error: {
|
|
29423
|
+
code: "unsupported",
|
|
29424
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
29425
|
+
retryable: false
|
|
29426
|
+
}
|
|
29427
|
+
};
|
|
29428
|
+
}
|
|
29429
|
+
|
|
29367
29430
|
// ../../harness-adapter/dist/usage.js
|
|
29368
29431
|
var tokenFields = [
|
|
29369
29432
|
"inputTokens",
|
|
@@ -29391,6 +29454,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
29391
29454
|
...safeIntegerFields,
|
|
29392
29455
|
...percentFields,
|
|
29393
29456
|
"sessionCacheUsage",
|
|
29457
|
+
"composerIndicators",
|
|
29394
29458
|
"totalCostUsd",
|
|
29395
29459
|
"totalCredits",
|
|
29396
29460
|
"contextUsagePercent",
|
|
@@ -29413,6 +29477,7 @@ function parseHostUsage(value) {
|
|
|
29413
29477
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
29414
29478
|
}
|
|
29415
29479
|
}
|
|
29480
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
29416
29481
|
for (const field of [
|
|
29417
29482
|
"totalCredits",
|
|
29418
29483
|
"contextUsagePercent",
|
|
@@ -29483,9 +29548,9 @@ function parseHostUsage(value) {
|
|
|
29483
29548
|
if (value.costSource !== "publicPrice") {
|
|
29484
29549
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
29485
29550
|
}
|
|
29486
|
-
return { ...value, unpricedModels: [...models] };
|
|
29551
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
29487
29552
|
}
|
|
29488
|
-
return { ...value };
|
|
29553
|
+
return { ...value, ...indicators };
|
|
29489
29554
|
}
|
|
29490
29555
|
var requestTokenFields = [
|
|
29491
29556
|
"inputTokens",
|
|
@@ -52373,6 +52438,8 @@ var QoderSession = class {
|
|
|
52373
52438
|
};
|
|
52374
52439
|
}
|
|
52375
52440
|
switch (command.type) {
|
|
52441
|
+
case "turn.steer":
|
|
52442
|
+
return unsupportedSteer("Qoder");
|
|
52376
52443
|
case "turn.start": {
|
|
52377
52444
|
if (this.#activeTurn) {
|
|
52378
52445
|
return {
|