mastra 1.40.2-alpha.2 → 1.40.2-alpha.3

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.
Files changed (39) hide show
  1. package/dist/docs/SKILL.md +1 -1
  2. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  3. package/dist/factory/assets/{BoardConfigPage-Dan9VyhL.js → BoardConfigPage-Dyf45WS_.js} +1 -1
  4. package/dist/factory/assets/{BoardIntakePage-BYZy_ru_.js → BoardIntakePage-D3ZiWxdW.js} +1 -1
  5. package/dist/factory/assets/{BoardRulesPage-CxNhQl3d.js → BoardRulesPage-BxX6-8ie.js} +1 -1
  6. package/dist/factory/assets/ConditionRows-BV6wHoaG.js +1 -0
  7. package/dist/factory/assets/{CreateFactoryPage-CoxfdoDW.js → CreateFactoryPage-CVz7eZwg.js} +1 -1
  8. package/dist/factory/assets/{FactorySkillPage-ix3Ct4E0.js → FactorySkillPage-CNqkoQZi.js} +1 -1
  9. package/dist/factory/assets/{FactorySkillsPage-SPaAjjue.js → FactorySkillsPage-CcrItaCy.js} +1 -1
  10. package/dist/factory/assets/{IconScript.es-BQPM-6BN.js → IconScript.es-Co_pin4X.js} +1 -1
  11. package/dist/factory/assets/{KnowledgePage-nfIFPgp6.js → KnowledgePage-2eDOQtWm.js} +1 -1
  12. package/dist/factory/assets/{MastraGatewayBilling-Bpx-h8Vt.js → MastraGatewayBilling-DUU0LSY2.js} +1 -1
  13. package/dist/factory/assets/{NewBoardPage-VIlgPMpB.js → NewBoardPage-CYvk9BEW.js} +1 -1
  14. package/dist/factory/assets/{NewPage-BnMyEhkh.js → NewPage-DeDa0phC.js} +1 -1
  15. package/dist/factory/assets/{OnboardingPage-CHfAWT72.js → OnboardingPage-DdcZpJsc.js} +1 -1
  16. package/dist/factory/assets/{ProviderBrandIcon-C7mph6N5.js → ProviderBrandIcon-BYIRXEhA.js} +1 -1
  17. package/dist/factory/assets/{RulesPage-Bm395CUB.js → RulesPage-DmQpSMtC.js} +1 -1
  18. package/dist/factory/assets/SessionLayout-Uelj8cZ6.js +4 -0
  19. package/dist/factory/assets/{SessionPage-B9E-jG8M.js → SessionPage-NE-3YkG9.js} +1 -1
  20. package/dist/factory/assets/{SettingsPage-BKDcpSlF.js → SettingsPage-DJ8lifvY.js} +1 -1
  21. package/dist/factory/assets/{SlackConnectionPage-ChNhPiV-.js → SlackConnectionPage-BHG7f16i.js} +1 -1
  22. package/dist/factory/assets/{StackedDiffs-BFXdSF8w.js → StackedDiffs-KRfZDfPC.js} +1 -1
  23. package/dist/factory/assets/{Tree-B90XgTY4-cZ-SkEZr.js → Tree-B90XgTY4-BLd80tNF.js} +1 -1
  24. package/dist/factory/assets/{index-CD4tM4nf.js → index-7W2GRQBh.js} +2 -2
  25. package/dist/factory/assets/index-Ht7Ui57o.css +1 -0
  26. package/dist/factory/assets/{useDraftModelGuards-BwRi1qov.js → useDraftModelGuards-CIXGo6vX.js} +1 -1
  27. package/dist/factory/assets/{workspaces-CF_kIkTd.js → workspaces-CwZ9bD-Y.js} +1 -1
  28. package/dist/factory/index.html +2 -2
  29. package/dist/index.js +1 -1
  30. package/dist/studio/assets/{index-B4zG_u8m.js → index-Cv39a2ni.js} +2 -2
  31. package/dist/studio/assets/{main-CEtWndOQ.js → main-D_UBSd_f.js} +391 -328
  32. package/dist/studio/assets/style-DY-TR8Ov.css +3 -0
  33. package/dist/studio/index.html +2 -2
  34. package/package.json +4 -4
  35. package/dist/factory/assets/ConditionRows-DJVG4EHd.js +0 -1
  36. package/dist/factory/assets/IconMerged.es-BudaK6HC.js +0 -1
  37. package/dist/factory/assets/SessionLayout-BShjmacL.js +0 -4
  38. package/dist/factory/assets/index-Bi7K7czv.css +0 -1
  39. package/dist/studio/assets/style-CW1SmVpP.css +0 -3
