@axiom-lattice/gateway 2.1.41 → 2.1.43
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +15 -0
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/controllers/database-configs.ts +1 -1
- package/src/index.ts +22 -0
- package/src/services/agent_service.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/gateway@2.1.
|
|
2
|
+
> @axiom-lattice/gateway@2.1.43 build /home/runner/work/agentic/agentic/packages/gateway
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --clean --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m176.38 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m374.84 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 566ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m172.74 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m375.27 KB[39m
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 567ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 10912ms
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.76 KB[39m
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.76 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @axiom-lattice/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.43
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9228408: polish UI and fix issue
|
|
8
|
+
- Updated dependencies [9228408]
|
|
9
|
+
- @axiom-lattice/core@2.1.37
|
|
10
|
+
|
|
11
|
+
## 2.1.42
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [ce3fc2f]
|
|
16
|
+
- @axiom-lattice/core@2.1.36
|
|
17
|
+
|
|
3
18
|
## 2.1.41
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -96,6 +96,9 @@ async function agent_invoke({
|
|
|
96
96
|
const result = await runnable_agent.invoke(
|
|
97
97
|
command ? new import_langgraph.Command(command) : { ...rest, messages, "x-tenant-id": tenant_id },
|
|
98
98
|
{
|
|
99
|
+
context: {
|
|
100
|
+
runConfig
|
|
101
|
+
},
|
|
99
102
|
configurable: {
|
|
100
103
|
thread_id,
|
|
101
104
|
run_id: run_id || (0, import_uuid.v4)(),
|
|
@@ -158,6 +161,9 @@ async function agent_stream({
|
|
|
158
161
|
"x-tenant-id": tenant_id
|
|
159
162
|
},
|
|
160
163
|
{
|
|
164
|
+
context: {
|
|
165
|
+
runConfig
|
|
166
|
+
},
|
|
161
167
|
configurable: {
|
|
162
168
|
thread_id,
|
|
163
169
|
run_id: run_id || (0, import_uuid.v4)(),
|
|
@@ -3424,7 +3430,7 @@ async function testDatabaseConnection(request, reply) {
|
|
|
3424
3430
|
const testKey = `__test_${key}_${Date.now()}`;
|
|
3425
3431
|
import_core18.sqlDatabaseManager.registerDatabase(tenantId, testKey, config.config);
|
|
3426
3432
|
const startTime = Date.now();
|
|
3427
|
-
const db = import_core18.sqlDatabaseManager.getDatabase(tenantId, testKey);
|
|
3433
|
+
const db = await import_core18.sqlDatabaseManager.getDatabase(tenantId, testKey);
|
|
3428
3434
|
try {
|
|
3429
3435
|
await db.connect();
|
|
3430
3436
|
await db.listTables();
|
|
@@ -5511,6 +5517,11 @@ app.addHook("onRequest", (request, reply, done) => {
|
|
|
5511
5517
|
}
|
|
5512
5518
|
done();
|
|
5513
5519
|
});
|
|
5520
|
+
app.addHook("onRequest", async (request, reply) => {
|
|
5521
|
+
if (request.method === "DELETE" && request.headers["content-type"]) {
|
|
5522
|
+
delete request.headers["content-type"];
|
|
5523
|
+
}
|
|
5524
|
+
});
|
|
5514
5525
|
app.addHook("onResponse", (request, reply, done) => {
|
|
5515
5526
|
const getHeaderValue = (header) => {
|
|
5516
5527
|
if (Array.isArray(header)) {
|
|
@@ -5582,6 +5593,14 @@ var start = async (config) => {
|
|
|
5582
5593
|
}
|
|
5583
5594
|
app.decorate("loggerLattice", loggerLattice);
|
|
5584
5595
|
registerLatticeRoutes(app);
|
|
5596
|
+
try {
|
|
5597
|
+
const storeLattice = (0, import_core25.getStoreLattice)("default", "database");
|
|
5598
|
+
const store = storeLattice.store;
|
|
5599
|
+
import_core25.sqlDatabaseManager.setConfigStore(store);
|
|
5600
|
+
logger.info("Database config store set for SqlDatabaseManager");
|
|
5601
|
+
} catch (error) {
|
|
5602
|
+
logger.warn("Failed to set database config store: " + (error instanceof Error ? error.message : String(error)));
|
|
5603
|
+
}
|
|
5585
5604
|
if (!import_core25.sandboxLatticeManager.hasLattice("default")) {
|
|
5586
5605
|
const sandboxBaseURL = process.env.SANDBOX_BASE_URL || "http://localhost:8080";
|
|
5587
5606
|
import_core25.sandboxLatticeManager.registerLattice("default", {
|