@liberseek/boft-cli-win32-arm64 0.8.3 → 0.8.4

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 (34) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +58 -5
  4. package/app/console-web.js +436 -67
  5. package/app/desktop-controller.mjs +72 -9
  6. package/app/host-runtime.mjs +772 -218
  7. package/app/plugins/antigravity/plugin.mjs +91 -13
  8. package/app/plugins/claude-code/plugin.mjs +404 -26
  9. package/app/plugins/codebuddy/plugin.mjs +117 -22
  10. package/app/plugins/codex-usage/plugin.mjs +176 -74
  11. package/app/plugins/copilot/assets/icon.png +0 -0
  12. package/app/plugins/copilot/manifest.json +26 -0
  13. package/app/plugins/copilot/plugin.mjs +34601 -0
  14. package/app/plugins/cursor-cli/plugin.mjs +20794 -44912
  15. package/app/plugins/deepseek-harness/plugin.mjs +83 -11
  16. package/app/plugins/enabled.json +1 -0
  17. package/app/plugins/grok/plugin.mjs +214 -24
  18. package/app/plugins/hermes/plugin.mjs +80 -9
  19. package/app/plugins/kimi-code/plugin.mjs +76 -7
  20. package/app/plugins/kiro-cli/plugin.mjs +76 -7
  21. package/app/plugins/muse/plugin.mjs +73 -5
  22. package/app/plugins/omp/plugin.mjs +2155 -2000
  23. package/app/plugins/opencode/plugin.mjs +85 -11
  24. package/app/plugins/pi/plugin.mjs +2515 -2298
  25. package/app/plugins/qoder/plugin.mjs +83 -11
  26. package/app/plugins/qoder-cn/plugin.mjs +83 -11
  27. package/app/plugins/workbuddy/plugin.mjs +378 -46
  28. package/app/plugins/zcode/plugin.mjs +84 -11
  29. package/app/renderer-extension.js +833 -162
  30. package/bin/boft.exe +0 -0
  31. package/libexec/boft-node-repl.exe +0 -0
  32. package/libexec/boft-shim.exe +0 -0
  33. package/libexec/boft-updater.exe +0 -0
  34. package/package.json +1 -1
@@ -15138,10 +15138,19 @@ var model = external_exports.string().min(1).max(512);
15138
15138
  var project = external_exports.string().min(1).max(4096);
15139
15139
  var usageStatisticsParamsSchema = external_exports.strictObject({
15140
15140
  range: external_exports.enum(USAGE_STATISTICS_RANGES),
15141
+ /** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
15142
+ timeZone: external_exports.string().min(1).max(128).refine((value) => {
15143
+ try {
15144
+ new Intl.DateTimeFormat("en", { timeZone: value });
15145
+ return true;
15146
+ } catch {
15147
+ return false;
15148
+ }
15149
+ }, "Unsupported usage statistics timezone").optional(),
15141
15150
  harness: harness.optional(),
15142
15151
  model: model.nullable().optional(),
15143
15152
  project: project.nullable().optional(),
15144
- /** One local date inside the range. */
15153
+ /** One date in the query timezone inside the range. */
15145
15154
  date: localDate.optional()
15146
15155
  });
15147
15156
  var usageStatisticsTotalsSchema = external_exports.strictObject({
@@ -15177,7 +15186,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
15177
15186
  });
