moflo 4.12.9 → 4.12.11
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/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +27 -4
- package/.claude/guidance/shipped/moflo-yaml-reference.md +1 -0
- package/.claude/helpers/gate.cjs +116 -14
- package/.claude/helpers/simplify-classify.cjs +194 -12
- package/.claude/helpers/statusline.cjs +56 -7
- package/bin/gate.cjs +116 -14
- package/bin/lib/session-continuity.mjs +109 -0
- package/bin/session-continuity.mjs +1 -22
- package/bin/simplify-classify.cjs +194 -12
- package/dist/src/cli/commands/hooks.js +8 -2
- package/dist/src/cli/config/moflo-config.js +3 -0
- package/dist/src/cli/hooks/statusline/index.js +15 -9
- package/dist/src/cli/init/embedded-helpers.js +1 -1
- package/dist/src/cli/init/moflo-yaml-template.js +1 -0
- package/dist/src/cli/version.js +1 -1
- package/package.json +2 -2
|
@@ -133,13 +133,19 @@ export class StatuslineGenerator {
|
|
|
133
133
|
// Memory color
|
|
134
134
|
const memoryColor = data.system.memoryMB > 0 ? c.brightCyan : c.dim;
|
|
135
135
|
const memoryDisplay = data.system.memoryMB > 0 ? `${data.system.memoryMB}MB` : '--';
|
|
136
|
-
// Context color (lower is better)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
// Context color (lower is better). An unknown value renders dim `--`, never a
|
|
137
|
+
// number: a threshold-coloured 0% reads as a real measurement (#1453).
|
|
138
|
+
const contextPct = data.system.contextPct;
|
|
139
|
+
let contextColor = c.dim;
|
|
140
|
+
// Unit lives in the string (as with memoryDisplay above) so the unknown case
|
|
141
|
+
// reads `--` rather than `--%`.
|
|
142
|
+
let contextDisplay = ' --';
|
|
143
|
+
if (contextPct !== null) {
|
|
144
|
+
contextColor = contextPct >= 75 ? c.brightRed
|
|
145
|
+
: contextPct >= 50 ? c.brightYellow
|
|
146
|
+
: c.brightGreen;
|
|
147
|
+
contextDisplay = `${String(contextPct).padStart(3)}%`;
|
|
148
|
+
}
|
|
143
149
|
// Intelligence color
|
|
144
150
|
let intelColor = c.dim;
|
|
145
151
|
if (data.system.intelligencePct >= 75)
|
|
@@ -155,7 +161,7 @@ export class StatuslineGenerator {
|
|
|
155
161
|
`${subAgentColor}👥 ${data.system.subAgents}${c.reset} ` +
|
|
156
162
|
`${securityIcon} ${securityColor}CVE ${data.security.cvesFixed}${c.reset}/${c.brightWhite}${data.security.totalCves}${c.reset} ` +
|
|
157
163
|
`${memoryColor}💾 ${memoryDisplay}${c.reset} ` +
|
|
158
|
-
`${contextColor}📂 ${contextDisplay}
|
|
164
|
+
`${contextColor}📂 ${contextDisplay}${c.reset} ` +
|
|
159
165
|
`${intelColor}🧠 ${intelDisplay}%${c.reset}`);
|
|
160
166
|
// Line 3: Architecture status
|
|
161
167
|
const dddColor = data.v3Progress.dddProgress >= 50 ? c.brightGreen :
|
|
@@ -495,7 +501,7 @@ export class StatuslineGenerator {
|
|
|
495
501
|
}
|
|
496
502
|
return {
|
|
497
503
|
memoryMB,
|
|
498
|
-
contextPct:
|
|
504
|
+
contextPct: null, // Unknowable here: needs Claude Code's stdin payload (#1453)
|
|
499
505
|
intelligencePct,
|
|
500
506
|
subAgents,
|
|
501
507
|
};
|