specsmd 0.0.4 → 0.0.6

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/constants.js CHANGED
@@ -1,8 +1,9 @@
1
1
 
2
2
  // Theme Colors (extracted from specs.md pixel logo)
3
3
  const THEME_COLORS = {
4
- primary: '#C47454', // Salmon/terracotta brick fill
5
- secondary: '#E8A085', // Light salmon highlight
4
+ primary: '#C45050', // Brick red fill
5
+ secondary: '#D86565', // Coral red highlight
6
+ accent: '#EC8080', // Light coral
6
7
  success: '#22c55e', // Green
7
8
  error: '#ef4444', // Red
8
9
  warning: '#f59e0b', // Amber
@@ -0,0 +1,104 @@
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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specsmd",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
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": {
@@ -45,7 +45,8 @@
45
45
  "gradient-string": "^2.0.2",
46
46
  "js-yaml": "^4.1.0",
47
47
  "oh-my-logo": "^0.4.0",
48
- "prompts": "^2.4.2"
48
+ "prompts": "^2.4.2",
49
+ "terminal-image": "^4.1.0"
49
50
  },
50
51
  "engines": {
51
52
  "node": ">=14.0.0"