@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.
- package/.github/ISSUE_TEMPLATE/good_first_issue.md +23 -0
- package/.github/pull_request_template.md +20 -0
- package/README.ja-JP.md +441 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/SKILL.md +6 -2
- package/assets/gep/candidates.jsonl +2 -1
- package/examples/hello-world.md +38 -0
- package/package.json +1 -1
- package/src/adapters/claudeCode.js +31 -13
- package/src/evolve.js +1 -1
- package/src/gep/.integrity +0 -0
- package/src/gep/a2aProtocol.js +1 -1
- package/src/gep/candidateEval.js +1 -1
- package/src/gep/candidates.js +1 -1
- package/src/gep/contentHash.js +1 -1
- package/src/gep/crypto.js +1 -1
- package/src/gep/curriculum.js +1 -1
- package/src/gep/deviceId.js +1 -1
- package/src/gep/envFingerprint.js +1 -1
- package/src/gep/explore.js +1 -1
- package/src/gep/hubReview.js +1 -1
- package/src/gep/hubSearch.js +1 -1
- package/src/gep/hubVerify.js +1 -1
- package/src/gep/integrityCheck.js +1 -1
- package/src/gep/learningSignals.js +1 -1
- package/src/gep/memoryGraph.js +1 -1
- package/src/gep/memoryGraphAdapter.js +1 -1
- package/src/gep/mutation.js +1 -1
- package/src/gep/narrativeMemory.js +1 -1
- package/src/gep/paths.js +53 -0
- package/src/gep/personality.js +1 -1
- package/src/gep/policyCheck.js +1 -1
- package/src/gep/prompt.js +1 -1
- package/src/gep/reflection.js +1 -1
- package/src/gep/selector.js +1 -1
- package/src/gep/shield.js +1 -1
- package/src/gep/skillDistiller.js +1 -1
- package/src/gep/solidify.js +1 -1
- package/src/gep/strategy.js +1 -1
- package/src/ops/health_check.js +11 -10
- package/src/ops/lifecycle.js +79 -16
|
@@ -11,24 +11,36 @@ function buildClaudeHooks(evolverRoot) {
|
|
|
11
11
|
hooks: {
|
|
12
12
|
SessionStart: [
|
|
13
13
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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]
|
|
106
|
-
|
|
107
|
-
|
|
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
|
}
|