@liberseek/boft-cli-linux-x64 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 (56) 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 +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 +4 -4
  56. package/app/plugins/kiro-cli/assets/icon.svg +0 -5
@@ -4915,8 +4915,8 @@ function az_default() {
4915
4915
  }
4916
4916
 
4917
4917
  // node_modules/zod/v4/locales/be.js
4918
- function getBelarusianPlural(count, one, few, many) {
4919
- const absCount = Math.abs(count);
4918
+ function getBelarusianPlural(count2, one, few, many) {
4919
+ const absCount = Math.abs(count2);
4920
4920
  const lastDigit = absCount % 10;
4921
4921
  const lastTwoDigits = absCount % 100;
4922
4922
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -6994,8 +6994,8 @@ function hu_default() {
6994
6994
  }
6995
6995
 
6996
6996
  // node_modules/zod/v4/locales/hy.js
6997
- function getArmenianPlural(count, one, many) {
6998
- return Math.abs(count) === 1 ? one : many;
6997
+ function getArmenianPlural(count2, one, many) {
6998
+ return Math.abs(count2) === 1 ? one : many;
6999
6999
  }
7000
7000
  function withDefiniteArticle(word) {
7001
7001
  if (!word)
@@ -9123,8 +9123,8 @@ function ro_default() {
9123
9123
  }
9124
9124
 
9125
9125
  // node_modules/zod/v4/locales/ru.js
9126
- function getRussianPlural(count, one, few, many) {
9127
- const absCount = Math.abs(count);
9126
+ function getRussianPlural(count2, one, few, many) {
9127
+ const absCount = Math.abs(count2);
9128
9128
  const lastDigit = absCount % 10;
9129
9129
  const lastTwoDigits = absCount % 100;
9130
9130
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -14793,6 +14793,16 @@ function date4(params) {
14793
14793
  // node_modules/zod/v4/classic/external.js
14794
14794
  config(en_default());
14795
14795
 
14796
+ // packages/shared-contracts/dist/delegation-read.js
14797
+ var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
14798
+ var REMOTE_THREAD_CONTROL_TIMEOUT_MS = 4e4;
14799
+ var delegationReadParamsSchema = external_exports.strictObject({
14800
+ threadId: external_exports.string().min(1).max(1024),
14801
+ view: external_exports.enum(["result", "messages"]),
14802
+ cursor: external_exports.string().min(1).max(8192).optional(),
14803
+ limit: external_exports.number().int().min(1).max(100).optional()
14804
+ });
14805
+
14796
14806
  // packages/shared-contracts/dist/credential-imports.js
14797
14807
  var credentialSourceSchema = external_exports.object({
14798
14808
  id: external_exports.string().min(1).max(256),
@@ -14863,6 +14873,160 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14863
14873
  initializeOnly: external_exports.boolean().optional()
14864
14874
  });
14865
14875
 
14876
+ // packages/shared-contracts/dist/model-price-overrides.js
14877
+ var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14878
+ var modelPriceOverrideSchema = external_exports.strictObject({
14879
+ input: usdPerMillionTokens,
14880
+ output: usdPerMillionTokens,
14881
+ cacheRead: usdPerMillionTokens.optional(),
14882
+ cacheWrite: usdPerMillionTokens.optional(),
14883
+ cacheWrite1h: usdPerMillionTokens.optional()
14884
+ });
14885
+ var modelPriceKeySchema = external_exports.string().max(512).refine((key) => key.trim() === key && key.length > 0, "Model ID is required");
14886
+ var modelPriceOverridesSchema = external_exports.strictObject({
14887
+ /** Absolute path of the Host's `pricing.json`. */
14888
+ path: external_exports.string(),
14889
+ entries: external_exports.array(external_exports.strictObject({ key: external_exports.string(), price: modelPriceOverrideSchema })),
14890
+ /** Why the existing file is unusable; the Host then ignores it and refuses to overwrite it. */
14891
+ error: external_exports.string().nullable()
14892
+ });
14893
+ var modelPriceOverridesGetSchema = external_exports.strictObject({});
14894
+ var modelPriceOverridesSetSchema = external_exports.strictObject({
14895
+ key: modelPriceKeySchema,
14896
+ price: modelPriceOverrideSchema.nullable(),
14897
+ previousKey: modelPriceKeySchema.optional()
14898
+ });
14899
+ var modelPriceDefaultParamsSchema = external_exports.strictObject({
14900
+ model: modelPriceKeySchema
14901
+ });
14902
+ var modelPriceSuggestionSchema = external_exports.strictObject({
14903
+ /** Verified from catalog canonical links, not inferred from names or equal prices. */
14904
+ official: external_exports.boolean().optional(),
14905
+ canonicalModelId: external_exports.string().min(1).optional(),
14906
+ provider: external_exports.string().min(1).max(512),
14907
+ model: external_exports.string().min(1).max(512),
14908
+ price: modelPriceOverrideSchema
14909
+ });
14910
+ var modelPriceDefaultResultSchema = external_exports.strictObject({
14911
+ price: modelPriceOverrideSchema.nullable(),
14912
+ /** Local catalog suggestions only; never used automatically for pricing. */
14913
+ suggestions: external_exports.array(modelPriceSuggestionSchema).max(6).optional()
14914
+ });
14915
+
14916
+ // packages/shared-contracts/dist/usage-statistics.js
14917
+ var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
14918
+ var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
14919
+ var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
14920
+ var harness = external_exports.string().min(1).max(128);
14921
+ var model = external_exports.string().min(1).max(512);
14922
+ var project = external_exports.string().min(1).max(4096);
14923
+ var usageStatisticsParamsSchema = external_exports.strictObject({
14924
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
14925
+ harness: harness.optional(),
14926
+ model: model.nullable().optional(),
14927
+ project: project.nullable().optional(),
14928
+ /** One local date inside the range. */
14929
+ date: localDate.optional()
14930
+ });
14931
+ var usageStatisticsTotalsSchema = external_exports.strictObject({
14932
+ requests: count,
14933
+ inputTokens: count,
14934
+ cachedInputTokens: count,
14935
+ cacheWriteInputTokens: count,
14936
+ cacheKnownInputTokens: count,
14937
+ outputTokens: count,
14938
+ reasoningOutputTokens: count,
14939
+ /** USD at the public price, summed over the priced requests only. */
14940
+ costUsd: external_exports.number().finite().min(0),
14941
+ /** Requests without a price (or the cache data the price needs); not in `costUsd`. */
14942
+ unpricedRequests: count,
14943
+ /**
14944
+ * Requests whose storage gave no token counts: counted as requests, with neither tokens nor
14945
+ * cost, and not as unpriced.
14946
+ */
14947
+ unmeteredRequests: count
14948
+ });
14949
+ var totals = usageStatisticsTotalsSchema.shape;
14950
+ var usageStatisticsSessionSchema = external_exports.strictObject({
14951
+ harness,
14952
+ sessionId: external_exports.string().min(1).max(512),
14953
+ project: project.nullable(),
14954
+ /** Persisted Desktop title for a mapped Session, otherwise its native name; may be absent. */
14955
+ title: external_exports.string().min(1).max(200).optional(),
14956
+ /** Models the session used, most requests first. */
14957
+ models: external_exports.array(model).max(16),
14958
+ firstAtMs: count,
14959
+ lastAtMs: count,
14960
+ ...totals
14961
+ });
14962
+ var usageStatisticsResultSchema = external_exports.strictObject({
14963
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
14964
+ /** First local date of the range; null for all time. */
14965
+ from: localDate.nullable(),
14966
+ to: localDate,
14967
+ /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
14968
+ filters: external_exports.strictObject({
14969
+ harness: harness.nullable(),
14970
+ model: model.nullable(),
14971
+ unknownModel: external_exports.boolean(),
14972
+ project: project.nullable(),
14973
+ unknownProject: external_exports.boolean(),
14974
+ date: localDate.nullable()
14975
+ }),
14976
+ /** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
14977
+ reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
14978
+ /** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
14979
+ failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
14980
+ /** Every value seen in the range, ignoring the filters, to choose filters from. */
14981
+ options: external_exports.strictObject({
14982
+ harnesses: external_exports.array(harness).max(256),
14983
+ models: external_exports.array(model.nullable()).max(4096),
14984
+ projects: external_exports.array(project.nullable()).max(4096)
14985
+ }),
14986
+ /** Current display metadata, scoped by Harness. Never a pricing or filter identity.
14987
+ * Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
14988
+ */
14989
+ modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
14990
+ /** Native credits, all filters applied, never combined across Harnesses or treated as USD.
14991
+ * Only groups with at least one reported value appear; reportedRequests exposes partial data.
14992
+ */
14993
+ credits: external_exports.array(external_exports.strictObject({
14994
+ harness,
14995
+ model: model.nullable(),
14996
+ credits: external_exports.number().finite().min(0),
14997
+ reportedRequests: count,
14998
+ requests: count
14999
+ })).max(4096).optional(),
15000
+ /** All filters applied. */
15001
+ totals: usageStatisticsTotalsSchema,
15002
+ /** Each date and Harness of the range: every filter except the day. */
15003
+ daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
15004
+ /** Local weekday (0 = Sunday) and hour, all filters applied. */
15005
+ hourly: external_exports.array(external_exports.strictObject({
15006
+ weekday: external_exports.number().int().min(0).max(6),
15007
+ hour: external_exports.number().int().min(0).max(23),
15008
+ ...totals
15009
+ })).max(168),
15010
+ byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
15011
+ byModel: external_exports.array(external_exports.strictObject({
15012
+ model: model.nullable(),
15013
+ ...totals,
15014
+ /** Requests priced by what the Harness recorded they cost, not by a price list. */
15015
+ harnessPricedRequests: count
15016
+ })).max(4096),
15017
+ byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
15018
+ /**
15019
+ * The sessions that spent the most, by cost and by tokens without cache, all filters applied;
15020
+ * requests without a native session are not listed here but count everywhere else.
15021
+ */
15022
+ sessions: external_exports.array(usageStatisticsSessionSchema).max(100),
15023
+ /**
15024
+ * The sessions last active in the range, newest first, all filters applied. Optional for older
15025
+ * Hosts; missing is treated as no list rather than no sessions.
15026
+ */
15027
+ recentSessions: external_exports.array(usageStatisticsSessionSchema).max(100).optional()
15028
+ });
15029
+
14866
15030
  // packages/shared-contracts/dist/ids.js
14867
15031
  var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
14868
15032
  message: "Identifier must not be empty or whitespace"
@@ -14884,13 +15048,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
14884
15048
  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);
14885
15049
  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");
14886
15050
  var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
15051
+ var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
15052
+ var harnessInstallationGuideSchema = external_exports.object({
15053
+ commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
15054
+ before: localizedTextSchema.optional(),
15055
+ after: localizedTextSchema.optional(),
15056
+ downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
15057
+ }).strict();
14887
15058
  var pluginPresentationShape = {
14888
15059
  id: harnessPluginIdSchema,
14889
15060
  name: external_exports.string().trim().min(1).max(128),
14890
15061
  version: external_exports.string().min(1).max(128),
15062
+ /** Capability-only plugin; omitted for existing session-capable plugins. */
15063
+ kind: external_exports.literal("usage").optional(),
15064
+ /** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
15065
+ iconStyle: external_exports.object({
15066
+ vector: external_exports.object({
15067
+ viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
15068
+ color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
15069
+ paths: external_exports.array(external_exports.object({
15070
+ d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
15071
+ fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
15072
+ fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
15073
+ }).strict()).min(1).max(32)
15074
+ }).strict().optional(),
15075
+ background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
15076
+ borderRadius: external_exports.number().min(0).max(50).optional(),
15077
+ paddingRatio: external_exports.number().min(0).max(0.25).optional()
15078
+ }).strict().optional(),
15079
+ installation: harnessInstallationGuideSchema.optional(),
15080
+ notice: localizedTextSchema.optional(),
14891
15081
  /** The factory accepts a persisted local entrypoint through its construction context. */
14892
15082
  launchCommand: external_exports.literal(true).optional(),
14893
15083
  links: external_exports.object({
15084
+ website: documentationUrlSchema.optional(),
14894
15085
  documentation: documentationUrlSchema.optional(),
14895
15086
  installation: documentationUrlSchema.optional()
14896
15087
  }).strict().optional()
@@ -14967,6 +15158,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
14967
15158
  "codexhost/account/list",
14968
15159
  "codexhost/account/refresh",
14969
15160
  "codexhost/account/usage/inspect",
15161
+ "codexhost/usage/model-prices/get",
15162
+ "codexhost/usage/model-prices/set",
15163
+ "codexhost/usage/model-prices/default",
15164
+ "codexhost/usage/statistics/get",
14970
15165
  "codexhost/update/check",
14971
15166
  "codexhost/update/start",
14972
15167
  "codexhost/update/status"
@@ -15031,6 +15226,7 @@ var threadUsageSnapshotSchema = external_exports.object({
15031
15226
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
15032
15227
  outputTokens: nonNegativeSafeIntegerSchema.optional(),
15033
15228
  outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15229
+ apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15034
15230
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15035
15231
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15036
15232
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
@@ -15042,7 +15238,11 @@ var threadUsageSnapshotSchema = external_exports.object({
15042
15238
  planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
15043
15239
  planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15044
15240
  planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
15045
- planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
15241
+ planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15242
+ sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
15243
+ timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
15244
+ costSource: external_exports.enum(["publicPrice", "native"]).optional(),
15245
+ unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
15046
15246
  }).strict().superRefine((usage, context) => {
15047
15247
  if (Object.keys(usage).length === 0) {
15048
15248
  context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
@@ -15063,6 +15263,20 @@ var threadUsageSnapshotSchema = external_exports.object({
15063
15263
  path: ["contextWindowTokens"]
15064
15264
  });
15065
15265
  }
15266
+ if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
15267
+ context.addIssue({
15268
+ code: "custom",
15269
+ message: "Thread Usage costSource must be provided with totalCostUsd",
15270
+ path: ["costSource"]
15271
+ });
15272
+ }
15273
+ if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
15274
+ context.addIssue({
15275
+ code: "custom",
15276
+ message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
15277
+ path: ["unpricedModels"]
15278
+ });
15279
+ }
15066
15280
  if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
15067
15281
  context.addIssue({
15068
15282
  code: "custom",
@@ -15332,27 +15546,27 @@ var harnessModelCatalogSchema = external_exports.object({
15332
15546
  }).strict().superRefine((catalog, context) => {
15333
15547
  const refs = /* @__PURE__ */ new Set();
15334
15548
  const thinkingIds = new Set(catalog.thinkingOptions.map(({ id }) => id));
15335
- for (const [index, model] of catalog.models.entries()) {
15336
- if (refs.has(model.ref.id)) {
15549
+ for (const [index, model2] of catalog.models.entries()) {
15550
+ if (refs.has(model2.ref.id)) {
15337
15551
  context.addIssue({
15338
15552
  code: "custom",
15339
15553
  message: "Model Catalog refs must be unique",
15340
15554
  path: ["models", index, "ref", "id"]
15341
15555
  });
15342
15556
  }
15343
- refs.add(model.ref.id);
15344
- if (model.fastModel) {
15345
- if (refs.has(model.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model.fastModel?.id)) {
15557
+ refs.add(model2.ref.id);
15558
+ if (model2.fastModel) {
15559
+ if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
15346
15560
  context.addIssue({
15347
15561
  code: "custom",
15348
15562
  message: "Fast Model refs must be distinct and unique",
15349
15563
  path: ["models", index, "fastModel"]
15350
15564
  });
15351
15565
  }
15352
- refs.add(model.fastModel.id);
15566
+ refs.add(model2.fastModel.id);
15353
15567
  }
15354
15568
  const supportedThinkingIds = /* @__PURE__ */ new Set();
15355
- for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
15569
+ for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
15356
15570
  if (supportedThinkingIds.has(optionId)) {
15357
15571
  context.addIssue({
15358
15572
  code: "custom",
@@ -15941,6 +16155,11 @@ var codexSshDraftSchema = external_exports.strictObject({
15941
16155
  });
15942
16156
  var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
15943
16157
  external_exports.strictObject({ action: external_exports.literal("list") }),
16158
+ external_exports.strictObject({
16159
+ action: external_exports.literal("read-thread"),
16160
+ hostId: hostId.refine((id) => id !== "local"),
16161
+ input: delegationReadParamsSchema
16162
+ }),
15944
16163
  external_exports.strictObject({
15945
16164
  action: external_exports.literal("save"),
15946
16165
  draft: codexSshDraftSchema,
@@ -16098,10 +16317,25 @@ async function startControllerAttachmentServer(options) {
16098
16317
  respond(socket, "rejected");
16099
16318
  return;
16100
16319
  }
16101
- socket.setTimeout(3e4, () => socket.destroy());
16320
+ socket.setTimeout(
16321
+ input.action === "read-thread" ? REMOTE_THREAD_CONTROL_TIMEOUT_MS : 3e4,
16322
+ () => socket.destroy()
16323
+ );
16102
16324
  const operation = options.remoteConnections;
16103
16325
  void Promise.resolve().then(() => operation(input)).then(
16104
- (reply) => socket.end(JSON.stringify(reply) + "\n"),
16326
+ (reply) => {
16327
+ const serialized = JSON.stringify(reply) + "\n";
16328
+ if (input.action === "read-thread" && Buffer.byteLength(serialized) > REMOTE_THREAD_REPLY_MAX_BYTES) {
16329
+ socket.end(
16330
+ JSON.stringify({
16331
+ error: {
16332
+ code: -32094,
16333
+ message: "Thread snapshot exceeds the 16 MiB response limit; reduce the message page size. Oversized individual results are not supported."
16334
+ }
16335
+ }) + "\n"
16336
+ );
16337
+ } else socket.end(serialized);
16338
+ },
16105
16339
  () => socket.end(
16106
16340
  JSON.stringify({
16107
16341
  error: {
@@ -16895,14 +17129,14 @@ function createDraftPrewarmPolicyBridge(manager, bridge, hostId2, target, prewar
16895
17129
  throw new Error("Renderer request manager is retired");
16896
17130
  return manager;
16897
17131
  },
16898
- select(model) {
17132
+ select(model2) {
16899
17133
  if (disposed || isCurrentManager && !isCurrentManager())
16900
17134
  throw new Error("Renderer request manager is retired");
16901
- if (model !== null && (typeof model !== "string" || !model.startsWith("codexhost/"))) {
17135
+ if (model2 !== null && (typeof model2 !== "string" || !model2.startsWith("codexhost/"))) {
16902
17136
  throw new Error("Draft route Model must be a codexhost transport carrier");
16903
17137
  }
16904
- if (selectedModel === model) return false;
16905
- selectedModel = model;
17138
+ if (selectedModel === model2) return false;
17139
+ selectedModel = model2;
16906
17140
  prewarmGeneration += 1;
16907
17141
  discardExternalPrewarms();
16908
17142
  return true;
@@ -17254,8 +17488,10 @@ function awaitWithSignal(promise2, signal, timeoutMessage) {
17254
17488
  });
17255
17489
  }
17256
17490
  function sameAgents(actual, expected) {
17491
+ if (!actual.includes("codex") || new Set(actual).size !== actual.length) return false;
17492
+ if (!expected) return true;
17257
17493
  const expectedSet = new Set(expected);
17258
- return actual.length === expected.length && new Set(actual).size === actual.length && actual.every((agent) => expectedSet.has(agent));
17494
+ return actual.length === expected.length && actual.every((agent) => expectedSet.has(agent));
17259
17495
  }
17260
17496
  function isPrimaryRendererUrl(value) {
17261
17497
  try {
@@ -17468,7 +17704,7 @@ var defaultOperations = {
17468
17704
  installDraftPrewarmPolicy: installRendererDraftPrewarmPolicyDirect
17469
17705
  };
17470
17706
  async function createRendererCdpControlSession(options) {
17471
- const enabledAgents = options.enabledAgents ?? ["codex", "pi"];
17707
+ const enabledAgents = options.enabledAgents;
17472
17708
  const timeoutMs = options.timeoutMs ?? 3e4;
17473
17709
  const pollIntervalMs = options.pollIntervalMs ?? 250;
17474
17710
  const operations = options.operations ?? defaultOperations;
@@ -17664,26 +17900,7 @@ async function runDesktopController(options, signal, dependencies = defaultDepen
17664
17900
  rendererCdpEndpoint: options.rendererCdpEndpoint,
17665
17901
  rendererSource: `${RENDERER_CSP_BOOTSTRAP}
17666
17902
  ${rendererSource}`,
17667
- enabledAgents: [
17668
- "codex",
17669
- "pi",
17670
- "claude-code",
17671
- "deepseek-harness",
17672
- "opencode",
17673
- "grok",
17674
- "omp",
17675
- "antigravity",
17676
- "hermes",
17677
- "muse",
17678
- "kiro-cli",
17679
- "codebuddy",
17680
- "workbuddy",
17681
- "cursor-cli",
17682
- "qoder",
17683
- "qoder-cn",
17684
- "kimi-code",
17685
- "zcode"
17686
- ],
17903
+ // External Agents are discovered from each target Host after installation.
17687
17904
  timeoutMs: PRODUCTION_INSTALL_TIMEOUT_MS,
17688
17905
  signal
17689
17906
  },