lalph 0.3.1 → 0.3.2

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
@@ -67404,10 +67404,10 @@ const opencode = new CliAgent({
67404
67404
  name: "opencode",
67405
67405
  command: ({ prompt, prdFilePath, extraArgs }) => make$23("opencode", [
67406
67406
  "run",
67407
+ prompt,
67407
67408
  ...extraArgs,
67408
67409
  "-f",
67409
- prdFilePath,
67410
- prompt
67410
+ prdFilePath
67411
67411
  ], {
67412
67412
  extendEnv: true,
67413
67413
  env: { OPENCODE_PERMISSION: "{\"*\":\"allow\", \"question\":\"deny\"}" },
@@ -144381,7 +144381,7 @@ const LinearIssueSource = effect$1(IssueSource, gen(function* () {
144381
144381
  console.log(` Label filter: ${resolveLabel(label)}`);
144382
144382
  console.log(` Auto-merge label: ${resolveAutoMergeLabel(autoMergeLabel)}`);
144383
144383
  }, mapError$2((cause) => new IssueSourceError({ cause }))),
144384
- issueCliAgentPreset: (_issue) => sync(() => fromUndefinedOr(presetMap.get(_issue.id))),
144384
+ issueCliAgentPreset: (issue) => sync(() => fromUndefinedOr(presetMap.get(issue.id))),
144385
144385
  updateCliAgentPreset: fnUntraced(function* (preset) {
144386
144386
  const labels = yield* runCollect(linear.labels).pipe(mapError$2((cause) => new IssueSourceError({ cause })));
144387
144387
  const labelId = yield* autoComplete({
@@ -151942,7 +151942,7 @@ const agentWorker = fnUntraced(function* (options) {
151942
151942
  return yield* pipe(options.preset.cliAgent.command({
151943
151943
  prompt: options.prompt,
151944
151944
  prdFilePath: pathService.join(".lalph", "prd.yml"),
151945
- extraArgs: []
151945
+ extraArgs: options.preset.extraArgs
151946
151946
  }), setCwd(worktree.directory), options.preset.withCommandPrefix).pipe(worktree.execWithStallTimeout({
151947
151947
  cliAgent: options.preset.cliAgent,
151948
151948
  stallTimeout: options.stallTimeout
@@ -152510,7 +152510,7 @@ const commandSource = make$35("source").pipe(withDescription("Select the issue s
152510
152510
 
152511
152511
  //#endregion
152512
152512
  //#region package.json
152513
- var version = "0.3.1";
152513
+ var version = "0.3.2";
152514
152514
 
152515
152515
  //#endregion
152516
152516
  //#region src/commands/projects/ls.ts
@@ -152551,7 +152551,7 @@ const commandProjectsRm = make$35("rm").pipe(withDescription("Remove a project")
152551
152551
  const newProjects = projects.filter((p) => p.id !== project.id);
152552
152552
  yield* Settings.set(allProjects, some$2(newProjects));
152553
152553
  const kvsPath = pathService.join(".lalph", "projects", encodeURIComponent(project.id));
152554
- if (yield* fs.exists(kvsPath)) yield* fs.remove(kvsPath);
152554
+ if (yield* fs.exists(kvsPath)) yield* fs.remove(kvsPath, { recursive: true });
152555
152555
  })), provide(Settings.layer), provide(CurrentIssueSource.layer));
152556
152556
 
152557
152557
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -15,7 +15,7 @@ export const agentWorker = Effect.fnUntraced(function* (options: {
15
15
  options.preset.cliAgent.command({
16
16
  prompt: options.prompt,
17
17
  prdFilePath: pathService.join(".lalph", "prd.yml"),
18
- extraArgs: [],
18
+ extraArgs: options.preset.extraArgs,
19
19
  }),
20
20
  ChildProcess.setCwd(worktree.directory),
21
21
  options.preset.withCommandPrefix,
package/src/Linear.ts CHANGED
@@ -489,8 +489,8 @@ export const LinearIssueSource = Layer.effect(
489
489
  },
490
490
  Effect.mapError((cause) => new IssueSourceError({ cause })),
491
491
  ),
492
- issueCliAgentPreset: (_issue) =>
493
- Effect.sync(() => Option.fromUndefinedOr(presetMap.get(_issue.id!))),
492
+ issueCliAgentPreset: (issue) =>
493
+ Effect.sync(() => Option.fromUndefinedOr(presetMap.get(issue.id!))),
494
494
  updateCliAgentPreset: Effect.fnUntraced(function* (preset) {
495
495
  const labels = yield* Stream.runCollect(linear.labels).pipe(
496
496
  Effect.mapError((cause) => new IssueSourceError({ cause })),
@@ -23,7 +23,7 @@ export const commandProjectsRm = Command.make("rm").pipe(
23
23
  encodeURIComponent(project.id),
24
24
  )
25
25
  if (yield* fs.exists(kvsPath)) {
26
- yield* fs.remove(kvsPath)
26
+ yield* fs.remove(kvsPath, { recursive: true })
27
27
  }
28
28
  }),
29
29
  ),
@@ -34,7 +34,7 @@ const opencode = new CliAgent({
34
34
  command: ({ prompt, prdFilePath, extraArgs }) =>
35
35
  ChildProcess.make(
36
36
  "opencode",
37
- ["run", ...extraArgs, "-f", prdFilePath, prompt],
37
+ ["run", prompt, ...extraArgs, "-f", prdFilePath],
38
38
  {
39
39
  extendEnv: true,
40
40
  env: {