@rubytech/create-maxy 1.0.643 → 1.0.646
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/package.json +1 -1
- package/payload/platform/lib/graph-mcp/dist/index.js +7 -1
- package/payload/platform/lib/graph-mcp/dist/index.js.map +1 -1
- package/payload/platform/lib/graph-mcp/src/index.ts +9 -1
- package/payload/platform/plugins/admin/mcp/dist/index.js +12 -1
- package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/admin/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/contacts/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/email/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.js +8 -1
- package/payload/platform/plugins/email/mcp/dist/scripts/email-auto-respond.js.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/memory/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/scheduling/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js +8 -1
- package/payload/platform/plugins/scheduling/mcp/dist/scripts/check-due-events.js.map +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/tasks/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/telegram/mcp/dist/tools/message-history.d.ts.map +1 -1
- package/payload/platform/plugins/telegram/mcp/dist/tools/message-history.js +7 -1
- package/payload/platform/plugins/telegram/mcp/dist/tools/message-history.js.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/waitlist/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.d.ts.map +1 -1
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js +4 -7
- package/payload/platform/plugins/waitlist/mcp/dist/tools/waitlist-setup.js.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.js +7 -1
- package/payload/platform/plugins/workflows/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.d.ts.map +1 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js +7 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/dist/lib/neo4j.js.map +1 -1
- package/payload/premium-plugins/real-agency/plugins/loop/mcp/src/lib/neo4j.ts +9 -1
- package/payload/server/public/assets/admin-Cahp6spj.js +352 -0
- package/payload/server/public/assets/data-B4mICUUf.js +1 -0
- package/payload/server/public/assets/{jsx-runtime-SjVUZj3J.js → jsx-runtime-BYz1l0sM.js} +3 -3
- package/payload/server/public/assets/jsx-runtime-DzyKTi89.css +1 -0
- package/payload/server/public/assets/public-DUzYc3_6.js +5 -0
- package/payload/server/public/assets/share-2-Dl0LQGkm.js +1 -0
- package/payload/server/public/assets/useVoiceRecorder-0mmp40A4.js +36 -0
- package/payload/server/public/data.html +4 -4
- package/payload/server/public/index.html +5 -5
- package/payload/server/public/public.html +4 -4
- package/payload/server/server.js +774 -644
- package/payload/server/public/assets/admin-BTfeGAIg.js +0 -352
- package/payload/server/public/assets/data-DHhDRGaC.js +0 -1
- package/payload/server/public/assets/jsx-runtime-BNLXzSN4.css +0 -1
- package/payload/server/public/assets/public-C-nsHZgC.js +0 -5
- package/payload/server/public/assets/search-BzKUsdMm.js +0 -1
- package/payload/server/public/assets/useVoiceRecorder-t2l8eU6m.js +0 -36
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-lgnzUk6H.js";import{a as t,n,r,t as i}from"./jsx-runtime-BYz1l0sM.js";import{a,c as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./share-2-Dl0LQGkm.js";var p=n(`circle-arrow-up`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]]),m=n(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),h=n(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),g=n(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),_=r(),v=e(t(),1),y=i();function b(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{try{t(sessionStorage.getItem(`maxy-admin-session-key`))}catch{t(null)}r(!0)},[]),n?e?(0,y.jsxs)(`div`,{className:`data-page`,children:[(0,y.jsxs)(`header`,{className:`data-header`,children:[(0,y.jsxs)(`h1`,{className:`data-title`,children:[(0,y.jsx)(o,{size:18}),` Data`]}),(0,y.jsx)(x,{})]}),(0,y.jsxs)(`main`,{className:`data-main`,children:[(0,y.jsx)(S,{sessionKey:e}),(0,y.jsx)(D,{sessionKey:e})]})]}):(0,y.jsxs)(`div`,{className:`data-page`,children:[(0,y.jsx)(`header`,{className:`data-header`,children:(0,y.jsxs)(`h1`,{className:`data-title`,children:[(0,y.jsx)(o,{size:18}),` Data`]})}),(0,y.jsxs)(`div`,{className:`data-empty`,children:[(0,y.jsx)(`p`,{children:`You are not signed in.`}),(0,y.jsxs)(`p`,{children:[`Open the `,(0,y.jsx)(`a`,{href:`/`,className:`data-link`,children:`main admin page`}),` and log in, then return here.`]})]})]}):(0,y.jsx)(`div`,{className:`data-page`,children:(0,y.jsxs)(`div`,{className:`data-loading`,children:[(0,y.jsx)(a,{size:18,className:`spin`}),` Loading…`]})})}function x(){let[e,t]=(0,v.useState)(!1),n=(0,v.useRef)(null);(0,v.useEffect)(()=>{if(!e)return;let r=e=>{n.current&&(n.current.contains(e.target)||t(!1))},i=e=>{e.key===`Escape`&&t(!1)};return document.addEventListener(`mousedown`,r),document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`keydown`,i)}},[e]);let r=(0,v.useCallback)(()=>{try{sessionStorage.removeItem(`maxy-admin-session-key`)}catch{}window.location.href=`/`},[]);return(0,y.jsxs)(`div`,{className:`chat-burger-wrap`,ref:n,children:[(0,y.jsx)(`button`,{type:`button`,className:`chat-burger`,onClick:()=>t(e=>!e),"aria-label":`Menu`,"aria-haspopup":`true`,"aria-expanded":e,children:(0,y.jsx)(u,{size:20})}),e&&(0,y.jsxs)(`div`,{className:`chat-menu`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),window.location.href=`/`},children:[(0,y.jsx)(h,{size:14}),` Chat`]}),(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),window.location.href=`/graph/browser/`},children:[(0,y.jsx)(f,{size:14}),` Graph`]}),(0,y.jsx)(`div`,{className:`chat-menu-divider`}),(0,y.jsxs)(`button`,{type:`button`,className:`chat-menu-item`,onClick:()=>{t(!1),r()},children:[(0,y.jsx)(s,{size:14}),` Log out`]})]})]})}function S({sessionKey:e}){let[t,n]=(0,v.useState)(``),[r,i]=(0,v.useState)(``),[o,s]=(0,v.useState)(null),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(null);return(0,v.useEffect)(()=>{let e=t.trim();if(!e){i(``),s(null);return}let n=setTimeout(()=>i(e),300);return()=>clearTimeout(n)},[t]),(0,v.useEffect)(()=>{if(!r)return;let t=!1;u(!0),f(null);let n=`/api/admin/graph-search?session_key=${encodeURIComponent(e)}&q=${encodeURIComponent(r)}&limit=20`;return fetch(n).then(async e=>{let t=await e.json().catch(()=>({error:`HTTP ${e.status}`}));if(!e.ok)throw Error(t.error??`HTTP ${e.status}`);return t}).then(e=>{t||s(e.results)}).catch(e=>{t||f(e instanceof Error?e.message:String(e))}).finally(()=>{t||u(!1)}),()=>{t=!0}},[r,e]),(0,y.jsxs)(`section`,{className:`data-panel`,children:[(0,y.jsx)(`h2`,{className:`data-panel-title`,children:`Search`}),(0,y.jsx)(`p`,{className:`data-panel-subtitle`,children:`Find anything in your knowledge base by keyword.`}),(0,y.jsxs)(`div`,{className:`data-search-input`,children:[(0,y.jsx)(c,{size:14}),(0,y.jsx)(`input`,{type:`text`,placeholder:`Search your knowledge…`,value:t,onChange:e=>n(e.target.value),autoFocus:!0,autoComplete:`off`,spellCheck:!1}),l&&(0,y.jsx)(a,{size:14,className:`spin`})]}),d&&(0,y.jsxs)(`div`,{className:`data-error`,children:[`Search failed: `,d]}),o&&!l&&(0,y.jsxs)(`div`,{className:`data-results-meta`,children:[o.length,` result`,o.length===1?``:`s`]}),o&&o.length===0&&!l&&(0,y.jsx)(`div`,{className:`data-empty-results`,children:`No matches. Try a different keyword.`}),o&&o.length>0&&(0,y.jsx)(`ul`,{className:`data-results`,children:o.map(e=>(0,y.jsx)(C,{hit:e},e.nodeId))})]})}function C({hit:e}){let t=T(e.properties),n=E(e.properties),r=w(e.labels),[i,a]=(0,v.useState)(!1),o=n&&n.length>280,s=i||!o?n:n?.slice(0,280)+`…`;return(0,y.jsxs)(`li`,{className:`data-result`,children:[r&&(0,y.jsx)(`div`,{className:`data-result-header`,children:(0,y.jsx)(`span`,{className:`data-result-labels`,children:r})}),t&&(0,y.jsx)(`div`,{className:`data-result-title`,children:t}),n&&(0,y.jsx)(`pre`,{className:`data-result-body`,children:s}),o&&(0,y.jsx)(`button`,{type:`button`,className:`data-result-toggle`,onClick:()=>a(e=>!e),children:i?`Show less`:`Show more`})]})}function w(e){if(e.length===0)return null;let t=e[0].replace(/([a-z])([A-Z])/g,`$1 $2`);return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function T(e){for(let t of[`title`,`name`,`summary`,`headline`]){let n=e[t];if(typeof n==`string`&&n.length>0)return n.length>140?n.slice(0,140)+`…`:n}return null}function E(e){for(let t of[`content`,`summary`,`body`,`description`,`text`]){let n=e[t];if(typeof n==`string`&&n.length>0)return n}return null}function D({sessionKey:e}){let[t,n]=(0,v.useState)(`.`),[r,i]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,u]=(0,v.useState)(null),[f,h]=(0,v.useState)(!1),[_,b]=(0,v.useState)(null),x=(0,v.useRef)(null),[S,C]=(0,v.useState)(0),w=(0,v.useMemo)(()=>O(t),[t]);(0,v.useEffect)(()=>{let n=!1;s(!0),u(null);let r=`/api/admin/files?session_key=${encodeURIComponent(e)}&path=${encodeURIComponent(t===`.`?``:t)}`;return fetch(r).then(async e=>{let t=await e.json().catch(()=>({error:`HTTP ${e.status}`}));if(!e.ok)throw Error(t.error??`HTTP ${e.status}`);return t}).then(e=>{n||i(e.entries)}).catch(e=>{n||(i([]),u(e instanceof Error?e.message:String(e)))}).finally(()=>{n||s(!1)}),()=>{n=!0}},[e,t,S]);let T=(0,v.useCallback)(e=>{n(e)},[]),E=(0,v.useCallback)(()=>{if(t===`.`||t===``)return;let e=t.split(`/`).filter(Boolean);e.pop(),n(e.length===0?`.`:e.join(`/`))},[t]),D=(0,v.useCallback)(n=>{let r=t===`.`?n.name:`${t}/${n.name}`,i=`/api/admin/files/download?session_key=${encodeURIComponent(e)}&path=${encodeURIComponent(r)}`,a=document.createElement(`a`);a.href=i,a.rel=`noopener noreferrer`,document.body.appendChild(a),a.click(),a.remove()},[t,e]),j=(0,v.useCallback)(()=>{x.current?.click()},[]),M=(0,v.useCallback)(async t=>{b(null),h(!0);try{let r=new FormData;r.append(`session_key`,e),r.append(`file`,t);let i=await fetch(`/api/admin/files/upload`,{method:`POST`,body:r}),a=await i.json().catch(()=>({error:`HTTP ${i.status}`}));if(!i.ok)throw Error(a.error??`HTTP ${i.status}`);n(a.path.split(`/`).slice(0,-1).join(`/`)||`.`),C(e=>e+1)}catch(e){b(e instanceof Error?e.message:String(e))}finally{h(!1),x.current&&(x.current.value=``)}},[e]);return(0,y.jsxs)(`section`,{className:`data-panel`,children:[(0,y.jsxs)(`div`,{className:`data-panel-heading`,children:[(0,y.jsx)(`h2`,{className:`data-panel-title`,children:`Files`}),(0,y.jsxs)(`div`,{className:`data-file-actions`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`data-btn`,onClick:j,disabled:f,children:[f?(0,y.jsx)(a,{size:14,className:`spin`}):(0,y.jsx)(g,{size:14}),` Upload`]}),(0,y.jsx)(`input`,{type:`file`,ref:x,hidden:!0,onChange:e=>{let t=e.target.files?.[0];t&&M(t)}})]})]}),(0,y.jsxs)(`p`,{className:`data-panel-subtitle`,children:[`Everything under your install's `,(0,y.jsx)(`code`,{children:`data/`}),` directory. Click a folder to open it, a file to download it. Uploads go to `,(0,y.jsx)(`code`,{children:`data/uploads/`}),`.`]}),(0,y.jsxs)(`div`,{className:`data-breadcrumbs`,children:[(0,y.jsx)(`button`,{type:`button`,className:`data-crumb`,onClick:()=>T(`.`),children:`data`}),w.map(e=>(0,y.jsxs)(`span`,{className:`data-crumb-wrap`,children:[(0,y.jsx)(`span`,{className:`data-crumb-sep`,children:`/`}),(0,y.jsx)(`button`,{type:`button`,className:`data-crumb`,onClick:()=>T(e.path),children:e.name})]},e.path)),t!==`.`&&(0,y.jsxs)(`button`,{type:`button`,className:`data-btn data-btn-ghost data-up-btn`,onClick:E,children:[(0,y.jsx)(p,{size:14}),` Up`]})]}),_&&(0,y.jsxs)(`div`,{className:`data-error`,children:[`Upload failed: `,_]}),c&&(0,y.jsx)(`div`,{className:`data-error`,children:c}),o&&(0,y.jsxs)(`div`,{className:`data-loading`,children:[(0,y.jsx)(a,{size:14,className:`spin`}),` Loading…`]}),!o&&r&&r.length===0&&!c&&(0,y.jsx)(`div`,{className:`data-empty-results`,children:`Empty directory.`}),!o&&r&&r.length>0&&(0,y.jsx)(`ul`,{className:`data-entries`,children:r.map(e=>{let n=e.displayName??e.name;return(0,y.jsx)(`li`,{className:`data-entry`,children:e.kind===`directory`?(0,y.jsxs)(`button`,{type:`button`,className:`data-entry-btn`,onClick:()=>T(t===`.`?e.name:`${t}/${e.name}`),children:[(0,y.jsx)(m,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,title:e.name,children:n}),(0,y.jsx)(`span`,{className:`data-entry-meta`,children:A(e.modifiedAt)})]}):e.kind===`file`?(0,y.jsxs)(`button`,{type:`button`,className:`data-entry-btn`,onClick:()=>D(e),title:`Download ${n}`,children:[(0,y.jsx)(l,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,title:e.name,children:n}),(0,y.jsxs)(`span`,{className:`data-entry-meta`,children:[k(e.sizeBytes),` · `,A(e.modifiedAt)]}),(0,y.jsx)(d,{size:12,className:`data-entry-download-icon`})]}):(0,y.jsxs)(`div`,{className:`data-entry-btn data-entry-disabled`,children:[(0,y.jsx)(l,{size:14}),(0,y.jsx)(`span`,{className:`data-entry-name`,children:n}),(0,y.jsx)(`span`,{className:`data-entry-meta`,children:`special`})]})},e.name)})})]})}function O(e){if(e===`.`||e===``)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=0;e<t.length;e++)n.push({name:t[e],path:t.slice(0,e+1).join(`/`)});return n}function k(e){return e==null?``:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(1)} GB`}function A(e){try{let t=new Date(e);if(isNaN(t.getTime()))return`—`;let n=typeof navigator<`u`?navigator.languages&&navigator.languages.length>0?[...navigator.languages]:[navigator.language]:void 0;return t.toLocaleString(n,{dateStyle:`medium`,timeStyle:`short`})}catch{return`—`}}(0,_.createRoot)(document.getElementById(`root`)).render((0,y.jsx)(b,{}));
|