@memberjunction/ai-cli 2.78.0
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 +358 -0
- package/bin/run +17 -0
- package/bin/run.js +5 -0
- package/dist/commands/actions/list.d.ts +11 -0
- package/dist/commands/actions/list.d.ts.map +1 -0
- package/dist/commands/actions/list.js +91 -0
- package/dist/commands/actions/list.js.map +1 -0
- package/dist/commands/actions/run.d.ts +16 -0
- package/dist/commands/actions/run.d.ts.map +1 -0
- package/dist/commands/actions/run.js +164 -0
- package/dist/commands/actions/run.js.map +1 -0
- package/dist/commands/agents/list.d.ts +11 -0
- package/dist/commands/agents/list.d.ts.map +1 -0
- package/dist/commands/agents/list.js +91 -0
- package/dist/commands/agents/list.js.map +1 -0
- package/dist/commands/agents/run.d.ts +17 -0
- package/dist/commands/agents/run.d.ts.map +1 -0
- package/dist/commands/agents/run.js +181 -0
- package/dist/commands/agents/run.js.map +1 -0
- package/dist/commands/prompts/list.d.ts +10 -0
- package/dist/commands/prompts/list.d.ts.map +1 -0
- package/dist/commands/prompts/list.js +40 -0
- package/dist/commands/prompts/list.js.map +1 -0
- package/dist/commands/prompts/run.d.ts +18 -0
- package/dist/commands/prompts/run.d.ts.map +1 -0
- package/dist/commands/prompts/run.js +101 -0
- package/dist/commands/prompts/run.js.map +1 -0
- package/dist/config.d.ts +17 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +42 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/console-manager.d.ts +24 -0
- package/dist/lib/console-manager.d.ts.map +1 -0
- package/dist/lib/console-manager.js +68 -0
- package/dist/lib/console-manager.js.map +1 -0
- package/dist/lib/execution-logger.d.ts +52 -0
- package/dist/lib/execution-logger.d.ts.map +1 -0
- package/dist/lib/execution-logger.js +185 -0
- package/dist/lib/execution-logger.js.map +1 -0
- package/dist/lib/mj-provider.d.ts +10 -0
- package/dist/lib/mj-provider.d.ts.map +1 -0
- package/dist/lib/mj-provider.js +155 -0
- package/dist/lib/mj-provider.js.map +1 -0
- package/dist/lib/output-formatter.d.ts +47 -0
- package/dist/lib/output-formatter.d.ts.map +1 -0
- package/dist/lib/output-formatter.js +314 -0
- package/dist/lib/output-formatter.js.map +1 -0
- package/dist/lib/text-formatter.d.ts +59 -0
- package/dist/lib/text-formatter.d.ts.map +1 -0
- package/dist/lib/text-formatter.js +173 -0
- package/dist/lib/text-formatter.js.map +1 -0
- package/dist/services/ActionService.d.ts +24 -0
- package/dist/services/ActionService.d.ts.map +1 -0
- package/dist/services/ActionService.js +393 -0
- package/dist/services/ActionService.js.map +1 -0
- package/dist/services/AgentService.d.ts +25 -0
- package/dist/services/AgentService.d.ts.map +1 -0
- package/dist/services/AgentService.js +387 -0
- package/dist/services/AgentService.js.map +1 -0
- package/dist/services/ConversationService.d.ts +27 -0
- package/dist/services/ConversationService.d.ts.map +1 -0
- package/dist/services/ConversationService.js +296 -0
- package/dist/services/ConversationService.js.map +1 -0
- package/dist/services/PromptService.d.ts +32 -0
- package/dist/services/PromptService.d.ts.map +1 -0
- package/dist/services/PromptService.js +221 -0
- package/dist/services/PromptService.js.map +1 -0
- package/dist/services/ValidationService.d.ts +9 -0
- package/dist/services/ValidationService.d.ts.map +1 -0
- package/dist/services/ValidationService.js +197 -0
- package/dist/services/ValidationService.js.map +1 -0
- package/oclif.manifest.json +387 -0
- package/package.json +88 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadAIConfig = exports.closeMJProvider = exports.getConnectionPool = exports.initializeMJProvider = exports.createExecutionLogger = exports.ExecutionLogger = exports.OutputFormatter = exports.PromptService = exports.ValidationService = exports.ConversationService = exports.ActionService = exports.AgentService = exports.run = void 0;
|
|
4
|
+
var core_1 = require("@oclif/core");
|
|
5
|
+
Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
|
|
6
|
+
// Export services for potential programmatic use
|
|
7
|
+
var AgentService_1 = require("./services/AgentService");
|
|
8
|
+
Object.defineProperty(exports, "AgentService", { enumerable: true, get: function () { return AgentService_1.AgentService; } });
|
|
9
|
+
var ActionService_1 = require("./services/ActionService");
|
|
10
|
+
Object.defineProperty(exports, "ActionService", { enumerable: true, get: function () { return ActionService_1.ActionService; } });
|
|
11
|
+
var ConversationService_1 = require("./services/ConversationService");
|
|
12
|
+
Object.defineProperty(exports, "ConversationService", { enumerable: true, get: function () { return ConversationService_1.ConversationService; } });
|
|
13
|
+
var ValidationService_1 = require("./services/ValidationService");
|
|
14
|
+
Object.defineProperty(exports, "ValidationService", { enumerable: true, get: function () { return ValidationService_1.ValidationService; } });
|
|
15
|
+
var PromptService_1 = require("./services/PromptService");
|
|
16
|
+
Object.defineProperty(exports, "PromptService", { enumerable: true, get: function () { return PromptService_1.PromptService; } });
|
|
17
|
+
// Export utilities
|
|
18
|
+
var output_formatter_1 = require("./lib/output-formatter");
|
|
19
|
+
Object.defineProperty(exports, "OutputFormatter", { enumerable: true, get: function () { return output_formatter_1.OutputFormatter; } });
|
|
20
|
+
var execution_logger_1 = require("./lib/execution-logger");
|
|
21
|
+
Object.defineProperty(exports, "ExecutionLogger", { enumerable: true, get: function () { return execution_logger_1.ExecutionLogger; } });
|
|
22
|
+
Object.defineProperty(exports, "createExecutionLogger", { enumerable: true, get: function () { return execution_logger_1.createExecutionLogger; } });
|
|
23
|
+
var mj_provider_1 = require("./lib/mj-provider");
|
|
24
|
+
Object.defineProperty(exports, "initializeMJProvider", { enumerable: true, get: function () { return mj_provider_1.initializeMJProvider; } });
|
|
25
|
+
Object.defineProperty(exports, "getConnectionPool", { enumerable: true, get: function () { return mj_provider_1.getConnectionPool; } });
|
|
26
|
+
Object.defineProperty(exports, "closeMJProvider", { enumerable: true, get: function () { return mj_provider_1.closeMJProvider; } });
|
|
27
|
+
var config_1 = require("./config");
|
|
28
|
+
Object.defineProperty(exports, "loadAIConfig", { enumerable: true, get: function () { return config_1.loadAIConfig; } });
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAkC;AAAzB,2FAAA,GAAG,OAAA;AAEZ,iDAAiD;AACjD,wDAAuD;AAA9C,4GAAA,YAAY,OAAA;AACrB,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AACtB,sEAAqE;AAA5D,0HAAA,mBAAmB,OAAA;AAC5B,kEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAC1B,0DAAyD;AAAhD,8GAAA,aAAa,OAAA;AAEtB,mBAAmB;AACnB,2DAAyD;AAAhD,mHAAA,eAAe,OAAA;AACxB,2DAAgF;AAAvE,mHAAA,eAAe,OAAA;AAAE,yHAAA,qBAAqB,OAAA;AAC/C,iDAA6F;AAApF,mHAAA,oBAAoB,OAAA;AAAE,gHAAA,iBAAiB,OAAA;AAAE,8GAAA,eAAe,OAAA;AACjE,mCAAwC;AAA/B,sGAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Console Manager - Temporarily suppress console output for clean CLI experience
|
|
3
|
+
*/
|
|
4
|
+
export declare class ConsoleManager {
|
|
5
|
+
private static originalConsole;
|
|
6
|
+
private static isSuppressed;
|
|
7
|
+
/**
|
|
8
|
+
* Suppress all console output except errors
|
|
9
|
+
*/
|
|
10
|
+
static suppressOutput(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Restore original console output
|
|
13
|
+
*/
|
|
14
|
+
static restoreOutput(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Execute a function with suppressed console output
|
|
17
|
+
*/
|
|
18
|
+
static withSuppressedOutput<T>(fn: () => Promise<T>): Promise<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Check if console output is currently suppressed
|
|
21
|
+
*/
|
|
22
|
+
static isOutputSuppressed(): boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=console-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console-manager.d.ts","sourceRoot":"","sources":["../../src/lib/console-manager.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,eAAe,CAA8B;IAC5D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAkB;IAE7C;;OAEG;WACW,cAAc,IAAI,IAAI;IAuBpC;;OAEG;WACW,aAAa,IAAI,IAAI;IAcnC;;OAEG;WACiB,oBAAoB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAS7E;;OAEG;WACW,kBAAkB,IAAI,OAAO;CAG5C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Console Manager - Temporarily suppress console output for clean CLI experience
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ConsoleManager = void 0;
|
|
7
|
+
class ConsoleManager {
|
|
8
|
+
static originalConsole = null;
|
|
9
|
+
static isSuppressed = false;
|
|
10
|
+
/**
|
|
11
|
+
* Suppress all console output except errors
|
|
12
|
+
*/
|
|
13
|
+
static suppressOutput() {
|
|
14
|
+
if (this.isSuppressed)
|
|
15
|
+
return;
|
|
16
|
+
// Backup original console methods
|
|
17
|
+
this.originalConsole = {
|
|
18
|
+
log: console.log,
|
|
19
|
+
error: console.error,
|
|
20
|
+
warn: console.warn,
|
|
21
|
+
info: console.info,
|
|
22
|
+
debug: console.debug
|
|
23
|
+
};
|
|
24
|
+
// Replace with no-op functions (except error)
|
|
25
|
+
console.log = () => { };
|
|
26
|
+
console.warn = () => { };
|
|
27
|
+
console.info = () => { };
|
|
28
|
+
console.debug = () => { };
|
|
29
|
+
// Keep error output for critical issues
|
|
30
|
+
// console.error = console.error;
|
|
31
|
+
this.isSuppressed = true;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Restore original console output
|
|
35
|
+
*/
|
|
36
|
+
static restoreOutput() {
|
|
37
|
+
if (!this.isSuppressed || !this.originalConsole)
|
|
38
|
+
return;
|
|
39
|
+
// Restore original console methods
|
|
40
|
+
console.log = this.originalConsole.log;
|
|
41
|
+
console.error = this.originalConsole.error;
|
|
42
|
+
console.warn = this.originalConsole.warn;
|
|
43
|
+
console.info = this.originalConsole.info;
|
|
44
|
+
console.debug = this.originalConsole.debug;
|
|
45
|
+
this.originalConsole = null;
|
|
46
|
+
this.isSuppressed = false;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Execute a function with suppressed console output
|
|
50
|
+
*/
|
|
51
|
+
static async withSuppressedOutput(fn) {
|
|
52
|
+
this.suppressOutput();
|
|
53
|
+
try {
|
|
54
|
+
return await fn();
|
|
55
|
+
}
|
|
56
|
+
finally {
|
|
57
|
+
this.restoreOutput();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if console output is currently suppressed
|
|
62
|
+
*/
|
|
63
|
+
static isOutputSuppressed() {
|
|
64
|
+
return this.isSuppressed;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.ConsoleManager = ConsoleManager;
|
|
68
|
+
//# sourceMappingURL=console-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"console-manager.js","sourceRoot":"","sources":["../../src/lib/console-manager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAUH,MAAa,cAAc;IACjB,MAAM,CAAC,eAAe,GAAyB,IAAI,CAAC;IACpD,MAAM,CAAC,YAAY,GAAY,KAAK,CAAC;IAE7C;;OAEG;IACI,MAAM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AAC,oBAAoB,CAAI,EAAoB;QAC9D,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,OAAO,MAAM,EAAE,EAAE,CAAC;QACpB,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,kBAAkB;QAC9B,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;;AAhEH,wCAiEC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface LogEntry {
|
|
2
|
+
timestamp: string;
|
|
3
|
+
level: 'INFO' | 'DEBUG' | 'WARN' | 'ERROR' | 'SUCCESS' | 'TRACE';
|
|
4
|
+
category: 'SYSTEM' | 'AGENT' | 'TOOL' | 'AI_MODEL' | 'DECISION' | 'USER' | 'DATABASE';
|
|
5
|
+
message: string;
|
|
6
|
+
data?: any;
|
|
7
|
+
duration?: number;
|
|
8
|
+
stepNumber?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ExecutionSummary {
|
|
11
|
+
executionId: string;
|
|
12
|
+
command: string;
|
|
13
|
+
startTime: string;
|
|
14
|
+
endTime?: string;
|
|
15
|
+
duration?: number;
|
|
16
|
+
status: 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED';
|
|
17
|
+
agentName?: string;
|
|
18
|
+
actionName?: string;
|
|
19
|
+
userPrompt?: string;
|
|
20
|
+
totalSteps: number;
|
|
21
|
+
successfulSteps: number;
|
|
22
|
+
failedSteps: number;
|
|
23
|
+
toolsUsed: string[];
|
|
24
|
+
subAgentsUsed: string[];
|
|
25
|
+
aiModelCalls: number;
|
|
26
|
+
errors: string[];
|
|
27
|
+
finalResult?: any;
|
|
28
|
+
}
|
|
29
|
+
export declare class ExecutionLogger {
|
|
30
|
+
private logFilePath;
|
|
31
|
+
private summaryFilePath;
|
|
32
|
+
private executionId;
|
|
33
|
+
private logs;
|
|
34
|
+
private summary;
|
|
35
|
+
private stepCounter;
|
|
36
|
+
constructor(command: string, agentName?: string, actionName?: string, userPrompt?: string);
|
|
37
|
+
log(level: LogEntry['level'], category: LogEntry['category'], message: string, data?: any, duration?: number): void;
|
|
38
|
+
logStep(level: LogEntry['level'], category: LogEntry['category'], stepName: string, data?: any, duration?: number): void;
|
|
39
|
+
logAgentExecution(agentName: string, phase: string, data?: any, duration?: number): void;
|
|
40
|
+
logError(error: string | Error, category?: LogEntry['category'], context?: any): void;
|
|
41
|
+
finalize(status: 'SUCCESS' | 'FAILED' | 'CANCELLED', finalResult?: any, error?: string): void;
|
|
42
|
+
getExecutionId(): string;
|
|
43
|
+
getLogFilePath(): string;
|
|
44
|
+
getSummaryFilePath(): string;
|
|
45
|
+
private updateSummaryFromLog;
|
|
46
|
+
private writeLogEntry;
|
|
47
|
+
private formatLogEntry;
|
|
48
|
+
private writeToFile;
|
|
49
|
+
private writeSummary;
|
|
50
|
+
}
|
|
51
|
+
export declare function createExecutionLogger(command: string, agentName?: string, actionName?: string, userPrompt?: string): ExecutionLogger;
|
|
52
|
+
//# sourceMappingURL=execution-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logger.d.ts","sourceRoot":"","sources":["../../src/lib/execution-logger.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACjE,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;IACtF,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,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E,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAaxH,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IASxF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,QAAQ,GAAE,QAAQ,CAAC,UAAU,CAAY,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI;IAc/F,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,EAAE,WAAW,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAkC7F,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,kBAAkB,IAAI,MAAM;IAInC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,YAAY;CAOrB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,eAAe,CAEpI"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createExecutionLogger = exports.ExecutionLogger = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
class ExecutionLogger {
|
|
10
|
+
logFilePath;
|
|
11
|
+
summaryFilePath;
|
|
12
|
+
executionId;
|
|
13
|
+
logs = [];
|
|
14
|
+
summary;
|
|
15
|
+
stepCounter = 0;
|
|
16
|
+
constructor(command, agentName, actionName, userPrompt) {
|
|
17
|
+
// Create timestamp for filename
|
|
18
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-').replace('T', '_').slice(0, 19);
|
|
19
|
+
this.executionId = `${timestamp}_${Math.random().toString(36).substr(2, 9)}`;
|
|
20
|
+
// Create output directory in a more appropriate location for oclif CLI
|
|
21
|
+
const outputDir = path_1.default.join(process.cwd(), '.mj-ai', 'logs');
|
|
22
|
+
if (!fs_1.default.existsSync(outputDir)) {
|
|
23
|
+
fs_1.default.mkdirSync(outputDir, { recursive: true });
|
|
24
|
+
}
|
|
25
|
+
// Create file paths
|
|
26
|
+
this.logFilePath = path_1.default.join(outputDir, `${this.executionId}_execution.log`);
|
|
27
|
+
this.summaryFilePath = path_1.default.join(outputDir, `${this.executionId}_summary.json`);
|
|
28
|
+
// Initialize summary
|
|
29
|
+
this.summary = {
|
|
30
|
+
executionId: this.executionId,
|
|
31
|
+
command,
|
|
32
|
+
startTime: new Date().toISOString(),
|
|
33
|
+
status: 'RUNNING',
|
|
34
|
+
agentName,
|
|
35
|
+
actionName,
|
|
36
|
+
userPrompt,
|
|
37
|
+
totalSteps: 0,
|
|
38
|
+
successfulSteps: 0,
|
|
39
|
+
failedSteps: 0,
|
|
40
|
+
toolsUsed: [],
|
|
41
|
+
subAgentsUsed: [],
|
|
42
|
+
aiModelCalls: 0,
|
|
43
|
+
errors: []
|
|
44
|
+
};
|
|
45
|
+
// Log session start
|
|
46
|
+
this.log('INFO', 'SYSTEM', `Execution started: ${command}`, {
|
|
47
|
+
executionId: this.executionId,
|
|
48
|
+
agentName,
|
|
49
|
+
actionName,
|
|
50
|
+
userPrompt
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
log(level, category, message, data, duration) {
|
|
54
|
+
const entry = {
|
|
55
|
+
timestamp: new Date().toISOString(),
|
|
56
|
+
level,
|
|
57
|
+
category,
|
|
58
|
+
message,
|
|
59
|
+
data,
|
|
60
|
+
duration,
|
|
61
|
+
stepNumber: this.stepCounter
|
|
62
|
+
};
|
|
63
|
+
this.logs.push(entry);
|
|
64
|
+
this.updateSummaryFromLog(entry);
|
|
65
|
+
this.writeLogEntry(entry);
|
|
66
|
+
}
|
|
67
|
+
logStep(level, category, stepName, data, duration) {
|
|
68
|
+
this.stepCounter++;
|
|
69
|
+
this.summary.totalSteps++;
|
|
70
|
+
if (level === 'SUCCESS') {
|
|
71
|
+
this.summary.successfulSteps++;
|
|
72
|
+
}
|
|
73
|
+
else if (level === 'ERROR') {
|
|
74
|
+
this.summary.failedSteps++;
|
|
75
|
+
}
|
|
76
|
+
this.log(level, category, `Step ${this.stepCounter}: ${stepName}`, data, duration);
|
|
77
|
+
}
|
|
78
|
+
logAgentExecution(agentName, phase, data, duration) {
|
|
79
|
+
this.log('DEBUG', 'AGENT', `Agent execution - ${agentName}: ${phase}`, {
|
|
80
|
+
agentName,
|
|
81
|
+
phase,
|
|
82
|
+
executionData: data,
|
|
83
|
+
step: this.stepCounter
|
|
84
|
+
}, duration);
|
|
85
|
+
}
|
|
86
|
+
logError(error, category = 'SYSTEM', context) {
|
|
87
|
+
const errorMessage = error instanceof Error ? error.message : error;
|
|
88
|
+
const errorStack = error instanceof Error ? error.stack : undefined;
|
|
89
|
+
this.summary.errors.push(errorMessage);
|
|
90
|
+
this.log('ERROR', category, errorMessage, {
|
|
91
|
+
stack: errorStack,
|
|
92
|
+
context,
|
|
93
|
+
step: this.stepCounter,
|
|
94
|
+
errorType: error instanceof Error ? error.constructor.name : 'string',
|
|
95
|
+
timestamp: new Date().toISOString()
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
finalize(status, finalResult, error) {
|
|
99
|
+
this.summary.endTime = new Date().toISOString();
|
|
100
|
+
this.summary.duration = new Date(this.summary.endTime).getTime() - new Date(this.summary.startTime).getTime();
|
|
101
|
+
this.summary.status = status;
|
|
102
|
+
this.summary.finalResult = finalResult;
|
|
103
|
+
if (error && !this.summary.errors.includes(error)) {
|
|
104
|
+
this.summary.errors.push(error);
|
|
105
|
+
}
|
|
106
|
+
// Final log entry
|
|
107
|
+
this.log('INFO', 'SYSTEM', `Execution completed with status: ${status}`, {
|
|
108
|
+
duration: this.summary.duration,
|
|
109
|
+
finalResult,
|
|
110
|
+
error
|
|
111
|
+
});
|
|
112
|
+
// Write summary file
|
|
113
|
+
this.writeSummary();
|
|
114
|
+
// Write final log separator
|
|
115
|
+
this.writeToFile('\n' + '='.repeat(80) + '\n' +
|
|
116
|
+
`EXECUTION SUMMARY - ${status}\n` +
|
|
117
|
+
`Duration: ${this.summary.duration}ms\n` +
|
|
118
|
+
`Total Steps: ${this.summary.totalSteps}\n` +
|
|
119
|
+
`Successful: ${this.summary.successfulSteps}\n` +
|
|
120
|
+
`Failed: ${this.summary.failedSteps}\n` +
|
|
121
|
+
`Tools Used: ${this.summary.toolsUsed.join(', ') || 'None'}\n` +
|
|
122
|
+
`Sub-Agents: ${this.summary.subAgentsUsed.join(', ') || 'None'}\n` +
|
|
123
|
+
`AI Model Calls: ${this.summary.aiModelCalls}\n` +
|
|
124
|
+
`Errors: ${this.summary.errors.length}\n` +
|
|
125
|
+
'='.repeat(80) + '\n');
|
|
126
|
+
}
|
|
127
|
+
getExecutionId() {
|
|
128
|
+
return this.executionId;
|
|
129
|
+
}
|
|
130
|
+
getLogFilePath() {
|
|
131
|
+
return this.logFilePath;
|
|
132
|
+
}
|
|
133
|
+
getSummaryFilePath() {
|
|
134
|
+
return this.summaryFilePath;
|
|
135
|
+
}
|
|
136
|
+
updateSummaryFromLog(entry) {
|
|
137
|
+
// Track various metrics based on log entries
|
|
138
|
+
if (entry.level === 'ERROR') {
|
|
139
|
+
if (!this.summary.errors.includes(entry.message)) {
|
|
140
|
+
this.summary.errors.push(entry.message);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
writeLogEntry(entry) {
|
|
145
|
+
const logLine = this.formatLogEntry(entry);
|
|
146
|
+
this.writeToFile(logLine + '\n');
|
|
147
|
+
}
|
|
148
|
+
formatLogEntry(entry) {
|
|
149
|
+
const timestamp = entry.timestamp;
|
|
150
|
+
const level = entry.level.padEnd(7);
|
|
151
|
+
const category = entry.category.padEnd(10);
|
|
152
|
+
const stepInfo = entry.stepNumber ? `[Step ${entry.stepNumber.toString().padStart(3)}] ` : '';
|
|
153
|
+
const durationInfo = entry.duration ? ` (${entry.duration}ms)` : '';
|
|
154
|
+
let logLine = `${timestamp} | ${level} | ${category} | ${stepInfo}${entry.message}${durationInfo}`;
|
|
155
|
+
// Add structured data on new lines if present
|
|
156
|
+
if (entry.data) {
|
|
157
|
+
const dataStr = JSON.stringify(entry.data, null, 2);
|
|
158
|
+
logLine += `\n DATA: ${dataStr.replace(/\n/g, '\n ')}`;
|
|
159
|
+
}
|
|
160
|
+
return logLine;
|
|
161
|
+
}
|
|
162
|
+
writeToFile(content) {
|
|
163
|
+
try {
|
|
164
|
+
fs_1.default.appendFileSync(this.logFilePath, content, 'utf8');
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
// Silently fail to avoid breaking the CLI if logging fails
|
|
168
|
+
console.error(`Failed to write to log file: ${error}`);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
writeSummary() {
|
|
172
|
+
try {
|
|
173
|
+
fs_1.default.writeFileSync(this.summaryFilePath, JSON.stringify(this.summary, null, 2), 'utf8');
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
console.error(`Failed to write summary file: ${error}`);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.ExecutionLogger = ExecutionLogger;
|
|
181
|
+
function createExecutionLogger(command, agentName, actionName, userPrompt) {
|
|
182
|
+
return new ExecutionLogger(command, agentName, actionName, userPrompt);
|
|
183
|
+
}
|
|
184
|
+
exports.createExecutionLogger = createExecutionLogger;
|
|
185
|
+
//# sourceMappingURL=execution-logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-logger.js","sourceRoot":"","sources":["../../src/lib/execution-logger.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AAgCxB,MAAa,eAAe;IAClB,WAAW,CAAS;IACpB,eAAe,CAAS;IACxB,WAAW,CAAS;IACpB,IAAI,GAAe,EAAE,CAAC;IACtB,OAAO,CAAmB;IAC1B,WAAW,GAAW,CAAC,CAAC;IAEhC,YAAY,OAAe,EAAE,SAAkB,EAAE,UAAmB,EAAE,UAAmB;QACvF,gCAAgC;QAChC,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAChG,IAAI,CAAC,WAAW,GAAG,GAAG,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;QAE7E,uEAAuE;QACvE,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC9B,YAAE,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/C,CAAC;QAED,oBAAoB;QACpB,IAAI,CAAC,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,WAAW,gBAAgB,CAAC,CAAC;QAC7E,IAAI,CAAC,eAAe,GAAG,cAAI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,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QACxF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC;CACF;AApMD,0CAoMC;AAED,SAAgB,qBAAqB,CAAC,OAAe,EAAE,SAAkB,EAAE,UAAmB,EAAE,UAAmB;IACjH,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AACzE,CAAC;AAFD,sDAEC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import sql from 'mssql';
|
|
2
|
+
import '@memberjunction/core-actions';
|
|
3
|
+
import '@memberjunction/ai-agents';
|
|
4
|
+
import '@memberjunction/ai-openai';
|
|
5
|
+
import '@memberjunction/ai-groq';
|
|
6
|
+
import '@memberjunction/ai-anthropic';
|
|
7
|
+
export declare function initializeMJProvider(): Promise<void>;
|
|
8
|
+
export declare function getConnectionPool(): sql.ConnectionPool;
|
|
9
|
+
export declare function closeMJProvider(): Promise<void>;
|
|
10
|
+
//# sourceMappingURL=mj-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mj-provider.d.ts","sourceRoot":"","sources":["../../src/lib/mj-provider.ts"],"names":[],"mappings":"AAEA,OAAO,GAAG,MAAM,OAAO,CAAC;AASxB,OAAO,8BAA8B,CAAC;AACtC,OAAO,2BAA2B,CAAC;AAGnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AAKtC,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAsH1D;AAED,wBAAgB,iBAAiB,IAAI,GAAG,CAAC,cAAc,CAUtD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAMrD"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.closeMJProvider = exports.getConnectionPool = exports.initializeMJProvider = void 0;
|
|
7
|
+
const core_1 = require("@memberjunction/core");
|
|
8
|
+
const sqlserver_dataprovider_1 = require("@memberjunction/sqlserver-dataprovider");
|
|
9
|
+
const mssql_1 = __importDefault(require("mssql"));
|
|
10
|
+
const config_1 = require("../config");
|
|
11
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
12
|
+
const path_1 = __importDefault(require("path"));
|
|
13
|
+
// Load environment variables from .env file
|
|
14
|
+
dotenv_1.default.config({ path: path_1.default.resolve(process.cwd(), '.env') });
|
|
15
|
+
// Import action and agent registrations
|
|
16
|
+
require("@memberjunction/core-actions"); // Register core actions
|
|
17
|
+
require("@memberjunction/ai-agents"); // Register agent types
|
|
18
|
+
// Import LLM providers to register them with ClassFactory
|
|
19
|
+
require("@memberjunction/ai-openai");
|
|
20
|
+
require("@memberjunction/ai-groq");
|
|
21
|
+
require("@memberjunction/ai-anthropic");
|
|
22
|
+
let isInitialized = false;
|
|
23
|
+
let connectionPool = null;
|
|
24
|
+
async function initializeMJProvider() {
|
|
25
|
+
if (isInitialized) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
// Check if MJ provider is already initialized
|
|
29
|
+
if (core_1.Metadata.Provider) {
|
|
30
|
+
console.log('MJ Provider already initialized');
|
|
31
|
+
isInitialized = true;
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
const config = await (0, config_1.loadAIConfig)();
|
|
36
|
+
// Validate required configuration
|
|
37
|
+
if (!config.dbDatabase) {
|
|
38
|
+
throw new Error(`❌ Database configuration missing
|
|
39
|
+
|
|
40
|
+
Problem: Database name not specified in mj.config.cjs
|
|
41
|
+
Required: dbDatabase property must be set
|
|
42
|
+
|
|
43
|
+
Next steps:
|
|
44
|
+
1. Check your mj.config.cjs file
|
|
45
|
+
2. Ensure dbDatabase is set to your MJ database name
|
|
46
|
+
3. Verify other database settings (dbHost, dbUsername, dbPassword)
|
|
47
|
+
|
|
48
|
+
Example configuration:
|
|
49
|
+
dbDatabase: 'MemberJunction_Dev'`);
|
|
50
|
+
}
|
|
51
|
+
if (!config.dbUsername || !config.dbPassword) {
|
|
52
|
+
throw new Error(`❌ Database credentials missing
|
|
53
|
+
|
|
54
|
+
Problem: Database username or password not configured
|
|
55
|
+
Required: Both dbUsername and dbPassword must be set
|
|
56
|
+
|
|
57
|
+
Next steps:
|
|
58
|
+
1. Check your mj.config.cjs file
|
|
59
|
+
2. Set dbUsername and dbPassword properties
|
|
60
|
+
3. Verify credentials are correct for your SQL Server
|
|
61
|
+
|
|
62
|
+
For security, consider using environment variables:
|
|
63
|
+
dbUsername: process.env.DB_USERNAME
|
|
64
|
+
dbPassword: process.env.DB_PASSWORD`);
|
|
65
|
+
}
|
|
66
|
+
// Create SQL Server connection
|
|
67
|
+
const sqlConfig = {
|
|
68
|
+
server: config.dbHost || 'localhost',
|
|
69
|
+
port: config.dbPort ? (typeof config.dbPort === 'string' ? parseInt(config.dbPort) : config.dbPort) : 1433,
|
|
70
|
+
database: config.dbDatabase,
|
|
71
|
+
user: config.dbUsername,
|
|
72
|
+
password: config.dbPassword,
|
|
73
|
+
options: {
|
|
74
|
+
encrypt: true,
|
|
75
|
+
trustServerCertificate: true,
|
|
76
|
+
enableArithAbort: true,
|
|
77
|
+
},
|
|
78
|
+
pool: {
|
|
79
|
+
max: 10,
|
|
80
|
+
min: 2,
|
|
81
|
+
idleTimeoutMillis: 30000,
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
connectionPool = new mssql_1.default.ConnectionPool(sqlConfig);
|
|
85
|
+
await connectionPool.connect();
|
|
86
|
+
const providerConfig = new sqlserver_dataprovider_1.SQLServerProviderConfigData(connectionPool, config.coreSchema || '__mj', 180000);
|
|
87
|
+
await (0, sqlserver_dataprovider_1.setupSQLServerClient)(providerConfig);
|
|
88
|
+
isInitialized = true;
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
if (error?.message?.startsWith('❌')) {
|
|
92
|
+
// Already formatted error, re-throw as is
|
|
93
|
+
throw error;
|
|
94
|
+
}
|
|
95
|
+
else if (error?.code === 'ECONNREFUSED') {
|
|
96
|
+
throw new Error(`❌ Failed to connect to database server
|
|
97
|
+
|
|
98
|
+
Problem: Connection refused to ${error.address}:${error.port}
|
|
99
|
+
Likely cause: Database server not running or incorrect host/port
|
|
100
|
+
|
|
101
|
+
Next steps:
|
|
102
|
+
1. Verify SQL Server is running on the specified host/port
|
|
103
|
+
2. Check firewall settings allow connections
|
|
104
|
+
3. Test connection: telnet ${error.address} ${error.port}
|
|
105
|
+
4. Verify host and port in mj.config.cjs`);
|
|
106
|
+
}
|
|
107
|
+
else if (error?.code === 'ELOGIN') {
|
|
108
|
+
throw new Error(`❌ Database authentication failed
|
|
109
|
+
|
|
110
|
+
Problem: Invalid username or password
|
|
111
|
+
User: ${error.userName}
|
|
112
|
+
|
|
113
|
+
Next steps:
|
|
114
|
+
1. Verify username and password in mj.config.cjs
|
|
115
|
+
2. Check user has permission to access the database
|
|
116
|
+
3. Ensure SQL Server authentication is enabled
|
|
117
|
+
4. Test credentials with SQL Server Management Studio`);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
throw new Error(`❌ Failed to initialize MJ data provider
|
|
121
|
+
|
|
122
|
+
Problem: ${error?.message || 'Unknown error'}
|
|
123
|
+
Context: Setting up SQL Server connection and MJ infrastructure
|
|
124
|
+
|
|
125
|
+
Next steps:
|
|
126
|
+
1. Check your mj.config.cjs database settings
|
|
127
|
+
2. Verify SQL Server is accessible
|
|
128
|
+
3. Ensure MJ core packages are built: npm run build
|
|
129
|
+
|
|
130
|
+
For debugging, run with --verbose flag for detailed error information.`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.initializeMJProvider = initializeMJProvider;
|
|
135
|
+
function getConnectionPool() {
|
|
136
|
+
if (!connectionPool) {
|
|
137
|
+
throw new Error(`❌ MJ Provider not initialized
|
|
138
|
+
|
|
139
|
+
Problem: Database connection not established
|
|
140
|
+
Likely cause: initializeMJProvider() was not called
|
|
141
|
+
|
|
142
|
+
This is an internal error. Please report this issue.`);
|
|
143
|
+
}
|
|
144
|
+
return connectionPool;
|
|
145
|
+
}
|
|
146
|
+
exports.getConnectionPool = getConnectionPool;
|
|
147
|
+
async function closeMJProvider() {
|
|
148
|
+
if (connectionPool) {
|
|
149
|
+
await connectionPool.close();
|
|
150
|
+
connectionPool = null;
|
|
151
|
+
isInitialized = false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.closeMJProvider = closeMJProvider;
|
|
155
|
+
//# sourceMappingURL=mj-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mj-provider.js","sourceRoot":"","sources":["../../src/lib/mj-provider.ts"],"names":[],"mappings":";;;;;;AAAA,+CAA6D;AAC7D,mFAA2G;AAC3G,kDAAwB;AACxB,sCAAyC;AACzC,oDAA4B;AAC5B,gDAAwB;AAExB,4CAA4C;AAC5C,gBAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;AAE7D,wCAAwC;AACxC,wCAAsC,CAAE,wBAAwB;AAChE,qCAAmC,CAAK,uBAAuB;AAE/D,0DAA0D;AAC1D,qCAAmC;AACnC,mCAAiC;AACjC,wCAAsC;AAEtC,IAAI,aAAa,GAAG,KAAK,CAAC;AAC1B,IAAI,cAAc,GAA8B,IAAI,CAAC;AAE9C,KAAK,UAAU,oBAAoB;IACxC,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO;I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AAC;QACtB,aAAa,GAAG,KAAK,CAAC;IACxB,CAAC;AACH,CAAC;AAND,0CAMC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type OutputFormat = 'compact' | 'json' | 'table';
|
|
2
|
+
export interface AgentInfo {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
status: 'available' | 'disabled';
|
|
6
|
+
lastUsed?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ActionInfo {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
status: 'available' | 'disabled';
|
|
12
|
+
lastUsed?: string;
|
|
13
|
+
parameters?: Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
description?: string;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface ExecutionResult {
|
|
21
|
+
success: boolean;
|
|
22
|
+
entityName: string;
|
|
23
|
+
prompt?: string;
|
|
24
|
+
result?: any;
|
|
25
|
+
error?: string;
|
|
26
|
+
duration: number;
|
|
27
|
+
steps?: number;
|
|
28
|
+
executionId?: string;
|
|
29
|
+
logFilePath?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare class OutputFormatter {
|
|
32
|
+
private format;
|
|
33
|
+
constructor(format: OutputFormat);
|
|
34
|
+
formatAgentList(agents: AgentInfo[]): string;
|
|
35
|
+
formatActionList(actions: ActionInfo[]): string;
|
|
36
|
+
formatAgentResult(result: ExecutionResult): string;
|
|
37
|
+
formatActionResult(result: ExecutionResult): string;
|
|
38
|
+
formatPromptResult(result: ExecutionResult): string;
|
|
39
|
+
private formatAgentTable;
|
|
40
|
+
private formatActionTable;
|
|
41
|
+
private formatAgentCompact;
|
|
42
|
+
private formatActionCompact;
|
|
43
|
+
private formatResultTable;
|
|
44
|
+
private formatResultCompact;
|
|
45
|
+
private formatPromptResultCompact;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=output-formatter.d.ts.map
|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