@liberseek/boft-cli-win32-arm64 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.
Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.txt +9 -1
  3. package/app/codexhost-distribution.json +1 -1
  4. package/app/console-server.mjs +322 -67
  5. package/app/console-web.js +9202 -5218
  6. package/app/desktop-controller.mjs +259 -42
  7. package/app/host-runtime.mjs +6250 -1689
  8. package/app/plugins/antigravity/manifest.json +18 -1
  9. package/app/plugins/antigravity/plugin.mjs +283 -42
  10. package/app/plugins/claude-code/manifest.json +28 -0
  11. package/app/plugins/claude-code/plugin.mjs +35676 -24151
  12. package/app/plugins/codebuddy/manifest.json +17 -0
  13. package/app/plugins/codebuddy/plugin.mjs +5972 -5356
  14. package/app/plugins/codex-usage/manifest.json +9 -0
  15. package/app/plugins/codex-usage/plugin.mjs +17386 -0
  16. package/app/plugins/cursor-cli/manifest.json +18 -1
  17. package/app/plugins/cursor-cli/plugin.mjs +358 -77
  18. package/app/plugins/deepseek-harness/assets/icon.svg +1 -0
  19. package/app/plugins/deepseek-harness/manifest.json +35 -2
  20. package/app/plugins/deepseek-harness/plugin.mjs +823 -242
  21. package/app/plugins/enabled.json +2 -1
  22. package/app/plugins/grok/manifest.json +21 -1
  23. package/app/plugins/grok/plugin.mjs +933 -268
  24. package/app/plugins/hermes/assets/icon.png +0 -0
  25. package/app/plugins/hermes/manifest.json +30 -2
  26. package/app/plugins/hermes/plugin.mjs +469 -73
  27. package/app/plugins/kimi-code/assets/icon.svg +5 -0
  28. package/app/plugins/kimi-code/manifest.json +25 -2
  29. package/app/plugins/kimi-code/plugin.mjs +562 -36
  30. package/app/plugins/kiro-cli/assets/kiro-agent.svg +11 -0
  31. package/app/plugins/kiro-cli/manifest.json +18 -1
  32. package/app/plugins/kiro-cli/plugin.mjs +291 -22
  33. package/app/plugins/muse/manifest.json +18 -1
  34. package/app/plugins/muse/plugin.mjs +258 -17
  35. package/app/plugins/omp/manifest.json +21 -1
  36. package/app/plugins/omp/plugin.mjs +2763 -1958
  37. package/app/plugins/opencode/manifest.json +18 -1
  38. package/app/plugins/opencode/plugin.mjs +724 -147
  39. package/app/plugins/pi/manifest.json +32 -0
  40. package/app/plugins/pi/plugin.mjs +2908 -2312
  41. package/app/plugins/qoder/manifest.json +18 -1
  42. package/app/plugins/qoder/plugin.mjs +635 -81
  43. package/app/plugins/qoder-cn/manifest.json +18 -1
  44. package/app/plugins/qoder-cn/plugin.mjs +635 -81
  45. package/app/plugins/workbuddy/manifest.json +18 -0
  46. package/app/plugins/workbuddy/plugin.mjs +6362 -5748
  47. package/app/plugins/zcode/manifest.json +19 -1
  48. package/app/plugins/zcode/plugin.mjs +1117 -278
  49. package/app/renderer-extension.js +14675 -10087
  50. package/bin/boft.exe +0 -0
  51. package/libexec/boft-node-repl.exe +0 -0
  52. package/libexec/boft-shim.exe +0 -0
  53. package/libexec/boft-updater.exe +0 -0
  54. package/licenses/Cordis-LICENSE.txt +21 -0
  55. package/licenses/Cosmokit-LICENSE.txt +21 -0
  56. package/package.json +4 -4
  57. 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
