@axiom-lattice/gateway 2.1.93 → 2.1.94

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.93 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.94 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
@@ -11,24 +11,24 @@
11
11
  ESM Build start
12
12
  [warn] ▲ [WARNING] "import.meta" is not available with the "cjs" output format and will be empty [empty-import-meta]
13
13
 
14
- src/index.ts:183:33:
15
-  183 │ const __filename = fileURLToPath(import.meta.url);
14
+ src/index.ts:188:33:
15
+  188 │ const __filename = fileURLToPath(import.meta.url);
16
16
  ╵ ~~~~~~~~~~~
17
17
 
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 291.04 KB
22
- CJS dist/index.js.map 605.84 KB
23
- CJS ⚡️ Build success in 425ms
24
- ESM dist/index.mjs 269.56 KB
21
+ CJS dist/index.js 292.02 KB
22
+ CJS dist/index.js.map 607.49 KB
23
+ CJS ⚡️ Build success in 393ms
24
+ ESM dist/index.mjs 270.54 KB
25
25
  ESM dist/sender-PX32VSHB.mjs 873.00 B
26
26
  ESM dist/a2a-ERG5RMUW.mjs 15.95 KB
27
- ESM dist/a2a-ERG5RMUW.mjs.map 32.14 KB
28
27
  ESM dist/sender-PX32VSHB.mjs.map 2.07 KB
29
- ESM dist/index.mjs.map 572.05 KB
30
- ESM ⚡️ Build success in 428ms
28
+ ESM dist/a2a-ERG5RMUW.mjs.map 32.14 KB
29
+ ESM dist/index.mjs.map 573.70 KB
30
+ ESM ⚡️ Build success in 431ms
31
31
  DTS Build start
32
- DTS ⚡️ Build success in 20539ms
32
+ DTS ⚡️ Build success in 19588ms
33
33
  DTS dist/index.d.ts 7.57 KB
34
34
  DTS dist/index.d.mts 7.57 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.94
4
+
5
+ ### Patch Changes
6
+
7
+ - ea65194: fix issue
8
+ - Updated dependencies [ea65194]
9
+ - @axiom-lattice/core@2.1.82
10
+ - @axiom-lattice/pg-stores@1.0.73
11
+ - @axiom-lattice/agent-eval@2.1.76
12
+
3
13
  ## 2.1.93
4
14
 
5
15
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3942,6 +3942,7 @@ var WorkspaceController = class {
3942
3942
  if (!workspace) {
3943
3943
  throw new Error("Workspace not found");
3944
3944
  }
3945
+ console.log(`[getBackend] storageType=${workspace.storageType} filePath=${filePath}`);
3945
3946
  if (workspace.storageType === "sandbox") {
3946
3947
  const sandboxManager = (0, import_core21.getSandBoxManager)();
3947
3948
  const volumeConfig = {
@@ -3951,11 +3952,15 @@ var WorkspaceController = class {
3951
3952
  workspaceId,
3952
3953
  projectId
3953
3954
  };
3955
+ console.log(`[getBackend] trying volume backend for path=${filePath} assistant_id=${assistantId}`);
3954
3956
  const volumeBackend = await sandboxManager.getVolumeBackendForPath(volumeConfig, filePath || "/project");
3955
3957
  if (volumeBackend) {
3958
+ console.log(`[getBackend] using VolumeFilesystem`);
3956
3959
  return { backend: volumeBackend, workspace };
3957
3960
  }
3961
+ console.log(`[getBackend] volume not found, falling back to SandboxFilesystem`);
3958
3962
  const sandbox = await sandboxManager.getSandboxFromConfig(volumeConfig);
3963
+ console.log(`[getBackend] sandbox acquired, name=${sandbox.name || "unknown"}`);
3959
3964
  return {
3960
3965
  backend: new import_core20.SandboxFilesystem({
3961
3966
  sandboxInstance: sandbox
@@ -3963,6 +3968,7 @@ var WorkspaceController = class {
3963
3968
  workspace
3964
3969
  };
3965
3970
  } else {
3971
+ console.log(`[getBackend] using FilesystemBackend rootDir=/lattice_store/tenants/${tenantId}/workspaces/${workspaceId}/${projectId}`);
3966
3972
  return {
3967
3973
  backend: new import_core20.FilesystemBackend({
3968
3974
  rootDir: `/lattice_store/tenants/${tenantId}/workspaces/${workspaceId}/${projectId}`,
@@ -4179,8 +4185,11 @@ var WorkspaceController = class {
4179
4185
  const { workspaceId, projectId } = request.params;
4180
4186
  const path3 = request.query.path || "/";
4181
4187
  const assistantId = request.query.assistantId;
4188
+ console.log(`[listPath] tenantId=${tenantId} workspaceId=${workspaceId} projectId=${projectId} path=${path3} assistantId=${assistantId}`);
4182
4189
  const { backend } = await this.getBackend(tenantId, workspaceId, projectId, assistantId, path3);
4190
+ console.log(`[listPath] backend type=${backend.constructor.name} calling lsInfo(${path3})`);
4183
4191
  const files = await backend.lsInfo(path3);
4192
+ console.log(`[listPath] result count=${files.length}`);
4184
4193
  return { success: true, data: files };
4185
4194
  }
4186
4195
  async readFile(request) {
@@ -8833,6 +8842,8 @@ app.addHook("preHandler", async (request, reply) => {
8833
8842
  if (!authRequired) return;
8834
8843
  if (request.method === "OPTIONS") return;
8835
8844
  if (PUBLIC_ROUTES.some((r) => request.url === r)) return;
8845
+ const urlPath = request.url.split("?")[0];
8846
+ if (urlPath.includes("/viewfile") || urlPath.includes("/downloadfile")) return;
8836
8847
  return reply.status(401).send({
8837
8848
  success: false,
8838
8849
  error: "Unauthorized - Missing or invalid token"