@mastra/server 1.0.0-beta.13 → 1.0.0-beta.14
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 +93 -0
- package/dist/{chunk-YD5BSLPJ.js → chunk-3BXS37TQ.js} +43 -7
- package/dist/chunk-3BXS37TQ.js.map +1 -0
- package/dist/{chunk-4MNOLEZO.cjs → chunk-BGSW46W5.cjs} +81 -56
- package/dist/chunk-BGSW46W5.cjs.map +1 -0
- package/dist/{chunk-7O3KPUJ4.cjs → chunk-JUYWLFVT.cjs} +13 -4
- package/dist/chunk-JUYWLFVT.cjs.map +1 -0
- package/dist/{chunk-4TDHAYN7.cjs → chunk-P6S2HIVE.cjs} +43 -7
- package/dist/chunk-P6S2HIVE.cjs.map +1 -0
- package/dist/{chunk-KEXR53KI.js → chunk-S5XBFHJL.js} +13 -4
- package/dist/chunk-S5XBFHJL.js.map +1 -0
- package/dist/{chunk-EEORY4VR.js → chunk-YBYNF4PS.js} +48 -23
- package/dist/chunk-YBYNF4PS.js.map +1 -0
- package/dist/server/handlers/a2a.cjs +9 -9
- 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 +19 -19
- package/dist/server/handlers/agent-builder.d.ts +21 -3
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/workflows.cjs +27 -27
- package/dist/server/handlers/workflows.d.ts +52 -6
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- 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/schemas/workflows.d.ts +40 -3
- package/dist/server/schemas/workflows.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +48 -48
- package/dist/server/server-adapter/index.js +3 -3
- package/package.json +5 -5
- package/dist/chunk-4MNOLEZO.cjs.map +0 -1
- package/dist/chunk-4TDHAYN7.cjs.map +0 -1
- package/dist/chunk-7O3KPUJ4.cjs.map +0 -1
- package/dist/chunk-EEORY4VR.js.map +0 -1
- package/dist/chunk-KEXR53KI.js.map +0 -1
- package/dist/chunk-YD5BSLPJ.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFWSKVWS7_cjs = require('./chunk-FWSKVWS7.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP6S2HIVE_cjs = require('./chunk-P6S2HIVE.cjs');
|
|
5
5
|
var chunkQ7NPRJRV_cjs = require('./chunk-Q7NPRJRV.cjs');
|
|
6
6
|
var chunkK73YS7YB_cjs = require('./chunk-K73YS7YB.cjs');
|
|
7
7
|
var chunk3XI22UQR_cjs = require('./chunk-3XI22UQR.cjs');
|
|
@@ -15867,6 +15867,35 @@ var __experimental_updateWorkingMemoryToolVNext = (config) => {
|
|
|
15867
15867
|
}
|
|
15868
15868
|
});
|
|
15869
15869
|
};
|
|
15870
|
+
var WORKING_MEMORY_START_TAG = "<working_memory>";
|
|
15871
|
+
var WORKING_MEMORY_END_TAG = "</working_memory>";
|
|
15872
|
+
function removeWorkingMemoryTags(text32) {
|
|
15873
|
+
let result = "";
|
|
15874
|
+
let pos = 0;
|
|
15875
|
+
while (pos < text32.length) {
|
|
15876
|
+
const start = text32.indexOf(WORKING_MEMORY_START_TAG, pos);
|
|
15877
|
+
if (start === -1) {
|
|
15878
|
+
result += text32.substring(pos);
|
|
15879
|
+
break;
|
|
15880
|
+
}
|
|
15881
|
+
result += text32.substring(pos, start);
|
|
15882
|
+
const end = text32.indexOf(WORKING_MEMORY_END_TAG, start + WORKING_MEMORY_START_TAG.length);
|
|
15883
|
+
if (end === -1) {
|
|
15884
|
+
result += text32.substring(start);
|
|
15885
|
+
break;
|
|
15886
|
+
}
|
|
15887
|
+
pos = end + WORKING_MEMORY_END_TAG.length;
|
|
15888
|
+
}
|
|
15889
|
+
return result;
|
|
15890
|
+
}
|
|
15891
|
+
function extractWorkingMemoryContent(text32) {
|
|
15892
|
+
const start = text32.indexOf(WORKING_MEMORY_START_TAG);
|
|
15893
|
+
if (start === -1) return null;
|
|
15894
|
+
const contentStart = start + WORKING_MEMORY_START_TAG.length;
|
|
15895
|
+
const end = text32.indexOf(WORKING_MEMORY_END_TAG, contentStart);
|
|
15896
|
+
if (end === -1) return null;
|
|
15897
|
+
return text32.substring(contentStart, end);
|
|
15898
|
+
}
|
|
15870
15899
|
var CHARS_PER_TOKEN = 4;
|
|
15871
15900
|
var DEFAULT_MESSAGE_RANGE = { before: 1, after: 1 };
|
|
15872
15901
|
var DEFAULT_TOP_K = 4;
|
|
@@ -16283,11 +16312,10 @@ ${workingMemory}`;
|
|
|
16283
16312
|
return result;
|
|
16284
16313
|
}
|
|
16285
16314
|
updateMessageToHideWorkingMemory(message) {
|
|
16286
|
-
const workingMemoryRegex = /<working_memory>([^]*?)<\/working_memory>/g;
|
|
16287
16315
|
if (typeof message?.content === `string`) {
|
|
16288
16316
|
return {
|
|
16289
16317
|
...message,
|
|
16290
|
-
content: message.content
|
|
16318
|
+
content: removeWorkingMemoryTags(message.content).trim()
|
|
16291
16319
|
};
|
|
16292
16320
|
} else if (Array.isArray(message?.content)) {
|
|
16293
16321
|
const filteredContent = message.content.filter(
|
|
@@ -16297,7 +16325,7 @@ ${workingMemory}`;
|
|
|
16297
16325
|
if (content.type === "text") {
|
|
16298
16326
|
return {
|
|
16299
16327
|
...content,
|
|
16300
|
-
text: content.text
|
|
16328
|
+
text: removeWorkingMemoryTags(content.text).trim()
|
|
16301
16329
|
};
|
|
16302
16330
|
}
|
|
16303
16331
|
return { ...content };
|
|
@@ -16309,13 +16337,12 @@ ${workingMemory}`;
|
|
|
16309
16337
|
}
|
|
16310
16338
|
}
|
|
16311
16339
|
updateMessageToHideWorkingMemoryV2(message) {
|
|
16312
|
-
const workingMemoryRegex = /<working_memory>([^]*?)<\/working_memory>/g;
|
|
16313
16340
|
const newMessage = { ...message };
|
|
16314
16341
|
if (message.content && typeof message.content === "object" && !Array.isArray(message.content)) {
|
|
16315
16342
|
newMessage.content = { ...message.content };
|
|
16316
16343
|
}
|
|
16317
16344
|
if (typeof newMessage.content?.content === "string" && newMessage.content.content.length > 0) {
|
|
16318
|
-
newMessage.content.content = newMessage.content.content
|
|
16345
|
+
newMessage.content.content = removeWorkingMemoryTags(newMessage.content.content).trim();
|
|
16319
16346
|
}
|
|
16320
16347
|
if (Array.isArray(newMessage.content?.parts)) {
|
|
16321
16348
|
newMessage.content.parts = newMessage.content.parts.filter((part) => {
|
|
@@ -16328,7 +16355,7 @@ ${workingMemory}`;
|
|
|
16328
16355
|
const text32 = typeof part.text === "string" ? part.text : "";
|
|
16329
16356
|
return {
|
|
16330
16357
|
...part,
|
|
16331
|
-
text: text32
|
|
16358
|
+
text: removeWorkingMemoryTags(text32).trim()
|
|
16332
16359
|
};
|
|
16333
16360
|
}
|
|
16334
16361
|
return part;
|
|
@@ -16341,13 +16368,8 @@ ${workingMemory}`;
|
|
|
16341
16368
|
}
|
|
16342
16369
|
parseWorkingMemory(text32) {
|
|
16343
16370
|
if (!this.threadConfig.workingMemory?.enabled) return null;
|
|
16344
|
-
const
|
|
16345
|
-
|
|
16346
|
-
const match = matches?.[0];
|
|
16347
|
-
if (match) {
|
|
16348
|
-
return match.replace(/<\/?working_memory>/g, "").trim();
|
|
16349
|
-
}
|
|
16350
|
-
return null;
|
|
16371
|
+
const content = extractWorkingMemoryContent(text32);
|
|
16372
|
+
return content?.trim() ?? null;
|
|
16351
16373
|
}
|
|
16352
16374
|
async getWorkingMemory({
|
|
16353
16375
|
threadId,
|
|
@@ -20015,7 +20037,8 @@ Return the actual exported names of the units, as well as the file names.`,
|
|
|
20015
20037
|
listDirectory: tools.listDirectory
|
|
20016
20038
|
}
|
|
20017
20039
|
});
|
|
20018
|
-
const
|
|
20040
|
+
const resolvedModel = await agent$1.getModel();
|
|
20041
|
+
const isSupported = agent.isSupportedLanguageModel(resolvedModel);
|
|
20019
20042
|
const prompt = `Analyze the Mastra project directory structure at "${templateDir}".
|
|
20020
20043
|
|
|
20021
20044
|
List directory contents using listDirectory tool, and then analyze each file with readFile tool.
|
|
@@ -20034,7 +20057,7 @@ Return the actual exported names of the units, as well as the file names.`,
|
|
|
20034
20057
|
networks: z18.z.array(z18.z.object({ name: z18.z.string(), file: z18.z.string() })).optional(),
|
|
20035
20058
|
other: z18.z.array(z18.z.object({ name: z18.z.string(), file: z18.z.string() })).optional()
|
|
20036
20059
|
});
|
|
20037
|
-
const result =
|
|
20060
|
+
const result = isSupported ? await agent.tryGenerateWithJsonFallback(agent$1, prompt, {
|
|
20038
20061
|
structuredOutput: {
|
|
20039
20062
|
schema: output
|
|
20040
20063
|
},
|
|
@@ -20784,8 +20807,9 @@ For each task:
|
|
|
20784
20807
|
|
|
20785
20808
|
Start by listing your tasks and work through them systematically!
|
|
20786
20809
|
`;
|
|
20787
|
-
const
|
|
20788
|
-
const
|
|
20810
|
+
const resolvedModel = await agentBuilder.getModel();
|
|
20811
|
+
const isSupported = agent.isSupportedLanguageModel(resolvedModel);
|
|
20812
|
+
const result = isSupported ? await agentBuilder.stream(prompt) : await agentBuilder.streamLegacy(prompt);
|
|
20789
20813
|
const actualResolutions = [];
|
|
20790
20814
|
for await (const chunk of result.fullStream) {
|
|
20791
20815
|
if (chunk.type === "step-finish" || chunk.type === "step-start") {
|
|
@@ -21026,9 +21050,10 @@ Be thorough and methodical. Always use listDirectory to verify actual file exist
|
|
|
21026
21050
|
Start by running validateCode with all validation types to get a complete picture of any issues, then systematically fix them.` : `Continue validation and fixing for the template integration at ${targetPath}. This is iteration ${currentIteration} of validation.
|
|
21027
21051
|
|
|
21028
21052
|
Previous iterations may have fixed some issues, so start by re-running validateCode to see the current state, then fix any remaining issues.`;
|
|
21029
|
-
const
|
|
21053
|
+
const resolvedModel = await validationAgent.getModel();
|
|
21054
|
+
const isSupported = agent.isSupportedLanguageModel(resolvedModel);
|
|
21030
21055
|
const output = z18.z.object({ success: z18.z.boolean() });
|
|
21031
|
-
const result =
|
|
21056
|
+
const result = isSupported ? await agent.tryStreamWithJsonFallback(validationAgent, iterationPrompt, {
|
|
21032
21057
|
structuredOutput: {
|
|
21033
21058
|
schema: output
|
|
21034
21059
|
}
|
|
@@ -26953,17 +26978,17 @@ var actionRunPathParams = z18__default.default.object({
|
|
|
26953
26978
|
actionId: z18__default.default.string().describe("Unique identifier for the agent-builder action"),
|
|
26954
26979
|
runId: z18__default.default.string().describe("Unique identifier for the action run")
|
|
26955
26980
|
});
|
|
26956
|
-
var streamAgentBuilderBodySchema =
|
|
26957
|
-
var streamLegacyAgentBuilderBodySchema =
|
|
26958
|
-
var resumeAgentBuilderBodySchema =
|
|
26959
|
-
var startAsyncAgentBuilderBodySchema =
|
|
26981
|
+
var streamAgentBuilderBodySchema = chunkP6S2HIVE_cjs.streamWorkflowBodySchema;
|
|
26982
|
+
var streamLegacyAgentBuilderBodySchema = chunkP6S2HIVE_cjs.streamLegacyWorkflowBodySchema;
|
|
26983
|
+
var resumeAgentBuilderBodySchema = chunkP6S2HIVE_cjs.resumeBodySchema;
|
|
26984
|
+
var startAsyncAgentBuilderBodySchema = chunkP6S2HIVE_cjs.startAsyncWorkflowBodySchema;
|
|
26960
26985
|
|
|
26961
26986
|
// src/server/handlers/agent-builder.ts
|
|
26962
26987
|
var LIST_AGENT_BUILDER_ACTIONS_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
26963
26988
|
method: "GET",
|
|
26964
26989
|
path: "/api/agent-builder",
|
|
26965
26990
|
responseType: "json",
|
|
26966
|
-
responseSchema:
|
|
26991
|
+
responseSchema: chunkP6S2HIVE_cjs.listWorkflowsResponseSchema,
|
|
26967
26992
|
summary: "List agent-builder actions",
|
|
26968
26993
|
description: "Returns a list of all available agent-builder actions",
|
|
26969
26994
|
tags: ["Agent Builder"],
|
|
@@ -26973,7 +26998,7 @@ var LIST_AGENT_BUILDER_ACTIONS_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
26973
26998
|
try {
|
|
26974
26999
|
chunk3XI22UQR_cjs.WorkflowRegistry.registerTemporaryWorkflows(agentBuilderWorkflows, mastra);
|
|
26975
27000
|
logger.info("Listing agent builder actions");
|
|
26976
|
-
return await
|
|
27001
|
+
return await chunkP6S2HIVE_cjs.LIST_WORKFLOWS_ROUTE.handler(ctx);
|
|
26977
27002
|
} catch (error) {
|
|
26978
27003
|
logger.error("Error listing agent builder actions", { error });
|
|
26979
27004
|
return chunkV5WWQN7P_cjs.handleError(error, "Error getting agent builder workflows");
|
|
@@ -26987,7 +27012,7 @@ var GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
26987
27012
|
path: "/api/agent-builder/:actionId",
|
|
26988
27013
|
responseType: "json",
|
|
26989
27014
|
pathParamSchema: actionIdPathParams,
|
|
26990
|
-
responseSchema:
|
|
27015
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowInfoSchema,
|
|
26991
27016
|
summary: "Get action by ID",
|
|
26992
27017
|
description: "Returns details for a specific agent-builder action",
|
|
26993
27018
|
tags: ["Agent Builder"],
|
|
@@ -27002,7 +27027,7 @@ var GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27002
27027
|
});
|
|
27003
27028
|
}
|
|
27004
27029
|
logger.info("Getting agent builder action by ID", { actionId });
|
|
27005
|
-
return await
|
|
27030
|
+
return await chunkP6S2HIVE_cjs.GET_WORKFLOW_BY_ID_ROUTE.handler({ ...ctx, workflowId: actionId });
|
|
27006
27031
|
} catch (error) {
|
|
27007
27032
|
logger.error("Error getting agent builder action by ID", { error, actionId });
|
|
27008
27033
|
return chunkV5WWQN7P_cjs.handleError(error, "Error getting agent builder action");
|
|
@@ -27016,8 +27041,8 @@ var LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27016
27041
|
path: "/api/agent-builder/:actionId/runs",
|
|
27017
27042
|
responseType: "json",
|
|
27018
27043
|
pathParamSchema: actionIdPathParams,
|
|
27019
|
-
queryParamSchema:
|
|
27020
|
-
responseSchema:
|
|
27044
|
+
queryParamSchema: chunkP6S2HIVE_cjs.listWorkflowRunsQuerySchema,
|
|
27045
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowRunsResponseSchema,
|
|
27021
27046
|
summary: "List action runs",
|
|
27022
27047
|
description: "Returns a paginated list of execution runs for the specified action",
|
|
27023
27048
|
tags: ["Agent Builder"],
|
|
@@ -27030,7 +27055,7 @@ var LIST_AGENT_BUILDER_ACTION_RUNS_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27030
27055
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27031
27056
|
}
|
|
27032
27057
|
logger.info("Listing agent builder action runs", { actionId });
|
|
27033
|
-
return await
|
|
27058
|
+
return await chunkP6S2HIVE_cjs.LIST_WORKFLOW_RUNS_ROUTE.handler({
|
|
27034
27059
|
...ctx,
|
|
27035
27060
|
workflowId: actionId
|
|
27036
27061
|
});
|
|
@@ -27047,7 +27072,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27047
27072
|
path: "/api/agent-builder/:actionId/runs/:runId",
|
|
27048
27073
|
responseType: "json",
|
|
27049
27074
|
pathParamSchema: actionRunPathParams,
|
|
27050
|
-
responseSchema:
|
|
27075
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowRunResponseSchema,
|
|
27051
27076
|
summary: "Get action run by ID",
|
|
27052
27077
|
description: "Returns details for a specific action run",
|
|
27053
27078
|
tags: ["Agent Builder"],
|
|
@@ -27060,7 +27085,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27060
27085
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27061
27086
|
}
|
|
27062
27087
|
logger.info("Getting agent builder action run by ID", { actionId, runId });
|
|
27063
|
-
return await
|
|
27088
|
+
return await chunkP6S2HIVE_cjs.GET_WORKFLOW_RUN_BY_ID_ROUTE.handler({
|
|
27064
27089
|
...ctx,
|
|
27065
27090
|
workflowId: actionId
|
|
27066
27091
|
});
|
|
@@ -27077,7 +27102,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_EXECUTION_RESULT_ROUTE = chunkH2RMXG2Q_cjs.crea
|
|
|
27077
27102
|
path: "/api/agent-builder/:actionId/runs/:runId/execution-result",
|
|
27078
27103
|
responseType: "json",
|
|
27079
27104
|
pathParamSchema: actionRunPathParams,
|
|
27080
|
-
responseSchema:
|
|
27105
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowExecutionResultSchema,
|
|
27081
27106
|
summary: "Get action execution result",
|
|
27082
27107
|
description: "Returns the final execution result of a completed action run",
|
|
27083
27108
|
tags: ["Agent Builder"],
|
|
@@ -27090,7 +27115,7 @@ var GET_AGENT_BUILDER_ACTION_RUN_EXECUTION_RESULT_ROUTE = chunkH2RMXG2Q_cjs.crea
|
|
|
27090
27115
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27091
27116
|
}
|
|
27092
27117
|
logger.info("Getting agent builder action run execution result", { actionId, runId });
|
|
27093
|
-
return await
|
|
27118
|
+
return await chunkP6S2HIVE_cjs.GET_WORKFLOW_RUN_EXECUTION_RESULT_ROUTE.handler({
|
|
27094
27119
|
...ctx,
|
|
27095
27120
|
workflowId: actionId
|
|
27096
27121
|
});
|
|
@@ -27108,7 +27133,7 @@ var CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27108
27133
|
responseType: "json",
|
|
27109
27134
|
pathParamSchema: actionIdPathParams,
|
|
27110
27135
|
queryParamSchema: chunkMCYD5LW7_cjs.optionalRunIdSchema,
|
|
27111
|
-
responseSchema:
|
|
27136
|
+
responseSchema: chunkP6S2HIVE_cjs.createWorkflowRunResponseSchema,
|
|
27112
27137
|
summary: "Create action run",
|
|
27113
27138
|
description: "Creates a new action execution instance with an optional custom run ID",
|
|
27114
27139
|
tags: ["Agent Builder"],
|
|
@@ -27121,7 +27146,7 @@ var CREATE_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27121
27146
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27122
27147
|
}
|
|
27123
27148
|
logger.info("Creating agent builder action run", { actionId, runId });
|
|
27124
|
-
return await
|
|
27149
|
+
return await chunkP6S2HIVE_cjs.CREATE_WORKFLOW_RUN_ROUTE.handler({
|
|
27125
27150
|
...ctx,
|
|
27126
27151
|
workflowId: actionId
|
|
27127
27152
|
});
|
|
@@ -27153,7 +27178,7 @@ var STREAM_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27153
27178
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27154
27179
|
}
|
|
27155
27180
|
logger.info("Streaming agent builder action", { actionId, runId });
|
|
27156
|
-
return await
|
|
27181
|
+
return await chunkP6S2HIVE_cjs.STREAM_WORKFLOW_ROUTE.handler({
|
|
27157
27182
|
...ctx,
|
|
27158
27183
|
workflowId: actionId,
|
|
27159
27184
|
requestContext
|
|
@@ -27186,7 +27211,7 @@ var STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27186
27211
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27187
27212
|
}
|
|
27188
27213
|
logger.info("Streaming agent builder action (v2)", { actionId, runId });
|
|
27189
|
-
return await
|
|
27214
|
+
return await chunkP6S2HIVE_cjs.STREAM_VNEXT_WORKFLOW_ROUTE.handler({
|
|
27190
27215
|
...ctx,
|
|
27191
27216
|
workflowId: actionId,
|
|
27192
27217
|
requestContext
|
|
@@ -27206,7 +27231,7 @@ var START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27206
27231
|
pathParamSchema: actionIdPathParams,
|
|
27207
27232
|
queryParamSchema: chunkMCYD5LW7_cjs.optionalRunIdSchema,
|
|
27208
27233
|
bodySchema: startAsyncAgentBuilderBodySchema,
|
|
27209
|
-
responseSchema:
|
|
27234
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowExecutionResultSchema,
|
|
27210
27235
|
summary: "Start action asynchronously",
|
|
27211
27236
|
description: "Starts an action execution asynchronously without streaming results",
|
|
27212
27237
|
tags: ["Agent Builder"],
|
|
@@ -27219,7 +27244,7 @@ var START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27219
27244
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27220
27245
|
}
|
|
27221
27246
|
logger.info("Starting agent builder action asynchronously", { actionId, runId });
|
|
27222
|
-
return await
|
|
27247
|
+
return await chunkP6S2HIVE_cjs.START_ASYNC_WORKFLOW_ROUTE.handler({
|
|
27223
27248
|
...ctx,
|
|
27224
27249
|
workflowId: actionId,
|
|
27225
27250
|
requestContext
|
|
@@ -27239,7 +27264,7 @@ var START_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27239
27264
|
pathParamSchema: actionIdPathParams,
|
|
27240
27265
|
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
27241
27266
|
bodySchema: startAsyncAgentBuilderBodySchema,
|
|
27242
|
-
responseSchema:
|
|
27267
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowControlResponseSchema,
|
|
27243
27268
|
summary: "Start specific action run",
|
|
27244
27269
|
description: "Starts execution of a specific action run by ID",
|
|
27245
27270
|
tags: ["Agent Builder"],
|
|
@@ -27252,7 +27277,7 @@ var START_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27252
27277
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27253
27278
|
}
|
|
27254
27279
|
logger.info("Starting specific agent builder action run", { actionId, runId });
|
|
27255
|
-
return await
|
|
27280
|
+
return await chunkP6S2HIVE_cjs.START_WORKFLOW_RUN_ROUTE.handler({
|
|
27256
27281
|
...ctx,
|
|
27257
27282
|
workflowId: actionId,
|
|
27258
27283
|
requestContext
|
|
@@ -27284,7 +27309,7 @@ var OBSERVE_STREAM_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27284
27309
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27285
27310
|
}
|
|
27286
27311
|
logger.info("Observing agent builder action stream", { actionId, runId });
|
|
27287
|
-
return await
|
|
27312
|
+
return await chunkP6S2HIVE_cjs.OBSERVE_STREAM_WORKFLOW_ROUTE.handler({
|
|
27288
27313
|
...ctx,
|
|
27289
27314
|
workflowId: actionId
|
|
27290
27315
|
});
|
|
@@ -27315,7 +27340,7 @@ var OBSERVE_STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRo
|
|
|
27315
27340
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27316
27341
|
}
|
|
27317
27342
|
logger.info("Observing agent builder action stream (v2)", { actionId, runId });
|
|
27318
|
-
return await
|
|
27343
|
+
return await chunkP6S2HIVE_cjs.OBSERVE_STREAM_VNEXT_WORKFLOW_ROUTE.handler({
|
|
27319
27344
|
...ctx,
|
|
27320
27345
|
workflowId: actionId
|
|
27321
27346
|
});
|
|
@@ -27334,7 +27359,7 @@ var RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27334
27359
|
pathParamSchema: actionIdPathParams,
|
|
27335
27360
|
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
27336
27361
|
bodySchema: resumeAgentBuilderBodySchema,
|
|
27337
|
-
responseSchema:
|
|
27362
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowExecutionResultSchema,
|
|
27338
27363
|
summary: "Resume action asynchronously",
|
|
27339
27364
|
description: "Resumes a suspended action execution asynchronously without streaming",
|
|
27340
27365
|
tags: ["Agent Builder"],
|
|
@@ -27347,7 +27372,7 @@ var RESUME_ASYNC_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27347
27372
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27348
27373
|
}
|
|
27349
27374
|
logger.info("Resuming agent builder action asynchronously", { actionId, runId, step });
|
|
27350
|
-
return await
|
|
27375
|
+
return await chunkP6S2HIVE_cjs.RESUME_ASYNC_WORKFLOW_ROUTE.handler({
|
|
27351
27376
|
...ctx,
|
|
27352
27377
|
workflowId: actionId,
|
|
27353
27378
|
requestContext
|
|
@@ -27367,7 +27392,7 @@ var RESUME_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27367
27392
|
pathParamSchema: actionIdPathParams,
|
|
27368
27393
|
queryParamSchema: chunkMCYD5LW7_cjs.runIdSchema,
|
|
27369
27394
|
bodySchema: resumeAgentBuilderBodySchema,
|
|
27370
|
-
responseSchema:
|
|
27395
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowControlResponseSchema,
|
|
27371
27396
|
summary: "Resume action",
|
|
27372
27397
|
description: "Resumes a suspended action execution from a specific step",
|
|
27373
27398
|
tags: ["Agent Builder"],
|
|
@@ -27380,7 +27405,7 @@ var RESUME_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27380
27405
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27381
27406
|
}
|
|
27382
27407
|
logger.info("Resuming agent builder action", { actionId, runId, step });
|
|
27383
|
-
return await
|
|
27408
|
+
return await chunkP6S2HIVE_cjs.RESUME_WORKFLOW_ROUTE.handler({
|
|
27384
27409
|
...ctx,
|
|
27385
27410
|
workflowId: actionId,
|
|
27386
27411
|
requestContext
|
|
@@ -27413,7 +27438,7 @@ var RESUME_STREAM_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27413
27438
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27414
27439
|
}
|
|
27415
27440
|
logger.info("Resuming agent builder action stream", { actionId, runId, step });
|
|
27416
|
-
return await
|
|
27441
|
+
return await chunkP6S2HIVE_cjs.RESUME_STREAM_WORKFLOW_ROUTE.handler({
|
|
27417
27442
|
...ctx,
|
|
27418
27443
|
workflowId: actionId,
|
|
27419
27444
|
requestContext
|
|
@@ -27431,7 +27456,7 @@ var CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27431
27456
|
path: "/api/agent-builder/:actionId/runs/:runId/cancel",
|
|
27432
27457
|
responseType: "json",
|
|
27433
27458
|
pathParamSchema: actionRunPathParams,
|
|
27434
|
-
responseSchema:
|
|
27459
|
+
responseSchema: chunkP6S2HIVE_cjs.workflowControlResponseSchema,
|
|
27435
27460
|
summary: "Cancel action run",
|
|
27436
27461
|
description: "Cancels an in-progress action execution",
|
|
27437
27462
|
tags: ["Agent Builder"],
|
|
@@ -27444,7 +27469,7 @@ var CANCEL_AGENT_BUILDER_ACTION_RUN_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27444
27469
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27445
27470
|
}
|
|
27446
27471
|
logger.info("Cancelling agent builder action run", { actionId, runId });
|
|
27447
|
-
return await
|
|
27472
|
+
return await chunkP6S2HIVE_cjs.CANCEL_WORKFLOW_RUN_ROUTE.handler({
|
|
27448
27473
|
...ctx,
|
|
27449
27474
|
workflowId: actionId
|
|
27450
27475
|
});
|
|
@@ -27476,7 +27501,7 @@ var STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createRoute({
|
|
|
27476
27501
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27477
27502
|
}
|
|
27478
27503
|
logger.info("Streaming agent builder action (legacy)", { actionId, runId });
|
|
27479
|
-
return await
|
|
27504
|
+
return await chunkP6S2HIVE_cjs.STREAM_LEGACY_WORKFLOW_ROUTE.handler({
|
|
27480
27505
|
...ctx,
|
|
27481
27506
|
workflowId: actionId,
|
|
27482
27507
|
requestContext
|
|
@@ -27508,7 +27533,7 @@ var OBSERVE_STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = chunkH2RMXG2Q_cjs.createR
|
|
|
27508
27533
|
throw new chunk64ITUOXI_cjs.HTTPException(400, { message: `Invalid agent-builder action: ${actionId}` });
|
|
27509
27534
|
}
|
|
27510
27535
|
logger.info("Observing agent builder action stream (legacy)", { actionId, runId });
|
|
27511
|
-
return await
|
|
27536
|
+
return await chunkP6S2HIVE_cjs.OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE.handler({
|
|
27512
27537
|
...ctx,
|
|
27513
27538
|
workflowId: actionId
|
|
27514
27539
|
});
|
|
@@ -27540,5 +27565,5 @@ exports.STREAM_AGENT_BUILDER_ACTION_ROUTE = STREAM_AGENT_BUILDER_ACTION_ROUTE;
|
|
|
27540
27565
|
exports.STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE;
|
|
27541
27566
|
exports.STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE = STREAM_VNEXT_AGENT_BUILDER_ACTION_ROUTE;
|
|
27542
27567
|
exports.agent_builder_exports = agent_builder_exports;
|
|
27543
|
-
//# sourceMappingURL=chunk-
|
|
27544
|
-
//# sourceMappingURL=chunk-
|
|
27568
|
+
//# sourceMappingURL=chunk-BGSW46W5.cjs.map
|
|
27569
|
+
//# sourceMappingURL=chunk-BGSW46W5.cjs.map
|