meshy-node 0.8.6 → 0.8.8

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,4 +1,4 @@
1
- import{c as a}from"./index-CwYkt_RH.js";/**
1
+ import{c as a}from"./index-uVUa1V95.js";/**
2
2
  * @license lucide-react v1.7.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Meshy Dashboard</title>
7
7
  <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>&#x1F578;</text></svg>" />
8
- <script type="module" crossorigin src="/assets/index-CwYkt_RH.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BHdoRCbz.css">
8
+ <script type="module" crossorigin src="/assets/index-uVUa1V95.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-j4uVsDWB.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/main.cjs CHANGED
@@ -65871,14 +65871,25 @@ function createTaskRoutes() {
65871
65871
  if (existing?.id === shareId) {
65872
65872
  const updated = taskEngine.updateTaskShare(existing.id, {
65873
65873
  tenant: body.tenant,
65874
- scope: body.scope
65875
- }) ?? existing;
65874
+ scope: body.scope,
65875
+ revokedAt: void 0
65876
+ }) ?? { ...existing, tenant: body.tenant, scope: body.scope, revokedAt: void 0 };
65876
65877
  res.json({ shareId: updated.id, tenant: updated.tenant, scope: updated.scope, url: buildShareUrl(shareOrigin, updated.id) });
65877
65878
  return;
65878
65879
  }
65879
65880
  if (existing) {
65880
65881
  taskEngine.updateTaskShare(existing.id, { revokedAt: Date.now() });
65881
65882
  }
65883
+ const stableShare = taskEngine.getTaskShare(shareId);
65884
+ if (stableShare?.taskId === task.id) {
65885
+ const updated = taskEngine.updateTaskShare(stableShare.id, {
65886
+ tenant: body.tenant,
65887
+ scope: body.scope,
65888
+ revokedAt: void 0
65889
+ }) ?? { ...stableShare, tenant: body.tenant, scope: body.scope, revokedAt: void 0 };
65890
+ res.json({ shareId: updated.id, tenant: updated.tenant, scope: updated.scope, url: buildShareUrl(shareOrigin, updated.id) });
65891
+ return;
65892
+ }
65882
65893
  const share = taskEngine.createTaskShare({
65883
65894
  id: shareId,
65884
65895
  taskId: task.id,
@@ -66090,6 +66101,10 @@ function toSharedConversation(share, task) {
66090
66101
  }
66091
66102
  function createSharedRoutes() {
66092
66103
  const router = (0, import_express10.Router)();
66104
+ router.use((_req, res, next) => {
66105
+ res.setHeader("Cache-Control", "no-store, max-age=0");
66106
+ next();
66107
+ });
66093
66108
  router.get("/conversations/:shareId", asyncHandler8(async (req, res) => {
66094
66109
  const { taskEngine } = req.app.locals.deps;
66095
66110
  const shareId = req.params.shareId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meshy-node",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
4
4
  "private": false,
5
5
  "description": "Standalone Meshy node package with bundled runtime and dashboard assets.",
6
6
  "type": "commonjs",
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "packageName": "meshy-node",
3
- "packageVersion": "0.8.6",
3
+ "packageVersion": "0.8.8",
4
4
  "packages": {
5
5
  "workspace": {
6
6
  "name": "meshy",
7
- "version": "0.8.6"
7
+ "version": "0.8.8"
8
8
  },
9
9
  "node": {
10
10
  "name": "meshy-node",
11
- "version": "0.8.6"
11
+ "version": "0.8.8"
12
12
  },
13
13
  "core": {
14
14
  "name": "@meshy/core",
@@ -26,6 +26,6 @@
26
26
  "repository": {
27
27
  "url": "https://github.com/ai-microsoft/meshy",
28
28
  "branch": "main",
29
- "commit": "8f032a9"
29
+ "commit": "6fe2727"
30
30
  }
31
31
  }