@nxuss/lemma 1.7.0 → 1.7.2

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 (158) hide show
  1. package/dist/cjs/mcp/tools.d.ts.map +1 -1
  2. package/dist/cjs/mcp/tools.js +115 -15
  3. package/dist/cjs/mcp/tools.js.map +1 -1
  4. package/dist/cjs/proxy/ComplexityRouter.d.ts +7 -0
  5. package/dist/cjs/proxy/ComplexityRouter.d.ts.map +1 -1
  6. package/dist/cjs/proxy/ComplexityRouter.js +18 -5
  7. package/dist/cjs/proxy/ComplexityRouter.js.map +1 -1
  8. package/dist/cjs/utils/TokenReceipt.d.ts +6 -0
  9. package/dist/cjs/utils/TokenReceipt.d.ts.map +1 -1
  10. package/dist/cjs/utils/TokenReceipt.js +9 -0
  11. package/dist/cjs/utils/TokenReceipt.js.map +1 -1
  12. package/dist/esm/api/dashboardRoutes.d.ts +3 -3
  13. package/dist/esm/api/dashboardRoutes.js +1 -1
  14. package/dist/esm/api/server.d.ts +4 -4
  15. package/dist/esm/api/server.js +3 -3
  16. package/dist/esm/autopilot/AutopilotWatcher.js +3 -3
  17. package/dist/esm/autopilot/Notifier.d.ts +1 -1
  18. package/dist/esm/cli/lemma-proxy.js +14 -14
  19. package/dist/esm/cli/stack.d.ts +4 -4
  20. package/dist/esm/cli/stack.js +5 -5
  21. package/dist/esm/cloud/KeyManager.d.ts +1 -1
  22. package/dist/esm/cloud/KeyManager.js +1 -1
  23. package/dist/esm/cloud/TenantCache.d.ts +1 -1
  24. package/dist/esm/cloud/TenantCache.js +1 -1
  25. package/dist/esm/cloud/index.d.ts +3 -3
  26. package/dist/esm/cloud/index.js +3 -3
  27. package/dist/esm/cloud/server.d.ts +3 -3
  28. package/dist/esm/cloud/server.js +5 -5
  29. package/dist/esm/config/index.d.ts +1 -1
  30. package/dist/esm/config/index.js +1 -1
  31. package/dist/esm/consensus/index.d.ts +2 -2
  32. package/dist/esm/consensus/index.js +2 -2
  33. package/dist/esm/core/AgentRegistry.d.ts +1 -1
  34. package/dist/esm/core/AgentRegistry.js +1 -1
  35. package/dist/esm/core/DashboardBroadcaster.d.ts +3 -3
  36. package/dist/esm/core/DashboardBroadcaster.js +2 -2
  37. package/dist/esm/core/DashboardWebSocketServer.d.ts +1 -1
  38. package/dist/esm/core/DashboardWebSocketServer.js +1 -1
  39. package/dist/esm/core/GhostAlchemist.js +1 -1
  40. package/dist/esm/core/GhostListener.js +2 -2
  41. package/dist/esm/core/OrchestrationEngine.d.ts +3 -3
  42. package/dist/esm/core/OrchestrationEngine.js +2 -2
  43. package/dist/esm/core/SubconsciousEngine.d.ts +1 -1
  44. package/dist/esm/core/SubconsciousEngine.js +2 -2
  45. package/dist/esm/core/WebSocketServer.d.ts +2 -2
  46. package/dist/esm/core/WebSocketServer.js +1 -1
  47. package/dist/esm/core/index.d.ts +6 -6
  48. package/dist/esm/core/index.js +6 -6
  49. package/dist/esm/core/router.d.ts +3 -3
  50. package/dist/esm/core/router.js +1 -1
  51. package/dist/esm/db/database.js +1 -1
  52. package/dist/esm/embed.d.ts +2 -2
  53. package/dist/esm/embed.js +2 -2
  54. package/dist/esm/examples/basic-usage.js +1 -1
  55. package/dist/esm/index.d.ts +14 -14
  56. package/dist/esm/index.js +14 -14
  57. package/dist/esm/infra/analyzers/DriftDetector.d.ts +1 -1
  58. package/dist/esm/infra/analyzers/InfraAnalyzer.d.ts +1 -1
  59. package/dist/esm/infra/analyzers/MonolithAnalyzer.d.ts +1 -1
  60. package/dist/esm/infra/analyzers/index.d.ts +3 -3
  61. package/dist/esm/infra/analyzers/index.js +3 -3
  62. package/dist/esm/infra/cli.js +2 -2
  63. package/dist/esm/infra/config.d.ts +1 -1
  64. package/dist/esm/infra/index.d.ts +5 -5
  65. package/dist/esm/infra/index.js +5 -5
  66. package/dist/esm/infra/mcp-tools.js +5 -5
  67. package/dist/esm/infra/providers/InfraProvider.d.ts +1 -1
  68. package/dist/esm/infra/providers/JenkinsProvider.d.ts +2 -2
  69. package/dist/esm/infra/providers/OKDProvider.d.ts +2 -2
  70. package/dist/esm/infra/providers/TerraformProvider.d.ts +2 -2
  71. package/dist/esm/infra/providers/index.d.ts +5 -5
  72. package/dist/esm/infra/providers/index.js +3 -3
  73. package/dist/esm/mcp/index.js +5 -5
  74. package/dist/esm/mcp/resources.js +2 -2
  75. package/dist/esm/mcp/tools.d.ts.map +1 -1
  76. package/dist/esm/mcp/tools.js +153 -53
  77. package/dist/esm/mcp/tools.js.map +1 -1
  78. package/dist/esm/observability/IdeContextSync.d.ts +1 -1
  79. package/dist/esm/observability/IdeContextSync.js +5 -5
  80. package/dist/esm/pr-review/PRReviewEngine.d.ts +1 -1
  81. package/dist/esm/pr-review/PRReviewEngine.js +4 -4
  82. package/dist/esm/pr-review/ReviewStore.d.ts +1 -1
  83. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.d.ts +2 -2
  84. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.js +1 -1
  85. package/dist/esm/pr-review/adapters/GitHubAdapter.d.ts +2 -2
  86. package/dist/esm/pr-review/adapters/GitHubAdapter.js +1 -1
  87. package/dist/esm/pr-review/adapters/GitLabAdapter.d.ts +2 -2
  88. package/dist/esm/pr-review/adapters/GitLabAdapter.js +1 -1
  89. package/dist/esm/pr-review/adapters/GitPlatformAdapter.d.ts +1 -1
  90. package/dist/esm/pr-review/adapters/index.d.ts +4 -4
  91. package/dist/esm/pr-review/adapters/index.js +3 -3
  92. package/dist/esm/pr-review/analyzers/QualityGrader.d.ts +1 -1
  93. package/dist/esm/pr-review/analyzers/RegressionDetector.d.ts +1 -1
  94. package/dist/esm/pr-review/analyzers/SecurityScanner.d.ts +1 -1
  95. package/dist/esm/pr-review/analyzers/StaticAnalyzer.d.ts +1 -1
  96. package/dist/esm/pr-review/analyzers/index.d.ts +8 -8
  97. package/dist/esm/pr-review/analyzers/index.js +4 -4
  98. package/dist/esm/pr-review/bridge/BrainBridge.d.ts +1 -1
  99. package/dist/esm/pr-review/bridge/BrainBridge.js +1 -1
  100. package/dist/esm/pr-review/bridge/index.d.ts +1 -1
  101. package/dist/esm/pr-review/bridge/index.js +1 -1
  102. package/dist/esm/pr-review/index.d.ts +4 -4
  103. package/dist/esm/pr-review/index.js +2 -2
  104. package/dist/esm/pr-review/reviewRunner.d.ts +2 -2
  105. package/dist/esm/pr-review/reviewRunner.js +6 -6
  106. package/dist/esm/pr-review/webhook/WebhookServer.js +1 -1
  107. package/dist/esm/pr-review/webhook/index.d.ts +1 -1
  108. package/dist/esm/pr-review/webhook/index.js +1 -1
  109. package/dist/esm/protocol/flows.d.ts +1 -1
  110. package/dist/esm/protocol/flows.js +1 -1
  111. package/dist/esm/protocol/index.d.ts +4 -4
  112. package/dist/esm/protocol/index.js +4 -4
  113. package/dist/esm/protocol/utils.d.ts +1 -1
  114. package/dist/esm/protocol/utils.js +2 -2
  115. package/dist/esm/protocol/validators.d.ts +1 -1
  116. package/dist/esm/protocol/validators.js +1 -1
  117. package/dist/esm/proxy/ComplexityRouter.d.ts +7 -0
  118. package/dist/esm/proxy/ComplexityRouter.d.ts.map +1 -1
  119. package/dist/esm/proxy/ComplexityRouter.js +18 -5
  120. package/dist/esm/proxy/ComplexityRouter.js.map +1 -1
  121. package/dist/esm/proxy/ContextInjector.d.ts +1 -1
  122. package/dist/esm/proxy/Gatekeeper.d.ts +1 -1
  123. package/dist/esm/security/SecurityMiddleware.d.ts +1 -1
  124. package/dist/esm/security/SecurityMiddleware.js +3 -3
  125. package/dist/esm/security/index.d.ts +4 -4
  126. package/dist/esm/security/index.js +4 -4
  127. package/dist/esm/speculative/SpeculativeCache.d.ts +2 -2
  128. package/dist/esm/speculative/SpeculativeEngine.d.ts +2 -2
  129. package/dist/esm/speculative/SpeculativeEngine.js +3 -3
  130. package/dist/esm/speculative/WorkerPool.d.ts +1 -1
  131. package/dist/esm/speculative/index.d.ts +4 -4
  132. package/dist/esm/speculative/index.js +4 -4
  133. package/dist/esm/subconscious/SemanticCache.d.ts +2 -2
  134. package/dist/esm/subconscious/SemanticCache.js +2 -2
  135. package/dist/esm/subconscious/SubconsciousEngine.d.ts +1 -1
  136. package/dist/esm/subconscious/SubconsciousEngine.js +3 -3
  137. package/dist/esm/subconscious/index.d.ts +4 -4
  138. package/dist/esm/subconscious/index.js +4 -4
  139. package/dist/esm/utils/AutoContextBundle.d.ts +1 -1
  140. package/dist/esm/utils/AutoContextBundle.js +4 -4
  141. package/dist/esm/utils/BulkFileDigest.js +2 -2
  142. package/dist/esm/utils/ClipboardWatcher.js +2 -2
  143. package/dist/esm/utils/ContextCollapser.js +1 -1
  144. package/dist/esm/utils/ExecutiveReport.js +1 -1
  145. package/dist/esm/utils/StructuralSearch.d.ts +1 -1
  146. package/dist/esm/utils/SurgicalASTInsert.js +1 -1
  147. package/dist/esm/utils/SymbolSurgicalContext.js +1 -1
  148. package/dist/esm/utils/TestAutofixInterceptor.js +1 -1
  149. package/dist/esm/utils/TokenReceipt.d.ts +6 -0
  150. package/dist/esm/utils/TokenReceipt.d.ts.map +1 -1
  151. package/dist/esm/utils/TokenReceipt.js +8 -0
  152. package/dist/esm/utils/TokenReceipt.js.map +1 -1
  153. package/dist/esm/utils/WorkspaceSearch.js +0 -0
  154. package/dist/esm/utils/logger.js +1 -1
  155. package/package.json +6 -9
  156. package/sdks/crewai/README.md +178 -0
  157. package/sdks/crewai/dist/index.d.ts +130 -0
  158. 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,11 +1,18 @@
