@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.
- package/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +10 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/controllers/workspace.ts +12 -0
- package/src/index.ts +5 -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.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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,24 +11,24 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[warn] [33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1m"import.meta" is not available with the "cjs" output format and will be empty[0m [empty-import-meta]
|
|
13
13
|
|
|
14
|
-
src/index.ts:
|
|
15
|
-
[37m
|
|
14
|
+
src/index.ts:188:33:
|
|
15
|
+
[37m 188 │ const __filename = fileURLToPath([32mimport.meta[37m.url);
|
|
16
16
|
╵ [32m~~~~~~~~~~~[0m
|
|
17
17
|
|
|
18
18
|
You need to set the output format to "esm" for "import.meta" to work correctly.
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
22
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
24
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
21
|
+
[32mCJS[39m [1mdist/index.js [22m[32m292.02 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m607.49 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 393ms
|
|
24
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m270.54 KB[39m
|
|
25
25
|
[32mESM[39m [1mdist/sender-PX32VSHB.mjs [22m[32m873.00 B[39m
|
|
26
26
|
[32mESM[39m [1mdist/a2a-ERG5RMUW.mjs [22m[32m15.95 KB[39m
|
|
27
|
-
[32mESM[39m [1mdist/a2a-ERG5RMUW.mjs.map [22m[32m32.14 KB[39m
|
|
28
27
|
[32mESM[39m [1mdist/sender-PX32VSHB.mjs.map [22m[32m2.07 KB[39m
|
|
29
|
-
[32mESM[39m [1mdist/
|
|
30
|
-
[32mESM[39m
|
|
28
|
+
[32mESM[39m [1mdist/a2a-ERG5RMUW.mjs.map [22m[32m32.14 KB[39m
|
|
29
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m573.70 KB[39m
|
|
30
|
+
[32mESM[39m ⚡️ Build success in 431ms
|
|
31
31
|
[34mDTS[39m Build start
|
|
32
|
-
[32mDTS[39m ⚡️ Build success in
|
|
32
|
+
[32mDTS[39m ⚡️ Build success in 19588ms
|
|
33
33
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.57 KB[39m
|
|
34
34
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.57 KB[39m
|
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"
|