clanka 0.10.1 → 0.11.0
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/README.md +26 -0
- package/dist/AgentExecutor.test.js +24 -4
- package/dist/AgentExecutor.test.js.map +1 -1
- package/dist/AgentSkills.test.js +0 -1
- package/dist/AgentSkills.test.js.map +1 -1
- package/dist/AgentSubagents.test.js +16 -6
- package/dist/AgentSubagents.test.js.map +1 -1
- package/dist/bin/{Effect-2jPlJ8eu.mjs → Effect-zUBunSAW.mjs} +70 -67
- package/dist/bin/Effect-zUBunSAW.mjs.map +1 -0
- package/dist/bin/{McpClient-1W508adc.mjs → McpClient-CnP2P7c9.mjs} +19 -19
- package/dist/bin/{McpClient-1W508adc.mjs.map → McpClient-CnP2P7c9.mjs.map} +1 -1
- package/dist/bin/{OutputFormatter-BFAv48k9.mjs → OutputFormatter-BPdc6RmH.mjs} +3 -3
- package/dist/bin/{OutputFormatter-BFAv48k9.mjs.map → OutputFormatter-BPdc6RmH.mjs.map} +1 -1
- package/dist/bin/{Schema-D-7VuCiC.mjs → Schema-C2Y2y3tU.mjs} +243 -94
- package/dist/bin/Schema-C2Y2y3tU.mjs.map +1 -0
- package/dist/bin/{SemanticSearch-Cb8aqvGv.mjs → SemanticSearch-BKZxP19F.mjs} +26 -20
- package/dist/bin/SemanticSearch-BKZxP19F.mjs.map +1 -0
- package/dist/bin/{Stream-DEu2tfCV.mjs → Stream-BvmRbTMu.mjs} +44 -27
- package/dist/bin/Stream-BvmRbTMu.mjs.map +1 -0
- package/dist/bin/cli.mjs +2870 -2818
- package/dist/bin/cli.mjs.map +1 -1
- package/dist/bin/{index.min-CI3qqohw.mjs → index.min-DbZbUHX3.mjs} +3 -3
- package/dist/bin/index.min-DbZbUHX3.mjs.map +1 -0
- package/dist/bin/turndown.cjs-DK29wZw3.mjs.map +1 -1
- package/dist/cli.js +23 -6
- package/dist/cli.js.map +1 -1
- package/package.json +14 -14
- package/src/AgentExecutor.test.ts +31 -5
- package/src/AgentSkills.test.ts +0 -1
- package/src/AgentSubagents.test.ts +20 -6
- package/src/cli.ts +46 -8
- package/dist/bin/Effect-2jPlJ8eu.mjs.map +0 -1
- package/dist/bin/Schema-D-7VuCiC.mjs.map +0 -1
- package/dist/bin/SemanticSearch-Cb8aqvGv.mjs.map +0 -1
- package/dist/bin/Stream-DEu2tfCV.mjs.map +0 -1
- package/dist/bin/index.min-CI3qqohw.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as Service, B as fn, Qt as tryPromise, X as gen, qt as sync, t as acquireRelease, wt as promise, yr as effect } from "./Effect-
|
|
2
|
-
import {
|
|
1
|
+
import { $a as Service, B as fn, Qt as tryPromise, X as gen, qt as sync, t as acquireRelease, wt as promise, yr as effect } from "./Effect-zUBunSAW.mjs";
|
|
2
|
+
import { V as TaggedError, d as Defect } from "./Schema-C2Y2y3tU.mjs";
|
|
3
3
|
import { _ as __commonJSMin, v as __toESM } from "./cli.mjs";
|
|
4
4
|
//#region node_modules/.pnpm/zod@4.4.2/node_modules/zod/v4/core/core.js
|
|
5
5
|
var _a$1;
|
|
@@ -3383,7 +3383,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
3383
3383
|
seen.ref = def.innerType;
|
|
3384
3384
|
};
|
|
3385
3385
|
//#endregion
|
|
3386
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
3386
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
3387
3387
|
function isZ4Schema(s) {
|
|
3388
3388
|
return !!s._zod;
|
|
3389
3389
|
}
|
|
@@ -4349,7 +4349,7 @@ function number(params) {
|
|
|
4349
4349
|
return _coercedNumber(ZodNumber, params);
|
|
4350
4350
|
}
|
|
4351
4351
|
//#endregion
|
|
4352
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
4352
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4353
4353
|
const LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
4354
4354
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
4355
4355
|
LATEST_PROTOCOL_VERSION,
|
|
@@ -5150,12 +5150,12 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
};
|
|
5152
5152
|
//#endregion
|
|
5153
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
5153
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
5154
5154
|
function isTerminal(status) {
|
|
5155
5155
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
5156
5156
|
}
|
|
5157
5157
|
//#endregion
|
|
5158
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
5158
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
5159
5159
|
function getMethodLiteral(schema) {
|
|
5160
5160
|
const methodSchema = getObjectShape(schema)?.method;
|
|
5161
5161
|
if (!methodSchema) throw new Error("Schema is missing a method literal");
|
|
@@ -5169,7 +5169,7 @@ function parseWithCompat(schema, data) {
|
|
|
5169
5169
|
return result.data;
|
|
5170
5170
|
}
|
|
5171
5171
|
//#endregion
|
|
5172
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
5172
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
5173
5173
|
const DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
5174
5174
|
var Protocol = class {
|
|
5175
5175
|
constructor(_options) {
|
|
@@ -12247,7 +12247,7 @@ var require_dist = __commonJSMin(((exports, module) => {
|
|
|
12247
12247
|
exports.default = formatsPlugin;
|
|
12248
12248
|
}));
|
|
12249
12249
|
//#endregion
|
|
12250
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12250
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
12251
12251
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
12252
12252
|
var import_dist = __toESM(require_dist(), 1);
|
|
12253
12253
|
function createDefaultAjvInstance() {
|
|
@@ -12281,7 +12281,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
12281
12281
|
}
|
|
12282
12282
|
};
|
|
12283
12283
|
//#endregion
|
|
12284
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12284
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js
|
|
12285
12285
|
var ExperimentalClientTasks = class {
|
|
12286
12286
|
constructor(_client) {
|
|
12287
12287
|
this._client = _client;
|
|
@@ -12351,7 +12351,7 @@ var ExperimentalClientTasks = class {
|
|
|
12351
12351
|
}
|
|
12352
12352
|
};
|
|
12353
12353
|
//#endregion
|
|
12354
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12354
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
12355
12355
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
12356
12356
|
if (!requests) throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
12357
12357
|
switch (method) {
|
|
@@ -12368,7 +12368,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
12368
12368
|
}
|
|
12369
12369
|
}
|
|
12370
12370
|
//#endregion
|
|
12371
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12371
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js
|
|
12372
12372
|
function applyElicitationDefaults(schema, data) {
|
|
12373
12373
|
if (!schema || data === null || typeof data !== "object") return;
|
|
12374
12374
|
if (schema.type === "object" && schema.properties && typeof schema.properties === "object") {
|
|
@@ -12790,7 +12790,7 @@ var require_content_type = __commonJSMin(((exports) => {
|
|
|
12790
12790
|
}
|
|
12791
12791
|
}));
|
|
12792
12792
|
//#endregion
|
|
12793
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12793
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js
|
|
12794
12794
|
var import_content_type = __toESM(require_content_type(), 1);
|
|
12795
12795
|
function mediaTypeEssence(header) {
|
|
12796
12796
|
if (!header) return;
|
|
@@ -12803,7 +12803,7 @@ function mediaTypeEssence(header) {
|
|
|
12803
12803
|
}
|
|
12804
12804
|
}
|
|
12805
12805
|
//#endregion
|
|
12806
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12806
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js
|
|
12807
12807
|
function normalizeHeaders(headers) {
|
|
12808
12808
|
if (!headers) return {};
|
|
12809
12809
|
if (headers instanceof Headers) return Object.fromEntries(headers.entries());
|
|
@@ -12916,7 +12916,7 @@ async function pkceChallenge(length) {
|
|
|
12916
12916
|
};
|
|
12917
12917
|
}
|
|
12918
12918
|
//#endregion
|
|
12919
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
12919
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
|
|
12920
12920
|
const SafeUrlSchema = url().superRefine((val, ctx) => {
|
|
12921
12921
|
if (!URL.canParse(val)) {
|
|
12922
12922
|
ctx.addIssue({
|
|
@@ -13059,7 +13059,7 @@ const OAuthTokenRevocationRequestSchema = object({
|
|
|
13059
13059
|
token_type_hint: string().optional()
|
|
13060
13060
|
}).strip();
|
|
13061
13061
|
//#endregion
|
|
13062
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
13062
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js
|
|
13063
13063
|
function resourceUrlFromServerUrl(url) {
|
|
13064
13064
|
const resourceURL = typeof url === "string" ? new URL(url) : new URL(url.href);
|
|
13065
13065
|
resourceURL.hash = "";
|
|
@@ -13075,7 +13075,7 @@ function checkResourceAllowed({ requestedResource, configuredResource }) {
|
|
|
13075
13075
|
return requestedPath.startsWith(configuredPath);
|
|
13076
13076
|
}
|
|
13077
13077
|
//#endregion
|
|
13078
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
13078
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
|
|
13079
13079
|
var OAuthError = class extends Error {
|
|
13080
13080
|
constructor(message, errorUri) {
|
|
13081
13081
|
super(message);
|
|
@@ -13148,7 +13148,7 @@ const OAUTH_ERRORS = {
|
|
|
13148
13148
|
[InvalidTargetError.errorCode]: InvalidTargetError
|
|
13149
13149
|
};
|
|
13150
13150
|
//#endregion
|
|
13151
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
13151
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js
|
|
13152
13152
|
var UnauthorizedError = class extends Error {
|
|
13153
13153
|
constructor(message) {
|
|
13154
13154
|
super(message ?? "Unauthorized");
|
|
@@ -13834,7 +13834,7 @@ var EventSourceParserStream = class extends TransformStream {
|
|
|
13834
13834
|
}
|
|
13835
13835
|
};
|
|
13836
13836
|
//#endregion
|
|
13837
|
-
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.
|
|
13837
|
+
//#region node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_zod@4.4.2/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js
|
|
13838
13838
|
const DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS = {
|
|
13839
13839
|
initialReconnectionDelay: 1e3,
|
|
13840
13840
|
maxReconnectionDelay: 3e4,
|
|
@@ -14176,4 +14176,4 @@ const layer = effect(McpClient, gen(function* () {
|
|
|
14176
14176
|
//#endregion
|
|
14177
14177
|
export { McpClient, McpClientError, layer };
|
|
14178
14178
|
|
|
14179
|
-
//# sourceMappingURL=McpClient-
|
|
14179
|
+
//# sourceMappingURL=McpClient-CnP2P7c9.mjs.map
|