@nxuss/lemma 1.6.0 → 1.7.1

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 (194) hide show
  1. package/README.md +114 -5
  2. package/bin/checkpoint.js +49 -0
  3. package/bin/init.js +21 -2
  4. package/dist/cjs/mcp/prompts.d.ts +1 -2
  5. package/dist/cjs/mcp/prompts.d.ts.map +1 -1
  6. package/dist/cjs/mcp/prompts.js +29 -126
  7. package/dist/cjs/mcp/prompts.js.map +1 -1
  8. package/dist/cjs/mcp/resources.d.ts.map +1 -1
  9. package/dist/cjs/mcp/resources.js +4 -4
  10. package/dist/cjs/mcp/resources.js.map +1 -1
  11. package/dist/cjs/mcp/tool-profiles.d.ts +55 -0
  12. package/dist/cjs/mcp/tool-profiles.d.ts.map +1 -0
  13. package/dist/cjs/mcp/tool-profiles.js +204 -0
  14. package/dist/cjs/mcp/tool-profiles.js.map +1 -0
  15. package/dist/cjs/mcp/tools.d.ts +12 -0
  16. package/dist/cjs/mcp/tools.d.ts.map +1 -1
  17. package/dist/cjs/mcp/tools.js +175 -26
  18. package/dist/cjs/mcp/tools.js.map +1 -1
  19. package/dist/cjs/subconscious/TheBrainV2.d.ts +36 -2
  20. package/dist/cjs/subconscious/TheBrainV2.d.ts.map +1 -1
  21. package/dist/cjs/subconscious/TheBrainV2.js +104 -23
  22. package/dist/cjs/subconscious/TheBrainV2.js.map +1 -1
  23. package/dist/cjs/utils/AutoContextBundle.d.ts.map +1 -1
  24. package/dist/cjs/utils/AutoContextBundle.js +17 -20
  25. package/dist/cjs/utils/AutoContextBundle.js.map +1 -1
  26. package/dist/cjs/utils/ConversationCheckpoint.d.ts +13 -0
  27. package/dist/cjs/utils/ConversationCheckpoint.d.ts.map +1 -1
  28. package/dist/cjs/utils/ConversationCheckpoint.js +58 -0
  29. package/dist/cjs/utils/ConversationCheckpoint.js.map +1 -1
  30. package/dist/cjs/utils/TestAutofixInterceptor.d.ts.map +1 -1
  31. package/dist/cjs/utils/TestAutofixInterceptor.js +15 -26
  32. package/dist/cjs/utils/TestAutofixInterceptor.js.map +1 -1
  33. package/dist/esm/api/dashboardRoutes.d.ts +3 -3
  34. package/dist/esm/api/dashboardRoutes.js +1 -1
  35. package/dist/esm/api/server.d.ts +4 -4
  36. package/dist/esm/api/server.js +3 -3
  37. package/dist/esm/autopilot/AutopilotWatcher.js +3 -3
  38. package/dist/esm/autopilot/Notifier.d.ts +1 -1
  39. package/dist/esm/cli/lemma-proxy.js +14 -14
  40. package/dist/esm/cli/stack.d.ts +4 -4
  41. package/dist/esm/cli/stack.js +5 -5
  42. package/dist/esm/cloud/KeyManager.d.ts +1 -1
  43. package/dist/esm/cloud/KeyManager.js +1 -1
  44. package/dist/esm/cloud/TenantCache.d.ts +1 -1
  45. package/dist/esm/cloud/TenantCache.js +1 -1
  46. package/dist/esm/cloud/index.d.ts +3 -3
  47. package/dist/esm/cloud/index.js +3 -3
  48. package/dist/esm/cloud/server.d.ts +3 -3
  49. package/dist/esm/cloud/server.js +5 -5
  50. package/dist/esm/config/index.d.ts +1 -1
  51. package/dist/esm/config/index.js +1 -1
  52. package/dist/esm/consensus/index.d.ts +2 -2
  53. package/dist/esm/consensus/index.js +2 -2
  54. package/dist/esm/core/AgentRegistry.d.ts +1 -1
  55. package/dist/esm/core/AgentRegistry.js +1 -1
  56. package/dist/esm/core/DashboardBroadcaster.d.ts +3 -3
  57. package/dist/esm/core/DashboardBroadcaster.js +2 -2
  58. package/dist/esm/core/DashboardWebSocketServer.d.ts +1 -1
  59. package/dist/esm/core/DashboardWebSocketServer.js +1 -1
  60. package/dist/esm/core/GhostAlchemist.js +1 -1
  61. package/dist/esm/core/GhostListener.js +2 -2
  62. package/dist/esm/core/OrchestrationEngine.d.ts +3 -3
  63. package/dist/esm/core/OrchestrationEngine.js +2 -2
  64. package/dist/esm/core/SubconsciousEngine.d.ts +1 -1
  65. package/dist/esm/core/SubconsciousEngine.js +2 -2
  66. package/dist/esm/core/WebSocketServer.d.ts +2 -2
  67. package/dist/esm/core/WebSocketServer.js +1 -1
  68. package/dist/esm/core/index.d.ts +6 -6
  69. package/dist/esm/core/index.js +6 -6
  70. package/dist/esm/core/router.d.ts +3 -3
  71. package/dist/esm/core/router.js +1 -1
  72. package/dist/esm/db/database.js +1 -1
  73. package/dist/esm/embed.d.ts +2 -2
  74. package/dist/esm/embed.js +2 -2
  75. package/dist/esm/examples/basic-usage.js +1 -1
  76. package/dist/esm/index.d.ts +14 -14
  77. package/dist/esm/index.js +14 -14
  78. package/dist/esm/infra/analyzers/DriftDetector.d.ts +1 -1
  79. package/dist/esm/infra/analyzers/InfraAnalyzer.d.ts +1 -1
  80. package/dist/esm/infra/analyzers/MonolithAnalyzer.d.ts +1 -1
  81. package/dist/esm/infra/analyzers/index.d.ts +3 -3
  82. package/dist/esm/infra/analyzers/index.js +3 -3
  83. package/dist/esm/infra/cli.js +2 -2
  84. package/dist/esm/infra/config.d.ts +1 -1
  85. package/dist/esm/infra/index.d.ts +5 -5
  86. package/dist/esm/infra/index.js +5 -5
  87. package/dist/esm/infra/mcp-tools.js +5 -5
  88. package/dist/esm/infra/providers/InfraProvider.d.ts +1 -1
  89. package/dist/esm/infra/providers/JenkinsProvider.d.ts +2 -2
  90. package/dist/esm/infra/providers/OKDProvider.d.ts +2 -2
  91. package/dist/esm/infra/providers/TerraformProvider.d.ts +2 -2
  92. package/dist/esm/infra/providers/index.d.ts +5 -5
  93. package/dist/esm/infra/providers/index.js +3 -3
  94. package/dist/esm/mcp/index.js +5 -5
  95. package/dist/esm/mcp/prompts.d.ts +1 -2
  96. package/dist/esm/mcp/prompts.d.ts.map +1 -1
  97. package/dist/esm/mcp/prompts.js +28 -125
  98. package/dist/esm/mcp/prompts.js.map +1 -1
  99. package/dist/esm/mcp/resources.d.ts.map +1 -1
  100. package/dist/esm/mcp/resources.js +5 -5
  101. package/dist/esm/mcp/resources.js.map +1 -1
  102. package/dist/esm/mcp/tool-profiles.d.ts +55 -0
  103. package/dist/esm/mcp/tool-profiles.d.ts.map +1 -0
  104. package/dist/esm/mcp/tool-profiles.js +196 -0
  105. package/dist/esm/mcp/tool-profiles.js.map +1 -0
  106. package/dist/esm/mcp/tools.d.ts +12 -0
  107. package/dist/esm/mcp/tools.d.ts.map +1 -1
  108. package/dist/esm/mcp/tools.js +209 -63
  109. package/dist/esm/mcp/tools.js.map +1 -1
  110. package/dist/esm/observability/IdeContextSync.d.ts +1 -1
  111. package/dist/esm/observability/IdeContextSync.js +5 -5
  112. package/dist/esm/pr-review/PRReviewEngine.d.ts +1 -1
  113. package/dist/esm/pr-review/PRReviewEngine.js +4 -4
  114. package/dist/esm/pr-review/ReviewStore.d.ts +1 -1
  115. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.d.ts +2 -2
  116. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.js +1 -1
  117. package/dist/esm/pr-review/adapters/GitHubAdapter.d.ts +2 -2
  118. package/dist/esm/pr-review/adapters/GitHubAdapter.js +1 -1
  119. package/dist/esm/pr-review/adapters/GitLabAdapter.d.ts +2 -2
  120. package/dist/esm/pr-review/adapters/GitLabAdapter.js +1 -1
  121. package/dist/esm/pr-review/adapters/GitPlatformAdapter.d.ts +1 -1
  122. package/dist/esm/pr-review/adapters/index.d.ts +4 -4
  123. package/dist/esm/pr-review/adapters/index.js +3 -3
  124. package/dist/esm/pr-review/analyzers/QualityGrader.d.ts +1 -1
  125. package/dist/esm/pr-review/analyzers/RegressionDetector.d.ts +1 -1
  126. package/dist/esm/pr-review/analyzers/SecurityScanner.d.ts +1 -1
  127. package/dist/esm/pr-review/analyzers/StaticAnalyzer.d.ts +1 -1
  128. package/dist/esm/pr-review/analyzers/index.d.ts +8 -8
  129. package/dist/esm/pr-review/analyzers/index.js +4 -4
  130. package/dist/esm/pr-review/bridge/BrainBridge.d.ts +1 -1
  131. package/dist/esm/pr-review/bridge/BrainBridge.js +1 -1
  132. package/dist/esm/pr-review/bridge/index.d.ts +1 -1
  133. package/dist/esm/pr-review/bridge/index.js +1 -1
  134. package/dist/esm/pr-review/index.d.ts +4 -4
  135. package/dist/esm/pr-review/index.js +2 -2
  136. package/dist/esm/pr-review/reviewRunner.d.ts +2 -2
  137. package/dist/esm/pr-review/reviewRunner.js +6 -6
  138. package/dist/esm/pr-review/webhook/WebhookServer.js +1 -1
  139. package/dist/esm/pr-review/webhook/index.d.ts +1 -1
  140. package/dist/esm/pr-review/webhook/index.js +1 -1
  141. package/dist/esm/protocol/flows.d.ts +1 -1
  142. package/dist/esm/protocol/flows.js +1 -1
  143. package/dist/esm/protocol/index.d.ts +4 -4
  144. package/dist/esm/protocol/index.js +4 -4
  145. package/dist/esm/protocol/utils.d.ts +1 -1
  146. package/dist/esm/protocol/utils.js +2 -2
  147. package/dist/esm/protocol/validators.d.ts +1 -1
  148. package/dist/esm/protocol/validators.js +1 -1
  149. package/dist/esm/proxy/ContextInjector.d.ts +1 -1
  150. package/dist/esm/proxy/Gatekeeper.d.ts +1 -1
  151. package/dist/esm/security/SecurityMiddleware.d.ts +1 -1
  152. package/dist/esm/security/SecurityMiddleware.js +3 -3
  153. package/dist/esm/security/index.d.ts +4 -4
  154. package/dist/esm/security/index.js +4 -4
  155. package/dist/esm/speculative/SpeculativeCache.d.ts +2 -2
  156. package/dist/esm/speculative/SpeculativeEngine.d.ts +2 -2
  157. package/dist/esm/speculative/SpeculativeEngine.js +3 -3
  158. package/dist/esm/speculative/WorkerPool.d.ts +1 -1
  159. package/dist/esm/speculative/index.d.ts +4 -4
  160. package/dist/esm/speculative/index.js +4 -4
  161. package/dist/esm/subconscious/SemanticCache.d.ts +2 -2
  162. package/dist/esm/subconscious/SemanticCache.js +2 -2
  163. package/dist/esm/subconscious/SubconsciousEngine.d.ts +1 -1
  164. package/dist/esm/subconscious/SubconsciousEngine.js +3 -3
  165. package/dist/esm/subconscious/TheBrainV2.d.ts +36 -2
  166. package/dist/esm/subconscious/TheBrainV2.d.ts.map +1 -1
  167. package/dist/esm/subconscious/TheBrainV2.js +103 -23
  168. package/dist/esm/subconscious/TheBrainV2.js.map +1 -1
  169. package/dist/esm/subconscious/index.d.ts +4 -4
  170. package/dist/esm/subconscious/index.js +4 -4
  171. package/dist/esm/utils/AutoContextBundle.d.ts +1 -1
  172. package/dist/esm/utils/AutoContextBundle.d.ts.map +1 -1
  173. package/dist/esm/utils/AutoContextBundle.js +20 -23
  174. package/dist/esm/utils/AutoContextBundle.js.map +1 -1
  175. package/dist/esm/utils/BulkFileDigest.js +2 -2
  176. package/dist/esm/utils/ClipboardWatcher.js +2 -2
  177. package/dist/esm/utils/ContextCollapser.js +1 -1
  178. package/dist/esm/utils/ConversationCheckpoint.d.ts +13 -0
  179. package/dist/esm/utils/ConversationCheckpoint.d.ts.map +1 -1
  180. package/dist/esm/utils/ConversationCheckpoint.js +57 -0
  181. package/dist/esm/utils/ConversationCheckpoint.js.map +1 -1
  182. package/dist/esm/utils/ExecutiveReport.js +1 -1
  183. package/dist/esm/utils/StructuralSearch.d.ts +1 -1
  184. package/dist/esm/utils/SurgicalASTInsert.js +1 -1
  185. package/dist/esm/utils/SymbolSurgicalContext.js +1 -1
  186. package/dist/esm/utils/TestAutofixInterceptor.d.ts.map +1 -1
  187. package/dist/esm/utils/TestAutofixInterceptor.js +15 -26
  188. package/dist/esm/utils/TestAutofixInterceptor.js.map +1 -1
  189. package/dist/esm/utils/WorkspaceSearch.js +0 -0
  190. package/dist/esm/utils/logger.js +1 -1
  191. package/package.json +9 -10
  192. package/sdks/crewai/README.md +178 -0
  193. package/sdks/crewai/dist/index.d.ts +130 -0
  194. package/sdks/crewai/dist/index.js +308 -0
