lalph 0.3.126 → 0.3.128

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
@@ -240973,7 +240973,7 @@ var ReviewComment = class extends Class$2("ReviewComment")({
240973
240973
  author: Author,
240974
240974
  body: String$1,
240975
240975
  path: String$1,
240976
- originalLine: Number$1,
240976
+ originalLine: NullOr(Number$1),
240977
240977
  diffHunk: String$1,
240978
240978
  createdAt: String$1
240979
240979
  }) {};
@@ -242231,7 +242231,7 @@ const parseBranch = (ref) => {
242231
242231
  if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) return {
242232
242232
  remote: "origin",
242233
242233
  branch: ref,
242234
- branchWithRemote: ref
242234
+ branchWithRemote: `origin/${ref}`
242235
242235
  };
242236
242236
  const [remote, branch] = ref.split("/", 2);
242237
242237
  return {
@@ -242322,6 +242322,7 @@ const setupWorktree = fnUntraced(function* (options) {
242322
242322
  const worktreeSetupPath = pathService.join(options.directory, "scripts", "worktree-setup.sh");
242323
242323
  yield* seedSetupScript(cwdSetupPath);
242324
242324
  const setupPath = (yield* fs.exists(worktreeSetupPath)) ? worktreeSetupPath : cwdSetupPath;
242325
+ yield* fs.chmod(setupPath, 493);
242325
242326
  yield* make$45({
242326
242327
  cwd: options.directory,
242327
242328
  shell: process.env.SHELL ?? true,
@@ -243741,7 +243742,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
243741
243742
  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));
243742
243743
  //#endregion
243743
243744
  //#region package.json
243744
- var version = "0.3.126";
243745
+ var version = "0.3.128";
243745
243746
  //#endregion
243746
243747
  //#region src/Tracing.ts
243747
243748
  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.126",
4
+ "version": "0.3.128",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/Worktree.ts CHANGED
@@ -163,6 +163,8 @@ const setupWorktree = Effect.fnUntraced(function* (options: {
163
163
  ? worktreeSetupPath
164
164
  : cwdSetupPath
165
165
 
166
+ yield* fs.chmod(setupPath, 0o755)
167
+
166
168
  yield* ChildProcess.make({
167
169
  cwd: options.directory,
168
170
  shell: process.env.SHELL ?? true,
@@ -73,7 +73,7 @@ export class ReviewComment extends S.Class<ReviewComment>("ReviewComment")({
73
73
  author: Author,
74
74
  body: S.String,
75
75
  path: S.String,
76
- originalLine: S.Number,
76
+ originalLine: S.NullOr(S.Number),
77
77
  diffHunk: S.String,
78
78
  createdAt: S.String,
79
79
  }) {}
package/src/shared/git.ts CHANGED
@@ -6,7 +6,7 @@ export const parseBranch = (
6
6
  readonly branchWithRemote: string
7
7
  } => {
8
8
  if (!ref.startsWith("origin/") && !ref.startsWith("upstream/")) {
9
- return { remote: "origin", branch: ref, branchWithRemote: ref }
9
+ return { remote: "origin", branch: ref, branchWithRemote: `origin/${ref}` }
10
10
  }
11
11
  const [remote, branch] = ref.split("/", 2) as [string, string]
12
12
  const branchWithRemote = `${remote}/${branch}`