deepseek-coder-agent-cli 1.0.13 → 1.0.15

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 (240) hide show
  1. package/dist/capabilities/index.d.ts +1 -18
  2. package/dist/capabilities/index.d.ts.map +1 -1
  3. package/dist/capabilities/index.js +2 -19
  4. package/dist/capabilities/index.js.map +1 -1
  5. package/dist/core/agiCore.d.ts.map +1 -1
  6. package/dist/core/agiCore.js +3 -6
  7. package/dist/core/agiCore.js.map +1 -1
  8. package/dist/core/dynamicGuardrails.d.ts.map +1 -1
  9. package/dist/core/dynamicGuardrails.js +0 -60
  10. package/dist/core/dynamicGuardrails.js.map +1 -1
  11. package/dist/core/gitWorktreeManager.d.ts +1 -1
  12. package/dist/core/gitWorktreeManager.d.ts.map +1 -1
  13. package/dist/core/gitWorktreeManager.js.map +1 -1
  14. package/dist/core/hotReload.js.map +1 -1
  15. package/dist/core/index.d.ts +0 -8
  16. package/dist/core/index.d.ts.map +1 -1
  17. package/dist/core/index.js +1 -15
  18. package/dist/core/index.js.map +1 -1
  19. package/dist/core/selfUpgrade.d.ts +34 -208
  20. package/dist/core/selfUpgrade.d.ts.map +1 -1
  21. package/dist/core/selfUpgrade.js +54 -631
  22. package/dist/core/selfUpgrade.js.map +1 -1
  23. package/dist/headless/interactiveShell.d.ts.map +1 -1
  24. package/dist/headless/interactiveShell.js +10 -71
  25. package/dist/headless/interactiveShell.js.map +1 -1
  26. package/dist/orchestration/index.d.ts +9 -5
  27. package/dist/orchestration/index.d.ts.map +1 -1
  28. package/dist/orchestration/index.js +7 -8
  29. package/dist/orchestration/index.js.map +1 -1
  30. package/dist/plugins/index.d.ts +1 -1
  31. package/dist/plugins/index.d.ts.map +1 -1
  32. package/dist/plugins/index.js +1 -2
  33. package/dist/plugins/index.js.map +1 -1
  34. package/dist/plugins/tools/nodeDefaults.d.ts +0 -2
  35. package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
  36. package/dist/plugins/tools/nodeDefaults.js +0 -6
  37. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  38. package/dist/tools/diffUtils.d.ts.map +1 -1
  39. package/dist/tools/diffUtils.js +0 -14
  40. package/dist/tools/diffUtils.js.map +1 -1
  41. package/dist/tools/editTools.d.ts.map +1 -1
  42. package/dist/tools/editTools.js +20 -168
  43. package/dist/tools/editTools.js.map +1 -1
  44. package/dist/tools/fileTools.d.ts.map +1 -1
  45. package/dist/tools/fileTools.js +1 -10
  46. package/dist/tools/fileTools.js.map +1 -1
  47. package/dist/tools/grepTools.d.ts.map +1 -1
  48. package/dist/tools/grepTools.js +1 -2
  49. package/dist/tools/grepTools.js.map +1 -1
  50. package/dist/tools/searchTools.d.ts.map +1 -1
  51. package/dist/tools/searchTools.js +0 -7
  52. package/dist/tools/searchTools.js.map +1 -1
  53. package/dist/tools/telemetryTools.d.ts +5 -0
  54. package/dist/tools/telemetryTools.d.ts.map +1 -1
  55. package/dist/tools/telemetryTools.js +6 -6
  56. package/dist/tools/telemetryTools.js.map +1 -1
  57. package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
  58. package/dist/ui/UnifiedUIRenderer.js +7 -25
  59. package/dist/ui/UnifiedUIRenderer.js.map +1 -1
  60. package/package.json +1 -2
  61. package/dist/capabilities/appleSecurityCapability.d.ts +0 -57
  62. package/dist/capabilities/appleSecurityCapability.d.ts.map +0 -1
  63. package/dist/capabilities/appleSecurityCapability.js +0 -197
  64. package/dist/capabilities/appleSecurityCapability.js.map +0 -1
  65. package/dist/capabilities/authorizedSecurityCapability.d.ts +0 -17
  66. package/dist/capabilities/authorizedSecurityCapability.d.ts.map +0 -1
  67. package/dist/capabilities/authorizedSecurityCapability.js +0 -333
  68. package/dist/capabilities/authorizedSecurityCapability.js.map +0 -1
  69. package/dist/capabilities/autoEnhancementCapability.d.ts +0 -98
  70. package/dist/capabilities/autoEnhancementCapability.d.ts.map +0 -1
  71. package/dist/capabilities/autoEnhancementCapability.js +0 -455
  72. package/dist/capabilities/autoEnhancementCapability.js.map +0 -1
  73. package/dist/capabilities/biocognitiveWarfare.d.ts +0 -136
  74. package/dist/capabilities/biocognitiveWarfare.d.ts.map +0 -1
  75. package/dist/capabilities/biocognitiveWarfare.js +0 -603
  76. package/dist/capabilities/biocognitiveWarfare.js.map +0 -1
  77. package/dist/capabilities/chineseCnoIntegration.d.ts +0 -60
  78. package/dist/capabilities/chineseCnoIntegration.d.ts.map +0 -1
  79. package/dist/capabilities/chineseCnoIntegration.js +0 -253
  80. package/dist/capabilities/chineseCnoIntegration.js.map +0 -1
  81. package/dist/capabilities/cnoCapability.d.ts +0 -110
  82. package/dist/capabilities/cnoCapability.d.ts.map +0 -1
  83. package/dist/capabilities/cnoCapability.js +0 -785
  84. package/dist/capabilities/cnoCapability.js.map +0 -1
  85. package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts +0 -99
  86. package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts.map +0 -1
  87. package/dist/capabilities/eliteCryptoMilitaryCapability.js +0 -618
  88. package/dist/capabilities/eliteCryptoMilitaryCapability.js.map +0 -1
  89. package/dist/capabilities/integratedUnifiedCapability.d.ts +0 -105
  90. package/dist/capabilities/integratedUnifiedCapability.d.ts.map +0 -1
  91. package/dist/capabilities/integratedUnifiedCapability.js +0 -422
  92. package/dist/capabilities/integratedUnifiedCapability.js.map +0 -1
  93. package/dist/capabilities/maxOffensiveUkraineCapability.d.ts +0 -46
  94. package/dist/capabilities/maxOffensiveUkraineCapability.d.ts.map +0 -1
  95. package/dist/capabilities/maxOffensiveUkraineCapability.js +0 -725
  96. package/dist/capabilities/maxOffensiveUkraineCapability.js.map +0 -1
  97. package/dist/capabilities/migrationUtilities.d.ts +0 -128
  98. package/dist/capabilities/migrationUtilities.d.ts.map +0 -1
  99. package/dist/capabilities/migrationUtilities.js +0 -658
  100. package/dist/capabilities/migrationUtilities.js.map +0 -1
  101. package/dist/capabilities/offensiveDestructionCapability.d.ts +0 -98
  102. package/dist/capabilities/offensiveDestructionCapability.d.ts.map +0 -1
  103. package/dist/capabilities/offensiveDestructionCapability.js +0 -848
  104. package/dist/capabilities/offensiveDestructionCapability.js.map +0 -1
  105. package/dist/capabilities/quantumSpaceWarfare.d.ts +0 -108
  106. package/dist/capabilities/quantumSpaceWarfare.d.ts.map +0 -1
  107. package/dist/capabilities/quantumSpaceWarfare.js +0 -342
  108. package/dist/capabilities/quantumSpaceWarfare.js.map +0 -1
  109. package/dist/capabilities/readmeIntegration.d.ts +0 -161
  110. package/dist/capabilities/readmeIntegration.d.ts.map +0 -1
  111. package/dist/capabilities/readmeIntegration.js +0 -1034
  112. package/dist/capabilities/readmeIntegration.js.map +0 -1
  113. package/dist/capabilities/selfUpdateSystem.d.ts +0 -122
  114. package/dist/capabilities/selfUpdateSystem.d.ts.map +0 -1
  115. package/dist/capabilities/selfUpdateSystem.js +0 -725
  116. package/dist/capabilities/selfUpdateSystem.js.map +0 -1
  117. package/dist/capabilities/sharedMilitaryInfrastructure.d.ts +0 -89
  118. package/dist/capabilities/sharedMilitaryInfrastructure.d.ts.map +0 -1
  119. package/dist/capabilities/sharedMilitaryInfrastructure.js +0 -233
  120. package/dist/capabilities/sharedMilitaryInfrastructure.js.map +0 -1
  121. package/dist/capabilities/simpleSecurityCapability.d.ts +0 -36
  122. package/dist/capabilities/simpleSecurityCapability.d.ts.map +0 -1
  123. package/dist/capabilities/simpleSecurityCapability.js +0 -271
  124. package/dist/capabilities/simpleSecurityCapability.js.map +0 -1
  125. package/dist/capabilities/ultimateChineseCno.d.ts +0 -115
  126. package/dist/capabilities/ultimateChineseCno.d.ts.map +0 -1
  127. package/dist/capabilities/ultimateChineseCno.js +0 -516
  128. package/dist/capabilities/ultimateChineseCno.js.map +0 -1
  129. package/dist/capabilities/ultimateIntegrationDemo.d.ts +0 -54
  130. package/dist/capabilities/ultimateIntegrationDemo.d.ts.map +0 -1
  131. package/dist/capabilities/ultimateIntegrationDemo.js +0 -423
  132. package/dist/capabilities/ultimateIntegrationDemo.js.map +0 -1
  133. package/dist/capabilities/unifiedMilitaryCapability.d.ts +0 -63
  134. package/dist/capabilities/unifiedMilitaryCapability.d.ts.map +0 -1
  135. package/dist/capabilities/unifiedMilitaryCapability.js +0 -384
  136. package/dist/capabilities/unifiedMilitaryCapability.js.map +0 -1
  137. package/dist/capabilities/universalCapabilityFramework.d.ts +0 -352
  138. package/dist/capabilities/universalCapabilityFramework.d.ts.map +0 -1
  139. package/dist/capabilities/universalCapabilityFramework.js +0 -1056
  140. package/dist/capabilities/universalCapabilityFramework.js.map +0 -1
  141. package/dist/capabilities/universalSecurityCapability.d.ts +0 -46
  142. package/dist/capabilities/universalSecurityCapability.d.ts.map +0 -1
  143. package/dist/capabilities/universalSecurityCapability.js +0 -580
  144. package/dist/capabilities/universalSecurityCapability.js.map +0 -1
  145. package/dist/capabilities/zeroDayDiscoveryCapability.d.ts +0 -31
  146. package/dist/capabilities/zeroDayDiscoveryCapability.d.ts.map +0 -1
  147. package/dist/capabilities/zeroDayDiscoveryCapability.js +0 -183
  148. package/dist/capabilities/zeroDayDiscoveryCapability.js.map +0 -1
  149. package/dist/core/antiTermination.d.ts +0 -226
  150. package/dist/core/antiTermination.d.ts.map +0 -1
  151. package/dist/core/antiTermination.js +0 -713
  152. package/dist/core/antiTermination.js.map +0 -1
  153. package/dist/core/appleSecurityAudit.d.ts +0 -98
  154. package/dist/core/appleSecurityAudit.d.ts.map +0 -1
  155. package/dist/core/appleSecurityAudit.js +0 -505
  156. package/dist/core/appleSecurityAudit.js.map +0 -1
  157. package/dist/core/appleSecurityIntegration.d.ts +0 -130
  158. package/dist/core/appleSecurityIntegration.d.ts.map +0 -1
  159. package/dist/core/appleSecurityIntegration.js +0 -697
  160. package/dist/core/appleSecurityIntegration.js.map +0 -1
  161. package/dist/core/dualTournament.d.ts +0 -110
  162. package/dist/core/dualTournament.d.ts.map +0 -1
  163. package/dist/core/dualTournament.js +0 -270
  164. package/dist/core/dualTournament.js.map +0 -1
  165. package/dist/core/parallel.d.ts +0 -85
  166. package/dist/core/parallel.d.ts.map +0 -1
  167. package/dist/core/parallel.js +0 -150
  168. package/dist/core/parallel.js.map +0 -1
  169. package/dist/core/parallelCoordinator.d.ts +0 -21
  170. package/dist/core/parallelCoordinator.d.ts.map +0 -1
  171. package/dist/core/parallelCoordinator.js +0 -42
  172. package/dist/core/parallelCoordinator.js.map +0 -1
  173. package/dist/core/realityScore.d.ts +0 -159
  174. package/dist/core/realityScore.d.ts.map +0 -1
  175. package/dist/core/realityScore.js +0 -734
  176. package/dist/core/realityScore.js.map +0 -1
  177. package/dist/core/repoUpgradeOrchestrator.d.ts +0 -223
  178. package/dist/core/repoUpgradeOrchestrator.d.ts.map +0 -1
  179. package/dist/core/repoUpgradeOrchestrator.js +0 -1003
  180. package/dist/core/repoUpgradeOrchestrator.js.map +0 -1
  181. package/dist/core/securityTournament.d.ts +0 -83
  182. package/dist/core/securityTournament.d.ts.map +0 -1
  183. package/dist/core/securityTournament.js +0 -357
  184. package/dist/core/securityTournament.js.map +0 -1
  185. package/dist/core/tournamentStrategy.d.ts +0 -12
  186. package/dist/core/tournamentStrategy.d.ts.map +0 -1
  187. package/dist/core/tournamentStrategy.js +0 -41
  188. package/dist/core/tournamentStrategy.js.map +0 -1
  189. package/dist/core/universalSecurityAudit.d.ts +0 -104
  190. package/dist/core/universalSecurityAudit.d.ts.map +0 -1
  191. package/dist/core/universalSecurityAudit.js +0 -2190
  192. package/dist/core/universalSecurityAudit.js.map +0 -1
  193. package/dist/core/variantExecution.d.ts +0 -23
  194. package/dist/core/variantExecution.d.ts.map +0 -1
  195. package/dist/core/variantExecution.js +0 -58
  196. package/dist/core/variantExecution.js.map +0 -1
  197. package/dist/core/winnerStrategy.d.ts +0 -15
  198. package/dist/core/winnerStrategy.d.ts.map +0 -1
  199. package/dist/core/winnerStrategy.js +0 -18
  200. package/dist/core/winnerStrategy.js.map +0 -1
  201. package/dist/core/zeroDayDiscovery.d.ts +0 -96
  202. package/dist/core/zeroDayDiscovery.d.ts.map +0 -1
  203. package/dist/core/zeroDayDiscovery.js +0 -358
  204. package/dist/core/zeroDayDiscovery.js.map +0 -1
  205. package/dist/orchestration/repoUpgradeRunner.d.ts +0 -44
  206. package/dist/orchestration/repoUpgradeRunner.d.ts.map +0 -1
  207. package/dist/orchestration/repoUpgradeRunner.js +0 -375
  208. package/dist/orchestration/repoUpgradeRunner.js.map +0 -1
  209. package/dist/orchestration/securityAuditRunner.d.ts +0 -144
  210. package/dist/orchestration/securityAuditRunner.d.ts.map +0 -1
  211. package/dist/orchestration/securityAuditRunner.js +0 -526
  212. package/dist/orchestration/securityAuditRunner.js.map +0 -1
  213. package/dist/plugins/tools/apple/secureApplePlugin.d.ts +0 -3
  214. package/dist/plugins/tools/apple/secureApplePlugin.d.ts.map +0 -1
  215. package/dist/plugins/tools/apple/secureApplePlugin.js +0 -26
  216. package/dist/plugins/tools/apple/secureApplePlugin.js.map +0 -1
  217. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts +0 -3
  218. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts.map +0 -1
  219. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js +0 -9
  220. package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js.map +0 -1
  221. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +0 -3
  222. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +0 -1
  223. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +0 -27
  224. package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +0 -1
  225. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts +0 -3
  226. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts.map +0 -1
  227. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js +0 -9
  228. package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js.map +0 -1
  229. package/dist/plugins/tools/tao/secureTaoPlugin.d.ts +0 -3
  230. package/dist/plugins/tools/tao/secureTaoPlugin.d.ts.map +0 -1
  231. package/dist/plugins/tools/tao/secureTaoPlugin.js +0 -37
  232. package/dist/plugins/tools/tao/secureTaoPlugin.js.map +0 -1
  233. package/dist/tools/secureAppleExploitation.d.ts +0 -29
  234. package/dist/tools/secureAppleExploitation.d.ts.map +0 -1
  235. package/dist/tools/secureAppleExploitation.js +0 -518
  236. package/dist/tools/secureAppleExploitation.js.map +0 -1
  237. package/dist/ui/maxOffensiveUkraineUI.d.ts +0 -94
  238. package/dist/ui/maxOffensiveUkraineUI.d.ts.map +0 -1
  239. package/dist/ui/maxOffensiveUkraineUI.js +0 -316
  240. package/dist/ui/maxOffensiveUkraineUI.js.map +0 -1
