@liberseek/boft-cli-win32-arm64 0.7.8 → 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 (58) 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 +16801 -16440
  5. package/app/console-web.js +9774 -3685
  6. package/app/desktop-controller.mjs +16475 -374
  7. package/app/host-runtime.mjs +9052 -1793
  8. package/app/plugins/antigravity/manifest.json +18 -1
  9. package/app/plugins/antigravity/plugin.mjs +357 -42
  10. package/app/plugins/claude-code/manifest.json +28 -0
  11. package/app/plugins/claude-code/plugin.mjs +1448 -491
  12. package/app/plugins/codebuddy/manifest.json +17 -0
  13. package/app/plugins/codebuddy/plugin.mjs +6589 -5423
  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 +782 -197
  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 +879 -242
  21. package/app/plugins/enabled.json +3 -1
  22. package/app/plugins/grok/manifest.json +21 -1
  23. package/app/plugins/grok/plugin.mjs +1274 -241
  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 +3493 -7686
  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 +922 -76
  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 +658 -57
  33. package/app/plugins/muse/manifest.json +18 -1
  34. package/app/plugins/muse/plugin.mjs +332 -17
  35. package/app/plugins/omp/manifest.json +21 -1
  36. package/app/plugins/omp/plugin.mjs +2320 -1131
  37. package/app/plugins/opencode/manifest.json +18 -1
  38. package/app/plugins/opencode/plugin.mjs +979 -184
  39. package/app/plugins/pi/manifest.json +32 -0
  40. package/app/plugins/pi/plugin.mjs +2785 -2090
  41. package/app/plugins/qoder/manifest.json +18 -1
  42. package/app/plugins/qoder/plugin.mjs +832 -82
  43. package/app/plugins/qoder-cn/manifest.json +18 -1
  44. package/app/plugins/qoder-cn/plugin.mjs +832 -82
  45. package/app/plugins/workbuddy/manifest.json +18 -0
  46. package/app/plugins/workbuddy/plugin.mjs +6947 -5773
  47. package/app/plugins/zcode/assets/icon.svg +8 -0
  48. package/app/plugins/zcode/manifest.json +32 -0
  49. package/app/plugins/zcode/plugin.mjs +20110 -0
  50. package/app/renderer-extension.js +4762 -2470
  51. package/bin/boft.exe +0 -0
  52. package/libexec/boft-node-repl.exe +0 -0
  53. package/libexec/boft-shim.exe +0 -0
  54. package/libexec/boft-updater.exe +0 -0
  55. package/licenses/Cordis-LICENSE.txt +21 -0
  56. package/licenses/Cosmokit-LICENSE.txt +21 -0
  57. package/package.json +1 -1
  58. package/app/plugins/kiro-cli/assets/icon.svg +0 -5
@@ -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",
@@ -4896,8 +4896,8 @@ function az_default() {
4896
4896
  }
4897
4897
 
4898
4898
  // ../../../node_modules/zod/v4/locales/be.js
