@axiom-lattice/gateway 2.1.46 → 2.1.47
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 +9 -0
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/controllers/run.ts +17 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/gateway@2.1.
|
|
2
|
+
> @axiom-lattice/gateway@2.1.47 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
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m164.
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
16
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m358.
|
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m164.62 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m359.12 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 306ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m168.05 KB[39m
|
|
16
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m358.68 KB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 308ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 9305ms
|
|
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
package/dist/index.js
CHANGED
|
@@ -323,11 +323,14 @@ var createRun = async (request, reply) => {
|
|
|
323
323
|
};
|
|
324
324
|
var resumeStream = async (request, reply) => {
|
|
325
325
|
try {
|
|
326
|
-
const { thread_id, message_id, known_content, poll_interval } = request.body;
|
|
327
|
-
|
|
326
|
+
const { thread_id, message_id, assistant_id, known_content, poll_interval } = request.body;
|
|
327
|
+
const tenant_id = request.headers["x-tenant-id"];
|
|
328
|
+
const workspace_id = request.headers["x-workspace-id"];
|
|
329
|
+
const project_id = request.headers["x-project-id"];
|
|
330
|
+
if (!thread_id || !message_id || !assistant_id || known_content === void 0) {
|
|
328
331
|
reply.status(400).send({
|
|
329
332
|
success: false,
|
|
330
|
-
error: "thread_id, message_id, and known_content are required"
|
|
333
|
+
error: "thread_id, message_id, assistant_id, and known_content are required"
|
|
331
334
|
});
|
|
332
335
|
return;
|
|
333
336
|
}
|
|
@@ -339,10 +342,12 @@ var resumeStream = async (request, reply) => {
|
|
|
339
342
|
"Access-Control-Allow-Origin": "*"
|
|
340
343
|
});
|
|
341
344
|
try {
|
|
342
|
-
const agent =
|
|
343
|
-
assistant_id
|
|
345
|
+
const agent = import_core3.agentInstanceManager.getAgent({
|
|
346
|
+
assistant_id,
|
|
344
347
|
thread_id,
|
|
345
|
-
tenant_id
|
|
348
|
+
tenant_id,
|
|
349
|
+
workspace_id,
|
|
350
|
+
project_id
|
|
346
351
|
});
|
|
347
352
|
const stream = agent.chunkStream(message_id, known_content);
|
|
348
353
|
for await (const chunk of stream) {
|