lalph 0.3.106 → 0.3.107

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
@@ -240815,9 +240815,6 @@ ${options.gitFlow.reviewInstructions}
240815
240815
  # Previous instructions (only for context, do not repeat)
240816
240816
 
240817
240817
  ${options.prompt}`;
240818
- const promptReviewCustom = (options) => options.removePrdNotes ? options.prompt : `${options.prompt}
240819
-
240820
- ${prdNotes(options)}`;
240821
240818
  const promptTimeout = (options) => `Your earlier attempt to complete the task with id \`${options.taskId}\` took too
240822
240819
  long and has timed out. You can find the task details in the prd.yml file.
240823
240820
 
@@ -240958,7 +240955,6 @@ Make sure to setup dependencies between the tasks using the \`blockedBy\` field.
240958
240955
  promptClanka,
240959
240956
  promptResearch,
240960
240957
  promptReview,
240961
- promptReviewCustom,
240962
240958
  promptTimeout,
240963
240959
  promptTimeoutClanka,
240964
240960
  promptTimeoutRalph,
@@ -241915,34 +241911,20 @@ const agentReviewer = fnUntraced(function* (options) {
241915
241911
  directory: worktree.directory,
241916
241912
  model: options.preset.extraArgs.join(" "),
241917
241913
  system,
241918
- prompt: match$10(customInstructions, {
241919
- onNone: () => promptGen.promptReview({
241920
- prompt: options.instructions,
241921
- gitFlow
241922
- }),
241923
- onSome: (prompt) => promptGen.promptReviewCustom({
241924
- prompt,
241925
- specsDirectory: options.specsDirectory,
241926
- removePrdNotes: true
241927
- })
241928
- }),
241914
+ prompt: getOrElse$2(customInstructions, () => promptGen.promptReview({
241915
+ prompt: options.instructions,
241916
+ gitFlow
241917
+ })),
241929
241918
  stallTimeout: options.stallTimeout,
241930
241919
  mode
241931
241920
  });
241932
241921
  return ExitCode(0);
241933
241922
  }
241934
241923
  return yield* pipe$1(options.preset.cliAgent.command({
241935
- prompt: match$10(customInstructions, {
241936
- onNone: () => promptGen.promptReview({
241937
- prompt: options.instructions,
241938
- gitFlow
241939
- }),
241940
- onSome: (prompt) => promptGen.promptReviewCustom({
241941
- prompt,
241942
- specsDirectory: options.specsDirectory,
241943
- removePrdNotes: false
241944
- })
241945
- }),
241924
+ prompt: getOrElse$2(customInstructions, () => promptGen.promptReview({
241925
+ prompt: options.instructions,
241926
+ gitFlow
241927
+ })),
241946
241928
  prdFilePath: pathService.join(".lalph", "prd.yml"),
241947
241929
  extraArgs: options.preset.extraArgs
241948
241930
  }), setCwd(worktree.directory), options.preset.withCommandPrefix).pipe(worktree.execWithStallTimeout({
@@ -242700,7 +242682,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
242700
242682
  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));
242701
242683
  //#endregion
242702
242684
  //#region package.json
242703
- var version = "0.3.106";
242685
+ var version = "0.3.107";
242704
242686
  //#endregion
242705
242687
  //#region src/Tracing.ts
242706
242688
  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.106",
4
+ "version": "0.3.107",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -42,19 +42,12 @@ export const agentReviewer = Effect.fnUntraced(function* (options: {
42
42
  directory: worktree.directory,
43
43
  model: options.preset.extraArgs.join(" "),
44
44
  system,
45
- prompt: Option.match(customInstructions, {
46
- onNone: () =>
47
- promptGen.promptReview({
48
- prompt: options.instructions,
49
- gitFlow,
50
- }),
51
- onSome: (prompt) =>
52
- promptGen.promptReviewCustom({
53
- prompt,
54
- specsDirectory: options.specsDirectory,
55
- removePrdNotes: true,
56
- }),
57
- }),
45
+ prompt: Option.getOrElse(customInstructions, () =>
46
+ promptGen.promptReview({
47
+ prompt: options.instructions,
48
+ gitFlow,
49
+ }),
50
+ ),
58
51
  stallTimeout: options.stallTimeout,
59
52
  mode,
60
53
  })
@@ -63,19 +56,12 @@ export const agentReviewer = Effect.fnUntraced(function* (options: {
63
56
 
64
57
  const cliCommand = pipe(
65
58
  options.preset.cliAgent.command({
66
- prompt: Option.match(customInstructions, {
67
- onNone: () =>
68
- promptGen.promptReview({
69
- prompt: options.instructions,
70
- gitFlow,
71
- }),
72
- onSome: (prompt) =>
73
- promptGen.promptReviewCustom({
74
- prompt,
75
- specsDirectory: options.specsDirectory,
76
- removePrdNotes: false,
77
- }),
78
- }),
59
+ prompt: Option.getOrElse(customInstructions, () =>
60
+ promptGen.promptReview({
61
+ prompt: options.instructions,
62
+ gitFlow,
63
+ }),
64
+ ),
79
65
  prdFilePath: pathService.join(".lalph", "prd.yml"),
80
66
  extraArgs: options.preset.extraArgs,
81
67
  }),
package/src/PromptGen.ts CHANGED
@@ -315,17 +315,6 @@ ${options.gitFlow.reviewInstructions}
315
315
 
316
316
  ${options.prompt}`
317
317
 
318
- const promptReviewCustom = (options: {
319
- readonly prompt: string
320
- readonly specsDirectory: string
321
- readonly removePrdNotes: boolean
322
- }) =>
323
- options.removePrdNotes
324
- ? options.prompt
325
- : `${options.prompt}
326
-
327
- ${prdNotes(options)}`
328
-
329
318
  const promptTimeout = (options: {
330
319
  readonly taskId: string
331
320
  readonly specsDirectory: string
@@ -490,7 +479,6 @@ Make sure to setup dependencies between the tasks using the \`blockedBy\` field.
490
479
  promptClanka,
491
480
  promptResearch,
492
481
  promptReview,
493
- promptReviewCustom,
494
482
  promptTimeout,
495
483
  promptTimeoutClanka,
496
484
  promptTimeoutRalph,