lalph 0.3.124 → 0.3.126

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/cli.mjs CHANGED
@@ -241929,6 +241929,8 @@ ${options.plan}
241929
241929
  - If the user asks you to update an existing specification, find the relevant
241930
241930
  specification file in the \`${options.specsDirectory}\` directory and update it
241931
241931
  accordingly.
241932
+ - When interviewing the user, ask one question at a time about anything that
241933
+ needs clarification.
241932
241934
  2. Add a detailed implementation plan to the specification, breaking down the work into
241933
241935
  smaller, manageable tasks.
241934
241936
  3. Start two subagents to review the plan:
@@ -242226,9 +242228,12 @@ const addOrUpdateProject = fnUntraced(function* (existing, fromPlanMode = false)
242226
242228
  //#endregion
242227
242229
  //#region src/shared/git.ts
242228
242230
  const parseBranch = (ref) => {
242229
- const parts = ref.split("/");
242230
- const remote = parts.length > 1 ? parts[0] : "origin";
242231
- const branch = parts.length > 1 ? parts.slice(1).join("/") : parts[0];
242231
+ if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) return {
242232
+ remote: "origin",
242233
+ branch: ref,
242234
+ branchWithRemote: ref
242235
+ };
242236
+ const [remote, branch] = ref.split("/", 2);
242232
242237
  return {
242233
242238
  remote,
242234
242239
  branch,
@@ -243736,7 +243741,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
243736
243741
  const commandSource = make$60("source").pipe(withDescription("Select the issue source to use (e.g. GitHub Issues or Linear). This applies to all projects."), withHandler(() => selectIssueSource), provide(Settings.layer));
243737
243742
  //#endregion
243738
243743
  //#region package.json
243739
- var version = "0.3.124";
243744
+ var version = "0.3.126";
243740
243745
  //#endregion
243741
243746
  //#region src/Tracing.ts
243742
243747
  const TracingLayer = unwrap$3(gen(function* () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.124",
4
+ "version": "0.3.126",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/PromptGen.ts CHANGED
@@ -384,6 +384,8 @@ ${options.plan}
384
384
  - If the user asks you to update an existing specification, find the relevant
385
385
  specification file in the \`${options.specsDirectory}\` directory and update it
386
386
  accordingly.
387
+ - When interviewing the user, ask one question at a time about anything that
388
+ needs clarification.
387
389
  2. Add a detailed implementation plan to the specification, breaking down the work into
388
390
  smaller, manageable tasks.
389
391
  3. Start two subagents to review the plan:
package/src/shared/git.ts CHANGED
@@ -5,9 +5,10 @@ export const parseBranch = (
5
5
  readonly branch: string
6
6
  readonly branchWithRemote: string
7
7
  } => {
8
- const parts = ref.split("/")
9
- const remote = parts.length > 1 ? parts[0]! : "origin"
10
- const branch = parts.length > 1 ? parts.slice(1).join("/") : parts[0]!
8
+ if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) {
9
+ return { remote: "origin", branch: ref, branchWithRemote: ref }
10
+ }
11
+ const [remote, branch] = ref.split("/", 2) as [string, string]
11
12
  const branchWithRemote = `${remote}/${branch}`
12
13
  return { remote, branch, branchWithRemote } as const
13
14
  }