@epiccontext/mcp 0.1.17 → 0.1.18
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/cli/files.d.ts.map +1 -1
- package/dist/cli/files.js +356 -0
- package/dist/cli/files.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/cli/files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,EAAE,CAmCjE;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,GAAE,YAAiB,GACzB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAsC9D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/cli/files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,EAAE,CAmCjE;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,GAAE,YAAiB,GACzB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAsC9D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAsgC7D;AA4BD;;GAEG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAO5D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAOpD"}
|
package/dist/cli/files.js
CHANGED
|
@@ -617,6 +617,362 @@ CORRECT: Always specify link type
|
|
|
617
617
|
{ "id": "link-1", "sourceId": "a", "targetId": "b", "type": "action" }
|
|
618
618
|
\`\`\`
|
|
619
619
|
|
|
620
|
+
### Development Section Blocks (Epic → Story → Task)
|
|
621
|
+
|
|
622
|
+
The development section uses a hierarchical structure to plan and track work. This creates a clear flow from high-level initiatives down to specific implementation tasks.
|
|
623
|
+
|
|
624
|
+
#### Hierarchy Flow
|
|
625
|
+
|
|
626
|
+
\`\`\`
|
|
627
|
+
Epic (Large initiative)
|
|
628
|
+
└── User Story (User-facing feature)
|
|
629
|
+
└── Task / Agent Plan (Technical implementation)
|
|
630
|
+
\`\`\`
|
|
631
|
+
|
|
632
|
+
**How AI/Developers Should Use This:**
|
|
633
|
+
1. **Product Owner/User** creates Epics for major initiatives
|
|
634
|
+
2. **Product Owner/User** breaks Epics into User Stories
|
|
635
|
+
3. **AI Agent/Developer** reads Stories and creates Tasks with implementation plans
|
|
636
|
+
4. **AI Agent/Developer** executes Tasks and updates outcomes
|
|
637
|
+
|
|
638
|
+
---
|
|
639
|
+
|
|
640
|
+
#### Epic Block
|
|
641
|
+
|
|
642
|
+
An Epic represents a large body of work that delivers significant value. It groups related User Stories.
|
|
643
|
+
|
|
644
|
+
**Required Fields:**
|
|
645
|
+
- \`summary\` - One-line description
|
|
646
|
+
- \`status\` - todo, in_progress, done
|
|
647
|
+
|
|
648
|
+
**Key Fields:**
|
|
649
|
+
- \`description\` - Detailed explanation
|
|
650
|
+
- \`priority\` - highest, high, medium, low, lowest
|
|
651
|
+
- \`story_refs\` - Links to child User Stories
|
|
652
|
+
- \`impact_score\` / \`effort_score\` - 1-5 scale for prioritization
|
|
653
|
+
- \`start_date\` / \`due_date\` - Timeline
|
|
654
|
+
- \`labels\` - Comma-separated tags
|
|
655
|
+
|
|
656
|
+
**Example:**
|
|
657
|
+
\`\`\`markdown
|
|
658
|
+
---
|
|
659
|
+
type: epic
|
|
660
|
+
section: development
|
|
661
|
+
key: user-authentication
|
|
662
|
+
name: User Authentication System
|
|
663
|
+
status: draft
|
|
664
|
+
priority: high
|
|
665
|
+
start_date: 2025-01-15
|
|
666
|
+
due_date: 2025-02-28
|
|
667
|
+
labels: security, mvp, phase-1
|
|
668
|
+
story_refs:
|
|
669
|
+
- email-login
|
|
670
|
+
- oauth-integration
|
|
671
|
+
- password-reset
|
|
672
|
+
---
|
|
673
|
+
|
|
674
|
+
# User Authentication System
|
|
675
|
+
|
|
676
|
+
Implement a complete authentication system allowing users to securely access their accounts.
|
|
677
|
+
|
|
678
|
+
## Summary
|
|
679
|
+
Build secure user authentication with email/password and OAuth support.
|
|
680
|
+
|
|
681
|
+
## Description
|
|
682
|
+
This epic covers all authentication-related features including registration, login, logout, password management, and third-party OAuth integration. The goal is to provide a frictionless yet secure authentication experience.
|
|
683
|
+
|
|
684
|
+
### Goals
|
|
685
|
+
- Enable secure user registration with email verification
|
|
686
|
+
- Support login via email/password and OAuth (Google, GitHub)
|
|
687
|
+
- Implement password reset flow with secure tokens
|
|
688
|
+
- Add session management with JWT
|
|
689
|
+
|
|
690
|
+
### Success Criteria
|
|
691
|
+
- Users can create accounts and verify email
|
|
692
|
+
- Login works with email/password and OAuth providers
|
|
693
|
+
- Password reset emails arrive within 30 seconds
|
|
694
|
+
- Sessions expire after 24 hours of inactivity
|
|
695
|
+
|
|
696
|
+
### Out of Scope
|
|
697
|
+
- Two-factor authentication (planned for Phase 2)
|
|
698
|
+
- Social login beyond Google/GitHub
|
|
699
|
+
\`\`\`
|
|
700
|
+
|
|
701
|
+
---
|
|
702
|
+
|
|
703
|
+
#### User Story Block
|
|
704
|
+
|
|
705
|
+
A User Story describes a feature from the user's perspective. It belongs to an Epic and can have Tasks.
|
|
706
|
+
|
|
707
|
+
**Required Fields:**
|
|
708
|
+
- \`summary\` - Brief description
|
|
709
|
+
- \`status\` - todo, in_progress, in_review, done
|
|
710
|
+
|
|
711
|
+
**Key Fields:**
|
|
712
|
+
- \`user_story\` - "As a [role], I want [goal], so that [benefit]" format
|
|
713
|
+
- \`acceptance_criteria\` - Testable conditions (Given/When/Then)
|
|
714
|
+
- \`epic_ref\` - Link to parent Epic
|
|
715
|
+
- \`story_points\` - 1, 2, 3, 5, 8, 13, 21 (Fibonacci)
|
|
716
|
+
- \`priority\` - highest, high, medium, low, lowest
|
|
717
|
+
- \`impact_score\` / \`effort_score\` - 1-5 scale
|
|
718
|
+
- \`sprint\` - Sprint assignment
|
|
719
|
+
|
|
720
|
+
**Example:**
|
|
721
|
+
\`\`\`markdown
|
|
722
|
+
---
|
|
723
|
+
type: user_story
|
|
724
|
+
section: development
|
|
725
|
+
key: email-login
|
|
726
|
+
name: Email Login
|
|
727
|
+
status: draft
|
|
728
|
+
priority: high
|
|
729
|
+
story_points: 5
|
|
730
|
+
impact_score: 5
|
|
731
|
+
effort_score: 3
|
|
732
|
+
epic_ref: user-authentication
|
|
733
|
+
sprint: Sprint 1
|
|
734
|
+
---
|
|
735
|
+
|
|
736
|
+
# Email Login
|
|
737
|
+
|
|
738
|
+
Allow users to securely log in with their email and password.
|
|
739
|
+
|
|
740
|
+
## Summary
|
|
741
|
+
Implement email/password authentication with proper security measures.
|
|
742
|
+
|
|
743
|
+
## User Story
|
|
744
|
+
As a registered user, I want to log in with my email and password, so that I can access my account securely and quickly.
|
|
745
|
+
|
|
746
|
+
## Description
|
|
747
|
+
Users need a fast and secure way to access their accounts. The login form should validate input, show helpful error messages, and redirect to the dashboard on success.
|
|
748
|
+
|
|
749
|
+
## Acceptance Criteria
|
|
750
|
+
|
|
751
|
+
### Scenario: Successful login
|
|
752
|
+
- Given I am on the login page
|
|
753
|
+
- When I enter a valid email and correct password
|
|
754
|
+
- Then I am redirected to the dashboard
|
|
755
|
+
- And I see a welcome message with my name
|
|
756
|
+
|
|
757
|
+
### Scenario: Invalid credentials
|
|
758
|
+
- Given I am on the login page
|
|
759
|
+
- When I enter an invalid email or wrong password
|
|
760
|
+
- Then I see an error message "Invalid email or password"
|
|
761
|
+
- And I remain on the login page
|
|
762
|
+
- And the password field is cleared
|
|
763
|
+
|
|
764
|
+
### Scenario: Rate limiting
|
|
765
|
+
- Given I have failed login 5 times in 5 minutes
|
|
766
|
+
- When I try to login again
|
|
767
|
+
- Then I see "Too many attempts. Please try again in 15 minutes"
|
|
768
|
+
|
|
769
|
+
## Technical Notes
|
|
770
|
+
- Use bcrypt for password hashing (cost factor 12)
|
|
771
|
+
- Implement rate limiting: 5 attempts per 5 minutes per IP
|
|
772
|
+
- Generate JWT with 24h expiry
|
|
773
|
+
- Store refresh token in httpOnly cookie
|
|
774
|
+
\`\`\`
|
|
775
|
+
|
|
776
|
+
---
|
|
777
|
+
|
|
778
|
+
#### Task / Agent Plan Block
|
|
779
|
+
|
|
780
|
+
A Task contains the technical implementation plan. AI coding agents (Claude Code, Cursor, etc.) should create Tasks when planning work.
|
|
781
|
+
|
|
782
|
+
**Required Fields:**
|
|
783
|
+
- \`description\` - What needs to be done
|
|
784
|
+
- \`status\` - planned, todo, in_progress, in_review, done, abandoned
|
|
785
|
+
|
|
786
|
+
**Key Fields:**
|
|
787
|
+
- \`story_ref\` - Link to parent User Story
|
|
788
|
+
- \`plan_steps\` - Step-by-step implementation plan
|
|
789
|
+
- \`agent_source\` - manual, claude_code, cursor, copilot, windsurf, aider, other_ai
|
|
790
|
+
- \`files_affected\` - List of files to create/modify
|
|
791
|
+
- \`codebase_context\` - Relevant architecture notes
|
|
792
|
+
- \`technical_notes\` - Implementation details
|
|
793
|
+
- \`dependencies\` - Prerequisites or packages needed
|
|
794
|
+
- \`estimated_hours\` - Time estimate
|
|
795
|
+
- \`outcome\` - Results after completion
|
|
796
|
+
|
|
797
|
+
**Example (AI Agent Plan):**
|
|
798
|
+
\`\`\`markdown
|
|
799
|
+
---
|
|
800
|
+
type: task
|
|
801
|
+
section: development
|
|
802
|
+
key: implement-login-api
|
|
803
|
+
name: Implement Login API Endpoint
|
|
804
|
+
status: planned
|
|
805
|
+
priority: high
|
|
806
|
+
agent_source: claude_code
|
|
807
|
+
story_ref: email-login
|
|
808
|
+
estimated_hours: 4
|
|
809
|
+
---
|
|
810
|
+
|
|
811
|
+
# Implement Login API Endpoint
|
|
812
|
+
|
|
813
|
+
Create the POST /api/auth/login endpoint that validates credentials and returns JWT tokens.
|
|
814
|
+
|
|
815
|
+
## Description
|
|
816
|
+
Implement the login API endpoint with proper validation, rate limiting, and token generation.
|
|
817
|
+
|
|
818
|
+
## Implementation Plan
|
|
819
|
+
|
|
820
|
+
### Step 1: Create Login Route Handler
|
|
821
|
+
Create \`app/api/auth/login/route.ts\` with POST handler:
|
|
822
|
+
- Accept email and password in request body
|
|
823
|
+
- Validate input format using zod schema
|
|
824
|
+
- Return 400 for invalid input with specific error messages
|
|
825
|
+
|
|
826
|
+
### Step 2: Implement User Lookup
|
|
827
|
+
Query the users table by email:
|
|
828
|
+
- Use Supabase client with service role for server-side
|
|
829
|
+
- Return generic "Invalid credentials" to prevent email enumeration
|
|
830
|
+
- Handle case-insensitive email matching
|
|
831
|
+
|
|
832
|
+
### Step 3: Password Verification
|
|
833
|
+
Compare provided password with stored hash:
|
|
834
|
+
- Use bcrypt.compare() for timing-safe comparison
|
|
835
|
+
- Log failed attempts for security monitoring
|
|
836
|
+
- Increment rate limit counter on failure
|
|
837
|
+
|
|
838
|
+
### Step 4: Generate JWT Tokens
|
|
839
|
+
On successful authentication:
|
|
840
|
+
- Generate access token (24h expiry) with user ID and email
|
|
841
|
+
- Generate refresh token (7d expiry) stored in httpOnly cookie
|
|
842
|
+
- Include minimal claims to reduce token size
|
|
843
|
+
|
|
844
|
+
### Step 5: Implement Rate Limiting
|
|
845
|
+
Add rate limiting middleware:
|
|
846
|
+
- Use Redis or in-memory store for attempt tracking
|
|
847
|
+
- Key by IP address + email combination
|
|
848
|
+
- Block after 5 failed attempts for 15 minutes
|
|
849
|
+
- Return 429 with Retry-After header
|
|
850
|
+
|
|
851
|
+
### Step 6: Add Tests
|
|
852
|
+
Create \`app/api/auth/login/route.test.ts\`:
|
|
853
|
+
- Test successful login returns tokens
|
|
854
|
+
- Test invalid email format returns 400
|
|
855
|
+
- Test wrong password returns 401
|
|
856
|
+
- Test rate limiting blocks after 5 attempts
|
|
857
|
+
|
|
858
|
+
## Files Affected
|
|
859
|
+
- \`app/api/auth/login/route.ts\` (create)
|
|
860
|
+
- \`lib/auth/jwt.ts\` (create)
|
|
861
|
+
- \`lib/auth/password.ts\` (create)
|
|
862
|
+
- \`lib/middleware/rate-limit.ts\` (create)
|
|
863
|
+
- \`app/api/auth/login/route.test.ts\` (create)
|
|
864
|
+
|
|
865
|
+
## Codebase Context
|
|
866
|
+
- Using Next.js 14 App Router
|
|
867
|
+
- Supabase for database and auth
|
|
868
|
+
- JWT library: jose
|
|
869
|
+
- Password hashing: bcrypt
|
|
870
|
+
- Validation: zod
|
|
871
|
+
|
|
872
|
+
## Dependencies
|
|
873
|
+
- jose (JWT handling)
|
|
874
|
+
- bcrypt (password hashing)
|
|
875
|
+
- zod (validation)
|
|
876
|
+
|
|
877
|
+
## Technical Notes
|
|
878
|
+
- Follow existing API patterns in \`app/api/\` folder
|
|
879
|
+
- Use \`@/lib/supabase/server\` for database access
|
|
880
|
+
- Error responses should match the ErrorResponse type in \`types/api.ts\`
|
|
881
|
+
\`\`\`
|
|
882
|
+
|
|
883
|
+
---
|
|
884
|
+
|
|
885
|
+
#### Roadmap Block
|
|
886
|
+
|
|
887
|
+
A Roadmap provides a timeline view of Epics across time periods (quarters, months, sprints).
|
|
888
|
+
|
|
889
|
+
**Key Fields:**
|
|
890
|
+
- \`description\` - Purpose of this roadmap
|
|
891
|
+
- \`timeline\` - Visual timeline data with columns and epic placements
|
|
892
|
+
- \`notes\` - Additional context, risks, assumptions
|
|
893
|
+
|
|
894
|
+
**Timeline Structure:**
|
|
895
|
+
\`\`\`json
|
|
896
|
+
{
|
|
897
|
+
"columns": [
|
|
898
|
+
{ "id": "q1-2025", "name": "Q1 2025", "period": "quarter" },
|
|
899
|
+
{ "id": "q2-2025", "name": "Q2 2025", "period": "quarter" }
|
|
900
|
+
],
|
|
901
|
+
"items": [
|
|
902
|
+
{
|
|
903
|
+
"epicRef": "user-authentication",
|
|
904
|
+
"startColumn": "q1-2025",
|
|
905
|
+
"spanColumns": 1,
|
|
906
|
+
"row": 0
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"settings": { "defaultPeriod": "quarter" }
|
|
910
|
+
}
|
|
911
|
+
\`\`\`
|
|
912
|
+
|
|
913
|
+
---
|
|
914
|
+
|
|
915
|
+
#### Workflow: From User Request to Implementation
|
|
916
|
+
|
|
917
|
+
**1. User/Product Owner Creates Epic:**
|
|
918
|
+
\`\`\`
|
|
919
|
+
"We need user authentication for the MVP"
|
|
920
|
+
→ Create Epic: user-authentication
|
|
921
|
+
→ Set priority: high
|
|
922
|
+
→ Set dates: Q1 2025
|
|
923
|
+
\`\`\`
|
|
924
|
+
|
|
925
|
+
**2. User/Product Owner Breaks Down Stories:**
|
|
926
|
+
\`\`\`
|
|
927
|
+
Epic: user-authentication
|
|
928
|
+
→ Story: email-login (5 points)
|
|
929
|
+
→ Story: oauth-integration (8 points)
|
|
930
|
+
→ Story: password-reset (3 points)
|
|
931
|
+
\`\`\`
|
|
932
|
+
|
|
933
|
+
**3. AI Agent Reads Story and Plans:**
|
|
934
|
+
\`\`\`
|
|
935
|
+
AI reads: email-login story
|
|
936
|
+
→ Creates Task: implement-login-api (4 hours)
|
|
937
|
+
→ Creates Task: build-login-form (3 hours)
|
|
938
|
+
→ Creates Task: add-login-tests (2 hours)
|
|
939
|
+
\`\`\`
|
|
940
|
+
|
|
941
|
+
**4. AI Agent Executes and Documents:**
|
|
942
|
+
\`\`\`
|
|
943
|
+
Task: implement-login-api
|
|
944
|
+
→ Status: in_progress
|
|
945
|
+
→ [AI implements code]
|
|
946
|
+
→ Status: done
|
|
947
|
+
→ Outcome: "Completed. Added rate limiting as discussed."
|
|
948
|
+
\`\`\`
|
|
949
|
+
|
|
950
|
+
---
|
|
951
|
+
|
|
952
|
+
#### Best Practices for AI Agents
|
|
953
|
+
|
|
954
|
+
1. **Read the Story First**: Before creating tasks, fully understand the user story and acceptance criteria.
|
|
955
|
+
|
|
956
|
+
2. **Break Down Thoughtfully**: Create tasks that are:
|
|
957
|
+
- Independently testable
|
|
958
|
+
- 2-8 hours of work each
|
|
959
|
+
- Clearly scoped with specific files
|
|
960
|
+
|
|
961
|
+
3. **Document Your Plan**: In \`plan_steps\`, explain:
|
|
962
|
+
- What you'll do in each step
|
|
963
|
+
- Why you're making certain choices
|
|
964
|
+
- What files you'll touch
|
|
965
|
+
|
|
966
|
+
4. **Track Codebase Context**: Note relevant:
|
|
967
|
+
- Existing patterns to follow
|
|
968
|
+
- Related code to reference
|
|
969
|
+
- Constraints or dependencies
|
|
970
|
+
|
|
971
|
+
5. **Update Outcomes**: After completing a task, document:
|
|
972
|
+
- What was actually done
|
|
973
|
+
- Any deviations from the plan
|
|
974
|
+
- Issues encountered and how they were resolved
|
|
975
|
+
|
|
620
976
|
## Block References
|
|
621
977
|
|
|
622
978
|
Some blocks can reference other blocks using reference fields in frontmatter:
|
package/dist/cli/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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