Skip to content

Commit 3cfdc43

Browse files
author
linyuan.yang
committed
统一发布工作流
1 parent 8c03c7c commit 3cfdc43

10 files changed

Lines changed: 26 additions & 110 deletions

File tree

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
permissions:
99
contents: write
1010

11+
concurrency:
12+
group: release-app-${{ github.ref }}
13+
cancel-in-progress: false
14+
1115
jobs:
1216
check:
1317
runs-on: ubuntu-latest
@@ -44,11 +48,9 @@ jobs:
4448
project-path: packages/app
4549
cargo-lock-path: packages/app/src-tauri/Cargo.lock
4650
cargo-target-path: packages/app/src-tauri/target
47-
cache-key-prefix: cargo-app
4851
tag-name: ${{ needs.check.outputs.tag }}
4952
release-name: app v${{ needs.check.outputs.version }}
5053
release-body: ${{ needs.check.outputs.notes }}
51-
asset-prefix: sbot-client
5254
secrets: inherit
5355

5456
release-android:
@@ -59,7 +61,6 @@ jobs:
5961
project-path: packages/app
6062
cargo-lock-path: packages/app/src-tauri/Cargo.lock
6163
cargo-target-path: packages/app/src-tauri/target
62-
cache-key-prefix: android-cargo-app
6364
tag-name: ${{ needs.check.outputs.tag }}
6465
version: ${{ needs.check.outputs.version }}
6566
asset-prefix: sbot-client
@@ -74,7 +75,6 @@ jobs:
7475
project-path: packages/app
7576
cargo-lock-path: packages/app/src-tauri/Cargo.lock
7677
cargo-target-path: packages/app/src-tauri/target
77-
cache-key-prefix: ios-cargo-app
7878
tag-name: ${{ needs.check.outputs.tag }}
7979
version: ${{ needs.check.outputs.version }}
8080
asset-prefix: sbot-client
@@ -89,14 +89,7 @@ jobs:
8989
steps:
9090
- uses: actions/checkout@v5
9191

92-
- uses: pnpm/action-setup@v6
93-
with:
94-
version: 10.33.0
95-
96-
- uses: actions/setup-node@v5
97-
with:
98-
node-version: 24
99-
cache: pnpm
92+
- uses: while-coder/workflows/.github/actions/setup-pnpm@main
10093

10194
- run: pnpm install --frozen-lockfile
10295

@@ -132,6 +125,7 @@ jobs:
132125
uses: while-coder/workflows/.github/workflows/tauri-updater-manifest.yml@main
133126
with:
134127
product-prefix: sbot-client
128+
source-product-name: SBot
135129
tag-name: ${{ needs.check.outputs.tag }}
136130
version: ${{ needs.check.outputs.version }}
137131
release-notes: ${{ needs.check.outputs.notes }}

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

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ on:
88
permissions:
99
contents: write
1010

11+
concurrency:
12+
group: release-cli-${{ github.ref }}
13+
cancel-in-progress: false
14+
1115
jobs:
1216
release-cli:
1317
runs-on: ubuntu-latest
1418
steps:
15-
- uses: actions/checkout@v4
16-
17-
- uses: pnpm/action-setup@v4
18-
with:
19-
version: 10.33.0
19+
- uses: actions/checkout@v5
2020

21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: pnpm
25-
registry-url: 'https://registry.npmjs.org'
21+
- uses: while-coder/workflows/.github/actions/setup-pnpm@main
2622

2723
- run: pnpm install --frozen-lockfile
2824

@@ -79,20 +75,12 @@ jobs:
7975
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8076
run: pnpm --filter sbot-cli publish --no-git-checks
8177

82-
- name: Delete existing GitHub Release
78+
- name: Recreate GitHub Release
8379
if: github.event_name == 'push'
8480
uses: while-coder/workflows/.github/actions/recreate-github-release@main
8581
with:
8682
github-token: ${{ secrets.GITHUB_TOKEN }}
8783
tag: ${{ github.ref_name }}
88-
create: 'false'
89-
90-
- name: Create GitHub Release
91-
if: github.event_name == 'push'
92-
uses: softprops/action-gh-release@v2
93-
with:
94-
tag_name: ${{ github.ref_name }}
95-
name: 'sbot-cli v${{ steps.version.outputs.version }}'
96-
body: ${{ steps.notes.outputs.body }}
97-
draft: true
98-
prerelease: false
84+
title: sbot-cli v${{ steps.version.outputs.version }}
85+
notes: ${{ steps.notes.outputs.body }}
86+
draft: 'true'

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

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ on:
88
permissions:
99
contents: write
1010

