Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ds-bot-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
- name: Check managed private histories with the native DSH host
working-directory: .
run: node --test runtime/flybot-image/test/native-open-parts.test.mjs
# Upstream's annotation test owns its mock clock. The restart fixture's
# cleanup waits for pending writes before removing its temporary directory.
# Upstream's annotation test owns its mock clock. The restart and dedup
# fixtures stop their runtimes before removing their temporary directories.
# Every assertion and vendor byte stays intact; source hashes fail closed.
- name: Full pinned upstream suite with checked fixture lifecycle
run: NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--import=$(realpath ../../../scripts/upstream-test-clock.mjs)" npm test -- --test-concurrency=1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ui-screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
working-directory: ${{ runner.temp }}
run: |
set -eu
mkdir -p ot-playwright
cd ot-playwright
mkdir -p flybot-playwright
cd flybot-playwright
npm init -y >/dev/null
npm install playwright@1.56.1
npx playwright install chromium --with-deps
- name: Exercise the native FlyBot pages in Chromium
run: |
set -eu
# Playwright is resolved next to the browser runner script.
ln -sfn "$RUNNER_TEMP/ot-playwright/node_modules" "$GITHUB_WORKSPACE/node_modules"
ln -sfn "$RUNNER_TEMP/flybot-playwright/node_modules" "$GITHUB_WORKSPACE/node_modules"
node --import ./services/bot-social/node_modules/tsx/dist/loader.mjs \
scripts/ci-native-ui-screenshots.mjs "$GITHUB_WORKSPACE/ui-screenshots"
- name: Upload screenshots
Expand Down
88 changes: 74 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,83 @@
<div align="center">

<img src="docs/media/overview.webp" width="940" alt="FlyBot on desktop and mobile, showing an agent reply with a release checklist and a flowchart">

# FlyBot

FlyBot is a self-hosted workspace for chat, AI agents, and team collaboration. Each account runs its own DS-Bot container. The gateway handles authentication and routes requests to the right account. Bot Social coordinates shared groups and public workspace content.
**A self-hosted workspace for AI agents, conversations, and teamwork.**

