memory-lucia 2.0.0 → 2.0.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.
@@ -0,0 +1,81 @@
1
+ # GitHub 发布步骤
2
+
3
+ ## 🚀 创建 GitHub 仓库
4
+
5
+ ### 方式 1: 命令行 (推荐)
6
+
7
+ ```bash
8
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
9
+
10
+ # 初始化 git
11
+ git init
12
+
13
+ # 添加所有文件
14
+ git add .
15
+
16
+ # 提交
17
+ git commit -m "Initial commit: Memory Lucia v2.0.0"
18
+
19
+ # 创建 GitHub 仓库 (需要安装 gh CLI)
20
+ # 或者手动在 https://github.com/new 创建
21
+
22
+ # 关联远程仓库
23
+ git remote add origin https://github.com/snowya/memory-lucia.git
24
+
25
+ # 推送
26
+ git push -u origin main
27
+ ```
28
+
29
+ ### 方式 2: 网页操作
30
+
31
+ 1. 访问 https://github.com/new
32
+ 2. 填写信息:
33
+ - **Repository name**: `memory-lucia`
34
+ - **Description**: `Advanced memory system for OpenClaw agents`
35
+ - **Public** (勾选)
36
+ - **Add a README file** (不要勾选,已有 README)
37
+ 3. 点击 **Create repository**
38
+ 4. 按页面提示推送代码
39
+
40
+ ## 📦 创建 Release
41
+
42
+ 1. 访问 https://github.com/snowya/memory-lucia/releases
43
+ 2. 点击 **"Create a new release"**
44
+ 3. 填写信息:
45
+ - **Tag**: `v2.0.0`
46
+ - **Title**: `Memory Lucia v2.0.0`
47
+ - **Description**:
48
+ ```markdown
49
+ ## Memory Lucia v2.0.0
50
+
51
+ Advanced memory system for OpenClaw agents.
52
+
53
+ ### Features
54
+ - Priority Analysis
55
+ - Learning Tracking
56
+ - Decision Recording
57
+ - Skill Evolution
58
+ - Version Management
59
+
60
+ ### Installation
61
+ ```bash
62
+ npm install memory-lucia
63
+ ```
64
+
65
+ ### Links
66
+ - npm: https://www.npmjs.com/package/memory-lucia
67
+ ```
68
+ 4. 点击 **Publish release**
69
+
70
+ ## ✅ 完成检查
71
+
72
+ - [ ] GitHub 仓库已创建
73
+ - [ ] 代码已推送
74
+ - [ ] Release 已发布
75
+ - [ ] README 中的链接可点击
76
+ - [ ] npm 页面显示 GitHub 链接
77
+
78
+ ## 🔗 相关链接
79
+
80
+ - GitHub: https://github.com/snowya/memory-lucia
81
+ - npm: https://www.npmjs.com/package/memory-lucia
package/README.md CHANGED
@@ -1,64 +1,111 @@
1
1
  # Memory Lucia
2
2
 
