@weavelogic/knowledge-graph-agent 0.8.4 → 0.8.5

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.
@@ -50,13 +50,33 @@ const DEFAULT_STRUCTURE = {
50
50
  "MOC.md": "moc",
51
51
  // Directory index files (_MOC.md is the local map of content)
52
52
  "concepts/_MOC.md": "moc-concepts",
53
+ "concepts/architecture/_MOC.md": "moc-concepts-architecture",
54
+ "concepts/patterns/_MOC.md": "moc-concepts-patterns",
53
55
  "components/_MOC.md": "moc-components",
56
+ "components/ui/_MOC.md": "moc-components-ui",
57
+ "components/utilities/_MOC.md": "moc-components-utilities",
54
58
  "services/_MOC.md": "moc-services",
59
+ "services/api/_MOC.md": "moc-services-api",
60
+ "services/workers/_MOC.md": "moc-services-workers",
55
61
  "features/_MOC.md": "moc-features",
62
+ "features/core/_MOC.md": "moc-features-core",
63
+ "features/advanced/_MOC.md": "moc-features-advanced",
56
64
  "integrations/_MOC.md": "moc-integrations",
65
+ "integrations/databases/_MOC.md": "moc-integrations-databases",
66
+ "integrations/auth-providers/_MOC.md": "moc-integrations-auth",
67
+ "integrations/storage/_MOC.md": "moc-integrations-storage",
68
+ "integrations/monitoring/_MOC.md": "moc-integrations-monitoring",
57
69
  "standards/_MOC.md": "moc-standards",
70
+ "standards/coding-standards/_MOC.md": "moc-standards-coding",
71
+ "standards/programming-languages/_MOC.md": "moc-standards-languages",
72
+ "standards/build-tools/_MOC.md": "moc-standards-build",
58
73
  "guides/_MOC.md": "moc-guides",
74
+ "guides/getting-started/_MOC.md": "moc-guides-getting-started",
75
+ "guides/testing/_MOC.md": "moc-guides-testing",
76
+ "guides/deployment/_MOC.md": "moc-guides-deployment",
59
77
  "references/_MOC.md": "moc-references",
78
+ "references/api/_MOC.md": "moc-references-api",
79
+ "references/cli/_MOC.md": "moc-references-cli",
60
80
  // Templates
61
81
  "_templates/concept.md": "template-concept",
62
82
  "_templates/technical.md": "template-technical",
@@ -537,6 +557,496 @@ Common issues and solutions.
537
557
 
538
558
  - [[next-guide-1]]
539
559
  - [[next-guide-2]]
560
+ `,
561
+ // Subdirectory MOC templates
562
+ "moc-concepts-architecture": `---
563
+ title: Architecture Concepts
564
+ type: concept
565
+ status: active
566
+ tags: [moc, concepts, architecture]
567
+ created: {{date}}
568
+ ---
569
+
570
+ # Architecture Concepts
571
+
572
+ System architecture and design patterns for {{projectName}}.
573
+
574
+ ## Overview
575
+ *Document high-level system architecture*
576
+
577
+ ## System Design
578
+ *Add system design documents*
579
+
580
+ ## Decision Records
581
+ *Architecture Decision Records (ADRs)*
582
+
583
+ ---
584
+ > Parent: [[concepts/_MOC|Concepts Index]]
585
+ `,
586
+ "moc-concepts-patterns": `---
587
+ title: Design Patterns
588
+ type: concept
589
+ status: active
590
+ tags: [moc, concepts, patterns]
591
+ created: {{date}}
592
+ ---
593
+
594
+ # Design Patterns
595
+
596
+ Design patterns and abstractions used in {{projectName}}.
597
+
598
+ ## Creational Patterns
599
+ *Factory, Builder, Singleton, etc.*
600
+
601
+ ## Structural Patterns
602
+ *Adapter, Decorator, Facade, etc.*
603
+
604
+ ## Behavioral Patterns
605
+ *Observer, Strategy, Command, etc.*
606
+
607
+ ---
608
+ > Parent: [[concepts/_MOC|Concepts Index]]
609
+ `,
610
+ "moc-components-ui": `---
611
+ title: UI Components
612
+ type: technical
613
+ status: active
614
+ tags: [moc, components, ui]
615
+ created: {{date}}
616
+ ---
617
+
618
+ # UI Components
619
+
620
+ User interface components for {{projectName}}.
621
+
622
+ ## Layout Components
623
+ *Headers, footers, sidebars, grids*
624
+
625
+ ## Form Components
626
+ *Inputs, buttons, selects, checkboxes*
627
+
628
+ ## Display Components
629
+ *Cards, modals, tooltips, alerts*
630
+
631
+ ## Navigation Components
632
+ *Menus, tabs, breadcrumbs*
633
+
634
+ ---
635
+ > Parent: [[components/_MOC|Components Index]]
636
+ `,
637
+ "moc-components-utilities": `---
638
+ title: Utility Components
639
+ type: technical
640
+ status: active
641
+ tags: [moc, components, utilities]
642
+ created: {{date}}
643
+ ---
644
+
645
+ # Utility Components
646
+
647
+ Reusable utility functions and helpers for {{projectName}}.
648
+
649
+ ## String Utilities
650
+ *Formatting, validation, transformation*
651
+
652
+ ## Date Utilities
653
+ *Parsing, formatting, calculations*
654
+
655
+ ## Data Utilities
656
+ *Transformation, validation, filtering*
657
+
658
+ ## Hook Utilities
659
+ *Custom React/Vue hooks*
660
+
661
+ ---
662
+ > Parent: [[components/_MOC|Components Index]]
663
+ `,
664
+ "moc-services-api": `---
665
+ title: API Services
666
+ type: service
667
+ status: active
668
+ tags: [moc, services, api]
669
+ created: {{date}}
670
+ ---
671
+
672
+ # API Services
673
+
674
+ Backend API services for {{projectName}}.
675
+
676
+ ## REST Endpoints
677
+ *Document REST API endpoints*
678
+
679
+ ## GraphQL Schema
680
+ *GraphQL types and resolvers*
681
+
682
+ ## Authentication
683
+ *Auth middleware and flows*
684
+
685
+ ## Rate Limiting
686
+ *Rate limiting and throttling*
687
+
688
+ ---
689
+ > Parent: [[services/_MOC|Services Index]]
690
+ `,
691
+ "moc-services-workers": `---
692
+ title: Worker Services
693
+ type: service
694
+ status: active
695
+ tags: [moc, services, workers]
696
+ created: {{date}}
697
+ ---
698
+
699
+ # Worker Services
700
+
701
+ Background workers and job processors for {{projectName}}.
702
+
703
+ ## Job Queues
704
+ *Queue processors and handlers*
705
+
706
+ ## Scheduled Tasks
707
+ *Cron jobs and scheduled operations*
708
+
709
+ ## Event Handlers
710
+ *Event-driven workers*
711
+
712
+ ---
713
+ > Parent: [[services/_MOC|Services Index]]
714
+ `,
715
+ "moc-features-core": `---
716
+ title: Core Features
717
+ type: feature
718
+ status: active
719
+ tags: [moc, features, core]
720
+ created: {{date}}
721
+ ---
722
+
723
+ # Core Features
724
+
725
+ Essential features that define {{projectName}}.
726
+
727
+ ## Primary Features
728
+ *Main user-facing functionality*
729
+
730
+ ## MVP Features
731
+ *Minimum viable product scope*
732
+
733
+ ---
734
+ > Parent: [[features/_MOC|Features Index]]
735
+ `,
736
+ "moc-features-advanced": `---
737
+ title: Advanced Features
738
+ type: feature
739
+ status: active
740
+ tags: [moc, features, advanced]
741
+ created: {{date}}
742
+ ---
743
+
744
+ # Advanced Features
745
+
746
+ Advanced and power-user features for {{projectName}}.
747
+
748
+ ## Power User Features
749
+ *Features for advanced users*
750
+
751
+ ## Extensibility
752
+ *Plugin and extension capabilities*
753
+
754
+ ## Automation
755
+ *Automated workflows and scripting*
756
+
757
+ ---
758
+ > Parent: [[features/_MOC|Features Index]]
759
+ `,
760
+ "moc-integrations-databases": `---
761
+ title: Database Integrations
762
+ type: integration
763
+ status: active
764
+ tags: [moc, integrations, databases]
765
+ created: {{date}}
766
+ ---
767
+
768
+ # Database Integrations
769
+
770
+ Database connections and ORMs for {{projectName}}.
771
+
772
+ ## Primary Database
773
+ *Main data store configuration*
774
+
775
+ ## Caching Layer
776
+ *Redis, Memcached, etc.*
777
+
778
+ ## Search Index
779
+ *Elasticsearch, Algolia, etc.*
780
+
781
+ ---
782
+ > Parent: [[integrations/_MOC|Integrations Index]]
783
+ `,
784
+ "moc-integrations-auth": `---
785
+ title: Authentication Providers
786
+ type: integration
787
+ status: active
788
+ tags: [moc, integrations, auth]
789
+ created: {{date}}
790
+ ---
791
+
792
+ # Authentication Providers
793
+
794
+ Authentication and identity providers for {{projectName}}.
795
+
796
+ ## OAuth Providers
797
+ *Google, GitHub, etc.*
798
+
799
+ ## SSO Integration
800
+ *SAML, OIDC configurations*
801
+
802
+ ## API Keys
803
+ *API key management*
804
+
805
+ ---
806
+ > Parent: [[integrations/_MOC|Integrations Index]]
807
+ `,
808
+ "moc-integrations-storage": `---
809
+ title: Storage Integrations
810
+ type: integration
811
+ status: active
812
+ tags: [moc, integrations, storage]
813
+ created: {{date}}
814
+ ---
815
+
816
+ # Storage Integrations
817
+
818
+ File and object storage for {{projectName}}.
819
+
820
+ ## Cloud Storage
821
+ *S3, GCS, Azure Blob*
822
+
823
+ ## CDN
824
+ *Content delivery networks*
825
+
826
+ ## Local Storage
827
+ *File system storage*
828
+
829
+ ---
830
+ > Parent: [[integrations/_MOC|Integrations Index]]
831
+ `,
832
+ "moc-integrations-monitoring": `---
833
+ title: Monitoring Integrations
834
+ type: integration
835
+ status: active
836
+ tags: [moc, integrations, monitoring]
837
+ created: {{date}}
838
+ ---
839
+
840
+ # Monitoring Integrations
841
+
842
+ Observability and monitoring for {{projectName}}.
843
+
844
+ ## Logging
845
+ *Structured logging setup*
846
+
847
+ ## Metrics
848
+ *Application metrics and dashboards*
849
+
850
+ ## Alerting
851
+ *Alert rules and notifications*
852
+
853
+ ## Tracing
854
+ *Distributed tracing*
855
+
856
+ ---
857
+ > Parent: [[integrations/_MOC|Integrations Index]]
858
+ `,
859
+ "moc-standards-coding": `---
860
+ title: Coding Standards
861
+ type: standard
862
+ status: active
863
+ tags: [moc, standards, coding]
864
+ created: {{date}}
865
+ ---
866
+
867
+ # Coding Standards
868
+
869
+ Code style and conventions for {{projectName}}.
870
+
871
+ ## Style Guide
872
+ *Formatting and naming conventions*
873
+
874
+ ## Linting Rules
875
+ *ESLint, Prettier configuration*
876
+
877
+ ## Code Review Guidelines
878
+ *PR review checklist*
879
+
880
+ ---
881
+ > Parent: [[standards/_MOC|Standards Index]]
882
+ `,
883
+ "moc-standards-languages": `---
884
+ title: Programming Languages
885
+ type: standard
886
+ status: active
887
+ tags: [moc, standards, languages]
888
+ created: {{date}}
889
+ ---
890
+
891
+ # Programming Languages
892
+
893
+ Language choices and configurations for {{projectName}}.
894
+
895
+ ## TypeScript
896
+ *TypeScript configuration and patterns*
897
+
898
+ ## JavaScript
899
+ *JavaScript standards and ES features*
900
+
901
+ ## Other Languages
902
+ *Additional language documentation*
903
+
904
+ ---
905
+ > Parent: [[standards/_MOC|Standards Index]]
906
+ `,
907
+ "moc-standards-build": `---
908
+ title: Build Tools
909
+ type: standard
910
+ status: active
911
+ tags: [moc, standards, build]
912
+ created: {{date}}
913
+ ---
914
+
915
+ # Build Tools
916
+
917
+ Build and bundling configuration for {{projectName}}.
918
+
919
+ ## Bundler
920
+ *Vite, Webpack, Rollup configuration*
921
+
922
+ ## Compilation
923
+ *TypeScript, Babel setup*
924
+
925
+ ## Build Scripts
926
+ *npm scripts and build commands*
927
+
928
+ ---
929
+ > Parent: [[standards/_MOC|Standards Index]]
930
+ `,
931
+ "moc-guides-getting-started": `---
932
+ title: Getting Started
933
+ type: guide
934
+ status: active
935
+ tags: [moc, guides, getting-started]
936
+ created: {{date}}
937
+ ---
938
+
939
+ # Getting Started
940
+
941
+ Quick start guides for {{projectName}}.
942
+
943
+ ## Installation
944
+ *Setup and installation steps*
945
+
946
+ ## Configuration
947
+ *Initial configuration guide*
948
+
949
+ ## First Steps
950
+ *Your first project walkthrough*
951
+
952
+ ---
953
+ > Parent: [[guides/_MOC|Guides Index]]
954
+ `,
955
+ "moc-guides-testing": `---
956
+ title: Testing Guides
957
+ type: guide
958
+ status: active
959
+ tags: [moc, guides, testing]
960
+ created: {{date}}
961
+ ---
962
+
963
+ # Testing Guides
964
+
965
+ Testing strategies and guides for {{projectName}}.
966
+
967
+ ## Unit Testing
968
+ *Component and function tests*
969
+
970
+ ## Integration Testing
971
+ *API and service tests*
972
+
973
+ ## E2E Testing
974
+ *End-to-end test guides*
975
+
976
+ ---
977
+ > Parent: [[guides/_MOC|Guides Index]]
978
+ `,
979
+ "moc-guides-deployment": `---
980
+ title: Deployment Guides
981
+ type: guide
982
+ status: active
983
+ tags: [moc, guides, deployment]
984
+ created: {{date}}
985
+ ---
986
+
987
+ # Deployment Guides
988
+
989
+ Deployment and operations guides for {{projectName}}.
990
+
991
+ ## Local Development
992
+ *Local environment setup*
993
+
994
+ ## Staging
995
+ *Staging environment deployment*
996
+
997
+ ## Production
998
+ *Production deployment checklist*
999
+
1000
+ ---
1001
+ > Parent: [[guides/_MOC|Guides Index]]
1002
+ `,
1003
+ "moc-references-api": `---
1004
+ title: API Reference
1005
+ type: reference
1006
+ status: active
1007
+ tags: [moc, references, api]
1008
+ created: {{date}}
1009
+ ---
1010
+
1011
+ # API Reference
1012
+
1013
+ API documentation for {{projectName}}.
1014
+
1015
+ ## REST API
1016
+ *Endpoint documentation*
1017
+
1018
+ ## GraphQL
1019
+ *Schema and query reference*
1020
+
1021
+ ## SDK
1022
+ *Client library documentation*
1023
+
1024
+ ---
1025
+ > Parent: [[references/_MOC|References Index]]
1026
+ `,
1027
+ "moc-references-cli": `---
1028
+ title: CLI Reference
1029
+ type: reference
1030
+ status: active
1031
+ tags: [moc, references, cli]
1032
+ created: {{date}}
1033
+ ---
1034
+
1035
+ # CLI Reference
1036
+
1037
+ Command line interface documentation for {{projectName}}.
1038
+
1039
+ ## Commands
1040
+ *Available CLI commands*
1041
+
1042
+ ## Options
1043
+ *Global and command options*
1044
+
1045
+ ## Configuration
1046
+ *CLI configuration files*
1047
+
1048
+ ---
1049
+ > Parent: [[references/_MOC|References Index]]
540
1050
  `
541
1051
  };
542
1052
  async function initDocs(options) {