lalph 0.3.94 → 0.3.96

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.94",
4
+ "version": "0.3.96",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -45,7 +45,7 @@
45
45
  "@octokit/plugin-rest-endpoint-methods": "^17.0.0",
46
46
  "@octokit/types": "^16.0.0",
47
47
  "@typescript/native-preview": "7.0.0-dev.20260320.1",
48
- "clanka": "^0.2.21",
48
+ "clanka": "^0.2.25",
49
49
  "concurrently": "^9.2.1",
50
50
  "effect": "4.0.0-beta.36",
51
51
  "husky": "^9.1.7",
package/src/Clanka.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Agent, OutputFormatter, SemanticSearch } from "clanka"
1
+ import * as Agent from "clanka/Agent"
2
+ import * as OutputFormatter from "clanka/OutputFormatter"
2
3
  import {
3
4
  Cause,
4
5
  Config,
@@ -37,6 +38,9 @@ export const SemanticSearchLayer = Layer.unwrap(
37
38
  if (Option.isNone(apiKey)) {
38
39
  return Layer.empty
39
40
  }
41
+ const SemanticSearch = yield* Effect.promise(
42
+ () => import("clanka/SemanticSearch"),
43
+ )
40
44
  return SemanticSearch.layer({
41
45
  directory: worktree.directory,
42
46
  database: pathService.join(
@@ -106,7 +106,12 @@ export class TokenManager extends ServiceMap.Service<TokenManager>()(
106
106
  disableListenLog: true,
107
107
  disableLogger: true,
108
108
  }).pipe(
109
- Layer.provide(NodeHttpServer.layer(createServer, { port: 34338 })),
109
+ Layer.provide(
110
+ NodeHttpServer.layer(createServer, {
111
+ port: 34338,
112
+ disablePreemptiveShutdown: true,
113
+ }),
114
+ ),
110
115
  Layer.build,
111
116
  Effect.orDie,
112
117
  )
@@ -661,9 +661,9 @@ const runProject = Effect.fnUntraced(
661
661
  Effect.catchTags({
662
662
  ChosenTaskNotFound(_error) {
663
663
  if (executionMode._tag !== "ralph") {
664
- ralphDone = true
665
664
  return Effect.void
666
665
  }
666
+ ralphDone = true
667
667
  return Effect.log(
668
668
  `No more work to process for Ralph, ending after ${currentIteration + 1} iteration(s).`,
669
669
  )