@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/gateway@2.1.78 build /home/runner/work/agentic/agentic/packages/gateway
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
  CLI 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
- CJS dist/index.js 238.86 KB
22
- CJS dist/index.js.map 502.08 KB
23
- CJS ⚡️ Build success in 404ms
24
- ESM dist/index.mjs 234.16 KB
21
+ CJS dist/index.js 239.18 KB
22
+ CJS dist/index.js.map 502.61 KB
23
+ CJS ⚡️ Build success in 411ms
24
+ ESM dist/index.mjs 234.48 KB
25
25
  ESM dist/sender-PX32VSHB.mjs 873.00 B
26
- ESM dist/index.mjs.map 500.57 KB
27
26
  ESM dist/sender-PX32VSHB.mjs.map 2.07 KB
28
- ESM ⚡️ Build success in 407ms
27
+ ESM dist/index.mjs.map 501.10 KB
28
+ ESM ⚡️ Build success in 412ms
29
29
  DTS Build start
30
- DTS ⚡️ Build success in 13939ms
30
+ DTS ⚡️ Build success in 13288ms
31
31
  DTS dist/index.d.ts 5.01 KB
32
32
  DTS dist/index.d.mts 5.01 KB
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 sandboxName = sandboxService.computeSandboxName(
2799
- assistantId,
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.createSandbox(sandboxName);
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 sandboxName = sandboxService.computeSandboxName(
2843
- assistantId,
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.createSandbox(sandboxName);
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 body = parseLarkRequestBody(request.body, installation.config.encryptKey);
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, installation);
6080
+ const inboundMessage = await larkChannelAdapter.receive(request.body, larkInstallation);
6072
6081
  if (!inboundMessage) {
6073
6082
  reply.status(200).send();
6074
6083
  return;