@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.
- package/README.md +114 -5
- package/bin/checkpoint.js +49 -0
- package/bin/init.js +21 -2
- package/dist/cjs/mcp/prompts.d.ts +1 -2
- package/dist/cjs/mcp/prompts.d.ts.map +1 -1
- package/dist/cjs/mcp/prompts.js +29 -126
- package/dist/cjs/mcp/prompts.js.map +1 -1
- package/dist/cjs/mcp/resources.d.ts.map +1 -1
- package/dist/cjs/mcp/resources.js +4 -4
- package/dist/cjs/mcp/resources.js.map +1 -1
- package/dist/cjs/mcp/tool-profiles.d.ts +55 -0
- package/dist/cjs/mcp/tool-profiles.d.ts.map +1 -0
- package/dist/cjs/mcp/tool-profiles.js +204 -0
- package/dist/cjs/mcp/tool-profiles.js.map +1 -0
- package/dist/cjs/mcp/tools.d.ts +12 -0
- package/dist/cjs/mcp/tools.d.ts.map +1 -1
- package/dist/cjs/mcp/tools.js +175 -26
- package/dist/cjs/mcp/tools.js.map +1 -1
- package/dist/cjs/subconscious/TheBrainV2.d.ts +36 -2
- package/dist/cjs/subconscious/TheBrainV2.d.ts.map +1 -1
- package/dist/cjs/subconscious/TheBrainV2.js +104 -23
- package/dist/cjs/subconscious/TheBrainV2.js.map +1 -1
- package/dist/cjs/utils/AutoContextBundle.d.ts.map +1 -1
- package/dist/cjs/utils/AutoContextBundle.js +17 -20
- package/dist/cjs/utils/AutoContextBundle.js.map +1 -1
- package/dist/cjs/utils/ConversationCheckpoint.d.ts +13 -0
- package/dist/cjs/utils/ConversationCheckpoint.d.ts.map +1 -1
- package/dist/cjs/utils/ConversationCheckpoint.js +58 -0
- package/dist/cjs/utils/ConversationCheckpoint.js.map +1 -1
- package/dist/cjs/utils/TestAutofixInterceptor.d.ts.map +1 -1
- package/dist/cjs/utils/TestAutofixInterceptor.js +15 -26
- package/dist/cjs/utils/TestAutofixInterceptor.js.map +1 -1
- package/dist/esm/api/dashboardRoutes.d.ts +3 -3
- package/dist/esm/api/dashboardRoutes.js +1 -1
- package/dist/esm/api/server.d.ts +4 -4
- package/dist/esm/api/server.js +3 -3
- package/dist/esm/autopilot/AutopilotWatcher.js +3 -3
- package/dist/esm/autopilot/Notifier.d.ts +1 -1
- package/dist/esm/cli/lemma-proxy.js +14 -14
- package/dist/esm/cli/stack.d.ts +4 -4
- package/dist/esm/cli/stack.js +5 -5
- package/dist/esm/cloud/KeyManager.d.ts +1 -1
- package/dist/esm/cloud/KeyManager.js +1 -1
- package/dist/esm/cloud/TenantCache.d.ts +1 -1
- package/dist/esm/cloud/TenantCache.js +1 -1
- package/dist/esm/cloud/index.d.ts +3 -3
- package/dist/esm/cloud/index.js +3 -3
- package/dist/esm/cloud/server.d.ts +3 -3
- package/dist/esm/cloud/server.js +5 -5
- package/dist/esm/config/index.d.ts +1 -1
- package/dist/esm/config/index.js +1 -1
- package/dist/esm/consensus/index.d.ts +2 -2
- package/dist/esm/consensus/index.js +2 -2
- package/dist/esm/core/AgentRegistry.d.ts +1 -1
- package/dist/esm/core/AgentRegistry.js +1 -1
- package/dist/esm/core/DashboardBroadcaster.d.ts +3 -3
- package/dist/esm/core/DashboardBroadcaster.js +2 -2
- package/dist/esm/core/DashboardWebSocketServer.d.ts +1 -1
- package/dist/esm/core/DashboardWebSocketServer.js +1 -1
- package/dist/esm/core/GhostAlchemist.js +1 -1
- package/dist/esm/core/GhostListener.js +2 -2
- package/dist/esm/core/OrchestrationEngine.d.ts +3 -3
- package/dist/esm/core/OrchestrationEngine.js +2 -2
- package/dist/esm/core/SubconsciousEngine.d.ts +1 -1
- package/dist/esm/core/SubconsciousEngine.js +2 -2
- package/dist/esm/core/WebSocketServer.d.ts +2 -2
- package/dist/esm/core/WebSocketServer.js +1 -1
- package/dist/esm/core/index.d.ts +6 -6
- package/dist/esm/core/index.js +6 -6
- package/dist/esm/core/router.d.ts +3 -3
- package/dist/esm/core/router.js +1 -1
- package/dist/esm/db/database.js +1 -1
- package/dist/esm/embed.d.ts +2 -2
- package/dist/esm/embed.js +2 -2
- package/dist/esm/examples/basic-usage.js +1 -1
- package/dist/esm/index.d.ts +14 -14
- package/dist/esm/index.js +14 -14
- package/dist/esm/infra/analyzers/DriftDetector.d.ts +1 -1
- package/dist/esm/infra/analyzers/InfraAnalyzer.d.ts +1 -1
- package/dist/esm/infra/analyzers/MonolithAnalyzer.d.ts +1 -1
- package/dist/esm/infra/analyzers/index.d.ts +3 -3
- package/dist/esm/infra/analyzers/index.js +3 -3
- package/dist/esm/infra/cli.js +2 -2
- package/dist/esm/infra/config.d.ts +1 -1
- package/dist/esm/infra/index.d.ts +5 -5
- package/dist/esm/infra/index.js +5 -5
- package/dist/esm/infra/mcp-tools.js +5 -5
- package/dist/esm/infra/providers/InfraProvider.d.ts +1 -1
- package/dist/esm/infra/providers/JenkinsProvider.d.ts +2 -2
- package/dist/esm/infra/providers/OKDProvider.d.ts +2 -2
- package/dist/esm/infra/providers/TerraformProvider.d.ts +2 -2
- package/dist/esm/infra/providers/index.d.ts +5 -5
- package/dist/esm/infra/providers/index.js +3 -3
- package/dist/esm/mcp/index.js +5 -5
- package/dist/esm/mcp/prompts.d.ts +1 -2
- package/dist/esm/mcp/prompts.d.ts.map +1 -1
- package/dist/esm/mcp/prompts.js +28 -125
- package/dist/esm/mcp/prompts.js.map +1 -1
- package/dist/esm/mcp/resources.d.ts.map +1 -1
- package/dist/esm/mcp/resources.js +5 -5
- package/dist/esm/mcp/resources.js.map +1 -1
- package/dist/esm/mcp/tool-profiles.d.ts +55 -0
- package/dist/esm/mcp/tool-profiles.d.ts.map +1 -0
- package/dist/esm/mcp/tool-profiles.js +196 -0
- package/dist/esm/mcp/tool-profiles.js.map +1 -0
- package/dist/esm/mcp/tools.d.ts +12 -0
- package/dist/esm/mcp/tools.d.ts.map +1 -1
- package/dist/esm/mcp/tools.js +209 -63
- package/dist/esm/mcp/tools.js.map +1 -1
- package/dist/esm/observability/IdeContextSync.d.ts +1 -1
- package/dist/esm/observability/IdeContextSync.js +5 -5
- package/dist/esm/pr-review/PRReviewEngine.d.ts +1 -1
- package/dist/esm/pr-review/PRReviewEngine.js +4 -4
- package/dist/esm/pr-review/ReviewStore.d.ts +1 -1
- package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.d.ts +2 -2
- package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.js +1 -1
- package/dist/esm/pr-review/adapters/GitHubAdapter.d.ts +2 -2
- package/dist/esm/pr-review/adapters/GitHubAdapter.js +1 -1
- package/dist/esm/pr-review/adapters/GitLabAdapter.d.ts +2 -2
- package/dist/esm/pr-review/adapters/GitLabAdapter.js +1 -1
- package/dist/esm/pr-review/adapters/GitPlatformAdapter.d.ts +1 -1
- package/dist/esm/pr-review/adapters/index.d.ts +4 -4
- package/dist/esm/pr-review/adapters/index.js +3 -3
- package/dist/esm/pr-review/analyzers/QualityGrader.d.ts +1 -1
- package/dist/esm/pr-review/analyzers/RegressionDetector.d.ts +1 -1
- package/dist/esm/pr-review/analyzers/SecurityScanner.d.ts +1 -1
- package/dist/esm/pr-review/analyzers/StaticAnalyzer.d.ts +1 -1
- package/dist/esm/pr-review/analyzers/index.d.ts +8 -8
- package/dist/esm/pr-review/analyzers/index.js +4 -4
- package/dist/esm/pr-review/bridge/BrainBridge.d.ts +1 -1
- package/dist/esm/pr-review/bridge/BrainBridge.js +1 -1
- package/dist/esm/pr-review/bridge/index.d.ts +1 -1
- package/dist/esm/pr-review/bridge/index.js +1 -1
- package/dist/esm/pr-review/index.d.ts +4 -4
- package/dist/esm/pr-review/index.js +2 -2
- package/dist/esm/pr-review/reviewRunner.d.ts +2 -2
- package/dist/esm/pr-review/reviewRunner.js +6 -6
- package/dist/esm/pr-review/webhook/WebhookServer.js +1 -1
- package/dist/esm/pr-review/webhook/index.d.ts +1 -1
- package/dist/esm/pr-review/webhook/index.js +1 -1
- package/dist/esm/protocol/flows.d.ts +1 -1
- package/dist/esm/protocol/flows.js +1 -1
- package/dist/esm/protocol/index.d.ts +4 -4
- package/dist/esm/protocol/index.js +4 -4
- package/dist/esm/protocol/utils.d.ts +1 -1
- package/dist/esm/protocol/utils.js +2 -2
- package/dist/esm/protocol/validators.d.ts +1 -1
- package/dist/esm/protocol/validators.js +1 -1
- package/dist/esm/proxy/ContextInjector.d.ts +1 -1
- package/dist/esm/proxy/Gatekeeper.d.ts +1 -1
- package/dist/esm/security/SecurityMiddleware.d.ts +1 -1
- package/dist/esm/security/SecurityMiddleware.js +3 -3
- package/dist/esm/security/index.d.ts +4 -4
- package/dist/esm/security/index.js +4 -4
- package/dist/esm/speculative/SpeculativeCache.d.ts +2 -2
- package/dist/esm/speculative/SpeculativeEngine.d.ts +2 -2
- package/dist/esm/speculative/SpeculativeEngine.js +3 -3
- package/dist/esm/speculative/WorkerPool.d.ts +1 -1
- package/dist/esm/speculative/index.d.ts +4 -4
- package/dist/esm/speculative/index.js +4 -4
- package/dist/esm/subconscious/SemanticCache.d.ts +2 -2
- package/dist/esm/subconscious/SemanticCache.js +2 -2
- package/dist/esm/subconscious/SubconsciousEngine.d.ts +1 -1
- package/dist/esm/subconscious/SubconsciousEngine.js +3 -3
- package/dist/esm/subconscious/TheBrainV2.d.ts +36 -2
- package/dist/esm/subconscious/TheBrainV2.d.ts.map +1 -1
- package/dist/esm/subconscious/TheBrainV2.js +103 -23
- package/dist/esm/subconscious/TheBrainV2.js.map +1 -1
- package/dist/esm/subconscious/index.d.ts +4 -4
- package/dist/esm/subconscious/index.js +4 -4
- package/dist/esm/utils/AutoContextBundle.d.ts +1 -1
- package/dist/esm/utils/AutoContextBundle.d.ts.map +1 -1
- package/dist/esm/utils/AutoContextBundle.js +20 -23
- package/dist/esm/utils/AutoContextBundle.js.map +1 -1
- package/dist/esm/utils/BulkFileDigest.js +2 -2
- package/dist/esm/utils/ClipboardWatcher.js +2 -2
- package/dist/esm/utils/ContextCollapser.js +1 -1
- package/dist/esm/utils/ConversationCheckpoint.d.ts +13 -0
- package/dist/esm/utils/ConversationCheckpoint.d.ts.map +1 -1
- package/dist/esm/utils/ConversationCheckpoint.js +57 -0
- package/dist/esm/utils/ConversationCheckpoint.js.map +1 -1
- package/dist/esm/utils/ExecutiveReport.js +1 -1
- package/dist/esm/utils/StructuralSearch.d.ts +1 -1
- package/dist/esm/utils/SurgicalASTInsert.js +1 -1
- package/dist/esm/utils/SymbolSurgicalContext.js +1 -1
- package/dist/esm/utils/TestAutofixInterceptor.d.ts.map +1 -1
- package/dist/esm/utils/TestAutofixInterceptor.js +15 -26
- package/dist/esm/utils/TestAutofixInterceptor.js.map +1 -1
- package/dist/esm/utils/WorkspaceSearch.js +0 -0
- package/dist/esm/utils/logger.js +1 -1
- package/package.json +9 -10
- package/sdks/crewai/README.md +178 -0
- package/sdks/crewai/dist/index.d.ts +130 -0
- package/sdks/crewai/dist/index.js +308 -0
|
@@ -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,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
|
-
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
|
-
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,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,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,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,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
|
*/
|
|
@@ -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,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();
|
|
@@ -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 { 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,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.
|