@liberseek/boft-cli-linux-x64 0.8.1 → 0.8.3

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.
@@ -14787,6 +14787,15 @@ var harnessDisplaySetSchema = external_exports.strictObject({
14787
14787
  initializeOnly: external_exports.boolean().optional()
14788
14788
  });
14789
14789
 
14790
+ // ../../shared-contracts/dist/harness-presentation.js
14791
+ var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
14792
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
14793
+ var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
14794
+ label: displayText(256).optional(),
14795
+ description: displayText(1024).optional()
14796
+ }).strict()).refine((entries) => Object.keys(entries).length <= 16, "Too many locales");
14797
+ 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");
14798
+
14790
14799
  // ../../shared-contracts/dist/model-price-overrides.js
14791
14800
  var usdPerMillionTokens = external_exports.number().finite().nonnegative();
14792
14801
  var modelPriceOverrideSchema = external_exports.strictObject({
@@ -15207,8 +15216,24 @@ var threadUsageSnapshotSchema = external_exports.object({
15207
15216
  }
15208
15217
  });
15209
15218
  var usagePercentSchema = external_exports.number().finite().min(0).max(100);
15219
+ var accountCreditsPeriodSchema = external_exports.enum([
15220
+ "weekly",
15221
+ "monthly",
15222
+ "five_hour",
15223
+ "seven_day",
15224
+ "unknown"
15225
+ ]);
15226
+ var accountCreditsScopeSchema = external_exports.object({
15227
+ id: external_exports.string().min(1).max(256),
15228
+ label: external_exports.string().min(1).max(256),
15229
+ localizations: harnessLocalizationsSchema.optional()
15230
+ }).strict();
15210
15231
  var accountCreditsProductUsageSchema = external_exports.object({
15211
15232
  product: external_exports.string().min(1),
15233
+ /** Native period and scope, never inferred from the display name. */
15234
+ periodType: accountCreditsPeriodSchema.optional(),
15235
+ scope: accountCreditsScopeSchema.optional(),
15236
+ localizations: harnessLocalizationsSchema.optional(),
15212
15237
  used: external_exports.number().finite().nonnegative().optional(),
15213
15238
  // Zero is a real empty cap, not an absent field.
15214
15239
  limit: external_exports.number().finite().nonnegative().optional(),
@@ -15230,8 +15255,10 @@ var accountCreditsSnapshotSchema = external_exports.object({
15230
15255
  label: external_exports.string().min(1).optional(),
15231
15256
  usedPercent: usagePercentSchema.optional(),
15232
15257
  remaining: external_exports.number().finite().optional(),
15258
+ scope: accountCreditsScopeSchema.optional(),
15259
+ localizations: harnessLocalizationsSchema.optional(),
15233
15260
  resetsAt: external_exports.string().min(1).optional(),
15234
- periodType: external_exports.enum(["weekly", "monthly", "five_hour", "seven_day", "unknown"]),
15261
+ periodType: accountCreditsPeriodSchema,
15235
15262
  productUsage: external_exports.array(accountCreditsProductUsageSchema).min(1).optional(),
15236
15263
  resetCredits: accountResetCreditsSchema.optional()
15237
15264
  }).strict().superRefine((credits, context) => {
@@ -15256,7 +15283,9 @@ var threadUsageInspectionParamsSchema = external_exports.object({
15256
15283
  var threadUsageInspectionSchema = external_exports.object({
15257
15284
  threadId: hostThreadIdSchema,
15258
15285
  usage: threadUsageSnapshotSchema.nullable(),
15259
- accountCredits: accountCreditsSnapshotSchema.optional()
15286
+ accountCredits: accountCreditsSnapshotSchema.optional(),
15287
+ /** Whether this source can provide cached account quota independently of usage. */
15288
+ accountCreditsSupported: external_exports.boolean().optional()
15260
15289
  }).strict();
15261
15290
 
15262
15291
  // ../../shared-contracts/dist/harness-accounts.js
@@ -15383,7 +15412,8 @@ var harnessPermissionModeSchema = external_exports.object({
15383
15412
  id: harnessPermissionModeIdSchema,
15384
15413
  label: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_LABEL_MAX_LENGTH),
15385
15414
  description: nonBlankTextSchema.max(HARNESS_PERMISSION_MODE_DESCRIPTION_MAX_LENGTH).optional(),
15386
- dangerous: external_exports.boolean().optional()
15415
+ dangerous: external_exports.boolean().optional(),
15416
+ localizations: harnessLocalizationsSchema.optional()
15387
15417
  }).strict();
15388
15418
  var harnessPermissionModeCatalogSchema = external_exports.object({
15389
15419
  modes: external_exports.array(harnessPermissionModeSchema).min(1).max(HARNESS_PERMISSION_MODE_CATALOG_MAX_LENGTH),
@@ -15706,6 +15736,8 @@ var harnessInstallationStateSchema = external_exports.object({
15706
15736
  // Adapter-owned diagnostic text; UI uses messageCode rather than displaying it verbatim.
15707
15737
  message: external_exports.string().max(2048).optional(),
15708
15738
  messageCode: external_exports.string().min(1).max(128).optional(),
15739
+ /** Safe plugin-owned explanation, distinct from raw diagnostic message. */
15740
+ notice: harnessLocalizedTextSchema.optional(),
15709
15741
  latestVersionKind: external_exports.enum(["unknown", "tracking-branch"]).optional()
15710
15742
  }).strict();
15711
15743
 
@@ -15844,6 +15876,7 @@ var harnessCommandDescriptorSchema = external_exports.object({
15844
15876
  invocation: commandInvocationSchema,
15845
15877
  label: commandLabelSchema,
15846
15878
  description: commandDescriptionSchema.optional(),
15879
+ localizations: harnessLocalizationsSchema.optional(),
15847
15880
  argumentMode: external_exports.enum(["none", "text"]),
15848
15881
  /**
15849
15882
  * Native distinction reported by the Harness. Omitted when the Harness does
@@ -16769,6 +16802,10 @@ function createZcodeInstallation(environment, app) {
16769
16802
  updateAvailable: false,
16770
16803
  canUpdate: false,
16771
16804
  messageCode: "zcode-desktop-updater",
16805
+ notice: {
16806
+ en: "The CLI ships inside ZCode Desktop. Update ZCode Desktop itself to update it.",
16807
+ "zh-CN": "CLI 随 ZCode Desktop 一起发布,请直接更新 ZCode Desktop。"
16808
+ },
16772
16809
  message: "The CLI ships inside ZCode Desktop. Update ZCode Desktop itself to update it."
16773
16810
  };
16774
16811
  };
@@ -18233,11 +18270,19 @@ var modeLabels = {
18233
18270
  yolo: "Full access",
18234
18271
  auto: "Auto"
18235
18272
  };
18273
+ var chineseModeLabels = {
18274
+ build: "确认变更",
18275
+ edit: "自动编辑",
18276
+ plan: "规划模式",
18277
+ yolo: "完全访问",
18278
+ auto: "自动"
18279
+ };
18236
18280
  function permissionModes(current = "build") {
18237
18281
  return harnessPermissionModeCatalogSchema.parse({
18238
18282
  modes: Object.entries(modeLabels).map(([id, label]) => ({
18239
18283
  id,
18240
18284
  label,
18285
+ localizations: { "zh-CN": { label: chineseModeLabels[id] } },
18241
18286
  ...id === "yolo" ? { dangerous: true } : {}
18242
18287
  })),
18243
18288
  defaultModeId: current
@@ -19277,6 +19322,7 @@ var COMMAND_CATALOG = harnessCommandCatalogSchema.parse({
19277
19322
  {
19278
19323
  id: "compact",
19279
19324
  invocation: "/compact",
19325
+ localizations: { "zh-CN": { label: "压缩上下文", description: "压缩当前对话上下文" } },
19280
19326
  label: "Compact",
19281
19327
  description: "Compact the native ZCode conversation.",
19282
19328
  argumentMode: "text"