@axiom-lattice/gateway 2.1.51 → 2.1.52

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.51 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.52 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 172.91 KB
13
- CJS dist/index.js.map 368.66 KB
14
- CJS ⚡️ Build success in 267ms
15
- ESM dist/index.mjs 169.50 KB
16
- ESM dist/index.mjs.map 369.17 KB
17
- ESM ⚡️ Build success in 266ms
12
+ CJS dist/index.js 173.70 KB
13
+ CJS dist/index.js.map 370.35 KB
14
+ CJS ⚡️ Build success in 293ms
15
+ ESM dist/index.mjs 170.28 KB
16
+ ESM dist/index.mjs.map 370.85 KB
17
+ ESM ⚡️ Build success in 293ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 9608ms
19
+ DTS ⚡️ Build success in 9179ms
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,16 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.52
4
+
5
+ ### Patch Changes
6
+
7
+ - a8ee103: enhance agent
8
+ - Updated dependencies [a8ee103]
9
+ - @axiom-lattice/protocols@2.1.24
10
+ - @axiom-lattice/core@2.1.46
11
+ - @axiom-lattice/pg-stores@1.0.36
12
+ - @axiom-lattice/queue-redis@1.0.23
13
+
3
14
  ## 2.1.51
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -379,6 +379,31 @@ var resumeStream = async (request, reply) => {
379
379
  });
380
380
  }
381
381
  };
382
+ var abortRun = async (request, reply) => {
383
+ try {
384
+ const { assistantId, threadId } = request.params;
385
+ const tenant_id = request.headers["x-tenant-id"];
386
+ const workspace_id = request.headers["x-workspace-id"] || "default";
387
+ const project_id = request.headers["x-project-id"] || "default";
388
+ const agent = import_core3.agentInstanceManager.getAgent({
389
+ assistant_id: assistantId,
390
+ thread_id: threadId,
391
+ tenant_id,
392
+ workspace_id,
393
+ project_id
394
+ });
395
+ await agent.abort();
396
+ reply.status(200).send({
397
+ success: true,
398
+ message: "Agent aborted"
399
+ });
400
+ } catch (error) {
401
+ reply.status(500).send({
402
+ success: false,
403
+ error: `Abort failed: ${error.message}`
404
+ });
405
+ }
406
+ };
382
407
 
383
408
  // src/controllers/memory.ts
384
409
  var import_core4 = require("@axiom-lattice/core");
@@ -4871,6 +4896,7 @@ function registerAuthRoutes(app2, config) {
4871
4896
  var registerLatticeRoutes = (app2) => {
4872
4897
  app2.post("/api/runs", createRun);
4873
4898
  app2.post("/api/resume_stream", resumeStream);
4899
+ app2.post("/api/assistants/:assistantId/threads/:threadId/abort", abortRun);
4874
4900
  app2.get(
4875
4901
  "/api/assistants/:assistantId/:thread_id/memory",
4876
4902
  { schema: getAllMemoryItemsSchema },