@inkeep/agents-core 0.0.0-dev-20251006143824 → 0.0.0-dev-20251006162935
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 +5 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1788,18 +1788,16 @@ var ContextConfigBuilder = class {
|
|
|
1788
1788
|
);
|
|
1789
1789
|
}
|
|
1790
1790
|
/**
|
|
1791
|
-
* Set the context (tenantId, projectId,
|
|
1791
|
+
* Set the context (tenantId, projectId, graphId) for this context config
|
|
1792
1792
|
* Called by graph.setConfig() when the graph is configured
|
|
1793
1793
|
*/
|
|
1794
|
-
setContext(tenantId, projectId, graphId
|
|
1794
|
+
setContext(tenantId, projectId, graphId) {
|
|
1795
1795
|
this.tenantId = tenantId;
|
|
1796
1796
|
this.projectId = projectId;
|
|
1797
1797
|
this.graphId = graphId;
|
|
1798
|
-
if (baseURL) {
|
|
1799
|
-
this.baseURL = baseURL;
|
|
1800
|
-
}
|
|
1801
1798
|
this.config.tenantId = tenantId;
|
|
1802
1799
|
this.config.projectId = projectId;
|
|
1800
|
+
this.config.graphId = graphId;
|
|
1803
1801
|
logger.info(
|
|
1804
1802
|
{
|
|
1805
1803
|
contextConfigId: this.config.id,
|
|
@@ -4466,10 +4464,9 @@ var getContextConfigCacheEntries = (db) => async (params) => {
|
|
|
4466
4464
|
value: entry.value
|
|
4467
4465
|
}));
|
|
4468
4466
|
};
|
|
4467
|
+
var generateId = nanoid.customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 21);
|
|
4469
4468
|
function getConversationId() {
|
|
4470
|
-
|
|
4471
|
-
id = id.toLowerCase().replace(/^-+/, "");
|
|
4472
|
-
return id;
|
|
4469
|
+
return generateId();
|
|
4473
4470
|
}
|
|
4474
4471
|
|
|
4475
4472
|
// src/data-access/conversations.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -116,10 +116,10 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
116
116
|
private graphId;
|
|
117
117
|
constructor(options: ContextConfigBuilderOptions<R, CV>);
|
|
118
118
|
/**
|
|
119
|
-
* Set the context (tenantId, projectId,
|
|
119
|
+
* Set the context (tenantId, projectId, graphId) for this context config
|
|
120
120
|
* Called by graph.setConfig() when the graph is configured
|
|
121
121
|
*/
|
|
122
|
-
setContext(tenantId: string, projectId: string, graphId: string
|
|
122
|
+
setContext(tenantId: string, projectId: string, graphId: string): void;
|
|
123
123
|
/**
|
|
124
124
|
* Convert the builder to a plain object for database operations
|
|
125
125
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -116,10 +116,10 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
116
116
|
private graphId;
|
|
117
117
|
constructor(options: ContextConfigBuilderOptions<R, CV>);
|
|
118
118
|
/**
|
|
119
|
-
* Set the context (tenantId, projectId,
|
|
119
|
+
* Set the context (tenantId, projectId, graphId) for this context config
|
|
120
120
|
* Called by graph.setConfig() when the graph is configured
|
|
121
121
|
*/
|
|
122
|
-
setContext(tenantId: string, projectId: string, graphId: string
|
|
122
|
+
setContext(tenantId: string, projectId: string, graphId: string): void;
|
|
123
123
|
/**
|
|
124
124
|
* Convert the builder to a plain object for database operations
|
|
125
125
|
*/
|
package/dist/index.js
CHANGED
|
@@ -298,18 +298,16 @@ var ContextConfigBuilder = class {
|
|
|
298
298
|
);
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
|
-
* Set the context (tenantId, projectId,
|
|
301
|
+
* Set the context (tenantId, projectId, graphId) for this context config
|
|
302
302
|
* Called by graph.setConfig() when the graph is configured
|
|
303
303
|
*/
|
|
304
|
-
setContext(tenantId, projectId, graphId
|
|
304
|
+
setContext(tenantId, projectId, graphId) {
|
|
305
305
|
this.tenantId = tenantId;
|
|
306
306
|
this.projectId = projectId;
|
|
307
307
|
this.graphId = graphId;
|
|
308
|
-
if (baseURL) {
|
|
309
|
-
this.baseURL = baseURL;
|
|
310
|
-
}
|
|
311
308
|
this.config.tenantId = tenantId;
|
|
312
309
|
this.config.projectId = projectId;
|
|
310
|
+
this.config.graphId = graphId;
|
|
313
311
|
logger.info(
|
|
314
312
|
{
|
|
315
313
|
contextConfigId: this.config.id,
|
|
@@ -2962,10 +2960,9 @@ var getContextConfigCacheEntries = (db) => async (params) => {
|
|
|
2962
2960
|
value: entry.value
|
|
2963
2961
|
}));
|
|
2964
2962
|
};
|
|
2963
|
+
var generateId = customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 21);
|
|
2965
2964
|
function getConversationId() {
|
|
2966
|
-
|
|
2967
|
-
id = id.toLowerCase().replace(/^-+/, "");
|
|
2968
|
-
return id;
|
|
2965
|
+
return generateId();
|
|
2969
2966
|
}
|
|
2970
2967
|
|
|
2971
2968
|
// src/data-access/conversations.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251006162935",
|
|
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",
|