@agimon-ai/po-git 0.0.0-alpha.92 → 0.0.0-alpha.94

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.
@@ -104,10 +104,18 @@ function formProblem(state) {
104
104
  }
105
105
  if (state.mode === "new" && state.newBranch.trim() === "") return "Name the new branch.";
106
106
  }
107
+ /** The launch profile choice for any session kind, or undefined when none was made. */
108
+ function launchSelection(state) {
109
+ return state.profile === void 0 ? void 0 : { profile: state.profile };
110
+ }
107
111
  /** The worktree create request for the form, or undefined in plain mode. */
108
112
  function createRequest(state) {
109
113
  const name = state.name.trim();
110
- const named = name === "" ? {} : { name };
114
+ const chosen = launchSelection(state);
115
+ const named = {
116
+ ...name === "" ? {} : { name },
117
+ ...chosen === void 0 ? {} : { selection: chosen }
118
+ };
111
119
  if (state.mode === "existing" && state.selected !== void 0) return {
112
120
  mode: "existing-branch",
113
121
  branch: state.selected.name,