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

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.
@@ -16026,10 +16026,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
16026
16026
  const shape = def.shape;
16027
16027
  const propValues = {};
16028
16028
  for (const key in shape) {
16029
- const field = shape[key]._zod;
16030
- if (field.values) {
16029
+ const field2 = shape[key]._zod;
16030
+ if (field2.values) {
16031
16031
  propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
16032
- for (const v3 of field.values)
16032
+ for (const v3 of field2.values)
16033
16033
  propValues[key].add(v3);
16034
16034
  }
16035
16035
  }
@@ -27669,6 +27669,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
27669
27669
  cachedInputTokens: count,
27670
27670
  cacheWriteInputTokens: count,
27671
27671
  cacheKnownInputTokens: count,
27672
+ cacheHitCachedInputTokens: count,
27673
+ cacheHitInputTokens: count,
27672
27674
  outputTokens: count,
27673
27675
  reasoningOutputTokens: count,
27674
27676
  /** USD at the public price, summed over the priced requests only. */
@@ -27776,6 +27778,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
27776
27778
  var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
27777
27779
  var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
27778
27780
 
27781
+ // ../../shared-contracts/dist/thread-questions.js
27782
+ var field = external_exports.discriminatedUnion("type", [
27783
+ external_exports.object({
27784
+ id: external_exports.string().min(1),
27785
+ type: external_exports.literal("choice"),
27786
+ prompt: external_exports.string(),
27787
+ options: external_exports.array(external_exports.object({
27788
+ value: external_exports.string().min(1),
27789
+ label: external_exports.string(),
27790
+ description: external_exports.string().optional()
27791
+ })).min(1),
27792
+ multiple: external_exports.boolean(),
27793
+ allowOther: external_exports.boolean(),
27794
+ optional: external_exports.boolean()
27795
+ }),
27796
+ external_exports.object({
27797
+ id: external_exports.string().min(1),
27798
+ type: external_exports.literal("text"),
27799
+ prompt: external_exports.string(),
27800
+ multiline: external_exports.boolean(),
27801
+ secret: external_exports.literal(false),
27802
+ optional: external_exports.boolean(),
27803
+ placeholder: external_exports.string().optional(),
27804
+ prefill: external_exports.string().optional()
27805
+ })
27806
+ ]);
27807
+ var threadQuestionSchema = external_exports.object({
27808
+ interactionId: external_exports.string().min(1),
27809
+ turnId: external_exports.string().min(1),
27810
+ title: external_exports.string().optional(),
27811
+ questions: external_exports.array(field).min(1)
27812
+ }).refine(({ questions }) => questions.some((q3) => q3.type === "choice" && q3.multiple), {
27813
+ message: "Shared cards require at least one multi-select question"
27814
+ });
27815
+ var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
27816
+ var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
27817
+ var threadQuestionRespondParamsSchema = external_exports.strictObject({
27818
+ threadId: external_exports.string().min(1),
27819
+ turnId: external_exports.string().min(1),
27820
+ interactionId: external_exports.string().min(1),
27821
+ answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
27822
+ cancelled: external_exports.boolean().default(false)
27823
+ });
27824
+ var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
27825
+
27779
27826
  // ../../shared-contracts/dist/harness-plugins.js
27780
27827
  var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
27781
27828
  var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
@@ -28545,7 +28592,10 @@ var harnessPluginRouteSchema = external_exports.object({
28545
28592
  harnessId: harnessPluginIdSchema,
28546
28593
  model: harnessModelRefSchema.optional(),
28547
28594
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
28548
- permissionModeId: harnessPermissionModeIdSchema.optional()
28595
+ permissionModeId: harnessPermissionModeIdSchema.optional(),
28596
+ /** A draft prewarm create: stays unsubmitted until the user's first Turn.
28597
+ * Desktop forwards only the Model of a main-process prewarm to thread/start. */
28598
+ prewarm: external_exports.literal(true).optional()
28549
28599
  }).strict();
28550
28600
 
28551
28601
  // ../../shared-contracts/dist/harness-launch-settings.js
@@ -29424,26 +29474,26 @@ function parseHostUsage(value) {
29424
29474
  }
29425
29475
  }
