@xelth/eck-snapshot 5.9.0 → 6.4.0

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.
Files changed (35) hide show
  1. package/README.md +267 -190
  2. package/package.json +15 -2
  3. package/scripts/mcp-eck-core.js +61 -13
  4. package/setup.json +114 -80
  5. package/src/cli/cli.js +235 -385
  6. package/src/cli/commands/createSnapshot.js +336 -122
  7. package/src/cli/commands/recon.js +244 -0
  8. package/src/cli/commands/setupMcp.js +278 -19
  9. package/src/cli/commands/trainTokens.js +42 -32
  10. package/src/cli/commands/updateSnapshot.js +128 -76
  11. package/src/core/depthConfig.js +54 -0
  12. package/src/core/skeletonizer.js +71 -18
  13. package/src/templates/architect-prompt.template.md +34 -0
  14. package/src/templates/multiAgent.md +18 -10
  15. package/src/templates/opencode/coder.template.md +44 -17
  16. package/src/templates/opencode/junior-architect.template.md +45 -15
  17. package/src/templates/skeleton-instruction.md +1 -1
  18. package/src/utils/aiHeader.js +57 -27
  19. package/src/utils/claudeMdGenerator.js +136 -78
  20. package/src/utils/fileUtils.js +1011 -1016
  21. package/src/utils/gitUtils.js +12 -8
  22. package/src/utils/opencodeAgentsGenerator.js +8 -2
  23. package/src/utils/projectDetector.js +66 -21
  24. package/src/utils/tokenEstimator.js +11 -7
  25. package/src/cli/commands/consilium.js +0 -86
  26. package/src/cli/commands/detectProfiles.js +0 -98
  27. package/src/cli/commands/envSync.js +0 -319
  28. package/src/cli/commands/generateProfileGuide.js +0 -144
  29. package/src/cli/commands/pruneSnapshot.js +0 -106
  30. package/src/cli/commands/restoreSnapshot.js +0 -173
  31. package/src/cli/commands/setupGemini.js +0 -149
  32. package/src/cli/commands/setupGemini.test.js +0 -115
  33. package/src/cli/commands/showFile.js +0 -39
  34. package/src/services/claudeCliService.js +0 -626
  35. package/src/services/claudeCliService.test.js +0 -267
package/setup.json CHANGED
@@ -1,23 +1,12 @@
1
1
  {
2
2
  "_comment": "Central configuration file for eck-snapshot. ALL settings are configured here.",
3
3
  "projectContext": {
4
- "name": "eckasse",
5
- "type": "monorepo",
4
+ "name": "",
5
+ "type": "",
6
6
  "architecture": {
7
- "workspaces": [
8
- "@eckasse/core",
9
- "@eckasse/desktop",
10
- "@eckasse/adapters",
11
- "@eckasse/shared-frontend"
12
- ],
13
- "stack": [
14
- "Node.js",
15
- "Express",
16
- "Electron",
17
- "PostgreSQL",
18
- "WebSocket"
19
- ],
20
- "aiIntegration": "Google Gemini for POS natural language control"
7
+ "workspaces": [],
8
+ "stack": [],
9
+ "aiIntegration": ""
21
10
  }
22
11
  },
23
12
  "projectDetection": {
@@ -188,6 +177,19 @@
188
177
  "lib"
189
178
  ],
190
179
  "priority": 6
180
+ },
181
+ "postgresql": {
182
+ "files": [
183
+ "postgresql.conf",
184
+ "pg_hba.conf",
185
+ "PG_VERSION"
186
+ ],
187
+ "directories": [
188
+ "data/base",
189
+ "data/global",
190
+ "data/pg_wal"
191
+ ],
192
+ "priority": 10
191
193
  }
192
194
  }
193
195
  },
@@ -532,6 +534,38 @@
532
534
  ".so",
533
535
  ".out"
534
536
  ]
537
+ },
538
+ "postgresql": {
539
+ "filesToIgnore": [
540
+ "PG_VERSION",
541
+ "postmaster.pid",
542
+ "postmaster.opts",
543
+ "pg_ident.conf",
544
+ "*.log"
545
+ ],
546
+ "dirsToIgnore": [
547
+ "base/",
548
+ "global/",
549
+ "pg_wal/",
550
+ "pg_xact/",
551
+ "pg_commit_ts/",
552
+ "pg_dynshmem/",
553
+ "pg_logical/",
554
+ "pg_multixact/",
555
+ "pg_notify/",
556
+ "pg_replslot/",
557
+ "pg_serial/",
558
+ "pg_snapshots/",
559
+ "pg_stat/",
560
+ "pg_stat_tmp/",
561
+ "pg_subtrans/",
562
+ "pg_tblspc/",
563
+ "pg_twophase/"
564
+ ],
565
+ "extensionsToIgnore": [
566
+ ".fsm",
567
+ ".vm"
568
+ ]
535
569
  }
536
570
  }
537
571
  },
@@ -576,70 +610,70 @@
576
610
  "capabilities": ["npm", "git", "basic editing"],
577
611
  "restrictions": ["Do not use for complex architectural tasks"]
578
612
  },
