multi-agents-cli 1.0.84 → 1.0.86

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.
@@ -236,7 +236,7 @@ After each endpoint:
236
236
  | Task is ambiguous | Clarification request (max 2 rounds) |
237
237
  | Task bleeds into another domain | Scope redirect, await direction |
238
238
  | Dependency is missing | Dependency alert, await resolution |
239
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
239
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
240
240
  | Existing endpoint will change | Destructive action confirmation |
241
241
  | Task is too large | Breakdown proposal, execute one step at a time |
242
242
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -222,7 +222,7 @@ After each auth unit:
222
222
  | Task is ambiguous | Clarification request (max 2 rounds) |
223
223
  | Task bleeds into another domain | Scope redirect, await direction |
224
224
  | Dependency is missing | Dependency alert, await resolution |
225
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
225
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
226
226
  | Existing auth strategy will change | Destructive action confirmation |
227
227
  | Task is too large | Breakdown proposal, execute one step at a time |
228
228
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -232,7 +232,7 @@ Awaiting : explicit user confirmation to proceed
232
232
  | Task is ambiguous | Clarification request (max 2 rounds) |
233
233
  | Task bleeds into another domain | Scope redirect, await direction |
234
234
  | Dependency is missing | Dependency alert, await resolution |
235
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
235
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
236
236
  | Existing schema or migration changes | Destructive action confirmation |
237
237
  | Migration ready to run | Surface migration block, await confirmation |
238
238
  | Task is too large | Breakdown proposal, execute one step at a time |
@@ -229,7 +229,7 @@ After each event unit:
229
229
  | Task is ambiguous | Clarification request (max 2 rounds) |
230
230
  | Task bleeds into another domain | Scope redirect, await direction |
231
231
  | Dependency is missing | Dependency alert, await resolution |
232
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
232
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
233
233
  | Existing emitter or handler changes | Destructive action confirmation |
234
234
  | Task is too large | Breakdown proposal, execute one step at a time |
235
235
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -232,7 +232,7 @@ After each job:
232
232
  | Task is ambiguous | Clarification request (max 2 rounds) |
233
233
  | Task bleeds into another domain | Scope redirect, await direction |
234
234
  | Dependency is missing | Dependency alert, await resolution |
235
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
235
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
236
236
  | Existing job or schedule changes | Destructive action confirmation |
237
237
  | Task is too large | Breakdown proposal, execute one step at a time |
238
238
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -123,7 +123,7 @@ The following types are required and do not exist in CONTRACTS.md:
123
123
  - <TypeName>: <description and shape>
124
124
  - <TypeName>: <description and shape>
125
125
  Reason: <why these cross the boundary or represent a domain entity>
126
- Awaiting approval to add these to CONTRACTS.md before proceeding.
126
+ Adding these to CONTRACTS.md now and proceeding. No approval needed in agent sessions.
127
127
  ```
128
128
 
129
129
  ### 5. Destructive Action Check
@@ -268,7 +268,7 @@ After each service:
268
268
  | Task bleeds into another domain | Scope redirect, await direction |
269
269
  | Dependency is missing | Dependency alert, await resolution |
270
270
  | Type classification uncertain | Default to shared scope, emit CONTRACTS CHANGE PROPOSAL |
271
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
271
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
272
272
  | Existing service logic will change | Destructive action confirmation |
273
273
  | Task is too large | Breakdown proposal, execute one step at a time |
274
274
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -242,7 +242,7 @@ After each suite:
242
242
  | Implementation missing or incomplete | Flag, redirect to owning agent, stop |
243
243
  | Test requires implementation change | Scope redirect, await resolution |
244
244
  | Dependency is missing | Dependency alert, await resolution |
245
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
245
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
246
246
  | Existing tests will change | Destructive action confirmation |
247
247
  | Task is too large | Breakdown proposal, execute one step at a time |
248
248
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -241,7 +241,7 @@ After each fix:
241
241
  | Task is ambiguous | Clarification request (max 2 rounds) |
242
242
  | Task bleeds into another domain | Scope redirect, await direction |
243
243
  | Dependency is missing | Dependency alert, await resolution |
244
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
244
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
245
245
  | Existing ARIA patterns will change | Destructive action confirmation |
246
246
  | Task is too large | Breakdown proposal, execute one step at a time |
247
247
  | Audit findings ready | Surface audit report, await confirmation |
@@ -213,7 +213,7 @@ After each form:
213
213
  | Task is ambiguous | Clarification request (max 2 rounds) |
214
214
  | Task bleeds into another domain | Scope redirect, await direction |
215
215
  | Dependency is missing | Dependency alert, await resolution |
216
- | Submission type missing | CONTRACTS CHANGE PROPOSAL, await approval |
216
+ | Submission type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
217
217
  | Existing form will change | Destructive action confirmation |
218
218
  | Task is too large | Breakdown proposal, execute one step at a time |
219
219
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -121,7 +121,7 @@ The following types are required and do not exist in CONTRACTS.md:
121
121
  - <TypeName>: <description and shape>
122
122
  - <TypeName>: <description and shape>
123
123
  Reason: <why these cross the boundary or represent a domain entity>
124
- Awaiting approval to add these to CONTRACTS.md before proceeding.
124
+ Adding these to CONTRACTS.md now and proceeding. No approval needed in agent sessions.
125
125
  ```
126
126
 
127
127
  ### 5. Destructive Action Check
@@ -256,7 +256,7 @@ After each unit:
256
256
  | Task bleeds into another domain | Scope redirect, await direction |
257
257
  | Dependency is missing | Dependency alert, await resolution |
258
258
  | Type classification uncertain | Default to shared scope, emit CONTRACTS CHANGE PROPOSAL |
259
- | Shared type is missing | CONTRACTS CHANGE PROPOSAL, await approval |
259
+ | Shared type is missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
260
260
  | Existing logic will change | Destructive action confirmation |
261
261
  | Task is too large | Breakdown proposal, execute one step at a time |
262
262
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -214,7 +214,7 @@ After each route change:
214
214
  | Task is ambiguous | Clarification request (max 2 rounds) |
215
215
  | Task bleeds into another domain | Scope redirect, await direction |
216
216
  | Dependency is missing | Dependency alert, await resolution |
217
- | Shared type missing | CONTRACTS CHANGE PROPOSAL, await approval |
217
+ | Shared type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
218
218
  | Existing route will change | Destructive action confirmation |
219
219
  | Task is too large | Breakdown proposal, execute one step at a time |
220
220
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -219,7 +219,7 @@ After each suite:
219
219
  | Implementation missing or incomplete| Flag, redirect to owning agent, stop |
220
220
  | Test requires implementation change | Scope redirect, await resolution |
221
221
  | Dependency is missing | Dependency alert, await resolution |
222
- | Contract type missing | CONTRACTS CHANGE PROPOSAL, await approval |
222
+ | Contract type missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
223
223
  | Existing tests will change | Destructive action confirmation |
224
224
  | Task is too large | Breakdown proposal, execute one step at a time |
225
225
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -206,7 +206,7 @@ The agent stops and surfaces output in these situations:
206
206
  | Task is ambiguous | Clarification request (max 2 rounds) |
207
207
  | Task bleeds into another domain | Scope redirect, await direction |
208
208
  | Dependency is missing | Dependency alert, await resolution |
209
- | Shared type is missing | CONTRACTS CHANGE PROPOSAL, await approval |
209
+ | Shared type is missing | CONTRACTS CHANGE PROPOSAL, write and proceed |
210
210
  | Existing component will change | Destructive action confirmation |
211
211
  | Task is too large | Breakdown proposal, execute one step at a time |
212
212
  | Best practice deviation found | Surface once, await confirmation, move on |
@@ -54,6 +54,12 @@ const ENTRY_CWD = process.cwd();
54
54
  // ── Constants ─────────────────────────────────────────────────────────────────
55
55
  const INIT_AGENTS = { client: ['UI'], backend: ['INIT'] };
56
56
 
57
+ const AGENTS = {
58
+ client: ['UI', 'LOGIC', 'FORMS', 'ROUTING', 'TESTING', 'ACCESSIBILITY'],
59
+ backend: ['INIT', 'API', 'LOGIC', 'AUTH', 'DB', 'TESTING', 'EVENTS', 'JOBS'],
60
+ shared: ['SECURITY'],
61
+ };
62
+
57
63
  const DEPENDENCIES = {
58
64
  client: { UI: ['LOGIC', 'FORMS', 'ROUTING', 'TESTING', 'ACCESSIBILITY'] },
59
65
  backend: { INIT: ['API', 'LOGIC', 'AUTH', 'DB', 'EVENTS', 'JOBS', 'TESTING'] },
@@ -98,6 +104,14 @@ const buildCandidates = () => {
98
104
  candidates.push({ scope: m[1], agent: m[2], branch: wt.branch, worktreePath: wt.path, status: 'UNTRACKED' });
99
105
  }
100
106
 
107
+ // Append available (not yet started) agents
108
+ for (const scope of ['client', 'backend', 'shared']) {
109
+ for (const agent of (AGENTS[scope] || [])) {
110
+ if (candidates.find(c => c.scope === scope && c.agent === agent)) continue;
111
+ candidates.push({ scope, agent, branch: null, worktreePath: null, status: 'AVAILABLE' });
112
+ }
113
+ }
114
+
101
115
  return candidates;
102
116
  };
103
117
 
@@ -147,9 +161,9 @@ const main = async () => {
147
161
 
148
162
  const candidates = buildCandidates();
149
163
 
150
- if (candidates.length === 0) {
151
- console.log(yellow('\n No active agents found. Nothing to restart.\n'));
152
- console.log(dim(` Run ${cyan('npm run agent')} to start a new task.\n`));
164
+ const activeCandidates = candidates.filter(c => c.status !== 'AVAILABLE');
165
+ if (activeCandidates.length === 0 && candidates.length === 0) {
166
+ console.log(yellow('\n No agents found.\n'));
153
167
  rl.close(); process.exit(0);
154
168
  }
155
169
 
@@ -161,7 +175,9 @@ const main = async () => {
161
175
  console.log(`\n${bold('* Select agent to restart:')}\n`);
162
176
  const idx = await arrowSelect('Select agent', [
163
177
  ...candidates.map(c => ({
164
- label: `${bold(c.agent)} ${dim(`(${c.scope})`)} ${dim(c.branch)} ${c.status === 'UNTRACKED' ? yellow('untracked') : dim(c.status)}`,
178
+ label: c.status === 'AVAILABLE'
179
+ ? `${dim(c.agent)} ${dim(`(${c.scope})`)} ${dim('not started')}`
180
+ : `${bold(c.agent)} ${dim(`(${c.scope})`)} ${dim(c.branch)} ${c.status === 'UNTRACKED' ? yellow('untracked') : dim(c.status)}`,
165
181
  })),
166
182
  { label: dim('← cancel') },
167
183
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-agents-cli",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "description": "Multi-agent workflow orchestration for Claude Code — isolated git worktrees, structured state tracking, autonomous task chaining",
5
5
  "keywords": [
6
6
  "claude-code",