@telepath-computer/television 0.1.94 → 0.1.95

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/cli.cjs +15 -6
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -34151,7 +34151,12 @@ function getTelevisionStoragePath() {
34151
34151
  }
34152
34152
  function resolveACPAgentProfile(env = process.env) {
34153
34153
  const rawAgent = env[TELEVISION_ACP_AGENT_ENV];
34154
- const agent = rawAgent === void 0 ? "openclaw" : rawAgent.trim().toLowerCase();
34154
+ if (rawAgent === void 0) {
34155
+ throw new Error(
34156
+ 'TELEVISION_ACP_AGENT is required for server startup. Set it to "openclaw" or "hermes".'
34157
+ );
34158
+ }
34159
+ const agent = rawAgent.trim().toLowerCase();
34155
34160
  if (agent === "openclaw" || agent === "hermes") {
34156
34161
  return ACP_AGENT_PROFILES[agent];
34157
34162
  }
@@ -48905,7 +48910,7 @@ var ACPServer = class extends withDisposable(class {
48905
48910
  super();
48906
48911
  this.authToken = options.authToken;
48907
48912
  this.publicServer = options.publicServer;
48908
- this.profile = resolveACPAgentProfile();
48913
+ this.profile = options.profile ?? resolveACPAgentProfile();
48909
48914
  this.wsServer = new import_websocket_server.default({ noServer: true });
48910
48915
  this.wsServer.on("connection", (socket, request) => {
48911
48916
  if (!this.publicServer && !isAuthorizedQueryToken(request.url, this.authToken)) {
@@ -48997,7 +49002,11 @@ var Server = class {
48997
49002
  if (options.staticDir) {
48998
49003
  this.app.use(import_express2.default.static(options.staticDir));
48999
49004
  }
49000
- this.acp = new ACPServer({ authToken: this.store.authToken, publicServer: this.publicServer });
49005
+ this.acp = new ACPServer({
49006
+ authToken: this.store.authToken,
49007
+ publicServer: this.publicServer,
49008
+ profile: options.acpProfile
49009
+ });
49001
49010
  this.httpServer.on("upgrade", (request, socket, head) => {
49002
49011
  const parsed = new URL(request.url ?? "/", this.baseURL);
49003
49012
  const duplex = socket;
@@ -50123,8 +50132,8 @@ function resolveVercelSkillsInstallerBin() {
50123
50132
  return localRequire.resolve("skills/bin/cli.mjs");
50124
50133
  }
50125
50134
  function readCLIVersion() {
50126
- if ("0.1.94".length > 0) {
50127
- return "0.1.94";
50135
+ if ("0.1.95".length > 0) {
50136
+ return "0.1.95";
50128
50137
  }
50129
50138
  const devPackageJsonPath = import_node_path7.default.join(getDevPackageDir(), "package.json");
50130
50139
  if (!(0, import_node_fs4.existsSync)(devPackageJsonPath)) {
@@ -50830,7 +50839,7 @@ async function runCLI(argv, environment = {}) {
50830
50839
  if (!isVitestRuntime()) {
50831
50840
  const ARGV_SKIP = 2;
50832
50841
  void runCLI(process.argv.slice(ARGV_SKIP)).then((exitCode) => {
50833
- process.exitCode = exitCode;
50842
+ process.exit(exitCode);
50834
50843
  });
50835
50844
  }
50836
50845
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telepath-computer/television",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "type": "module",
5
5
  "main": "dist/cli.cjs",
6
6
  "bin": {