29426
29476
  const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
29427
- for (const field of [
29477
+ for (const field2 of [
29428
29478
  "totalCredits",
29429
29479
  "contextUsagePercent",
29430
29480
  "apiOutputTokensPerSecond"
29431
29481
  ]) {
29432
- const candidate = value[field];
29482
+ const candidate = value[field2];
29433
29483
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
29434
- throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
29484
+ throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
29435
29485
  }
29436
29486
  }
29437
- for (const field of tokenFields) {
29438
- const candidate = value[field];
29487
+ for (const field2 of tokenFields) {
29488
+ const candidate = value[field2];
29439
29489
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
29440
- throw new Error(`Harness Usage '${field}' must be a non-negative safe integer`);
29490
+ throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
29441
29491
  }
29442
29492
  }
29443
- for (const field of safeIntegerFields) {
29444
- const candidate = value[field];
29493
+ for (const field2 of safeIntegerFields) {
29494
+ const candidate = value[field2];
29445
29495
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
29446
- throw new Error(`Harness Usage '${field}' must be a non-negative safe integer`);
29496
+ throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
29447
29497
  }
29448
29498
  }
29449
29499
  if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
@@ -29452,16 +29502,16 @@ function parseHostUsage(value) {
29452
29502
  if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
29453
29503
  throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
29454
29504
  }
29455
- for (const field of ["totalCredits", "contextUsagePercent"]) {
29456
- const candidate = value[field];
29505
+ for (const field2 of ["totalCredits", "contextUsagePercent"]) {
29506
+ const candidate = value[field2];
29457
29507
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
29458
- throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
29508
+ throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
29459
29509
  }
29460
29510
  }
29461
- for (const field of percentFields) {
29462
- const candidate = value[field];
29511
+ for (const field2 of percentFields) {
29512
+ const candidate = value[field2];
29463
29513
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
29464
- throw new Error(`Harness Usage '${field}' must be between 0 and 100`);
29514
+ throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
29465
29515
  }
29466
29516
  }
29467
29517
  if (value.sessionCacheUsage !== void 0) {
@@ -39280,11 +39330,11 @@ var McpServer = class {
39280
39330
  return EMPTY_COMPLETION_RESULT;
39281
39331
  }
39282
39332
  const promptShape = getObjectShape(prompt.argsSchema);
39283
- const field = promptShape?.[request.params.argument.name];
39284
- if (!isCompletable(field)) {
39333
+ const field2 = promptShape?.[request.params.argument.name];
39334
+ if (!isCompletable(field2)) {
39285
39335
  return EMPTY_COMPLETION_RESULT;
39286
39336
  }
39287
- const completer = getCompleter(field);
39337
+ const completer = getCompleter(field2);
39288
39338
  if (!completer) {
39289
39339
  return EMPTY_COMPLETION_RESULT;
39290
39340
  }
@@ -39557,8 +39607,8 @@ var McpServer = class {
39557
39607
  };
39558
39608
  this._registeredPrompts[name] = registeredPrompt;
39559
39609
  if (argsSchema) {
39560
- const hasCompletable = Object.values(argsSchema).some((field) => {
39561
- const inner = field instanceof ZodOptional ? field._def?.innerType : field;
39610
+ const hasCompletable = Object.values(argsSchema).some((field2) => {
39611
+ const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
39562
39612
  return isCompletable(inner);
39563
39613
  });
39564
39614
  if (hasCompletable) {
@@ -39767,9 +39817,9 @@ function promptArgumentsFromSchema(schema) {
39767
39817
  const shape = getObjectShape(schema);
39768
39818
  if (!shape)
39769
39819
  return [];
39770
- return Object.entries(shape).map(([name, field]) => {
39771
- const description = getSchemaDescription(field);
39772
- const isOptional = isSchemaOptional(field);
39820
+ return Object.entries(shape).map(([name, field2]) => {
39821
+ const description = getSchemaDescription(field2);
39822
+ const isOptional = isSchemaOptional(field2);
39773
39823
  return {
39774
39824
  name,
39775
39825
  description,
@@ -53145,13 +53195,13 @@ function parseHarnessUsageEntry(value) {
53145
53195
  }
53146
53196
  if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
53147
53197
  return null;
53148
- for (const field of [
53198
+ for (const field2 of [
53149
53199
  "cachedInputTokens",
53150
53200
  "cacheWriteInputTokens",
53151
53201
  "cacheWrite1hInputTokens",
53152
53202
  "reasoningOutputTokens"
53153
53203
  ]) {
53154
- if (entry[field] !== void 0 && !tokenCount(entry[field]))
53204
+ if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
53155
53205
  return null;
53156
53206
  }
53157
53207
  const cached2 = entry.cachedInputTokens ?? 0;
@@ -15623,10 +15623,10 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
15623
15623
  const shape = def.shape;
15624
15624
  const propValues = {};
15625
15625
  for (const key in shape) {
15626
- const field = shape[key]._zod;
15627
- if (field.values) {
15626
+ const field2 = shape[key]._zod;
15627
+ if (field2.values) {
15628
15628
  propValues[key] ?? (propValues[key] = /* @__PURE__ */ new Set());
15629
- for (const v3 of field.values)
15629
+ for (const v3 of field2.values)
15630
15630
  propValues[key].add(v3);
15631
15631
  }
15632
15632
  }
@@ -27266,6 +27266,8 @@ var usageStatisticsTotalsSchema = external_exports.strictObject({
27266
27266
  cachedInputTokens: count,
27267
27267
  cacheWriteInputTokens: count,
27268
27268
  cacheKnownInputTokens: count,
27269
+ cacheHitCachedInputTokens: count,
27270
+ cacheHitInputTokens: count,
27269
27271
  outputTokens: count,
27270
27272
  reasoningOutputTokens: count,
27271
27273
  /** USD at the public price, summed over the priced requests only. */
@@ -27373,6 +27375,51 @@ var hostInteractionIdSchema = opaqueIdSchema.brand();
27373
27375
  var threadPrewarmDiscardParamsSchema = external_exports.object({ threadId: hostThreadIdSchema });
27374
27376
  var threadPrewarmDiscardResultSchema = external_exports.object({ discarded: external_exports.boolean() });
27375
27377
 
27378
+ // ../../shared-contracts/dist/thread-questions.js
27379
+ var field = external_exports.discriminatedUnion("type", [
27380
+ external_exports.object({
27381
+ id: external_exports.string().min(1),
27382
+ type: external_exports.literal("choice"),
27383
+ prompt: external_exports.string(),
27384
+ options: external_exports.array(external_exports.object({
27385
+ value: external_exports.string().min(1),
27386
+ label: external_exports.string(),
27387
+ description: external_exports.string().optional()
27388
+ })).min(1),
27389
+ multiple: external_exports.boolean(),
27390
+ allowOther: external_exports.boolean(),
27391
+ optional: external_exports.boolean()
27392
+ }),
27393
+ external_exports.object({
27394
+ id: external_exports.string().min(1),
27395
+ type: external_exports.literal("text"),
27396
+ prompt: external_exports.string(),
27397
+ multiline: external_exports.boolean(),
27398
+ secret: external_exports.literal(false),
27399
+ optional: external_exports.boolean(),
27400
+ placeholder: external_exports.string().optional(),
27401
+ prefill: external_exports.string().optional()
27402
+ })
27403
+ ]);
27404
+ var threadQuestionSchema = external_exports.object({
27405
+ interactionId: external_exports.string().min(1),
27406
+ turnId: external_exports.string().min(1),
27407
+ title: external_exports.string().optional(),
27408
+ questions: external_exports.array(field).min(1)
27409
+ }).refine(({ questions }) => questions.some((q3) => q3.type === "choice" && q3.multiple), {
27410
+ message: "Shared cards require at least one multi-select question"
27411
+ });
27412
+ var threadQuestionsListParamsSchema = external_exports.strictObject({ threadId: external_exports.string().min(1) });
27413
+ var threadQuestionsResultSchema = external_exports.object({ questions: external_exports.array(threadQuestionSchema) });
27414
+ var threadQuestionRespondParamsSchema = external_exports.strictObject({
27415
+ threadId: external_exports.string().min(1),
27416
+ turnId: external_exports.string().min(1),
27417
+ interactionId: external_exports.string().min(1),
27418
+ answers: external_exports.record(external_exports.string(), external_exports.array(external_exports.string())),
27419
+ cancelled: external_exports.boolean().default(false)
27420
+ });
27421
+ var threadQuestionRespondResultSchema = external_exports.object({ accepted: external_exports.literal(true) });
27422
+
27376
27423
  // ../../shared-contracts/dist/harness-plugins.js
27377
27424
  var HARNESS_PLUGIN_MANIFEST_MAX_BYTES = 32 * 1024;
27378
27425
  var HARNESS_PLUGIN_ICON_MAX_BYTES = 128 * 1024;
@@ -28142,7 +28189,10 @@ var harnessPluginRouteSchema = external_exports.object({
28142
28189
  harnessId: harnessPluginIdSchema,
28143
28190
  model: harnessModelRefSchema.optional(),
28144
28191
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
28145
- permissionModeId: harnessPermissionModeIdSchema.optional()
28192
+ permissionModeId: harnessPermissionModeIdSchema.optional(),
28193
+ /** A draft prewarm create: stays unsubmitted until the user's first Turn.
28194
+ * Desktop forwards only the Model of a main-process prewarm to thread/start. */
28195
+ prewarm: external_exports.literal(true).optional()
28146
28196
  }).strict();
28147
28197
 
28148
28198
  // ../../shared-contracts/dist/harness-launch-settings.js
@@ -29426,26 +29476,26 @@ function parseHostUsage(value) {
29426
29476
  }
29427
29477
  }
29428
29478
  const indicators = value.composerIndicators === void 0 ? {} : { composerIndicators: composerIndicatorsSchema.parse(value.composerIndicators) };
29429
- for (const field of [
29479
+ for (const field2 of [
29430
29480
  "totalCredits",
29431
29481
  "contextUsagePercent",
29432
29482
  "apiOutputTokensPerSecond"
29433
29483
  ]) {
29434
- const candidate = value[field];
29484
+ const candidate = value[field2];
29435
29485
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
29436
- throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
29486
+ throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
29437
29487
  }
29438
29488
  }
29439
- for (const field of tokenFields) {
29440
- const candidate = value[field];
29489
+ for (const field2 of tokenFields) {
29490
+ const candidate = value[field2];
29441
29491
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
29442
- throw new Error(`Harness Usage '${field}' must be a non-negative safe integer`);
29492
+ throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
29443
29493
  }
29444
29494
  }
29445
- for (const field of safeIntegerFields) {
29446
- const candidate = value[field];
29495
+ for (const field2 of safeIntegerFields) {
29496
+ const candidate = value[field2];
29447
29497
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isSafeInteger(candidate) || candidate < 0)) {
29448
- throw new Error(`Harness Usage '${field}' must be a non-negative safe integer`);
29498
+ throw new Error(`Harness Usage '${field2}' must be a non-negative safe integer`);
29449
29499
  }
29450
29500
  }
29451
29501
  if (value.outputTokensPerSecond !== void 0 && (typeof value.outputTokensPerSecond !== "number" || !Number.isFinite(value.outputTokensPerSecond) || value.outputTokensPerSecond < 0)) {
@@ -29454,16 +29504,16 @@ function parseHostUsage(value) {
29454
29504
  if (value.totalCostUsd !== void 0 && (typeof value.totalCostUsd !== "number" || !Number.isFinite(value.totalCostUsd) || value.totalCostUsd < 0)) {
29455
29505
  throw new Error("Harness Usage 'totalCostUsd' must be a finite non-negative number");
29456
29506
  }
29457
- for (const field of ["totalCredits", "contextUsagePercent"]) {
29458
- const candidate = value[field];
29507
+ for (const field2 of ["totalCredits", "contextUsagePercent"]) {
29508
+ const candidate = value[field2];
29459
29509
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0)) {
29460
- throw new Error(`Harness Usage '${field}' must be a finite non-negative number`);
29510
+ throw new Error(`Harness Usage '${field2}' must be a finite non-negative number`);
29461
29511
  }
29462
29512
  }
29463
- for (const field of percentFields) {
29464
- const candidate = value[field];
29513
+ for (const field2 of percentFields) {
29514
+ const candidate = value[field2];
29465
29515
  if (candidate !== void 0 && (typeof candidate !== "number" || !Number.isFinite(candidate) || candidate < 0 || candidate > 100)) {
29466
- throw new Error(`Harness Usage '${field}' must be between 0 and 100`);
29516
+ throw new Error(`Harness Usage '${field2}' must be between 0 and 100`);
29467
29517
  }
29468
29518
  }
29469
29519
  if (value.sessionCacheUsage !== void 0) {
@@ -39282,11 +39332,11 @@ var McpServer = class {
39282
39332
  return EMPTY_COMPLETION_RESULT;
39283
39333
  }
39284
39334
  const promptShape = getObjectShape(prompt.argsSchema);
39285
- const field = promptShape?.[request.params.argument.name];
39286
- if (!isCompletable(field)) {
39335
+ const field2 = promptShape?.[request.params.argument.name];
39336
+ if (!isCompletable(field2)) {
39287
39337
  return EMPTY_COMPLETION_RESULT;
39288
39338
  }
39289
- const completer = getCompleter(field);
39339
+ const completer = getCompleter(field2);
39290
39340
  if (!completer) {
39291
39341
  return EMPTY_COMPLETION_RESULT;
39292
39342
  }
@@ -39559,8 +39609,8 @@ var McpServer = class {
39559
39609
  };
39560
39610
  this._registeredPrompts[name] = registeredPrompt;
39561
39611
  if (argsSchema) {
39562
- const hasCompletable = Object.values(argsSchema).some((field) => {
39563
- const inner = field instanceof ZodOptional ? field._def?.innerType : field;
39612
+ const hasCompletable = Object.values(argsSchema).some((field2) => {
39613
+ const inner = field2 instanceof ZodOptional ? field2._def?.innerType : field2;
39564
39614
  return isCompletable(inner);
39565
39615
  });
39566
39616
  if (hasCompletable) {
@@ -39769,9 +39819,9 @@ function promptArgumentsFromSchema(schema) {
39769
39819
  const shape = getObjectShape(schema);
39770
39820
  if (!shape)
39771
39821
  return [];
39772
- return Object.entries(shape).map(([name, field]) => {
39773
- const description = getSchemaDescription(field);
39774
- const isOptional = isSchemaOptional(field);
39822
+ return Object.entries(shape).map(([name, field2]) => {
39823
+ const description = getSchemaDescription(field2);
39824
+ const isOptional = isSchemaOptional(field2);
39775
39825
  return {
39776
39826
  name,
39777
39827
  description,
@@ -53147,13 +53197,13 @@ function parseHarnessUsageEntry(value) {
53147
53197
  }
53148
53198
  if (!tokenCount(entry.inputTokens) || !tokenCount(entry.outputTokens))
53149
53199
  return null;
53150
- for (const field of [
53200
+ for (const field2 of [
53151
53201
  "cachedInputTokens",
53152
53202
  "cacheWriteInputTokens",
53153
53203
  "cacheWrite1hInputTokens",
53154
53204
  "reasoningOutputTokens"
53155
53205
  ]) {
53156
- if (entry[field] !== void 0 && !tokenCount(entry[field]))
53206
+ if (entry[field2] !== void 0 && !tokenCount(entry[field2]))
53157
53207
  return null;
53158
53208
  }
53159
53209
  const cached2 = entry.cachedInputTokens ?? 0;