@tempo-ai/visual-review 0.0.141-staging.1 → 0.0.142-staging.1

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/dist/bin.js CHANGED
@@ -7,7 +7,7 @@ async function main(argv = process.argv.slice(2)) {
7
7
  const [command, ...commandArgs] = argv;
8
8
  switch (command) {
9
9
  case "capture":
10
- return await (await import("./cli-AGRYO7E7.js")).main(commandArgs);
10
+ return await (await import("./cli-JLERE5LZ.js")).main(commandArgs);
11
11
  case "claim":
12
12
  return await (await import("./claim-TARSUW6K.js")).main(commandArgs);
13
13
  case "report":
@@ -30121,10 +30121,13 @@ import path3 from "path";
30121
30121
 
30122
30122
  // ../canvas-capture-headless/src/capture-images.ts
30123
30123
  import { createHash } from "crypto";
30124
- import sharp from "sharp";
30124
+ import { createRequire as createRequire2 } from "module";
30125
30125
  var MAX_IMAGE_BYTES = 24 * 1024 * 1024;
30126
30126
  var MAX_IMAGE_PIXELS = 64 * 1024 * 1024;
30127
30127
  var CACHE_BYTES = 32 * 1024 * 1024;
30128
+ var requireModule = createRequire2(import.meta.url);
30129
+ var codec;
30130
+ var loadSharp = () => codec ??= requireModule("sharp");
30128
30131
  function createCaptureImageNormalizer() {
30129
30132
  const cache2 = /* @__PURE__ */ new Map();
30130
30133
  let retainedBytes = 0;
@@ -30140,6 +30143,7 @@ function createCaptureImageNormalizer() {
30140
30143
  cache2.set(key2, cached);
30141
30144
  return cached;
30142
30145
  }
30146
+ const sharp = loadSharp();
30143
30147
  const png = await sharp(bytes, { limitInputPixels: MAX_IMAGE_PIXELS }).keepExif().png().toBuffer();
30144
30148
  if (cache2.has(key2)) return cache2.get(key2);
30145
30149
  if (png.length <= CACHE_BYTES) {
@@ -40629,7 +40633,7 @@ var MissingRootDepsError = class extends TempoDevServerError {
40629
40633
  // ../tempo-sdk/package.json
40630
40634
  var package_default = {
40631
40635
  name: "tempo-sdk",
40632
- version: "0.0.93",
40636
+ version: "0.0.94",
40633
40637
  publishConfig: {
40634
40638
  tag: "sdk-v2-latest"
40635
40639
  },
@@ -48056,6 +48060,8 @@ import os2 from "os";
48056
48060
  import path20 from "path";
48057
48061
  var NPM_REGISTRY_ENV = "npm_config_registry";
48058
48062
  var PNPM_REGISTRY_ENV = "pnpm_config_registry";
48063
+ var NPM_CACHE_DIR_ENV = "npm_config_cache_dir";
48064
+ var PNPM_CACHE_DIR_ENV = "pnpm_config_cache_dir";
48059
48065
  var RELEASE_AGE_EXCLUDE_ENV = "pnpm_config_minimum_release_age_exclude";
48060
48066
  async function readPackageManagerConfigEnv(cwd, env) {
48061
48067
  const additions = {};
@@ -48067,6 +48073,11 @@ async function readPackageManagerConfigEnv(cwd, env) {
48067
48073
  if (pnpmRegistryKey && !npmRegistryKey) {
48068
48074
  additions[NPM_REGISTRY_ENV] = env[pnpmRegistryKey];
48069
48075
  }
48076
+ const e2eCacheDir = env.TEMPO_E2E_PNPM_CACHE_DIR;
48077
+ if (e2eCacheDir) {
48078
+ additions[findEnvKey(env, NPM_CACHE_DIR_ENV) ?? NPM_CACHE_DIR_ENV] = e2eCacheDir;
48079
+ additions[findEnvKey(env, PNPM_CACHE_DIR_ENV) ?? PNPM_CACHE_DIR_ENV] = e2eCacheDir;
48080
+ }
48070
48081
  const exclusions = /* @__PURE__ */ new Set([
48071
48082
  ...envReleaseAgeExclusions(env),
48072
48083
  ...await workspaceReleaseAgeExclusions(cwd),
@@ -48444,7 +48455,7 @@ var pollingScanPool = createPollingScanPool();
48444
48455
 
48445
48456
  // ../../modules/file-watcher/watcher.ts
48446
48457
  import { lstat as lstat3, realpath as realpath5, stat as stat7 } from "fs/promises";
48447
- import { createRequire as createRequire2 } from "module";
48458
+ import { createRequire as createRequire3 } from "module";
48448
48459
  import { relative } from "path";
48449
48460
  var DEFAULT_DEBOUNCE_MS = 100;
48450
48461
  var DEFAULT_MAX_BATCH_SIZE = 1e3;
@@ -48454,13 +48465,13 @@ var DEFAULT_IDLE_POLLING_INTERVAL_MS = 5e3;
48454
48465
  var MIN_POLLING_INTERVAL_MS = 10;
48455
48466
  var EINTR_RESTART_DELAY_MS = 100;
48456
48467
  var MAX_RECOVERY_RESTARTS = 50;
48457
- var requireModule = createRequire2(
48468
+ var requireModule2 = createRequire3(
48458
48469
  typeof __filename !== "undefined" ? __filename : import.meta.url
48459
48470
  );
48460
48471
  var nativeWatcherPromise = null;
48461
48472
  function loadNativeWatcher() {
48462
48473
  nativeWatcherPromise ??= Promise.resolve().then(() => {
48463
- const loaded = requireModule(
48474
+ const loaded = requireModule2(
48464
48475
  "@parcel/watcher"
48465
48476
  );
48466
48477
  return loaded.default ?? loaded;
@@ -62012,7 +62023,7 @@ import {
62012
62023
  unlink as unlink3,
62013
62024
  writeFile as writeFile10
62014
62025
  } from "fs/promises";
62015
- import { createRequire as createRequire4 } from "module";
62026
+ import { createRequire as createRequire5 } from "module";
62016
62027
  import path34 from "path";
62017
62028
 
62018
62029
  // ../../node_modules/.pnpm/postcss@8.5.28/node_modules/postcss/lib/postcss.mjs
@@ -62044,7 +62055,7 @@ var Node2 = import_postcss.default.Node;
62044
62055
 
62045
62056
  // ../tempo-project/stylesheet-plan.ts
62046
62057
  import { readFile as readFile19, realpath as realpath8 } from "fs/promises";
62047
- import { createRequire as createRequire3 } from "module";
62058
+ import { createRequire as createRequire4 } from "module";
62048
62059
  import path32 from "path";
62049
62060
  var import_postcss_value_parser = __toESM(require_lib(), 1);
62050
62061
 
@@ -62583,7 +62594,7 @@ import path36 from "path";
62583
62594
 
62584
62595
  // ../tempo-project/mirror-user-canvas-deps.ts
62585
62596
  import { readFile as readFile23, realpath as realpath10 } from "fs/promises";
62586
- import { createRequire as createRequire5 } from "module";
62597
+ import { createRequire as createRequire6 } from "module";
62587
62598
  import path37 from "path";
62588
62599
 
62589
62600
  // ../tempo-project/install-app-dep-roots.ts
@@ -64406,4 +64417,4 @@ export {
64406
64417
  buildBaselineCaptureArgs,
64407
64418
  main
64408
64419
  };
64409
- //# sourceMappingURL=chunk-3IKPKXZZ.js.map
64420
+ //# sourceMappingURL=chunk-EWF3ZRZK.js.map