@inkeep/agents-core 0.0.0-dev-20251010064032 → 0.0.0-dev-20251010165126
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/index.cjs +15 -9
- package/dist/index.js +17 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4384,17 +4384,23 @@ var McpClient = class {
|
|
|
4384
4384
|
async selectTools() {
|
|
4385
4385
|
const { tools: tools2 } = await this.client.listTools({ timeout: this.timeout });
|
|
4386
4386
|
const { selectedTools, activeTools } = this.serverConfig;
|
|
4387
|
-
let
|
|
4388
|
-
if (
|
|
4389
|
-
|
|
4390
|
-
} else if (activeTools
|
|
4391
|
-
|
|
4387
|
+
let availableTools;
|
|
4388
|
+
if (activeTools === void 0) {
|
|
4389
|
+
availableTools = tools2;
|
|
4390
|
+
} else if (activeTools.length === 0) {
|
|
4391
|
+
return [];
|
|
4392
|
+
} else {
|
|
4393
|
+
availableTools = tools2.filter((tool2) => activeTools.includes(tool2.name));
|
|
4394
|
+
}
|
|
4395
|
+
if (selectedTools === void 0) {
|
|
4396
|
+
return availableTools;
|
|
4397
|
+
} else if (selectedTools.length === 0) {
|
|
4398
|
+
return [];
|
|
4392
4399
|
} else {
|
|
4393
|
-
|
|
4400
|
+
const toolNames = availableTools.map((tool2) => tool2.name);
|
|
4401
|
+
this.validateSelectedTools(toolNames, selectedTools);
|
|
4402
|
+
return availableTools.filter((tool2) => selectedTools.includes(tool2.name));
|
|
4394
4403
|
}
|
|
4395
|
-
const toolNames = tools2.map((tool2) => tool2.name);
|
|
4396
|
-
this.validateSelectedTools(toolNames, toolsToFilter);
|
|
4397
|
-
return tools2.filter((tool2) => toolsToFilter.includes(tool2.name));
|
|
4398
4404
|
}
|
|
4399
4405
|
async tools() {
|
|
4400
4406
|
const tools2 = await this.selectTools();
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TOOL_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-TCLX6C3C.js';
|
|
2
2
|
export { TaskState } from './chunk-H2F72PDA.js';
|
|
3
|
+
import { getLogger, convertZodToJsonSchema } from './chunk-R2EERZSW.js';
|
|
4
|
+
export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-R2EERZSW.js';
|
|
3
5
|
import { validateAndTypeGraphData, validateGraphStructure, isInternalAgent, isExternalAgent } from './chunk-2TJ2L67D.js';
|
|
4
6
|
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './chunk-2TJ2L67D.js';
|
|
5
7
|
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-NEJ3QDK6.js';
|
|
@@ -8,8 +10,6 @@ import { schema_exports, contextConfigs, externalAgents, functions, subAgentRela
|
|
|
8
10
|
export { agentGraph, agentGraphRelations, agentToolRelationsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-5LRSB445.js';
|
|
9
11
|
import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
10
12
|
export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
|
|
11
|
-
import { getLogger, convertZodToJsonSchema } from './chunk-R2EERZSW.js';
|
|
12
|
-
export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-R2EERZSW.js';
|
|
13
13
|
import { __publicField } from './chunk-MKBO26DX.js';
|
|
14
14
|
import { z as z$1 } from 'zod';
|
|
15
15
|
import { customAlphabet, nanoid } from 'nanoid';
|
|
@@ -2338,17 +2338,23 @@ var McpClient = class {
|
|
|
2338
2338
|
async selectTools() {
|
|
2339
2339
|
const { tools: tools2 } = await this.client.listTools({ timeout: this.timeout });
|
|
2340
2340
|
const { selectedTools, activeTools } = this.serverConfig;
|
|
2341
|
-
let
|
|
2342
|
-
if (
|
|
2343
|
-
|
|
2344
|
-
} else if (activeTools
|
|
2345
|
-
|
|
2341
|
+
let availableTools;
|
|
2342
|
+
if (activeTools === void 0) {
|
|
2343
|
+
availableTools = tools2;
|
|
2344
|
+
} else if (activeTools.length === 0) {
|
|
2345
|
+
return [];
|
|
2346
|
+
} else {
|
|
2347
|
+
availableTools = tools2.filter((tool2) => activeTools.includes(tool2.name));
|
|
2348
|
+
}
|
|
2349
|
+
if (selectedTools === void 0) {
|
|
2350
|
+
return availableTools;
|
|
2351
|
+
} else if (selectedTools.length === 0) {
|
|
2352
|
+
return [];
|
|
2346
2353
|
} else {
|
|
2347
|
-
|
|
2354
|
+
const toolNames = availableTools.map((tool2) => tool2.name);
|
|
2355
|
+
this.validateSelectedTools(toolNames, selectedTools);
|
|
2356
|
+
return availableTools.filter((tool2) => selectedTools.includes(tool2.name));
|
|
2348
2357
|
}
|
|
2349
|
-
const toolNames = tools2.map((tool2) => tool2.name);
|
|
2350
|
-
this.validateSelectedTools(toolNames, toolsToFilter);
|
|
2351
|
-
return tools2.filter((tool2) => toolsToFilter.includes(tool2.name));
|
|
2352
2358
|
}
|
|
2353
2359
|
async tools() {
|
|
2354
2360
|
const tools2 = await this.selectTools();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251010165126",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|