@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.46 build /home/runner/work/agentic/agentic/packages/gateway
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
  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
- ESM dist/index.mjs 164.37 KB
13
- ESM dist/index.mjs.map 358.60 KB
14
- ESM ⚡️ Build success in 302ms
15
- CJS dist/index.js 167.79 KB
16
- CJS dist/index.js.map 358.15 KB
17
- CJS ⚡️ Build success in 302ms
12
+ ESM dist/index.mjs 164.62 KB
13
+ ESM dist/index.mjs.map 359.12 KB
14
+ ESM ⚡️ Build success in 306ms
15
+ CJS dist/index.js 168.05 KB
16
+ CJS dist/index.js.map 358.68 KB
17
+ CJS ⚡️ Build success in 308ms
18
18
  DTS Build start
19
- DTS ⚡️ Build success in 9786ms
19
+ DTS ⚡️ Build success in 9305ms
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,14 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.47
4
+
5
+ ### Patch Changes
6
+
7
+ - fc60965: fix schedule issue
8
+ - Updated dependencies [fc60965]
9
+ - @axiom-lattice/core@2.1.41
10
+ - @axiom-lattice/pg-stores@1.0.31
11
+
3
12
  ## 2.1.46
4
13
 
5
14
  ### Patch Changes
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
- if (!thread_id || !message_id || known_content === void 0) {
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 = new import_core3.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) {