@liberseek/boft-cli-win32-arm64 0.8.3 → 0.8.5
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 +117 -13
- package/app/console-web.js +713 -129
- package/app/desktop-controller.mjs +713 -42
- package/app/host-runtime.mjs +2535 -855
- package/app/plugins/antigravity/plugin.mjs +437 -67
- package/app/plugins/claude-code/plugin.mjs +758 -248
- package/app/plugins/codebuddy/plugin.mjs +348 -156
- package/app/plugins/codex-usage/plugin.mjs +258 -106
- package/app/plugins/copilot/assets/icon.png +0 -0
- package/app/plugins/copilot/manifest.json +26 -0
- package/app/plugins/copilot/plugin.mjs +34651 -0
- package/app/plugins/cursor-cli/plugin.mjs +20905 -44961
- package/app/plugins/deepseek-harness/plugin.mjs +195 -53
- package/app/plugins/enabled.json +1 -0
- package/app/plugins/grok/plugin.mjs +584 -138
- package/app/plugins/hermes/plugin.mjs +134 -13
- package/app/plugins/kimi-code/plugin.mjs +145 -26
- package/app/plugins/kiro-cli/plugin.mjs +145 -26
- package/app/plugins/muse/plugin.mjs +132 -14
- package/app/plugins/omp/plugin.mjs +2245 -2040
- package/app/plugins/opencode/plugin.mjs +196 -72
- package/app/plugins/pi/plugin.mjs +2643 -2309
- package/app/plugins/qoder/plugin.mjs +162 -40
- package/app/plugins/qoder-cn/plugin.mjs +162 -40
- package/app/plugins/workbuddy/plugin.mjs +609 -180
- package/app/plugins/zcode/plugin.mjs +192 -44
- package/app/renderer-extension.js +3405 -429
- package/bin/boft.exe +0 -0
- package/libexec/boft-node-repl.exe +0 -0
- package/libexec/boft-shim.exe +0 -0
- package/libexec/boft-updater.exe +0 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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({
|
|
@@ -27257,6 +27266,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
27257
27266
|
cachedInputTokens: count,
|
|
27258
27267
|
cacheWriteInputTokens: count,
|
|
27259
27268
|
cacheKnownInputTokens: count,
|
|
27269
|
+
cacheHitCachedInputTokens: count,
|
|
27270
|
+
cacheHitInputTokens: count,
|
|
27260
27271
|
outputTokens: count,
|
|
27261
27272
|
reasoningOutputTokens: count,
|
|
27262
27273
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -27284,7 +27295,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
27284
27295
|
});
|
|
27285
27296
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
27286
27297
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
27287
|
-
/** First
|
|
27298
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
27288
27299
|
from: localDate.nullable(),
|
|
27289
27300
|
to: localDate,
|
|
27290
27301
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -27324,7 +27335,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
27324
27335
|
totals: usageStatisticsTotalsSchema,
|
|
27325
27336
|
/** Each date and Harness of the range: every filter except the day. */
|
|
27326
27337
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
27327
|
-
/**
|
|
27338
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
27328
27339
|
hourly: external_exports.array(external_exports.strictObject({
|
|
27329
27340
|
weekday: external_exports.number().int().min(0).max(6),
|
|
27330
27341
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -27364,6 +27375,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
27364
27375
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
27365
27376
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
27366
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
|
+
|
|
27367
27423
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
27368
27424
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
27369
27425
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -27466,6 +27522,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
27466
27522
|
"codexhost/harness/display-settings/set",
|
|
27467
27523
|
"codexhost/harness/inspect",
|
|
27468
27524
|
"codexhost/harness/installation",
|
|
27525
|
+
"codexhost/harness/installation/start",
|
|
27526
|
+
"codexhost/harness/installation/status",
|
|
27469
27527
|
"codexhost/harness/launch-settings/get",
|
|
27470
27528
|
"codexhost/harness/launch-settings/set",
|
|
27471
27529
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -27543,7 +27601,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
27543
27601
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27544
27602
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27545
27603
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
27604
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
27605
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
27606
|
+
kind: external_exports.literal("countdown"),
|
|
27607
|
+
id: external_exports.string().min(1).max(64),
|
|
27608
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
27609
|
+
label: indicatorTextSchema(256).optional(),
|
|
27610
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
27611
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
27612
|
+
message: "Composer indicator IDs must be unique"
|
|
27613
|
+
});
|
|
27546
27614
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
27615
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
27547
27616
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27548
27617
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27549
27618
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -27969,7 +28038,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
27969
28038
|
}).strict().optional(),
|
|
27970
28039
|
input: external_exports.object({
|
|
27971
28040
|
image: external_exports.boolean()
|
|
27972
|
-
}).strict().optional()
|
|
28041
|
+
}).strict().optional(),
|
|
28042
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
28043
|
+
steer: external_exports.boolean().optional()
|
|
27973
28044
|
}).strict();
|
|
27974
28045
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
27975
28046
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -28016,7 +28087,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
28016
28087
|
var harnessInspectParamsSchema = external_exports.object({
|
|
28017
28088
|
harnessId: harnessIdSchema,
|
|
28018
28089
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
28019
|
-
refresh: external_exports.boolean().optional()
|
|
28090
|
+
refresh: external_exports.boolean().optional(),
|
|
28091
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
28092
|
+
purpose: external_exports.literal("availability").optional()
|
|
28020
28093
|
}).strict();
|
|
28021
28094
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
28022
28095
|
harnessId: harnessIdSchema
|
|
@@ -28101,13 +28174,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
28101
28174
|
seen.add(thread.threadId);
|
|
28102
28175
|
}
|
|
28103
28176
|
});
|
|
28177
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
28178
|
+
threadId: hostThreadIdSchema,
|
|
28179
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
28180
|
+
text: external_exports.string().optional()
|
|
28181
|
+
}).strict();
|
|
28182
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
28183
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
28184
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
28185
|
+
}).strict();
|
|
28104
28186
|
|
|
28105
28187
|
// ../../shared-contracts/dist/harness-route.js
|
|
28106
28188
|
var harnessPluginRouteSchema = external_exports.object({
|
|
28107
28189
|
harnessId: harnessPluginIdSchema,
|
|
28108
28190
|
model: harnessModelRefSchema.optional(),
|
|
28109
28191
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
28110
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
28192
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
28193
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
28194
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
28195
|
+
prewarm: external_exports.literal(true).optional()
|
|
28111
28196
|
}).strict();
|
|
28112
28197
|
|
|
28113
28198
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -28133,6 +28218,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28133
28218
|
latestVersion: external_exports.string().min(1).max(128),
|
|
28134
28219
|
updateAvailable: external_exports.boolean(),
|
|
28135
28220
|
canUpdate: external_exports.boolean(),
|
|
28221
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
28222
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
28223
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
28224
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
28136
28225
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28137
28226
|
message: external_exports.string().max(2048).optional(),
|
|
28138
28227
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -28140,6 +28229,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28140
28229
|
notice: harnessLocalizedTextSchema.optional(),
|
|
28141
28230
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28142
28231
|
}).strict();
|
|
28232
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
28233
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
28234
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
28235
|
+
external_exports.object({
|
|
28236
|
+
taskId: external_exports.string().uuid(),
|
|
28237
|
+
status: external_exports.literal("succeeded"),
|
|
28238
|
+
result: harnessInstallationStateSchema
|
|
28239
|
+
}).strict(),
|
|
28240
|
+
external_exports.object({
|
|
28241
|
+
taskId: external_exports.string().uuid(),
|
|
28242
|
+
status: external_exports.literal("failed"),
|
|
28243
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
28244
|
+
}).strict()
|
|
28245
|
+
]);
|
|
28143
28246
|
|
|
28144
28247
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
28145
28248
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -29310,6 +29413,18 @@ var HarnessOutputChannel = class {
|
|
|
29310
29413
|
}
|
|
29311
29414
|
};
|
|
29312
29415
|
|
|
29416
|
+
// ../../harness-adapter/dist/steer.js
|
|
29417
|
+
function unsupportedSteer(harnessLabel) {
|
|
29418
|
+
return {
|
|
29419
|
+
ok: false,
|
|
29420
|
+
error: {
|
|
29421
|
+
code: "unsupported",
|
|
29422
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
29423
|
+
retryable: false
|
|
29424
|
+
}
|
|
29425
|
+
};
|
|
29426
|
+
}
|
|
29427
|
+
|
|
29313
29428
|
// ../../harness-adapter/dist/usage.js
|
|
29314
29429
|
var tokenFields = [
|
|
29315
29430
|
"inputTokens",
|
|
@@ -29337,6 +29452,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
29337
29452
|
...safeIntegerFields,
|
|
29338
29453
|
...percentFields,
|
|
29339
29454
|
"sessionCacheUsage",
|
|
29455
|
+
"composerIndicators",
|
|
29340
29456
|
"totalCostUsd",
|
|
29341
29457
|
"totalCredits",
|
|
29342
29458
|
"contextUsagePercent",
|
|
@@ -29359,26 +29475,27 @@ function parseHostUsage(value) {
|
|
|
29359
29475
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
29360
29476
|
}
|
|
29361
29477
|
}
|
|
29362
|
-
|
|
29478
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
29479
|
+
for (const field2 of [
|
|
29363
29480
|
"totalCredits",
|
|
29364
29481
|
"contextUsagePercent",
|
|
29365
29482
|
"apiOutputTokensPerSecond"
|
|
29366
29483
|
]) {
|
|
29367
|
-
const candidate = value[
|
|
29484
|
+
const candidate = value[field2];
|
|
29368
29485
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29369
|
-
throw new Error(`Harness Usage '${
|
|
29486
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29370
29487
|
}
|
|
29371
29488
|
}
|
|
29372
|
-
for (const
|
|
29373
|
-
const candidate = value[
|
|
29489
|
+
for (const field2 of tokenFields) {
|
|
29490
|
+
const candidate = value[field2];
|
|
29374
29491
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29375
|
-
throw new Error(`Harness Usage '${
|
|
29492
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29376
29493
|
}
|
|
29377
29494
|
}
|
|
29378
|
-
for (const
|
|
29379
|
-
const candidate = value[
|
|
29495
|
+
for (const field2 of safeIntegerFields) {
|
|
29496
|
+
const candidate = value[field2];
|
|
29380
29497
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29381
|
-
throw new Error(`Harness Usage '${
|
|
29498
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29382
29499
|
}
|
|
29383
29500
|
}
|
|
29384
29501
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -29387,16 +29504,16 @@ function parseHostUsage(value) {
|
|
|
29387
29504
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
29388
29505
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
29389
29506
|
}
|
|
29390
|
-
for (const
|
|
29391
|
-
const candidate = value[
|
|
29507
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
29508
|
+
const candidate = value[field2];
|
|
29392
29509
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29393
|
-
throw new Error(`Harness Usage '${
|
|
29510
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29394
29511
|
}
|
|
29395
29512
|
}
|
|
29396
|
-
for (const
|
|
29397
|
-
const candidate = value[
|
|
29513
|
+
for (const field2 of percentFields) {
|
|
29514
|
+
const candidate = value[field2];
|
|
29398
29515
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
29399
|
-
throw new Error(`Harness Usage '${
|
|
29516
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
29400
29517
|
}
|
|
29401
29518
|
}
|
|
29402
29519
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -29435,9 +29552,9 @@ function parseHostUsage(value) {
|
|
|
29435
29552
|
if (value.costSource !== "publicPrice") {
|
|
29436
29553
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
29437
29554
|
}
|
|
29438
|
-
return { ...value, unpricedModels: [...models] };
|
|
29555
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
29439
29556
|
}
|
|
29440
|
-
return { ...value };
|
|
29557
|
+
return { ...value, ...indicators };
|
|
29441
29558
|
}
|
|
29442
29559
|
var requestTokenFields = [
|
|
29443
29560
|
"inputTokens",
|
|
@@ -39215,11 +39332,11 @@ var McpServer = class {
|
|
|
39215
39332
|
return EMPTY_COMPLETION_RESULT;
|
|
39216
39333
|
}
|
|
39217
39334
|
const promptShape = getObjectShape(prompt.argsSchema);
|
|
39218
|
-
const
|
|
39219
|
-
if (!isCompletable(
|
|
39335
|
+
const field2 = promptShape?.[request.params.argument.name];
|
|
39336
|
+
if (!isCompletable(field2)) {
|
|
39220
39337
|
return EMPTY_COMPLETION_RESULT;
|
|
39221
39338
|
}
|
|
39222
|
-
const completer = getCompleter(
|
|
39339
|
+
const completer = getCompleter(field2);
|
|
39223
39340
|
if (!completer) {
|
|
39224
39341
|
return EMPTY_COMPLETION_RESULT;
|
|
39225
39342
|
}
|
|
@@ -39492,8 +39609,8 @@ var McpServer = class {
|
|
|
39492
39609
|
};
|
|
39493
39610
|
this._registeredPrompts[name] = registeredPrompt;
|
|
39494
39611
|
if (argsSchema) {
|
|
39495
|
-
const hasCompletable = Object.values(argsSchema).some((
|
|
39496
|
-
const inner =
|
|
39612
|
+
const hasCompletable = Object.values(argsSchema).some((field2) => {
|
|
39613
|
+
const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
|
|
39497
39614
|
return isCompletable(inner);
|
|
39498
39615
|
});
|
|
39499
39616
|
if (hasCompletable) {
|
|
@@ -39702,9 +39819,9 @@ function promptArgumentsFromSchema(schema) {
|
|
|
39702
39819
|
const shape = getObjectShape(schema);
|
|
39703
39820
|
if (!shape)
|
|
39704
39821
|
return [];
|
|
39705
|
-
return Object.entries(shape).map(([name,
|
|
39706
|
-
const description = getSchemaDescription(
|
|
39707
|
-
const isOptional = isSchemaOptional(
|
|
39822
|
+
return Object.entries(shape).map(([name, field2]) => {
|
|
39823
|
+
const description = getSchemaDescription(field2);
|
|
39824
|
+
const isOptional = isSchemaOptional(field2);
|
|
39708
39825
|
return {
|
|
39709
39826
|
name,
|
|
39710
39827
|
description,
|
|
@@ -52325,6 +52442,8 @@ var QoderSession = class {
|
|
|
52325
52442
|
};
|
|
52326
52443
|
}
|
|
52327
52444
|
switch (command.type) {
|
|
52445
|
+
case "turn.steer":
|
|
52446
|
+
return unsupportedSteer("Qoder");
|
|
52328
52447
|
case "turn.start": {
|
|
52329
52448
|
if (this.#activeTurn) {
|
|
52330
52449
|
return {
|
|
@@ -53035,10 +53154,13 @@ function usageSessionTitle(value) {
|
|
|
53035
53154
|
return void 0;
|
|
53036
53155
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
53037
53156
|
return normalized;
|
|
53038
|
-
|
|
53039
|
-
|
|
53040
|
-
|
|
53041
|
-
|
|
53157
|
+
let title = "";
|
|
53158
|
+
for (const character of normalized) {
|
|
53159
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
53160
|
+
break;
|
|
53161
|
+
title += character;
|
|
53162
|
+
}
|
|
53163
|
+
return `${title.trimEnd()}…`;
|
|
53042
53164
|
}
|
|
53043
53165
|
function sessionIdOk(value) {
|
|
53044
53166
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -53075,13 +53197,13 @@ function parseHarnessUsageEntry(value) {
|
|
|
53075
53197
|
}
|
|
53076
53198
|
if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
|
|
53077
53199
|
return null;
|
|
53078
|
-
for (const
|
|
53200
|
+
for (const field2 of [
|
|
53079
53201
|
"cachedInputTokens",
|
|
53080
53202
|
"cacheWriteInputTokens",
|
|
53081
53203
|
"cacheWrite1hInputTokens",
|
|
53082
53204
|
"reasoningOutputTokens"
|
|
53083
53205
|
]) {
|
|
53084
|
-
if (entry[
|
|
53206
|
+
if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
|
|
53085
53207
|
return null;
|
|
53086
53208
|
}
|
|
53087
53209
|
const cached2 = entry.cachedInputTokens ?? 0;
|