@warmhub/cli 0.81.1 → 0.82.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.
Files changed (2) hide show
  1. package/dist/wh.js +10 -7
  2. package/package.json +1 -1
package/dist/wh.js CHANGED
@@ -28541,7 +28541,7 @@ function dedupeDeprecationsByShape(results) {
28541
28541
  // ../../packages/sdk-ts/package.json
28542
28542
  var package_default = {
28543
28543
  name: "@warmhub/sdk-ts",
28544
- version: "0.79.1",
28544
+ version: "0.80.0",
28545
28545
  private: false,
28546
28546
  type: "module",
28547
28547
  description: "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -28591,7 +28591,9 @@ var package_default = {
28591
28591
  }
28592
28592
  },
28593
28593
  scripts: {
28594
- build: "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
28594
+ build: 'if [ "${WARMHUB_TEST_RUNTIME_BUILD:-}" = "1" ]; then bun run build:test-runtime; else bun run build:full; fi',
28595
+ "build:full": "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
28596
+ "build:test-runtime": "tsup --config tsup.test-runtime.config.ts",
28595
28597
  "generate:api-contract": "bun run scripts/generate-api-contract.ts",
28596
28598
  "generate:backend-types": "bun run scripts/generate-backend-types.ts",
28597
28599
  "audit:api-contract": "bun run scripts/audit-api-contract.ts",
@@ -32476,7 +32478,8 @@ var DEFAULT_LOCK_CONFIG = {
32476
32478
  retryMaxMs: 1000,
32477
32479
  staleMs: 30000,
32478
32480
  heartbeatMs: 1000,
32479
- staleTakeover: true
32481
+ staleTakeover: true,
32482
+ retrySleep: (delayMs) => new Promise((resolve) => setTimeout(resolve, delayMs))
32480
32483
  };
32481
32484
 
32482
32485
  class AuthLockError extends Error {
@@ -32767,7 +32770,7 @@ async function withLock(targetPath, fn, createTarget, timeoutError, overrides) {
32767
32770
  });
32768
32771
  throw timeoutError(targetPath);
32769
32772
  }
32770
- await new Promise((resolve) => setTimeout(resolve, getRetryDelay(attempt, config)));
32773
+ await config.retrySleep(getRetryDelay(attempt, config));
32771
32774
  }
32772
32775
  if (heldLock === null) {
32773
32776
  log.error("lock.acquire.timeout", {
@@ -49103,7 +49106,7 @@ function resolveLogLevel(flagLevel, env) {
49103
49106
  // package.json
49104
49107
  var package_default3 = {
49105
49108
  name: "@warmhub/cli",
49106
- version: "0.81.1",
49109
+ version: "0.82.0",
49107
49110
  private: false,
49108
49111
  type: "module",
49109
49112
  description: "The wh CLI for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -49720,5 +49723,5 @@ process.exitCode = interceptedExitCode === undefined ? await runPreparedCli(laun
49720
49723
  version: package_default3.version
49721
49724
  }) : interceptedExitCode;
49722
49725
 
49723
- //# debugId=AA89D7481E5617C864756E2164756E21
49724
- //# warmhub-cli-build-info {"cliVersion":"0.81.1","sdkVersion":"0.79.1"}
49726
+ //# debugId=79D8886D79C500CC64756E2164756E21
49727
+ //# warmhub-cli-build-info {"cliVersion":"0.82.0","sdkVersion":"0.80.0"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/cli",
3
- "version": "0.81.1",
3
+ "version": "0.82.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The wh CLI for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",