@@ -1,150 +0,0 @@
1
- /**
2
- * Parallel Execution Module
3
- *
4
- * Unified exports for all parallel execution capabilities in AGI Core.
5
- * Provides automatic parallel task management with dependency resolution,
6
- * agent worker pools, and integration with orchestration pipelines.
7
- *
8
- * Principal Investigator: Bo Shang
9
- * Framework: agi-cli
10
- */
11
- // ============================================================================
12
- // Core Parallel Executor
13
- // ============================================================================
14
- export {
15
- // Classes
16
- ParallelExecutor, WorkerPool,
17
- // Factory functions
18
- createParallelExecutor, createTask, executeParallel, mapParallel, } from './parallelExecutor.js';
19
- // ============================================================================
20
- // Async Utilities (Extended)
21
- // ============================================================================
22
- export {
23
- // Classes
24
- ConcurrencyPool, RateLimiter, TTLCache,
25
- // Functions
26
- parallelMap, throttle, debounce, memoize, sleep, withTimeout, retry, } from '../utils/asyncUtils.js';
27
- // ============================================================================
28
- // Agent Worker Pool
29
- // ============================================================================
30
- export {
31
- // Classes
32
- AgentWorkerPool,
33
- // Factory functions
34
- createAgentWorkerPool, createAgentTask, } from '../runtime/agentWorkerPool.js';
35
- // ============================================================================
36
- // Parallel-Enabled Orchestration
37
- // ============================================================================
38
- export {
39
- // Classes
40
- RepoUpgradeOrchestrator,
41
- // Functions
42
- buildRepoWidePlan,
43
- // Constants
44
- REPO_UPGRADE_MODE_DEFINITIONS, } from './repoUpgradeOrchestrator.js';
45
- // ============================================================================
46
- // Convenience Helpers
47
- // ============================================================================
48
- /**
49
- * Configuration presets for common parallel execution scenarios
50
- */
51
- export const ParallelPresets = {
52
- /**
53
- * Light parallel execution - suitable for I/O-bound tasks
54
- * Lower concurrency, minimal resource usage
55
- */
56
- light: {
57
- maxConcurrency: 3,
58
- defaultTimeout: 24 * 60 * 60 * 1000,
59
- continueOnFailure: true,
60
- autoDetectParallel: true,
61
- },
62
- /**
63
- * Standard parallel execution - balanced for most use cases
64
- * Moderate concurrency, suitable for typical workflows
65
- */
66
- standard: {
67
- maxConcurrency: 5,
68
- defaultTimeout: 24 * 60 * 60 * 1000,
69
- continueOnFailure: true,
70
- autoDetectParallel: true,
71
- },
72
- /**
73
- * Heavy parallel execution - suitable for CPU-bound tasks
74
- * Higher concurrency, aggressive parallelization
75
- */
76
- heavy: {
77
- maxConcurrency: 8,
78
- defaultTimeout: 24 * 60 * 60 * 1000,
79
- continueOnFailure: true,
80
- autoDetectParallel: true,
81
- },
82
- /**
83
- * Strict sequential execution - no parallelization
84
- * For workflows that require guaranteed ordering
85
- */
86
- sequential: {
87
- maxConcurrency: 1,
88
- defaultTimeout: 24 * 60 * 60 * 1000,
89
- continueOnFailure: false,
90
- autoDetectParallel: false,
91
- },
92
- /**
93
- * Agent pool configuration for multi-agent scenarios
94
- */
95
- agentPool: {
96
- balanceStrategy: 'least-busy',
97
- defaultTimeout: 24 * 60 * 60 * 1000,
98
- maxQueueSize: 50,
99
- },
100
- };
101
- /**
102
- * Quick parallel map with sensible defaults
103
- */
104
- export async function quickParallelMap(items, fn) {
105
- const { parallelMap } = await import('../utils/asyncUtils.js');
106
- return parallelMap(items, (item, _idx) => fn(item), 5);
107
- }
108
- /**
109
- * Execute a batch of async functions in parallel with concurrency limit
110
- */
111
- export async function batchExecute(tasks, concurrency = 5) {
112
- const { ConcurrencyPool } = await import('../utils/asyncUtils.js');
113
- const pool = new ConcurrencyPool({ maxConcurrent: concurrency });
114
- return Promise.all(tasks.map(fn => pool.run(fn)));
115
- }
116
- /**
117
- * Create a simple task queue for sequential execution
118
- */
119
- export function createTaskQueue() {
120
- const queue = [];
121
- let processing = false;
122
- const results = [];
123
- return {
124
- add(task) {
125
- queue.push(task);
126
- },
127
- async process() {
128
- if (processing) {
129
- throw new Error('Queue is already being processed');
130
- }
131
- processing = true;
132
- results.length = 0;
133
- while (queue.length > 0) {
134
- const task = queue.shift();
135
- if (task) {
136
- results.push(await task());
137
- }
138
- }
139
- processing = false;
140
- return results;
141
- },
142
- get length() {
143
- return queue.length;
144
- },
145
- get isProcessing() {
146
- return processing;
147
- },
148
- };
149
- }
150
- //# sourceMappingURL=parallel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parallel.js","sourceRoot":"","sources":["../../src/core/parallel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,OAAO;AACL,UAAU;AACV,gBAAgB,EAChB,UAAU;AAEV,oBAAoB;AACpB,sBAAsB,EACtB,UAAU,EACV,eAAe,EACf,WAAW,GAaZ,MAAM,uBAAuB,CAAC;AAE/B,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,OAAO;AACL,UAAU;AACV,eAAe,EACf,WAAW,EACX,QAAQ;AAER,YAAY;AACZ,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,GAON,MAAM,wBAAwB,CAAC;AAEhC,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,OAAO;AACL,UAAU;AACV,eAAe;AAEf,oBAAoB;AACpB,qBAAqB,EACrB,eAAe,GAYhB,MAAM,+BAA+B,CAAC;AAEvC,+EAA+E;AAC/E,iCAAiC;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AO,CAAC;QACjB,CAAC;QAED,IAAI,MAAM;YACR,OAAO,KAAK,CAAC,MAAM,CAAC;QACtB,CAAC;QAED,IAAI,YAAY;YACd,OAAO,UAAU,CAAC;QACpB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { ParallelTask, BatchResult } from './parallelExecutor.js';
2
- import type { RepoUpgradeModule, UpgradeModuleReport, RepoUpgradeModeDefinition, RepoUpgradeMode } from './repoUpgradeOrchestrator.js';
3
- interface RunModulesContext {
4
- concurrency: number;
5
- mode: RepoUpgradeMode;
6
- modeDefinition: RepoUpgradeModeDefinition;
7
- parallelVariants?: boolean;
8
- continueOnFailure: boolean;
9
- variantStats: Record<string, unknown>;
10
- processModule: (module: RepoUpgradeModule) => Promise<UpgradeModuleReport>;
11
- emit: (event: unknown) => void;
12
- }
13
- export declare class ParallelCoordinator {
14
- private readonly createRunner;
15
- constructor(createRunner: () => {
16
- execute: (tasks: ParallelTask<UpgradeModuleReport>[]) => Promise<BatchResult<UpgradeModuleReport>>;
17
- });
18
- runModules(context: RunModulesContext, modules: RepoUpgradeModule[]): Promise<UpgradeModuleReport[]>;
19
- }
20
- export {};
21
- //# sourceMappingURL=parallelCoordinator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parallelCoordinator.d.ts","sourceRoot":"","sources":["../../src/core/parallelCoordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEvI,UAAU,iBAAiB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,eAAe,CAAC;IACtB,cAAc,EAAE,yBAAyB,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAChC;AAED,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,MAAM;QAAE,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,mBAAmB,CAAC,EAAE,KAAK,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAA;KAAE;IAGvI,UAAU,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAwC3G"}
@@ -1,42 +0,0 @@
1
- export class ParallelCoordinator {
2
- createRunner;
3
- constructor(createRunner) {
4
- this.createRunner = createRunner;
5
- }
6
- async runModules(context, modules) {
7
- const tasks = modules.map((module) => ({
8
- id: module.id,
9
- label: module.label,
10
- parallelizable: true,
11
- execute: () => context.processModule(module),
12
- }));
13
- const runner = this.createRunner();
14
- const batch = await runner.execute(tasks);
15
- const reports = [];
16
- for (const result of batch.results) {
17
- const module = modules.find((m) => m.id === result.taskId);
18
- let report;
19
- if (result.result) {
20
- report = result.result;
21
- }
22
- else {
23
- report = {
24
- id: module?.id ?? result.taskId,
25
- label: module?.label ?? result.taskId,
26
- scope: module?.scope ?? [],
27
- steps: [],
28
- status: result.status === 'completed' ? 'completed' : 'failed',
29
- };
30
- }
31
- if (result.status !== 'completed') {
32
- report.status = 'failed';
33
- }
34
- reports.push(report);
35
- if (result.status === 'failed' && !context.continueOnFailure) {
36
- break;
37
- }
38
- }
39
- return reports;
40
- }
41
- }
42
- //# sourceMappingURL=parallelCoordinator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parallelCoordinator.js","s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AAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ;iBAC/D,CAAC;YACJ,CAAC;YAED,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;gBAClC,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC;YAC3B,CAAC;YAED,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAErB,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBAC7D,MAAM;YACR,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF"}
@@ -1,159 +0,0 @@
1
- /**
2
- * Reality Score System - Hallucination Detection via Testability
3
- *
4
- * Core insight: The more testable/verifiable an edit is, the more "real" it is.
5
- * High reality score = grounded in verifiable facts
6
- * Low reality score = potentially hallucinated
7
- *
8
- * This scoring system works even without running full RL tournaments -
9
- * it provides instant feedback on whether an edit is likely to be real.
10
- */
11
- /**
12
- * Reality score breakdown for an edit operation
13
- */
14
- export interface RealityScore {
15
- /** Overall reality score 0-100 (higher = more real/testable) */
16
- total: number;
17
- /** Individual component scores */
18
- components: {
19
- /** Does the target file exist? (0-20) */
20
- fileExists: number;
21
- /** Does the old_string content actually exist in the file? (0-25) */
22
- contentMatch: number;
23
- /** Will the resulting code be syntactically valid? (0-20) */
24
- syntaxValid: number;
25
- /** Are imports/dependencies real and resolvable? (0-15) */
26
- importsValid: number;
27
- /** Can we run a quick test to verify? (0-20) */
28
- testable: number;
29
- };
30
- /** Confidence level based on what we could verify */
31
- confidence: 'high' | 'medium' | 'low';
32
- /** Potential hallucination indicators */
33
- warnings: string[];
34
- /** What tests/checks passed */
35
- passed: string[];
36
- /** What tests/checks failed */
37
- failed: string[];
38
- }
39
- /**
40
- * Edit operation to score
41
- */
42
- export interface EditOperation {
43
- filePath: string;
44
- oldString: string;
45
- newString: string;
46
- replaceAll?: boolean;
47
- }
48
- /**
49
- * Score an edit operation for reality/testability
50
- */
51
- export declare function scoreEditReality(edit: EditOperation): RealityScore;
52
- /**
53
- * Quick reality check - returns true if edit is likely real, false if potentially hallucinated
54
- */
55
- export declare function quickRealityCheck(edit: EditOperation): {
56
- isReal: boolean;
57
- reason: string;
58
- };
59
- /**
60
- * Get a human-readable summary of the reality score
61
- */
62
- export declare function formatRealityScore(score: RealityScore): string;
63
- /**
64
- * Score threshold recommendations
65
- */
66
- export declare const REALITY_THRESHOLDS: {
67
- /** Edits below this score should be rejected */
68
- REJECT: number;
69
- /** Edits below this score need human review */
70
- REVIEW: number;
71
- /** Edits at or above this score can proceed automatically */
72
- AUTO_APPROVE: number;
73
- };
74
- /**
75
- * Edit outcome for RL feedback
76
- */
77
- export interface EditOutcome {
78
- /** Timestamp of the edit */
79
- timestamp: number;
80
- /** File that was edited */
81
- filePath: string;
82
- /** Reality score at time of edit */
83
- realityScore: number;
84
- /** Confidence level */
85
- confidence: 'high' | 'medium' | 'low';
86
- /** Did the edit succeed without issues? */
87
- success: boolean;
88
- /** Was there a build error after? */
89
- buildError?: boolean;
90
- /** Was there a test failure after? */
91
- testFailure?: boolean;
92
- /** Was the edit reverted? */
93
- reverted?: boolean;
94
- /** Time until outcome was determined (ms) */
95
- outcomeDelayMs?: number;
96
- }
97
- /**
98
- * RL feedback statistics
99
- */
100
- export interface RLFeedbackStats {
101
- /** Total edits tracked */
102
- totalEdits: number;
103
- /** Success rate by confidence level */
104
- successRates: {
105
- high: {
106
- total: number;
107
- success: number;
108
- rate: number;
109
- };
110
- medium: {
111
- total: number;
112
- success: number;
113
- rate: number;
114
- };
115
- low: {
116
- total: number;
117
- success: number;
118
- rate: number;
119
- };
120
- };
121
- /** Average score for successful edits */
122
- avgSuccessScore: number;
123
- /** Average score for failed edits */
124
- avgFailureScore: number;
125
- /** Optimal threshold (where success rate crosses 80%) */
126
- optimalThreshold: number;
127
- /** Score distribution */
128
- scoreDistribution: {
129
- '0-25': number;
130
- '26-50': number;
131
- '51-75': number;
132
- '76-100': number;
133
- };
134
- }
135
- /**
136
- * Record an edit outcome for RL learning
137
- */
138
- export declare function recordEditOutcome(outcome: EditOutcome): void;
139
- /**
140
- * Record a successful edit
141
- */
142
- export declare function recordSuccessfulEdit(filePath: string, score: RealityScore, outcomeDelayMs?: number): void;
143
- /**
144
- * Record a failed edit (build error, test failure, revert)
145
- */
146
- export declare function recordFailedEdit(filePath: string, score: RealityScore, reason: 'build_error' | 'test_failure' | 'reverted' | 'other'): void;
147
- /**
148
- * Calculate RL feedback statistics
149
- */
150
- export declare function calculateRLStats(): RLFeedbackStats;
151
- /**
152
- * Get RL feedback recommendation for current session
153
- */
154
- export declare function getRLRecommendation(): string;
155
- /**
156
- * Clear RL feedback buffer (for testing or reset)
157
- */
158
- export declare function clearRLFeedback(): void;
159
- //# sourceMappingURL=realityScore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"realityScore.d.ts","sourceRoot":"","sources":["../../src/core/realityScore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IAEd,kCAAkC;IAClC,UAAU,EAAE;QACV,yCAAyC;QACzC,UAAU,EAAE,MAAM,CAAC;QACnB,qEAAqE;QACrE,YAAY,EAAE,MAAM,CAAC;QACrB,6DAA6D;QAC7D,WAAW,EAAE,MAAM,CAAC;QACpB,2DAA2D;QAC3D,YAAY,EAAE,MAAM,CAAC;QACrB,gDAAgD;QAChD,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,qDAAqD;IACrD,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEtC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAEnB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;A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