@axiom-lattice/gateway 2.1.42 → 2.1.44

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.42 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.44 build /home/runner/work/agentic/agentic/packages/gateway
3
3
  > tsup src/index.ts --format cjs,esm --dts --clean --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,13 +9,13 @@
9
9
  CLI Cleaning output folder
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/index.js 175.70 KB
13
- CJS dist/index.js.map 373.34 KB
14
- CJS ⚡️ Build success in 641ms
15
- ESM dist/index.mjs 172.01 KB
16
- ESM dist/index.mjs.map 373.69 KB
17
- ESM ⚡️ Build success in 633ms
12
+ ESM dist/index.mjs 172.74 KB
13
+ ESM dist/index.mjs.map 375.27 KB
14
+ ESM ⚡️ Build success in 608ms
15
+ CJS dist/index.js 176.38 KB
16
+ CJS dist/index.js.map 374.84 KB
17
+ CJS ⚡️ Build success in 640ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 9706ms
19
+ DTS ⚡️ Build success in 10354ms
20
20
  DTS dist/index.d.ts 3.76 KB
21
21
  DTS dist/index.d.mts 3.76 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.44
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [defd326]
8
+ - @axiom-lattice/core@2.1.38
9
+
10
+ ## 2.1.43
11
+
12
+ ### Patch Changes
13
+
14
+ - 9228408: polish UI and fix issue
15
+ - Updated dependencies [9228408]
16
+ - @axiom-lattice/core@2.1.37
17
+
3
18
  ## 2.1.42
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", {