@liberseek/boft-cli-linux-x64 0.7.9 → 0.8.0

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