swarmdo 1.58.24 → 1.58.27
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.
|
@@ -642,7 +642,11 @@ function renderRateLimitSlot() {
|
|
|
642
642
|
// misses, the displayed version is meaningful (matches what the user
|
|
643
643
|
// installed), not a stale hard-coded string.
|
|
644
644
|
function getPkgVersion() {
|
|
645
|
-
|
|
645
|
+
// #1951: an explicit SWARMDO_VERSION override (set by the CLI wrapper) wins over
|
|
646
|
+
// every probe below, so the header can't silently revert to a stale baked default
|
|
647
|
+
// when a global/npx install layout hides package.json.
|
|
648
|
+
if (process.env.SWARMDO_VERSION) return process.env.SWARMDO_VERSION;
|
|
649
|
+
let ver = '1.58.24';
|
|
646
650
|
try {
|
|
647
651
|
const home = os.homedir();
|
|
648
652
|
const pkgPaths = [
|
|
@@ -862,6 +866,10 @@ function generateJSON() {
|
|
|
862
866
|
return Object.assign({}, d, {
|
|
863
867
|
user: Object.assign({ name: git.name, gitBranch: git.gitBranch }, d.user || {}),
|
|
864
868
|
git: { modified: git.modified, untracked: git.untracked, staged: git.staged, ahead: git.ahead, behind: git.behind },
|
|
869
|
+
// #2195: surface the baked maxAgents denominator in the swarm object so the
|
|
870
|
+
// delegation contract (and its smoke) always sees swarm.maxAgents, even though
|
|
871
|
+
// 'hooks statusline --json' reports only the live activeSwarms/activeAgents.
|
|
872
|
+
swarm: Object.assign({ maxAgents: CONFIG.maxAgents }, d.swarm || {}),
|
|
865
873
|
lastUpdated: new Date().toISOString(),
|
|
866
874
|
});
|
|
867
875
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swarmdo",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.27",
|
|
4
4
|
"description": "Swarmdo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -642,7 +642,11 @@ function renderRateLimitSlot() {
|
|
|
642
642
|
// misses, the displayed version is meaningful (matches what the user
|
|
643
643
|
// installed), not a stale hard-coded string.
|
|
644
644
|
function getPkgVersion() {
|
|
645
|
-
|
|
645
|
+
// #1951: an explicit SWARMDO_VERSION override (set by the CLI wrapper) wins over
|
|
646
|
+
// every probe below, so the header can't silently revert to a stale baked default
|
|
647
|
+
// when a global/npx install layout hides package.json.
|
|
648
|
+
if (process.env.SWARMDO_VERSION) return process.env.SWARMDO_VERSION;
|
|
649
|
+
let ver = '1.58.24';
|
|
646
650
|
try {
|
|
647
651
|
const home = os.homedir();
|
|
648
652
|
const pkgPaths = [
|
|
@@ -862,6 +866,10 @@ function generateJSON() {
|
|
|
862
866
|
return Object.assign({}, d, {
|
|
863
867
|
user: Object.assign({ name: git.name, gitBranch: git.gitBranch }, d.user || {}),
|
|
864
868
|
git: { modified: git.modified, untracked: git.untracked, staged: git.staged, ahead: git.ahead, behind: git.behind },
|
|
869
|
+
// #2195: surface the baked maxAgents denominator in the swarm object so the
|
|
870
|
+
// delegation contract (and its smoke) always sees swarm.maxAgents, even though
|
|
871
|
+
// 'hooks statusline --json' reports only the live activeSwarms/activeAgents.
|
|
872
|
+
swarm: Object.assign({ maxAgents: CONFIG.maxAgents }, d.swarm || {}),
|
|
865
873
|
lastUpdated: new Date().toISOString(),
|
|
866
874
|
});
|
|
867
875
|
}
|
|
@@ -703,6 +703,10 @@ function renderRateLimitSlot() {
|
|
|
703
703
|
// misses, the displayed version is meaningful (matches what the user
|
|
704
704
|
// installed), not a stale hard-coded string.
|
|
705
705
|
function getPkgVersion() {
|
|
706
|
+
// #1951: an explicit SWARMDO_VERSION override (set by the CLI wrapper) wins over
|
|
707
|
+
// every probe below, so the header can't silently revert to a stale baked default
|
|
708
|
+
// when a global/npx install layout hides package.json.
|
|
709
|
+
if (process.env.SWARMDO_VERSION) return process.env.SWARMDO_VERSION;
|
|
706
710
|
let ver = '${BAKED_CLI_VERSION}';
|
|
707
711
|
try {
|
|
708
712
|
const home = os.homedir();
|
|
@@ -923,6 +927,10 @@ function generateJSON() {
|
|
|
923
927
|
return Object.assign({}, d, {
|
|
924
928
|
user: Object.assign({ name: git.name, gitBranch: git.gitBranch }, d.user || {}),
|
|
925
929
|
git: { modified: git.modified, untracked: git.untracked, staged: git.staged, ahead: git.ahead, behind: git.behind },
|
|
930
|
+
// #2195: surface the baked maxAgents denominator in the swarm object so the
|
|
931
|
+
// delegation contract (and its smoke) always sees swarm.maxAgents, even though
|
|
932
|
+
// 'hooks statusline --json' reports only the live activeSwarms/activeAgents.
|
|
933
|
+
swarm: Object.assign({ maxAgents: CONFIG.maxAgents }, d.swarm || {}),
|
|
926
934
|
lastUpdated: new Date().toISOString(),
|
|
927
935
|
});
|
|
928
936
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmdo/cli",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Swarmdo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|