@memberjunction/ai-agent-manager 6.1.0-edge.7 → 6.1.1

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @memberjunction/ai-agent-manager@6.1.0-edge.7 build /home/runner/work/MJ/MJ/packages/AI/AgentManager/core
2
+ > @memberjunction/ai-agent-manager@6.1.1 build /home/runner/work/MJ/MJ/packages/AI/AgentManager/core
3
3
  > tsc && tsc-alias -f
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,228 @@
1
1
  # @memberjunction/ai-agent-manager
2
2
 
3
+ ## 6.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f219477]
8
+ - @memberjunction/core@6.1.1
9
+ - @memberjunction/ai-agents@6.1.1
10
+ - @memberjunction/ai-engine-base@6.1.1
11
+ - @memberjunction/ai-core-plus@6.1.1
12
+ - @memberjunction/aiengine@6.1.1
13
+ - @memberjunction/core-entities@6.1.1
14
+ - @memberjunction/templates@6.1.1
15
+ - @memberjunction/global@6.1.1
16
+
17
+ ## 6.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 9a29da4: Retire the Workflows app; make the Flow agent form first-class.
22
+
23
+ The Workflows app owned no storage — a workflow's WHAT is a Flow agent and there is no `Workflow` table — so it was a second list of rows the AI app already listed, fronted by a canvas that duplicated the Flow agent editor and had no Save path at all. Removed, and replaced by making the agent record answer what the app was implicitly about.
24
+
25
+ **`@memberjunction/ng-core-entity-forms`** — the AI Agents form is now tabbed: the agent type's designer (any type declaring a `UIFormSectionKey`), Details (the existing accordion set, unchanged), and Invocations. The designer pane is hidden with CSS rather than removed from the DOM, so unsaved canvas edits and canvas viewport state survive a tab switch. The default tab is the first that exists, so a Flow agent opens on its diagram.
26
+
27
+ **`@memberjunction/ng-agents`** — new `<mj-agent-invocations>`: a read-only index of every automated pathway that invokes an agent (Scheduled Jobs, User Routines, Entity Action bindings, Record Processes, sub-agent steps and relationships, `ExposeAsAction`). Answers "what runs this when I'm not looking?", which no surface could previously answer from the agent's side.
28
+
29
+ **`@memberjunction/ai-core-plus`** — `AgentSpec.Status` and `AgentStep.StepType` now derive from their entity fields instead of restating them. Both had drifted: `Status` declared `'Inactive'`, which `AIAgent.Status` has never accepted, so any caller setting it wrote a value the CHECK constraint rejects; `StepType` omitted `ForEach` and `While`, making loops executable but unauthorable. `AgentStep` gains `LoopBodyType` and `Configuration`, and the action mapping fields now admit the object form that callers already pass.
30
+
31
+ **`@memberjunction/ai-agent-manager`** — `AgentSpecSync` round-trips loop fields; new pure `ValidateLoopStep` catches a loop that saves cleanly and then iterates zero times; the Architect's status validator accepts `Disabled` rather than the invalid `Inactive`, and `WorkflowAgentWriter` maps Draft/Paused workflows to `Disabled`.
32
+
33
+ **`@memberjunction/ai-mcp-server`** — the `List_Agents` status filter no longer offers `Inactive`, which could never match a row.
34
+
35
+ **`@memberjunction/ng-dashboards`** — the Workflows dashboard, its module, its resource component and its `ng-task-graph-editor` dependency are removed. `mj-task-graph-editor` itself is unchanged and keeps its read-only consumers.
36
+
37
+ The `Workflow.Draft` / `Workflow.Save` / `Workflow.Validate` Remote Operations are deliberately kept — they are the agent- and MCP-facing contract and matter more now that creation is conversational.
38
+
39
+ A migration removes the Workflows Application row from existing databases (idempotent; a no-op on a clean install). The Architect prompt template change requires `mj sync push` to take effect.
40
+
41
+ - 394d276: Phase 6 (Track E) — **`WorkflowSpec`: one object binding WHAT runs to WHEN it runs.**
42
+
43
+ `TaskGraphSpec` answered _what_ a workflow does; the scheduling and entity-action substrates answered _when_ something fires. Nothing expressed both at once, so "a workflow" was not a thing anyone could hand over — it was a graph plus a separately-configured trigger that only a human knew were related.
44
+
45
+ **`graph` is `TaskGraphSpec` verbatim, not a copy.** That is why this composes rather than translates: a graph authored on the canvas, emitted by an agent, or promoted from a past run is _already_ this shape. A parallel graph type would have re-created the drift Phase 4 spent itself removing.
46
+
47
+ **No new storage, and that is the design.** There is no `Workflow` table. A workflow's WHAT is a Flow agent; its WHEN is a Scheduled Job. `WorkflowSpecSync` **reconciles** those, following the pattern `MJRecordProcessEntityServer.Save()` already proved — resolve the type, find the rows this definition owns, upsert or disable. Inventing a `Workflow` row would create a second definition of "a scheduled thing" and give the scheduler two masters that can disagree.
48
+
49
+ Rows are owned by a marker inside their own `Configuration`, not by name, so **renaming a workflow cannot orphan its schedule** and leave a second one firing beside the new row. A trigger the spec no longer names is **disabled, not deleted** — the row carries run counts, last-run and next-run, which are the only record it ever fired.
50
+
51
+ **Order is load-bearing.** The agent persists _before_ triggers reconcile, because a Scheduled Job needs its ID to point at. Reversed, you get a job referencing an agent that does not exist — a schedule that fires forever and does nothing, with no error anyone sees. Validation runs before either, so a rejected save leaves no orphan agent behind.
52
+
53
+ **Two operations, because drafting and committing are different acts.** `Workflow.Validate` writes nothing, so an agent can iterate a draft before anything reaches the scheduler — the draft-then-confirm shape dry-run and Plan Mode established. `Workflow.Save` commits. Both run the identical validator, so a workflow that validates cannot be rejected on save for a different reason. Together they close the "agents cannot schedule anything" hole: today `Create Scheduled Job` cannot even set `Configuration`.
54
+
55
+ **Agent persistence crosses a seam.** `AgentSpecSync` is the one place that writes an agent; importing it into the execution substrate would invert the dependency, so the host registers a writer instead. A host without one gets an honest failure rather than a half-saved workflow. The writer reuses Phase 4's `ConvertTaskGraphToAgentSpec` unchanged — "save a runtime graph as a workflow" and "persist a workflow's graph" turn out to be the same operation, which is the practical payoff of the convergence.
56
+
57
+ **A discovery worth recording:** `AgentScheduledJobDriver` has existed since the scheduling engine shipped, and `ScheduledJobType.DriverClass` is UNIQUE — so the `Agent` job type was already seeded. The substrate for scheduling an agent was there all along; only the authoring surface was missing. TG12 now pins that seed, because without it a scheduled workflow throws at the moment a user is least able to interpret it.
58
+
59
+ **Draft is the default status**, not Active. Every authoring surface — the canvas, a chat card, an agent's MCP call — produces something the author has not yet watched run against real data.
60
+
61
+ **Entity-change triggers reconcile too.** My first pass deferred these to Track D on the belief that entity-action invocation was not wired. AN-BC challenged that and was right: `HandleEntityActions` has fired entity actions from the save pipeline all along — validate, before/after save, before/after delete — and `Execute Agent` exists as the dispatch target, written for exactly this. Nothing was missing but the **binding row**. `WorkflowSpecSync` now creates the three rows that express "when an Invoice is updated, run Execute Agent with this agent": the `EntityAction`, the `EntityActionInvocation`, and an `EntityActionParam` carrying the agent. Idempotent by lookup rather than delete-and-recreate, because re-saving a workflow must not detach and re-attach a live trigger — a change landing in that window would be missed.
62
+
63
+ 40 new unit tests (29 validator, 11 sync) plus integration checks TG11 and TG12. IT71 runs 12/12.
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [634aa8c]
68
+ - Updated dependencies [834f8d7]
69
+ - Updated dependencies [a987913]
70
+ - Updated dependencies [e533ce5]
71
+ - Updated dependencies [b1b24d7]
72
+ - Updated dependencies [2c826f7]
73
+ - Updated dependencies [61b5612]
74
+ - Updated dependencies [ee15cf7]
75
+ - Updated dependencies [b7819d2]
76
+ - Updated dependencies [394d276]
77
+ - Updated dependencies [c42c0e8]
78
+ - Updated dependencies [79483bf]
79
+ - Updated dependencies [4586215]
80
+ - Updated dependencies [22ec804]
81
+ - Updated dependencies [197fdf8]
82
+ - Updated dependencies [f6a4341]
83
+ - Updated dependencies [67e4c9e]
84
+ - Updated dependencies [8206993]
85
+ - Updated dependencies [1a2ce13]
86
+ - Updated dependencies [0d3094c]
87
+ - Updated dependencies [255d506]
88
+ - Updated dependencies [0ec1980]
89
+ - Updated dependencies [199eb2b]
90
+ - Updated dependencies [1940a4d]
91
+ - Updated dependencies [e7f1f88]
92
+ - Updated dependencies [07cb22e]
93
+ - Updated dependencies [1d2ffd4]
94
+ - Updated dependencies [711c208]
95
+ - Updated dependencies [e2ad3c0]
96
+ - Updated dependencies [5ecfdb4]
97
+ - Updated dependencies [c581b4f]
98
+ - Updated dependencies [d79fe39]
99
+ - Updated dependencies [59def38]
100
+ - Updated dependencies [2412415]
101
+ - Updated dependencies [06ccfb2]
102
+ - Updated dependencies [9699d0e]
103
+ - Updated dependencies [394d276]
104
+ - Updated dependencies [43f9133]
105
+ - Updated dependencies [08829f5]
106
+ - Updated dependencies [815b9bc]
107
+ - Updated dependencies [2cc08e1]
108
+ - Updated dependencies [a5f92d2]
109
+ - Updated dependencies [2d14c62]
110
+ - Updated dependencies [394d276]
111
+ - Updated dependencies [c996a56]
112
+ - Updated dependencies [de6eb14]
113
+ - Updated dependencies [b9de989]
114
+ - Updated dependencies [38d4482]
115
+ - Updated dependencies [052b4c7]
116
+ - Updated dependencies [8ec1515]
117
+ - Updated dependencies [9a905e8]
118
+ - Updated dependencies [f5ec13b]
119
+ - Updated dependencies [50987c4]
120
+ - Updated dependencies [c996a56]
121
+ - Updated dependencies [d907a1b]
122
+ - Updated dependencies [7b4abe7]
123
+ - Updated dependencies [051e0ff]
124
+ - Updated dependencies [95fc3e6]
125
+ - Updated dependencies [8d880cc]
126
+ - Updated dependencies [1fa6f6b]
127
+ - Updated dependencies [cefc302]
128
+ - Updated dependencies [841e6ea]
129
+ - Updated dependencies [394d276]
130
+ - Updated dependencies [00a2483]
131
+ - Updated dependencies [8f199e2]
132
+ - Updated dependencies [6485ef0]
133
+ - Updated dependencies [b954812]
134
+ - Updated dependencies [080f4cd]
135
+ - Updated dependencies [bbb7fcc]
136
+ - Updated dependencies [b8130f3]
137
+ - Updated dependencies [d66a26a]
138
+ - Updated dependencies [c643ba3]
139
+ - Updated dependencies [e9e9873]
140
+ - Updated dependencies [1d88e00]
141
+ - Updated dependencies [647bd71]
142
+ - Updated dependencies [8288711]
143
+ - Updated dependencies [be0bdb2]
144
+ - Updated dependencies [a723521]
145
+ - Updated dependencies [5f33ca8]
146
+ - Updated dependencies [9b9e5a4]
147
+ - Updated dependencies [f544a93]
148
+ - Updated dependencies [48ff99f]
149
+ - Updated dependencies [076fa5d]
150
+ - Updated dependencies [9f73528]
151
+ - Updated dependencies [68b9cf0]
152
+ - Updated dependencies [27e4d09]
153
+ - Updated dependencies [d90a3ea]
154
+ - Updated dependencies [23c2521]
155
+ - Updated dependencies [2741d46]
156
+ - Updated dependencies [048c5ce]
157
+ - Updated dependencies [63bc733]
158
+ - Updated dependencies [92f2ac9]
159
+ - Updated dependencies [8ad04e8]
160
+ - Updated dependencies [7300953]
161
+ - Updated dependencies [7300953]
162
+ - Updated dependencies [98841bb]
163
+ - Updated dependencies [53c341c]
164
+ - Updated dependencies [9fc0e2d]
165
+ - Updated dependencies [b46330e]
166
+ - Updated dependencies [fccd0b2]
167
+ - Updated dependencies [84f276e]
168
+ - Updated dependencies [6ecfaa0]
169
+ - Updated dependencies [0db4f4f]
170
+ - Updated dependencies [53d256f]
171
+ - Updated dependencies [0677595]
172
+ - Updated dependencies [2be2960]
173
+ - Updated dependencies [9a29da4]
174
+ - Updated dependencies [cf2484c]
175
+ - Updated dependencies [7f3c60c]
176
+ - Updated dependencies [97aefcc]
177
+ - Updated dependencies [0967ba7]
178
+ - Updated dependencies [f5ec13b]
179
+ - Updated dependencies [7a630ba]
180
+ - Updated dependencies [de343b5]
181
+ - Updated dependencies [5fc861f]
182
+ - Updated dependencies [c11f8c6]
183
+ - Updated dependencies [1748491]
184
+ - Updated dependencies [1100077]
185
+ - Updated dependencies [4cdfdcf]
186
+ - Updated dependencies [35ace7c]
187
+ - Updated dependencies [0db6105]
188
+ - Updated dependencies [d7feeae]
189
+ - Updated dependencies [7fefca2]
190
+ - Updated dependencies [a1a8989]
191
+ - Updated dependencies [29c3dc8]
192
+ - Updated dependencies [b00a985]
193
+ - Updated dependencies [041865c]
194
+ - Updated dependencies [905820a]
195
+ - Updated dependencies [ca3657d]
196
+ - Updated dependencies [394d276]
197
+ - Updated dependencies [1bd9674]
198
+ - Updated dependencies [9f6a53b]
199
+ - Updated dependencies [6d7d3da]
200
+ - Updated dependencies [394d276]
201
+ - Updated dependencies [394d276]
202
+ - Updated dependencies [394d276]
203
+ - Updated dependencies [394d276]
204
+ - Updated dependencies [394d276]
205
+ - Updated dependencies [394d276]
206
+ - Updated dependencies [394d276]
207
+ - Updated dependencies [394d276]
208
+ - Updated dependencies [d8adda1]
209
+ - Updated dependencies [d078c54]
210
+ - Updated dependencies [7fcdc2d]
211
+ - Updated dependencies [15319b4]
212
+ - Updated dependencies [d0a2a55]
213
+ - Updated dependencies [4b1257f]
214
+ - Updated dependencies [ca4feb4]
215
+ - Updated dependencies [394d276]
216
+ - Updated dependencies [1c0d586]
217
+ - @memberjunction/ai-core-plus@6.1.0
218
+ - @memberjunction/ai-agents@6.1.0
219
+ - @memberjunction/global@6.1.0
220
+ - @memberjunction/core@6.1.0
221
+ - @memberjunction/core-entities@6.1.0
222
+ - @memberjunction/aiengine@6.1.0
223
+ - @memberjunction/ai-engine-base@6.1.0
224
+ - @memberjunction/templates@6.1.0
225
+
3
226
  ## 6.1.0-edge.7
