@memberjunction/ai-agent-manager 2.108.0 → 2.110.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +35 -0
- package/dist/agent-spec-sync.d.ts +117 -7
- package/dist/agent-spec-sync.d.ts.map +1 -1
- package/dist/agent-spec-sync.js +599 -50
- package/dist/agent-spec-sync.js.map +1 -1
- package/dist/agents/architect-agent.d.ts +52 -0
- package/dist/agents/architect-agent.d.ts.map +1 -0
- package/dist/agents/architect-agent.js +384 -0
- package/dist/agents/architect-agent.js.map +1 -0
- package/dist/agents/builder-agent.d.ts +31 -0
- package/dist/agents/builder-agent.d.ts.map +1 -0
- package/dist/agents/builder-agent.js +131 -0
- package/dist/agents/builder-agent.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/old/agent-definition.interface.d.ts +64 -0
- package/dist/old/agent-definition.interface.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/agent-spec-sync.ts +784 -56
- package/src/agents/architect-agent.ts +447 -0
- package/src/agents/builder-agent.ts +151 -0
- package/src/index.ts +21 -2
- package/src/old/agent-definition.interface.ts +59 -0
- package/tsconfig.json +3 -1
|
@@ -182,4 +182,63 @@ export interface AgentManagerPayload {
|
|
|
182
182
|
issues: string[];
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Agent Loader section - for modification workflow
|
|
188
|
+
* Contains the loaded agent when modifying an existing agent
|
|
189
|
+
*/
|
|
190
|
+
loadedAgent?: {
|
|
191
|
+
/** Full AgentSpec loaded from database with all nested structure */
|
|
192
|
+
agentSpec: any; // AgentSpec type from CorePlus
|
|
193
|
+
/** Copy of original spec for comparison during modification */
|
|
194
|
+
originalSpec: any; // AgentSpec type from CorePlus
|
|
195
|
+
/** When the agent was last modified in database */
|
|
196
|
+
lastModified: string;
|
|
197
|
+
/** Agent's current status */
|
|
198
|
+
status: string;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Modification Planner section - for modification workflow
|
|
203
|
+
* Contains the detailed plan for modifying an existing agent
|
|
204
|
+
*/
|
|
205
|
+
modificationPlan?: {
|
|
206
|
+
/** High-level summary of all changes to be made */
|
|
207
|
+
changeSummary: string;
|
|
208
|
+
/** Fields that will be updated (field name -> old/new values) */
|
|
209
|
+
fieldsToUpdate?: Record<string, { old: any; new: any }>;
|
|
210
|
+
/** Actions to add (with action IDs from Find Best Action) */
|
|
211
|
+
actionsToAdd?: Array<{ id: string; name: string; reason: string }>;
|
|
212
|
+
/** Action IDs to remove from the agent */
|
|
213
|
+
actionsToRemove?: string[];
|
|
214
|
+
/** Sub-agents modifications (add/remove/update) */
|
|
215
|
+
subAgentsToModify?: Array<{
|
|
216
|
+
operation: 'add' | 'remove' | 'update';
|
|
217
|
+
subAgentName?: string;
|
|
218
|
+
subAgentId?: string;
|
|
219
|
+
details?: any;
|
|
220
|
+
}>;
|
|
221
|
+
/** Prompts to update or add */
|
|
222
|
+
promptsToUpdate?: Array<{
|
|
223
|
+
operation: 'add' | 'update' | 'remove';
|
|
224
|
+
agentName: string;
|
|
225
|
+
promptText?: string;
|
|
226
|
+
promptRole?: string;
|
|
227
|
+
promptPosition?: string;
|
|
228
|
+
}>;
|
|
229
|
+
/** Steps modifications for Flow agents only */
|
|
230
|
+
stepsToModify?: Array<{
|
|
231
|
+
operation: 'add' | 'remove' | 'update';
|
|
232
|
+
stepName?: string;
|
|
233
|
+
stepType?: string;
|
|
234
|
+
details?: any;
|
|
235
|
+
}>;
|
|
236
|
+
/** Paths modifications for Flow agents only */
|
|
237
|
+
pathsToModify?: Array<{
|
|
238
|
+
operation: 'add' | 'remove' | 'update';
|
|
239
|
+
from?: string;
|
|
240
|
+
to?: string;
|
|
241
|
+
details?: any;
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
185
244
|
}
|
package/tsconfig.json
CHANGED