@liberseek/boft-cli-linux-x64 0.7.9 → 0.8.1
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 +9 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +322 -67
- package/app/console-web.js +9202 -5218
- package/app/desktop-controller.mjs +259 -42
- package/app/host-runtime.mjs +6250 -1689
- package/app/plugins/antigravity/manifest.json +18 -1
- package/app/plugins/antigravity/plugin.mjs +283 -42
- package/app/plugins/claude-code/manifest.json +28 -0
- package/app/plugins/claude-code/plugin.mjs +35676 -24151
- package/app/plugins/codebuddy/manifest.json +17 -0
- package/app/plugins/codebuddy/plugin.mjs +5972 -5356
- package/app/plugins/codex-usage/manifest.json +9 -0
- package/app/plugins/codex-usage/plugin.mjs +17386 -0
- package/app/plugins/cursor-cli/manifest.json +18 -1
- package/app/plugins/cursor-cli/plugin.mjs +358 -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 +823 -242
- package/app/plugins/enabled.json +2 -1
- package/app/plugins/grok/manifest.json +21 -1
- package/app/plugins/grok/plugin.mjs +933 -268
- package/app/plugins/hermes/assets/icon.png +0 -0
- package/app/plugins/hermes/manifest.json +30 -2
- package/app/plugins/hermes/plugin.mjs +469 -73
- 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 +562 -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 +291 -22
- package/app/plugins/muse/manifest.json +18 -1
- package/app/plugins/muse/plugin.mjs +258 -17
- package/app/plugins/omp/manifest.json +21 -1
- package/app/plugins/omp/plugin.mjs +2763 -1958
- package/app/plugins/opencode/manifest.json +18 -1
- package/app/plugins/opencode/plugin.mjs +724 -147
- package/app/plugins/pi/manifest.json +32 -0
- package/app/plugins/pi/plugin.mjs +2908 -2312
- package/app/plugins/qoder/manifest.json +18 -1
- package/app/plugins/qoder/plugin.mjs +635 -81
- package/app/plugins/qoder-cn/manifest.json +18 -1
- package/app/plugins/qoder-cn/plugin.mjs +635 -81
- package/app/plugins/workbuddy/manifest.json +18 -0
- package/app/plugins/workbuddy/plugin.mjs +6362 -5748
- package/app/plugins/zcode/manifest.json +19 -1
- package/app/plugins/zcode/plugin.mjs +1117 -278
- package/app/renderer-extension.js +14675 -10087
- 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 +4 -4
- package/app/plugins/kiro-cli/assets/icon.svg +0 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="1200" height="1200" viewBox="0 0 1200 1200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="1200" height="1200" rx="260" fill="#9046FF"/>
|
|
3
|
+
<mask id="mask0_1106_4856" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="272" y="202" width="655" height="796">
|
|
4
|
+
<path d="M926.578 202.793H272.637V997.857H926.578V202.793Z" fill="white"/>
|
|
5
|
+
</mask>
|
|
6
|
+
<g mask="url(#mask0_1106_4856)">
|
|
7
|
+
<path d="M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z" fill="white"/>
|
|
8
|
+
<path d="M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z" fill="black"/>
|
|
9
|
+
<path d="M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z" fill="black"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -3,10 +3,27 @@
|
|
|
3
3
|
"id": "kiro-cli",
|
|
4
4
|
"name": "Kiro CLI",
|
|
5
5
|
"version": "0.0.0",
|
|
6
|
+
"installation": {
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
10
|
+
"command": "curl -fsSL https://cli.kiro.dev/install | bash"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"terminal": "Windows · PowerShell",
|
|
14
|
+
"command": "irm 'https://cli.kiro.dev/install.ps1' | iex"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"after": {
|
|
18
|
+
"en": "After installation, run kiro-cli to complete login or setup.",
|
|
19
|
+
"zh-CN": "安装后运行 kiro-cli,完成登录或配置。"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
6
22
|
"links": {
|
|
23
|
+
"website": "https://kiro.dev/",
|
|
7
24
|
"installation": "https://kiro.dev/docs/cli/"
|
|
8
25
|
},
|
|
9
26
|
"adapterApiVersion": 1,
|
|
10
27
|
"entry": "plugin.mjs",
|
|
11
|
-
"icon": "./assets/
|
|
28
|
+
"icon": "./assets/kiro-agent.svg"
|
|
12
29
|
}
|
|
@@ -4987,8 +4987,8 @@ function az_default() {
|
|
|
4987
4987
|
}
|
|
4988
4988
|
|
|
4989
4989
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
4990
|
-
function getBelarusianPlural(
|
|
4991
|
-
const absCount = Math.abs(
|
|
4990
|
+
function getBelarusianPlural(count2, one, few, many) {
|
|
4991
|
+
const absCount = Math.abs(count2);
|
|
4992
4992
|
const lastDigit = absCount % 10;
|
|
4993
4993
|
const lastTwoDigits = absCount % 100;
|
|
4994
4994
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7066,8 +7066,8 @@ function hu_default() {
|
|
|
7066
7066
|
}
|
|
7067
7067
|
|
|
7068
7068
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7069
|
-
function getArmenianPlural(
|
|
7070
|
-
return Math.abs(
|
|
7069
|
+
function getArmenianPlural(count2, one, many) {
|
|
7070
|
+
return Math.abs(count2) === 1 ? one : many;
|
|
7071
7071
|
}
|
|
7072
7072
|
function withDefiniteArticle(word) {
|
|
7073
7073
|
if (!word)
|
|
@@ -9195,8 +9195,8 @@ function ro_default() {
|
|
|
9195
9195
|
}
|
|
9196
9196
|
|
|
9197
9197
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9198
|
-
function getRussianPlural(
|
|
9199
|
-
const absCount = Math.abs(
|
|
9198
|
+
function getRussianPlural(count2, one, few, many) {
|
|
9199
|
+
const absCount = Math.abs(count2);
|
|
9200
9200
|
const lastDigit = absCount % 10;
|
|
9201
9201
|
const lastTwoDigits = absCount % 100;
|
|
9202
9202
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14865,6 +14865,15 @@ function date4(params) {
|
|
|
14865
14865
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14866
14866
|
config(en_default());
|
|
14867
14867
|
|
|
14868
|
+
// ../../shared-contracts/dist/delegation-read.js
|
|
14869
|
+
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14870
|
+
var delegationReadParamsSchema = external_exports.strictObject({
|
|
14871
|
+
threadId: external_exports.string().min(1).max(1024),
|
|
14872
|
+
view: external_exports.enum(["result", "messages"]),
|
|
14873
|
+
cursor: external_exports.string().min(1).max(8192).optional(),
|
|
14874
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
14875
|
+
});
|
|
14876
|
+
|
|
14868
14877
|
// ../../shared-contracts/dist/credential-imports.js
|
|
14869
14878
|
var credentialSourceSchema = external_exports.object({
|
|
14870
14879
|
id: external_exports.string().min(1).max(256),
|
|
@@ -14935,6 +14944,160 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
14935
14944
|
initializeOnly: external_exports.boolean().optional()
|
|
14936
14945
|
});
|
|
14937
14946
|
|
|
14947
|
+
// ../../shared-contracts/dist/model-price-overrides.js
|
|
14948
|
+
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
14949
|
+
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
14950
|
+
input: usdPerMillionTokens,
|
|
14951
|
+
output: usdPerMillionTokens,
|
|
14952
|
+
cacheRead: usdPerMillionTokens.optional(),
|
|
14953
|
+
cacheWrite: usdPerMillionTokens.optional(),
|
|
14954
|
+
cacheWrite1h: usdPerMillionTokens.optional()
|
|
14955
|
+
});
|
|
14956
|
+
var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
|
|
14957
|
+
var modelPriceOverridesSchema = external_exports.strictObject({
|
|
14958
|
+
/** Absolute path of the Host's `pricing.json`. */
|
|
14959
|
+
path: external_exports.string(),
|
|
14960
|
+
entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
|
|
14961
|
+
/** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
|
|
14962
|
+
error: external_exports.string().nullable()
|
|
14963
|
+
});
|
|
14964
|
+
var modelPriceOverridesGetSchema = external_exports.strictObject({});
|
|
14965
|
+
var modelPriceOverridesSetSchema = external_exports.strictObject({
|
|
14966
|
+
key: modelPriceKeySchema,
|
|
14967
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
14968
|
+
previousKey: modelPriceKeySchema.optional()
|
|
14969
|
+
});
|
|
14970
|
+
var modelPriceDefaultParamsSchema = external_exports.strictObject({
|
|
14971
|
+
model: modelPriceKeySchema
|
|
14972
|
+
});
|
|
14973
|
+
var modelPriceSuggestionSchema = external_exports.strictObject({
|
|
14974
|
+
/** Verified from catalog canonical links, not inferred from names or equal prices. */
|
|
14975
|
+
official: external_exports.boolean().optional(),
|
|
14976
|
+
canonicalModelId: external_exports.string().min(1).optional(),
|
|
14977
|
+
provider: external_exports.string().min(1).max(512),
|
|
14978
|
+
model: external_exports.string().min(1).max(512),
|
|
14979
|
+
price: modelPriceOverrideSchema
|
|
14980
|
+
});
|
|
14981
|
+
var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
14982
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
14983
|
+
/** Local catalog suggestions only; never used automatically for pricing. */
|
|
14984
|
+
suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
|
|
14985
|
+
});
|
|
14986
|
+
|
|
14987
|
+
// ../../shared-contracts/dist/usage-statistics.js
|
|
14988
|
+
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
14989
|
+
var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
14990
|
+
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
14991
|
+
var harness = external_exports.string().min(1).max(128);
|
|
14992
|
+
var model = external_exports.string().min(1).max(512);
|
|
14993
|
+
var project = external_exports.string().min(1).max(4096);
|
|
14994
|
+
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
14995
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
14996
|
+
harness: harness.optional(),
|
|
14997
|
+
model: model.nullable().optional(),
|
|
14998
|
+
project: project.nullable().optional(),
|
|
14999
|
+
/** One local date inside the range. */
|
|
15000
|
+
date: localDate.optional()
|
|
15001
|
+
});
|
|
15002
|
+
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15003
|
+
requests: count,
|
|
15004
|
+
inputTokens: count,
|
|
15005
|
+
cachedInputTokens: count,
|
|
15006
|
+
cacheWriteInputTokens: count,
|
|
15007
|
+
cacheKnownInputTokens: count,
|
|
15008
|
+
outputTokens: count,
|
|
15009
|
+
reasoningOutputTokens: count,
|
|
15010
|
+
/** USD at the public price, summed over the priced requests only. */
|
|
15011
|
+
costUsd: external_exports.number().finite().min(0),
|
|
15012
|
+
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15013
|
+
unpricedRequests: count,
|
|
15014
|
+
/**
|
|
15015
|
+
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15016
|
+
* cost, and not as unpriced.
|
|
15017
|
+
*/
|
|
15018
|
+
unmeteredRequests: count
|
|
15019
|
+
});
|
|
15020
|
+
var totals = usageStatisticsTotalsSchema.shape;
|
|
15021
|
+
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
15022
|
+
harness,
|
|
15023
|
+
sessionId: external_exports.string().min(1).max(512),
|
|
15024
|
+
project: project.nullable(),
|
|
15025
|
+
/** Persisted Desktop title for a mapped Session, otherwise its native name; may be absent. */
|
|
15026
|
+
title: external_exports.string().min(1).max(200).optional(),
|
|
15027
|
+
/** Models the session used, most requests first. */
|
|
15028
|
+
models: external_exports.array(model).max(16),
|
|
15029
|
+
firstAtMs: count,
|
|
15030
|
+
lastAtMs: count,
|
|
15031
|
+
...totals
|
|
15032
|
+
});
|
|
15033
|
+
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15034
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15035
|
+
/** First local date of the range; null for all time. */
|
|
15036
|
+
from: localDate.nullable(),
|
|
15037
|
+
to: localDate,
|
|
15038
|
+
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
15039
|
+
filters: external_exports.strictObject({
|
|
15040
|
+
harness: harness.nullable(),
|
|
15041
|
+
model: model.nullable(),
|
|
15042
|
+
unknownModel: external_exports.boolean(),
|
|
15043
|
+
project: project.nullable(),
|
|
15044
|
+
unknownProject: external_exports.boolean(),
|
|
15045
|
+
date: localDate.nullable()
|
|
15046
|
+
}),
|
|
15047
|
+
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15048
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
|
|
15049
|
+
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15050
|
+
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15051
|
+
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
15052
|
+
options: external_exports.strictObject({
|
|
15053
|
+
harnesses: external_exports.array(harness).max(256),
|
|
15054
|
+
models: external_exports.array(model.nullable()).max(4096),
|
|
15055
|
+
projects: external_exports.array(project.nullable()).max(4096)
|
|
15056
|
+
}),
|
|
15057
|
+
/** Current display metadata, scoped by Harness. Never a pricing or filter identity.
|
|
15058
|
+
* Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
|
|
15059
|
+
*/
|
|
15060
|
+
modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
|
|
15061
|
+
/** Native credits, all filters applied, never combined across Harnesses or treated as USD.
|
|
15062
|
+
* Only groups with at least one reported value appear; reportedRequests exposes partial data.
|
|
15063
|
+
*/
|
|
15064
|
+
credits: external_exports.array(external_exports.strictObject({
|
|
15065
|
+
harness,
|
|
15066
|
+
model: model.nullable(),
|
|
15067
|
+
credits: external_exports.number().finite().min(0),
|
|
15068
|
+
reportedRequests: count,
|
|
15069
|
+
requests: count
|
|
15070
|
+
})).max(4096).optional(),
|
|
15071
|
+
/** All filters applied. */
|
|
15072
|
+
totals: usageStatisticsTotalsSchema,
|
|
15073
|
+
/** Each date and Harness of the range: every filter except the day. */
|
|
15074
|
+
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15075
|
+
/** Local weekday (0 = Sunday) and hour, all filters applied. */
|
|
15076
|
+
hourly: external_exports.array(external_exports.strictObject({
|
|
15077
|
+
weekday: external_exports.number().int().min(0).max(6),
|
|
15078
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15079
|
+
...totals
|
|
15080
|
+
})).max(168),
|
|
15081
|
+
byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
|
|
15082
|
+
byModel: external_exports.array(external_exports.strictObject({
|
|
15083
|
+
model: model.nullable(),
|
|
15084
|
+
...totals,
|
|
15085
|
+
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15086
|
+
harnessPricedRequests: count
|
|
15087
|
+
})).max(4096),
|
|
15088
|
+
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15089
|
+
/**
|
|
15090
|
+
* The sessions that spent the most, by cost and by tokens without cache, all filters applied;
|
|
15091
|
+
* requests without a native session are not listed here but count everywhere else.
|
|
15092
|
+
*/
|
|
15093
|
+
sessions: external_exports.array(usageStatisticsSessionSchema).max(100),
|
|
15094
|
+
/**
|
|
15095
|
+
* The sessions last active in the range, newest first, all filters applied. Optional for older
|
|
15096
|
+
* Hosts; missing is treated as no list rather than no sessions.
|
|
15097
|
+
*/
|
|
15098
|
+
recentSessions: external_exports.array(usageStatisticsSessionSchema).max(100).optional()
|
|
15099
|
+
});
|
|
15100
|
+
|
|
14938
15101
|
// ../../shared-contracts/dist/ids.js
|
|
14939
15102
|
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
14940
15103
|
message: "Identifier must not be empty or whitespace"
|
|
@@ -14956,13 +15119,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
|
|
|
14956
15119
|
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);
|
|
14957
15120
|
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");
|
|
14958
15121
|
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15122
|
+
var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
|
|
15123
|
+
var harnessInstallationGuideSchema = external_exports.object({
|
|
15124
|
+
commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
|
|
15125
|
+
before: localizedTextSchema.optional(),
|
|
15126
|
+
after: localizedTextSchema.optional(),
|
|
15127
|
+
downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
|
|
15128
|
+
}).strict();
|
|
14959
15129
|
var pluginPresentationShape = {
|
|
14960
15130
|
id: harnessPluginIdSchema,
|
|
14961
15131
|
name: external_exports.string().trim().min(1).max(128),
|
|
14962
15132
|
version: external_exports.string().min(1).max(128),
|
|
15133
|
+
/** Capability-only plugin; omitted for existing session-capable plugins. */
|
|
15134
|
+
kind: external_exports.literal("usage").optional(),
|
|
15135
|
+
/** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
|
|
15136
|
+
iconStyle: external_exports.object({
|
|
15137
|
+
vector: external_exports.object({
|
|
15138
|
+
viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
|
|
15139
|
+
color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
|
|
15140
|
+
paths: external_exports.array(external_exports.object({
|
|
15141
|
+
d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
|
|
15142
|
+
fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
|
|
15143
|
+
fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
|
|
15144
|
+
}).strict()).min(1).max(32)
|
|
15145
|
+
}).strict().optional(),
|
|
15146
|
+
background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
|
|
15147
|
+
borderRadius: external_exports.number().min(0).max(50).optional(),
|
|
15148
|
+
paddingRatio: external_exports.number().min(0).max(0.25).optional()
|
|
15149
|
+
}).strict().optional(),
|
|
15150
|
+
installation: harnessInstallationGuideSchema.optional(),
|
|
15151
|
+
notice: localizedTextSchema.optional(),
|
|
14963
15152
|
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
14964
15153
|
launchCommand: external_exports.literal(true).optional(),
|
|
14965
15154
|
links: external_exports.object({
|
|
15155
|
+
website: documentationUrlSchema.optional(),
|
|
14966
15156
|
documentation: documentationUrlSchema.optional(),
|
|
14967
15157
|
installation: documentationUrlSchema.optional()
|
|
14968
15158
|
}).strict().optional()
|
|
@@ -15039,6 +15229,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15039
15229
|
"codexhost/account/list",
|
|
15040
15230
|
"codexhost/account/refresh",
|
|
15041
15231
|
"codexhost/account/usage/inspect",
|
|
15232
|
+
"codexhost/usage/model-prices/get",
|
|
15233
|
+
"codexhost/usage/model-prices/set",
|
|
15234
|
+
"codexhost/usage/model-prices/default",
|
|
15235
|
+
"codexhost/usage/statistics/get",
|
|
15042
15236
|
"codexhost/update/check",
|
|
15043
15237
|
"codexhost/update/start",
|
|
15044
15238
|
"codexhost/update/status"
|
|
@@ -15103,6 +15297,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15103
15297
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15104
15298
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15105
15299
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15300
|
+
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15106
15301
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15107
15302
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15108
15303
|
totalCostUsd: finiteNonNegativeNumberSchema.optional(),
|
|
@@ -15114,7 +15309,11 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15114
15309
|
planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15115
15310
|
planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15116
15311
|
planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15117
|
-
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
|
|
15312
|
+
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15313
|
+
sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
|
|
15314
|
+
timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
|
|
15315
|
+
costSource: external_exports.enum(["publicPrice", "native"]).optional(),
|
|
15316
|
+
unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
15118
15317
|
}).strict().superRefine((usage, context) => {
|
|
15119
15318
|
if (Object.keys(usage).length === 0) {
|
|
15120
15319
|
context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
|
|
@@ -15135,6 +15334,20 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15135
15334
|
path: ["contextWindowTokens"]
|
|
15136
15335
|
});
|
|
15137
15336
|
}
|
|
15337
|
+
if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
|
|
15338
|
+
context.addIssue({
|
|
15339
|
+
code: "custom",
|
|
15340
|
+
message: "Thread Usage costSource must be provided with totalCostUsd",
|
|
15341
|
+
path: ["costSource"]
|
|
15342
|
+
});
|
|
15343
|
+
}
|
|
15344
|
+
if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
|
|
15345
|
+
context.addIssue({
|
|
15346
|
+
code: "custom",
|
|
15347
|
+
message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
|
|
15348
|
+
path: ["unpricedModels"]
|
|
15349
|
+
});
|
|
15350
|
+
}
|
|
15138
15351
|
if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
|
|
15139
15352
|
context.addIssue({
|
|
15140
15353
|
code: "custom",
|
|
@@ -15404,27 +15617,27 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15404
15617
|
}).strict().superRefine((catalog, context) => {
|
|
15405
15618
|
const refs = /* @__PURE__ */ new Set();
|
|
15406
15619
|
const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
|
|
15407
|
-
for (const [index,
|
|
15408
|
-
if (refs.has(
|
|
15620
|
+
for (const [index, model2] of catalog.models.entries()) {
|
|
15621
|
+
if (refs.has(model2.ref.id)) {
|
|
15409
15622
|
context.addIssue({
|
|
15410
15623
|
code: "custom",
|
|
15411
15624
|
message: "Model Catalog refs must be unique",
|
|
15412
15625
|
path: ["models", index, "ref", "id"]
|
|
15413
15626
|
});
|
|
15414
15627
|
}
|
|
15415
|
-
refs.add(
|
|
15416
|
-
if (
|
|
15417
|
-
if (refs.has(
|
|
15628
|
+
refs.add(model2.ref.id);
|
|
15629
|
+
if (model2.fastModel) {
|
|
15630
|
+
if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
|
|
15418
15631
|
context.addIssue({
|
|
15419
15632
|
code: "custom",
|
|
15420
15633
|
message: "Fast Model refs must be distinct and unique",
|
|
15421
15634
|
path: ["models", index, "fastModel"]
|
|
15422
15635
|
});
|
|
15423
15636
|
}
|
|
15424
|
-
refs.add(
|
|
15637
|
+
refs.add(model2.fastModel.id);
|
|
15425
15638
|
}
|
|
15426
15639
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15427
|
-
for (const [optionIndex, optionId] of (
|
|
15640
|
+
for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
|
|
15428
15641
|
if (supportedThinkingIds.has(optionId)) {
|
|
15429
15642
|
context.addIssue({
|
|
15430
15643
|
code: "custom",
|
|
@@ -16018,6 +16231,11 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16018
16231
|
});
|
|
16019
16232
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16020
16233
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16234
|
+
external_exports.strictObject({
|
|
16235
|
+
action: external_exports.literal("read-thread"),
|
|
16236
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16237
|
+
input: delegationReadParamsSchema
|
|
16238
|
+
}),
|
|
16021
16239
|
external_exports.strictObject({
|
|
16022
16240
|
action: external_exports.literal("save"),
|
|
16023
16241
|
draft: codexSshDraftSchema,
|
|
@@ -16149,7 +16367,6 @@ var tokenFields = [
|
|
|
16149
16367
|
"cachedInputTokens",
|
|
16150
16368
|
"cacheWriteInputTokens",
|
|
16151
16369
|
"outputTokens",
|
|
16152
|
-
"outputTokensPerSecond",
|
|
16153
16370
|
"reasoningOutputTokens",
|
|
16154
16371
|
"totalTokens",
|
|
16155
16372
|
"contextWindowTokens",
|
|
@@ -16157,10 +16374,12 @@ var tokenFields = [
|
|
|
16157
16374
|
];
|
|
16158
16375
|
var safeIntegerFields = [
|
|
16159
16376
|
"planFiveHourResetsAtUnix",
|
|
16160
|
-
"planSevenDayResetsAtUnix"
|
|
16377
|
+
"planSevenDayResetsAtUnix",
|
|
16378
|
+
"timeToFirstOutputMs"
|
|
16161
16379
|
];
|
|
16162
16380
|
var percentFields = [
|
|
16163
16381
|
"cacheHitRatePercent",
|
|
16382
|
+
"sessionCacheHitRatePercent",
|
|
16164
16383
|
"planFiveHourUsedPercent",
|
|
16165
16384
|
"planSevenDayUsedPercent"
|
|
16166
16385
|
];
|
|
@@ -16168,9 +16387,14 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16168
16387
|
...tokenFields,
|
|
16169
16388
|
...safeIntegerFields,
|
|
16170
16389
|
...percentFields,
|
|
16390
|
+
"sessionCacheUsage",
|
|
16171
16391
|
"totalCostUsd",
|
|
16172
16392
|
"totalCredits",
|
|
16173
|
-
"contextUsagePercent"
|
|
16393
|
+
"contextUsagePercent",
|
|
16394
|
+
"outputTokensPerSecond",
|
|
16395
|
+
"apiOutputTokensPerSecond",
|
|
16396
|
+
"costSource",
|
|
16397
|
+
"unpricedModels"
|
|
16174
16398
|
]);
|
|
16175
16399
|
function isRecord(value) {
|
|
16176
16400
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -16186,7 +16410,11 @@ function parseHostUsage(value) {
|
|
|
16186
16410
|
throw new Error(`Harness Usage contains unknown field '${key}'`);
|
|
16187
16411
|
}
|
|
16188
16412
|
}
|
|
16189
|
-
for (const field of [
|
|
16413
|
+
for (const field of [
|
|
16414
|
+
"totalCredits",
|
|
16415
|
+
"contextUsagePercent",
|
|
16416
|
+
"apiOutputTokensPerSecond"
|
|
16417
|
+
]) {
|
|
16190
16418
|
const candidate = value[field];
|
|
16191
16419
|
if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
|
|
16192
16420
|
throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
|
|
@@ -16222,6 +16450,12 @@ function parseHostUsage(value) {
|
|
|
16222
16450
|
throw new Error(`Harness Usage '${field}' must be between 0 and 100`);
|
|
16223
16451
|
}
|
|
16224
16452
|
}
|
|
16453
|
+
if (value.sessionCacheUsage !== void 0) {
|
|
16454
|
+
const totals2 = value.sessionCacheUsage;
|
|
16455
|
+
if (!isRecord(totals2) || Object.keys(totals2).some((key) => key !== "inputTokens" && key !== "cachedInputTokens") || typeof totals2.inputTokens !== "number" || !Number.isSafeInteger(totals2.inputTokens) || totals2.inputTokens < 0 || typeof totals2.cachedInputTokens !== "number" || !Number.isSafeInteger(totals2.cachedInputTokens) || totals2.cachedInputTokens < 0 || totals2.cachedInputTokens > totals2.inputTokens) {
|
|
16456
|
+
throw new Error("Harness Usage 'sessionCacheUsage' must contain complete bounded token totals");
|
|
16457
|
+
}
|
|
16458
|
+
}
|
|
16225
16459
|
const hasContextUsed = value.contextUsedTokens !== void 0;
|
|
16226
16460
|
const hasContextWindow = value.contextWindowTokens !== void 0;
|
|
16227
16461
|
if (hasContextUsed !== hasContextWindow) {
|
|
@@ -16236,8 +16470,43 @@ function parseHostUsage(value) {
|
|
|
16236
16470
|
if (value.planSevenDayResetsAtUnix !== void 0 && value.planSevenDayUsedPercent === void 0) {
|
|
16237
16471
|
throw new Error("Harness Usage 'planSevenDayResetsAtUnix' must be provided with 'planSevenDayUsedPercent'");
|
|
16238
16472
|
}
|
|
16473
|
+
if (value.costSource !== void 0) {
|
|
16474
|
+
if (value.costSource !== "publicPrice" && value.costSource !== "native") {
|
|
16475
|
+
throw new Error("Harness Usage 'costSource' must be 'publicPrice' or 'native'");
|
|
16476
|
+
}
|
|
16477
|
+
if (value.totalCostUsd === void 0) {
|
|
16478
|
+
throw new Error("Harness Usage 'costSource' must be provided with 'totalCostUsd'");
|
|
16479
|
+
}
|
|
16480
|
+
}
|
|
16481
|
+
if (value.unpricedModels !== void 0) {
|
|
16482
|
+
const models = value.unpricedModels;
|
|
16483
|
+
if (!Array.isArray(models) || models.length === 0 || !models.every((model2) => typeof model2 === "string" && model2.length > 0)) {
|
|
16484
|
+
throw new Error("Harness Usage 'unpricedModels' must be a non-empty list of Model IDs");
|
|
16485
|
+
}
|
|
16486
|
+
if (value.costSource !== "publicPrice") {
|
|
16487
|
+
throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
|
|
16488
|
+
}
|
|
16489
|
+
return { ...value, unpricedModels: [...models] };
|
|
16490
|
+
}
|
|
16239
16491
|
return { ...value };
|
|
16240
16492
|
}
|
|
16493
|
+
var requestTokenFields = [
|
|
16494
|
+
"inputTokens",
|
|
16495
|
+
"cachedInputTokens",
|
|
16496
|
+
"cacheWriteInputTokens",
|
|
16497
|
+
"cacheWrite1hInputTokens",
|
|
16498
|
+
"outputTokens",
|
|
16499
|
+
"reasoningOutputTokens",
|
|
16500
|
+
"startedAtMs",
|
|
16501
|
+
"completedAtMs"
|
|
16502
|
+
];
|
|
16503
|
+
var requestFields = /* @__PURE__ */ new Set([
|
|
16504
|
+
...requestTokenFields,
|
|
16505
|
+
"requestId",
|
|
16506
|
+
"historical",
|
|
16507
|
+
"model",
|
|
16508
|
+
"provider"
|
|
16509
|
+
]);
|
|
16241
16510
|
|
|
16242
16511
|
// ../../harness-adapter/dist/live-command-catalog.js
|
|
16243
16512
|
var COMMON_EXCLUDED_LIVE_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -18648,9 +18917,9 @@ var Connection = class {
|
|
|
18648
18917
|
return;
|
|
18649
18918
|
}
|
|
18650
18919
|
const responseBatch = isResponseBatch(batch);
|
|
18651
|
-
const responseCount = responseBatch ? 0 : batch.reduce((
|
|
18920
|
+
const responseCount = responseBatch ? 0 : batch.reduce((count2, message) => count2 + (isNotificationMessage(message) ? 0 : 1), 0);
|
|
18652
18921
|
let remaining = responseCount;
|
|
18653
|
-
let remainingNotifications = batch.reduce((
|
|
18922
|
+
let remainingNotifications = batch.reduce((count2, message) => count2 + (isNotificationMessage(message) ? 1 : 0), 0);
|
|
18654
18923
|
let responseSent = false;
|
|
18655
18924
|
const responses = [];
|
|
18656
18925
|
const sendResponsesIfReady = async () => {
|
|
@@ -24014,9 +24283,9 @@ var KiroSession = class {
|
|
|
24014
24283
|
#updateConfig(options) {
|
|
24015
24284
|
if (this.#closed)
|
|
24016
24285
|
throw new Error("Session closed during configuration");
|
|
24017
|
-
const
|
|
24286
|
+
const model2 = kiroConfigValue(options, "model");
|
|
24018
24287
|
const autopilot = kiroConfigValue(options, "autopilot");
|
|
24019
|
-
this.#currentModel =
|
|
24288
|
+
this.#currentModel = model2 ? harnessModelRefSchema.parse({ id: model2 }) : void 0;
|
|
24020
24289
|
this.#currentPermissionModeId = autopilot === "on" || autopilot === "off" ? encodeKiroPermissionMode(autopilot) : void 0;
|
|
24021
24290
|
this.#modelCatalog = parseKiroModelCatalog(options);
|
|
24022
24291
|
this.#thinking = kiroThinkingState(options);
|
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
"id": "muse",
|
|
4
4
|
"name": "Meta Muse Code",
|
|
5
5
|
"version": "0.0.0",
|
|
6
|
+
"installation": {
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
10
|
+
"command": "curl -fsSL https://dev.meta.ai/install.sh | bash"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"terminal": "Windows · Git Bash",
|
|
14
|
+
"command": "curl -fsSL https://dev.meta.ai/install.sh | bash"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"after": {
|
|
18
|
+
"en": "After installation, run muse and complete login or setup.",
|
|
19
|
+
"zh-CN": "安装后运行 muse,完成登录或配置。"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
6
22
|
"links": {
|
|
7
|
-
"
|
|
23
|
+
"website": "https://www.meta.ai/",
|
|
24
|
+
"installation": "https://developer.meta.com/ai/products/muse-code/"
|
|
8
25
|
},
|
|
9
26
|
"adapterApiVersion": 1,
|
|
10
27
|
"entry": "plugin.mjs",
|