4
227
 
5
228
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/ai-agent-manager",
3
3
  "type": "module",
4
- "version": "6.1.0-edge.7",
4
+ "version": "6.1.1",
5
5
  "description": "Core interfaces and types for the MemberJunction Agent Manager system",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  "author": "MemberJunction",
15
15
  "license": "BUSL-1.1",
16
16
  "dependencies": {
17
- "@memberjunction/ai-agents": "6.1.0-edge.7",
18
- "@memberjunction/ai-core-plus": "6.1.0-edge.7",
19
- "@memberjunction/ai-engine-base": "6.1.0-edge.7",
20
- "@memberjunction/aiengine": "6.1.0-edge.7",
21
- "@memberjunction/core": "6.1.0-edge.7",
22
- "@memberjunction/core-entities": "6.1.0-edge.7",
23
- "@memberjunction/global": "6.1.0-edge.7",
24
- "@memberjunction/templates": "6.1.0-edge.7"
17
+ "@memberjunction/ai-agents": "6.1.1",
18
+ "@memberjunction/ai-core-plus": "6.1.1",
19
+ "@memberjunction/ai-engine-base": "6.1.1",
20
+ "@memberjunction/aiengine": "6.1.1",
21
+ "@memberjunction/core": "6.1.1",
22
+ "@memberjunction/core-entities": "6.1.1",
23
+ "@memberjunction/global": "6.1.1",
24
+ "@memberjunction/templates": "6.1.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.10.11",