MCPcopy Create free account
hub / github.com/SethGammon/Citadel / status

Function status

scripts/coordination.js:93–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93function status() {
94 const instances = getCoordinationStatus().instances;
95 const claims = getClaimStatus().claims;
96
97 console.log('\n=== Active Instances ===');
98 if (instances.length === 0) {
99 console.log(' (none)');
100 } else {
101 for (const instance of instances) {
102 console.log(` ${instance.instanceId} | status: ${instance.status} | since: ${instance.startedAt}`);
103 }
104 }
105
106 console.log('\n=== Active Claims ===');
107 if (claims.length === 0) {
108 console.log(' (none)');
109 } else {
110 for (const claimEntry of claims) {
111 console.log(` ${claimEntry.instanceId} | scope: ${(claimEntry.scope || []).join(', ')} | type: ${claimEntry.type}`);
112 }
113 }
114 console.log('');
115}
116
117function parseArgs() {
118 const args = {};

Callers 1

coordination.jsFile · 0.70

Calls 2

getCoordinationStatusFunction · 0.85
getClaimStatusFunction · 0.85

Tested by

no test coverage detected