@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
@@ -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,153 @@ 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
+ /** Models the session used, most requests first. */
14955
+ models: external_exports.array(model).max(16),
14956
+ firstAtMs: count,
14957
+ lastAtMs: count,
14958
+ ...totals
14959
+ });
14960
+ var usageStatisticsResultSchema = external_exports.strictObject({
14961
+ range: external_exports.enum(USAGE_STATISTICS_RANGES),
14962
+ /** First local date of the range; null for all time. */
14963
+ from: localDate.nullable(),
14964
+ to: localDate,
14965
+ /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
14966
+ filters: external_exports.strictObject({
14967
+ harness: harness.nullable(),
14968
+ model: model.nullable(),
14969
+ unknownModel: external_exports.boolean(),
14970
+ project: project.nullable(),
14971
+ unknownProject: external_exports.boolean(),
14972
+ date: localDate.nullable()
14973
+ }),
14974
+ /** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
14975
+ reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
14976
+ /** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
14977
+ failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
14978
+ /** Every value seen in the range, ignoring the filters, to choose filters from. */
14979
+ options: external_exports.strictObject({
14980
+ harnesses: external_exports.array(harness).max(256),
14981
+ models: external_exports.array(model.nullable()).max(4096),
14982
+ projects: external_exports.array(project.nullable()).max(4096)
14983
+ }),
14984
+ /** Current display metadata, scoped by Harness. Never a pricing or filter identity.
14985
+ * Optional for older Hosts; missing/conflicting labels fall back to the native model ID.
14986
+ */
14987
+ modelLabels: external_exports.array(external_exports.strictObject({ harness, model, label: model })).max(4096).optional(),
14988
+ /** Native credits, all filters applied, never combined across Harnesses or treated as USD.
14989
+ * Only groups with at least one reported value appear; reportedRequests exposes partial data.
14990
+ */
14991
+ credits: external_exports.array(external_exports.strictObject({
14992
+ harness,
14993
+ model: model.nullable(),
14994
+ credits: external_exports.number().finite().min(0),
14995
+ reportedRequests: count,
14996
+ requests: count
14997
+ })).max(4096).optional(),
14998
+ /** All filters applied. */
14999
+ totals: usageStatisticsTotalsSchema,
15000
+ /** Each date and Harness of the range: every filter except the day. */
15001
+ daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
15002
+ /** Local weekday (0 = Sunday) and hour, all filters applied. */
15003
+ hourly: external_exports.array(external_exports.strictObject({
15004
+ weekday: external_exports.number().int().min(0).max(6),
15005
+ hour: external_exports.number().int().min(0).max(23),
15006
+ ...totals
15007
+ })).max(168),
15008
+ byHarness: external_exports.array(external_exports.strictObject({ harness, ...totals })).max(256),
15009
+ byModel: external_exports.array(external_exports.strictObject({
15010
+ model: model.nullable(),
15011
+ ...totals,
15012
+ /** Requests priced by what the Harness recorded they cost, not by a price list. */
15013
+ harnessPricedRequests: count
15014
+ })).max(4096),
15015
+ byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
15016
+ /**
15017
+ * The sessions that spent the most, by cost and by tokens without cache, all filters applied;
15018
+ * requests without a native session are not listed here but count everywhere else.
15019
+ */
15020
+ sessions: external_exports.array(usageStatisticsSessionSchema).max(100)
15021
+ });
15022
+
14866
15023
  // packages/shared-contracts/dist/ids.js
