@axiom-lattice/gateway 2.1.113 → 2.1.116

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.113 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.116 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
@@ -18,29 +18,29 @@
18
18
  You need to set the output format to "esm" for "import.meta" to work correctly.
19
19
 
20
20
 
21
- CJS dist/index.js 409.50 KB
22
- CJS dist/index.js.map 832.55 KB
23
- CJS ⚡️ Build success in 655ms
24
- ESM dist/index.mjs 338.80 KB
25
- ESM dist/mcp-configs-SHRMQHIL.mjs 685.00 B
21
+ CJS dist/index.js 410.19 KB
22
+ CJS dist/index.js.map 833.87 KB
23
+ CJS ⚡️ Build success in 551ms
26
24
  ESM dist/chunk-K4XELOSO.mjs 12.52 KB
27
25
  ESM dist/sender-PX32VSHB.mjs 873.00 B
28
26
  ESM dist/WechatChannelAdapter-WSDKR4OA.mjs 8.27 KB
27
+ ESM dist/index.mjs 339.48 KB
28
+ ESM dist/mcp-configs-SHRMQHIL.mjs 685.00 B
29
29
  ESM dist/chunk-6CUQGDJI.mjs 6.42 KB
30
- ESM dist/a2a-ERG5RMUW.mjs 15.95 KB
31
30
  ESM dist/resources-VA7LSDKN.mjs 15.81 KB
31
+ ESM dist/a2a-ERG5RMUW.mjs 15.95 KB
32
32
  ESM dist/chunk-LHQY46YB.mjs 1.46 KB
33
- ESM dist/mcp-configs-SHRMQHIL.mjs.map 71.00 B
34
- ESM dist/chunk-K4XELOSO.mjs.map 25.53 KB
35
33
  ESM dist/sender-PX32VSHB.mjs.map 2.07 KB
34
+ ESM dist/chunk-K4XELOSO.mjs.map 25.53 KB
36
35
  ESM dist/WechatChannelAdapter-WSDKR4OA.mjs.map 16.28 KB
36
+ ESM dist/mcp-configs-SHRMQHIL.mjs.map 71.00 B
37
37
  ESM dist/chunk-6CUQGDJI.mjs.map 14.04 KB
38
- ESM dist/a2a-ERG5RMUW.mjs.map 32.14 KB
39
38
  ESM dist/resources-VA7LSDKN.mjs.map 29.34 KB
39
+ ESM dist/a2a-ERG5RMUW.mjs.map 32.14 KB
40
40
  ESM dist/chunk-LHQY46YB.mjs.map 2.39 KB
41
- ESM dist/index.mjs.map 710.34 KB
42
- ESM ⚡️ Build success in 670ms
41
+ ESM dist/index.mjs.map 711.66 KB
42
+ ESM ⚡️ Build success in 551ms
43
43
  DTS Build start
44
- DTS ⚡️ Build success in 20229ms
44
+ DTS ⚡️ Build success in 20289ms
45
45
  DTS dist/index.d.ts 7.57 KB
46
46
  DTS dist/index.d.mts 7.57 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.116
4
+
5
+ ### Patch Changes
6
+
7
+ - 075a384: add skill graph, tenant url
8
+ - Updated dependencies [075a384]
9
+ - @axiom-lattice/core@2.1.102
10
+ - @axiom-lattice/pg-stores@1.0.93
11
+ - @axiom-lattice/protocols@2.1.53
12
+ - @axiom-lattice/queue-redis@1.0.52
13
+
14
+ ## 2.1.115
15
+
16
+ ### Patch Changes
17
+
18
+ - acdaec8: add read image file via llm
19
+ - Updated dependencies [acdaec8]
20
+ - @axiom-lattice/core@2.1.101
21
+ - @axiom-lattice/protocols@2.1.52
22
+ - @axiom-lattice/pg-stores@1.0.92
23
+ - @axiom-lattice/queue-redis@1.0.51
24
+
25
+ ## 2.1.114
26
+
27
+ ### Patch Changes
28
+
29
+ - ded4cbe: fix issues
30
+
3
31
  ## 2.1.113
4
32
 