@@ -1 +1 @@
1
- import"./rolldown-runtime-XKyaHtl9.js";import{n as e,t}from"./Breadcrumb.es-BpvMnN1l.js";import{Fi as n}from"./GithubIcon.es-BPBhMx2H.js";import{t as r}from"./page-header-Maytcmgh--oRyXaDt.js";import{Cr as i,Mr as a,en as o,jr as s}from"./index-CD4tM4nf.js";import{A as c,a as l}from"./Sidebar.es-DSPzNNju.js";import{t as u}from"./IconPlusMedium.es-QmObHPf-.js";import{O as d,T as f,n as p,t as m}from"./IconChevronRightMedium.es-BjSIsine.js";import{t as h}from"./lib-DkXXjRNC.js";import{r as g}from"./useBoardEditor-DiWa4Lcl.js";import{i as _,t as v}from"./SkillBadges-BN_VjOtf.js";import{a as y,c as b,d as x}from"./boardConfigPaths-Btimpi_r.js";import{n as S,r as C}from"./Card-BbxDmj8W-9N7pulL8.js";import{n as w}from"./useBoardCatalog-vK4woIAH.js";import{t as T}from"./HrefLink-C-5Xp-pL.js";import{n as E}from"./boardCatalog-y-s19dQU.js";import{r as D}from"./settingsColumn-CrKuH8q1.js";var O=d();function k(e){return new Set((e??[]).flatMap(e=>e.phases.flatMap(e=>e.skill?[e.skill]:[])))}function A({skill:e,href:t}){return(0,O.jsx)(C,{elevation:`flat`,href:t,LinkComponent:T,children:(0,O.jsxs)(S,{className:`flex items-center gap-4`,children:[(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,O.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(p,{tone:`ink`,as:`span`,variant:`body`,children:e.name}),e.error&&(0,O.jsx)(c,{variant:`destructive`,children:`Failed to load`}),(0,O.jsx)(v,{skill:e})]}),e.error?(0,O.jsxs)(p,{as:`span`,variant:`caption`,className:`text-destructive-foreground whitespace-pre-wrap`,children:[`Agents cannot load this skill: `,e.error]}):(0,O.jsx)(p,{tone:`muted`,as:`span`,variant:`caption`,children:e.description})]}),(0,O.jsx)(m,{"aria-hidden":!0,className:`text-muted-foreground size-icon-md shrink-0`})]})})}function j({factoryId:e,boardId:t}){let n=_(e),r=w(e),i=k(r.data===void 0?void 0:E(r.data)),a=(n.data?.skills??[]).filter(e=>!i.has(e.name)),o=n.isPending||r.isLoading;return(0,O.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[o&&(0,O.jsx)(p,{tone:`muted`,as:`p`,variant:`caption`,role:`status`,children:`Loading skills…`}),n.error&&(0,O.jsx)(p,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:n.error instanceof Error?n.error.message:`Failed to load skills`}),r.error&&(0,O.jsx)(p,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:`Installed boards could not be loaded, so some of these skills may run in a board phase.`}),!o&&n.isSuccess&&a.length===0&&(0,O.jsx)(p,{tone:`muted`,as:`p`,variant:`caption`,children:`Every skill runs in a board phase.`}),!o&&a.map(n=>(0,O.jsx)(A,{skill:n,href:b(e,t,n.name)},n.name))]})}function M(){let c=i(),d=o()?.boardId??``,{isMobile:p,desktopState:m}=l(),v=p||m===`collapsed`,b=g(c.id,d).data?.board,S=_(c.id).data?.canEdit??!1,C=s({breadcrumbs:v&&b?(0,O.jsxs)(t,{label:`Breadcrumb`,className:`min-w-0 flex-1 overflow-hidden`,children:[(0,O.jsx)(e,{as:h,to:y(c.id,d),children:b.name}),(0,O.jsx)(e,{as:`span`,isCurrent:!0,children:`Skills`})]}):void 0});return(0,O.jsx)(a,{variant:`narrow`,header:(0,O.jsx)(`div`,{className:f(D,`pb-8`),children:(0,O.jsxs)(r,{children:[(0,O.jsx)(r.Title,{children:`Skills`}),(0,O.jsx)(r.Description,{children:`Agents load these when they need them. Skills a phase runs are on that phase's page.`}),S&&(0,O.jsx)(r.Action,{children:(0,O.jsx)(n,{size:`sm`,icon:(0,O.jsx)(u,{}),render:(0,O.jsx)(h,{to:x(c.id,d)}),children:`New skill`})})]})}),...C,children:(0,O.jsx)(`div`,{className:D,children:(0,O.jsx)(j,{factoryId:c.id,boardId:d})})})}export{M as FactorySkillsPage};
1
+ import"./rolldown-runtime-XKyaHtl9.js";import{n as e,t}from"./Breadcrumb.es-BpvMnN1l.js";import{Fi as n}from"./GithubIcon.es-BPBhMx2H.js";import{t as r}from"./page-header-Maytcmgh--oRyXaDt.js";import{Cr as i,Mr as a,en as o,jr as s}from"./index-7W2GRQBh.js";import{A as c,a as l}from"./Sidebar.es-DSPzNNju.js";import{t as u}from"./IconPlusMedium.es-QmObHPf-.js";import{O as d,T as f,n as p,t as m}from"./IconChevronRightMedium.es-BjSIsine.js";import{t as h}from"./lib-DkXXjRNC.js";import{r as g}from"./useBoardEditor-DiWa4Lcl.js";import{i as _,t as v}from"./SkillBadges-BN_VjOtf.js";import{a as y,c as b,d as x}from"./boardConfigPaths-Btimpi_r.js";import{n as S,r as C}from"./Card-BbxDmj8W-9N7pulL8.js";import{n as w}from"./useBoardCatalog-vK4woIAH.js";import{t as T}from"./HrefLink-C-5Xp-pL.js";import{n as E}from"./boardCatalog-y-s19dQU.js";import{r as D}from"./settingsColumn-CrKuH8q1.js";var O=d();function k(e){return new Set((e??[]).flatMap(e=>e.phases.flatMap(e=>e.skill?[e.skill]:[])))}function A({skill:e,href:t}){return(0,O.jsx)(C,{elevation:`flat`,href:t,LinkComponent:T,children:(0,O.jsxs)(S,{className:`flex items-center gap-4`,children:[(0,O.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,O.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(p,{tone:`ink`,as:`span`,variant:`body`,children:e.name}),e.error&&(0,O.jsx)(c,{variant:`destructive`,children:`Failed to load`}),(0,O.jsx)(v,{skill:e})]}),e.error?(0,O.jsxs)(p,{as:`span`,variant:`caption`,className:`text-destructive-foreground whitespace-pre-wrap`,children:[`Agents cannot load this skill: `,e.error]}):(0,O.jsx)(p,{tone:`muted`,as:`span`,variant:`caption`,children:e.description})]}),(0,O.jsx)(m,{"aria-hidden":!0,className:`text-muted-foreground size-icon-md shrink-0`})]})})}function j({factoryId:e,boardId:t}){let n=_(e),r=w(e),i=k(r.data===void 0?void 0:E(r.data)),a=(n.data?.skills??[]).filter(e=>!i.has(e.name)),o=n.isPending||r.isLoading;return(0,O.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[o&&(0,O.jsx)(p,{tone:`muted`,as:`p`,variant:`caption`,role:`status`,children:`Loading skills…`}),n.error&&(0,O.jsx)(p,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:n.error instanceof Error?n.error.message:`Failed to load skills`}),r.error&&(0,O.jsx)(p,{as:`p`,variant:`caption`,className:`text-destructive-foreground`,children:`Installed boards could not be loaded, so some of these skills may run in a board phase.`}),!o&&n.isSuccess&&a.length===0&&(0,O.jsx)(p,{tone:`muted`,as:`p`,variant:`caption`,children:`Every skill runs in a board phase.`}),!o&&a.map(n=>(0,O.jsx)(A,{skill:n,href:b(e,t,n.name)},n.name))]})}function M(){let c=i(),d=o()?.boardId??``,{isMobile:p,desktopState:m}=l(),v=p||m===`collapsed`,b=g(c.id,d).data?.board,S=_(c.id).data?.canEdit??!1,C=s({breadcrumbs:v&&b?(0,O.jsxs)(t,{label:`Breadcrumb`,className:`min-w-0 flex-1 overflow-hidden`,children:[(0,O.jsx)(e,{as:h,to:y(c.id,d),children:b.name}),(0,O.jsx)(e,{as:`span`,isCurrent:!0,children:`Skills`})]}):void 0});return(0,O.jsx)(a,{variant:`narrow`,header:(0,O.jsx)(`div`,{className:f(D,`pb-8`),children:(0,O.jsxs)(r,{children:[(0,O.jsx)(r.Title,{children:`Skills`}),(0,O.jsx)(r.Description,{children:`Agents load these when they need them. Skills a phase runs are on that phase's page.`}),S&&(0,O.jsx)(r.Action,{children:(0,O.jsx)(n,{size:`sm`,icon:(0,O.jsx)(u,{}),render:(0,O.jsx)(h,{to:x(c.id,d)}),children:`New skill`})})]})}),...C,children:(0,O.jsx)(`div`,{className:D,children:(0,O.jsx)(j,{factoryId:c.id,boardId:d})})})}export{M as FactorySkillsPage};
@@ -1 +1 @@
1
- import{O as e,T as t,f as n,n as r}from"./IconChevronRightMedium.es-BjSIsine.js";import{E as i,m as a,p as o}from"./useThreadWorkspacePath-BAc6-H_t.js";import{Mr as s,Nr as c,jr as l}from"./index-CD4tM4nf.js";var u=e();function d({title:e,titleMenu:n,headerCenter:d,headerActions:f,dockActions:p,children:m}){let h=l({breadcrumbs:e?(0,u.jsxs)(`div`,{className:`h-control-sm flex min-w-0 items-center gap-0.5`,children:[(0,u.jsx)(r,{as:`h1`,variant:`label`,tone:`ink`,className:`min-w-0 truncate px-3`,children:e}),n]}):void 0,triggerClassName:`size-control-sm rounded-full [&>svg]:size-icon-md`}),g=!!(h.breadcrumbs||f),_=f&&p?p(f):void 0;return(0,u.jsxs)(`div`,{className:`relative flex h-full min-h-0 flex-col`,style:g?o:void 0,children:[g?(0,u.jsx)(`div`,{className:`[container-type:size] pointer-events-none absolute inset-0 z-20`,children:(0,u.jsxs)(`div`,{"data-slot":`chat-page-header`,className:t(`grid items-center gap-x-2 ps-3 pt-(--chat-header-top)`,i.header,d?`grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]`:`grid-cols-[minmax(0,1fr)_auto]`),children:[(0,u.jsxs)(c,{border:!1,className:t(`grid grid-cols-subgrid px-0`,_?`col-[1/-2]`:`col-span-full`),children:[(0,u.jsx)(`div`,{className:`flex min-w-0 items-center`,children:h.breadcrumbs&&(0,u.jsx)(`div`,{className:a,children:h.breadcrumbs})}),d?(0,u.jsx)(`div`,{className:`flex items-center`,children:d}):null,_?null:(0,u.jsx)(`div`,{className:`flex min-w-0 justify-end`,children:f&&(0,u.jsx)(`div`,{className:t(a,`shrink-0`),children:f})})]}),_]})}):null,(0,u.jsx)(s,{variant:`fit`,children:m})]})}var f=n(`IconScript`,()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`path`,{d:`M7 20H5.5C4.39543 20 3.5 19.1046 3.5 18V17C3.5 16.4477 3.94772 16 4.5 16H12.5C13.0523 16 13.5 16.4477 13.5 17V18.25C13.5 19.2165 14.2835 20 15.25 20C16.2165 20 17 19.2165 17 18.25V5.75C17 4.7835 17.7835 4 18.75 4C19.7165 4 20.5 4.7835 20.5 5.75V8C20.5 8.55228 20.0523 9 19.5 9H17.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M19 4H8C6.89543 4 6 4.89543 6 6V16`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M15 20H6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 8.5H10L11 8L12 8.5H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 12H10L11 11.5L12 12H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]}));export{d as n,f as t};
1
+ import{O as e,T as t,f as n,n as r}from"./IconChevronRightMedium.es-BjSIsine.js";import{E as i,m as a,p as o}from"./useThreadWorkspacePath-BAc6-H_t.js";import{Mr as s,Nr as c,jr as l}from"./index-7W2GRQBh.js";var u=e();function d({title:e,titleMenu:n,headerCenter:d,headerActions:f,dockActions:p,children:m}){let h=l({breadcrumbs:e?(0,u.jsxs)(`div`,{className:`h-control-sm flex min-w-0 items-center gap-0.5`,children:[(0,u.jsx)(r,{as:`h1`,variant:`label`,tone:`ink`,className:`min-w-0 truncate px-3`,children:e}),n]}):void 0,triggerClassName:`size-control-sm rounded-full [&>svg]:size-icon-md`}),g=!!(h.breadcrumbs||f),_=f&&p?p(f):void 0;return(0,u.jsxs)(`div`,{className:`relative flex h-full min-h-0 flex-col`,style:g?o:void 0,children:[g?(0,u.jsx)(`div`,{className:`[container-type:size] pointer-events-none absolute inset-0 z-20`,children:(0,u.jsxs)(`div`,{"data-slot":`chat-page-header`,className:t(`grid items-center gap-x-2 ps-3 pt-(--chat-header-top)`,i.header,d?`grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]`:`grid-cols-[minmax(0,1fr)_auto]`),children:[(0,u.jsxs)(c,{border:!1,className:t(`grid grid-cols-subgrid px-0`,_?`col-[1/-2]`:`col-span-full`),children:[(0,u.jsx)(`div`,{className:`flex min-w-0 items-center`,children:h.breadcrumbs&&(0,u.jsx)(`div`,{className:a,children:h.breadcrumbs})}),d?(0,u.jsx)(`div`,{className:`flex items-center`,children:d}):null,_?null:(0,u.jsx)(`div`,{className:`flex min-w-0 justify-end`,children:f&&(0,u.jsx)(`div`,{className:t(a,`shrink-0`),children:f})})]}),_]})}):null,(0,u.jsx)(s,{variant:`fit`,children:m})]})}var f=n(`IconScript`,()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`path`,{d:`M7 20H5.5C4.39543 20 3.5 19.1046 3.5 18V17C3.5 16.4477 3.94772 16 4.5 16H12.5C13.0523 16 13.5 16.4477 13.5 17V18.25C13.5 19.2165 14.2835 20 15.25 20C16.2165 20 17 19.2165 17 18.25V5.75C17 4.7835 17.7835 4 18.75 4C19.7165 4 20.5 4.7835 20.5 5.75V8C20.5 8.55228 20.0523 9 19.5 9H17.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M19 4H8C6.89543 4 6 4.89543 6 6V16`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M15 20H6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 8.5H10L11 8L12 8.5H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,u.jsx)(`path`,{d:`M9.5 12H10L11 11.5L12 12H13.5`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]}));export{d as n,f as t};