@evomap/evolver 1.89.3 → 1.89.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 (104) hide show
  1. package/.cursor/BUGBOT.md +182 -0
  2. package/.env.example +68 -0
  3. package/.git-commit-guard-token +1 -0
  4. package/.github/CODEOWNERS +63 -0
  5. package/.github/ISSUE_TEMPLATE/good_first_issue.md +23 -0
  6. package/.github/pull_request_template.md +45 -0
  7. package/.github/workflows/test.yml +75 -0
  8. package/CHANGELOG.md +1237 -0
  9. package/README.md +86 -528
  10. package/README.public.md +569 -0
  11. package/SECURITY.md +108 -0
  12. package/assets/gep/events.jsonl +3 -0
  13. package/examples/atp-consumer-quickstart.md +100 -0
  14. package/examples/hello-world.md +38 -0
  15. package/index.js +30 -1
  16. package/package.json +6 -17
  17. package/proxy-package.json +39 -0
  18. package/public.manifest.json +143 -0
  19. package/src/config.js +23 -0
  20. package/src/evolve/guards.js +721 -1
  21. package/src/evolve/pipeline/collect.js +1283 -1
  22. package/src/evolve/pipeline/dispatch.js +421 -1
  23. package/src/evolve/pipeline/enrich.js +440 -1
  24. package/src/evolve/pipeline/hub.js +319 -1
  25. package/src/evolve/pipeline/select.js +274 -1
  26. package/src/evolve/pipeline/signals.js +206 -1
  27. package/src/evolve/utils.js +264 -1
  28. package/src/evolve.js +350 -1
  29. package/src/experiment/agentRunner.js +229 -0
  30. package/src/experiment/cli.js +159 -0
  31. package/src/experiment/comparison.js +233 -0
  32. package/src/experiment/metrics.js +75 -0
  33. package/src/forceUpdate.js +147 -59
  34. package/src/gep/a2aProtocol.js +4455 -1
  35. package/src/gep/antiAbuseTelemetry.js +233 -0
  36. package/src/gep/autoDistillConv.js +205 -1
  37. package/src/gep/autoDistillLlm.js +315 -1
  38. package/src/gep/candidateEval.js +92 -1
  39. package/src/gep/candidates.js +198 -1
  40. package/src/gep/contentHash.js +30 -1
  41. package/src/gep/conversationSniffer.js +266 -1
  42. package/src/gep/crypto.js +89 -1
  43. package/src/gep/curriculum.js +163 -1
  44. package/src/gep/deviceId.js +218 -1
  45. package/src/gep/envFingerprint.js +118 -1
  46. package/src/gep/epigenetics.js +31 -1
  47. package/src/gep/execBridge.js +711 -1
  48. package/src/gep/explore.js +289 -1
  49. package/src/gep/hash.js +15 -1
  50. package/src/gep/hubFetch.js +359 -1
  51. package/src/gep/hubReview.js +207 -1
  52. package/src/gep/hubSearch.js +526 -1
  53. package/src/gep/hubVerify.js +306 -1
  54. package/src/gep/learningSignals.js +89 -1
  55. package/src/gep/memoryGraph.js +1374 -1
  56. package/src/gep/memoryGraphAdapter.js +203 -1
  57. package/src/gep/mutation.js +203 -1
  58. package/src/gep/narrativeMemory.js +108 -1
  59. package/src/gep/openPRRegistry.js +205 -1
  60. package/src/gep/personality.js +423 -1
  61. package/src/gep/policyCheck.js +599 -1
  62. package/src/gep/prompt.js +836 -1
  63. package/src/gep/recallInject.js +409 -1
  64. package/src/gep/recallVerifier.js +318 -1
  65. package/src/gep/reflection.js +177 -1
  66. package/src/gep/sanitize.js +9 -0
  67. package/src/gep/selector.js +602 -1
  68. package/src/gep/skillDistiller.js +1294 -1
  69. package/src/gep/solidify.js +1699 -1
  70. package/src/gep/strategy.js +136 -1
  71. package/src/gep/tokenSavings.js +88 -1
  72. package/src/gep/validator/sandboxExecutor.js +29 -1
  73. package/src/gep/workspaceKeychain.js +174 -1
  74. package/src/proxy/extensions/traceControl.js +99 -1
  75. package/src/proxy/index.js +10 -1
  76. package/src/proxy/inject.js +52 -1
  77. package/src/proxy/lifecycle/manager.js +19 -0
  78. package/src/proxy/mailbox/store.js +2 -1
  79. package/src/proxy/router/messages_route.js +5 -2
  80. package/src/proxy/trace/extractor.js +646 -1
  81. package/src/proxy/trace/usage.js +105 -1
  82. package/CONTRIBUTING.md +0 -19
  83. package/assets/cover.png +0 -0
  84. package/scripts/a2a_export.js +0 -63
  85. package/scripts/a2a_ingest.js +0 -79
  86. package/scripts/a2a_promote.js +0 -118
  87. package/scripts/analyze_by_skill.js +0 -121
  88. package/scripts/build_binaries.js +0 -479
  89. package/scripts/check-changelog.js +0 -166
  90. package/scripts/extract_log.js +0 -85
  91. package/scripts/generate_history.js +0 -75
  92. package/scripts/gep_append_event.js +0 -96
  93. package/scripts/gep_personality_report.js +0 -234
  94. package/scripts/human_report.js +0 -147
  95. package/scripts/recall-verify-report.js +0 -234
  96. package/scripts/recover_loop.js +0 -61
  97. package/scripts/refresh_stars_badge.js +0 -168
  98. package/scripts/seed-merchants.js +0 -91
  99. package/scripts/suggest_version.js +0 -89
  100. package/scripts/validate-modules.js +0 -38
  101. package/scripts/validate-suite.js +0 -78
  102. package/skills/index.json +0 -14
  103. /package/assets/gep/{genes.seed.json → genes.json} +0 -0
  104. /package/{skills → bundled-skills}/_meta/SKILL.md +0 -0
