feat: release v1.0.0-beta.1

This commit is contained in:
chrishuan
2026-05-29 17:33:12 +08:00
commit 36b0537676
290 changed files with 72303 additions and 0 deletions
+84
View File
@@ -0,0 +1,84 @@
name: 🐛 Bug Report
description: Report an issue with the plugin | 报告插件使用中的问题
title: "[Bug] "
labels: ["bug"]
assignees: []
body:
- type: input
id: openclaw-version
attributes:
label: OpenClaw Version | OpenClaw 版本
placeholder: e.g. 2026.3.13 | 例如:2026.3.13
validations:
required: true
- type: input
id: plugin-version
attributes:
label: Plugin Version | 插件版本
description: TencentDB-Agent-Memory
placeholder: e.g. 0.1.0 | 例如:0.1.0
validations:
required: true
- type: input
id: os
attributes:
label: Operating System | 操作系统
placeholder: e.g. Linux / Ubuntu 22.04 / macOS 14 / Windows 11 / CentOS 7
validations:
required: true
- type: input
id: system-spec
attributes:
label: System Specification | 系统配置
description: Optional, e.g. CPU model, memory size | 可选,如 CPU、内存大小等,不清楚可略过
placeholder: Intel i7 16GB RAM / 8C16G | Intel i7 16GB内存 / 8核16G
validations:
required: false
- type: textarea
id: bug-description
attributes:
label: Describe the bug | 问题描述
description: A clear and concise description of the problem | 清晰简洁地描述你遇到的问题
placeholder: Please describe the issue in detail | 请详细说明问题现象...
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: To Reproduce | 复现步骤
description: Steps to reproduce the behavior | 复现该问题的操作步骤
placeholder: |
1. Go to / Call API | 执行操作/调用接口
2. Set parameters | 传入参数/配置
3. See error | 出现报错/异常
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior | 预期行为
description: What you expected to happen | 你期望的正确结果
validations:
required: true
- type: textarea
id: logs
attributes:
label: Error Logs / Screenshots | 报错日志/截图
description: Please attach full logs or screenshots | 请附上完整报错日志或截图
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional context | 补充信息
description: Any other relevant information | 其他相关信息
validations:
required: false
@@ -0,0 +1,42 @@
name: ✨ Feature Request
description: Propose a feature or suggestion | 提出一个功能需求或建议
title: "[Feature] "
labels: ["enhancement"]
assignees: []
body:
- type: textarea
id: related-problem
attributes:
label: Is this feature related to a problem? | 该功能需求是否与某个问题相关?请描述
description: A clear and concise description of the problem | 清晰简洁地描述问题是什么
placeholder: e.g. I'm frustrated when... | 例如:我总是在使用 XX 功能时感到不便...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like | 描述你期望的解决方案
description: A clear and concise description of what you want to happen | 清晰简洁地说明你希望实现的效果
placeholder: Describe the feature you want to add or improve | 请描述你希望新增或改进的功能...
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered | 描述你考虑过的其他方案
description: A clear and concise description of any alternative solutions | 清晰简洁地描述你考虑过的其他替代方案或功能
placeholder: Optional | 可选
validations:
required: false
- type: textarea
id: additional-context
attributes:
label: Additional context | 补充说明
description: Add any other context or screenshots about the feature | 在此添加与该功能需求相关的其他背景信息或截图
placeholder: Optional | 可选
validations:
required: false
+37
View File
@@ -0,0 +1,37 @@
name: ❓ Question / Consultation
description: Ask a question about usage or community | 使用咨询或社区相关问题
title: "[Question] "
labels: ["question"]
assignees: []
body:
- type: dropdown
id: question-type
attributes:
label: Question Category | 问题类别
description: Select the category that best describes your question | 选择最符合你问题的类别
options:
- Usage / How-to | 使用方式咨询
- Compatibility / Integration | 兼容性 / 集成确认
- Community / Group | 社区 / 群组相关
- Other | 其他
validations:
required: true
- type: textarea
id: question-description
attributes:
label: Your Question | 你的问题
description: Describe your question clearly | 请清晰描述你的问题
placeholder: e.g. Does the memory plugin work with OpenClaw? | 例如:记忆插件是否支持 OpenClaw?
validations:
required: true
- type: textarea
id: context
attributes:
label: Context / Background | 背景信息
description: Any context that helps us understand your question better | 有助于我们理解你问题的背景信息
placeholder: e.g. your use case, environment, what you've tried | 例如:你的使用场景、环境、已尝试的方案等
validations:
required: false
+18
View File
@@ -0,0 +1,18 @@
## Description | 描述
<!-- Describe what this PR does | 请描述这个 PR 做了什么 -->
## Related Issue | 关联 Issue
<!-- Example: Fix #123 | 例如:Fix #123 -->
## Change Type | 修改类型
- [ ] Bug fix | Bug 修复
- [ ] New feature | 新功能
- [ ] Documentation update | 文档更新
- [ ] Code optimization | 代码优化
## Self-test Checklist | 自测清单
- [ ] Verified locally | 本地验证通过
- [ ] No existing features affected | 无影响现有功能
## Additional Notes | 其他说明
<!-- Optional | 可选 -->
+134
View File
@@ -0,0 +1,134 @@
name: CI
on:
pull_request:
branches: [main]
# Cancel previous runs for the same PR / branch
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# ── 1. Install dependencies ────────────────────────────────
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Cache node_modules
uses: actions/cache@v4
id: cache-deps
with:
path: node_modules
key: deps-${{ runner.os }}-${{ hashFiles('package.json') }}
- name: npm install
if: steps.cache-deps.outputs.cache-hit != 'true'
run: npm install --ignore-scripts
# ── 2. Pack validation ─────────────────────────────────────
pack:
name: Pack
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Restore node_modules
uses: actions/cache@v4
with:
path: node_modules
key: deps-${{ runner.os }}-${{ hashFiles('package.json') }}
- name: npm pack (dry-run)
run: npm pack --dry-run
- name: npm pack
run: npm pack
- name: Upload .tgz artifact
uses: actions/upload-artifact@v4
with:
name: package-tarball
path: "*.tgz"
retention-days: 7
# ── 5. Plugin manifest validation ──────────────────────────
manifest:
name: Manifest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate openclaw.plugin.json
run: |
echo "── Checking openclaw.plugin.json exists ──"
test -f openclaw.plugin.json || { echo "❌ openclaw.plugin.json not found"; exit 1; }
echo "── Checking valid JSON ──"
node -e "JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8'))" || { echo "❌ Invalid JSON"; exit 1; }
echo "── Checking required fields ──"
node -e "
const m = JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8'));
const errors = [];
if (!m.id || typeof m.id !== 'string') errors.push('missing or invalid \"id\"');
if (m.configSchema && typeof m.configSchema !== 'object') errors.push('\"configSchema\" must be an object');
if (errors.length) { console.error('❌ Manifest errors:', errors.join(', ')); process.exit(1); }
console.log('✅ id:', m.id);
if (m.name) console.log(' name:', m.name);
if (m.configSchema) console.log(' configSchema: present (' + Object.keys(m.configSchema.properties || {}).length + ' top-level props)');
"
echo "── Checking package.json openclaw metadata ──"
node -e "
const pkg = JSON.parse(require('fs').readFileSync('package.json','utf8'));
const oc = pkg.openclaw || {};
const errors = [];
if (!oc.extensions || !oc.extensions.length) errors.push('missing openclaw.extensions');
if (!oc.compat?.pluginApi) errors.push('missing openclaw.compat.pluginApi');
if (!oc.build?.openclawVersion) errors.push('missing openclaw.build.openclawVersion');
if (errors.length) { console.error('❌ Package metadata errors:', errors.join(', ')); process.exit(1); }
console.log('✅ openclaw metadata OK');
console.log(' pluginApi:', oc.compat.pluginApi);
console.log(' openclawVersion:', oc.build.openclawVersion);
"
# ── 6. Package size guard ──────────────────────────────────
size:
name: Size Guard
needs: pack
runs-on: ubuntu-latest
steps:
- name: Download tarball
uses: actions/download-artifact@v4
with:
name: package-tarball
- name: Check package size
run: |
TGZ=$(ls *.tgz | head -1)
SIZE=$(stat -c%s "$TGZ" 2>/dev/null || stat -f%z "$TGZ")
SIZE_KB=$((SIZE / 1024))
MAX_KB=2048
echo "📦 Package: $TGZ"
echo " Size: ${SIZE_KB} KB (limit: ${MAX_KB} KB)"
if [ "$SIZE_KB" -gt "$MAX_KB" ]; then
echo "❌ Package exceeds ${MAX_KB} KB size limit!"
echo " Consider checking if large files were accidentally included."
exit 1
else
echo "✅ Size OK"
fi