@liberseek/boft-cli-linux-x64 0.8.2 → 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.
@@ -14656,10 +14656,19 @@ var model = external_exports.string().min(1).max(512);
14656
14656
  var project = external_exports.string().min(1).max(4096);
14657
14657
  var usageStatisticsParamsSchema = external_exports.strictObject({
14658
14658
  range: external_exports.enum(USAGE_STATISTICS_RANGES),
14659
+ /** Display timezone for ranges, dates and hourly buckets; omitted means the Host's local zone. */
14660
+ timeZone: external_exports.string().min(1).max(128).refine((value) => {
14661
+ try {
14662
+ new Intl.DateTimeFormat("en", { timeZone: value });
14663
+ return true;
14664
+ } catch {
14665
+ return false;
14666
+ }
14667
+ }, "Unsupported usage statistics timezone").optional(),
14659
14668
  harness: harness.optional(),
14660
14669
  model: model.nullable().optional(),
14661
14670
  project: project.nullable().optional(),
14662
- /** One local date inside the range. */
14671
+ /** One date in the query timezone inside the range. */
14663
14672
  date: localDate.optional()
14664
14673
  });
14665
14674
  var usageStatisticsTotalsSchema = external_exports.strictObject({
@@ -14695,7 +14704,7 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
14695
14704
  });