@@ -1,78 +0,0 @@
1
- // Usage: node scripts/validate-suite.js [test-glob-pattern | test-file]
2
- // Runs the evolver test suite -- repo root is derived from script location, no shell glob needed.
3
- // Accepts either a directory glob pattern (e.g. `test/*.test.js`) or a concrete test file path.
4
- // See community PR #514.
5
- const { execFileSync } = require('child_process');
6
- const path = require('path');
7
- const fs = require('fs');
8
-
9
- const EVOLVER_REPO_ROOT = path.join(__dirname, '..');
10
- const pattern = process.argv[2] || 'test/*.test.js';
11
-
12
- function expandTestGlob(repoRoot, pat) {
13
- const fullPattern = path.isAbsolute(pat) ? pat : path.join(repoRoot, pat);
14
- if (fs.existsSync(fullPattern) && fs.statSync(fullPattern).isFile()) {
15
- return fullPattern.endsWith('.test.js') ? [fullPattern] : [];
16
- }
17
-
18
- const dir = path.dirname(pat);
19
- const basenamePattern = path.basename(pat);
20
- const fullDir = path.isAbsolute(dir) ? dir : path.join(repoRoot, dir);
21
- if (!fs.existsSync(fullDir) || !fs.statSync(fullDir).isDirectory()) return [];
22
-
23
- const escaped = basenamePattern
24
- .replace(/[.+?^${}()|[\]\\]/g, '\\$&')
25
- .replace(/\*/g, '.*');
26
- const matcher = new RegExp('^' + escaped + '$');
27
- return fs.readdirSync(fullDir)
28
- .filter(f => f.endsWith('.test.js') && matcher.test(f))
29
- .map(f => path.join(fullDir, f))
30
- .sort();
31
- }
32
-
33
- const files = expandTestGlob(EVOLVER_REPO_ROOT, pattern);
34
- if (files.length === 0) {
35
- console.error('FAIL: no tests found matching pattern: ' + pattern);
36
- process.exit(1);
37
- }
38
-
39
- const env = Object.assign({}, process.env, {
40
- NODE_ENV: 'test',
41
- EVOLVER_REPO_ROOT,
42
- GEP_ASSETS_DIR: path.join(EVOLVER_REPO_ROOT, 'assets', 'gep'),
43
- });
44
- delete env.EVOLVE_BRIDGE;
45
- delete env.OPENCLAW_WORKSPACE;
46
- // Clear NODE_TEST_CONTEXT so nested runs from within node --test work.
47
- delete env.NODE_TEST_CONTEXT;
48
-
49
- try {
50
- const output = execFileSync(process.execPath, ['--test', ...files], {
51
- cwd: EVOLVER_REPO_ROOT,
52
- stdio: ['pipe', 'pipe', 'pipe'],
53
- timeout: 180000,
54
- env,
55
- });
56
- const out = output.toString('utf8');
57
- const passMatch = out.match(/pass (\d+)/);
58
- const failMatch = out.match(/fail (\d+)/);
59
- const passCount = passMatch ? Number(passMatch[1]) : 0;
60
- const failCount = failMatch ? Number(failMatch[1]) : 0;
61
-
62
- if (failCount > 0) {
63
- console.error('FAIL: ' + failCount + ' test(s) failed');
64
- process.exit(1);
65
- }
66
- if (passCount === 0) {
67
- console.error('FAIL: no tests found');
68
- process.exit(1);
69
- }
70
- console.log('ok: ' + passCount + ' test(s) passed, 0 failed');
71
- } catch (e) {
72
- const stderr = e.stderr ? e.stderr.toString('utf8').slice(-500) : '';
73
- const stdout = e.stdout ? e.stdout.toString('utf8').slice(-500) : '';
74
- console.error('FAIL: test suite exited with code ' + (e.status || 'unknown'));
75
- if (stderr) console.error(stderr);
76
- if (stdout) console.error(stdout);
77
- process.exit(1);
78
- }
package/skills/index.json DELETED
@@ -1,14 +0,0 @@
1
- [
2
- {
3
- "name": "_meta",
4
- "dir": "_meta",
5
- "version": "0.1.0",
6
- "description": "Bootstrap skill that teaches the agent how to discover and load other skills on demand via gep_list_skill / gep_load_skill.",
7
- "tags": [
8
- "meta",
9
- "bootstrap",
10
- "evolver"
11
- ],
12
- "sizeBytes": 1691
13
- }
14
- ]
File without changes
File without changes