@codexhost/cli-darwin-x64 0.14.0 → 0.16.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 -7
- package/app/console-web.js +281 -79
- package/app/desktop-controller.mjs +155 -22
- package/app/host-runtime.mjs +548 -148
- package/app/plugins/antigravity/plugin.mjs +342 -53
- package/app/plugins/claude-code/plugin.mjs +393 -162
- package/app/plugins/codebuddy/plugin.mjs +245 -49
- package/app/plugins/codex-usage/plugin.mjs +75 -28
- package/app/plugins/copilot/plugin.mjs +100 -53
- package/app/plugins/cursor-cli/plugin.mjs +207 -46
- package/app/plugins/deepseek-harness/plugin.mjs +103 -36
- package/app/plugins/grok/plugin.mjs +354 -84
- package/app/plugins/hermes/plugin.mjs +50 -3
- package/app/plugins/kimi-code/plugin.mjs +62 -15
- package/app/plugins/kiro-cli/plugin.mjs +62 -15
- package/app/plugins/omp/plugin.mjs +82 -35
- package/app/plugins/opencode/plugin.mjs +104 -57
- package/app/plugins/pi/plugin.mjs +134 -50
- package/app/plugins/qoder/plugin.mjs +72 -25
- package/app/plugins/qoder-cn/plugin.mjs +72 -25
- package/app/plugins/workbuddy/plugin.mjs +245 -49
- package/app/plugins/zcode/plugin.mjs +101 -29
- package/app/renderer-extension.js +2353 -344
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -16026,10 +16026,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
16026
16026
|
const shape = def.shape;
|
|
16027
16027
|
const propValues = {};
|
|
16028
16028
|
for (const key in shape) {
|
|
16029
|
-
const
|
|
16030
|
-
if (
|
|
16029
|
+
const field2 = shape[key]._zod;
|
|
16030
|
+
if (field2.values) {
|
|
16031
16031
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
16032
|
-
for (const v3 of
|
|
16032
|
+
for (const v3 of field2.values)
|
|
16033
16033
|
propValues[key].add(v3);
|
|
16034
16034
|
}
|
|
16035
16035
|
}
|
|
@@ -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. */
|
|
@@ -27776,6 +27778,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
27776
27778
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
27777
27779
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
27778
27780
|
|
|
27781
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
27782
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
27783
|
+
external_exports.object({
|
|
27784
|
+
id: external_exports.string().min(1),
|
|
27785
|
+
type: external_exports.literal("choice"),
|
|
27786
|
+
prompt: external_exports.string(),
|
|
27787
|
+
options: external_exports.array(external_exports.object({
|
|
27788
|
+
value: external_exports.string().min(1),
|
|
27789
|
+
label: external_exports.string(),
|
|
27790
|
+
description: external_exports.string().optional()
|
|
27791
|
+
})).min(1),
|
|
27792
|
+
multiple: external_exports.boolean(),
|
|
27793
|
+
allowOther: external_exports.boolean(),
|
|
27794
|
+
optional: external_exports.boolean()
|
|
27795
|
+
}),
|
|
27796
|
+
external_exports.object({
|
|
27797
|
+
id: external_exports.string().min(1),
|
|
27798
|
+
type: external_exports.literal("text"),
|
|
27799
|
+
prompt: external_exports.string(),
|
|
27800
|
+
multiline: external_exports.boolean(),
|
|
27801
|
+
secret: external_exports.literal(false),
|
|
27802
|
+
optional: external_exports.boolean(),
|
|
27803
|
+
placeholder: external_exports.string().optional(),
|
|
27804
|
+
prefill: external_exports.string().optional()
|
|
27805
|
+
})
|
|
27806
|
+
]);
|
|
27807
|
+
var threadQuestionSchema = external_exports.object({
|
|
27808
|
+
interactionId: external_exports.string().min(1),
|
|
27809
|
+
turnId: external_exports.string().min(1),
|
|
27810
|
+
title: external_exports.string().optional(),
|
|
27811
|
+
questions: external_exports.array(field).min(1)
|
|
27812
|
+
}).refine(({ questions }) => questions.some((q3) => q3.type === "choice" && q3.multiple), {
|
|
27813
|
+
message: "Shared cards require at least one multi-select question"
|
|
27814
|
+
});
|
|
27815
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
27816
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
27817
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
27818
|
+
threadId: external_exports.string().min(1),
|
|
27819
|
+
turnId: external_exports.string().min(1),
|
|
27820
|
+
interactionId: external_exports.string().min(1),
|
|
27821
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
27822
|
+
cancelled: external_exports.boolean().default(false)
|
|
27823
|
+
});
|
|
27824
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
27825
|
+
|
|
27779
27826
|
// ../../shared-contracts/dist/console.js
|
|
27780
27827
|
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
27781
27828
|
title: external_exports.string().trim().min(1).max(200),
|
|
@@ -29377,26 +29424,26 @@ function parseHostUsage(value) {
|
|
|
29377
29424
|
}
|
|
29378
29425
|
}
|
|
29379
29426
|
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
29380
|
-
for (const
|
|
29427
|
+
for (const field2 of [
|
|
29381
29428
|
"totalCredits",
|
|
29382
29429
|
"contextUsagePercent",
|
|
29383
29430
|
"apiOutputTokensPerSecond"
|
|
29384
29431
|
]) {
|
|
29385
|
-
const candidate = value[
|
|
29432
|
+
const candidate = value[field2];
|
|
29386
29433
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29387
|
-
throw new Error(`Harness Usage '${
|
|
29434
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29388
29435
|
}
|
|
29389
29436
|
}
|
|
29390
|
-
for (const
|
|
29391
|
-
const candidate = value[
|
|
29437
|
+
for (const field2 of tokenFields) {
|
|
29438
|
+
const candidate = value[field2];
|
|
29392
29439
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29393
|
-
throw new Error(`Harness Usage '${
|
|
29440
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29394
29441
|
}
|
|
29395
29442
|
}
|
|
29396
|
-
for (const
|
|
29397
|
-
const candidate = value[
|
|
29443
|
+
for (const field2 of safeIntegerFields) {
|
|
29444
|
+
const candidate = value[field2];
|
|
29398
29445
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29399
|
-
throw new Error(`Harness Usage '${
|
|
29446
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29400
29447
|
}
|
|
29401
29448
|
}
|
|
29402
29449
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -29405,10 +29452,10 @@ function parseHostUsage(value) {
|
|
|
29405
29452
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
29406
29453
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
29407
29454
|
}
|
|
29408
|
-
for (const
|
|
29409
|
-
const candidate = value[
|
|
29455
|
+
for (const field2 of percentFields) {
|
|
29456
|
+
const candidate = value[field2];
|
|
29410
29457
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
29411
|
-
throw new Error(`Harness Usage '${
|
|
29458
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
29412
29459
|
}
|
|
29413
29460
|
}
|
|
29414
29461
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -39227,11 +39274,11 @@ var McpServer = class {
|
|
|
39227
39274
|
return EMPTY_COMPLETION_RESULT;
|
|
39228
39275
|
}
|
|
39229
39276
|
const promptShape = getObjectShape(prompt.argsSchema);
|
|
39230
|
-
const
|
|
39231
|
-
if (!isCompletable(
|
|
39277
|
+
const field2 = promptShape?.[request.params.argument.name];
|
|
39278
|
+
if (!isCompletable(field2)) {
|
|
39232
39279
|
return EMPTY_COMPLETION_RESULT;
|
|
39233
39280
|
}
|
|
39234
|
-
const completer = getCompleter(
|
|
39281
|
+
const completer = getCompleter(field2);
|
|
39235
39282
|
if (!completer) {
|
|
39236
39283
|
return EMPTY_COMPLETION_RESULT;
|
|
39237
39284
|
}
|
|
@@ -39504,8 +39551,8 @@ var McpServer = class {
|
|
|
39504
39551
|
};
|
|
39505
39552
|
this._registeredPrompts[name] = registeredPrompt;
|
|
39506
39553
|
if (argsSchema) {
|
|
39507
|
-
const hasCompletable = Object.values(argsSchema).some((
|
|
39508
|
-
const inner =
|
|
39554
|
+
const hasCompletable = Object.values(argsSchema).some((field2) => {
|
|
39555
|
+
const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
|
|
39509
39556
|
return isCompletable(inner);
|
|
39510
39557
|
});
|
|
39511
39558
|
if (hasCompletable) {
|
|
@@ -39714,9 +39761,9 @@ function promptArgumentsFromSchema(schema) {
|
|
|
39714
39761
|
const shape = getObjectShape(schema);
|
|
39715
39762
|
if (!shape)
|
|
39716
39763
|
return [];
|
|
39717
|
-
return Object.entries(shape).map(([name,
|
|
39718
|
-
const description = getSchemaDescription(
|
|
39719
|
-
const isOptional = isSchemaOptional(
|
|
39764
|
+
return Object.entries(shape).map(([name, field2]) => {
|
|
39765
|
+
const description = getSchemaDescription(field2);
|
|
39766
|
+
const isOptional = isSchemaOptional(field2);
|
|
39720
39767
|
return {
|
|
39721
39768
|
name,
|
|
39722
39769
|
description,
|
|
@@ -53092,13 +53139,13 @@ function parseHarnessUsageEntry(value) {
|
|
|
53092
53139
|
}
|
|
53093
53140
|
if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
|
|
53094
53141
|
return null;
|
|
53095
|
-
for (const
|
|
53142
|
+
for (const field2 of [
|
|
53096
53143
|
"cachedInputTokens",
|
|
53097
53144
|
"cacheWriteInputTokens",
|
|
53098
53145
|
"cacheWrite1hInputTokens",
|
|
53099
53146
|
"reasoningOutputTokens"
|
|
53100
53147
|
]) {
|
|
53101
|
-
if (entry[
|
|
53148
|
+
if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
|
|
53102
53149
|
return null;
|
|
53103
53150
|
}
|
|
53104
53151
|
const cached2 = entry.cachedInputTokens ?? 0;
|
|
@@ -15623,10 +15623,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
15623
15623
|
const shape = def.shape;
|
|
15624
15624
|
const propValues = {};
|
|
15625
15625
|
for (const key in shape) {
|
|
15626
|
-
const
|
|
15627
|
-
if (
|
|
15626
|
+
const field2 = shape[key]._zod;
|
|
15627
|
+
if (field2.values) {
|
|
15628
15628
|
propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
|
|
15629
|
-
for (const v3 of
|
|
15629
|
+
for (const v3 of field2.values)
|
|
15630
15630
|
propValues[key].add(v3);
|
|
15631
15631
|
}
|
|
15632
15632
|
}
|
|
@@ -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. */
|
|
@@ -27373,6 +27375,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
27373
27375
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
27374
27376
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
27375
27377
|
|
|
27378
|
+
// ../../shared-contracts/dist/thread-questions.js
|
|
27379
|
+
var field = external_exports.discriminatedUnion("type", [
|
|
27380
|
+
external_exports.object({
|
|
27381
|
+
id: external_exports.string().min(1),
|
|
27382
|
+
type: external_exports.literal("choice"),
|
|
27383
|
+
prompt: external_exports.string(),
|
|
27384
|
+
options: external_exports.array(external_exports.object({
|
|
27385
|
+
value: external_exports.string().min(1),
|
|
27386
|
+
label: external_exports.string(),
|
|
27387
|
+
description: external_exports.string().optional()
|
|
27388
|
+
})).min(1),
|
|
27389
|
+
multiple: external_exports.boolean(),
|
|
27390
|
+
allowOther: external_exports.boolean(),
|
|
27391
|
+
optional: external_exports.boolean()
|
|
27392
|
+
}),
|
|
27393
|
+
external_exports.object({
|
|
27394
|
+
id: external_exports.string().min(1),
|
|
27395
|
+
type: external_exports.literal("text"),
|
|
27396
|
+
prompt: external_exports.string(),
|
|
27397
|
+
multiline: external_exports.boolean(),
|
|
27398
|
+
secret: external_exports.literal(false),
|
|
27399
|
+
optional: external_exports.boolean(),
|
|
27400
|
+
placeholder: external_exports.string().optional(),
|
|
27401
|
+
prefill: external_exports.string().optional()
|
|
27402
|
+
})
|
|
27403
|
+
]);
|
|
27404
|
+
var threadQuestionSchema = external_exports.object({
|
|
27405
|
+
interactionId: external_exports.string().min(1),
|
|
27406
|
+
turnId: external_exports.string().min(1),
|
|
27407
|
+
title: external_exports.string().optional(),
|
|
27408
|
+
questions: external_exports.array(field).min(1)
|
|
27409
|
+
}).refine(({ questions }) => questions.some((q3) => q3.type === "choice" && q3.multiple), {
|
|
27410
|
+
message: "Shared cards require at least one multi-select question"
|
|
27411
|
+
});
|
|
27412
|
+
var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
|
|
27413
|
+
var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
|
|
27414
|
+
var threadQuestionRespondParamsSchema = external_exports.strictObject({
|
|
27415
|
+
threadId: external_exports.string().min(1),
|
|
27416
|
+
turnId: external_exports.string().min(1),
|
|
27417
|
+
interactionId: external_exports.string().min(1),
|
|
27418
|
+
answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
|
|
27419
|
+
cancelled: external_exports.boolean().default(false)
|
|
27420
|
+
});
|
|
27421
|
+
var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
|
|
27422
|
+
|
|
27376
27423
|
// ../../shared-contracts/dist/console.js
|
|
27377
27424
|
var consoleAnnouncementSchema = external_exports.strictObject({
|
|
27378
27425
|
title: external_exports.string().trim().min(1).max(200),
|
|
@@ -29379,26 +29426,26 @@ function parseHostUsage(value) {
|
|
|
29379
29426
|
}
|
|
29380
29427
|
}
|
|
29381
29428
|
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
29382
|
-
for (const
|
|
29429
|
+
for (const field2 of [
|
|
29383
29430
|
"totalCredits",
|
|
29384
29431
|
"contextUsagePercent",
|
|
29385
29432
|
"apiOutputTokensPerSecond"
|
|
29386
29433
|
]) {
|
|
29387
|
-
const candidate = value[
|
|
29434
|
+
const candidate = value[field2];
|
|
29388
29435
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29389
|
-
throw new Error(`Harness Usage '${
|
|
29436
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29390
29437
|
}
|
|
29391
29438
|
}
|
|
29392
|
-
for (const
|
|
29393
|
-
const candidate = value[
|
|
29439
|
+
for (const field2 of tokenFields) {
|
|
29440
|
+
const candidate = value[field2];
|
|
29394
29441
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29395
|
-
throw new Error(`Harness Usage '${
|
|
29442
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29396
29443
|
}
|
|
29397
29444
|
}
|
|
29398
|
-
for (const
|
|
29399
|
-
const candidate = value[
|
|
29445
|
+
for (const field2 of safeIntegerFields) {
|
|
29446
|
+
const candidate = value[field2];
|
|
29400
29447
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29401
|
-
throw new Error(`Harness Usage '${
|
|
29448
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29402
29449
|
}
|
|
29403
29450
|
}
|
|
29404
29451
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -29407,10 +29454,10 @@ function parseHostUsage(value) {
|
|
|
29407
29454
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
29408
29455
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
29409
29456
|
}
|
|
29410
|
-
for (const
|
|
29411
|
-
const candidate = value[
|
|
29457
|
+
for (const field2 of percentFields) {
|
|
29458
|
+
const candidate = value[field2];
|
|
29412
29459
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
29413
|
-
throw new Error(`Harness Usage '${
|
|
29460
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
29414
29461
|
}
|
|
29415
29462
|
}
|
|
29416
29463
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -39229,11 +39276,11 @@ var McpServer = class {
|
|
|
39229
39276
|
return EMPTY_COMPLETION_RESULT;
|
|
39230
39277
|
}
|
|
39231
39278
|
const promptShape = getObjectShape(prompt.argsSchema);
|
|
39232
|
-
const
|
|
39233
|
-
if (!isCompletable(
|
|
39279
|
+
const field2 = promptShape?.[request.params.argument.name];
|
|
39280
|
+
if (!isCompletable(field2)) {
|
|
39234
39281
|
return EMPTY_COMPLETION_RESULT;
|
|
39235
39282
|
}
|
|
39236
|
-
const completer = getCompleter(
|
|
39283
|
+
const completer = getCompleter(field2);
|
|
39237
39284
|
if (!completer) {
|
|
39238
39285
|
return EMPTY_COMPLETION_RESULT;
|
|
39239
39286
|
}
|
|
@@ -39506,8 +39553,8 @@ var McpServer = class {
|
|
|
39506
39553
|
};
|
|
39507
39554
|
this._registeredPrompts[name] = registeredPrompt;
|
|
39508
39555
|
if (argsSchema) {
|
|
39509
|
-
const hasCompletable = Object.values(argsSchema).some((
|
|
39510
|
-
const inner =
|
|
39556
|
+
const hasCompletable = Object.values(argsSchema).some((field2) => {
|
|
39557
|
+
const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
|
|
39511
39558
|
return isCompletable(inner);
|
|
39512
39559
|
});
|
|
39513
39560
|
if (hasCompletable) {
|
|
@@ -39716,9 +39763,9 @@ function promptArgumentsFromSchema(schema) {
|
|
|
39716
39763
|
const shape = getObjectShape(schema);
|
|
39717
39764
|
if (!shape)
|
|
39718
39765
|
return [];
|
|
39719
|
-
return Object.entries(shape).map(([name,
|
|
39720
|
-
const description = getSchemaDescription(
|
|
39721
|
-
const isOptional = isSchemaOptional(
|
|
39766
|
+
return Object.entries(shape).map(([name, field2]) => {
|
|
39767
|
+
const description = getSchemaDescription(field2);
|
|
39768
|
+
const isOptional = isSchemaOptional(field2);
|
|
39722
39769
|
return {
|
|
39723
39770
|
name,
|
|
39724
39771
|
description,
|
|
@@ -53094,13 +53141,13 @@ function parseHarnessUsageEntry(value) {
|
|
|
53094
53141
|
}
|
|
53095
53142
|
if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
|
|
53096
53143
|
return null;
|
|
53097
|
-
for (const
|
|
53144
|
+
for (const field2 of [
|
|
53098
53145
|
"cachedInputTokens",
|
|
53099
53146
|
"cacheWriteInputTokens",
|
|
53100
53147
|
"cacheWrite1hInputTokens",
|
|
53101
53148
|
"reasoningOutputTokens"
|
|
53102
53149
|
]) {
|
|
53103
|
-
if (entry[
|
|
53150
|
+
if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
|
|
53104
53151
|
return null;
|
|
53105
53152
|
}
|
|
53106
53153
|
const cached2 = entry.cachedInputTokens ?? 0;
|