@mcpc-tech/core 0.3.19 → 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/index.cjs CHANGED
@@ -19665,7 +19665,7 @@ var ToolManager = class {
19665
19665
  description,
19666
19666
  schema
19667
19667
  });
19668
- if (options.internal) {
19668
+ if (options.hidden) {
19669
19669
  this.toolConfigs.set(name, {
19670
19670
  visibility: {
19671
19671
  hidden: true
@@ -19685,6 +19685,11 @@ var ToolManager = class {
19685
19685
  inputSchema: schema
19686
19686
  });
19687
19687
  }
19688
+ this.toolConfigs.set(name, {
19689
+ visibility: {
19690
+ public: true
19691
+ }
19692
+ });
19688
19693
  }
19689
19694
  /**
19690
19695
  * Check if a tool is public (exposed to MCP clients)
@@ -20293,11 +20298,11 @@ var ComposableMCPServer = class extends Server {
20293
20298
  const toolNameToDetailList = Object.entries(allTools);
20294
20299
  const publicToolNames = this.getPublicToolNames();
20295
20300
  const hiddenToolNames = this.getHiddenToolNames();
20296
- const contextToolNames = toolNameToDetailList.map(([name2]) => name2).filter((n) => !hiddenToolNames.includes(n));
20301
+ const contextToolNames = toolNameToDetailList.map(([name2]) => name2).filter((n) => !hiddenToolNames.includes(n) && !publicToolNames.includes(n));
20297
20302
  publicToolNames.forEach((toolId) => {
20298
20303
  const tool2 = allTools[toolId];
20299
20304
  if (!tool2) {
20300
- throw new Error(`Public tool ${toolId} not found in registry, available: ${Object.keys(allTools).join(", ")}`);
20305
+ return;
20301
20306
  }
20302
20307
  this.tool(toolId, tool2.description || "", jsonSchema(tool2.inputSchema), tool2.execute, {
20303
20308
  internal: false
package/index.mjs CHANGED
@@ -19652,7 +19652,7 @@ var ToolManager = class {
19652
19652
  description,
19653
19653
  schema
19654
19654
  });
19655
- if (options.internal) {
19655
+ if (options.hidden) {
19656
19656
  this.toolConfigs.set(name, {
19657
19657
  visibility: {
19658
19658
  hidden: true
@@ -19672,6 +19672,11 @@ var ToolManager = class {
19672
19672
  inputSchema: schema
19673
19673
  });
19674
19674
  }
19675
+ this.toolConfigs.set(name, {
19676
+ visibility: {
19677
+ public: true
19678
+ }
19679
+ });
19675
19680
  }
19676
19681
  /**
19677
19682
  * Check if a tool is public (exposed to MCP clients)
@@ -20280,11 +20285,11 @@ var ComposableMCPServer = class extends Server {
20280
20285
  const toolNameToDetailList = Object.entries(allTools);
20281
20286
  const publicToolNames = this.getPublicToolNames();
20282
20287
  const hiddenToolNames = this.getHiddenToolNames();
20283
- const contextToolNames = toolNameToDetailList.map(([name2]) => name2).filter((n) => !hiddenToolNames.includes(n));
20288
+ const contextToolNames = toolNameToDetailList.map(([name2]) => name2).filter((n) => !hiddenToolNames.includes(n) && !publicToolNames.includes(n));
20284
20289
  publicToolNames.forEach((toolId) => {
20285
20290
  const tool2 = allTools[toolId];
20286
20291
  if (!tool2) {
20287
- throw new Error(`Public tool ${toolId} not found in registry, available: ${Object.keys(allTools).join(", ")}`);
20292
+ return;
20288
20293
  }
20289
20294
  this.tool(toolId, tool2.description || "", jsonSchema(tool2.inputSchema), tool2.execute, {
20290
20295
  internal: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpc-tech/core",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "homepage": "https://jsr.io/@mcpc/core",
5
5
  "dependencies": {
6
6
  "@ai-sdk/provider": "^2.0.0",
@@ -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,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AAW,UAAU,MAAM,EAAE,QAAQ,UAAU,GAAG,IAAI;EAItD;;GAEC,GACD,cAAc,UAAU,MAAM,GAAG,aAAa,SAAS;EAIvD;;GAEC,GACD,iBAAiB,UAAU,MAAM,GAAG,OAAO;EAI3C;;GAEC,GACD,AAAM,UAAU,QAAQ,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"}