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
93 changes: 0 additions & 93 deletions .fallowrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ bun run agents:check
bun run lint
bun run format:check
bun run typecheck
bunx fallow audit --base HEAD
2 changes: 0 additions & 2 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ base=$(git rev-parse origin/main)

bun run check

bunx fallow audit --base "$base"

changed=$(git diff --name-only "$base" HEAD)
if printf '%s\n' "$changed" | grep -q '^apps/docs/'; then
(cd apps/docs && bun install --frozen-lockfile && bun --bun run check && bun --bun run build)
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/fallow.yml

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Remove Fallow from development dependencies, Git hooks, and CI. Lint, formatting, type checks, tests, and documentation checks remain in place.
- Add `bun run dev:emulate` for credential-free local bot chat with scripted replies, streaming, tool calls, errors, and cancellation. Run emulator-backed verification separately with the local-only `bun run check:emulate` command.
- Bot avatars show what their bot is doing, using `open-bot-avatar` 0.3.0: three hopping dots while it thinks, bent over the work while it writes, searches, remembers, or uses tools, an exclamation mark while it retries, a short celebration when a reply finishes, and waiting in a group chat while it answers next. Live avatars ease from one state to the next instead of restarting. The `/avatars` page previews every state. Paused bots and disabled automations no longer show a dimmed, still avatar.
- **Settings** > **Providers** has a **Usage** tab: tokens and cost for each model across all of the account's bots, grouped by provider, and for tools that call a model of their own, with totals. `GET /v1/usage` returns the same figures. Job panes now include tool costs, such as intent checks, in their cost.
- When a bot's model can't read images and no vision model is set, the web chat warns as soon as an image is attached and links to the bot's profile and the vision model setting. The server refuses such a message before recording a turn, so the error shows once, names the bot, and the message goes back to the composer. `GET /v1/models` returns `images` for each model.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ The `commit-msg` hook checks each commit, and the PR title workflow checks pull

`bun install` configures Git to use [`.githooks/`](.githooks). Skip a hook once with `--no-verify`.

- **`pre-commit`:** checks the Bun version, runs `agents:check`, `lint`, `format:check`, and `typecheck` on the whole tree, and runs `fallow audit` on changes since `HEAD`.
- **`pre-commit`:** checks the Bun version, runs `agents:check`, `lint`, `format:check`, and `typecheck` on the whole tree.
- **`commit-msg`:** rejects a commit whose subject isn't a Conventional Commit. Merge, revert, `fixup!`, `squash!`, and `amend!` commits that Git writes are allowed.
- **`pre-push`:** refuses the push if the working tree has uncommitted or untracked files, or if the pushed branch isn't checked out. It then runs the full PR suite against `origin/main`: `bun install --frozen-lockfile`, `bun run check`, `fallow audit`, and `apps/docs` / `apps/site` builds when those directories changed.
- **`pre-push`:** refuses the push if the working tree has uncommitted or untracked files, or if the pushed branch isn't checked out. It then runs the full PR suite against `origin/main`: `bun install --frozen-lockfile`, `bun run check`, and `apps/docs` / `apps/site` builds when those directories changed.

## Database migrations

Expand Down
55 changes: 50 additions & 5 deletions apps/docs/content/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,51 @@ Server code uses [Effect](https://effect.website). Read `AGENTS.md`
before changing it. [Architecture](/contributing/architecture) shows how the
pieces fit.

## Run credential-free local development

Use Bun 1.4.4 and Node.js 24 or later. From the `bot` root:

1. Start Crumble and Emulate:

```bash
bun run dev:emulate
```

2. Open `http://127.0.0.1:7338`.
3. Sign up through the normal local account flow, or sign in to an existing account in this profile.
4. Create a bot with the preconfigured **Emulate (local)** provider and one of the scenario models.
5. Send the bot a message.

Emulate returns scripted responses through Pi's real HTTP transport, without provider keys or model inference.
The model picker offers only these local scenarios:

| Model | Behavior |
| -------------- | --------------------------------------------------------------------------------------- |
| `local-reply` | Returns a fixed reply. |
| `local-stream` | Streams a fixed reply incrementally. |
| `local-tool` | Calls the actual `history_search` tool, receives its result, and returns a final reply. |
| `local-error` | Returns a provider error with HTTP status `400`. |
| `local-stall` | Stalls the stream for 30 seconds. As the owner, select **Stop** to cancel it. |

Account and chat data persist in `.cache/emulate/data` between runs. This directory is not automatically reset.
The profile never opens the ordinary `data` directory or imports its saved provider credentials.
Emulator state resets on restart. Press `Ctrl+C` to close Crumble and the emulator services owned by the command.

If Emulate is unavailable or a request does not match a scenario, the operation fails visibly.
Fallback to a live model provider is forbidden.

This profile does not provide workspaces or emulate GitHub, Google Workspace, push notifications, payments, or other services.
It is not a full network sandbox: integrations you enable manually can make external requests.

Run emulator-backed verification separately:

```bash
bun run check:emulate
```

This command is local-only. It does not run in CI, default tests, or `bun run check`.
Existing `fauxProvider` tests are retained. Normal `bun run dev` and `bun run start` behavior is unchanged.

## Running the Checks

From the `bot` root:
Expand All @@ -48,11 +93,11 @@ bun run ui:add COMPONENT # add a shadcn/ui component to apps/web
hooks require the Bun version in `.bun-version`, which CI also uses. Skip them once with
`--no-verify`:

| Hook | Runs |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Commit | Generates and stages OpenAPI artifacts from staged sources, then runs the steering-file path check, lint, format check, and typecheck on the whole tree, and `fallow audit` on the changes since the last commit. |
| Commit message | Rejects a commit subject that isn't a Conventional Commit, such as `feat(web): add bot avatars`. Pull request titles get the same check in CI. |
| Push | Runs the PR checks against the pushed commit and a freshly fetched `origin/main` (`bun install --frozen-lockfile`, `bun run check`, contract validation and compatibility, `fallow audit`, and `apps/docs` / `apps/site` when changed). Refuses dirty trees or un-checked-out branches. |
| Hook | Runs |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Commit | Generates and stages OpenAPI artifacts from staged sources, then runs the steering-file path check, lint, format check, and typecheck on the whole tree. |
| Commit message | Rejects a commit subject that isn't a Conventional Commit, such as `feat(web): add bot avatars`. Pull request titles get the same check in CI. |
| Push | Runs the PR checks against the pushed commit and a freshly fetched `origin/main` (`bun install --frozen-lockfile`, `bun run check`, contract validation and compatibility, and `apps/docs` / `apps/site` when changed). Refuses dirty trees or un-checked-out branches. |

Unit test jobs in CI must finish in two minutes or less.

Expand Down
Loading