@liberseek/boft-cli-win32-arm64 0.8.1 → 0.8.2

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.
@@ -15141,6 +15141,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
15141
15141
  initializeOnly: external_exports.boolean().optional()
15142
15142
  });
15143
15143
 
15144
+ // ../../shared-contracts/dist/harness-presentation.js
15145
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
15146
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
15147
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
15148
+ label: displayText(256).optional(),
15149
+ description: displayText(1024).optional()
15150
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15151
+ var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15152
+
15144
15153
  // ../../shared-contracts/dist/model-price-overrides.js
15145
15154
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
15146
15155
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15561,8 +15570,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15561
15570
  }
15562
15571
  });
15563
15572
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15573
+ var accountCreditsPeriodSchema = external_exports.enum([
15574
+ "weekly",
15575
+ "monthly",
15576
+ "five_hour",
15577
+ "seven_day",
15578
+ "unknown"
15579
+ ]);
15580
+ var accountCreditsScopeSchema = external_exports.object({
15581
+ id: external_exports.string().min(1).max(256),
15582
+ label: external_exports.string().min(1).max(256),
15583
+ localizations: harnessLocalizationsSchema.optional()
15584
+ }).strict();
15564
15585
  var accountCreditsProductUsageSchema = external_exports.object({
15565
15586
  product: external_exports.string().min(1),
15587
+ /** Native period and scope, never inferred from the display name. */
15588
+ periodType: accountCreditsPeriodSchema.optional(),
15589
+ scope: accountCreditsScopeSchema.optional(),
15590
+ localizations: harnessLocalizationsSchema.optional(),
15566
15591
  used: external_exports.number().finite().nonnegative().optional(),
15567
15592
  // Zero is a real empty cap, not an absent field.
15568
15593
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15584,8 +15609,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15584
15609
  label: external_exports.string().min(1).optional(),
15585
15610
  usedPercent: usagePercentSchema.optional(),
15586
15611
  remaining: external_exports.number().finite().optional(),
15612
+ scope: accountCreditsScopeSchema.optional(),
15613
+ localizations: harnessLocalizationsSchema.optional(),
15587
15614
  resetsAt: external_exports.string().min(1).optional(),
15588
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15615
+ periodType: accountCreditsPeriodSchema,
15589
15616
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15590
15617
  resetCredits: accountResetCreditsSchema.optional()
15591
15618
  }).strict().superRefine((credits, context) => {
@@ -15610,7 +15637,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15610
15637
  var threadUsageInspectionSchema = external_exports.object({
15611
15638
  threadId: hostThreadIdSchema,
15612
15639
  usage: threadUsageSnapshotSchema.nullable(),
15613
- accountCredits: accountCreditsSnapshotSchema.optional()
15640
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15641
+ /** Whether this source can provide cached account quota independently of usage. */
15642
+ accountCreditsSupported: external_exports.boolean().optional()
15614
15643
  }).strict();
15615
15644
 
15616
15645
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15737,7 +15766,8 @@ var harnessPermissionModeSchema = external_exports.object({
15737
15766
  id: harnessPermissionModeIdSchema,
15738
15767
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15739
15768
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15740
- dangerous: external_exports.boolean().optional()
15769
+ dangerous: external_exports.boolean().optional(),
15770
+ localizations: harnessLocalizationsSchema.optional()
15741
15771
  }).strict();
15742
15772
  var harnessPermissionModeCatalogSchema = external_exports.object({
15743
15773
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -16060,6 +16090,8 @@ var harnessInstallationStateSchema = external_exports.object({
16060
16090
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
16061
16091
  message: external_exports.string().max(2048).optional(),
16062
16092
  messageCode: external_exports.string().min(1).max(128).optional(),
16093
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
16094
+ notice: harnessLocalizedTextSchema.optional(),
16063
16095
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
16064
16096
  }).strict();
16065
16097
 
@@ -16198,6 +16230,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16198
16230
  invocation: commandInvocationSchema,
16199
16231
  label: commandLabelSchema,
16200
16232
  description: commandDescriptionSchema.optional(),
16233
+ localizations: harnessLocalizationsSchema.optional(),
16201
16234
  argumentMode: external_exports.enum(["none", "text"]),
16202
16235
  /**
16203
16236
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -17250,16 +17283,25 @@ var OPENCODE_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse(
17250
17283
  {
17251
17284
  id: "default",
17252
17285
  label: "Default",
17286
+ localizations: {
17287
+ "zh-CN": { label: "默认", description: "使用 OpenCode 已配置的权限规则。" }
17288
+ },
17253
17289
  description: "Use OpenCode's configured permission rules."
17254
17290
  },
17255
17291
  {
17256
17292
  id: "ask",
17257
17293
  label: "Ask",
17294
+ localizations: {
17295
+ "zh-CN": { label: "询问", description: "执行受保护的 OpenCode 操作前询问。" }
17296
+ },
17258
17297
  description: "Ask before protected OpenCode actions."
17259
17298
  },
17260
17299
  {
17261
17300
  id: "allow",
17262
17301
  label: "Allow all",
17302
+ localizations: {
17303
+ "zh-CN": { label: "全部允许", description: "允许 OpenCode 操作,无需批准提示。" }
17304
+ },
17263
17305
  description: "Allow OpenCode actions without approval prompts.",
17264
17306
  dangerous: true
17265
17307
  }
@@ -23665,6 +23707,7 @@ var openCodeCommandCatalog = harnessCommandCatalogSchema.parse({
23665
23707
  {
23666
23708
  id: COMPACT_COMMAND_ID,
23667
23709
  invocation: "/compact",
23710
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
23668
23711
  label: "Compact context",
23669
23712
  description: "Compact the current OpenCode Session context",
23670
23713
  argumentMode: "none"
@@ -24232,7 +24275,7 @@ var OpenCodeHarnessSession = class {
24232
24275
  }
24233
24276
  #projectPart(active, part) {
24234
24277
  if (part.type === "text" || part.type === "reasoning") {
24235
- if (part.type === "text" && part.ignored || !part.text)
24278
+ if (part.type === "text" && part.ignored)
24236
24279
  return;
24237
24280
  const existing = active.items.get(part.id);
24238
24281
  if (!existing) {
@@ -25106,11 +25149,15 @@ function v2State(session, catalog, policy) {
25106
25149
  ...entry ? {
25107
25150
  resolvedModelLabel: entry.resolvedModelLabel ?? entry.label,
25108
25151
  availableThinkingOptions: catalog.thinkingOptions.filter((v) => entry.supportedThinkingOptionIds?.includes(v.id)),
25109
- effectiveThinkingOptionId: encodeOpenCodeVariant(session.model?.variant)
25152
+ effectiveThinkingOptionId: effectiveVariant(session.model?.variant, entry)
25110
25153
  } : {},
25111
25154
  effectivePermissionModeId: decodeMode(mode?.effect)
25112
25155
  };
25113
25156
  }
25157
+ function effectiveVariant(variant, entry) {
25158
+ const id = encodeOpenCodeVariant(variant);
25159
+ return variant === "default" && !entry.supportedThinkingOptionIds?.includes(id) ? encodeOpenCodeVariant(void 0) : id;
25160
+ }
25114
25161
  function decodeMode(effect) {
25115
25162
  return effect === "allow" || effect === "ask" ? harnessPermissionModeIdSchema.parse(effect) : harnessPermissionModeIdSchema.parse("default");
25116
25163
  }
@@ -15141,6 +15141,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
15141
15141
  initializeOnly: external_exports.boolean().optional()
15142
15142
  });
15143
15143
 
15144
+ // ../../shared-contracts/dist/harness-presentation.js
15145
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
15146
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
15147
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
15148
+ label: displayText(256).optional(),
15149
+ description: displayText(1024).optional()
15150
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15151
+ var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15152
+
15144
15153
  // ../../shared-contracts/dist/model-price-overrides.js
15145
15154
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
15146
15155
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15561,8 +15570,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15561
15570
  }
15562
15571
  });
15563
15572
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15573
+ var accountCreditsPeriodSchema = external_exports.enum([
15574
+ "weekly",
15575
+ "monthly",
15576
+ "five_hour",
15577
+ "seven_day",
15578
+ "unknown"
15579
+ ]);
15580
+ var accountCreditsScopeSchema = external_exports.object({
15581
+ id: external_exports.string().min(1).max(256),
15582
+ label: external_exports.string().min(1).max(256),
15583
+ localizations: harnessLocalizationsSchema.optional()
15584
+ }).strict();
15564
15585
  var accountCreditsProductUsageSchema = external_exports.object({
15565
15586
  product: external_exports.string().min(1),
15587
+ /** Native period and scope, never inferred from the display name. */
15588
+ periodType: accountCreditsPeriodSchema.optional(),
15589
+ scope: accountCreditsScopeSchema.optional(),
15590
+ localizations: harnessLocalizationsSchema.optional(),
15566
15591
  used: external_exports.number().finite().nonnegative().optional(),
15567
15592
  // Zero is a real empty cap, not an absent field.
15568
15593
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15584,8 +15609,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15584
15609
  label: external_exports.string().min(1).optional(),
15585
15610
  usedPercent: usagePercentSchema.optional(),
15586
15611
  remaining: external_exports.number().finite().optional(),
15612
+ scope: accountCreditsScopeSchema.optional(),
15613
+ localizations: harnessLocalizationsSchema.optional(),
15587
15614
  resetsAt: external_exports.string().min(1).optional(),
15588
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15615
+ periodType: accountCreditsPeriodSchema,
15589
15616
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15590
15617
  resetCredits: accountResetCreditsSchema.optional()
15591
15618
  }).strict().superRefine((credits, context) => {
@@ -15610,7 +15637,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15610
15637
  var threadUsageInspectionSchema = external_exports.object({
15611
15638
  threadId: hostThreadIdSchema,
15612
15639
  usage: threadUsageSnapshotSchema.nullable(),
15613
- accountCredits: accountCreditsSnapshotSchema.optional()
15640
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15641
+ /** Whether this source can provide cached account quota independently of usage. */
15642
+ accountCreditsSupported: external_exports.boolean().optional()
15614
15643
  }).strict();
15615
15644
 
15616
15645
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15737,7 +15766,8 @@ var harnessPermissionModeSchema = external_exports.object({
15737
15766
  id: harnessPermissionModeIdSchema,
15738
15767
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15739
15768
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15740
- dangerous: external_exports.boolean().optional()
15769
+ dangerous: external_exports.boolean().optional(),
15770
+ localizations: harnessLocalizationsSchema.optional()
15741
15771
  }).strict();
15742
15772
  var harnessPermissionModeCatalogSchema = external_exports.object({
15743
15773
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -16060,6 +16090,8 @@ var harnessInstallationStateSchema = external_exports.object({
16060
16090
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
16061
16091
  message: external_exports.string().max(2048).optional(),
16062
16092
  messageCode: external_exports.string().min(1).max(128).optional(),
16093
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
16094
+ notice: harnessLocalizedTextSchema.optional(),
16063
16095
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
16064
16096
  }).strict();
16065
16097
 
@@ -16198,6 +16230,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16198
16230
  invocation: commandInvocationSchema,
16199
16231
  label: commandLabelSchema,
16200
16232
  description: commandDescriptionSchema.optional(),
16233
+ localizations: harnessLocalizationsSchema.optional(),
16201
16234
  argumentMode: external_exports.enum(["none", "text"]),
16202
16235
  /**
16203
16236
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -21026,6 +21059,7 @@ var piCommandCatalog = harnessCommandCatalogSchema.parse({
21026
21059
  {
21027
21060
  id: "pi.compact",
21028
21061
  invocation: "/compact",
21062
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
21029
21063
  label: "Compact context",
21030
21064
  description: "Compact the current conversation context",
21031
21065
  argumentMode: "text"
@@ -27590,6 +27590,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
27590
27590
  initializeOnly: external_exports.boolean().optional()
27591
27591
  });
27592
27592
 
27593
+ // ../../shared-contracts/dist/harness-presentation.js
27594
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
27595
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
27596
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
27597
+ label: displayText(256).optional(),
27598
+ description: displayText(1024).optional()
27599
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
27600
+ var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
27601
+
27593
27602
  // ../../shared-contracts/dist/model-price-overrides.js
27594
27603
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
27595
27604
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -28010,8 +28019,24 @@ var threadUsageSnapshotSchema = external_exports.object({
28010
28019
  }
28011
28020
  });
28012
28021
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
28022
+ var accountCreditsPeriodSchema = external_exports.enum([
28023
+ "weekly",
28024
+ "monthly",
28025
+ "five_hour",
28026
+ "seven_day",
28027
+ "unknown"
28028
+ ]);
28029
+ var accountCreditsScopeSchema = external_exports.object({
28030
+ id: external_exports.string().min(1).max(256),
28031
+ label: external_exports.string().min(1).max(256),
28032
+ localizations: harnessLocalizationsSchema.optional()
28033
+ }).strict();
28013
28034
  var accountCreditsProductUsageSchema = external_exports.object({
28014
28035
  product: external_exports.string().min(1),
28036
+ /** Native period and scope, never inferred from the display name. */
28037
+ periodType: accountCreditsPeriodSchema.optional(),
28038
+ scope: accountCreditsScopeSchema.optional(),
28039
+ localizations: harnessLocalizationsSchema.optional(),
28015
28040
  used: external_exports.number().finite().nonnegative().optional(),
28016
28041
  // Zero is a real empty cap, not an absent field.
28017
28042
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -28033,8 +28058,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
28033
28058
  label: external_exports.string().min(1).optional(),
28034
28059
  usedPercent: usagePercentSchema.optional(),
28035
28060
  remaining: external_exports.number().finite().optional(),
28061
+ scope: accountCreditsScopeSchema.optional(),
28062
+ localizations: harnessLocalizationsSchema.optional(),
28036
28063
  resetsAt: external_exports.string().min(1).optional(),
28037
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
28064
+ periodType: accountCreditsPeriodSchema,
28038
28065
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
28039
28066
  resetCredits: accountResetCreditsSchema.optional()
28040
28067
  }).strict().superRefine((credits, context) => {
@@ -28059,7 +28086,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
28059
28086
  var threadUsageInspectionSchema = external_exports.object({
28060
28087
  threadId: hostThreadIdSchema,
28061
28088
  usage: threadUsageSnapshotSchema.nullable(),
28062
- accountCredits: accountCreditsSnapshotSchema.optional()
28089
+ accountCredits: accountCreditsSnapshotSchema.optional(),
28090
+ /** Whether this source can provide cached account quota independently of usage. */
28091
+ accountCreditsSupported: external_exports.boolean().optional()
28063
28092
  }).strict();
28064
28093
 
28065
28094
  // ../../shared-contracts/dist/harness-accounts.js
@@ -28186,7 +28215,8 @@ var harnessPermissionModeSchema = external_exports.object({
28186
28215
  id: harnessPermissionModeIdSchema,
28187
28216
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
28188
28217
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
28189
- dangerous: external_exports.boolean().optional()
28218
+ dangerous: external_exports.boolean().optional(),
28219
+ localizations: harnessLocalizationsSchema.optional()
28190
28220
  }).strict();
28191
28221
  var harnessPermissionModeCatalogSchema = external_exports.object({
28192
28222
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -28509,6 +28539,8 @@ var harnessInstallationStateSchema = external_exports.object({
28509
28539
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
28510
28540
  message: external_exports.string().max(2048).optional(),
28511
28541
  messageCode: external_exports.string().min(1).max(128).optional(),
28542
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
28543
+ notice: harnessLocalizedTextSchema.optional(),
28512
28544
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
28513
28545
  }).strict();
28514
28546
 
@@ -28647,6 +28679,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
28647
28679
  invocation: commandInvocationSchema,
28648
28680
  label: commandLabelSchema,
28649
28681
  description: commandDescriptionSchema.optional(),
28682
+ localizations: harnessLocalizationsSchema.optional(),
28650
28683
  argumentMode: external_exports.enum(["none", "text"]),
28651
28684
  /**
28652
28685
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -29504,6 +29537,7 @@ var QODER_FALLBACK_COMMAND_CATALOG = harnessCommandCatalogSchema.parse({
29504
29537
  {
29505
29538
  id: "qoder.compact",
29506
29539
  invocation: "/compact",
29540
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
29507
29541
  label: "Compact",
29508
29542
  description: "Compresses the context by replacing it with a summary",
29509
29543
  argumentMode: "text"
@@ -30095,26 +30129,35 @@ var QODER_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse({
30095
30129
  {
30096
30130
  id: "default",
30097
30131
  label: "Default",
30132
+ localizations: { "zh-CN": { label: "默认", description: "执行受保护的工具操作前询问。" } },
30098
30133
  description: "Ask before protected tool actions."
30099
30134
  },
30100
30135
  {
30101
30136
  id: "acceptEdits",
30102
30137
  label: "Accept Edits",
30138
+ localizations: { "zh-CN": { label: "接受编辑", description: "自动接受文件变更。" } },
30103
30139
  description: "Automatically accept file changes."
30104
30140
  },
30105
30141
  {
30106
30142
  id: "auto",
30107
30143
  label: "Auto",
30144
+ localizations: { "zh-CN": { label: "自动", description: "自动允许安全的工具操作。" } },
30108
30145
  description: "Automatically allow safe tool actions."
30109
30146
  },
30110
30147
  {
30111
30148
  id: "plan",
30112
30149
  label: "Plan",
30150
+ localizations: {
30151
+ "zh-CN": { label: "规划模式", description: "仅执行只读操作的规划模式。" }
30152
+ },
30113
30153
  description: "Plan mode with read-only operations."
30114
30154
  },
30115
30155
  {
30116
30156
  id: "bypassPermissions",
30117
30157
  label: "Bypass Permissions",
30158
+ localizations: {
30159
+ "zh-CN": { label: "绕过权限", description: "无需提示即可批准所有工具操作。" }
30160
+ },
30118
30161
  description: "Approve all tool actions without prompting.",
30119
30162
  dangerous: true
30120
30163
  }
@@ -53676,6 +53719,10 @@ function createQoderInstallation(environment, command, variant = "global") {
53676
53719
  updateAvailable: false,
53677
53720
  canUpdate: false,
53678
53721
  messageCode: "qoder-check-unavailable",
53722
+ notice: {
53723
+ en: "This Qoder China release does not expose a non-installing update check. Use its original installer.",
53724
+ "zh-CN": "此 Qoder 中国版尚不支持只检查、不安装的更新查询,请使用原安装方式更新。"
53725
+ },
53679
53726
  message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
53680
53727
  };
53681
53728
  const output = await run(["update", "--check"]);
@@ -27187,6 +27187,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
27187
27187
  initializeOnly: external_exports.boolean().optional()
27188
27188
  });
27189
27189
 
27190
+ // ../../shared-contracts/dist/harness-presentation.js
27191
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
27192
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
27193
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
27194
+ label: displayText(256).optional(),
27195
+ description: displayText(1024).optional()
27196
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
27197
+ var harnessLocalizedTextSchema = external_exports.record(localeSchema, displayText(4096)).refine((entries) => typeof entries.en === "string", "English fallback is required").refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
27198
+
27190
27199
  // ../../shared-contracts/dist/model-price-overrides.js
27191
27200
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
27192
27201
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -27607,8 +27616,24 @@ var threadUsageSnapshotSchema = external_exports.object({
27607
27616
  }
27608
27617
  });
27609
27618
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
27619
+ var accountCreditsPeriodSchema = external_exports.enum([
27620
+ "weekly",
27621
+ "monthly",
27622
+ "five_hour",
27623
+ "seven_day",
27624
+ "unknown"
27625
+ ]);
27626
+ var accountCreditsScopeSchema = external_exports.object({
27627
+ id: external_exports.string().min(1).max(256),
27628
+ label: external_exports.string().min(1).max(256),
27629
+ localizations: harnessLocalizationsSchema.optional()
27630
+ }).strict();
27610
27631
  var accountCreditsProductUsageSchema = external_exports.object({
27611
27632
  product: external_exports.string().min(1),
27633
+ /** Native period and scope, never inferred from the display name. */
27634
+ periodType: accountCreditsPeriodSchema.optional(),
27635
+ scope: accountCreditsScopeSchema.optional(),
27636
+ localizations: harnessLocalizationsSchema.optional(),
27612
27637
  used: external_exports.number().finite().nonnegative().optional(),
27613
27638
  // Zero is a real empty cap, not an absent field.
27614
27639
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -27630,8 +27655,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
27630
27655
  label: external_exports.string().min(1).optional(),
27631
27656
  usedPercent: usagePercentSchema.optional(),
27632
27657
  remaining: external_exports.number().finite().optional(),
27658
+ scope: accountCreditsScopeSchema.optional(),
27659
+ localizations: harnessLocalizationsSchema.optional(),
27633
27660
  resetsAt: external_exports.string().min(1).optional(),
27634
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
27661
+ periodType: accountCreditsPeriodSchema,
27635
27662
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
27636
27663
  resetCredits: accountResetCreditsSchema.optional()
27637
27664
  }).strict().superRefine((credits, context) => {
@@ -27656,7 +27683,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
27656
27683
  var threadUsageInspectionSchema = external_exports.object({
27657
27684
  threadId: hostThreadIdSchema,
27658
27685
  usage: threadUsageSnapshotSchema.nullable(),
27659
- accountCredits: accountCreditsSnapshotSchema.optional()
27686
+ accountCredits: accountCreditsSnapshotSchema.optional(),
27687
+ /** Whether this source can provide cached account quota independently of usage. */
27688
+ accountCreditsSupported: external_exports.boolean().optional()
27660
27689
  }).strict();
27661
27690
 
27662
27691
  // ../../shared-contracts/dist/harness-accounts.js
@@ -27783,7 +27812,8 @@ var harnessPermissionModeSchema = external_exports.object({
27783
27812
  id: harnessPermissionModeIdSchema,
27784
27813
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
27785
27814
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
27786
- dangerous: external_exports.boolean().optional()
27815
+ dangerous: external_exports.boolean().optional(),
27816
+ localizations: harnessLocalizationsSchema.optional()
27787
27817
  }).strict();
27788
27818
  var harnessPermissionModeCatalogSchema = external_exports.object({
27789
27819
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -28106,6 +28136,8 @@ var harnessInstallationStateSchema = external_exports.object({
28106
28136
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
28107
28137
  message: external_exports.string().max(2048).optional(),
28108
28138
  messageCode: external_exports.string().min(1).max(128).optional(),
28139
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
28140
+ notice: harnessLocalizedTextSchema.optional(),
28109
28141
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
28110
28142
  }).strict();
28111
28143
 
@@ -28244,6 +28276,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
28244
28276
  invocation: commandInvocationSchema,
28245
28277
  label: commandLabelSchema,
28246
28278
  description: commandDescriptionSchema.optional(),
28279
+ localizations: harnessLocalizationsSchema.optional(),
28247
28280
  argumentMode: external_exports.enum(["none", "text"]),
28248
28281
  /**
28249
28282
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -29506,6 +29539,7 @@ var QODER_FALLBACK_COMMAND_CATALOG = harnessCommandCatalogSchema.parse({
29506
29539
  {
29507
29540
  id: "qoder.compact",
29508
29541
  invocation: "/compact",
29542
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
29509
29543
  label: "Compact",
29510
29544
  description: "Compresses the context by replacing it with a summary",
29511
29545
  argumentMode: "text"
@@ -30097,26 +30131,35 @@ var QODER_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse({
30097
30131
  {
30098
30132
  id: "default",
30099
30133
  label: "Default",
30134
+ localizations: { "zh-CN": { label: "默认", description: "执行受保护的工具操作前询问。" } },
30100
30135
  description: "Ask before protected tool actions."
30101
30136
  },
30102
30137
  {
30103
30138
  id: "acceptEdits",
30104
30139
  label: "Accept Edits",
30140
+ localizations: { "zh-CN": { label: "接受编辑", description: "自动接受文件变更。" } },
30105
30141
  description: "Automatically accept file changes."
30106
30142
  },
30107
30143
  {
30108
30144
  id: "auto",
30109
30145
  label: "Auto",
30146
+ localizations: { "zh-CN": { label: "自动", description: "自动允许安全的工具操作。" } },
30110
30147
  description: "Automatically allow safe tool actions."
30111
30148
  },
30112
30149
  {
30113
30150
  id: "plan",
30114
30151
  label: "Plan",
30152
+ localizations: {
30153
+ "zh-CN": { label: "规划模式", description: "仅执行只读操作的规划模式。" }
30154
+ },
30115
30155
  description: "Plan mode with read-only operations."
30116
30156
  },
30117
30157
  {
30118
30158
  id: "bypassPermissions",
30119
30159
  label: "Bypass Permissions",
30160
+ localizations: {
30161
+ "zh-CN": { label: "绕过权限", description: "无需提示即可批准所有工具操作。" }
30162
+ },
30120
30163
  description: "Approve all tool actions without prompting.",
30121
30164
  dangerous: true
30122
30165
  }
@@ -53678,6 +53721,10 @@ function createQoderInstallation(environment, command, variant = "global") {
53678
53721
  updateAvailable: false,
53679
53722
  canUpdate: false,
53680
53723
  messageCode: "qoder-check-unavailable",
53724
+ notice: {
53725
+ en: "This Qoder China release does not expose a non-installing update check. Use its original installer.",
53726
+ "zh-CN": "此 Qoder 中国版尚不支持只检查、不安装的更新查询,请使用原安装方式更新。"
53727
+ },
53681
53728
  message: "This Qoder China release does not expose a non-installing update check. Use its original installer."
53682
53729
  };
53683
53730
  const output = await run(["update", "--check"]);