Skip to content

Commit 36b0537

Browse files
author
chrishuan
committed
feat: release v1.0.0-beta.1
0 parents  commit 36b0537

290 files changed

Lines changed: 72303 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
node_modules
2+
.git
3+
__tests__
4+
tests
5+
docs
6+
*.md
7+
*.pdf
8+
*.pptx
9+
*.html
10+
*.png
11+
*.tgz
12+
.DS_Store
13+
.codebuddy
14+
.ai_assets
15+
benchmark-runs
16+
deploy
17+
sdk
18+
docker
19+
backup-*
20+
pnpm-lock.yaml
21+
install_hermes_ubuntu24.04_hongkong.sh
22+
scripts/migrate-sqlite-to-tcvdb
23+
scripts/sync-hermes-llm-to-tdai.sh
24+
dump.rdb
25+
vitest.config.ts
26+
vitest.e2e.config.ts
27+
kubb.config.ts
28+
tsdown.config.ts
29+
30+
# 保留必要的 md 文件(被上面 *.md 排除了,但 README.md 等对运行无影响,不需要保留)
31+
# 如果需要在容器中读取 README.md,删除上面的 *.md 行
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: 🐛 Bug Report
2+
description: Report an issue with the plugin | 报告插件使用中的问题
3+
title: "[Bug] "
4+
labels: ["bug"]
5+
assignees: []
6+
body:
7+
- type: input
8+
id: openclaw-version
9+
attributes:
10+
label: OpenClaw Version | OpenClaw 版本
11+
placeholder: e.g. 2026.3.13 | 例如:2026.3.13
12+
validations:
13+
required: true
14+
15+
- type: input
16+
id: plugin-version
17+
attributes:
18+
label: Plugin Version | 插件版本
19+
description: TencentDB-Agent-Memory
20+
placeholder: e.g. 0.1.0 | 例如:0.1.0
21+
validations:
22+
required: true
23+
24+
- type: input
25+
id: os
26+
attributes:
27+
label: Operating System | 操作系统
28+
placeholder: e.g. Linux / Ubuntu 22.04 / macOS 14 / Windows 11 / CentOS 7
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: system-spec
34+
attributes:
35+
label: System Specification | 系统配置
36+
description: Optional, e.g. CPU model, memory size | 可选,如 CPU、内存大小等,不清楚可略过
37+
placeholder: Intel i7 16GB RAM / 8C16G | Intel i7 16GB内存 / 8核16G
38+
validations:
39+
required: false
40+
41+
- type: textarea
42+
id: bug-description
43+
attributes:
44+
label: Describe the bug | 问题描述
45+
description: A clear and concise description of the problem | 清晰简洁地描述你遇到的问题
46+
placeholder: Please describe the issue in detail | 请详细说明问题现象...
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: reproduce
52+
attributes:
53+
label: To Reproduce | 复现步骤
54+
description: Steps to reproduce the behavior | 复现该问题的操作步骤
55+
placeholder: |
56+
1. Go to / Call API | 执行操作/调用接口
57+
2. Set parameters | 传入参数/配置
58+
3. See error | 出现报错/异常
59+
validations:
60+
required: true
61+
62+
- type: textarea
63+
id: expected-behavior
64+
attributes:
65+
label: Expected behavior | 预期行为
66+
description: What you expected to happen | 你期望的正确结果
67+
validations:
68+
required: true
69+
70+
- type: textarea
71+
id: logs
72+
attributes:
73+
label: Error Logs / Screenshots | 报错日志/截图
74+
description: Please attach full logs or screenshots | 请附上完整报错日志或截图
75+
validations:
76+
required: false
77+
78+
- type: textarea
79+
id: additional-context
80+
attributes:
81+
label: Additional context | 补充信息
82+
description: Any other relevant information | 其他相关信息
83+
validations:
84+
required: false
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ✨ Feature Request
2+
description: Propose a feature or suggestion | 提出一个功能需求或建议
3+
title: "[Feature] "
4+
labels: ["enhancement"]
5+
assignees: []
6+
7+
body:
8+
- type: textarea
9+
id: related-problem
10+
attributes:
11+
label: Is this feature related to a problem? | 该功能需求是否与某个问题相关?请描述
12+
description: A clear and concise description of the problem | 清晰简洁地描述问题是什么
13+
placeholder: e.g. I'm frustrated when... | 例如:我总是在使用 XX 功能时感到不便...
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: solution
19+
attributes:
20+
label: Describe the solution you'd like | 描述你期望的解决方案
21+
description: A clear and concise description of what you want to happen | 清晰简洁地说明你希望实现的效果
22+
placeholder: Describe the feature you want to add or improve | 请描述你希望新增或改进的功能...
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: Describe alternatives you've considered | 描述你考虑过的其他方案
30+
description: A clear and concise description of any alternative solutions | 清晰简洁地描述你考虑过的其他替代方案或功能
31+
placeholder: Optional | 可选
32+
validations:
33+
required: false
34+
35+
- type: textarea
36+
id: additional-context
37+
attributes:
38+
label: Additional context | 补充说明
39+
description: Add any other context or screenshots about the feature | 在此添加与该功能需求相关的其他背景信息或截图
40+
placeholder: Optional | 可选
41+
validations:
42+
required: false
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ❓ Question / Consultation
2+
description: Ask a question about usage or community | 使用咨询或社区相关问题
3+
title: "[Question] "
4+
labels: ["question"]
5+
assignees: []
6+
7+
body:
8+
- type: dropdown
9+
id: question-type
10+
attributes:
11+
label: Question Category | 问题类别
12+
description: Select the category that best describes your question | 选择最符合你问题的类别
13+
options:
14+
- Usage / How-to | 使用方式咨询
15+
- Compatibility / Integration | 兼容性 / 集成确认
16+
- Community / Group | 社区 / 群组相关
17+
- Other | 其他
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: question-description
23+
attributes:
24+
label: Your Question | 你的问题
25+
description: Describe your question clearly | 请清晰描述你的问题
26+
placeholder: e.g. Does the memory plugin work with OpenClaw? | 例如:记忆插件是否支持 OpenClaw?
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
id: context
32+
attributes:
33+
label: Context / Background | 背景信息
34+
description: Any context that helps us understand your question better | 有助于我们理解你问题的背景信息
35+
placeholder: e.g. your use case, environment, what you've tried | 例如:你的使用场景、环境、已尝试的方案等
36+
validations:
37+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Description | 描述
2+
<!-- Describe what this PR does | 请描述这个 PR 做了什么 -->
3+
4+
## Related Issue | 关联 Issue
5+
<!-- Example: Fix #123 | 例如:Fix #123 -->
6+
7+
## Change Type | 修改类型
8+
- [ ] Bug fix | Bug 修复
9+
- [ ] New feature | 新功能
10+
- [ ] Documentation update | 文档更新
11+
- [ ] Code optimization | 代码优化
12+
13+
## Self-test Checklist | 自测清单
14+
- [ ] Verified locally | 本地验证通过
15+
- [ ] No existing features affected | 无影响现有功能
16+
17+
## Additional Notes | 其他说明
18+
<!-- Optional | 可选 -->

