@mastra/server 0.17.2-alpha.0 → 0.18.0-alpha.2
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/CHANGELOG.md +23 -0
- package/dist/{chunk-NZMDHQVP.cjs → chunk-57HWW2TY.cjs} +6 -116
- package/dist/chunk-57HWW2TY.cjs.map +1 -0
- package/dist/{chunk-G7PLDFT6.js → chunk-7JYXPDM4.js} +4 -3
- package/dist/chunk-7JYXPDM4.js.map +1 -0
- package/dist/{chunk-3THIIWWW.cjs → chunk-AVEPEUN4.cjs} +4 -3
- package/dist/chunk-AVEPEUN4.cjs.map +1 -0
- package/dist/chunk-CNU4A2XU.js +129 -0
- package/dist/chunk-CNU4A2XU.js.map +1 -0
- package/dist/{chunk-K4GZBPXF.js → chunk-G662L2YZ.js} +4 -112
- package/dist/chunk-G662L2YZ.js.map +1 -0
- package/dist/chunk-GDWMF6SB.cjs +133 -0
- package/dist/chunk-GDWMF6SB.cjs.map +1 -0
- package/dist/{chunk-HJ4EQIE6.cjs → chunk-OJQOYXHU.cjs} +23 -22
- package/dist/chunk-OJQOYXHU.cjs.map +1 -0
- package/dist/{chunk-5QUKZCEF.js → chunk-PUYSH3IL.js} +4 -3
- package/dist/chunk-PUYSH3IL.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +7 -7
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agents.d.ts +4 -4
- package/dist/server/handlers/vNextNetwork.d.ts +11 -11
- package/dist/server/handlers/workflows.cjs +18 -18
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +6 -6
- package/dist/server/handlers.js +3 -3
- package/dist/server/utils.d.ts +2 -0
- package/dist/server/utils.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-3THIIWWW.cjs.map +0 -1
- package/dist/chunk-5QUKZCEF.js.map +0 -1
- package/dist/chunk-G7PLDFT6.js.map +0 -1
- package/dist/chunk-HJ4EQIE6.cjs.map +0 -1
- package/dist/chunk-K4GZBPXF.js.map +0 -1
- package/dist/chunk-NZMDHQVP.cjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk57HWW2TY_cjs = require('./chunk-57HWW2TY.cjs');
|
|
4
|
+
var chunkGDWMF6SB_cjs = require('./chunk-GDWMF6SB.cjs');
|
|
4
5
|
var chunkFALVL2VV_cjs = require('./chunk-FALVL2VV.cjs');
|
|
5
6
|
var chunkHVBBFCDH_cjs = require('./chunk-HVBBFCDH.cjs');
|
|
6
7
|
var chunkPPYGWINI_cjs = require('./chunk-PPYGWINI.cjs');
|
|
@@ -15627,8 +15628,8 @@ function createAgentBuilderWorkflowHandler(workflowHandlerFn, logMessage) {
|
|
|
15627
15628
|
const mastra = actionArgs.mastra;
|
|
15628
15629
|
const logger = mastra.getLogger();
|
|
15629
15630
|
try {
|
|
15630
|
-
|
|
15631
|
-
if (actionId && !
|
|
15631
|
+
chunkGDWMF6SB_cjs.WorkflowRegistry.registerTemporaryWorkflows(agentBuilderWorkflows, mastra);
|
|
15632
|
+
if (actionId && !chunkGDWMF6SB_cjs.WorkflowRegistry.isAgentBuilderWorkflow(actionId)) {
|
|
15632
15633
|
throw new chunk7NADHFD2_cjs.HTTPException(400, {
|
|
15633
15634
|
message: `Invalid agent-builder action: ${actionId}. Valid actions are: ${Object.keys(agentBuilderWorkflows).join(", ")}`
|
|
15634
15635
|
});
|
|
@@ -15643,7 +15644,7 @@ function createAgentBuilderWorkflowHandler(workflowHandlerFn, logMessage) {
|
|
|
15643
15644
|
const result = await workflowHandlerFn(handlerArgs);
|
|
15644
15645
|
return result;
|
|
15645
15646
|
} finally {
|
|
15646
|
-
|
|
15647
|
+
chunkGDWMF6SB_cjs.WorkflowRegistry.cleanup();
|
|
15647
15648
|
}
|
|
15648
15649
|
} catch (error) {
|
|
15649
15650
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
@@ -15657,10 +15658,10 @@ function createAgentBuilderWorkflowHandler(workflowHandlerFn, logMessage) {
|
|
|
15657
15658
|
}
|
|
15658
15659
|
var getAgentBuilderActionsHandler = createAgentBuilderWorkflowHandler(async () => {
|
|
15659
15660
|
try {
|
|
15660
|
-
const registryWorkflows =
|
|
15661
|
+
const registryWorkflows = chunkGDWMF6SB_cjs.WorkflowRegistry.getAllWorkflows();
|
|
15661
15662
|
const _workflows = Object.entries(registryWorkflows).reduce(
|
|
15662
15663
|
(acc, [key, workflow]) => {
|
|
15663
|
-
acc[key] =
|
|
15664
|
+
acc[key] = chunkGDWMF6SB_cjs.getWorkflowInfo(workflow);
|
|
15664
15665
|
return acc;
|
|
15665
15666
|
},
|
|
15666
15667
|
{}
|
|
@@ -15671,59 +15672,59 @@ var getAgentBuilderActionsHandler = createAgentBuilderWorkflowHandler(async () =
|
|
|
15671
15672
|
}
|
|
15672
15673
|
}, "Getting agent builder actions");
|
|
15673
15674
|
var getAgentBuilderActionByIdHandler = createAgentBuilderWorkflowHandler(
|
|
15674
|
-
|
|
15675
|
+
chunk57HWW2TY_cjs.getWorkflowByIdHandler,
|
|
15675
15676
|
"Getting agent builder action by ID"
|
|
15676
15677
|
);
|
|
15677
15678
|
var getAgentBuilderActionRunByIdHandler = createAgentBuilderWorkflowHandler(
|
|
15678
|
-
|
|
15679
|
+
chunk57HWW2TY_cjs.getWorkflowRunByIdHandler,
|
|
15679
15680
|
"Getting agent builder action run by ID"
|
|
15680
15681
|
);
|
|
15681
15682
|
var getAgentBuilderActionRunExecutionResultHandler = createAgentBuilderWorkflowHandler(
|
|
15682
|
-
|
|
15683
|
+
chunk57HWW2TY_cjs.getWorkflowRunExecutionResultHandler,
|
|
15683
15684
|
"Getting agent builder action run execution result"
|
|
15684
15685
|
);
|
|
15685
15686
|
var createAgentBuilderActionRunHandler = createAgentBuilderWorkflowHandler(
|
|
15686
|
-
|
|
15687
|
+
chunk57HWW2TY_cjs.createWorkflowRunHandler,
|
|
15687
15688
|
"Creating agent builder action run"
|
|
15688
15689
|
);
|
|
15689
15690
|
var startAsyncAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15690
|
-
|
|
15691
|
+
chunk57HWW2TY_cjs.startAsyncWorkflowHandler,
|
|
15691
15692
|
"Starting async agent builder action"
|
|
15692
15693
|
);
|
|
15693
15694
|
var startAgentBuilderActionRunHandler = createAgentBuilderWorkflowHandler(
|
|
15694
|
-
|
|
15695
|
+
chunk57HWW2TY_cjs.startWorkflowRunHandler,
|
|
15695
15696
|
"Starting agent builder action run"
|
|
15696
15697
|
);
|
|
15697
15698
|
var watchAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15698
|
-
|
|
15699
|
+
chunk57HWW2TY_cjs.watchWorkflowHandler,
|
|
15699
15700
|
"Watching agent builder action"
|
|
15700
15701
|
);
|
|
15701
15702
|
var streamAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15702
|
-
|
|
15703
|
+
chunk57HWW2TY_cjs.streamWorkflowHandler,
|
|
15703
15704
|
"Streaming agent builder action"
|
|
15704
15705
|
);
|
|
15705
15706
|
var streamVNextAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15706
|
-
|
|
15707
|
+
chunk57HWW2TY_cjs.streamVNextWorkflowHandler,
|
|
15707
15708
|
"Streaming VNext agent builder action"
|
|
15708
15709
|
);
|
|
15709
15710
|
var resumeAsyncAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15710
|
-
|
|
15711
|
+
chunk57HWW2TY_cjs.resumeAsyncWorkflowHandler,
|
|
15711
15712
|
"Resuming async agent builder action"
|
|
15712
15713
|
);
|
|
15713
15714
|
var resumeAgentBuilderActionHandler = createAgentBuilderWorkflowHandler(
|
|
15714
|
-
|
|
15715
|
+
chunk57HWW2TY_cjs.resumeWorkflowHandler,
|
|
15715
15716
|
"Resuming agent builder action"
|
|
15716
15717
|
);
|
|
15717
15718
|
var getAgentBuilderActionRunsHandler = createAgentBuilderWorkflowHandler(
|
|
15718
|
-
|
|
15719
|
+
chunk57HWW2TY_cjs.getWorkflowRunsHandler,
|
|
15719
15720
|
"Getting agent builder action runs"
|
|
15720
15721
|
);
|
|
15721
15722
|
var cancelAgentBuilderActionRunHandler = createAgentBuilderWorkflowHandler(
|
|
15722
|
-
|
|
15723
|
+
chunk57HWW2TY_cjs.cancelWorkflowRunHandler,
|
|
15723
15724
|
"Cancelling agent builder action run"
|
|
15724
15725
|
);
|
|
15725
15726
|
var sendAgentBuilderActionRunEventHandler = createAgentBuilderWorkflowHandler(
|
|
15726
|
-
|
|
15727
|
+
chunk57HWW2TY_cjs.sendWorkflowRunEventHandler,
|
|
15727
15728
|
"Sending agent builder action run event"
|
|
15728
15729
|
);
|
|
15729
15730
|
|
|
@@ -15743,5 +15744,5 @@ exports.startAsyncAgentBuilderActionHandler = startAsyncAgentBuilderActionHandle
|
|
|
15743
15744
|
exports.streamAgentBuilderActionHandler = streamAgentBuilderActionHandler;
|
|
15744
15745
|
exports.streamVNextAgentBuilderActionHandler = streamVNextAgentBuilderActionHandler;
|
|
15745
15746
|
exports.watchAgentBuilderActionHandler = watchAgentBuilderActionHandler;
|
|
15746
|
-
//# sourceMappingURL=chunk-
|
|
15747
|
-
//# sourceMappingURL=chunk-
|
|
15747
|
+
//# sourceMappingURL=chunk-OJQOYXHU.cjs.map
|
|
15748
|
+
//# sourceMappingURL=chunk-OJQOYXHU.cjs.map
|