@inkeep/agents-core 0.0.0-dev-20251014190820 → 0.0.0-dev-20251014201448

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 CHANGED
@@ -216576,7 +216576,7 @@ var getAgentRelationsBySource = (db) => async (params) => {
216576
216576
  pagination: { page, limit, total, pages }
216577
216577
  };
216578
216578
  };
216579
- var getAgentRelationsByTarget = (db) => async (params) => {
216579
+ var getSubAgentRelationsByTarget = (db) => async (params) => {
216580
216580
  const page = params.pagination?.page || 1;
216581
216581
  const limit = Math.min(params.pagination?.limit || 10, 100);
216582
216582
  const offset = (page - 1) * limit;
@@ -216704,7 +216704,7 @@ var getAgentRelationByParams = (db) => async (params) => {
216704
216704
  where: drizzleOrm.and(...whereConditions)
216705
216705
  });
216706
216706
  };
216707
- var upsertAgentRelation = (db) => async (params) => {
216707
+ var upsertSubAgentRelation = (db) => async (params) => {
216708
216708
  const existing = await getAgentRelationByParams(db)({
216709
216709
  scopes: { tenantId: params.tenantId, projectId: params.projectId, agentId: params.agentId },
216710
216710
  sourceSubAgentId: params.sourceSubAgentId,
@@ -220497,18 +220497,18 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220497
220497
  }
220498
220498
  await Promise.all(agentArtifactComponentPromises);
220499
220499
  logger14.info({}, "All agent-artifact component relations created");
220500
- const agentRelationPromises = [];
220500
+ const subAgentRelationPromises = [];
220501
220501
  for (const [subAgentId, agentData2] of Object.entries(typed.subAgents)) {
220502
220502
  if (isInternalAgent(agentData2) && agentData2.canTransferTo) {
220503
220503
  for (const targetSubAgentId of agentData2.canTransferTo) {
220504
- agentRelationPromises.push(
220504
+ subAgentRelationPromises.push(
220505
220505
  (async () => {
220506
220506
  try {
220507
220507
  logger14.info(
220508
220508
  { subAgentId, targetSubAgentId, type: "transfer" },
220509
220509
  "Processing agent transfer relation"
220510
220510
  );
220511
- await upsertAgentRelation(db)({
220511
+ await upsertSubAgentRelation(db)({
220512
220512
  id: nanoid.nanoid(),
220513
220513
  tenantId,
220514
220514
  projectId,
@@ -220535,14 +220535,14 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220535
220535
  for (const targetSubAgentId of agentData2.canDelegateTo) {
220536
220536
  const targetAgentData = typed.subAgents[targetSubAgentId];
220537
220537
  const isTargetExternal = isExternalAgent(targetAgentData);
220538
- agentRelationPromises.push(
220538
+ subAgentRelationPromises.push(
220539
220539
  (async () => {
220540
220540
  try {
220541
220541
  logger14.info(
220542
220542
  { subAgentId, targetSubAgentId, type: "delegate" },
220543
220543
  "Processing agent delegation relation"
220544
220544
  );
220545
- await upsertAgentRelation(db)({
220545
+ await upsertSubAgentRelation(db)({
220546
220546
  id: nanoid.nanoid(),
220547
220547
  tenantId,
220548
220548
  projectId,
@@ -220567,10 +220567,10 @@ var createFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220567
220567
  }
220568
220568
  }
220569
220569
  }
220570
- await Promise.all(agentRelationPromises);
220570
+ await Promise.all(subAgentRelationPromises);
220571
220571
  logger14.info(
220572
- { agentRelationCount: agentRelationPromises.length },
220573
- "All agent relations created"
220572
+ { subAgentRelationCount: subAgentRelationPromises.length },
220573
+ "All sub-agent relations created"
220574
220574
  );
220575
220575
  const createdAgent = await getFullAgentDefinition(db)({
220576
220576
  scopes: { tenantId, projectId, agentId: finalAgentId }
@@ -224409,6 +224409,21 @@ var KeyChainStore = class {
224409
224409
  const credential = await this.get(key);
224410
224410
  return credential !== null;
224411
224411
  }
224412
+ /**
224413
+ * Check if the credential store is available and functional
224414
+ */
224415
+ async checkAvailability() {
224416
+ await this.initializationPromise;
224417
+ if (!this.keytarAvailable || !this.keytar) {
224418
+ return {
224419
+ available: false,
224420
+ reason: "Keytar not available - cannot store credentials in system keychain"
224421
+ };
224422
+ }
224423
+ return {
224424
+ available: true
224425
+ };
224426
+ }
224412
224427
  /**
224413
224428
  * Delete a credential from the keychain
224414
224429
  */
@@ -224550,6 +224565,14 @@ var InMemoryCredentialStore = class {
224550
224565
  async delete(key) {
224551
224566
  return this.credentials.delete(key);
224552
224567
  }
224568
+ /**
224569
+ * Check if the credential store is available and functional
224570
+ */
224571
+ async checkAvailability() {
224572
+ return {
224573
+ available: true
224574
+ };
224575
+ }
224553
224576
  };
224554
224577
  var logger13 = getLogger("nango-credential-store");
224555
224578
  var CredentialKeySchema = zod.z.object({
@@ -224964,6 +224987,26 @@ var NangoCredentialStore = class {
224964
224987
  return false;
224965
224988
  }
224966
224989
  }
224990
+ /**
224991
+ * Check if the credential store is available and functional
224992
+ */
224993
+ async checkAvailability() {
224994
+ if (!this.nangoConfig.secretKey) {
224995
+ return {
224996
+ available: false,
224997
+ reason: "Nango secret key not configured"
224998
+ };
224999
+ }
225000
+ if (this.nangoConfig.secretKey.includes("mock") || this.nangoConfig.secretKey === "your_nango_secret_key") {
225001
+ return {
225002
+ available: false,
225003
+ reason: "Nango secret key appears to be a placeholder or mock value"
225004
+ };
225005
+ }
225006
+ return {
225007
+ available: true
225008
+ };
225009
+ }
224967
225010
  };
224968
225011
  function createNangoCredentialStore(id, config) {
224969
225012
  const nangoSecretKey = config?.secretKey || process.env.NANGO_SECRET_KEY;
@@ -224991,15 +225034,13 @@ function createDefaultCredentialStores() {
224991
225034
  })
224992
225035
  );
224993
225036
  }
224994
- if (process.env.ENABLE_KEYCHAIN_STORE === "true") {
224995
- try {
224996
- stores.push(createKeyChainStore("keychain-default"));
224997
- } catch (error) {
224998
- console.warn(
224999
- "Failed to create keychain store:",
225000
- error instanceof Error ? error.message : error
225001
- );
225002
- }
225037
+ try {
225038
+ stores.push(createKeyChainStore("keychain-default"));
225039
+ } catch (error) {
225040
+ console.warn(
225041
+ "Failed to create keychain store:",
225042
+ error instanceof Error ? error.message : error
225043
+ );
225003
225044
  }
225004
225045
  return stores;
225005
225046
  }
@@ -225521,7 +225562,6 @@ exports.getAgentRelationByParams = getAgentRelationByParams;
225521
225562
  exports.getAgentRelations = getAgentRelations;
225522
225563
  exports.getAgentRelationsByAgent = getAgentRelationsByAgent;
225523
225564
  exports.getAgentRelationsBySource = getAgentRelationsBySource;
225524
- exports.getAgentRelationsByTarget = getAgentRelationsByTarget;
225525
225565
  exports.getAgentSubAgentInfos = getAgentSubAgentInfos;
225526
225566
  exports.getAgentToolRelationByAgent = getAgentToolRelationByAgent;
225527
225567
  exports.getAgentToolRelationById = getAgentToolRelationById;
@@ -225568,6 +225608,7 @@ exports.getProjectResourceCounts = getProjectResourceCounts;
225568
225608
  exports.getRelatedAgentsForAgent = getRelatedAgentsForAgent;
225569
225609
  exports.getRequestExecutionContext = getRequestExecutionContext;
225570
225610
  exports.getSubAgentById = getSubAgentById;
225611
+ exports.getSubAgentRelationsByTarget = getSubAgentRelationsByTarget;
225571
225612
  exports.getSubAgentsByIds = getSubAgentsByIds;
225572
225613
  exports.getTask = getTask;
225573
225614
  exports.getToolById = getToolById;
@@ -225681,7 +225722,6 @@ exports.updateTool = updateTool;
225681
225722
  exports.upsertAgent = upsertAgent;
225682
225723
  exports.upsertAgentArtifactComponentRelation = upsertAgentArtifactComponentRelation;
225683
225724
  exports.upsertAgentDataComponentRelation = upsertAgentDataComponentRelation;
225684
- exports.upsertAgentRelation = upsertAgentRelation;
225685
225725
  exports.upsertArtifactComponent = upsertArtifactComponent;
225686
225726
  exports.upsertContextConfig = upsertContextConfig;
225687
225727
  exports.upsertCredentialReference = upsertCredentialReference;
@@ -225692,6 +225732,7 @@ exports.upsertFunctionTool = upsertFunctionTool;
225692
225732
  exports.upsertLedgerArtifact = upsertLedgerArtifact;
225693
225733
  exports.upsertSubAgent = upsertSubAgent;
225694
225734
  exports.upsertSubAgentFunctionToolRelation = upsertSubAgentFunctionToolRelation;
225735
+ exports.upsertSubAgentRelation = upsertSubAgentRelation;
225695
225736
  exports.upsertSubAgentToolRelation = upsertSubAgentToolRelation;
225696
225737
  exports.upsertTool = upsertTool;
225697
225738
  exports.validateAgainstJsonSchema = validateAgainstJsonSchema;
package/dist/index.d.cts CHANGED
@@ -471,6 +471,13 @@ declare class KeyChainStore implements CredentialStore {
471
471
  * Check if a credential exists in the keychain
472
472
  */
473
473
  has(key: string): Promise<boolean>;
474
+ /**
475
+ * Check if the credential store is available and functional
476
+ */
477
+ checkAvailability(): Promise<{
478
+ available: boolean;
479
+ reason?: string;
480
+ }>;
474
481
  /**
475
482
  * Delete a credential from the keychain
476
483
  */
@@ -555,6 +562,13 @@ declare class InMemoryCredentialStore implements CredentialStore {
555
562
  * @returns True if the credential was deleted, false otherwise
556
563
  */
557
564
  delete(key: string): Promise<boolean>;
565
+ /**
566
+ * Check if the credential store is available and functional
567
+ */
568
+ checkAvailability(): Promise<{
569
+ available: boolean;
570
+ reason?: string;
571
+ }>;
558
572
  }
559
573
 
560
574
  interface NangoConfig {
@@ -610,6 +624,13 @@ declare class NangoCredentialStore implements CredentialStore {
610
624
  * Delete credentials - not supported for Nango (revoke through Nango dashboard)
611
625
  */
612
626
  delete(key: string): Promise<boolean>;
627
+ /**
628
+ * Check if the credential store is available and functional
629
+ */
630
+ checkAvailability(): Promise<{
631
+ available: boolean;
632
+ reason?: string;
633
+ }>;
613
634
  }
614
635
  /**
615
636
  * Factory function to create NangoCredentialStore
@@ -2659,7 +2680,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
2659
2680
  pages: number;
2660
2681
  };
2661
2682
  }>;
2662
- declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2683
+ declare const getSubAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2663
2684
  scopes: AgentScopeConfig;
2664
2685
  targetSubAgentId: string;
2665
2686
  pagination?: PaginationConfig;
@@ -2764,7 +2785,7 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2764
2785
  /**
2765
2786
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2766
2787
  */
2767
- declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2788
+ declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2768
2789
  tenantId: string;
2769
2790
  projectId: string;
2770
2791
  id: string;
@@ -4143,4 +4164,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4143
4164
  */
4144
4165
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4145
4166
 
4146
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
4167
+ export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentRelationsByTarget, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
package/dist/index.d.ts CHANGED
@@ -471,6 +471,13 @@ declare class KeyChainStore implements CredentialStore {
471
471
  * Check if a credential exists in the keychain
472
472
  */
473
473
  has(key: string): Promise<boolean>;
474
+ /**
475
+ * Check if the credential store is available and functional
476
+ */
477
+ checkAvailability(): Promise<{
478
+ available: boolean;
479
+ reason?: string;
480
+ }>;
474
481
  /**
475
482
  * Delete a credential from the keychain
476
483
  */
@@ -555,6 +562,13 @@ declare class InMemoryCredentialStore implements CredentialStore {
555
562
  * @returns True if the credential was deleted, false otherwise
556
563
  */
557
564
  delete(key: string): Promise<boolean>;
565
+ /**
566
+ * Check if the credential store is available and functional
567
+ */
568
+ checkAvailability(): Promise<{
569
+ available: boolean;
570
+ reason?: string;
571
+ }>;
558
572
  }
559
573
 
560
574
  interface NangoConfig {
@@ -610,6 +624,13 @@ declare class NangoCredentialStore implements CredentialStore {
610
624
  * Delete credentials - not supported for Nango (revoke through Nango dashboard)
611
625
  */
612
626
  delete(key: string): Promise<boolean>;
627
+ /**
628
+ * Check if the credential store is available and functional
629
+ */
630
+ checkAvailability(): Promise<{
631
+ available: boolean;
632
+ reason?: string;
633
+ }>;
613
634
  }
614
635
  /**
615
636
  * Factory function to create NangoCredentialStore
@@ -2659,7 +2680,7 @@ declare const getAgentRelationsBySource: (db: DatabaseClient) => (params: {
2659
2680
  pages: number;
2660
2681
  };
2661
2682
  }>;
2662
- declare const getAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2683
+ declare const getSubAgentRelationsByTarget: (db: DatabaseClient) => (params: {
2663
2684
  scopes: AgentScopeConfig;
2664
2685
  targetSubAgentId: string;
2665
2686
  pagination?: PaginationConfig;
@@ -2764,7 +2785,7 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2764
2785
  /**
2765
2786
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2766
2787
  */
2767
- declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2788
+ declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2768
2789
  tenantId: string;
2769
2790
  projectId: string;
2770
2791
  id: string;
@@ -4143,4 +4164,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4143
4164
  */
4144
4165
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4145
4166
 
4146
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
4167
+ export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentRelationsByTarget, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
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, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-QFIITHNT.js';
2
2
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-TTIPV5QP.js';
3
+ export { TaskState } from './chunk-H2F72PDA.js';
3
4
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
4
5
  export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
5
- export { TaskState } from './chunk-H2F72PDA.js';
6
6
  import { validateAndTypeAgentData, validateAgentStructure, isInternalAgent, isExternalAgent } from './chunk-QEXLYPVZ.js';
7
7
  export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from './chunk-QEXLYPVZ.js';
8
8
  import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-XKJPMUGE.js';
@@ -214303,7 +214303,7 @@ var getAgentRelationsBySource = (db) => async (params) => {
214303
214303
  pagination: { page, limit, total, pages }
214304
214304
  };
214305
214305
  };
214306
- var getAgentRelationsByTarget = (db) => async (params) => {
214306
+ var getSubAgentRelationsByTarget = (db) => async (params) => {
214307
214307
  const page = params.pagination?.page || 1;
214308
214308
  const limit = Math.min(params.pagination?.limit || 10, 100);
214309
214309
  const offset = (page - 1) * limit;
@@ -214431,7 +214431,7 @@ var getAgentRelationByParams = (db) => async (params) => {
214431
214431
  where: and(...whereConditions)
214432
214432
  });
214433
214433
  };
214434
- var upsertAgentRelation = (db) => async (params) => {
214434
+ var upsertSubAgentRelation = (db) => async (params) => {
214435
214435
  const existing = await getAgentRelationByParams(db)({
214436
214436
  scopes: { tenantId: params.tenantId, projectId: params.projectId, agentId: params.agentId },
214437
214437
  sourceSubAgentId: params.sourceSubAgentId,
@@ -218005,18 +218005,18 @@ var createFullAgentServerSide = (db, logger13 = defaultLogger) => async (scopes,
218005
218005
  }
218006
218006
  await Promise.all(agentArtifactComponentPromises);
218007
218007
  logger13.info({}, "All agent-artifact component relations created");
218008
- const agentRelationPromises = [];
218008
+ const subAgentRelationPromises = [];
218009
218009
  for (const [subAgentId, agentData2] of Object.entries(typed.subAgents)) {
218010
218010
  if (isInternalAgent(agentData2) && agentData2.canTransferTo) {
218011
218011
  for (const targetSubAgentId of agentData2.canTransferTo) {
218012
- agentRelationPromises.push(
218012
+ subAgentRelationPromises.push(
218013
218013
  (async () => {
218014
218014
  try {
218015
218015
  logger13.info(
218016
218016
  { subAgentId, targetSubAgentId, type: "transfer" },
218017
218017
  "Processing agent transfer relation"
218018
218018
  );
218019
- await upsertAgentRelation(db)({
218019
+ await upsertSubAgentRelation(db)({
218020
218020
  id: nanoid(),
218021
218021
  tenantId,
218022
218022
  projectId,
@@ -218043,14 +218043,14 @@ var createFullAgentServerSide = (db, logger13 = defaultLogger) => async (scopes,
218043
218043
  for (const targetSubAgentId of agentData2.canDelegateTo) {
218044
218044
  const targetAgentData = typed.subAgents[targetSubAgentId];
218045
218045
  const isTargetExternal = isExternalAgent(targetAgentData);
218046
- agentRelationPromises.push(
218046
+ subAgentRelationPromises.push(
218047
218047
  (async () => {
218048
218048
  try {
218049
218049
  logger13.info(
218050
218050
  { subAgentId, targetSubAgentId, type: "delegate" },
218051
218051
  "Processing agent delegation relation"
218052
218052
  );
218053
- await upsertAgentRelation(db)({
218053
+ await upsertSubAgentRelation(db)({
218054
218054
  id: nanoid(),
218055
218055
  tenantId,
218056
218056
  projectId,
@@ -218075,10 +218075,10 @@ var createFullAgentServerSide = (db, logger13 = defaultLogger) => async (scopes,
218075
218075
  }
218076
218076
  }
218077
218077
  }
218078
- await Promise.all(agentRelationPromises);
218078
+ await Promise.all(subAgentRelationPromises);
218079
218079
  logger13.info(
218080
- { agentRelationCount: agentRelationPromises.length },
218081
- "All agent relations created"
218080
+ { subAgentRelationCount: subAgentRelationPromises.length },
218081
+ "All sub-agent relations created"
218082
218082
  );
218083
218083
  const createdAgent = await getFullAgentDefinition(db)({
218084
218084
  scopes: { tenantId, projectId, agentId: finalAgentId }
@@ -221917,6 +221917,21 @@ var KeyChainStore = class {
221917
221917
  const credential = await this.get(key);
221918
221918
  return credential !== null;
221919
221919
  }
221920
+ /**
221921
+ * Check if the credential store is available and functional
221922
+ */
221923
+ async checkAvailability() {
221924
+ await this.initializationPromise;
221925
+ if (!this.keytarAvailable || !this.keytar) {
221926
+ return {
221927
+ available: false,
221928
+ reason: "Keytar not available - cannot store credentials in system keychain"
221929
+ };
221930
+ }
221931
+ return {
221932
+ available: true
221933
+ };
221934
+ }
221920
221935
  /**
221921
221936
  * Delete a credential from the keychain
221922
221937
  */
@@ -222058,6 +222073,14 @@ var InMemoryCredentialStore = class {
222058
222073
  async delete(key) {
222059
222074
  return this.credentials.delete(key);
222060
222075
  }
222076
+ /**
222077
+ * Check if the credential store is available and functional
222078
+ */
222079
+ async checkAvailability() {
222080
+ return {
222081
+ available: true
222082
+ };
222083
+ }
222061
222084
  };
222062
222085
  var logger12 = getLogger("nango-credential-store");
222063
222086
  var CredentialKeySchema = z$1.object({
@@ -222472,6 +222495,26 @@ var NangoCredentialStore = class {
222472
222495
  return false;
222473
222496
  }
222474
222497
  }
222498
+ /**
222499
+ * Check if the credential store is available and functional
222500
+ */
222501
+ async checkAvailability() {
222502
+ if (!this.nangoConfig.secretKey) {
222503
+ return {
222504
+ available: false,
222505
+ reason: "Nango secret key not configured"
222506
+ };
222507
+ }
222508
+ if (this.nangoConfig.secretKey.includes("mock") || this.nangoConfig.secretKey === "your_nango_secret_key") {
222509
+ return {
222510
+ available: false,
222511
+ reason: "Nango secret key appears to be a placeholder or mock value"
222512
+ };
222513
+ }
222514
+ return {
222515
+ available: true
222516
+ };
222517
+ }
222475
222518
  };
222476
222519
  function createNangoCredentialStore(id, config) {
222477
222520
  const nangoSecretKey = config?.secretKey || process.env.NANGO_SECRET_KEY;
@@ -222499,15 +222542,13 @@ function createDefaultCredentialStores() {
222499
222542
  })
222500
222543
  );
222501
222544
  }
222502
- if (process.env.ENABLE_KEYCHAIN_STORE === "true") {
222503
- try {
222504
- stores.push(createKeyChainStore("keychain-default"));
222505
- } catch (error) {
222506
- console.warn(
222507
- "Failed to create keychain store:",
222508
- error instanceof Error ? error.message : error
222509
- );
222510
- }
222545
+ try {
222546
+ stores.push(createKeyChainStore("keychain-default"));
222547
+ } catch (error) {
222548
+ console.warn(
222549
+ "Failed to create keychain store:",
222550
+ error instanceof Error ? error.message : error
222551
+ );
222511
222552
  }
222512
222553
  return stores;
222513
222554
  }
@@ -222578,4 +222619,4 @@ typescript/lib/typescript.js:
222578
222619
  ***************************************************************************** *)
222579
222620
  */
222580
222621
 
222581
- export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
222622
+ export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentRelationsByTarget, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
@@ -34,6 +34,14 @@ interface CredentialStore {
34
34
  * Delete a credential
35
35
  */
36
36
  delete(key: string): Promise<boolean>;
37
+ /**
38
+ * Check if the credential store is available and functional
39
+ * @returns Promise resolving to availability status and optional reason if unavailable
40
+ */
41
+ checkAvailability(): Promise<{
42
+ available: boolean;
43
+ reason?: string;
44
+ }>;
37
45
  }
38
46
  /**
39
47
  * Server configuration options for HTTP server behavior
@@ -34,6 +34,14 @@ interface CredentialStore {
34
34
  * Delete a credential
35
35
  */
36
36
  delete(key: string): Promise<boolean>;
37
+ /**
38
+ * Check if the credential store is available and functional
39
+ * @returns Promise resolving to availability status and optional reason if unavailable
40
+ */
41
+ checkAvailability(): Promise<{
42
+ available: boolean;
43
+ reason?: string;
44
+ }>;
37
45
  }
38
46
  /**
39
47
  * Server configuration options for HTTP server behavior
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20251014190820",
3
+ "version": "0.0.0-dev-20251014201448",
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",