@walkeros/cli 0.6.2 → 0.8.0

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/README.md CHANGED
@@ -14,6 +14,21 @@ The walkerOS CLI is a developer tool that:
14
14
  Think of it as your development toolchain for walkerOS - from config to running
15
15
  production bundles.
16
16
 
17
+ ### When to Use the CLI
18
+
19
+ The CLI is for **Bundled mode** — when you want config-as-code and separate
20
+ deployment:
21
+
22
+ | Use CLI When | Use Integrated Mode When |
23
+ | --------------------------- | ------------------------ |
24
+ | Static sites, landing pages | React/Next.js apps |
25
+ | Docker/server deployments | TypeScript projects |
26
+ | CI/CD versioned configs | Programmatic control |
27
+ | Marketing/GTM workflows | Build-time type safety |
28
+
29
+ For Integrated mode (importing directly into your app), see the
30
+ [Collector package](../collector/).
31
+
17
32
  ## Installation
18
33
 
19
34
  ```bash
@@ -533,14 +548,14 @@ docker run -v ./dist:/flow -p 8080:8080 walkeros/flow
533
548
 
534
549
  ```dockerfile
535
550
  FROM walkeros/flow
536
- COPY dist/bundle.mjs /flow/
551
+ COPY dist/bundle.mjs /app/flow/
537
552
  ```
538
553
 
539
554
  **Environment variables:**
540
555
 
541
556
  - `MODE` - `collect` or `serve` (default: `collect`)
542
557
  - `PORT` - Server port (default: `8080`)
543
- - `FILE` - Bundle path (default: `/flow/bundle.mjs`)
558
+ - `BUNDLE` - Bundle path (default: `/app/flow/bundle.mjs`)
544
559
 
545
560
  ### Using Node.js
546
561
 
@@ -568,8 +583,11 @@ See [src/types.ts](./src/types.ts) for TypeScript interfaces.
568
583
 
569
584
  ## Related
570
585
 
571
- - [Website Documentation](https://www.walkeros.io/docs/cli/)
586
+ - [Website Documentation](https://www.walkeros.io/docs/apps/cli/)
572
587
  - [Flow Configuration](https://www.walkeros.io/docs/getting-started/flow/)
588
+ - [Collector Package](../collector/) - For Integrated mode (direct imports)
589
+ - [Operating Modes](https://www.walkeros.io/docs/getting-started/modes/) -
590
+ Choosing between Integrated and Bundled
573
591
 
574
592
  ## License
575
593
 
package/dist/index.js CHANGED
@@ -1481,7 +1481,7 @@ FROM walkeros/flow:latest
1481
1481
  COPY ${bundleFilename} /app/flow/bundle.mjs
1482
1482
 
1483
1483
  ENV MODE=collect
1484
- ENV FLOW=/app/flow/bundle.mjs
1484
+ ENV BUNDLE=/app/flow/bundle.mjs
1485
1485
 
1486
1486
  EXPOSE 8080
1487
1487
  `;
@@ -2465,7 +2465,9 @@ import { resolve as resolve2 } from "path";
2465
2465
  async function runServeMode(config, logger2) {
2466
2466
  const port = process.env.PORT ? parseInt(process.env.PORT, 10) : config?.port || 8080;
2467
2467
  const host = process.env.HOST || config?.host || "0.0.0.0";
2468
- const file = resolve2(process.env.FILE || config?.file || "./dist/walker.js");
2468
+ const file = resolve2(
2469
+ process.env.BUNDLE || config?.file || "./dist/walker.js"
2470
+ );
2469
2471
  const serveName = process.env.SERVE_NAME || config?.serveName || "walker.js";
2470
2472
  const servePath = process.env.SERVE_PATH || config?.servePath || "";
2471
2473
  const urlPath = servePath ? `/${servePath}/${serveName}` : `/${serveName}`;
@@ -2707,7 +2709,7 @@ program.name("walkeros").description("walkerOS CLI - Bundle and deploy walkerOS
2707
2709
  program.hook("preAction", (thisCommand, actionCommand) => {
2708
2710
  const options = actionCommand.opts();
2709
2711
  if (!options.silent && !options.json) {
2710
- console.log(chalk2.hex("#01b5e2")(`walkerOS v${VERSION}`));
2712
+ console.log(`${chalk2.hex("#01b5e2")("walkerOS")} v${VERSION}`);
2711
2713
  }
2712
2714
  });
2713
2715
  program.command("bundle [file]").description("Bundle NPM packages with custom code").option("-f, --flow <name>", "flow to build (for multi-flow configs)").option("--all", "build all flows (for multi-flow configs)").option("-s, --stats", "show bundle statistics").option("--json", "output statistics in JSON format (implies --stats)").option("--no-cache", "disable package caching and download fresh packages").option("-v, --verbose", "verbose output").option("--dry-run", "preview command without executing").option("--silent", "suppress output").option("--dockerfile", "generate Dockerfile alongside bundle").action(async (file, options) => {