@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.
@@ -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
@@ -12,7 +12,9 @@
12
12
  "declaration": true,
13
13
  "declarationMap": true,
14
14
  "sourceMap": true,
15
- "resolveJsonModule": true
15
+ "resolveJsonModule": true,
16
+ "experimentalDecorators": true,
17
+ "emitDecoratorMetadata": true
16
18
  },
17
19
  "include": [
18
20
  "src/**/*"