@xelth/eck-snapshot 2.2.0 → 4.0.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 (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -225
  3. package/index.js +14 -776
  4. package/package.json +25 -7
  5. package/setup.json +805 -0
  6. package/src/cli/cli.js +427 -0
  7. package/src/cli/commands/askGpt.js +29 -0
  8. package/src/cli/commands/autoDocs.js +150 -0
  9. package/src/cli/commands/consilium.js +86 -0
  10. package/src/cli/commands/createSnapshot.js +601 -0
  11. package/src/cli/commands/detectProfiles.js +98 -0
  12. package/src/cli/commands/detectProject.js +112 -0
  13. package/src/cli/commands/generateProfileGuide.js +91 -0
  14. package/src/cli/commands/pruneSnapshot.js +106 -0
  15. package/src/cli/commands/restoreSnapshot.js +173 -0
  16. package/src/cli/commands/setupGemini.js +149 -0
  17. package/src/cli/commands/setupGemini.test.js +115 -0
  18. package/src/cli/commands/trainTokens.js +38 -0
  19. package/src/config.js +81 -0
  20. package/src/services/authService.js +20 -0
  21. package/src/services/claudeCliService.js +621 -0
  22. package/src/services/claudeCliService.test.js +267 -0
  23. package/src/services/dispatcherService.js +33 -0
  24. package/src/services/gptService.js +302 -0
  25. package/src/services/gptService.test.js +120 -0
  26. package/src/templates/agent-prompt.template.md +29 -0
  27. package/src/templates/architect-prompt.template.md +50 -0
  28. package/src/templates/envScanRequest.md +4 -0
  29. package/src/templates/gitWorkflow.md +32 -0
  30. package/src/templates/multiAgent.md +164 -0
  31. package/src/templates/vectorMode.md +22 -0
  32. package/src/utils/aiHeader.js +303 -0
  33. package/src/utils/fileUtils.js +928 -0
  34. package/src/utils/projectDetector.js +704 -0
  35. package/src/utils/tokenEstimator.js +198 -0
  36. package/.ecksnapshot.config.js +0 -35
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xelth/eck-snapshot",
3
- "version": "2.2.0",
4
- "description": "A CLI tool to create and restore single-file text snapshots of a Git repository.",
3
+ "version": "4.0.0",
4
+ "description": "A powerful CLI tool to create and restore single-file text snapshots of Git repositories and directories. Optimized for AI context and LLM workflows.",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
7
  "bin": {
@@ -11,10 +11,16 @@
11
11
  "index.js",
12
12
  ".ecksnapshot.config.js",
13
13
  "README.md",
14
- "LICENSE"
14
+ "LICENSE",
15
+ "src/",
16
+ "setup.json"
15
17
  ],
16
18
  "scripts": {
17
- "test": "echo \"Error: no test specified\" && exit 1"
19
+ "test": "vitest",
20
+ "test:ui": "vitest --ui",
21
+ "test:run": "vitest run",
22
+ "docs:auto": "node index.js docs-auto",
23
+ "test:gpt": "vitest src/services/gptService.test.js"
18
24
  },
19
25
  "author": "xelth-com",
20
26
  "license": "MIT",
@@ -23,12 +29,24 @@
23
29
  "url": "https://github.com/xelth-com/eckSnapshot.git"
24
30
  },
25
31
  "dependencies": {
32
+ "@babel/parser": "^7.25.6",
33
+ "@babel/traverse": "^7.25.6",
34
+ "chalk": "^5.3.0",
35
+ "cli-progress": "^3.12.0",
26
36
  "commander": "^12.1.0",
37
+ "dotenv": "^16.6.1",
27
38
  "execa": "^8.0.1",
28
- "is-binary-path": "^2.1.0",
29
39
  "ignore": "^5.3.1",
30
- "cli-progress": "^3.12.0",
40
+ "inquirer": "^9.2.20",
41
+ "is-binary-path": "^2.1.0",
42
+ "micromatch": "^4.0.8",
43
+ "ora": "^8.1.0",
31
44
  "p-limit": "^5.0.0",
32
- "inquirer": "^9.2.20"
45
+ "p-retry": "^6.2.1",
46
+ "which": "^4.0.0"
47
+ },
48
+ "devDependencies": {
49
+ "jsdom": "^24.0.0",
50
+ "vitest": "^2.0.0"
33
51
  }
34
52
  }