@mcpc-tech/core 0.3.18 → 0.3.20

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,9 +1,10 @@
1
1
  {
2
2
  "name": "@mcpc-tech/core",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "homepage": "https://jsr.io/@mcpc/core",
5
5
  "dependencies": {
6
6
  "@ai-sdk/provider": "^2.0.0",
7
+ "@mcpc-tech/acp-ai-provider": "^0.1.20",
7
8
  "@mcpc-tech/ripgrep-napi": "^0.0.4",
8
9
  "@modelcontextprotocol/sdk": "^1.25.1",
9
10
  "@opentelemetry/api": "^1.9.0",
@@ -19,9 +20,7 @@
19
20
  "ajv-formats": "^3.0.1",
20
21
  "cheerio": "^1.0.0",
21
22
  "json-schema-traverse": "^1.0.0",
22
- "jsonrepair": "^3.13.0",
23
- "@agentclientprotocol/sdk": "^0.4.8",
24
- "zod": "^3.24.2"
23
+ "jsonrepair": "^3.13.0"
25
24
  },
26
25
  "exports": {
27
26
  ".": {
@@ -73,15 +73,13 @@ function createSearchPlugin(options = {}) {
73
73
  const timeoutMs = options.timeoutMs || 3e4;
74
74
  const global = options.global ?? true;
75
75
  const agentName = options.agentName;
76
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
76
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
77
77
  const activeTimeouts = /* @__PURE__ */ new Set();
78
78
  return {
79
79
  name: "plugin-search",
80
80
  version: "1.0.0",
81
81
  configureServer: (server) => {
82
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
83
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
84
- Only search within the allowed directory: ${allowedSearchDir}`;
82
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
85
83
  const toolDescription = options.toolDescription || defaultDescription;
86
84
  server.tool(toolName, toolDescription, jsonSchema({
87
85
  type: "object",
@@ -300,7 +298,7 @@ function createLargeResultPlugin(options = {}) {
300
298
  let tempDir = options.tempDir || null;
301
299
  let serverRef = null;
302
300
  let agentName = null;
303
- const defaultSearchDescription = `Search within large tool result files that were saved due to size limits. Use when: a tool result was saved to file because it exceeded the context limit. Do NOT use this tool before calling the actual tool first. Provide specific keywords or patterns related to the content you're looking for.`;
301
+ const defaultSearchDescription = `Grep/search within large tool result files that were saved due to size limits. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool is ONLY for searching within previously saved large results, not for general file search. Provide specific keywords or regex patterns related to the content you're looking for.`;
304
302
  return {
305
303
  name: "plugin-large-result-handler",
306
304
  version: "1.0.0",
@@ -316,7 +314,8 @@ function createLargeResultPlugin(options = {}) {
316
314
  maxResults: options.search?.maxResults || 15,
317
315
  maxOutputSize: options.search?.maxOutputSize || 4e3,
318
316
  toolDescription: options.search?.toolDescription || defaultSearchDescription,
319
- global: true,
317
+ global: false,
318
+ // Internal tool only - not exposed externally
320
319
  agentName
321
320
  };
322
321
  const searchPlugin = createSearchPlugin(searchConfig);
@@ -325,7 +324,7 @@ function createLargeResultPlugin(options = {}) {
325
324
  },
326
325
  transformTool: (tool, context) => {
327
326
  const originalExecute = tool.execute;
328
- const searchToolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
327
+ const searchToolName = agentName ? `${agentName}__grep` : "mcpc__grep";
329
328
  tool.execute = async (args) => {
330
329
  try {
331
330
  const result = await originalExecute(args);
@@ -41,15 +41,13 @@ function createSearchPlugin(options = {}) {
41
41
  const timeoutMs = options.timeoutMs || 3e4;
42
42
  const global = options.global ?? true;
43
43
  const agentName = options.agentName;
44
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
44
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
45
45
  const activeTimeouts = /* @__PURE__ */ new Set();
46
46
  return {
47
47
  name: "plugin-search",
48
48
  version: "1.0.0",
49
49
  configureServer: (server) => {
50
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
51
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
52
- Only search within the allowed directory: ${allowedSearchDir}`;
50
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
53
51
  const toolDescription = options.toolDescription || defaultDescription;
54
52
  server.tool(toolName, toolDescription, jsonSchema({
55
53
  type: "object",
@@ -268,7 +266,7 @@ function createLargeResultPlugin(options = {}) {
268
266
  let tempDir = options.tempDir || null;
269
267
  let serverRef = null;
270
268
  let agentName = null;
271
- const defaultSearchDescription = `Search within large tool result files that were saved due to size limits. Use when: a tool result was saved to file because it exceeded the context limit. Do NOT use this tool before calling the actual tool first. Provide specific keywords or patterns related to the content you're looking for.`;
269
+ const defaultSearchDescription = `Grep/search within large tool result files that were saved due to size limits. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool is ONLY for searching within previously saved large results, not for general file search. Provide specific keywords or regex patterns related to the content you're looking for.`;
272
270
  return {
273
271
  name: "plugin-large-result-handler",
274
272
  version: "1.0.0",
@@ -284,7 +282,8 @@ function createLargeResultPlugin(options = {}) {
284
282
  maxResults: options.search?.maxResults || 15,
285
283
  maxOutputSize: options.search?.maxOutputSize || 4e3,
286
284
  toolDescription: options.search?.toolDescription || defaultSearchDescription,
287
- global: true,
285
+ global: false,
286
+ // Internal tool only - not exposed externally
288
287
  agentName
289
288
  };
290
289
  const searchPlugin = createSearchPlugin(searchConfig);
@@ -293,7 +292,7 @@ function createLargeResultPlugin(options = {}) {
293
292
  },
294
293
  transformTool: (tool, context) => {
295
294
  const originalExecute = tool.execute;
296
- const searchToolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
295
+ const searchToolName = agentName ? `${agentName}__grep` : "mcpc__grep";
297
296
  tool.execute = async (args) => {
298
297
  try {
299
298
  const result = await originalExecute(args);
@@ -68,15 +68,13 @@ function createSearchPlugin(options = {}) {
68
68
  const timeoutMs = options.timeoutMs || 3e4;
69
69
  const global = options.global ?? true;
70
70
  const agentName = options.agentName;
71
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
71
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
72
72
  const activeTimeouts = /* @__PURE__ */ new Set();
73
73
  return {
74
74
  name: "plugin-search",
75
75
  version: "1.0.0",
76
76
  configureServer: (server) => {
77
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
78
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
79
- Only search within the allowed directory: ${allowedSearchDir}`;
77
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
80
78
  const toolDescription = options.toolDescription || defaultDescription;
81
79
  server.tool(
82
80
  toolName,
@@ -36,15 +36,13 @@ function createSearchPlugin(options = {}) {
36
36
  const timeoutMs = options.timeoutMs || 3e4;
37
37
  const global = options.global ?? true;
38
38
  const agentName = options.agentName;
39
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
39
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
40
40
  const activeTimeouts = /* @__PURE__ */ new Set();
41
41
  return {
42
42
  name: "plugin-search",
43
43
  version: "1.0.0",
44
44
  configureServer: (server) => {
45
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
46
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
47
- Only search within the allowed directory: ${allowedSearchDir}`;
45
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
48
46
  const toolDescription = options.toolDescription || defaultDescription;
49
47
  server.tool(
50
48
  toolName,
package/plugins.cjs CHANGED
@@ -72,15 +72,13 @@ function createSearchPlugin(options = {}) {
72
72
  const timeoutMs = options.timeoutMs || 3e4;
73
73
  const global = options.global ?? true;
74
74
  const agentName = options.agentName;
75
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
75
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
76
76
  const activeTimeouts = /* @__PURE__ */ new Set();
77
77
  return {
78
78
  name: "plugin-search",
79
79
  version: "1.0.0",
80
80
  configureServer: (server) => {
81
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
82
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
83
- Only search within the allowed directory: ${allowedSearchDir}`;
81
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
84
82
  const toolDescription = options.toolDescription || defaultDescription;
85
83
  server.tool(toolName, toolDescription, jsonSchema({
86
84
  type: "object",
@@ -303,7 +301,7 @@ function createLargeResultPlugin(options = {}) {
303
301
  let tempDir = options.tempDir || null;
304
302
  let serverRef = null;
305
303
  let agentName = null;
306
- const defaultSearchDescription = `Search within large tool result files that were saved due to size limits. Use when: a tool result was saved to file because it exceeded the context limit. Do NOT use this tool before calling the actual tool first. Provide specific keywords or patterns related to the content you're looking for.`;
304
+ const defaultSearchDescription = `Grep/search within large tool result files that were saved due to size limits. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool is ONLY for searching within previously saved large results, not for general file search. Provide specific keywords or regex patterns related to the content you're looking for.`;
307
305
  return {
308
306
  name: "plugin-large-result-handler",
309
307
  version: "1.0.0",
@@ -318,7 +316,7 @@ function createLargeResultPlugin(options = {}) {
318
316
  maxResults: options.search?.maxResults || 15,
319
317
  maxOutputSize: options.search?.maxOutputSize || 4e3,
320
318
  toolDescription: options.search?.toolDescription || defaultSearchDescription,
321
- global: true,
319
+ global: false,
322
320
  agentName
323
321
  };
324
322
  const searchPlugin = createSearchPlugin(searchConfig);
@@ -327,7 +325,7 @@ function createLargeResultPlugin(options = {}) {
327
325
  },
328
326
  transformTool: (tool, context) => {
329
327
  const originalExecute = tool.execute;
330
- const searchToolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
328
+ const searchToolName = agentName ? `${agentName}__grep` : "mcpc__grep";
331
329
  tool.execute = async (args) => {
332
330
  try {
333
331
  const result = await originalExecute(args);
package/plugins.mjs CHANGED
@@ -36,15 +36,13 @@ function createSearchPlugin(options = {}) {
36
36
  const timeoutMs = options.timeoutMs || 3e4;
37
37
  const global = options.global ?? true;
38
38
  const agentName = options.agentName;
39
- const toolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
39
+ const toolName = agentName ? `${agentName}__grep` : "mcpc__grep";
40
40
  const activeTimeouts = /* @__PURE__ */ new Set();
41
41
  return {
42
42
  name: "plugin-search",
43
43
  version: "1.0.0",
44
44
  configureServer: (server) => {
45
- const defaultDescription = agentName ? `Search for text patterns in files for the "${agentName}" agent. Use this to find specific content within large tool results. Provide a simple literal string or a regular expression.
46
- Only search within the allowed directory: ${allowedSearchDir}` : `Search for text patterns in files and directories. Use this to find specific content, code, or information within files. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid; otherwise use quotes or escape special characters to treat it as a literal string.
47
- Only search within the allowed directory: ${allowedSearchDir}`;
45
+ const defaultDescription = agentName ? `Grep/search for text patterns within large tool result files for the "${agentName}" agent. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. Only search within the allowed directory: ${allowedSearchDir}` : `Grep/search for text patterns within large tool result files. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool searches within previously saved large results only. Provide a simple literal string or a regular expression. If your pattern is a regex, ensure it's valid. Only search within the allowed directory: ${allowedSearchDir}`;
48
46
  const toolDescription = options.toolDescription || defaultDescription;
49
47
  server.tool(toolName, toolDescription, jsonSchema({
50
48
  type: "object",
@@ -267,7 +265,7 @@ function createLargeResultPlugin(options = {}) {
267
265
  let tempDir = options.tempDir || null;
268
266
  let serverRef = null;
269
267
  let agentName = null;
270
- const defaultSearchDescription = `Search within large tool result files that were saved due to size limits. Use when: a tool result was saved to file because it exceeded the context limit. Do NOT use this tool before calling the actual tool first. Provide specific keywords or patterns related to the content you're looking for.`;
268
+ const defaultSearchDescription = `Grep/search within large tool result files that were saved due to size limits. **IMPORTANT**: You MUST execute the actual tool first and get a "Result too large, saved to file" response before using this grep tool. This tool is ONLY for searching within previously saved large results, not for general file search. Provide specific keywords or regex patterns related to the content you're looking for.`;
271
269
  return {
272
270
  name: "plugin-large-result-handler",
273
271
  version: "1.0.0",
@@ -282,7 +280,7 @@ function createLargeResultPlugin(options = {}) {
282
280
  maxResults: options.search?.maxResults || 15,
283
281
  maxOutputSize: options.search?.maxOutputSize || 4e3,
284
282
  toolDescription: options.search?.toolDescription || defaultSearchDescription,
285
- global: true,
283
+ global: false,
286
284
  agentName
287
285
  };
288
286
  const searchPlugin = createSearchPlugin(searchConfig);
@@ -291,7 +289,7 @@ function createLargeResultPlugin(options = {}) {
291
289
  },
292
290
  transformTool: (tool, context) => {
293
291
  const originalExecute = tool.execute;
294
- const searchToolName = agentName ? `${agentName}__search-tool-result` : "search-tool-result";
292
+ const searchToolName = agentName ? `${agentName}__grep` : "mcpc__grep";
295
293
  tool.execute = async (args) => {
296
294
  try {
297
295
  const result = await originalExecute(args);
@@ -18,6 +18,7 @@ export declare class ComposableMCPServer extends Server {
18
18
  private resolveToolName: any;
19
19
  tool<T>(name: string, description: string, paramsSchema: Schema<T> | JSONSchema, cb: (args: T, extra?: unknown) => unknown, options?: {
20
20
  internal?: boolean;
21
+ hidden?: boolean;
21
22
  plugins?: ToolPlugin[];
22
23
  }): void;
23
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.ts","sources":["../../src/compose.ts"],"names":[],"mappings":"AAAA,SAGE,KAAK,cAAc,EAGnB,KAAK,IAAI,6CAC8C;AACzD,SAAwC,KAAK,MAAM,4BAA4B;AAC/E,cAAc,UAAU,6BAA6B;AACrD,SACE,MAAM,EACN,KAAK,aAAa,oDAC4C;AAGhE,cAAc,iBAAiB,kCAAkC;AACjE,cAAc,UAAU,EAAE,YAAY,qBAAqB;AAM3D,cAA4B,UAAU,EAAE,UAAU,4BAA4B;AAe9E,OAAO,cAAM,4BAA4B;EACvC,QAAQ,mBAA6B;EACrC,QAAQ,iBAAyB;EACjC,QAAQ,YAAsC;EAG9C,IAAI,mBAAmB,IAAI,MAAM,EAAE,MAAM;EAIzC,YAAY,aAAa,cAAc,EAAE,SAAS,aAAa;EAiB/D;;GAEC,GACD,AAAM,sBAAsB,QAAQ,IAAI;UAqB1B;UAsDN;EAIR,KAAK,GACH,MAAM,MAAM,EACZ,aAAa,MAAM,EACnB,cAAc,OAAO,KAAK,UAAU,EACpC,KAAK,MAAM,GAAG,QAAQ,OAAO,KAAK,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,UAAU,GAAG,QAAQ,IAAI;EAIjD;;GAEC,GACD,AAAM,mBACJ,YAAY,MAAM,EAClB;IAAW,QAAQ,OAAO;GAAoB,GAC7C,QAAQ,IAAI;UAOD;EAOd;;GAEC,GACD,AAAM,kBAAkB,QAAQ,IAAI;EAIpC;;GAEC,GACD,SAAe,SAAS,QAAQ,IAAI;EAK9B,QACJ,MAAM,MAAM,GAAG,IAAI,EACnB,aAAa,MAAM,EACnB,aAAY,UAA+B,EAC3C,UAAS,kBAAkB,UAAgC;AAiR/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"large-result.d.ts","sources":["../../../src/plugins/large-result.ts"],"names":[],"mappings":"AAQA,SAA6B,KAAK,aAAa,2BAA2B;AAC1E,cAAmC,UAAU,6BAA6B;UAGhE;EACR,UAAU,MAAM;EAChB,cAAc,MAAM;EACpB,UAAU,MAAM;EAChB,SAAS;;AAGX;;;CAGC,GACD,OAAO,iBAAS,wBACd,UAAS,aAAkB,GAC1B;AAsHH;;CAEC,GACD,cAAM,0BAA0B;AAMhC,OAAO,cAAM,kBAAuC;AAEpD,eAAe,yBAAyB"}
1
+ {"version":3,"file":"large-result.d.ts","sources":["../../../src/plugins/large-result.ts"],"names":[],"mappings":"AAQA,SAA6B,KAAK,aAAa,2BAA2B;AAC1E,cAAmC,UAAU,6BAA6B;UAGhE;EACR,UAAU,MAAM;EAChB,cAAc,MAAM;EACpB,UAAU,MAAM;EAChB,SAAS;;AAGX;;;CAGC,GACD,OAAO,iBAAS,wBACd,UAAS,aAAkB,GAC1B;AAoHH;;CAEC,GACD,cAAM,0BAA0B;AAMhC,OAAO,cAAM,kBAAuC;AAEpD,eAAe,yBAAyB"}
@@ -9,7 +9,7 @@ import type { ToolPlugin } from "../plugin-types.js";
9
9
  /** Whether search should be case sensitive (default: false) */ caseSensitive?: boolean;
10
10
  /** Search timeout in milliseconds (default: 30000) */ timeoutMs?: number;
11
11
  /** Custom description for the search tool (overrides default) */ toolDescription?: string;
12
- /** Agent name prefix for tool naming (e.g., "my-agent" -> "my-agent__search-tool-result") */ agentName?: string;
12
+ /** Agent name prefix for tool naming (e.g., "my-agent" -> "my-agent__grep") */ agentName?: string;
13
13
  }
14
14
  /**
15
15
  * Create a search plugin that adds file search capability with size limits
@@ -1 +1 @@
1
- {"version":3,"file":"search-tool.d.ts","sources":["../../../src/plugins/search-tool.ts"],"names":[],"mappings":"AASA,cAAc,UAAU,6BAA6B;AAIrD;;CAEC,GACD,iBAAiB;EACf,sDAAsD,GACtD,SAAS,OAAO;EAChB,6DAA6D,GAC7D,aAAa,MAAM;EACnB,sDAAsD,GACtD,gBAAgB,MAAM;EACtB,mHAAmH,GACnH,aAAa,MAAM;EACnB,6DAA6D,GAC7D,gBAAgB,OAAO;EACvB,oDAAoD,GACpD,YAAY,MAAM;EAClB,+DAA+D,GAC/D,kBAAkB,MAAM;EACxB,2FAA2F,GAC3F,YAAY,MAAM;;AAGpB;;CAEC,GACD,OAAO,iBAAS,mBAAmB,UAAS,aAAkB,GAAG;AAsQjE;;CAEC,GACD,cAAM,qBAAqB;AAS3B,OAAO,cAAM,kBAAkC;AAE/C,eAAe,oBAAoB"}
1
+ {"version":3,"file":"search-tool.d.ts","sources":["../../../src/plugins/search-tool.ts"],"names":[],"mappings":"AASA,cAAc,UAAU,6BAA6B;AAIrD;;CAEC,GACD,iBAAiB;EACf,sDAAsD,GACtD,SAAS,OAAO;EAChB,6DAA6D,GAC7D,aAAa,MAAM;EACnB,sDAAsD,GACtD,gBAAgB,MAAM;EACtB,mHAAmH,GACnH,aAAa,MAAM;EACnB,6DAA6D,GAC7D,gBAAgB,OAAO;EACvB,oDAAoD,GACpD,YAAY,MAAM;EAClB,+DAA+D,GAC/D,kBAAkB,MAAM;EACxB,6EAA6E,GAC7E,YAAY,MAAM;;AAGpB;;CAEC,GACD,OAAO,iBAAS,mBAAmB,UAAS,aAAkB,GAAG;AA0QjE;;CAEC,GACD,cAAM,qBAAqB;AAS3B,OAAO,cAAM,kBAAkC;AAE/C,eAAe,oBAAoB"}
@@ -74,6 +74,11 @@ export interface ComposeDefinition {
74
74
  * Applies to ai_sampling and ai_acp modes
75
75
  * @default 50
76
76
  */ maxSteps?: number;
77
+ /**
78
+ * Maximum tokens for sampling requests
79
+ * Applies to ai_sampling mode
80
+ * @default 128_000
81
+ */ maxTokens?: number;
77
82
  /**
78
83
  * Enable OpenTelemetry tracing
79
84
  * Applies to ai_sampling and ai_acp modes
@@ -1 +1 @@
1
- {"version":3,"file":"set-up-mcp-compose.d.ts","sources":["../../src/set-up-mcp-compose.ts"],"names":[],"mappings":"AAAA,SAAS,mBAAmB,oBAAoB;AAChD,cAAc,UAAU,6BAA6B;AACrD,cAAc,cAAc,qBAAqB;AACjD,cAAc,UAAU,4BAA4B;AACpD,cAAc,UAAU,qBAAqB;AAC7C,cAAc,aAAa,6BAA6B;AAExD,iBAAiB;EACf;;;GAGC,GACD,MAAM,MAAM,GAAG,IAAI;EACnB;;GAEC,GACD,cAAc,MAAM;EACpB,OAAO;EAEP;;;;;;;;;;;GAWC,GACD,WAAW,aAAa,MAAM;EAE9B;IACE;;;;;;KAMC,GACD,OAAO;IAEP;;KAEC,GACD,iBAAiB;IAEjB;;;;KAIC,GACD;MACE;QACE,QAAQ;UAAQ,OAAO,MAAM;;QAC7B,eAAe,MAAM;QACrB,gBAAgB,MAAM;QACtB,uBAAuB,MAAM;;;IAIjC;;;;KAIC,GACD;MACE,SAAS,MAAM;MACf,OAAO,MAAM;MACb,MAAM,OAAO,MAAM,EAAE,MAAM;MAC3B;QACE,MAAM,MAAM;QACZ,aAAa;UACX,MAAM,MAAM;UACZ,SAAS,MAAM;UACf,OAAO,MAAM;UACb,MAAM,OAAO,MAAM,EAAE,MAAM;;;MAG/B,iBAAiB,OAAO;;IAG1B;;;;KAIC,GACD,WAAW,MAAM;IAEjB;;;;KAIC,GACD,iBAAiB,OAAO;IAExB;;;;;KAKC,GACD;;;KAGC,GACD,OAAO,MAAM;;;AAMjB,iBAAiB;GACd,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