lalph 0.3.71 → 0.3.72

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
@@ -239591,7 +239591,7 @@ var Prd = class extends Service$1()("lalph/Prd", { make: gen(function* () {
239591
239591
  if (currentYaml === nextYaml) return;
239592
239592
  yield* fs.writeFileString(prdFile, nextYaml);
239593
239593
  }, scoped$1, withSpan$1("Prd.updateSync"), run$4(updateSyncHandle, { onlyIfMissing: true }), syncSemaphore.withPermitsIfAvailable(1));
239594
- yield* fs.watch(lalphDir).pipe(debounce(50), runForEach((_) => clear(updateSyncHandle).pipe(andThen(ignore$1(sync$3)))), retry$3(forever$1), forkScoped);
239594
+ yield* fs.watch(lalphDir).pipe(filter$3((event) => event.path.endsWith("prd.yml")), debounce(50), runForEach((_) => clear(updateSyncHandle).pipe(andThen(ignore$1(sync$3)))), retry$3(forever$1), forkScoped);
239595
239595
  yield* toStreamResult(registry, currentIssuesAtom(projectId)).pipe(runForEach(updateSync), forkScoped);
239596
239596
  const findById = fnUntraced(function* (issueId) {
239597
239597
  return (yield* getCurrentIssues).find((i) => i.id === issueId) ?? null;
@@ -239932,7 +239932,7 @@ const agentChooser = fnUntraced(function* (options) {
239932
239932
  withChoose: true
239933
239933
  }).pipe(provideService$2(ChosenTaskDeferred, deferred), flatMap$4(() => fail$6(new ChosenTaskNotFound())), raceFirst(_await(deferred)));
239934
239934
  const prdTask = yield* prd.findById(result.taskId);
239935
- if (!prdTask) throw new ChosenTaskNotFound();
239935
+ if (!prdTask) return yield* new ChosenTaskNotFound();
239936
239936
  return {
239937
239937
  id: result.taskId,
239938
239938
  githubPrNumber: result.githubPrNumber ?? null,
@@ -240567,7 +240567,7 @@ const commandEdit = make$58("edit").pipe(withDescription("Open the selected proj
240567
240567
  const commandSource = make$58("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));
240568
240568
  //#endregion
240569
240569
  //#region package.json
240570
- var version = "0.3.71";
240570
+ var version = "0.3.72";
240571
240571
  //#endregion
240572
240572
  //#region src/commands/projects/ls.ts
240573
240573
  const commandProjectsLs = make$58("ls").pipe(withDescription("List configured projects and how they run (enabled state, concurrency, branch, git flow, review agent)."), withHandler(fnUntraced(function* () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.71",
4
+ "version": "0.3.72",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -46,7 +46,7 @@ export const agentChooser = Effect.fnUntraced(function* (options: {
46
46
  Effect.raceFirst(Deferred.await(deferred)),
47
47
  )
48
48
  const prdTask = yield* prd.findById(result.taskId)
49
- if (!prdTask) throw new ChosenTaskNotFound()
49
+ if (!prdTask) return yield* new ChosenTaskNotFound()
50
50
  return {
51
51
  id: result.taskId,
52
52
  githubPrNumber: result.githubPrNumber ?? null,
package/src/Prd.ts CHANGED
@@ -231,6 +231,7 @@ export class Prd extends ServiceMap.Service<
231
231
  )
232
232
 
233
233
  yield* fs.watch(lalphDir).pipe(
234
+ Stream.filter((event) => event.path.endsWith("prd.yml")),
234
235
  Stream.debounce(50),
235
236
  Stream.runForEach((_) =>
236
237
  FiberHandle.clear(updateSyncHandle).pipe(