erosolar-cli 2.1.295 → 2.1.296
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/package.json +1 -3
- package/dist/core/realAGI.d.ts +0 -121
- package/dist/core/realAGI.d.ts.map +0 -1
- package/dist/core/realAGI.js +0 -947
- package/dist/core/realAGI.js.map +0 -1
- package/dist/core/toolEmbeddings.d.ts +0 -64
- package/dist/core/toolEmbeddings.d.ts.map +0 -1
- package/dist/core/toolEmbeddings.js +0 -471
- package/dist/core/toolEmbeddings.js.map +0 -1
- package/dist/core/unifiedAGI.d.ts +0 -158
- package/dist/core/unifiedAGI.d.ts.map +0 -1
- package/dist/core/unifiedAGI.js +0 -685
- package/dist/core/unifiedAGI.js.map +0 -1
- package/dist/plugins/tools/unified/unifiedAGIPlugin.d.ts +0 -25
- package/dist/plugins/tools/unified/unifiedAGIPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/unified/unifiedAGIPlugin.js +0 -479
- package/dist/plugins/tools/unified/unifiedAGIPlugin.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erosolar-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.296",
|
|
4
4
|
"description": "Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning",
|
|
5
5
|
"main": "dist/bin/erosolar.js",
|
|
6
6
|
"type": "module",
|
|
@@ -53,8 +53,6 @@
|
|
|
53
53
|
"quality-gate": "npm run complexity-check && npm run health-check && npm run type-check",
|
|
54
54
|
"quality-dashboard": "node scripts/code-quality-dashboard.js",
|
|
55
55
|
"full-flow": "node scripts/full-flow-human.mjs",
|
|
56
|
-
"agi:verify": "node scripts/verify-agi.mjs",
|
|
57
|
-
"agi:real-flow": "node scripts/real-agi-flow-test.mjs",
|
|
58
56
|
"ai-code-review": "node scripts/ai-code-reviewer.mjs",
|
|
59
57
|
"code-intelligence": "node scripts/code-intelligence-enhancer.mjs",
|
|
60
58
|
"dev-productivity": "node scripts/dev-productivity-booster.mjs",
|
package/dist/core/realAGI.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Real AGI Core - Pure Tool-Based Autonomous Intelligence
|
|
3
|
-
*
|
|
4
|
-
* NO INTENTS - Only tools
|
|
5
|
-
* NO SIMULATIONS - Everything executes for real
|
|
6
|
-
* NO CATEGORIES - Just understanding and execution
|
|
7
|
-
*
|
|
8
|
-
* This mirrors how Claude Code works:
|
|
9
|
-
* 1. Understand the prompt
|
|
10
|
-
* 2. Think about what tools to use
|
|
11
|
-
* 3. Execute tools in sequence
|
|
12
|
-
* 4. Display results in Claude Code style
|
|
13
|
-
*
|
|
14
|
-
* Handles ANY prompt: software, research, legal, finance, defense, or anything else
|
|
15
|
-
*/
|
|
16
|
-
import { type ToolMatch } from './toolEmbeddings.js';
|
|
17
|
-
/** A real tool that can be executed */
|
|
18
|
-
export interface RealTool {
|
|
19
|
-
name: string;
|
|
20
|
-
execute: (args: Record<string, unknown>) => Promise<ToolResult>;
|
|
21
|
-
}
|
|
22
|
-
/** Result from executing a tool */
|
|
23
|
-
export interface ToolResult {
|
|
24
|
-
success: boolean;
|
|
25
|
-
output: string;
|
|
26
|
-
error?: string;
|
|
27
|
-
duration: number;
|
|
28
|
-
artifacts?: string[];
|
|
29
|
-
}
|
|
30
|
-
/** A step in execution - just tool + args */
|
|
31
|
-
export interface ExecutionStep {
|
|
32
|
-
id: string;
|
|
33
|
-
tool: string;
|
|
34
|
-
args: Record<string, unknown>;
|
|
35
|
-
description: string;
|
|
36
|
-
dependsOn: string[];
|
|
37
|
-
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
38
|
-
result?: ToolResult;
|
|
39
|
-
}
|
|
40
|
-
/** Full execution plan */
|
|
41
|
-
export interface ExecutionPlan {
|
|
42
|
-
prompt: string;
|
|
43
|
-
thinking: string[];
|
|
44
|
-
steps: ExecutionStep[];
|
|
45
|
-
startTime: number;
|
|
46
|
-
endTime?: number;
|
|
47
|
-
}
|
|
48
|
-
/** Memory for learning */
|
|
49
|
-
export interface AGIMemory {
|
|
50
|
-
successfulApproaches: Array<{
|
|
51
|
-
prompt: string;
|
|
52
|
-
tools: string[];
|
|
53
|
-
success: boolean;
|
|
54
|
-
timestamp: number;
|
|
55
|
-
}>;
|
|
56
|
-
projectInfo: {
|
|
57
|
-
type: string;
|
|
58
|
-
buildCmd: string | null;
|
|
59
|
-
testCmd: string | null;
|
|
60
|
-
lintCmd: string | null;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/** Callback for streaming output through the UI */
|
|
64
|
-
export type DisplayCallback = (message: string, type?: 'thinking' | 'step' | 'result' | 'complete' | 'error') => void;
|
|
65
|
-
export declare class RealAGI {
|
|
66
|
-
private workingDir;
|
|
67
|
-
private memory;
|
|
68
|
-
private memoryPath;
|
|
69
|
-
private tools;
|
|
70
|
-
private embeddings;
|
|
71
|
-
private displayCallback;
|
|
72
|
-
constructor(workingDir?: string);
|
|
73
|
-
/** Set callback for streaming output through the shell UI */
|
|
74
|
-
setDisplayCallback(callback: DisplayCallback | null): void;
|
|
75
|
-
/** Stream a message through the UI if callback is set */
|
|
76
|
-
private streamToUI;
|
|
77
|
-
private loadMemory;
|
|
78
|
-
private saveMemory;
|
|
79
|
-
private detectProject;
|
|
80
|
-
private createRealTools;
|
|
81
|
-
/**
|
|
82
|
-
* Search for relevant tools using embeddings (dot product similarity)
|
|
83
|
-
*/
|
|
84
|
-
searchTools(prompt: string, topK?: number): Promise<ToolMatch[]>;
|
|
85
|
-
/**
|
|
86
|
-
* Get recommended tools for a prompt using embeddings
|
|
87
|
-
*/
|
|
88
|
-
getRecommendedTools(prompt: string): Promise<string[]>;
|
|
89
|
-
/**
|
|
90
|
-
* Format tool search results
|
|
91
|
-
*/
|
|
92
|
-
formatToolSearch(prompt: string): Promise<string>;
|
|
93
|
-
/**
|
|
94
|
-
* Understand any prompt and figure out what tools to run
|
|
95
|
-
* This is the core AGI function - no intents, just tool planning
|
|
96
|
-
*/
|
|
97
|
-
understand(prompt: string): ExecutionPlan;
|
|
98
|
-
/**
|
|
99
|
-
* Execute a plan - runs each tool for real
|
|
100
|
-
*/
|
|
101
|
-
execute(plan: ExecutionPlan): Promise<ExecutionPlan>;
|
|
102
|
-
private executeStep;
|
|
103
|
-
/**
|
|
104
|
-
* Format execution plan in Claude Code style
|
|
105
|
-
*/
|
|
106
|
-
formatPlan(plan: ExecutionPlan): string;
|
|
107
|
-
/**
|
|
108
|
-
* Format execution results in Claude Code style
|
|
109
|
-
*/
|
|
110
|
-
formatResults(plan: ExecutionPlan): string;
|
|
111
|
-
private formatArgs;
|
|
112
|
-
/**
|
|
113
|
-
* Process any prompt - understand, plan, execute, display
|
|
114
|
-
* Streams output through the UI callback if set
|
|
115
|
-
*/
|
|
116
|
-
process(prompt: string, dryRun?: boolean): Promise<string>;
|
|
117
|
-
getMemory(): AGIMemory;
|
|
118
|
-
}
|
|
119
|
-
export declare function getRealAGI(workingDir?: string): RealAGI;
|
|
120
|
-
export declare function resetRealAGI(): void;
|
|
121
|
-
//# sourceMappingURL=realAGI.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realAGI.d.ts","sourceRoot":"","sources":["../../src/core/realAGI.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMxE,uCAAuC;AACvC,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;CACjE;AAED,mCAAmC;AACnC,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;I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