@axiom-lattice/gateway 2.1.78 → 2.1.80
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 +21 -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/dist/index.mjs
CHANGED
|
@@ -2729,13 +2729,17 @@ function registerSandboxProxyRoutes(app2) {
|
|
|
2729
2729
|
if (!vmIsolation) {
|
|
2730
2730
|
return reply.status(500).send({ error: "Assistant sandbox config not found" });
|
|
2731
2731
|
}
|
|
2732
|
-
const
|
|
2733
|
-
|
|
2734
|
-
threadId,
|
|
2735
|
-
vmIsolation
|
|
2736
|
-
);
|
|
2732
|
+
const workspaceId = request.headers["x-workspace-id"];
|
|
2733
|
+
const projectId = request.headers["x-project-id"];
|
|
2737
2734
|
const sandboxManager = getSandBoxManager2();
|
|
2738
|
-
const sandbox = await sandboxManager.
|
|
2735
|
+
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
2736
|
+
assistant_id: assistantId,
|
|
2737
|
+
thread_id: threadId,
|
|
2738
|
+
tenantId,
|
|
2739
|
+
workspaceId,
|
|
2740
|
+
projectId,
|
|
2741
|
+
vmIsolation
|
|
2742
|
+
});
|
|
2739
2743
|
try {
|
|
2740
2744
|
const data = await request.file();
|
|
2741
2745
|
if (!data) {
|
|
@@ -2773,13 +2777,17 @@ function registerSandboxProxyRoutes(app2) {
|
|
|
2773
2777
|
if (!vmIsolation) {
|
|
2774
2778
|
return reply.status(500).send({ error: "Assistant filesystem vmIsolation not found" });
|
|
2775
2779
|
}
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2778
|
-
threadId,
|
|
2779
|
-
vmIsolation
|
|
2780
|
-
);
|
|
2780
|
+
const workspaceId = request.headers["x-workspace-id"];
|
|
2781
|
+
const projectId = request.headers["x-project-id"];
|
|
2781
2782
|
const sandboxManager = getSandBoxManager2();
|
|
2782
|
-
const sandbox = await sandboxManager.
|
|
2783
|
+
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
2784
|
+
assistant_id: assistantId,
|
|
2785
|
+
thread_id: threadId,
|
|
2786
|
+
tenantId,
|
|
2787
|
+
workspaceId,
|
|
2788
|
+
projectId,
|
|
2789
|
+
vmIsolation
|
|
2790
|
+
});
|
|
2783
2791
|
try {
|
|
2784
2792
|
const resolvedPath = filePath.startsWith("/") ? filePath : `/${filePath}`;
|
|
2785
2793
|
const filename = getFilenameFromPath(resolvedPath);
|
|
@@ -5830,7 +5838,7 @@ var larkChannelAdapter = {
|
|
|
5830
5838
|
},
|
|
5831
5839
|
async sendReply(replyTarget, message, installation) {
|
|
5832
5840
|
const { createLarkSender } = await import("./sender-PX32VSHB.mjs");
|
|
5833
|
-
const sender = createLarkSender(installation.config);
|
|
5841
|
+
const sender = await createLarkSender(installation.config);
|
|
5834
5842
|
await sender.sendTextReply({
|
|
5835
5843
|
chatId: replyTarget.rawTarget.chatId,
|
|
5836
5844
|
text: message.text
|
|
@@ -6008,12 +6016,13 @@ function createLarkEventHandler(deps) {
|
|
|
6008
6016
|
reply.status(404).send({ success: false, message: "Installation not found" });
|
|
6009
6017
|
return;
|
|
6010
6018
|
}
|
|
6011
|
-
const
|
|
6019
|
+
const larkInstallation = installation;
|
|
6020
|
+
const body = parseLarkRequestBody(request.body, larkInstallation.config.encryptKey);
|
|
6012
6021
|
if (body.type === "url_verification" && body.challenge) {
|
|
6013
6022
|
reply.status(200).send({ challenge: body.challenge });
|
|
6014
6023
|
return;
|
|
6015
6024
|
}
|
|
6016
|
-
const inboundMessage = await larkChannelAdapter.receive(request.body,
|
|
6025
|
+
const inboundMessage = await larkChannelAdapter.receive(request.body, larkInstallation);
|
|
6017
6026
|
if (!inboundMessage) {
|
|
6018
6027
|
reply.status(200).send();
|
|
6019
6028
|
return;
|