@jeancodogno/specforce-kit 0.1.5 → 0.1.7

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.
Files changed (154) hide show
  1. package/index.js +46 -0
  2. package/package.json +12 -28
  3. package/.geminiignore +0 -15
  4. package/.github/workflows/ci.yml +0 -104
  5. package/.github/workflows/release.yml +0 -51
  6. package/.golangci.yml +0 -24
  7. package/.goreleaser.yaml +0 -39
  8. package/.rgignore +0 -13
  9. package/.specforce/archive/agents-md-hooks-config/design.md +0 -38
  10. package/.specforce/archive/agents-md-hooks-config/requirements.md +0 -35
  11. package/.specforce/archive/agents-md-hooks-config/tasks.md +0 -76
  12. package/.specforce/config.yaml +0 -32
  13. package/.specforce/docs/.gitkeep +0 -0
  14. package/.specforce/docs/architecture.md +0 -98
  15. package/.specforce/docs/engineering.md +0 -84
  16. package/.specforce/docs/governance.md +0 -30
  17. package/.specforce/docs/memorial.md +0 -45
  18. package/.specforce/docs/principles.md +0 -31
  19. package/.specforce/docs/security.md +0 -31
  20. package/.specforce/docs/ui-ux.md +0 -129
  21. package/.specforce/specs/.gitkeep +0 -0
  22. package/AGENTS.md +0 -46
  23. package/CONTRIBUTING.md +0 -81
  24. package/Makefile +0 -49
  25. package/assets/logo-header.png +0 -0
  26. package/assets/logo.png +0 -0
  27. package/docs/artifacts.md +0 -41
  28. package/docs/cli.md +0 -73
  29. package/docs/configuration.md +0 -59
  30. package/docs/getting-started.md +0 -110
  31. package/docs/supported-tools.md +0 -28
  32. package/go.mod +0 -35
  33. package/go.sum +0 -61
  34. package/src/cmd/specforce/main.go +0 -23
  35. package/src/cmd/specforce/main_test.go +0 -7
  36. package/src/internal/agent/artifacts/constitution/architecture.yaml +0 -70
  37. package/src/internal/agent/artifacts/constitution/engineering.yaml +0 -52
  38. package/src/internal/agent/artifacts/constitution/governance.yaml +0 -41
  39. package/src/internal/agent/artifacts/constitution/memorial.yaml +0 -55
  40. package/src/internal/agent/artifacts/constitution/principles.yaml +0 -54
  41. package/src/internal/agent/artifacts/constitution/security.yaml +0 -47
  42. package/src/internal/agent/artifacts/constitution/ui-ux.yaml +0 -158
  43. package/src/internal/agent/artifacts/spec/design.yaml +0 -50
  44. package/src/internal/agent/artifacts/spec/requirements.yaml +0 -48
  45. package/src/internal/agent/artifacts/spec/tasks.yaml +0 -55
  46. package/src/internal/agent/compatibility_test.go +0 -120
  47. package/src/internal/agent/cwd_test.go +0 -9
  48. package/src/internal/agent/embed.go +0 -19
  49. package/src/internal/agent/integration_test.go +0 -138
  50. package/src/internal/agent/kit/agents/product-analyst.yaml +0 -31
  51. package/src/internal/agent/kit/agents/technical-developer.yaml +0 -28
  52. package/src/internal/agent/kit/agents/technical-project-planner.yaml +0 -30
  53. package/src/internal/agent/kit/agents/technical-qa-engineer.yaml +0 -36
  54. package/src/internal/agent/kit/agents/technical-solution-architect.yaml +0 -32
  55. package/src/internal/agent/kit/commands/archive.yaml +0 -25
  56. package/src/internal/agent/kit/commands/constitution.yaml +0 -132
  57. package/src/internal/agent/kit/commands/implement.yaml +0 -96
  58. package/src/internal/agent/kit/commands/spec.yaml +0 -94
  59. package/src/internal/agent/kit/instructions/archive.md +0 -68
  60. package/src/internal/agent/kit/kit.yaml +0 -111
  61. package/src/internal/agent/kit/skills/opportunity-framing/SKILL.yaml +0 -56
  62. package/src/internal/agent/kit/skills/pragmatic-product-owner/SKILL.yaml +0 -58
  63. package/src/internal/agent/kit/skills/pragmatic-product-owner/references/spec-artifacts.yaml +0 -38
  64. package/src/internal/agent/kit/skills/spec-clarification-interview/SKILL.yaml +0 -52
  65. package/src/internal/agent/kit/skills/task-atomic-decomposition/SKILL.yaml +0 -137
  66. package/src/internal/agent/kit/skills/task-atomic-decomposition/references/roadmap-patterns.yaml +0 -103
  67. package/src/internal/agent/kit_manifests_test.go +0 -58
  68. package/src/internal/agent/manifest.go +0 -15
  69. package/src/internal/agent/registry.go +0 -69
  70. package/src/internal/agent/registry_test.go +0 -51
  71. package/src/internal/agent/translator.go +0 -334
  72. package/src/internal/agent/translator_test.go +0 -734
  73. package/src/internal/cli/archive.go +0 -91
  74. package/src/internal/cli/archive_test.go +0 -67
  75. package/src/internal/cli/cli.go +0 -259
  76. package/src/internal/cli/cli_test.go +0 -130
  77. package/src/internal/cli/cobra/archive.go +0 -26
  78. package/src/internal/cli/cobra/console.go +0 -21
  79. package/src/internal/cli/cobra/constitution.go +0 -44
  80. package/src/internal/cli/cobra/dummy_test.go +0 -7
  81. package/src/internal/cli/cobra/implementation.go +0 -50
  82. package/src/internal/cli/cobra/init.go +0 -23
  83. package/src/internal/cli/cobra/install.go +0 -21
  84. package/src/internal/cli/cobra/root.go +0 -47
  85. package/src/internal/cli/cobra/spec.go +0 -91
  86. package/src/internal/cli/console.go +0 -48
  87. package/src/internal/cli/constitution.go +0 -190
  88. package/src/internal/cli/constitution_test.go +0 -50
  89. package/src/internal/cli/implementation.go +0 -153
  90. package/src/internal/cli/implementation_test.go +0 -165
  91. package/src/internal/cli/spec.go +0 -369
  92. package/src/internal/cli/spec_test.go +0 -85
  93. package/src/internal/constitution/registry.go +0 -139
  94. package/src/internal/constitution/registry_test.go +0 -97
  95. package/src/internal/constitution/status.go +0 -70
  96. package/src/internal/constitution/status_test.go +0 -160
  97. package/src/internal/core/blueprint.go +0 -49
  98. package/src/internal/core/blueprint_test.go +0 -58
  99. package/src/internal/core/config.go +0 -124
  100. package/src/internal/core/config_test.go +0 -145
  101. package/src/internal/core/constants.go +0 -13
  102. package/src/internal/core/errors.go +0 -31
  103. package/src/internal/core/errors_test.go +0 -48
  104. package/src/internal/core/hooks.go +0 -89
  105. package/src/internal/core/hooks_test.go +0 -51
  106. package/src/internal/core/kit.go +0 -15
  107. package/src/internal/core/kit_test.go +0 -65
  108. package/src/internal/core/path.go +0 -115
  109. package/src/internal/core/path_test.go +0 -101
  110. package/src/internal/core/ui.go +0 -19
  111. package/src/internal/installer/dependencies.go +0 -23
  112. package/src/internal/installer/install.go +0 -89
  113. package/src/internal/installer/installer.go +0 -45
  114. package/src/internal/installer/installer_test.go +0 -96
  115. package/src/internal/project/agents_md.go +0 -155
  116. package/src/internal/project/agents_md_test.go +0 -147
  117. package/src/internal/project/bootstrapper.go +0 -64
  118. package/src/internal/project/bootstrapper_test.go +0 -89
  119. package/src/internal/project/detector.go +0 -35
  120. package/src/internal/project/detector_test.go +0 -96
  121. package/src/internal/project/refresh_integration_test.go +0 -86
  122. package/src/internal/project/service.go +0 -93
  123. package/src/internal/project/service_test.go +0 -135
  124. package/src/internal/spec/archive.go +0 -49
  125. package/src/internal/spec/archive_test.go +0 -55
  126. package/src/internal/spec/discovery.go +0 -53
  127. package/src/internal/spec/discovery_test.go +0 -60
  128. package/src/internal/spec/implementation.go +0 -296
  129. package/src/internal/spec/implementation_test.go +0 -253
  130. package/src/internal/spec/registry.go +0 -142
  131. package/src/internal/spec/registry_test.go +0 -105
  132. package/src/internal/spec/scanner.go +0 -219
  133. package/src/internal/spec/scanner_test.go +0 -243
  134. package/src/internal/spec/service.go +0 -157
  135. package/src/internal/spec/service_test.go +0 -238
  136. package/src/internal/spec/status.go +0 -94
  137. package/src/internal/spec/status_test.go +0 -146
  138. package/src/internal/spec/tasks.go +0 -103
  139. package/src/internal/spec/tasks_test.go +0 -137
  140. package/src/internal/tui/components.go +0 -132
  141. package/src/internal/tui/console.go +0 -247
  142. package/src/internal/tui/console_test.go +0 -19
  143. package/src/internal/tui/constitution.go +0 -36
  144. package/src/internal/tui/constitution_test.go +0 -32
  145. package/src/internal/tui/implementation.go +0 -151
  146. package/src/internal/tui/logo.go +0 -89
  147. package/src/internal/tui/multiselect.go +0 -199
  148. package/src/internal/tui/progressbar.go +0 -37
  149. package/src/internal/tui/progressbar_test.go +0 -30
  150. package/src/internal/tui/spec.go +0 -35
  151. package/src/internal/tui/spinner.go +0 -66
  152. package/src/internal/tui/terminal.go +0 -18
  153. package/src/internal/tui/theme.go +0 -125
  154. package/src/internal/tui/ui.go +0 -52
