clanka 0.8.4 → 0.8.5

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.
Files changed (30) hide show
  1. package/dist/AgentSkills.test.js +1 -0
  2. package/dist/AgentSkills.test.js.map +1 -1
  3. package/dist/AgentTools.d.ts.map +1 -1
  4. package/dist/AgentTools.js +2 -1
  5. package/dist/AgentTools.js.map +1 -1
  6. package/dist/Compaction.test.js +1 -0
  7. package/dist/Compaction.test.js.map +1 -1
  8. package/dist/bin/{Effect-BmOuzEIp.mjs → Effect-BEUn4I5E.mjs} +145 -122
  9. package/dist/bin/Effect-BEUn4I5E.mjs.map +1 -0
  10. package/dist/bin/{McpClient-CLpFJSre.mjs → McpClient-C0FVuDj2.mjs} +218 -62
  11. package/dist/bin/McpClient-C0FVuDj2.mjs.map +1 -0
  12. package/dist/bin/{OutputFormatter-C_gdNUl1.mjs → OutputFormatter-DffD5oxX.mjs} +8 -8
  13. package/dist/bin/OutputFormatter-DffD5oxX.mjs.map +1 -0
  14. package/dist/bin/{Schema-C7W9nQug.mjs → Schema-CjUGw2Xh.mjs} +39 -38
  15. package/dist/bin/Schema-CjUGw2Xh.mjs.map +1 -0
  16. package/dist/bin/{SemanticSearch-cqSnq90g.mjs → SemanticSearch-CFB73IPb.mjs} +74 -62
  17. package/dist/bin/SemanticSearch-CFB73IPb.mjs.map +1 -0
  18. package/dist/bin/{Stream-BI6Fx9yq.mjs → Stream-Cu6P7ZHo.mjs} +23 -23
  19. package/dist/bin/{Stream-BI6Fx9yq.mjs.map → Stream-Cu6P7ZHo.mjs.map} +1 -1
  20. package/dist/bin/cli.mjs +267 -188
  21. package/dist/bin/cli.mjs.map +1 -1
  22. package/package.json +14 -14
  23. package/src/AgentSkills.test.ts +1 -0
  24. package/src/AgentTools.ts +2 -1
  25. package/src/Compaction.test.ts +1 -0
  26. package/dist/bin/Effect-BmOuzEIp.mjs.map +0 -1
  27. package/dist/bin/McpClient-CLpFJSre.mjs.map +0 -1
  28. package/dist/bin/OutputFormatter-C_gdNUl1.mjs.map +0 -1
  29. package/dist/bin/Schema-C7W9nQug.mjs.map +0 -1
  30. package/dist/bin/SemanticSearch-cqSnq90g.mjs.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clanka",
3
3
  "type": "module",
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -25,10 +25,10 @@
25
25
  "url": "https://github.com/Effectful-Tech/clanka.git"
26
26
  },
27
27
  "dependencies": {
28
- "@modelcontextprotocol/sdk": "^1.30.0",
28
+ "@modelcontextprotocol/sdk": "^1.32.0",
29
29
  "@silvia-odwyer/photon-node": "^0.3.4",
30
30
  "@vscode/ripgrep": "^1.18.0",
31
- "chalk": "^6.0.0",
31
+ "chalk": "^6.0.1",
32
32
  "glob": "^13.0.6",
33
33
  "sqlite-vec": "0.1.9",
34
34
  "tree-sitter": "^0.21.1",
@@ -46,22 +46,22 @@
46
46
  "devDependencies": {
47
47
  "@changesets/changelog-github": "^1.0.1",
48
48
  "@changesets/cli": "^3.0.3",
49
- "@effect/ai-openai": "4.0.0",
50
- "@effect/ai-openai-compat": "4.0.0",
49
+ "@effect/ai-openai": "4.0.1",
50
+ "@effect/ai-openai-compat": "4.0.1",
51
51
  "@effect/platform-node": "4.0.0",
52
- "@effect/sql-sqlite-node": "4.0.0",
53
- "@effect/tsgo": "0.45.0",
54
- "@effect/vitest": "4.0.0",
55
- "@types/node": "^26.1.1",
52
+ "@effect/sql-sqlite-node": "4.0.1",
53
+ "@effect/tsgo": "0.48.0",
54
+ "@effect/vitest": "4.0.1",
55
+ "@types/node": "^26.6.4",
56
56
  "@types/turndown": "^5.0.6",
57
- "effect": "4.0.0",
57
+ "effect": "4.0.1",
58
58
  "husky": "^9.1.7",
59
- "lint-staged": "^17.5.1",
60
- "oxlint": "^1.83.0",
61
- "prettier": "^3.9.7",
59
+ "lint-staged": "^17.6.0",
60
+ "oxlint": "^1.86.0",
61
+ "prettier": "^3.9.9",
62
62
  "tsdown": "^0.23.0",
63
63
  "typescript": "^7.0.2",
64
- "vitest": "^5.0.1"
64
+ "vitest": "^5.0.3"
65
65
  },
66
66
  "lint-staged": {
67
67
  "*.{ts,tsx}": [
@@ -106,6 +106,7 @@ const withLocalExecutor = <A, E, R>(
106
106
  HERMES_HOME: process.env.HERMES_HOME,
107
107
  }
108
108
  process.env.HOME = roots.home
109
+ // @ts-expect-error
109
110
  if (hermesHome === undefined) delete process.env.HERMES_HOME
110
111
  else process.env.HERMES_HOME = hermesHome
111
112
  return previous
package/src/AgentTools.ts CHANGED
@@ -489,7 +489,7 @@ export const AgentToolHandlersNoDeps = AgentToolsWithSearch.toLayer(
489
489
  )
490
490
  }),
491
491
  bash: Effect.fn("AgentTools.bash")(function* (options) {
492
- const timeoutMs = Math.min(options.timeoutMs ?? 120_000, 240_000)
492
+ const timeoutMs = Math.min(options.timeoutMs ?? 600_000, 600_000)
493
493
  yield* Effect.logInfo(`Calling "bash"`).pipe(
494
494
  Effect.annotateLogs({
495
495
  ...options,
@@ -539,6 +539,7 @@ export const AgentToolHandlersNoDeps = AgentToolsWithSearch.toLayer(
539
539
  applyPatch: Effect.fn("AgentTools.applyPatch")(function* (patchText) {
540
540
  yield* Effect.logInfo(`Calling "applyPatch"`)
541
541
  const cwd = yield* CurrentDirectory
542
+ // oxlint-disable-next-line unicorn/consistent-function-scoping
542
543
  const fail = (path: string, reason: "delete" | "update") =>
543
544
  Effect.fail(
544
545
  new ApplyPatchError({
@@ -454,6 +454,7 @@ describe("Compaction.isContextLengthError", () => {
454
454
 
455
455
  describe("Compaction.split", () => {
456
456
  // Each execute result is ~8k chars => ~2k tokens per tool message.
457
+ // oxlint-disable-next-line unicorn/consistent-function-scoping
457
458
  const dump = (i: number) => filler(`dump${i}`, 8_000)
458
459
  const conversation = [
459
460
  user("first request"),