@mastra/server 1.82.0 → 1.83.0-alpha.1
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/dist/_types/@internal_core@0.1.4/dist/storage/index.d.ts +24 -2
- package/dist/_types/@mastra_schema-compat@1.3.17/dist/_types/@internal_ai-v6@0.0.95/dist/index.d.ts +96 -15
- package/dist/{a2a-CoiG3TAj.js → a2a-CQlJ-SZr.js} +4 -4
- package/dist/{a2a-CoiG3TAj.js.map → a2a-CQlJ-SZr.js.map} +1 -1
- package/dist/{a2a-DvqRdny6.cjs → a2a-mDspNbWX.cjs} +4 -4
- package/dist/{a2a-DvqRdny6.cjs.map → a2a-mDspNbWX.cjs.map} +1 -1
- package/dist/{agent-builder-D0Up9Fw1.cjs → agent-builder-B9gEkbch.cjs} +8 -8
- package/dist/{agent-builder-D0Up9Fw1.cjs.map → agent-builder-B9gEkbch.cjs.map} +1 -1
- package/dist/{agent-builder-C_L1i2eE.js → agent-builder-BF7OAl_R.js} +8 -8
- package/dist/{agent-builder-C_L1i2eE.js.map → agent-builder-BF7OAl_R.js.map} +1 -1
- package/dist/{agent-versions-BccL4mEW.cjs → agent-versions-CwWhEoU5.cjs} +2 -2
- package/dist/{agent-versions-BccL4mEW.cjs.map → agent-versions-CwWhEoU5.cjs.map} +1 -1
- package/dist/{agent-versions-DFJyxWY1.js → agent-versions-DfcKpYNW.js} +2 -2
- package/dist/{agent-versions-DFJyxWY1.js.map → agent-versions-DfcKpYNW.js.map} +1 -1
- package/dist/{agents-BXqMKoOz.js → agents-BCgiMlDq.js} +2 -2
- package/dist/{agents-BXqMKoOz.js.map → agents-BCgiMlDq.js.map} +1 -1
- package/dist/{agents-DOHGWXDa.cjs → agents-CMEeZr5y.cjs} +223 -63
- package/dist/agents-CMEeZr5y.cjs.map +1 -0
- package/dist/{agents-DbnPZXIN.cjs → agents-CjcvdF2e.cjs} +2 -2
- package/dist/{agents-DbnPZXIN.cjs.map → agents-CjcvdF2e.cjs.map} +1 -1
- package/dist/{agents-CgcW6lHt.js → agents-DXlVewzD.js} +223 -63
- package/dist/agents-DXlVewzD.js.map +1 -0
- package/dist/{api-schema-manifest-DCHOlOuJ.cjs → api-schema-manifest-BKnghL_k.cjs} +3 -3
- package/dist/{api-schema-manifest-DCHOlOuJ.cjs.map → api-schema-manifest-BKnghL_k.cjs.map} +1 -1
- package/dist/{api-schema-manifest-Ci2qUYHc.js → api-schema-manifest-DOuSq4rG.js} +3 -3
- package/dist/{api-schema-manifest-Ci2qUYHc.js.map → api-schema-manifest-DOuSq4rG.js.map} +1 -1
- package/dist/{background-tasks-BHhn4YZA.js → background-tasks-BIuEr2of.js} +3 -3
- package/dist/{background-tasks-BHhn4YZA.js.map → background-tasks-BIuEr2of.js.map} +1 -1
- package/dist/{background-tasks-Ci2tlxJC.cjs → background-tasks-BXTIp0QV.cjs} +3 -3
- package/dist/{background-tasks-Ci2tlxJC.cjs.map → background-tasks-BXTIp0QV.cjs.map} +1 -1
- package/dist/{builder-registry-m_gHCe12.js → builder-registry-Dd7pbJ5A.js} +4 -4
- package/dist/{builder-registry-m_gHCe12.js.map → builder-registry-Dd7pbJ5A.js.map} +1 -1
- package/dist/{builder-registry-D1_hGKCJ.cjs → builder-registry-DrBUA6EZ.cjs} +4 -4
- package/dist/{builder-registry-D1_hGKCJ.cjs.map → builder-registry-DrBUA6EZ.cjs.map} +1 -1
- package/dist/{channels-hhQ3vD30.js → channels-B6hwVMbV.js} +4 -4
- package/dist/{channels-hhQ3vD30.js.map → channels-B6hwVMbV.js.map} +1 -1
- package/dist/{channels-Bfkp5vYI.cjs → channels-DbfSH5O2.cjs} +4 -4
- package/dist/{channels-Bfkp5vYI.cjs.map → channels-DbfSH5O2.cjs.map} +1 -1
- package/dist/{conversations-Ch_VuVwY.cjs → conversations-CFj4BnNb.cjs} +5 -5
- package/dist/{conversations-Ch_VuVwY.cjs.map → conversations-CFj4BnNb.cjs.map} +1 -1
- package/dist/{conversations-xS7yHuG1.js → conversations-DjTKtaUi.js} +5 -5
- package/dist/{conversations-xS7yHuG1.js.map → conversations-DjTKtaUi.js.map} +1 -1
- package/dist/{dist-BKNKucT9.cjs → dist-Ctfk9X6u.cjs} +208 -247
- package/dist/dist-Ctfk9X6u.cjs.map +1 -0
- package/dist/dist-DJjVMQiv.js +1 -0
- package/dist/{dist-CIYZuix4.js → dist-OKFDPspq.js} +208 -247
- package/dist/dist-OKFDPspq.js.map +1 -0
- package/dist/{dist-DgKeISkr.cjs → dist-ZYvqJK9p.cjs} +1 -1
- package/dist/docs/SKILL.md +5 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-resumable-streams.md +140 -0
- package/dist/docs/references/docs-knowledge-overview.md +106 -0
- package/dist/docs/references/docs-server-custom-adapters.md +4 -0
- package/dist/docs/references/docs-server-server-adapters.md +679 -0
- package/dist/docs/references/docs-studio-knowledge.md +45 -24
- package/dist/docs/references/reference-observability-tracing-advanced-queries.md +47 -58
- package/dist/docs/references/reference-server-invoke-route.md +86 -0
- package/dist/docs/references/reference-server-routes.md +63 -0
- package/dist/{dynamic-workflows-DDauBnDt.js → dynamic-workflows-CyaZLmHX.js} +2 -2
- package/dist/{dynamic-workflows-DDauBnDt.js.map → dynamic-workflows-CyaZLmHX.js.map} +1 -1
- package/dist/{dynamic-workflows-CpCkqM1g.cjs → dynamic-workflows-ZmzWJXxG.cjs} +2 -2
- package/dist/{dynamic-workflows-CpCkqM1g.cjs.map → dynamic-workflows-ZmzWJXxG.cjs.map} +1 -1
- package/dist/{editor-builder-CKfy5eZY.cjs → editor-builder-CBBZxQhO.cjs} +4 -4
- package/dist/{editor-builder-CKfy5eZY.cjs.map → editor-builder-CBBZxQhO.cjs.map} +1 -1
- package/dist/{editor-builder-Bln4Pg1U.js → editor-builder-fe70YP8g.js} +2 -2
- package/dist/{editor-builder-Bln4Pg1U.js.map → editor-builder-fe70YP8g.js.map} +1 -1
- package/dist/{editor-builder-Ceen28s8.js → editor-builder-o9xJHa96.js} +4 -4
- package/dist/{editor-builder-Ceen28s8.js.map → editor-builder-o9xJHa96.js.map} +1 -1
- package/dist/{editor-builder-BaI8pttR.cjs → editor-builder-xQmDgVgJ.cjs} +2 -2
- package/dist/{editor-builder-BaI8pttR.cjs.map → editor-builder-xQmDgVgJ.cjs.map} +1 -1
- package/dist/{helpers-DNq3LtLq.js → helpers-B29a1nM3.js} +51 -48
- package/dist/helpers-B29a1nM3.js.map +1 -0
- package/dist/{helpers-BKtUXhz2.cjs → helpers-CylvUIZm.cjs} +56 -47
- package/dist/helpers-CylvUIZm.cjs.map +1 -0
- package/dist/{knowledge-Ba74qr0v.js → knowledge-Cd2cCq-Y.js} +4 -4
- package/dist/{knowledge-Ba74qr0v.js.map → knowledge-Cd2cCq-Y.js.map} +1 -1
- package/dist/{knowledge-urR7FFG8.cjs → knowledge-Q_SCnD9m.cjs} +4 -4
- package/dist/{knowledge-urR7FFG8.cjs.map → knowledge-Q_SCnD9m.cjs.map} +1 -1
- package/dist/{logs-B57_NKDn.js → logs-C5L6gRGr.js} +4 -4
- package/dist/{logs-B57_NKDn.js.map → logs-C5L6gRGr.js.map} +1 -1
- package/dist/{logs-BJN3M88A.cjs → logs-DWIbFIw6.cjs} +4 -4
- package/dist/{logs-BJN3M88A.cjs.map → logs-DWIbFIw6.cjs.map} +1 -1
- package/dist/{mcp-B9BILfJP.cjs → mcp-CKvOVfHn.cjs} +3 -3
- package/dist/{mcp-B9BILfJP.cjs.map → mcp-CKvOVfHn.cjs.map} +1 -1
- package/dist/{mcp-BkmWZD6M.js → mcp-CntC59iU.js} +3 -3
- package/dist/{mcp-BkmWZD6M.js.map → mcp-CntC59iU.js.map} +1 -1
- package/dist/{memory-Dqod_AK9.cjs → memory-DIos0BE-.cjs} +57 -15
- package/dist/{memory-Dqod_AK9.cjs.map → memory-DIos0BE-.cjs.map} +1 -1
- package/dist/{memory-ipOCmg0C.js → memory-JzgWJevA.js} +57 -15
- package/dist/{memory-ipOCmg0C.js.map → memory-JzgWJevA.js.map} +1 -1
- package/dist/{observability-BtdW6mjq.cjs → observability-BB0DeGo4.cjs} +4 -3
- package/dist/{observability-BtdW6mjq.cjs.map → observability-BB0DeGo4.cjs.map} +1 -1
- package/dist/{observability-DBtyAJnb.js → observability-Cl3qZKTD.js} +4 -3
- package/dist/{observability-DBtyAJnb.js.map → observability-Cl3qZKTD.js.map} +1 -1
- package/dist/{observability-new-endpoints-jjCgXuTF.cjs → observability-new-endpoints-DugFsWBU.cjs} +154 -956
- package/dist/observability-new-endpoints-DugFsWBU.cjs.map +1 -0
- package/dist/{observability-new-endpoints-Di7m_-xc.js → observability-new-endpoints-qE2NutZ1.js} +72 -880
- package/dist/observability-new-endpoints-qE2NutZ1.js.map +1 -0
- package/dist/observability-signal-context-BYOFtbM_.cjs +1317 -0
- package/dist/observability-signal-context-BYOFtbM_.cjs.map +1 -0
- package/dist/observability-signal-context-CL5-rCWM.js +952 -0
- package/dist/observability-signal-context-CL5-rCWM.js.map +1 -0
- package/dist/{plans-Djcp3C0d.cjs → plans-CQijj_Am.cjs} +5 -5
- package/dist/{plans-Djcp3C0d.cjs.map → plans-CQijj_Am.cjs.map} +1 -1
- package/dist/{plans-nHOnlGzr.js → plans-DVx9N2re.js} +5 -5
- package/dist/{plans-nHOnlGzr.js.map → plans-DVx9N2re.js.map} +1 -1
- package/dist/{probe-image-size-DGTRKrgq.js → probe-image-size-Cxm5QtwO.js} +2 -2
- package/dist/{probe-image-size-DGTRKrgq.js.map → probe-image-size-Cxm5QtwO.js.map} +1 -1
- package/dist/{probe-image-size-BAwk1h6w.cjs → probe-image-size-bDuzMW0E.cjs} +2 -2
- package/dist/{probe-image-size-BAwk1h6w.cjs.map → probe-image-size-bDuzMW0E.cjs.map} +1 -1
- package/dist/{responses-BdOStKtX.cjs → responses-DYGS0aiI.cjs} +5 -5
- package/dist/{responses-BdOStKtX.cjs.map → responses-DYGS0aiI.cjs.map} +1 -1
- package/dist/{responses-CEet9y8G.js → responses-NM-kLq8b.js} +5 -5
- package/dist/{responses-CEet9y8G.js.map → responses-NM-kLq8b.js.map} +1 -1
- package/dist/{route-builder-BxPrwNog.js → route-builder-BKEzjw_M.js} +2 -2
- package/dist/{route-builder-BxPrwNog.js.map → route-builder-BKEzjw_M.js.map} +1 -1
- package/dist/{route-builder-CvARmqnA.cjs → route-builder-DHqDrSSy.cjs} +2 -2
- package/dist/{route-builder-CvARmqnA.cjs.map → route-builder-DHqDrSSy.cjs.map} +1 -1
- package/dist/{routes-5FpkkzND.js → routes-B2XGdvlv.js} +33 -32
- package/dist/routes-B2XGdvlv.js.map +1 -0
- package/dist/{routes-DU_FlwJP.cjs → routes-CWrdLnBc.cjs} +33 -32
- package/dist/routes-CWrdLnBc.cjs.map +1 -0
- package/dist/{schedules-D8ShgpY3.cjs → schedules-CvWX2yKR.cjs} +3 -3
- package/dist/{schedules-D8ShgpY3.cjs.map → schedules-CvWX2yKR.cjs.map} +1 -1
- package/dist/{schedules-CGViSLZC.js → schedules-D9CKB18-.js} +3 -3
- package/dist/{schedules-CGViSLZC.js.map → schedules-D9CKB18-.js.map} +1 -1
- package/dist/{schema-Bf12g7KC-DBc4NSds.js → schema-Bf12g7KC-5EUrrnSf.js} +96 -96
- package/dist/{schema-Bf12g7KC-DBc4NSds.js.map → schema-Bf12g7KC-5EUrrnSf.js.map} +1 -1
- package/dist/{schema-Bf12g7KC-plP4Ir6h.cjs → schema-Bf12g7KC-C5XzpQxe.cjs} +96 -96
- package/dist/{schema-Bf12g7KC-plP4Ir6h.cjs.map → schema-Bf12g7KC-C5XzpQxe.cjs.map} +1 -1
- package/dist/{scorer-versions-vQVWyYWA.cjs → scorer-versions-Bhdvt-cX.cjs} +2 -2
- package/dist/{scorer-versions-vQVWyYWA.cjs.map → scorer-versions-Bhdvt-cX.cjs.map} +1 -1
- package/dist/{scorer-versions-BZ58s09W.js → scorer-versions-DhT7Lj33.js} +2 -2
- package/dist/{scorer-versions-BZ58s09W.js.map → scorer-versions-DhT7Lj33.js.map} +1 -1
- package/dist/{scores-Bw6Tuga5.cjs → scores-CWx6H3Z8.cjs} +4 -4
- package/dist/{scores-Bw6Tuga5.cjs.map → scores-CWx6H3Z8.cjs.map} +1 -1
- package/dist/{scores-BaDFGpmr.js → scores-DTVV_OaX.js} +4 -4
- package/dist/{scores-BaDFGpmr.js.map → scores-DTVV_OaX.js.map} +1 -1
- package/dist/server/auth/helpers.d.ts +20 -0
- package/dist/server/auth/helpers.d.ts.map +1 -1
- package/dist/server/auth/index.cjs +2 -1
- package/dist/server/auth/index.js +2 -2
- package/dist/server/handlers/a2a.cjs +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agent-controller.cjs +17 -6
- package/dist/server/handlers/agent-controller.cjs.map +1 -1
- package/dist/server/handlers/agent-controller.d.ts.map +1 -1
- package/dist/server/handlers/agent-controller.js +17 -6
- package/dist/server/handlers/agent-controller.js.map +1 -1
- package/dist/server/handlers/agent-versions.cjs +4 -4
- package/dist/server/handlers/agent-versions.js +4 -4
- package/dist/server/handlers/agents.cjs +1 -1
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/auth.cjs +4 -4
- package/dist/server/handlers/auth.js +4 -4
- package/dist/server/handlers/authorship.cjs +1 -1
- package/dist/server/handlers/authorship.js +1 -1
- package/dist/server/handlers/background-tasks.cjs +1 -1
- package/dist/server/handlers/background-tasks.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +1 -1
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/channels.cjs +1 -1
- package/dist/server/handlers/channels.js +1 -1
- package/dist/server/handlers/conversations.cjs +1 -1
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/datasets.cjs +7 -5
- package/dist/server/handlers/datasets.cjs.map +1 -1
- package/dist/server/handlers/datasets.d.ts.map +1 -1
- package/dist/server/handlers/datasets.js +7 -5
- package/dist/server/handlers/datasets.js.map +1 -1
- package/dist/server/handlers/dynamic-workflows.cjs +1 -1
- package/dist/server/handlers/dynamic-workflows.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +1 -1
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/error.cjs +1 -0
- package/dist/server/handlers/error.cjs.map +1 -1
- package/dist/server/handlers/error.d.ts.map +1 -1
- package/dist/server/handlers/error.js +1 -0
- package/dist/server/handlers/error.js.map +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +1 -1
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/gateway-memory-client.cjs +4 -1
- package/dist/server/handlers/gateway-memory-client.cjs.map +1 -1
- package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
- package/dist/server/handlers/gateway-memory-client.js +4 -1
- package/dist/server/handlers/gateway-memory-client.js.map +1 -1
- package/dist/server/handlers/knowledge.cjs +1 -1
- package/dist/server/handlers/knowledge.js +1 -1
- package/dist/server/handlers/logs.cjs +1 -1
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp-client-versions.cjs +3 -3
- package/dist/server/handlers/mcp-client-versions.js +3 -3
- package/dist/server/handlers/mcp.cjs +1 -1
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/memory.cjs +1 -1
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +2 -1
- package/dist/server/handlers/observability-new-endpoints.d.ts +328 -8
- package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -1
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability-shared.cjs +7 -1
- package/dist/server/handlers/observability-shared.cjs.map +1 -1
- package/dist/server/handlers/observability-shared.d.ts +6 -0
- package/dist/server/handlers/observability-shared.d.ts.map +1 -1
- package/dist/server/handlers/observability-shared.js +7 -1
- package/dist/server/handlers/observability-shared.js.map +1 -1
- package/dist/server/handlers/observability-signal-context.cjs +4 -0
- package/dist/server/handlers/observability-signal-context.d.ts +42 -0
- package/dist/server/handlers/observability-signal-context.d.ts.map +1 -0
- package/dist/server/handlers/observability-signal-context.js +1 -0
- package/dist/server/handlers/observability.cjs +3 -2
- package/dist/server/handlers/observability.js +3 -3
- package/dist/server/handlers/plans.cjs +1 -1
- package/dist/server/handlers/plans.js +1 -1
- package/dist/server/handlers/processor-providers.cjs +2 -2
- package/dist/server/handlers/processor-providers.js +2 -2
- package/dist/server/handlers/processors.cjs +2 -2
- package/dist/server/handlers/processors.js +2 -2
- package/dist/server/handlers/prompt-block-versions.cjs +3 -3
- package/dist/server/handlers/prompt-block-versions.js +3 -3
- package/dist/server/handlers/responses.cjs +1 -1
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/responses.storage.cjs +1 -1
- package/dist/server/handlers/responses.storage.js +1 -1
- package/dist/server/handlers/schedules.cjs +1 -1
- package/dist/server/handlers/schedules.js +1 -1
- package/dist/server/handlers/scorer-versions.cjs +3 -3
- package/dist/server/handlers/scorer-versions.js +3 -3
- package/dist/server/handlers/scores.cjs +1 -1
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +6 -6
- package/dist/server/handlers/stored-agent-favorites.js +6 -6
- package/dist/server/handlers/stored-agents.cjs +10 -9
- package/dist/server/handlers/stored-agents.cjs.map +1 -1
- package/dist/server/handlers/stored-agents.d.ts +2 -6
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-agents.js +10 -9
- package/dist/server/handlers/stored-agents.js.map +1 -1
- package/dist/server/handlers/stored-mcp-clients.cjs +3 -3
- package/dist/server/handlers/stored-mcp-clients.js +3 -3
- package/dist/server/handlers/stored-prompt-blocks.cjs +3 -3
- package/dist/server/handlers/stored-prompt-blocks.js +3 -3
- package/dist/server/handlers/stored-scorers.cjs +3 -3
- package/dist/server/handlers/stored-scorers.js +3 -3
- package/dist/server/handlers/stored-skill-favorites.cjs +5 -5
- package/dist/server/handlers/stored-skill-favorites.js +5 -5
- package/dist/server/handlers/stored-skills.cjs +5 -5
- package/dist/server/handlers/stored-skills.js +5 -5
- package/dist/server/handlers/stored-workspaces.cjs +3 -3
- package/dist/server/handlers/stored-workspaces.js +3 -3
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +3 -3
- package/dist/server/handlers/tool-providers.cjs +3 -3
- package/dist/server/handlers/tool-providers.js +3 -3
- package/dist/server/handlers/tools.cjs +1 -1
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +1 -1
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/validate-agent-instructions.cjs +1 -1
- package/dist/server/handlers/validate-agent-instructions.js +1 -1
- package/dist/server/handlers/vector.cjs +1 -1
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/workflow-builder.cjs +1 -1
- package/dist/server/handlers/workflow-builder.js +1 -1
- package/dist/server/handlers/workflows.cjs +1 -1
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers/workspace.cjs +1 -1
- package/dist/server/handlers/workspace.d.ts +23 -23
- package/dist/server/handlers/workspace.js +1 -1
- package/dist/server/handlers.cjs +16 -16
- package/dist/server/handlers.js +16 -16
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/feedback.d.ts +49 -0
- package/dist/server/schemas/feedback.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +23 -23
- package/dist/server/schemas/index.js +23 -23
- package/dist/server/schemas/stored-agents.d.ts +5 -10
- package/dist/server/schemas/stored-agents.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +231 -61
- package/dist/server/server-adapter/index.cjs.map +1 -1
- package/dist/server/server-adapter/index.d.ts +67 -1
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/index.js +226 -63
- package/dist/server/server-adapter/index.js.map +1 -1
- package/dist/server/server-adapter/mcp-auth.d.ts +16 -1
- package/dist/server/server-adapter/mcp-auth.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/observability.d.ts +162 -3
- package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
- package/dist/server/utils/agent-stream-events.d.ts +2 -0
- package/dist/server/utils/agent-stream-events.d.ts.map +1 -1
- package/dist/{stored-agents-DA8Zx6o9.js → stored-agents-DmN_pIIl.js} +10 -10
- package/dist/stored-agents-DmN_pIIl.js.map +1 -0
- package/dist/{stored-agents-TQ2lIFbx.cjs → stored-agents-m0Knvv29.cjs} +10 -10
- package/dist/stored-agents-m0Knvv29.cjs.map +1 -0
- package/dist/{stored-scorers-DhOq8ZQC.js → stored-scorers-2F2k6XSx.js} +2 -2
- package/dist/{stored-scorers-DhOq8ZQC.js.map → stored-scorers-2F2k6XSx.js.map} +1 -1
- package/dist/{stored-scorers-FJOs5774.cjs → stored-scorers-iM2Qq9Nh.cjs} +2 -2
- package/dist/{stored-scorers-FJOs5774.cjs.map → stored-scorers-iM2Qq9Nh.cjs.map} +1 -1
- package/dist/{tools-CI5oeJWT.cjs → tools-7O8cd_4u.cjs} +7 -7
- package/dist/{tools-CI5oeJWT.cjs.map → tools-7O8cd_4u.cjs.map} +1 -1
- package/dist/{tools-BAmCNGM5.js → tools-Bf3vq-HD.js} +7 -7
- package/dist/{tools-BAmCNGM5.js.map → tools-Bf3vq-HD.js.map} +1 -1
- package/dist/{utils-9PRHHTGC.cjs → utils-BXEJ6FZC.cjs} +2 -2
- package/dist/{utils-9PRHHTGC.cjs.map → utils-BXEJ6FZC.cjs.map} +1 -1
- package/dist/{utils-BhBJHsqX.cjs → utils-CL-m2SWZ.cjs} +3 -3
- package/dist/{utils-BhBJHsqX.cjs.map → utils-CL-m2SWZ.cjs.map} +1 -1
- package/dist/{utils-B15w-1hm.js → utils-CTYtskHa.js} +2 -2
- package/dist/{utils-B15w-1hm.js.map → utils-CTYtskHa.js.map} +1 -1
- package/dist/{utils-Dy_dQTlK.js → utils-y-cW3mQU.js} +3 -3
- package/dist/{utils-Dy_dQTlK.js.map → utils-y-cW3mQU.js.map} +1 -1
- package/dist/{vector-BZ1bKtwM.cjs → vector-6k7Ft7EX.cjs} +3 -3
- package/dist/{vector-BZ1bKtwM.cjs.map → vector-6k7Ft7EX.cjs.map} +1 -1
- package/dist/{vector-BAs5o6mH.js → vector-BWFSDXvg.js} +3 -3
- package/dist/{vector-BAs5o6mH.js.map → vector-BWFSDXvg.js.map} +1 -1
- package/dist/{workflow-builder-CaSfD6oL.js → workflow-builder-BUQfzD4L.js} +5 -5
- package/dist/{workflow-builder-CaSfD6oL.js.map → workflow-builder-BUQfzD4L.js.map} +1 -1
- package/dist/{workflow-builder-tr_D_ZDN.cjs → workflow-builder-C6J_1s56.cjs} +5 -5
- package/dist/{workflow-builder-tr_D_ZDN.cjs.map → workflow-builder-C6J_1s56.cjs.map} +1 -1
- package/dist/{workflows-BxXS5AfE.js → workflows-BkTNzH-i.js} +24 -13
- package/dist/workflows-BkTNzH-i.js.map +1 -0
- package/dist/{workflows-Cdi6w8JW.cjs → workflows-CHUG5jh4.cjs} +76 -65
- package/dist/workflows-CHUG5jh4.cjs.map +1 -0
- package/dist/{workspace-BU6sQpbV.cjs → workspace-C7PytFzz.cjs} +3 -3
- package/dist/{workspace-BU6sQpbV.cjs.map → workspace-C7PytFzz.cjs.map} +1 -1
- package/dist/{workspace-CS-GYTve.js → workspace-CYwDvH0G.js} +3 -3
- package/dist/{workspace-CS-GYTve.js.map → workspace-CYwDvH0G.js.map} +1 -1
- package/package.json +4 -4
- package/dist/agents-CgcW6lHt.js.map +0 -1
- package/dist/agents-DOHGWXDa.cjs.map +0 -1
- package/dist/dist-BKNKucT9.cjs.map +0 -1
- package/dist/dist-CIYZuix4.js.map +0 -1
- package/dist/dist-mNQb9_wX.js +0 -1
- package/dist/helpers-BKtUXhz2.cjs.map +0 -1
- package/dist/helpers-DNq3LtLq.js.map +0 -1
- package/dist/observability-new-endpoints-Di7m_-xc.js.map +0 -1
- package/dist/observability-new-endpoints-jjCgXuTF.cjs.map +0 -1
- package/dist/routes-5FpkkzND.js.map +0 -1
- package/dist/routes-DU_FlwJP.cjs.map +0 -1
- package/dist/stored-agents-DA8Zx6o9.js.map +0 -1
- package/dist/stored-agents-TQ2lIFbx.cjs.map +0 -1
- package/dist/workflows-BxXS5AfE.js.map +0 -1
- package/dist/workflows-Cdi6w8JW.cjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-10nMEhjP.cjs");
|
|
2
|
+
const require_utils = require("./utils-BXEJ6FZC.cjs");
|
|
2
3
|
const require_http_exception = require("./http-exception-Co3MbFUf.cjs");
|
|
4
|
+
const require_agents = require("./agents-CjcvdF2e.cjs");
|
|
3
5
|
const require_common = require("./common-D5XxSuvu.cjs");
|
|
4
6
|
const require_workflows = require("./workflows-CKcjXfXk.cjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const require_utils = require("./utils-BhBJHsqX.cjs");
|
|
7
|
+
const require_route_builder = require("./route-builder-DHqDrSSy.cjs");
|
|
8
|
+
const require_utils$1 = require("./utils-CL-m2SWZ.cjs");
|
|
8
9
|
const require_server_handlers_error = require("./server/handlers/error.cjs");
|
|
9
|
-
const require_utils$1 = require("./utils-9PRHHTGC.cjs");
|
|
10
10
|
let zod_v4 = require("zod/v4");
|
|
11
11
|
let _mastra_core_stream = require("@mastra/core/stream");
|
|
12
12
|
// src/server/handlers/workflows.ts
|
|
@@ -53,6 +53,17 @@ const TERMINAL_RUN_STATUSES = [
|
|
|
53
53
|
"tripwire"
|
|
54
54
|
];
|
|
55
55
|
/**
|
|
56
|
+
* A run's result with its step results read: a storage v2 result's `steps` is a loader that
|
|
57
|
+
* reads them from storage, which a response can't carry, so it answers with them as for v1.
|
|
58
|
+
*/
|
|
59
|
+
async function withLoadedSteps(result) {
|
|
60
|
+
const steps = result.steps;
|
|
61
|
+
return typeof steps === "function" ? {
|
|
62
|
+
...result,
|
|
63
|
+
steps: await steps()
|
|
64
|
+
} : result;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
56
67
|
* Runs whose chunks are already being written to the cache in this process,
|
|
57
68
|
* keyed by runId. A run has exactly one writer: without this, two concurrent
|
|
58
69
|
* requests for the same runId each cache every chunk and the replayed history
|
|
@@ -93,8 +104,8 @@ async function listWorkflowsFromSystem({ mastra, workflowId }) {
|
|
|
93
104
|
const logger = mastra.getLogger();
|
|
94
105
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
95
106
|
let workflow;
|
|
96
|
-
workflow = require_utils.WorkflowRegistry.getWorkflow(workflowId, mastra);
|
|
97
|
-
if (!workflow) workflow = require_utils
|
|
107
|
+
workflow = require_utils$1.WorkflowRegistry.getWorkflow(workflowId, mastra);
|
|
108
|
+
if (!workflow) workflow = require_utils.getPublicWorkflowById(mastra, workflowId);
|
|
98
109
|
if (!workflow) {
|
|
99
110
|
logger.debug("Workflow not found, searching agents for workflow", { workflowId });
|
|
100
111
|
const agents = mastra.listAgents();
|
|
@@ -126,10 +137,10 @@ const LIST_WORKFLOWS_ROUTE = require_route_builder.createRoute({
|
|
|
126
137
|
const workflows = mastra.listWorkflows({ serialized: false });
|
|
127
138
|
const isPartial = partial === "true";
|
|
128
139
|
const _workflows = Object.entries(workflows).reduce((acc, [key, workflow]) => {
|
|
129
|
-
acc[key] = require_utils.getWorkflowInfo(workflow, isPartial);
|
|
140
|
+
acc[key] = require_utils$1.getWorkflowInfo(workflow, isPartial);
|
|
130
141
|
return acc;
|
|
131
142
|
}, {});
|
|
132
|
-
const fgaProvider = require_utils
|
|
143
|
+
const fgaProvider = require_utils.getHandlerFGAProvider(mastra, requestContext);
|
|
133
144
|
const user = requestContext?.get("user");
|
|
134
145
|
if (fgaProvider) {
|
|
135
146
|
if (!user) return {};
|
|
@@ -137,7 +148,7 @@ const LIST_WORKFLOWS_ROUTE = require_route_builder.createRoute({
|
|
|
137
148
|
id,
|
|
138
149
|
...w
|
|
139
150
|
}));
|
|
140
|
-
const accessible = await fgaProvider.filterAccessible(user, workflowList, "workflow", require_utils
|
|
151
|
+
const accessible = await fgaProvider.filterAccessible(user, workflowList, "workflow", require_utils.MastraFGAPermissions.WORKFLOWS_READ);
|
|
141
152
|
const accessibleSet = new Set(accessible.map((w) => w.id));
|
|
142
153
|
for (const id of Object.keys(_workflows)) if (!accessibleSet.has(id)) delete _workflows[id];
|
|
143
154
|
}
|
|
@@ -165,7 +176,7 @@ const LIST_WORKFLOW_RUN_COUNTS_ROUTE = require_route_builder.createRoute({
|
|
|
165
176
|
requiresAuth: true,
|
|
166
177
|
handler: (async ({ mastra, requestContext }) => {
|
|
167
178
|
try {
|
|
168
|
-
const fgaProvider = require_utils
|
|
179
|
+
const fgaProvider = require_utils.getHandlerFGAProvider(mastra, requestContext);
|
|
169
180
|
const user = requestContext?.get("user");
|
|
170
181
|
if (fgaProvider && !user) return {};
|
|
171
182
|
const workflows = mastra.listWorkflows({ serialized: false });
|
|
@@ -178,7 +189,7 @@ const LIST_WORKFLOW_RUN_COUNTS_ROUTE = require_route_builder.createRoute({
|
|
|
178
189
|
};
|
|
179
190
|
workflowIdToRegistryKey.set(workflow.id, registryKey);
|
|
180
191
|
}
|
|
181
|
-
const effectiveResourceId = require_utils
|
|
192
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
182
193
|
const cacheable = !fgaProvider && !effectiveResourceId;
|
|
183
194
|
if (cacheable) {
|
|
184
195
|
const cached = runCountsCache.get(mastra);
|
|
@@ -207,7 +218,7 @@ const LIST_WORKFLOW_RUN_COUNTS_ROUTE = require_route_builder.createRoute({
|
|
|
207
218
|
}
|
|
208
219
|
if (fgaProvider) {
|
|
209
220
|
const workflowList = Object.keys(counts).map((id) => ({ id }));
|
|
210
|
-
const accessible = await fgaProvider.filterAccessible(user, workflowList, "workflow", require_utils
|
|
221
|
+
const accessible = await fgaProvider.filterAccessible(user, workflowList, "workflow", require_utils.MastraFGAPermissions.WORKFLOWS_READ);
|
|
211
222
|
const accessibleSet = new Set(accessible.map((w) => w.id));
|
|
212
223
|
for (const id of Object.keys(counts)) if (!accessibleSet.has(id)) delete counts[id];
|
|
213
224
|
return counts;
|
|
@@ -239,7 +250,7 @@ const GET_WORKFLOW_BY_ID_ROUTE = require_route_builder.createRoute({
|
|
|
239
250
|
mastra,
|
|
240
251
|
workflowId
|
|
241
252
|
});
|
|
242
|
-
return require_utils.getWorkflowInfo(workflow, false);
|
|
253
|
+
return require_utils$1.getWorkflowInfo(workflow, false);
|
|
243
254
|
} catch (error) {
|
|
244
255
|
return require_server_handlers_error.handleError(error, "Error getting workflow");
|
|
245
256
|
}
|
|
@@ -258,7 +269,7 @@ const LIST_WORKFLOW_RUNS_ROUTE = require_route_builder.createRoute({
|
|
|
258
269
|
requiresAuth: true,
|
|
259
270
|
handler: async ({ mastra, workflowId, fromDate, toDate, page, perPage, limit, offset, resourceId, status, summary, requestContext }) => {
|
|
260
271
|
try {
|
|
261
|
-
const effectiveResourceId = require_utils
|
|
272
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, resourceId);
|
|
262
273
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
263
274
|
let finalPage = page;
|
|
264
275
|
let finalPerPage = perPage;
|
|
@@ -324,7 +335,7 @@ const GET_WORKFLOW_RUN_BY_ID_ROUTE = require_route_builder.createRoute({
|
|
|
324
335
|
requiresAuth: true,
|
|
325
336
|
handler: async ({ mastra, workflowId, runId, fields, withNestedWorkflows, requestContext }) => {
|
|
326
337
|
try {
|
|
327
|
-
const effectiveResourceId = require_utils
|
|
338
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
328
339
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
329
340
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "Run ID is required" });
|
|
330
341
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -338,7 +349,7 @@ const GET_WORKFLOW_RUN_BY_ID_ROUTE = require_route_builder.createRoute({
|
|
|
338
349
|
fields: fieldList
|
|
339
350
|
});
|
|
340
351
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
341
|
-
await require_utils
|
|
352
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
342
353
|
return run;
|
|
343
354
|
} catch (error) {
|
|
344
355
|
return require_server_handlers_error.handleError(error, "Error getting workflow run");
|
|
@@ -357,7 +368,7 @@ const DELETE_WORKFLOW_RUN_BY_ID_ROUTE = require_route_builder.createRoute({
|
|
|
357
368
|
requiresAuth: true,
|
|
358
369
|
handler: async ({ mastra, workflowId, runId, requestContext }) => {
|
|
359
370
|
try {
|
|
360
|
-
const effectiveResourceId = require_utils
|
|
371
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
361
372
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
362
373
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "Run ID is required" });
|
|
363
374
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -367,7 +378,7 @@ const DELETE_WORKFLOW_RUN_BY_ID_ROUTE = require_route_builder.createRoute({
|
|
|
367
378
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
368
379
|
const run = await workflow.getWorkflowRunById(runId);
|
|
369
380
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
370
|
-
await require_utils
|
|
381
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
371
382
|
await workflow.deleteWorkflowRunById(runId);
|
|
372
383
|
return { message: "Workflow run deleted" };
|
|
373
384
|
} catch (error) {
|
|
@@ -390,7 +401,7 @@ const CREATE_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
390
401
|
requiresPermission: ["workflows:write", "workflows:execute"],
|
|
391
402
|
handler: async ({ mastra, workflowId, runId, resourceId, disableScorers, requestContext }) => {
|
|
392
403
|
try {
|
|
393
|
-
const effectiveResourceId = require_utils
|
|
404
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, resourceId);
|
|
394
405
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
395
406
|
const { workflow } = await listWorkflowsFromSystem({
|
|
396
407
|
mastra,
|
|
@@ -399,7 +410,7 @@ const CREATE_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
399
410
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
400
411
|
if (runId) {
|
|
401
412
|
const existingRun = await workflow.getWorkflowRunById(runId, { withNestedWorkflows: false });
|
|
402
|
-
await require_utils
|
|
413
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
403
414
|
}
|
|
404
415
|
return { runId: (await workflow.createRun({
|
|
405
416
|
runId,
|
|
@@ -424,7 +435,7 @@ const STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
424
435
|
requiresAuth: true,
|
|
425
436
|
handler: async ({ mastra, workflowId, runId, resourceId, requestContext, ...params }) => {
|
|
426
437
|
try {
|
|
427
|
-
const effectiveResourceId = require_utils
|
|
438
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, resourceId);
|
|
428
439
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
429
440
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to stream workflow" });
|
|
430
441
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -433,7 +444,7 @@ const STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
433
444
|
});
|
|
434
445
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
435
446
|
const existingRun = await workflow.getWorkflowRunById(runId, { withNestedWorkflows: false });
|
|
436
|
-
await require_utils
|
|
447
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
437
448
|
if (existingRun && TERMINAL_RUN_STATUSES.includes(existingRun.status)) throw new require_http_exception.HTTPException(409, { message: `Workflow run ${runId} already finished with status "${existingRun.status}". Use /observe to read its stream back, or stream a new runId.` });
|
|
438
449
|
const serverCache = mastra.getServerCache();
|
|
439
450
|
const result = (await workflow.createRun({
|
|
@@ -468,7 +479,7 @@ const RESUME_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
468
479
|
requiresAuth: true,
|
|
469
480
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
470
481
|
try {
|
|
471
|
-
const effectiveResourceId = require_utils
|
|
482
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
472
483
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
473
484
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to resume workflow" });
|
|
474
485
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -478,7 +489,7 @@ const RESUME_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
478
489
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
479
490
|
const run = await workflow.getWorkflowRunById(runId);
|
|
480
491
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
481
|
-
await require_utils
|
|
492
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
482
493
|
const _run = await workflow.createRun({
|
|
483
494
|
runId,
|
|
484
495
|
resourceId: run.resourceId
|
|
@@ -513,7 +524,7 @@ const START_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
513
524
|
requiresAuth: true,
|
|
514
525
|
handler: async ({ mastra, workflowId, runId, resourceId, requestContext, ...params }) => {
|
|
515
526
|
try {
|
|
516
|
-
const effectiveResourceId = require_utils
|
|
527
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, resourceId);
|
|
517
528
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
518
529
|
const { workflow } = await listWorkflowsFromSystem({
|
|
519
530
|
mastra,
|
|
@@ -522,15 +533,15 @@ const START_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
522
533
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
523
534
|
if (runId) {
|
|
524
535
|
const existingRun = await workflow.getWorkflowRunById(runId, { withNestedWorkflows: false });
|
|
525
|
-
await require_utils
|
|
536
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
526
537
|
}
|
|
527
|
-
return await (await workflow.createRun({
|
|
538
|
+
return await withLoadedSteps(await (await workflow.createRun({
|
|
528
539
|
runId,
|
|
529
540
|
resourceId: effectiveResourceId
|
|
530
541
|
})).start({
|
|
531
542
|
...params,
|
|
532
543
|
requestContext
|
|
533
|
-
});
|
|
544
|
+
}));
|
|
534
545
|
} catch (error) {
|
|
535
546
|
return require_server_handlers_error.handleError(error, "Error starting async workflow");
|
|
536
547
|
}
|
|
@@ -550,7 +561,7 @@ const START_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
550
561
|
requiresAuth: true,
|
|
551
562
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
552
563
|
try {
|
|
553
|
-
const effectiveResourceId = require_utils
|
|
564
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
554
565
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
555
566
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to start run" });
|
|
556
567
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -560,7 +571,7 @@ const START_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
560
571
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
561
572
|
const run = await workflow.getWorkflowRunById(runId);
|
|
562
573
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
563
|
-
await require_utils
|
|
574
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
564
575
|
(await workflow.createRun({
|
|
565
576
|
runId,
|
|
566
577
|
resourceId: run.resourceId
|
|
@@ -593,7 +604,7 @@ const OBSERVE_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
593
604
|
requiresAuth: true,
|
|
594
605
|
handler: async ({ mastra, workflowId, runId, offset, requestContext }) => {
|
|
595
606
|
try {
|
|
596
|
-
const effectiveResourceId = require_utils
|
|
607
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
597
608
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
598
609
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to observe workflow stream" });
|
|
599
610
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -603,7 +614,7 @@ const OBSERVE_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
603
614
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
604
615
|
const run = await workflow.getWorkflowRunById(runId);
|
|
605
616
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
606
|
-
await require_utils
|
|
617
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
607
618
|
const _run = await workflow.createRun({
|
|
608
619
|
runId,
|
|
609
620
|
resourceId: run.resourceId
|
|
@@ -636,7 +647,7 @@ const RESUME_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
636
647
|
requiresAuth: true,
|
|
637
648
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
638
649
|
try {
|
|
639
|
-
const effectiveResourceId = require_utils
|
|
650
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
640
651
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
641
652
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to resume workflow" });
|
|
642
653
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -646,14 +657,14 @@ const RESUME_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
646
657
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
647
658
|
const run = await workflow.getWorkflowRunById(runId);
|
|
648
659
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
649
|
-
await require_utils
|
|
650
|
-
return await (await workflow.createRun({
|
|
660
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
661
|
+
return await withLoadedSteps(await (await workflow.createRun({
|
|
651
662
|
runId,
|
|
652
663
|
resourceId: run.resourceId
|
|
653
664
|
})).resume({
|
|
654
665
|
...params,
|
|
655
666
|
requestContext
|
|
656
|
-
});
|
|
667
|
+
}));
|
|
657
668
|
} catch (error) {
|
|
658
669
|
return require_server_handlers_error.handleError(error, "Error resuming workflow step");
|
|
659
670
|
}
|
|
@@ -683,7 +694,7 @@ const RESUME_NO_WAIT_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
683
694
|
requiresAuth: true,
|
|
684
695
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
685
696
|
try {
|
|
686
|
-
const effectiveResourceId = require_utils
|
|
697
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
687
698
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
688
699
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to resume workflow" });
|
|
689
700
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -693,7 +704,7 @@ const RESUME_NO_WAIT_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
693
704
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
694
705
|
const run = await workflow.getWorkflowRunById(runId);
|
|
695
706
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
696
|
-
await require_utils
|
|
707
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
697
708
|
return await (await workflow.createRun({
|
|
698
709
|
runId,
|
|
699
710
|
resourceId: run.resourceId
|
|
@@ -720,7 +731,7 @@ const RESUME_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
720
731
|
requiresAuth: true,
|
|
721
732
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
722
733
|
try {
|
|
723
|
-
const effectiveResourceId = require_utils
|
|
734
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
724
735
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
725
736
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to resume workflow" });
|
|
726
737
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -730,7 +741,7 @@ const RESUME_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
730
741
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
731
742
|
const run = await workflow.getWorkflowRunById(runId);
|
|
732
743
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
733
|
-
await require_utils
|
|
744
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
734
745
|
(await workflow.createRun({
|
|
735
746
|
runId,
|
|
736
747
|
resourceId: run.resourceId
|
|
@@ -764,7 +775,7 @@ const RESTART_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
764
775
|
requiresAuth: true,
|
|
765
776
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
766
777
|
try {
|
|
767
|
-
const effectiveResourceId = require_utils
|
|
778
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
768
779
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
769
780
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to restart workflow" });
|
|
770
781
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -774,14 +785,14 @@ const RESTART_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
774
785
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
775
786
|
const run = await workflow.getWorkflowRunById(runId);
|
|
776
787
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
777
|
-
await require_utils
|
|
778
|
-
return await (await workflow.createRun({
|
|
788
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
789
|
+
return await withLoadedSteps(await (await workflow.createRun({
|
|
779
790
|
runId,
|
|
780
791
|
resourceId: run.resourceId
|
|
781
792
|
})).restart({
|
|
782
793
|
...params,
|
|
783
794
|
requestContext
|
|
784
|
-
});
|
|
795
|
+
}));
|
|
785
796
|
} catch (error) {
|
|
786
797
|
return require_server_handlers_error.handleError(error, "Error restarting workflow");
|
|
787
798
|
}
|
|
@@ -801,7 +812,7 @@ const RESTART_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
801
812
|
requiresAuth: true,
|
|
802
813
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
803
814
|
try {
|
|
804
|
-
const effectiveResourceId = require_utils
|
|
815
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
805
816
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
806
817
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to restart workflow" });
|
|
807
818
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -811,7 +822,7 @@ const RESTART_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
811
822
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
812
823
|
const run = await workflow.getWorkflowRunById(runId);
|
|
813
824
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
814
|
-
await require_utils
|
|
825
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
815
826
|
(await workflow.createRun({
|
|
816
827
|
runId,
|
|
817
828
|
resourceId: run.resourceId
|
|
@@ -843,7 +854,7 @@ const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE = require_route_builder.creat
|
|
|
843
854
|
requiresAuth: true,
|
|
844
855
|
handler: async ({ mastra, workflowId, requestContext }) => {
|
|
845
856
|
try {
|
|
846
|
-
await require_utils
|
|
857
|
+
await require_utils.validateRunOwnership({ resourceId: null }, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
847
858
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
848
859
|
const { workflow } = await listWorkflowsFromSystem({
|
|
849
860
|
mastra,
|
|
@@ -869,7 +880,7 @@ const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE = require_route_builder.createRoute
|
|
|
869
880
|
requiresAuth: true,
|
|
870
881
|
handler: async ({ mastra, workflowId, requestContext }) => {
|
|
871
882
|
try {
|
|
872
|
-
await require_utils
|
|
883
|
+
await require_utils.validateRunOwnership({ resourceId: null }, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
873
884
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
874
885
|
const { workflow } = await listWorkflowsFromSystem({
|
|
875
886
|
mastra,
|
|
@@ -902,7 +913,7 @@ const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
902
913
|
requiresAuth: true,
|
|
903
914
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
904
915
|
try {
|
|
905
|
-
const effectiveResourceId = require_utils
|
|
916
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
906
917
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
907
918
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to time travel workflow" });
|
|
908
919
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -912,14 +923,14 @@ const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
912
923
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
913
924
|
const run = await workflow.getWorkflowRunById(runId);
|
|
914
925
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
915
|
-
await require_utils
|
|
916
|
-
return await (await workflow.createRun({
|
|
926
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
927
|
+
return await withLoadedSteps(await (await workflow.createRun({
|
|
917
928
|
runId,
|
|
918
929
|
resourceId: run.resourceId
|
|
919
930
|
})).timeTravel({
|
|
920
931
|
...params,
|
|
921
932
|
requestContext
|
|
922
|
-
});
|
|
933
|
+
}));
|
|
923
934
|
} catch (error) {
|
|
924
935
|
return require_server_handlers_error.handleError(error, "Error time traveling workflow");
|
|
925
936
|
}
|
|
@@ -939,7 +950,7 @@ const TIME_TRAVEL_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
939
950
|
requiresAuth: true,
|
|
940
951
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
941
952
|
try {
|
|
942
|
-
const effectiveResourceId = require_utils
|
|
953
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
943
954
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
944
955
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to time travel workflow" });
|
|
945
956
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -949,7 +960,7 @@ const TIME_TRAVEL_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
949
960
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
950
961
|
const run = await workflow.getWorkflowRunById(runId);
|
|
951
962
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
952
|
-
await require_utils
|
|
963
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
953
964
|
(await workflow.createRun({
|
|
954
965
|
runId,
|
|
955
966
|
resourceId: run.resourceId
|
|
@@ -982,7 +993,7 @@ const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
982
993
|
requiresAuth: true,
|
|
983
994
|
handler: async ({ mastra, workflowId, runId, requestContext, ...params }) => {
|
|
984
995
|
try {
|
|
985
|
-
const effectiveResourceId = require_utils
|
|
996
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
986
997
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
987
998
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to time travel workflow stream" });
|
|
988
999
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -992,7 +1003,7 @@ const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
992
1003
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
993
1004
|
const existingRun = await workflow.getWorkflowRunById(runId);
|
|
994
1005
|
if (!existingRun) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
995
|
-
await require_utils
|
|
1006
|
+
await require_utils.validateRunOwnership(existingRun, effectiveResourceId, mastra, requestContext);
|
|
996
1007
|
const serverCache = mastra.getServerCache();
|
|
997
1008
|
const result = (await workflow.createRun({
|
|
998
1009
|
runId,
|
|
@@ -1024,7 +1035,7 @@ const CANCEL_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
1024
1035
|
requiresAuth: true,
|
|
1025
1036
|
handler: async ({ mastra, workflowId, runId, requestContext }) => {
|
|
1026
1037
|
try {
|
|
1027
|
-
const effectiveResourceId = require_utils
|
|
1038
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
1028
1039
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
1029
1040
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to cancel workflow run" });
|
|
1030
1041
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -1034,7 +1045,7 @@ const CANCEL_WORKFLOW_RUN_ROUTE = require_route_builder.createRoute({
|
|
|
1034
1045
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
1035
1046
|
const run = await workflow.getWorkflowRunById(runId);
|
|
1036
1047
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
1037
|
-
await require_utils
|
|
1048
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
1038
1049
|
await (await workflow.createRun({
|
|
1039
1050
|
runId,
|
|
1040
1051
|
resourceId: run.resourceId
|
|
@@ -1059,7 +1070,7 @@ const STREAM_LEGACY_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
1059
1070
|
requiresAuth: true,
|
|
1060
1071
|
handler: async ({ mastra, workflowId, runId, resourceId, requestContext, ...params }) => {
|
|
1061
1072
|
try {
|
|
1062
|
-
const effectiveResourceId = require_utils
|
|
1073
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, resourceId);
|
|
1063
1074
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
1064
1075
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to resume workflow" });
|
|
1065
1076
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -1070,7 +1081,7 @@ const STREAM_LEGACY_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
1070
1081
|
const serverCache = mastra.getServerCache();
|
|
1071
1082
|
if (runId) {
|
|
1072
1083
|
const existingRun = await workflow.getWorkflowRunById(runId, { withNestedWorkflows: false });
|
|
1073
|
-
await require_utils
|
|
1084
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
1074
1085
|
}
|
|
1075
1086
|
return (await workflow.createRun({
|
|
1076
1087
|
runId,
|
|
@@ -1103,7 +1114,7 @@ const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
1103
1114
|
requiresAuth: true,
|
|
1104
1115
|
handler: async ({ mastra, workflowId, runId, requestContext }) => {
|
|
1105
1116
|
try {
|
|
1106
|
-
const effectiveResourceId = require_utils
|
|
1117
|
+
const effectiveResourceId = require_utils.getEffectiveResourceId(requestContext, void 0);
|
|
1107
1118
|
if (!workflowId) throw new require_http_exception.HTTPException(400, { message: "Workflow ID is required" });
|
|
1108
1119
|
if (!runId) throw new require_http_exception.HTTPException(400, { message: "runId required to observe workflow stream" });
|
|
1109
1120
|
const { workflow } = await listWorkflowsFromSystem({
|
|
@@ -1113,7 +1124,7 @@ const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE = require_route_builder.createRoute({
|
|
|
1113
1124
|
if (!workflow) throw new require_http_exception.HTTPException(404, { message: "Workflow not found" });
|
|
1114
1125
|
const run = await workflow.getWorkflowRunById(runId);
|
|
1115
1126
|
if (!run) throw new require_http_exception.HTTPException(404, { message: "Workflow run not found" });
|
|
1116
|
-
await require_utils
|
|
1127
|
+
await require_utils.validateRunOwnership(run, effectiveResourceId, mastra, requestContext);
|
|
1117
1128
|
const _run = await workflow.createRun({
|
|
1118
1129
|
runId,
|
|
1119
1130
|
resourceId: run.resourceId
|
|
@@ -1183,7 +1194,7 @@ const EXECUTE_WORKFLOW_STEP_ROUTE = require_route_builder.createRoute({
|
|
|
1183
1194
|
runId,
|
|
1184
1195
|
workflowName: workflowId
|
|
1185
1196
|
});
|
|
1186
|
-
await require_utils
|
|
1197
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(serverRequestContext, void 0), mastra, serverRequestContext);
|
|
1187
1198
|
return await (await getStepStrategy(mastra)).executeStep({
|
|
1188
1199
|
workflowId,
|
|
1189
1200
|
runId,
|
|
@@ -1254,7 +1265,7 @@ const RECEIVE_WORKFLOW_EVENT_ROUTE = require_route_builder.createRoute({
|
|
|
1254
1265
|
runId: event.runId,
|
|
1255
1266
|
...typeof workflowName === "string" ? { workflowName } : {}
|
|
1256
1267
|
});
|
|
1257
|
-
await require_utils
|
|
1268
|
+
await require_utils.validateRunOwnership(existingRun, require_utils.getEffectiveResourceId(requestContext, void 0), mastra, requestContext);
|
|
1258
1269
|
const rawCreatedAt = event.createdAt;
|
|
1259
1270
|
const createdAt = rawCreatedAt instanceof Date ? rawCreatedAt : new Date(rawCreatedAt);
|
|
1260
1271
|
if (Number.isNaN(createdAt.getTime())) throw new require_http_exception.HTTPException(400, { message: "Invalid createdAt" });
|
|
@@ -1442,4 +1453,4 @@ Object.defineProperty(exports, "workflows_exports", {
|
|
|
1442
1453
|
}
|
|
1443
1454
|
});
|
|
1444
1455
|
|
|
1445
|
-
//# sourceMappingURL=workflows-
|
|
1456
|
+
//# sourceMappingURL=workflows-CHUG5jh4.cjs.map
|