fraim-framework 2.0.30 → 2.0.33
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/dist/src/cli/commands/init.js +29 -2
- package/dist/src/cli/commands/sync.js +18 -1
- package/dist/src/utils/script-sync-utils.js +218 -0
- package/dist/tests/debug-tools.js +6 -5
- package/dist/tests/test-chalk-regression.js +58 -8
- package/dist/tests/test-cli.js +70 -5
- package/dist/tests/test-end-to-end-hybrid-validation.js +349 -0
- package/dist/tests/test-first-run-journey.js +43 -3
- package/dist/tests/test-hybrid-script-execution.js +369 -0
- package/dist/tests/test-mcp-connection.js +2 -2
- package/dist/tests/test-mcp-issue-integration.js +12 -4
- package/dist/tests/test-mcp-lifecycle-methods.js +4 -4
- package/dist/tests/test-node-compatibility.js +24 -2
- package/dist/tests/test-prep-issue.js +4 -1
- package/dist/tests/test-script-location-independence.js +173 -0
- package/dist/tests/test-script-sync.js +557 -0
- package/dist/tests/test-session-rehydration.js +2 -2
- package/dist/tests/test-standalone.js +3 -3
- package/dist/tests/test-sync-version-update.js +1 -1
- package/dist/tests/test-telemetry.js +2 -2
- package/dist/tests/test-user-journey.js +8 -4
- package/dist/tests/test-utils.js +13 -0
- package/dist/tests/test-wizard.js +2 -2
- package/package.json +3 -3
- package/registry/rules/agent-testing-guidelines.md +502 -502
- package/registry/rules/ephemeral-execution.md +37 -27
- package/registry/rules/local-development.md +253 -251
- package/registry/rules/successful-debugging-patterns.md +491 -482
- package/registry/scripts/prep-issue.sh +468 -468
- package/registry/workflows/bootstrap/evaluate-code-quality.md +8 -2
- package/registry/workflows/bootstrap/verify-test-coverage.md +8 -2
- package/registry/workflows/customer-development/thank-customers.md +203 -193
- package/registry/workflows/customer-development/weekly-newsletter.md +366 -362
- package/registry/workflows/performance/analyze-performance.md +65 -63
- package/registry/workflows/product-building/implement.md +6 -2
- package/registry/workflows/product-building/prep-issue.md +11 -24
- package/registry/workflows/product-building/resolve.md +5 -1
- package/registry/workflows/replicate/replicate-discovery.md +336 -0
- package/registry/workflows/replicate/replicate-to-issues.md +319 -0
- package/registry/workflows/reviewer/review-implementation-vs-design-spec.md +632 -632
- package/.windsurf/rules/windsurf-rules.md +0 -7
- package/.windsurf/workflows/resolve-issue.md +0 -6
- package/.windsurf/workflows/retrospect.md +0 -6
- package/.windsurf/workflows/start-design.md +0 -6
- package/.windsurf/workflows/start-impl.md +0 -6
- package/.windsurf/workflows/start-spec.md +0 -6
- package/.windsurf/workflows/start-tests.md +0 -6
- package/bin/fraim.js +0 -23
- package/registry/scripts/build-scripts-generator.ts +0 -216
- package/registry/scripts/cleanup-branch.ts +0 -303
- package/registry/scripts/fraim-config.ts +0 -63
- package/registry/scripts/generate-engagement-emails.ts +0 -744
- package/registry/scripts/generic-issues-api.ts +0 -110
- package/registry/scripts/newsletter-helpers.ts +0 -874
- package/registry/scripts/openapi-generator.ts +0 -695
- package/registry/scripts/performance/profile-server.ts +0 -370
- package/registry/scripts/run-thank-you-workflow.ts +0 -122
- package/registry/scripts/send-newsletter-simple.ts +0 -104
- package/registry/scripts/send-thank-you-emails.ts +0 -57
- package/registry/workflows/replicate/re-implementation-strategy.md +0 -226
- package/registry/workflows/replicate/use-case-extraction.md +0 -135
- package/registry/workflows/replicate/visual-analysis.md +0 -154
- package/registry/workflows/replicate/website-discovery-analysis.md +0 -231
- package/sample_package.json +0 -18
- /package/registry/scripts/{replicate/comprehensive-explorer.py → comprehensive-explorer.py} +0 -0
- /package/registry/scripts/{replicate/interactive-explorer.py → interactive-explorer.py} +0 -0
- /package/registry/scripts/{replicate/scrape-site.py → scrape-site.py} +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
# Replicate to Issues Workflow
|
|
2
|
+
|
|
3
|
+
## INTENT
|
|
4
|
+
To convert comprehensive replication analysis into actionable GitHub issues that can be implemented through standard FRAIM workflows (spec → design → implement → test).
|
|
5
|
+
|
|
6
|
+
## PRINCIPLES
|
|
7
|
+
- **One Issue Per Feature**: Each use case becomes a focused, implementable issue
|
|
8
|
+
- **Complete Context**: Include all relevant screenshots, requirements, and technical notes
|
|
9
|
+
- **Proper Prioritization**: Use priority from discovery analysis
|
|
10
|
+
- **Clear Acceptance Criteria**: Make issues testable and verifiable
|
|
11
|
+
- **Linked Dependencies**: Connect related issues appropriately
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
This workflow guides agents through converting the outputs from `replicate-discovery.md` into well-structured GitHub issues. Each issue represents a feature or use case that can be implemented through the standard FRAIM spec/design/implement/test workflow.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
- Completed Replicate Discovery workflow (`workflows/replicate/replicate-discovery.md`)
|
|
18
|
+
- Access to `docs/replicate/` directory with all analysis artifacts
|
|
19
|
+
- GitHub repository access with issue creation permissions
|
|
20
|
+
- Understanding of the target implementation repository
|
|
21
|
+
|
|
22
|
+
## Workflow Steps
|
|
23
|
+
|
|
24
|
+
### Phase 1: Prepare Issue Generation
|
|
25
|
+
|
|
26
|
+
1. **Review Discovery Artifacts**
|
|
27
|
+
- Read `docs/replicate/REPLICATION_ANALYSIS.md`
|
|
28
|
+
- Review `docs/replicate/reports/use-cases.md`
|
|
29
|
+
- Check `docs/replicate/reports/technology-stack.md`
|
|
30
|
+
- Verify all screenshots are accessible
|
|
31
|
+
|
|
32
|
+
2. **Define Issue Structure**
|
|
33
|
+
Each issue should include:
|
|
34
|
+
- **Title**: Clear, concise feature name
|
|
35
|
+
- **Description**: What needs to be built
|
|
36
|
+
- **User Story**: As a [role], I want [feature] so that [benefit]
|
|
37
|
+
- **Use Case Reference**: Link to use case in discovery docs
|
|
38
|
+
- **Screenshots**: Embedded or linked screenshots
|
|
39
|
+
- **Technical Requirements**: Technology, components, APIs needed
|
|
40
|
+
- **Acceptance Criteria**: Testable conditions for completion
|
|
41
|
+
- **Priority**: High/Medium/Low from discovery
|
|
42
|
+
- **Labels**: Feature type, priority, component area
|
|
43
|
+
- **Dependencies**: Links to related issues
|
|
44
|
+
|
|
45
|
+
3. **Create Issue Template**
|
|
46
|
+
```markdown
|
|
47
|
+
## User Story
|
|
48
|
+
As a [role], I want [feature] so that [benefit].
|
|
49
|
+
|
|
50
|
+
## Description
|
|
51
|
+
[Detailed description of the feature]
|
|
52
|
+
|
|
53
|
+
## Use Case Reference
|
|
54
|
+
See: `docs/replicate/reports/use-cases.md` - UC-[number]
|
|
55
|
+
|
|
56
|
+
## Screenshots
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+
## Technical Requirements
|
|
60
|
+
- **Components**: [List of UI components needed]
|
|
61
|
+
- **Data Models**: [Entities and fields]
|
|
62
|
+
- **API Endpoints**: [Required endpoints]
|
|
63
|
+
- **Dependencies**: [External libraries or services]
|
|
64
|
+
|
|
65
|
+
## Acceptance Criteria
|
|
66
|
+
- [ ] [Testable criterion 1]
|
|
67
|
+
- [ ] [Testable criterion 2]
|
|
68
|
+
- [ ] [Testable criterion 3]
|
|
69
|
+
|
|
70
|
+
## Implementation Notes
|
|
71
|
+
[Any additional technical notes or considerations]
|
|
72
|
+
|
|
73
|
+
## Related Issues
|
|
74
|
+
- Depends on: #[issue-number]
|
|
75
|
+
- Related to: #[issue-number]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Phase 2: Categorize and Prioritize
|
|
79
|
+
|
|
80
|
+
1. **Group Use Cases by Implementation Order**
|
|
81
|
+
Typical order:
|
|
82
|
+
1. **Foundation** (Priority: High)
|
|
83
|
+
- Project setup and configuration
|
|
84
|
+
- Database schema and models
|
|
85
|
+
- Authentication system
|
|
86
|
+
- Basic routing and navigation
|
|
87
|
+
|
|
88
|
+
2. **Core Features** (Priority: High)
|
|
89
|
+
- Primary user workflows
|
|
90
|
+
- Essential CRUD operations
|
|
91
|
+
- Main user interfaces
|
|
92
|
+
|
|
93
|
+
3. **Secondary Features** (Priority: Medium)
|
|
94
|
+
- Supporting functionality
|
|
95
|
+
- Additional user workflows
|
|
96
|
+
- Enhanced features
|
|
97
|
+
|
|
98
|
+
4. **Polish & Enhancement** (Priority: Low)
|
|
99
|
+
- UI/UX improvements
|
|
100
|
+
- Edge cases
|
|
101
|
+
- Nice-to-have features
|
|
102
|
+
|
|
103
|
+
2. **Identify Dependencies**
|
|
104
|
+
- Authentication must come before protected features
|
|
105
|
+
- Data models before features that use them
|
|
106
|
+
- Shared components before pages that use them
|
|
107
|
+
- API endpoints before frontend features
|
|
108
|
+
|
|
109
|
+
3. **Create Implementation Roadmap**
|
|
110
|
+
Document in `docs/replicate/IMPLEMENTATION_ROADMAP.md`:
|
|
111
|
+
- Phase 1: Foundation (issues #1-10)
|
|
112
|
+
- Phase 2: Core Features (issues #11-30)
|
|
113
|
+
- Phase 3: Secondary Features (issues #31-50)
|
|
114
|
+
- Phase 4: Polish (issues #51+)
|
|
115
|
+
|
|
116
|
+
### Phase 3: Generate GitHub Issues
|
|
117
|
+
|
|
118
|
+
1. **Create Foundation Issues**
|
|
119
|
+
Generate issues for:
|
|
120
|
+
- Project setup and tooling
|
|
121
|
+
- Database schema design
|
|
122
|
+
- Authentication system
|
|
123
|
+
- Base layout and navigation
|
|
124
|
+
- Shared component library
|
|
125
|
+
|
|
126
|
+
2. **Create Feature Issues**
|
|
127
|
+
For each use case in `docs/replicate/reports/use-cases.md`:
|
|
128
|
+
- Extract use case details
|
|
129
|
+
- Format as GitHub issue
|
|
130
|
+
- Include relevant screenshots
|
|
131
|
+
- Add technical requirements
|
|
132
|
+
- Set priority and labels
|
|
133
|
+
- Note dependencies
|
|
134
|
+
|
|
135
|
+
3. **Use GitHub API or CLI**
|
|
136
|
+
```bash
|
|
137
|
+
# Using GitHub CLI
|
|
138
|
+
gh issue create \
|
|
139
|
+
--title "Implement User Registration" \
|
|
140
|
+
--body-file issue-template.md \
|
|
141
|
+
--label "feature,high-priority,authentication" \
|
|
142
|
+
--assignee @me
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
4. **Batch Issue Creation**
|
|
146
|
+
Create a script or use MCP GitHub tools:
|
|
147
|
+
- Read use cases from `docs/replicate/reports/use-cases.md`
|
|
148
|
+
- Generate issue body for each
|
|
149
|
+
- Create issues via API
|
|
150
|
+
- Track created issue numbers
|
|
151
|
+
- Update dependency links
|
|
152
|
+
|
|
153
|
+
### Phase 4: Link and Organize
|
|
154
|
+
|
|
155
|
+
1. **Update Issue Dependencies**
|
|
156
|
+
- After all issues created, update with dependency links
|
|
157
|
+
- Use "Depends on #X" or "Blocked by #X"
|
|
158
|
+
- Link related issues with "Related to #X"
|
|
159
|
+
|
|
160
|
+
2. **Create GitHub Milestones**
|
|
161
|
+
- Foundation Milestone
|
|
162
|
+
- Core Features Milestone
|
|
163
|
+
- Secondary Features Milestone
|
|
164
|
+
- Polish & Launch Milestone
|
|
165
|
+
|
|
166
|
+
3. **Assign Issues to Milestones**
|
|
167
|
+
- Group issues by implementation phase
|
|
168
|
+
- Set milestone due dates if applicable
|
|
169
|
+
|
|
170
|
+
4. **Create Project Board** (Optional)
|
|
171
|
+
- Columns: Backlog, Spec, Design, Implementation, Testing, Done
|
|
172
|
+
- Add all issues to board
|
|
173
|
+
- Organize by priority and dependencies
|
|
174
|
+
|
|
175
|
+
### Phase 5: Documentation
|
|
176
|
+
|
|
177
|
+
1. **Create Issue Index**
|
|
178
|
+
Generate `docs/replicate/GITHUB_ISSUES.md`:
|
|
179
|
+
```markdown
|
|
180
|
+
# GitHub Issues Index
|
|
181
|
+
|
|
182
|
+
## Foundation Issues
|
|
183
|
+
- #1: Project Setup and Configuration
|
|
184
|
+
- #2: Database Schema Design
|
|
185
|
+
- #3: Authentication System
|
|
186
|
+
|
|
187
|
+
## Core Features
|
|
188
|
+
- #10: User Registration
|
|
189
|
+
- #11: User Login
|
|
190
|
+
- #12: Event Listing
|
|
191
|
+
|
|
192
|
+
[etc.]
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
2. **Update Master Report**
|
|
196
|
+
Add to `docs/replicate/REPLICATION_ANALYSIS.md`:
|
|
197
|
+
- Link to GitHub issues
|
|
198
|
+
- Implementation roadmap
|
|
199
|
+
- Next steps for development
|
|
200
|
+
|
|
201
|
+
3. **Create Developer Guide**
|
|
202
|
+
Generate `docs/replicate/DEVELOPER_GUIDE.md`:
|
|
203
|
+
- How to pick up an issue
|
|
204
|
+
- Workflow: spec → design → implement → test
|
|
205
|
+
- Where to find reference materials
|
|
206
|
+
- How to use discovery artifacts
|
|
207
|
+
|
|
208
|
+
## Output Artifacts
|
|
209
|
+
|
|
210
|
+
After completing this workflow, you should have:
|
|
211
|
+
|
|
212
|
+
1. **GitHub Issues**
|
|
213
|
+
- One issue per feature/use case
|
|
214
|
+
- Properly labeled and prioritized
|
|
215
|
+
- With dependencies linked
|
|
216
|
+
- Assigned to milestones
|
|
217
|
+
|
|
218
|
+
2. **Documentation**
|
|
219
|
+
- `docs/replicate/IMPLEMENTATION_ROADMAP.md` - Phased implementation plan
|
|
220
|
+
- `docs/replicate/GITHUB_ISSUES.md` - Index of all created issues
|
|
221
|
+
- `docs/replicate/DEVELOPER_GUIDE.md` - How to work with issues
|
|
222
|
+
|
|
223
|
+
3. **Project Organization**
|
|
224
|
+
- GitHub milestones created
|
|
225
|
+
- Project board set up (optional)
|
|
226
|
+
- Issues organized and ready for work
|
|
227
|
+
|
|
228
|
+
## Issue Labeling Strategy
|
|
229
|
+
|
|
230
|
+
Use consistent labels:
|
|
231
|
+
- **Type**: `feature`, `bug`, `enhancement`, `documentation`
|
|
232
|
+
- **Priority**: `high-priority`, `medium-priority`, `low-priority`
|
|
233
|
+
- **Component**: `authentication`, `ui`, `api`, `database`, `navigation`
|
|
234
|
+
- **Status**: `needs-spec`, `needs-design`, `ready-for-implementation`, `blocked`
|
|
235
|
+
- **Phase**: `foundation`, `core`, `secondary`, `polish`
|
|
236
|
+
|
|
237
|
+
## Best Practices
|
|
238
|
+
|
|
239
|
+
1. **Keep Issues Focused**: One feature per issue, not too broad
|
|
240
|
+
2. **Include Context**: Link to discovery docs and screenshots
|
|
241
|
+
3. **Clear Acceptance Criteria**: Make it obvious when done
|
|
242
|
+
4. **Realistic Scope**: Issues should be completable in reasonable time
|
|
243
|
+
5. **Update Dependencies**: Keep dependency links current
|
|
244
|
+
6. **Use Templates**: Consistent issue format helps clarity
|
|
245
|
+
|
|
246
|
+
## Common Patterns
|
|
247
|
+
|
|
248
|
+
### Foundation Issue Example
|
|
249
|
+
```markdown
|
|
250
|
+
Title: Set Up Database Schema for User Management
|
|
251
|
+
|
|
252
|
+
## User Story
|
|
253
|
+
As a developer, I want a well-designed database schema so that I can implement user-related features.
|
|
254
|
+
|
|
255
|
+
## Description
|
|
256
|
+
Design and implement the database schema for user management based on the discovery analysis.
|
|
257
|
+
|
|
258
|
+
## Technical Requirements
|
|
259
|
+
- User table with fields: id, email, password_hash, name, created_at, updated_at
|
|
260
|
+
- Profile table with additional user information
|
|
261
|
+
- Proper indexes and constraints
|
|
262
|
+
- Migration scripts
|
|
263
|
+
|
|
264
|
+
## Acceptance Criteria
|
|
265
|
+
- [ ] Database schema designed and documented
|
|
266
|
+
- [ ] Migration scripts created
|
|
267
|
+
- [ ] Schema matches requirements from discovery
|
|
268
|
+
- [ ] Indexes added for performance
|
|
269
|
+
- [ ] Foreign keys and constraints properly set
|
|
270
|
+
|
|
271
|
+
## Related Issues
|
|
272
|
+
- Blocks: #10 (User Registration)
|
|
273
|
+
- Blocks: #11 (User Login)
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Feature Issue Example
|
|
277
|
+
```markdown
|
|
278
|
+
Title: Implement Event Listing Page
|
|
279
|
+
|
|
280
|
+
## User Story
|
|
281
|
+
As a user, I want to see a list of upcoming events so that I can find events to attend.
|
|
282
|
+
|
|
283
|
+
## Description
|
|
284
|
+
Implement the event listing page showing all upcoming events with filtering and search capabilities.
|
|
285
|
+
|
|
286
|
+
## Use Case Reference
|
|
287
|
+
See: `docs/replicate/reports/use-cases.md` - UC-15
|
|
288
|
+
|
|
289
|
+
## Screenshots
|
|
290
|
+

|
|
291
|
+
|
|
292
|
+
## Technical Requirements
|
|
293
|
+
- **Components**: EventCard, EventList, FilterBar, SearchBox
|
|
294
|
+
- **Data Models**: Event (id, title, date, location, description)
|
|
295
|
+
- **API Endpoints**: GET /api/events?filter=upcoming&search=query
|
|
296
|
+
- **Dependencies**: React, date-fns for date formatting
|
|
297
|
+
|
|
298
|
+
## Acceptance Criteria
|
|
299
|
+
- [ ] Event list displays all upcoming events
|
|
300
|
+
- [ ] Events can be filtered by date, location, category
|
|
301
|
+
- [ ] Search functionality works
|
|
302
|
+
- [ ] Pagination implemented (20 events per page)
|
|
303
|
+
- [ ] Responsive design matches screenshots
|
|
304
|
+
- [ ] Loading and error states handled
|
|
305
|
+
|
|
306
|
+
## Implementation Notes
|
|
307
|
+
- Use infinite scroll or pagination
|
|
308
|
+
- Cache event data for performance
|
|
309
|
+
- Consider using React Query for data fetching
|
|
310
|
+
|
|
311
|
+
## Related Issues
|
|
312
|
+
- Depends on: #5 (Event Data Model)
|
|
313
|
+
- Depends on: #8 (Event API Endpoints)
|
|
314
|
+
- Related to: #16 (Event Detail Page)
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
## Next Steps
|
|
318
|
+
|
|
319
|
+
After completing this workflow, let the user verify and once in agreement, recommend that the product-building workflows be started with prep-issue, spec, design, implement phases
|