@axiom-lattice/gateway 2.1.106 → 2.1.107

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.106 build /home/runner/work/agentic/agentic/packages/gateway
2
+ > @axiom-lattice/gateway@2.1.107 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,25 +18,25 @@
18
18
  You need to set the output format to "esm" for "import.meta" to work correctly.
19
19
 
20
20
 
21
- ESM dist/index.mjs 271.42 KB
22
- ESM dist/sender-PX32VSHB.mjs 873.00 B
21
+ CJS dist/index.js 324.07 KB
22
+ CJS dist/index.js.map 664.13 KB
23
+ CJS ⚡️ Build success in 477ms
24
+ ESM dist/index.mjs 272.20 KB
23
25
  ESM dist/WechatChannelAdapter-WSDKR4OA.mjs 8.27 KB
26
+ ESM dist/sender-PX32VSHB.mjs 873.00 B
24
27
  ESM dist/chunk-6CUQGDJI.mjs 6.42 KB
25
28
  ESM dist/a2a-ERG5RMUW.mjs 15.95 KB
26
29
  ESM dist/resources-HEVGN3JM.mjs 10.92 KB
27
30
  ESM dist/chunk-LHQY46YB.mjs 1.46 KB
28
- ESM dist/index.mjs.map 575.75 KB
29
- ESM dist/sender-PX32VSHB.mjs.map 2.07 KB
30
31
  ESM dist/WechatChannelAdapter-WSDKR4OA.mjs.map 16.28 KB
32
+ ESM dist/sender-PX32VSHB.mjs.map 2.07 KB
31
33
  ESM dist/chunk-6CUQGDJI.mjs.map 14.04 KB
32
34
  ESM dist/a2a-ERG5RMUW.mjs.map 32.14 KB
33
35
  ESM dist/resources-HEVGN3JM.mjs.map 19.82 KB
34
36
  ESM dist/chunk-LHQY46YB.mjs.map 2.39 KB
35
- ESM ⚡️ Build success in 519ms
36
- CJS dist/index.js 323.26 KB
37
- CJS dist/index.js.map 662.71 KB
38
- CJS ⚡️ Build success in 520ms
37
+ ESM dist/index.mjs.map 577.17 KB
38
+ ESM ⚡️ Build success in 515ms
39
39
  DTS Build start
40
- DTS ⚡️ Build success in 21723ms
40
+ DTS ⚡️ Build success in 19498ms
41
41
  DTS dist/index.d.ts 7.57 KB
42
42
  DTS dist/index.d.mts 7.57 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @axiom-lattice/gateway
2
2
 
3
+ ## 2.1.107
4
+
5
+ ### Patch Changes
6
+
7
+ - 67491bd: fix issue
8
+
3
9
  ## 2.1.106
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1627,6 +1627,21 @@ async function deleteAssistant(request, reply) {
1627
1627
  });
1628
1628
  }
1629
1629
  import_core2.eventBus.publish("assistant:deleted", { id, tenantId });
1630
+ const userId = getUserId(request);
1631
+ if (userId) {
1632
+ try {
1633
+ const linkStore = (0, import_core.getStoreLattice)("default", "userTenantLink").store;
1634
+ const link = await linkStore.getLink(userId, tenantId);
1635
+ const meta = link?.metadata || {};
1636
+ if (meta.personalAssistantId === id) {
1637
+ delete meta.personalAssistantId;
1638
+ delete meta.personalProjectId;
1639
+ delete meta.personalWorkspaceId;
1640
+ await linkStore.updateLink(userId, tenantId, { metadata: meta });
1641
+ }
1642
+ } catch {
1643
+ }
1644
+ }
1630
1645
  return {
1631
1646
  success: true,
1632
1647
  message: "Successfully deleted assistant"
@@ -7288,6 +7303,18 @@ var AuthController = class {
7288
7303
  const token = await this.generateToken(userId, tenantId);
7289
7304
  const link = await this.userTenantLinkStore.getLink(userId, tenantId);
7290
7305
  const linkMeta = link?.metadata || {};
7306
+ let personalAssistant = null;
7307
+ if (linkMeta.personalAssistantId) {
7308
+ const assistantStore = (0, import_core29.getStoreLattice)("default", "assistant").store;
7309
+ const exists = await assistantStore.hasAssistant(tenantId, linkMeta.personalAssistantId);
7310
+ if (exists) {
7311
+ personalAssistant = {
7312
+ assistantId: linkMeta.personalAssistantId,
7313
+ projectId: linkMeta.personalProjectId || "default",
7314
+ workspaceId: linkMeta.personalWorkspaceId || "default"
7315
+ };
7316
+ }
7317
+ }
7291
7318
  return {
7292
7319
  success: true,
7293
7320
  data: {
@@ -7297,11 +7324,7 @@ var AuthController = class {
7297
7324
  status: tenant.status
7298
7325
  },
7299
7326
  token,
7300
- personalAssistant: linkMeta.personalAssistantId ? {
7301
- assistantId: linkMeta.personalAssistantId,
7302
- projectId: linkMeta.personalProjectId || "default",
7303
- workspaceId: linkMeta.personalWorkspaceId || "default"
7304
- } : null
7327
+ personalAssistant
7305
7328
  }
7306
7329
  };
7307
7330
  } catch (error) {