@mastra/agent-builder 0.0.1-alpha.3 → 0.0.1-alpha.4
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 +10 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts +3 -2
- package/dist/processors/tool-summary.d.ts.map +1 -1
- package/dist/processors/write-file.d.ts +2 -2
- package/dist/processors/write-file.d.ts.map +1 -1
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 0.0.1-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7363](https://github.com/mastra-ai/mastra/pull/7363) [`671a392`](https://github.com/mastra-ai/mastra/commit/671a39248d90f7723d3fae93818e8077f7504ec3) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix core imports inside agent-builder
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c19bcf7`](https://github.com/mastra-ai/mastra/commit/c19bcf7b43542b02157b5e17303e519933a153ab), [`a5632dd`](https://github.com/mastra-ai/mastra/commit/a5632dd316a6246666662705404bda570b070af1), [`b42a961`](https://github.com/mastra-ai/mastra/commit/b42a961a5aefd19d6e938a7705fc0ecc90e8f756), [`45e4d39`](https://github.com/mastra-ai/mastra/commit/45e4d391a2a09fc70c48e4d60f505586ada1ba0e), [`0302f50`](https://github.com/mastra-ai/mastra/commit/0302f50861a53c66ff28801fc371b37c5f97e41e), [`74db265`](https://github.com/mastra-ai/mastra/commit/74db265b96aa01a72ffd91dcae0bc3b346cca0f2), [`7f3b8da`](https://github.com/mastra-ai/mastra/commit/7f3b8da6dd21c35d3672e44b4f5dd3502b8f8f92), [`905352b`](https://github.com/mastra-ai/mastra/commit/905352bcda134552400eb252bca1cb05a7975c14), [`f2cda47`](https://github.com/mastra-ai/mastra/commit/f2cda47ae911038c5d5489f54c36517d6f15bdcc), [`cfd377a`](https://github.com/mastra-ai/mastra/commit/cfd377a3a33a9c88b644f6540feed9cd9832db47)]:
|
|
10
|
+
- @mastra/core@0.15.3-alpha.6
|
|
11
|
+
- @mastra/memory@0.14.3-alpha.3
|
|
12
|
+
|
|
3
13
|
## 0.0.1-alpha.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAQ3C,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AAgCzE,qBAAa,YAAa,SAAQ,KAAK;IACrC,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;gBACS,MAAM,EAAE,kBAAkB;IAgCtC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CA6BzB;IAEF;;;OAGG;IACH,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CA4BrB;IAEF;;OAEG;IACG,aAAa,CACjB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;QAC/C,cAAc,CAAC,EAAE,GAAG,CAAC;KACtB;IAmBH;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1C"}
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { existsSync, readFileSync } from 'fs';
|
|
|
11
11
|
import { createRequire } from 'module';
|
|
12
12
|
import { promisify } from 'util';
|
|
13
13
|
import { openai as openai$1 } from '@ai-sdk/openai_v5';
|
|
14
|
-
import {
|
|
14
|
+
import { MemoryProcessor } from '@mastra/core/memory';
|
|
15
15
|
import { tmpdir } from 'os';
|
|
16
16
|
import { openai } from '@ai-sdk/openai';
|
|
17
17
|
import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
@@ -3194,7 +3194,7 @@ var ToolSummaryProcessor = class extends MemoryProcessor {
|
|
|
3194
3194
|
summaryCache = /* @__PURE__ */ new Map();
|
|
3195
3195
|
constructor({ summaryModel }) {
|
|
3196
3196
|
super({ name: "ToolSummaryProcessor" });
|
|
3197
|
-
this.summaryAgent = new Agent
|
|
3197
|
+
this.summaryAgent = new Agent({
|
|
3198
3198
|
name: "ToolSummaryAgent",
|
|
3199
3199
|
description: "A summary agent that summarizes tool calls and results",
|
|
3200
3200
|
instructions: "You are a summary agent that summarizes tool calls and results",
|
|
@@ -4893,7 +4893,7 @@ var TaskApprovalResumeSchema = z.object({
|
|
|
4893
4893
|
});
|
|
4894
4894
|
|
|
4895
4895
|
// src/workflows/task-planning/task-planning.ts
|
|
4896
|
-
var planningIterationStep = createStep
|
|
4896
|
+
var planningIterationStep = createStep({
|
|
4897
4897
|
id: "planning-iteration",
|
|
4898
4898
|
description: "Create or refine task plan with user input",
|
|
4899
4899
|
inputSchema: PlanningIterationInputSchema,
|
|
@@ -4935,7 +4935,7 @@ var planningIterationStep = createStep$1({
|
|
|
4935
4935
|
`Current Q&A state: ${storedQAPairs.length} question-answer pairs, ${storedQAPairs.filter((p) => p.answer).length} answered`
|
|
4936
4936
|
);
|
|
4937
4937
|
try {
|
|
4938
|
-
const planningAgent = new Agent
|
|
4938
|
+
const planningAgent = new Agent({
|
|
4939
4939
|
model: resolveModel(runtimeContext),
|
|
4940
4940
|
instructions: taskPlanningPrompts.planningAgent.instructions({
|
|
4941
4941
|
storedQAPairs
|
|
@@ -5037,7 +5037,7 @@ var planningIterationStep = createStep$1({
|
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
});
|
|
5040
|
-
var taskApprovalStep = createStep
|
|
5040
|
+
var taskApprovalStep = createStep({
|
|
5041
5041
|
id: "task-approval",
|
|
5042
5042
|
description: "Get user approval for the final task list",
|
|
5043
5043
|
inputSchema: PlanningIterationResultSchema,
|
|
@@ -5077,7 +5077,7 @@ ${tasks.map((task, i) => `${i + 1}. [${task.priority.toUpperCase()}] ${task.cont
|
|
|
5077
5077
|
}
|
|
5078
5078
|
}
|
|
5079
5079
|
});
|
|
5080
|
-
var planningAndApprovalWorkflow = createWorkflow
|
|
5080
|
+
var planningAndApprovalWorkflow = createWorkflow({
|
|
5081
5081
|
id: "planning-and-approval",
|
|
5082
5082
|
description: "Handle iterative planning with questions and task list approval",
|
|
5083
5083
|
inputSchema: PlanningIterationInputSchema,
|
|
@@ -5486,7 +5486,7 @@ ${context.resumeData ? `USER PROVIDED ANSWERS: ${JSON.stringify(context.resumeDa
|
|
|
5486
5486
|
- ALWAYS validate after creating or modifying files to ensure they compile correctly`
|
|
5487
5487
|
}
|
|
5488
5488
|
};
|
|
5489
|
-
var restrictedTaskManager = createTool
|
|
5489
|
+
var restrictedTaskManager = createTool({
|
|
5490
5490
|
id: "task-manager",
|
|
5491
5491
|
description: "View and update your pre-loaded task list. You can only mark tasks as in_progress or completed, not create new tasks.",
|
|
5492
5492
|
inputSchema: z.object({
|