@mastra/client-js 1.57.0-alpha.1 → 1.57.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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4498,7 +4498,7 @@ var Workflow = class extends BaseResource {
|
|
|
4498
4498
|
*/
|
|
4499
4499
|
async createRun(params) {
|
|
4500
4500
|
const searchParams = new URLSearchParams();
|
|
4501
|
-
if (
|
|
4501
|
+
if (params?.runId) searchParams.set("runId", params.runId);
|
|
4502
4502
|
const res = await this.request(`/workflows/${this.workflowId}/create-run?${searchParams.toString()}`, {
|
|
4503
4503
|
method: "POST",
|
|
4504
4504
|
body: {
|
|
@@ -5056,7 +5056,7 @@ var AgentBuilder = class extends BaseResource {
|
|
|
5056
5056
|
*/
|
|
5057
5057
|
async createRun(params) {
|
|
5058
5058
|
const searchParams = new URLSearchParams();
|
|
5059
|
-
if (
|
|
5059
|
+
if (params?.runId) searchParams.set("runId", params.runId);
|
|
5060
5060
|
const url = `/agent-builder/${this.actionId}/create-run${searchParams.toString() ? `?${searchParams.toString()}` : ""}`;
|
|
5061
5061
|
return this.request(url, { method: "POST" });
|
|
5062
5062
|
}
|