Skip to content
Open
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
31 changes: 31 additions & 0 deletions .changeset/brave-think-framework.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
"@cloudflare/think": minor
"agents": patch
"@cloudflare/worker-bundler": patch
---

Introduce the first Think framework layer for convention-driven agent apps.

This release adds a manifest-driven Vite plugin that discovers agents from the
`agents/` directory, generates a Worker entrypoint and virtual framework
modules, derives stable Durable Object class names, and merges framework-owned
Worker config defaults with user Wrangler config. It also keeps the Think Vite
plugin usable directly in normal Vite plugin arrays.

The framework now supports optional app server entries, manifest-scoped friendly
agent and sub-agent routing, deterministic route surfaces, colocated skill
detection, Worker Loader requirement diagnostics, and explicit diagnostics for
unsupported nested sub-agent conventions. Think currently supports top-level
agents and one sub-agent layer; deeper nesting is rejected with guidance so that
the routing and lifecycle model can be designed deliberately.

The Think CLI now includes `think init`, `think inspect`, and `think types`.
`think init` scaffolds a minimal Workers/Vite Think app, safely handles prompted
or named target directories, refuses unsafe migrations, and installs npm
dependencies by default. `think inspect` exposes manifest/config diagnostics in
text or JSON, while `think types` generates Think-owned declarations and can
optionally compose with Wrangler type generation.

This release also adds host-framework coverage for React Router and TanStack
Start, updates examples to use the convention-first framework shape, and hardens
Agents/worker-bundler virtual modules for bundled skill compatibility.
9 changes: 9 additions & 0 deletions .changeset/quiet-shell-workspace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@cloudflare/shell": patch
---

Make workspace parent directory creation safe under concurrent writes. When two
writes create files in the same missing directory at the same time, the
filesystem now creates the implicit parent idempotently without surfacing a
SQLite primary-key constraint error, while still emitting a single directory
create event.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ dist
.DS_Store

.astro
.react-router
examples/think-react-router/build
# Vitest browser test screenshots
__screenshots__

Expand Down
7 changes: 6 additions & 1 deletion .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"trailingComma": "none",
"printWidth": 80,
"experimentalSortPackageJson": false,
"ignorePatterns": ["packages/agents/CHANGELOG.md", "site/agents/.astro"]
"ignorePatterns": [
"packages/agents/CHANGELOG.md",
"site/agents/.astro",
"**/routeTree.gen.ts",
"**/think.d.ts"
]
}
2 changes: 1 addition & 1 deletion .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
}
]
},
"ignorePatterns": ["**/env.d.ts"]
"ignorePatterns": ["**/env.d.ts", "**/routeTree.gen.ts"]
}
Loading
Loading