zdev 0.1.2 → 0.1.4

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
@@ -3067,8 +3067,13 @@ Commands:`);
3067
3067
  }
3068
3068
 
3069
3069
  // src/index.ts
3070
+ import { readFileSync as readFileSync5 } from "fs";
3071
+ import { fileURLToPath } from "url";
3072
+ import { dirname, join as join4 } from "path";
3073
+ var __dirname2 = dirname(fileURLToPath(import.meta.url));
3074
+ var pkg = JSON.parse(readFileSync5(join4(__dirname2, "..", "package.json"), "utf-8"));
3070
3075
  var program2 = new Command;
3071
- program2.name("zdev").description("\uD83D\uDC02 zdev - Multi-agent worktree development environment").version("0.1.0");
3076
+ program2.name("zdev").description(`\uD83D\uDC02 zdev v${pkg.version} - Multi-agent worktree development environment`).version(pkg.version);
3072
3077
  program2.command("create <name>").description("Create a new TanStack Start project").option("--convex", "Add Convex backend integration").option("--flat", "Flat structure (no monorepo)").action(async (name, options) => {
3073
3078
  await create(name, {
3074
3079
  convex: options.convex,
@@ -3078,7 +3083,7 @@ program2.command("create <name>").description("Create a new TanStack Start proje
3078
3083
  program2.command("init [path]").description("Initialize zdev for a project").option("-s, --seed", "Create initial seed data from current Convex state").action(async (path, options) => {
3079
3084
  await init(path, options);
3080
3085
  });
3081
- program2.command("start <feature>").description("Start working on a feature (creates worktree, starts servers)").option("-p, --project <path>", "Project path (default: current directory)", ".").option("--port <number>", "Frontend port (auto-allocated if not specified)", parseInt).option("--local", "Local only - skip public URL setup via Traefik").option("-s, --seed", "Import seed data into the new worktree").option("-b, --base-branch <branch>", "Base branch to create from", "origin/main").option("-w, --web-dir <dir>", "Subdirectory containing package.json (auto-detected if not specified)").action(async (feature, options) => {
3086
+ program2.command("start <feature>").description("Start working on a feature (creates worktree, starts servers)").option("-p, --project <path>", "Project path (default: current directory)", ".").option("--port <number>", "Frontend port (auto-allocated if not specified)", parseInt).option("--local", "Local only - skip public URL setup via Traefik").option("-s, --seed", "Import seed data into the new worktree").option("-b, --base-branch <branch>", "Base branch to create from (auto-detected if not specified)").option("-w, --web-dir <dir>", "Subdirectory containing package.json (auto-detected if not specified)").action(async (feature, options) => {
3082
3087
  await start(feature, options.project, {
3083
3088
  port: options.port,
3084
3089
  local: options.local,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zdev",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Multi-agent worktree development environment for cloud dev with preview URLs",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -8,13 +8,19 @@ import { list } from "./commands/list.js";
8
8
  import { clean } from "./commands/clean.js";
9
9
  import { seedExport, seedImport } from "./commands/seed.js";
10
10
  import { configCmd } from "./commands/config.js";
11
+ import { readFileSync } from "fs";
12
+ import { fileURLToPath } from "url";
13
+ import { dirname, join } from "path";
14
+
15
+ const __dirname = dirname(fileURLToPath(import.meta.url));
16
+ const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
11
17
 
12
18
  const program = new Command();
13
19
 
14
20
  program
15
21
  .name("zdev")
16
- .description("🐂 zdev - Multi-agent worktree development environment")
17
- .version("0.1.0");
22
+ .description(`🐂 zdev v${pkg.version} - Multi-agent worktree development environment`)
23
+ .version(pkg.version);
18
24
 
19
25
  // zdev create
20
26
  program
@@ -46,7 +52,7 @@ program
46
52
  .option("--port <number>", "Frontend port (auto-allocated if not specified)", parseInt)
47
53
  .option("--local", "Local only - skip public URL setup via Traefik")
48
54
  .option("-s, --seed", "Import seed data into the new worktree")
49
- .option("-b, --base-branch <branch>", "Base branch to create from", "origin/main")
55
+ .option("-b, --base-branch <branch>", "Base branch to create from (auto-detected if not specified)")
50
56
  .option("-w, --web-dir <dir>", "Subdirectory containing package.json (auto-detected if not specified)")
51
57
  .action(async (feature, options) => {
52
58
  await start(feature, options.project, {