@epiccontext/mcp 0.1.18 → 0.1.19
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 +371 -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,CAy3C7D;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
|
@@ -203,6 +203,9 @@ Your content goes here after the frontmatter...
|
|
|
203
203
|
|
|
204
204
|
### technical/
|
|
205
205
|
- \`text\` - Architecture, stack overview
|
|
206
|
+
- \`frontend_stack\` - Frontend technology choices
|
|
207
|
+
- \`backend_stack\` - Backend technology choices
|
|
208
|
+
- \`architecture_diagram\` - C4 model system architecture diagrams
|
|
206
209
|
- \`integration\` - Third-party integrations
|
|
207
210
|
- \`constraint\` - Technical constraints
|
|
208
211
|
|
|
@@ -617,6 +620,374 @@ CORRECT: Always specify link type
|
|
|
617
620
|
{ "id": "link-1", "sourceId": "a", "targetId": "b", "type": "action" }
|
|
618
621
|
\`\`\`
|
|
619
622
|
|
|
623
|
+
### Architecture Diagram Block (C4 Model)
|
|
624
|
+
|
|
625
|
+
Architecture diagram blocks document system architecture visually using the C4 model (Context, Container, Component). They use embedded JSON in a \`sync:data\` block with \`elements\` and \`connections\`.
|
|
626
|
+
|
|
627
|
+
#### Purpose
|
|
628
|
+
- Visualize system architecture at different abstraction levels
|
|
629
|
+
- Show how systems, containers, and components interact
|
|
630
|
+
- Document communication patterns and technologies
|
|
631
|
+
- Provide clear diagrams for different audiences (technical, leadership)
|
|
632
|
+
|
|
633
|
+
#### C4 Model Levels
|
|
634
|
+
|
|
635
|
+
| Level | Purpose | Shows | Audience |
|
|
636
|
+
|-------|---------|-------|----------|
|
|
637
|
+
| **Context** | Big picture | Systems + external actors | Everyone |
|
|
638
|
+
| **Container** | Applications & data stores | Apps, databases, services within your system | Technical + Leadership |
|
|
639
|
+
| **Component** | Inside a container | Components, modules, classes | Developers, Architects |
|
|
640
|
+
|
|
641
|
+
#### Data Structure
|
|
642
|
+
|
|
643
|
+
The sync:data block contains:
|
|
644
|
+
|
|
645
|
+
\`\`\`json
|
|
646
|
+
{
|
|
647
|
+
"elements": [ ... ], // Systems, containers, components, people
|
|
648
|
+
"connections": [ ... ], // Communication paths between elements
|
|
649
|
+
"legend": [ ... ] // Optional color legend
|
|
650
|
+
}
|
|
651
|
+
\`\`\`
|
|
652
|
+
|
|
653
|
+
#### Element Structure (ArchitectureElement)
|
|
654
|
+
|
|
655
|
+
| Property | Required | Description |
|
|
656
|
+
|----------|----------|-------------|
|
|
657
|
+
| \`id\` | Yes | Unique identifier (kebab-case, e.g., "web-app") |
|
|
658
|
+
| \`label\` | Yes | Display name shown in the diagram |
|
|
659
|
+
| \`type\` | Yes | Element type (see types below) |
|
|
660
|
+
| \`description\` | No | Brief description of what this element does |
|
|
661
|
+
| \`technology\` | No | Technology stack (e.g., "React", "Node.js", "PostgreSQL") |
|
|
662
|
+
| \`isExternal\` | No | True if outside your system boundary |
|
|
663
|
+
| \`position\` | Yes | Visual position: \`{ "x": number, "y": number }\` |
|
|
664
|
+
| \`color\` | No | Override default color (hex code) |
|
|
665
|
+
| \`icon\` | No | Lucide icon name for visual representation |
|
|
666
|
+
|
|
667
|
+
#### Element Types
|
|
668
|
+
|
|
669
|
+
| Type | Default Color | Description | Visual |
|
|
670
|
+
|------|--------------|-------------|--------|
|
|
671
|
+
| \`system\` | #438DD5 (blue) | Software system (yours or external) | Large box |
|
|
672
|
+
| \`container\` | #438DD5 (blue) | Application, service, database | Medium box |
|
|
673
|
+
| \`component\` | #85BBF0 (light blue) | Module, class, or logical component | Small box |
|
|
674
|
+
| \`person\` | #08427B (dark blue) | User, actor, or role | Person shape |
|
|
675
|
+
| \`database\` | #438DD5 (blue) | Data store (SQL, NoSQL, file) | Cylinder |
|
|
676
|
+
| \`queue\` | #438DD5 (blue) | Message queue, event stream | Rounded box |
|
|
677
|
+
| \`external\` | #999999 (gray) | External system you don't control | Dashed box |
|
|
678
|
+
|
|
679
|
+
#### Connection Structure (ArchitectureConnection)
|
|
680
|
+
|
|
681
|
+
| Property | Required | Description |
|
|
682
|
+
|----------|----------|-------------|
|
|
683
|
+
| \`id\` | Yes | Unique ID (e.g., "conn-web-to-api") |
|
|
684
|
+
| \`sourceId\` | Yes | ID of the source element |
|
|
685
|
+
| \`targetId\` | Yes | ID of the target element |
|
|
686
|
+
| \`label\` | No | Description of what flows (e.g., "REST API", "Events") |
|
|
687
|
+
| \`communicationType\` | No | Type of communication (see below) |
|
|
688
|
+
| \`technology\` | No | Protocol or technology (e.g., "HTTPS", "gRPC", "WebSocket") |
|
|
689
|
+
| \`description\` | No | Additional details about the connection |
|
|
690
|
+
|
|
691
|
+
#### Communication Types
|
|
692
|
+
|
|
693
|
+
| Type | Arrow Style | Description |
|
|
694
|
+
|------|-------------|-------------|
|
|
695
|
+
| \`sync\` | Solid → | Synchronous request/response |
|
|
696
|
+
| \`async\` | Dashed → | Asynchronous messaging |
|
|
697
|
+
| \`read\` | Solid → (read) | Data read operation |
|
|
698
|
+
| \`write\` | Solid → (write) | Data write operation |
|
|
699
|
+
| \`bidirectional\` | ↔ | Two-way communication |
|
|
700
|
+
|
|
701
|
+
#### Complete Example
|
|
702
|
+
|
|
703
|
+
\`\`\`markdown
|
|
704
|
+
---
|
|
705
|
+
type: architecture_diagram
|
|
706
|
+
section: technical
|
|
707
|
+
key: system-context
|
|
708
|
+
name: System Context Diagram
|
|
709
|
+
status: draft
|
|
710
|
+
level: context
|
|
711
|
+
audience: non-technical
|
|
712
|
+
---
|
|
713
|
+
|
|
714
|
+
# System Context Diagram
|
|
715
|
+
|
|
716
|
+
High-level overview of how our application fits into the broader ecosystem.
|
|
717
|
+
|
|
718
|
+
## Description
|
|
719
|
+
This diagram shows our EpicContext application and how it interacts with external users and systems.
|
|
720
|
+
|
|
721
|
+
<!-- sync:data -->
|
|
722
|
+
\\\`\`\`json
|
|
723
|
+
{
|
|
724
|
+
"elements": [
|
|
725
|
+
{
|
|
726
|
+
"id": "user",
|
|
727
|
+
"label": "Product Team",
|
|
728
|
+
"type": "person",
|
|
729
|
+
"description": "Uses EpicContext to manage product documentation",
|
|
730
|
+
"position": { "x": 400, "y": 50 }
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"id": "epiccontext",
|
|
734
|
+
"label": "EpicContext",
|
|
735
|
+
"type": "system",
|
|
736
|
+
"description": "SaaS platform for managing design context documentation",
|
|
737
|
+
"technology": "Next.js, Supabase",
|
|
738
|
+
"position": { "x": 400, "y": 250 }
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"id": "ai-agents",
|
|
742
|
+
"label": "AI Coding Agents",
|
|
743
|
+
"type": "person",
|
|
744
|
+
"description": "Claude Code, Cursor, etc. that consume context",
|
|
745
|
+
"position": { "x": 700, "y": 50 }
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"id": "supabase",
|
|
749
|
+
"label": "Supabase",
|
|
750
|
+
"type": "external",
|
|
751
|
+
"description": "Backend-as-a-Service for auth and database",
|
|
752
|
+
"technology": "PostgreSQL",
|
|
753
|
+
"isExternal": true,
|
|
754
|
+
"position": { "x": 400, "y": 450 }
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"id": "clerk",
|
|
758
|
+
"label": "Clerk",
|
|
759
|
+
"type": "external",
|
|
760
|
+
"description": "Authentication provider",
|
|
761
|
+
"isExternal": true,
|
|
762
|
+
"position": { "x": 150, "y": 250 }
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"id": "mcp-server",
|
|
766
|
+
"label": "MCP Server",
|
|
767
|
+
"type": "system",
|
|
768
|
+
"description": "Local server that syncs context to codebase",
|
|
769
|
+
"technology": "Node.js",
|
|
770
|
+
"position": { "x": 700, "y": 250 }
|
|
771
|
+
}
|
|
772
|
+
],
|
|
773
|
+
"connections": [
|
|
774
|
+
{
|
|
775
|
+
"id": "conn-user-to-app",
|
|
776
|
+
"sourceId": "user",
|
|
777
|
+
"targetId": "epiccontext",
|
|
778
|
+
"label": "Manages documentation",
|
|
779
|
+
"communicationType": "sync",
|
|
780
|
+
"technology": "HTTPS"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"id": "conn-app-to-supabase",
|
|
784
|
+
"sourceId": "epiccontext",
|
|
785
|
+
"targetId": "supabase",
|
|
786
|
+
"label": "Stores data",
|
|
787
|
+
"communicationType": "sync",
|
|
788
|
+
"technology": "PostgreSQL/REST"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "conn-app-to-clerk",
|
|
792
|
+
"sourceId": "epiccontext",
|
|
793
|
+
"targetId": "clerk",
|
|
794
|
+
"label": "Authenticates users",
|
|
795
|
+
"communicationType": "sync",
|
|
796
|
+
"technology": "HTTPS"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"id": "conn-app-to-mcp",
|
|
800
|
+
"sourceId": "epiccontext",
|
|
801
|
+
"targetId": "mcp-server",
|
|
802
|
+
"label": "Syncs via API",
|
|
803
|
+
"communicationType": "sync",
|
|
804
|
+
"technology": "REST API"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"id": "conn-ai-to-mcp",
|
|
808
|
+
"sourceId": "ai-agents",
|
|
809
|
+
"targetId": "mcp-server",
|
|
810
|
+
"label": "Reads context",
|
|
811
|
+
"communicationType": "read",
|
|
812
|
+
"technology": "MCP Protocol"
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
"legend": [
|
|
816
|
+
{ "color": "#08427B", "label": "Person/User" },
|
|
817
|
+
{ "color": "#438DD5", "label": "Our System" },
|
|
818
|
+
{ "color": "#999999", "label": "External System" }
|
|
819
|
+
]
|
|
820
|
+
}
|
|
821
|
+
\\\`\`\`
|
|
822
|
+
<!-- /sync:data -->
|
|
823
|
+
\`\`\`
|
|
824
|
+
|
|
825
|
+
#### Container Level Example
|
|
826
|
+
|
|
827
|
+
\`\`\`markdown
|
|
828
|
+
---
|
|
829
|
+
type: architecture_diagram
|
|
830
|
+
section: technical
|
|
831
|
+
key: container-diagram
|
|
832
|
+
name: Container Diagram
|
|
833
|
+
status: draft
|
|
834
|
+
level: container
|
|
835
|
+
audience: technical
|
|
836
|
+
---
|
|
837
|
+
|
|
838
|
+
# Container Diagram
|
|
839
|
+
|
|
840
|
+
Applications and data stores that make up EpicContext.
|
|
841
|
+
|
|
842
|
+
<!-- sync:data -->
|
|
843
|
+
\\\`\`\`json
|
|
844
|
+
{
|
|
845
|
+
"elements": [
|
|
846
|
+
{
|
|
847
|
+
"id": "web-app",
|
|
848
|
+
"label": "Web Application",
|
|
849
|
+
"type": "container",
|
|
850
|
+
"description": "SPA for managing context",
|
|
851
|
+
"technology": "Next.js 14, React, TypeScript",
|
|
852
|
+
"position": { "x": 200, "y": 100 }
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"id": "api",
|
|
856
|
+
"label": "API Routes",
|
|
857
|
+
"type": "container",
|
|
858
|
+
"description": "Server-side API endpoints",
|
|
859
|
+
"technology": "Next.js API Routes",
|
|
860
|
+
"position": { "x": 500, "y": 100 }
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "database",
|
|
864
|
+
"label": "Database",
|
|
865
|
+
"type": "database",
|
|
866
|
+
"description": "Stores all application data",
|
|
867
|
+
"technology": "PostgreSQL (Supabase)",
|
|
868
|
+
"position": { "x": 500, "y": 300 }
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"id": "file-storage",
|
|
872
|
+
"label": "File Storage",
|
|
873
|
+
"type": "database",
|
|
874
|
+
"description": "Stores uploaded assets",
|
|
875
|
+
"technology": "Supabase Storage",
|
|
876
|
+
"position": { "x": 200, "y": 300 }
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"id": "mcp-package",
|
|
880
|
+
"label": "MCP Package",
|
|
881
|
+
"type": "container",
|
|
882
|
+
"description": "NPM package for local sync",
|
|
883
|
+
"technology": "Node.js, TypeScript",
|
|
884
|
+
"position": { "x": 750, "y": 200 }
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"connections": [
|
|
888
|
+
{
|
|
889
|
+
"id": "conn-web-to-api",
|
|
890
|
+
"sourceId": "web-app",
|
|
891
|
+
"targetId": "api",
|
|
892
|
+
"label": "API calls",
|
|
893
|
+
"communicationType": "sync",
|
|
894
|
+
"technology": "HTTPS/JSON"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"id": "conn-api-to-db",
|
|
898
|
+
"sourceId": "api",
|
|
899
|
+
"targetId": "database",
|
|
900
|
+
"label": "Queries",
|
|
901
|
+
"communicationType": "bidirectional",
|
|
902
|
+
"technology": "Supabase Client"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "conn-web-to-storage",
|
|
906
|
+
"sourceId": "web-app",
|
|
907
|
+
"targetId": "file-storage",
|
|
908
|
+
"label": "Uploads/Downloads",
|
|
909
|
+
"communicationType": "bidirectional",
|
|
910
|
+
"technology": "Supabase Storage API"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"id": "conn-mcp-to-api",
|
|
914
|
+
"sourceId": "mcp-package",
|
|
915
|
+
"targetId": "api",
|
|
916
|
+
"label": "Syncs context",
|
|
917
|
+
"communicationType": "sync",
|
|
918
|
+
"technology": "REST API"
|
|
919
|
+
}
|
|
920
|
+
]
|
|
921
|
+
}
|
|
922
|
+
\\\`\`\`
|
|
923
|
+
<!-- /sync:data -->
|
|
924
|
+
\`\`\`
|
|
925
|
+
|
|
926
|
+
#### Best Practices
|
|
927
|
+
|
|
928
|
+
1. **Choose the right level:**
|
|
929
|
+
- Start with Context for stakeholder communication
|
|
930
|
+
- Use Container for development planning
|
|
931
|
+
- Use Component for detailed design of complex containers
|
|
932
|
+
|
|
933
|
+
2. **Position elements logically:**
|
|
934
|
+
- Users/actors at top
|
|
935
|
+
- Your system in the middle
|
|
936
|
+
- External dependencies at bottom or sides
|
|
937
|
+
- Space elements ~200-300px apart
|
|
938
|
+
|
|
939
|
+
3. **Label connections clearly:**
|
|
940
|
+
- Use verbs: "Reads data", "Sends events", "Authenticates"
|
|
941
|
+
- Include technology when relevant: "REST API", "gRPC", "WebSocket"
|
|
942
|
+
- Keep labels concise but informative
|
|
943
|
+
|
|
944
|
+
4. **Use consistent colors:**
|
|
945
|
+
- Blue (#438DD5) for your internal systems
|
|
946
|
+
- Gray (#999999) for external systems
|
|
947
|
+
- Dark blue (#08427B) for people/users
|
|
948
|
+
- Add legend for custom colors
|
|
949
|
+
|
|
950
|
+
5. **Include technology details:**
|
|
951
|
+
- For Container level: framework, language, runtime
|
|
952
|
+
- For connections: protocol, message format
|
|
953
|
+
- Helps developers understand the stack
|
|
954
|
+
|
|
955
|
+
6. **Keep diagrams focused:**
|
|
956
|
+
- Context: 3-6 systems maximum
|
|
957
|
+
- Container: 5-10 containers maximum
|
|
958
|
+
- Component: 5-15 components maximum
|
|
959
|
+
- Create multiple diagrams if needed
|
|
960
|
+
|
|
961
|
+
#### Common Mistakes
|
|
962
|
+
|
|
963
|
+
WRONG: Missing positions
|
|
964
|
+
\`\`\`json
|
|
965
|
+
{ "id": "api", "label": "API", "type": "container" }
|
|
966
|
+
\`\`\`
|
|
967
|
+
|
|
968
|
+
CORRECT: Always include positions
|
|
969
|
+
\`\`\`json
|
|
970
|
+
{ "id": "api", "label": "API", "type": "container", "position": { "x": 400, "y": 200 } }
|
|
971
|
+
\`\`\`
|
|
972
|
+
|
|
973
|
+
WRONG: Vague connection labels
|
|
974
|
+
\`\`\`json
|
|
975
|
+
{ "id": "conn-1", "sourceId": "a", "targetId": "b", "label": "uses" }
|
|
976
|
+
\`\`\`
|
|
977
|
+
|
|
978
|
+
CORRECT: Specific, actionable labels
|
|
979
|
+
\`\`\`json
|
|
980
|
+
{ "id": "conn-1", "sourceId": "a", "targetId": "b", "label": "Fetches user data", "technology": "REST API" }
|
|
981
|
+
\`\`\`
|
|
982
|
+
|
|
983
|
+
WRONG: Too many elements on one diagram
|
|
984
|
+
Create separate diagrams for different aspects or zoom levels.
|
|
985
|
+
|
|
986
|
+
CORRECT: Focused diagrams
|
|
987
|
+
- One Context diagram for the big picture
|
|
988
|
+
- Separate Container diagrams per major system
|
|
989
|
+
- Component diagrams only for complex containers
|
|
990
|
+
|
|
620
991
|
### Development Section Blocks (Epic → Story → Task)
|
|
621
992
|
|
|
622
993
|
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.
|
package/dist/cli/files.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/cli/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,MAAM,KAAK,GAAe,EAAE,CAAC;IAE7B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,OAAO,CAAC,GAAW,EAAE,UAAkB;QAC9C,MAAM,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;QAE7D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAC5C,MAAM,YA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