@@ -1,125 +0,0 @@
1
- package tui
2
-
3
- import "github.com/charmbracelet/lipgloss"
4
-
5
- // Ghost in the Machine Palette
6
- var (
7
- brandMint = lipgloss.Color("#00FA9A") // Ghost Primary
8
- brandCyan = lipgloss.Color("#00FFFF") // Ghost Secondary
9
- brandIce = lipgloss.Color("#E0FFFF") // Ghost Accent
10
- successGreen = lipgloss.Color("#5FFF87") // Success
11
- warningYellow = lipgloss.Color("#FFFFAF") // Warning
12
- errorRed = lipgloss.Color("#FF5F5F") // Error
13
- mutedGrey = lipgloss.Color("#444444") // Standard UI Border
14
- textGrey = lipgloss.Color("#808080") // Secondary Text / Metadata
15
- textWhite = lipgloss.Color("#FFFFFF") // Primary Text
16
- black = lipgloss.Color("#000000") // Canvas
17
- )
18
-
19
- // UI Refinement Colors (Alias for roles)
20
- var (
21
- finishedGreen = successGreen
22
- inProgressOrange = warningYellow
23
- mutedDarkGrey = textGrey
24
- )
25
-
26
- // Base Styles
27
- var (
28
- HeaderStyle = lipgloss.NewStyle().
29
- Foreground(brandMint).
30
- Bold(true)
31
-
32
- SubtitleStyle = lipgloss.NewStyle().
33
- Foreground(brandIce)
34
-
35
- BodyStyle = lipgloss.NewStyle().
36
- Foreground(textWhite)
37
-
38
- DimmedStyle = lipgloss.NewStyle().
39
- Foreground(mutedDarkGrey)
40
-
41
- FinishedStyle = lipgloss.NewStyle().
42
- Foreground(finishedGreen)
43
-
44
- InProgressStyle = lipgloss.NewStyle().
45
- Foreground(inProgressOrange)
46
-
47
- MutedStyle = lipgloss.NewStyle().
48
- Foreground(mutedDarkGrey)
49
-
50
- SuccessStyle = lipgloss.NewStyle().
51
- Foreground(successGreen)
52
-
53
- WarningStyle = lipgloss.NewStyle().
54
- Foreground(warningYellow)
55
-
56
- ErrorStyle = lipgloss.NewStyle().
57
- Foreground(errorRed)
58
- )
59
-
60
- // Badge Styles
61
- var (
62
- SuccessBadgeStyle = lipgloss.NewStyle().
63
- Foreground(black).
64
- Background(successGreen).
65
- Padding(0, 1).
66
- Bold(true)
67
-
68
- WarningBadgeStyle = lipgloss.NewStyle().
69
- Foreground(black).
70
- Background(warningYellow).
71
- Padding(0, 1).
72
- Bold(true)
73
-
74
- ErrorBadgeStyle = lipgloss.NewStyle().
75
- Foreground(textWhite).
76
- Background(errorRed).
77
- Padding(0, 1).
78
- Bold(true)
79
-
80
- // Clean Separator Border (replacing thick borders)
81
- CleanBorder = lipgloss.Border{
82
- Top: "-",
83
- Bottom: "-",
84
- Left: "|",
85
- Right: "|",
86
- TopLeft: "+",
87
- TopRight: "+",
88
- BottomLeft: "+",
89
- BottomRight: "+",
90
- }
91
-
92
- // Completion and Sub-task Styles
93
- CompletionBoxStyle = lipgloss.NewStyle().
94
- Border(CleanBorder).
95
- BorderForeground(mutedGrey).
96
- Padding(1, 4).
97
- Margin(1, 0)
98
-
99
- SubTaskStyle = lipgloss.NewStyle().
100
- Foreground(textGrey).
101
- PaddingLeft(2)
102
-
103
- // Console specific styles
104
- PaneBorderStyle = lipgloss.NewStyle().
105
- Border(CleanBorder).
106
- BorderForeground(mutedGrey).
107
- Padding(1)
108
-
109
- CategoryHeaderStyle = lipgloss.NewStyle().
110
- Foreground(brandCyan).
111
- Bold(true).
112
- Underline(true).
113
- MarginBottom(1)
114
-
115
- SelectedItemStyle = lipgloss.NewStyle().
116
- Foreground(brandCyan).
117
- Bold(true)
118
-
119
- UnselectedItemStyle = lipgloss.NewStyle().
120
- Foreground(textWhite)
121
-
122
- SelectionMarkerStyle = lipgloss.NewStyle().
123
- Foreground(brandCyan).
124
- Bold(true)
125
- )
@@ -1,52 +0,0 @@
1
- package tui
2
-
3
- import (
4
- "fmt"
5
- "github.com/jeancodogno/specforce-kit/src/internal/core"
6
- )
7
-
8
- type terminalUI struct {
9
- spinner *NeonSpinner
10
- }
11
-
12
- func NewUI() core.UI {
13
- return &terminalUI{}
14
- }
15
-
16
- func (u *terminalUI) Log(message string) {
17
- fmt.Println(BodyStyle.Render(message))
18
- }
19
-
20
- func (u *terminalUI) Warn(message string) {
21
- fmt.Print(RenderBadge("warning", message))
22
- }
23
-
24
- func (u *terminalUI) Error(message string) {
25
- fmt.Print(RenderBadge("error", message))
26
- }
27
-
28
- func (u *terminalUI) Success(message string) {
29
- fmt.Print(RenderBadge("success", message))
30
- }
31
-
32
- func (u *terminalUI) SubTask(message string) {
33
- LogSubTask(message)
34
- }
35
-
36
- func (u *terminalUI) StartSpinner(message string) {
37
- if u.spinner == nil {
38
- s := NewNeonSpinner(message)
39
- u.spinner = &s
40
- }
41
- fmt.Print(u.spinner.View())
42
- }
43
-
44
- func (u *terminalUI) StopSpinner() {
45
- // For now, our spinner implementation is simple and just prints once in View().
46
- // A more complex spinner would need to be updated.
47
- u.spinner = nil
48
- }
49
-
50
- func (u *terminalUI) Confirm(question string) bool {
51
- return Confirm(question)
52
- }