@inkeep/agents-core 0.47.3 → 0.47.4

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.
@@ -24,7 +24,7 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
24
  updatedAt: string;
25
25
  metadata: ConversationMetadata | null;
26
26
  ref: {
27
- type: "tag" | "commit" | "branch";
27
+ type: "commit" | "tag" | "branch";
28
28
  name: string;
29
29
  hash: string;
30
30
  } | null;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -93,7 +93,7 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
93
  updatedAt: string;
94
94
  metadata: ConversationMetadata | null;
95
95
  ref: {
96
- type: "tag" | "commit" | "branch";
96
+ type: "commit" | "tag" | "branch";
97
97
  name: string;
98
98
  hash: string;
99
99
  } | null;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -129,7 +129,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
129
129
  updatedAt: string;
130
130
  metadata: ConversationMetadata | null;
131
131
  ref: {
132
- type: "tag" | "commit" | "branch";
132
+ type: "commit" | "tag" | "branch";
133
133
  name: string;
134
134
  hash: string;
135
135
  } | null;
@@ -161,7 +161,7 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
161
161
  updatedAt: string;
162
162
  metadata: ConversationMetadata | null;
163
163
  ref: {
164
- type: "tag" | "commit" | "branch";
164
+ type: "commit" | "tag" | "branch";
165
165
  name: string;
166
166
  hash: string;
167
167
  } | null;
@@ -22,13 +22,13 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
24
24
  toExternalAgentId: string | null;
25
- taskId: string | null;
26
- a2aTaskId: string | null;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
29
27
  visibility: string;
30
28
  messageType: string;
29
+ taskId: string | null;
31
30
  parentMessageId: string | null;
31
+ a2aTaskId: string | null;
32
32
  a2aSessionId: string | null;
33
33
  } | undefined>;
34
34
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -153,13 +153,13 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
153
153
  toSubAgentId: string | null;
154
154
  fromExternalAgentId: string | null;
155
155
  toExternalAgentId: string | null;
156
- taskId: string | null;
157
- a2aTaskId: string | null;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
160
158
  visibility: string;
161
159
  messageType: string;
160
+ taskId: string | null;
162
161
  parentMessageId: string | null;
162
+ a2aTaskId: string | null;
163
163
  a2aSessionId: string | null;
164
164
  }>;
165
165
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -206,13 +206,13 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
206
206
  toSubAgentId: string | null;
207
207
  fromExternalAgentId: string | null;
208
208
  toExternalAgentId: string | null;
209
- taskId: string | null;
210
- a2aTaskId: string | null;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
213
211
  visibility: string;
214
212
  messageType: string;
213
+ taskId: string | null;
215
214
  parentMessageId: string | null;
215
+ a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -14,13 +14,13 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
16
  ref: {
17
- type: "tag" | "commit" | "branch";
17
+ type: "commit" | "tag" | "branch";
18
18
  name: string;
19
19
  hash: string;
20
20
  } | null;
21
21
  status: string;
22
- subAgentId: string;
23
22
  contextId: string;
23
+ subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
@@ -11,7 +11,11 @@ function createAgentsManageDatabasePool(config) {
11
11
  if (!connectionString) throw new Error("INKEEP_AGENTS_MANAGE_DATABASE_URL environment variable is required. Please set it to your PostgreSQL connection string.");
12
12
  const pool = new Pool({
13
13
  connectionString,
14
- max: config.poolSize || Number(env.POSTGRES_POOL_SIZE) || 100
14
+ max: config.poolSize || Number(env.POSTGRES_POOL_SIZE) || 100,
15
+ keepAlive: true,
16
+ keepAliveInitialDelayMillis: 6e4,
17
+ connectionTimeoutMillis: 1e4,
18
+ idleTimeoutMillis: 3e4
15
19
  });
16
20
  pool.on("error", (err) => {
17
21
  console.error("Unexpected PostgreSQL pool error:", err);
@@ -27,7 +31,11 @@ function createAgentsManageDatabaseClient(config) {
27
31
  if (!connectionString) throw new Error("INKEEP_AGENTS_MANAGE_DATABASE_URL environment variable is required. Please set it to your PostgreSQL connection string.");
28
32
  const pool = new Pool({
29
33
  connectionString,
30
- max: config.poolSize || Number(env.POSTGRES_POOL_SIZE) || 100
34
+ max: config.poolSize || Number(env.POSTGRES_POOL_SIZE) || 100,
35
+ keepAlive: true,
36
+ keepAliveInitialDelayMillis: 6e4,
37
+ connectionTimeoutMillis: 1e4,
38
+ idleTimeoutMillis: 3e4
31
39
  });
32
40
  pool.on("error", (err) => {
33
41
  console.error("Unexpected PostgreSQL pool error:", err);
@@ -43,7 +51,10 @@ function createAgentManageDatabaseConnection(config) {
43
51
  if (!connectionString) throw new Error("INKEEP_AGENTS_MANAGE_DATABASE_URL environment variable is required. Please set it to your PostgreSQL connection string.");
44
52
  const pool = new Pool({
45
53
  connectionString,
46
- max: 1
54
+ max: 1,
55
+ keepAlive: true,
56
+ keepAliveInitialDelayMillis: 6e4,
57
+ connectionTimeoutMillis: 1e4
47
58
  });
48
59
  pool.on("error", (err) => {
49
60
  console.error("Unexpected PostgreSQL pool error:", err);