@codexhost/cli-darwin-x64 0.15.0 → 0.16.1
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 +8 -2
- package/app/console-web.js +73 -16
- package/app/desktop-controller.mjs +593 -30
- package/app/host-runtime.mjs +1474 -565
- package/app/plugins/antigravity/plugin.mjs +6 -1
- package/app/plugins/claude-code/plugin.mjs +24 -31
- package/app/plugins/codebuddy/plugin.mjs +44 -4
- package/app/plugins/codex-usage/plugin.mjs +6 -1
- package/app/plugins/copilot/plugin.mjs +6 -1
- package/app/plugins/cursor-cli/plugin.mjs +6 -1
- package/app/plugins/deepseek-harness/plugin.mjs +30 -5
- package/app/plugins/grok/plugin.mjs +6 -1
- package/app/plugins/hermes/plugin.mjs +6 -1
- package/app/plugins/kimi-code/plugin.mjs +6 -1
- package/app/plugins/kiro-cli/plugin.mjs +6 -1
- package/app/plugins/omp/plugin.mjs +6 -1
- package/app/plugins/opencode/plugin.mjs +6 -1
- package/app/plugins/pi/plugin.mjs +25 -8
- package/app/plugins/qoder/plugin.mjs +6 -1
- package/app/plugins/qoder-cn/plugin.mjs +6 -1
- package/app/plugins/workbuddy/plugin.mjs +44 -4
- package/app/plugins/zcode/plugin.mjs +6 -1
- package/app/renderer-extension.js +1702 -100
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -27669,6 +27669,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
27669
27669
|
cachedInputTokens: count,
|
|
27670
27670
|
cacheWriteInputTokens: count,
|
|
27671
27671
|
cacheKnownInputTokens: count,
|
|
27672
|
+
cacheHitCachedInputTokens: count,
|
|
27673
|
+
cacheHitInputTokens: count,
|
|
27672
27674
|
outputTokens: count,
|
|
27673
27675
|
reasoningOutputTokens: count,
|
|
27674
27676
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -28555,7 +28557,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
28555
28557
|
harnessId: harnessPluginIdSchema,
|
|
28556
28558
|
model: harnessModelRefSchema.optional(),
|
|
28557
28559
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
28558
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
28560
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
28561
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
28562
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
28563
|
+
prewarm: external_exports.literal(true).optional()
|
|
28559
28564
|
}).strict();
|
|
28560
28565
|
|
|
28561
28566
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -27266,6 +27266,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
27266
27266
|
cachedInputTokens: count,
|
|
27267
27267
|
cacheWriteInputTokens: count,
|
|
27268
27268
|
cacheKnownInputTokens: count,
|
|
27269
|
+
cacheHitCachedInputTokens: count,
|
|
27270
|
+
cacheHitInputTokens: count,
|
|
27269
27271
|
outputTokens: count,
|
|
27270
27272
|
reasoningOutputTokens: count,
|
|
27271
27273
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -28152,7 +28154,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
28152
28154
|
harnessId: harnessPluginIdSchema,
|
|
28153
28155
|
model: harnessModelRefSchema.optional(),
|
|
28154
28156
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
28155
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
28157
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
28158
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
28159
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
28160
|
+
prewarm: external_exports.literal(true).optional()
|
|
28156
28161
|
}).strict();
|
|
28157
28162
|
|
|
28158
28163
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -14683,6 +14683,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
14683
14683
|
cachedInputTokens: count,
|
|
14684
14684
|
cacheWriteInputTokens: count,
|
|
14685
14685
|
cacheKnownInputTokens: count,
|
|
14686
|
+
cacheHitCachedInputTokens: count,
|
|
14687
|
+
cacheHitInputTokens: count,
|
|
14686
14688
|
outputTokens: count,
|
|
14687
14689
|
reasoningOutputTokens: count,
|
|
14688
14690
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15569,7 +15571,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15569
15571
|
harnessId: harnessPluginIdSchema,
|
|
15570
15572
|
model: harnessModelRefSchema.optional(),
|
|
15571
15573
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15572
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15574
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15575
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15576
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15577
|
+
prewarm: external_exports.literal(true).optional()
|
|
15573
15578
|
}).strict();
|
|
15574
15579
|
|
|
15575
15580
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -18938,7 +18943,17 @@ function pendingNativeHistoryRewind(contents) {
|
|
|
18938
18943
|
const last = parseRows(contents).findLast((row) => row.type === "resend-fork-notice" || NATIVE_MESSAGE_TYPES.has(text(row.type)));
|
|
18939
18944
|
return last?.type === "resend-fork-notice" ? { forkPointId: text(last.parentId) || null } : void 0;
|
|
18940
18945
|
}
|
|
18946
|
+
function isNativeCompactionSummary(row) {
|
|
18947
|
+
const data = record2(row.providerData);
|
|
18948
|
+
return row.type === "message" && row.role === "user" && data.isCompactInternal === true;
|
|
18949
|
+
}
|
|
18941
18950
|
function nativeHistoryRows(contents) {
|
|
18951
|
+
return collectNativeHistoryRows(contents, false);
|
|
18952
|
+
}
|
|
18953
|
+
function nativeDisplayHistoryRows(contents) {
|
|
18954
|
+
return collectNativeHistoryRows(contents, true);
|
|
18955
|
+
}
|
|
18956
|
+
function collectNativeHistoryRows(contents, followCompactionParent) {
|
|
18942
18957
|
const entries = /* @__PURE__ */ new Map();
|
|
18943
18958
|
let leaf = "";
|
|
18944
18959
|
for (const row of parseRows(contents)) {
|
|
@@ -18963,10 +18978,16 @@ function nativeHistoryRows(contents) {
|
|
|
18963
18978
|
throw new CodeBuddyError("protocolError", "Native history parent is missing");
|
|
18964
18979
|
chain.push(row);
|
|
18965
18980
|
leaf = text(row.parentId);
|
|
18981
|
+
if (!leaf && followCompactionParent && isNativeCompactionSummary(row)) {
|
|
18982
|
+
const logicalParent = text(row.logicalParentId);
|
|
18983
|
+
if (logicalParent && !entries.has(logicalParent))
|
|
18984
|
+
throw new CodeBuddyError("protocolError", "Native compaction parent is missing");
|
|
18985
|
+
leaf = logicalParent;
|
|
18986
|
+
}
|
|
18966
18987
|
}
|
|
18967
18988
|
return chain.reverse();
|
|
18968
18989
|
}
|
|
18969
|
-
function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PROFILE) {
|
|
18990
|
+
function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PROFILE, options = {}) {
|
|
18970
18991
|
const supportsNativeCommands = nativeCommandsEnabled(profile);
|
|
18971
18992
|
const supportsFork = capabilitiesForProfile(profile).history.fork;
|
|
18972
18993
|
const turns = [];
|
|
@@ -18992,7 +19013,8 @@ function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PRO
|
|
|
18992
19013
|
snapshot.item.outputTruncated = Boolean(output.truncated);
|
|
18993
19014
|
}
|
|
18994
19015
|
};
|
|
18995
|
-
const
|
|
19016
|
+
const includeCompactionHistory = options.includeCompactionHistory !== false;
|
|
19017
|
+
const history = includeCompactionHistory ? nativeDisplayHistoryRows(contents) : nativeHistoryRows(contents);
|
|
18996
19018
|
const manualCompactions = /* @__PURE__ */ new Set();
|
|
18997
19019
|
let compactUser;
|
|
18998
19020
|
if (supportsNativeCommands)
|
|
@@ -19026,6 +19048,22 @@ function snapshotFromHistory(contents, ref, cwd, profile = CODEBUDDY_RUNTIME_PRO
|
|
|
19026
19048
|
continue;
|
|
19027
19049
|
if (supportsNativeCommands && row.type === "message" && row.role === "user" && data.agent === "compact" && !manualCompactions.has(text(row.id)))
|
|
19028
19050
|
continue;
|
|
19051
|
+
if (includeCompactionHistory && isNativeCompactionSummary(row)) {
|
|
19052
|
+
if (supportsNativeCommands && current) {
|
|
19053
|
+
const outcome = data.isCompacted === true ? { status: "succeeded" } : {
|
|
19054
|
+
status: "failed",
|
|
19055
|
+
error: nativeError(new CodeBuddyError("nativeFailure", "Native compaction did not complete"), profile)
|
|
19056
|
+
};
|
|
19057
|
+
current.items.push({
|
|
19058
|
+
item: {
|
|
19059
|
+
type: "contextCompaction",
|
|
19060
|
+
itemId: hostItemIdSchema.parse(`compact-${text(row.id)}`)
|
|
19061
|
+
},
|
|
19062
|
+
outcome
|
|
19063
|
+
});
|
|
19064
|
+
}
|
|
19065
|
+
continue;
|
|
19066
|
+
}
|
|
19029
19067
|
if (row.type === "message" && row.role === "user") {
|
|
19030
19068
|
current = {
|
|
19031
19069
|
nativeTurnRef: nativeTurnRefSchema.parse({
|
|
@@ -24373,7 +24411,9 @@ function commandCaveat(row) {
|
|
|
24373
24411
|
}
|
|
24374
24412
|
function retainedRowCount(input, contents, sourceCwd = input.cwd, profile = CODEBUDDY_RUNTIME_PROFILE) {
|
|
24375
24413
|
const rows2 = nativeHistoryRows(contents);
|
|
24376
|
-
const turns = snapshotFromHistory(contents, input.sourceRef, sourceCwd, profile
|
|
24414
|
+
const turns = snapshotFromHistory(contents, input.sourceRef, sourceCwd, profile, {
|
|
24415
|
+
includeCompactionHistory: false
|
|
24416
|
+
}).turns;
|
|
24377
24417
|
let excluded2;
|
|
24378
24418
|
if (input.kind === "rollbackLastTurn") {
|
|
24379
24419
|
if (!turns.length)
|
|
@@ -14869,6 +14869,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
14869
14869
|
cachedInputTokens: count,
|
|
14870
14870
|
cacheWriteInputTokens: count,
|
|
14871
14871
|
cacheKnownInputTokens: count,
|
|
14872
|
+
cacheHitCachedInputTokens: count,
|
|
14873
|
+
cacheHitInputTokens: count,
|
|
14872
14874
|
outputTokens: count,
|
|
14873
14875
|
reasoningOutputTokens: count,
|
|
14874
14876
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -15755,7 +15757,10 @@ var harnessPluginRouteSchema = external_exports.object({
|
|
|
15755
15757
|
harnessId: harnessPluginIdSchema,
|
|
15756
15758
|
model: harnessModelRefSchema.optional(),
|
|
15757
15759
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
15758
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
15760
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
15761
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
15762
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
15763
|
+
prewarm: external_exports.literal(true).optional()
|
|
15759
15764
|
}).strict();
|
|
15760
15765
|
|
|
15761
15766
|
// ../../shared-contracts/dist/harness-launch-settings.js
|