@inkeep/agents-core 0.65.1 → 0.65.2
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/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +30 -30
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-client.js +15 -3
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-client.js +7 -1
- package/dist/db/runtime/runtime-schema.d.ts +405 -405
- package/dist/dolt/merge.js +7 -9
- package/dist/dolt/ref-scope.js +9 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/error.d.ts +58 -52
- package/dist/utils/error.js +63 -21
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/logger.d.ts +21 -2
- package/dist/utils/logger.js +67 -11
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +49 -49
- package/dist/validation/schemas.d.ts +803 -803
- package/drizzle/runtime/meta/_journal.json +2 -2
- package/package.json +1 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { runtime_schema_exports } from "./runtime-schema.js";
|
|
2
2
|
import { env, loadEnvironmentFiles } from "../../env.js";
|
|
3
|
+
import { getLogger } from "../../utils/logger.js";
|
|
4
|
+
import { getDatabaseErrorLogContext } from "../../utils/error.js";
|
|
3
5
|
import { createTestRuntimeDatabaseClientNoMigrations } from "./test-runtime-client.js";
|
|
4
6
|
import { drizzle } from "drizzle-orm/node-postgres";
|
|
5
7
|
import { Pool } from "pg";
|
|
6
8
|
|
|
7
9
|
//#region src/db/runtime/runtime-client.ts
|
|
8
10
|
loadEnvironmentFiles();
|
|
11
|
+
const runtimePoolLogger = getLogger("runtime-db-pool");
|
|
9
12
|
/**
|
|
10
13
|
* Creates a PostgreSQL database client with connection pooling
|
|
11
14
|
*/
|
|
@@ -22,7 +25,10 @@ function createAgentsRunDatabaseClient(config) {
|
|
|
22
25
|
idleTimeoutMillis: 3e4
|
|
23
26
|
});
|
|
24
27
|
pool.on("error", (err) => {
|
|
25
|
-
|
|
28
|
+
runtimePoolLogger.error({
|
|
29
|
+
error: err,
|
|
30
|
+
...getDatabaseErrorLogContext(err)
|
|
31
|
+
}, "Unexpected error on agents runtime database pool");
|
|
26
32
|
});
|
|
27
33
|
return drizzle(pool, {
|
|
28
34
|
schema: runtime_schema_exports,
|