specsmd 0.0.7 → 0.0.8
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/lib/cli-utils.js +0 -1
- package/package.json +1 -1
- package/lib/ink-logo.mjs +0 -104
package/lib/cli-utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specsmd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
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": {
|
package/lib/ink-logo.mjs
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* specs.md Logo Component
|
|
4
|
-
*
|
|
5
|
-
* Red ASCII logo with dark gray shadows
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React from 'react';
|
|
9
|
-
import { render, Text, Box } from 'ink';
|
|
10
|
-
|
|
11
|
-
const { createElement: h } = React;
|
|
12
|
-
|
|
13
|
-
// Colors
|
|
14
|
-
const LOGO_COLOR = '#CC0000';
|
|
15
|
-
const SHADOW_COLOR = '#333333';
|
|
16
|
-
const VERSION_COLOR = '#FF3333';
|
|
17
|
-
|
|
18
|
-
// ASCII Logo (exact from specs.md branding)
|
|
19
|
-
const asciiLogo = `
|
|
20
|
-
█████
|
|
21
|
-
░░███
|
|
22
|
-
█████ ████████ ██████ ██████ █████ █████████████ ███████
|
|
23
|
-
███░░ ░░███░░███ ███░░███ ███░░███ ███░░ ░░███░░███░░███ ███░░███
|
|
24
|
-
░░█████ ░███ ░███░███████ ░███ ░░░ ░░█████ ░███ ░███ ░███ ░███ ░███
|
|
25
|
-
░░░░███ ░███ ░███░███░░░ ░███ ███ ░░░░███ ░███ ░███ ░███ ░███ ░███
|
|
26
|
-
██████ ░███████ ░░██████ ░░██████ ██████ ██ █████░███ █████░░████████
|
|
27
|
-
░░░░░░ ░███░░░ ░░░░░░ ░░░░░░ ░░░░░░ ░░ ░░░░░ ░░░ ░░░░░ ░░░░░░░░
|
|
28
|
-
░███
|
|
29
|
-
█████
|
|
30
|
-
░░░░░
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
// Render logo with colored characters
|
|
34
|
-
const ColoredLogo = () => {
|
|
35
|
-
const lines = asciiLogo.split('\n');
|
|
36
|
-
|
|
37
|
-
return h(Box, { flexDirection: 'column' },
|
|
38
|
-
lines.map((line, lineIndex) => {
|
|
39
|
-
// Parse each line into segments of same-colored characters
|
|
40
|
-
const segments = [];
|
|
41
|
-
let currentType = null;
|
|
42
|
-
let currentText = '';
|
|
43
|
-
|
|
44
|
-
for (const char of line) {
|
|
45
|
-
let charType;
|
|
46
|
-
if (char === '█') {
|
|
47
|
-
charType = 'fill';
|
|
48
|
-
} else if (char === '░') {
|
|
49
|
-
charType = 'shadow';
|
|
50
|
-
} else {
|
|
51
|
-
charType = 'space';
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (charType !== currentType && currentText) {
|
|
55
|
-
segments.push({ type: currentType, text: currentText });
|
|
56
|
-
currentText = '';
|
|
57
|
-
}
|
|
58
|
-
currentType = charType;
|
|
59
|
-
currentText += char;
|
|
60
|
-
}
|
|
61
|
-
if (currentText) {
|
|
62
|
-
segments.push({ type: currentType, text: currentText });
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return h(Text, { key: lineIndex },
|
|
66
|
-
segments.map((seg, segIndex) => {
|
|
67
|
-
if (seg.type === 'fill') {
|
|
68
|
-
return h(Text, { key: segIndex, color: LOGO_COLOR }, seg.text);
|
|
69
|
-
} else if (seg.type === 'shadow') {
|
|
70
|
-
return h(Text, { key: segIndex, color: SHADOW_COLOR }, seg.text);
|
|
71
|
-
} else {
|
|
72
|
-
return h(Text, { key: segIndex }, seg.text);
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
);
|
|
76
|
-
})
|
|
77
|
-
);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
// Header component
|
|
81
|
-
const Header = ({ version = '0.0.3' }) => {
|
|
82
|
-
return h(Box, { flexDirection: 'column' },
|
|
83
|
-
h(ColoredLogo),
|
|
84
|
-
h(Box, { marginTop: 0 },
|
|
85
|
-
h(Text, { color: LOGO_COLOR },
|
|
86
|
-
' AI-native development orchestration ',
|
|
87
|
-
h(Text, { bold: true, color: VERSION_COLOR }, `v${version}`)
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// Exports for use in other modules
|
|
94
|
-
export { Header, asciiLogo, LOGO_COLOR, SHADOW_COLOR, VERSION_COLOR };
|
|
95
|
-
|
|
96
|
-
// App component for standalone testing
|
|
97
|
-
const App = () => {
|
|
98
|
-
const args = process.argv.slice(2);
|
|
99
|
-
const version = args[0] || '0.0.3';
|
|
100
|
-
return h(Header, { version });
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
console.clear();
|
|
104
|
-
render(h(App));
|