@evomap/evolver 1.67.2 → 1.67.4

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 (42) hide show
  1. package/.github/ISSUE_TEMPLATE/good_first_issue.md +23 -0
  2. package/.github/pull_request_template.md +20 -0
  3. package/README.ja-JP.md +441 -0
  4. package/README.md +1 -1
  5. package/README.zh-CN.md +1 -1
  6. package/SKILL.md +6 -2
  7. package/assets/gep/candidates.jsonl +2 -1
  8. package/examples/hello-world.md +38 -0
  9. package/package.json +1 -1
  10. package/src/adapters/claudeCode.js +31 -13
  11. package/src/evolve.js +1 -1
  12. package/src/gep/.integrity +0 -0
  13. package/src/gep/a2aProtocol.js +1 -1
  14. package/src/gep/candidateEval.js +1 -1
  15. package/src/gep/candidates.js +1 -1
  16. package/src/gep/contentHash.js +1 -1
  17. package/src/gep/crypto.js +1 -1
  18. package/src/gep/curriculum.js +1 -1
  19. package/src/gep/deviceId.js +1 -1
  20. package/src/gep/envFingerprint.js +1 -1
  21. package/src/gep/explore.js +1 -1
  22. package/src/gep/hubReview.js +1 -1
  23. package/src/gep/hubSearch.js +1 -1
  24. package/src/gep/hubVerify.js +1 -1
  25. package/src/gep/integrityCheck.js +1 -1
  26. package/src/gep/learningSignals.js +1 -1
  27. package/src/gep/memoryGraph.js +1 -1
  28. package/src/gep/memoryGraphAdapter.js +1 -1
  29. package/src/gep/mutation.js +1 -1
  30. package/src/gep/narrativeMemory.js +1 -1
  31. package/src/gep/paths.js +53 -0
  32. package/src/gep/personality.js +1 -1
  33. package/src/gep/policyCheck.js +1 -1
  34. package/src/gep/prompt.js +1 -1
  35. package/src/gep/reflection.js +1 -1
  36. package/src/gep/selector.js +1 -1
  37. package/src/gep/shield.js +1 -1
  38. package/src/gep/skillDistiller.js +1 -1
  39. package/src/gep/solidify.js +1 -1
  40. package/src/gep/strategy.js +1 -1
  41. package/src/ops/health_check.js +11 -10
  42. package/src/ops/lifecycle.js +79 -16
@@ -11,24 +11,36 @@ function buildClaudeHooks(evolverRoot) {
11
11
  hooks: {
12
12
  SessionStart: [
13
13
  {
14
- type: 'command',
15
- command: `node ${scriptsBase}/evolver-session-start.js`,
16
- timeout: 3,
14
+ hooks: [
15
+ {
16
+ type: 'command',
17
+ command: `node ${scriptsBase}/evolver-session-start.js`,
18
+ timeout: 3,
19
+ },
20
+ ],
17
21
  },
18
22
  ],
19
23
  PostToolUse: [
20
24
  {
21
- type: 'command',
22
- command: `node ${scriptsBase}/evolver-signal-detect.js`,
23
25
  matcher: 'Write',
24
- timeout: 2,
26
+ hooks: [
27
+ {
28
+ type: 'command',
29
+ command: `node ${scriptsBase}/evolver-signal-detect.js`,
30
+ timeout: 2,
31
+ },
32
+ ],
25
33
  },
26
34
  ],
27
35
  Stop: [
28
36
  {
29
- type: 'command',
30
- command: `node ${scriptsBase}/evolver-session-end.js`,
31
- timeout: 8,
37
+ hooks: [
38
+ {
39
+ type: 'command',
40
+ command: `node ${scriptsBase}/evolver-session-end.js`,
41
+ timeout: 8,
42
+ },
43
+ ],
32
44
  },
33
45
  ],
34
46
  },
@@ -102,10 +114,16 @@ function uninstall({ configRoot }) {
102
114
  if (data.hooks) {
103
115
  for (const event of Object.keys(data.hooks)) {
104
116
  if (Array.isArray(data.hooks[event])) {
105
- data.hooks[event] = data.hooks[event].filter(h => {
106
- const cmd = h.command || '';
107
- return !cmd.includes('evolver-session') && !cmd.includes('evolver-signal');
108
- });
117
+ data.hooks[event] = data.hooks[event]
118
+ .map(matcher => {
119
+ if (!matcher || !Array.isArray(matcher.hooks)) return matcher;
120
+ const filtered = matcher.hooks.filter(h => {
121
+ const cmd = (h && h.command) || '';
122
+ return !cmd.includes('evolver-session') && !cmd.includes('evolver-signal');
123
+ });
124
+ return { ...matcher, hooks: filtered };
125
+ })
126
+ .filter(matcher => matcher && Array.isArray(matcher.hooks) && matcher.hooks.length > 0);
109
127
  if (data.hooks[event].length === 0) delete data.hooks[event];
110
128
  }
111
129
  }