@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.
- package/dist/cjs/mcp/tools.d.ts.map +1 -1
- package/dist/cjs/mcp/tools.js +115 -15
- package/dist/cjs/mcp/tools.js.map +1 -1
- package/dist/cjs/proxy/ComplexityRouter.d.ts +7 -0
- package/dist/cjs/proxy/ComplexityRouter.d.ts.map +1 -1
- package/dist/cjs/proxy/ComplexityRouter.js +18 -5
- package/dist/cjs/proxy/ComplexityRouter.js.map +1 -1
- package/dist/cjs/utils/TokenReceipt.d.ts +6 -0
- package/dist/cjs/utils/TokenReceipt.d.ts.map +1 -1
- package/dist/cjs/utils/TokenReceipt.js +9 -0
- package/dist/cjs/utils/TokenReceipt.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/resources.js +2 -2
- package/dist/esm/mcp/tools.d.ts.map +1 -1
- package/dist/esm/mcp/tools.js +153 -53
- 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/ComplexityRouter.d.ts +7 -0
- package/dist/esm/proxy/ComplexityRouter.d.ts.map +1 -1
- package/dist/esm/proxy/ComplexityRouter.js +18 -5
- package/dist/esm/proxy/ComplexityRouter.js.map +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/TokenReceipt.d.ts +6 -0
- package/dist/esm/utils/TokenReceipt.d.ts.map +1 -1
- package/dist/esm/utils/TokenReceipt.js +8 -0
- package/dist/esm/utils/TokenReceipt.js.map +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
package/dist/esm/db/database.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles schema creation, updates, and cleanup
|
|
4
4
|
*/
|
|
5
5
|
import { Pool } from 'pg';
|
|
6
|
-
import { UP_SQL, DOWN_SQL, CLEANUP_SQL } from './migrations/001-dashboard-schema';
|
|
6
|
+
import { UP_SQL, DOWN_SQL, CLEANUP_SQL } from './migrations/001-dashboard-schema.js';
|
|
7
7
|
export class DatabaseMigrator {
|
|
8
8
|
constructor(connectionString) {
|
|
9
9
|
this.pool = new Pool({
|
package/dist/esm/embed.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @example
|
|
7
7
|
* import { Lemma } from 'lemma/embed';
|
|
8
8
|
*/
|
|
9
|
-
export { Lemma, LemmaConfig, CacheResult, LemmaMetrics } from './embed/index';
|
|
10
|
-
export { default } from './embed/index';
|
|
9
|
+
export { Lemma, LemmaConfig, CacheResult, LemmaMetrics } from './embed/index.js';
|
|
10
|
+
export { default } from './embed/index.js';
|
|
11
11
|
//# sourceMappingURL=embed.d.ts.map
|
package/dist/esm/embed.js
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* @example
|
|
7
7
|
* import { Lemma } from 'lemma/embed';
|
|
8
8
|
*/
|
|
9
|
-
export { Lemma } from './embed/index';
|
|
10
|
-
export { default } from './embed/index';
|
|
9
|
+
export { Lemma } from './embed/index.js';
|
|
10
|
+
export { default } from './embed/index.js';
|
|
11
11
|
//# sourceMappingURL=embed.js.map
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* 3. Storing results for future caching
|
|
8
8
|
* 4. Monitoring metrics
|
|
9
9
|
*/
|
|
10
|
-
import { SubconsciousEngine } from '../subconscious';
|
|
10
|
+
import { SubconsciousEngine } from '../subconscious/index.js';
|
|
11
11
|
async function main() {
|
|
12
12
|
console.log('=== Subconscious Engine Demo ===\n');
|
|
13
13
|
// 1. Create and initialize the engine
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* High-performance orchestration hub for autonomous AI agents
|
|
5
5
|
* Implements the Inter-Agent Protocol (I.A.P.) for standardized communication
|
|
6
6
|
*/
|
|
7
|
-
import { WebSocketServer } from './core/WebSocketServer';
|
|
8
|
-
import { AgentRegistry } from './core/AgentRegistry';
|
|
9
|
-
import { Router } from './core/router';
|
|
10
|
-
import { ServerConfig, RouterConfig, IdeSyncConfig } from './types';
|
|
7
|
+
import { WebSocketServer } from './core/WebSocketServer.js';
|
|
8
|
+
import { AgentRegistry } from './core/AgentRegistry.js';
|
|
9
|
+
import { Router } from './core/router.js';
|
|
10
|
+
import { ServerConfig, RouterConfig, IdeSyncConfig } from './types/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Main Hub Configuration
|
|
13
13
|
*/
|
|
@@ -53,7 +53,7 @@ export declare class SubconsciousHub {
|
|
|
53
53
|
totalTasksCompleted: number;
|
|
54
54
|
totalTasksFailed: number;
|
|
55
55
|
};
|
|
56
|
-
connectionStats: import("./types").ConnectionStats;
|
|
56
|
+
connectionStats: import("./types/index.js").ConnectionStats;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* Print current status
|
|
@@ -72,14 +72,14 @@ export declare class SubconsciousHub {
|
|
|
72
72
|
*/
|
|
73
73
|
getRouter(): Router;
|
|
74
74
|
}
|
|
75
|
-
export * from './types';
|
|
76
|
-
export * from './core';
|
|
77
|
-
export * from './security';
|
|
78
|
-
export * as Protocol from './protocol';
|
|
79
|
-
export * as Subconscious from './subconscious';
|
|
80
|
-
export * as Consensus from './consensus';
|
|
81
|
-
export * as Speculative from './speculative';
|
|
82
|
-
export { config, getSecurityConfig, validateConfig } from './config';
|
|
83
|
-
export { Lemma, LemmaConfig, CacheResult, LemmaMetrics } from './embed';
|
|
75
|
+
export * from './types/index.js';
|
|
76
|
+
export * from './core/index.js';
|
|
77
|
+
export * from './security/index.js';
|
|
78
|
+
export * as Protocol from './protocol/index.js';
|
|
79
|
+
export * as Subconscious from './subconscious/index.js';
|
|
80
|
+
export * as Consensus from './consensus/index.js';
|
|
81
|
+
export * as Speculative from './speculative/index.js';
|
|
82
|
+
export { config, getSecurityConfig, validateConfig } from './config/index.js';
|
|
83
|
+
export { Lemma, LemmaConfig, CacheResult, LemmaMetrics } from './embed.js';
|
|
84
84
|
export default SubconsciousHub;
|
|
85
85
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* High-performance orchestration hub for autonomous AI agents
|
|
5
5
|
* Implements the Inter-Agent Protocol (I.A.P.) for standardized communication
|
|
6
6
|
*/
|
|
7
|
-
import { WebSocketServer } from './core/WebSocketServer';
|
|
8
|
-
import { AgentRegistry } from './core/AgentRegistry';
|
|
9
|
-
import { Router } from './core/router';
|
|
10
|
-
import { IdeContextSync } from './observability/IdeContextSync';
|
|
11
|
-
import { logger } from './utils/logger';
|
|
7
|
+
import { WebSocketServer } from './core/WebSocketServer.js';
|
|
8
|
+
import { AgentRegistry } from './core/AgentRegistry.js';
|
|
9
|
+
import { Router } from './core/router.js';
|
|
10
|
+
import { IdeContextSync } from './observability/IdeContextSync.js';
|
|
11
|
+
import { logger } from './utils/logger.js';
|
|
12
12
|
/**
|
|
13
13
|
* Subconscious Router Hub
|
|
14
14
|
* Orchestrates WebSocket connections, agent registry, and message routing
|
|
@@ -148,16 +148,16 @@ export class SubconsciousHub {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
// Export all types and core components
|
|
151
|
-
export * from './types';
|
|
152
|
-
export * from './core';
|
|
153
|
-
export * from './security';
|
|
154
|
-
export * as Protocol from './protocol';
|
|
155
|
-
export * as Subconscious from './subconscious';
|
|
156
|
-
export * as Consensus from './consensus';
|
|
157
|
-
export * as Speculative from './speculative';
|
|
158
|
-
export { config, getSecurityConfig, validateConfig } from './config';
|
|
151
|
+
export * from './types/index.js';
|
|
152
|
+
export * from './core/index.js';
|
|
153
|
+
export * from './security/index.js';
|
|
154
|
+
export * as Protocol from './protocol/index.js';
|
|
155
|
+
export * as Subconscious from './subconscious/index.js';
|
|
156
|
+
export * as Consensus from './consensus/index.js';
|
|
157
|
+
export * as Speculative from './speculative/index.js';
|
|
158
|
+
export { config, getSecurityConfig, validateConfig } from './config/index.js';
|
|
159
159
|
// Embedded mode — zero-config semantic cache
|
|
160
|
-
export { Lemma } from './embed';
|
|
160
|
+
export { Lemma } from './embed.js';
|
|
161
161
|
// Export default hub instance creator
|
|
162
162
|
export default SubconsciousHub;
|
|
163
163
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DriftResult } from '../types';
|
|
1
|
+
import type { DriftResult } from '../types.js';
|
|
2
2
|
export declare function detectTerraformDrift(workDir?: string): DriftResult[];
|
|
3
3
|
export declare function detectOKDDrift(project: string): DriftResult[];
|
|
4
4
|
//# sourceMappingURL=DriftDetector.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.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 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAiiCnE,oFAAoF;AACpF,wBAAgB,kBAAkB,IAAI,MAAM,CAM3C;AAED,oEAAoE;AACpE,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAEjD;AAED,iEAAiE;AACjE,wBAAgB,sBAAsB,IAAI,MAAM,EAAE,CAEjD;AAED,iFAAiF;AACjF,wBAAgB,qBAAqB,IAAI;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAQA;AAoHD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,MAAM,EAAE,IAAI,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqCD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAC1C,IAAI,CAwEN"}
|