15178
15187
  var usageStatisticsResultSchema = external_exports.strictObject({
15179
15188
  range: external_exports.enum(USAGE_STATISTICS_RANGES),
15180
- /** First local date of the range; null for all time. */
15189
+ /** First date in the query timezone (Host local when omitted); null for all time. */
15181
15190
  from: localDate.nullable(),
15182
15191
  to: localDate,
15183
15192
  /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
@@ -15217,7 +15226,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
15217
15226
  totals: usageStatisticsTotalsSchema,
15218
15227
  /** Each date and Harness of the range: every filter except the day. */
15219
15228
  daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
15220
- /** Local weekday (0 = Sunday) and hour, all filters applied. */
15229
+ /** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
15221
15230
  hourly: external_exports.array(external_exports.strictObject({
15222
15231
  weekday: external_exports.number().int().min(0).max(6),
15223
15232
  hour: external_exports.number().int().min(0).max(23),
@@ -15359,6 +15368,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
15359
15368
  "codexhost/harness/display-settings/set",
15360
15369
  "codexhost/harness/inspect",
15361
15370
  "codexhost/harness/installation",
15371
+ "codexhost/harness/installation/start",
15372
+ "codexhost/harness/installation/status",
15362
15373
  "codexhost/harness/launch-settings/get",
15363
15374
  "codexhost/harness/launch-settings/set",
15364
15375
  HARNESS_LONG_CONTEXT_GET_METHOD,
@@ -15436,7 +15447,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
15436
15447
  var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
15437
15448
  var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
15438
15449
  var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
15450
+ var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
15451
+ var composerIndicatorsSchema = external_exports.array(external_exports.object({
15452
+ kind: external_exports.literal("countdown"),
15453
+ id: external_exports.string().min(1).max(64),
15454
+ expiresAtUnix: nonNegativeSafeIntegerSchema,
15455
+ label: indicatorTextSchema(256).optional(),
15456
+ tooltip: indicatorTextSchema(1024).optional()
15457
+ }).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
15458
+ message: "Composer indicator IDs must be unique"
15459
+ });
15439
15460
  var threadUsageSnapshotSchema = external_exports.object({
15461
+ composerIndicators: composerIndicatorsSchema.optional(),
15440
15462
  inputTokens: nonNegativeSafeIntegerSchema.optional(),
15441
15463
  cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
15442
15464
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
@@ -15862,7 +15884,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
15862
15884
  }).strict().optional(),
15863
15885
  input: external_exports.object({
15864
15886
  image: external_exports.boolean()
15865
- }).strict().optional()
15887
+ }).strict().optional(),
15888
+ /** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
15889
+ steer: external_exports.boolean().optional()
15866
15890
  }).strict();
15867
15891
  var harnessConfigurationStateSchema = external_exports.object({
15868
15892
  effectiveModel: harnessModelRefSchema.optional(),
@@ -15909,7 +15933,9 @@ var harnessInspectionSchema = external_exports.union([
15909
15933
  var harnessInspectParamsSchema = external_exports.object({
15910
15934
  harnessId: harnessIdSchema,
15911
15935
  cwd: nonBlankTextSchema2.max(16384).optional(),
15912
- refresh: external_exports.boolean().optional()
15936
+ refresh: external_exports.boolean().optional(),
15937
+ /** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
15938
+ purpose: external_exports.literal("availability").optional()
15913
15939
  }).strict();
15914
15940
  var harnessWebUiOpenParamsSchema = external_exports.object({
15915
15941
  harnessId: harnessIdSchema
@@ -15994,6 +16020,15 @@ var threadOwnershipListResultSchema = external_exports.object({
15994
16020
  seen.add(thread.threadId);
15995
16021
  }
15996
16022
  });
16023
+ var threadSteeringInspectParamsSchema = external_exports.object({
16024
+ threadId: hostThreadIdSchema,
16025
+ /** The text about to be steered; a Harness command always stops and restarts. */
16026
+ text: external_exports.string().optional()
16027
+ }).strict();
16028
+ var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
16029
+ var threadSteeringInspectResultSchema = external_exports.object({
16030
+ delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
16031
+ }).strict();
15997
16032
 
15998
16033
  // ../../shared-contracts/dist/harness-route.js
