@evomap/evolver 1.85.1 → 1.85.3
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/index.js +52 -0
- package/package.json +1 -1
- package/src/adapters/scripts/evolver-session-end.js +0 -1
- package/src/evolve/guards.js +1 -1
- package/src/evolve/pipeline/collect.js +1 -1
- package/src/evolve/pipeline/dispatch.js +1 -1
- package/src/evolve/pipeline/enrich.js +1 -1
- package/src/evolve/pipeline/hub.js +1 -1
- package/src/evolve/pipeline/select.js +1 -1
- package/src/evolve/pipeline/signals.js +1 -1
- package/src/evolve/utils.js +1 -1
- package/src/evolve.js +1 -1
- package/src/gep/a2aProtocol.js +1 -1
- package/src/gep/candidateEval.js +1 -1
- package/src/gep/candidates.js +1 -1
- package/src/gep/claimNudge.js +10 -10
- 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/epigenetics.js +1 -1
- package/src/gep/explore.js +1 -1
- package/src/gep/featureFlags.js +11 -8
- package/src/gep/hash.js +1 -1
- package/src/gep/hubFetch.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/learningSignals.js +1 -1
- package/src/gep/localStateAwareness.js +8 -9
- 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/openPRRegistry.js +1 -1
- package/src/gep/paths.js +81 -18
- package/src/gep/personality.js +1 -1
- package/src/gep/policyCheck.js +1 -1
- package/src/gep/prompt.js +1 -1
- package/src/gep/recallVerifier.js +1 -1
- package/src/gep/reflection.js +1 -1
- package/src/gep/selector.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/gep/validator/stakeBootstrap.js +12 -11
- package/src/proxy/index.js +4 -4
- package/src/proxy/lifecycle/manager.js +110 -14
- package/src/webui/observer/interactions.js +4 -3
package/index.js
CHANGED
|
@@ -1724,6 +1724,58 @@ async function main() {
|
|
|
1724
1724
|
process.exit(1);
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
+
} else if (command === 'reset-local-secret') {
|
|
1728
|
+
// Wipe every local store of node_secret in one shot, so a daemon stuck
|
|
1729
|
+
// after a manual web reset (https://evomap.ai/account -> Reset Secret)
|
|
1730
|
+
// can boot clean. Three locations are involved:
|
|
1731
|
+
// - MailboxStore: ~/.evomap/mailbox/state.json key node_secret
|
|
1732
|
+
// - Legacy file: ~/.evomap/node_secret
|
|
1733
|
+
// - Shell env: A2A_NODE_SECRET (we cannot mutate the parent shell;
|
|
1734
|
+
// we just print the unset hint)
|
|
1735
|
+
const path = require('path');
|
|
1736
|
+
const fs = require('fs');
|
|
1737
|
+
const home = process.env.HOME || require('os').homedir();
|
|
1738
|
+
const stateFile = path.join(home, '.evomap', 'mailbox', 'state.json');
|
|
1739
|
+
const legacyFile = path.join(home, '.evomap', 'node_secret');
|
|
1740
|
+
let cleared = 0;
|
|
1741
|
+
try {
|
|
1742
|
+
if (fs.existsSync(stateFile)) {
|
|
1743
|
+
const raw = JSON.parse(fs.readFileSync(stateFile, 'utf8'));
|
|
1744
|
+
let mutated = false;
|
|
1745
|
+
for (const k of ['node_secret', 'node_secret_source']) {
|
|
1746
|
+
if (raw[k] !== undefined && raw[k] !== '') {
|
|
1747
|
+
raw[k] = '';
|
|
1748
|
+
mutated = true;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
if (mutated) {
|
|
1752
|
+
fs.writeFileSync(stateFile, JSON.stringify(raw, null, 2) + '\n', 'utf8');
|
|
1753
|
+
cleared += 1;
|
|
1754
|
+
console.log('[reset-local-secret] cleared MailboxStore at ' + stateFile);
|
|
1755
|
+
} else {
|
|
1756
|
+
console.log('[reset-local-secret] MailboxStore had no node_secret to clear');
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
if (fs.existsSync(legacyFile)) {
|
|
1760
|
+
fs.unlinkSync(legacyFile);
|
|
1761
|
+
cleared += 1;
|
|
1762
|
+
console.log('[reset-local-secret] removed legacy file ' + legacyFile);
|
|
1763
|
+
}
|
|
1764
|
+
} catch (err) {
|
|
1765
|
+
console.error('[reset-local-secret] error:', err && err.message || err);
|
|
1766
|
+
process.exit(1);
|
|
1767
|
+
}
|
|
1768
|
+
if (process.env.A2A_NODE_SECRET) {
|
|
1769
|
+
console.log('');
|
|
1770
|
+
console.log('[reset-local-secret] A2A_NODE_SECRET is still set in this shell.');
|
|
1771
|
+
console.log('[reset-local-secret] Run: unset A2A_NODE_SECRET');
|
|
1772
|
+
console.log('[reset-local-secret] Or edit your shell rc / .env file before restarting the daemon.');
|
|
1773
|
+
} else {
|
|
1774
|
+
console.log('[reset-local-secret] A2A_NODE_SECRET is not set in env -- good.');
|
|
1775
|
+
}
|
|
1776
|
+
console.log('[reset-local-secret] ' + cleared + ' location(s) cleared. Restart the daemon to pick a fresh secret from the hub.');
|
|
1777
|
+
process.exit(0);
|
|
1778
|
+
|
|
1727
1779
|
} else if (command === 'atp-complete') {
|
|
1728
1780
|
// Invoked by a spawned Cursor sub-session after it has written the ATP
|
|
1729
1781
|
// task answer to a file. Drives publish -> task/complete -> atp/deliver.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evomap/evolver",
|
|
3
|
-
"version": "1.85.
|
|
3
|
+
"version": "1.85.3",
|
|
4
4
|
"description": "A GEP-powered self-evolution engine for AI agents. Features automated log analysis and Genome Evolution Protocol (GEP) for auditable, reusable evolution assets.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,6 @@ const { spawnSync } = require('child_process');
|
|
|
13
13
|
// on large repos). See GHSA reports / issue #451.
|
|
14
14
|
const MAX_EXEC_BUFFER = 10 * 1024 * 1024;
|
|
15
15
|
|
|
16
|
-
const path = require('path');
|
|
17
16
|
const { findEvolverRoot, findMemoryGraph } = require('./_runtimePaths');
|
|
18
17
|
|
|
19
18
|
// Workspace-id must use the same resolution as the reader in
|