5
33
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2245,7 +2245,10 @@ var createRun = async (request, reply) => {
2245
2245
  const project_id = request.headers["x-project-id"];
2246
2246
  const x_request_id = request.headers["x-request-id"] || (0, import_uuid.v4)();
2247
2247
  const user_id = getUserId2(request);
2248
- const mergedConfig = user_id ? { ...custom_run_config, user_id } : custom_run_config;
2248
+ const mergedConfig = {
2249
+ ...custom_run_config,
2250
+ ...user_id && { user_id }
2251
+ };
2249
2252
  if (!assistant_id) {
2250
2253
  reply.status(400).send({
2251
2254
  success: false,
@@ -4884,6 +4887,7 @@ async function listTasks(request, reply) {
4884
4887
  priority: query.priority,
4885
4888
  ownerType: query.ownerType,
4886
4889
  metadata: query.metadata ? JSON.parse(query.metadata) : void 0,
4890
+ projectId: query.projectId,
4887
4891
  limit: query.limit ? parseInt(query.limit) : void 0,
4888
4892
  offset: query.offset ? parseInt(query.offset) : void 0
4889
4893
  });
@@ -4996,6 +5000,23 @@ async function completeTask(request, reply) {
4996
5000
  return reply.status(500).send({ success: false, error: error.message });
4997
5001
  }
4998
5002
  }
5003
+ function getTaskWorkItemStore() {
5004
+ return (0, import_core17.getStoreLattice)("default", "taskWorkItem").store;
5005
+ }
5006
+ async function listTaskWorkItems(request, reply) {
5007
+ const tenantId = getTenantId9(request);
5008
+ const { id } = request.params;
5009
+ const { action, limit, offset } = request.query;
5010
+ const store2 = getTaskWorkItemStore();
5011
+ const items = await store2.list({
5012
+ tenantId,
5013
+ taskId: id,
5014
+ action,
5015
+ limit: limit ? Number(limit) : void 0,
5016
+ offset: offset ? Number(offset) : void 0
5017
+ });
5018
+ return reply.send({ success: true, data: items });
5019
+ }
4999
5020
 
5000
5021
  // src/services/ExportImportService.ts
5001
5022
  var import_core18 = require("@axiom-lattice/core");
@@ -6396,7 +6417,7 @@ var WorkspaceController = class {
6396
6417
  async uploadFile(request, reply) {
6397
6418
  const tenantId = this.getTenantId(request);
6398
6419
  const { workspaceId, projectId } = request.params;
6399
- const assistantId = request.query.assistantId;
6420
+ const assistantId = request.query.assistantId || request.headers["x-assistant-id"];
6400
6421
  const workspace = await this.workspaceStore.getWorkspaceById(
6401
6422
  tenantId,
6402
6423
  workspaceId
@@ -6430,6 +6451,8 @@ var WorkspaceController = class {
6430
6451
  const volumeBackend = await sandboxManager.getVolumeBackendForPath(volumeConfig, realPath);
6431
6452
  if (volumeBackend && !isBinary) {
6432
6453
  await volumeBackend.write(realPath, buffer.toString("utf-8"));
6454
+ } else if (volumeBackend && volumeBackend.writeBinary) {
6455
+ await volumeBackend.writeBinary(realPath, buffer);
6433
6456
  } else {
6434
6457
  const sandbox = await sandboxManager.getSandboxFromConfig(volumeConfig);
6435
6458
  await sandbox.file.uploadFile({ file: realPath, data: buffer });
@@ -8501,11 +8524,7 @@ var AuthController = class {
8501
8524
  return {
8502
8525
  success: true,
8503
8526
  data: {
8504
- tenant: {
8505
- id: tenant.id,
8506
- name: tenant.name,
8507
- status: tenant.status
8508
- },
8527
+ tenant,
8509
8528
  token,
8510
8529
  personalAssistant
8511
8530
  }
@@ -9745,6 +9764,7 @@ var registerLatticeRoutes = (app2, channelDeps) => {
9745
9764
  app2.put("/api/tasks/:id", updateTask);
9746
9765
  app2.delete("/api/tasks/:id", deleteTask);
9747
9766
  app2.patch("/api/tasks/:id/complete", completeTask);
9767
+ app2.get("/api/tasks/:id/work-items", listTaskWorkItems);
9748
9768
  app2.get(
9749
9769
  "/api/assistants/:assistantId/graph",
9750
9770
  { schema: getAgentGraphSchema },