@liberseek/boft-cli-win32-arm64 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.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/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
|
Binary file
|
|
@@ -3,9 +3,37 @@
|
|
|
3
3
|
"id": "hermes",
|
|
4
4
|
"name": "Hermes",
|
|
5
5
|
"version": "0.1.0",
|
|
6
|
+
"iconStyle": {
|
|
7
|
+
"background": "#d8d8e8",
|
|
8
|
+
"borderRadius": 22.37,
|
|
9
|
+
"paddingRatio": 0.0625
|
|
10
|
+
},
|
|
11
|
+
"installation": {
|
|
12
|
+
"commands": [
|
|
13
|
+
{
|
|
14
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
15
|
+
"command": "curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"terminal": "Windows · PowerShell",
|
|
19
|
+
"command": "iex (irm https://hermes-agent.nousresearch.com/install.ps1)"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"before": {
|
|
23
|
+
"en": "On macOS/Linux, install Git first. Linux also needs curl and xz-utils.",
|
|
24
|
+
"zh-CN": "macOS / Linux 请先安装 Git;Linux 还需要 curl 和 xz-utils。"
|
|
25
|
+
},
|
|
26
|
+
"after": {
|
|
27
|
+
"en": "After installation, run hermes to complete login or setup.",
|
|
28
|
+
"zh-CN": "安装后运行 hermes,完成登录或配置。"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
6
31
|
"links": {
|
|
7
|
-
"
|
|
32
|
+
"website": "https://hermes-agent.nousresearch.com/",
|
|
33
|
+
"documentation": "https://hermes-agent.nousresearch.com/docs",
|
|
34
|
+
"installation": "https://hermes-agent.nousresearch.com/docs/getting-started/installation"
|
|
8
35
|
},
|
|
9
36
|
"adapterApiVersion": 1,
|
|
10
|
-
"entry": "plugin.mjs"
|
|
37
|
+
"entry": "plugin.mjs",
|
|
38
|
+
"icon": "./assets/icon.png"
|
|
11
39
|
}
|
|
@@ -5008,8 +5008,8 @@ function az_default() {
|
|
|
5008
5008
|
}
|
|
5009
5009
|
|
|
5010
5010
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
5011
|
-
function getBelarusianPlural(
|
|
5012
|
-
const absCount = Math.abs(
|
|
5011
|
+
function getBelarusianPlural(count2, one, few, many) {
|
|
5012
|
+
const absCount = Math.abs(count2);
|
|
5013
5013
|
const lastDigit = absCount % 10;
|
|
5014
5014
|
const lastTwoDigits = absCount % 100;
|
|
5015
5015
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7087,8 +7087,8 @@ function hu_default() {
|
|
|
7087
7087
|
}
|
|
7088
7088
|
|
|
7089
7089
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7090
|
-
function getArmenianPlural(
|
|
7091
|
-
return Math.abs(
|
|
7090
|
+
function getArmenianPlural(count2, one, many) {
|
|
7091
|
+
return Math.abs(count2) === 1 ? one : many;
|
|
7092
7092
|
}
|
|
7093
7093
|
function withDefiniteArticle(word) {
|
|
7094
7094
|
if (!word)
|
|
@@ -9216,8 +9216,8 @@ function ro_default() {
|
|
|
9216
9216
|
}
|
|
9217
9217
|
|
|
9218
9218
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9219
|
-
function getRussianPlural(
|
|
9220
|
-
const absCount = Math.abs(
|
|
9219
|
+
function getRussianPlural(count2, one, few, many) {
|
|
9220
|
+
const absCount = Math.abs(count2);
|
|
9221
9221
|
const lastDigit = absCount % 10;
|
|
9222
9222
|
const lastTwoDigits = absCount % 100;
|
|
9223
9223
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14886,6 +14886,15 @@ function date4(params) {
|
|
|
14886
14886
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14887
14887
|
config(en_default());
|
|
14888
14888
|
|
|
14889
|
+
// ../../shared-contracts/dist/delegation-read.js
|
|
14890
|
+
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14891
|
+
var delegationReadParamsSchema = external_exports.strictObject({
|
|
14892
|
+
threadId: external_exports.string().min(1).max(1024),
|
|
14893
|
+
view: external_exports.enum(["result", "messages"]),
|
|
14894
|
+
cursor: external_exports.string().min(1).max(8192).optional(),
|
|
14895
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
14896
|
+
});
|
|
14897
|
+
|
|
14889
14898
|
// ../../shared-contracts/dist/credential-imports.js
|
|
14890
14899
|
var credentialSourceSchema = external_exports.object({
|
|
14891
14900
|
id: external_exports.string().min(1).max(256),
|
|
@@ -14956,6 +14965,153 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
14956
14965
|
initializeOnly: external_exports.boolean().optional()
|
|
14957
14966
|
});
|
|
14958
14967
|
|
|
14968
|
+
// ../../shared-contracts/dist/model-price-overrides.js
|
|
14969
|
+
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
14970
|
+
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
14971
|
+
input: usdPerMillionTokens,
|
|
14972
|
+
output: usdPerMillionTokens,
|
|
14973
|
+
cacheRead: usdPerMillionTokens.optional(),
|
|
14974
|
+
cacheWrite: usdPerMillionTokens.optional(),
|
|
14975
|
+
cacheWrite1h: usdPerMillionTokens.optional()
|
|
14976
|
+
});
|
|
14977
|
+
var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
|
|
14978
|
+
var modelPriceOverridesSchema = external_exports.strictObject({
|
|
14979
|
+
/** Absolute path of the Host's `pricing.json`. */
|
|
14980
|
+
path: external_exports.string(),
|
|
14981
|
+
entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
|
|
14982
|
+
/** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
|
|
14983
|
+
error: external_exports.string().nullable()
|
|
14984
|
+
});
|
|
14985
|
+
var modelPriceOverridesGetSchema = external_exports.strictObject({});
|
|
14986
|
+
var modelPriceOverridesSetSchema = external_exports.strictObject({
|
|
14987
|
+
key: modelPriceKeySchema,
|
|
14988
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
14989
|
+
previousKey: modelPriceKeySchema.optional()
|
|
14990
|
+
});
|
|
14991
|
+
var modelPriceDefaultParamsSchema = external_exports.strictObject({
|
|
14992
|
+
model: modelPriceKeySchema
|
|
14993
|
+
});
|
|
14994
|
+
var modelPriceSuggestionSchema = external_exports.strictObject({
|
|
14995
|
+
/** Verified from catalog canonical links, not inferred from names or equal prices. */
|
|
14996
|
+
official: external_exports.boolean().optional(),
|
|
14997
|
+
canonicalModelId: external_exports.string().min(1).optional(),
|
|
14998
|
+
provider: external_exports.string().min(1).max(512),
|
|
14999
|
+
model: external_exports.string().min(1).max(512),
|
|
15000
|
+
price: modelPriceOverrideSchema
|
|
15001
|
+
});
|
|
15002
|
+
var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
15003
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15004
|
+
/** Local catalog suggestions only; never used automatically for pricing. */
|
|
15005
|
+
suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
|
|
15006
|
+
});
|
|
15007
|
+
|
|
15008
|
+
// ../../shared-contracts/dist/usage-statistics.js
|
|
15009
|
+
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15010
|
+
var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15011
|
+
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15012
|
+
var harness = external_exports.string().min(1).max(128);
|
|
15013
|
+
var model = external_exports.string().min(1).max(512);
|
|
15014
|
+
var project = external_exports.string().min(1).max(4096);
|
|
15015
|
+
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15016
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15017
|
+
harness: harness.optional(),
|
|
15018
|
+
model: model.nullable().optional(),
|
|
15019
|
+
project: project.nullable().optional(),
|
|
15020
|
+
/** One local date inside the range. */
|
|
15021
|
+
date: localDate.optional()
|
|
15022
|
+
});
|
|
15023
|
+
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15024
|
+
requests: count,
|
|
15025
|
+
inputTokens: count,
|
|
15026
|
+
cachedInputTokens: count,
|
|
15027
|
+
cacheWriteInputTokens: count,
|
|
15028
|
+
cacheKnownInputTokens: count,
|
|
15029
|
+
outputTokens: count,
|
|
15030
|
+
reasoningOutputTokens: count,
|
|
15031
|
+
/** USD at the public price, summed over the priced requests only. */
|
|
15032
|
+
costUsd: external_exports.number().finite().min(0),
|
|
15033
|
+
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15034
|
+
unpricedRequests: count,
|
|
15035
|
+
/**
|
|
15036
|
+
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15037
|
+
* cost, and not as unpriced.
|
|
15038
|
+
*/
|
|
15039
|
+
unmeteredRequests: count
|
|
15040
|
+
});
|
|
15041
|
+
var totals = usageStatisticsTotalsSchema.shape;
|
|
15042
|
+
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
15043
|
+
harness,
|
|
15044
|
+
sessionId: external_exports.string().min(1).max(512),
|
|
15045
|
+
project: project.nullable(),
|
|
15046
|
+
/** Models the session used, most requests first. */
|
|
15047
|
+
models: external_exports.array(model).max(16),
|
|
15048
|
+
firstAtMs: count,
|
|
15049
|
+
lastAtMs: count,
|
|
15050
|
+
...totals
|
|
15051
|
+
});
|
|
15052
|
+
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15053
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15054
|
+
/** First local date of the range; null for all time. */
|
|
15055
|
+
from: localDate.nullable(),
|
|
15056
|
+
to: localDate,
|
|
15057
|
+
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
15058
|
+
filters: external_exports.strictObject({
|
|
15059
|
+
harness: harness.nullable(),
|
|
15060
|
+
model: model.nullable(),
|
|
15061
|
+
unknownModel: external_exports.boolean(),
|
|
15062
|
+
project: project.nullable(),
|
|
15063
|
+
unknownProject: external_exports.boolean(),
|
|
15064
|
+
date: localDate.nullable()
|
|
15065
|
+
}),
|
|
15066
|
+
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15067
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
|
|
15068
|
+
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15069
|
+
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15070
|
+
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
15071
|
+
options: external_exports.strictObject({
|
|
15072
|
+
harnesses: external_exports.array(harness).max(256),
|
|
15073
|
+
models: external_exports.array(model.nullable()).max(4096),
|
|
15074
|
+
projects: external_exports.array(project.nullable()).max(4096)
|
|
15075
|
+
}),
|
|
15076
|
+
/** Current display metadata, scoped by Harness. Never a pricing or filter identity.
|
|
15077
|
+
* Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
|
|
15078
|
+
*/
|
|
15079
|
+
modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
|
|
15080
|
+
/** Native credits, all filters applied, never combined across Harnesses or treated as USD.
|
|
15081
|
+
* Only groups with at least one reported value appear; reportedRequests exposes partial data.
|
|
15082
|
+
*/
|
|
15083
|
+
credits: external_exports.array(external_exports.strictObject({
|
|
15084
|
+
harness,
|
|
15085
|
+
model: model.nullable(),
|
|
15086
|
+
credits: external_exports.number().finite().min(0),
|
|
15087
|
+
reportedRequests: count,
|
|
15088
|
+
requests: count
|
|
15089
|
+
})).max(4096).optional(),
|
|
15090
|
+
/** All filters applied. */
|
|
15091
|
+
totals: usageStatisticsTotalsSchema,
|
|
15092
|
+
/** Each date and Harness of the range: every filter except the day. */
|
|
15093
|
+
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15094
|
+
/** Local weekday (0 = Sunday) and hour, all filters applied. */
|
|
15095
|
+
hourly: external_exports.array(external_exports.strictObject({
|
|
15096
|
+
weekday: external_exports.number().int().min(0).max(6),
|
|
15097
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15098
|
+
...totals
|
|
15099
|
+
})).max(168),
|
|
15100
|
+
byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
|
|
15101
|
+
byModel: external_exports.array(external_exports.strictObject({
|
|
15102
|
+
model: model.nullable(),
|
|
15103
|
+
...totals,
|
|
15104
|
+
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15105
|
+
harnessPricedRequests: count
|
|
15106
|
+
})).max(4096),
|
|
15107
|
+
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15108
|
+
/**
|
|
15109
|
+
* The sessions that spent the most, by cost and by tokens without cache, all filters applied;
|
|
15110
|
+
* requests without a native session are not listed here but count everywhere else.
|
|
15111
|
+
*/
|
|
15112
|
+
sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
|
|
15113
|
+
});
|
|
15114
|
+
|
|
14959
15115
|
// ../../shared-contracts/dist/ids.js
|
|
14960
15116
|
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
14961
15117
|
message: "Identifier must not be empty or whitespace"
|
|
@@ -14977,13 +15133,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
|
|
|
14977
15133
|
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);
|
|
14978
15134
|
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");
|
|
14979
15135
|
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15136
|
+
var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
|
|
15137
|
+
var harnessInstallationGuideSchema = external_exports.object({
|
|
15138
|
+
commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
|
|
15139
|
+
before: localizedTextSchema.optional(),
|
|
15140
|
+
after: localizedTextSchema.optional(),
|
|
15141
|
+
downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
|
|
15142
|
+
}).strict();
|
|
14980
15143
|
var pluginPresentationShape = {
|
|
14981
15144
|
id: harnessPluginIdSchema,
|
|
14982
15145
|
name: external_exports.string().trim().min(1).max(128),
|
|
14983
15146
|
version: external_exports.string().min(1).max(128),
|
|
15147
|
+
/** Capability-only plugin; omitted for existing session-capable plugins. */
|
|
15148
|
+
kind: external_exports.literal("usage").optional(),
|
|
15149
|
+
/** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
|
|
15150
|
+
iconStyle: external_exports.object({
|
|
15151
|
+
vector: external_exports.object({
|
|
15152
|
+
viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
|
|
15153
|
+
color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
|
|
15154
|
+
paths: external_exports.array(external_exports.object({
|
|
15155
|
+
d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
|
|
15156
|
+
fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
|
|
15157
|
+
fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
|
|
15158
|
+
}).strict()).min(1).max(32)
|
|
15159
|
+
}).strict().optional(),
|
|
15160
|
+
background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
|
|
15161
|
+
borderRadius: external_exports.number().min(0).max(50).optional(),
|
|
15162
|
+
paddingRatio: external_exports.number().min(0).max(0.25).optional()
|
|
15163
|
+
}).strict().optional(),
|
|
15164
|
+
installation: harnessInstallationGuideSchema.optional(),
|
|
15165
|
+
notice: localizedTextSchema.optional(),
|
|
14984
15166
|
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
14985
15167
|
launchCommand: external_exports.literal(true).optional(),
|
|
14986
15168
|
links: external_exports.object({
|
|
15169
|
+
website: documentationUrlSchema.optional(),
|
|
14987
15170
|
documentation: documentationUrlSchema.optional(),
|
|
14988
15171
|
installation: documentationUrlSchema.optional()
|
|
14989
15172
|
}).strict().optional()
|
|
@@ -15060,6 +15243,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15060
15243
|
"codexhost/account/list",
|
|
15061
15244
|
"codexhost/account/refresh",
|
|
15062
15245
|
"codexhost/account/usage/inspect",
|
|
15246
|
+
"codexhost/usage/model-prices/get",
|
|
15247
|
+
"codexhost/usage/model-prices/set",
|
|
15248
|
+
"codexhost/usage/model-prices/default",
|
|
15249
|
+
"codexhost/usage/statistics/get",
|
|
15063
15250
|
"codexhost/update/check",
|
|
15064
15251
|
"codexhost/update/start",
|
|
15065
15252
|
"codexhost/update/status"
|
|
@@ -15124,6 +15311,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15124
15311
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15125
15312
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15126
15313
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15314
|
+
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15127
15315
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15128
15316
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15129
15317
|
totalCostUsd: finiteNonNegativeNumberSchema.optional(),
|
|
@@ -15135,7 +15323,11 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15135
15323
|
planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15136
15324
|
planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15137
15325
|
planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15138
|
-
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
|
|
15326
|
+
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15327
|
+
sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
|
|
15328
|
+
timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
|
|
15329
|
+
costSource: external_exports.enum(["publicPrice", "native"]).optional(),
|
|
15330
|
+
unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
15139
15331
|
}).strict().superRefine((usage, context) => {
|
|
15140
15332
|
if (Object.keys(usage).length === 0) {
|
|
15141
15333
|
context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
|
|
@@ -15156,6 +15348,20 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15156
15348
|
path: ["contextWindowTokens"]
|
|
15157
15349
|
});
|
|
15158
15350
|
}
|
|
15351
|
+
if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
|
|
15352
|
+
context.addIssue({
|
|
15353
|
+
code: "custom",
|
|
15354
|
+
message: "Thread Usage costSource must be provided with totalCostUsd",
|
|
15355
|
+
path: ["costSource"]
|
|
15356
|
+
});
|
|
15357
|
+
}
|
|
15358
|
+
if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
|
|
15359
|
+
context.addIssue({
|
|
15360
|
+
code: "custom",
|
|
15361
|
+
message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
|
|
15362
|
+
path: ["unpricedModels"]
|
|
15363
|
+
});
|
|
15364
|
+
}
|
|
15159
15365
|
if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
|
|
15160
15366
|
context.addIssue({
|
|
15161
15367
|
code: "custom",
|
|
@@ -15425,27 +15631,27 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15425
15631
|
}).strict().superRefine((catalog, context) => {
|
|
15426
15632
|
const refs = /* @__PURE__ */ new Set();
|
|
15427
15633
|
const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
|
|
15428
|
-
for (const [index,
|
|
15429
|
-
if (refs.has(
|
|
15634
|
+
for (const [index, model2] of catalog.models.entries()) {
|
|
15635
|
+
if (refs.has(model2.ref.id)) {
|
|
15430
15636
|
context.addIssue({
|
|
15431
15637
|
code: "custom",
|
|
15432
15638
|
message: "Model Catalog refs must be unique",
|
|
15433
15639
|
path: ["models", index, "ref", "id"]
|
|
15434
15640
|
});
|
|
15435
15641
|
}
|
|
15436
|
-
refs.add(
|
|
15437
|
-
if (
|
|
15438
|
-
if (refs.has(
|
|
15642
|
+
refs.add(model2.ref.id);
|
|
15643
|
+
if (model2.fastModel) {
|
|
15644
|
+
if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
|
|
15439
15645
|
context.addIssue({
|
|
15440
15646
|
code: "custom",
|
|
15441
15647
|
message: "Fast Model refs must be distinct and unique",
|
|
15442
15648
|
path: ["models", index, "fastModel"]
|
|
15443
15649
|
});
|
|
15444
15650
|
}
|
|
15445
|
-
refs.add(
|
|
15651
|
+
refs.add(model2.fastModel.id);
|
|
15446
15652
|
}
|
|
15447
15653
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15448
|
-
for (const [optionIndex, optionId] of (
|
|
15654
|
+
for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
|
|
15449
15655
|
if (supportedThinkingIds.has(optionId)) {
|
|
15450
15656
|
context.addIssue({
|
|
15451
15657
|
code: "custom",
|
|
@@ -16039,6 +16245,11 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16039
16245
|
});
|
|
16040
16246
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16041
16247
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16248
|
+
external_exports.strictObject({
|
|
16249
|
+
action: external_exports.literal("read-thread"),
|
|
16250
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16251
|
+
input: delegationReadParamsSchema
|
|
16252
|
+
}),
|
|
16042
16253
|
external_exports.strictObject({
|
|
16043
16254
|
action: external_exports.literal("save"),
|
|
16044
16255
|
draft: codexSshDraftSchema,
|
|
@@ -16170,7 +16381,6 @@ var tokenFields = [
|
|
|
16170
16381
|
"cachedInputTokens",
|
|
16171
16382
|
"cacheWriteInputTokens",
|
|
16172
16383
|
"outputTokens",
|
|
16173
|
-
"outputTokensPerSecond",
|
|
16174
16384
|
"reasoningOutputTokens",
|
|
16175
16385
|
"totalTokens",
|
|
16176
16386
|
"contextWindowTokens",
|
|
@@ -16178,10 +16388,12 @@ var tokenFields = [
|
|
|
16178
16388
|
];
|
|
16179
16389
|
var safeIntegerFields = [
|
|
16180
16390
|
"planFiveHourResetsAtUnix",
|
|
16181
|
-
"planSevenDayResetsAtUnix"
|
|
16391
|
+
"planSevenDayResetsAtUnix",
|
|
16392
|
+
"timeToFirstOutputMs"
|
|
16182
16393
|
];
|
|
16183
16394
|
var percentFields = [
|
|
16184
16395
|
"cacheHitRatePercent",
|
|
16396
|
+
"sessionCacheHitRatePercent",
|
|
16185
16397
|
"planFiveHourUsedPercent",
|
|
16186
16398
|
"planSevenDayUsedPercent"
|
|
16187
16399
|
];
|
|
@@ -16189,9 +16401,31 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16189
16401
|
...tokenFields,
|
|
16190
16402
|
...safeIntegerFields,
|
|
16191
16403
|
...percentFields,
|
|
16404
|
+
"sessionCacheUsage",
|
|
16192
16405
|
"totalCostUsd",
|
|
16193
16406
|
"totalCredits",
|
|
16194
|
-
"contextUsagePercent"
|
|
16407
|
+
"contextUsagePercent",
|
|
16408
|
+
"outputTokensPerSecond",
|
|
16409
|
+
"apiOutputTokensPerSecond",
|
|
16410
|
+
"costSource",
|
|
16411
|
+
"unpricedModels"
|
|
16412
|
+
]);
|
|
16413
|
+
var requestTokenFields = [
|
|
16414
|
+
"inputTokens",
|
|
16415
|
+
"cachedInputTokens",
|
|
16416
|
+
"cacheWriteInputTokens",
|
|
16417
|
+
"cacheWrite1hInputTokens",
|
|
16418
|
+
"outputTokens",
|
|
16419
|
+
"reasoningOutputTokens",
|
|
16420
|
+
"startedAtMs",
|
|
16421
|
+
"completedAtMs"
|
|
16422
|
+
];
|
|
16423
|
+
var requestFields = /* @__PURE__ */ new Set([
|
|
16424
|
+
...requestTokenFields,
|
|
16425
|
+
"requestId",
|
|
16426
|
+
"historical",
|
|
16427
|
+
"model",
|
|
16428
|
+
"provider"
|
|
16195
16429
|
]);
|
|
16196
16430
|
|
|
16197
16431
|
// ../../harness-adapter/dist/live-command-catalog.js
|
|
@@ -16572,7 +16806,7 @@ function runProbe(pythonExecutable, timeoutMs, environment, arguments_ = ["-I",
|
|
|
16572
16806
|
try {
|
|
16573
16807
|
const payload = stdout.split(/\r?\n/).find((line) => line.startsWith("codexhost_inventory="));
|
|
16574
16808
|
const parsed2 = JSON.parse(payload ? payload.slice("codexhost_inventory=".length) : stdout.trim());
|
|
16575
|
-
const models = (parsed2.models ?? []).filter((
|
|
16809
|
+
const models = (parsed2.models ?? []).filter((model2) => typeof model2?.modelId === "string" && model2.modelId.length > 0);
|
|
16576
16810
|
resolve({
|
|
16577
16811
|
models,
|
|
16578
16812
|
...typeof parsed2.configured === "boolean" ? { configured: parsed2.configured } : {},
|
|
@@ -16611,14 +16845,14 @@ function catalogModelsFromInventory(inventory) {
|
|
|
16611
16845
|
const models = [];
|
|
16612
16846
|
let defaultModel = null;
|
|
16613
16847
|
const seen = /* @__PURE__ */ new Set();
|
|
16614
|
-
for (const
|
|
16615
|
-
if (
|
|
16848
|
+
for (const model2 of inventory.models) {
|
|
16849
|
+
if (model2.available === false)
|
|
16616
16850
|
continue;
|
|
16617
|
-
const nativeModelId =
|
|
16851
|
+
const nativeModelId = model2.modelId;
|
|
16618
16852
|
const ref = encodeHermesModelRef(nativeModelId);
|
|
16619
16853
|
if (!ref)
|
|
16620
16854
|
continue;
|
|
16621
|
-
if (inventory.currentModelId && (
|
|
16855
|
+
if (inventory.currentModelId && (model2.modelId === inventory.currentModelId || nativeModelId === inventory.currentModelId || model2.modelIdAliases?.includes(inventory.currentModelId))) {
|
|
16622
16856
|
if (defaultModel && defaultModel.id !== ref.id) {
|
|
16623
16857
|
throw new HermesInventoryError("Hermes configured Model matches multiple Provider routes");
|
|
16624
16858
|
}
|
|
@@ -16629,8 +16863,8 @@ function catalogModelsFromInventory(inventory) {
|
|
|
16629
16863
|
seen.add(ref.id);
|
|
16630
16864
|
models.push({
|
|
16631
16865
|
ref,
|
|
16632
|
-
label: `${
|
|
16633
|
-
description: `Provider: ${
|
|
16866
|
+
label: `${model2.provider} / ${model2.label}`,
|
|
16867
|
+
description: `Provider: ${model2.provider}`
|
|
16634
16868
|
});
|
|
16635
16869
|
}
|
|
16636
16870
|
if (inventory.currentModelId && models.length > 0 && !defaultModel) {
|
|
@@ -16672,7 +16906,18 @@ ${HERMES_DELEGATION_GUIDANCE}
|
|
|
16672
16906
|
},
|
|
16673
16907
|
// Reserve RPC stdout before native plugin imports. The registration is
|
|
16674
16908
|
// process-local; no plugin is installed and no user config is changed.
|
|
16675
|
-
|
|
16909
|
+
//
|
|
16910
|
+
// ``hermes_bootstrap`` must run before ``tui_gateway.server`` is imported:
|
|
16911
|
+
// the gateway spawn uses ``python -I``, so PYTHONPATH and the launcher's
|
|
16912
|
+
// activation are stripped. Hermes's own entry point (``tui_gateway/entry.py``)
|
|
16913
|
+
// imports this module first to put the selected dependency environment on
|
|
16914
|
+
// ``sys.path``; skipping it makes bare third-party imports (e.g.
|
|
16915
|
+
// ``hermes_yaml`` -> ``ruamel``) fail on interpreters whose site-packages
|
|
16916
|
+
// do not already carry Hermes's dependencies. ``hermes_bootstrap`` is
|
|
16917
|
+
// import-safe here for the same reason entry.py relies on it: stdlib-only
|
|
16918
|
+
// at import time, so nothing can shadow it from the launch directory.
|
|
16919
|
+
bootstrap: `import hermes_bootstrap
|
|
16920
|
+
from tui_gateway import server
|
|
16676
16921
|
from pathlib import Path
|
|
16677
16922
|
from hermes_cli.plugins import PluginContext, PluginManifest, get_plugin_manager
|
|
16678
16923
|
PluginContext(PluginManifest(name="codexhost-runtime"), get_plugin_manager()).register_skill(
|
|
@@ -17916,9 +18161,9 @@ var HermesGatewaySessionTransport = class {
|
|
|
17916
18161
|
session_id: this.sessionId
|
|
17917
18162
|
});
|
|
17918
18163
|
const currentThinkingOptionId = gatewayString(reasoning.value);
|
|
17919
|
-
const
|
|
18164
|
+
const model2 = gatewayString(this.#info.model);
|
|
17920
18165
|
const provider = gatewayString(this.#info.provider);
|
|
17921
|
-
const currentModelId = provider ? `${provider}:${
|
|
18166
|
+
const currentModelId = provider ? `${provider}:${model2}` : model2;
|
|
17922
18167
|
return {
|
|
17923
18168
|
sessionId: this.nativeSessionId,
|
|
17924
18169
|
session: {
|
|
@@ -17926,7 +18171,7 @@ var HermesGatewaySessionTransport = class {
|
|
|
17926
18171
|
models: currentModelId ? {
|
|
17927
18172
|
currentModelId,
|
|
17928
18173
|
availableModels: [
|
|
17929
|
-
{ modelId: currentModelId, name: provider ? `${provider} / ${
|
|
18174
|
+
{ modelId: currentModelId, name: provider ? `${provider} / ${model2}` : model2 }
|
|
17930
18175
|
]
|
|
17931
18176
|
} : null,
|
|
17932
18177
|
modes: {
|
|
@@ -19658,8 +19903,8 @@ async function openGatewaySession(input, transport, onSettle, inheritedPermissio
|
|
|
19658
19903
|
throw new HermesGatewayHistoryError("unsupported", "Hermes gateway supports only native approval policy and session YOLO");
|
|
19659
19904
|
if (input.kind === "create" && input.executionPolicy === "unattended-full-access" && mode && mode !== "dont_ask")
|
|
19660
19905
|
throw new HermesGatewayHistoryError("invalidRequest", "unattended-full-access requires dont_ask");
|
|
19661
|
-
const
|
|
19662
|
-
if (input.kind !== "fork" && input.model && !
|
|
19906
|
+
const model2 = input.kind !== "fork" && input.model ? decodeHermesModelRefId(input.model.id) : null;
|
|
19907
|
+
if (input.kind !== "fork" && input.model && !model2)
|
|
19663
19908
|
throw new HermesGatewayHistoryError("invalidRequest", "Model Ref does not belong to Hermes");
|
|
19664
19909
|
if (source && gatewayRecord(source.locator).cwd && !await sameDirectory(String(gatewayRecord(source?.locator).cwd), input.cwd))
|
|
19665
19910
|
throw new HermesGatewayHistoryError("unsupported", "Hermes gateway preserves the native Session working directory");
|
|
@@ -19677,7 +19922,7 @@ async function openGatewaySession(input, transport, onSettle, inheritedPermissio
|
|
|
19677
19922
|
});
|
|
19678
19923
|
nativeRef = await sourceHistory.derive(input.kind === "fork" ? { checkpoint: input.checkpoint } : { rollbackLastTurn: true });
|
|
19679
19924
|
}
|
|
19680
|
-
const choice =
|
|
19925
|
+
const choice = model2 ? await resolveGatewayModel(transport, model2) : null;
|
|
19681
19926
|
const response = await transport.request(nativeRef ? "session.resume" : "session.create", nativeRef ? { session_id: nativeRef.nativeSessionId, eager_build: true, omit_messages: true } : {
|
|
19682
19927
|
cwd: input.cwd,
|
|
19683
19928
|
close_on_disconnect: true,
|
|
@@ -19705,8 +19950,8 @@ async function openGatewaySession(input, transport, onSettle, inheritedPermissio
|
|
|
19705
19950
|
const physicalId = await bridge.history.resolvePhysicalSessionId();
|
|
19706
19951
|
if (gatewayString(info.stored_session_id) !== physicalId)
|
|
19707
19952
|
throw new Error("Hermes live Session and persisted history identities differ");
|
|
19708
|
-
if (
|
|
19709
|
-
await bridge.setModel(
|
|
19953
|
+
if (model2)
|
|
19954
|
+
await bridge.setModel(model2);
|
|
19710
19955
|
if (input.kind !== "fork" && input.thinkingOptionId)
|
|
19711
19956
|
await bridge.setThinking(input.thinkingOptionId);
|
|
19712
19957
|
const desiredMode = input.kind === "create" && input.executionPolicy === "unattended-full-access" ? "dont_ask" : mode;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">
|
|
2
|
+
<rect width="40" height="40" rx="10" fill="#000000"/>
|
|
3
|
+
<path d="M31.6957 7.11414C32.8305 7.11414 33.7505 8.0341 33.7505 9.16893V9.16893C33.7505 10.3038 32.8305 11.2237 31.6957 11.2237L29.8826 11.2237C29.7491 11.2237 29.6409 11.1155 29.6409 10.982L29.6409 9.16893C29.6409 8.0341 30.5609 7.11414 31.6957 7.11414Z" fill="#1783FF"/>
|
|
4
|
+
<path d="M20.1757 19.0798L27.9302 11.3864C28.0761 11.2413 27.9939 10.9498 27.8056 10.9498H23.633C23.5877 10.9498 23.5438 10.9683 23.5084 11.0038L15.1533 19.2911C15.023 19.4192 14.8304 19.305 14.8304 19.0998V11.1951C14.8304 11.0593 14.7411 10.9498 14.6321 10.9498H11.7569C11.6478 10.9498 11.5586 11.0593 11.5586 11.1951V28.2387C11.5586 28.3745 11.6478 28.484 11.7569 28.484H14.6321C14.7411 28.484 14.8304 28.3745 14.8304 28.2387V24.7661C14.8304 24.6921 14.8573 24.6211 14.904 24.5748L17.4945 22.0047C17.5568 21.943 17.6432 21.9337 17.7126 21.98L24.6414 27.0786C25.7759 27.8423 27.0436 28.3112 28.331 28.4501C28.4458 28.4624 28.5449 28.3483 28.5449 28.2048V24.9343C28.5449 24.8093 28.4698 24.7075 28.3693 24.6921C27.6115 24.5733 26.8722 24.2802 26.2037 23.8297L20.2054 19.487C20.0808 19.4037 20.0652 19.1893 20.1757 19.0798Z" fill="#FFFFFF"/>
|
|
5
|
+
</svg>
|
|
@@ -3,9 +3,32 @@
|
|
|
3
3
|
"id": "kimi-code",
|
|
4
4
|
"name": "Kimi Code",
|
|
5
5
|
"version": "0.1.0",
|
|
6
|
+
"installation": {
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
10
|
+
"command": "curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"terminal": "Windows · PowerShell",
|
|
14
|
+
"command": "irm https://code.kimi.com/kimi-code/install.ps1 | iex"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"before": {
|
|
18
|
+
"en": "On Windows, install Git for Windows first.",
|
|
19
|
+
"zh-CN": "Windows 请先安装 Git for Windows。"
|
|
20
|
+
},
|
|
21
|
+
"after": {
|
|
22
|
+
"en": "After installation, run kimi to complete login or setup.",
|
|
23
|
+
"zh-CN": "安装后运行 kimi,完成登录或配置。"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
6
26
|
"links": {
|
|
7
|
-
"
|
|
27
|
+
"website": "https://code.kimi.com/",
|
|
28
|
+
"documentation": "https://moonshotai.github.io/kimi-code/en/reference/kimi-acp.html",
|
|
29
|
+
"installation": "https://moonshotai.github.io/kimi-code/en/guides/getting-started.html"
|
|
8
30
|
},
|
|
9
31
|
"adapterApiVersion": 1,
|
|
10
|
-
"entry": "plugin.mjs"
|
|
32
|
+
"entry": "plugin.mjs",
|
|
33
|
+
"icon": "./assets/icon.svg"
|
|
11
34
|
}
|