1
1
  export interface ComplexityRouterConfig {
2
2
  cheapModel?: string;
3
+ /**
4
+ * Cheap model to fall back to per provider family, keyed by a substring of the
5
+ * requested model id ('claude', 'gemini', ...). Overridable from lemma.config.json
6
+ * so a retired model id can be corrected without shipping a new build.
7
+ */
8
+ cheapModelsByFamily?: Record<string, string>;
3
9
  complexKeywords?: string[];
4
10
  complexityThreshold?: number;
5
11
  disabled?: boolean;
6
12
  }
7
13
  export declare class ComplexityRouter {
8
14
  private cheapModel;
15
+ private cheapModelsByFamily;
9
16
  private complexKeywords;
10
17
  private syntaxDensityThreshold;
11
18
  constructor(config?: ComplexityRouterConfig);
@@ -1 +1 @@
1
- {"version":3,"file":"ComplexityRouter.d.ts","sourceRoot":"","sources":["../../../src/proxy/ComplexityRouter.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,eAAe,CAAW;IAClC,OAAO,CAAC,sBAAsB,CAAS;gBAE3B,MAAM,GAAE,sBAA2B;IAWxC,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IAMlD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE;CAqEvG;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ComplexityRouter.d.ts","sourceRoot":"","sources":["../../../src/proxy/ComplexityRouter.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,mBAAmB,CAAyB;IACpD,OAAO,CAAC,eAAe,CAAW;IAClC,OAAO,CAAC,sBAAsB,CAAS;gBAE3B,MAAM,GAAE,sBAA2B;IAYxC,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI;IASlD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE;CAsEvG;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,6 +1,16 @@
1
+ /**
2
+ * Model ids go stale as providers retire them; these are defaults, not truth. If the
3
+ * router starts recommending a model your provider rejects, override
4
+ * routing.complexity.cheapModelsByFamily in lemma.config.json.
5
+ */
6
+ const DEFAULT_CHEAP_MODELS_BY_FAMILY = {
7
+ claude: 'claude-haiku-4-5-20251001',
8
+ gemini: 'gemini-2.0-flash',
9
+ };
1
10
  export class ComplexityRouter {
2
11
  constructor(config = {}) {
3
12
  this.cheapModel = config.cheapModel || 'gpt-4o-mini';
13
+ this.cheapModelsByFamily = { ...DEFAULT_CHEAP_MODELS_BY_FAMILY, ...(config.cheapModelsByFamily || {}) };
4
14
  this.complexKeywords = config.complexKeywords || [
5
15
  'architecture', 'design', 'debug', 'trace', 'system', 'microservices',
6
16
  'refactor', 'optimize', 'implement', 'algorithm', 'distributed',
@@ -12,6 +22,9 @@ export class ComplexityRouter {
12
22
  updateConfig(config) {
13
23
  if (config.cheapModel)
14
24
  this.cheapModel = config.cheapModel;
25
+ if (config.cheapModelsByFamily) {
26
+ this.cheapModelsByFamily = { ...this.cheapModelsByFamily, ...config.cheapModelsByFamily };
27
+ }
15
28
  if (config.complexKeywords)
16
29
  this.complexKeywords = config.complexKeywords;
17
30
  if (config.complexityThreshold)
@@ -69,11 +82,11 @@ export class ComplexityRouter {
69
82
  let cheapModel = this.cheapModel;
70
83
  if (originalModel) {
71
84
  const lowerModel = originalModel.toLowerCase();
72
- if (lowerModel.includes('claude')) {
73
- cheapModel = 'claude-3-5-haiku-20241022';
74
- }
75
- else if (lowerModel.includes('gemini')) {
76
- cheapModel = 'gemini-1.5-flash';
85
+ for (const [family, model] of Object.entries(this.cheapModelsByFamily)) {
86
+ if (lowerModel.includes(family)) {
87
+ cheapModel = model;
88
+ break;
89
+ }
77
90
  }
78
91
  }
79
92
  console.log(`[ComplexityRouter] Low complexity detected. Routing to ${cheapModel}`);
@@ -1 +1 @@
1
- {"version":3,"file":"ComplexityRouter.js","sourceRoot":"","sources":["../../../src/proxy/ComplexityRouter.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,gBAAgB;IAK3B,YAAY,SAAiC,EAAE;QAC7C,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,aAAa,CAAC;QACrD,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,IAAI;YAC/C,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe;YACrE,UAAU,EAAE,UAAU,EAAE,WAAW,EA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AAM,CAAC,MAAM,GAAG,IAAI,EAAE,CAAC;YACvC,SAAS,GAAG,IAAI,CAAC;YACjB,gBAAgB,GAAG,yBAAyB,MAAM,CAAC,MAAM,SAAS,CAAC;QACrE,CAAC;QAED,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,CAAC,GAAG,CAAC,gDAAgD,gBAAgB,iBAAiB,aAAa,IAAI,QAAQ,EAAE,CAAC,CAAC;YAC1H,OAAO,EAAE,KAAK,EAAE,aAAa,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAClE,CAAC;aAAM,CAAC;YACN,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YACjC,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,UAAU,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;gBAC/C,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC;oBACvE,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;wBAChC,UAAU,GAAG,KAAK,CAAC;wBACnB,MAAM;oBACR,CAAC;gBACH,CAAC;YACH,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,0DAA0D,UAAU,EAAE,CAAC,CAAC;YACpF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;QAClD,CAAC;IACH,CAAC;CACF;AAED,eAAe,gBAAgB,CAAC"}
@@ -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