@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +11 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/controllers/run.ts +36 -0
- package/src/routes/index.ts +5 -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.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
|
[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
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
13
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
16
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m173.70 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m370.35 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 293ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m170.28 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m370.85 KB[39m
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 293ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 9179ms
|
|
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,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 },
|