15999
16034
  var harnessPluginRouteSchema = external_exports.object({
@@ -16026,6 +16061,10 @@ var harnessInstallationStateSchema = external_exports.object({
16026
16061
  latestVersion: external_exports.string().min(1).max(128),
16027
16062
  updateAvailable: external_exports.boolean(),
16028
16063
  canUpdate: external_exports.boolean(),
16064
+ /** Defaults to CLI; some Harnesses ship only inside a desktop application. */
16065
+ versionKind: external_exports.enum(["cli", "application"]).optional(),
16066
+ /** Official download opened by the user; does not imply an automatic installation. */
16067
+ manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
16029
16068
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
16030
16069
  message: external_exports.string().max(2048).optional(),
16031
16070
  messageCode: external_exports.string().min(1).max(128).optional(),
@@ -16033,6 +16072,20 @@ var harnessInstallationStateSchema = external_exports.object({
16033
16072
  notice: harnessLocalizedTextSchema.optional(),
16034
16073
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
16035
16074
  }).strict();
16075
+ var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
16076
+ var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
16077
+ external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
16078
+ external_exports.object({
16079
+ taskId: external_exports.string().uuid(),
16080
+ status: external_exports.literal("succeeded"),
16081
+ result: harnessInstallationStateSchema
16082
+ }).strict(),
16083
+ external_exports.object({
16084
+ taskId: external_exports.string().uuid(),
16085
+ status: external_exports.literal("failed"),
16086
+ error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
16087
+ }).strict()
16088
+ ]);
16036
16089
 
16037
16090
  // ../../shared-contracts/dist/codex-accounts.js
16038
16091
  var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
@@ -16547,6 +16600,18 @@ function sanitizeDiagnosticTail(value) {
16547
16600
  return redacted.length <= DIAGNOSTIC_TAIL_MAX_LENGTH ? redacted : redacted.slice(-DIAGNOSTIC_TAIL_MAX_LENGTH);
16548
16601
  }
16549
16602
 
16603
+ // ../../harness-adapter/dist/steer.js
16604
+ function unsupportedSteer(harnessLabel) {
16605
+ return {
16606
+ ok: false,
16607
+ error: {
16608
+ code: "unsupported",
16609
+ message: `${harnessLabel} cannot steer an active Turn natively`,
16610
+ retryable: false
16611
+ }
16612
+ };
16613
+ }
16614
+
16550
16615
  // ../../harness-adapter/dist/usage.js
16551
16616
  var tokenFields = [
16552
16617
  "inputTokens",
@@ -16574,6 +16639,7 @@ var usageFields = /* @__PURE__ */ new Set([
16574
16639
  ...safeIntegerFields,
16575
16640
  ...percentFields,
16576
16641
  "sessionCacheUsage",
16642
+ "composerIndicators",
16577
16643
  "totalCostUsd",
16578
16644
  "totalCredits",
16579
16645
  "contextUsagePercent",
@@ -16596,6 +16662,7 @@ function parseHostUsage(value) {
16596
16662
  throw new Error(`Harness Usage contains unknown field '${key}'`);
16597
16663
  }
16598
16664
  }
16665
+ const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
16599
16666
  for (const field of [
16600
16667
  "totalCredits",
16601
16668
  "contextUsagePercent",
@@ -16672,9 +16739,9 @@ function parseHostUsage(value) {
16672
16739
  if (value.costSource !== "publicPrice") {
16673
16740
  throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
16674
16741
  }
16675
- return { ...value, unpricedModels: [...models] };
16742
+ return { ...value, ...indicators, unpricedModels: [...models] };
16676
16743
  }
16677
- return { ...value };
16744
+ return { ...value, ...indicators };
16678
16745
  }
16679
16746
  var requestTokenFields = [
16680
16747
  "inputTokens",
@@ -17031,10 +17098,13 @@ function usageSessionTitle(value) {
17031
17098
  return void 0;
17032
17099
  if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
17033
17100
  return normalized;
17034
- const characters = [...normalized];
17035
- if (characters.length <= MAX_SESSION_TITLE_LENGTH)
17036
- return normalized;
17037
- return `${characters.slice(0, MAX_SESSION_TITLE_LENGTH - 1).join("").trimEnd()}…`;
17101
+ let title = "";
17102
+ for (const character of normalized) {
17103
+ if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
17104
+ break;
17105
+ title += character;
17106
+ }
17107
+ return `${title.trimEnd()}…`;
17038
17108
  }
17039
17109
  function sessionIdOk(value) {
17040
17110
  return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
@@ -22684,9 +22754,23 @@ var ClientSideConnection = class {
22684
22754
 
22685
22755
  // dist/copy-cleanup.js
22686
22756
  import { randomBytes } from "node:crypto";
22757
+
22758
+ // dist/acp-stdio.js
22687
22759
  import { createInterface as createInterface2 } from "node:readline";
22688
- import { stripVTControlCharacters } from "node:util";
22689
22760
  import { Readable } from "node:stream";
22761
+ import { stripVTControlCharacters } from "node:util";
22762
+ function codeBuddyAcpOutput(stdout, onLine) {
22763
+ return Readable.from((async function* () {
22764
+ for await (const line of createInterface2({ input: stdout })) {
22765
+ onLine?.(stripVTControlCharacters(line));
22766
+ if (line.trimStart().startsWith("{"))
22767
+ yield Buffer.from(`${line}
22768
+ `);
22769
+ }
22770
+ })());
22771
+ }
22772
+
22773
+ // dist/copy-cleanup.js
22690
22774
  var CodeBuddyCopyCleanup = class {
22691
22775
  copyId;
22692
22776
  cwd;
@@ -22716,17 +22800,11 @@ var CodeBuddyCopyCleanup = class {
22716
22800
  }
22717
22801
  /** Native --serve banners include its password; never pass them to the ACP parser/logs. */
22718
22802
  protocolOutput(stdout) {
22719
- return Readable.from(this.#protocolLines(stdout));
22720
- }
22721
- async *#protocolLines(stdout) {
22722
- for await (const line of createInterface2({ input: stdout })) {
22723
- const endpoint = /^\s*Endpoint\s+(http:\/\/127\.0\.0\.1:\d+)\s*$/u.exec(stripVTControlCharacters(line));
22803
+ return codeBuddyAcpOutput(stdout, (line) => {
22804
+ const endpoint = /^\s*Endpoint\s+(http:\/\/127\.0\.0\.1:\d+)\s*$/u.exec(line);
22724
22805
  if (endpoint)
22725
22806
  this.#endpoint = endpoint[1];
22726
- if (line.trimStart().startsWith("{"))
22727
- yield Buffer.from(`${line}
22728
- `);
22729
- }
22807
+ });
22730
22808
  }
22731
22809
  async remove() {
22732
22810
  if (!this.#endpoint)
@@ -22806,7 +22884,7 @@ var CodeBuddyAcpClient = class {
22806
22884
  return { outcome: "cancelled" };
22807
22885
  return options.handlers.question(params);
22808
22886
  }
22809
- }), ndJsonStream2(Writable.toWeb(this.#child.stdin), Readable2.toWeb(this.#copyCleanup?.protocolOutput(this.#child.stdout) ?? this.#child.stdout)));
22887
+ }), ndJsonStream2(Writable.toWeb(this.#child.stdin), Readable2.toWeb(this.#copyCleanup?.protocolOutput(this.#child.stdout) ?? (invocation.arguments.includes("--serve") ? codeBuddyAcpOutput(this.#child.stdout) : this.#child.stdout))));
22810
22888
  void this.#connection.closed.then(() => {
22811
22889
  this.#fault(new CodeBuddyError("processExited", "ACP connection closed"));
22812
22890
  }).catch((error51) => {
@@ -24833,6 +24911,8 @@ var CodeBuddySession = class {
24833
24911
  async #execute(command, nativeCommand = false) {
24834
24912
  if (this.#closed || this.#fault)
24835
24913
  return failure("invalidState", "Session is closed or faulted", this.profile);
24914
+ if (command.type === "turn.steer")
24915
+ return unsupportedSteer(this.profile.displayName);
24836
24916
  if (command.type === "interaction.respond")
24837
24917
  return this.#interactions.respond(command);
24838
24918
  if (command.type === "turn.cancel") {
@@ -25250,6 +25330,7 @@ var harnessBrokerMethodSchema = external_exports.enum([
25250
25330
  "adapter.sessionImport.resolve",
25251
25331
  "adapter.subagent.readSnapshot",
25252
25332
  "session.readSnapshot",
25333
+ "session.readCapabilities",
25253
25334
  "session.refreshUsage",
25254
25335
  "session.execute",
25255
25336
  "session.commands.list",
@@ -25451,6 +25532,11 @@ var turnStartSchema = external_exports.object({
25451
25532
  turnId: hostTurnIdSchema,
25452
25533
  input: external_exports.array(textInputSchema)
25453
25534
  }).strict();
25535
+ var turnSteerSchema = external_exports.object({
25536
+ type: external_exports.literal("turn.steer"),
25537
+ turnId: hostTurnIdSchema,
25538
+ input: external_exports.array(textInputSchema)
25539
+ }).strict();
25454
25540
  var turnCancelSchema = external_exports.object({ type: external_exports.literal("turn.cancel"), turnId: hostTurnIdSchema }).strict();
25455
25541
  var interactionResponseSchema = external_exports.union([
25456
25542
  external_exports.object({
@@ -25476,6 +25562,7 @@ var permissionSelectSchema = external_exports.object({
25476
25562
  }).strict();
25477
25563
  var brokerHostCommandSchema = external_exports.discriminatedUnion("type", [
25478
25564
  turnStartSchema,
25565
+ turnSteerSchema,
25479
25566
  turnCancelSchema,
25480
25567
  interactionRespondSchema,
25481
25568
  modelSelectSchema,
@@ -25668,6 +25755,7 @@ function parseSessionMetadata(value) {
25668
25755
  sessionId: candidate.sessionId,
25669
25756
  sessionGeneration: candidate.sessionGeneration,
25670
25757
  capabilities: harnessSessionCapabilitiesSchema.parse(candidate.capabilities),
25758
+ readCapabilities: candidate.readCapabilities === true,
25671
25759
  initialState: state,
25672
25760
  initialUsage: candidate.initialUsage === null ? null : parseHostUsage(candidate.initialUsage),
25673
25761
  commands: candidate.commands === true
@@ -26019,6 +26107,11 @@ var BrokeredHarnessSession = class {
26019
26107
  event: { type: "session.faulted", error: unavailable(error51.message) }
26020
26108
  });
26021
26109
  }
26110
+ async readCapabilities() {
26111
+ if (!this.#metadata.readCapabilities)
26112
+ return { ...this.capabilities, steer: false };
26113
+ return harnessSessionCapabilitiesSchema.parse(await this.#request("session.readCapabilities", {}));
26114
+ }
26022
26115
  async refreshUsage() {
26023
26116
  await this.#request("session.refreshUsage", {});
26024
26117
  }
@@ -26050,6 +26143,8 @@ var BrokeredHarnessSession = class {
26050
26143
  try {
26051
26144
  return parseHarnessResult(await this.#request("session.execute", { command }));
26052
26145
  } catch (error51) {
26146
+ if (command.type === "turn.steer")
26147
+ throw error51;
26053
26148
  return {
26054
26149
  ok: false,
26055
26150
  error: unavailable(error51 instanceof Error ? error51.message : String(error51))