@teneo-protocol/cli 1.0.3 → 1.0.5

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/install.mjs +15 -2
  2. package/package.json +1 -1
package/install.mjs CHANGED
@@ -14,6 +14,7 @@ const DEPS = [
14
14
  "commander@^12.1.0",
15
15
  "dotenv@^16.0.0",
16
16
  "viem@^2.21.0",
17
+ "esbuild@^0.24.0",
17
18
  "tsx@^4.0.0",
18
19
  ];
19
20
 
@@ -75,8 +76,20 @@ try {
75
76
  });
76
77
  log("Dependencies installed");
77
78
 
78
- // Create bash wrapper
79
- const wrapper = `#!/bin/bash\ncd ~/teneo-skill && exec npx tsx teneo.ts "$@"\n`;
79
+ // Pre-compile TS → JS with esbuild (eliminates tsx overhead on every invocation)
80
+ log("Pre-compiling TypeScript...");
81
+ run(
82
+ `npx esbuild teneo.ts --bundle --platform=node --format=esm --outfile=teneo.mjs --external:viem --external:@teneo-protocol/sdk --external:commander --external:dotenv --external:viem/accounts --external:viem/chains`,
83
+ { cwd: INSTALL_DIR }
84
+ );
85
+ run(
86
+ `npx esbuild daemon.ts --bundle --platform=node --format=esm --outfile=daemon.mjs --external:viem --external:@teneo-protocol/sdk --external:commander --external:dotenv --external:viem/accounts --external:viem/chains`,
87
+ { cwd: INSTALL_DIR }
88
+ );
89
+ log("Pre-compiled to teneo.mjs and daemon.mjs");
90
+
91
+ // Create bash wrapper — uses node directly (no tsx overhead)
92
+ const wrapper = `#!/bin/bash\ncd ~/teneo-skill && exec node teneo.mjs "$@"\n`;
80
93
  writeFileSync(join(INSTALL_DIR, "teneo"), wrapper);
81
94
  chmodSync(join(INSTALL_DIR, "teneo"), 0o755);
82
95
  log("Created wrapper script");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teneo-protocol/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Install the Teneo Protocol CLI and AI agent skills for coding assistants (Claude Code, Cursor, Codex, OpenCode, and more)",
5
5
  "bin": {
6
6
  "teneo-cli": "./install.mjs"