@axiom-lattice/gateway 2.1.78 → 2.1.79
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 +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.js +24 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/channels/lark/LarkChannelAdapter.ts +1 -1
- package/src/channels/lark/controller.ts +4 -3
- package/src/controllers/sandbox.ts +21 -21
- package/src/controllers/workflow-tracking.ts +1 -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.79 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
|
|
@@ -18,15 +18,15 @@
|
|
|
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[32m502.
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
24
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m234.
|
|
21
|
+
[32mCJS[39m [1mdist/index.js [22m[32m239.18 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m502.61 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 411ms
|
|
24
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m234.48 KB[39m
|
|
25
25
|
[32mESM[39m [1mdist/sender-PX32VSHB.mjs [22m[32m873.00 B[39m
|
|
26
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m500.57 KB[39m
|
|
27
26
|
[32mESM[39m [1mdist/sender-PX32VSHB.mjs.map [22m[32m2.07 KB[39m
|
|
28
|
-
[32mESM[39m
|
|
27
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m501.10 KB[39m
|
|
28
|
+
[32mESM[39m ⚡️ Build success in 412ms
|
|
29
29
|
[34mDTS[39m Build start
|
|
30
|
-
[32mDTS[39m ⚡️ Build success in
|
|
30
|
+
[32mDTS[39m ⚡️ Build success in 13288ms
|
|
31
31
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m5.01 KB[39m
|
|
32
32
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m5.01 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @axiom-lattice/gateway
|
|
2
2
|
|
|
3
|
+
## 2.1.79
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c560d5d: fix sandbox image & env consistency, unify sandbox creation through getSandboxFromConfig
|
|
8
|
+
- Updated dependencies [c560d5d]
|
|
9
|
+
- @axiom-lattice/core@2.1.69
|
|
10
|
+
- @axiom-lattice/protocols@2.1.36
|
|
11
|
+
- @axiom-lattice/agent-eval@2.1.63
|
|
12
|
+
- @axiom-lattice/pg-stores@1.0.59
|
|
13
|
+
- @axiom-lattice/queue-redis@1.0.35
|
|
14
|
+
|
|
3
15
|
## 2.1.78
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -2795,13 +2795,17 @@ function registerSandboxProxyRoutes(app2) {
|
|
|
2795
2795
|
if (!vmIsolation) {
|
|
2796
2796
|
return reply.status(500).send({ error: "Assistant sandbox config not found" });
|
|
2797
2797
|
}
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2800
|
-
threadId,
|
|
2801
|
-
vmIsolation
|
|
2802
|
-
);
|
|
2798
|
+
const workspaceId = request.headers["x-workspace-id"];
|
|
2799
|
+
const projectId = request.headers["x-project-id"];
|
|
2803
2800
|
const sandboxManager = (0, import_core16.getSandBoxManager)();
|
|
2804
|
-
const sandbox = await sandboxManager.
|
|
2801
|
+
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
2802
|
+
assistant_id: assistantId,
|
|
2803
|
+
thread_id: threadId,
|
|
2804
|
+
tenantId,
|
|
2805
|
+
workspaceId,
|
|
2806
|
+
projectId,
|
|
2807
|
+
vmIsolation
|
|
2808
|
+
});
|
|
2805
2809
|
try {
|
|
2806
2810
|
const data = await request.file();
|
|
2807
2811
|
if (!data) {
|
|
@@ -2839,13 +2843,17 @@ function registerSandboxProxyRoutes(app2) {
|
|
|
2839
2843
|
if (!vmIsolation) {
|
|
2840
2844
|
return reply.status(500).send({ error: "Assistant filesystem vmIsolation not found" });
|
|
2841
2845
|
}
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2844
|
-
threadId,
|
|
2845
|
-
vmIsolation
|
|
2846
|
-
);
|
|
2846
|
+
const workspaceId = request.headers["x-workspace-id"];
|
|
2847
|
+
const projectId = request.headers["x-project-id"];
|
|
2847
2848
|
const sandboxManager = (0, import_core16.getSandBoxManager)();
|
|
2848
|
-
const sandbox = await sandboxManager.
|
|
2849
|
+
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
2850
|
+
assistant_id: assistantId,
|
|
2851
|
+
thread_id: threadId,
|
|
2852
|
+
tenantId,
|
|
2853
|
+
workspaceId,
|
|
2854
|
+
projectId,
|
|
2855
|
+
vmIsolation
|
|
2856
|
+
});
|
|
2849
2857
|
try {
|
|
2850
2858
|
const resolvedPath = filePath.startsWith("/") ? filePath : `/${filePath}`;
|
|
2851
2859
|
const filename = getFilenameFromPath(resolvedPath);
|
|
@@ -5885,7 +5893,7 @@ var larkChannelAdapter = {
|
|
|
5885
5893
|
},
|
|
5886
5894
|
async sendReply(replyTarget, message, installation) {
|
|
5887
5895
|
const { createLarkSender: createLarkSender2 } = await Promise.resolve().then(() => (init_sender(), sender_exports));
|
|
5888
|
-
const sender = createLarkSender2(installation.config);
|
|
5896
|
+
const sender = await createLarkSender2(installation.config);
|
|
5889
5897
|
await sender.sendTextReply({
|
|
5890
5898
|
chatId: replyTarget.rawTarget.chatId,
|
|
5891
5899
|
text: message.text
|
|
@@ -6063,12 +6071,13 @@ function createLarkEventHandler(deps) {
|
|
|
6063
6071
|
reply.status(404).send({ success: false, message: "Installation not found" });
|
|
6064
6072
|
return;
|
|
6065
6073
|
}
|
|
6066
|
-
const
|
|
6074
|
+
const larkInstallation = installation;
|
|
6075
|
+
const body = parseLarkRequestBody(request.body, larkInstallation.config.encryptKey);
|
|
6067
6076
|
if (body.type === "url_verification" && body.challenge) {
|
|
6068
6077
|
reply.status(200).send({ challenge: body.challenge });
|
|
6069
6078
|
return;
|
|
6070
6079
|
}
|
|
6071
|
-
const inboundMessage = await larkChannelAdapter.receive(request.body,
|
|
6080
|
+
const inboundMessage = await larkChannelAdapter.receive(request.body, larkInstallation);
|
|
6072
6081
|
if (!inboundMessage) {
|
|
6073
6082
|
reply.status(200).send();
|
|
6074
6083
|
return;
|