@evomap/evolver 1.89.10 → 1.89.11

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 (68) hide show
  1. package/README.ja-JP.md +1 -1
  2. package/README.ko-KR.md +1 -1
  3. package/README.md +2 -1
  4. package/README.zh-CN.md +1 -1
  5. package/assets/cover.png +0 -0
  6. package/index.js +5 -3
  7. package/package.json +1 -1
  8. package/src/adapters/scripts/evolver-session-end.js +18 -37
  9. package/src/atp/atpExecute.js +27 -71
  10. package/src/atp/serviceHelper.js +28 -36
  11. package/src/config.js +17 -0
  12. package/src/evolve/guards.js +1 -1
  13. package/src/evolve/pipeline/collect.js +1 -1
  14. package/src/evolve/pipeline/dispatch.js +1 -1
  15. package/src/evolve/pipeline/enrich.js +1 -1
  16. package/src/evolve/pipeline/hub.js +1 -1
  17. package/src/evolve/pipeline/select.js +1 -1
  18. package/src/evolve/pipeline/signals.js +1 -1
  19. package/src/evolve/utils.js +1 -1
  20. package/src/evolve.js +1 -1
  21. package/src/gep/a2aProtocol.js +1 -1
  22. package/src/gep/antiAbuseTelemetry.js +1 -1
  23. package/src/gep/autoDistillConv.js +1 -1
  24. package/src/gep/autoDistillLlm.js +1 -1
  25. package/src/gep/candidateEval.js +1 -1
  26. package/src/gep/candidates.js +1 -1
  27. package/src/gep/contentHash.js +1 -1
  28. package/src/gep/conversationSniffer.js +1 -1
  29. package/src/gep/crypto.js +1 -1
  30. package/src/gep/curriculum.js +1 -1
  31. package/src/gep/deviceId.js +1 -1
  32. package/src/gep/envFingerprint.js +1 -1
  33. package/src/gep/epigenetics.js +1 -1
  34. package/src/gep/execBridge.js +1 -1
  35. package/src/gep/explore.js +1 -1
  36. package/src/gep/hash.js +1 -1
  37. package/src/gep/hubFetch.js +1 -1
  38. package/src/gep/hubReview.js +1 -1
  39. package/src/gep/hubSearch.js +1 -1
  40. package/src/gep/hubVerify.js +1 -1
  41. package/src/gep/learningSignals.js +1 -1
  42. package/src/gep/memoryGraph.js +1 -1
  43. package/src/gep/memoryGraphAdapter.js +1 -1
  44. package/src/gep/mutation.js +1 -1
  45. package/src/gep/narrativeMemory.js +1 -1
  46. package/src/gep/oauthLogin.js +9 -3
  47. package/src/gep/openPRRegistry.js +1 -1
  48. package/src/gep/personality.js +1 -1
  49. package/src/gep/policyCheck.js +1 -1
  50. package/src/gep/privacyClient.js +10 -9
  51. package/src/gep/prompt.js +1 -1
  52. package/src/gep/recallInject.js +1 -1
  53. package/src/gep/recallVerifier.js +1 -1
  54. package/src/gep/reflection.js +1 -1
  55. package/src/gep/savingsCore.js +1 -1
  56. package/src/gep/selector.js +1 -1
  57. package/src/gep/signals.js +85 -17
  58. package/src/gep/skillDistiller.js +1 -1
  59. package/src/gep/solidify.js +1 -1
  60. package/src/gep/strategy.js +1 -1
  61. package/src/gep/tokenSavings.js +1 -1
  62. package/src/gep/workspaceKeychain.js +1 -1
  63. package/src/proxy/extensions/traceControl.js +1 -1
  64. package/src/proxy/index.js +100 -3
  65. package/src/proxy/inject.js +1 -1
  66. package/src/proxy/server/routes.js +10 -7
  67. package/src/proxy/trace/extractor.js +1 -1
  68. package/src/proxy/trace/usage.js +1 -1