11+
concurrency:
12+
group: release-sbot-${{ github.ref }}
13+
cancel-in-progress: false
14+
1115
jobs:
1216
release-sbot:
1317
runs-on: ubuntu-latest
1418
steps:
15-
- uses: actions/checkout@v4
16-
17-
- uses: pnpm/action-setup@v4
18-
with:
19-
version: 10.33.0
19+
- uses: actions/checkout@v5
2020

21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: pnpm
25-
registry-url: 'https://registry.npmjs.org'
21+
- uses: while-coder/workflows/.github/actions/setup-pnpm@main
2622

2723
- run: pnpm install --frozen-lockfile
2824

@@ -78,20 +74,11 @@ jobs:
7874
# - name: Push Docker image
7975
# run: node packages/sbot/scripts/docker.js publish
8076

81-
- name: Delete existing GitHub Release
77+
- name: Recreate GitHub Release
8278
if: github.event_name == 'push'
8379
uses: while-coder/workflows/.github/actions/recreate-github-release@main
8480
with:
8581
github-token: ${{ secrets.GITHUB_TOKEN }}
8682
tag: ${{ github.ref_name }}
87-
create: 'false'
88-
89-
- name: Create GitHub Release
90-
if: github.event_name == 'push'
91-
uses: softprops/action-gh-release@v2
92-
with:
93-
tag_name: ${{ github.ref_name }}
94-
name: 'sbot v${{ steps.version.outputs.version }}'
95-
body: ${{ steps.notes.outputs.body }}
96-
draft: false
97-
prerelease: false
83+
title: sbot v${{ steps.version.outputs.version }}
84+
notes: ${{ steps.notes.outputs.body }}

‎packages/docs-site/guide/features.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- **Heartbeat** — Configurable periodic self-activation lets agents run scheduled prompts proactively across any channel
1515
- **MCP tools** — Standard MCP protocol (stdio/HTTP/SSE), connect to any MCP tool ecosystem; per-agent and global servers with auto-restart
1616
- **Multiple channels** — Web UI, CLI, Lark/Feishu, Slack, WeCom, WeChat, DingTalk, QQ (official bot), OneBot (QQ), XiaoAI, REST API, WebSocket
17-
- **Built-in tools** — Shell execution, file system, archive operations, media file read, Python/PowerShell inline execution, web fetch/download, sleep, session search, and cross-channel messaging
17+
- **Built-in tools** — Shell execution, file system, archive operations, media file read, Python/PowerShell inline execution, web fetch/download, session search, and cross-channel messaging
1818
- **Built-in MCP presets** — Playwright, Markitdown, and Exa can be enabled from the MCP tool list alongside custom MCP servers
1919
- **Skills** — Installable prompt modules with remote install from Clawhub, skills.sh, and skillhub.cn
2020
- **Agent Store** — Browse and install pre-packaged agents (model + prompt + tools + skills + MCP servers) from configurable sources

‎packages/docs-site/guide/tools.md‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ These tools are available as built-in providers without installing external pack
2929
- Fetch URLs and convert HTML to clean Markdown
3030
- Download files from the web
3131

32-
## Sleep
33-
34-
- Pause execution for a bounded number of seconds
35-
- Useful when an agent needs to wait for an external process, file, or service
36-
3732
## Session Search
3833

3934
- Search previous conversation history when the active Saver supports archive search

‎packages/docs-site/zh/guide/tools.md‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
- 抓取网页 URL 并转换为干净的 Markdown
3030
- 从网络下载文件
3131

32-
## 等待(Sleep)
33-
34-
- 在限定秒数内暂停执行
35-
- 适合等待外部进程、文件生成或服务状态变化
36-
3732
## 会话搜索
3833