14867
15024
  var opaqueIdSchema = external_exports.string().refine((value) => value.trim().length > 0, {
14868
15025
  message: "Identifier must not be empty or whitespace"
@@ -14884,13 +15041,40 @@ var HARNESS_PLUGIN_LIMIT = 128;
14884
15041
  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
15042
  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
15043
  var documentationUrlSchema = external_exports.url().refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Plugin documentation links must be credential-free HTTPS URLs");
15044
+ var localizedTextSchema = external_exports.object({ en: external_exports.string().max(4096), "zh-CN": external_exports.string().max(4096).optional() }).strict();
15045
+ var harnessInstallationGuideSchema = external_exports.object({
15046
+ commands: external_exports.array(external_exports.object({ terminal: external_exports.string().max(256), command: external_exports.string().max(4096) }).strict()).max(8),
15047
+ before: localizedTextSchema.optional(),
15048
+ after: localizedTextSchema.optional(),
15049
+ downloads: external_exports.array(external_exports.object({ label: external_exports.string().max(128), url: documentationUrlSchema }).strict()).max(8).optional()
15050
+ }).strict();
14887
15051
  var pluginPresentationShape = {
14888
15052
  id: harnessPluginIdSchema,
14889
15053
  name: external_exports.string().trim().min(1).max(128),
14890
15054
  version: external_exports.string().min(1).max(128),
15055
+ /** Capability-only plugin; omitted for existing session-capable plugins. */
15056
+ kind: external_exports.literal("usage").optional(),
15057
+ /** Original image styling or bounded vector paths; never arbitrary CSS/SVG markup. */
15058
+ iconStyle: external_exports.object({
15059
+ vector: external_exports.object({
15060
+ viewBox: external_exports.string().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),
15061
+ color: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),
15062
+ paths: external_exports.array(external_exports.object({
15063
+ d: external_exports.string().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),
15064
+ fillRule: external_exports.enum(["evenodd", "nonzero"]).optional(),
15065
+ fill: external_exports.string().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()
15066
+ }).strict()).min(1).max(32)
15067
+ }).strict().optional(),
15068
+ background: external_exports.string().regex(/^#[a-f0-9]{6}$/iu).optional(),
15069
+ borderRadius: external_exports.number().min(0).max(50).optional(),
15070
+ paddingRatio: external_exports.number().min(0).max(0.25).optional()
15071
+ }).strict().optional(),
15072
+ installation: harnessInstallationGuideSchema.optional(),
15073
+ notice: localizedTextSchema.optional(),
14891
15074
  /** The factory accepts a persisted local entrypoint through its construction context. */
14892
15075
  launchCommand: external_exports.literal(true).optional(),
14893
15076
  links: external_exports.object({
15077
+ website: documentationUrlSchema.optional(),
14894
15078
  documentation: documentationUrlSchema.optional(),
14895
15079
  installation: documentationUrlSchema.optional()
14896
15080
  }).strict().optional()
@@ -14967,6 +15151,10 @@ var CONSOLE_HOST_METHODS = Object.freeze([
14967
15151
  "codexhost/account/list",
14968
15152
  "codexhost/account/refresh",
14969
15153
  "codexhost/account/usage/inspect",
15154
+ "codexhost/usage/model-prices/get",
15155
+ "codexhost/usage/model-prices/set",
15156
+ "codexhost/usage/model-prices/default",
15157
+ "codexhost/usage/statistics/get",
14970
15158
  "codexhost/update/check",
14971
15159
  "codexhost/update/start",
14972
15160
  "codexhost/update/status"
@@ -15031,6 +15219,7 @@ var threadUsageSnapshotSchema = external_exports.object({
15031
15219
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
15032
15220
  outputTokens: nonNegativeSafeIntegerSchema.optional(),
15033
15221
  outputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15222
+ apiOutputTokensPerSecond: finiteNonNegativeNumberSchema.optional(),
15034
15223
  reasoningOutputTokens: nonNegativeSafeIntegerSchema.optional(),
15035
15224
  totalTokens: nonNegativeSafeIntegerSchema.optional(),
15036
15225
  totalCostUsd: finiteNonNegativeNumberSchema.optional(),
@@ -15042,7 +15231,11 @@ var threadUsageSnapshotSchema = external_exports.object({
15042
15231
  planFiveHourUsedPercent: cacheHitRatePercentSchema.optional(),
15043
15232
  planFiveHourResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15044
15233
  planSevenDayUsedPercent: cacheHitRatePercentSchema.optional(),
15045
- planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional()
15234
+ planSevenDayResetsAtUnix: nonNegativeSafeIntegerSchema.optional(),
15235
+ sessionCacheHitRatePercent: cacheHitRatePercentSchema.optional(),
15236
+ timeToFirstOutputMs: nonNegativeSafeIntegerSchema.optional(),
15237
+ costSource: external_exports.enum(["publicPrice", "native"]).optional(),
15238
+ unpricedModels: external_exports.array(external_exports.string().min(1)).min(1).optional()
15046
15239
  }).strict().superRefine((usage, context) => {
15047
15240
  if (Object.keys(usage).length === 0) {
15048
15241
  context.addIssue({ code: "custom", message: "Thread Usage must contain a reliable field" });
@@ -15063,6 +15256,20 @@ var threadUsageSnapshotSchema = external_exports.object({
15063
15256
  path: ["contextWindowTokens"]
15064
15257
  });
15065
15258
  }
15259
+ if (usage.costSource !== void 0 && usage.totalCostUsd === void 0) {
15260
+ context.addIssue({
15261
+ code: "custom",
15262
+ message: "Thread Usage costSource must be provided with totalCostUsd",
15263
+ path: ["costSource"]
15264
+ });
15265
+ }
15266
+ if (usage.unpricedModels !== void 0 && usage.costSource !== "publicPrice") {
15267
+ context.addIssue({
15268
+ code: "custom",
15269
+ message: "Thread Usage unpricedModels must be provided with a publicPrice cost",
15270
+ path: ["unpricedModels"]
15271
+ });
15272
+ }
15066
15273
  if (usage.planFiveHourResetsAtUnix !== void 0 && usage.planFiveHourUsedPercent === void 0) {
15067
15274
  context.addIssue({
15068
15275
  code: "custom",
@@ -15332,27 +15539,27 @@ var harnessModelCatalogSchema = external_exports.object({
15332
15539
  }).strict().superRefine((catalog, context) => {
15333
15540
  const refs = /* @__PURE__ */ new Set();
15334
15541
  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)) {
15542
+ for (const [index, model2] of catalog.models.entries()) {
15543
+ if (refs.has(model2.ref.id)) {
15337
15544
  context.addIssue({
15338
15545
  code: "custom",
15339
15546
  message: "Model Catalog refs must be unique",
15340
15547
  path: ["models", index, "ref", "id"]
15341
15548
  });
15342
15549
  }
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)) {
15550
+ refs.add(model2.ref.id);
15551
+ if (model2.fastModel) {
15552
+ if (refs.has(model2.fastModel.id) || catalog.models.some((entry) => entry.ref.id === model2.fastModel?.id)) {
15346
15553
  context.addIssue({
15347
15554
  code: "custom",
15348
15555
  message: "Fast Model refs must be distinct and unique",
15349
15556
  path: ["models", index, "fastModel"]
15350
15557
  });
15351
15558
  }
15352
- refs.add(model.fastModel.id);
15559
+ refs.add(model2.fastModel.id);
15353
15560
  }
15354
15561
  const supportedThinkingIds = /* @__PURE__ */ new Set();
15355
- for (const [optionIndex, optionId] of (model.supportedThinkingOptionIds ?? []).entries()) {
15562
+ for (const [optionIndex, optionId] of (model2.supportedThinkingOptionIds ?? []).entries()) {
15356
15563
  if (supportedThinkingIds.has(optionId)) {
15357
15564
  context.addIssue({
15358
15565
  code: "custom",
@@ -15941,6 +16148,11 @@ var codexSshDraftSchema = external_exports.strictObject({
15941
16148
  });
15942
16149
  var remoteConnectionsRequestSchema = external_exports.discriminatedUnion("action", [
15943
16150
  external_exports.strictObject({ action: external_exports.literal("list") }),
16151
+ external_exports.strictObject({
16152
+ action: external_exports.literal("read-thread"),
16153
+ hostId: hostId.refine((id) => id !== "local"),
16154
+ input: delegationReadParamsSchema
16155
+ }),
15944
16156
  external_exports.strictObject({
15945
16157
  action: external_exports.literal("save"),
15946
16158
  draft: codexSshDraftSchema,
@@ -16098,10 +16310,25 @@ async function startControllerAttachmentServer(options) {
16098
16310
  respond(socket, "rejected");
16099
16311
  return;
16100
16312
  }
16101
- socket.setTimeout(3e4, () => socket.destroy());
16313
+ socket.setTimeout(
16314
+ input.action === "read-thread" ? REMOTE_THREAD_CONTROL_TIMEOUT_MS : 3e4,
16315
+ () => socket.destroy()
16316
+ );
16102
16317
  const operation = options.remoteConnections;
16103
16318
  void Promise.resolve().then(() => operation(input)).then(
16104
- (reply) => socket.end(JSON.stringify(reply) + "\n"),
16319
+ (reply) => {
16320
+ const serialized = JSON.stringify(reply) + "\n";
16321
+ if (input.action === "read-thread" && Buffer.byteLength(serialized) > REMOTE_THREAD_REPLY_MAX_BYTES) {
16322
+ socket.end(
16323
+ JSON.stringify({
16324
+ error: {
16325
+ code: -32094,
16326
+ message: "Thread snapshot exceeds the 16 MiB response limit; reduce the message page size. Oversized individual results are not supported."
16327
+ }
16328
+ }) + "\n"
16329
+ );
16330
+ } else socket.end(serialized);
16331
+ },
16105
16332
  () => socket.end(
16106
16333
  JSON.stringify({
16107
16334
  error: {
@@ -16895,14 +17122,14 @@ function createDraftPrewarmPolicyBridge(manager, bridge, hostId2, target, prewar
16895
17122
  throw new Error("Renderer request manager is retired");
16896
17123
  return manager;
16897
17124
  },
16898
- select(model) {
17125
+ select(model2) {
16899
17126
  if (disposed || isCurrentManager && !isCurrentManager())
16900
17127
  throw new Error("Renderer request manager is retired");
16901
- if (model !== null && (typeof model !== "string" || !model.startsWith("codexhost/"))) {
17128
+ if (model2 !== null && (typeof model2 !== "string" || !model2.startsWith("codexhost/"))) {
16902
17129
  throw new Error("Draft route Model must be a codexhost transport carrier");
16903
17130
  }
16904
- if (selectedModel === model) return false;
16905
- selectedModel = model;
17131
+ if (selectedModel === model2) return false;
17132
+ selectedModel = model2;
16906
17133
  prewarmGeneration += 1;
16907
17134
  discardExternalPrewarms();
16908
17135
  return true;
@@ -17254,8 +17481,10 @@ function awaitWithSignal(promise2, signal, timeoutMessage) {
17254
17481
  });
17255
17482
  }
17256
17483
  function sameAgents(actual, expected) {
17484
+ if (!actual.includes("codex") || new Set(actual).size !== actual.length) return false;
17485
+ if (!expected) return true;
17257
17486
  const expectedSet = new Set(expected);
17258
- return actual.length === expected.length && new Set(actual).size === actual.length && actual.every((agent) => expectedSet.has(agent));
17487
+ return actual.length === expected.length && actual.every((agent) => expectedSet.has(agent));
17259
17488
  }
17260
17489
  function isPrimaryRendererUrl(value) {
17261
17490
  try {
@@ -17468,7 +17697,7 @@ var defaultOperations = {
17468
17697
  installDraftPrewarmPolicy: installRendererDraftPrewarmPolicyDirect
17469
17698
  };
17470
17699
  async function createRendererCdpControlSession(options) {
17471
- const enabledAgents = options.enabledAgents ?? ["codex", "pi"];
17700
+ const enabledAgents = options.enabledAgents;
17472
17701
  const timeoutMs = options.timeoutMs ?? 3e4;
17473
17702
  const pollIntervalMs = options.pollIntervalMs ?? 250;
17474
17703
  const operations = options.operations ?? defaultOperations;
@@ -17664,26 +17893,7 @@ async function runDesktopController(options, signal, dependencies = defaultDepen
17664
17893
  rendererCdpEndpoint: options.rendererCdpEndpoint,
17665
17894
  rendererSource: `${RENDERER_CSP_BOOTSTRAP}
17666
17895
  ${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
- ],
17896
+ // External Agents are discovered from each target Host after installation.
17687
17897
  timeoutMs: PRODUCTION_INSTALL_TIMEOUT_MS,
17688
17898
  signal
17689
17899
  },