@agent-evolve/core 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +773 -0
- package/dist/index.js +1812 -0
- package/package.json +51 -0
- package/registry/schema.sql +52 -0
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-evolve/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Agent continuous improvement engine — let agents learn from every run",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"registry/schema.sql"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"agent",
|
|
22
|
+
"ai",
|
|
23
|
+
"llm",
|
|
24
|
+
"continuous-improvement",
|
|
25
|
+
"learning",
|
|
26
|
+
"intent",
|
|
27
|
+
"evaluation",
|
|
28
|
+
"distillation",
|
|
29
|
+
"propagation"
|
|
30
|
+
],
|
|
31
|
+
"author": "AShan0227",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/AShan0227/agent-evolve.git",
|
|
36
|
+
"directory": "packages/core"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/AShan0227/agent-evolve#readme",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/AShan0227/agent-evolve/issues"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=20"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"better-sqlite3": "^12.2.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup index.ts --format esm --dts --clean"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
CREATE TABLE IF NOT EXISTS registry (
|
|
2
|
+
id TEXT PRIMARY KEY,
|
|
3
|
+
summary TEXT NOT NULL,
|
|
4
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
5
|
+
storage_ptr TEXT NOT NULL,
|
|
6
|
+
data_type TEXT DEFAULT 'memory',
|
|
7
|
+
confidence REAL DEFAULT 0.5,
|
|
8
|
+
verified_cnt INTEGER DEFAULT 0,
|
|
9
|
+
partition TEXT DEFAULT 'global',
|
|
10
|
+
source_agent TEXT,
|
|
11
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
12
|
+
last_accessed TEXT,
|
|
13
|
+
access_count INTEGER DEFAULT 0,
|
|
14
|
+
status TEXT DEFAULT 'active'
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
CREATE INDEX IF NOT EXISTS idx_tags ON registry(tags);
|
|
18
|
+
CREATE INDEX IF NOT EXISTS idx_partition ON registry(partition);
|
|
19
|
+
CREATE INDEX IF NOT EXISTS idx_data_type ON registry(data_type);
|
|
20
|
+
CREATE INDEX IF NOT EXISTS idx_status ON registry(status);
|
|
21
|
+
|
|
22
|
+
CREATE TABLE IF NOT EXISTS retrieval_traces (
|
|
23
|
+
id TEXT PRIMARY KEY,
|
|
24
|
+
intent_id TEXT,
|
|
25
|
+
query_tags TEXT,
|
|
26
|
+
partitions_searched TEXT,
|
|
27
|
+
hits TEXT,
|
|
28
|
+
loaded_l0 TEXT,
|
|
29
|
+
promoted_l1 TEXT,
|
|
30
|
+
promoted_l2 TEXT,
|
|
31
|
+
injected TEXT,
|
|
32
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
CREATE TABLE IF NOT EXISTS prediction_log (
|
|
36
|
+
id TEXT PRIMARY KEY,
|
|
37
|
+
intent_id TEXT,
|
|
38
|
+
task_type TEXT,
|
|
39
|
+
dimension TEXT,
|
|
40
|
+
estimated REAL,
|
|
41
|
+
actual REAL,
|
|
42
|
+
deviation REAL,
|
|
43
|
+
level TEXT,
|
|
44
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
CREATE TABLE IF NOT EXISTS codec_table (
|
|
48
|
+
short_code TEXT PRIMARY KEY,
|
|
49
|
+
full_value TEXT NOT NULL,
|
|
50
|
+
usage_count INTEGER DEFAULT 1,
|
|
51
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
52
|
+
);
|