memory-lucia 2.0.1 → 2.0.3

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/GITHUB-SETUP.md DELETED
@@ -1,81 +0,0 @@
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
@@ -1,169 +0,0 @@
1
- # Memory V2 Skill - NPM 发布指南
2
-
3
- > 将 Memory V2 发布为 npm 包,供 ClawHub Skill 使用
4
-
5
- ---
6
-
7
- ## 📋 发现:ClawHub Skill 格式
8
-
9
- **ClawHub 上的 Skill 只有 SKILL.md**,代码通过 npm 安装。
10
-
11
- ### 标准结构
12
-
13
- ```
14
- clawhub-skill/
15
- └── SKILL.md # 只有描述文件
16
- ```
17
-
18
- ### npm 包结构
19
-
20
- ```
21
- memory-v2/ # npm 包
22
- ├── package.json
23
- ├── README.md
24
- ├── LICENSE
25
- ├── api/
26
- │ └── index.js # 主入口
27
- ├── modules/ # 核心模块
28
- └── ...
29
- ```
30
-
31
- ---
32
-
33
- ## 🚀 发布流程
34
-
35
- ### 步骤 1: 准备 npm 包
36
-
37
- ```bash
38
- cd memory-v2-skill
39
-
40
- # 1. 确保 package.json 正确
41
- # 2. 更新版本号
42
- npm version 2.0.0
43
-
44
- # 3. 创建 .npmignore
45
- echo "tests/" > .npmignore
46
- echo "backups/" >> .npmignore
47
- echo "*.db" >> .npmignore
48
-
49
- # 4. 发布到 npm
50
- npm publish
51
- ```
52
-
53
- ### 步骤 2: 创建 ClawHub Skill
54
-
55
- 创建 `clawhub-memory-v2/` 目录,只包含 SKILL.md:
56
-
57
- ```yaml
58
- ---
59
- name: memory-v2
60
- description: |
61
- Advanced memory system for OpenClaw agents with priority analysis,
62
- learning tracking, decision recording, and skill evolution.
63
- Use when: (1) Tracking learning progress and milestones, (2) Recording decisions with outcomes,
64
- (3) Analyzing message priorities, (4) Monitoring skill usage and growth.
65
- Requires: npm install memory-v2-skill
66
- ---
67
-
68
- # Memory V2
69
-
70
- ## Installation
71
-
72
- ```bash
73
- npm install memory-v2-skill
74
- ```
75
-
76
- ## Usage
77
-
78
- ```javascript
79
- const MemoryAPI = require('memory-v2-skill');
80
-
81
- const api = new MemoryAPI('./memory-v2.db');
82
- await api.init();
83
-
84
- // Track learning
85
- await api.startLearning(msgId, convId, message);
86
-
87
- // Record decision
88
- await api.recordDecision(msgId, convId, decisionData);
89
-
90
- // Get dashboard
91
- const dashboard = await api.getDashboard();
92
- ```
93
-
94
- ## API
95
-
96
- See: https://github.com/YOUR_USERNAME/memory-v2-skill#api
97
- ```
98
-
99
- ### 步骤 3: 打包并提交
100
-
101
- ```bash
102
- # 打包 ClawHub Skill
103
- cd clawhub-memory-v2
104
- zip ../memory-v2.skill SKILL.md
105
-
106
- # 提交到 ClawHub
107
- # 上传 memory-v2.skill 文件
108
- ```
109
-
110
- ---
111
-
112
- ## 📦 两种发布方式对比
113
-
114
- | 方式 | 适用场景 | 复杂度 |
115
- |------|---------|--------|
116
- | **npm + ClawHub** | 正式发布,用户易安装 | 高 |
117
- | **GitHub 直接安装** | 快速分享,开发者使用 | 低 |
118
-
119
- ---
120
-
121
- ## 🎯 推荐方案:GitHub 直接安装
122
-
123
- 对于 Memory V2,推荐直接 GitHub 安装:
124
-
125
- ### 用户使用
126
-
127
- ```bash
128
- # 克隆到 skills 目录
129
- cd ~/.openclaw/skills
130
- git clone https://github.com/YOUR_USERNAME/memory-v2-skill.git memory-v2
131
-
132
- # 安装依赖
133
- cd memory-v2
134
- npm install
135
-
136
- # 使用
137
- const MemoryAPI = require('memory-v2');
138
- ```
139
-
140
- ### 优点
141
- - 无需 npm 账号
142
- - 无需打包
143
- - 用户可直接修改
144
- - 适合自用和分享
145
-
146
- ---
147
-
148
- ## ✅ 当前状态
149
-
150
- 您的 `memory-v2-skill/` 已经可以直接使用:
151
-
152
- ```bash
153
- # 本地测试
154
- cd memory-v2-skill
155
- npm install
156
- node -e "const M = require('./api'); console.log('OK')"
157
-
158
- # 打包 (zip 格式)
159
- zip -r memory-v2.skill . -x "*.db" "node_modules/*"
160
- ```
161
-
162
- **用户安装后可以直接使用!**
163
-
164
- ---
165
-
166
- ## 📚 参考
167
-
168
- - npm 发布: https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry
169
- - ClawHub: https://clawhub.com
package/PUBLISH-STEPS.md DELETED
@@ -1,102 +0,0 @@
1
- # Memory Lucia 发布步骤
2
-
3
- ## 🚀 一键发布
4
-
5
- 在 `memory-v2-skill` 目录下执行:
6
-
7
- ### Windows
8
- ```bash
9
- publish.bat
10
- ```
11
-
12
- ### Linux/Mac
13
- ```bash
14
- bash publish.sh
15
- ```
16
-
17
- ---
18
-
19
- ## 📋 手动发布步骤
20
-
21
- ### 步骤 1: 进入目录
22
- ```bash
23
- cd C:\Users\snowya\.openclaw\workspace-chief_of_staff\memory-v2-skill
24
- ```
25
-
26
- ### 步骤 2: 登录 npm
27
- ```bash
28
- npm login --auth-type=legacy
29
- ```
30
-
31
- **输入信息:**
32
- - Username: `712724810@qq.com`
33
- - Password: `Q6Ymk#x_4dqM#T@`
34
- - Email: `712724810@qq.com`
35
- - Enter one-time password: (如果开启 2FA,输入验证码)
36
-
37
- ### 步骤 3: 发布
38
- ```bash
39
- npm publish --access=public
40
- ```
41
-
42
- ---
43
-
44
- ## ✅ 验证发布
45
-
46
- 发布成功后,访问:
47
- https://www.npmjs.com/package/memory-lucia
48
-
49
- ---
50
-
51
- ## 📦 用户使用
52
-
53
- 发布后,用户可以直接安装:
54
-
55
- ```bash
56
- npm install memory-lucia
57
- ```
58
-
59
- ```javascript
60
- const MemoryAPI = require('memory-lucia');
61
- const api = new MemoryAPI('./memory.db');
62
- await api.init();
63
- ```
64
-
65
- ---
66
-
67
- ## 🔧 如果发布失败
68
-
69
- ### 错误 1: 包名已存在
70
- ```bash
71
- # 修改 package.json 中的 name
72
- # 或者使用 scoped name: @yourname/memory-lucia
73
- ```
74
-
75
- ### 错误 2: 未登录
76
- ```bash
77
- npm login --auth-type=legacy
78
- # 重新登录
79
- ```
80
-
81
- ### 错误 3: 版本已存在
82
- ```bash
83
- # 更新版本号
84
- npm version patch # 2.0.0 -> 2.0.1
85
- npm publish
86
- ```
87
-
88
- ---
89
-
90
- ## 📊 发布信息
91
-
92
- | 属性 | 值 |
93
- |------|-----|
94
- | 包名 | `memory-lucia` |
95
- | 版本 | `2.0.0` |
96
- | 大小 | 14.4 KB |
97
- | 主入口 | `api/index.js` |
98
- | 依赖 | `sqlite3` |
99
-
100
- ---
101
-
102
- **执行 `publish.bat` 或 `publish.sh` 即可发布!**
@@ -1,13 +0,0 @@
1
- @echo off
2
- echo 🚀 Publishing memory-lucia to npm...
3
- echo.
4
- echo This package requires 2FA authentication.
5
- echo.
6
- echo Please enter your 6-digit 2FA code from your Authenticator app:
7
- set /p OTP="2FA Code: "
8
- echo.
9
- echo Publishing with OTP: %OTP%
10
- npm publish --access=public --otp=%OTP%
11
- echo.
12
- echo ✅ Done!
13
- pause
package/publish.bat DELETED
@@ -1,17 +0,0 @@
1
- @echo off
2
- echo 🚀 Publishing memory-lucia to npm...
3
- echo.
4
-
5
- echo Logging in to npm...
6
- npm login --auth-type=legacy
7
-
8
- echo.
9
- echo Publishing package...
10
- npm publish --access=public
11
-
12
- echo.
13
- echo ✅ Published!
14
- echo.
15
- echo Users can now install with:
16
- echo npm install memory-lucia
17
- pause
package/publish.sh DELETED
@@ -1,20 +0,0 @@
1
- #!/bin/bash
2
- # Memory Lucia Publish Script
3
-
4
- echo "🚀 Publishing memory-lucia to npm..."
5
- echo ""
6
-
7
- # Login
8
- echo "Logging in to npm..."
9
- npm login --auth-type=legacy
10
-
11
- # Publish
12
- echo ""
13
- echo "Publishing package..."
14
- npm publish --access=public
15
-
16
- echo ""
17
- echo "✅ Published!"
18
- echo ""
19
- echo "Users can now install with:"
20
- echo " npm install memory-lucia"
package/push-final.bat DELETED
@@ -1,28 +0,0 @@
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
package/push-gh-cli.bat DELETED
@@ -1,21 +0,0 @@
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
package/push-manual.bat DELETED
@@ -1,24 +0,0 @@
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
@@ -1,19 +0,0 @@
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
package/push-with-gh.bat DELETED
@@ -1,26 +0,0 @@
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