automata-cli 0.8.0-develop.346 → 0.8.0-develop.358

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
@@ -74,12 +74,12 @@ Checks that the PR exists and is merged, the working tree is clean, and the remo
74
74
  Execute the full GitFlow release sequence and push to `origin`. Only requires `git`.
75
75
 
76
76
  ```bash
77
- automata git publish-release # auto-detect version from master tag
77
+ automata git publish-release # auto-detect version from the trunk tag
78
78
  automata git publish-release 2.0.0 # explicit version
79
79
  automata git publish-release --dry-run # preview without executing
80
80
  ```
81
81
 
82
- When no version is given, the latest semver tag on `master` is detected and the minor segment is incremented (e.g. `1.2.0 → 1.3.0`).
82
+ When no version is given, the trunk branch is resolved from `origin` (`main`, `master` or whatever the remote calls it), tags are fetched, and the latest semver tag on `origin/<trunk>` is detected and the minor segment incremented (e.g. `1.2.0 → 1.3.0`). See [docs/git.md](docs/git.md#automata-git-publish-release).
83
83
 
84
84
  ---
85
85
 
@@ -36,7 +36,7 @@ var EXECUTOR_OPTIONS = [
36
36
  { label: "Claude Code", value: "claude" },
37
37
  { label: "Codex", value: "codex" }
38
38
  ];
39
- var MAIN_MENU_OPTIONS = ["Remote / Mode", "Implement-Next", "Prompts", "Issue Watch", "Do Work"];
39
+ var MAIN_MENU_OPTIONS = ["Remote / Mode", "Implement-Next", "Prompts", "Issue Watch", "Do Work", "Git"];
40
40
  var PROMPTS_MENU_OPTIONS = [
41
41
  "Sonar",
42
42
  "Fix-Comments",
@@ -173,6 +173,7 @@ function ConfigWizard() {
173
173
  const [doWorkPrOrphanPrompt, setDoWorkPrOrphanPrompt] = useState(
174
174
  existing.doWork?.prompts?.prOrphan ?? DEFAULT_DO_WORK_PR_ORPHAN_PROMPT
175
175
  );
176
+ const [gitTrunkBranch, setGitTrunkBranch] = useState(existing.git?.trunkBranch ?? "");
176
177
  const [pendingRemote, setPendingRemote] = useState(existing.remoteType ?? "gh");
177
178
  const [pendingTechnique, setPendingTechnique] = useState(
178
179
  existing.issueDiscoveryTechnique ?? "label"
@@ -379,6 +380,16 @@ function ConfigWizard() {
379
380
  setScreen("prompts-menu");
380
381
  },
381
382
  onBack: () => setScreen("prompts-menu")
383
+ },
384
+ "git-trunk-branch": {
385
+ setValue: setGitTrunkBranch,
386
+ onSubmit: () => {
387
+ const branch = gitTrunkBranch.trim();
388
+ const current = readRawConfig();
389
+ writeConfig({ ...current, git: { ...current.git, trunkBranch: branch || void 0 } });
390
+ exit();
391
+ },
392
+ onBack: () => setScreen("main")
382
393
  }
383
394
  };
384
395
  const menus = {
@@ -392,6 +403,7 @@ function ConfigWizard() {
392
403
  else if (chosen === "Implement-Next") setScreen("technique");
393
404
  else if (chosen === "Issue Watch") setScreen("allowed-users");
394
405
  else if (chosen === "Do Work") setScreen("do-work-base-branch");
406
+ else if (chosen === "Git") setScreen("git-trunk-branch");
395
407
  else setScreen("prompts-menu");
396
408
  }
397
409
  },
@@ -550,6 +562,12 @@ function ConfigWizard() {
550
562
  label: "Instructions for a pull request with no linked issue:",
551
563
  value: doWorkPrOrphanPrompt,
552
564
  hint: `Type prompt \xB7 Enter to save \xB7 ${BACK}`
565
+ },
566
+ "git-trunk-branch": {
567
+ title: "Git \u2014 Trunk Branch",
568
+ label: "Branch publish-release releases to (blank = detect it from the remote):",
569
+ value: gitTrunkBranch,
570
+ hint: `Type branch \xB7 Enter to save \xB7 ${BACK}`
553
571
  }
554
572
  };
555
573
  const menuViews = {