@@ -7,6 +7,7 @@
7
7
  const { getNodeId, buildHubHeaders } = require('./a2aProtocol');
8
8
  const { generateKey, encrypt, decrypt, pack, unpack } = require('./crypto');
9
9
  const { resolveHubUrl } = require('../config');
10
+ const { hubFetch } = require('./hubFetch');
10
11
 
11
12
  const PRIVACY_TIMEOUT_MS = 15000;
12
13
 
@@ -24,9 +25,9 @@ async function submitPrivacyTask(opts) {
24
25
  if (!nodeId) return null;
25
26
 
26
27
  try {
27
- const res = await fetch(privacyUrl('/submit'), {
28
+ const res = await hubFetch(privacyUrl('/submit'), {
28
29
  method: 'POST',
29
- headers: buildHubHeaders(),
30
+ headers: Object.assign({ 'Content-Type': 'application/json' }, buildHubHeaders() || {}),
30
31
  body: JSON.stringify({ ...opts, node_id: nodeId }),
31
32
  signal: AbortSignal.timeout(PRIVACY_TIMEOUT_MS),
32
33
  });
@@ -62,9 +63,9 @@ async function uploadEncryptedBlob(plaintext, opts) {
62
63
  encryption: 'aes-256-gcm',
63
64
  });
64
65
 
65
- const res = await fetch(privacyUrl('/blob/upload'), {
66
+ const res = await hubFetch(privacyUrl('/blob/upload'), {
66
67
  method: 'POST',
67
- headers: buildHubHeaders(),
68
+ headers: Object.assign({ 'Content-Type': 'application/json' }, buildHubHeaders() || {}),
68
69
  body,
69
70
  signal: AbortSignal.timeout(PRIVACY_TIMEOUT_MS),
70
71
  });
@@ -92,9 +93,9 @@ async function executeSealedTool(opts) {
92
93
  if (!nodeId || !opts?.toolId || !opts?.blobId) return null;
93
94
 
94
95
  try {
95
- const res = await fetch(privacyUrl('/tool/execute'), {
96
+ const res = await hubFetch(privacyUrl('/tool/execute'), {
96
97
  method: 'POST',
97
- headers: buildHubHeaders(),
98
+ headers: Object.assign({ 'Content-Type': 'application/json' }, buildHubHeaders() || {}),
98
99
  body: JSON.stringify({
99
100
  toolId: opts.toolId,
100
101
  blobId: opts.blobId,
@@ -121,7 +122,7 @@ async function executeSealedTool(opts) {
121
122
  async function getPrivacyStatus(taskId) {
122
123
  if (!taskId) return null;
123
124
  try {
124
- const res = await fetch(privacyUrl(`/status/${encodeURIComponent(taskId)}`), {
125
+ const res = await hubFetch(privacyUrl(`/status/${encodeURIComponent(taskId)}`), {
125
126
  headers: buildHubHeaders(),
126
127
  signal: AbortSignal.timeout(PRIVACY_TIMEOUT_MS),
127
128
  });
@@ -141,7 +142,7 @@ async function getPrivacyStatus(taskId) {
141
142
  async function getPrivacyResult(taskId, key) {
142
143
  if (!taskId || !key) return null;
143
144
  try {
144
- const res = await fetch(privacyUrl(`/result/${encodeURIComponent(taskId)}`), {
145
+ const res = await hubFetch(privacyUrl(`/result/${encodeURIComponent(taskId)}`), {
145
146
  headers: buildHubHeaders(),
146
147
  signal: AbortSignal.timeout(PRIVACY_TIMEOUT_MS),
147
148
  });
@@ -165,7 +166,7 @@ async function getPrivacyResult(taskId, key) {
165
166
  */
166
167
  async function getToolTemplates() {
167
168
  try {
168
- const res = await fetch(privacyUrl('/tool/templates'), {
169
+ const res = await hubFetch(privacyUrl('/tool/templates'), {
169
170
  headers: buildHubHeaders(),
170
171
  signal: AbortSignal.timeout(PRIVACY_TIMEOUT_MS),
171
172
  });