@axiom-lattice/gateway 2.1.56 → 2.1.57
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 +4 -4
- package/CHANGELOG.md +11 -0
- package/jest.config.js +44 -0
- package/package.json +5 -5
- package/src/__tests__/workspace.test.ts +26 -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.57 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,11 +11,11 @@
|
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mCJS[39m [1mdist/index.js [22m[32m187.77 KB[39m
|
|
13
13
|
[32mCJS[39m [1mdist/index.js.map [22m[32m403.05 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 369ms
|
|
15
15
|
[32mESM[39m [1mdist/index.mjs [22m[32m184.87 KB[39m
|
|
16
16
|
[32mESM[39m [1mdist/index.mjs.map [22m[32m403.64 KB[39m
|
|
17
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 370ms
|
|
18
18
|
[34mDTS[39m Build start
|
|
19
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 10503ms
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.76 KB[39m
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.76 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @axiom-lattice/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.57
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a8c25a6: fix sandbox
|
|
8
|
+
- Updated dependencies [a8c25a6]
|
|
9
|
+
- @axiom-lattice/core@2.1.51
|
|
10
|
+
- @axiom-lattice/pg-stores@1.0.41
|
|
11
|
+
- @axiom-lattice/protocols@2.1.28
|
|
12
|
+
- @axiom-lattice/queue-redis@1.0.27
|
|
13
|
+
|
|
3
14
|
## 2.1.56
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/jest.config.js
CHANGED
|
@@ -16,11 +16,55 @@ module.exports = {
|
|
|
16
16
|
"^@axiom-lattice/protocols$": "<rootDir>/../protocols/src/index.ts",
|
|
17
17
|
"^@axiom-lattice/pg-stores$": "<rootDir>/../pg-stores/src/index.ts",
|
|
18
18
|
"^@axiom-lattice/queue-redis$": "<rootDir>/../queue-redis/src/index.ts",
|
|
19
|
+
"^@memory_lattice$": "<rootDir>/../core/src/memory_lattice",
|
|
20
|
+
"^@memory_lattice/(.*)$": "<rootDir>/../core/src/memory_lattice/$1",
|
|
21
|
+
"^@model_lattice$": "<rootDir>/../core/src/model_lattice",
|
|
22
|
+
"^@model_lattice/(.*)$": "<rootDir>/../core/src/model_lattice/$1",
|
|
23
|
+
"^@tool_lattice$": "<rootDir>/../core/src/tool_lattice",
|
|
24
|
+
"^@tool_lattice/(.*)$": "<rootDir>/../core/src/tool_lattice/$1",
|
|
25
|
+
"^@store_lattice$": "<rootDir>/../core/src/store_lattice",
|
|
26
|
+
"^@store_lattice/(.*)$": "<rootDir>/../core/src/store_lattice/$1",
|
|
27
|
+
"^@agent_lattice$": "<rootDir>/../core/src/agent_lattice",
|
|
28
|
+
"^@agent_lattice/(.*)$": "<rootDir>/../core/src/agent_lattice/$1",
|
|
29
|
+
"^@skill_lattice$": "<rootDir>/../core/src/skill_lattice",
|
|
30
|
+
"^@skill_lattice/(.*)$": "<rootDir>/../core/src/skill_lattice/$1",
|
|
31
|
+
"^@sandbox_lattice$": "<rootDir>/../core/src/sandbox_lattice",
|
|
32
|
+
"^@sandbox_lattice/(.*)$": "<rootDir>/../core/src/sandbox_lattice/$1",
|
|
33
|
+
"^@mcp_lattice$": "<rootDir>/../core/src/mcp_lattice",
|
|
34
|
+
"^@mcp_lattice/(.*)$": "<rootDir>/../core/src/mcp_lattice/$1",
|
|
35
|
+
"^@chunk_buffer_lattice$": "<rootDir>/../core/src/chunk_buffer_lattice",
|
|
36
|
+
"^@chunk_buffer_lattice/(.*)$": "<rootDir>/../core/src/chunk_buffer_lattice/$1",
|
|
37
|
+
"^@base$": "<rootDir>/../core/src/base",
|
|
38
|
+
"^@base/(.*)$": "<rootDir>/../core/src/base/$1",
|
|
39
|
+
"^@services$": "<rootDir>/../core/src/services",
|
|
40
|
+
"^@services/(.*)$": "<rootDir>/../core/src/services/$1",
|
|
41
|
+
"^@middlewares$": "<rootDir>/../core/src/middlewares",
|
|
42
|
+
"^@middlewares/(.*)\.js$": "<rootDir>/../core/src/middlewares/$1",
|
|
43
|
+
"^@middlewares/(.*)$": "<rootDir>/../core/src/middlewares/$1",
|
|
44
|
+
"^@deep_agent_new$": "<rootDir>/../core/src/deep_agent_new",
|
|
45
|
+
"^@deep_agent_new/(.*)$": "<rootDir>/../core/src/deep_agent_new/$1",
|
|
46
|
+
"^@agent_team$": "<rootDir>/../core/src/agent_team",
|
|
47
|
+
"^@agent_team/(.*)$": "<rootDir>/../core/src/agent_team/$1",
|
|
48
|
+
"^@schedule_lattice$": "<rootDir>/../core/src/schedule_lattice",
|
|
49
|
+
"^@schedule_lattice/(.*)$": "<rootDir>/../core/src/schedule_lattice/$1",
|
|
50
|
+
"^@queue_lattice$": "<rootDir>/../core/src/queue_lattice",
|
|
51
|
+
"^@queue_lattice/(.*)$": "<rootDir>/../core/src/queue_lattice/$1",
|
|
52
|
+
"^@embeddings_lattice$": "<rootDir>/../core/src/embeddings_lattice",
|
|
53
|
+
"^@embeddings_lattice/(.*)$": "<rootDir>/../core/src/embeddings_lattice/$1",
|
|
54
|
+
"^@vectorstore_lattice$": "<rootDir>/../core/src/vectorstore_lattice",
|
|
55
|
+
"^@vectorstore_lattice/(.*)$": "<rootDir>/../core/src/vectorstore_lattice/$1",
|
|
56
|
+
"^@logger_lattice$": "<rootDir>/../core/src/logger_lattice",
|
|
57
|
+
"^@logger_lattice/(.*)$": "<rootDir>/../core/src/logger_lattice/$1",
|
|
58
|
+
"^@util$": "<rootDir>/../core/src/util",
|
|
59
|
+
"^@util/(.*)$": "<rootDir>/../core/src/util/$1",
|
|
19
60
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
20
61
|
"^@services/(.*)$": "<rootDir>/src/services/$1",
|
|
21
62
|
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
|
|
22
63
|
"^@types$": "<rootDir>/src/types/index.ts",
|
|
23
64
|
"^e2b$": "<rootDir>/src/__tests__/__mocks__/e2b.ts",
|
|
65
|
+
// Strip .js extension from ESM-style imports (must come after all @-scoped mappings)
|
|
66
|
+
"^(@.*)[.]js$": "$1",
|
|
67
|
+
"^(\..*)[.]js$": "$1",
|
|
24
68
|
},
|
|
25
69
|
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/__tests__/**/*"],
|
|
26
70
|
coverageReporters: ["text", "lcov", "html"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiom-lattice/gateway",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.57",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"pg": "^8.11.0",
|
|
40
40
|
"redis": "^5.0.1",
|
|
41
41
|
"uuid": "^9.0.1",
|
|
42
|
-
"@axiom-lattice/core": "2.1.
|
|
43
|
-
"@axiom-lattice/pg-stores": "1.0.
|
|
44
|
-
"@axiom-lattice/protocols": "2.1.
|
|
45
|
-
"@axiom-lattice/queue-redis": "1.0.
|
|
42
|
+
"@axiom-lattice/core": "2.1.51",
|
|
43
|
+
"@axiom-lattice/pg-stores": "1.0.41",
|
|
44
|
+
"@axiom-lattice/protocols": "2.1.28",
|
|
45
|
+
"@axiom-lattice/queue-redis": "1.0.27"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^29.5.14",
|
|
@@ -332,6 +332,32 @@ describe("WorkspaceController - Tenant Isolation", () => {
|
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
+
describe("filesystem storage ~/ path passthrough", () => {
|
|
336
|
+
it("readFile should pass ~/ paths to the filesystem backend unchanged", async () => {
|
|
337
|
+
const { FilesystemBackend } = await import("@axiom-lattice/core");
|
|
338
|
+
|
|
339
|
+
const backendRead = jest.fn().mockResolvedValue("1: hello");
|
|
340
|
+
(FilesystemBackend as jest.Mock).mockImplementation(() => ({
|
|
341
|
+
lsInfo: jest.fn(),
|
|
342
|
+
read: backendRead,
|
|
343
|
+
}));
|
|
344
|
+
|
|
345
|
+
mockGetWorkspaceById.mockResolvedValue({
|
|
346
|
+
id: mockWorkspaceId,
|
|
347
|
+
tenantId: mockTenantId,
|
|
348
|
+
storageType: "filesystem",
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
const request = createMockRequest({
|
|
352
|
+
query: { path: "~/project/test.txt", offset: 0, limit: 50 },
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
await controller.readFile(request);
|
|
356
|
+
|
|
357
|
+
expect(backendRead).toHaveBeenCalledWith("~/project/test.txt", 0, 50);
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
335
361
|
describe("getTenantId helper", () => {
|
|
336
362
|
it("should extract tenantId from user context when available", () => {
|
|
337
363
|
const request = {
|