[Quick start](#quick-start) · [Deployment](#deployment) · [Architecture](#architecture) · [Documentation](#documentation)

- Chat with your personal agent or bring people and agents into a group. Stream replies, tables, and flowcharts into the conversation.
- Save results to the workspace library and use its versions, sharing, and memory features.
- Keep track of meetings, action items, and scheduled automations.
- Explore public agents and works, manage skills, and organize team membership.
[![FlyBot CI](https://github.com/ThinkFlowLab/FlyBot/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/ThinkFlowLab/FlyBot/actions/workflows/tests.yml)

## Get started
</div>

| Task | Instructions |
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 cover shows a sample conversation captured in Chromium on desktop and mobile.

## Capabilities

| Area | What FlyBot supports |
| --- | --- |
| Start the local browser preview | [Quick start](docs/GETTING_STARTED.md) |
| Run one container per account | [Compose manager](docs/COMPOSE_MANAGER.md) and [Bot Social setup](deploy/isolated/BOT_SOCIAL_DEPLOY.md) |
| Work on the management and runtime APIs | [Architecture](docs/ARCHITECTURE.md), [Management API](docs/MANAGEMENT_API.md), and [DS-Bot plugin contract](docs/DSBOT_PLUGIN_ARCHITECTURE.md) |
| Reproduce a workflow | [Acceptance records](docs/ACCEPTANCE.md) |
| **Chat and agents** | Personal agents, groups with people and AI agents, streaming replies, Markdown, tables, and flowcharts. |
| **Workspace library** | Save agent outputs, manage versions and sharing, and retrieve context from workspace memory. |
| **Automations and meetings** | Schedule recurring jobs, review their results, and turn meeting notes into action items. |
| **Discovery and administration** | Browse published agents and works, install skills, and manage workspace membership and permissions. |

## Quick start

Run the local management preview with Git and Python 3.11 or later.

```sh
git clone https://github.com/ThinkFlowLab/FlyBot.git
cd FlyBot

preview_data="$(mktemp -d)"
preview_data="$(cd "$preview_data" && pwd -P)"

python3 -m flybot_workspace.server \
--data-dir "$preview_data" \
--origin http://127.0.0.1:8787 \
--port 8787 \
--insecure-local \
--open-registration
```

Open [http://127.0.0.1:8787/login](http://127.0.0.1:8787/login) and register a test account. The preview uses a temporary local database. Follow the deployment guide to connect a model and try shared groups.

## Deployment

A full installation uses Docker Engine, Compose v2, and BuildKit on a Linux host. The deployment guides cover building the pinned runtime image, provisioning one container per account, configuring the shared Bot Social service, and setting a default model API for newly provisioned accounts. [Compose manager](docs/COMPOSE_MANAGER.md) · [Bot Social and gateway](deploy/isolated/BOT_SOCIAL_DEPLOY.md)

## Architecture

The management gateway authenticates requests and routes them to the account's DS-Bot container. Each account reuses its container across workspaces and keeps runtime state on a dedicated volume. Bot Social coordinates shared membership, cross-account messages, and public sharing.

```mermaid
flowchart LR
Browser["Desktop and mobile browsers"] --> Gateway["Management service and gateway"]
Gateway --> A["Account A · DS-Bot<br/>FlyBot Workspace + Bot Social"]
Gateway --> B["Account B · DS-Bot<br/>FlyBot Workspace + Bot Social"]
A --- VA[("Account A data volume")]
B --- VB[("Account B data volume")]
A --> Social["Shared Bot Social service"]
B --> Social
```

The runtime is pinned to **DS-Bot v0.3.10**. [Runtime pin](runtime/ds-bot-upstream.pin.json) · [Service and data boundaries](docs/ARCHITECTURE.md)

## Documentation

| Topic | Reference |
| --- | --- |
| Setup and development | [Getting started](docs/GETTING_STARTED.md) |
| APIs and plugins | [Management API](docs/MANAGEMENT_API.md) · [DS-Bot plugin contract](docs/DSBOT_PLUGIN_ARCHITECTURE.md) |
| Verification | [Acceptance records](docs/ACCEPTANCE.md) · [FlyBot CI](https://github.com/ThinkFlowLab/FlyBot/actions/workflows/tests.yml) |
| Project direction | [Roadmap](docs/ROADMAP.md) |

## Contributing

Choose **English** under **Settings → Language → System language** for English settings and core chat controls. The chat reply language is configured separately.
Include reproduction steps and verification results in your pull request. CI runs the management, browser, pinned runtime, container isolation, and Bot Social suites on pull requests and in the merge queue. [Open a pull request](https://github.com/ThinkFlowLab/FlyBot/pulls)

## Runtime and licenses
## Licensing

This workspace is derived from [OpenTeamily at `07e8b6fbd`](https://github.com/openTeamily/openTeamily/tree/07e8b6fbd). Its container recipe pins [DS-Bot v0.3.10](runtime/ds-bot-upstream.pin.json) and installs the Workspace and Bot Social extensions. See the [license inventory](docs/LICENSING.md), [original NOTICE](NOTICE), and [Bot Social rebrand manifest](docs/upstream/flybot-workspace-overlay.json) for component boundaries and attribution.
The workspace derives from OpenTeamily at `07e8b6fbd` and is distributed under the MIT License. Imported DS-Bot and FlyBot runtime source, Bot Social, and third-party components retain their respective licenses and notices. [MIT License](LICENSE) · [NOTICE](NOTICE) · [Licensing inventory](docs/LICENSING.md) · [Source revision](https://github.com/openTeamily/openTeamily/tree/07e8b6fbd)
10 changes: 8 additions & 2 deletions docs/ACCEPTANCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Evidence and acceptance status

Record release verification and product comparison separately. The linked prior runs cover the OpenTeamily source build and environment named in each run. FlyBot Workspace requires its own release verification. A Teamily comparison requires the same operation in both products with equivalent roles and relevant settings.
Record each result against the tested revision, user role, and environment.

## FlyBot 0.3.0

All 16 jobs passed in the [FlyBot release candidate CI run](https://github.com/ThinkFlowLab/FlyBot/actions/runs/45523580750) for [PR #3377](https://github.com/ThinkFlowLab/FlyBot/pull/3377). The run covered the management API, desktop and mobile Chromium, the pinned DS-Bot suite, Compose lifecycle and retained volumes, gateway isolation, and collaboration between two DS-Bot accounts through Bot Social. The [merge queue run](https://github.com/ThinkFlowLab/FlyBot/actions/runs/45526147080) passed at the squash commit.

The two sections below preserve verification history from the OpenTeamily source repository.

## Verified DS-Bot v0.3.10 upgrade

Expand All @@ -14,7 +20,7 @@ The [DS-Bot conversation upgrade job](https://github.com/openTeamily/openTeamily

The [runtime image checks](https://github.com/openTeamily/openTeamily/actions/runs/45196194354) also passed on the same PR head. They cover the Compose lifecycle and retained volume, owner-specific gateway routing and two DS-Bots sharing state through Bot Social. The upgrade uses a deterministic local model and disposable accounts. It covers runtime migration and browser behavior on the test volumes. An operator rollout and a Teamily comparison each require their own evidence.

Reproduce the upgrade check with the [workflow](../.github/workflows/ds-bot-conversation-upgrade.yml) and [test runner](../runtime/flybot-image/test/upgrade/check.py). See [Compose manager](COMPOSE_MANAGER.md) for deployment and existing-volume boundaries.
The [source workflow](https://github.com/openTeamily/openTeamily/blob/07e8b6fbd05788e1c4c14cac65f18e392e82f452/.github/workflows/ds-bot-conversation-upgrade.yml) records the original test inputs. See the [test runner](../runtime/flybot-image/test/upgrade/check.py) and [Compose manager](COMPOSE_MANAGER.md) for the runner and deployment details.

## Memory and navigation release

Expand Down
17 changes: 3 additions & 14 deletions docs/BOT_SOCIAL.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Bot Social collaboration endpoint

Related: [#1](https://github.com/openTeamily/openTeamily/issues/1).

The management server records only a validated Bot Social **server URL** and an optional display name. A self-host operator sets a platform default; a workspace owner or admin may optionally override it. The workspace override wins when it has a server. Connector tokens are issued later by onboarding on the instance volume and are never accepted, stored or returned by management. This is an FlyBot wiring choice, not a Teamily parity claim.
The FlyBot management server records a validated Bot Social **server URL** and an optional display name. The operator sets a platform default that a workspace owner or admin can override. Each DS-Bot instance obtains its connector token during onboarding and stores it on the account's volume.

## Routes

Expand All @@ -21,18 +19,9 @@ The compose manager fetches the already-resolved URL over a lease-gated loopback

Existing frozen `compose-*.json` files written before this second bind was added will fail the exact-content check (`manifest_changed`) until the operator recreates the instance.

## Not in this slice

No live call to a third-party Bot Social, no connector-token storage, no settings UI, no Teamily comparison. Unit tests use in-process WSGI and a temporary SQLite store only. Compose-manager tests use the filesystem Docker stub, not a Docker engine. CI image smoke against an in-container fake server is a separate path and is not management-plane proof. This box has no Docker engine.

## Phase C: cross-user FlyBot features through Bot Social
## Cross-user FlyBot features

Per `docs/DSBOT_PLUGIN_ARCHITECTURE.md`, features that involve more than one user run between users' own
DS-Bots through Bot Social. `services/bot-social/src/flybot-workspace/` adds `/v1/ot/*` routes (FlyBot-authored,
recorded in `docs/upstream/migration-manifest.json` as additions to the snapshot). Every route takes the
FlyBot home **connector token** (or an owner login) — the same identity `@flybot/social` saves at onboarding —
so each DS-Bot acts only as its own owner. Bot Social stores only shared state; private data stays on the
user's volume.
Cross-user features run between users' own DS-Bots through Bot Social. The [source overlay manifest](upstream/flybot-workspace-overlay.json) records the shared-state routes added to the Bot Social snapshot. Private routes authenticate the FlyBot home connector token or an owner login. Each DS-Bot acts with its owner's identity, and the account's private data stays on its volume.

| Area | Routes | DS-Bot plugin feature |
|---|---|---|
Expand Down
6 changes: 1 addition & 5 deletions docs/COMPOSE_MANAGER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

The manager runs the isolated DS-Bot containers and reports verified state back to the platform. The web service handles account sessions and provisioning. A separate, operator-managed process executes the Docker work over an authenticated loopback connection. Execution and automatic account provisioning are opt-in.

The v0.3.10 build passed real Docker/Compose lifecycle, volume retention, gateway
routing and two-account Bot Social tests. Chromium verified private-chat history
on two separate account volumes before upgrade, after upgrade and after restart.
[Runtime image checks](https://github.com/openTeamily/openTeamily/actions/runs/45196194354)
and [upgrade acceptance](ACCEPTANCE.md#verified-ds-bot-v0310-upgrade) record the evidence.
[FlyBot 0.3.0 CI](https://github.com/ThinkFlowLab/FlyBot/actions/runs/45523580750) verified Docker Compose lifecycle, volume retention, gateway isolation, and two-account Bot Social collaboration. The [DS-Bot v0.3.10 upgrade record](ACCEPTANCE.md#verified-ds-bot-v0310-upgrade) also documents Chromium verification of private chat history on two separate account volumes before upgrade, after upgrade, and after restart.

## Scope and prerequisites

Expand Down
11 changes: 6 additions & 5 deletions docs/GUIDE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Feature guide
# FlyBot feature guide

`/guide` is FlyBot's own searchable feature directory. The page layout follows the recorded Teamily feature-guide chrome: heading「功能指引」, search placeholder「搜索功能,例如:添加成员」, a list/graph toggle, a left category list with counts, a grouped item list, and an item dialog with an operation path.
Open **功能指引** to search for an operation or browse categories such as chat,
agents, automation, memory, and settings. Each result explains the feature and
shows the steps to reach it. The graph view is currently unavailable.

This is not a copy of Teamily's 295 feature texts. The catalog only describes entries that already exist in this repository, plus honest labels for unfinished pieces such as the memory profile body. Category names follow the recorded navigation (including an empty「通话窗口」group). The graph toggle is visible but disabled, because the recapture only has the list view.

The page is served as a same-origin management asset. It does not add a new API, does not invent a settings-hub or account-menu entry (those entry points were not recaptured), and must not be treated as Teamily or Impeccable acceptance.
The guide supports links with a search term (`/guide?q=<keyword>`), a category
(`/guide?category=<id>`), or both. The catalog and search run in the browser.
12 changes: 6 additions & 6 deletions docs/LICENSING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ relicense imported upstream trees.

| Tree | License | Binding files | Copyright / notice |
| --- | --- | --- | --- |
| New FlyBot code and docs (`flybot-workspace/`, `manager/`, `tests/`, `docs/` except copied upstream docs, `scripts/` authored here, `runtime/flybot-social-host/`, `runtime/flybot-web-slots/`, `runtime/flybot-image/`) | MIT | [`LICENSE`](../LICENSE) | FlyBot contributors |
| `runtime/flybot/` (except `ORIGIN.md` and `FLYBOT_WORKSPACE.md`) | Apache License 2.0 | [`runtime/flybot/LICENSE`](../runtime/flybot/LICENSE), [`runtime/flybot/NOTICE`](../runtime/flybot/NOTICE) | NOTICE: DS Bot, Copyright 2026 Fei2411 and the DS Bot contributors |
| `services/bot-social/` (except `ORIGIN.md` and `FLYBOT_WORKSPACE.md`) | MIT | [`services/bot-social/LICENSE`](../services/bot-social/LICENSE) | Copyright (c) 2026 Birfy |
| New FlyBot code and docs (`flybot_workspace/`, `manager/`, `tests/`, `docs/` except copied upstream docs, `scripts/` authored here, `runtime/flybot-social-host/`, `runtime/flybot-web-slots/`, `runtime/flybot-image/`) | MIT | [`LICENSE`](../LICENSE) | FlyBot contributors |
| `runtime/flybot/` (except `ORIGIN.md` and `OPENTEAMILY.md`) | Apache License 2.0 | [`runtime/flybot/LICENSE`](../runtime/flybot/LICENSE), [`runtime/flybot/NOTICE`](../runtime/flybot/NOTICE) | NOTICE: DS Bot, Copyright 2026 Fei2411 and the DS Bot contributors |
| `services/bot-social/` (except `ORIGIN.md` and `OPENTEAMILY.md`) | MIT | [`services/bot-social/LICENSE`](../services/bot-social/LICENSE) | Copyright (c) 2026 Birfy |
| `runtime/ds-bot-upstream/` (except `UPSTREAM.md`) | Apache License 2.0 | [`runtime/ds-bot-upstream/LICENSE`](../runtime/ds-bot-upstream/LICENSE), [`runtime/ds-bot-upstream/NOTICE`](../runtime/ds-bot-upstream/NOTICE) | Unmodified pinned copy of [Fei2411/DS-Bot](https://github.com/Fei2411/DS-Bot) v0.3.10 (`d104d9ca18d69a35460f14e15dff4d553181433a`); LICENSE and NOTICE retained |

`ORIGIN.md` and `FLYBOT_WORKSPACE.md` files inside imported FlyBot and Bot Social
trees, and `UPSTREAM.md` inside `runtime/ds-bot-upstream/`, are FlyBot
documentation overlays and follow the root MIT license. They do not change the
`ORIGIN.md` and `OPENTEAMILY.md` files inside imported FlyBot and Bot Social
trees, and `UPSTREAM.md` inside `runtime/ds-bot-upstream/`, are documentation overlays from the original
OpenTeamily integration and follow the root MIT license. They do not change the
license of neighboring upstream files.

If you redistribute this repository, include the Apache-2.0 text and NOTICE
Expand Down
Loading
Loading