@telepath-computer/television 0.1.197 → 0.1.198

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
@@ -34222,7 +34222,6 @@ var APP_HIDDEN_DIRECTORY = ".television";
34222
34222
  var TELEVISION_STORAGE_PATH_ENV = "TELEVISION_STORAGE_PATH";
34223
34223
  var TELEVISION_PORT_ENV = "TELEVISION_PORT";
34224
34224
  var TELEVISION_ACP_AGENT_ENV = "TELEVISION_ACP_AGENT";
34225
- var TELEVISION_ACP_COMMAND_ENV = "TELEVISION_ACP_COMMAND";
34226
34225
  var TELEVISION_DEVELOPER_HOME_ENV = "TELEVISION_DEVELOPER_HOME";
34227
34226
  var MAX_PORT = 65535;
34228
34227
  var TELEMETRY_CONTROL_ENV_VARS = [
@@ -34278,23 +34277,6 @@ function getTelevisionPortEnv() {
34278
34277
  return port;
34279
34278
  }
34280
34279
  function resolveACPAgentProfile(env = process.env) {
34281
- const rawCommand = env[TELEVISION_ACP_COMMAND_ENV];
34282
- if (rawCommand !== void 0) {
34283
- const trimmed = rawCommand.trim();
34284
- if (trimmed.length === 0) {
34285
- throw new Error(
34286
- `TELEVISION_ACP_COMMAND is set but empty. Provide a command to launch the ACP agent, e.g. TELEVISION_ACP_COMMAND="pino acp-attach".`
34287
- );
34288
- }
34289
- const [command, ...args] = trimmed.split(/\s+/);
34290
- return {
34291
- agent: "command",
34292
- command,
34293
- args,
34294
- envPrefix: "",
34295
- sessionIdStrategy: "deterministic"
34296
- };
34297
- }
34298
34280
  const rawAgent = env[TELEVISION_ACP_AGENT_ENV];
34299
34281
  if (rawAgent === void 0) {
34300
34282
  return null;
@@ -34321,16 +34303,10 @@ function buildPersistedACPEnvironment(env, options = {}) {
34321
34303
  if (!profile) {
34322
34304
  return snapshot;
34323
34305
  }
34324
- if (profile.agent === "command") {
34325
- snapshot[TELEVISION_ACP_COMMAND_ENV] = [profile.command, ...profile.args].join(" ");
34326
- } else {
34327
- snapshot[TELEVISION_ACP_AGENT_ENV] = profile.agent;
34328
- }
34329
- if (profile.envPrefix.length > 0) {
34330
- for (const [key, value] of Object.entries(env)) {
34331
- if (key.startsWith(profile.envPrefix) && value !== void 0) {
34332
- snapshot[key] = value;
34333
- }
34306
+ snapshot[TELEVISION_ACP_AGENT_ENV] = profile.agent;
34307
+ for (const [key, value] of Object.entries(env)) {
34308
+ if (key.startsWith(profile.envPrefix) && value !== void 0) {
34309
+ snapshot[key] = value;
34334
34310
  }
34335
34311
  }
34336
34312
  return snapshot;
@@ -52593,7 +52569,7 @@ function disabledTelemetryRuntime() {
52593
52569
 
52594
52570
  // ../server/src/updates/version.ts
52595
52571
  function readVersionStamp() {
52596
- if ("0.1.197".length > 0) return "0.1.197";
52572
+ if ("0.1.198".length > 0) return "0.1.198";
52597
52573
  return void 0;
52598
52574
  }
52599
52575
  function resolveUpdateReleaseVersion(env = process.env, stamp = readVersionStamp()) {
@@ -53093,8 +53069,8 @@ var Server = class {
53093
53069
  };
53094
53070
  };
53095
53071
  function readServerPackageVersion() {
53096
- if ("0.1.197".length > 0) {
53097
- return telemetryVersion("0.1.197");
53072
+ if ("0.1.198".length > 0) {
53073
+ return telemetryVersion("0.1.198");
53098
53074
  }
53099
53075
  const packageJsonPath = import_node_path11.default.resolve(import_node_path11.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)), "..", "package.json");
53100
53076
  if (!(0, import_node_fs9.existsSync)(packageJsonPath)) return telemetryVersion("0.0.0");
@@ -54673,8 +54649,8 @@ function resolveVercelSkillsInstallerBin() {
54673
54649
  return localRequire.resolve("skills/bin/cli.mjs");
54674
54650
  }
54675
54651
  function readCLIVersion() {
54676
- if ("0.1.197".length > 0) {
54677
- return "0.1.197";
54652
+ if ("0.1.198".length > 0) {
54653
+ return "0.1.198";
54678
54654
  }
54679
54655
  const devPackageJsonPath = import_node_path17.default.join(getDevPackageDir(), "package.json");
54680
54656
  if (!(0, import_node_fs14.existsSync)(devPackageJsonPath)) {
@@ -55121,9 +55097,8 @@ function createProgram(env, argv = []) {
55121
55097
  }
55122
55098
  daemonEnv[TELEMETRY_LAUNCH_MODE_ENV] = "daemon";
55123
55099
  if (profile2 && !isACPCommandResolvable(profile2.command, daemonEnv)) {
55124
- const selector = profile2.agent === "command" ? "TELEVISION_ACP_COMMAND" : `TELEVISION_ACP_AGENT=${profile2.agent}`;
55125
55100
  const error48 = createDirectiveError(
55126
- `Could not find ACP agent command \`${profile2.command}\` for \`${selector}\` on the persisted PATH. Set TELEVISION_ACP_AGENT to \`openclaw\` or \`hermes\`, or TELEVISION_ACP_COMMAND to a custom ACP agent command, and ensure the selected agent binary is available on PATH before running \`tv serve --persist\`.`
55101
+ `Could not find ACP agent command \`${profile2.command}\` for \`TELEVISION_ACP_AGENT=${profile2.agent}\` on the persisted PATH. Set TELEVISION_ACP_AGENT to \`openclaw\` or \`hermes\`, and ensure the selected agent binary is available on PATH before running \`tv serve --persist\`.`
55127
55102
  );
55128
55103
  log(storagePath, "server startup refused before binding", { argv, error: error48 });
55129
55104
  throw error48;
@@ -55170,9 +55145,8 @@ function createProgram(env, argv = []) {
55170
55145
  warnForExplicitPortZero(opts.port);
55171
55146
  const profile = resolveACPAgentProfile(process.env);
55172
55147
  if (profile && !isACPCommandResolvable(profile.command, process.env)) {
55173
- const selector = profile.agent === "command" ? "TELEVISION_ACP_COMMAND" : `TELEVISION_ACP_AGENT=${profile.agent}`;
55174
55148
  const error48 = createDirectiveError(
55175
- `Could not find ACP agent command \`${profile.command}\` for \`${selector}\` on PATH. Set TELEVISION_ACP_AGENT to \`openclaw\` or \`hermes\`, or TELEVISION_ACP_COMMAND to a custom ACP agent command, and ensure the selected agent binary is available on PATH before running \`tv serve\`.`
55149
+ `Could not find ACP agent command \`${profile.command}\` for \`TELEVISION_ACP_AGENT=${profile.agent}\` on PATH. Set TELEVISION_ACP_AGENT to \`openclaw\` or \`hermes\`, and ensure the selected agent binary is available on PATH before running \`tv serve\`.`
55176
55150
  );
55177
55151
  log(storagePathForLogs, "server startup refused before binding", { argv, error: error48 });
55178
55152
  throw error48;