3934
- 当当前 Saver 支持历史归档检索时,搜索过往对话

‎packages/sbot/prompts/tools/sleep/sleep.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎packages/sbot/src/Agent/GlobalAgentToolService.ts‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ export enum BuiltinProvider {
66
FileSystem = 'builtin_filesystem',
77
WebFetch = 'builtin_webfetch',
88
Archive = 'builtin_archive',
9-
Sleep = 'builtin_sleep',
109

1110
SessionSearch = 'builtin_session_search',
1211
Channel = 'builtin_channel',
1312

14-
Playwright = 'builtin_playwright',
15-
Markitdown = 'builtin_markitdown',
1613
Exa = 'builtin_exa',
1714
}
1815

@@ -35,10 +32,6 @@ export function initGlobalAgentToolService() {
3532
const { createArchiveTools } = await import("../Tools/Archive/index.js");
3633
return createArchiveTools();
3734
}, 'ZIP 压缩/解压');
38-
globalAgentToolService.registerToolFactory(BuiltinProvider.Sleep, async (_params) => {
39-
const { createSleepTool } = await import("../Tools/Sleep/index.js");
40-
return [createSleepTool()];
41-
}, '等待/暂停执行');
4235
globalAgentToolService.registerToolFactory(BuiltinProvider.SessionSearch, async (_params) => {
4336
const { createSessionSearchTool } = await import("../Tools/SessionSearch/index.js");
4437
return [createSessionSearchTool(null)];
@@ -50,17 +43,6 @@ export function initGlobalAgentToolService() {
5043
return createChannelTools();
5144
}, '查询/发消息/发文件 跨 channel 会话');
5245
globalAgentToolService.registerMcpServers({
53-
[BuiltinProvider.Playwright]: {
54-
"command": "npx",
55-
"args": ["@playwright/mcp@latest"],
56-
"description": "Playwright 浏览器自动化",
57-
},
58-
[BuiltinProvider.Markitdown]: {
59-
"type": "stdio",
60-
"command": "uvx",
61-
"args": ["markitdown-mcp@0.0.1a4"],
62-
"description": "文档转 Markdown",
63-
},
6446
[BuiltinProvider.Exa]: {
6547
"type": "http",
6648
"url": "https://mcp.exa.ai/mcp",
@@ -81,6 +63,5 @@ export function refreshBuiltinTools() {
8163
BuiltinProvider.FileSystem,
8264
BuiltinProvider.WebFetch,
8365
BuiltinProvider.Archive,
84-
BuiltinProvider.Sleep,
8566
);
8667
}

‎packages/sbot/src/Processing/buildExecuteTool.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { ChatToolCall, ToolApproval, DISPATCH_TASK_TOOL_NAME, READ_SKILL_FILE_TOOL_NAME, EXECUTE_SKILL_SCRIPT_TOOL_NAME, LIST_SKILL_FILES_TOOL_NAME, NOTE_SEARCH_TOOL_NAME, WIKI_SEARCH_TOOL_NAME, WIKI_READ_TOOL_NAME, AGENDA_CREATE_TOOL_NAME, AGENDA_LIST_TOOL_NAME, AGENDA_UPDATE_TOOL_NAME, AGENDA_COMPLETE_TOOL_NAME, AGENDA_CANCEL_TOOL_NAME } from "scorpio.ai";
22
import { SessionService, ASK_TOOL_NAME, SEND_FILE_TOOL_NAME } from "channel.base";
3-
import { SLEEP_TOOL_NAME } from "../Tools/Sleep";
43
import { config } from "../Core/Config";
54

65
/** 内部工具名,直接放行无需用户确认 */
@@ -19,8 +18,6 @@ const INTERNAL_TOOLS = new Set([
1918
AGENDA_UPDATE_TOOL_NAME,
2019
AGENDA_COMPLETE_TOOL_NAME,
2120
AGENDA_CANCEL_TOOL_NAME,
22-
// Sleep 工具
23-
SLEEP_TOOL_NAME,
2421
// Note 工具
2522
NOTE_SEARCH_TOOL_NAME,
2623
// Wiki 工具

‎packages/sbot/src/Tools/Sleep/index.ts‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)