@karlorz/codexhost-cli-win32-x64 0.15.0-0 → 0.16.1-0

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install -g @karlorz/codexhost-cli@0.15.0-0
10
+ npm install -g @karlorz/codexhost-cli@0.16.1-0
11
11
  ```
12
12
 
13
13
  Do not install this package directly. npm selects it through the optional dependencies of `@karlorz/codexhost-cli`.
@@ -1 +1 @@
1
- {"schemaVersion":1,"version":"0.15.0-0","distribution":"npm","target":"windows-x64"}
1
+ {"schemaVersion":1,"version":"0.16.1-0","distribution":"npm","target":"windows-x64"}
@@ -827,7 +827,8 @@ function createBackgroundUpdateManager(dependencies = {}) {
827
827
  kind: "npm",
828
828
  node_path: await requireRegularFile(options.nodePath, "npm Node.js executable"),
829
829
  npm_cli_path: await requireRegularFile(options.npmCliPath, "npm CLI"),
830
- npm_launcher_path: await requireRegularFile(options.npmLauncherPath, "npm codexhost launcher")
830
+ npm_launcher_path: await requireRegularFile(options.npmLauncherPath, "npm codexhost launcher"),
831
+ npm_package_root: requireAbsolutePath(options.packageRoot, "npm platform package root")
831
832
  });
832
833
  } catch (error51) {
833
834
  await writeFailedStatus(common.statusPath, common.version, "npm", error51);
@@ -5533,8 +5534,8 @@ function az_default() {
5533
5534
  }
5534
5535
 
5535
5536
  // node_modules/zod/v4/locales/be.js
5536
- function getBelarusianPlural(count2, one, few, many) {
5537
- const absCount = Math.abs(count2);
5537
+ function getBelarusianPlural(count3, one, few, many) {
5538
+ const absCount = Math.abs(count3);
5538
5539
  const lastDigit = absCount % 10;
5539
5540
  const lastTwoDigits = absCount % 100;
5540
5541
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -7612,8 +7613,8 @@ function hu_default() {
7612
7613
  }
7613
7614
 
7614
7615
  // node_modules/zod/v4/locales/hy.js
7615
- function getArmenianPlural(count2, one, many) {
7616
- return Math.abs(count2) === 1 ? one : many;
7616
+ function getArmenianPlural(count3, one, many) {
7617
+ return Math.abs(count3) === 1 ? one : many;
7617
7618
  }
7618
7619
  function withDefiniteArticle(word) {
7619
7620
  if (!word)
@@ -9741,8 +9742,8 @@ function ro_default() {
9741
9742
  }
9742
9743
 
9743
9744
  // node_modules/zod/v4/locales/ru.js
9744
- function getRussianPlural(count2, one, few, many) {
9745
- const absCount = Math.abs(count2);
9745
+ function getRussianPlural(count3, one, few, many) {
9746
+ const absCount = Math.abs(count3);
9746
9747
  const lastDigit = absCount % 10;
9747
9748
  const lastTwoDigits = absCount % 100;
9748
9749
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -15411,6 +15412,33 @@ function date4(params) {
15411
15412
  // node_modules/zod/v4/classic/external.js
15412
15413
  config(en_default());
15413
15414
 
15415
+ // packages/shared-contracts/dist/goals.js
15416
+ var harnessGoalStatusSchema = external_exports.enum([
15417
+ "active",
15418
+ "paused",
15419
+ "blocked",
15420
+ "usageLimited",
15421
+ "budgetLimited",
15422
+ "complete"
15423
+ ]);
15424
+ var count = external_exports.number().int().nonnegative().safe();
15425
+ var harnessGoalSchema = external_exports.object({
15426
+ objective: external_exports.string().min(1),
15427
+ status: harnessGoalStatusSchema,
15428
+ tokenBudget: count.positive().nullable(),
15429
+ tokensUsed: count,
15430
+ timeUsedSeconds: count,
15431
+ createdAt: count,
15432
+ updatedAt: count
15433
+ });
15434
+ var goalOriginSchema = external_exports.enum(["user", "automatic"]).nullable();
15435
+ var harnessGoalSetSchema = external_exports.object({
15436
+ objective: external_exports.string().min(1).optional(),
15437
+ status: external_exports.enum(["active", "paused"]).optional(),
15438
+ tokenBudget: count.positive().nullable().optional(),
15439
+ origin: goalOriginSchema
15440
+ });
15441
+
15414
15442
  // packages/shared-contracts/dist/delegation-read.js
15415
15443
  var REMOTE_THREAD_REPLY_MAX_BYTES = 16 * 1024 * 1024;
15416
15444
  var delegationReadParamsSchema = external_exports.strictObject({
@@ -15541,7 +15569,7 @@ var modelPriceDefaultResultSchema = external_exports.strictObject({
15541
15569
 
15542
15570
  // packages/shared-contracts/dist/usage-statistics.js
15543
15571
  var USAGE_STATISTICS_RANGES = ["today", "7d", "30d", "90d", "all"];
15544
- var count = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
15572
+ var count2 = external_exports.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
15545
15573
  var localDate = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/u);
15546
15574
  var harness = external_exports.string().min(1).max(128);
15547
15575
  var model = external_exports.string().min(1).max(512);
@@ -15564,22 +15592,24 @@ var usageStatisticsParamsSchema = external_exports.strictObject({
15564
15592
  date: localDate.optional()
15565
15593
  });
15566
15594
  var usageStatisticsTotalsSchema = external_exports.strictObject({
15567
- requests: count,
15568
- inputTokens: count,
15569
- cachedInputTokens: count,
15570
- cacheWriteInputTokens: count,
15571
- cacheKnownInputTokens: count,
15572
- outputTokens: count,
15573
- reasoningOutputTokens: count,
15595
+ requests: count2,
15596
+ inputTokens: count2,
15597
+ cachedInputTokens: count2,
15598
+ cacheWriteInputTokens: count2,
15599
+ cacheKnownInputTokens: count2,
15600
+ cacheHitCachedInputTokens: count2,
15601
+ cacheHitInputTokens: count2,
15602
+ outputTokens: count2,
15603
+ reasoningOutputTokens: count2,
15574
15604
  /** USD at the public price, summed over the priced requests only. */
15575
15605
  costUsd: external_exports.number().finite().min(0),
15576
15606
  /** Requests without a price (or the cache data the price needs); not in `costUsd`. */
15577
- unpricedRequests: count,
15607
+ unpricedRequests: count2,
15578
15608
  /**
15579
15609
  * Requests whose storage gave no token counts: counted as requests, with neither tokens nor
15580
15610
  * cost, and not as unpriced.
15581
15611
  */
15582
- unmeteredRequests: count
15612
+ unmeteredRequests: count2
15583
15613
  });
15584
15614
  var totals = usageStatisticsTotalsSchema.shape;
15585
15615
  var usageStatisticsSessionSchema = external_exports.strictObject({
@@ -15590,8 +15620,8 @@ var usageStatisticsSessionSchema = external_exports.strictObject({
15590
15620
  title: external_exports.string().min(1).max(200).optional(),
15591
15621
  /** Models the session used, most requests first. */
15592
15622
  models: external_exports.array(model).max(16),
15593
- firstAtMs: count,
15594
- lastAtMs: count,
15623
+ firstAtMs: count2,
15624
+ lastAtMs: count2,
15595
15625
  ...totals
15596
15626
  });
15597
15627
  var usageStatisticsResultSchema = external_exports.strictObject({
@@ -15609,7 +15639,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
15609
15639
  date: localDate.nullable()
15610
15640
  }),
15611
15641
  /** Reading of native storage: incomplete while the first read, or a refresh, is under way. */
15612
- reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count, read: count }),
15642
+ reading: external_exports.strictObject({ complete: external_exports.boolean(), sources: count2, read: count2 }),
15613
15643
  /** Harnesses whose storage could not be read; their part is missing, the rest is complete. */
15614
15644
  failures: external_exports.array(external_exports.strictObject({ harness, message: external_exports.string().max(2048) })).max(256),
15615
15645
  /** Every value seen in the range, ignoring the filters, to choose filters from. */
@@ -15629,8 +15659,8 @@ var usageStatisticsResultSchema = external_exports.strictObject({
15629
15659
  harness,
15630
15660
  model: model.nullable(),
15631
15661
  credits: external_exports.number().finite().min(0),
15632
- reportedRequests: count,
15633
- requests: count
15662
+ reportedRequests: count2,
15663
+ requests: count2
15634
15664
  })).max(4096).optional(),
15635
15665
  /** All filters applied. */
15636
15666
  totals: usageStatisticsTotalsSchema,
@@ -15647,7 +15677,7 @@ var usageStatisticsResultSchema = external_exports.strictObject({
15647
15677
  model: model.nullable(),
15648
15678
  ...totals,
15649
15679
  /** Requests priced by what the Harness recorded they cost, not by a price list. */
15650
- harnessPricedRequests: count
15680
+ harnessPricedRequests: count2
15651
15681
  })).max(4096),
15652
15682
  byProject: external_exports.array(external_exports.strictObject({ project: project.nullable(), ...totals })).max(4096),
15653
15683
  /**
@@ -16264,7 +16294,9 @@ var harnessModelCatalogSchema = external_exports.object({
16264
16294
  var harnessHistoryCapabilitiesSchema = external_exports.object({
16265
16295
  fork: external_exports.boolean(),
16266
16296
  forkAcrossCwd: external_exports.boolean(),
16267
- rollbackLastTurn: external_exports.boolean()
16297
+ rollbackLastTurn: external_exports.boolean(),
16298
+ /** Remove the selected checkpoint's Turn and every later Turn, without restoring files. */
16299
+ rollbackToCheckpoint: external_exports.boolean().optional()
16268
16300
  }).strict().refine((history) => history.fork || !history.forkAcrossCwd, {
16269
16301
  path: ["forkAcrossCwd"],
16270
16302
  message: "Cross-cwd Fork requires exact history Fork support"
@@ -16502,7 +16534,10 @@ var harnessPluginRouteSchema = external_exports.object({
16502
16534
  harnessId: harnessPluginIdSchema,
16503
16535
  model: harnessModelRefSchema.optional(),
16504
16536
  thinkingOptionId: harnessThinkingOptionIdSchema.optional(),
16505
- permissionModeId: harnessPermissionModeIdSchema.optional()
16537
+ permissionModeId: harnessPermissionModeIdSchema.optional(),
16538
+ /** A draft prewarm create: stays unsubmitted until the user's first Turn.
16539
+ * Desktop forwards only the Model of a main-process prewarm to thread/start. */
16540
+ prewarm: external_exports.literal(true).optional()
16506
16541
  }).strict();
16507
16542
 
16508
16543
  // packages/shared-contracts/dist/harness-launch-settings.js