@@ -1,4 +1,4 @@
1
- import { IdeSyncConfig } from '../types';
1
+ import { IdeSyncConfig } from '../types/index.js';
2
2
  export interface ContextEvent {
3
3
  type: 'uncaught_exception' | 'unhandled_rejection' | 'agent_failure' | 'state_mutation';
4
4
  message: string;
@@ -1,10 +1,10 @@
1
1
  import { promises as fs } from 'fs';
2
2
  import path from 'path';
3
- import { EmbeddingService } from '../subconscious/EmbeddingService';
4
- import { KeyManager } from '../proxy/KeyManager';
5
- import { config } from '../config';
6
- import { createLogger } from '../utils/logger';
7
- import { squeezeCode } from '../utils/ContextSqueezer';
3
+ import { EmbeddingService } from '../subconscious/EmbeddingService.js';
4
+ import { KeyManager } from '../proxy/KeyManager.js';
5
+ import { config } from '../config/index.js';
6
+ import { createLogger } from '../utils/logger.js';
7
+ import { squeezeCode } from '../utils/ContextSqueezer.js';
8
8
  const logger = createLogger('IdeContextSync');
9
9
  /**
10
10
  * IDE State Sync (Telepathic Context Injector)
@@ -1,4 +1,4 @@
1
- import { AnalyzeResult, DiffFile, AnalyzerConfig } from "./types";
1
+ import { AnalyzeResult, DiffFile, AnalyzerConfig } from "./types.js";
2
2
  export declare function runAnalysis(diffFiles: DiffFile[], config: AnalyzerConfig, workspaceRoot: string, baseBranch?: string): AnalyzeResult;
3
3
  export declare function parseDiff(diffContent: string): DiffFile[];
4
4
  //# sourceMappingURL=PRReviewEngine.d.ts.map
@@ -1,7 +1,7 @@
1
- import { analyzeStatic } from "./analyzers/StaticAnalyzer";
2
- import { analyzeQuality } from "./analyzers/QualityGrader";
3
- import { analyzeSecurity } from "./analyzers/SecurityScanner";
4
- import { analyzeRegression } from "./analyzers/RegressionDetector";
1
+ import { analyzeStatic } from "./analyzers/StaticAnalyzer.js";
2
+ import { analyzeQuality } from "./analyzers/QualityGrader.js";
3
+ import { analyzeSecurity } from "./analyzers/SecurityScanner.js";
4
+ import { analyzeRegression } from "./analyzers/RegressionDetector.js";
5
5
  const DEFAULT_WEIGHTS = {
6
6
  static: 0.25,
7
7
  security: 0.30,
@@ -1,4 +1,4 @@
1
- import { PRReviewResult } from "./types";
1
+ import { PRReviewResult } from "./types.js";
2
2
  export declare const ReviewStore: {
3
3
  create(partial: Omit<PRReviewResult, "reviewId" | "timestamp">): PRReviewResult;
4
4
  get(reviewId: string): PRReviewResult | undefined;
@@ -1,5 +1,5 @@
1
- import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types";
2
- import { GitPlatformAdapter } from "./GitPlatformAdapter";
1
+ import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types.js";
2
+ import { GitPlatformAdapter } from "./GitPlatformAdapter.js";
3
3
  export declare class AzureDevOpsAdapter implements GitPlatformAdapter {
4
4
  private token;
5
5
  private orgUrl;
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { parseDiff } from "../PRReviewEngine";
2
+ import { parseDiff } from "../PRReviewEngine.js";
3
3
  export class AzureDevOpsAdapter {
4
4
  constructor(token, orgUrl) {
5
5
  this.token = token;
@@ -1,5 +1,5 @@
1
- import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types";
2
- import { GitPlatformAdapter } from "./GitPlatformAdapter";
1
+ import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types.js";
2
+ import { GitPlatformAdapter } from "./GitPlatformAdapter.js";
3
3
  export declare class GitHubAdapter implements GitPlatformAdapter {
4
4
  private token;
5
5
  private baseUrl;
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { parseDiff } from "../PRReviewEngine";
2
+ import { parseDiff } from "../PRReviewEngine.js";
3
3
  export class GitHubAdapter {
4
4
  constructor(token, baseUrl) {
5
5
  this.token = token;
@@ -1,5 +1,5 @@
1
- import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types";
2
- import { GitPlatformAdapter } from "./GitPlatformAdapter";
1
+ import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types.js";
2
+ import { GitPlatformAdapter } from "./GitPlatformAdapter.js";
3
3
  export declare class GitLabAdapter implements GitPlatformAdapter {
4
4
  private token;
5
5
  private baseUrl;
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { parseDiff } from "../PRReviewEngine";
2
+ import { parseDiff } from "../PRReviewEngine.js";
3
3
  export class GitLabAdapter {
4
4
  constructor(token, baseUrl) {
5
5
  this.token = token;
@@ -1,4 +1,4 @@
1
- import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types";
1
+ import { DiffFile, PRMetadata, ReviewEvent, StatusState, WorkflowConfig } from "../types.js";
2
2
  export interface GitPlatformAdapter {
3
3
  validateCredentials(): Promise<boolean>;
4
4
  getPRDiff(owner: string, repo: string, prNumber: number): Promise<DiffFile[]>;
@@ -1,5 +1,5 @@
1
- export { GitPlatformAdapter } from "./GitPlatformAdapter";
2
- export { GitHubAdapter } from "./GitHubAdapter";
3
- export { AzureDevOpsAdapter } from "./AzureDevOpsAdapter";
4
- export { GitLabAdapter } from "./GitLabAdapter";
1
+ export { GitPlatformAdapter } from "./GitPlatformAdapter.js";
2
+ export { GitHubAdapter } from "./GitHubAdapter.js";
3
+ export { AzureDevOpsAdapter } from "./AzureDevOpsAdapter.js";
4
+ export { GitLabAdapter } from "./GitLabAdapter.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export { GitHubAdapter } from "./GitHubAdapter";
2
- export { AzureDevOpsAdapter } from "./AzureDevOpsAdapter";
3
- export { GitLabAdapter } from "./GitLabAdapter";
1
+ export { GitHubAdapter } from "./GitHubAdapter.js";
2
+ export { AzureDevOpsAdapter } from "./AzureDevOpsAdapter.js";
3
+ export { GitLabAdapter } from "./GitLabAdapter.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface QualityAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface RegressionAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface SecurityAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface StaticAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,9 +1,9 @@
1
- export { analyzeStatic } from "./StaticAnalyzer";
2
- export type { StaticAnalysisResult } from "./StaticAnalyzer";
3
- export { analyzeQuality } from "./QualityGrader";
4
- export type { QualityAnalysisResult } from "./QualityGrader";
5
- export { analyzeSecurity } from "./SecurityScanner";
6
- export type { SecurityAnalysisResult } from "./SecurityScanner";
7
- export { analyzeRegression } from "./RegressionDetector";
8
- export type { RegressionAnalysisResult } from "./RegressionDetector";
1
+ export { analyzeStatic } from "./StaticAnalyzer.js";
2
+ export type { StaticAnalysisResult } from "./StaticAnalyzer.js";
3
+ export { analyzeQuality } from "./QualityGrader.js";
4
+ export type { QualityAnalysisResult } from "./QualityGrader.js";
5
+ export { analyzeSecurity } from "./SecurityScanner.js";
6
+ export type { SecurityAnalysisResult } from "./SecurityScanner.js";
7
+ export { analyzeRegression } from "./RegressionDetector.js";
8
+ export type { RegressionAnalysisResult } from "./RegressionDetector.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export { analyzeStatic } from "./StaticAnalyzer";
2
- export { analyzeQuality } from "./QualityGrader";
3
- export { analyzeSecurity } from "./SecurityScanner";
4
- export { analyzeRegression } from "./RegressionDetector";
1
+ export { analyzeStatic } from "./StaticAnalyzer.js";
2
+ export { analyzeQuality } from "./QualityGrader.js";
3
+ export { analyzeSecurity } from "./SecurityScanner.js";
4
+ export { analyzeRegression } from "./RegressionDetector.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Finding } from "../types";
1
+ import { Finding } from "../types.js";
2
2
  interface BrainMemory {
3
3
  prompt: string;
4
4
  response: string;
@@ -1,5 +1,5 @@
1
1
  import axios from "axios";
2
- import { getProxyPort } from "../../mcp/utils";
2
+ import { getProxyPort } from "../../mcp/utils.js";
3
3
  export class BrainBridge {
4
4
  async searchQuery(query, limit = 3) {
5
5
  try {
@@ -1,2 +1,2 @@
1
- export { BrainBridge } from "./BrainBridge";
1
+ export { BrainBridge } from "./BrainBridge.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { BrainBridge } from "./BrainBridge";
1
+ export { BrainBridge } from "./BrainBridge.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export { runAnalysis, parseDiff } from "./PRReviewEngine";
2
- export type { AnalyzeResult } from "./types";
3
- export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers";
4
- export type { StaticAnalysisResult, QualityAnalysisResult, SecurityAnalysisResult, RegressionAnalysisResult, } from "./analyzers";
1
+ export { runAnalysis, parseDiff } from "./PRReviewEngine.js";
2
+ export type { AnalyzeResult } from "./types.js";
3
+ export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers/index.js";
4
+ export type { StaticAnalysisResult, QualityAnalysisResult, SecurityAnalysisResult, RegressionAnalysisResult, } from "./analyzers/index.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { runAnalysis, parseDiff } from "./PRReviewEngine";
2
- export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers";
1
+ export { runAnalysis, parseDiff } from "./PRReviewEngine.js";
2
+ export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers/index.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import type { GitPlatformAdapter } from "./adapters/GitPlatformAdapter";
2
- import type { Platform, PRMetadata } from "./types";
1
+ import type { GitPlatformAdapter } from "./adapters/GitPlatformAdapter.js";
2
+ import type { Platform, PRMetadata } from "./types.js";
3
3
  export declare function getAdapter(platform: string, token: string): GitPlatformAdapter;
4
4
  export declare function getTokenForPlatform(platform: string): string;
5
5
  export interface PRReviewOptions {
@@ -1,9 +1,9 @@
1
- import { runAnalysis } from "./PRReviewEngine";
2
- import { ReviewStore } from "./ReviewStore";
3
- import { BrainBridge } from "./bridge/BrainBridge";
4
- import { GitHubAdapter } from "./adapters/GitHubAdapter";
5
- import { AzureDevOpsAdapter } from "./adapters/AzureDevOpsAdapter";
6
- import { GitLabAdapter } from "./adapters/GitLabAdapter";
1
+ import { runAnalysis } from "./PRReviewEngine.js";
2
+ import { ReviewStore } from "./ReviewStore.js";
3
+ import { BrainBridge } from "./bridge/BrainBridge.js";
4
+ import { GitHubAdapter } from "./adapters/GitHubAdapter.js";
5
+ import { AzureDevOpsAdapter } from "./adapters/AzureDevOpsAdapter.js";
6
+ import { GitLabAdapter } from "./adapters/GitLabAdapter.js";
7
7
  const brainBridge = new BrainBridge();
8
8
  export function getAdapter(platform, token) {
9
9
  switch (platform) {
@@ -1,6 +1,6 @@
1
1
  import { Router } from "express";
2
2
  import crypto from "crypto";
3
- import { runPRReview } from "../reviewRunner";
3
+ import { runPRReview } from "../reviewRunner.js";
4
4
  function verifyGitHubSignature(payload, signature, secret) {
5
5
  const sig = `sha256=${crypto.createHmac("sha256", secret).update(payload).digest("hex")}`;
6
6
  if (signature.length !== sig.length)
@@ -1,2 +1,2 @@
1
- export { createWebhookRouter } from "./WebhookServer";
1
+ export { createWebhookRouter } from "./WebhookServer.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { createWebhookRouter } from "./WebhookServer";
1
+ export { createWebhookRouter } from "./WebhookServer.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Protocol flow definitions and state machine logic
5
5
  */
6
- import { MessageType, TaskStatus, AgentId, TaskId } from './types';
6
+ import { MessageType, TaskStatus, AgentId, TaskId } from './types.js';
7
7
  /**
8
8
  * Protocol flow states
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Protocol flow definitions and state machine logic
5
5
  */
6
- import { MessageType, TaskStatus } from './types';
6
+ import { MessageType, TaskStatus } from './types.js';
7
7
  /**
8
8
  * Protocol flow states
9
9
  */
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * Main entry point for the protocol implementation
5
5
  */
6
- export * from './types';
7
- export * from './validators';
8
- export * from './flows';
9
- export * from './utils';
6
+ export * from './types.js';
7
+ export * from './validators.js';
8
+ export * from './flows.js';
9
+ export * from './utils.js';
10
10
  export declare const IAP_VERSION = "1.0.0";
11
11
  export declare const IAP_NAME = "Inter-Agent Protocol";
12
12
  /**
@@ -4,13 +4,13 @@
4
4
  * Main entry point for the protocol implementation
5
5
  */
6
6
  // Export all types
7
- export * from './types';
7
+ export * from './types.js';
8
8
  // Export validators
9
- export * from './validators';
9
+ export * from './validators.js';
10
10
  // Export flows
11
- export * from './flows';
11
+ export * from './flows.js';
12
12
  // Export utilities
13
- export * from './utils';
13
+ export * from './utils.js';
14
14
  // Version information
15
15
  export const IAP_VERSION = '1.0.0';
16
16
  export const IAP_NAME = 'Inter-Agent Protocol';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Utility functions for message creation and handling
5
5
  */
6
- import { IAPMessage, MessageType, AgentId, TaskId, MessageId, AgentHandshake, TaskProposal, TaskBid, ContextTransfer, ErrorMessage, CapabilityDiscovery, TaskAssignment, TaskResult, Heartbeat, DisconnectMessage } from './types';
6
+ import { IAPMessage, MessageType, AgentId, TaskId, MessageId, AgentHandshake, TaskProposal, TaskBid, ContextTransfer, ErrorMessage, CapabilityDiscovery, TaskAssignment, TaskResult, Heartbeat, DisconnectMessage } from './types.js';
7
7
  /**
8
8
  * Generates a unique message ID
9
9
  */
@@ -4,8 +4,8 @@
4
4
  * Utility functions for message creation and handling
5
5
  */
6
6
  import { v4 as uuidv4 } from 'uuid';
7
- import { MessageType } from './types';
8
- import { PROTOCOL_VERSION } from './validators';
7
+ import { MessageType } from './types.js';
8
+ import { PROTOCOL_VERSION } from './validators.js';
9
9
  /**
10
10
  * Generates a unique message ID
11
11
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Message validators for ensuring protocol compliance
5
5
  */
6
- import { IAPMessage, ErrorMessage } from './types';
6
+ import { IAPMessage, ErrorMessage } from './types.js';
7
7
  /**
8
8
  * Validation result
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Message validators for ensuring protocol compliance
5
5
  */
6
- import { MessageType, CapabilityType } from './types';
6
+ import { MessageType, CapabilityType } from './types.js';
7
7
  /**
8
8
  * Protocol version supported by this implementation
9
9
  */
@@ -1,4 +1,4 @@
1
- import type { RegisteredProject } from "./ProjectRegistry";
1
+ import type { RegisteredProject } from "./ProjectRegistry.js";
2
2
  export type InjectionLevel = "none" | "minimal" | "deep";
3
3
  export interface InjectionSession {
4
4
  alreadyInjected: boolean;
@@ -9,7 +9,7 @@
9
9
  * Emits 'mode-changed' when the effective tier switches.
10
10
  */
11
11
  import { EventEmitter } from 'events';
12
- import { KeyManager } from './KeyManager';
12
+ import { KeyManager } from './KeyManager.js';
13
13
  export type CacheMode = 'standard' | 'pro';
14
14
  export interface GatekeeperStatus {
15
15
  mode: CacheMode;
@@ -1,4 +1,4 @@
1
- import { ApiKey } from './AuthManager';
1
+ import { ApiKey } from './AuthManager.js';
2
2
  /**
3
3
  * Security Middleware
4
4
  * Integrates all security features into a single middleware
@@ -1,6 +1,6 @@
1
- import { AuthManager } from './AuthManager';
2
- import { RateLimiter } from './RateLimiter';
3
- import { MessageSanitizer } from './MessageSanitizer';
1
+ import { AuthManager } from './AuthManager.js';
2
+ import { RateLimiter } from './RateLimiter.js';
3
+ import { MessageSanitizer } from './MessageSanitizer.js';
4
4
  export class SecurityMiddleware {
5
5
  constructor(config) {
6
6
  this.config = config;
@@ -2,10 +2,10 @@
2
2
  * Security Module
3
3
  * Exports all security-related components
4
4
  */
5
- export { AuthManager, ApiKey, AuthConfig } from './AuthManager';
6
- export { RateLimiter, RateLimitConfig } from './RateLimiter';
7
- export { MessageSanitizer, SanitizationResult } from './MessageSanitizer';
8
- export { SecurityMiddleware, SecurityConfig, SecurityCheckResult } from './SecurityMiddleware';
5
+ export { AuthManager, ApiKey, AuthConfig } from './AuthManager.js';
6
+ export { RateLimiter, RateLimitConfig } from './RateLimiter.js';
7
+ export { MessageSanitizer, SanitizationResult } from './MessageSanitizer.js';
8
+ export { SecurityMiddleware, SecurityConfig, SecurityCheckResult } from './SecurityMiddleware.js';
9
9
  /**
10
10
  * Default security configuration
11
11
  */
@@ -2,10 +2,10 @@
2
2
  * Security Module
3
3
  * Exports all security-related components
4
4
  */
5
- export { AuthManager } from './AuthManager';
6
- export { RateLimiter } from './RateLimiter';
7
- export { MessageSanitizer } from './MessageSanitizer';
8
- export { SecurityMiddleware } from './SecurityMiddleware';
5
+ export { AuthManager } from './AuthManager.js';
6
+ export { RateLimiter } from './RateLimiter.js';
7
+ export { MessageSanitizer } from './MessageSanitizer.js';
8
+ export { SecurityMiddleware } from './SecurityMiddleware.js';
9
9
  /**
10
10
  * Default security configuration
11
11
  */
@@ -11,8 +11,8 @@
11
11
  * - Automatic cleanup
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
15
- import { WorkerResult } from './WorkerPool';
14
+ import { Prediction } from './PredictionEngine.js';
15
+ import { WorkerResult } from './WorkerPool.js';
16
16
  export interface CacheEntry {
17
17
  id: string;
18
18
  prediction: Prediction;
@@ -11,8 +11,8 @@
11
11
  * - Graceful fallback to standard routing
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
15
- import { CacheEntry } from './SpeculativeCache';
14
+ import { Prediction } from './PredictionEngine.js';
15
+ import { CacheEntry } from './SpeculativeCache.js';
16
16
  export interface SpeculativeEngineConfig {
17
17
  enabled?: boolean;
18
18
  predictionEngine?: any;
@@ -11,9 +11,9 @@
11
11
  * - Graceful fallback to standard routing
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { PredictionEngine } from './PredictionEngine';
15
- import { WorkerPool } from './WorkerPool';
16
- import { SpeculativeCache } from './SpeculativeCache';
14
+ import { PredictionEngine } from './PredictionEngine.js';
15
+ import { WorkerPool } from './WorkerPool.js';
16
+ import { SpeculativeCache } from './SpeculativeCache.js';
17
17
  export class SpeculativeEngine extends EventEmitter {
18
18
  constructor(config = {}) {
19
19
  super();
@@ -11,7 +11,7 @@
11
11
  * - Graceful shutdown
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
14
+ import { Prediction } from './PredictionEngine.js';
15
15
  export interface WorkerTask {
16
16
  id: string;
17
17
  prediction: Prediction;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Exports all speculative execution components for Phase 3.
5
5
  */
6
- export { PredictionEngine, PredictionRequest, Prediction, PredictionEngineConfig, PredictionMetrics } from './PredictionEngine';
7
- export { WorkerPool, WorkerTask, WorkerResult, WorkerPoolConfig, WorkerPoolMetrics } from './WorkerPool';
8
- export { SpeculativeCache, CacheEntry, SpeculativeCacheConfig, SpeculativeCacheMetrics } from './SpeculativeCache';
9
- export { SpeculativeEngine, SpeculativeEngineConfig, SpeculativeResult, SpeculativeMetrics } from './SpeculativeEngine';
6
+ export { PredictionEngine, PredictionRequest, Prediction, PredictionEngineConfig, PredictionMetrics } from './PredictionEngine.js';
7
+ export { WorkerPool, WorkerTask, WorkerResult, WorkerPoolConfig, WorkerPoolMetrics } from './WorkerPool.js';
8
+ export { SpeculativeCache, CacheEntry, SpeculativeCacheConfig, SpeculativeCacheMetrics } from './SpeculativeCache.js';
9
+ export { SpeculativeEngine, SpeculativeEngineConfig, SpeculativeResult, SpeculativeMetrics } from './SpeculativeEngine.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Exports all speculative execution components for Phase 3.
5
5
  */
6
- export { PredictionEngine } from './PredictionEngine';
7
- export { WorkerPool } from './WorkerPool';
8
- export { SpeculativeCache } from './SpeculativeCache';
9
- export { SpeculativeEngine } from './SpeculativeEngine';
6
+ export { PredictionEngine } from './PredictionEngine.js';
7
+ export { WorkerPool } from './WorkerPool.js';
8
+ export { SpeculativeCache } from './SpeculativeCache.js';
9
+ export { SpeculativeEngine } from './SpeculativeEngine.js';
10
10
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { VectorStore } from './VectorStore';
2
- import { EmbeddingService } from './EmbeddingService';
1
+ import { VectorStore } from './VectorStore.js';
2
+ import { EmbeddingService } from './EmbeddingService.js';
3
3
  /**
4
4
  * Result of a cache lookup operation.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { EmbeddingService } from './EmbeddingService';
2
- import { createLogger } from '../utils/logger';
1
+ import { EmbeddingService } from './EmbeddingService.js';
2
+ import { createLogger } from '../utils/logger.js';
3
3
  const logger = createLogger('SemanticCache');
4
4
  /**
5
5
  * SemanticCache implements the "short-circuit" logic for semantic caching.
@@ -1,4 +1,4 @@
1
- import { CacheResult } from './SemanticCache';
1
+ import { CacheResult } from './SemanticCache.js';
2
2
  import { EventEmitter } from 'events';
3
3
  /**
4
4
  * Configuration options for SubconsciousEngine.
@@ -1,6 +1,6 @@
1
- import { VectorStore } from './VectorStore';
2
- import { EmbeddingService } from './EmbeddingService';
3
- import { SemanticCache } from './SemanticCache';
1
+ import { VectorStore } from './VectorStore.js';
2
+ import { EmbeddingService } from './EmbeddingService.js';
3
+ import { SemanticCache } from './SemanticCache.js';
4
4
  import { EventEmitter } from 'events';
5
5
  /**
6
6
  * SubconsciousEngine is the main orchestrator for semantic caching.