@boltic/auto-software 1.0.0 → 1.0.2

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/bin/cli.js +26 -0
  2. package/package.json +3 -2
package/bin/cli.js CHANGED
@@ -238,6 +238,31 @@ async function loadOrCreateConfig(dataDir) {
238
238
  return config;
239
239
  }
240
240
  }
241
+ async function installBundleDeps() {
242
+ if (!IS_BUNDLED) return;
243
+ const backendNodeModules = path2.join(PROJECT_ROOT, "backend", "node_modules");
244
+ try {
245
+ await access2(backendNodeModules, constants2.R_OK);
246
+ return;
247
+ } catch {
248
+ }
249
+ const spinner = ora2("Installing bundle dependencies (first run)...").start();
250
+ const dirs = ["packages/shared", "backend", "worker"];
251
+ for (const dir of dirs) {
252
+ const dirPath = path2.join(PROJECT_ROOT, dir);
253
+ try {
254
+ await execFileAsync("npm", ["install", "--omit=dev", "--ignore-scripts"], {
255
+ cwd: dirPath,
256
+ env: { ...process.env },
257
+ timeout: 12e4
258
+ });
259
+ } catch (err) {
260
+ spinner.fail(chalk2.red(`Failed to install dependencies in ${dir}`));
261
+ throw err;
262
+ }
263
+ }
264
+ spinner.succeed(chalk2.green("Bundle dependencies installed"));
265
+ }
241
266
  async function runPrismaMigrations(databaseUrl) {
242
267
  const spinner = ora2("Running database migrations...").start();
243
268
  try {
@@ -537,6 +562,7 @@ Gracefully shutting down Auto Software...`));
537
562
  process.on("SIGINT", () => shutdown("SIGINT"));
538
563
  process.on("SIGTERM", () => shutdown("SIGTERM"));
539
564
  try {
565
+ await installBundleDeps();
540
566
  if (!IS_BUNDLED) {
541
567
  await generatePrismaClient(databaseUrl);
542
568
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltic/auto-software",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Put your entire software team on autopilot — the 100x engineer you dreamt of",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -29,6 +29,7 @@
29
29
  "prepack": "npm run bundle"
30
30
  },
31
31
  "files": [
32
+ "README.md",
32
33
  "bin/cli.js",
33
34
  "bundle/**"
34
35
  ],
@@ -57,4 +58,4 @@
57
58
  "directory": "npx-cli"
58
59
  },
59
60
  "license": "MIT"
60
- }
61
+ }