@weavelogic/knowledge-graph-agent 0.8.3 → 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.
@@ -44,9 +44,40 @@ const DEFAULT_STRUCTURE = {
44
44
  "_attachments"
45
45
  ],
46
46
  files: {
47
+ // Root files
47
48
  "README.md": "readme",
48
49
  "PRIMITIVES.md": "primitives",
49
50
  "MOC.md": "moc",
51
+ // Directory index files (_MOC.md is the local map of content)
52
+ "concepts/_MOC.md": "moc-concepts",
53
+ "concepts/architecture/_MOC.md": "moc-concepts-architecture",
54
+ "concepts/patterns/_MOC.md": "moc-concepts-patterns",
55
+ "components/_MOC.md": "moc-components",
56
+ "components/ui/_MOC.md": "moc-components-ui",
57
+ "components/utilities/_MOC.md": "moc-components-utilities",
58
+ "services/_MOC.md": "moc-services",
59
+ "services/api/_MOC.md": "moc-services-api",
60
+ "services/workers/_MOC.md": "moc-services-workers",
61
+ "features/_MOC.md": "moc-features",
62
+ "features/core/_MOC.md": "moc-features-core",
63
+ "features/advanced/_MOC.md": "moc-features-advanced",
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",
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",
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",
77
+ "references/_MOC.md": "moc-references",
78
+ "references/api/_MOC.md": "moc-references-api",
79
+ "references/cli/_MOC.md": "moc-references-cli",
80
+ // Templates
50
81
  "_templates/concept.md": "template-concept",
51
82
  "_templates/technical.md": "template-technical",
52
83
  "_templates/feature.md": "template-feature",
@@ -130,48 +161,231 @@ Primitives are the foundational technologies that power this project. Each primi
130
161
  Central navigation hub for {{projectName}} documentation.
131
162
 
132
163
  ## Core Concepts
133
- {{#each concepts}}
134
- - [[concepts/{{this}}]]
135
- {{/each}}
136
- {{#unless concepts}}
137
- - *No concepts documented yet*
138
- {{/unless}}
164
+ - [[concepts/_MOC|Concepts Index]]
139
165
 
140
166
  ## Components
141
- {{#each components}}
142
- - [[components/{{this}}]]
143
- {{/each}}
144
- {{#unless components}}
145
- - *No components documented yet*
146
- {{/unless}}
167
+ - [[components/_MOC|Components Index]]
147
168
 
148
169
  ## Services
149
- {{#each services}}
150
- - [[services/{{this}}]]
151
- {{/each}}
152
- {{#unless services}}
153
- - *No services documented yet*
154
- {{/unless}}
170
+ - [[services/_MOC|Services Index]]
155
171
 
156
172
  ## Features
157
- {{#each features}}
158
- - [[features/{{this}}]]
159
- {{/each}}
160
- {{#unless features}}
161
- - *No features documented yet*
162
- {{/unless}}
173
+ - [[features/_MOC|Features Index]]
174
+
175
+ ## Integrations
176
+ - [[integrations/_MOC|Integrations Index]]
177
+
178
+ ## Standards
179
+ - [[standards/_MOC|Standards Index]]
163
180
 
164
181
  ## Guides
165
- - [[guides/getting-started/index|Getting Started]]
166
- - [[guides/testing/index|Testing Guide]]
167
- - [[guides/deployment/index|Deployment Guide]]
182
+ - [[guides/_MOC|Guides Index]]
168
183
 
169
184
  ## References
170
- - [[references/api/index|API Reference]]
171
- - [[references/cli/index|CLI Reference]]
185
+ - [[references/_MOC|References Index]]
172
186
 
173
187
  ---
174
188
  *Last updated: {{date}}*
189
+ `,
190
+ "moc-concepts": `---
191
+ title: Concepts
192
+ type: concept
193
+ status: active
194
+ tags: [moc, concepts]
195
+ created: {{date}}
196
+ ---
197
+
198
+ # Concepts
199
+
200
+ Abstract concepts and architectural patterns for {{projectName}}.
201
+
202
+ ## Architecture
203
+ - [[concepts/architecture/index|Architecture Overview]]
204
+
205
+ ## Patterns
206
+ *Add design patterns and abstractions here*
207
+
208
+ ## Mental Models
209
+ *Add key mental models for understanding the system*
210
+
211
+ ---
212
+ > Use template: [[_templates/concept|Concept Template]]
213
+ `,
214
+ "moc-components": `---
215
+ title: Components
216
+ type: technical
217
+ status: active
218
+ tags: [moc, components]
219
+ created: {{date}}
220
+ ---
221
+
222
+ # Components
223
+
224
+ Reusable components and utilities for {{projectName}}.
225
+
226
+ ## UI Components
227
+ *Add UI components here*
228
+
229
+ ## Utilities
230
+ *Add utility functions and helpers*
231
+
232
+ ## Shared Libraries
233
+ *Add shared code libraries*
234
+
235
+ ---
236
+ > Use template: [[_templates/technical|Technical Template]]
237
+ `,
238
+ "moc-services": `---
239
+ title: Services
240
+ type: service
241
+ status: active
242
+ tags: [moc, services]
243
+ created: {{date}}
244
+ ---
245
+
246
+ # Services
247
+
248
+ Backend services and APIs for {{projectName}}.
249
+
250
+ ## API Services
251
+ *Add API service documentation*
252
+
253
+ ## Background Workers
254
+ *Add worker/job documentation*
255
+
256
+ ## External Services
257
+ *Add third-party service integrations*
258
+
259
+ ---
260
+ > Use template: [[_templates/service|Service Template]]
261
+ `,
262
+ "moc-features": `---
263
+ title: Features
264
+ type: feature
265
+ status: active
266
+ tags: [moc, features]
267
+ created: {{date}}
268
+ ---
269
+
270
+ # Features
271
+
272
+ Product features and capabilities for {{projectName}}.
273
+
274
+ ## Core Features
275
+ *Add core feature documentation*
276
+
277
+ ## Advanced Features
278
+ *Add advanced feature documentation*
279
+
280
+ ## Upcoming Features
281
+ *Add planned features*
282
+
283
+ ---
284
+ > Use template: [[_templates/feature|Feature Template]]
285
+ `,
286
+ "moc-integrations": `---
287
+ title: Integrations
288
+ type: integration
289
+ status: active
290
+ tags: [moc, integrations]
291
+ created: {{date}}
292
+ ---
293
+
294
+ # Integrations
295
+
296
+ External integrations and third-party services for {{projectName}}.
297
+
298
+ ## Databases
299
+ *Add database integrations*
300
+
301
+ ## Authentication
302
+ *Add auth provider integrations*
303
+
304
+ ## Storage
305
+ *Add storage integrations*
306
+
307
+ ## Monitoring
308
+ *Add monitoring/observability integrations*
309
+
310
+ ---
311
+ > Use template: [[_templates/technical|Technical Template]]
312
+ `,
313
+ "moc-standards": `---
314
+ title: Standards
315
+ type: standard
316
+ status: active
317
+ tags: [moc, standards]
318
+ created: {{date}}
319
+ ---
320
+
321
+ # Standards
322
+
323
+ Coding standards and conventions for {{projectName}}.
324
+
325
+ ## Coding Standards
326
+ *Add coding style guides*
327
+
328
+ ## Programming Languages
329
+ {{#each languages}}
330
+ - [[standards/programming-languages/{{this}}|{{this}}]]
331
+ {{/each}}
332
+
333
+ ## Build Tools
334
+ *Add build tool documentation*
335
+
336
+ ---
337
+ > See also: [[PRIMITIVES|Technology Primitives]]
338
+ `,
339
+ "moc-guides": `---
340
+ title: Guides
341
+ type: guide
342
+ status: active
343
+ tags: [moc, guides]
344
+ created: {{date}}
345
+ ---
346
+
347
+ # Guides
348
+
349
+ How-to guides and tutorials for {{projectName}}.
350
+
351
+ ## Getting Started
352
+ - [[guides/getting-started/index|Getting Started Guide]]
353
+
354
+ ## Testing
355
+ *Add testing guides*
356
+
357
+ ## Deployment
358
+ *Add deployment guides*
359
+
360
+ ## Troubleshooting
361
+ *Add troubleshooting guides*
362
+
363
+ ---
364
+ > Use template: [[_templates/guide|Guide Template]]
365
+ `,
366
+ "moc-references": `---
367
+ title: References
368
+ type: technical
369
+ status: active
370
+ tags: [moc, references]
371
+ created: {{date}}
372
+ ---
373
+
374
+ # References
375
+
376
+ API and CLI references for {{projectName}}.
377
+
378
+ ## API Reference
379
+ *Add API documentation*
380
+
381
+ ## CLI Reference
382
+ *Add CLI documentation*
383
+
384
+ ## Configuration Reference
385
+ *Add configuration options*
386
+
387
+ ---
388
+ > See also: [[PRIMITIVES|Technology Primitives]]
175
389
  `,
176
390
  "template-concept": `---
177
391
  title: {{title}}
@@ -343,6 +557,496 @@ Common issues and solutions.
343
557
 
344
558
  - [[next-guide-1]]
345
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]]
346
1050
  `
347
1051
  };
348
1052
  async function initDocs(options) {