@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.32 build /home/runner/work/agentic/agentic/packages/gateway
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
  CLI Building entry: src/index.ts
@@ -9,17 +9,17 @@
9
9
  CLI Cleaning output folder
10
10
  CJS Build start
11
11
  ESM Build start
12
- ESM dist/index.mjs 138.74 KB
12
+ CJS dist/index.js 145.49 KB
13
+ CJS dist/index.js.map 316.71 KB
14
+ CJS ⚡️ Build success in 311ms
15
+ ESM dist/index.mjs 138.98 KB
13
16
  ESM dist/config-F3FCBSPH.mjs 148.00 B
14
17
  ESM dist/chunk-FSASG3SB.mjs 2.46 KB
15
- ESM dist/index.mjs.map 310.76 KB
18
+ ESM dist/index.mjs.map 311.30 KB
16
19
  ESM dist/config-F3FCBSPH.mjs.map 71.00 B
17
20
  ESM dist/chunk-FSASG3SB.mjs.map 5.33 KB
18
- ESM ⚡️ Build success in 320ms
19
- CJS dist/index.js 145.26 KB
20
- CJS dist/index.js.map 316.16 KB
21
- CJS ⚡️ Build success in 320ms
21
+ ESM ⚡️ Build success in 316ms
22
22
  DTS Build start
23
- DTS ⚡️ Build success in 9673ms
24
- DTS dist/index.d.ts 3.72 KB
25
- DTS dist/index.d.mts 3.72 KB
23
+ DTS ⚡️ Build success in 10095ms
24
+ DTS dist/index.d.ts 3.76 KB
25
+ DTS dist/index.d.mts 3.76 KB
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
@@ -55,6 +55,7 @@ interface AgentTaskRequest {
55
55
  "x-tenant-id": string;
56
56
  command?: any;
57
57
  callback_event?: string;
58
+ runConfig?: Record<string, unknown>;
58
59
  }
59
60
  /**
60
61
  * Agent任务消费者
package/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ interface AgentTaskRequest {
55
55
  "x-tenant-id": string;
56
56
  command?: any;
57
57
  callback_event?: string;
58
+ runConfig?: Record<string, unknown>;
58
59
  }
59
60
  /**
60
61
  * Agent任务消费者
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",