- "installation": "https://antigravity.google/product/antigravity-cli"
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(count, one, few, many) {
5057
- const absCount = Math.abs(count);
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(count, one, many) {
7136
- return Math.abs(count) === 1 ? one : many;
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(count, one, few, many) {
9265
- const absCount = Math.abs(count);
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,160 @@ 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
+ /** Persisted Desktop title for a mapped Session, otherwise its native name; may be absent. */
15092
+ title: external_exports.string().min(1).max(200).optional(),
15093
+ /** Models the session used, most requests first. */
15094
+ models: external_exports.array(model).max(16),
15095
+ firstAtMs: count,
15096
+ lastAtMs: count,
15097
+ ...totals
15098
+ });
15099
+ var usageStatisticsResultSchema = external_exports.strictObject({
15100
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
15101
+ /** First local date of the range; null for all time. */
15102
+ from: localDate.nullable(),
15103
+ to: localDate,
15104
+ /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
15105
+ filters: external_exports.strictObject({
15106
+ harness: harness.nullable(),
15107
+ model: model.nullable(),
15108
+ unknownModel: external_exports.boolean(),
15109
+ project: project.nullable(),
15110
+ unknownProject: external_exports.boolean(),
15111
+ date: localDate.nullable()
15112
+ }),
15113
+ /** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
15114
+ reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
15115
+ /** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
15116
+ failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
15117
+ /** Every value seen in the range, ignoring the filters, to choose filters from. */
15118
+ options: external_exports.strictObject({
15119
+ harnesses: external_exports.array(harness).max(256),
15120
+ models: external_exports.array(model.nullable()).max(4096),
15121
+ projects: external_exports.array(project.nullable()).max(4096)
15122
+ }),
15123
+ /** Current display metadata, scoped by Harness. Never a pricing or filter identity.
15124
+ * Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
15125
+ */
15126
+ modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
15127
+ /** Native credits, all filters applied, never combined across Harnesses or treated as USD.
15128
+ * Only groups with at least one reported value appear; reportedRequests exposes partial data.
15129
+ */
15130
+ credits: external_exports.array(external_exports.strictObject({
15131
+ harness,
15132
+ model: model.nullable(),
15133
+ credits: external_exports.number().finite().min(0),
15134
+ reportedRequests: count,
15135
+ requests: count
15136
+ })).max(4096).optional(),
15137
+ /** All filters applied. */
15138
+ totals: usageStatisticsTotalsSchema,
15139
+ /** Each date and Harness of the range: every filter except the day. */
15140
+ daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
15141
+ /** Local weekday (0 = Sunday) and hour, all filters applied. */
15142
+ hourly: external_exports.array(external_exports.strictObject({
15143
+ weekday: external_exports.number().int().min(0).max(6),
15144
+ hour: external_exports.number().int().min(0).max(23),
15145
+ ...totals
15146
+ })).max(168),
15147
+ byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
15148
+ byModel: external_exports.array(external_exports.strictObject({
15149
+ model: model.nullable(),
15150
+ ...totals,
15151
+ /** Requests priced by what the Harness recorded they cost, not by a price list. */
15152
+ harnessPricedRequests: count
15153
+ })).max(4096),
15154
+ byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
15155
+ /**
15156
+ * The sessions that spent the most, by cost and by tokens without cache, all filters applied;
15157
+ * requests without a native session are not listed here but count everywhere else.
15158
+ */
15159
+ sessions: external_exports.array(usageStatisticsSessionSchema).max(100),
15160
+ /**
15161
+ * The sessions last active in the range, newest first, all filters applied. Optional for older
15162
+ * Hosts; missing is treated as no list rather than no sessions.
15163
+ */
15164
+ recentSessions: external_exports.array(usageStatisticsSessionSchema).max(100).optional()
15165
+ });
15166
+
15004
15167
  // ../../shared-contracts/dist/ids.js
15005
15168
  var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
15006
15169
  message: "Identifier must not be empty or whitespace"
@@ -15022,13 +15185,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
15022
15185
  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
15186
  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
15187
  var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
15188
+ var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
15189
+ var harnessInstallationGuideSchema = external_exports.object({
15190
+ commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
15191
+ before: localizedTextSchema.optional(),
15192
+ after: localizedTextSchema.optional(),
15193
+ downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
15194
+ }).strict();
15025
15195
  var pluginPresentationShape = {
15026
15196
  id: harnessPluginIdSchema,
15027
15197
  name: external_exports.string().trim().min(1).max(128),
15028
15198
  version: external_exports.string().min(1).max(128),
15199
+ /** Capability-only plugin; omitted for existing session-capable plugins. */
15200
+ kind: external_exports.literal("usage").optional(),
15201
+ /** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
15202
+ iconStyle: external_exports.object({
15203
+ vector: external_exports.object({
15204
+ viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
15205
+ color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
15206
+ paths: external_exports.array(external_exports.object({
15207
+ d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
15208
+ fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
15209
+ fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
15210
+ }).strict()).min(1).max(32)
15211
+ }).strict().optional(),
15212
+ background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
15213
+ borderRadius: external_exports.number().min(0).max(50).optional(),
15214
+ paddingRatio: external_exports.number().min(0).max(0.25).optional()
15215
+ }).strict().optional(),
15216
+ installation: harnessInstallationGuideSchema.optional(),
15217
+ notice: localizedTextSchema.optional(),
15029
15218
  /** The factory accepts a persisted local entrypoint through its construction context. */
15030
15219
  launchCommand: external_exports.literal(true).optional(),
15031
15220
  links: external_exports.object({
15221
+ website: documentationUrlSchema.optional(),
15032
15222
  documentation: documentationUrlSchema.optional(),
15033
15223
  installation: documentationUrlSchema.optional()
15034
15224
  }).strict().optional()
@@ -15105,6 +15295,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
15105
15295
  "codexhost/account/list",
15106
15296
  "codexhost/account/refresh",
15107
15297
  "codexhost/account/usage/inspect",
15298
+ "codexhost/usage/model-prices/get",
15299
+ "codexhost/usage/model-prices/set",
15300
+ "codexhost/usage/model-prices/default",
15301
+ "codexhost/usage/statistics/get",
15108
15302
  "codexhost/update/check",
15109
15303
  "codexhost/update/start",
15110
15304
  "codexhost/update/status"
@@ -15169,6 +15363,7 @@ var threadUsageSnapshotSchema = external_exports.object({
15169
15363
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
15170
15364
  outputTokens: nonNegativeSafeIntegerSchema.optional(),
15171
15365
  outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15366
+ apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15172
15367
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15173
15368
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15174
15369
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
@@ -15180,7 +15375,11 @@ var threadUsageSnapshotSchema = external_exports.object({
15180
15375
  planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
15181
15376
  planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15182
15377
  planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
15183
- planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
15378
+ planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15379
+ sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
15380
+ timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
15381
+ costSource: external_exports.enum(["publicPrice", "native"]).optional(),
15382
+ unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
15184
15383
  }).strict().superRefine((usage, context) => {
15185
15384
  if (Object.keys(usage).length === 0) {
15186
15385
  context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
@@ -15201,6 +15400,20 @@ var threadUsageSnapshotSchema = external_exports.object({
15201
15400
  path: ["contextWindowTokens"]
15202
15401
  });
15203
15402
  }
15403
+ if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
15404
+ context.addIssue({
15405
+ code: "custom",
15406
+ message: "Thread Usage costSource must be provided with totalCostUsd",
15407
+ path: ["costSource"]
15408
+ });
15409
+ }
15410
+ if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
15411
+ context.addIssue({
15412
+ code: "custom",
15413
+ message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
15414
+ path: ["unpricedModels"]
15415
+ });
15416
+ }
15204
15417
  if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
15205
15418
  context.addIssue({
15206
15419
  code: "custom",
@@ -15470,27 +15683,27 @@ var harnessModelCatalogSchema = external_exports.object({
15470
15683
  }).strict().superRefine((catalog, context) => {
15471
15684
  const refs = /* @__PURE__ */ new Set();
15472
15685
  const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
15473
- for (const [index, model] of catalog.models.entries()) {
15474
- if (refs.has(model.ref.id)) {
15686
+ for (const [index, model2] of catalog.models.entries()) {
15687
+ if (refs.has(model2.ref.id)) {
15475
15688
  context.addIssue({
15476
15689
  code: "custom",
15477
15690
  message: "Model Catalog refs must be unique",
15478
15691
  path: ["models", index, "ref", "id"]
15479
15692
  });
15480
15693
  }
15481
- refs.add(model.ref.id);
15482
- if (model.fastModel) {
15483
- if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
15694
+ refs.add(model2.ref.id);
15695
+ if (model2.fastModel) {
15696
+ if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
15484
15697
  context.addIssue({
15485
15698
  code: "custom",
15486
15699
  message: "Fast Model refs must be distinct and unique",
15487
15700
  path: ["models", index, "fastModel"]
15488
15701
  });
15489
15702
  }
15490
- refs.add(model.fastModel.id);
15703
+ refs.add(model2.fastModel.id);
15491
15704
  }
15492
15705
  const supportedThinkingIds = /* @__PURE__ */ new Set();
15493
- for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
15706
+ for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
15494
15707
  if (supportedThinkingIds.has(optionId)) {
15495
15708
  context.addIssue({
15496
15709
  code: "custom",
@@ -16084,6 +16297,11 @@ var codexSshDraftSchema = external_exports.strictObject({
16084
16297
  });
16085
16298
  var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
16086
16299
  external_exports.strictObject({ action: external_exports.literal("list") }),
16300
+ external_exports.strictObject({
16301
+ action: external_exports.literal("read-thread"),
16302
+ hostId: hostId.refine((id) => id !== "local"),
16303
+ input: delegationReadParamsSchema
16304
+ }),
16087
16305
  external_exports.strictObject({
16088
16306
  action: external_exports.literal("save"),
16089
16307
  draft: codexSshDraftSchema,
@@ -16207,7 +16425,6 @@ var tokenFields = [
16207
16425
  "cachedInputTokens",
16208
16426
  "cacheWriteInputTokens",
16209
16427
  "outputTokens",
16210
- "outputTokensPerSecond",
16211
16428
  "reasoningOutputTokens",
16212
16429
  "totalTokens",
16213
16430
  "contextWindowTokens",
@@ -16215,10 +16432,12 @@ var tokenFields = [
16215
16432
  ];
16216
16433
  var safeIntegerFields = [
16217
16434
  "planFiveHourResetsAtUnix",
16218
- "planSevenDayResetsAtUnix"
16435
+ "planSevenDayResetsAtUnix",
16436
+ "timeToFirstOutputMs"
16219
16437
  ];
16220
16438
  var percentFields = [
16221
16439
  "cacheHitRatePercent",
16440
+ "sessionCacheHitRatePercent",
16222
16441
  "planFiveHourUsedPercent",
16223
16442
  "planSevenDayUsedPercent"
16224
16443
  ];
@@ -16226,9 +16445,31 @@ var usageFields = /* @__PURE__ */ new Set([
16226
16445
  ...tokenFields,
16227
16446
  ...safeIntegerFields,
16228
16447
  ...percentFields,
16448
+ "sessionCacheUsage",
16229
16449
  "totalCostUsd",
16230
16450
  "totalCredits",
16231
- "contextUsagePercent"
16451
+ "contextUsagePercent",
16452
+ "outputTokensPerSecond",
16453
+ "apiOutputTokensPerSecond",
16454
+ "costSource",
16455
+ "unpricedModels"
16456
+ ]);
16457
+ var requestTokenFields = [
16458
+ "inputTokens",
16459
+ "cachedInputTokens",
16460
+ "cacheWriteInputTokens",
16461
+ "cacheWrite1hInputTokens",
16462
+ "outputTokens",
16463
+ "reasoningOutputTokens",
16464
+ "startedAtMs",
16465
+ "completedAtMs"
16466
+ ];
16467
+ var requestFields = /* @__PURE__ */ new Set([
16468
+ ...requestTokenFields,
16469
+ "requestId",
16470
+ "historical",
16471
+ "model",
16472
+ "provider"
16232
16473
  ]);
16233
16474
 
16234
16475
  // dist/command.js
@@ -16393,14 +16634,14 @@ var AntigravityHistory = class _AntigravityHistory {
16393
16634
  const file2 = historyPath(input.environment);
16394
16635
  const nativeSessionId = input.nativeSessionId ?? null;
16395
16636
  let turns = [];
16396
- let model;
16637
+ let model2;
16397
16638
  let thinkingOptionId;
16398
16639
  if (file2 && nativeSessionId) {
16399
16640
  try {
16400
16641
  const parsed = historySchema.safeParse(JSON.parse(await readFile(file2, "utf8")));
16401
16642
  if (parsed.success && parsed.data.nativeSessionId === nativeSessionId) {
16402
16643
  turns = parsed.data.turns;
16403
- model = parsed.data.model;
16644
+ model2 = parsed.data.model;
16404
16645
  thinkingOptionId = parsed.data.thinkingOptionId;
16405
16646
  }
16406
16647
  } catch {
@@ -16421,7 +16662,7 @@ var AntigravityHistory = class _AntigravityHistory {
16421
16662
  file: file2,
16422
16663
  nativeSessionId,
16423
16664
  turns,
16424
- ...model ? { model } : {},
16665
+ ...model2 ? { model: model2 } : {},
16425
16666
  ...thinkingOptionId ? { thinkingOptionId } : {}
16426
16667
  });
16427
16668
  }
@@ -16503,8 +16744,8 @@ var AntigravityHistory = class _AntigravityHistory {
16503
16744
  this.#nativeSessionId = nativeSessionId;
16504
16745
  this.#queueWrite();
16505
16746
  }
16506
- setSelection(model, thinkingOptionId) {
16507
- this.#model = model;
16747
+ setSelection(model2, thinkingOptionId) {
16748
+ this.#model = model2;
16508
16749
  this.#thinkingOptionId = thinkingOptionId;
16509
16750
  this.#queueWrite();
16510
16751
  }
@@ -16533,7 +16774,7 @@ var AntigravityHistory = class _AntigravityHistory {
16533
16774
  const file2 = this.#file;
16534
16775
  const nativeSessionId = this.#nativeSessionId;
16535
16776
  const turns = this.#turns.map(jsonTurn);
16536
- const model = this.#model;
16777
+ const model2 = this.#model;
16537
16778
  const thinkingOptionId = this.#thinkingOptionId;
16538
16779
  this.#write = this.#write.catch(() => void 0).then(async () => {
16539
16780
  const directory = path5.dirname(file2);
@@ -16544,7 +16785,7 @@ var AntigravityHistory = class _AntigravityHistory {
16544
16785
  formatVersion: HISTORY_VERSION,
16545
16786
  nativeSessionId,
16546
16787
  turns,
16547
- ...model ? { model } : {},
16788
+ ...model2 ? { model: model2 } : {},
16548
16789
  ...thinkingOptionId ? { thinkingOptionId } : {}
16549
16790
  })}
16550
16791
  `, { mode: 384 });
@@ -16753,14 +16994,14 @@ async function forkAntigravitySession(options) {
16753
16994
  }
16754
16995
  } : {}
16755
16996
  }));
16756
- const model = sourceSession?.model ?? sourceHistory.model;
16997
+ const model2 = sourceSession?.model ?? sourceHistory.model;
16757
16998
  const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
16758
16999
  const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
16759
17000
  const forkedHistory = await AntigravityHistory.createDerived({
16760
17001
  environment: sessionEnvironment,
16761
17002
  nativeSessionId: derivedNativeSessionId,
16762
17003
  turns: copiedTurns,
16763
- ...model ? { model } : {},
17004
+ ...model2 ? { model: model2 } : {},
16764
17005
  ...thinkingOptionId ? { thinkingOptionId } : {}
16765
17006
  });
16766
17007
  await Promise.all([
@@ -16775,7 +17016,7 @@ async function forkAntigravitySession(options) {
16775
17016
  const session = createSession({
16776
17017
  history: forkedHistory,
16777
17018
  nativeRef: derivedNativeRef,
16778
- ...model ? { model } : {},
17019
+ ...model2 ? { model: model2 } : {},
16779
17020
  ...thinkingOptionId ? { thinkingOptionId } : {},
16780
17021
  permissionMode,
16781
17022
  cwd: input.cwd,
@@ -16857,19 +17098,19 @@ function parseAntigravityModels(output) {
16857
17098
  ...defaultThinkingOptionId ? { defaultThinkingOptionId } : {}
16858
17099
  });
16859
17100
  }
16860
- function antigravityModelArguments(model, thinkingOptionId) {
16861
- if (!model)
17101
+ function antigravityModelArguments(model2, thinkingOptionId) {
17102
+ if (!model2)
16862
17103
  return [];
16863
- const arguments_ = ["--model", model.id];
16864
- if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(model.id)) {
17104
+ const arguments_ = ["--model", model2.id];
17105
+ if (thinkingOptionId && !EFFORT_SUFFIX_PATTERN.test(model2.id)) {
16865
17106
  arguments_.push("--effort", thinkingOptionId);
16866
17107
  }
16867
17108
  return arguments_;
16868
17109
  }
16869
- function antigravityAvailableThinkingOptions(catalog, model) {
16870
- if (!catalog || !model)
17110
+ function antigravityAvailableThinkingOptions(catalog, model2) {
17111
+ if (!catalog || !model2)
16871
17112
  return void 0;
16872
- const supported = catalog.models.find(({ ref }) => ref.id === model.id)?.supportedThinkingOptionIds;
17113
+ const supported = catalog.models.find(({ ref }) => ref.id === model2.id)?.supportedThinkingOptionIds;
16873
17114
  if (!supported)
16874
17115
  return void 0;
16875
17116
  const options = supported.flatMap((id) => {
@@ -16967,14 +17208,14 @@ async function rollbackAntigravityLastTurn(options) {
16967
17208
  }
16968
17209
  } : {}
16969
17210
  }));
16970
- const model = sourceSession?.model ?? sourceHistory.model;
17211
+ const model2 = sourceSession?.model ?? sourceHistory.model;
16971
17212
  const thinkingOptionId = sourceSession?.thinkingOptionId ?? sourceHistory.thinkingOptionId;
16972
17213
  const permissionMode = sourceSession?.permissionMode ?? "dangerously-skip-permissions";
16973
17214
  const rolledBackHistory = await AntigravityHistory.createDerived({
16974
17215
  environment: sessionEnvironment,
16975
17216
  nativeSessionId: derivedNativeSessionId,
16976
17217
  turns: mappedTurns,
16977
- ...model ? { model } : {},
17218
+ ...model2 ? { model: model2 } : {},
16978
17219
  ...thinkingOptionId ? { thinkingOptionId } : {}
16979
17220
  });
16980
17221
  await Promise.all([
@@ -16989,7 +17230,7 @@ async function rollbackAntigravityLastTurn(options) {
16989
17230
  const session = createSession({
16990
17231
  history: rolledBackHistory,
16991
17232
  nativeRef: derivedNativeRef,
16992
- ...model ? { model } : {},
17233
+ ...model2 ? { model: model2 } : {},
16993
17234
  ...thinkingOptionId ? { thinkingOptionId } : {},
16994
17235
  permissionMode,
16995
17236
  cwd: input.cwd,
@@ -19870,10 +20111,10 @@ var AntigravityAdapter = class {
19870
20111
  ...nativeRef ? { nativeSessionId: nativeRef.nativeSessionId } : {},
19871
20112
  ...input.kind === "resume" && input.knownTurnRefs ? { knownTurnRefs: input.knownTurnRefs } : {}
19872
20113
  });
19873
- const model = (input.kind === "create" ? input.model : void 0) ?? history.model;
20114
+ const model2 = (input.kind === "create" ? input.model : void 0) ?? history.model;
19874
20115
  const thinkingOptionId = (input.kind === "create" ? input.thinkingOptionId : void 0) ?? history.thinkingOptionId;
19875
20116
  if (thinkingOptionId) {
19876
- const available = antigravityAvailableThinkingOptions(catalog, model);
20117
+ const available = antigravityAvailableThinkingOptions(catalog, model2);
19877
20118
  if (!available?.some(({ id }) => id === thinkingOptionId)) {
19878
20119
  return {
19879
20120
  ok: false,
@@ -19885,15 +20126,15 @@ var AntigravityAdapter = class {
19885
20126
  };
19886
20127
  }
19887
20128
  }
19888
- if (model || thinkingOptionId)
19889
- history.setSelection(model, thinkingOptionId);
20129
+ if (model2 || thinkingOptionId)
20130
+ history.setSelection(model2, thinkingOptionId);
19890
20131
  const session = new AntigravitySession({
19891
20132
  ...catalog ? { catalog } : {},
19892
20133
  cwd: input.cwd,
19893
20134
  environment: sessionEnvironment,
19894
20135
  executable,
19895
20136
  history,
19896
- ...model ? { model } : {},
20137
+ ...model2 ? { model: model2 } : {},
19897
20138
  ...nativeRef ? { nativeRef } : {},
19898
20139
  permissionMode,
19899
20140
  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,