@liberseek/boft-cli-linux-x64 0.7.9 → 0.8.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/THIRD_PARTY_NOTICES.txt +8 -0
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +232 -21
- package/app/console-web.js +9669 -5390
- package/app/desktop-controller.mjs +252 -42
- package/app/host-runtime.mjs +5361 -1491
- package/app/plugins/antigravity/manifest.json +18 -1
- package/app/plugins/antigravity/plugin.mjs +276 -42
- package/app/plugins/claude-code/manifest.json +28 -0
- package/app/plugins/claude-code/plugin.mjs +1055 -391
- package/app/plugins/codebuddy/manifest.json +17 -0
- package/app/plugins/codebuddy/plugin.mjs +5931 -5358
- package/app/plugins/codex-usage/manifest.json +9 -0
- package/app/plugins/codex-usage/plugin.mjs +16750 -0
- package/app/plugins/cursor-cli/manifest.json +18 -1
- package/app/plugins/cursor-cli/plugin.mjs +351 -77
- package/app/plugins/deepseek-harness/assets/icon.svg +1 -0
- package/app/plugins/deepseek-harness/manifest.json +35 -2
- package/app/plugins/deepseek-harness/plugin.mjs +798 -242
- package/app/plugins/enabled.json +2 -1
- package/app/plugins/grok/manifest.json +21 -1
- package/app/plugins/grok/plugin.mjs +898 -268
- package/app/plugins/hermes/assets/icon.png +0 -0
- package/app/plugins/hermes/manifest.json +30 -2
- package/app/plugins/hermes/plugin.mjs +278 -33
- package/app/plugins/kimi-code/assets/icon.svg +5 -0
- package/app/plugins/kimi-code/manifest.json +25 -2
- package/app/plugins/kimi-code/plugin.mjs +555 -36
- package/app/plugins/kiro-cli/assets/kiro-agent.svg +11 -0
- package/app/plugins/kiro-cli/manifest.json +18 -1
- package/app/plugins/kiro-cli/plugin.mjs +284 -22
- package/app/plugins/muse/manifest.json +18 -1
- package/app/plugins/muse/plugin.mjs +251 -17
- package/app/plugins/omp/manifest.json +21 -1
- package/app/plugins/omp/plugin.mjs +2741 -1960
- package/app/plugins/opencode/manifest.json +18 -1
- package/app/plugins/opencode/plugin.mjs +694 -147
- package/app/plugins/pi/manifest.json +32 -0
- package/app/plugins/pi/plugin.mjs +3396 -2841
- package/app/plugins/qoder/manifest.json +18 -1
- package/app/plugins/qoder/plugin.mjs +585 -81
- package/app/plugins/qoder-cn/manifest.json +18 -1
- package/app/plugins/qoder-cn/plugin.mjs +585 -81
- package/app/plugins/workbuddy/manifest.json +18 -0
- package/app/plugins/workbuddy/plugin.mjs +6317 -5746
- package/app/plugins/zcode/manifest.json +19 -1
- package/app/plugins/zcode/plugin.mjs +1066 -260
- package/app/renderer-extension.js +2731 -2427
- package/bin/boft +0 -0
- package/libexec/boft-shim +0 -0
- package/libexec/boft-updater +0 -0
- package/licenses/Cordis-LICENSE.txt +21 -0
- package/licenses/Cosmokit-LICENSE.txt +21 -0
- package/package.json +1 -1
- package/app/plugins/kiro-cli/assets/icon.svg +0 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ BOFT CLI runs Pi and other external harnesses inside Codex Desktop.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @liberseek/boft-cli@0.
|
|
10
|
+
npm install -g @liberseek/boft-cli@0.8.0
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Do not install this package directly. npm selects it through the optional dependencies of `@liberseek/boft-cli`.
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
codexhost npm package third-party notices
|
|
2
2
|
|
|
3
|
+
@deepseek-ai/cordis 4.0.4
|
|
4
|
+
License: MIT
|
|
5
|
+
License text: licenses/Cordis-LICENSE.txt
|
|
6
|
+
|
|
7
|
+
@deepseek-ai/cosmokit 1.8.5
|
|
8
|
+
License: MIT
|
|
9
|
+
License text: licenses/Cosmokit-LICENSE.txt
|
|
10
|
+
|
|
3
11
|
@agentclientprotocol/sdk 1.3.0
|
|
4
12
|
License: Apache-2.0
|
|
5
13
|
License text: licenses/Agent-Client-Protocol-SDK-LICENSE.txt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"version":"0.
|
|
1
|
+
{"schemaVersion":1,"version":"0.8.0","distribution":"npm","target":"linux-x64"}
|
package/app/console-server.mjs
CHANGED
|
@@ -5503,8 +5503,8 @@ function az_default() {
|
|
|
5503
5503
|
}
|
|
5504
5504
|
|
|
5505
5505
|
// node_modules/zod/v4/locales/be.js
|
|
5506
|
-
function getBelarusianPlural(
|
|
5507
|
-
const absCount = Math.abs(
|
|
5506
|
+
function getBelarusianPlural(count2, one, few, many) {
|
|
5507
|
+
const absCount = Math.abs(count2);
|
|
5508
5508
|
const lastDigit = absCount % 10;
|
|
5509
5509
|
const lastTwoDigits = absCount % 100;
|
|
5510
5510
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7582,8 +7582,8 @@ function hu_default() {
|
|
|
7582
7582
|
}
|
|
7583
7583
|
|
|
7584
7584
|
// node_modules/zod/v4/locales/hy.js
|
|
7585
|
-
function getArmenianPlural(
|
|
7586
|
-
return Math.abs(
|
|
7585
|
+
function getArmenianPlural(count2, one, many) {
|
|
7586
|
+
return Math.abs(count2) === 1 ? one : many;
|
|
7587
7587
|
}
|
|
7588
7588
|
function withDefiniteArticle(word) {
|
|
7589
7589
|
if (!word)
|
|
@@ -9711,8 +9711,8 @@ function ro_default() {
|
|
|
9711
9711
|
}
|
|
9712
9712
|
|
|
9713
9713
|
// node_modules/zod/v4/locales/ru.js
|
|
9714
|
-
function getRussianPlural(
|
|
9715
|
-
const absCount = Math.abs(
|
|
9714
|
+
function getRussianPlural(count2, one, few, many) {
|
|
9715
|
+
const absCount = Math.abs(count2);
|
|
9716
9716
|
const lastDigit = absCount % 10;
|
|
9717
9717
|
const lastTwoDigits = absCount % 100;
|
|
9718
9718
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -15381,6 +15381,15 @@ function date4(params) {
|
|
|
15381
15381
|
// node_modules/zod/v4/classic/external.js
|
|
15382
15382
|
config(en_default());
|
|
15383
15383
|
|
|
15384
|
+
// packages/shared-contracts/dist/delegation-read.js
|
|
15385
|
+
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
15386
|
+
var delegationReadParamsSchema = external_exports.strictObject({
|
|
15387
|
+
threadId: external_exports.string().min(1).max(1024),
|
|
15388
|
+
view: external_exports.enum(["result", "messages"]),
|
|
15389
|
+
cursor: external_exports.string().min(1).max(8192).optional(),
|
|
15390
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
15391
|
+
});
|
|
15392
|
+
|
|
15384
15393
|
// packages/shared-contracts/dist/credential-imports.js
|
|
15385
15394
|
var credentialSourceSchema = external_exports.object({
|
|
15386
15395
|
id: external_exports.string().min(1).max(256),
|
|
@@ -15451,6 +15460,153 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15451
15460
|
initializeOnly: external_exports.boolean().optional()
|
|
15452
15461
|
});
|
|
15453
15462
|
|
|
15463
|
+
// packages/shared-contracts/dist/model-price-overrides.js
|
|
15464
|
+
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15465
|
+
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
15466
|
+
input: usdPerMillionTokens,
|
|
15467
|
+
output: usdPerMillionTokens,
|
|
15468
|
+
cacheRead: usdPerMillionTokens.optional(),
|
|
15469
|
+
cacheWrite: usdPerMillionTokens.optional(),
|
|
15470
|
+
cacheWrite1h: usdPerMillionTokens.optional()
|
|
15471
|
+
});
|
|
15472
|
+
var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
|
|
15473
|
+
var modelPriceOverridesSchema = external_exports.strictObject({
|
|
15474
|
+
/** Absolute path of the Host's `pricing.json`. */
|
|
15475
|
+
path: external_exports.string(),
|
|
15476
|
+
entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
|
|
15477
|
+
/** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
|
|
15478
|
+
error: external_exports.string().nullable()
|
|
15479
|
+
});
|
|
15480
|
+
var modelPriceOverridesGetSchema = external_exports.strictObject({});
|
|
15481
|
+
var modelPriceOverridesSetSchema = external_exports.strictObject({
|
|
15482
|
+
key: modelPriceKeySchema,
|
|
15483
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15484
|
+
previousKey: modelPriceKeySchema.optional()
|
|
15485
|
+
});
|
|
15486
|
+
var modelPriceDefaultParamsSchema = external_exports.strictObject({
|
|
15487
|
+
model: modelPriceKeySchema
|
|
15488
|
+
});
|
|
15489
|
+
var modelPriceSuggestionSchema = external_exports.strictObject({
|
|
15490
|
+
/** Verified from catalog canonical links, not inferred from names or equal prices. */
|
|
15491
|
+
official: external_exports.boolean().optional(),
|
|
15492
|
+
canonicalModelId: external_exports.string().min(1).optional(),
|
|
15493
|
+
provider: external_exports.string().min(1).max(512),
|
|
15494
|
+
model: external_exports.string().min(1).max(512),
|
|
15495
|
+
price: modelPriceOverrideSchema
|
|
15496
|
+
});
|
|
15497
|
+
var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
15498
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15499
|
+
/** Local catalog suggestions only; never used automatically for pricing. */
|
|
15500
|
+
suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
|
|
15501
|
+
});
|
|
15502
|
+
|
|
15503
|
+
// packages/shared-contracts/dist/usage-statistics.js
|
|
15504
|
+
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15505
|
+
var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15506
|
+
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15507
|
+
var harness = external_exports.string().min(1).max(128);
|
|
15508
|
+
var model = external_exports.string().min(1).max(512);
|
|
15509
|
+
var project = external_exports.string().min(1).max(4096);
|
|
15510
|
+
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15511
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15512
|
+
harness: harness.optional(),
|
|
15513
|
+
model: model.nullable().optional(),
|
|
15514
|
+
project: project.nullable().optional(),
|
|
15515
|
+
/** One local date inside the range. */
|
|
15516
|
+
date: localDate.optional()
|
|
15517
|
+
});
|
|
15518
|
+
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15519
|
+
requests: count,
|
|
15520
|
+
inputTokens: count,
|
|
15521
|
+
cachedInputTokens: count,
|
|
15522
|
+
cacheWriteInputTokens: count,
|
|
15523
|
+
cacheKnownInputTokens: count,
|
|
15524
|
+
outputTokens: count,
|
|
15525
|
+
reasoningOutputTokens: count,
|
|
15526
|
+
/** USD at the public price, summed over the priced requests only. */
|
|
15527
|
+
costUsd: external_exports.number().finite().min(0),
|
|
15528
|
+
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15529
|
+
unpricedRequests: count,
|
|
15530
|
+
/**
|
|
15531
|
+
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15532
|
+
* cost, and not as unpriced.
|
|
15533
|
+
*/
|
|
15534
|
+
unmeteredRequests: count
|
|
15535
|
+
});
|
|
15536
|
+
var totals = usageStatisticsTotalsSchema.shape;
|
|
15537
|
+
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
15538
|
+
harness,
|
|
15539
|
+
sessionId: external_exports.string().min(1).max(512),
|
|
15540
|
+
project: project.nullable(),
|
|
15541
|
+
/** Models the session used, most requests first. */
|
|
15542
|
+
models: external_exports.array(model).max(16),
|
|
15543
|
+
firstAtMs: count,
|
|
15544
|
+
lastAtMs: count,
|
|
15545
|
+
...totals
|
|
15546
|
+
});
|
|
15547
|
+
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15548
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15549
|
+
/** First local date of the range; null for all time. */
|
|
15550
|
+
from: localDate.nullable(),
|
|
15551
|
+
to: localDate,
|
|
15552
|
+
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
15553
|
+
filters: external_exports.strictObject({
|
|
15554
|
+
harness: harness.nullable(),
|
|
15555
|
+
model: model.nullable(),
|
|
15556
|
+
unknownModel: external_exports.boolean(),
|
|
15557
|
+
project: project.nullable(),
|
|
15558
|
+
unknownProject: external_exports.boolean(),
|
|
15559
|
+
date: localDate.nullable()
|
|
15560
|
+
}),
|
|
15561
|
+
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15562
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
|
|
15563
|
+
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15564
|
+
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15565
|
+
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
15566
|
+
options: external_exports.strictObject({
|
|
15567
|
+
harnesses: external_exports.array(harness).max(256),
|
|
15568
|
+
models: external_exports.array(model.nullable()).max(4096),
|
|
15569
|
+
projects: external_exports.array(project.nullable()).max(4096)
|
|
15570
|
+
}),
|
|
15571
|
+
/** Current display metadata, scoped by Harness. Never a pricing or filter identity.
|
|
15572
|
+
* Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
|
|
15573
|
+
*/
|
|
15574
|
+
modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
|
|
15575
|
+
/** Native credits, all filters applied, never combined across Harnesses or treated as USD.
|
|
15576
|
+
* Only groups with at least one reported value appear; reportedRequests exposes partial data.
|
|
15577
|
+
*/
|
|
15578
|
+
credits: external_exports.array(external_exports.strictObject({
|
|
15579
|
+
harness,
|
|
15580
|
+
model: model.nullable(),
|
|
15581
|
+
credits: external_exports.number().finite().min(0),
|
|
15582
|
+
reportedRequests: count,
|
|
15583
|
+
requests: count
|
|
15584
|
+
})).max(4096).optional(),
|
|
15585
|
+
/** All filters applied. */
|
|
15586
|
+
totals: usageStatisticsTotalsSchema,
|
|
15587
|
+
/** Each date and Harness of the range: every filter except the day. */
|
|
15588
|
+
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15589
|
+
/** Local weekday (0 = Sunday) and hour, all filters applied. */
|
|
15590
|
+
hourly: external_exports.array(external_exports.strictObject({
|
|
15591
|
+
weekday: external_exports.number().int().min(0).max(6),
|
|
15592
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15593
|
+
...totals
|
|
15594
|
+
})).max(168),
|
|
15595
|
+
byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
|
|
15596
|
+
byModel: external_exports.array(external_exports.strictObject({
|
|
15597
|
+
model: model.nullable(),
|
|
15598
|
+
...totals,
|
|
15599
|
+
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15600
|
+
harnessPricedRequests: count
|
|
15601
|
+
})).max(4096),
|
|
15602
|
+
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15603
|
+
/**
|
|
15604
|
+
* The sessions that spent the most, by cost and by tokens without cache, all filters applied;
|
|
15605
|
+
* requests without a native session are not listed here but count everywhere else.
|
|
15606
|
+
*/
|
|
15607
|
+
sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
|
|
15608
|
+
});
|
|
15609
|
+
|
|
15454
15610
|
// packages/shared-contracts/dist/ids.js
|
|
15455
15611
|
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
15456
15612
|
message: "Identifier must not be empty or whitespace"
|
|
@@ -15472,13 +15628,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
|
|
|
15472
15628
|
var harnessPluginIdSchema = external_exports.string().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).refine((id) => id !== "codex", "The official Codex identity is reserved").pipe(harnessIdSchema);
|
|
15473
15629
|
var relativeResourceSchema = external_exports.string().min(1).max(512).refine((value) => !/[\\\u0000:#?]/u.test(value) && !value.startsWith("/") && !value.split("/").some((part) => part === ".." || part === ""), "Plugin resources must be relative paths inside the plugin");
|
|
15474
15630
|
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15631
|
+
var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
|
|
15632
|
+
var harnessInstallationGuideSchema = external_exports.object({
|
|
15633
|
+
commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
|
|
15634
|
+
before: localizedTextSchema.optional(),
|
|
15635
|
+
after: localizedTextSchema.optional(),
|
|
15636
|
+
downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
|
|
15637
|
+
}).strict();
|
|
15475
15638
|
var pluginPresentationShape = {
|
|
15476
15639
|
id: harnessPluginIdSchema,
|
|
15477
15640
|
name: external_exports.string().trim().min(1).max(128),
|
|
15478
15641
|
version: external_exports.string().min(1).max(128),
|
|
15642
|
+
/** Capability-only plugin; omitted for existing session-capable plugins. */
|
|
15643
|
+
kind: external_exports.literal("usage").optional(),
|
|
15644
|
+
/** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
|
|
15645
|
+
iconStyle: external_exports.object({
|
|
15646
|
+
vector: external_exports.object({
|
|
15647
|
+
viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
|
|
15648
|
+
color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
|
|
15649
|
+
paths: external_exports.array(external_exports.object({
|
|
15650
|
+
d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
|
|
15651
|
+
fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
|
|
15652
|
+
fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
|
|
15653
|
+
}).strict()).min(1).max(32)
|
|
15654
|
+
}).strict().optional(),
|
|
15655
|
+
background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
|
|
15656
|
+
borderRadius: external_exports.number().min(0).max(50).optional(),
|
|
15657
|
+
paddingRatio: external_exports.number().min(0).max(0.25).optional()
|
|
15658
|
+
}).strict().optional(),
|
|
15659
|
+
installation: harnessInstallationGuideSchema.optional(),
|
|
15660
|
+
notice: localizedTextSchema.optional(),
|
|
15479
15661
|
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15480
15662
|
launchCommand: external_exports.literal(true).optional(),
|
|
15481
15663
|
links: external_exports.object({
|
|
15664
|
+
website: documentationUrlSchema.optional(),
|
|
15482
15665
|
documentation: documentationUrlSchema.optional(),
|
|
15483
15666
|
installation: documentationUrlSchema.optional()
|
|
15484
15667
|
}).strict().optional()
|
|
@@ -15555,6 +15738,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15555
15738
|
"codexhost/account/list",
|
|
15556
15739
|
"codexhost/account/refresh",
|
|
15557
15740
|
"codexhost/account/usage/inspect",
|
|
15741
|
+
"codexhost/usage/model-prices/get",
|
|
15742
|
+
"codexhost/usage/model-prices/set",
|
|
15743
|
+
"codexhost/usage/model-prices/default",
|
|
15744
|
+
"codexhost/usage/statistics/get",
|
|
15558
15745
|
"codexhost/update/check",
|
|
15559
15746
|
"codexhost/update/start",
|
|
15560
15747
|
"codexhost/update/status"
|
|
@@ -15622,6 +15809,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15622
15809
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15623
15810
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15624
15811
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15812
|
+
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15625
15813
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15626
15814
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15627
15815
|
totalCostUsd: finiteNonNegativeNumberSchema.optional(),
|
|
@@ -15633,7 +15821,11 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15633
15821
|
planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15634
15822
|
planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15635
15823
|
planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15636
|
-
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
|
|
15824
|
+
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15825
|
+
sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
|
|
15826
|
+
timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
|
|
15827
|
+
costSource: external_exports.enum(["publicPrice", "native"]).optional(),
|
|
15828
|
+
unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
15637
15829
|
}).strict().superRefine((usage2, context) => {
|
|
15638
15830
|
if (Object.keys(usage2).length === 0) {
|
|
15639
15831
|
context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
|
|
@@ -15654,6 +15846,20 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15654
15846
|
path: ["contextWindowTokens"]
|
|
15655
15847
|
});
|
|
15656
15848
|
}
|
|
15849
|
+
if (usage2.costSource !== void 0 && usage2.totalCostUsd === void 0) {
|
|
15850
|
+
context.addIssue({
|
|
15851
|
+
code: "custom",
|
|
15852
|
+
message: "Thread Usage costSource must be provided with totalCostUsd",
|
|
15853
|
+
path: ["costSource"]
|
|
15854
|
+
});
|
|
15855
|
+
}
|
|
15856
|
+
if (usage2.unpricedModels !== void 0 && usage2.costSource !== "publicPrice") {
|
|
15857
|
+
context.addIssue({
|
|
15858
|
+
code: "custom",
|
|
15859
|
+
message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
|
|
15860
|
+
path: ["unpricedModels"]
|
|
15861
|
+
});
|
|
15862
|
+
}
|
|
15657
15863
|
if (usage2.planFiveHourResetsAtUnix !== void 0 && usage2.planFiveHourUsedPercent === void 0) {
|
|
15658
15864
|
context.addIssue({
|
|
15659
15865
|
code: "custom",
|
|
@@ -15923,27 +16129,27 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15923
16129
|
}).strict().superRefine((catalog, context) => {
|
|
15924
16130
|
const refs = /* @__PURE__ */ new Set();
|
|
15925
16131
|
const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
|
|
15926
|
-
for (const [index,
|
|
15927
|
-
if (refs.has(
|
|
16132
|
+
for (const [index, model2] of catalog.models.entries()) {
|
|
16133
|
+
if (refs.has(model2.ref.id)) {
|
|
15928
16134
|
context.addIssue({
|
|
15929
16135
|
code: "custom",
|
|
15930
16136
|
message: "Model Catalog refs must be unique",
|
|
15931
16137
|
path: ["models", index, "ref", "id"]
|
|
15932
16138
|
});
|
|
15933
16139
|
}
|
|
15934
|
-
refs.add(
|
|
15935
|
-
if (
|
|
15936
|
-
if (refs.has(
|
|
16140
|
+
refs.add(model2.ref.id);
|
|
16141
|
+
if (model2.fastModel) {
|
|
16142
|
+
if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
|
|
15937
16143
|
context.addIssue({
|
|
15938
16144
|
code: "custom",
|
|
15939
16145
|
message: "Fast Model refs must be distinct and unique",
|
|
15940
16146
|
path: ["models", index, "fastModel"]
|
|
15941
16147
|
});
|
|
15942
16148
|
}
|
|
15943
|
-
refs.add(
|
|
16149
|
+
refs.add(model2.fastModel.id);
|
|
15944
16150
|
}
|
|
15945
16151
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15946
|
-
for (const [optionIndex, optionId] of (
|
|
16152
|
+
for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
|
|
15947
16153
|
if (supportedThinkingIds.has(optionId)) {
|
|
15948
16154
|
context.addIssue({
|
|
15949
16155
|
code: "custom",
|
|
@@ -16532,6 +16738,11 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16532
16738
|
});
|
|
16533
16739
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16534
16740
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16741
|
+
external_exports.strictObject({
|
|
16742
|
+
action: external_exports.literal("read-thread"),
|
|
16743
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16744
|
+
input: delegationReadParamsSchema
|
|
16745
|
+
}),
|
|
16535
16746
|
external_exports.strictObject({
|
|
16536
16747
|
action: external_exports.literal("save"),
|
|
16537
16748
|
draft: codexSshDraftSchema,
|
|
@@ -16824,14 +17035,14 @@ function createConsoleHarnesses(roots, environment = process.env) {
|
|
|
16824
17035
|
return {
|
|
16825
17036
|
list,
|
|
16826
17037
|
async setLaunchPath(id, value) {
|
|
16827
|
-
const
|
|
16828
|
-
if (!
|
|
16829
|
-
if (!
|
|
17038
|
+
const harness2 = (await list()).find((candidate) => candidate.id === id);
|
|
17039
|
+
if (!harness2) throw new ConsoleHarnessError(404, `Harness '${id}' is not installed`);
|
|
17040
|
+
if (!harness2.launchCommand) {
|
|
16830
17041
|
throw new ConsoleHarnessError(400, `Harness '${id}' does not accept an installation path`);
|
|
16831
17042
|
}
|
|
16832
17043
|
try {
|
|
16833
17044
|
const settings = await store.set(id, value);
|
|
16834
|
-
return { ...
|
|
17045
|
+
return { ...harness2, launchPath: settings.path };
|
|
16835
17046
|
} catch (error51) {
|
|
16836
17047
|
throw new ConsoleHarnessError(400, error51 instanceof Error ? error51.message : String(error51));
|
|
16837
17048
|
}
|
|
@@ -17835,8 +18046,8 @@ function startConsoleServer(options) {
|
|
|
17835
18046
|
return;
|
|
17836
18047
|
}
|
|
17837
18048
|
try {
|
|
17838
|
-
const
|
|
17839
|
-
sendJson(response, 200, { harness });
|
|
18049
|
+
const harness2 = await options.harnesses.setLaunchPath(id, value === "" ? null : value);
|
|
18050
|
+
sendJson(response, 200, { harness: harness2 });
|
|
17840
18051
|
} catch (error51) {
|
|
17841
18052
|
sendJson(response, error51 instanceof ConsoleHarnessError ? error51.status : 500, {
|
|
17842
18053
|
error: error51 instanceof Error ? error51.message : String(error51)
|
|
@@ -17943,7 +18154,7 @@ async function consoleBuildId(entryPath2, environment = process.env) {
|
|
|
17943
18154
|
}
|
|
17944
18155
|
const runtime = await readRuntimeMetadata(entryPath2, environment).catch(() => null);
|
|
17945
18156
|
if (runtime?.distribution === "development") parts.push(runtime.version);
|
|
17946
|
-
return parts.join(".");
|
|
18157
|
+
return JSON.stringify([parts.join("."), dataDirectory(environment)]);
|
|
17947
18158
|
}
|
|
17948
18159
|
function startDetachedServer(entryPath2, environment) {
|
|
17949
18160
|
const child = spawn3(process.execPath, [entryPath2, "serve"], {
|