specsmd 0.1.28 → 0.1.30

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,21 @@ 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 || typeof stream.write !== 'function') {
20
+ return;
21
+ }
22
+
23
+ if (stream.isTTY === false) {
24
+ return;
25
+ }
26
+
27
+ if (typeof console.clear === 'function') {
28
+ console.clear();
29
+ }
30
+ stream.write('\u001B[2J\u001B[3J\u001B[H');
31
+ }
32
+
18
33
  const FLOW_CONFIG = {
19
34
  fire: {
20
35
  markerDir: '.specs-fire',
@@ -97,6 +112,7 @@ async function runFlowDashboard(options, flow) {
97
112
  const parseSnapshot = async () => config.parse(workspacePath);
98
113
 
99
114
  const initialResult = await parseSnapshot();
115
+ clearTerminalOutput();
100
116
 
101
117
  if (!watchEnabled) {
102
118
  const output = formatStaticFlowText(
@@ -164,5 +180,6 @@ module.exports = {
164
180
  run,
165
181
  runFlowDashboard,
166
182
  parseRefreshMs,
167
- formatStaticFlowText
183
+ formatStaticFlowText,
184
+ clearTerminalOutput
168
185
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specsmd",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
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": {