multi-agents-cli 1.0.88 → 1.0.90
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/core/workflow/guards.js +3 -3
- package/core/workflow/restart.js +1 -1
- package/init.js +8 -0
- package/package.json +3 -2
package/core/workflow/guards.js
CHANGED
|
@@ -127,9 +127,9 @@ const clearTrackingSlot = (tracking, scope, agent, ROOT) => {
|
|
|
127
127
|
|
|
128
128
|
// Mark as COMPLETED rather than wiping — preserves history for display in restart/agent selectors
|
|
129
129
|
tracking[scope][agent] = {
|
|
130
|
-
branch: null,
|
|
131
|
-
timestamp: null,
|
|
132
|
-
launchedAt: null,
|
|
130
|
+
branch: tracking[scope][agent].branch || null,
|
|
131
|
+
timestamp: tracking[scope][agent].timestamp || null,
|
|
132
|
+
launchedAt: tracking[scope][agent].launchedAt || null,
|
|
133
133
|
status: 'COMPLETED',
|
|
134
134
|
missingCount: 0,
|
|
135
135
|
worktreePath: null,
|
package/core/workflow/restart.js
CHANGED
|
@@ -87,7 +87,7 @@ const buildCandidates = () => {
|
|
|
87
87
|
|
|
88
88
|
for (const scope of ['client', 'backend', 'shared']) {
|
|
89
89
|
for (const [agent, data] of Object.entries(tracking[scope] || {})) {
|
|
90
|
-
if (!data?.branch) continue;
|
|
90
|
+
if (!data?.branch && data?.status !== 'COMPLETED') continue;
|
|
91
91
|
const wt = worktrees.find(w => w.branch === data.branch);
|
|
92
92
|
candidates.push({
|
|
93
93
|
scope, agent,
|
package/init.js
CHANGED
|
@@ -89,6 +89,14 @@ if (isGlobalCLI) {
|
|
|
89
89
|
|
|
90
90
|
if (fs.existsSync(targetDir)) {
|
|
91
91
|
process.chdir(targetDir);
|
|
92
|
+
// Plant temp package.json if missing — allows npm run init to work as re-entry point
|
|
93
|
+
if (!fs.existsSync(path.join(targetDir, 'package.json'))) {
|
|
94
|
+
fs.writeFileSync(
|
|
95
|
+
path.join(targetDir, 'package.json'),
|
|
96
|
+
JSON.stringify({ name: path.basename(targetDir), version: '1.0.0', scripts: { init: 'multi-agents init' } }, null, 2),
|
|
97
|
+
'utf8'
|
|
98
|
+
);
|
|
99
|
+
}
|
|
92
100
|
} else {
|
|
93
101
|
fs.mkdirSync(targetDir, { recursive: true });
|
|
94
102
|
process.chdir(targetDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "multi-agents-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
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",
|
|
@@ -33,5 +33,6 @@
|
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git+https://github.com/JDev-il/multi-agents.git"
|
|
35
35
|
},
|
|
36
|
-
"homepage": "https://github.com/JDev-il/multi-agents#readme"
|
|
36
|
+
"homepage": "https://github.com/JDev-il/multi-agents#readme",
|
|
37
|
+
"scripts": {}
|
|
37
38
|
}
|