@liberseek/boft-cli-win32-arm64 0.7.9 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) 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.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 +1 -1
  57. package/app/plugins/kiro-cli/assets/icon.svg +0 -5
@@ -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"
@@ -14865,13 +15021,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
14865
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);
14866
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");
14867
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();
14868
15031
  var pluginPresentationShape = {
14869
15032
  id: harnessPluginIdSchema,
14870
15033
  name: external_exports.string().trim().min(1).max(128),
14871
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(),
14872
15054
  /** The factory accepts a persisted local entrypoint through its construction context. */
14873
15055
  launchCommand: external_exports.literal(true).optional(),
14874
15056
  links: external_exports.object({
15057
+ website: documentationUrlSchema.optional(),
14875
15058
  documentation: documentationUrlSchema.optional(),
14876
15059
  installation: documentationUrlSchema.optional()
14877
15060
  }).strict().optional()
@@ -14948,6 +15131,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
14948
15131
  "codexhost/account/list",
14949
15132
  "codexhost/account/refresh",
14950
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",
14951
15138
  "codexhost/update/check",
14952
15139
  "codexhost/update/start",
14953
15140
  "codexhost/update/status"
@@ -15012,6 +15199,7 @@ var threadUsageSnapshotSchema = external_exports.object({
15012
15199
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
15013
15200
  outputTokens: nonNegativeSafeIntegerSchema.optional(),
15014
15201
  outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15202
+ apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15015
15203
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15016
15204
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15017
15205
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
@@ -15023,7 +15211,11 @@ var threadUsageSnapshotSchema = external_exports.object({
15023
15211
  planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
15024
15212
  planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15025
15213
  planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
15026
- 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()
15027
15219
  }).strict().superRefine((usage, context) => {
15028
15220
  if (Object.keys(usage).length === 0) {
15029
15221
  context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
@@ -15044,6 +15236,20 @@ var threadUsageSnapshotSchema = external_exports.object({
15044
15236
  path: ["contextWindowTokens"]
15045
15237
  });
15046
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
+ }
15047
15253
  if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
15048
15254
  context.addIssue({
15049
15255
  code: "custom",
@@ -15313,27 +15519,27 @@ var harnessModelCatalogSchema = external_exports.object({
15313
15519
  }).strict().superRefine((catalog, context) => {
15314
15520
  const refs = /* @__PURE__ */ new Set();
15315
15521
  const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
15316
- for (const [index, model] of catalog.models.entries()) {
15317
- if (refs.has(model.ref.id)) {
15522
+ for (const [index, model2] of catalog.models.entries()) {
15523
+ if (refs.has(model2.ref.id)) {
15318
15524
  context.addIssue({
15319
15525
  code: "custom",
15320
15526
  message: "Model Catalog refs must be unique",
15321
15527
  path: ["models", index, "ref", "id"]
15322
15528
  });
15323
15529
  }
15324
- refs.add(model.ref.id);
15325
- if (model.fastModel) {
15326
- 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)) {
15327
15533
  context.addIssue({
15328
15534
  code: "custom",
15329
15535
  message: "Fast Model refs must be distinct and unique",
15330
15536
  path: ["models", index, "fastModel"]
15331
15537
  });
15332
15538
  }
15333
- refs.add(model.fastModel.id);
15539
+ refs.add(model2.fastModel.id);
15334
15540
  }
15335
15541
  const supportedThinkingIds = /* @__PURE__ */ new Set();
15336
- for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
15542
+ for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
15337
15543
  if (supportedThinkingIds.has(optionId)) {
15338
15544
  context.addIssue({
15339
15545
  code: "custom",
@@ -15927,6 +16133,11 @@ var codexSshDraftSchema = external_exports.strictObject({
15927
16133
  });
15928
16134
  var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
15929
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
+ }),
15930
16141
  external_exports.strictObject({
15931
16142
  action: external_exports.literal("save"),
15932
16143
  draft: codexSshDraftSchema,
@@ -16061,7 +16272,6 @@ var tokenFields = [
16061
16272
  "cachedInputTokens",
16062
16273
  "cacheWriteInputTokens",
16063
16274
  "outputTokens",
16064
- "outputTokensPerSecond",
16065
16275
  "reasoningOutputTokens",
16066
16276
  "totalTokens",
16067
16277
  "contextWindowTokens",
@@ -16069,10 +16279,12 @@ var tokenFields = [
16069
16279
  ];
16070
16280
  var safeIntegerFields = [
16071
16281
  "planFiveHourResetsAtUnix",
16072
- "planSevenDayResetsAtUnix"
16282
+ "planSevenDayResetsAtUnix",
16283
+ "timeToFirstOutputMs"
16073
16284
  ];
16074
16285
  var percentFields = [
16075
16286
  "cacheHitRatePercent",
16287
+ "sessionCacheHitRatePercent",
16076
16288
  "planFiveHourUsedPercent",
16077
16289
  "planSevenDayUsedPercent"
16078
16290
  ];
@@ -16080,9 +16292,31 @@ var usageFields = /* @__PURE__ */ new Set([
16080
16292
  ...tokenFields,
16081
16293
  ...safeIntegerFields,
16082
16294
  ...percentFields,
16295
+ "sessionCacheUsage",
16083
16296
  "totalCostUsd",
16084
16297
  "totalCredits",
16085
- "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"
16086
16320
  ]);
16087
16321
 
16088
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",