@naarang/ccc 3.3.0-beta.14 → 3.3.0-beta.16

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.
@@ -20,7 +20,13 @@ if (existsSync(distDir)) {
20
20
 
21
21
  // Build with version define
22
22
  try {
23
- await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --define BUILD_VERSION='"${VERSION}"'`;
23
+ // Mark Pi as external for the npm build. Pi 0.74+ has CJS-shaped
24
+ // transitive deps that break bun's bundler/bytecode pass. When
25
+ // installed via npm, Node's resolver finds Pi in node_modules
26
+ // alongside our dist/, so bundling it just adds risk for zero
27
+ // gain. (The compiled-binary build path can't do this — see
28
+ // build-binaries.ts for the trade-off there.)
29
+ await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --define BUILD_VERSION='"${VERSION}"'`;
24
30
  console.log('✓ Built dist/index.js');
25
31
  } catch (error) {
26
32
  console.error('✗ Build failed:', error);
@@ -23,10 +23,9 @@ function header(label: string): void {
23
23
  }
24
24
 
25
25
  async function main(): Promise<void> {
26
- header('1. Where is Pi installed and what version?');
26
+ header('1. Pi SDK source');
27
27
  const resolved = await loadPiSdk();
28
28
  console.log('install path:', resolved.installPath);
29
- console.log('version :', resolved.version);
30
29
 
31
30
  header('2. What does ~/.pi/agent/auth.json look like?');
32
31
  const authPath = path.join(os.homedir(), '.pi', 'agent', 'auth.json');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naarang/ccc",
3
- "version": "3.3.0-beta.14",
3
+ "version": "3.3.0-beta.16",
4
4
  "description": "Code Chat Connect - Control Claude Code from your mobile device",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,7 +20,13 @@ if (existsSync(distDir)) {
20
20
 
21
21
  // Build with version define
22
22
  try {
23
- await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --define BUILD_VERSION='"${VERSION}"'`;
23
+ // Mark Pi as external for the npm build. Pi 0.74+ has CJS-shaped
24
+ // transitive deps that break bun's bundler/bytecode pass. When
25
+ // installed via npm, Node's resolver finds Pi in node_modules
26
+ // alongside our dist/, so bundling it just adds risk for zero
27
+ // gain. (The compiled-binary build path can't do this — see
28
+ // build-binaries.ts for the trade-off there.)
29
+ await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --define BUILD_VERSION='"${VERSION}"'`;
24
30
  console.log('✓ Built dist/index.js');
25
31
  } catch (error) {
26
32
  console.error('✗ Build failed:', error);
@@ -23,10 +23,9 @@ function header(label: string): void {
23
23
  }
24
24
 
25
25
  async function main(): Promise<void> {
26
- header('1. Where is Pi installed and what version?');
26
+ header('1. Pi SDK source');
27
27
  const resolved = await loadPiSdk();
28
28
  console.log('install path:', resolved.installPath);
29
- console.log('version :', resolved.version);
30
29
 
31
30
  header('2. What does ~/.pi/agent/auth.json look like?');
32
31
  const authPath = path.join(os.homedir(), '.pi', 'agent', 'auth.json');