@telepath-computer/television 0.1.188 → 0.1.189

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/cli.cjs CHANGED
@@ -52493,7 +52493,7 @@ function disabledTelemetryRuntime() {
52493
52493
 
52494
52494
  // ../server/src/updates/version.ts
52495
52495
  function readVersionStamp() {
52496
- if ("0.1.188".length > 0) return "0.1.188";
52496
+ if ("0.1.189".length > 0) return "0.1.189";
52497
52497
  return void 0;
52498
52498
  }
52499
52499
  function resolveUpdateReleaseVersion(env = process.env, stamp = readVersionStamp()) {
@@ -52995,8 +52995,8 @@ var Server = class {
52995
52995
  };
52996
52996
  };
52997
52997
  function readServerPackageVersion() {
52998
- if ("0.1.188".length > 0) {
52999
- return telemetryVersion("0.1.188");
52998
+ if ("0.1.189".length > 0) {
52999
+ return telemetryVersion("0.1.189");
53000
53000
  }
53001
53001
  const packageJsonPath = import_node_path11.default.resolve(import_node_path11.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)), "..", "package.json");
53002
53002
  if (!(0, import_node_fs9.existsSync)(packageJsonPath)) return telemetryVersion("0.0.0");
@@ -53706,16 +53706,21 @@ function isBundledViewID(id) {
53706
53706
  return BUNDLED_VIEW_IDS.has(id);
53707
53707
  }
53708
53708
  function hasExistingTelevisionDataStructure(storagePath) {
53709
- return [
53710
- getDisplayStatePath(storagePath),
53711
- getTokenPath(storagePath),
53712
- getOnboardingStatePath(storagePath),
53713
- getOnboardingArtifactSentinelPath(storagePath),
53714
- getScreensDir(storagePath),
53715
- getArtifactsMetadataDir(storagePath),
53716
- getThemesDir(storagePath),
53717
- getAgentArtifactsDir(storagePath)
53718
- ].some((markerPath) => (0, import_node_fs13.existsSync)(markerPath));
53709
+ if ((0, import_node_fs13.existsSync)(getDisplayStatePath(storagePath))) return true;
53710
+ if ((0, import_node_fs13.existsSync)(getOnboardingStatePath(storagePath))) return true;
53711
+ if ((0, import_node_fs13.existsSync)(getOnboardingArtifactSentinelPath(storagePath))) return true;
53712
+ if (directoryIsNonEmpty(getScreensDir(storagePath))) return true;
53713
+ if (directoryIsNonEmpty(getArtifactsMetadataDir(storagePath))) return true;
53714
+ if (directoryIsNonEmpty(getThemesDir(storagePath))) return true;
53715
+ if (directoryIsNonEmpty(getAgentArtifactsDir(storagePath))) return true;
53716
+ return false;
53717
+ }
53718
+ function directoryIsNonEmpty(dir) {
53719
+ try {
53720
+ return (0, import_node_fs13.readdirSync)(dir).length > 0;
53721
+ } catch {
53722
+ return false;
53723
+ }
53719
53724
  }
53720
53725
  function artifactWatchTarget(artifact) {
53721
53726
  if (artifact.kind === "url") {
@@ -54567,8 +54572,8 @@ function resolveVercelSkillsInstallerBin() {
54567
54572
  return localRequire.resolve("skills/bin/cli.mjs");
54568
54573
  }
54569
54574
  function readCLIVersion() {
54570
- if ("0.1.188".length > 0) {
54571
- return "0.1.188";
54575
+ if ("0.1.189".length > 0) {
54576
+ return "0.1.189";
54572
54577
  }
54573
54578
  const devPackageJsonPath = import_node_path17.default.join(getDevPackageDir(), "package.json");
54574
54579
  if (!(0, import_node_fs14.existsSync)(devPackageJsonPath)) {