@nxuss/lemma 1.7.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/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/resources.js +2 -2
- package/dist/esm/mcp/tools.js +38 -38
- 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/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.js +4 -4
- 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/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.js +1 -1
- package/dist/esm/utils/WorkspaceSearch.js +0 -0
- package/dist/esm/utils/logger.js +1 -1
- package/package.json +6 -9
- 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,4 +1,4 @@
|
|
|
1
|
-
export { analyzeInfra } from './InfraAnalyzer';
|
|
2
|
-
export { detectTerraformDrift, detectOKDDrift } from './DriftDetector';
|
|
3
|
-
export { analyzeMonolith } from './MonolithAnalyzer';
|
|
1
|
+
export { analyzeInfra } from './InfraAnalyzer.js';
|
|
2
|
+
export { detectTerraformDrift, detectOKDDrift } from './DriftDetector.js';
|
|
3
|
+
export { analyzeMonolith } from './MonolithAnalyzer.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { analyzeInfra } from './InfraAnalyzer';
|
|
2
|
-
export { detectTerraformDrift, detectOKDDrift } from './DriftDetector';
|
|
3
|
-
export { analyzeMonolith } from './MonolithAnalyzer';
|
|
1
|
+
export { analyzeInfra } from './InfraAnalyzer.js';
|
|
2
|
+
export { detectTerraformDrift, detectOKDDrift } from './DriftDetector.js';
|
|
3
|
+
export { analyzeMonolith } from './MonolithAnalyzer.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/infra/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { program } from 'commander';
|
|
2
|
-
import { getInfraConfig } from './config';
|
|
3
|
-
import { getProvider } from './providers';
|
|
2
|
+
import { getInfraConfig } from './config.js';
|
|
3
|
+
import { getProvider } from './providers/index.js';
|
|
4
4
|
export function registerInfraCommands() {
|
|
5
5
|
const infra = program.command('infra').description('Infrastructure Command Center — manage Jenkins, OKD, and Terraform');
|
|
6
6
|
infra.command('discover')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from './mcp-tools';
|
|
2
|
-
import { registerInfraCommands } from './cli';
|
|
1
|
+
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from './mcp-tools.js';
|
|
2
|
+
import { registerInfraCommands } from './cli.js';
|
|
3
3
|
export { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES };
|
|
4
4
|
export { registerInfraCommands };
|
|
5
|
-
export { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy, getDeployHistory } from './config';
|
|
6
|
-
export { getProvider, listProviders, JenkinsProvider, OKDProvider, TerraformProvider } from './providers';
|
|
7
|
-
export { analyzeInfra, detectTerraformDrift, detectOKDDrift, analyzeMonolith } from './analyzers';
|
|
5
|
+
export { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy, getDeployHistory } from './config.js';
|
|
6
|
+
export { getProvider, listProviders, JenkinsProvider, OKDProvider, TerraformProvider } from './providers/index.js';
|
|
7
|
+
export { analyzeInfra, detectTerraformDrift, detectOKDDrift, analyzeMonolith } from './analyzers/index.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/infra/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from './mcp-tools';
|
|
2
|
-
import { registerInfraCommands } from './cli';
|
|
1
|
+
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from './mcp-tools.js';
|
|
2
|
+
import { registerInfraCommands } from './cli.js';
|
|
3
3
|
export { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES };
|
|
4
4
|
export { registerInfraCommands };
|
|
5
5
|
// Re-export for direct usage
|
|
6
|
-
export { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy, getDeployHistory } from './config';
|
|
7
|
-
export { getProvider, listProviders, JenkinsProvider, OKDProvider, TerraformProvider } from './providers';
|
|
8
|
-
export { analyzeInfra, detectTerraformDrift, detectOKDDrift, analyzeMonolith } from './analyzers';
|
|
6
|
+
export { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy, getDeployHistory } from './config.js';
|
|
7
|
+
export { getProvider, listProviders, JenkinsProvider, OKDProvider, TerraformProvider } from './providers/index.js';
|
|
8
|
+
export { analyzeInfra, detectTerraformDrift, detectOKDDrift, analyzeMonolith } from './analyzers/index.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getProvider } from './providers';
|
|
2
|
-
import { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy } from './config';
|
|
3
|
-
import { analyzeInfra, analyzeMonolith } from './analyzers';
|
|
4
|
-
import { jenkinsfileTemplate, multibranchTemplate } from './templates/jenkins';
|
|
5
|
-
import { getBrain } from '../subconscious/TheBrainV2';
|
|
1
|
+
import { getProvider } from './providers/index.js';
|
|
2
|
+
import { getInfraConfig, markProviderConnected, getConnectedProviders, recordDeploy } from './config.js';
|
|
3
|
+
import { analyzeInfra, analyzeMonolith } from './analyzers/index.js';
|
|
4
|
+
import { jenkinsfileTemplate, multibranchTemplate } from './templates/jenkins/index.js';
|
|
5
|
+
import { getBrain } from '../subconscious/TheBrainV2.js';
|
|
6
6
|
// ── Tool Definitions ──────────────────────────────────────────────────────────
|
|
7
7
|
export const infraToolDefinitions = [
|
|
8
8
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InfraProvider } from './InfraProvider';
|
|
2
|
-
import type { HealthStatus, PipelineConfig, DeployResult, JenkinsConfig } from '../types';
|
|
1
|
+
import type { InfraProvider } from './InfraProvider.js';
|
|
2
|
+
import type { HealthStatus, PipelineConfig, DeployResult, JenkinsConfig } from '../types.js';
|
|
3
3
|
export declare class JenkinsProvider implements InfraProvider {
|
|
4
4
|
readonly name = "jenkins";
|
|
5
5
|
readonly type: "jenkins";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InfraProvider } from './InfraProvider';
|
|
2
|
-
import type { HealthStatus, OKDManifests, DeployResult, OKDConfig } from '../types';
|
|
1
|
+
import type { InfraProvider } from './InfraProvider.js';
|
|
2
|
+
import type { HealthStatus, OKDManifests, DeployResult, OKDConfig } from '../types.js';
|
|
3
3
|
export declare class OKDProvider implements InfraProvider {
|
|
4
4
|
readonly name = "okd";
|
|
5
5
|
readonly type: "okd";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InfraProvider } from './InfraProvider';
|
|
2
|
-
import type { HealthStatus, DriftResult, TerraformConfig } from '../types';
|
|
1
|
+
import type { InfraProvider } from './InfraProvider.js';
|
|
2
|
+
import type { HealthStatus, DriftResult, TerraformConfig } from '../types.js';
|
|
3
3
|
export declare class TerraformProvider implements InfraProvider {
|
|
4
4
|
readonly name = "terraform";
|
|
5
5
|
readonly type: "terraform";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { JenkinsProvider } from './JenkinsProvider';
|
|
2
|
-
import { OKDProvider } from './OKDProvider';
|
|
3
|
-
import { TerraformProvider } from './TerraformProvider';
|
|
4
|
-
import type { InfraProvider } from './InfraProvider';
|
|
1
|
+
import { JenkinsProvider } from './JenkinsProvider.js';
|
|
2
|
+
import { OKDProvider } from './OKDProvider.js';
|
|
3
|
+
import { TerraformProvider } from './TerraformProvider.js';
|
|
4
|
+
import type { InfraProvider } from './InfraProvider.js';
|
|
5
5
|
export declare function getProvider(name: string): InfraProvider;
|
|
6
6
|
export declare function listProviders(): string[];
|
|
7
7
|
export { JenkinsProvider, OKDProvider, TerraformProvider };
|
|
8
|
-
export type { InfraProvider } from './InfraProvider';
|
|
8
|
+
export type { InfraProvider } from './InfraProvider.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JenkinsProvider } from './JenkinsProvider';
|
|
2
|
-
import { OKDProvider } from './OKDProvider';
|
|
3
|
-
import { TerraformProvider } from './TerraformProvider';
|
|
1
|
+
import { JenkinsProvider } from './JenkinsProvider.js';
|
|
2
|
+
import { OKDProvider } from './OKDProvider.js';
|
|
3
|
+
import { TerraformProvider } from './TerraformProvider.js';
|
|
4
4
|
const providers = {};
|
|
5
5
|
export function getProvider(name) {
|
|
6
6
|
if (!providers[name]) {
|
package/dist/esm/mcp/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import path from "path";
|
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
import { spawn } from "child_process";
|
|
7
7
|
import { v4 as uuidv4 } from "uuid";
|
|
8
|
-
import { setupPromptsHandlers, LEMMA_TURBOMODE_PROMPT } from "./prompts";
|
|
9
|
-
import { setupResourcesHandlers } from "./resources";
|
|
10
|
-
import { setupToolsHandlers, getToolSchemaChars } from "./tools";
|
|
11
|
-
import { reportCost } from "../utils/reportSavings";
|
|
12
|
-
import { getProxyPort, sanitizeArgsForLogging, logWarn } from "./utils";
|
|
8
|
+
import { setupPromptsHandlers, LEMMA_TURBOMODE_PROMPT } from "./prompts.js";
|
|
9
|
+
import { setupResourcesHandlers } from "./resources.js";
|
|
10
|
+
import { setupToolsHandlers, getToolSchemaChars } from "./tools.js";
|
|
11
|
+
import { reportCost } from "../utils/reportSavings.js";
|
|
12
|
+
import { getProxyPort, sanitizeArgsForLogging, logWarn } from "./utils.js";
|
|
13
13
|
const SERVER_VERSION = "1.0.0";
|
|
14
14
|
function detectStack() {
|
|
15
15
|
const projectPath = process.cwd();
|
|
@@ -3,8 +3,8 @@ import fs from "fs";
|
|
|
3
3
|
import path from "path";
|
|
4
4
|
import os from "os";
|
|
5
5
|
import axios from "axios";
|
|
6
|
-
import { getProxyPort, logError } from "./utils";
|
|
7
|
-
import { getBrain, deriveProjectId } from "../subconscious/TheBrainV2";
|
|
6
|
+
import { getProxyPort, logError } from "./utils.js";
|
|
7
|
+
import { getBrain, deriveProjectId } from "../subconscious/TheBrainV2.js";
|
|
8
8
|
export function setupResourcesHandlers(server) {
|
|
9
9
|
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
10
10
|
return {
|
package/dist/esm/mcp/tools.js
CHANGED
|
@@ -5,40 +5,40 @@ import { execSync, spawnSync } from "child_process";
|
|
|
5
5
|
import os from "os";
|
|
6
6
|
import axios from "axios";
|
|
7
7
|
import * as ts from "typescript";
|
|
8
|
-
import { SemanticScrubber } from "../security/SemanticScrubber";
|
|
9
|
-
import { ComplexityRouter } from "../proxy/ComplexityRouter";
|
|
10
|
-
import { squeezeCode, squeezePrompt, pruneHistoryMessages, generateAstDiff } from "../utils/ContextSqueezer";
|
|
11
|
-
import { reportSavings, reportCost } from "../utils/reportSavings";
|
|
12
|
-
import { getProxyPort, safeResolvePath, logError, logWarn, estimateTokensFromResult, isCommandAllowed, loadAllowedCommands } from "./utils";
|
|
13
|
-
import { computeFingerprint } from "../utils/FileFingerprint";
|
|
14
|
-
import { analyzeBlameHeat } from "../utils/GitBlameHeat";
|
|
15
|
-
import { analyzeTypeCoverage } from "../utils/TypeCoverage";
|
|
16
|
-
import { buildImportTree } from "../utils/ImportTreeContext";
|
|
17
|
-
import { readTokenBudgeted } from "../utils/TokenBudgetedReader";
|
|
18
|
-
import { bulkFileDigest } from "../utils/BulkFileDigest";
|
|
19
|
-
import { autoContextBundle } from "../utils/AutoContextBundle";
|
|
20
|
-
import { checkRepeat, recordOutput } from "../utils/RepeatGuard";
|
|
21
|
-
import { saveCheckpoint, loadLatestCheckpoint, buildCheckpointSummary } from "../utils/ConversationCheckpoint";
|
|
22
|
-
import { runTestAutofix } from "../utils/TestAutofixInterceptor";
|
|
23
|
-
import { findPattern, storePattern, getPatternStats } from "../utils/PromptPatternCache";
|
|
24
|
-
import { runAnalysis, parseDiff } from "../pr-review/PRReviewEngine";
|
|
25
|
-
import { ReviewStore } from "../pr-review/ReviewStore";
|
|
26
|
-
import { runPRReview } from "../pr-review/reviewRunner";
|
|
27
|
-
import { getBrain, deriveProjectId } from "../subconscious/TheBrainV2";
|
|
28
|
-
import { collapseContext } from "../utils/ContextCollapser";
|
|
29
|
-
import { getSymbolSurgicalContext } from "../utils/SymbolSurgicalContext";
|
|
30
|
-
import { compressWormhole } from "../utils/WormholeCompressor";
|
|
31
|
-
import { generateExecutiveReport } from "../utils/ExecutiveReport";
|
|
32
|
-
import { surgicalASTInsert } from "../utils/SurgicalASTInsert";
|
|
33
|
-
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from "../infra/mcp-tools";
|
|
34
|
-
import { resolveToolSurface, buildToolboxCatalog } from "./tool-profiles";
|
|
35
|
-
import { lookupStateHash, storeStateHash } from "../utils/StateHashCache";
|
|
36
|
-
import { recordReceiptEvent, getReceiptSummary } from "../utils/TokenReceipt";
|
|
37
|
-
import { distillCommandOutput, buildDistillFooter, readRegion } from "../utils/CommandOutputDistiller";
|
|
38
|
-
import { findMatch, reindentReplacement } from "../utils/PatchMatcher";
|
|
39
|
-
import { searchWorkspace, groupSearchResults, parseExtensionFilter } from "../utils/WorkspaceSearch";
|
|
40
|
-
import { checkAlreadySent, recordSent } from "../utils/ReadWorkspaceCache";
|
|
41
|
-
import { getCachedSearch, setCachedSearch } from "../utils/SearchCache";
|
|
8
|
+
import { SemanticScrubber } from "../security/SemanticScrubber.js";
|
|
9
|
+
import { ComplexityRouter } from "../proxy/ComplexityRouter.js";
|
|
10
|
+
import { squeezeCode, squeezePrompt, pruneHistoryMessages, generateAstDiff } from "../utils/ContextSqueezer.js";
|
|
11
|
+
import { reportSavings, reportCost } from "../utils/reportSavings.js";
|
|
12
|
+
import { getProxyPort, safeResolvePath, logError, logWarn, estimateTokensFromResult, isCommandAllowed, loadAllowedCommands } from "./utils.js";
|
|
13
|
+
import { computeFingerprint } from "../utils/FileFingerprint.js";
|
|
14
|
+
import { analyzeBlameHeat } from "../utils/GitBlameHeat.js";
|
|
15
|
+
import { analyzeTypeCoverage } from "../utils/TypeCoverage.js";
|
|
16
|
+
import { buildImportTree } from "../utils/ImportTreeContext.js";
|
|
17
|
+
import { readTokenBudgeted } from "../utils/TokenBudgetedReader.js";
|
|
18
|
+
import { bulkFileDigest } from "../utils/BulkFileDigest.js";
|
|
19
|
+
import { autoContextBundle } from "../utils/AutoContextBundle.js";
|
|
20
|
+
import { checkRepeat, recordOutput } from "../utils/RepeatGuard.js";
|
|
21
|
+
import { saveCheckpoint, loadLatestCheckpoint, buildCheckpointSummary } from "../utils/ConversationCheckpoint.js";
|
|
22
|
+
import { runTestAutofix } from "../utils/TestAutofixInterceptor.js";
|
|
23
|
+
import { findPattern, storePattern, getPatternStats } from "../utils/PromptPatternCache.js";
|
|
24
|
+
import { runAnalysis, parseDiff } from "../pr-review/PRReviewEngine.js";
|
|
25
|
+
import { ReviewStore } from "../pr-review/ReviewStore.js";
|
|
26
|
+
import { runPRReview } from "../pr-review/reviewRunner.js";
|
|
27
|
+
import { getBrain, deriveProjectId } from "../subconscious/TheBrainV2.js";
|
|
28
|
+
import { collapseContext } from "../utils/ContextCollapser.js";
|
|
29
|
+
import { getSymbolSurgicalContext } from "../utils/SymbolSurgicalContext.js";
|
|
30
|
+
import { compressWormhole } from "../utils/WormholeCompressor.js";
|
|
31
|
+
import { generateExecutiveReport } from "../utils/ExecutiveReport.js";
|
|
32
|
+
import { surgicalASTInsert } from "../utils/SurgicalASTInsert.js";
|
|
33
|
+
import { getInfraToolDefinitions, getInfraToolHandlers, INFRA_TOOL_NAMES } from "../infra/mcp-tools.js";
|
|
34
|
+
import { resolveToolSurface, buildToolboxCatalog } from "./tool-profiles.js";
|
|
35
|
+
import { lookupStateHash, storeStateHash } from "../utils/StateHashCache.js";
|
|
36
|
+
import { recordReceiptEvent, getReceiptSummary } from "../utils/TokenReceipt.js";
|
|
37
|
+
import { distillCommandOutput, buildDistillFooter, readRegion } from "../utils/CommandOutputDistiller.js";
|
|
38
|
+
import { findMatch, reindentReplacement } from "../utils/PatchMatcher.js";
|
|
39
|
+
import { searchWorkspace, groupSearchResults, parseExtensionFilter } from "../utils/WorkspaceSearch.js";
|
|
40
|
+
import { checkAlreadySent, recordSent } from "../utils/ReadWorkspaceCache.js";
|
|
41
|
+
import { getCachedSearch, setCachedSearch } from "../utils/SearchCache.js";
|
|
42
42
|
// ── Pro License Gate ──────────────────────────────────────────────────────────
|
|
43
43
|
const LICENSE_FILE = path.join(os.homedir(), '.lemma-cache', 'license.json');
|
|
44
44
|
let _proStatusCache = null;
|
|
@@ -1314,7 +1314,7 @@ async function handleGetRoutingAdvice(args) {
|
|
|
1314
1314
|
async function handleAutoHeal(args) {
|
|
1315
1315
|
const apply = !!args?.apply;
|
|
1316
1316
|
try {
|
|
1317
|
-
const { performAutoHeal: heal } = await import("../cli/lemma-proxy");
|
|
1317
|
+
const { performAutoHeal: heal } = await import("../cli/lemma-proxy.js");
|
|
1318
1318
|
const res = await heal(apply);
|
|
1319
1319
|
return { content: [{ type: "text", text: JSON.stringify(res, null, 2) }] };
|
|
1320
1320
|
}
|
|
@@ -2264,7 +2264,7 @@ async function handleTurboSqueeze(args) {
|
|
|
2264
2264
|
const ratio = text.length > 0 ? ((1 - squeezed.length / text.length) * 100).toFixed(1) : "0";
|
|
2265
2265
|
const saved = Math.max(0, text.length - squeezed.length);
|
|
2266
2266
|
try {
|
|
2267
|
-
const { reportSavings } = await import("../utils/reportSavings");
|
|
2267
|
+
const { reportSavings } = await import("../utils/reportSavings.js");
|
|
2268
2268
|
reportSavings({ source: "contextSqueeze", charsBefore: text.length, charsAfter: squeezed.length, toolName: "turbosqueeze" });
|
|
2269
2269
|
}
|
|
2270
2270
|
catch { }
|
|
@@ -2309,7 +2309,7 @@ async function handleCompressContext(args) {
|
|
|
2309
2309
|
...recent,
|
|
2310
2310
|
];
|
|
2311
2311
|
try {
|
|
2312
|
-
const { reportSavings } = await import("../utils/reportSavings");
|
|
2312
|
+
const { reportSavings } = await import("../utils/reportSavings.js");
|
|
2313
2313
|
reportSavings({ source: "historyPrune", tokens: tokensSaved, toolName: "compress_context" });
|
|
2314
2314
|
}
|
|
2315
2315
|
catch { }
|
|
@@ -2336,7 +2336,7 @@ async function handleSmarterCache(args) {
|
|
|
2336
2336
|
const responseText = topHit.response;
|
|
2337
2337
|
const tokensSaved = Math.floor(responseText.length / 4);
|
|
2338
2338
|
try {
|
|
2339
|
-
const { reportSavings } = await import("../utils/reportSavings");
|
|
2339
|
+
const { reportSavings } = await import("../utils/reportSavings.js");
|
|
2340
2340
|
reportSavings({ source: "cache", tokens: tokensSaved, toolName: "smarter_cache", query: query.substring(0, 100) });
|
|
2341
2341
|
}
|
|
2342
2342
|
catch { }
|
|
@@ -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
|