spec-feature 1.1.6 → 1.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.
- package/.agent/skills/brand-guidelines/LICENSE.txt +202 -0
- package/.agent/skills/brand-guidelines/SKILL.md +73 -0
- package/.claude/settings.local.json +7 -0
- package/.spec-feature.json +24 -0
- package/AGENTS.md +38 -0
- package/GEMINI.md +44 -0
- package/README.md +21 -3
- package/bin/cli.js +5 -378
- package/bin/dist/assets/index-DdmjrNUB.js +157 -0
- package/bin/dist/assets/index-kcp5oobi.css +1 -0
- package/bin/dist/index.html +17 -0
- package/lib/agents/__tests__/researchHelpers.test.js +93 -0
- package/lib/agents/__tests__/specHelpers.test.js +44 -0
- package/lib/agents/coderAgent.js +268 -0
- package/lib/agents/contextAgent.js +182 -0
- package/lib/agents/criticAgent.js +216 -0
- package/lib/agents/generalAgent.js +209 -0
- package/lib/agents/researchAgent.js +310 -0
- package/lib/agents/specAgent.js +160 -0
- package/lib/agents/specCriticAgent.js +297 -0
- package/lib/agents/testAgent.js +267 -0
- package/lib/board/__tests__/boardMoveService.test.js +134 -0
- package/lib/board/__tests__/boardRepository.test.js +94 -0
- package/lib/board/__tests__/transitionPolicy.test.js +73 -0
- package/lib/board/boardEvents.js +25 -0
- package/lib/board/boardMoveService.js +394 -0
- package/lib/board/boardRepository.js +135 -0
- package/lib/board/contracts.js +33 -0
- package/lib/board/transitionPolicy.js +34 -0
- package/lib/commands/__tests__/view.test.js +29 -0
- package/lib/commands/init.js +112 -0
- package/lib/commands/view.js +90 -0
- package/lib/server/app.js +61 -0
- package/lib/server/routes.js +1420 -0
- package/lib/tasks/taskManager.js +256 -0
- package/lib/utils/__tests__/config.test.js +66 -0
- package/lib/utils/__tests__/context.test.js +81 -0
- package/lib/utils/__tests__/features.test.js +117 -0
- package/lib/utils/__tests__/project.test.js +79 -0
- package/lib/utils/__tests__/specTree.test.js +86 -0
- package/lib/utils/__tests__/text.test.js +43 -0
- package/lib/utils/browser.js +17 -0
- package/lib/utils/config.js +33 -0
- package/lib/utils/context.js +159 -0
- package/lib/utils/externalExecutor.js +80 -0
- package/lib/utils/features.js +139 -0
- package/lib/utils/fs.js +29 -0
- package/lib/utils/git.js +243 -0
- package/lib/utils/mcp-client.js +143 -0
- package/lib/utils/project.js +29 -0
- package/lib/utils/specTree.js +125 -0
- package/lib/utils/text.js +21 -0
- package/lib/workflow/__tests__/featureWorkflow.test.js +96 -0
- package/lib/workflow/featureWorkflow.js +399 -0
- package/lib/workflow/specWorkflow.js +647 -0
- package/lib/workflow/workflowUtils.js +32 -0
- package/package.json +42 -2
- package/spec/constitution/02-evidence-and-no-hallucinations.md +2 -0
- package/spec/constitution/06-spec-feature-workflow-guardrails.md +12 -4
- package/spec/core/clarifications.md +5 -7
- package/spec/core/common-rules.md +50 -0
- package/spec/core/hotfix.md +16 -12
- package/spec/core/plan.md +5 -13
- package/spec/core/research.md +49 -0
- package/spec/core/spec-review.md +124 -0
- package/spec/core/spec.md +5 -13
- package/spec/core/tasks.md +14 -14
- package/spec/core/tests.md +51 -0
- package/spec/core/verify.md +59 -17
- package/spec/feature.md +21 -13
- package/test_agent.js +15 -0
- package/viewer/index.html +16 -0
- package/viewer/postcss.config.js +5 -0
- package/viewer/src/App.tsx +31 -0
- package/viewer/src/__tests__/boardColumns.test.ts +178 -0
- package/viewer/src/__tests__/utils.featureWorkflow.test.ts +84 -0
- package/viewer/src/__tests__/utils.test.ts +50 -0
- package/viewer/src/boardColumns.ts +141 -0
- package/viewer/src/components/BoardMinimap.tsx +181 -0
- package/viewer/src/components/ColumnSettingsModal.tsx +649 -0
- package/viewer/src/components/ConfirmModal.tsx +84 -0
- package/viewer/src/components/CreateCardModal.tsx +140 -0
- package/viewer/src/components/CreateNodeModal.tsx +143 -0
- package/viewer/src/components/FeedbackPanel.tsx +145 -0
- package/viewer/src/components/FileIcon.tsx +23 -0
- package/viewer/src/components/MCPSettings.tsx +295 -0
- package/viewer/src/components/Markdown.tsx +201 -0
- package/viewer/src/components/PreviewText.tsx +26 -0
- package/viewer/src/components/ProgressBar.tsx +69 -0
- package/viewer/src/components/ResearchModal.tsx +151 -0
- package/viewer/src/components/SearchInput.tsx +45 -0
- package/viewer/src/components/SidebarItem.tsx +41 -0
- package/viewer/src/components/SpecTree.tsx +287 -0
- package/viewer/src/components/StatusBar.tsx +345 -0
- package/viewer/src/components/ThemedToaster.tsx +24 -0
- package/viewer/src/components/__tests__/BoardMinimap.test.tsx +146 -0
- package/viewer/src/components/__tests__/ColumnSettingsModal.test.tsx +344 -0
- package/viewer/src/components/__tests__/Markdown.test.tsx +51 -0
- package/viewer/src/config.ts +15 -0
- package/viewer/src/context/ActiveTasksContext.tsx +264 -0
- package/viewer/src/context/FeaturesContext.tsx +48 -0
- package/viewer/src/context/ThemeContext.tsx +39 -0
- package/viewer/src/hooks/__tests__/useDebounce.test.ts +58 -0
- package/viewer/src/hooks/useBoardSync.ts +249 -0
- package/viewer/src/hooks/useDebounce.ts +29 -0
- package/viewer/src/icons.tsx +53 -0
- package/viewer/src/index.css +110 -0
- package/viewer/src/main.tsx +9 -0
- package/viewer/src/pages/DashboardPage.tsx +844 -0
- package/viewer/src/pages/FeatureNotFoundPage.tsx +22 -0
- package/viewer/src/pages/FeatureViewPage.tsx +316 -0
- package/viewer/src/pages/ProjectContextPage.tsx +357 -0
- package/viewer/src/pages/SettingsPage.tsx +181 -0
- package/viewer/src/types.ts +58 -0
- package/viewer/src/utils/__tests__/formattedText.test.tsx +50 -0
- package/viewer/src/utils/formattedText.tsx +99 -0
- package/viewer/src/utils.ts +750 -0
- package/viewer/src/vite-env.d.ts +18 -0
- package/viewer/tailwind.config.js +9 -0
- package/viewer/tsconfig.json +21 -0
- package/viewer/vite.config.js +29 -0
- package/vitest.config.js +23 -0
- package/bin/viewer.html +0 -723
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brand-guidelines
|
|
3
|
+
description: Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
|
|
4
|
+
license: Complete terms in LICENSE.txt
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Anthropic Brand Styling
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
To access Anthropic's official brand identity and style resources, use this skill.
|
|
12
|
+
|
|
13
|
+
**Keywords**: branding, corporate identity, visual identity, post-processing, styling, brand colors, typography, Anthropic brand, visual formatting, visual design
|
|
14
|
+
|
|
15
|
+
## Brand Guidelines
|
|
16
|
+
|
|
17
|
+
### Colors
|
|
18
|
+
|
|
19
|
+
**Main Colors:**
|
|
20
|
+
|
|
21
|
+
- Dark: `#141413` - Primary text and dark backgrounds
|
|
22
|
+
- Light: `#faf9f5` - Light backgrounds and text on dark
|
|
23
|
+
- Mid Gray: `#b0aea5` - Secondary elements
|
|
24
|
+
- Light Gray: `#e8e6dc` - Subtle backgrounds
|
|
25
|
+
|
|
26
|
+
**Accent Colors:**
|
|
27
|
+
|
|
28
|
+
- Orange: `#d97757` - Primary accent
|
|
29
|
+
- Blue: `#6a9bcc` - Secondary accent
|
|
30
|
+
- Green: `#788c5d` - Tertiary accent
|
|
31
|
+
|
|
32
|
+
### Typography
|
|
33
|
+
|
|
34
|
+
- **Headings**: Poppins (with Arial fallback)
|
|
35
|
+
- **Body Text**: Lora (with Georgia fallback)
|
|
36
|
+
- **Note**: Fonts should be pre-installed in your environment for best results
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
### Smart Font Application
|
|
41
|
+
|
|
42
|
+
- Applies Poppins font to headings (24pt and larger)
|
|
43
|
+
- Applies Lora font to body text
|
|
44
|
+
- Automatically falls back to Arial/Georgia if custom fonts unavailable
|
|
45
|
+
- Preserves readability across all systems
|
|
46
|
+
|
|
47
|
+
### Text Styling
|
|
48
|
+
|
|
49
|
+
- Headings (24pt+): Poppins font
|
|
50
|
+
- Body text: Lora font
|
|
51
|
+
- Smart color selection based on background
|
|
52
|
+
- Preserves text hierarchy and formatting
|
|
53
|
+
|
|
54
|
+
### Shape and Accent Colors
|
|
55
|
+
|
|
56
|
+
- Non-text shapes use accent colors
|
|
57
|
+
- Cycles through orange, blue, and green accents
|
|
58
|
+
- Maintains visual interest while staying on-brand
|
|
59
|
+
|
|
60
|
+
## Technical Details
|
|
61
|
+
|
|
62
|
+
### Font Management
|
|
63
|
+
|
|
64
|
+
- Uses system-installed Poppins and Lora fonts when available
|
|
65
|
+
- Provides automatic fallback to Arial (headings) and Georgia (body)
|
|
66
|
+
- No font installation required - works with existing system fonts
|
|
67
|
+
- For best results, pre-install Poppins and Lora fonts in your environment
|
|
68
|
+
|
|
69
|
+
### Color Application
|
|
70
|
+
|
|
71
|
+
- Uses RGB color values for precise brand matching
|
|
72
|
+
- Applied via python-pptx's RGBColor class
|
|
73
|
+
- Maintains color fidelity across different systems
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {},
|
|
3
|
+
"executors": {
|
|
4
|
+
"defaultCli": "claude"
|
|
5
|
+
},
|
|
6
|
+
"boardColumns": {
|
|
7
|
+
"testing": {
|
|
8
|
+
"rules": [
|
|
9
|
+
"Test rule"
|
|
10
|
+
],
|
|
11
|
+
"skills": [],
|
|
12
|
+
"autoRun": false
|
|
13
|
+
},
|
|
14
|
+
"specifications": {
|
|
15
|
+
"rules": [],
|
|
16
|
+
"skills": [],
|
|
17
|
+
"autoRun": false,
|
|
18
|
+
"executor": {
|
|
19
|
+
"type": "native"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"geminiModel": "gemini-3-flash-preview"
|
|
24
|
+
}
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Project: Spec Feature
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Spec Feature is a CLI tool that uses AI to generate technical specifications, plans, and tasks for software development projects from a single user description. It provides a structured approach to project planning and documentation, aiming to improve clarity, reduce misunderstandings, and streamline the development process.
|
|
5
|
+
|
|
6
|
+
## Tech Stack
|
|
7
|
+
* **Node.js:** Primary runtime environment.
|
|
8
|
+
* **TypeScript:** Used for development, providing type safety.
|
|
9
|
+
* **React:** Used for building the interactive specification viewer.
|
|
10
|
+
* **Vite:** Used as a build tool and development server for the viewer.
|
|
11
|
+
* **Tailwind CSS:** Utilized for styling the viewer.
|
|
12
|
+
* **@google/genai:** Interacts with Google's Gemini AI models.
|
|
13
|
+
* **@langchain/core & @langchain/langgraph:** Frameworks for building language model applications.
|
|
14
|
+
* **@hello-pangea/dnd:** Library for drag-and-drop functionality in the viewer.
|
|
15
|
+
* **dotenv:** Used for managing environment variables.
|
|
16
|
+
|
|
17
|
+
## Architecture & Structure
|
|
18
|
+
* **`bin/`**: Contains the CLI entry point (`cli.js`).
|
|
19
|
+
* **`lib/`**: Contains the core logic of the application.
|
|
20
|
+
* **`agents/`**: Houses AI agents responsible for context gathering, research, and specification generation.
|
|
21
|
+
* **`commands/`**: Contains the implementation of CLI commands like `init` and `view`.
|
|
22
|
+
* **`server/`**: Contains the code for the local web server used to view the generated specifications.
|
|
23
|
+
* **`utils/`**: Contains utility functions for file system operations, project context management, etc.
|
|
24
|
+
* **`spec/`**: Default directory for storing project specifications, including:
|
|
25
|
+
* **`constitution/`**: Contains markdown documents outlining the project's constitution and guidelines for spec generation.
|
|
26
|
+
* **`core/`**: Contains templates for core spec documents like plans, research, and tasks.
|
|
27
|
+
* **`features/`**: Stores specifications for individual features.
|
|
28
|
+
* `feature.md`: Template used to generate new features.
|
|
29
|
+
* **`viewer/`**: Contains the source code for the React-based specification viewer.
|
|
30
|
+
|
|
31
|
+
## Conventions
|
|
32
|
+
* The project uses TypeScript, so code is expected to be type-safe.
|
|
33
|
+
* The `spec/` directory is the default location for generated specifications.
|
|
34
|
+
* The viewer is built using React, TypeScript, and Tailwind CSS following modern web development practices.
|
|
35
|
+
* Environment variables are managed using `dotenv`.
|
|
36
|
+
|
|
37
|
+
<!-- context_hash: 42a21bbeba2b737a987d43b17951f59cdea7132b6794d08848a3574b53095333 -->
|
|
38
|
+
<!-- generated_at: 2026-02-01T16:44:30.264Z -->
|
package/GEMINI.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Brand Guidelines
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This document outlines the official brand identity and style guidelines.
|
|
5
|
+
|
|
6
|
+
## Colors
|
|
7
|
+
|
|
8
|
+
### Main Colors
|
|
9
|
+
These are the core colors used for primary text, backgrounds, and secondary elements.
|
|
10
|
+
|
|
11
|
+
- **Dark**: `#141413` (Primary text and dark backgrounds)
|
|
12
|
+
- **Light**: `#faf9f5` (Light backgrounds and text on dark)
|
|
13
|
+
- **Mid Gray**: `#b0aea5` (Secondary elements)
|
|
14
|
+
- **Light Gray**: `#e8e6dc` (Subtle backgrounds)
|
|
15
|
+
|
|
16
|
+
### Accent Colors
|
|
17
|
+
Use these colors for highlights, accents, and non-text shapes.
|
|
18
|
+
|
|
19
|
+
- **Orange**: `#d97757` (Primary accent)
|
|
20
|
+
- **Blue**: `#6a9bcc` (Secondary accent)
|
|
21
|
+
- **Green**: `#788c5d` (Tertiary accent)
|
|
22
|
+
|
|
23
|
+
## Typography
|
|
24
|
+
|
|
25
|
+
### Headings
|
|
26
|
+
- **Font**: Poppins
|
|
27
|
+
- **Fallback**: Arial
|
|
28
|
+
- **Usage**: Headings 24pt and larger
|
|
29
|
+
|
|
30
|
+
### Body Text
|
|
31
|
+
- **Font**: Lora
|
|
32
|
+
- **Fallback**: Georgia
|
|
33
|
+
- **Usage**: Standard body text
|
|
34
|
+
|
|
35
|
+
## Usage Guidelines
|
|
36
|
+
|
|
37
|
+
### Smart Font Application
|
|
38
|
+
-Headings should use Poppins.
|
|
39
|
+
- Body text should use Lora.
|
|
40
|
+
- If custom fonts are unavailable, the system should automatically fall back to Arial (for headings) and Georgia (for body).
|
|
41
|
+
|
|
42
|
+
### Color Application
|
|
43
|
+
- Ensure good contrast between text and background using the Dark and Light colors.
|
|
44
|
+
- Use accent colors to maintain visual interest but keep them on-brand.
|
package/README.md
CHANGED
|
@@ -36,6 +36,23 @@ npx spec-feature view <feature-slug> --folder my-docs
|
|
|
36
36
|
- If `<feature-slug>` exists under `spec/features/`, the viewer jumps directly to it; otherwise you land on the feature list.
|
|
37
37
|
- Pass `--folder|-f` when your specs live outside the default `spec/` directory.
|
|
38
38
|
|
|
39
|
+
### Viewer build and hot reload
|
|
40
|
+
|
|
41
|
+
The viewer is built with Vite (React + TypeScript + Tailwind). After cloning, build once then run the viewer:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm run build:viewer # build viewer to bin/dist
|
|
45
|
+
npm run dev:viewer # serve built viewer + API on :4173
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
For frontend development with hot reload, run the Vite dev server (with API proxy to the CLI server):
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npm run dev:viewer:hmr # starts CLI on :4173 and Vite on :5173; open http://localhost:5173
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Or run in two terminals: `npm run dev:viewer` then `npm run dev:viewer:vite`, and open `http://localhost:5173`.
|
|
55
|
+
|
|
39
56
|
## 📁 Structure
|
|
40
57
|
|
|
41
58
|
```mermaid
|
|
@@ -81,14 +98,15 @@ Use the template from spec/feature.md.
|
|
|
81
98
|
#feature-name# Your description here
|
|
82
99
|
```
|
|
83
100
|
|
|
84
|
-
Format: `#feature# description` → creates `spec/features/feature-name/` with up to
|
|
101
|
+
Format: `#feature# description` → creates `spec/features/feature-name/` with up to 5 files (adds `clarifications.md` when needed):
|
|
85
102
|
|
|
86
103
|
```mermaid
|
|
87
104
|
flowchart LR
|
|
88
105
|
A[feature.md template] --> B[spec.md]
|
|
89
106
|
A --> C[plan.md]
|
|
90
|
-
A --> D[
|
|
91
|
-
A --> E[
|
|
107
|
+
A --> D[tests.md]
|
|
108
|
+
A --> E[tasks.md]
|
|
109
|
+
A --> F[clarifications.md]
|
|
92
110
|
```
|
|
93
111
|
|
|
94
112
|
### 2️⃣ Execute Tasks
|