14696
14705
  var usageStatisticsResultSchema = external_exports.strictObject({
14697
14706
  range: external_exports.enum(USAGE_STATISTICS_RANGES),
14698
- /** First local date of the range; null for all time. */
14707
+ /** First date in the query timezone (Host local when omitted); null for all time. */
14699
14708
  from: localDate.nullable(),
14700
14709
  to: localDate,
14701
14710
  /** The filters these figures apply, echoed so a late answer to older filters is recognised. */
@@ -14735,7 +14744,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
14735
14744
  totals: usageStatisticsTotalsSchema,
14736
14745
  /** Each date and Harness of the range: every filter except the day. */
14737
14746
  daily: external_exports.array(external_exports.strictObject({ date: localDate, harness, ...totals })).max(2e5),
14738
- /** Local weekday (0 = Sunday) and hour, all filters applied. */
14747
+ /** Weekday (0 = Sunday) and hour in the query timezone, all filters applied. */
14739
14748
  hourly: external_exports.array(external_exports.strictObject({
14740
14749
  weekday: external_exports.number().int().min(0).max(6),
14741
14750
  hour: external_exports.number().int().min(0).max(23),
@@ -14877,6 +14886,8 @@ var CONSOLE_HOST_METHODS = Object.freeze([
14877
14886
  "codexhost/harness/display-settings/set",
14878
14887
  "codexhost/harness/inspect",
14879
14888
  "codexhost/harness/installation",
14889
+ "codexhost/harness/installation/start",
14890
+ "codexhost/harness/installation/status",
14880
14891
  "codexhost/harness/launch-settings/get",
14881
14892
  "codexhost/harness/launch-settings/set",
14882
14893
  HARNESS_LONG_CONTEXT_GET_METHOD,
@@ -14954,7 +14965,18 @@ var threadManualCompactionStartedSchema = external_exports.strictObject({
14954
14965
  var nonNegativeSafeIntegerSchema = external_exports.number().int().safe().nonnegative();
14955
14966
  var finiteNonNegativeNumberSchema = external_exports.number().finite().nonnegative();
14956
14967
  var cacheHitRatePercentSchema = external_exports.number().finite().min(0).max(100);
14968
+ var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
14969
+ var composerIndicatorsSchema = external_exports.array(external_exports.object({
14970
+ kind: external_exports.literal("countdown"),
14971
+ id: external_exports.string().min(1).max(64),
14972
+ expiresAtUnix: nonNegativeSafeIntegerSchema,
14973
+ label: indicatorTextSchema(256).optional(),
14974
+ tooltip: indicatorTextSchema(1024).optional()
14975
+ }).strict()).max(2).refine((entries) => new Set(entries.map(({ id }) => id)).size === entries.length, {
14976
+ message: "Composer indicator IDs must be unique"
14977
+ });
14957
14978
  var threadUsageSnapshotSchema = external_exports.object({
14979
+ composerIndicators: composerIndicatorsSchema.optional(),
14958
14980
  inputTokens: nonNegativeSafeIntegerSchema.optional(),
14959
14981
  cachedInputTokens: nonNegativeSafeIntegerSchema.optional(),
14960
14982
  cacheWriteInputTokens: nonNegativeSafeIntegerSchema.optional(),
@@ -15380,7 +15402,9 @@ var harnessSessionCapabilitiesSchema = external_exports.object({
15380
15402
  }).strict().optional(),
15381
15403
  input: external_exports.object({
15382
15404
  image: external_exports.boolean()
15383
- }).strict().optional()
15405
+ }).strict().optional(),
15406
+ /** True only when `turn.steer` delivers input into the active Turn through a native primitive. */
15407
+ steer: external_exports.boolean().optional()
15384
15408
  }).strict();
15385
15409
  var harnessConfigurationStateSchema = external_exports.object({
15386
15410
  effectiveModel: harnessModelRefSchema.optional(),
@@ -15427,7 +15451,9 @@ var harnessInspectionSchema = external_exports.union([
15427
15451
  var harnessInspectParamsSchema = external_exports.object({
15428
15452
  harnessId: harnessIdSchema,
15429
15453
  cwd: nonBlankTextSchema2.max(16384).optional(),
15430
- refresh: external_exports.boolean().optional()
15454
+ refresh: external_exports.boolean().optional(),
15455
+ /** `availability` asks only whether the Harness can run; see `InspectHarnessInput.purpose`. */
15456
+ purpose: external_exports.literal("availability").optional()
15431
15457
  }).strict();
15432
15458
  var harnessWebUiOpenParamsSchema = external_exports.object({
15433
15459
  harnessId: harnessIdSchema
@@ -15512,6 +15538,15 @@ var threadOwnershipListResultSchema = external_exports.object({
15512
15538
  seen.add(thread.threadId);
15513
15539
  }
15514
15540
  });
15541
+ var threadSteeringInspectParamsSchema = external_exports.object({
15542
+ threadId: hostThreadIdSchema,
15543
+ /** The text about to be steered; a Harness command always stops and restarts. */
15544
+ text: external_exports.string().optional()
15545
+ }).strict();
15546
+ var threadSteerDeliverySchema = external_exports.enum(["activeTurn", "newTurn"]);
15547
+ var threadSteeringInspectResultSchema = external_exports.object({
15548
+ delivery: external_exports.enum(["official", "activeTurn", "newTurn"])
15549
+ }).strict();
15515
15550
 
15516
15551
  // ../../shared-contracts/dist/harness-route.js
15517
15552
  var harnessPluginRouteSchema = external_exports.object({
@@ -15544,6 +15579,10 @@ var harnessInstallationStateSchema = external_exports.object({
15544
15579
  latestVersion: external_exports.string().min(1).max(128),
15545
15580
  updateAvailable: external_exports.boolean(),
15546
15581
  canUpdate: external_exports.boolean(),
15582
+ /** Defaults to CLI; some Harnesses ship only inside a desktop application. */
15583
+ versionKind: external_exports.enum(["cli", "application"]).optional(),
15584
+ /** Official download opened by the user; does not imply an automatic installation. */
15585
+ manualUpdateUrl: external_exports.url().max(2048).refine((value) => /^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(value), "Manual updates require a credential-free HTTPS URL").optional(),
15547
15586
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
15548
15587
  message: external_exports.string().max(2048).optional(),
15549
15588
  messageCode: external_exports.string().min(1).max(128).optional(),
@@ -15551,6 +15590,20 @@ var harnessInstallationStateSchema = external_exports.object({
15551
15590
  notice: harnessLocalizedTextSchema.optional(),
15552
15591
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
15553
15592
  }).strict();
15593
+ var harnessInstallationTaskParamsSchema = external_exports.object({ taskId: external_exports.string().uuid() }).strict();
15594
+ var harnessInstallationTaskSchema = external_exports.discriminatedUnion("status", [
15595
+ external_exports.object({ taskId: external_exports.string().uuid(), status: external_exports.literal("running") }).strict(),
15596
+ external_exports.object({
15597
+ taskId: external_exports.string().uuid(),
15598
+ status: external_exports.literal("succeeded"),
15599
+ result: harnessInstallationStateSchema
15600
+ }).strict(),
15601
+ external_exports.object({
15602
+ taskId: external_exports.string().uuid(),
15603
+ status: external_exports.literal("failed"),
15604
+ error: external_exports.object({ code: external_exports.number().int(), message: external_exports.string().min(1).max(2048) }).strict()
15605
+ }).strict()
15606
+ ]);
15554
15607
 
15555
15608
  // ../../shared-contracts/dist/codex-accounts.js
15556
15609
  var accountIdSchema = external_exports.string().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u);
@@ -15951,6 +16004,13 @@ import { setImmediate as yieldToEventLoop } from "node:timers/promises";
15951
16004
  // ../../harness-adapter/dist/usage-statistics.js
15952
16005
  import { createReadStream } from "node:fs";
15953
16006
  import { createInterface } from "node:readline";
16007
+ var HarnessUsageSourceChangedError = class extends Error {
16008
+ code = "HARNESS_USAGE_SOURCE_CHANGED";
16009
+ /** Plugins may bundle their own copy of this contract, so instanceof is insufficient. */
16010
+ static is(error51) {
16011
+ return typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === "HARNESS_USAGE_SOURCE_CHANGED";
16012
+ }
16013
+ };
15954
16014
  var MAX_SESSION_ID_LENGTH = 512;
15955
16015
  var MAX_CWD_LENGTH = 4096;
15956
16016
  var MAX_SESSION_TITLE_LENGTH = 200;
@@ -15962,10 +16022,13 @@ function usageSessionTitle(value) {
15962
16022
  return void 0;
15963
16023
  if (normalized.length <= MAX_SESSION_TITLE_LENGTH)
15964
16024
  return normalized;
15965
- const characters = [...normalized];
15966
- if (characters.length <= MAX_SESSION_TITLE_LENGTH)
15967
- return normalized;
15968
- return `${characters.slice(0, MAX_SESSION_TITLE_LENGTH - 1).join("").trimEnd()}…`;
16025
+ let title = "";
16026
+ for (const character of normalized) {
16027
+ if (title.length + character.length >= MAX_SESSION_TITLE_LENGTH)
16028
+ break;
16029
+ title += character;
16030
+ }
16031
+ return `${title.trimEnd()}…`;
15969
16032
  }
15970
16033
  function sessionIdOk(value) {
15971
16034
  return typeof value === "string" && value.length > 0 && value.length <= MAX_SESSION_ID_LENGTH;
@@ -16468,8 +16531,9 @@ var CodexCounters = class {
16468
16531
  // dist/rollout-io.js
16469
16532
  import { createReadStream as createReadStream2 } from "node:fs";
16470
16533
  import { StringDecoder } from "node:string_decoder";
16471
- import { promisify } from "node:util";
16472
- import { zstdDecompress } from "node:zlib";
16534
+ import { pipeline } from "node:stream/promises";
16535
+ import { Readable } from "node:stream";
16536
+ import { constants as zstdConstants, createZstdDecompress } from "node:zlib";
16473
16537
  /*!
16474
16538
  * Rollout reading: zstd frame walking, streaming copy-prefix comparison.
16475
16539
  *
@@ -16492,74 +16556,103 @@ import { zstdDecompress } from "node:zlib";
16492
16556
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16493
16557
  * SOFTWARE.
16494
16558
  */
16495
- var decompress = promisify(zstdDecompress);
16496
- var MAX_FRAME = 64 * 1024 * 1024;
16497
16559
  var MAX_LINE = 128 * 1024 * 1024;
16498
- function frameSize(data) {
16499
- if (data.length < 8)
16500
- return null;
16501
- const magic = data.readUInt32LE(0);
16502
- if ((magic & 4294967280) === 407710288) {
16503
- const size = 8 + data.readUInt32LE(4);
16504
- if (size > MAX_FRAME)
16505
- throw new Error("Codex zstd frame exceeds the safety limit");
16506
- return data.length >= size ? { size, skip: true } : null;
16507
- }
16508
- if (magic !== 4247762216)
16509
- throw new Error("Invalid Codex zstd frame");
16510
- const descriptor = data.readUInt8(4);
16511
- if (descriptor & 8)
16512
- throw new Error("Reserved Codex zstd frame header");
16513
- const single = descriptor >> 5 & 1;
16514
- let offset = 5 + (single ? 0 : 1) + ([0, 1, 2, 4][descriptor & 3] ?? 0) + ([single, 2, 4, 8][descriptor >> 6] ?? 0);
16515
- for (; ; ) {
16516
- if (offset + 3 > data.length)
16517
- return null;
16518
- const block = data.readUIntLE(offset, 3);
16519
- const type = block >> 1 & 3;
16520
- if (type === 3)
16521
- throw new Error("Reserved Codex zstd block");
16522
- offset += 3 + (type === 1 ? 1 : block >>> 3);
16523
- if (offset > MAX_FRAME)
16524
- throw new Error("Codex zstd frame exceeds the safety limit");
16525
- if (block & 1)
16526
- break;
16527
- }
16528
- if (descriptor & 4)
16529
- offset += 4;
16530
- return data.length >= offset ? { size: offset, skip: false } : null;
16531
- }
16532
16560
  async function* rolloutBytes(file2, signal) {
16533
16561
  signal.throwIfAborted();
16534
16562
  const stream = createReadStream2(file2, { signal });
16535
- let pending = Buffer.alloc(0);
16536
16563
  try {
16537
- for await (const value of stream) {
16538
- signal.throwIfAborted();
16539
- const chunk = value;
16540
- if (!file2.endsWith(".zst")) {
16564
+ if (!file2.endsWith(".zst")) {
16565
+ for await (const chunk of stream) {
16566
+ signal.throwIfAborted();
16541
16567
  yield chunk;
16568
+ }
16569
+ return;
16570
+ }
16571
+ const input = stream[Symbol.asyncIterator]();
16572
+ let pending = Buffer.alloc(0);
16573
+ async function readExact(size, allowEof = false) {
16574
+ const parts = [];
16575
+ let length = 0;
16576
+ while (length < size) {
16577
+ signal.throwIfAborted();
16578
+ if (!pending.length) {
16579
+ const next = await input.next();
16580
+ if (next.done) {
16581
+ if (allowEof && !length)
16582
+ return Buffer.alloc(0);
16583
+ throw new Error("Truncated Codex zstd rollout");
16584
+ }
16585
+ pending = next.value;
16586
+ }
16587
+ const count2 = Math.min(size - length, pending.length);
16588
+ parts.push(pending.subarray(0, count2));
16589
+ pending = pending.subarray(count2);
16590
+ length += count2;
16591
+ }
16592
+ return Buffer.concat(parts, length);
16593
+ }
16594
+ for (; ; ) {
16595
+ const magicBytes = await readExact(4, true);
16596
+ if (!magicBytes.length)
16597
+ break;
16598
+ const magic = magicBytes.readUInt32LE(0);
16599
+ if ((magic & 4294967280) === 407710288) {
16600
+ let size = (await readExact(4)).readUInt32LE(0);
16601
+ while (size) {
16602
+ const count2 = Math.min(size, 64 * 1024);
16603
+ await readExact(count2);
16604
+ size -= count2;
16605
+ }
16542
16606
  continue;
16543
16607
  }
16544
- pending = Buffer.concat([pending, chunk]);
16545
- for (; ; ) {
16546
- const frame = frameSize(pending);
16547
- if (!frame)
16548
- break;
16549
- if (!frame.skip) {
16550
- const decoded = await decompress(pending.subarray(0, frame.size), {
16551
- maxOutputLength: 128 * 1024 * 1024
16552
- });
16608
+ if (magic !== 4247762216)
16609
+ throw new Error("Invalid Codex zstd frame");
16610
+ const descriptorBytes = await readExact(1);
16611
+ const descriptor = descriptorBytes.readUInt8(0);
16612
+ if (descriptor & 8)
16613
+ throw new Error("Reserved Codex zstd frame header");
16614
+ const single = descriptor >> 5 & 1;
16615
+ const headerSize = (single ? 0 : 1) + ([0, 1, 2, 4][descriptor & 3] ?? 0) + ([single, 2, 4, 8][descriptor >> 6] ?? 0);
16616
+ const header = Buffer.concat([magicBytes, descriptorBytes, await readExact(headerSize)]);
16617
+ async function* frameChunks() {
16618
+ yield header;
16619
+ for (; ; ) {
16620
+ const blockBytes = await readExact(3);
16621
+ const block = blockBytes.readUIntLE(0, 3);
16622
+ const type = block >> 1 & 3;
16623
+ if (type === 3)
16624
+ throw new Error("Reserved Codex zstd block");
16625
+ const blockSize = block >>> 3;
16626
+ if (blockSize > 128 * 1024)
16627
+ throw new Error("Invalid Codex zstd block size");
16628
+ yield blockBytes;
16629
+ yield await readExact(type === 1 ? 1 : blockSize);
16630
+ if (block & 1)
16631
+ break;
16632
+ }
16633
+ if (descriptor & 4)
16634
+ yield await readExact(4);
16635
+ }
16636
+ const frame = Readable.from(frameChunks(), { objectMode: false });
16637
+ const decoder = createZstdDecompress({
16638
+ chunkSize: 64 * 1024,
16639
+ params: { [zstdConstants.ZSTD_d_windowLogMax]: 27 }
16640
+ });
16641
+ const completed = pipeline(frame, decoder, { signal }).then(() => null, (error51) => error51);
16642
+ try {
16643
+ for await (const chunk of decoder) {
16553
16644
  signal.throwIfAborted();
16554
- yield decoded;
16645
+ yield chunk;
16555
16646
  }
16556
- pending = pending.subarray(frame.size);
16647
+ const error51 = await completed;
16648
+ if (error51)
16649
+ throw error51;
16650
+ } finally {
16651
+ frame.destroy();
16652
+ decoder.destroy();
16653
+ await completed;
16557
16654
  }
16558
- if (pending.length > MAX_FRAME)
16559
- throw new Error("Codex zstd frame exceeds the safety limit");
16560
16655
  }
16561
- if (pending.length)
16562
- throw new Error("Truncated Codex zstd rollout");
16563
16656
  } finally {
16564
16657
  stream.destroy();
16565
16658
  }
@@ -16633,12 +16726,17 @@ var ROW_KINDS = /* @__PURE__ */ new Set([
16633
16726
  ]);
16634
16727
  var HEAD_TYPE = /"type"\s*:\s*"([^"]+)"/u;
16635
16728
  var TAIL_TYPE = /"type"\s*:\s*"([^"]+)"\s*\}\s*$/u;
16729
+ var USER_ROLE = /"role"\s*:\s*"user"/u;
16730
+ var EVENT_OF_INTEREST = /"type"\s*:\s*"(?:token_count|task_started|thread_settings_applied|user_message)"/u;
16636
16731
  function rowKind(line) {
16637
16732
  const head = HEAD_TYPE.exec(line.slice(0, 1024))?.[1];
16638
16733
  if (head && ROW_KINDS.has(head))
16639
16734
  return head;
16640
16735
  return TAIL_TYPE.exec(line.slice(-1024))?.[1] ?? head;
16641
16736
  }
16737
+ function markerIn(pattern, line) {
16738
+ return pattern.test(line.slice(0, 1024)) || pattern.test(line.slice(-1024));
16739
+ }
16642
16740
  async function stamp(file2) {
16643
16741
  const s = await lstat(file2, { bigint: true });
16644
16742
  if (!s.isFile())
@@ -16702,9 +16800,9 @@ async function readCodexRollouts(files, thread, signal, options = {}) {
16702
16800
  options.onIncomplete?.();
16703
16801
  if (!kind || !ROW_KINDS.has(kind))
16704
16802
  continue;
16705
- if (kind === "response_item" && !/"role"\s*:\s*"user"/u.test(line.slice(0, 1024)))
16803
+ if (kind === "response_item" && !markerIn(USER_ROLE, line))
16706
16804
  continue;
16707
- if (kind === "event_msg" && !/"type"\s*:\s*"(?:token_count|task_started|thread_settings_applied|user_message)"/u.test(line.slice(0, 1024)))
16805
+ if (kind === "event_msg" && !markerIn(EVENT_OF_INTEREST, line))
16708
16806
  continue;
16709
16807
  let row;
16710
16808
  try {
@@ -16755,8 +16853,10 @@ async function readCodexRollouts(files, thread, signal, options = {}) {
16755
16853
  break;
16756
16854
  }
16757
16855
  case "response_item":
16758
- counters.boundary();
16759
- firstPrompt ??= userItemPrompt(p);
16856
+ if (p.type === "message" && p.role === "user") {
16857
+ counters.boundary();
16858
+ firstPrompt ??= userItemPrompt(p);
16859
+ }
16760
16860
  break;
16761
16861
  case "event_msg":
16762
16862
  if (p.type === "task_started") {
@@ -16886,7 +16986,7 @@ function createCodexUsageStatistics(environment, options = {}) {
16886
16986
  const entries = await readCodexRollouts(kept.map(({ file: file2 }) => file2), group.thread, signal, options);
16887
16987
  for (const file2 of group.files)
16888
16988
  if (await stamp(file2.file) !== file2.fingerprint)
16889
- throw new Error("Codex rollout changed while reading; refresh to retry");
16989
+ throw new HarnessUsageSourceChangedError("Codex rollout changed while reading; refresh to retry");
16890
16990
  const named = options.sessionId ? void 0 : (await threadNames(signal)).get(group.thread);
16891
16991
  return named ? entries.map((entry) => withUsageSession(entry, {
16892
16992
  sessionId: entry.sessionId,
@@ -16927,6 +17027,7 @@ var usageFields = /* @__PURE__ */ new Set([
16927
17027
  ...safeIntegerFields,
16928
17028
  ...percentFields,
16929
17029
  "sessionCacheUsage",
17030
+ "composerIndicators",
16930
17031
  "totalCostUsd",
16931
17032
  "totalCredits",
16932
17033
  "contextUsagePercent",
@@ -16949,6 +17050,7 @@ function parseHostUsage(value) {
16949
17050
  throw new Error(`Harness Usage contains unknown field '${key2}'`);
16950
17051
  }
16951
17052
  }
17053
+ const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
16952
17054
  for (const field of [
16953
17055
  "totalCredits",
16954
17056
  "contextUsagePercent",
@@ -17025,9 +17127,9 @@ function parseHostUsage(value) {
17025
17127
  if (value.costSource !== "publicPrice") {
17026
17128
  throw new Error("Harness Usage 'unpricedModels' must be provided with a 'publicPrice' cost");
17027
17129
  }
17028
- return { ...value, unpricedModels: [...models] };
17130
+ return { ...value, ...indicators, unpricedModels: [...models] };
17029
17131
  }
17030
- return { ...value };
17132
+ return { ...value, ...indicators };
17031
17133
  }
17032
17134
  var requestTokenFields = [
17033
17135
  "inputTokens",
@@ -0,0 +1,26 @@
1
+ {
2
+ "manifestVersion": 1,
3
+ "id": "copilot",
4
+ "name": "GitHub Copilot",
5
+ "version": "0.0.0",
6
+ "installation": {
7
+ "commands": [
8
+ {
9
+ "terminal": "npm · macOS / Linux / Windows",
10
+ "command": "npm install -g @github/copilot"
11
+ }
12
+ ],
13
+ "after": {
14
+ "en": "Run copilot; use /login only if authentication is unavailable. Existing native authentication on the target Host can be reused. CODEXHOST_COPILOT_COMMAND selects an existing CLI installation. Windows npm launchers resolve to that installation's actual JavaScript or executable entrypoint; arbitrary shell wrappers are not supported.",
15
+ "zh-CN": "运行 copilot;若缺少认证,再使用 /login。可复用目标 Host 已有的原生登录;CODEXHOST_COPILOT_COMMAND 可指定已有 CLI 安装。Windows npm 启动器会解析到同一安装的实际 JavaScript 或可执行入口,不支持任意 shell 包装脚本。"
16
+ }
17
+ },
18
+ "links": {
19
+ "website": "https://github.com/features/copilot",
20
+ "documentation": "https://docs.github.com/en/copilot/get-started/cli-quickstart",
21
+ "installation": "https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli"
22
+ },
23
+ "adapterApiVersion": 1,
24
+ "entry": "plugin.mjs",
25
+ "icon": "./assets/icon.png"
26
+ }