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 +6 -6
- package/package.json +1 -1
- package/src/Agents/worker.ts +1 -1
- package/src/Linear.ts +2 -2
- package/src/commands/projects/rm.ts +1 -1
- package/src/domain/CliAgent.ts +1 -1
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: (
|
|
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.
|
|
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
package/src/Agents/worker.ts
CHANGED
|
@@ -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: (
|
|
493
|
-
Effect.sync(() => Option.fromUndefinedOr(presetMap.get(
|
|
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 })),
|
package/src/domain/CliAgent.ts
CHANGED
|
@@ -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
|
|
37
|
+
["run", prompt, ...extraArgs, "-f", prdFilePath],
|
|
38
38
|
{
|
|
39
39
|
extendEnv: true,
|
|
40
40
|
env: {
|