clanka 0.24.4 → 0.24.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.
- package/dist/Agent.js +1 -1
- package/dist/Agent.js.map +1 -1
- package/dist/AgentTools.d.ts +88 -88
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/bin/{AiError-fiHIiGOy.mjs → AiError-CsvdOsKR.mjs} +67 -43
- package/dist/bin/Latch-B3e9629m.mjs +5 -0
- package/dist/bin/{McpClient-CXwyRd_3.mjs → McpClient-BCxZZgnA.mjs} +1 -1
- package/dist/bin/{OutputFormatter-B8yF7iiq.mjs → OutputFormatter-ByMjyBhe.mjs} +2 -2
- package/dist/bin/{Schema-D629S5yu.mjs → Schema-BfUmMefy.mjs} +224 -163
- package/dist/bin/{SemanticSearch-BlcfFvPr.mjs → SemanticSearch-DMzIsoZb.mjs} +68 -55
- package/dist/bin/cli.mjs +466 -353
- package/dist/bin/{helpers-CljL9OKa.mjs → helpers-Bb68A2Sv.mjs} +2 -2
- package/dist/bin/{index.min-ClUfQ5ji.mjs → index.min-CuA3AuA-.mjs} +1448 -1348
- package/dist/bin/{rolldown-runtime-5zChB7MF.mjs → rolldown-runtime-CXhmmSW5.mjs} +4 -4
- package/dist/bin/{server-HlLriZxF.mjs → server-D4nrvZHH.mjs} +2 -2
- package/dist/bin/{turndown.cjs-C2WBxeA-.mjs → turndown.cjs-CwE2EFNQ.mjs} +15 -10
- package/dist/bin/{types-LcwjLVkt.mjs → types-N9Z-HYP0.mjs} +1 -1
- package/dist/bin/{upgrade-E_f-q2h8.mjs → upgrade-t590zYhO.mjs} +4 -4
- package/package.json +15 -15
- package/src/Agent.ts +1 -1
- package/dist/bin/Latch-D1909CI6.mjs +0 -5
|
@@ -7,18 +7,18 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
|
-
var __exportAll = (all,
|
|
11
|
-
let target = {};
|
|
10
|
+
var __exportAll = (all, flags) => {
|
|
11
|
+
let target = Object.setPrototypeOf({}, null);
|
|
12
12
|
for (var name in all) {
|
|
13
13
|
__defProp(target, name, {
|
|
14
14
|
get: all[name],
|
|
15
15
|
enumerable: true
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
if (!
|
|
18
|
+
if (!(flags & 1)) {
|
|
19
19
|
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
20
20
|
}
|
|
21
|
-
return target;
|
|
21
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
22
22
|
};
|
|
23
23
|
var __copyProps = (to, from, except, desc) => {
|
|
24
24
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as mergeCapabilities, c as safeParse, i as Protocol, n as assertToolsCallTaskCapability, o as getLiteralValue, r as AjvJsonSchemaValidator, s as getObjectShape, t as assertClientRequestTaskCapability } from "./helpers-
|
|
2
|
-
import { B as SUPPORTED_PROTOCOL_VERSIONS, C as LATEST_PROTOCOL_VERSION, M as LoggingLevelSchema, N as McpError, O as ListRootsResultSchema, V as SetLevelRequestSchema, c as CreateMessageResultSchema, f as ElicitResultSchema, l as CreateMessageResultWithToolsSchema, m as ErrorCode, n as CallToolResultSchema, p as EmptyResultSchema, t as CallToolRequestSchema, u as CreateTaskResultSchema, x as InitializedNotificationSchema, y as InitializeRequestSchema } from "./types-
|
|
1
|
+
import { a as mergeCapabilities, c as safeParse, i as Protocol, n as assertToolsCallTaskCapability, o as getLiteralValue, r as AjvJsonSchemaValidator, s as getObjectShape, t as assertClientRequestTaskCapability } from "./helpers-Bb68A2Sv.mjs";
|
|
2
|
+
import { B as SUPPORTED_PROTOCOL_VERSIONS, C as LATEST_PROTOCOL_VERSION, M as LoggingLevelSchema, N as McpError, O as ListRootsResultSchema, V as SetLevelRequestSchema, c as CreateMessageResultSchema, f as ElicitResultSchema, l as CreateMessageResultWithToolsSchema, m as ErrorCode, n as CallToolResultSchema, p as EmptyResultSchema, t as CallToolRequestSchema, u as CreateTaskResultSchema, x as InitializedNotificationSchema, y as InitializeRequestSchema } from "./types-N9Z-HYP0.mjs";
|
|
3
3
|
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
4
4
|
var ExperimentalServerTasks = class {
|
|
5
5
|
constructor(_server) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { t as __commonJSMin } from "./rolldown-runtime-CXhmmSW5.mjs";
|
|
2
2
|
// node_modules/.pnpm/@mixmark-io+domino@2.2.0/node_modules/@mixmark-io/domino/lib/Event.js
|
|
3
3
|
var require_Event = __commonJSMin(((exports, module) => {
|
|
4
4
|
module.exports = Event;
|
|
@@ -14506,7 +14506,7 @@ var require_lib = __commonJSMin(((exports) => {
|
|
|
14506
14506
|
};
|
|
14507
14507
|
exports.impl = impl;
|
|
14508
14508
|
}));
|
|
14509
|
-
// node_modules/.pnpm/turndown@7.2.
|
|
14509
|
+
// node_modules/.pnpm/turndown@7.2.5/node_modules/turndown/lib/turndown.cjs.js
|
|
14510
14510
|
var require_turndown_cjs = __commonJSMin(((exports, module) => {
|
|
14511
14511
|
function extend(destination) {
|
|
14512
14512
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -15107,28 +15107,33 @@ var require_turndown_cjs = __commonJSMin(((exports, module) => {
|
|
|
15107
15107
|
var replacement = "";
|
|
15108
15108
|
if (node.nodeType === 3) replacement = node.isCode ? node.nodeValue : self.escape(node.nodeValue);
|
|
15109
15109
|
else if (node.nodeType === 1) replacement = replacementForNode.call(self, node);
|
|
15110
|
-
|
|
15111
|
-
|
|
15110
|
+
join(output, replacement);
|
|
15111
|
+
return output;
|
|
15112
|
+
}, []);
|
|
15112
15113
|
}
|
|
15113
15114
|
function postProcess(output) {
|
|
15114
15115
|
var self = this;
|
|
15115
15116
|
this.rules.forEach(function(rule) {
|
|
15116
|
-
if (typeof rule.append === "function")
|
|
15117
|
+
if (typeof rule.append === "function") join(output, rule.append(self.options));
|
|
15117
15118
|
});
|
|
15118
|
-
return output.replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, "");
|
|
15119
|
+
return output.join("").replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, "");
|
|
15119
15120
|
}
|
|
15120
15121
|
function replacementForNode(node) {
|
|
15121
15122
|
var rule = this.rules.forNode(node);
|
|
15122
|
-
var content = process.call(this, node);
|
|
15123
|
+
var content = process.call(this, node).join("");
|
|
15123
15124
|
var whitespace = node.flankingWhitespace;
|
|
15124
15125
|
if (whitespace.leading || whitespace.trailing) content = content.trim();
|
|
15125
15126
|
return whitespace.leading + rule.replacement(content, node, this.options) + whitespace.trailing;
|
|
15126
15127
|
}
|
|
15127
15128
|
function join(output, replacement) {
|
|
15128
|
-
var
|
|
15129
|
+
var tail = output.pop() || "";
|
|
15130
|
+
var s1 = trimTrailingNewlines(tail);
|
|
15129
15131
|
var s2 = trimLeadingNewlines(replacement);
|
|
15130
|
-
var nls = Math.max(
|
|
15131
|
-
|
|
15132
|
+
var nls = Math.max(tail.length - s1.length, replacement.length - s2.length);
|
|
15133
|
+
var separator = "\n\n".substring(0, nls);
|
|
15134
|
+
if (s1) output.push(s1);
|
|
15135
|
+
if (separator) output.push(separator);
|
|
15136
|
+
if (s2) output.push(s2);
|
|
15132
15137
|
}
|
|
15133
15138
|
function canConvert(input) {
|
|
15134
15139
|
return input != null && (typeof input === "string" || input.nodeType && (input.nodeType === 1 || input.nodeType === 9 || input.nodeType === 11));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ba as scope, Bd as identity, Fi as fail, Ka as succeed, Qi as gen, Us as addFinalizer, Xa as sync, Xs as provide, Ya as suspend, _l as ensure, co as updateContext, di as as, do as void_, gi as callback, ii as acquireRelease, jl as map, mo as withFiber, ni as value, no as timeoutOrElse, xu as merge } from "./Schema-BfUmMefy.mjs";
|
|
2
2
|
import { C as make, S as isCloseEvent, _ as SocketError, b as SocketUpgradeError, g as SocketCloseError, v as SocketOpenError, x as SocketWriteError, y as SocketReadError } from "./cli.mjs";
|
|
3
|
-
import { n as makeUnsafe } from "./Latch-
|
|
3
|
+
import { n as makeUnsafe } from "./Latch-B3e9629m.mjs";
|
|
4
4
|
import { Readable, finished } from "node:stream";
|
|
5
5
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
6
6
|
import * as Tls from "node:tls";
|
|
7
|
-
// node_modules/.pnpm/@effect+platform-node-shared@4.1.
|
|
7
|
+
// node_modules/.pnpm/@effect+platform-node-shared@4.1.3_effect@4.1.3/node_modules/@effect/platform-node-shared/dist/NodeSocket.js
|
|
8
8
|
const isDeno = "Deno" in globalThis;
|
|
9
9
|
const readAvailable = (conn, chunkSize) => {
|
|
10
10
|
const first = conn.read();
|
|
@@ -252,7 +252,7 @@ const fromDuplex = (open, options) => withFiber((fiber) => {
|
|
|
252
252
|
writer
|
|
253
253
|
}));
|
|
254
254
|
});
|
|
255
|
-
// node_modules/.pnpm/@effect+platform-node@4.1.
|
|
255
|
+
// node_modules/.pnpm/@effect+platform-node@4.1.3_effect@4.1.3_redis@6.2.1_@opentelemetry+api@1.10.0_/node_modules/@effect/platform-node/dist/internal/upgrade.js
|
|
256
256
|
const toSocket = (conn, open = void_) => fromDuplex(acquireRelease(suspend(() => conn.destroyed ? fail(openError("The upgraded connection closed before it was read")) : as(open, conn)), (conn) => sync(() => {
|
|
257
257
|
if (conn.destroyed) return;
|
|
258
258
|
if ("destroySoon" in conn) conn.destroySoon();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clanka",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"url": "https://github.com/Effectful-Tech/clanka.git"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@anthropic-ai/claude-agent-sdk": "^0.3.
|
|
28
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.322",
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
30
30
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
31
31
|
"@vscode/ripgrep": "^1.18.0",
|
|
32
32
|
"chalk": "^6.0.1",
|
|
33
|
-
"glob": "^14.0.
|
|
33
|
+
"glob": "^14.0.4",
|
|
34
34
|
"sqlite-vec": "0.1.9",
|
|
35
35
|
"tree-sitter": "^0.21.1",
|
|
36
36
|
"tree-sitter-javascript": "^0.23.1",
|
|
37
37
|
"tree-sitter-typescript": "^0.23.2",
|
|
38
|
-
"turndown": "^7.2.
|
|
38
|
+
"turndown": "^7.2.5"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@effect/ai-openai": "^4.0.0",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"effect": "^4.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@anthropic-ai/sdk": "^1.
|
|
48
|
+
"@anthropic-ai/sdk": "^1.7.0",
|
|
49
49
|
"@changesets/changelog-github": "^1.0.1",
|
|
50
50
|
"@changesets/cli": "^3.0.3",
|
|
51
|
-
"@effect/ai-openai": "4.1.
|
|
52
|
-
"@effect/ai-openai-compat": "4.1.
|
|
53
|
-
"@effect/platform-node": "4.1.
|
|
54
|
-
"@effect/sql-sqlite-node": "4.1.
|
|
55
|
-
"@effect/tsgo": "0.
|
|
56
|
-
"@effect/vitest": "4.1.
|
|
51
|
+
"@effect/ai-openai": "4.1.3",
|
|
52
|
+
"@effect/ai-openai-compat": "4.1.3",
|
|
53
|
+
"@effect/platform-node": "4.1.3",
|
|
54
|
+
"@effect/sql-sqlite-node": "4.1.3",
|
|
55
|
+
"@effect/tsgo": "0.67.5",
|
|
56
|
+
"@effect/vitest": "4.1.3",
|
|
57
57
|
"@types/node": "^26.6.6",
|
|
58
58
|
"@types/turndown": "^5.0.6",
|
|
59
|
-
"effect": "4.1.
|
|
59
|
+
"effect": "4.1.3",
|
|
60
60
|
"husky": "^9.1.7",
|
|
61
61
|
"lint-staged": "^17.6.0",
|
|
62
|
-
"oxlint": "^1.
|
|
62
|
+
"oxlint": "^1.93.0",
|
|
63
63
|
"prettier": "^3.9.10",
|
|
64
|
-
"tsdown": "^0.23.
|
|
64
|
+
"tsdown": "^0.23.7",
|
|
65
65
|
"typescript": "^7.0.2",
|
|
66
|
-
"vitest": "^5.0
|
|
66
|
+
"vitest": "^5.1.0"
|
|
67
67
|
},
|
|
68
68
|
"lint-staged": {
|
|
69
69
|
"*.{ts,tsx}": [
|
package/src/Agent.ts
CHANGED
|
@@ -1691,7 +1691,7 @@ const incompleteResponseError = (description: string) =>
|
|
|
1691
1691
|
|
|
1692
1692
|
const retryPolicy = Schedule.min([
|
|
1693
1693
|
Schedule.exponential(100, 1.5),
|
|
1694
|
-
Schedule.spaced(
|
|
1694
|
+
Schedule.spaced({ minutes: 5 }),
|
|
1695
1695
|
]).pipe(Schedule.jittered)
|
|
1696
1696
|
|
|
1697
1697
|
const environmentUpdateOpen = "<environment-update>"
|