@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.
- package/dist/extensions/native.mjs +9 -1
- package/dist/extensions/native.mjs.map +1 -1
- package/dist/extensions/server.cjs +11 -3
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.mjs +11 -3
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +22 -5
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{worktreeOperations-CD7s0YnO.cjs → worktreeOperations-0Jrjcbg7.cjs} +2 -1
- package/dist/worktreeOperations-0Jrjcbg7.cjs.map +1 -0
- package/dist/{worktreeOperations-B3E4JY4H.mjs → worktreeOperations-DA_dbDv8.mjs} +2 -1
- package/dist/worktreeOperations-DA_dbDv8.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/worktreeOperations-B3E4JY4H.mjs.map +0 -1
- package/dist/worktreeOperations-CD7s0YnO.cjs.map +0 -1
|
@@ -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
|
|
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,
|