specsmd 0.1.28 → 0.1.29

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.
@@ -15,6 +15,14 @@ function parseRefreshMs(raw) {
15
15
  return Math.max(200, Math.min(parsed, 5000));
16
16
  }
17
17
 
18
+ function clearTerminalOutput(stream = process.stdout) {
19
+ if (!stream || !stream.isTTY || typeof stream.write !== 'function') {
20
+ return;
21
+ }
22
+
23
+ stream.write('\u001B[2J\u001B[3J\u001B[H');
24
+ }
25
+
18
26
  const FLOW_CONFIG = {
19
27
  fire: {
20
28
  markerDir: '.specs-fire',
@@ -97,6 +105,7 @@ async function runFlowDashboard(options, flow) {
97
105
  const parseSnapshot = async () => config.parse(workspacePath);
98
106
 
99
107
  const initialResult = await parseSnapshot();
108
+ clearTerminalOutput();
100
109
 
101
110
  if (!watchEnabled) {
102
111
  const output = formatStaticFlowText(
@@ -164,5 +173,6 @@ module.exports = {
164
173
  run,
165
174
  runFlowDashboard,
166
175
  parseRefreshMs,
167
- formatStaticFlowText
176
+ formatStaticFlowText,
177
+ clearTerminalOutput
168
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specsmd",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Multi-agent orchestration system for AI-native software development. Delivers AI-DLC, Agile, and custom SDLC flows as markdown-based agent systems.",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {