@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.
@@ -14965,6 +14965,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14965
14965
  initializeOnly: external_exports.boolean().optional()
14966
14966
  });
14967
14967
 
14968
+ // ../../shared-contracts/dist/harness-presentation.js
14969
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
14970
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
14971
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
14972
+ label: displayText(256).optional(),
14973
+ description: displayText(1024).optional()
14974
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
14975
+ 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");
14976
+
14968
14977
  // ../../shared-contracts/dist/model-price-overrides.js
14969
14978
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14970
14979
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15385,8 +15394,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15385
15394
  }
15386
15395
  });
15387
15396
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15397
+ var accountCreditsPeriodSchema = external_exports.enum([
15398
+ "weekly",
15399
+ "monthly",
15400
+ "five_hour",
15401
+ "seven_day",
15402
+ "unknown"
15403
+ ]);
15404
+ var accountCreditsScopeSchema = external_exports.object({
15405
+ id: external_exports.string().min(1).max(256),
15406
+ label: external_exports.string().min(1).max(256),
15407
+ localizations: harnessLocalizationsSchema.optional()
15408
+ }).strict();
15388
15409
  var accountCreditsProductUsageSchema = external_exports.object({
15389
15410
  product: external_exports.string().min(1),
15411
+ /** Native period and scope, never inferred from the display name. */
15412
+ periodType: accountCreditsPeriodSchema.optional(),
15413
+ scope: accountCreditsScopeSchema.optional(),
15414
+ localizations: harnessLocalizationsSchema.optional(),
15390
15415
  used: external_exports.number().finite().nonnegative().optional(),
15391
15416
  // Zero is a real empty cap, not an absent field.
15392
15417
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15408,8 +15433,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15408
15433
  label: external_exports.string().min(1).optional(),
15409
15434
  usedPercent: usagePercentSchema.optional(),
15410
15435
  remaining: external_exports.number().finite().optional(),
15436
+ scope: accountCreditsScopeSchema.optional(),
15437
+ localizations: harnessLocalizationsSchema.optional(),
15411
15438
  resetsAt: external_exports.string().min(1).optional(),
15412
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15439
+ periodType: accountCreditsPeriodSchema,
15413
15440
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15414
15441
  resetCredits: accountResetCreditsSchema.optional()
15415
15442
  }).strict().superRefine((credits, context) => {
@@ -15434,7 +15461,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15434
15461
  var threadUsageInspectionSchema = external_exports.object({
15435
15462
  threadId: hostThreadIdSchema,
15436
15463
  usage: threadUsageSnapshotSchema.nullable(),
15437
- accountCredits: accountCreditsSnapshotSchema.optional()
15464
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15465
+ /** Whether this source can provide cached account quota independently of usage. */
15466
+ accountCreditsSupported: external_exports.boolean().optional()
15438
15467
  }).strict();
15439
15468
 
15440
15469
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15561,7 +15590,8 @@ var harnessPermissionModeSchema = external_exports.object({
15561
15590
  id: harnessPermissionModeIdSchema,
15562
15591
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15563
15592
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15564
- dangerous: external_exports.boolean().optional()
15593
+ dangerous: external_exports.boolean().optional(),
15594
+ localizations: harnessLocalizationsSchema.optional()
15565
15595
  }).strict();
15566
15596
  var harnessPermissionModeCatalogSchema = external_exports.object({
15567
15597
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -15884,6 +15914,8 @@ var harnessInstallationStateSchema = external_exports.object({
15884
15914
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
15885
15915
  message: external_exports.string().max(2048).optional(),
15886
15916
  messageCode: external_exports.string().min(1).max(128).optional(),
15917
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
15918
+ notice: harnessLocalizedTextSchema.optional(),
15887
15919
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
15888
15920
  }).strict();
15889
15921
 
@@ -16022,6 +16054,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16022
16054
  invocation: commandInvocationSchema,
16023
16055
  label: commandLabelSchema,
16024
16056
  description: commandDescriptionSchema.optional(),
16057
+ localizations: harnessLocalizationsSchema.optional(),
16025
16058
  argumentMode: external_exports.enum(["none", "text"]),
16026
16059
  /**
16027
16060
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -20027,11 +20060,23 @@ function gatewayPermissionModes() {
20027
20060
  {
20028
20061
  id: "default",
20029
20062
  label: "原生审批策略",
20063
+ localizations: {
20064
+ en: {
20065
+ label: "Native approval policy",
20066
+ description: "Follow the Hermes global approval policy; disable YOLO for this Session."
20067
+ }
20068
+ },
20030
20069
  description: "遵循 Hermes 全局审批策略,关闭本会话 YOLO。"
20031
20070
  },
20032
20071
  {
20033
20072
  id: "dont_ask",
20034
20073
  label: "会话 YOLO",
20074
+ localizations: {
20075
+ en: {
20076
+ label: "Session YOLO",
20077
+ description: "Automatically approve Hermes tool actions in this Session."
20078
+ }
20079
+ },
20035
20080
  description: "本会话自动批准 Hermes 工具操作。",
20036
20081
  dangerous: true
20037
20082
  }
@@ -20434,6 +20479,10 @@ function createHermesInstallation(environment, command) {
20434
20479
  updateAvailable: false,
20435
20480
  canUpdate: false,
20436
20481
  messageCode: "hermes-update-plan-unavailable",
20482
+ notice: {
20483
+ en: "This Hermes release does not expose a safe update plan. Use the original installer.",
20484
+ "zh-CN": "此 Hermes 版本不提供安全的更新计划,请使用原安装方式更新。"
20485
+ },
20437
20486
  message: "This Hermes release does not expose a safe update plan. Use the original installer."
20438
20487
  };
20439
20488
  const plan = await run(["update", "--plan"]);
@@ -20446,6 +20495,10 @@ function createHermesInstallation(environment, command) {
20446
20495
  updateAvailable: false,
20447
20496
  canUpdate: false,
20448
20497
  messageCode: "hermes-externally-managed",
20498
+ notice: {
20499
+ en: "This Hermes installation is managed externally. Update it through its desktop app, container, or original package manager.",
20500
+ "zh-CN": "此 Hermes 安装由外部工具管理,请通过其桌面应用、容器或原包管理器更新。"
20501
+ },
20449
20502
  message: "This Hermes installation is managed externally. Update it through its desktop app, container, or original package manager."
20450
20503
  };
20451
20504
  const output = await run(["update", "--check"]);
@@ -20464,6 +20517,13 @@ function createHermesInstallation(environment, command) {
20464
20517
  canUpdate,
20465
20518
  ...updateAvailable && !release ? { latestVersionKind: "tracking-branch" } : {},
20466
20519
  messageCode: canUpdate ? "hermes-update-channel" : "hermes-manual-update",
20520
+ notice: canUpdate ? {
20521
+ en: "Uses Hermes's configured update channel. Gateway restarts are deferred; existing processes keep their running code.",
20522
+ "zh-CN": "使用 Hermes 配置的更新渠道,暂不重启 Gateway;现有进程继续运行原有代码。"
20523
+ } : {
20524
+ en: "Use the native updater manually. Safe non-interactive updates require a clean source checkout, commit identity, and Gateway restart deferral.",
20525
+ "zh-CN": "请手动使用原生更新器。安全的非交互更新要求源码目录无未提交修改、可识别当前提交,并支持推迟 Gateway 重启。"
20526
+ },
20467
20527
  message: canUpdate ? "Uses Hermes's configured update channel. Gateway restarts are deferred; existing processes keep their running code." : "Use the native updater manually. Safe non-interactive updates require a clean source checkout, commit identity, and Gateway restart deferral."
20468
20528
  };
20469
20529
  },
@@ -15085,6 +15085,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
15085
15085
  initializeOnly: external_exports.boolean().optional()
15086
15086
  });
15087
15087
 
15088
+ // ../../shared-contracts/dist/harness-presentation.js
15089
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
15090
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
15091
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
15092
+ label: displayText(256).optional(),
15093
+ description: displayText(1024).optional()
15094
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15095
+ 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");
15096
+
15088
15097
  // ../../shared-contracts/dist/model-price-overrides.js
15089
15098
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
15090
15099
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15505,8 +15514,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15505
15514
  }
15506
15515
  });
15507
15516
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15517
+ var accountCreditsPeriodSchema = external_exports.enum([
15518
+ "weekly",
15519
+ "monthly",
15520
+ "five_hour",
15521
+ "seven_day",
15522
+ "unknown"
15523
+ ]);
15524
+ var accountCreditsScopeSchema = external_exports.object({
15525
+ id: external_exports.string().min(1).max(256),
15526
+ label: external_exports.string().min(1).max(256),
15527
+ localizations: harnessLocalizationsSchema.optional()
15528
+ }).strict();
15508
15529
  var accountCreditsProductUsageSchema = external_exports.object({
15509
15530
  product: external_exports.string().min(1),
15531
+ /** Native period and scope, never inferred from the display name. */
15532
+ periodType: accountCreditsPeriodSchema.optional(),
15533
+ scope: accountCreditsScopeSchema.optional(),
15534
+ localizations: harnessLocalizationsSchema.optional(),
15510
15535
  used: external_exports.number().finite().nonnegative().optional(),
15511
15536
  // Zero is a real empty cap, not an absent field.
15512
15537
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15528,8 +15553,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15528
15553
  label: external_exports.string().min(1).optional(),
15529
15554
  usedPercent: usagePercentSchema.optional(),
15530
15555
  remaining: external_exports.number().finite().optional(),
15556
+ scope: accountCreditsScopeSchema.optional(),
15557
+ localizations: harnessLocalizationsSchema.optional(),
15531
15558
  resetsAt: external_exports.string().min(1).optional(),
15532
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15559
+ periodType: accountCreditsPeriodSchema,
15533
15560
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15534
15561
  resetCredits: accountResetCreditsSchema.optional()
15535
15562
  }).strict().superRefine((credits, context) => {
@@ -15554,7 +15581,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15554
15581
  var threadUsageInspectionSchema = external_exports.object({
15555
15582
  threadId: hostThreadIdSchema,
15556
15583
  usage: threadUsageSnapshotSchema.nullable(),
15557
- accountCredits: accountCreditsSnapshotSchema.optional()
15584
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15585
+ /** Whether this source can provide cached account quota independently of usage. */
15586
+ accountCreditsSupported: external_exports.boolean().optional()
15558
15587
  }).strict();
15559
15588
 
15560
15589
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15681,7 +15710,8 @@ var harnessPermissionModeSchema = external_exports.object({
15681
15710
  id: harnessPermissionModeIdSchema,
15682
15711
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15683
15712
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15684
- dangerous: external_exports.boolean().optional()
15713
+ dangerous: external_exports.boolean().optional(),
15714
+ localizations: harnessLocalizationsSchema.optional()
15685
15715
  }).strict();
15686
15716
  var harnessPermissionModeCatalogSchema = external_exports.object({
15687
15717
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -16004,6 +16034,8 @@ var harnessInstallationStateSchema = external_exports.object({
16004
16034
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
16005
16035
  message: external_exports.string().max(2048).optional(),
16006
16036
  messageCode: external_exports.string().min(1).max(128).optional(),
16037
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
16038
+ notice: harnessLocalizedTextSchema.optional(),
16007
16039
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
16008
16040
  }).strict();
16009
16041
 
@@ -16142,6 +16174,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16142
16174
  invocation: commandInvocationSchema,
16143
16175
  label: commandLabelSchema,
16144
16176
  description: commandDescriptionSchema.optional(),
16177
+ localizations: harnessLocalizationsSchema.optional(),
16145
16178
  argumentMode: external_exports.enum(["none", "text"]),
16146
16179
  /**
16147
16180
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -21382,6 +21415,8 @@ function projectKimiUsages(payload) {
21382
21415
  return [
21383
21416
  {
21384
21417
  product: "Kimi Code · 5-hour window",
21418
+ periodType: "five_hour",
21419
+ scope: { id: "kimi-code", label: "Kimi Code" },
21385
21420
  usagePercent: share.usedPercent,
21386
21421
  ...share.resetsAt ? { resetsAt: share.resetsAt } : {}
21387
21422
  }
@@ -22838,21 +22873,37 @@ var kimiPermissionModeCatalog = harnessPermissionModeCatalogSchema.parse({
22838
22873
  {
22839
22874
  id: harnessPermissionModeIdSchema.parse("default"),
22840
22875
  label: "询问确认",
22876
+ localizations: {
22877
+ en: { label: "Ask for approval" },
22878
+ "zh-CN": { description: "工具正常执行,需要时手动审批。" }
22879
+ },
22841
22880
  description: "Manual approvals; tools execute normally."
22842
22881
  },
22843
22882
  {
22844
22883
  id: harnessPermissionModeIdSchema.parse("plan"),
22845
22884
  label: "计划模式",
22885
+ localizations: {
22886
+ en: { label: "Plan mode" },
22887
+ "zh-CN": { description: "只读规划,不执行工具。" }
22888
+ },
22846
22889
  description: "Read-only planning; no tool execution."
22847
22890
  },
22848
22891
  {
22849
22892
  id: harnessPermissionModeIdSchema.parse("auto"),
22850
22893
  label: "按需询问",
22894
+ localizations: {
22895
+ en: { label: "Ask as needed" },
22896
+ "zh-CN": { description: "自动批准安全操作。" }
22897
+ },
22851
22898
  description: "Auto-approve safe operations."
22852
22899
  },
22853
22900
  {
22854
22901
  id: harnessPermissionModeIdSchema.parse("yolo"),
22855
22902
  label: "无需询问",
22903
+ localizations: {
22904
+ en: { label: "No approval prompts" },
22905
+ "zh-CN": { description: "自动批准所有操作。" }
22906
+ },
22856
22907
  description: "Auto-approve everything.",
22857
22908
  dangerous: true
22858
22909
  }
@@ -24117,6 +24168,11 @@ async function copyKimiCommandHistory(turns, sessionId, options) {
24117
24168
  }
24118
24169
 
24119
24170
  // dist/slash-commands.js
24171
+ var KIMI_COMPACT_COMMAND = {
24172
+ name: "compact",
24173
+ description: "Compact the conversation context",
24174
+ input: { hint: "prompt" }
24175
+ };
24120
24176
  function buildKimiCommandCatalog(availableCommands) {
24121
24177
  const seenIds = /* @__PURE__ */ new Set();
24122
24178
  const descriptors = [];
@@ -24136,17 +24192,16 @@ function buildKimiCommandCatalog(availableCommands) {
24136
24192
  invocation: `/${cleanId}`,
24137
24193
  label: cleanId,
24138
24194
  argumentMode,
24139
- ...description ? { description } : {}
24195
+ ...description ? { description } : {},
24196
+ // Only the known native built-in gets plugin copy. A live command with
24197
+ // the same name but different wording/input retains its own semantics.
24198
+ ...cleanId === KIMI_COMPACT_COMMAND.name && rawDesc === KIMI_COMPACT_COMMAND.description && command.input?.hint === KIMI_COMPACT_COMMAND.input?.hint ? { localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } } } : {}
24140
24199
  });
24141
24200
  }
24142
24201
  return harnessCommandCatalogSchema.parse({ commands: descriptors });
24143
24202
  }
24144
24203
  var KIMI_DEFAULT_COMMANDS = [
24145
- {
24146
- name: "compact",
24147
- description: "Compact the conversation context",
24148
- input: { hint: "prompt" }
24149
- },
24204
+ KIMI_COMPACT_COMMAND,
24150
24205
  {
24151
24206
  name: "status",
24152
24207
  description: "Show current session status"
@@ -14944,6 +14944,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14944
14944
  initializeOnly: external_exports.boolean().optional()
14945
14945
  });
14946
14946
 
14947
+ // ../../shared-contracts/dist/harness-presentation.js
14948
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
14949
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
14950
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
14951
+ label: displayText(256).optional(),
14952
+ description: displayText(1024).optional()
14953
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
14954
+ 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");
14955
+
14947
14956
  // ../../shared-contracts/dist/model-price-overrides.js
14948
14957
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14949
14958
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15364,8 +15373,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15364
15373
  }
