@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
|
@@ -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
|
}
|
|
@@ -27648,10 +27648,19 @@ var model = external_exports.string().min(1).max(512);
|
|
|
27648
27648
|
var project = external_exports.string().min(1).max(4096);
|
|
27649
27649
|
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
27650
27650
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
27651
|
+
/** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
|
|
27652
|
+
timeZone: external_exports.string().min(1).max(128).refine((value) => {
|
|
27653
|
+
try {
|
|
27654
|
+
new Intl.DateTimeFormat("en", { timeZone: value });
|
|
27655
|
+
return true;
|
|
27656
|
+
} catch {
|
|
27657
|
+
return false;
|
|
27658
|
+
}
|
|
27659
|
+
}, "Unsupported usage statistics timezone").optional(),
|
|
27651
27660
|
harness: harness.optional(),
|
|
27652
27661
|
model: model.nullable().optional(),
|
|
27653
27662
|
project: project.nullable().optional(),
|
|
27654
|
-
/** One
|
|
27663
|
+
/** One date in the query timezone inside the range. */
|
|
27655
27664
|
date: localDate.optional()
|
|
27656
27665
|
});
|
|
27657
27666
|
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
@@ -27660,6 +27669,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
|
27660
27669
|
cachedInputTokens: count,
|
|
27661
27670
|
cacheWriteInputTokens: count,
|
|
27662
27671
|
cacheKnownInputTokens: count,
|
|
27672
|
+
cacheHitCachedInputTokens: count,
|
|
27673
|
+
cacheHitInputTokens: count,
|
|
27663
27674
|
outputTokens: count,
|
|
27664
27675
|
reasoningOutputTokens: count,
|
|
27665
27676
|
/** USD at the public price, summed over the priced requests only. */
|
|
@@ -27687,7 +27698,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
|
27687
27698
|
});
|
|
27688
27699
|
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
27689
27700
|
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
27690
|
-
/** First
|
|
27701
|
+
/** First date in the query timezone (Host local when omitted); null for all time. */
|
|
27691
27702
|
from: localDate.nullable(),
|
|
27692
27703
|
to: localDate,
|
|
27693
27704
|
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
@@ -27727,7 +27738,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
|
|
|
27727
27738
|
totals: usageStatisticsTotalsSchema,
|
|
27728
27739
|
/** Each date and Harness of the range: every filter except the day. */
|
|
27729
27740
|
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
27730
|
-
/**
|
|
27741
|
+
/** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
|
|
27731
27742
|
hourly: external_exports.array(external_exports.strictObject({
|
|
27732
27743
|
weekday: external_exports.number().int().min(0).max(6),
|
|
27733
27744
|
hour: external_exports.number().int().min(0).max(23),
|
|
@@ -27767,6 +27778,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
|
|
|
27767
27778
|
var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
|
|
27768
27779
|
var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
|
|
27769
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
|
+
|
|
27770
27826
|
// ../../shared-contracts/dist/harness-plugins.js
|
|
27771
27827
|
var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
|
|
27772
27828
|
var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
|
|
@@ -27869,6 +27925,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
27869
27925
|
"codexhost/harness/display-settings/set",
|
|
27870
27926
|
"codexhost/harness/inspect",
|
|
27871
27927
|
"codexhost/harness/installation",
|
|
27928
|
+
"codexhost/harness/installation/start",
|
|
27929
|
+
"codexhost/harness/installation/status",
|
|
27872
27930
|
"codexhost/harness/launch-settings/get",
|
|
27873
27931
|
"codexhost/harness/launch-settings/set",
|
|
27874
27932
|
HARNESS_LONG_CONTEXT_GET_METHOD,
|
|
@@ -27946,7 +28004,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
|
|
|
27946
28004
|
var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
|
|
27947
28005
|
var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
|
|
27948
28006
|
var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
|
|
28007
|
+
var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
|
|
28008
|
+
var composerIndicatorsSchema = external_exports.array(external_exports.object({
|
|
28009
|
+
kind: external_exports.literal("countdown"),
|
|
28010
|
+
id: external_exports.string().min(1).max(64),
|
|
28011
|
+
expiresAtUnix: nonNegativeSafeIntegerSchema,
|
|
28012
|
+
label: indicatorTextSchema(256).optional(),
|
|
28013
|
+
tooltip: indicatorTextSchema(1024).optional()
|
|
28014
|
+
}).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
|
|
28015
|
+
message: "Composer indicator IDs must be unique"
|
|
28016
|
+
});
|
|
27949
28017
|
var threadUsageSnapshotSchema = external_exports.object({
|
|
28018
|
+
composerIndicators: composerIndicatorsSchema.optional(),
|
|
27950
28019
|
inputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27951
28020
|
cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
27952
28021
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
@@ -28372,7 +28441,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
|
|
|
28372
28441
|
}).strict().optional(),
|
|
28373
28442
|
input: external_exports.object({
|
|
28374
28443
|
image: external_exports.boolean()
|
|
28375
|
-
}).strict().optional()
|
|
28444
|
+
}).strict().optional(),
|
|
28445
|
+
/** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
|
|
28446
|
+
steer: external_exports.boolean().optional()
|
|
28376
28447
|
}).strict();
|
|
28377
28448
|
var harnessConfigurationStateSchema = external_exports.object({
|
|
28378
28449
|
effectiveModel: harnessModelRefSchema.optional(),
|
|
@@ -28419,7 +28490,9 @@ var harnessInspectionSchema = external_exports.union([
|
|
|
28419
28490
|
var harnessInspectParamsSchema = external_exports.object({
|
|
28420
28491
|
harnessId: harnessIdSchema,
|
|
28421
28492
|
cwd: nonBlankTextSchema2.max(16384).optional(),
|
|
28422
|
-
refresh: external_exports.boolean().optional()
|
|
28493
|
+
refresh: external_exports.boolean().optional(),
|
|
28494
|
+
/** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
|
|
28495
|
+
purpose: external_exports.literal("availability").optional()
|
|
28423
28496
|
}).strict();
|
|
28424
28497
|
var harnessWebUiOpenParamsSchema = external_exports.object({
|
|
28425
28498
|
harnessId: harnessIdSchema
|
|
@@ -28504,13 +28577,25 @@ var threadOwnershipListResultSchema = external_exports.object({
|
|
|
28504
28577
|
seen.add(thread.threadId);
|
|
28505
28578
|
}
|
|
28506
28579
|
});
|
|
28580
|
+
var threadSteeringInspectParamsSchema = external_exports.object({
|
|
28581
|
+
threadId: hostThreadIdSchema,
|
|
28582
|
+
/** The text about to be steered; a Harness command always stops and restarts. */
|
|
28583
|
+
text: external_exports.string().optional()
|
|
28584
|
+
}).strict();
|
|
28585
|
+
var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
|
|
28586
|
+
var threadSteeringInspectResultSchema = external_exports.object({
|
|
28587
|
+
delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
|
|
28588
|
+
}).strict();
|
|
28507
28589
|
|
|
28508
28590
|
// ../../shared-contracts/dist/harness-route.js
|
|
28509
28591
|
var harnessPluginRouteSchema = external_exports.object({
|
|
28510
28592
|
harnessId: harnessPluginIdSchema,
|
|
28511
28593
|
model: harnessModelRefSchema.optional(),
|
|
28512
28594
|
thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
|
|
28513
|
-
permissionModeId: harnessPermissionModeIdSchema.optional()
|
|
28595
|
+
permissionModeId: harnessPermissionModeIdSchema.optional(),
|
|
28596
|
+
/** A draft prewarm create: stays unsubmitted until the user's first Turn.
|
|
28597
|
+
* Desktop forwards only the Model of a main-process prewarm to thread/start. */
|
|
28598
|
+
prewarm: external_exports.literal(true).optional()
|
|
28514
28599
|
}).strict();
|
|
28515
28600
|
|
|
28516
28601
|
// ../../shared-contracts/dist/harness-launch-settings.js
|
|
@@ -28536,6 +28621,10 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28536
28621
|
latestVersion: external_exports.string().min(1).max(128),
|
|
28537
28622
|
updateAvailable: external_exports.boolean(),
|
|
28538
28623
|
canUpdate: external_exports.boolean(),
|
|
28624
|
+
/** Defaults to CLI; some Harnesses ship only inside a desktop application. */
|
|
28625
|
+
versionKind: external_exports.enum(["cli", "application"]).optional(),
|
|
28626
|
+
/** Official download opened by the user; does not imply an automatic installation. */
|
|
28627
|
+
manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
|
|
28539
28628
|
// Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
|
|
28540
28629
|
message: external_exports.string().max(2048).optional(),
|
|
28541
28630
|
messageCode: external_exports.string().min(1).max(128).optional(),
|
|
@@ -28543,6 +28632,20 @@ var harnessInstallationStateSchema = external_exports.object({
|
|
|
28543
28632
|
notice: harnessLocalizedTextSchema.optional(),
|
|
28544
28633
|
latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
|
|
28545
28634
|
}).strict();
|
|
28635
|
+
var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
|
|
28636
|
+
var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
|
|
28637
|
+
external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
|
|
28638
|
+
external_exports.object({
|
|
28639
|
+
taskId: external_exports.string().uuid(),
|
|
28640
|
+
status: external_exports.literal("succeeded"),
|
|
28641
|
+
result: harnessInstallationStateSchema
|
|
28642
|
+
}).strict(),
|
|
28643
|
+
external_exports.object({
|
|
28644
|
+
taskId: external_exports.string().uuid(),
|
|
28645
|
+
status: external_exports.literal("failed"),
|
|
28646
|
+
error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
|
|
28647
|
+
}).strict()
|
|
28648
|
+
]);
|
|
28546
28649
|
|
|
28547
28650
|
// ../../shared-contracts/dist/codex-accounts.js
|
|
28548
28651
|
var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
|
|
@@ -29308,6 +29411,18 @@ var HarnessOutputChannel = class {
|
|
|
29308
29411
|
}
|
|
29309
29412
|
};
|
|
29310
29413
|
|
|
29414
|
+
// ../../harness-adapter/dist/steer.js
|
|
29415
|
+
function unsupportedSteer(harnessLabel) {
|
|
29416
|
+
return {
|
|
29417
|
+
ok: false,
|
|
29418
|
+
error: {
|
|
29419
|
+
code: "unsupported",
|
|
29420
|
+
message: `${harnessLabel} cannot steer an active Turn natively`,
|
|
29421
|
+
retryable: false
|
|
29422
|
+
}
|
|
29423
|
+
};
|
|
29424
|
+
}
|
|
29425
|
+
|
|
29311
29426
|
// ../../harness-adapter/dist/usage.js
|
|
29312
29427
|
var tokenFields = [
|
|
29313
29428
|
"inputTokens",
|
|
@@ -29335,6 +29450,7 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
29335
29450
|
...safeIntegerFields,
|
|
29336
29451
|
...percentFields,
|
|
29337
29452
|
"sessionCacheUsage",
|
|
29453
|
+
"composerIndicators",
|
|
29338
29454
|
"totalCostUsd",
|
|
29339
29455
|
"totalCredits",
|
|
29340
29456
|
"contextUsagePercent",
|
|
@@ -29357,26 +29473,27 @@ function parseHostUsage(value) {
|
|
|
29357
29473
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
29358
29474
|
}
|
|
29359
29475
|
}
|
|
29360
|
-
|
|
29476
|
+
const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
|
|
29477
|
+
for (const field2 of [
|
|
29361
29478
|
"totalCredits",
|
|
29362
29479
|
"contextUsagePercent",
|
|
29363
29480
|
"apiOutputTokensPerSecond"
|
|
29364
29481
|
]) {
|
|
29365
|
-
const candidate = value[
|
|
29482
|
+
const candidate = value[field2];
|
|
29366
29483
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29367
|
-
throw new Error(`Harness Usage '${
|
|
29484
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29368
29485
|
}
|
|
29369
29486
|
}
|
|
29370
|
-
for (const
|
|
29371
|
-
const candidate = value[
|
|
29487
|
+
for (const field2 of tokenFields) {
|
|
29488
|
+
const candidate = value[field2];
|
|
29372
29489
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29373
|
-
throw new Error(`Harness Usage '${
|
|
29490
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29374
29491
|
}
|
|
29375
29492
|
}
|
|
29376
|
-
for (const
|
|
29377
|
-
const candidate = value[
|
|
29493
|
+
for (const field2 of safeIntegerFields) {
|
|
29494
|
+
const candidate = value[field2];
|
|
29378
29495
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
|
|
29379
|
-
throw new Error(`Harness Usage '${
|
|
29496
|
+
throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
|
|
29380
29497
|
}
|
|
29381
29498
|
}
|
|
29382
29499
|
if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
|
|
@@ -29385,16 +29502,16 @@ function parseHostUsage(value) {
|
|
|
29385
29502
|
if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
|
|
29386
29503
|
throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
|
|
29387
29504
|
}
|
|
29388
|
-
for (const
|
|
29389
|
-
const candidate = value[
|
|
29505
|
+
for (const field2 of ["totalCredits", "contextUsagePercent"]) {
|
|
29506
|
+
const candidate = value[field2];
|
|
29390
29507
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
29391
|
-
throw new Error(`Harness Usage '${
|
|
29508
|
+
throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
|
|
29392
29509
|
}
|
|
29393
29510
|
}
|
|
29394
|
-
for (const
|
|
29395
|
-
const candidate = value[
|
|
29511
|
+
for (const field2 of percentFields) {
|
|
29512
|
+
const candidate = value[field2];
|
|
29396
29513
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
|
|
29397
|
-
throw new Error(`Harness Usage '${
|
|
29514
|
+
throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
|
|
29398
29515
|
}
|
|
29399
29516
|
}
|
|
29400
29517
|
if (value.sessionCacheUsage !== void 0) {
|
|
@@ -29433,9 +29550,9 @@ function parseHostUsage(value) {
|
|
|
29433
29550
|
if (value.costSource !== "publicPrice") {
|
|
29434
29551
|
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
29435
29552
|
}
|
|
29436
|
-
return { ...value, unpricedModels: [...models] };
|
|
29553
|
+
return { ...value, ...indicators, unpricedModels: [...models] };
|
|
29437
29554
|
}
|
|
29438
|
-
return { ...value };
|
|
29555
|
+
return { ...value, ...indicators };
|
|
29439
29556
|
}
|
|
29440
29557
|
var requestTokenFields = [
|
|
29441
29558
|
"inputTokens",
|
|
@@ -39213,11 +39330,11 @@ var McpServer = class {
|
|
|
39213
39330
|
return EMPTY_COMPLETION_RESULT;
|
|
39214
39331
|
}
|
|
39215
39332
|
const promptShape = getObjectShape(prompt.argsSchema);
|
|
39216
|
-
const
|
|
39217
|
-
if (!isCompletable(
|
|
39333
|
+
const field2 = promptShape?.[request.params.argument.name];
|
|
39334
|
+
if (!isCompletable(field2)) {
|
|
39218
39335
|
return EMPTY_COMPLETION_RESULT;
|
|
39219
39336
|
}
|
|
39220
|
-
const completer = getCompleter(
|
|
39337
|
+
const completer = getCompleter(field2);
|
|
39221
39338
|
if (!completer) {
|
|
39222
39339
|
return EMPTY_COMPLETION_RESULT;
|
|
39223
39340
|
}
|
|
@@ -39490,8 +39607,8 @@ var McpServer = class {
|
|
|
39490
39607
|
};
|
|
39491
39608
|
this._registeredPrompts[name] = registeredPrompt;
|
|
39492
39609
|
if (argsSchema) {
|
|
39493
|
-
const hasCompletable = Object.values(argsSchema).some((
|
|
39494
|
-
const inner =
|
|
39610
|
+
const hasCompletable = Object.values(argsSchema).some((field2) => {
|
|
39611
|
+
const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
|
|
39495
39612
|
return isCompletable(inner);
|
|
39496
39613
|
});
|
|
39497
39614
|
if (hasCompletable) {
|
|
@@ -39700,9 +39817,9 @@ function promptArgumentsFromSchema(schema) {
|
|
|
39700
39817
|
const shape = getObjectShape(schema);
|
|
39701
39818
|
if (!shape)
|
|
39702
39819
|
return [];
|
|
39703
|
-
return Object.entries(shape).map(([name,
|
|
39704
|
-
const description = getSchemaDescription(
|
|
39705
|
-
const isOptional = isSchemaOptional(
|
|
39820
|
+
return Object.entries(shape).map(([name, field2]) => {
|
|
39821
|
+
const description = getSchemaDescription(field2);
|
|
39822
|
+
const isOptional = isSchemaOptional(field2);
|
|
39706
39823
|
return {
|
|
39707
39824
|
name,
|
|
39708
39825
|
description,
|
|
@@ -52323,6 +52440,8 @@ var QoderSession = class {
|
|
|
52323
52440
|
};
|
|
52324
52441
|
}
|
|
52325
52442
|
switch (command.type) {
|
|
52443
|
+
case "turn.steer":
|
|
52444
|
+
return unsupportedSteer("Qoder");
|
|
52326
52445
|
case "turn.start": {
|
|
52327
52446
|
if (this.#activeTurn) {
|
|
52328
52447
|
return {
|
|
@@ -53033,10 +53152,13 @@ function usageSessionTitle(value) {
|
|
|
53033
53152
|
return void 0;
|
|
53034
53153
|
if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
|
|
53035
53154
|
return normalized;
|
|
53036
|
-
|
|
53037
|
-
|
|
53038
|
-
|
|
53039
|
-
|
|
53155
|
+
let title = "";
|
|
53156
|
+
for (const character of normalized) {
|
|
53157
|
+
if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
|
|
53158
|
+
break;
|
|
53159
|
+
title += character;
|
|
53160
|
+
}
|
|
53161
|
+
return `${title.trimEnd()}…`;
|
|
53040
53162
|
}
|
|
53041
53163
|
function sessionIdOk(value) {
|
|
53042
53164
|
return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
|
|
@@ -53073,13 +53195,13 @@ function parseHarnessUsageEntry(value) {
|
|
|
53073
53195
|
}
|
|
53074
53196
|
if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
|
|
53075
53197
|
return null;
|
|
53076
|
-
for (const
|
|
53198
|
+
for (const field2 of [
|
|
53077
53199
|
"cachedInputTokens",
|
|
53078
53200
|
"cacheWriteInputTokens",
|
|
53079
53201
|
"cacheWrite1hInputTokens",
|
|
53080
53202
|
"reasoningOutputTokens"
|
|
53081
53203
|
]) {
|
|
53082
|
-
if (entry[
|
|
53204
|
+
if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
|
|
53083
53205
|
return null;
|
|
53084
53206
|
}
|
|
53085
53207
|
const cached2 = entry.cachedInputTokens ?? 0;
|