4899
- function getBelarusianPlural(count, one, few, many) {
4900
- const absCount = Math.abs(count);
4899
+ function getBelarusianPlural(count2, one, few, many) {
4900
+ const absCount = Math.abs(count2);
4901
4901
  const lastDigit = absCount % 10;
4902
4902
  const lastTwoDigits = absCount % 100;
4903
4903
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -6975,8 +6975,8 @@ function hu_default() {
6975
6975
  }
6976
6976
 
6977
6977
  // ../../../node_modules/zod/v4/locales/hy.js
6978
- function getArmenianPlural(count, one, many) {
6979
- return Math.abs(count) === 1 ? one : many;
6978
+ function getArmenianPlural(count2, one, many) {
6979
+ return Math.abs(count2) === 1 ? one : many;
6980
6980
  }
6981
6981
  function withDefiniteArticle(word) {
6982
6982
  if (!word)
@@ -9104,8 +9104,8 @@ function ro_default() {
9104
9104
  }
9105
9105
 
9106
9106
  // ../../../node_modules/zod/v4/locales/ru.js
9107
- function getRussianPlural(count, one, few, many) {
9108
- const absCount = Math.abs(count);
9107
+ function getRussianPlural(count2, one, few, many) {
9108
+ const absCount = Math.abs(count2);
9109
9109
  const lastDigit = absCount % 10;
9110
9110
  const lastTwoDigits = absCount % 100;
9111
9111
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -14774,6 +14774,15 @@ function date4(params) {
14774
14774
  // ../../../node_modules/zod/v4/classic/external.js
14775
14775
  config(en_default());
14776
14776
 
14777
+ // ../../shared-contracts/dist/delegation-read.js
14778
+ var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
14779
+ var delegationReadParamsSchema = external_exports.strictObject({
14780
+ threadId: external_exports.string().min(1).max(1024),
14781
+ view: external_exports.enum(["result", "messages"]),
14782
+ cursor: external_exports.string().min(1).max(8192).optional(),
14783
+ limit: external_exports.number().int().min(1).max(100).optional()
14784
+ });
14785
+
14777
14786
  // ../../shared-contracts/dist/credential-imports.js
14778
14787
  var credentialSourceSchema = external_exports.object({
14779
14788
  id: external_exports.string().min(1).max(256),
@@ -14844,6 +14853,153 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14844
14853
  initializeOnly: external_exports.boolean().optional()
14845
14854
  });
14846
14855
 
14856
+ // ../../shared-contracts/dist/model-price-overrides.js
14857
+ var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14858
+ var modelPriceOverrideSchema = external_exports.strictObject({
14859
+ input: usdPerMillionTokens,
14860
+ output: usdPerMillionTokens,
14861
+ cacheRead: usdPerMillionTokens.optional(),
14862
+ cacheWrite: usdPerMillionTokens.optional(),
14863
+ cacheWrite1h: usdPerMillionTokens.optional()
14864
+ });
14865
+ var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
14866
+ var modelPriceOverridesSchema = external_exports.strictObject({
14867
+ /** Absolute path of the Host's `pricing.json`. */
14868
+ path: external_exports.string(),
14869
+ entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
14870
+ /** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
14871
+ error: external_exports.string().nullable()
14872
+ });
14873
+ var modelPriceOverridesGetSchema = external_exports.strictObject({});
14874
+ var modelPriceOverridesSetSchema = external_exports.strictObject({
14875
+ key: modelPriceKeySchema,
14876
+ price: modelPriceOverrideSchema.nullable(),
14877
+ previousKey: modelPriceKeySchema.optional()
14878
+ });
14879
+ var modelPriceDefaultParamsSchema = external_exports.strictObject({
14880
+ model: modelPriceKeySchema
14881
+ });
14882
+ var modelPriceSuggestionSchema = external_exports.strictObject({
14883
+ /** Verified from catalog canonical links, not inferred from names or equal prices. */
14884
+ official: external_exports.boolean().optional(),
14885
+ canonicalModelId: external_exports.string().min(1).optional(),
14886
+ provider: external_exports.string().min(1).max(512),
14887
+ model: external_exports.string().min(1).max(512),
14888
+ price: modelPriceOverrideSchema
14889
+ });
14890
+ var modelPriceDefaultResultSchema = external_exports.strictObject({
14891
+ price: modelPriceOverrideSchema.nullable(),
14892
+ /** Local catalog suggestions only; never used automatically for pricing. */
14893
+ suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
14894
+ });
14895
+
14896
+ // ../../shared-contracts/dist/usage-statistics.js
14897
+ var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
14898
+ var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
14899
+ var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
14900
+ var harness = external_exports.string().min(1).max(128);
14901
+ var model = external_exports.string().min(1).max(512);
14902
+ var project = external_exports.string().min(1).max(4096);
14903
+ var usageStatisticsParamsSchema = external_exports.strictObject({
14904
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
14905
+ harness: harness.optional(),
14906
+ model: model.nullable().optional(),
14907
+ project: project.nullable().optional(),
14908
+ /** One local date inside the range. */
14909
+ date: localDate.optional()
14910
+ });
14911
+ var usageStatisticsTotalsSchema = external_exports.strictObject({
14912
+ requests: count,
14913
+ inputTokens: count,
14914
+ cachedInputTokens: count,
14915
+ cacheWriteInputTokens: count,
14916
+ cacheKnownInputTokens: count,
14917
+ outputTokens: count,
14918
+ reasoningOutputTokens: count,
14919
+ /** USD at the public price, summed over the priced requests only. */
14920
+ costUsd: external_exports.number().finite().min(0),
14921
+ /** Requests without a price (or the cache data the price needs); not in `costUsd`. */
14922
+ unpricedRequests: count,
14923
+ /**
14924
+ * Requests whose storage gave no token counts: counted as requests, with neither tokens nor
14925
+ * cost, and not as unpriced.
14926
+ */
14927
+ unmeteredRequests: count
14928
+ });
14929
+ var totals = usageStatisticsTotalsSchema.shape;
14930
+ var usageStatisticsSessionSchema = external_exports.strictObject({
14931
+ harness,
14932
+ sessionId: external_exports.string().min(1).max(512),
14933
+ project: project.nullable(),
14934
+ /** Models the session used, most requests first. */
14935
+ models: external_exports.array(model).max(16),
14936
+ firstAtMs: count,
14937
+ lastAtMs: count,
14938
+ ...totals
14939
+ });
14940
+ var usageStatisticsResultSchema = external_exports.strictObject({
14941
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
14942
+ /** First local date of the range; null for all time. */
14943
+ from: localDate.nullable(),
14944
+ to: localDate,
14945
+ /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
14946
+ filters: external_exports.strictObject({
14947
+ harness: harness.nullable(),
14948
+ model: model.nullable(),
14949
+ unknownModel: external_exports.boolean(),
14950
+ project: project.nullable(),
14951
+ unknownProject: external_exports.boolean(),
14952
+ date: localDate.nullable()
14953
+ }),
14954
+ /** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
14955
+ reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
14956
+ /** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
14957
+ failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
14958
+ /** Every value seen in the range, ignoring the filters, to choose filters from. */
14959
+ options: external_exports.strictObject({
14960
+ harnesses: external_exports.array(harness).max(256),
14961
+ models: external_exports.array(model.nullable()).max(4096),
14962
+ projects: external_exports.array(project.nullable()).max(4096)
14963
+ }),
14964
+ /** Current display metadata, scoped by Harness. Never a pricing or filter identity.
14965
+ * Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
14966
+ */
14967
+ modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
14968
+ /** Native credits, all filters applied, never combined across Harnesses or treated as USD.
14969
+ * Only groups with at least one reported value appear; reportedRequests exposes partial data.
14970
+ */
14971
+ credits: external_exports.array(external_exports.strictObject({
14972
+ harness,
14973
+ model: model.nullable(),
14974
+ credits: external_exports.number().finite().min(0),
14975
+ reportedRequests: count,
14976
+ requests: count
14977
+ })).max(4096).optional(),
14978
+ /** All filters applied. */
14979
+ totals: usageStatisticsTotalsSchema,
14980
+ /** Each date and Harness of the range: every filter except the day. */
14981
+ daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
14982
+ /** Local weekday (0 = Sunday) and hour, all filters applied. */
14983
+ hourly: external_exports.array(external_exports.strictObject({
14984
+ weekday: external_exports.number().int().min(0).max(6),
14985
+ hour: external_exports.number().int().min(0).max(23),
14986
+ ...totals
14987
+ })).max(168),
14988
+ byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
14989
+ byModel: external_exports.array(external_exports.strictObject({
14990
+ model: model.nullable(),
14991
+ ...totals,
14992
+ /** Requests priced by what the Harness recorded they cost, not by a price list. */
14993
+ harnessPricedRequests: count
14994
+ })).max(4096),
14995
+ byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
14996
+ /**
14997
+ * The sessions that spent the most, by cost and by tokens without cache, all filters applied;
14998
+ * requests without a native session are not listed here but count everywhere else.
14999
+ */
15000
+ sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
15001
+ });
15002
+
14847
15003
  // ../../shared-contracts/dist/ids.js
14848
15004
  var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
14849
15005
  message: "Identifier must not be empty or whitespace"
@@ -14854,6 +15010,10 @@ var hostTurnIdSchema = opaqueIdSchema.brand();
14854
15010
  var hostItemIdSchema = opaqueIdSchema.brand();
14855
15011
  var hostInteractionIdSchema = opaqueIdSchema.brand();
14856
15012
 
15013
+ // ../../shared-contracts/dist/thread-prewarm.js
15014
+ var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
15015
+ var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
15016
+
14857
15017
  // ../../shared-contracts/dist/harness-plugins.js
14858
15018
  var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
14859
15019
  var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
@@ -14861,13 +15021,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
14861
15021
  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);
14862
15022
  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");
14863
15023
  var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
15024
+ var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
15025
+ var harnessInstallationGuideSchema = external_exports.object({
15026
+ commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
15027
+ before: localizedTextSchema.optional(),
15028
+ after: localizedTextSchema.optional(),
15029
+ downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
15030
+ }).strict();
14864
15031
  var pluginPresentationShape = {
14865
15032
  id: harnessPluginIdSchema,
14866
15033
  name: external_exports.string().trim().min(1).max(128),
14867
15034
  version: external_exports.string().min(1).max(128),
15035
+ /** Capability-only plugin; omitted for existing session-capable plugins. */
15036
+ kind: external_exports.literal("usage").optional(),
15037
+ /** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
15038
+ iconStyle: external_exports.object({
15039
+ vector: external_exports.object({
15040
+ viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
15041
+ color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
15042
+ paths: external_exports.array(external_exports.object({
15043
+ d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
15044
+ fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
15045
+ fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
15046
+ }).strict()).min(1).max(32)
15047
+ }).strict().optional(),
15048
+ background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
15049
+ borderRadius: external_exports.number().min(0).max(50).optional(),
15050
+ paddingRatio: external_exports.number().min(0).max(0.25).optional()
15051
+ }).strict().optional(),
15052
+ installation: harnessInstallationGuideSchema.optional(),
15053
+ notice: localizedTextSchema.optional(),
14868
15054
  /** The factory accepts a persisted local entrypoint through its construction context. */
14869
15055
  launchCommand: external_exports.literal(true).optional(),
14870
15056
  links: external_exports.object({
15057
+ website: documentationUrlSchema.optional(),
14871
15058
  documentation: documentationUrlSchema.optional(),
14872
15059
  installation: documentationUrlSchema.optional()
14873
15060
  }).strict().optional()
@@ -14921,6 +15108,9 @@ var consoleOpenResultSchema = external_exports.strictObject({
14921
15108
  url: external_exports.string().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)
14922
15109
  });
14923
15110
  var CONSOLE_HOST_METHODS = Object.freeze([
15111
+ "codexhost/console/remote-connections",
15112
+ "codexhost/runtime/status",
15113
+ "codexhost/remote/ssh-setup",
14924
15114
  "codexhost/harness/plugins/list",
14925
15115
  "codexhost/harness/display-settings/get",
14926
15116
  "codexhost/harness/display-settings/set",
@@ -14941,6 +15131,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
14941
15131
  "codexhost/account/list",
14942
15132
  "codexhost/account/refresh",
14943
15133
  "codexhost/account/usage/inspect",
15134
+ "codexhost/usage/model-prices/get",
15135
+ "codexhost/usage/model-prices/set",
15136
+ "codexhost/usage/model-prices/default",
15137
+ "codexhost/usage/statistics/get",
14944
15138
  "codexhost/update/check",
14945
15139
  "codexhost/update/start",
14946
15140
  "codexhost/update/status"
@@ -15005,6 +15199,7 @@ var threadUsageSnapshotSchema = external_exports.object({
15005
15199
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
15006
15200
  outputTokens: nonNegativeSafeIntegerSchema.optional(),
15007
15201
  outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15202
+ apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15008
15203
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15009
15204
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15010
15205
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
@@ -15016,7 +15211,11 @@ var threadUsageSnapshotSchema = external_exports.object({
15016
15211
  planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
15017
15212
  planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15018
15213
  planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
15019
- planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
15214
+ planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15215
+ sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
15216
+ timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
15217
+ costSource: external_exports.enum(["publicPrice", "native"]).optional(),
15218
+ unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
15020
15219
  }).strict().superRefine((usage, context) => {
15021
15220
  if (Object.keys(usage).length === 0) {
15022
15221
  context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
@@ -15037,6 +15236,20 @@ var threadUsageSnapshotSchema = external_exports.object({
15037
15236
  path: ["contextWindowTokens"]
15038
15237
  });
15039
15238
  }
15239
+ if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
15240
+ context.addIssue({
15241
+ code: "custom",
15242
+ message: "Thread Usage costSource must be provided with totalCostUsd",
15243
+ path: ["costSource"]
15244
+ });
15245
+ }
15246
+ if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
15247
+ context.addIssue({
15248
+ code: "custom",
15249
+ message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
15250
+ path: ["unpricedModels"]
15251
+ });
15252
+ }
15040
15253
  if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
15041
15254
  context.addIssue({
15042
15255
  code: "custom",
@@ -15306,27 +15519,27 @@ var harnessModelCatalogSchema = external_exports.object({
15306
15519
  }).strict().superRefine((catalog, context) => {
15307
15520
  const refs = /* @__PURE__ */ new Set();
15308
15521
  const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
15309
- for (const [index, model] of catalog.models.entries()) {
15310
- if (refs.has(model.ref.id)) {
15522
+ for (const [index, model2] of catalog.models.entries()) {
15523
+ if (refs.has(model2.ref.id)) {
15311
15524
  context.addIssue({
15312
15525
  code: "custom",
15313
15526
  message: "Model Catalog refs must be unique",
15314
15527
  path: ["models", index, "ref", "id"]
15315
15528
  });
15316
15529
  }
15317
- refs.add(model.ref.id);
15318
- if (model.fastModel) {
15319
- if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
15530
+ refs.add(model2.ref.id);
15531
+ if (model2.fastModel) {
15532
+ if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
15320
15533
  context.addIssue({
15321
15534
  code: "custom",
15322
15535
  message: "Fast Model refs must be distinct and unique",
15323
15536
  path: ["models", index, "fastModel"]
15324
15537
  });
15325
15538
  }
15326
- refs.add(model.fastModel.id);
15539
+ refs.add(model2.fastModel.id);
15327
15540
  }
15328
15541
  const supportedThinkingIds = /* @__PURE__ */ new Set();
15329
- for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
15542
+ for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
15330
15543
  if (supportedThinkingIds.has(optionId)) {
15331
15544
  context.addIssue({
15332
15545
  code: "custom",
@@ -15866,6 +16079,85 @@ var updateStatusResultSchema = external_exports.strictObject({
15866
16079
  status: updateStatusSchema.nullable()
15867
16080
  });
15868
16081
 
16082
+ // ../../shared-contracts/dist/remote-runtime.js
16083
+ var remoteUpdatePhaseSchema = external_exports.enum([
16084
+ "idle",
16085
+ "installing",
16086
+ "restarting",
16087
+ "succeeded",
16088
+ "failed"
16089
+ ]);
16090
+ var runtimeStatusSchema = external_exports.object({
16091
+ runningVersion: external_exports.string().nullable(),
16092
+ installedVersion: external_exports.string().nullable(),
16093
+ restartRequired: external_exports.boolean(),
16094
+ remote: external_exports.boolean(),
16095
+ updateSupported: external_exports.boolean(),
16096
+ update: external_exports.object({
16097
+ phase: remoteUpdatePhaseSchema,
16098
+ targetVersion: external_exports.string().nullable(),
16099
+ error: external_exports.string().nullable()
16100
+ })
16101
+ });
16102
+ var remoteUpdateParamsSchema = external_exports.object({
16103
+ version: external_exports.string().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u)
16104
+ }).strict();
16105
+ var remoteSshSetupParamsSchema = external_exports.object({
16106
+ hostname: external_exports.string().min(1).max(1024).refine((value) => !value.startsWith("-") && !/\s/u.test(value)),
16107
+ port: external_exports.number().int().min(1).max(65535).nullable(),
16108
+ identity: external_exports.string().max(4096).nullable(),
16109
+ action: external_exports.enum(["inspect", "install", "update", "repair", "uninstall"]),
16110
+ uninstallPackage: external_exports.boolean().optional(),
16111
+ version: external_exports.string().regex(/^\d+\.\d+\.\d+$/u).nullable()
16112
+ }).strict();
16113
+ var remoteSshSetupResultSchema = external_exports.object({ state: external_exports.enum(["installed", "not-installed"]) }).strict();
16114
+
16115
+ // ../../shared-contracts/dist/remote-connections.js
16116
+ var hostId = external_exports.string().min(1).max(1024);
16117
+ var codexSshConnectionSchema = external_exports.object({
16118
+ hostId,
16119
+ displayName: external_exports.string().min(1).max(1024),
16120
+ source: external_exports.enum(["codex-managed", "discovered"]),
16121
+ sshAlias: external_exports.string().max(1024).nullable(),
16122
+ sshHost: external_exports.string().min(1).max(1024),
16123
+ sshPort: external_exports.number().int().min(1).max(65535).nullable(),
16124
+ identity: external_exports.string().max(4096).nullable(),
16125
+ autoConnect: external_exports.boolean(),
16126
+ connectionAnalyticsId: external_exports.string().max(1024).optional()
16127
+ });
16128
+ var codexSshDraftSchema = external_exports.strictObject({
16129
+ displayName: external_exports.string().min(1).max(1024),
16130
+ hostname: external_exports.string().min(1).max(1024),
16131
+ sshPort: external_exports.number().int().min(1).max(65535).nullable(),
16132
+ identity: external_exports.string().max(4096).nullable()
16133
+ });
16134
+ var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
16135
+ external_exports.strictObject({ action: external_exports.literal("list") }),
16136
+ external_exports.strictObject({
16137
+ action: external_exports.literal("read-thread"),
16138
+ hostId: hostId.refine((id) => id !== "local"),
16139
+ input: delegationReadParamsSchema
16140
+ }),
16141
+ external_exports.strictObject({
16142
+ action: external_exports.literal("save"),
16143
+ draft: codexSshDraftSchema,
16144
+ previous: codexSshConnectionSchema.nullable()
16145
+ }),
16146
+ external_exports.strictObject({ action: external_exports.literal("remove"), previous: codexSshConnectionSchema }),
16147
+ external_exports.strictObject({ action: external_exports.literal("connect"), hostId, enabled: external_exports.boolean() }),
16148
+ external_exports.strictObject({ action: external_exports.literal("state"), hostId }),
16149
+ external_exports.strictObject({ action: external_exports.literal("runtime"), hostId }),
16150
+ external_exports.strictObject({
16151
+ action: external_exports.literal("update"),
16152
+ hostId: hostId.refine((id) => id !== "local"),
16153
+ version: remoteUpdateParamsSchema.shape.version
16154
+ })
16155
+ ]);
16156
+ var remoteConnectionsReplySchema = external_exports.union([
16157
+ external_exports.strictObject({ result: jsonValueSchema }),
16158
+ external_exports.strictObject({ error: external_exports.strictObject({ code: external_exports.number().int(), message: external_exports.string() }) })
16159
+ ]);
16160
+
15869
16161
  // ../../shared-contracts/dist/index.js
15870
16162
  var workspaceContractVersionSchema = external_exports.literal(WORKSPACE_CONTRACT_VERSION);
15871
16163
 
@@ -15980,7 +16272,6 @@ var tokenFields = [
15980
16272
  "cachedInputTokens",
15981
16273
  "cacheWriteInputTokens",
15982
16274
  "outputTokens",
15983
- "outputTokensPerSecond",
15984
16275
  "reasoningOutputTokens",
15985
16276
  "totalTokens",
15986
16277
  "contextWindowTokens",
@@ -15988,10 +16279,12 @@ var tokenFields = [
15988
16279
  ];
15989
16280
  var safeIntegerFields = [
15990
16281
  "planFiveHourResetsAtUnix",
15991
- "planSevenDayResetsAtUnix"
16282
+ "planSevenDayResetsAtUnix",
16283
+ "timeToFirstOutputMs"
15992
16284
  ];
15993
16285
  var percentFields = [
15994
16286
  "cacheHitRatePercent",
16287
+ "sessionCacheHitRatePercent",
15995
16288
  "planFiveHourUsedPercent",
15996
16289
  "planSevenDayUsedPercent"
15997
16290
  ];
@@ -15999,9 +16292,31 @@ var usageFields = /* @__PURE__ */ new Set([
15999
16292
  ...tokenFields,
16000
16293
  ...safeIntegerFields,
16001
16294
  ...percentFields,
16295
+ "sessionCacheUsage",
16002
16296
  "totalCostUsd",
16003
16297
  "totalCredits",
16004
- "contextUsagePercent"
16298
+ "contextUsagePercent",
16299
+ "outputTokensPerSecond",
16300
+ "apiOutputTokensPerSecond",
16301
+ "costSource",
16302
+ "unpricedModels"
16303
+ ]);
16304
+ var requestTokenFields = [
16305
+ "inputTokens",
16306
+ "cachedInputTokens",
16307
+ "cacheWriteInputTokens",
16308
+ "cacheWrite1hInputTokens",
16309
+ "outputTokens",
16310
+ "reasoningOutputTokens",
16311
+ "startedAtMs",
16312
+ "completedAtMs"
16313
+ ];
16314
+ var requestFields = /* @__PURE__ */ new Set([
16315
+ ...requestTokenFields,
16316
+ "requestId",
16317
+ "historical",
16318
+ "model",
16319
+ "provider"
16005
16320
  ]);
16006
16321
 
16007
16322
  // dist/msp-client.js
@@ -3,8 +3,28 @@
3
3
  "id": "omp",
4
4
  "name": "Oh My Pi",
5
5
  "version": "0.0.0",
6
+ "iconStyle": {
7
+ "borderRadius": 22.37
8
+ },
9
+ "installation": {
10
+ "commands": [
11
+ {
12
+ "terminal": "macOS / Linux · Terminal (sh/bash)",
13
+ "command": "curl -fsSL https://omp.sh/install | sh"
14
+ },
15
+ {
16
+ "terminal": "Windows · PowerShell",
17
+ "command": "irm https://omp.sh/install.ps1 | iex"
18
+ }
19
+ ],
20
+ "after": {
21
+ "en": "After installation, run omp to complete login or setup.",
22
+ "zh-CN": "安装后运行 omp,完成登录或配置。"
23
+ }
24
+ },
6
25
  "links": {
7
- "installation": "https://github.com/can1357/oh-my-pi"
26
+ "website": "https://github.com/can1357/oh-my-pi",
27
+ "installation": "https://github.com/can1357/oh-my-pi#install"
8
28
  },
9
29
  "adapterApiVersion": 1,
10
30
  "entry": "plugin.mjs",