Skip to content

Commit 1343a3d

Browse files
author
linyuan.yang
committed
releasenote
1 parent 2deac60 commit 1343a3d

7 files changed

Lines changed: 178 additions & 37 deletions

File tree

‎.github/workflows/release-cli.yml‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Release CLI
2+
3+
on:
4+
push:
5+
tags: ['cli-v*']
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release-cli:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 10.33.0
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: pnpm
25+
registry-url: 'https://registry.npmjs.org'
26+
27+
- run: pnpm install --frozen-lockfile
28+
29+
- name: Build cli
30+
run: pnpm run build:cli
31+
32+
- name: Resolve and verify version
33+
id: version
34+
shell: bash
35+
run: |
36+
PKG_VERSION=$(node -p "require('./packages/cli/package.json').version")
37+
if [ "${{ github.event_name }}" = "push" ]; then
38+
TAG_VERSION="${GITHUB_REF_NAME#cli-v}"
39+
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
40+
echo "::error::Tag version ($TAG_VERSION) does not match packages/cli/package.json version ($PKG_VERSION)"
41+
exit 1
42+
fi
43+
fi
44+
echo "version=$PKG_VERSION" >> "$GITHUB_OUTPUT"
45+
echo "tag=cli-v$PKG_VERSION" >> "$GITHUB_OUTPUT"
46+
47+
- name: Extract release notes
48+
id: notes
49+
shell: bash
50+
run: |
51+
BODY=$(node -e "
52+
const p = require('./packages/cli/package.json');
53+
const en = p.releasenoteEn || '';
54+
const zh = p.releasenoteZh || '';
55+
process.stdout.write([en, zh].filter(Boolean).join('\n\n'));
56+
")
57+
[ -z "$BODY" ] && BODY="sbot-cli v${{ steps.version.outputs.version }}"
58+
{
59+
echo "body<<RELEASE_NOTES_EOF"
60+
echo "$BODY"
61+
echo "RELEASE_NOTES_EOF"
62+
} >> "$GITHUB_OUTPUT"
63+
64+
- name: Publish to npm
65+
if: github.event_name == 'push'
66+
env:
67+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68+
run: pnpm --filter sbot-cli publish --no-git-checks
69+
70+
- name: Create GitHub Release
71+
if: github.event_name == 'push'
72+
uses: softprops/action-gh-release@v2
73+
with:
74+
tag_name: ${{ github.ref_name }}
75+
name: 'sbot-cli v${{ steps.version.outputs.version }}'
76+
body: ${{ steps.notes.outputs.body }}
77+
draft: true
78+
prerelease: false

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
"release:sbot": "node scripts/release.js sbot",
4343
"release:app": "node scripts/release.js app",
44+
"release:cli": "node scripts/release.js cli",
4445

4546
"debug:docs": "pnpm --filter sbot-docs run dev",
4647
"build:docs": "pnpm --filter sbot-docs run build",

‎packages/admin/src/components/AgendaBoard.vue‎

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { computed, reactive, ref } from 'vue'
33
import { useI18n } from 'vue-i18n'
4+
import { marked } from 'marked'
45
import { SBadge, SButton, SEntityList, SFormItem, SModal, SSelect, STextarea } from 'sbot-ui'
56
import AgendaTriggerFields from '@/components/AgendaTriggerFields.vue'
67
import {
@@ -83,6 +84,10 @@ function formatTime(ts: number | null | undefined): string {
8384
return new Date(ts).toLocaleString()
8485
}
8586
87+
function renderMessage(msg: string): string {
88+
return marked.parse(msg, { async: false }) as string
89+
}
90+
8691
interface EditForm {
8792
content: string
8893
priority: AgendaPriority
@@ -364,7 +369,7 @@ function sortedTriggers(triggers: AgendaTrigger[]): AgendaTrigger[] {
364369
</div>
365370
<div v-if="trigger.message" class="agenda-trigger-msg">
366371
<dt>{{ t('agenda.trigger_message') }}</dt>
367-
<dd>{{ trigger.message }}</dd>
372+
<dd class="agenda-trigger-md" v-html="renderMessage(trigger.message)" />
368373
</div>
369374
</dl>
370375
</li>
@@ -680,6 +685,73 @@ function sortedTriggers(triggers: AgendaTrigger[]): AgendaTrigger[] {
680685
}
681686
.agenda-trigger-msg { grid-column: 1 / -1; }
682687
688+
/* ── Trigger 消息的 Markdown 渲染(紧凑版) ── */
689+
.agenda-trigger-md {
690+
border: 1px solid var(--sui-border);
691+
border-radius: var(--sui-radius-sm);
692+
background: var(--sui-bg);
693+
padding: var(--sui-sp-2) var(--sui-sp-3);
694+
line-height: 1.6;
695+
}
696+
.agenda-trigger-md :deep(> *:first-child) { margin-top: 0; }
697+
.agenda-trigger-md :deep(> *:last-child) { margin-bottom: 0; }
698+
.agenda-trigger-md :deep(p) { margin: 0 0 var(--sui-sp-2); }
699+
.agenda-trigger-md :deep(h1),
700+
.agenda-trigger-md :deep(h2),
701+
.agenda-trigger-md :deep(h3),
702+
.agenda-trigger-md :deep(h4) {
703+
margin: var(--sui-sp-2) 0 var(--sui-sp-1);
704+
font-size: var(--sui-fs-sm);
705+
font-weight: 700;
706+
color: var(--sui-fg);
707+
}
708+
.agenda-trigger-md :deep(ul),
709+
.agenda-trigger-md :deep(ol) {
710+
margin: 0 0 var(--sui-sp-2);
711+
padding-left: 20px;
712+
}
713+
.agenda-trigger-md :deep(li) { margin-bottom: 2px; }
714+
.agenda-trigger-md :deep(code) {
715+
font-family: var(--sui-font-mono);
716+
font-size: var(--sui-fs-xs);
717+
background: var(--sui-bg-hover);
718+
padding: 1px 5px;
719+
border-radius: var(--sui-radius-sm);
720+
color: var(--sui-fg);
721+
}
722+
.agenda-trigger-md :deep(pre) {
723+
background: var(--sui-bg-hover);
724+
border: 1px solid var(--sui-border);
725+
border-radius: var(--sui-radius-sm);
726+
padding: var(--sui-sp-2) var(--sui-sp-3);
727+
overflow-x: auto;
728+
margin: var(--sui-sp-1) 0 var(--sui-sp-2);
729+
}
730+
.agenda-trigger-md :deep(pre code) {
731+
background: none;
732+
padding: 0;
733+
}
734+
.agenda-trigger-md :deep(a) {
735+
color: var(--sui-info-link);
736+
text-decoration: none;
737+
}
738+
.agenda-trigger-md :deep(a:hover) { text-decoration: underline; }
739+
.agenda-trigger-md :deep(blockquote) {
740+
border-left: 3px solid var(--sui-border-strong);
741+
margin: var(--sui-sp-1) 0 var(--sui-sp-2);
742+
padding: 2px 10px;
743+
color: var(--sui-fg-muted);
744+
}
745+
.agenda-trigger-md :deep(hr) {
746+
border: none;
747+
border-top: 1px solid var(--sui-border);
748+
margin: var(--sui-sp-2) 0;
749+
}
750+
.agenda-trigger-row--disabled .agenda-trigger-grid dd.agenda-trigger-md,
751+
.agenda-trigger-row--disabled .agenda-trigger-grid dd.agenda-trigger-md :deep(*) {
752+
text-decoration: none;
753+
}
754+
683755
.agenda-sub-hint {
684756
margin: 0 0 var(--sui-sp-2);
685757
color: var(--sui-fg-muted);

‎packages/sbot/ReleaseNote.md‎

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@ This release includes the following main changes:
22

33
### Added
44

5-
1. Added `sbot update`, which updates sbot to the latest version and stops the running service first when needed.
6-
2. Added more built-in chat commands, including `/status`, `/workpath`, `/agent`, `/saver`, `/note`, `/wiki`, `/memory`, `/agenda`, `/autoapprove`, `/tokens`, `/version`, and `/history`.
7-
3. Added richer Agenda trigger controls: fire a trigger manually, delete a trigger, choose the delivery session per trigger, and mark routines as per-fire check-ins.
8-
4. Added DingTalk file sending, plus session recovery from saved metadata so proactive messages can still be delivered after a restart.
9-
5. Added ReAct sub-task tracking with task listing, resumable task state, optional parent-context injection, and nested-depth protection.
10-
6. Added Agent management helpers for reference counts, unused-Agent hints, skill exclusions in "use all" mode, and generated sub-agent capability descriptions.
5+
1. Added Agenda trigger fire history: every trigger records its past fires, viewable from the admin panel, with a retention cap.
6+
2. Reworked the Agenda management page with a dedicated trigger edit modal and trigger field editor for clearer management.
7+
3. Added resource reference display: see which objects reference an Agent, Memory, Note, Wiki, Saver, or channel, with hints for unused items.
8+
4. Added log downloads from the admin panel.
9+
5. Added parallel tool-call execution for faster responses in multi-tool scenarios.
10+
6. Added a `disableWorkspaceMcp` setting to turn off the workspace MCP.
1111

1212
### Improved
1313

14-
1. Improved channel send/list guidance so the AI can look up a person or group by name before sending messages or files.
15-
2. Improved Lark message history with sender names and clearer pagination instructions.
16-
3. Improved generated-file delivery links so files saved in nested working-directory paths can be shared correctly.
17-
4. Simplified Agenda concepts by replacing category/completion-mode combinations with a clearer check-in switch.
18-
5. Slimmed down release tooling by removing the old helper package flow and pointing XiaoAI credential setup to sbox.
14+
1. Simplified Agenda concepts by removing occurrences in favor of clearer trigger fire records; the auto-extraction pass no longer completes or cancels items, leaving item termination entirely to the user's in-conversation tools.
15+
2. Unified channel loading behind a pluggable model, added the `sbot.plugin` config-field package, and gave config fields conditional visibility (showWhen) and multi-line (Textarea) input.
1916

2017
### Fixed
2118

22-
1. Fixed Agenda trigger startup and reload races that could drop schedules or cause duplicate firing.
23-
2. Fixed multi-trigger Agenda items being marked done too early; an item now completes only after all active triggers are exhausted.
24-
3. Fixed Agenda delivery target storage and channel session metadata, improving reminder and proactive-message delivery after restarts.
25-
4. Fixed Windows command execution and process cleanup sometimes opening a console window.
26-
5. Fixed built-in command results being treated as ordinary AI replies in chat.
27-
6. Fixed embedded-client file downloads and terminal connections in environments where direct browser links or sockets are unavailable.
19+
1. Fixed inaccurate Saver resource reference counts.
20+
2. Fixed several Agenda storage and trigger-scheduling issues.

‎packages/sbot/ReleaseNote.zh.md‎

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@
22

33
### 新增
44

5-
1. 新增 `sbot update` 命令,可更新到最新版本;如果服务正在运行,会先停止服务再升级。
6-
2. 聊天内新增更多内置命令,包括 `/status`、`/workpath`、`/agent`、`/saver`、`/note`、`/wiki`、`/memory`、`/agenda`、`/autoapprove`、`/tokens`、`/version`、`/history`。
7-
3. Agenda 触发器新增更完整的管理能力:手动触发、删除触发器、为单个触发器选择投递会话,以及逐次打卡模式。
8-
4. 钉钉渠道新增文件发送,并支持从已保存的会话信息恢复投递目标,重启后也能继续主动发送。
9-
5. ReAct 多 Agent 新增子任务追踪:可查看任务列表、续接任务状态、按需注入主对话上下文,并限制过深嵌套。
10-
6. Agent 管理新增引用统计、未使用提示、「使用全部」模式下排除指定技能,以及自动生成子 Agent 能力描述。
5+
1. 新增 Agenda 触发记录:记录每个触发器的历次触发,后台可查看触发历史,并设置保留上限。
6+
2. 重做 Agenda 管理页面:拆分出独立的触发器编辑弹窗与触发字段编辑,管理更清晰。
7+
3. 新增资源引用情况显示:在 Agent、Memory、Note、Wiki、Saver、渠道等配置中查看被哪些对象引用,并提示未使用项。
8+
4. 后台日志支持下载。
9+
5. 工具调用支持并行执行,提升多工具场景下的响应速度。
10+
6. 新增 `disableWorkspaceMcp` 配置,可关闭工作区 MCP。
1111

1212
### 优化
1313

14-
1. 优化渠道发送 / 列表工具提示词,让 AI 能先按名称查找联系人或群聊,再发送消息或文件。
15-
2. 优化 Lark 消息历史读取,返回发送者名称,并改进分页说明。
16-
3. 优化生成文件的交付链接,保存到工作目录多级子目录的文件也能正确生成下载地址。
17-
4. 简化 Agenda 概念,将原来的分类 / 完成方式组合改为更清晰的「逐次打卡」开关。
18-
5. 精简发布与辅助工具链,移除旧 helper 包流程,并将小爱凭据获取说明切换到 sbox。
14+
1. 简化 Agenda 概念:移除 occurrence,改用更直观的触发记录;自动提取阶段不再自动完成或取消事项,事项的终结完全交由用户在对话内工具决定。
15+
2. 渠道改为统一的插件化加载,新增 `sbot.plugin` 配置字段包,配置项支持条件显示(showWhen)与多行文本(Textarea)输入。
1916

2017
### 修复
2118

22-
1. 修复 Agenda 触发器启动和重载时的竞态问题,避免调度丢失或重复触发。
23-
2. 修复多触发器事项过早完成的问题,现在会等所有启用触发器都耗尽后才自动完成。
24-
3. 修复 Agenda 投递目标和渠道会话元数据保存问题,提升重启后提醒与主动消息投递的稳定性。
25-
4. 修复 Windows 下执行命令或清理进程时可能弹出控制台窗口的问题。
26-
5. 修复内置命令结果在聊天中被当成普通 AI 回复的问题。
27-
6. 修复嵌入式客户端在无法直接打开浏览器链接或 WebSocket 时的文件下载与终端连接问题。
19+
1. 修复 Saver 资源引用统计不准确的问题。
20+
2. 修复 Agenda 存储与触发调度的若干问题。

‎packages/sbot/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qingfeng346/sbot",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Self-hosted AI agent server. Open-source alternative to OpenAI, Claude, and Gemini interfaces. Run LLM agents locally with MCP tool support, memory, multi-channel integrations (Lark/Feishu), and a built-in web UI.",
55
"releasenoteEn": "This release includes the following main changes:\n\n### Added\n\n1. Added `sbot update`, which updates sbot to the latest version and stops the running service first when needed.\n2. Added more built-in chat commands, including `/status`, `/workpath`, `/agent`, `/saver`, `/note`, `/wiki`, `/memory`, `/agenda`, `/autoapprove`, `/tokens`, `/version`, and `/history`.\n3. Added richer Agenda trigger controls: fire a trigger manually, delete a trigger, choose the delivery session per trigger, and mark routines as per-fire check-ins.\n4. Added DingTalk file sending, plus session recovery from saved metadata so proactive messages can still be delivered after a restart.\n5. Added ReAct sub-task tracking with task listing, resumable task state, optional parent-context injection, and nested-depth protection.\n6. Added Agent management helpers for reference counts, unused-Agent hints, skill exclusions in \"use all\" mode, and generated sub-agent capability descriptions.\n\n### Improved\n\n1. Improved channel send/list guidance so the AI can look up a person or group by name before sending messages or files.\n2. Improved Lark message history with sender names and clearer pagination instructions.\n3. Improved generated-file delivery links so files saved in nested working-directory paths can be shared correctly.\n4. Simplified Agenda concepts by replacing category/completion-mode combinations with a clearer check-in switch.\n5. Slimmed down release tooling by removing the old helper package flow and pointing XiaoAI credential setup to sbox.\n\n### Fixed\n\n1. Fixed Agenda trigger startup and reload races that could drop schedules or cause duplicate firing.\n2. Fixed multi-trigger Agenda items being marked done too early; an item now completes only after all active triggers are exhausted.\n3. Fixed Agenda delivery target storage and channel session metadata, improving reminder and proactive-message delivery after restarts.\n4. Fixed Windows command execution and process cleanup sometimes opening a console window.\n5. Fixed built-in command results being treated as ordinary AI replies in chat.\n6. Fixed embedded-client file downloads and terminal connections in environments where direct browser links or sockets are unavailable.",
66
"releasenoteZh": "本次主要更新如下:\n\n### 新增\n\n1. 新增 `sbot update` 命令,可更新到最新版本;如果服务正在运行,会先停止服务再升级。\n2. 聊天内新增更多内置命令,包括 `/status`、`/workpath`、`/agent`、`/saver`、`/note`、`/wiki`、`/memory`、`/agenda`、`/autoapprove`、`/tokens`、`/version`、`/history`。\n3. Agenda 触发器新增更完整的管理能力:手动触发、删除触发器、为单个触发器选择投递会话,以及逐次打卡模式。\n4. 钉钉渠道新增文件发送,并支持从已保存的会话信息恢复投递目标,重启后也能继续主动发送。\n5. ReAct 多 Agent 新增子任务追踪:可查看任务列表、续接任务状态、按需注入主对话上下文,并限制过深嵌套。\n6. Agent 管理新增引用统计、未使用提示、「使用全部」模式下排除指定技能,以及自动生成子 Agent 能力描述。\n\n### 优化\n\n1. 优化渠道发送 / 列表工具提示词,让 AI 能先按名称查找联系人或群聊,再发送消息或文件。\n2. 优化 Lark 消息历史读取,返回发送者名称,并改进分页说明。\n3. 优化生成文件的交付链接,保存到工作目录多级子目录的文件也能正确生成下载地址。\n4. 简化 Agenda 概念,将原来的分类 / 完成方式组合改为更清晰的「逐次打卡」开关。\n5. 精简发布与辅助工具链,移除旧 helper 包流程,并将小爱凭据获取说明切换到 sbox。\n\n### 修复\n\n1. 修复 Agenda 触发器启动和重载时的竞态问题,避免调度丢失或重复触发。\n2. 修复多触发器事项过早完成的问题,现在会等所有启用触发器都耗尽后才自动完成。\n3. 修复 Agenda 投递目标和渠道会话元数据保存问题,提升重启后提醒与主动消息投递的稳定性。\n4. 修复 Windows 下执行命令或清理进程时可能弹出控制台窗口的问题。\n5. 修复内置命令结果在聊天中被当成普通 AI 回复的问题。\n6. 修复嵌入式客户端在无法直接打开浏览器链接或 WebSocket 时的文件下载与终端连接问题。",

‎scripts/release.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ const TARGETS = {
1818
zh: 'packages/sbot/ReleaseNote.zh.md',
1919
},
2020
},
21+
cli: {
22+
tagPrefix: 'cli-v',
23+
pkgJson: 'packages/cli/package.json',
24+
},
2125
};
2226

2327
const SEMVER_RE = /^\d+\.\d+\.\d+$/;
@@ -192,7 +196,7 @@ function main() {
192196
run('git push');
193197
run(`git push origin "${tag}"`);
194198

195-
const workflowName = { app: 'Release App', sbot: 'Release sbot' }[target] || `Release ${target}`;
199+
const workflowName = { app: 'Release App', sbot: 'Release sbot', cli: 'Release CLI' }[target] || `Release ${target}`;
196200
console.log('');
197201
console.log(`✓ pushed tag ${tag} — workflow "${workflowName}" triggered`);
198202
}

0 commit comments

Comments
 (0)