@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
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
"id": "antigravity",
|
|
4
4
|
"name": "Antigravity CLI",
|
|
5
5
|
"version": "0.0.0",
|
|
6
|
+
"installation": {
|
|
7
|
+
"commands": [
|
|
8
|
+
{
|
|
9
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
10
|
+
"command": "curl -fsSL https://antigravity.google/cli/install.sh | bash"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"terminal": "Windows · PowerShell",
|
|
14
|
+
"command": "irm https://antigravity.google/cli/install.ps1 | iex"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"after": {
|
|
18
|
+
"en": "After installation, run agy to complete login or setup.",
|
|
19
|
+
"zh-CN": "安装后运行 agy,完成登录或配置。"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
6
22
|
"links": {
|
|
7
|
-
"
|
|
23
|
+
"website": "https://antigravity.google/",
|
|
24
|
+
"installation": "https://antigravity.google/download#antigravity-cli"
|
|
8
25
|
},
|
|
9
26
|
"adapterApiVersion": 1,
|
|
10
27
|
"entry": "plugin.mjs",
|
|
@@ -5053,8 +5053,8 @@ function az_default() {
|
|
|
5053
5053
|
}
|
|
5054
5054
|
|
|
5055
5055
|
// ../../../node_modules/zod/v4/locales/be.js
|
|
5056
|
-
function getBelarusianPlural(
|
|
5057
|
-
const absCount = Math.abs(
|
|
5056
|
+
function getBelarusianPlural(count2, one, few, many) {
|
|
5057
|
+
const absCount = Math.abs(count2);
|
|
5058
5058
|
const lastDigit = absCount % 10;
|
|
5059
5059
|
const lastTwoDigits = absCount % 100;
|
|
5060
5060
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -7132,8 +7132,8 @@ function hu_default() {
|
|
|
7132
7132
|
}
|
|
7133
7133
|
|
|
7134
7134
|
// ../../../node_modules/zod/v4/locales/hy.js
|
|
7135
|
-
function getArmenianPlural(
|
|
7136
|
-
return Math.abs(
|
|
7135
|
+
function getArmenianPlural(count2, one, many) {
|
|
7136
|
+
return Math.abs(count2) === 1 ? one : many;
|
|
7137
7137
|
}
|
|
7138
7138
|
function withDefiniteArticle(word) {
|
|
7139
7139
|
if (!word)
|
|
@@ -9261,8 +9261,8 @@ function ro_default() {
|
|
|
9261
9261
|
}
|
|
9262
9262
|
|
|
9263
9263
|
// ../../../node_modules/zod/v4/locales/ru.js
|
|
9264
|
-
function getRussianPlural(
|
|
9265
|
-
const absCount = Math.abs(
|
|
9264
|
+
function getRussianPlural(count2, one, few, many) {
|
|
9265
|
+
const absCount = Math.abs(count2);
|
|
9266
9266
|
const lastDigit = absCount % 10;
|
|
9267
9267
|
const lastTwoDigits = absCount % 100;
|
|
9268
9268
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -14931,6 +14931,15 @@ function date4(params) {
|
|
|
14931
14931
|
// ../../../node_modules/zod/v4/classic/external.js
|
|
14932
14932
|
config(en_default());
|
|
14933
14933
|
|
|
14934
|
+
// ../../shared-contracts/dist/delegation-read.js
|
|
14935
|
+
var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
|
|
14936
|
+
var delegationReadParamsSchema = external_exports.strictObject({
|
|
14937
|
+
threadId: external_exports.string().min(1).max(1024),
|
|
14938
|
+
view: external_exports.enum(["result", "messages"]),
|
|
14939
|
+
cursor: external_exports.string().min(1).max(8192).optional(),
|
|
14940
|
+
limit: external_exports.number().int().min(1).max(100).optional()
|
|
14941
|
+
});
|
|
14942
|
+
|
|
14934
14943
|
// ../../shared-contracts/dist/credential-imports.js
|
|
14935
14944
|
var credentialSourceSchema = external_exports.object({
|
|
14936
14945
|
id: external_exports.string().min(1).max(256),
|
|
@@ -15001,6 +15010,153 @@ var harnessDisplaySetSchema = external_exports.strictObject({
|
|
|
15001
15010
|
initializeOnly: external_exports.boolean().optional()
|
|
15002
15011
|
});
|
|
15003
15012
|
|
|
15013
|
+
// ../../shared-contracts/dist/model-price-overrides.js
|
|
15014
|
+
var usdPerMillionTokens = external_exports.number().finite().nonnegative();
|
|
15015
|
+
var modelPriceOverrideSchema = external_exports.strictObject({
|
|
15016
|
+
input: usdPerMillionTokens,
|
|
15017
|
+
output: usdPerMillionTokens,
|
|
15018
|
+
cacheRead: usdPerMillionTokens.optional(),
|
|
15019
|
+
cacheWrite: usdPerMillionTokens.optional(),
|
|
15020
|
+
cacheWrite1h: usdPerMillionTokens.optional()
|
|
15021
|
+
});
|
|
15022
|
+
var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
|
|
15023
|
+
var modelPriceOverridesSchema = external_exports.strictObject({
|
|
15024
|
+
/** Absolute path of the Host's `pricing.json`. */
|
|
15025
|
+
path: external_exports.string(),
|
|
15026
|
+
entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
|
|
15027
|
+
/** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
|
|
15028
|
+
error: external_exports.string().nullable()
|
|
15029
|
+
});
|
|
15030
|
+
var modelPriceOverridesGetSchema = external_exports.strictObject({});
|
|
15031
|
+
var modelPriceOverridesSetSchema = external_exports.strictObject({
|
|
15032
|
+
key: modelPriceKeySchema,
|
|
15033
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15034
|
+
previousKey: modelPriceKeySchema.optional()
|
|
15035
|
+
});
|
|
15036
|
+
var modelPriceDefaultParamsSchema = external_exports.strictObject({
|
|
15037
|
+
model: modelPriceKeySchema
|
|
15038
|
+
});
|
|
15039
|
+
var modelPriceSuggestionSchema = external_exports.strictObject({
|
|
15040
|
+
/** Verified from catalog canonical links, not inferred from names or equal prices. */
|
|
15041
|
+
official: external_exports.boolean().optional(),
|
|
15042
|
+
canonicalModelId: external_exports.string().min(1).optional(),
|
|
15043
|
+
provider: external_exports.string().min(1).max(512),
|
|
15044
|
+
model: external_exports.string().min(1).max(512),
|
|
15045
|
+
price: modelPriceOverrideSchema
|
|
15046
|
+
});
|
|
15047
|
+
var modelPriceDefaultResultSchema = external_exports.strictObject({
|
|
15048
|
+
price: modelPriceOverrideSchema.nullable(),
|
|
15049
|
+
/** Local catalog suggestions only; never used automatically for pricing. */
|
|
15050
|
+
suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
|
|
15051
|
+
});
|
|
15052
|
+
|
|
15053
|
+
// ../../shared-contracts/dist/usage-statistics.js
|
|
15054
|
+
var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
|
|
15055
|
+
var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15056
|
+
var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
|
|
15057
|
+
var harness = external_exports.string().min(1).max(128);
|
|
15058
|
+
var model = external_exports.string().min(1).max(512);
|
|
15059
|
+
var project = external_exports.string().min(1).max(4096);
|
|
15060
|
+
var usageStatisticsParamsSchema = external_exports.strictObject({
|
|
15061
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15062
|
+
harness: harness.optional(),
|
|
15063
|
+
model: model.nullable().optional(),
|
|
15064
|
+
project: project.nullable().optional(),
|
|
15065
|
+
/** One local date inside the range. */
|
|
15066
|
+
date: localDate.optional()
|
|
15067
|
+
});
|
|
15068
|
+
var usageStatisticsTotalsSchema = external_exports.strictObject({
|
|
15069
|
+
requests: count,
|
|
15070
|
+
inputTokens: count,
|
|
15071
|
+
cachedInputTokens: count,
|
|
15072
|
+
cacheWriteInputTokens: count,
|
|
15073
|
+
cacheKnownInputTokens: count,
|
|
15074
|
+
outputTokens: count,
|
|
15075
|
+
reasoningOutputTokens: count,
|
|
15076
|
+
/** USD at the public price, summed over the priced requests only. */
|
|
15077
|
+
costUsd: external_exports.number().finite().min(0),
|
|
15078
|
+
/** Requests without a price (or the cache data the price needs); not in `costUsd`. */
|
|
15079
|
+
unpricedRequests: count,
|
|
15080
|
+
/**
|
|
15081
|
+
* Requests whose storage gave no token counts: counted as requests, with neither tokens nor
|
|
15082
|
+
* cost, and not as unpriced.
|
|
15083
|
+
*/
|
|
15084
|
+
unmeteredRequests: count
|
|
15085
|
+
});
|
|
15086
|
+
var totals = usageStatisticsTotalsSchema.shape;
|
|
15087
|
+
var usageStatisticsSessionSchema = external_exports.strictObject({
|
|
15088
|
+
harness,
|
|
15089
|
+
sessionId: external_exports.string().min(1).max(512),
|
|
15090
|
+
project: project.nullable(),
|
|
15091
|
+
/** Models the session used, most requests first. */
|
|
15092
|
+
models: external_exports.array(model).max(16),
|
|
15093
|
+
firstAtMs: count,
|
|
15094
|
+
lastAtMs: count,
|
|
15095
|
+
...totals
|
|
15096
|
+
});
|
|
15097
|
+
var usageStatisticsResultSchema = external_exports.strictObject({
|
|
15098
|
+
range: external_exports.enum(USAGE_STATISTICS_RANGES),
|
|
15099
|
+
/** First local date of the range; null for all time. */
|
|
15100
|
+
from: localDate.nullable(),
|
|
15101
|
+
to: localDate,
|
|
15102
|
+
/** The filters these figures apply, echoed so a late answer to older filters is recognised. */
|
|
15103
|
+
filters: external_exports.strictObject({
|
|
15104
|
+
harness: harness.nullable(),
|
|
15105
|
+
model: model.nullable(),
|
|
15106
|
+
unknownModel: external_exports.boolean(),
|
|
15107
|
+
project: project.nullable(),
|
|
15108
|
+
unknownProject: external_exports.boolean(),
|
|
15109
|
+
date: localDate.nullable()
|
|
15110
|
+
}),
|
|
15111
|
+
/** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
|
|
15112
|
+
reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
|
|
15113
|
+
/** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
|
|
15114
|
+
failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
|
|
15115
|
+
/** Every value seen in the range, ignoring the filters, to choose filters from. */
|
|
15116
|
+
options: external_exports.strictObject({
|
|
15117
|
+
harnesses: external_exports.array(harness).max(256),
|
|
15118
|
+
models: external_exports.array(model.nullable()).max(4096),
|
|
15119
|
+
projects: external_exports.array(project.nullable()).max(4096)
|
|
15120
|
+
}),
|
|
15121
|
+
/** Current display metadata, scoped by Harness. Never a pricing or filter identity.
|
|
15122
|
+
* Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
|
|
15123
|
+
*/
|
|
15124
|
+
modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
|
|
15125
|
+
/** Native credits, all filters applied, never combined across Harnesses or treated as USD.
|
|
15126
|
+
* Only groups with at least one reported value appear; reportedRequests exposes partial data.
|
|
15127
|
+
*/
|
|
15128
|
+
credits: external_exports.array(external_exports.strictObject({
|
|
15129
|
+
harness,
|
|
15130
|
+
model: model.nullable(),
|
|
15131
|
+
credits: external_exports.number().finite().min(0),
|
|
15132
|
+
reportedRequests: count,
|
|
15133
|
+
requests: count
|
|
15134
|
+
})).max(4096).optional(),
|
|
15135
|
+
/** All filters applied. */
|
|
15136
|
+
totals: usageStatisticsTotalsSchema,
|
|
15137
|
+
/** Each date and Harness of the range: every filter except the day. */
|
|
15138
|
+
daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
|
|
15139
|
+
/** Local weekday (0 = Sunday) and hour, all filters applied. */
|
|
15140
|
+
hourly: external_exports.array(external_exports.strictObject({
|
|
15141
|
+
weekday: external_exports.number().int().min(0).max(6),
|
|
15142
|
+
hour: external_exports.number().int().min(0).max(23),
|
|
15143
|
+
...totals
|
|
15144
|
+
})).max(168),
|
|
15145
|
+
byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
|
|
15146
|
+
byModel: external_exports.array(external_exports.strictObject({
|
|
15147
|
+
model: model.nullable(),
|
|
15148
|
+
...totals,
|
|
15149
|
+
/** Requests priced by what the Harness recorded they cost, not by a price list. */
|
|
15150
|
+
harnessPricedRequests: count
|
|
15151
|
+
})).max(4096),
|
|
15152
|
+
byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
|
|
15153
|
+
/**
|
|
15154
|
+
* The sessions that spent the most, by cost and by tokens without cache, all filters applied;
|
|
15155
|
+
* requests without a native session are not listed here but count everywhere else.
|
|
15156
|
+
*/
|
|
15157
|
+
sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
|
|
15158
|
+
});
|
|
15159
|
+
|
|
15004
15160
|
// ../../shared-contracts/dist/ids.js
|
|
15005
15161
|
var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
|
|
15006
15162
|
message: "Identifier must not be empty or whitespace"
|
|
@@ -15022,13 +15178,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
|
|
|
15022
15178
|
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);
|
|
15023
15179
|
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");
|
|
15024
15180
|
var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
|
|
15181
|
+
var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
|
|
15182
|
+
var harnessInstallationGuideSchema = external_exports.object({
|
|
15183
|
+
commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
|
|
15184
|
+
before: localizedTextSchema.optional(),
|
|
15185
|
+
after: localizedTextSchema.optional(),
|
|
15186
|
+
downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
|
|
15187
|
+
}).strict();
|
|
15025
15188
|
var pluginPresentationShape = {
|
|
15026
15189
|
id: harnessPluginIdSchema,
|
|
15027
15190
|
name: external_exports.string().trim().min(1).max(128),
|
|
15028
15191
|
version: external_exports.string().min(1).max(128),
|
|
15192
|
+
/** Capability-only plugin; omitted for existing session-capable plugins. */
|
|
15193
|
+
kind: external_exports.literal("usage").optional(),
|
|
15194
|
+
/** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
|
|
15195
|
+
iconStyle: external_exports.object({
|
|
15196
|
+
vector: external_exports.object({
|
|
15197
|
+
viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
|
|
15198
|
+
color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
|
|
15199
|
+
paths: external_exports.array(external_exports.object({
|
|
15200
|
+
d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
|
|
15201
|
+
fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
|
|
15202
|
+
fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
|
|
15203
|
+
}).strict()).min(1).max(32)
|
|
15204
|
+
}).strict().optional(),
|
|
15205
|
+
background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
|
|
15206
|
+
borderRadius: external_exports.number().min(0).max(50).optional(),
|
|
15207
|
+
paddingRatio: external_exports.number().min(0).max(0.25).optional()
|
|
15208
|
+
}).strict().optional(),
|
|
15209
|
+
installation: harnessInstallationGuideSchema.optional(),
|
|
15210
|
+
notice: localizedTextSchema.optional(),
|
|
15029
15211
|
/** The factory accepts a persisted local entrypoint through its construction context. */
|
|
15030
15212
|
launchCommand: external_exports.literal(true).optional(),
|
|
15031
15213
|
links: external_exports.object({
|
|
15214
|
+
website: documentationUrlSchema.optional(),
|
|
15032
15215
|
documentation: documentationUrlSchema.optional(),
|
|
15033
15216
|
installation: documentationUrlSchema.optional()
|
|
15034
15217
|
}).strict().optional()
|
|
@@ -15105,6 +15288,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
|
|
|
15105
15288
|
"codexhost/account/list",
|
|
15106
15289
|
"codexhost/account/refresh",
|
|
15107
15290
|
"codexhost/account/usage/inspect",
|
|
15291
|
+
"codexhost/usage/model-prices/get",
|
|
15292
|
+
"codexhost/usage/model-prices/set",
|
|
15293
|
+
"codexhost/usage/model-prices/default",
|
|
15294
|
+
"codexhost/usage/statistics/get",
|
|
15108
15295
|
"codexhost/update/check",
|
|
15109
15296
|
"codexhost/update/start",
|
|
15110
15297
|
"codexhost/update/status"
|
|
@@ -15169,6 +15356,7 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15169
15356
|
cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15170
15357
|
outputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15171
15358
|
outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15359
|
+
apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
|
|
15172
15360
|
reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15173
15361
|
totalTokens: nonNegativeSafeIntegerSchema.optional(),
|
|
15174
15362
|
totalCostUsd: finiteNonNegativeNumberSchema.optional(),
|
|
@@ -15180,7 +15368,11 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15180
15368
|
planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15181
15369
|
planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15182
15370
|
planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
|
|
15183
|
-
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
|
|
15371
|
+
planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
|
|
15372
|
+
sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
|
|
15373
|
+
timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
|
|
15374
|
+
costSource: external_exports.enum(["publicPrice", "native"]).optional(),
|
|
15375
|
+
unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
|
|
15184
15376
|
}).strict().superRefine((usage, context) => {
|
|
15185
15377
|
if (Object.keys(usage).length === 0) {
|
|
15186
15378
|
context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
|
|
@@ -15201,6 +15393,20 @@ var threadUsageSnapshotSchema = external_exports.object({
|
|
|
15201
15393
|
path: ["contextWindowTokens"]
|
|
15202
15394
|
});
|
|
15203
15395
|
}
|
|
15396
|
+
if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
|
|
15397
|
+
context.addIssue({
|
|
15398
|
+
code: "custom",
|
|
15399
|
+
message: "Thread Usage costSource must be provided with totalCostUsd",
|
|
15400
|
+
path: ["costSource"]
|
|
15401
|
+
});
|
|
15402
|
+
}
|
|
15403
|
+
if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
|
|
15404
|
+
context.addIssue({
|
|
15405
|
+
code: "custom",
|
|
15406
|
+
message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
|
|
15407
|
+
path: ["unpricedModels"]
|
|
15408
|
+
});
|
|
15409
|
+
}
|
|
15204
15410
|
if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
|
|
15205
15411
|
context.addIssue({
|
|
15206
15412
|
code: "custom",
|
|
@@ -15470,27 +15676,27 @@ var harnessModelCatalogSchema = external_exports.object({
|
|
|
15470
15676
|
}).strict().superRefine((catalog, context) => {
|
|
15471
15677
|
const refs = /* @__PURE__ */ new Set();
|
|
15472
15678
|
const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
|
|
15473
|
-
for (const [index,
|
|
15474
|
-
if (refs.has(
|
|
15679
|
+
for (const [index, model2] of catalog.models.entries()) {
|
|
15680
|
+
if (refs.has(model2.ref.id)) {
|
|
15475
15681
|
context.addIssue({
|
|
15476
15682
|
code: "custom",
|
|
15477
15683
|
message: "Model Catalog refs must be unique",
|
|
15478
15684
|
path: ["models", index, "ref", "id"]
|
|
15479
15685
|
});
|
|
15480
15686
|
}
|
|
15481
|
-
refs.add(
|
|
15482
|
-
if (
|
|
15483
|
-
if (refs.has(
|
|
15687
|
+
refs.add(model2.ref.id);
|
|
15688
|
+
if (model2.fastModel) {
|
|
15689
|
+
if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
|
|
15484
15690
|
context.addIssue({
|
|
15485
15691
|
code: "custom",
|
|
15486
15692
|
message: "Fast Model refs must be distinct and unique",
|
|
15487
15693
|
path: ["models", index, "fastModel"]
|
|
15488
15694
|
});
|
|
15489
15695
|
}
|
|
15490
|
-
refs.add(
|
|
15696
|
+
refs.add(model2.fastModel.id);
|
|
15491
15697
|
}
|
|
15492
15698
|
const supportedThinkingIds = /* @__PURE__ */ new Set();
|
|
15493
|
-
for (const [optionIndex, optionId] of (
|
|
15699
|
+
for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
|
|
15494
15700
|
if (supportedThinkingIds.has(optionId)) {
|
|
15495
15701
|
context.addIssue({
|
|
15496
15702
|
code: "custom",
|
|
@@ -16084,6 +16290,11 @@ var codexSshDraftSchema = external_exports.strictObject({
|
|
|
16084
16290
|
});
|
|
16085
16291
|
var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
|
|
16086
16292
|
external_exports.strictObject({ action: external_exports.literal("list") }),
|
|
16293
|
+
external_exports.strictObject({
|
|
16294
|
+
action: external_exports.literal("read-thread"),
|
|
16295
|
+
hostId: hostId.refine((id) => id !== "local"),
|
|
16296
|
+
input: delegationReadParamsSchema
|
|
16297
|
+
}),
|
|
16087
16298
|
external_exports.strictObject({
|
|
16088
16299
|
action: external_exports.literal("save"),
|
|
16089
16300
|
draft: codexSshDraftSchema,
|
|
@@ -16207,7 +16418,6 @@ var tokenFields = [
|
|
|
16207
16418
|
"cachedInputTokens",
|
|
16208
16419
|
"cacheWriteInputTokens",
|
|
16209
16420
|
"outputTokens",
|
|
16210
|
-
"outputTokensPerSecond",
|
|
16211
16421
|
"reasoningOutputTokens",
|
|
16212
16422
|
"totalTokens",
|
|
16213
16423
|
"contextWindowTokens",
|
|
@@ -16215,10 +16425,12 @@ var tokenFields = [
|
|
|
16215
16425
|
];
|
|
16216
16426
|
var safeIntegerFields = [
|
|
16217
16427
|
"planFiveHourResetsAtUnix",
|
|
16218
|
-
"planSevenDayResetsAtUnix"
|
|
16428
|
+
"planSevenDayResetsAtUnix",
|
|
16429
|
+
"timeToFirstOutputMs"
|
|
16219
16430
|
];
|
|
16220
16431
|
var percentFields = [
|
|
16221
16432
|
"cacheHitRatePercent",
|
|
16433
|
+
"sessionCacheHitRatePercent",
|
|
16222
16434
|
"planFiveHourUsedPercent",
|
|
16223
16435
|
"planSevenDayUsedPercent"
|
|
16224
16436
|
];
|
|
@@ -16226,9 +16438,31 @@ var usageFields = /* @__PURE__ */ new Set([
|
|
|
16226
16438
|
...tokenFields,
|
|
16227
16439
|
...safeIntegerFields,
|
|
16228
16440
|
...percentFields,
|
|
16441
|
+
"sessionCacheUsage",
|
|
16229
16442
|
"totalCostUsd",
|
|
16230
16443
|
"totalCredits",
|
|
16231
|
-
"contextUsagePercent"
|
|
16444
|
+
"contextUsagePercent",
|
|
16445
|
+
"outputTokensPerSecond",
|
|
16446
|
+
"apiOutputTokensPerSecond",
|
|
16447
|
+
"costSource",
|
|
16448
|
+
"unpricedModels"
|
|
16449
|
+
]);
|
|
16450
|
+
var requestTokenFields = [
|
|
16451
|
+
"inputTokens",
|
|
16452
|
+
"cachedInputTokens",
|
|
16453
|
+
"cacheWriteInputTokens",
|
|
16454
|
+
"cacheWrite1hInputTokens",
|
|
16455
|
+
"outputTokens",
|
|
16456
|
+
"reasoningOutputTokens",
|
|
16457
|
+
"startedAtMs",
|
|
16458
|
+
"completedAtMs"
|
|
16459
|
+
];
|
|
16460
|
+
var requestFields = /* @__PURE__ */ new Set([
|
|
16461
|
+
...requestTokenFields,
|
|
16462
|
+
"requestId",
|
|
16463
|
+
"historical",
|
|
16464
|
+
"model",
|
|
16465
|
+
"provider"
|
|
16232
16466
|
]);
|
|
16233
16467
|
|
|
16234
16468
|
// dist/command.js
|
|
@@ -16393,14 +16627,14 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16393
16627
|
const file2 = historyPath(input.environment);
|
|
16394
16628
|
const nativeSessionId = input.nativeSessionId ?? null;
|
|
16395
16629
|
let turns = [];
|
|
16396
|
-
let
|
|
16630
|
+
let model2;
|
|
16397
16631
|
let thinkingOptionId;
|
|
16398
16632
|
if (file2 && nativeSessionId) {
|
|
16399
16633
|
try {
|
|
16400
16634
|
const parsed = historySchema.safeParse(JSON.parse(await readFile(file2, "utf8")));
|
|
16401
16635
|
if (parsed.success && parsed.data.nativeSessionId === nativeSessionId) {
|
|
16402
16636
|
turns = parsed.data.turns;
|
|
16403
|
-
|
|
16637
|
+
model2 = parsed.data.model;
|
|
16404
16638
|
thinkingOptionId = parsed.data.thinkingOptionId;
|
|
16405
16639
|
}
|
|
16406
16640
|
} catch {
|
|
@@ -16421,7 +16655,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16421
16655
|
file: file2,
|
|
16422
16656
|
nativeSessionId,
|
|
16423
16657
|
turns,
|
|
16424
|
-
...
|
|
16658
|
+
...model2 ? { model: model2 } : {},
|
|
16425
16659
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16426
16660
|
});
|
|
16427
16661
|
}
|
|
@@ -16503,8 +16737,8 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16503
16737
|
this.#nativeSessionId = nativeSessionId;
|
|
16504
16738
|
this.#queueWrite();
|
|
16505
16739
|
}
|
|
16506
|
-
setSelection(
|
|
16507
|
-
this.#model =
|
|
16740
|
+
setSelection(model2, thinkingOptionId) {
|
|
16741
|
+
this.#model = model2;
|
|
16508
16742
|
this.#thinkingOptionId = thinkingOptionId;
|
|
16509
16743
|
this.#queueWrite();
|
|
16510
16744
|
}
|
|
@@ -16533,7 +16767,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16533
16767
|
const file2 = this.#file;
|
|
16534
16768
|
const nativeSessionId = this.#nativeSessionId;
|
|
16535
16769
|
const turns = this.#turns.map(jsonTurn);
|
|
16536
|
-
const
|
|
16770
|
+
const model2 = this.#model;
|
|
16537
16771
|
const thinkingOptionId = this.#thinkingOptionId;
|
|
16538
16772
|
this.#write = this.#write.catch(() => void 0).then(async () => {
|
|
16539
16773
|
const directory = path5.dirname(file2);
|
|
@@ -16544,7 +16778,7 @@ var AntigravityHistory = class _AntigravityHistory {
|
|
|
16544
16778
|
formatVersion: HISTORY_VERSION,
|
|
16545
16779
|
nativeSessionId,
|
|
16546
16780
|
turns,
|
|
16547
|
-
...
|
|
16781
|
+
...model2 ? { model: model2 } : {},
|
|
16548
16782
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16549
16783
|
})}
|
|
16550
16784
|
`, { mode: 384 });
|
|
@@ -16753,14 +16987,14 @@ async function forkAntigravitySession(options) {
|
|
|
16753
16987
|
}
|
|
16754
16988
|
} : {}
|
|
16755
16989
|
}));
|
|
16756
|
-
const
|
|
16990
|
+
const model2 = sourceSession?.model ?? sourceHistory.model;
|
|
16757
16991
|
const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
|
|
16758
16992
|
const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
|
|
16759
16993
|
const forkedHistory = await AntigravityHistory.createDerived({
|
|
16760
16994
|
environment: sessionEnvironment,
|
|
16761
16995
|
nativeSessionId: derivedNativeSessionId,
|
|
16762
16996
|
turns: copiedTurns,
|
|
16763
|
-
...
|
|
16997
|
+
...model2 ? { model: model2 } : {},
|
|
16764
16998
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16765
16999
|
});
|
|
16766
17000
|
await Promise.all([
|
|
@@ -16775,7 +17009,7 @@ async function forkAntigravitySession(options) {
|
|
|
16775
17009
|
const session = createSession({
|
|
16776
17010
|
history: forkedHistory,
|
|
16777
17011
|
nativeRef: derivedNativeRef,
|
|
16778
|
-
...
|
|
17012
|
+
...model2 ? { model: model2 } : {},
|
|
16779
17013
|
...thinkingOptionId ? { thinkingOptionId } : {},
|
|
16780
17014
|
permissionMode,
|
|
16781
17015
|
cwd: input.cwd,
|
|
@@ -16857,19 +17091,19 @@ function parseAntigravityModels(output) {
|
|
|
16857
17091
|
...defaultThinkingOptionId ? { defaultThinkingOptionId } : {}
|
|
16858
17092
|
});
|
|
16859
17093
|
}
|
|
16860
|
-
function antigravityModelArguments(
|
|
16861
|
-
if (!
|
|
17094
|
+
function antigravityModelArguments(model2, thinkingOptionId) {
|
|
17095
|
+
if (!model2)
|
|
16862
17096
|
return [];
|
|
16863
|
-
const arguments_ = ["--model",
|
|
16864
|
-
if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(
|
|
17097
|
+
const arguments_ = ["--model", model2.id];
|
|
17098
|
+
if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(model2.id)) {
|
|
16865
17099
|
arguments_.push("--effort", thinkingOptionId);
|
|
16866
17100
|
}
|
|
16867
17101
|
return arguments_;
|
|
16868
17102
|
}
|
|
16869
|
-
function antigravityAvailableThinkingOptions(catalog,
|
|
16870
|
-
if (!catalog || !
|
|
17103
|
+
function antigravityAvailableThinkingOptions(catalog, model2) {
|
|
17104
|
+
if (!catalog || !model2)
|
|
16871
17105
|
return void 0;
|
|
16872
|
-
const supported = catalog.models.find(({ ref }) => ref.id ===
|
|
17106
|
+
const supported = catalog.models.find(({ ref }) => ref.id === model2.id)?.supportedThinkingOptionIds;
|
|
16873
17107
|
if (!supported)
|
|
16874
17108
|
return void 0;
|
|
16875
17109
|
const options = supported.flatMap((id) => {
|
|
@@ -16967,14 +17201,14 @@ async function rollbackAntigravityLastTurn(options) {
|
|
|
16967
17201
|
}
|
|
16968
17202
|
} : {}
|
|
16969
17203
|
}));
|
|
16970
|
-
const
|
|
17204
|
+
const model2 = sourceSession?.model ?? sourceHistory.model;
|
|
16971
17205
|
const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
|
|
16972
17206
|
const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
|
|
16973
17207
|
const rolledBackHistory = await AntigravityHistory.createDerived({
|
|
16974
17208
|
environment: sessionEnvironment,
|
|
16975
17209
|
nativeSessionId: derivedNativeSessionId,
|
|
16976
17210
|
turns: mappedTurns,
|
|
16977
|
-
...
|
|
17211
|
+
...model2 ? { model: model2 } : {},
|
|
16978
17212
|
...thinkingOptionId ? { thinkingOptionId } : {}
|
|
16979
17213
|
});
|
|
16980
17214
|
await Promise.all([
|
|
@@ -16989,7 +17223,7 @@ async function rollbackAntigravityLastTurn(options) {
|
|
|
16989
17223
|
const session = createSession({
|
|
16990
17224
|
history: rolledBackHistory,
|
|
16991
17225
|
nativeRef: derivedNativeRef,
|
|
16992
|
-
...
|
|
17226
|
+
...model2 ? { model: model2 } : {},
|
|
16993
17227
|
...thinkingOptionId ? { thinkingOptionId } : {},
|
|
16994
17228
|
permissionMode,
|
|
16995
17229
|
cwd: input.cwd,
|
|
@@ -19870,10 +20104,10 @@ var AntigravityAdapter = class {
|
|
|
19870
20104
|
...nativeRef ? { nativeSessionId: nativeRef.nativeSessionId } : {},
|
|
19871
20105
|
...input.kind === "resume" && input.knownTurnRefs ? { knownTurnRefs: input.knownTurnRefs } : {}
|
|
19872
20106
|
});
|
|
19873
|
-
const
|
|
20107
|
+
const model2 = (input.kind === "create" ? input.model : void 0) ?? history.model;
|
|
19874
20108
|
const thinkingOptionId = (input.kind === "create" ? input.thinkingOptionId : void 0) ?? history.thinkingOptionId;
|
|
19875
20109
|
if (thinkingOptionId) {
|
|
19876
|
-
const available = antigravityAvailableThinkingOptions(catalog,
|
|
20110
|
+
const available = antigravityAvailableThinkingOptions(catalog, model2);
|
|
19877
20111
|
if (!available?.some(({ id }) => id === thinkingOptionId)) {
|
|
19878
20112
|
return {
|
|
19879
20113
|
ok: false,
|
|
@@ -19885,15 +20119,15 @@ var AntigravityAdapter = class {
|
|
|
19885
20119
|
};
|
|
19886
20120
|
}
|
|
19887
20121
|
}
|
|
19888
|
-
if (
|
|
19889
|
-
history.setSelection(
|
|
20122
|
+
if (model2 || thinkingOptionId)
|
|
20123
|
+
history.setSelection(model2, thinkingOptionId);
|
|
19890
20124
|
const session = new AntigravitySession({
|
|
19891
20125
|
...catalog ? { catalog } : {},
|
|
19892
20126
|
cwd: input.cwd,
|
|
19893
20127
|
environment: sessionEnvironment,
|
|
19894
20128
|
executable,
|
|
19895
20129
|
history,
|
|
19896
|
-
...
|
|
20130
|
+
...model2 ? { model: model2 } : {},
|
|
19897
20131
|
...nativeRef ? { nativeRef } : {},
|
|
19898
20132
|
permissionMode,
|
|
19899
20133
|
printTimeout: this.#printTimeout,
|
|
@@ -3,7 +3,35 @@
|
|
|
3
3
|
"id": "claude-code",
|
|
4
4
|
"name": "Claude Code",
|
|
5
5
|
"version": "0.0.0",
|
|
6
|
+
"iconStyle": {
|
|
7
|
+
"vector": {
|
|
8
|
+
"viewBox": "0 0 24 24",
|
|
9
|
+
"color": "#d97757",
|
|
10
|
+
"paths": [
|
|
11
|
+
{
|
|
12
|
+
"d": "M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"installation": {
|
|
18
|
+
"commands": [
|
|
19
|
+
{
|
|
20
|
+
"terminal": "macOS / Linux · Terminal (sh/bash)",
|
|
21
|
+
"command": "curl -fsSL https://claude.ai/install.sh | bash"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"terminal": "Windows · PowerShell",
|
|
25
|
+
"command": "irm https://claude.ai/install.ps1 | iex"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"after": {
|
|
29
|
+
"en": "After installation, run claude to complete login or setup.",
|
|
30
|
+
"zh-CN": "安装后运行 claude,完成登录或配置。"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
6
33
|
"links": {
|
|
34
|
+
"website": "https://code.claude.com/",
|
|
7
35
|
"installation": "https://code.claude.com/docs/en/quickstart"
|
|
8
36
|
},
|
|
9
37
|
"adapterApiVersion": 1,
|