@inkeep/agents-core 0.9.0 → 0.10.1
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/client-exports.d.cts +7 -7
- package/dist/client-exports.d.ts +7 -7
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +192 -73
- package/dist/index.d.cts +135 -156
- package/dist/index.d.ts +135 -156
- package/dist/index.js +193 -73
- package/dist/{schema-B0z-X5Hq.d.cts → schema-BXVLXPQq.d.cts} +1 -1
- package/dist/{schema-BQoMyAN6.d.ts → schema-D66X7wP_.d.ts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +4 -2
- package/dist/{utility-8RXSemmL.d.cts → utility-D7QP8MkV.d.cts} +163 -163
- package/dist/{utility-8RXSemmL.d.ts → utility-D7QP8MkV.d.ts} +163 -163
package/dist/index.js
CHANGED
|
@@ -7307,7 +7307,42 @@ var ContextResolver = class {
|
|
|
7307
7307
|
* Resolve a single context variable
|
|
7308
7308
|
*/
|
|
7309
7309
|
async resolveSingleFetchDefinition(contextConfig2, definition, templateKey, options, requestHash, result) {
|
|
7310
|
-
|
|
7310
|
+
const cachedEntry = await this.cache.get({
|
|
7311
|
+
conversationId: options.conversationId,
|
|
7312
|
+
contextConfigId: contextConfig2.id,
|
|
7313
|
+
contextVariableKey: templateKey,
|
|
7314
|
+
requestHash
|
|
7315
|
+
});
|
|
7316
|
+
if (cachedEntry) {
|
|
7317
|
+
result.resolvedContext[templateKey] = cachedEntry.value;
|
|
7318
|
+
result.cacheHits.push(definition.id);
|
|
7319
|
+
logger7.debug(
|
|
7320
|
+
{
|
|
7321
|
+
definitionId: definition.id,
|
|
7322
|
+
templateKey,
|
|
7323
|
+
conversationId: options.conversationId
|
|
7324
|
+
},
|
|
7325
|
+
"Cache hit for context variable"
|
|
7326
|
+
);
|
|
7327
|
+
return;
|
|
7328
|
+
}
|
|
7329
|
+
result.cacheMisses.push(definition.id);
|
|
7330
|
+
logger7.debug(
|
|
7331
|
+
{
|
|
7332
|
+
definitionId: definition.id,
|
|
7333
|
+
templateKey,
|
|
7334
|
+
conversationId: options.conversationId
|
|
7335
|
+
},
|
|
7336
|
+
"Cache miss for context variable, fetching data"
|
|
7337
|
+
);
|
|
7338
|
+
const definitionWithConversationId = {
|
|
7339
|
+
...definition,
|
|
7340
|
+
fetchConfig: {
|
|
7341
|
+
...definition.fetchConfig,
|
|
7342
|
+
conversationId: options.conversationId
|
|
7343
|
+
}
|
|
7344
|
+
};
|
|
7345
|
+
const fetchedData = await tracer.startActiveSpan(
|
|
7311
7346
|
"context-resolver.resolve_single_fetch_definition",
|
|
7312
7347
|
{
|
|
7313
7348
|
attributes: {
|
|
@@ -7320,78 +7355,17 @@ var ContextResolver = class {
|
|
|
7320
7355
|
},
|
|
7321
7356
|
async (parentSpan) => {
|
|
7322
7357
|
try {
|
|
7323
|
-
const
|
|
7324
|
-
conversationId: options.conversationId,
|
|
7325
|
-
contextConfigId: contextConfig2.id,
|
|
7326
|
-
contextVariableKey: templateKey,
|
|
7327
|
-
requestHash
|
|
7328
|
-
});
|
|
7329
|
-
if (cachedEntry) {
|
|
7330
|
-
result.resolvedContext[templateKey] = cachedEntry.value;
|
|
7331
|
-
result.cacheHits.push(definition.id);
|
|
7332
|
-
parentSpan.setStatus({ code: SpanStatusCode.OK });
|
|
7333
|
-
parentSpan.addEvent("context.cache_hit", {
|
|
7334
|
-
definition_id: definition.id,
|
|
7335
|
-
template_key: templateKey
|
|
7336
|
-
});
|
|
7337
|
-
logger7.debug(
|
|
7338
|
-
{
|
|
7339
|
-
definitionId: definition.id,
|
|
7340
|
-
templateKey,
|
|
7341
|
-
conversationId: options.conversationId
|
|
7342
|
-
},
|
|
7343
|
-
"Cache hit for context variable"
|
|
7344
|
-
);
|
|
7345
|
-
return;
|
|
7346
|
-
}
|
|
7347
|
-
result.cacheMisses.push(definition.id);
|
|
7348
|
-
parentSpan.addEvent("context.cache_miss", {
|
|
7349
|
-
definition_id: definition.id,
|
|
7350
|
-
template_key: templateKey
|
|
7351
|
-
});
|
|
7352
|
-
logger7.debug(
|
|
7353
|
-
{
|
|
7354
|
-
definitionId: definition.id,
|
|
7355
|
-
templateKey,
|
|
7356
|
-
conversationId: options.conversationId
|
|
7357
|
-
},
|
|
7358
|
-
"Cache miss for context variable, fetching data"
|
|
7359
|
-
);
|
|
7360
|
-
const definitionWithConversationId = {
|
|
7361
|
-
...definition,
|
|
7362
|
-
fetchConfig: {
|
|
7363
|
-
...definition.fetchConfig,
|
|
7364
|
-
conversationId: options.conversationId
|
|
7365
|
-
}
|
|
7366
|
-
};
|
|
7367
|
-
const fetchedData = await this.fetcher.fetch(
|
|
7358
|
+
const data = await this.fetcher.fetch(
|
|
7368
7359
|
definitionWithConversationId,
|
|
7369
7360
|
result.resolvedContext
|
|
7370
7361
|
);
|
|
7371
|
-
result.resolvedContext[templateKey] = fetchedData;
|
|
7372
|
-
result.fetchedDefinitions.push(definition.id);
|
|
7373
|
-
await this.cache.set({
|
|
7374
|
-
contextConfigId: contextConfig2.id,
|
|
7375
|
-
contextVariableKey: templateKey,
|
|
7376
|
-
conversationId: options.conversationId,
|
|
7377
|
-
value: fetchedData,
|
|
7378
|
-
requestHash,
|
|
7379
|
-
tenantId: this.tenantId
|
|
7380
|
-
});
|
|
7381
7362
|
parentSpan.setStatus({ code: SpanStatusCode.OK });
|
|
7382
7363
|
parentSpan.addEvent("context.fetch_success", {
|
|
7383
7364
|
definition_id: definition.id,
|
|
7384
7365
|
template_key: templateKey,
|
|
7385
7366
|
source: definition.fetchConfig.url
|
|
7386
7367
|
});
|
|
7387
|
-
|
|
7388
|
-
{
|
|
7389
|
-
definitionId: definition.id,
|
|
7390
|
-
templateKey,
|
|
7391
|
-
conversationId: options.conversationId
|
|
7392
|
-
},
|
|
7393
|
-
"Context variable resolved and cached"
|
|
7394
|
-
);
|
|
7368
|
+
return data;
|
|
7395
7369
|
} catch (error) {
|
|
7396
7370
|
setSpanWithError(parentSpan, error);
|
|
7397
7371
|
throw error;
|
|
@@ -7400,6 +7374,24 @@ var ContextResolver = class {
|
|
|
7400
7374
|
}
|
|
7401
7375
|
}
|
|
7402
7376
|
);
|
|
7377
|
+
result.resolvedContext[templateKey] = fetchedData;
|
|
7378
|
+
result.fetchedDefinitions.push(definition.id);
|
|
7379
|
+
await this.cache.set({
|
|
7380
|
+
contextConfigId: contextConfig2.id,
|
|
7381
|
+
contextVariableKey: templateKey,
|
|
7382
|
+
conversationId: options.conversationId,
|
|
7383
|
+
value: fetchedData,
|
|
7384
|
+
requestHash,
|
|
7385
|
+
tenantId: this.tenantId
|
|
7386
|
+
});
|
|
7387
|
+
logger7.debug(
|
|
7388
|
+
{
|
|
7389
|
+
definitionId: definition.id,
|
|
7390
|
+
templateKey,
|
|
7391
|
+
conversationId: options.conversationId
|
|
7392
|
+
},
|
|
7393
|
+
"Context variable resolved and cached"
|
|
7394
|
+
);
|
|
7403
7395
|
}
|
|
7404
7396
|
/**
|
|
7405
7397
|
* Resolve the request context for a given conversation
|
|
@@ -8667,14 +8659,31 @@ var NangoCredentialStore = class {
|
|
|
8667
8659
|
if (!isSupportedAuthMode(type)) {
|
|
8668
8660
|
return null;
|
|
8669
8661
|
}
|
|
8662
|
+
const extractAccessTokenForBearerType = (tokenString) => {
|
|
8663
|
+
if (tokenString && typeof tokenString === "string") {
|
|
8664
|
+
try {
|
|
8665
|
+
const parsedToken = JSON.parse(tokenString);
|
|
8666
|
+
if (parsedToken.access_token && typeof parsedToken.access_token === "string") {
|
|
8667
|
+
return parsedToken.access_token;
|
|
8668
|
+
}
|
|
8669
|
+
} catch {
|
|
8670
|
+
}
|
|
8671
|
+
return tokenString;
|
|
8672
|
+
}
|
|
8673
|
+
return void 0;
|
|
8674
|
+
};
|
|
8670
8675
|
switch (type) {
|
|
8671
8676
|
case "API_KEY":
|
|
8672
8677
|
return {
|
|
8673
|
-
token:
|
|
8678
|
+
token: extractAccessTokenForBearerType(
|
|
8679
|
+
credentials.apiKey || credentials.api_key
|
|
8680
|
+
)
|
|
8674
8681
|
};
|
|
8675
8682
|
case "APP":
|
|
8676
8683
|
return {
|
|
8677
|
-
token:
|
|
8684
|
+
token: extractAccessTokenForBearerType(
|
|
8685
|
+
credentials.accessToken || credentials.access_token
|
|
8686
|
+
)
|
|
8678
8687
|
};
|
|
8679
8688
|
case "BASIC":
|
|
8680
8689
|
return {
|
|
@@ -8685,7 +8694,7 @@ var NangoCredentialStore = class {
|
|
|
8685
8694
|
return credentials.raw;
|
|
8686
8695
|
case "JWT":
|
|
8687
8696
|
return {
|
|
8688
|
-
token: credentials.token
|
|
8697
|
+
token: extractAccessTokenForBearerType(credentials.token)
|
|
8689
8698
|
};
|
|
8690
8699
|
case "OAUTH1":
|
|
8691
8700
|
return {
|
|
@@ -8694,12 +8703,12 @@ var NangoCredentialStore = class {
|
|
|
8694
8703
|
};
|
|
8695
8704
|
case "OAUTH2":
|
|
8696
8705
|
return {
|
|
8697
|
-
token: credentials.access_token,
|
|
8706
|
+
token: extractAccessTokenForBearerType(credentials.access_token),
|
|
8698
8707
|
refresh_token: credentials.refresh_token
|
|
8699
8708
|
};
|
|
8700
8709
|
case "OAUTH2_CC":
|
|
8701
8710
|
return {
|
|
8702
|
-
token: credentials.token,
|
|
8711
|
+
token: extractAccessTokenForBearerType(credentials.token),
|
|
8703
8712
|
client_certificate: credentials.client_certificate,
|
|
8704
8713
|
client_id: credentials.client_id,
|
|
8705
8714
|
client_private_key: credentials.client_private_key,
|
|
@@ -8725,6 +8734,104 @@ var NangoCredentialStore = class {
|
|
|
8725
8734
|
}
|
|
8726
8735
|
return result;
|
|
8727
8736
|
}
|
|
8737
|
+
/**
|
|
8738
|
+
* Fetch a specific Nango integration
|
|
8739
|
+
*/
|
|
8740
|
+
async fetchNangoIntegration(uniqueKey) {
|
|
8741
|
+
try {
|
|
8742
|
+
const response = await this.nangoClient.getIntegration(
|
|
8743
|
+
{ uniqueKey },
|
|
8744
|
+
{ include: ["credentials"] }
|
|
8745
|
+
);
|
|
8746
|
+
const integration = response.data;
|
|
8747
|
+
let areCredentialsSet = false;
|
|
8748
|
+
if (integration.credentials?.type === "OAUTH2" || integration.credentials?.type === "OAUTH1" || integration.credentials?.type === "TBA") {
|
|
8749
|
+
areCredentialsSet = !!(integration.credentials?.client_id && integration.credentials?.client_secret);
|
|
8750
|
+
} else if (integration.credentials?.type === "APP") {
|
|
8751
|
+
areCredentialsSet = !!(integration.credentials?.app_id && integration.credentials?.app_link);
|
|
8752
|
+
} else {
|
|
8753
|
+
areCredentialsSet = true;
|
|
8754
|
+
}
|
|
8755
|
+
const { credentials: _credentials, ...integrationWithoutCredentials } = integration;
|
|
8756
|
+
return {
|
|
8757
|
+
...integrationWithoutCredentials,
|
|
8758
|
+
areCredentialsSet
|
|
8759
|
+
};
|
|
8760
|
+
} catch (error) {
|
|
8761
|
+
if (error && typeof error === "object" && "status" in error && error.status === 404) {
|
|
8762
|
+
return null;
|
|
8763
|
+
}
|
|
8764
|
+
console.error(`Failed to fetch integration ${uniqueKey}:`, error);
|
|
8765
|
+
return null;
|
|
8766
|
+
}
|
|
8767
|
+
}
|
|
8768
|
+
/**
|
|
8769
|
+
* Create an API key credential by setting up Nango integration and importing the connection
|
|
8770
|
+
*/
|
|
8771
|
+
async createNangoApiKeyConnection({
|
|
8772
|
+
name,
|
|
8773
|
+
apiKeyToSet,
|
|
8774
|
+
metadata
|
|
8775
|
+
}) {
|
|
8776
|
+
const provider = "private-api-bearer";
|
|
8777
|
+
try {
|
|
8778
|
+
let integration;
|
|
8779
|
+
try {
|
|
8780
|
+
const response2 = await this.nangoClient.createIntegration({
|
|
8781
|
+
provider,
|
|
8782
|
+
unique_key: name,
|
|
8783
|
+
display_name: name
|
|
8784
|
+
});
|
|
8785
|
+
integration = response2.data;
|
|
8786
|
+
} catch (error) {
|
|
8787
|
+
const existingIntegration = await this.fetchNangoIntegration(name);
|
|
8788
|
+
if (existingIntegration) {
|
|
8789
|
+
integration = existingIntegration;
|
|
8790
|
+
} else {
|
|
8791
|
+
console.log(`Integration creation failed for unexpected reasons`, error);
|
|
8792
|
+
}
|
|
8793
|
+
}
|
|
8794
|
+
if (!integration) {
|
|
8795
|
+
throw new Error(`Integration '${name}' not found`);
|
|
8796
|
+
}
|
|
8797
|
+
const importConnectionUrl = `${process.env.NANGO_SERVER_URL || "https://api.nango.dev"}/connections`;
|
|
8798
|
+
const credentials = {
|
|
8799
|
+
type: "API_KEY",
|
|
8800
|
+
apiKey: apiKeyToSet
|
|
8801
|
+
};
|
|
8802
|
+
const body = {
|
|
8803
|
+
provider_config_key: integration.unique_key,
|
|
8804
|
+
connection_id: name,
|
|
8805
|
+
metadata,
|
|
8806
|
+
credentials
|
|
8807
|
+
};
|
|
8808
|
+
const response = await fetch(importConnectionUrl, {
|
|
8809
|
+
method: "POST",
|
|
8810
|
+
headers: {
|
|
8811
|
+
Authorization: `Bearer ${process.env.NANGO_SECRET_KEY}`,
|
|
8812
|
+
"Content-Type": "application/json"
|
|
8813
|
+
},
|
|
8814
|
+
body: JSON.stringify(body)
|
|
8815
|
+
});
|
|
8816
|
+
if (!response.ok) {
|
|
8817
|
+
throw new Error(
|
|
8818
|
+
`Failed to import connection: HTTP ${response.status} - ${response.statusText}`
|
|
8819
|
+
);
|
|
8820
|
+
}
|
|
8821
|
+
} catch (error) {
|
|
8822
|
+
console.error("Unexpected error creating API key credential:", error);
|
|
8823
|
+
logger11.error(
|
|
8824
|
+
{
|
|
8825
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
8826
|
+
name
|
|
8827
|
+
},
|
|
8828
|
+
`Unexpected error creating API key credential '${name}'`
|
|
8829
|
+
);
|
|
8830
|
+
throw new Error(
|
|
8831
|
+
`Failed to create API key credential '${name}': ${error instanceof Error ? error.message : "Unknown error"}`
|
|
8832
|
+
);
|
|
8833
|
+
}
|
|
8834
|
+
}
|
|
8728
8835
|
/**
|
|
8729
8836
|
* Fetch credentials from Nango API using connection information
|
|
8730
8837
|
* @param connectionId - The connection ID for the Nango connection
|
|
@@ -8814,8 +8921,12 @@ var NangoCredentialStore = class {
|
|
|
8814
8921
|
/**
|
|
8815
8922
|
* Set credentials - not supported for Nango (OAuth flow handles this)
|
|
8816
8923
|
*/
|
|
8817
|
-
async set(
|
|
8818
|
-
|
|
8924
|
+
async set(key, value) {
|
|
8925
|
+
await this.createNangoApiKeyConnection({
|
|
8926
|
+
name: key,
|
|
8927
|
+
apiKeyToSet: value,
|
|
8928
|
+
metadata: {}
|
|
8929
|
+
});
|
|
8819
8930
|
}
|
|
8820
8931
|
/**
|
|
8821
8932
|
* Check if credentials exist by attempting to fetch them
|
|
@@ -8909,7 +9020,16 @@ function createDefaultCredentialStores() {
|
|
|
8909
9020
|
})
|
|
8910
9021
|
);
|
|
8911
9022
|
}
|
|
8912
|
-
|
|
9023
|
+
if (process.env.ENABLE_KEYCHAIN_STORE === "true") {
|
|
9024
|
+
try {
|
|
9025
|
+
stores.push(createKeyChainStore("keychain-default"));
|
|
9026
|
+
} catch (error) {
|
|
9027
|
+
console.warn(
|
|
9028
|
+
"Failed to create keychain store:",
|
|
9029
|
+
error instanceof Error ? error.message : error
|
|
9030
|
+
);
|
|
9031
|
+
}
|
|
9032
|
+
}
|
|
8913
9033
|
return stores;
|
|
8914
9034
|
}
|
|
8915
9035
|
var loadEnvironmentFiles = () => {
|
|
@@ -8962,4 +9082,4 @@ ${error.message}`
|
|
|
8962
9082
|
};
|
|
8963
9083
|
parseEnv();
|
|
8964
9084
|
|
|
8965
|
-
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, PinoLogger, TemplateEngine, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient,
|
|
9085
|
+
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, PinoLogger, TemplateEngine, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
2
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
-
import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-D7QP8MkV.cjs';
|
|
4
4
|
|
|
5
5
|
declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
6
6
|
name: "projects";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
2
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
-
import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { f as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, g as ToolMcpConfig, h as ToolServerCapabilities, i as ConversationMetadata, j as MessageContent, k as MessageMetadata, P as Part } from './utility-D7QP8MkV.js';
|
|
4
4
|
|
|
5
5
|
declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
6
6
|
name: "projects";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CredentialStoreType } from '../utility-
|
|
2
|
-
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-
|
|
1
|
+
import { e as CredentialStoreType } from '../utility-D7QP8MkV.cjs';
|
|
2
|
+
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-D7QP8MkV.cjs';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'drizzle-zod';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CredentialStoreType } from '../utility-
|
|
2
|
-
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-
|
|
1
|
+
import { e as CredentialStoreType } from '../utility-D7QP8MkV.js';
|
|
2
|
+
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, bA as AgentApiSelect, bC as AgentApiUpdate, cu as AgentArtifactComponentApiInsert, ct as AgentArtifactComponentApiSelect, cv as AgentArtifactComponentApiUpdate, cr as AgentArtifactComponentInsert, cq as AgentArtifactComponentSelect, cs as AgentArtifactComponentUpdate, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, ck as AgentDataComponentApiSelect, cm as AgentDataComponentApiUpdate, ci as AgentDataComponentInsert, ch as AgentDataComponentSelect, cj as AgentDataComponentUpdate, cT as AgentDefinition, bL as AgentGraphApiInsert, bK as AgentGraphApiSelect, bM as AgentGraphApiUpdate, r as AgentGraphInsert, bJ as AgentGraphSelect, s as AgentGraphUpdate, y as AgentInsert, ay as AgentProvider, bF as AgentRelationApiInsert, bE as AgentRelationApiSelect, bG as AgentRelationApiUpdate, v as AgentRelationInsert, bH as AgentRelationQuery, bD as AgentRelationSelect, w as AgentRelationUpdate, u as AgentScopeConfig, B as AgentSelect, az as AgentSkill, cJ as AgentToolRelationApiInsert, cI as AgentToolRelationApiSelect, cK as AgentToolRelationApiUpdate, cH as AgentToolRelationInsert, cG as AgentToolRelationSelect, x as AgentToolRelationUpdate, z as AgentUpdate, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, cB as ApiKeyApiInsert, cA as ApiKeyApiSelect, cC as ApiKeyApiUpdate, K as ApiKeyCreateResult, H as ApiKeyInsert, D as ApiKeySelect, I as ApiKeyUpdate, a7 as Artifact, co as ArtifactComponentApiInsert, cn as ArtifactComponentApiSelect, cp as ArtifactComponentApiUpdate, N as ArtifactComponentInsert, L as ArtifactComponentSelect, O as ArtifactComponentUpdate, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, cb as ContextCacheApiSelect, cd as ContextCacheApiUpdate, d8 as ContextCacheEntry, R as ContextCacheInsert, Q as ContextCacheSelect, ca as ContextCacheUpdate, c6 as ContextConfigApiInsert, c5 as ContextConfigApiSelect, c7 as ContextConfigApiUpdate, U as ContextConfigInsert, m as ContextConfigSelect, V as ContextConfigUpdate, f as ContextFetchDefinition, b$ as ConversationApiInsert, b_ as ConversationApiSelect, c0 as ConversationApiUpdate, C as ConversationHistoryConfig, X as ConversationInsert, i as ConversationMetadata, d6 as ConversationScopeOptions, W as ConversationSelect, Y as ConversationUpdate, J as CreateApiKeyParams, l as CredentialReferenceApiInsert, cE as CredentialReferenceApiSelect, cF as CredentialReferenceApiUpdate, $ as CredentialReferenceInsert, Z as CredentialReferenceSelect, a0 as CredentialReferenceUpdate, cf as DataComponentApiInsert, ce as DataComponentApiSelect, cg as DataComponentApiUpdate, a2 as DataComponentInsert, a1 as DataComponentSelect, a3 as DataComponentUpdate, av as DataPart, ao as ExecutionContext, cx as ExternalAgentApiInsert, cw as ExternalAgentApiSelect, cy as ExternalAgentApiUpdate, a4 as ExternalAgentInsert, bI as ExternalAgentRelationApiInsert, E as ExternalAgentRelationInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, c9 as FetchConfig, c8 as FetchDefinition, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, t as FullGraphDefinition, ac as FullProjectDefinition, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, o as GraphScopeConfig, aC as HTTPAuthSecurityScheme, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, cN as LedgerArtifactApiSelect, cP as LedgerArtifactApiUpdate, cL as LedgerArtifactInsert, a8 as LedgerArtifactSelect, cM as LedgerArtifactUpdate, dg as MCPServerType, n as MCPToolConfig, M as MCPTransportType, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, al as McpTool, dd as McpToolDefinition, db as McpTransportConfig, aM as Message, c3 as MessageApiInsert, c2 as MessageApiSelect, c4 as MessageApiUpdate, j as MessageContent, aa as MessageInsert, k as MessageMetadata, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, ab as MessageUpdate, a9 as MessageVisibility, aT as MethodNotFoundError, d3 as ModelSettings, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, q as PaginationConfig, af as PaginationResult, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, cV as ProjectApiSelect, cX as ProjectApiUpdate, ad as ProjectInfo, ah as ProjectInsert, d2 as ProjectModels, ag as ProjectResourceCounts, p as ProjectScopeConfig, ae as ProjectSelect, ai as ProjectUpdate, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, d5 as StatusComponent, d4 as StatusUpdateSettings, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, bO as TaskApiSelect, bQ as TaskApiUpdate, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, aj as TaskInsert, T as TaskMetadataConfig, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, bU as TaskRelationApiSelect, bW as TaskRelationApiUpdate, bS as TaskRelationInsert, bR as TaskRelationSelect, bT as TaskRelationUpdate, bj as TaskResubscriptionRequest, ak as TaskSelect, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, aq as TextPart, bY as ToolApiInsert, bX as ToolApiSelect, bZ as ToolApiUpdate, cU as ToolDefinition, am as ToolInsert, g as ToolMcpConfig, _ as ToolSelect, h as ToolServerCapabilities, an as ToolUpdate, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES } from '../utility-D7QP8MkV.js';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'drizzle-zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { cT as AgentDefinition, cS as InternalAgentDefinition, cx as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, t as FullGraphDefinition } from '../utility-
|
|
3
|
-
export { dt as AgentApiInsertSchema, ds as AgentApiSelectSchema, du as AgentApiUpdateSchema, eE as AgentArtifactComponentApiInsertSchema, eD as AgentArtifactComponentApiSelectSchema, eF as AgentArtifactComponentApiUpdateSchema, eB as AgentArtifactComponentInsertSchema, eA as AgentArtifactComponentSelectSchema, eC as AgentArtifactComponentUpdateSchema, es as AgentDataComponentApiInsertSchema, er as AgentDataComponentApiSelectSchema, et as AgentDataComponentApiUpdateSchema, ep as AgentDataComponentInsertSchema, eo as AgentDataComponentSelectSchema, eq as AgentDataComponentUpdateSchema, dI as AgentGraphApiInsertSchema, dH as AgentGraphApiSelectSchema, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, dz as AgentRelationApiInsertSchema, dy as AgentRelationApiSelectSchema, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, dB as AgentRelationQuerySchema, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, d as AgentStopWhen, a as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, eR as ApiKeyApiCreationResponseSchema, eS as ApiKeyApiInsertSchema, eQ as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, ey as ArtifactComponentApiInsertSchema, ex as ArtifactComponentApiSelectSchema, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ef as ContextCacheApiInsertSchema, ee as ContextCacheApiSelectSchema, eg as ContextCacheApiUpdateSchema, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ed as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e3 as ConversationApiInsertSchema, e2 as ConversationApiSelectSchema, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, em as DataComponentApiInsertSchema, el as DataComponentApiSelectSchema, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eK as ExternalAgentApiInsertSchema, eJ as ExternalAgentApiSelectSchema, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dW as McpTransportConfigSchema, e9 as MessageApiInsertSchema, e8 as MessageApiSelectSchema, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, e5 as MessageSelectSchema, e7 as MessageUpdateSchema, dm as ModelSchema, dl as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, b as StopWhen, S as StopWhenSchema, dO as TaskApiInsertSchema, dN as TaskApiSelectSchema, dP as TaskApiUpdateSchema, dL as TaskInsertSchema, dU as TaskRelationApiInsertSchema, dT as TaskRelationApiSelectSchema, dV as TaskRelationApiUpdateSchema, dR as TaskRelationInsertSchema, dQ as TaskRelationSelectSchema, dS as TaskRelationUpdateSchema, dK as TaskSelectSchema, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, dk as resourceIdSchema } from '../utility-
|
|
2
|
+
import { cT as AgentDefinition, cS as InternalAgentDefinition, cx as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, t as FullGraphDefinition } from '../utility-D7QP8MkV.cjs';
|
|
3
|
+
export { dt as AgentApiInsertSchema, ds as AgentApiSelectSchema, du as AgentApiUpdateSchema, eE as AgentArtifactComponentApiInsertSchema, eD as AgentArtifactComponentApiSelectSchema, eF as AgentArtifactComponentApiUpdateSchema, eB as AgentArtifactComponentInsertSchema, eA as AgentArtifactComponentSelectSchema, eC as AgentArtifactComponentUpdateSchema, es as AgentDataComponentApiInsertSchema, er as AgentDataComponentApiSelectSchema, et as AgentDataComponentApiUpdateSchema, ep as AgentDataComponentInsertSchema, eo as AgentDataComponentSelectSchema, eq as AgentDataComponentUpdateSchema, dI as AgentGraphApiInsertSchema, dH as AgentGraphApiSelectSchema, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, dz as AgentRelationApiInsertSchema, dy as AgentRelationApiSelectSchema, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, dB as AgentRelationQuerySchema, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, d as AgentStopWhen, a as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, eR as ApiKeyApiCreationResponseSchema, eS as ApiKeyApiInsertSchema, eQ as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, ey as ArtifactComponentApiInsertSchema, ex as ArtifactComponentApiSelectSchema, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ef as ContextCacheApiInsertSchema, ee as ContextCacheApiSelectSchema, eg as ContextCacheApiUpdateSchema, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ed as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e3 as ConversationApiInsertSchema, e2 as ConversationApiSelectSchema, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, em as DataComponentApiInsertSchema, el as DataComponentApiSelectSchema, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eK as ExternalAgentApiInsertSchema, eJ as ExternalAgentApiSelectSchema, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dW as McpTransportConfigSchema, e9 as MessageApiInsertSchema, e8 as MessageApiSelectSchema, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, e5 as MessageSelectSchema, e7 as MessageUpdateSchema, dm as ModelSchema, dl as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, b as StopWhen, S as StopWhenSchema, dO as TaskApiInsertSchema, dN as TaskApiSelectSchema, dP as TaskApiUpdateSchema, dL as TaskInsertSchema, dU as TaskRelationApiInsertSchema, dT as TaskRelationApiSelectSchema, dV as TaskRelationApiUpdateSchema, dR as TaskRelationInsertSchema, dQ as TaskRelationSelectSchema, dS as TaskRelationUpdateSchema, dK as TaskSelectSchema, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, dk as resourceIdSchema } from '../utility-D7QP8MkV.cjs';
|
|
4
4
|
import 'drizzle-zod';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|
|
6
6
|
import '@hono/zod-openapi';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { cT as AgentDefinition, cS as InternalAgentDefinition, cx as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, t as FullGraphDefinition } from '../utility-
|
|
3
|
-
export { dt as AgentApiInsertSchema, ds as AgentApiSelectSchema, du as AgentApiUpdateSchema, eE as AgentArtifactComponentApiInsertSchema, eD as AgentArtifactComponentApiSelectSchema, eF as AgentArtifactComponentApiUpdateSchema, eB as AgentArtifactComponentInsertSchema, eA as AgentArtifactComponentSelectSchema, eC as AgentArtifactComponentUpdateSchema, es as AgentDataComponentApiInsertSchema, er as AgentDataComponentApiSelectSchema, et as AgentDataComponentApiUpdateSchema, ep as AgentDataComponentInsertSchema, eo as AgentDataComponentSelectSchema, eq as AgentDataComponentUpdateSchema, dI as AgentGraphApiInsertSchema, dH as AgentGraphApiSelectSchema, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, dz as AgentRelationApiInsertSchema, dy as AgentRelationApiSelectSchema, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, dB as AgentRelationQuerySchema, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, d as AgentStopWhen, a as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, eR as ApiKeyApiCreationResponseSchema, eS as ApiKeyApiInsertSchema, eQ as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, ey as ArtifactComponentApiInsertSchema, ex as ArtifactComponentApiSelectSchema, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ef as ContextCacheApiInsertSchema, ee as ContextCacheApiSelectSchema, eg as ContextCacheApiUpdateSchema, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ed as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e3 as ConversationApiInsertSchema, e2 as ConversationApiSelectSchema, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, em as DataComponentApiInsertSchema, el as DataComponentApiSelectSchema, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eK as ExternalAgentApiInsertSchema, eJ as ExternalAgentApiSelectSchema, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dW as McpTransportConfigSchema, e9 as MessageApiInsertSchema, e8 as MessageApiSelectSchema, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, e5 as MessageSelectSchema, e7 as MessageUpdateSchema, dm as ModelSchema, dl as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, b as StopWhen, S as StopWhenSchema, dO as TaskApiInsertSchema, dN as TaskApiSelectSchema, dP as TaskApiUpdateSchema, dL as TaskInsertSchema, dU as TaskRelationApiInsertSchema, dT as TaskRelationApiSelectSchema, dV as TaskRelationApiUpdateSchema, dR as TaskRelationInsertSchema, dQ as TaskRelationSelectSchema, dS as TaskRelationUpdateSchema, dK as TaskSelectSchema, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, dk as resourceIdSchema } from '../utility-
|
|
2
|
+
import { cT as AgentDefinition, cS as InternalAgentDefinition, cx as ExternalAgentApiInsert, fq as FullGraphDefinitionSchema, t as FullGraphDefinition } from '../utility-D7QP8MkV.js';
|
|
3
|
+
export { dt as AgentApiInsertSchema, ds as AgentApiSelectSchema, du as AgentApiUpdateSchema, eE as AgentArtifactComponentApiInsertSchema, eD as AgentArtifactComponentApiSelectSchema, eF as AgentArtifactComponentApiUpdateSchema, eB as AgentArtifactComponentInsertSchema, eA as AgentArtifactComponentSelectSchema, eC as AgentArtifactComponentUpdateSchema, es as AgentDataComponentApiInsertSchema, er as AgentDataComponentApiSelectSchema, et as AgentDataComponentApiUpdateSchema, ep as AgentDataComponentInsertSchema, eo as AgentDataComponentSelectSchema, eq as AgentDataComponentUpdateSchema, dI as AgentGraphApiInsertSchema, dH as AgentGraphApiSelectSchema, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, dz as AgentRelationApiInsertSchema, dy as AgentRelationApiSelectSchema, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, dB as AgentRelationQuerySchema, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, d as AgentStopWhen, a as AgentStopWhenSchema, ff as AgentToolRelationApiInsertSchema, fe as AgentToolRelationApiSelectSchema, fg as AgentToolRelationApiUpdateSchema, fc as AgentToolRelationInsertSchema, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, eR as ApiKeyApiCreationResponseSchema, eS as ApiKeyApiInsertSchema, eQ as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, ey as ArtifactComponentApiInsertSchema, ex as ArtifactComponentApiSelectSchema, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, fp as CanUseItemSchema, ef as ContextCacheApiInsertSchema, ee as ContextCacheApiSelectSchema, eg as ContextCacheApiUpdateSchema, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ed as ContextCacheUpdateSchema, f9 as ContextConfigApiInsertSchema, f8 as ContextConfigApiSelectSchema, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, e3 as ConversationApiInsertSchema, e2 as ConversationApiSelectSchema, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, eW as CredentialReferenceApiSelectSchema, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, em as DataComponentApiInsertSchema, el as DataComponentApiSelectSchema, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, fv as ErrorResponseSchema, fw as ExistsResponseSchema, eK as ExternalAgentApiInsertSchema, eJ as ExternalAgentApiSelectSchema, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, f3 as FetchConfigSchema, f4 as FetchDefinitionSchema, F as FullGraphAgentInsertSchema, fE as FullProjectDefinitionSchema, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, fF as HeadersScopeSchema, fM as IdParamsSchema, fl as LedgerArtifactApiInsertSchema, fk as LedgerArtifactApiSelectSchema, fm as LedgerArtifactApiUpdateSchema, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dW as McpTransportConfigSchema, e9 as MessageApiInsertSchema, e8 as MessageApiSelectSchema, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, e5 as MessageSelectSchema, e7 as MessageUpdateSchema, dm as ModelSchema, dl as ModelSettingsSchema, fN as PaginationQueryParamsSchema, fs as PaginationSchema, fC as ProjectApiInsertSchema, fB as ProjectApiSelectSchema, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, fx as RemovedResponseSchema, fu as SingleResponseSchema, fn as StatusComponentSchema, fo as StatusUpdateSchema, b as StopWhen, S as StopWhenSchema, dO as TaskApiInsertSchema, dN as TaskApiSelectSchema, dP as TaskApiUpdateSchema, dL as TaskInsertSchema, dU as TaskRelationApiInsertSchema, dT as TaskRelationApiSelectSchema, dV as TaskRelationApiUpdateSchema, dR as TaskRelationInsertSchema, dQ as TaskRelationSelectSchema, dS as TaskRelationUpdateSchema, dK as TaskSelectSchema, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, f1 as ToolApiInsertSchema, f0 as ToolApiSelectSchema, f2 as ToolApiUpdateSchema, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, dk as resourceIdSchema } from '../utility-D7QP8MkV.js';
|
|
4
4
|
import 'drizzle-zod';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|
|
6
6
|
import '@hono/zod-openapi';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
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",
|
|
@@ -57,13 +57,15 @@
|
|
|
57
57
|
"find-up": "^7.0.0",
|
|
58
58
|
"hono": "^4.9.7",
|
|
59
59
|
"jmespath": "^0.16.0",
|
|
60
|
-
"keytar": "^7.9.0",
|
|
61
60
|
"nanoid": "^5.0.9",
|
|
62
61
|
"pino": "^9.11.0",
|
|
63
62
|
"pino-pretty": "^13.1.1",
|
|
64
63
|
"ts-pattern": "^5.7.1",
|
|
65
64
|
"zod": "^4.1.5"
|
|
66
65
|
},
|
|
66
|
+
"optionalDependencies": {
|
|
67
|
+
"keytar": "^7.9.0"
|
|
68
|
+
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@types/jmespath": "^0.15.2",
|
|
69
71
|
"@types/node": "^20.11.24",
|