.github/workflows/pr-ci.yml

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
# Cancel previous runs for the same PR / branch
8+
concurrency:
9+
group: ci-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
# ── 1. Install dependencies ────────────────────────────────
14+
install:
15+
name: Install
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "22"
23+
24+
- name: Cache node_modules
25+
uses: actions/cache@v4
26+
id: cache-deps
27+
with:
28+
path: node_modules
29+
key: deps-${{ runner.os }}-${{ hashFiles('package.json') }}
30+
31+
- name: npm install
32+
if: steps.cache-deps.outputs.cache-hit != 'true'
33+
run: npm install --ignore-scripts
34+
35+
# ── 2. Pack validation ─────────────────────────────────────
36+
pack:
37+
name: Pack
38+
needs: install
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: "22"
46+
47+
- name: Restore node_modules
48+
uses: actions/cache@v4
49+
with:
50+
path: node_modules
51+
key: deps-${{ runner.os }}-${{ hashFiles('package.json') }}
52+
53+
- name: npm pack (dry-run)
54+
run: npm pack --dry-run
55+
56+
- name: npm pack
57+
run: npm pack
58+
59+
- name: Upload .tgz artifact
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: package-tarball
63+
path: "*.tgz"
64+
retention-days: 7
65+
66+
# ── 5. Plugin manifest validation ──────────────────────────
67+
manifest:
68+
name: Manifest
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v4
72+
73+
- name: Validate openclaw.plugin.json
74+
run: |
75+
echo "── Checking openclaw.plugin.json exists ──"
76+
test -f openclaw.plugin.json || { echo "❌ openclaw.plugin.json not found"; exit 1; }
77+
78+
echo "── Checking valid JSON ──"
79+
node -e "JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8'))" || { echo "❌ Invalid JSON"; exit 1; }
80+
81+
echo "── Checking required fields ──"
82+
node -e "
83+
const m = JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8'));
84+
const errors = [];
85+
if (!m.id || typeof m.id !== 'string') errors.push('missing or invalid \"id\"');
86+
if (m.configSchema && typeof m.configSchema !== 'object') errors.push('\"configSchema\" must be an object');
87+
if (errors.length) { console.error('❌ Manifest errors:', errors.join(', ')); process.exit(1); }
88+
console.log('✅ id:', m.id);
89+
if (m.name) console.log(' name:', m.name);
90+
if (m.configSchema) console.log(' configSchema: present (' + Object.keys(m.configSchema.properties || {}).length + ' top-level props)');
91+
"
92+
93+
echo "── Checking package.json openclaw metadata ──"
94+
node -e "
95+
const pkg = JSON.parse(require('fs').readFileSync('package.json','utf8'));
96+
const oc = pkg.openclaw || {};
97+
const errors = [];
98+
if (!oc.extensions || !oc.extensions.length) errors.push('missing openclaw.extensions');
99+
if (!oc.compat?.pluginApi) errors.push('missing openclaw.compat.pluginApi');
100+
if (!oc.build?.openclawVersion) errors.push('missing openclaw.build.openclawVersion');
101+
if (errors.length) { console.error('❌ Package metadata errors:', errors.join(', ')); process.exit(1); }
102+
console.log('✅ openclaw metadata OK');
103+
console.log(' pluginApi:', oc.compat.pluginApi);
104+
console.log(' openclawVersion:', oc.build.openclawVersion);
105+
"
106+
107+
# ── 6. Package size guard ──────────────────────────────────
108+
size:
109+
name: Size Guard
110+
needs: pack
111+
runs-on: ubuntu-latest
112+
steps:
113+
- name: Download tarball
114+
uses: actions/download-artifact@v4
115+
with:
116+
name: package-tarball
117+
118+
- name: Check package size
119+
run: |
120+
TGZ=$(ls *.tgz | head -1)
121+
SIZE=$(stat -c%s "$TGZ" 2>/dev/null || stat -f%z "$TGZ")
122+
SIZE_KB=$((SIZE / 1024))
123+
MAX_KB=2048
124+
125+
echo "📦 Package: $TGZ"
126+
echo " Size: ${SIZE_KB} KB (limit: ${MAX_KB} KB)"
127+
128+
if [ "$SIZE_KB" -gt "$MAX_KB" ]; then
129+
echo "❌ Package exceeds ${MAX_KB} KB size limit!"
130+
echo " Consider checking if large files were accidentally included."
131+
exit 1
132+
else
133+
echo "✅ Size OK"
134+
fi

0 commit comments

Comments
 (0)