@tenex-chat/backend 0.9.6 → 0.9.8

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.
@@ -10,26 +10,13 @@ function exitWithError(message) {
10
10
  }
11
11
 
12
12
  const passthroughArgs = process.argv.slice(2);
13
- const helpFlags = new Set(["-h", "--help"]);
14
- const versionFlags = new Set(["-V", "--version"]);
15
- const wantsHelp = passthroughArgs.some((arg) => helpFlags.has(arg));
16
- const wantsVersion =
17
- passthroughArgs.length > 0 &&
18
- passthroughArgs.every((arg) => versionFlags.has(arg));
19
-
20
- const targetScript = wantsHelp || wantsVersion
21
- ? path.join(__dirname, "index.js")
22
- : path.join(__dirname, "wrapper.js");
13
+ const targetScript = path.join(__dirname, "index.js");
23
14
 
24
15
  if (!existsSync(targetScript)) {
25
16
  exitWithError(`Missing runtime entrypoint: ${targetScript}`);
26
17
  }
27
18
 
28
- const forwardedArgs = wantsHelp
29
- ? ["daemon", ...passthroughArgs]
30
- : passthroughArgs;
31
-
32
- const child = spawn(process.execPath, [targetScript, ...forwardedArgs], {
19
+ const child = spawn(process.execPath, [targetScript, ...passthroughArgs], {
33
20
  stdio: "inherit",
34
21
  env: process.env,
35
22
  });
package/dist/index.js CHANGED
@@ -58145,7 +58145,7 @@ async function startDaemonFromSetup(metaProjectCreated) {
58145
58145
  if (!entrypoint) {
58146
58146
  throw new Error("Cannot determine TENEX CLI entrypoint for daemon startup");
58147
58147
  }
58148
- const isWrapperEntrypoint = entrypoint.endsWith("wrapper.ts") || entrypoint.endsWith("daemon-wrapper.cjs");
58148
+ const isWrapperEntrypoint = entrypoint.endsWith("wrapper.ts") || entrypoint.endsWith("wrapper.js");
58149
58149
  const daemonArgs = isWrapperEntrypoint ? [...metaProjectCreated ? ["--boot", "meta"] : []] : ["daemon", ...metaProjectCreated ? ["--boot", "meta"] : []];
58150
58150
  const child = spawn3(process.argv[0], [entrypoint, ...daemonArgs], {
58151
58151
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenex-chat/backend",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "TENEX Command Line Interface",
5
5
  "bin": {
6
6
  "tenex-backend": "./dist/daemon-wrapper.cjs"
@@ -1240,7 +1240,7 @@ async function startDaemonFromSetup(metaProjectCreated: boolean): Promise<never>
1240
1240
  }
1241
1241
 
1242
1242
  const isWrapperEntrypoint =
1243
- entrypoint.endsWith("wrapper.ts") || entrypoint.endsWith("daemon-wrapper.cjs");
1243
+ entrypoint.endsWith("wrapper.ts") || entrypoint.endsWith("wrapper.js");
1244
1244
 
1245
1245
  const daemonArgs = isWrapperEntrypoint
1246
1246
  ? [...(metaProjectCreated ? ["--boot", "meta"] : [])]