meshy-node 0.8.7 → 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.
- package/README.md +1 -1
- package/dashboard/assets/{DashboardPage-Du4ZFTCW.js → DashboardPage-bSrGTUpL.js} +3 -3
- package/dashboard/assets/{DashboardShared-Dyy5Gg2W.js → DashboardShared-NVn_Tw2W.js} +1 -1
- package/dashboard/assets/{DiffTab-BX8MfEKs.js → DiffTab-CAro0pTI.js} +1 -1
- package/dashboard/assets/{FilesTab-BpTzsnri.js → FilesTab-Bz7sh_3g.js} +1 -1
- package/dashboard/assets/{PreviewTab-By7QvF9t.js → PreviewTab-DoI4vsUp.js} +1 -1
- package/dashboard/assets/SharedConversationPage-BOY747wP.js +7 -0
- package/dashboard/assets/{file-DdQgkZiG.js → file-Dntylbon.js} +1 -1
- package/dashboard/assets/{index-C4i4cMxr.js → index-uVUa1V95.js} +63 -63
- package/dashboard/assets/{play-DOP4Sb9t.js → play-142JBIu2.js} +1 -1
- package/dashboard/index.html +1 -1
- package/main.cjs +17 -2
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/SharedConversationPage-CiA3IWeo.js +0 -7
package/dashboard/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
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'>🕸</text></svg>" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-uVUa1V95.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-j4uVsDWB.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
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
|
-
|
|
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
package/runtime-metadata.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "meshy-node",
|
|
3
|
-
"packageVersion": "0.8.
|
|
3
|
+
"packageVersion": "0.8.8",
|
|
4
4
|
"packages": {
|
|
5
5
|
"workspace": {
|
|
6
6
|
"name": "meshy",
|
|
7
|
-
"version": "0.8.
|
|
7
|
+
"version": "0.8.8"
|
|
8
8
|
},
|
|
9
9
|
"node": {
|
|
10
10
|
"name": "meshy-node",
|
|
11
|
-
"version": "0.8.
|
|
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": "
|
|
29
|
+
"commit": "6fe2727"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FilesTab-BpTzsnri.js","assets/index-C4i4cMxr.js","assets/index-j4uVsDWB.css","assets/DashboardShared-Dyy5Gg2W.js","assets/file-DdQgkZiG.js","assets/PreviewTab-By7QvF9t.js","assets/play-DOP4Sb9t.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as N,aW as k,r as s,j as e,bg as S,P as T,U as C,a8 as P,bh as M,bi as _,bj as j,bk as E,bl as L,a3 as w,bm as A}from"./index-C4i4cMxr.js";import{v as I,s as O,q as z,h as F,L as R,C as q,T as v,m as D}from"./DashboardShared-Dyy5Gg2W.js";/**
|
|
3
|
-
* @license lucide-react v1.7.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const V=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],B=N("message-square-text",V),G=s.lazy(async()=>({default:(await w(()=>import("./FilesTab-BpTzsnri.js"),__vite__mapDeps([0,1,2,3,4]))).FilesTab})),U=s.lazy(async()=>({default:(await w(()=>import("./PreviewTab-By7QvF9t.js"),__vite__mapDeps([5,1,2,6]))).PreviewTab})),W={getOutput:j,getOutputTree:_,getOutputContent:M},H={getOutput:j,createPreviewSession:(t,r)=>A(t,typeof r=="string"?r:r==null?void 0:r.path)};function Q(){const{shareId:t}=k(),[r,d]=s.useState(null),[o,a]=s.useState([]),[x,c]=s.useState(!0),[g,i]=s.useState(null),l=s.useRef(null);return s.useEffect(()=>{if(!t){d(null),a([]),i("Shared conversation not found"),c(!1);return}let u=!1;l.current=t,c(!0),i(null);const h=async n=>{try{const[m,f]=await Promise.all([E(t),L(t)]);if(u||l.current!==t)return;d(m),a(y=>n?f.logs:D(y,f.logs)),i(null)}catch(m){if(u||l.current!==t)return;n&&(d(null),a([]),i(m instanceof Error?m.message:"Failed to load shared conversation"))}finally{!u&&l.current===t&&n&&c(!1)}};h(!0);const p=window.setInterval(()=>{h(!1)},2500);return()=>{u=!0,window.clearInterval(p)}},[t]),e.jsx(Z,{conversation:r,logs:o,loading:x,error:g})}function Z({conversation:t,logs:r,loading:d,error:o}){const[a,x]=s.useState("transcript"),[c,g]=s.useState(!1),i=s.useMemo(()=>{if(!t)return null;const n=I(t.payload.initialMessage);return n.length>0?O(n,new Date(t.createdAt).toISOString()):null},[t]),l=s.useMemo(()=>z([...i?[i]:[],...r]),[i,r]),u=s.useMemo(()=>F(l),[l]),h=(t==null?void 0:t.scope)==="filesPreview",p=e.jsx("section",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain scroll-pb-16 bg-gradient-to-b from-background/15 via-transparent to-background/35 px-4 py-5 sm:px-6",children:e.jsxs("div",{className:"mx-auto flex max-w-[72rem] flex-col gap-5 pb-16",children:[d&&e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border/60 bg-background/60 px-4 py-3 text-sm text-muted-foreground",children:[e.jsx(R,{className:"h-4 w-4 animate-spin"}),"Loading shared conversation..."]}),!d&&o&&e.jsxs("div",{className:"rounded-lg border border-destructive/20 bg-destructive/10 px-5 py-8 text-center text-destructive",children:[e.jsx("div",{className:"text-base font-semibold",children:"Shared conversation unavailable"}),e.jsx("div",{className:"mt-2 text-sm",children:o})]}),!d&&!o&&l.length===0&&e.jsxs("div",{className:"rounded-lg border border-dashed border-border/70 bg-background/35 px-5 py-8 text-center",children:[e.jsx(B,{className:"mx-auto h-6 w-6 text-muted-foreground"}),e.jsx("div",{className:"mt-3 text-sm font-medium text-foreground",children:"No transcript output yet"})]}),!d&&!o&&u.map(({event:n,subItems:m},f)=>e.jsx(q,{event:n,agent:t==null?void 0:t.agent,subItems:m,questionResponseDisabled:!0},`shared-${f}`))]})});return e.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[e.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),e.jsxs("div",{className:"relative z-10 flex h-full min-h-0 gap-3 px-3 py-3 sm:px-5 lg:px-6",children:[e.jsxs("aside",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle hidden w-64 shrink-0 flex-col overflow-hidden rounded-xl px-4 py-5 lg:flex xl:w-72",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm",children:"M"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"truncate text-sm font-semibold text-foreground",children:"Meshy Workspace"}),e.jsx("div",{className:"text-[10px] font-medium uppercase tracking-[0.24em] text-muted-foreground",children:"Shared view"})]})]}),e.jsx("div",{className:"mt-7 text-[11px] font-medium uppercase tracking-[0.28em] text-muted-foreground",children:"Shared conversation"}),t&&e.jsxs("div",{className:"mt-3 space-y-3",children:[e.jsx("h1",{className:"max-h-28 overflow-hidden break-words text-base font-semibold leading-5 text-foreground [overflow-wrap:anywhere]",title:t.title,children:t.title}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(S,{status:t.status}),e.jsx(T,{priority:t.priority})]}),e.jsxs("div",{className:"space-y-1 text-xs text-muted-foreground",children:[e.jsxs("div",{children:["updated ",C(t.updatedAt)]}),e.jsx("div",{className:"font-mono",children:t.id.slice(0,8)})]})]}),e.jsxs("div",{className:"mt-auto space-y-2 pt-6",children:[c&&e.jsx("div",{className:"rounded-xl border border-border/70 bg-background/80 p-3 font-mono text-[11px] text-foreground shadow-sm",children:"npx -y meshy-node@latest start"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:"https://github.com/ai-microsoft/meshy",target:"_blank",rel:"noreferrer","aria-label":"Open Meshy on GitHub",className:"inline-flex h-9 w-9 items-center justify-center rounded-sm border border-border/70 bg-background/70 text-muted-foreground transition-colors hover:text-foreground",children:e.jsx($,{className:"h-4 w-4"})}),e.jsxs("button",{type:"button",onClick:()=>g(n=>!n),"aria-expanded":c,className:"inline-flex h-9 items-center gap-2 rounded-sm border border-border/70 bg-background/70 px-3 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:[e.jsx(P,{className:"h-4 w-4"}),"Try it"]})]})]})]}),e.jsxs("main",{className:"dashboard-panel animate-panel-settle flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-xl",children:[e.jsxs("header",{className:"shrink-0 border-b border-border/55 bg-card/28 px-4 py-3 sm:px-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-sm border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background lg:hidden",children:"M"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.28em] text-muted-foreground",children:"Meshy Workspace"}),e.jsx("div",{className:"truncate text-base font-semibold text-foreground",children:(t==null?void 0:t.title)??"Shared conversation"})]})]}),h&&e.jsxs("div",{className:"mt-3 inline-flex h-auto rounded-sm bg-muted/70 p-0.5 text-muted-foreground",children:[e.jsx("button",{type:"button",onClick:()=>x("transcript"),className:b(a==="transcript"),children:"Transcript"}),e.jsx("button",{type:"button",onClick:()=>x("files"),className:b(a==="files"),children:"Files"}),e.jsx("button",{type:"button",onClick:()=>x("preview"),className:b(a==="preview"),children:"Preview"})]})]}),h&&t?e.jsxs(e.Fragment,{children:[a==="transcript"&&p,a==="files"&&e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e.jsx(s.Suspense,{fallback:e.jsx(v,{label:"Loading files..."}),children:e.jsx(G,{taskId:t.shareId,api:W})})}),a==="preview"&&e.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:e.jsx(s.Suspense,{fallback:e.jsx(v,{label:"Loading preview..."}),children:e.jsx(U,{taskId:t.shareId,api:H,allowPortPreview:!1})})})]}):p]})]})]})}function b(t){return t?"inline-flex items-center justify-center whitespace-nowrap rounded-sm bg-background px-2.5 py-0.5 text-[11px] font-medium text-foreground shadow-sm":"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2.5 py-0.5 text-[11px] font-medium transition-colors hover:text-foreground"}function $({className:t}){return e.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.58 2 12.23c0 4.51 2.87 8.34 6.84 9.7.5.1.68-.22.68-.49 0-.24-.01-.88-.01-1.73-2.78.62-3.37-1.37-3.37-1.37-.45-1.18-1.11-1.49-1.11-1.49-.91-.64.07-.63.07-.63 1 .07 1.53 1.06 1.53 1.06.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.37-2.22-.26-4.55-1.14-4.55-5.05 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.31.1-2.71 0 0 .84-.27 2.75 1.05A9.3 9.3 0 0 1 12 6.96c.85 0 1.71.12 2.51.34 1.91-1.32 2.75-1.05 2.75-1.05.55 1.4.2 2.45.1 2.71.64.72 1.03 1.63 1.03 2.75 0 3.92-2.34 4.79-4.57 5.05.36.32.68.94.68 1.9 0 1.37-.01 2.47-.01 2.81 0 .27.18.59.69.49A10.05 10.05 0 0 0 22 12.23C22 6.58 17.52 2 12 2Z"})})}export{Q as SharedConversationPage,Z as SharedConversationView};
|