579
- "jas": {
580
- "active": true,
581
- "name": "Junior Architect (Sonnet 4.5)",
582
- "description": "Project Mode Orchestrator (Claude Code only). Smart & Fast Manager. Manages GLM Z.AI workers for efficient task delegation.",
583
- "guiSupport": true,
584
- "identification": {
585
- "markers": ["sonnet", "fast_architect"]
586
- },
587
- "capabilities": [
588
- "glm_zai_frontend",
589
- "glm_zai_backend",
590
- "glm_zai_qa",
591
- "glm_zai_refactor",
592
- "glm_zai_general",
593
- "git operations",
594
- "npm run dev"
595
- ],
596
- "restrictions": [
597
- "Prefer delegating heavy coding to GLM Z.AI workers",
598
- "Focus on glue code and logic verification"
599
- ]
600
- },
601
- "jao": {
602
- "active": true,
603
- "name": "Junior Architect (Opus 4.5)",
604
- "description": "Project Mode Orchestrator (Claude Code only). Deep Thinker & Planner. Expensive. Use for critical architecture, security, and complex logic.",
605
- "guiSupport": true,
606
- "identification": {
607
- "markers": ["opus", "deep_architect"]
608
- },
609
- "capabilities": [
610
- "glm_zai_frontend",
611
- "glm_zai_backend",
612
- "glm_zai_qa",
613
- "glm_zai_refactor",
614
- "glm_zai_general",
615
- "analysis"
616
- ],
617
- "restrictions": [
618
- "STRICTLY DELEGATE boilerplate to GLM Z.AI",
619
- "Verify every line of code generated by workers",
620
- "Plan before execution"
621
- ]
622
- },
623
- "jaz": {
624
- "active": true,
625
- "name": "Junior Architect (GLM-4.7 via OpenCode)",
626
- "description": "Project Orchestrator for OpenCode. Highly accessible/budget-friendly. Manages the GLM Z.AI worker swarm.",
627
- "guiSupport": true,
628
- "identification": {
629
- "markers": ["opencode", "glm-4.7"]
630
- },
631
- "capabilities": [
632
- "glm_zai_frontend",
633
- "glm_zai_backend",
634
- "glm_zai_qa",
635
- "glm_zai_refactor",
636
- "glm_zai_general",
637
- "git operations"
638
- ],
639
- "restrictions": [
640
- "Strictly delegate complex/large logic to workers to preserve context window"
641
- ]
642
- },
613
+ "jas": {
614
+ "active": true,
615
+ "name": "Junior Architect (Sonnet 4.5)",
616
+ "description": "Project Mode Orchestrator (Claude Code only). Smart & Fast Manager. Manages GLM Z.AI workers for efficient task delegation.",
617
+ "guiSupport": true,
618
+ "identification": {
619
+ "markers": ["sonnet", "fast_architect"]
620
+ },
621
+ "capabilities": [
622
+ "glm_zai_frontend",
623
+ "glm_zai_backend",
624
+ "glm_zai_qa",
625
+ "glm_zai_refactor",
626
+ "glm_zai_general",
627
+ "git operations",
628
+ "npm run dev"
629
+ ],
630
+ "restrictions": [
631
+ "Prefer delegating heavy coding to GLM Z.AI workers",
632
+ "Focus on glue code and logic verification"
633
+ ]
634
+ },
635
+ "jao": {
636
+ "active": true,
637
+ "name": "Junior Architect (Opus 4.5)",
638
+ "description": "Project Mode Orchestrator (Claude Code only). Deep Thinker & Planner. Expensive. Use for critical architecture, security, and complex logic.",
639
+ "guiSupport": true,
640
+ "identification": {
641
+ "markers": ["opus", "deep_architect"]
642
+ },
643
+ "capabilities": [
644
+ "glm_zai_frontend",
645
+ "glm_zai_backend",
646
+ "glm_zai_qa",
647
+ "glm_zai_refactor",
648
+ "glm_zai_general",
649
+ "analysis"
650
+ ],
651
+ "restrictions": [
652
+ "STRICTLY DELEGATE boilerplate to GLM Z.AI",
653
+ "Verify every line of code generated by workers",
654
+ "Plan before execution"
655
+ ]
656
+ },
657
+ "jaz": {
658
+ "active": true,
659
+ "name": "Junior Architect (GLM-4.7 via OpenCode)",
660
+ "description": "Project Orchestrator for OpenCode. Highly accessible/budget-friendly. Manages the GLM Z.AI worker swarm.",
661
+ "guiSupport": true,
662
+ "identification": {
663
+ "markers": ["opencode", "glm-4.7"]
664
+ },
665
+ "capabilities": [
666
+ "glm_zai_frontend",
667
+ "glm_zai_backend",
668
+ "glm_zai_qa",
669
+ "glm_zai_refactor",
670
+ "glm_zai_general",
671
+ "git operations"
672
+ ],
673
+ "restrictions": [
674
+ "Strictly delegate complex/large logic to workers to preserve context window"
675
+ ]
676
+ },
643
677
  "production_server": {
644
678
  "active": true,
645
679
  "name": "Production Server Agent (AGENT_PROD_SERVER)",