@codexhost/cli-linux-arm64 0.12.1 → 0.12.2
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-web.js +494 -141
- package/app/host-runtime.mjs +8 -8
- package/app/plugins/antigravity/plugin.mjs +2 -2
- package/app/plugins/claude-code/plugin.mjs +5 -5
- package/app/plugins/codebuddy/plugin.mjs +2 -2
- package/app/plugins/cursor-cli/plugin.mjs +2 -2
- package/app/plugins/deepseek-harness/plugin.mjs +2 -2
- package/app/plugins/grok/plugin.mjs +2 -2
- package/app/plugins/hermes/plugin.mjs +2 -2
- package/app/plugins/kimi-code/plugin.mjs +2 -2
- package/app/plugins/kiro-cli/plugin.mjs +2 -2
- package/app/plugins/omp/plugin.mjs +2 -2
- package/app/plugins/opencode/plugin.mjs +2 -2
- package/app/plugins/pi/plugin.mjs +2 -2
- package/app/plugins/qoder/plugin.mjs +2 -2
- package/app/plugins/qoder-cn/plugin.mjs +2 -2
- package/app/plugins/workbuddy/plugin.mjs +2 -2
- package/app/plugins/zcode/plugin.mjs +2 -2
- package/app/renderer-extension.js +630 -232
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
package/app/host-runtime.mjs
CHANGED
|
@@ -24098,7 +24098,6 @@ var tokenFields = [
|
|
|
24098
24098
|
"cachedInputTokens",
|
|
24099
24099
|
"cacheWriteInputTokens",
|
|
24100
24100
|
"outputTokens",
|
|
24101
|
-
"outputTokensPerSecond",
|
|
24102
24101
|
"reasoningOutputTokens",
|
|
24103
24102
|
"totalTokens",
|
|
24104
24103
|
"contextWindowTokens",
|
|
@@ -24119,7 +24118,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
24119
24118
|
...percentFields,
|
|
24120
24119
|
"totalCostUsd",
|
|
24121
24120
|
"totalCredits",
|
|
24122
|
-
"contextUsagePercent"
|
|
24121
|
+
"contextUsagePercent",
|
|
24122
|
+
"outputTokensPerSecond"
|
|
24123
24123
|
]);
|
|
24124
24124
|
function isRecord4(value2) {
|
|
24125
24125
|
return typeof value2 === "object" && value2 !== null && !Array.isArray(value2);
|
|
@@ -29683,6 +29683,9 @@ var ExternalThreadRepository = class {
|
|
|
29683
29683
|
}
|
|
29684
29684
|
async alignSnapshot(record4, snapshot) {
|
|
29685
29685
|
const nativeSessionRef = record4.nativeSessionRef;
|
|
29686
|
+
if (record4.state === "creating" && !nativeSessionRef && snapshot.turns.length === 0) {
|
|
29687
|
+
return { record: record4, turns: [] };
|
|
29688
|
+
}
|
|
29686
29689
|
if (!nativeSessionRef || record4.state !== "ready") {
|
|
29687
29690
|
throw new Error("External Thread has no committed Native Session identity");
|
|
29688
29691
|
}
|
|
@@ -37256,11 +37259,7 @@ var AppServerHost = class {
|
|
|
37256
37259
|
}
|
|
37257
37260
|
})
|
|
37258
37261
|
);
|
|
37259
|
-
await this.#
|
|
37260
|
-
method: "thread/started",
|
|
37261
|
-
emittedAtMs: Date.now(),
|
|
37262
|
-
params: { thread }
|
|
37263
|
-
});
|
|
37262
|
+
if (record4.state === "ready") await this.#notifyExternalThreadStarted(thread);
|
|
37264
37263
|
} catch {
|
|
37265
37264
|
this.#externalRuntime.remove(record4.hostThreadId);
|
|
37266
37265
|
this.#routeObservationTracker.forgetThread(record4.hostThreadId);
|
|
@@ -37942,6 +37941,7 @@ var AppServerHost = class {
|
|
|
37942
37941
|
if (event.state.nativeRef) {
|
|
37943
37942
|
if (!thread.record.nativeSessionRef) {
|
|
37944
37943
|
thread.record = await this.#repository.commitNative(thread.id, event.state.nativeRef);
|
|
37944
|
+
await this.#notifyExternalThreadStarted(thread.thread);
|
|
37945
37945
|
} else if (thread.record.nativeSessionRef.harnessId !== event.state.nativeRef.harnessId || thread.record.nativeSessionRef.nativeSessionId !== event.state.nativeRef.nativeSessionId) {
|
|
37946
37946
|
throw new Error("External Session changed Native identity");
|
|
37947
37947
|
}
|
|
@@ -43327,7 +43327,7 @@ async function startHarnessBrokerServer(input) {
|
|
|
43327
43327
|
const sourceNativeId = sourceRef?.nativeSessionId;
|
|
43328
43328
|
if (sourceRef && sourceRef.harnessId !== input.adapter.harnessId)
|
|
43329
43329
|
return { ok: false, error: protocolError("Native Session belongs to another Harness") };
|
|
43330
|
-
const sourceKey = sourceNativeId ? nativeWriterKey(sourceNativeId) : void 0;
|
|
43330
|
+
const sourceKey = sourceNativeId && openInput.kind !== "fork" ? nativeWriterKey(sourceNativeId) : void 0;
|
|
43331
43331
|
if (sourceKey && nativeWriters.has(sourceKey)) {
|
|
43332
43332
|
return {
|
|
43333
43333
|
ok: false,
|
|
@@ -16160,7 +16160,6 @@ var tokenFields = [
|
|
|
16160
16160
|
"cachedInputTokens",
|
|
16161
16161
|
"cacheWriteInputTokens",
|
|
16162
16162
|
"outputTokens",
|
|
16163
|
-
"outputTokensPerSecond",
|
|
16164
16163
|
"reasoningOutputTokens",
|
|
16165
16164
|
"totalTokens",
|
|
16166
16165
|
"contextWindowTokens",
|
|
@@ -16181,7 +16180,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16181
16180
|
...percentFields,
|
|
16182
16181
|
"totalCostUsd",
|
|
16183
16182
|
"totalCredits",
|
|
16184
|
-
"contextUsagePercent"
|
|
16183
|
+
"contextUsagePercent",
|
|
16184
|
+
"outputTokensPerSecond"
|
|
16185
16185
|
]);
|
|
16186
16186
|
|
|
16187
16187
|
// dist/command.js
|
|
@@ -15762,7 +15762,6 @@ var tokenFields = [
|
|
|
15762
15762
|
"cachedInputTokens",
|
|
15763
15763
|
"cacheWriteInputTokens",
|
|
15764
15764
|
"outputTokens",
|
|
15765
|
-
"outputTokensPerSecond",
|
|
15766
15765
|
"reasoningOutputTokens",
|
|
15767
15766
|
"totalTokens",
|
|
15768
15767
|
"contextWindowTokens",
|
|
@@ -15783,7 +15782,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
15783
15782
|
...percentFields,
|
|
15784
15783
|
"totalCostUsd",
|
|
15785
15784
|
"totalCredits",
|
|
15786
|
-
"contextUsagePercent"
|
|
15785
|
+
"contextUsagePercent",
|
|
15786
|
+
"outputTokensPerSecond"
|
|
15787
15787
|
]);
|
|
15788
15788
|
function isRecord(value) {
|
|
15789
15789
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -45127,7 +45127,7 @@ async function readClaudeTranscript(input) {
|
|
|
45127
45127
|
if (!transcript)
|
|
45128
45128
|
return null;
|
|
45129
45129
|
const contents = await readFile4(transcript, "utf8");
|
|
45130
|
-
const messages =
|
|
45130
|
+
const messages = /* @__PURE__ */ new Map();
|
|
45131
45131
|
for (const line of contents.split("\n")) {
|
|
45132
45132
|
if (line.trim().length === 0)
|
|
45133
45133
|
continue;
|
|
@@ -45140,9 +45140,9 @@ async function readClaudeTranscript(input) {
|
|
|
45140
45140
|
if (!isRecord6(entry) || entry.type !== "user" && entry.type !== "assistant" || typeof entry.uuid !== "string" || !isRecord6(entry.message)) {
|
|
45141
45141
|
continue;
|
|
45142
45142
|
}
|
|
45143
|
-
messages.
|
|
45143
|
+
messages.set(entry.uuid, { ...entry, session_id: input.sessionId });
|
|
45144
45144
|
}
|
|
45145
|
-
return messages;
|
|
45145
|
+
return [...messages.values()];
|
|
45146
45146
|
}
|
|
45147
45147
|
|
|
45148
45148
|
// dist/model-catalog.js
|
|
@@ -16255,7 +16255,6 @@ var tokenFields = [
|
|
|
16255
16255
|
"cachedInputTokens",
|
|
16256
16256
|
"cacheWriteInputTokens",
|
|
16257
16257
|
"outputTokens",
|
|
16258
|
-
"outputTokensPerSecond",
|
|
16259
16258
|
"reasoningOutputTokens",
|
|
16260
16259
|
"totalTokens",
|
|
16261
16260
|
"contextWindowTokens",
|
|
@@ -16276,7 +16275,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16276
16275
|
...percentFields,
|
|
16277
16276
|
"totalCostUsd",
|
|
16278
16277
|
"totalCredits",
|
|
16279
|
-
"contextUsagePercent"
|
|
16278
|
+
"contextUsagePercent",
|
|
16279
|
+
"outputTokensPerSecond"
|
|
16280
16280
|
]);
|
|
16281
16281
|
function isRecord(value) {
|
|
16282
16282
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -28829,7 +28829,6 @@ var tokenFields = [
|
|
|
28829
28829
|
"cachedInputTokens",
|
|
28830
28830
|
"cacheWriteInputTokens",
|
|
28831
28831
|
"outputTokens",
|
|
28832
|
-
"outputTokensPerSecond",
|
|
28833
28832
|
"reasoningOutputTokens",
|
|
28834
28833
|
"totalTokens",
|
|
28835
28834
|
"contextWindowTokens",
|
|
@@ -28850,7 +28849,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
28850
28849
|
...percentFields,
|
|
28851
28850
|
"totalCostUsd",
|
|
28852
28851
|
"totalCredits",
|
|
28853
|
-
"contextUsagePercent"
|
|
28852
|
+
"contextUsagePercent",
|
|
28853
|
+
"outputTokensPerSecond"
|
|
28854
28854
|
]);
|
|
28855
28855
|
function isRecord(value) {
|
|
28856
28856
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -19968,7 +19968,6 @@ var tokenFields = [
|
|
|
19968
19968
|
"cachedInputTokens",
|
|
19969
19969
|
"cacheWriteInputTokens",
|
|
19970
19970
|
"outputTokens",
|
|
19971
|
-
"outputTokensPerSecond",
|
|
19972
19971
|
"reasoningOutputTokens",
|
|
19973
19972
|
"totalTokens",
|
|
19974
19973
|
"contextWindowTokens",
|
|
@@ -19989,7 +19988,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
19989
19988
|
...percentFields,
|
|
19990
19989
|
"totalCostUsd",
|
|
19991
19990
|
"totalCredits",
|
|
19992
|
-
"contextUsagePercent"
|
|
19991
|
+
"contextUsagePercent",
|
|
19992
|
+
"outputTokensPerSecond"
|
|
19993
19993
|
]);
|
|
19994
19994
|
function isRecord(value) {
|
|
19995
19995
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16129,7 +16129,6 @@ var tokenFields = [
|
|
|
16129
16129
|
"cachedInputTokens",
|
|
16130
16130
|
"cacheWriteInputTokens",
|
|
16131
16131
|
"outputTokens",
|
|
16132
|
-
"outputTokensPerSecond",
|
|
16133
16132
|
"reasoningOutputTokens",
|
|
16134
16133
|
"totalTokens",
|
|
16135
16134
|
"contextWindowTokens",
|
|
@@ -16150,7 +16149,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16150
16149
|
...percentFields,
|
|
16151
16150
|
"totalCostUsd",
|
|
16152
16151
|
"totalCredits",
|
|
16153
|
-
"contextUsagePercent"
|
|
16152
|
+
"contextUsagePercent",
|
|
16153
|
+
"outputTokensPerSecond"
|
|
16154
16154
|
]);
|
|
16155
16155
|
function isRecord(value) {
|
|
16156
16156
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16123,7 +16123,6 @@ var tokenFields = [
|
|
|
16123
16123
|
"cachedInputTokens",
|
|
16124
16124
|
"cacheWriteInputTokens",
|
|
16125
16125
|
"outputTokens",
|
|
16126
|
-
"outputTokensPerSecond",
|
|
16127
16126
|
"reasoningOutputTokens",
|
|
16128
16127
|
"totalTokens",
|
|
16129
16128
|
"contextWindowTokens",
|
|
@@ -16144,7 +16143,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16144
16143
|
...percentFields,
|
|
16145
16144
|
"totalCostUsd",
|
|
16146
16145
|
"totalCredits",
|
|
16147
|
-
"contextUsagePercent"
|
|
16146
|
+
"contextUsagePercent",
|
|
16147
|
+
"outputTokensPerSecond"
|
|
16148
16148
|
]);
|
|
16149
16149
|
|
|
16150
16150
|
// ../../harness-adapter/dist/live-command-catalog.js
|
|
@@ -16247,7 +16247,6 @@ var tokenFields = [
|
|
|
16247
16247
|
"cachedInputTokens",
|
|
16248
16248
|
"cacheWriteInputTokens",
|
|
16249
16249
|
"outputTokens",
|
|
16250
|
-
"outputTokensPerSecond",
|
|
16251
16250
|
"reasoningOutputTokens",
|
|
16252
16251
|
"totalTokens",
|
|
16253
16252
|
"contextWindowTokens",
|
|
@@ -16268,7 +16267,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16268
16267
|
...percentFields,
|
|
16269
16268
|
"totalCostUsd",
|
|
16270
16269
|
"totalCredits",
|
|
16271
|
-
"contextUsagePercent"
|
|
16270
|
+
"contextUsagePercent",
|
|
16271
|
+
"outputTokensPerSecond"
|
|
16272
16272
|
]);
|
|
16273
16273
|
function isRecord(value) {
|
|
16274
16274
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16102,7 +16102,6 @@ var tokenFields = [
|
|
|
16102
16102
|
"cachedInputTokens",
|
|
16103
16103
|
"cacheWriteInputTokens",
|
|
16104
16104
|
"outputTokens",
|
|
16105
|
-
"outputTokensPerSecond",
|
|
16106
16105
|
"reasoningOutputTokens",
|
|
16107
16106
|
"totalTokens",
|
|
16108
16107
|
"contextWindowTokens",
|
|
@@ -16123,7 +16122,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16123
16122
|
...percentFields,
|
|
16124
16123
|
"totalCostUsd",
|
|
16125
16124
|
"totalCredits",
|
|
16126
|
-
"contextUsagePercent"
|
|
16125
|
+
"contextUsagePercent",
|
|
16126
|
+
"outputTokensPerSecond"
|
|
16127
16127
|
]);
|
|
16128
16128
|
function isRecord(value) {
|
|
16129
16129
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16684,7 +16684,6 @@ var tokenFields = [
|
|
|
16684
16684
|
"cachedInputTokens",
|
|
16685
16685
|
"cacheWriteInputTokens",
|
|
16686
16686
|
"outputTokens",
|
|
16687
|
-
"outputTokensPerSecond",
|
|
16688
16687
|
"reasoningOutputTokens",
|
|
16689
16688
|
"totalTokens",
|
|
16690
16689
|
"contextWindowTokens",
|
|
@@ -16705,7 +16704,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16705
16704
|
...percentFields,
|
|
16706
16705
|
"totalCostUsd",
|
|
16707
16706
|
"totalCredits",
|
|
16708
|
-
"contextUsagePercent"
|
|
16707
|
+
"contextUsagePercent",
|
|
16708
|
+
"outputTokensPerSecond"
|
|
16709
16709
|
]);
|
|
16710
16710
|
function isRecord(value) {
|
|
16711
16711
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16243,7 +16243,6 @@ var tokenFields = [
|
|
|
16243
16243
|
"cachedInputTokens",
|
|
16244
16244
|
"cacheWriteInputTokens",
|
|
16245
16245
|
"outputTokens",
|
|
16246
|
-
"outputTokensPerSecond",
|
|
16247
16246
|
"reasoningOutputTokens",
|
|
16248
16247
|
"totalTokens",
|
|
16249
16248
|
"contextWindowTokens",
|
|
@@ -16264,7 +16263,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16264
16263
|
...percentFields,
|
|
16265
16264
|
"totalCostUsd",
|
|
16266
16265
|
"totalCredits",
|
|
16267
|
-
"contextUsagePercent"
|
|
16266
|
+
"contextUsagePercent",
|
|
16267
|
+
"outputTokensPerSecond"
|
|
16268
16268
|
]);
|
|
16269
16269
|
function isRecord(value) {
|
|
16270
16270
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -18226,7 +18226,6 @@ var tokenFields = [
|
|
|
18226
18226
|
"cachedInputTokens",
|
|
18227
18227
|
"cacheWriteInputTokens",
|
|
18228
18228
|
"outputTokens",
|
|
18229
|
-
"outputTokensPerSecond",
|
|
18230
18229
|
"reasoningOutputTokens",
|
|
18231
18230
|
"totalTokens",
|
|
18232
18231
|
"contextWindowTokens",
|
|
@@ -18247,7 +18246,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
18247
18246
|
...percentFields,
|
|
18248
18247
|
"totalCostUsd",
|
|
18249
18248
|
"totalCredits",
|
|
18250
|
-
"contextUsagePercent"
|
|
18249
|
+
"contextUsagePercent",
|
|
18250
|
+
"outputTokensPerSecond"
|
|
18251
18251
|
]);
|
|
18252
18252
|
function isRecord3(value) {
|
|
18253
18253
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -29016,7 +29016,6 @@ var tokenFields = [
|
|
|
29016
29016
|
"cachedInputTokens",
|
|
29017
29017
|
"cacheWriteInputTokens",
|
|
29018
29018
|
"outputTokens",
|
|
29019
|
-
"outputTokensPerSecond",
|
|
29020
29019
|
"reasoningOutputTokens",
|
|
29021
29020
|
"totalTokens",
|
|
29022
29021
|
"contextWindowTokens",
|
|
@@ -29037,7 +29036,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
29037
29036
|
...percentFields,
|
|
29038
29037
|
"totalCostUsd",
|
|
29039
29038
|
"totalCredits",
|
|
29040
|
-
"contextUsagePercent"
|
|
29039
|
+
"contextUsagePercent",
|
|
29040
|
+
"outputTokensPerSecond"
|
|
29041
29041
|
]);
|
|
29042
29042
|
function isRecord(value) {
|
|
29043
29043
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -29018,7 +29018,6 @@ var tokenFields = [
|
|
|
29018
29018
|
"cachedInputTokens",
|
|
29019
29019
|
"cacheWriteInputTokens",
|
|
29020
29020
|
"outputTokens",
|
|
29021
|
-
"outputTokensPerSecond",
|
|
29022
29021
|
"reasoningOutputTokens",
|
|
29023
29022
|
"totalTokens",
|
|
29024
29023
|
"contextWindowTokens",
|
|
@@ -29039,7 +29038,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
29039
29038
|
...percentFields,
|
|
29040
29039
|
"totalCostUsd",
|
|
29041
29040
|
"totalCredits",
|
|
29042
|
-
"contextUsagePercent"
|
|
29041
|
+
"contextUsagePercent",
|
|
29042
|
+
"outputTokensPerSecond"
|
|
29043
29043
|
]);
|
|
29044
29044
|
function isRecord(value) {
|
|
29045
29045
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -15779,7 +15779,6 @@ var tokenFields = [
|
|
|
15779
15779
|
"cachedInputTokens",
|
|
15780
15780
|
"cacheWriteInputTokens",
|
|
15781
15781
|
"outputTokens",
|
|
15782
|
-
"outputTokensPerSecond",
|
|
15783
15782
|
"reasoningOutputTokens",
|
|
15784
15783
|
"totalTokens",
|
|
15785
15784
|
"contextWindowTokens",
|
|
@@ -15800,7 +15799,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
15800
15799
|
...percentFields,
|
|
15801
15800
|
"totalCostUsd",
|
|
15802
15801
|
"totalCredits",
|
|
15803
|
-
"contextUsagePercent"
|
|
15802
|
+
"contextUsagePercent",
|
|
15803
|
+
"outputTokensPerSecond"
|
|
15804
15804
|
]);
|
|
15805
15805
|
function isRecord(value) {
|
|
15806
15806
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -15764,7 +15764,6 @@ var tokenFields = [
|
|
|
15764
15764
|
"cachedInputTokens",
|
|
15765
15765
|
"cacheWriteInputTokens",
|
|
15766
15766
|
"outputTokens",
|
|
15767
|
-
"outputTokensPerSecond",
|
|
15768
15767
|
"reasoningOutputTokens",
|
|
15769
15768
|
"totalTokens",
|
|
15770
15769
|
"contextWindowTokens",
|
|
@@ -15785,7 +15784,8 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
15785
15784
|
...percentFields,
|
|
15786
15785
|
"totalCostUsd",
|
|
15787
15786
|
"totalCredits",
|
|
15788
|
-
"contextUsagePercent"
|
|
15787
|
+
"contextUsagePercent",
|
|
15788
|
+
"outputTokensPerSecond"
|
|
15789
15789
|
]);
|
|
15790
15790
|
function isRecord(value) {
|
|
15791
15791
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|