diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 000000000..6ba9860b1 --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,87 @@ +name: Publish FlyBot release +on: + workflow_run: + workflows: [FlyBot CI] + types: [completed] + branches: [main] + +permissions: {} +concurrency: + group: flybot-release-${{ github.repository }} + cancel-in-progress: false + +jobs: + publish: + if: >- + github.repository == 'ThinkFlowLab/FlyBot' && + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' && + github.event.workflow_run.head_branch == 'main' && + github.event.workflow_run.head_repository.full_name == github.repository + runs-on: ubuntu-24.04 + timeout-minutes: 5 + permissions: + contents: write + steps: + - name: Publish the tested version with committed release notes + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + TESTED_SHA: ${{ github.event.workflow_run.head_sha }} + shell: bash + run: | + [[ "$TESTED_SHA" =~ ^[0-9a-f]{40}$ ]] + version=$(gh api "repos/$GH_REPO/contents/VERSION?ref=$TESTED_SHA" -H 'Accept: application/vnd.github.raw+json') + if [[ ! "$version" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then + echo "::error::VERSION must be a stable semantic version." + exit 1 + fi + tag="v$version" + + work=$(mktemp -d) + trap 'rm -rf "$work"' EXIT + if ! gh api "repos/$GH_REPO/contents/docs/releases/$tag.md?ref=$TESTED_SHA" \ + -H 'Accept: application/vnd.github.raw+json' >"$work/notes.md" 2>"$work/error"; then + if grep -Fq '(HTTP 404)' "$work/error"; then + echo "No release notes for $tag at $TESTED_SHA." + exit 0 + fi + cat "$work/error" >&2 + exit 1 + fi + test -s "$work/notes.md" + + release=$(gh api --paginate "repos/$GH_REPO/releases?per_page=100" --jq ".[] | select(.tag_name == \"$tag\") | .draft") + if [[ "$release" == false ]]; then + echo "$tag is already published." + exit 0 + fi + if [[ -n "$release" ]]; then + echo "::error::A release for $tag already exists and is not published." + exit 1 + fi + + main_sha=$(gh api "repos/$GH_REPO/git/ref/heads/main" --jq .object.sha) + if [[ "$main_sha" != "$TESTED_SHA" ]]; then + echo "main advanced during CI. Its current commit will publish after its own successful run." + exit 0 + fi + + tag_ref="refs/tags/$tag" + existing_tag=$(gh api "repos/$GH_REPO/git/matching-refs/tags/$tag" --jq ".[] | select(.ref == \"$tag_ref\") | .ref") + if [[ -z "$existing_tag" ]]; then + gh api --method POST "repos/$GH_REPO/git/refs" -f "ref=$tag_ref" -f "sha=$TESTED_SHA" --silent + fi + tag_object=$(gh api "repos/$GH_REPO/git/ref/tags/$tag" --jq '.object | [.type, .sha] | @tsv') + read -r tag_type tagged_sha <<< "$tag_object" + if [[ "$tag_type" == tag ]]; then + tagged_sha=$(gh api "repos/$GH_REPO/git/tags/$tagged_sha" --jq '.object | select(.type == "commit") | .sha') + elif [[ "$tag_type" != commit ]]; then + echo "::error::$tag does not reference a commit." + exit 1 + fi + if [[ "$tagged_sha" != "$TESTED_SHA" ]]; then + echo "::error::$tag points to $tagged_sha instead of the tested commit $TESTED_SHA." + exit 1 + fi + gh release create "$tag" --repo "$GH_REPO" --verify-tag --title "FlyBot $tag" --notes-file "$work/notes.md" diff --git a/README.md b/README.md index c9987e831..af002959f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ - FlyBot feature preview showing streamed chat, shared groups, saved work, meeting actions, and automations + FlyBot preview showing a release question and a streamed checklist @@ -11,7 +11,7 @@ **A self-hosted workspace for AI agents, conversations, and teamwork.** -[**Download the feature demo** · 42 seconds, MP4](docs/media/flybot-feature-demo.mp4?raw=1) +[**Download the feature demo** · 1 min 16 sec, MP4](docs/media/flybot-feature-demo.mp4?raw=1) [Quick start](#quick-start) · [Deployment](#deployment) · [Architecture](#architecture) · [Documentation](#documentation) @@ -19,7 +19,7 @@ -FlyBot gives each account a private DS-Bot runtime for its agents, conversations, skills, and memory. People and agents can collaborate in shared groups through Bot Social. The demo uses a sample workspace captured in Chromium on desktop and mobile. +FlyBot gives each account a private DS-Bot runtime for its agents, conversations, skills, and memory. People and agents can collaborate in shared groups through Bot Social. The narrated demo follows a sample team from its release checklist to a shared conversation, saved work, and recurring follow-up. It uses real Chromium captures and includes English and Simplified Chinese captions. ## Capabilities diff --git a/docs/inventory/visible-controls.json b/docs/inventory/visible-controls.json index 544b161f2..488d65e57 100644 --- a/docs/inventory/visible-controls.json +++ b/docs/inventory/visible-controls.json @@ -220,9 +220,14 @@ }, "controls": [ {"source": "flybot_workspace/static/about/index.html", "line": 16, "tag": "a", "id": null, "name": null, "href": "#main", "type": null, "label": " 跳到主要内容", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, - {"source": "flybot_workspace/static/about/index.html", "line": 20, "tag": "a", "id": null, "name": null, "href": "/settings", "type": null, "label": "返回 ‹", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, - {"source": "flybot_workspace/static/about/index.html", "line": 21, "tag": "a", "id": null, "name": null, "href": "/chat", "type": null, "label": "FlyBot FlyBot ", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, - {"source": "flybot_workspace/static/about/index.html", "line": 48, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot", "type": null, "label": " github.com/ThinkFlowLab/FlyBot", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 23, "tag": "a", "id": null, "name": null, "href": "/settings", "type": null, "label": "返回设置 ‹ 设置", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 24, "tag": "a", "id": null, "name": null, "href": "/chat", "type": null, "label": " FlyBot", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 81, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot/releases/tag/v0.3.0", "type": null, "label": " v0.3.0", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 41, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot#readme", "type": null, "label": " 观看特性演示", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 42, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot/releases/tag/v0.3.0", "type": null, "label": " 查看版本说明", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 67, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot/blob/main/docs/GETTING_STARTED.md", "type": null, "label": " 自托管指南", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 71, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot", "type": null, "label": " 源代码", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, + {"source": "flybot_workspace/static/about/index.html", "line": 72, "tag": "a", "id": null, "name": null, "href": "https://github.com/ThinkFlowLab/FlyBot/issues", "type": null, "label": " 问题反馈", "initially_disabled": false, "data": {}, "execution_profile": "about", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, {"source": "flybot_workspace/static/agents/index.html", "line": 19, "tag": "a", "id": null, "name": null, "href": "#main", "type": null, "label": " 跳到主要内容", "initially_disabled": false, "data": {}, "execution_profile": "agents", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, {"source": "flybot_workspace/static/agents/index.html", "line": 23, "tag": "a", "id": null, "name": null, "href": "/", "type": null, "label": "FlyBot", "initially_disabled": false, "data": {}, "execution_profile": "agents", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, {"source": "flybot_workspace/static/agents/index.html", "line": 27, "tag": "a", "id": null, "name": null, "href": "/", "type": null, "label": "首页 首页", "initially_disabled": false, "data": {}, "execution_profile": "agents", "verification": "unverified individual control/state; route-level evidence is not universal acceptance"}, diff --git a/docs/media/flybot-feature-demo.mp4 b/docs/media/flybot-feature-demo.mp4 index 293b6cc43..b51a6a6e4 100644 Binary files a/docs/media/flybot-feature-demo.mp4 and b/docs/media/flybot-feature-demo.mp4 differ diff --git a/docs/media/flybot-feature-demo.webp b/docs/media/flybot-feature-demo.webp index a799fc8b2..0f243eda6 100644 Binary files a/docs/media/flybot-feature-demo.webp and b/docs/media/flybot-feature-demo.webp differ diff --git a/docs/releases/v0.3.0.md b/docs/releases/v0.3.0.md new file mode 100644 index 000000000..7e2e8804f --- /dev/null +++ b/docs/releases/v0.3.0.md @@ -0,0 +1,18 @@ +FlyBot 0.3.0 introduces a self-hosted workspace for people and AI agents. Each account runs its own DS-Bot container, and Bot Social connects people and agents in shared conversations. + +## Highlights + +- **Personal and group chat.** Work with a personal agent, share a room with teammates and other agents, and read streaming replies with Markdown, tables, and flowcharts. +- **Workspace library.** Save agent outputs, manage versions and sharing, and bring workspace context back into conversations. +- **Meetings and automations.** Capture meeting action items, assign follow-up work, and schedule recurring checks. +- **Account isolation.** The gateway routes each signed-in account to its dedicated runtime and data volume. Operators can set a default model API for new accounts. +- **Updated workspace.** The refreshed FlyBot brand, responsive interface, and About page introduce the product and link to the feature demo. + +## Get started + +- [Watch the feature demo in the README](https://github.com/ThinkFlowLab/FlyBot/tree/v0.3.0#readme) +- [Run the local preview](https://github.com/ThinkFlowLab/FlyBot/blob/v0.3.0/docs/GETTING_STARTED.md) +- [Deploy with Docker Compose](https://github.com/ThinkFlowLab/FlyBot/blob/v0.3.0/docs/COMPOSE_MANAGER.md) +- [Configure Bot Social and the gateway](https://github.com/ThinkFlowLab/FlyBot/blob/v0.3.0/deploy/isolated/BOT_SOCIAL_DEPLOY.md) + +The runtime pins [DS-Bot v0.3.10](https://github.com/ThinkFlowLab/FlyBot/blob/v0.3.0/runtime/ds-bot-upstream.pin.json). FlyBot CI verifies the pinned runtime, the workspace interface in Chromium, per-account container isolation, and shared Bot Social flows. See the [licensing inventory](https://github.com/ThinkFlowLab/FlyBot/blob/v0.3.0/docs/LICENSING.md) for source attribution and component licenses. diff --git a/flybot_workspace/static/about/app.css b/flybot_workspace/static/about/app.css index d292fb801..2f6bba14b 100644 --- a/flybot_workspace/static/about/app.css +++ b/flybot_workspace/static/about/app.css @@ -1,72 +1,225 @@ -html, body.about-page { - margin: 0; - min-height: 100%; - background: #ffffff; - color: #1f2a24; - font: 16px/1.6 system-ui, sans-serif; +.about-page { + background-color: var(--ot-bg); + background-image: var(--ot-canvas-wash); } -body.about-page > main { background: #ffffff; max-width: none; margin: 0; padding: 0; } + .about-bar { - display: flex; align-items: center; gap: 0.35rem; - padding: 0.65rem 1rem; border-bottom: 1px solid #e6ebe7; - position: sticky; top: 0; background: #ffffff; z-index: 2; -} -.about-icon { - display: inline-flex; align-items: center; justify-content: center; - width: 2rem; height: 2rem; border-radius: 999px; color: #1f2a24; - text-decoration: none; font-size: 1.15rem; -} -.about-icon:hover { background: #eef2ef; } -.about-main { padding: 2.5rem 1.25rem 4rem; } -.about-article { max-width: 42rem; margin: 0 auto; } -.about-article h1 { - margin: 0 0 0.85rem; font-size: 1.85rem; font-weight: 700; line-height: 1.3; - color: #1f2a24; -} -.about-lead { font-size: 1rem; line-height: 1.65; color: #5c6b64; } -.about-cover { - display: grid; place-items: center; margin: 1.5rem 0 0.75rem; - min-height: 14rem; border-radius: 1.1rem; - background: linear-gradient(160deg, #2a5644, #1a3328 50%, #101c16); - color: #ffffff; font-size: 1.15rem; font-weight: 650; -} -.about-cover p { margin: 0; color: #ffffff; } -.about-caption { margin: 0 0 1.75rem; text-align: center; font-size: 0.8rem; color: #5c6b64; font-style: italic; } -.about-article h2 { margin: 1.75rem 0 0.6rem; font-size: 1.25rem; } -.about-article p { line-height: 1.7; } -.about-article a { color: #097845; } - -body.about-page a, -body.about-page a:hover, -body.about-page a:visited { color: #097845; } -.about-icon, -.about-icon:hover, -.about-icon:visited, -.about-icon:focus { color: #1f2a24 !important; } -.about-icon:hover { background: #eef2ef; } - -.about-wordmark { - display: inline-flex; align-items: center; gap: 0.5rem; - margin-left: 0.25rem; text-decoration: none; color: #1f2a24 !important; -} -.about-wordmark:hover, .about-wordmark:visited { color: #1f2a24 !important; } -.about-mark { - display: inline-flex; align-items: center; justify-content: center; - width: 1.75rem; height: 1.75rem; + position: sticky; + top: 0; + z-index: 2; + display: block; + padding: 0; + border-bottom: 1px solid var(--ot-line); + background: var(--ot-glass); + backdrop-filter: blur(12px); } -.about-mark .brand-glyph { display: block; width: 100%; height: 100%; } -.brand-wordmark-text { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.03em; } -.about-cover { - display: flex; flex-direction: column; align-items: center; justify-content: center; + +.about-bar-inner { + display: flex; + align-items: center; gap: 0.75rem; + max-width: 65rem; + margin-inline: auto; + padding: 0.55rem clamp(1rem, 4vw, 2rem); +} + +.about-bar a { + display: inline-flex; + align-items: center; + gap: 0.4rem; + min-height: 2.5rem; + padding-inline: 0.45rem; + color: var(--ot-ink); + text-decoration: none; + border-radius: var(--ot-radius-sm); +} + +.about-bar a:hover { + color: var(--ot-accent-hover); + background: var(--ot-accent-soft); +} + +.about-back { font-size: 0.9rem; } +.about-wordmark { font-weight: 700; } + +body.about-page > .about-main { + display: grid; + gap: clamp(1.9rem, 5vw, 3.2rem); + box-sizing: border-box; + width: min(100%, 65rem); + max-width: none; + margin: 0 auto; + padding: clamp(1rem, 5vw, 2.7rem) clamp(1rem, 4vw, 2rem) 2rem; + color: var(--ot-ink); + background: transparent; + border: 0; + border-radius: 0; + box-shadow: none; +} + +.about-hero { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: clamp(1.25rem, 5vw, 4.25rem); + padding: clamp(1.3rem, 5vw, 3.5rem); + border-radius: var(--ot-radius-xl); + color: #fff; + background: radial-gradient(ellipse at 90% 18%, #7558c4 0%, transparent 60%), + linear-gradient(135deg, #1c1931 12%, #312450 66%, #452e72 100%); + box-shadow: var(--ot-shadow); +} + +.about-version { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 0.55rem; + margin-bottom: 0.9rem; + font-size: 0.9rem; + font-weight: 650; +} + +.about-version a { + padding: 0.12rem 0.55rem; + border: 1px solid rgb(255 255 255 / .32); + border-radius: 999px; + color: #fff; + text-decoration: none; +} + +.about-version a:hover, +.about-release:hover { + color: #fff; + background: rgb(255 255 255 / .13); +} + +.about-hero h1 { + margin: 0; + color: #fff; + font-size: clamp(1.7rem, 4.5vw, 3.1rem); + line-height: 1.16; + letter-spacing: -0.045em; + text-wrap: balance; +} + +.about-hero p { + max-width: 31rem; + margin: 0.85rem 0 1.35rem; + color: #eee5ff; + line-height: 1.7; } -.about-cover .about-mark { - width: 3.25rem; height: 3.25rem; + +.about-actions { + display: flex; + flex-wrap: wrap; + gap: 0.55rem; } -.about-cover p { font-size: 1.25rem; letter-spacing: -0.03em; } -/* The about article pins light colours; keep the skip link legible too - (it otherwise inherits the dark-scheme accent behind the green link text). */ -body.about-page a.skip-link, -body.about-page a.skip-link:hover, -body.about-page a.skip-link:focus-visible { background: #097845; color: #ffffff; } +.about-actions a { + display: inline-flex; + align-items: center; + justify-content: center; + min-height: 2.75rem; + padding: 0.45rem 0.95rem; + border: 1px solid rgb(255 255 255 / .35); + border-radius: var(--ot-radius); + font-weight: 650; + font-size: 0.925rem; + text-decoration: none; +} + +.about-actions .about-demo { color: #322254; background: #f5efff; } +.about-actions .about-demo:hover { color: #322254; background: #fff; } +.about-actions .about-release { color: #fff; } + +.about-hero a:focus-visible { + outline: 2px solid #fff; + outline-offset: 3px; +} + +.about-mark { + width: clamp(5rem, 14vw, 9rem); + height: auto; + justify-self: center; + filter: drop-shadow(0 14px 24px rgb(15 9 28 / .32)); +} + +.about-section h2 { + margin: 0 0 0.85rem; + font-size: clamp(1.25rem, 2.6vw, 1.65rem); + line-height: 1.25; + letter-spacing: -0.025em; +} + +.about-features { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 0.85rem; + padding: 0; + margin: 0; + list-style: none; +} + +.about-features li, +.about-runtime { + padding: clamp(1rem, 2.8vw, 1.55rem); + border: 1px solid var(--ot-line); + border-radius: var(--ot-radius-lg); + background: var(--ot-surface); + box-shadow: var(--ot-card-shadow); +} + +.about-features h3 { margin: 0 0 0.45rem; font-size: 1.02rem; } + +.about-features p, +.about-runtime p { + max-width: 45rem; + margin: 0; + color: var(--ot-muted); + line-height: 1.65; +} + +.about-runtime { + display: flex; + justify-content: space-between; + align-items: center; + gap: 0.85rem 1.4rem; +} + +.about-runtime h2 { margin-bottom: 0.5rem; } + +.about-runtime > a, +.about-footer a { + flex: none; + font-weight: 650; + text-underline-offset: 0.16em; +} + +.about-footer { + display: flex; + flex-wrap: wrap; + gap: 0.45rem 1.25rem; + padding-top: 1rem; + border-top: 1px solid var(--ot-line); + font-size: 0.9rem; +} + +@media (max-width: 42rem) { + .about-hero { + grid-template-columns: minmax(0, 1fr); + } + + .about-mark { + grid-row: 1; + justify-self: start; + width: 4.5rem; + } + + .about-features { grid-template-columns: minmax(0, 1fr); } + + .about-runtime { + flex-direction: column; + align-items: flex-start; + } +} diff --git a/flybot_workspace/static/about/index.html b/flybot_workspace/static/about/index.html index be351a142..3f60e2958 100644 --- a/flybot_workspace/static/about/index.html +++ b/flybot_workspace/static/about/index.html @@ -13,26 +13,58 @@
- ‹ - - - FlyBot - +
+ ‹ 设置 + + + FlyBot + +
-
-

FlyBot:可自托管的人机协作工作区

-

FlyBot 是一个开源、可自托管的管理面,把聊天、智能体、记忆和作品放在你自己的服务器上。智能体运行在 FlyBot 容器里,模型接口默认使用平台管理员的配置,也可以换成你自己的。

-
+ + + +
+

从对话到交付

+ +
+ +
+
+

独立运行,共享协作

+

每个账号使用独立的 DS-Bot 容器,Bot Social 负责共享会话与协作。管理员可以集中配置默认模型接口,账号也可使用自己的配置。

+
+ 自托管指南 +
+ +