@axiom-lattice/gateway 2.1.32 → 2.1.34
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 +10 -10
- package/CHANGELOG.md +15 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/controllers/run.ts +3 -0
- package/src/services/agent_service.ts +12 -4
- package/src/services/agent_task_consumer.ts +3 -0
- package/src/types/index.ts +1 -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.34 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,17 +9,17 @@
|
|
|
9
9
|
[34mCLI[39m Cleaning output folder
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m145.49 KB[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m316.71 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 311ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m138.98 KB[39m
|
|
13
16
|
[32mESM[39m [1mdist/config-F3FCBSPH.mjs [22m[32m148.00 B[39m
|
|
14
17
|
[32mESM[39m [1mdist/chunk-FSASG3SB.mjs [22m[32m2.46 KB[39m
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
18
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m311.30 KB[39m
|
|
16
19
|
[32mESM[39m [1mdist/config-F3FCBSPH.mjs.map [22m[32m71.00 B[39m
|
|
17
20
|
[32mESM[39m [1mdist/chunk-FSASG3SB.mjs.map [22m[32m5.33 KB[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
-
[32mCJS[39m [1mdist/index.js [22m[32m145.26 KB[39m
|
|
20
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m316.16 KB[39m
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in 320ms
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 316ms
|
|
22
22
|
[34mDTS[39m Build start
|
|
23
|
-
[32mDTS[39m ⚡️ Build success in
|
|
24
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.
|
|
25
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.
|
|
23
|
+
[32mDTS[39m ⚡️ Build success in 10095ms
|
|
24
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.76 KB[39m
|
|
25
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.76 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @axiom-lattice/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [07fc87d]
|
|
8
|
+
- @axiom-lattice/core@2.1.29
|
|
9
|
+
|
|
10
|
+
## 2.1.33
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 290eb34: update new style
|
|
15
|
+
- Updated dependencies [290eb34]
|
|
16
|
+
- @axiom-lattice/core@2.1.28
|
|
17
|
+
|
|
3
18
|
## 2.1.32
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -192,7 +192,8 @@ async function agent_invoke({
|
|
|
192
192
|
workspace_id,
|
|
193
193
|
project_id,
|
|
194
194
|
command,
|
|
195
|
-
run_id
|
|
195
|
+
run_id,
|
|
196
|
+
custom_run_config
|
|
196
197
|
}) {
|
|
197
198
|
const agentLattice = (0, import_core.getAgentLattice)(assistant_id);
|
|
198
199
|
const runnable_agent = agentLattice?.client;
|
|
@@ -212,9 +213,10 @@ async function agent_invoke({
|
|
|
212
213
|
global.__DATABASE_CONFIGS__ = databaseConfigs;
|
|
213
214
|
const runConfig = {
|
|
214
215
|
...agentLattice?.config?.runConfig || {},
|
|
215
|
-
assistant_id,
|
|
216
216
|
workspaceId: workspace_id,
|
|
217
|
-
projectId: project_id
|
|
217
|
+
projectId: project_id,
|
|
218
|
+
...custom_run_config || {},
|
|
219
|
+
assistant_id
|
|
218
220
|
};
|
|
219
221
|
const result = await runnable_agent.invoke(
|
|
220
222
|
command ? new import_langgraph.Command(command) : { ...rest, messages, "x-tenant-id": tenant_id },
|
|
@@ -250,7 +252,8 @@ async function agent_stream({
|
|
|
250
252
|
workspace_id,
|
|
251
253
|
project_id,
|
|
252
254
|
assistant_id,
|
|
253
|
-
run_id
|
|
255
|
+
run_id,
|
|
256
|
+
custom_run_config
|
|
254
257
|
}) {
|
|
255
258
|
const runnable_agent = (0, import_core.getAgentClient)(assistant_id);
|
|
256
259
|
const agentLattice = (0, import_core.getAgentLattice)(assistant_id);
|
|
@@ -271,9 +274,10 @@ async function agent_stream({
|
|
|
271
274
|
global.__DATABASE_CONFIGS__ = databaseConfigs;
|
|
272
275
|
const runConfig = {
|
|
273
276
|
...agentLattice?.config?.runConfig || {},
|
|
274
|
-
assistant_id,
|
|
275
277
|
workspaceId: workspace_id,
|
|
276
|
-
projectId: project_id
|
|
278
|
+
projectId: project_id,
|
|
279
|
+
...custom_run_config || {},
|
|
280
|
+
assistant_id
|
|
277
281
|
};
|
|
278
282
|
try {
|
|
279
283
|
if (!runnable_agent) {
|
|
@@ -606,6 +610,7 @@ var createRun = async (request, reply) => {
|
|
|
606
610
|
command,
|
|
607
611
|
streaming,
|
|
608
612
|
background,
|
|
613
|
+
custom_run_config,
|
|
609
614
|
...input
|
|
610
615
|
} = request.body;
|
|
611
616
|
const tenant_id = request.headers["x-tenant-id"];
|
|
@@ -628,7 +633,8 @@ var createRun = async (request, reply) => {
|
|
|
628
633
|
tenant_id,
|
|
629
634
|
workspace_id,
|
|
630
635
|
project_id,
|
|
631
|
-
run_id: x_request_id
|
|
636
|
+
run_id: x_request_id,
|
|
637
|
+
custom_run_config
|
|
632
638
|
});
|
|
633
639
|
reply.hijack();
|
|
634
640
|
reply.raw.writeHead(200, {
|
|
@@ -657,7 +663,8 @@ var createRun = async (request, reply) => {
|
|
|
657
663
|
tenant_id,
|
|
658
664
|
workspace_id,
|
|
659
665
|
project_id,
|
|
660
|
-
run_id: x_request_id
|
|
666
|
+
run_id: x_request_id,
|
|
667
|
+
custom_run_config
|
|
661
668
|
});
|
|
662
669
|
reply.status(200).send(result);
|
|
663
670
|
}
|
|
@@ -4330,7 +4337,8 @@ var handleAgentTask = async (taskRequest, retryCount = 0) => {
|
|
|
4330
4337
|
thread_id,
|
|
4331
4338
|
"x-tenant-id": tenant_id,
|
|
4332
4339
|
command,
|
|
4333
|
-
callback_event
|
|
4340
|
+
callback_event,
|
|
4341
|
+
runConfig
|
|
4334
4342
|
} = taskRequest;
|
|
4335
4343
|
try {
|
|
4336
4344
|
console.log(
|
|
@@ -4345,7 +4353,8 @@ var handleAgentTask = async (taskRequest, retryCount = 0) => {
|
|
|
4345
4353
|
streaming: true,
|
|
4346
4354
|
...input,
|
|
4347
4355
|
thread_id,
|
|
4348
|
-
command
|
|
4356
|
+
command,
|
|
4357
|
+
custom_run_config: runConfig
|
|
4349
4358
|
}),
|
|
4350
4359
|
headers: {
|
|
4351
4360
|
"Content-Type": "application/json",
|