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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
with:
bun-version-file: .bun-version
- run: bun install --frozen-lockfile
# Type-aware lint needs the site's packages and generated route tree.
# Type-aware lint also checks the independently installed docs and site.
- run: bun install --frozen-lockfile
working-directory: apps/docs
# The site needs its generated route tree before lint.
- run: bun install --frozen-lockfile
working-directory: apps/site
- run: bun --bun run build
Expand Down
87 changes: 0 additions & 87 deletions .oxlintrc.json

This file was deleted.

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

## Unreleased

- Replace custom lint rules and vendored plugins with `@cloudflare/oxlint-config`.
- The web client validates JSON API responses against their route schemas and rejects malformed responses instead of trusting unchecked types.

- The `event_payload` tool reports a page of text as `encoding: "utf8"` instead of `"utf-8"`. Binary pages stay `"base64"`, and the page's fields are otherwise unchanged. Only the tool's answer changes; no HTTP endpoint or stored record carries the value.

- Breaking: remove group chats from the server, web client, and API. Upgrading permanently deletes group histories, group pins, queued group notifications, and files used only by groups. Member bots, direct chats, memories, skills, and bot-library files remain. Back up the complete data directory before upgrading; recovering removed groups requires restoring that backup with the previous server version.

- Remove Fallow from development dependencies, Git hooks, and CI. Lint, formatting, type checks, tests, and documentation checks remain in place.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ cd apps/site && bun install && bun run build
- **Terminology:** follow [`GLOSSARY.md`](GLOSSARY.md). When a word in the docs or UI and a word in the code disagree, the glossary wins.
- **Effect:** server code uses [Effect](https://effect.website). Read [`AGENTS.md`](AGENTS.md) and `apps/server/node_modules/effect/AGENTS.md` before you write Effect services or layers.
- **Web UI components:** add shadcn components with `bun run ui:add`, as described in [`AGENTS.md`](AGENTS.md).
- **Formatting and lint:** `bun run fix` formats with `bun fmt` and applies `oxlint` fixes.
- **Formatting and lint:** `bun run fix` formats with `bun fmt` and applies `oxlint` fixes. Lint uses [`@cloudflare/oxlint-config`](https://github.com/cloudflare/oxlint-config) in `oxlint.config.ts`, without custom rules or plugins.
- **Test speed:** the unit test suite in CI must finish in two minutes or less.
- **Documentation:** when a change alters behavior, settings, endpoints, or UI labels described in the docs, update the matching page in [`apps/docs/content/`](apps/docs/content) in the same pull request and run `bun run check` in `apps/docs`.

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/concepts/event-automations.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ automation's prompt as your request, never the event.

Bodies longer than 32 KiB are cut, and bodies that aren't UTF-8 text are left
out. In both cases the bot reads the rest with its `event_payload` tool, a page
at a time.
at a time. Text pages report `encoding: "utf8"`; binary pages report `encoding: "base64"`.

A script automation gets the event in a file instead. These environment
variables are set for its command:
Expand Down
4 changes: 4 additions & 0 deletions apps/docs/content/contributing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ bun run openapi:generate
`bun run openapi:check` fails if the generated files are out of date, and
`bun run check` runs it for you.

The web client validates JSON responses against the route schema for the returned HTTP status.
Pass the route name to `api`, `call`, or `bodyOf`, such as `api("listAgents", "/v1/agents")`.
Mock responses in UI tests must match the schema and status, including required fields and UUID formats.

## Chat attention API

Chat attention belongs to the authenticated account, independently of push
Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/activity/activity-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export function registerActivityRoutes(options: {
const input = c.req.valid("query");
const cursor = input.cursor ? decodeCursor(input.cursor) : null;

if (input.cursor && !cursor)
if (input.cursor && !cursor) {
return yield* Effect.fail(
new InvalidInput({ message: "Invalid cursor" }),
);
}

const agentRepo = yield* AgentRepository;
const conversations = yield* ConversationRepository;
Expand Down
Loading