3
- [![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](https://github.com/YOUR_USERNAME/memory-lucia/releases)
4
- [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
3
+ [![npm version](https://img.shields.io/npm/v/memory-lucia.svg)](https://www.npmjs.com/package/memory-lucia)
4
+ [![GitHub](https://img.shields.io/badge/github-memory--lucia-blue.svg)](https://github.com/wen521/memory-lucia-)
5
+ [![License](https://img.shields.io/npm/l/memory-lucia.svg)](LICENSE)
5
6
 
6
7
  Advanced memory system for OpenClaw agents with priority analysis, learning tracking, decision recording, and skill evolution.
7
8
 
8
- ## Features
9
-
10
- - 🎯 **Priority Analysis** - Analyze and store message priorities
11
- - 📚 **Learning Tracking** - Track learning progress and milestones
12
- - 🎯 **Decision Recording** - Record decisions with outcomes and reviews
13
- - 📈 **Skill Evolution** - Monitor skill usage and growth
14
- - 💾 **Version Management** - Automatic backups with rollback
15
- - 📊 **Dashboard** - Unified view of all memory data
16
-
17
- ## Quick Start
9
+ ## 📦 Installation
18
10
 
19
11
  ```bash
20
- # Install
21
12
  npm install memory-lucia
22
13
  ```
23
14
 
15
+ ## 🚀 Quick Start
16
+
24
17
  ```javascript
25
18
  const MemoryAPI = require('memory-lucia');
26
19
 
27
- const api = new MemoryAPI('./memory-v2.db');
20
+ const api = new MemoryAPI('./memory.db');
28
21
  await api.init();
29
22
 
30
- // Track learning
23
+ // Track learning progress
31
24
  await api.startLearning(msgId, convId, message);
25
+ await api.updateLearningProgress(learningId, { progress: 50 });
26
+
27
+ // Record a decision
28
+ await api.recordDecision(msgId, convId, {
29
+ summary: 'Choose SQLite over PostgreSQL',
30
+ context: 'For local deployment',
31
+ expectedOutcome: 'Simpler setup'
32
+ });
32
33
 
33
34
  // Get dashboard
34
35
  const dashboard = await api.getDashboard();
36
+ console.log(dashboard);
35
37
  ```
36
38
 
37
- ## Core Modules
39
+ ## Features
38
40
 
39
- - **Priority** - Message priority analysis
40
- - **Learning** - Learning progress tracking
41
- - **Decision** - Decision recording and review
42
- - **Evolution** - Skill usage monitoring
43
- - **Version** - Backup and rollback
41
+ - 🎯 **Priority Analysis** - Analyze and store message priorities
42
+ - 📚 **Learning Tracking** - Track learning progress and milestones
43
+ - 🎯 **Decision Recording** - Record decisions with outcomes and reviews
44
+ - 📈 **Skill Evolution** - Monitor skill usage and growth
45
+ - 💾 **Version Management** - Automatic backups with rollback
46
+ - 📊 **Dashboard** - Unified view of all memory data
44
47
 
45
- ## Documentation
48
+ ## 📖 Core Modules
49
+
50
+ ### 1. Priority Module
51
+ Analyze and store message priorities.
52
+
53
+ ```javascript
54
+ const analysis = await api.analyzePriority(message);
55
+ await api.storePriority(msgId, convId, analysis);
56
+ const highPriority = await api.getHighPriority(10);
57
+ ```
58
+
59
+ ### 2. Learning Module
60
+ Track learning topics and progress.
61
+
62
+ ```javascript
63
+ const learning = await api.startLearning(msgId, convId, message);
64
+ await api.addMilestone(learning.id, { title: 'Completed Chapter 1' });
65
+ const active = await api.getActiveLearning(5);
66
+ ```
67
+
68
+ ### 3. Decision Module
69
+ Record and review decisions.
70
+
71
+ ```javascript
72
+ await api.recordDecision(msgId, convId, decisionData);
73
+ await api.updateDecisionOutcome(decisionId, { actualOutcome: 'Success' });
74
+ const pending = await api.getPendingDecisions();
75
+ ```
76
+
77
+ ### 4. Evolution Module
78
+ Monitor skill usage.
79
+
80
+ ```javascript
81
+ await api.recordSkillUsage('skill-name', 'category', 'success');
82
+ const topSkills = await api.getTopSkills(10);
83
+ ```
84
+
85
+ ## 📚 Documentation
46
86
 
47
87
  - [SKILL.md](SKILL.md) - Skill description and usage
48
88
  - [API Reference](references/API.md) - Complete API documentation
89
+ - [Architecture](references/ARCHITECTURE.md) - System design
49
90
 
50
- ## Database
91
+ ## 🗄️ Database
51
92
 
52
93
  SQLite backend with tables:
53
- - `memory_priorities`
54
- - `memory_learning`
55
- - `memory_decisions`
56
- - `memory_evolution`
94
+ - `memory_priorities` - Priority analysis
95
+ - `memory_learning` - Learning tracking
96
+ - `memory_decisions` - Decision records
97
+ - `memory_evolution` - Skill usage
98
+
99
+ ## 🔗 Links
100
+
101
+ - **npm**: https://www.npmjs.com/package/memory-lucia
102
+ - **GitHub**: https://github.com/wen521/memory-lucia-
103
+ - **Issues**: https://github.com/wen521/memory-lucia-/issues
57
104
 
58
- ## Version
105
+ ## 📋 Version
59
106
 
60
107
  Current: 2.0.0
61
108
 
62
- ## License
109
+ ## 📄 License
63
110
 
64
- MIT
111
+ MIT © Chief of Staff
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-lucia",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Advanced memory system for OpenClaw agents with priority analysis, learning tracking, decision recording, and skill evolution",
5
5
  "main": "api/index.js",
6
6
  "scripts": {
@@ -26,10 +26,10 @@
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
29
- "url": "https://github.com/YOUR_USERNAME/memory-lucia.git"
29
+ "url": "https://github.com/wen521/memory-lucia-.git"
30
30
  },
31
31
  "bugs": {
32
- "url": "https://github.com/YOUR_USERNAME/memory-lucia/issues"
32
+ "url": "https://github.com/wen521/memory-lucia-/issues"
33
33
  },
34
- "homepage": "https://github.com/YOUR_USERNAME/memory-lucia#readme"
34
+ "homepage": "https://github.com/wen521/memory-lucia-#readme"
35
35
  }
package/push-final.bat ADDED
@@ -0,0 +1,28 @@
1
+ @echo off
2
+ echo 🚀 Pushing memory-lucia to GitHub...
3
+ echo Repository: https://github.com/wen521/memory-lucia-
4
+ echo.
5
+ echo This will prompt for credentials...
6
+ echo Username: wen521
7
+ echo Password: (paste your token)
8
+ echo.
9
+
10
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
11
+
12
+ REM Remove existing remote
13
+ git remote remove origin 2>nul
14
+
15
+ REM Add remote without token
16
+ git remote add origin https://github.com/wen521/memory-lucia-.git
17
+
18
+ REM Configure git to use credential helper
19
+ git config --local credential.helper wincred
20
+
21
+ REM Push - will prompt for credentials
22
+ git push -u origin main
23
+
24
+ echo.
25
+ echo ✅ Done!
26
+ echo.
27
+ echo Repository: https://github.com/wen521/memory-lucia-
28
+ pause
@@ -0,0 +1,21 @@
1
+ @echo off
2
+ echo 🚀 Pushing memory-lucia using GitHub CLI...
3
+ echo.
4
+
5
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
6
+
7
+ echo Setting GitHub token...
8
+ set GH_TOKEN=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
9
+
10
+ echo.
11
+ echo Authenticating with GitHub...
12
+ echo %GH_TOKEN% | gh auth login --with-token
13
+
14
+ echo.
15
+ echo Creating/Pushing repository...
16
+ gh repo create wen521/memory-lucia- --public --source=. --push
17
+
18
+ echo.
19
+ echo ✅ Done!
20
+ echo Repository: https://github.com/wen521/memory-lucia-
21
+ pause
@@ -0,0 +1,24 @@
1
+ @echo off
2
+ echo 🚀 Pushing memory-lucia to GitHub...
3
+ echo Repository: https://github.com/wen521/memory-lucia-
4
+ echo.
5
+ echo Please enter your GitHub credentials when prompted:
6
+ echo Username: wen521
7
+ echo Password: (paste your token)
8
+ echo.
9
+
10
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
11
+
12
+ echo Setting remote origin...
13
+ git remote remove origin 2>nul
14
+ git remote add origin https://github.com/wen521/memory-lucia-.git
15
+
16
+ echo.
17
+ echo Pushing to main branch...
18
+ git push -u origin main
19
+
20
+ echo.
21
+ echo If prompted for password, paste this token:
22
+ echo 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
23
+ echo.
24
+ pause
@@ -0,0 +1,19 @@
1
+ @echo off
2
+ echo 🚀 Pushing memory-lucia to GitHub...
3
+ echo Repository: https://github.com/wen521/memory-lucia
4
+ echo.
5
+
6
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
7
+
8
+ echo Setting remote origin...
9
+ git remote set-url origin https://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@github.com/wen521/memory-lucia.git
10
+
11
+ echo.
12
+ echo Pushing to main branch...
13
+ git push -u origin main
14
+
15
+ echo.
16
+ echo ✅ Done!
17
+ echo.
18
+ echo Repository: https://github.com/wen521/memory-lucia
19
+ pause
@@ -0,0 +1,26 @@
1
+ @echo off
2
+ echo 🚀 Pushing memory-lucia to GitHub using GitHub CLI...
3
+ echo Repository: https://github.com/wen521/memory-lucia-
4
+ echo.
5
+
6
+ cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
7
+
8
+ echo Installing GitHub CLI if not present...
9
+ winget install --id GitHub.cli -e --source winget 2>nul
10
+
11
+ echo.
12
+ echo Authenticating with GitHub...
13
+ set GH_TOKEN=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
14
+ echo %GH_TOKEN% | gh auth login --with-token
15
+
16
+ echo.
17
+ echo Pushing repository...
18
+ gh repo create wen521/memory-lucia- --public --source=. --push 2>nul || (
19
+ echo Repository may already exist, trying to push...
20
+ git push -u origin main
21
+ )
22
+
23
+ echo.
24
+ echo ✅ Done!
25
+ echo Repository: https://github.com/wen521/memory-lucia-
26
+ pause