15365
15374
  });
15366
15375
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15376
+ var accountCreditsPeriodSchema = external_exports.enum([
15377
+ "weekly",
15378
+ "monthly",
15379
+ "five_hour",
15380
+ "seven_day",
15381
+ "unknown"
15382
+ ]);
15383
+ var accountCreditsScopeSchema = external_exports.object({
15384
+ id: external_exports.string().min(1).max(256),
15385
+ label: external_exports.string().min(1).max(256),
15386
+ localizations: harnessLocalizationsSchema.optional()
15387
+ }).strict();
15367
15388
  var accountCreditsProductUsageSchema = external_exports.object({
15368
15389
  product: external_exports.string().min(1),
15390
+ /** Native period and scope, never inferred from the display name. */
15391
+ periodType: accountCreditsPeriodSchema.optional(),
15392
+ scope: accountCreditsScopeSchema.optional(),
15393
+ localizations: harnessLocalizationsSchema.optional(),
15369
15394
  used: external_exports.number().finite().nonnegative().optional(),
15370
15395
  // Zero is a real empty cap, not an absent field.
15371
15396
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15387,8 +15412,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15387
15412
  label: external_exports.string().min(1).optional(),
15388
15413
  usedPercent: usagePercentSchema.optional(),
15389
15414
  remaining: external_exports.number().finite().optional(),
15415
+ scope: accountCreditsScopeSchema.optional(),
15416
+ localizations: harnessLocalizationsSchema.optional(),
15390
15417
  resetsAt: external_exports.string().min(1).optional(),
15391
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15418
+ periodType: accountCreditsPeriodSchema,
15392
15419
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15393
15420
  resetCredits: accountResetCreditsSchema.optional()
15394
15421
  }).strict().superRefine((credits, context) => {
@@ -15413,7 +15440,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15413
15440
  var threadUsageInspectionSchema = external_exports.object({
15414
15441
  threadId: hostThreadIdSchema,
15415
15442
  usage: threadUsageSnapshotSchema.nullable(),
15416
- accountCredits: accountCreditsSnapshotSchema.optional()
15443
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15444
+ /** Whether this source can provide cached account quota independently of usage. */
15445
+ accountCreditsSupported: external_exports.boolean().optional()
15417
15446
  }).strict();
15418
15447
 
15419
15448
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15540,7 +15569,8 @@ var harnessPermissionModeSchema = external_exports.object({
15540
15569
  id: harnessPermissionModeIdSchema,
15541
15570
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15542
15571
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15543
- dangerous: external_exports.boolean().optional()
15572
+ dangerous: external_exports.boolean().optional(),
15573
+ localizations: harnessLocalizationsSchema.optional()
15544
15574
  }).strict();
15545
15575
  var harnessPermissionModeCatalogSchema = external_exports.object({
15546
15576
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -15863,6 +15893,8 @@ var harnessInstallationStateSchema = external_exports.object({
15863
15893
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
15864
15894
  message: external_exports.string().max(2048).optional(),
15865
15895
  messageCode: external_exports.string().min(1).max(128).optional(),
15896
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
15897
+ notice: harnessLocalizedTextSchema.optional(),
15866
15898
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
15867
15899
  }).strict();
15868
15900
 
@@ -16001,6 +16033,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16001
16033
  invocation: commandInvocationSchema,
16002
16034
  label: commandLabelSchema,
16003
16035
  description: commandDescriptionSchema.optional(),
16036
+ localizations: harnessLocalizationsSchema.optional(),
16004
16037
  argumentMode: external_exports.enum(["none", "text"]),
16005
16038
  /**
16006
16039
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -21553,6 +21586,7 @@ var KIRO_COMMANDS = [
21553
21586
  {
21554
21587
  id: "kiro.compact",
21555
21588
  invocation: "/compact",
21589
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
21556
21590
  label: "Compact Conversation",
21557
21591
  description: "Summarize conversation history to free context window",
21558
21592
  argumentMode: "none"
@@ -22763,11 +22797,15 @@ var KIRO_PERMISSION_MODES = [
22763
22797
  {
22764
22798
  id: KIRO_DEFAULT_PERMISSION_MODE_ID,
22765
22799
  label: "Autopilot",
22800
+ localizations: {
22801
+ "zh-CN": { label: "自动执行", description: "在原生策略范围内自动执行工具。" }
22802
+ },
22766
22803
  description: "Automatic tool execution within native policy bounds"
22767
22804
  },
22768
22805
  {
22769
22806
  id: harnessPermissionModeIdSchema.parse("supervised"),
22770
22807
  label: "Supervised",
22808
+ localizations: { "zh-CN": { label: "人工监督", description: "人工审核工具审批与文件修改。" } },
22771
22809
  description: "Manual review of tool approvals and file modifications"
22772
22810
  }
22773
22811
  ];
@@ -24514,6 +24552,10 @@ function createKiroInstallation(environment, command) {
24514
24552
  updateAvailable: false,
24515
24553
  canUpdate: false,
24516
24554
  messageCode: "kiro-native-updater",
24555
+ notice: {
24556
+ en: "Use Kiro CLI's original installer or native updater to check for and install updates.",
24557
+ "zh-CN": "请使用 Kiro CLI 原安装程序或原生更新器检查并安装更新。"
24558
+ },
24517
24559
  message: "Use Kiro CLI's original installer or native updater to check for and install updates."
24518
24560
  };
24519
24561
  };
@@ -14853,6 +14853,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14853
14853
  initializeOnly: external_exports.boolean().optional()
14854
14854
  });
14855
14855
 
14856
+ // ../../shared-contracts/dist/harness-presentation.js
14857
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
14858
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
14859
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
14860
+ label: displayText(256).optional(),
14861
+ description: displayText(1024).optional()
14862
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
14863
+ 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");
14864
+
14856
14865
  // ../../shared-contracts/dist/model-price-overrides.js
14857
14866
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14858
14867
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15273,8 +15282,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15273
15282
  }
15274
15283
  });
15275
15284
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15285
+ var accountCreditsPeriodSchema = external_exports.enum([
15286
+ "weekly",
15287
+ "monthly",
15288
+ "five_hour",
15289
+ "seven_day",
15290
+ "unknown"
15291
+ ]);
15292
+ var accountCreditsScopeSchema = external_exports.object({
15293
+ id: external_exports.string().min(1).max(256),
15294
+ label: external_exports.string().min(1).max(256),
15295
+ localizations: harnessLocalizationsSchema.optional()
15296
+ }).strict();
15276
15297
  var accountCreditsProductUsageSchema = external_exports.object({
15277
15298
  product: external_exports.string().min(1),
15299
+ /** Native period and scope, never inferred from the display name. */
15300
+ periodType: accountCreditsPeriodSchema.optional(),
15301
+ scope: accountCreditsScopeSchema.optional(),
15302
+ localizations: harnessLocalizationsSchema.optional(),
15278
15303
  used: external_exports.number().finite().nonnegative().optional(),
15279
15304
  // Zero is a real empty cap, not an absent field.
15280
15305
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15296,8 +15321,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15296
15321
  label: external_exports.string().min(1).optional(),
15297
15322
  usedPercent: usagePercentSchema.optional(),
15298
15323
  remaining: external_exports.number().finite().optional(),
15324
+ scope: accountCreditsScopeSchema.optional(),
15325
+ localizations: harnessLocalizationsSchema.optional(),
15299
15326
  resetsAt: external_exports.string().min(1).optional(),
15300
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15327
+ periodType: accountCreditsPeriodSchema,
15301
15328
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15302
15329
  resetCredits: accountResetCreditsSchema.optional()
15303
15330
  }).strict().superRefine((credits, context) => {
@@ -15322,7 +15349,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15322
15349
  var threadUsageInspectionSchema = external_exports.object({
15323
15350
  threadId: hostThreadIdSchema,
15324
15351
  usage: threadUsageSnapshotSchema.nullable(),
15325
- accountCredits: accountCreditsSnapshotSchema.optional()
15352
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15353
+ /** Whether this source can provide cached account quota independently of usage. */
15354
+ accountCreditsSupported: external_exports.boolean().optional()
15326
15355
  }).strict();
15327
15356
 
15328
15357
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15449,7 +15478,8 @@ var harnessPermissionModeSchema = external_exports.object({
15449
15478
  id: harnessPermissionModeIdSchema,
15450
15479
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15451
15480
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15452
- dangerous: external_exports.boolean().optional()
15481
+ dangerous: external_exports.boolean().optional(),
15482
+ localizations: harnessLocalizationsSchema.optional()
15453
15483
  }).strict();
15454
15484
  var harnessPermissionModeCatalogSchema = external_exports.object({
15455
15485
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -15772,6 +15802,8 @@ var harnessInstallationStateSchema = external_exports.object({
15772
15802
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
15773
15803
  message: external_exports.string().max(2048).optional(),
15774
15804
  messageCode: external_exports.string().min(1).max(128).optional(),
15805
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
15806
+ notice: harnessLocalizedTextSchema.optional(),
15775
15807
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
15776
15808
  }).strict();
15777
15809
 
@@ -15910,6 +15942,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
15910
15942
  invocation: commandInvocationSchema,
15911
15943
  label: commandLabelSchema,
15912
15944
  description: commandDescriptionSchema.optional(),
15945
+ localizations: harnessLocalizationsSchema.optional(),
15913
15946
  argumentMode: external_exports.enum(["none", "text"]),
15914
15947
  /**
15915
15948
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -15144,6 +15144,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
15144
15144
  initializeOnly: external_exports.boolean().optional()
15145
15145
  });
15146
15146
 
15147
+ // ../../shared-contracts/dist/harness-presentation.js
15148
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
15149
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
15150
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
15151
+ label: displayText(256).optional(),
15152
+ description: displayText(1024).optional()
15153
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
15154
+ 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");
15155
+
15147
15156
  // ../../shared-contracts/dist/model-price-overrides.js
15148
15157
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
15149
15158
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15564,8 +15573,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15564
15573
  }
15565
15574
  });
15566
15575
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15576
+ var accountCreditsPeriodSchema = external_exports.enum([
15577
+ "weekly",
15578
+ "monthly",
15579
+ "five_hour",
15580
+ "seven_day",
15581
+ "unknown"
15582
+ ]);
15583
+ var accountCreditsScopeSchema = external_exports.object({
15584
+ id: external_exports.string().min(1).max(256),
15585
+ label: external_exports.string().min(1).max(256),
15586
+ localizations: harnessLocalizationsSchema.optional()
15587
+ }).strict();
15567
15588
  var accountCreditsProductUsageSchema = external_exports.object({
15568
15589
  product: external_exports.string().min(1),
15590
+ /** Native period and scope, never inferred from the display name. */
15591
+ periodType: accountCreditsPeriodSchema.optional(),
15592
+ scope: accountCreditsScopeSchema.optional(),
15593
+ localizations: harnessLocalizationsSchema.optional(),
15569
15594
  used: external_exports.number().finite().nonnegative().optional(),
15570
15595
  // Zero is a real empty cap, not an absent field.
15571
15596
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15587,8 +15612,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15587
15612
  label: external_exports.string().min(1).optional(),
15588
15613
  usedPercent: usagePercentSchema.optional(),
15589
15614
  remaining: external_exports.number().finite().optional(),
15615
+ scope: accountCreditsScopeSchema.optional(),
15616
+ localizations: harnessLocalizationsSchema.optional(),
15590
15617
  resetsAt: external_exports.string().min(1).optional(),
15591
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15618
+ periodType: accountCreditsPeriodSchema,
15592
15619
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15593
15620
  resetCredits: accountResetCreditsSchema.optional()
15594
15621
  }).strict().superRefine((credits, context) => {
@@ -15613,7 +15640,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15613
15640
  var threadUsageInspectionSchema = external_exports.object({
15614
15641
  threadId: hostThreadIdSchema,
15615
15642
  usage: threadUsageSnapshotSchema.nullable(),
15616
- accountCredits: accountCreditsSnapshotSchema.optional()
15643
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15644
+ /** Whether this source can provide cached account quota independently of usage. */
15645
+ accountCreditsSupported: external_exports.boolean().optional()
15617
15646
  }).strict();
15618
15647
 
15619
15648
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15740,7 +15769,8 @@ var harnessPermissionModeSchema = external_exports.object({
15740
15769
  id: harnessPermissionModeIdSchema,
15741
15770
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15742
15771
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15743
- dangerous: external_exports.boolean().optional()
15772
+ dangerous: external_exports.boolean().optional(),
15773
+ localizations: harnessLocalizationsSchema.optional()
15744
15774
  }).strict();
15745
15775
  var harnessPermissionModeCatalogSchema = external_exports.object({
15746
15776
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -16063,6 +16093,8 @@ var harnessInstallationStateSchema = external_exports.object({
16063
16093
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
16064
16094
  message: external_exports.string().max(2048).optional(),
16065
16095
  messageCode: external_exports.string().min(1).max(128).optional(),
16096
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
16097
+ notice: harnessLocalizedTextSchema.optional(),
16066
16098
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
16067
16099
  }).strict();
16068
16100
 
@@ -16201,6 +16233,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
16201
16233
  invocation: commandInvocationSchema,
16202
16234
  label: commandLabelSchema,
16203
16235
  description: commandDescriptionSchema.optional(),
16236
+ localizations: harnessLocalizationsSchema.optional(),
16204
16237
  argumentMode: external_exports.enum(["none", "text"]),
16205
16238
  /**
16206
16239
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -19990,16 +20023,25 @@ var OMP_PERMISSION_MODE_CATALOG = harnessPermissionModeCatalogSchema.parse({
19990
20023
  {
19991
20024
  id: "always-ask",
19992
20025
  label: "Always ask",
20026
+ localizations: {
20027
+ "zh-CN": { label: "始终询问", description: "自动允许读取;写入或执行操作前询问。" }
20028
+ },
19993
20029
  description: "Automatically allow reads and ask before write or execution actions."
19994
20030
  },
19995
20031
  {
19996
20032
  id: "write",
19997
20033
  label: "Write",
20034
+ localizations: {
20035
+ "zh-CN": { label: "写入", description: "自动允许读取和写入;执行操作前询问。" }
20036
+ },
19998
20037
  description: "Automatically allow reads and writes; ask before execution actions."
19999
20038
  },
20000
20039
  {
20001
20040
  id: "yolo",
20002
20041
  label: "Full access",
20042
+ localizations: {
20043
+ "zh-CN": { label: "完全访问", description: "无需批准提示即可运行所有工具操作。" }
20044
+ },
20003
20045
  description: "Run all tool actions without approval prompts.",
20004
20046
  dangerous: true
20005
20047
  }
@@ -20130,6 +20172,7 @@ var ompCommandCatalog = harnessCommandCatalogSchema.parse({
20130
20172
  {
20131
20173
  id: "omp.compact",
20132
20174
  invocation: "/compact",
20175
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
20133
20176
  label: "Compact context",
20134
20177
  description: "Compact the current conversation context",
20135
20178
  argumentMode: "text"