bonzai-tools 1.0.99 → 1.0.101

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/index.js CHANGED
@@ -89,6 +89,12 @@ async function main() {
89
89
  const utilsSrc = path.join(TEMPLATE_DIR, "utils");
90
90
  const utilsDest = path.join(bonzaiDir, "utils");
91
91
  copyDirectory(utilsSrc, utilsDest);
92
+ const buildSrc = path.join(TEMPLATE_DIR, "build");
93
+ if (fs.existsSync(buildSrc)) {
94
+ console.log("Copying frontend build...");
95
+ const buildDest = path.join(bonzaiDir, "build");
96
+ copyDirectory(buildSrc, buildDest);
97
+ }
92
98
  const ignoreTargetPath = path.join(bonzaiDir, ".ignore");
93
99
  if (!fs.existsSync(ignoreTargetPath)) {
94
100
  console.log("Writing .ignore file...");
@@ -152,7 +158,7 @@ async function main() {
152
158
  console.log("All code stays on your machine\n");
153
159
  console.log("Relay server running on localhost:3001");
154
160
  console.log("Terminal WebSocket available at ws://localhost:3001/terminal");
155
- console.log("Diagram available at https://bonzai.dev/visualize\n");
161
+ console.log("App available at http://localhost:3001\n");
156
162
  const server = spawn("node", ["receiver.js"], {
157
163
  stdio: "inherit",
158
164
  cwd: bonzaiDir,
@@ -161,7 +167,7 @@ async function main() {
161
167
  BONZAI_REPO_DIR: currentDir
162
168
  }
163
169
  });
164
- exec("open https://bonzai.dev/visualize?ref=btools");
170
+ exec("open http://localhost:3001");
165
171
  server.on("close", (serverCode) => {
166
172
  console.log(`
167
173
  Server stopped with code ${serverCode}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-tools",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "description": "Visualization and file management tools for codebases",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",