快速开始
本教程给出 sharelife 在本地可落地的最小流程,步骤尽量保持最短。
快速路径
bash
bash scripts/sharelife-init-wizard --yes --output config.generated.yaml然后在聊天里执行:
text
/sharelife_pref
/sharelife_market
/sharelife_trial community/basic
/sharelife_trial_status community/basic能跑通后再继续下面步骤。
一屏版可看 3 分钟快速跑通。
前置条件
- Python 3.12
- AstrBot 运行环境
- 已执行
pip install -r requirements.txt
可选:执行 /sharelife_webui 打开独立 WebUI。
第一步:检查默认偏好
text
/sharelife_pref默认应包含:
execution_mode=subagent_drivenobserve_task_details=off
第二步:切换执行模式
text
/sharelife_mode inline_execution再次执行 /sharelife_pref,确认已切换。
第三步:开启任务细节观测
text
/sharelife_observe on再次执行 /sharelife_pref,确认 observe_task_details=on。
第四步:试用与本地安装交接
普通用户:
text
/sharelife_trial community/basic
/sharelife_trial_status community/basic状态会返回 not_started、active 或 expired,并带 TTL 信息。
随后继续本地用户安装链路:
text
/sharelife_market
/sharelife_prompt community/basic
/sharelife_package community/basic真正的安装控制在本地 WebUI 的 /member 或 /market 中完成,可选项包括:
preflightforce_reinstallsource_preference=auto|uploaded_submission|generated
第五步:上传与社区投稿
模板上传链路:
- 打开本地 WebUI 的
/member或/market。 - 选择模板包文件,或使用已生成的 package 输出。
- 模板包直传上限为
20 MiB。 - 可选上传参数:
scan_mode=strict|balancedvisibility=community|privatereplace_existing=true|false
- 提交后通过
我的投稿查看结果。
Profile-pack 投稿链路:
- 准备或导出本地产物,复制其
artifact_id。 - 在
/member或/market发起投稿。 - 可选提交参数:
pack_typeselected_sectionsredaction_modereplace_existing
- 通过
我的 Profile-Pack 投稿查看属主范围内的状态与导出下载。