@mastra/editor 0.0.0-auth-rbac-cms-20260211172515
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 +205 -0
- package/LICENSE.md +15 -0
- package/dist/index.cjs +715 -0
- package/dist/index.d.cts +209 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +687 -0
- package/package.json +51 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { IMastraEditor, MastraEditorConfig, Mastra, Agent, StorageResolvedAgentType } from '@mastra/core';
|
|
2
|
+
export { MastraEditorConfig } from '@mastra/core';
|
|
3
|
+
import { RuleGroup, AgentInstructionBlock, PromptBlocksStorage, StorageCreatePromptBlockInput, StorageResolvedPromptBlockType, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput, StorageListPromptBlocksResolvedOutput } from '@mastra/core/storage';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* TemplateEngine: Simple variable interpolation for prompt block content.
|
|
7
|
+
*
|
|
8
|
+
* Supports:
|
|
9
|
+
* {{variableName}} - Direct variable substitution
|
|
10
|
+
* {{nested.path.value}} - Dot-notation path resolution
|
|
11
|
+
* {{variable || 'default'}} - Fallback values (single or double quotes)
|
|
12
|
+
*
|
|
13
|
+
* Variables that cannot be resolved (and have no fallback) are left as-is.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Renders a template string by interpolating variables from the given context.
|
|
17
|
+
*
|
|
18
|
+
* @param template - The template string with {{variable}} placeholders
|
|
19
|
+
* @param context - A key-value context object for variable resolution
|
|
20
|
+
* @returns The rendered string with variables replaced
|
|
21
|
+
*/
|
|
22
|
+
declare function renderTemplate(template: string, context: Record<string, unknown>): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* RuleEvaluator: Evaluates recursive RuleGroup conditions against a context object.
|
|
26
|
+
*
|
|
27
|
+
* Supports:
|
|
28
|
+
* - Leaf rules with operators: equals, not_equals, contains, not_contains,
|
|
29
|
+
* greater_than, less_than, greater_than_or_equal, less_than_or_equal,
|
|
30
|
+
* in, not_in, exists, not_exists
|
|
31
|
+
* - Recursive AND / OR grouping via RuleGroup
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Evaluates a RuleGroup (which may contain nested RuleGroups) against a context object.
|
|
36
|
+
*
|
|
37
|
+
* @param ruleGroup - The rule group to evaluate (AND/OR with nested conditions)
|
|
38
|
+
* @param context - The context object to evaluate against
|
|
39
|
+
* @returns true if the rule group passes, false otherwise
|
|
40
|
+
*/
|
|
41
|
+
declare function evaluateRuleGroup(ruleGroup: RuleGroup, context: Record<string, unknown>): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* InstructionBuilder: Resolves an array of AgentInstructionBlock items
|
|
45
|
+
* into a final instruction string.
|
|
46
|
+
*
|
|
47
|
+
* For each block:
|
|
48
|
+
* - `{ type: 'text', content }` → render template with context
|
|
49
|
+
* - `{ type: 'prompt_block_ref', id }` → fetch from storage, evaluate rules, render template
|
|
50
|
+
* - `{ type: 'prompt_block', content, rules? }` → inline block, evaluate rules, render template
|
|
51
|
+
*
|
|
52
|
+
* Blocks that fail rule evaluation are excluded.
|
|
53
|
+
* Resolved text segments are joined with double newlines.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
interface InstructionBuilderDeps {
|
|
57
|
+
promptBlocksStorage: PromptBlocksStorage;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Resolves an array of instruction blocks into a final instruction string.
|
|
61
|
+
*
|
|
62
|
+
* @param blocks - Array of instruction block references (text, prompt_block_ref, or inline prompt_block)
|
|
63
|
+
* @param context - Runtime context for template interpolation and rule evaluation
|
|
64
|
+
* @param deps - Dependencies (storage)
|
|
65
|
+
* @returns The resolved instruction string
|
|
66
|
+
*/
|
|
67
|
+
declare function resolveInstructionBlocks(blocks: AgentInstructionBlock[], context: Record<string, unknown>, deps: InstructionBuilderDeps): Promise<string>;
|
|
68
|
+
|
|
69
|
+
declare class MastraEditor implements IMastraEditor {
|
|
70
|
+
private logger?;
|
|
71
|
+
private mastra?;
|
|
72
|
+
constructor(config?: MastraEditorConfig);
|
|
73
|
+
/**
|
|
74
|
+
* Register this editor with a Mastra instance.
|
|
75
|
+
* This gives the editor access to Mastra's storage, tools, workflows, etc.
|
|
76
|
+
*/
|
|
77
|
+
registerWithMastra(mastra: Mastra): void;
|
|
78
|
+
/**
|
|
79
|
+
* Get the agents storage domain from the Mastra storage.
|
|
80
|
+
*/
|
|
81
|
+
private getAgentsStore;
|
|
82
|
+
/**
|
|
83
|
+
* Get the prompt blocks storage domain from the Mastra storage.
|
|
84
|
+
*/
|
|
85
|
+
private getPromptBlocksStore;
|
|
86
|
+
/**
|
|
87
|
+
* Get a stored agent by its ID.
|
|
88
|
+
* Returns null when agent is not found. Returns an Agent instance by default,
|
|
89
|
+
* or raw StorageResolvedAgentType when raw option is true.
|
|
90
|
+
*/
|
|
91
|
+
getStoredAgentById(id: string, options?: {
|
|
92
|
+
returnRaw?: false;
|
|
93
|
+
versionId?: string;
|
|
94
|
+
versionNumber?: number;
|
|
95
|
+
}): Promise<Agent | null>;
|
|
96
|
+
getStoredAgentById(id: string, options: {
|
|
97
|
+
returnRaw: true;
|
|
98
|
+
versionId?: string;
|
|
99
|
+
versionNumber?: number;
|
|
100
|
+
}): Promise<StorageResolvedAgentType | null>;
|
|
101
|
+
/**
|
|
102
|
+
* List all stored agents with page-based pagination.
|
|
103
|
+
*/
|
|
104
|
+
listStoredAgents(options?: {
|
|
105
|
+
returnRaw?: false;
|
|
106
|
+
page?: number;
|
|
107
|
+
pageSize?: number;
|
|
108
|
+
}): Promise<{
|
|
109
|
+
agents: Agent[];
|
|
110
|
+
total: number;
|
|
111
|
+
page: number;
|
|
112
|
+
perPage: number;
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
listStoredAgents(options: {
|
|
116
|
+
returnRaw: true;
|
|
117
|
+
page?: number;
|
|
118
|
+
pageSize?: number;
|
|
119
|
+
}): Promise<{
|
|
120
|
+
agents: StorageResolvedAgentType[];
|
|
121
|
+
total: number;
|
|
122
|
+
page: number;
|
|
123
|
+
perPage: number;
|
|
124
|
+
hasMore: boolean;
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Create a new prompt block with an initial version.
|
|
128
|
+
*/
|
|
129
|
+
createPromptBlock(input: StorageCreatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
130
|
+
/**
|
|
131
|
+
* Get a prompt block by ID, resolved with its active version.
|
|
132
|
+
*/
|
|
133
|
+
getPromptBlock(id: string): Promise<StorageResolvedPromptBlockType | null>;
|
|
134
|
+
/**
|
|
135
|
+
* Update a prompt block, creating a new version with the changes.
|
|
136
|
+
*/
|
|
137
|
+
updatePromptBlock(input: StorageUpdatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
138
|
+
/**
|
|
139
|
+
* Delete a prompt block and all its versions.
|
|
140
|
+
*/
|
|
141
|
+
deletePromptBlock(id: string): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* List prompt blocks with optional pagination and filtering.
|
|
144
|
+
*/
|
|
145
|
+
listPromptBlocks(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksOutput>;
|
|
146
|
+
/**
|
|
147
|
+
* List prompt blocks resolved with their active version config.
|
|
148
|
+
*/
|
|
149
|
+
listPromptBlocksResolved(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksResolvedOutput>;
|
|
150
|
+
/**
|
|
151
|
+
* Preview the resolved instructions for a given set of instruction blocks and context.
|
|
152
|
+
* Useful for UI preview endpoints.
|
|
153
|
+
*/
|
|
154
|
+
previewInstructions(blocks: AgentInstructionBlock[], context: Record<string, unknown>): Promise<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Clear the stored agent cache for a specific agent ID, or all cached agents.
|
|
157
|
+
* When clearing a specific agent, also removes it from Mastra's agent registry
|
|
158
|
+
* so that fresh data is loaded on next access.
|
|
159
|
+
*/
|
|
160
|
+
clearStoredAgentCache(agentId?: string): void;
|
|
161
|
+
/**
|
|
162
|
+
* Create an Agent instance from stored configuration.
|
|
163
|
+
* Resolves all stored references (tools, workflows, agents, memory, scorers)
|
|
164
|
+
* and registers the agent with the Mastra instance.
|
|
165
|
+
*/
|
|
166
|
+
private createAgentFromStoredConfig;
|
|
167
|
+
/**
|
|
168
|
+
* Resolve stored instructions to a value compatible with the Agent constructor.
|
|
169
|
+
* - `string` → pass through as-is (backward compatible)
|
|
170
|
+
* - `AgentInstructionBlock[]` → wrap in a DynamicArgument function that resolves at runtime
|
|
171
|
+
* - `undefined` → return undefined
|
|
172
|
+
*/
|
|
173
|
+
private resolveStoredInstructions;
|
|
174
|
+
/**
|
|
175
|
+
* Resolve stored tool IDs to actual tool instances from Mastra's registry.
|
|
176
|
+
*/
|
|
177
|
+
private resolveStoredTools;
|
|
178
|
+
/**
|
|
179
|
+
* Resolve stored workflow IDs to actual workflow instances from Mastra's registry.
|
|
180
|
+
*/
|
|
181
|
+
private resolveStoredWorkflows;
|
|
182
|
+
/**
|
|
183
|
+
* Resolve stored agent IDs to actual agent instances from Mastra's registry.
|
|
184
|
+
*/
|
|
185
|
+
private resolveStoredAgents;
|
|
186
|
+
/**
|
|
187
|
+
* Resolve stored memory config to a MastraMemory instance.
|
|
188
|
+
* Uses @mastra/memory Memory class to instantiate from serialized config.
|
|
189
|
+
*/
|
|
190
|
+
private resolveStoredMemory;
|
|
191
|
+
/**
|
|
192
|
+
* Resolve stored scorer configs to MastraScorers instances.
|
|
193
|
+
*/
|
|
194
|
+
private resolveStoredScorers;
|
|
195
|
+
/**
|
|
196
|
+
* Look up a processor by key or ID from Mastra's registry.
|
|
197
|
+
*/
|
|
198
|
+
private findProcessor;
|
|
199
|
+
/**
|
|
200
|
+
* Resolve stored input processor keys to actual processor instances.
|
|
201
|
+
*/
|
|
202
|
+
private resolveStoredInputProcessors;
|
|
203
|
+
/**
|
|
204
|
+
* Resolve stored output processor keys to actual processor instances.
|
|
205
|
+
*/
|
|
206
|
+
private resolveStoredOutputProcessors;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { MastraEditor, evaluateRuleGroup, renderTemplate, resolveInstructionBlocks };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { IMastraEditor, MastraEditorConfig, Mastra, Agent, StorageResolvedAgentType } from '@mastra/core';
|
|
2
|
+
export { MastraEditorConfig } from '@mastra/core';
|
|
3
|
+
import { RuleGroup, AgentInstructionBlock, PromptBlocksStorage, StorageCreatePromptBlockInput, StorageResolvedPromptBlockType, StorageUpdatePromptBlockInput, StorageListPromptBlocksInput, StorageListPromptBlocksOutput, StorageListPromptBlocksResolvedOutput } from '@mastra/core/storage';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* TemplateEngine: Simple variable interpolation for prompt block content.
|
|
7
|
+
*
|
|
8
|
+
* Supports:
|
|
9
|
+
* {{variableName}} - Direct variable substitution
|
|
10
|
+
* {{nested.path.value}} - Dot-notation path resolution
|
|
11
|
+
* {{variable || 'default'}} - Fallback values (single or double quotes)
|
|
12
|
+
*
|
|
13
|
+
* Variables that cannot be resolved (and have no fallback) are left as-is.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Renders a template string by interpolating variables from the given context.
|
|
17
|
+
*
|
|
18
|
+
* @param template - The template string with {{variable}} placeholders
|
|
19
|
+
* @param context - A key-value context object for variable resolution
|
|
20
|
+
* @returns The rendered string with variables replaced
|
|
21
|
+
*/
|
|
22
|
+
declare function renderTemplate(template: string, context: Record<string, unknown>): string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* RuleEvaluator: Evaluates recursive RuleGroup conditions against a context object.
|
|
26
|
+
*
|
|
27
|
+
* Supports:
|
|
28
|
+
* - Leaf rules with operators: equals, not_equals, contains, not_contains,
|
|
29
|
+
* greater_than, less_than, greater_than_or_equal, less_than_or_equal,
|
|
30
|
+
* in, not_in, exists, not_exists
|
|
31
|
+
* - Recursive AND / OR grouping via RuleGroup
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Evaluates a RuleGroup (which may contain nested RuleGroups) against a context object.
|
|
36
|
+
*
|
|
37
|
+
* @param ruleGroup - The rule group to evaluate (AND/OR with nested conditions)
|
|
38
|
+
* @param context - The context object to evaluate against
|
|
39
|
+
* @returns true if the rule group passes, false otherwise
|
|
40
|
+
*/
|
|
41
|
+
declare function evaluateRuleGroup(ruleGroup: RuleGroup, context: Record<string, unknown>): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* InstructionBuilder: Resolves an array of AgentInstructionBlock items
|
|
45
|
+
* into a final instruction string.
|
|
46
|
+
*
|
|
47
|
+
* For each block:
|
|
48
|
+
* - `{ type: 'text', content }` → render template with context
|
|
49
|
+
* - `{ type: 'prompt_block_ref', id }` → fetch from storage, evaluate rules, render template
|
|
50
|
+
* - `{ type: 'prompt_block', content, rules? }` → inline block, evaluate rules, render template
|
|
51
|
+
*
|
|
52
|
+
* Blocks that fail rule evaluation are excluded.
|
|
53
|
+
* Resolved text segments are joined with double newlines.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
interface InstructionBuilderDeps {
|
|
57
|
+
promptBlocksStorage: PromptBlocksStorage;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Resolves an array of instruction blocks into a final instruction string.
|
|
61
|
+
*
|
|
62
|
+
* @param blocks - Array of instruction block references (text, prompt_block_ref, or inline prompt_block)
|
|
63
|
+
* @param context - Runtime context for template interpolation and rule evaluation
|
|
64
|
+
* @param deps - Dependencies (storage)
|
|
65
|
+
* @returns The resolved instruction string
|
|
66
|
+
*/
|
|
67
|
+
declare function resolveInstructionBlocks(blocks: AgentInstructionBlock[], context: Record<string, unknown>, deps: InstructionBuilderDeps): Promise<string>;
|
|
68
|
+
|
|
69
|
+
declare class MastraEditor implements IMastraEditor {
|
|
70
|
+
private logger?;
|
|
71
|
+
private mastra?;
|
|
72
|
+
constructor(config?: MastraEditorConfig);
|
|
73
|
+
/**
|
|
74
|
+
* Register this editor with a Mastra instance.
|
|
75
|
+
* This gives the editor access to Mastra's storage, tools, workflows, etc.
|
|
76
|
+
*/
|
|
77
|
+
registerWithMastra(mastra: Mastra): void;
|
|
78
|
+
/**
|
|
79
|
+
* Get the agents storage domain from the Mastra storage.
|
|
80
|
+
*/
|
|
81
|
+
private getAgentsStore;
|
|
82
|
+
/**
|
|
83
|
+
* Get the prompt blocks storage domain from the Mastra storage.
|
|
84
|
+
*/
|
|
85
|
+
private getPromptBlocksStore;
|
|
86
|
+
/**
|
|
87
|
+
* Get a stored agent by its ID.
|
|
88
|
+
* Returns null when agent is not found. Returns an Agent instance by default,
|
|
89
|
+
* or raw StorageResolvedAgentType when raw option is true.
|
|
90
|
+
*/
|
|
91
|
+
getStoredAgentById(id: string, options?: {
|
|
92
|
+
returnRaw?: false;
|
|
93
|
+
versionId?: string;
|
|
94
|
+
versionNumber?: number;
|
|
95
|
+
}): Promise<Agent | null>;
|
|
96
|
+
getStoredAgentById(id: string, options: {
|
|
97
|
+
returnRaw: true;
|
|
98
|
+
versionId?: string;
|
|
99
|
+
versionNumber?: number;
|
|
100
|
+
}): Promise<StorageResolvedAgentType | null>;
|
|
101
|
+
/**
|
|
102
|
+
* List all stored agents with page-based pagination.
|
|
103
|
+
*/
|
|
104
|
+
listStoredAgents(options?: {
|
|
105
|
+
returnRaw?: false;
|
|
106
|
+
page?: number;
|
|
107
|
+
pageSize?: number;
|
|
108
|
+
}): Promise<{
|
|
109
|
+
agents: Agent[];
|
|
110
|
+
total: number;
|
|
111
|
+
page: number;
|
|
112
|
+
perPage: number;
|
|
113
|
+
hasMore: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
listStoredAgents(options: {
|
|
116
|
+
returnRaw: true;
|
|
117
|
+
page?: number;
|
|
118
|
+
pageSize?: number;
|
|
119
|
+
}): Promise<{
|
|
120
|
+
agents: StorageResolvedAgentType[];
|
|
121
|
+
total: number;
|
|
122
|
+
page: number;
|
|
123
|
+
perPage: number;
|
|
124
|
+
hasMore: boolean;
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Create a new prompt block with an initial version.
|
|
128
|
+
*/
|
|
129
|
+
createPromptBlock(input: StorageCreatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
130
|
+
/**
|
|
131
|
+
* Get a prompt block by ID, resolved with its active version.
|
|
132
|
+
*/
|
|
133
|
+
getPromptBlock(id: string): Promise<StorageResolvedPromptBlockType | null>;
|
|
134
|
+
/**
|
|
135
|
+
* Update a prompt block, creating a new version with the changes.
|
|
136
|
+
*/
|
|
137
|
+
updatePromptBlock(input: StorageUpdatePromptBlockInput): Promise<StorageResolvedPromptBlockType>;
|
|
138
|
+
/**
|
|
139
|
+
* Delete a prompt block and all its versions.
|
|
140
|
+
*/
|
|
141
|
+
deletePromptBlock(id: string): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* List prompt blocks with optional pagination and filtering.
|
|
144
|
+
*/
|
|
145
|
+
listPromptBlocks(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksOutput>;
|
|
146
|
+
/**
|
|
147
|
+
* List prompt blocks resolved with their active version config.
|
|
148
|
+
*/
|
|
149
|
+
listPromptBlocksResolved(args?: StorageListPromptBlocksInput): Promise<StorageListPromptBlocksResolvedOutput>;
|
|
150
|
+
/**
|
|
151
|
+
* Preview the resolved instructions for a given set of instruction blocks and context.
|
|
152
|
+
* Useful for UI preview endpoints.
|
|
153
|
+
*/
|
|
154
|
+
previewInstructions(blocks: AgentInstructionBlock[], context: Record<string, unknown>): Promise<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Clear the stored agent cache for a specific agent ID, or all cached agents.
|
|
157
|
+
* When clearing a specific agent, also removes it from Mastra's agent registry
|
|
158
|
+
* so that fresh data is loaded on next access.
|
|
159
|
+
*/
|
|
160
|
+
clearStoredAgentCache(agentId?: string): void;
|
|
161
|
+
/**
|
|
162
|
+
* Create an Agent instance from stored configuration.
|
|
163
|
+
* Resolves all stored references (tools, workflows, agents, memory, scorers)
|
|
164
|
+
* and registers the agent with the Mastra instance.
|
|
165
|
+
*/
|
|
166
|
+
private createAgentFromStoredConfig;
|
|
167
|
+
/**
|
|
168
|
+
* Resolve stored instructions to a value compatible with the Agent constructor.
|
|
169
|
+
* - `string` → pass through as-is (backward compatible)
|
|
170
|
+
* - `AgentInstructionBlock[]` → wrap in a DynamicArgument function that resolves at runtime
|
|
171
|
+
* - `undefined` → return undefined
|
|
172
|
+
*/
|
|
173
|
+
private resolveStoredInstructions;
|
|
174
|
+
/**
|
|
175
|
+
* Resolve stored tool IDs to actual tool instances from Mastra's registry.
|
|
176
|
+
*/
|
|
177
|
+
private resolveStoredTools;
|
|
178
|
+
/**
|
|
179
|
+
* Resolve stored workflow IDs to actual workflow instances from Mastra's registry.
|
|
180
|
+
*/
|
|
181
|
+
private resolveStoredWorkflows;
|
|
182
|
+
/**
|
|
183
|
+
* Resolve stored agent IDs to actual agent instances from Mastra's registry.
|
|
184
|
+
*/
|
|
185
|
+
private resolveStoredAgents;
|
|
186
|
+
/**
|
|
187
|
+
* Resolve stored memory config to a MastraMemory instance.
|
|
188
|
+
* Uses @mastra/memory Memory class to instantiate from serialized config.
|
|
189
|
+
*/
|
|
190
|
+
private resolveStoredMemory;
|
|
191
|
+
/**
|
|
192
|
+
* Resolve stored scorer configs to MastraScorers instances.
|
|
193
|
+
*/
|
|
194
|
+
private resolveStoredScorers;
|
|
195
|
+
/**
|
|
196
|
+
* Look up a processor by key or ID from Mastra's registry.
|
|
197
|
+
*/
|
|
198
|
+
private findProcessor;
|
|
199
|
+
/**
|
|
200
|
+
* Resolve stored input processor keys to actual processor instances.
|
|
201
|
+
*/
|
|
202
|
+
private resolveStoredInputProcessors;
|
|
203
|
+
/**
|
|
204
|
+
* Resolve stored output processor keys to actual processor instances.
|
|
205
|
+
*/
|
|
206
|
+
private resolveStoredOutputProcessors;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { MastraEditor, evaluateRuleGroup, renderTemplate, resolveInstructionBlocks };
|