@aragon-agent/cli 0.6.20 → 0.6.22
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/README.md +32 -12
- package/dist/agent/controller.js +13 -0
- package/dist/commands/builtins.js +2 -1
- package/dist/config/cli-commands.d.ts +1 -1
- package/dist/config/cli-commands.js +3 -0
- package/dist/config/schema.d.ts +28 -12
- package/dist/config/schema.js +4 -0
- package/dist/team/limits.d.ts +73 -13
- package/dist/team/limits.js +82 -15
- package/dist/team/normalize.js +7 -2
- package/dist/team/overseer.d.ts +154 -16
- package/dist/team/overseer.js +342 -46
- package/dist/team/report.d.ts +9 -0
- package/dist/team/report.js +32 -4
- package/dist/team/runtime.d.ts +51 -9
- package/dist/team/runtime.js +478 -71
- package/dist/team/task-tool.d.ts +7 -0
- package/dist/team/task-tool.js +2 -0
- package/dist/team/types.d.ts +43 -2
- package/dist/ui/App.js +80 -2
- package/dist/ui/Composer.d.ts +14 -1
- package/dist/ui/Composer.js +6 -3
- package/dist/ui/PromptInput.d.ts +10 -1
- package/dist/ui/PromptInput.js +11 -1
- package/dist/ui/TeamPanel.d.ts +22 -0
- package/dist/ui/TeamPanel.js +71 -2
- package/dist/ui/editor-reducer.js +10 -5
- package/dist/ui/interaction-copy.d.ts +1 -0
- package/dist/ui/interaction-copy.js +1 -0
- package/dist/ui/interaction-hints.d.ts +2 -0
- package/dist/ui/interaction-hints.js +1 -1
- package/dist/ui/layout/status-layout.js +1 -0
- package/dist/ui/layout/team-panel.js +4 -1
- package/dist/ui/overlays/HelpOverlay.js +4 -1
- package/dist/ui/overlays/ModelProfilePicker.js +12 -1
- package/dist/ui/status-feedback.d.ts +3 -1
- package/dist/ui/status-feedback.js +3 -1
- package/package.json +2 -2
package/dist/team/runtime.d.ts
CHANGED
|
@@ -113,15 +113,30 @@ export declare class TeamRuntime {
|
|
|
113
113
|
*/
|
|
114
114
|
private readonly pendingBackoffs;
|
|
115
115
|
/**
|
|
116
|
-
* The dispatch supervisor, LIVE for the current dispatch only
|
|
117
|
-
* Null when the provider is
|
|
118
|
-
*
|
|
116
|
+
* The dispatch supervisor, LIVE for the current dispatch only
|
|
117
|
+
* (team-overseer / subagent-overseer-v2). Null when the provider is not
|
|
118
|
+
* wired or the policy is off, and reset to null at every dispatch end so
|
|
119
|
+
* nothing supervision-shaped leaks across dispatches.
|
|
120
|
+
*
|
|
121
|
+
* THE GATE IS "PROVIDER PRESENT AND POLICY ON" (R-P0-2), deliberately NOT
|
|
122
|
+
* the provider's live `active()`: a dispatch that STARTS without a fast
|
|
123
|
+
* tier must still get a MonitorLoop, because the promise this feature
|
|
124
|
+
* makes is "timeout is never a death sentence" - an unavailable tier
|
|
125
|
+
* degrades the tick to an announced unassisted wait rather than falling
|
|
126
|
+
* back to the legacy hard abort. `active()` is re-read every tick.
|
|
119
127
|
*/
|
|
120
128
|
private overseer;
|
|
121
|
-
/** The
|
|
129
|
+
/** The per-child silence windows, same lifetime as `overseer`. */
|
|
122
130
|
private supervision;
|
|
131
|
+
/** The cadence ladder (subagent-overseer-v2 D-2), same lifetime. */
|
|
132
|
+
private monitor;
|
|
123
133
|
/** Applied interventions for the in-flight dispatch's outcome. */
|
|
124
134
|
private interventions;
|
|
135
|
+
/** Labels already told the supervisor went quiet on them (D-5, once). */
|
|
136
|
+
private readonly quietNotified;
|
|
137
|
+
/** Edge-latched "a tick ran unassisted" (D-10), per dispatch. */
|
|
138
|
+
private overseerDegraded;
|
|
139
|
+
private overseerDegradedTicks;
|
|
125
140
|
constructor(deps: TeamRuntimeDeps);
|
|
126
141
|
subscribe(listener: TeamEventListener): () => void;
|
|
127
142
|
/**
|
|
@@ -175,17 +190,44 @@ export declare class TeamRuntime {
|
|
|
175
190
|
*/
|
|
176
191
|
private isBlocked;
|
|
177
192
|
/**
|
|
178
|
-
* One trigger handled: look, then apply. Fired from a supervision
|
|
179
|
-
* therefore async-and-forgotten; nothing here may throw.
|
|
193
|
+
* One SILENCE trigger handled: look, then apply. Fired from a supervision
|
|
194
|
+
* timer and therefore async-and-forgotten; nothing here may throw.
|
|
180
195
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
196
|
+
* A NULL DECISION HAS THREE DISTINCT QUIETS: the look budget is spent ->
|
|
197
|
+
* say so ONCE and stop supervising this child (D-5); an inspection of this
|
|
198
|
+
* child is already in flight -> re-arm and let it settle (R-P1-4); the
|
|
199
|
+
* tier is gone -> clear quietly, because the cadence tick - not the
|
|
200
|
+
* silence path - owns the degraded announcements (D-4).
|
|
184
201
|
*/
|
|
185
202
|
private inspectAndApply;
|
|
186
203
|
private applyDecision;
|
|
187
204
|
/** Record one applied decision on the outcome, the run and the event stream. */
|
|
188
205
|
private recordIntervention;
|
|
206
|
+
/** R-P1-5: a label ticks only once STARTED and not yet settled. */
|
|
207
|
+
private isMonitorLive;
|
|
208
|
+
/**
|
|
209
|
+
* One ASSISTED cadence tick: build the batch over the due labels, apply
|
|
210
|
+
* every returned decision through the same `applyDecision` the silence
|
|
211
|
+
* path uses (D-3's single application path), and hand the map back so the
|
|
212
|
+
* loop can move the ladders. Labels the batch skipped (single-flight,
|
|
213
|
+
* R-P1-4) are absent from the map.
|
|
214
|
+
*/
|
|
215
|
+
private monitorInspectBatch;
|
|
216
|
+
/**
|
|
217
|
+
* One DEGRADED cadence tick (D-4 / D-10): the fast tier is missing right
|
|
218
|
+
* now. The children wait unassisted - announced per child through the same
|
|
219
|
+
* event shape, never killed - and the fact is edge-latched here, NOT in
|
|
220
|
+
* the interventions ledger.
|
|
221
|
+
*/
|
|
222
|
+
private noteDegradedTick;
|
|
223
|
+
/** The supervisor goes quiet on one child, ONCE (D-5 / D-10). */
|
|
224
|
+
private noteQuiet;
|
|
225
|
+
/**
|
|
226
|
+
* The dispatch-wide fool-proof total is spent (R-P1-6): stop the whole
|
|
227
|
+
* loop and emit ONE aggregate notice under a pseudo-label that is never a
|
|
228
|
+
* child slug.
|
|
229
|
+
*/
|
|
230
|
+
private noteDispatchExhausted;
|
|
189
231
|
/**
|
|
190
232
|
* The final phase of an attempt, in a FIXED ORDER: aborted, then timed out,
|
|
191
233
|
* then error, then no-summary, then done.
|