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
5 changes: 5 additions & 0 deletions .changeset/admin-contrast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/cms-ui-react': patch
---

Raise muted admin text to WCAG AA contrast. The command palette button now takes its accessible name from its visible label, shows the Ctrl/⌘+K hint as a tooltip and exposes it with `aria-keyshortcuts`.
5 changes: 5 additions & 0 deletions .changeset/interface-refresh-busy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/cms-ui-react': patch
---

Live interface pages mark themselves busy as soon as a collection event queues a refresh, rather than after the 100 ms batching delay, so "Refresh data" and component controls stay disabled until the refresh lands.
11 changes: 11 additions & 0 deletions .changeset/non-major-deps-peers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@tanstack/cms-core': patch
'@tanstack/cms-api': patch
'@tanstack/cms-client': patch
'@tanstack/cms-ui-react': patch
'@tanstack/search-ai': patch
---

Require `@tanstack/ai` 0.71 or later, whose non-streaming `chat()` resolves to `{ text, chunks }` instead of a string. Agent chat, interface generation and `fromTextAdapter` in `@tanstack/search-ai` now read the reply from `text`. Raise the `@tanstack/ai-code-mode`, `@tanstack/ai-isolate-quickjs` and `@tanstack/ai-mcp` peer ranges to the versions the packages are tested against.

`@tanstack/cms-client` now expects `@tanstack/db` 0.15.2, `@tanstack/query-db-collection` 1.4.8 and `@tanstack/query-core` 5.105 or later.
4 changes: 2 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Fix formatting
run: pnpm format
- name: Apply fixes
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
POSTGRES_TEST_URL: postgres://cms_test:cms_test@localhost:5432/cms_test
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Run Coverage
# Keep the args after `--` identical to both runs in pr.yml. Nx puts
# forwarded args in the task hash, so any difference is a cache miss.
Expand All @@ -55,11 +55,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
# 10k and 100k documents; fails when a p95 exceeds its budget in bench/store.ts.
- name: Run benchmarks
run: pnpm --filter @tanstack/cms-core bench --check
24 changes: 12 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
POSTGRES_TEST_URL: postgres://cms_test:cms_test@localhost:5432/cms_test
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
with:
Expand Down Expand Up @@ -68,12 +68,12 @@ jobs:
POSTGRES_TEST_URL: postgres://cms_test:cms_test@localhost:5432/cms_test
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
with:
Expand Down Expand Up @@ -144,11 +144,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Install Chromium
run: pnpm --filter blog exec playwright install --with-deps --only-shell chromium
- name: Run E2E against the blog example
Expand All @@ -171,11 +171,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
# Build on the repo's Node, then run the tests on the oldest supported
# one: `node:sqlite` and the default store are what 22.13 gates.
- name: Build
Expand All @@ -198,11 +198,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Install the packed tarballs into a fresh app
run: pnpm run test:pack
preview:
Expand All @@ -215,11 +215,11 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Build Packages
run: pnpm run build:all
- name: Publish Previews
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Run Tests
run: pnpm run test:ci
- name: Install the packed tarballs into a fresh app
Expand All @@ -44,24 +44,24 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: true
- name: Setup Tools
uses: TanStack/config/.github/setup@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/setup@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
- name: Build packages
run: pnpm exec nx run-many --targets=build --exclude=examples/** --skip-nx-cache
- name: Run Changesets (version or publish)
id: changesets
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
version: pnpm run changeset:version
publish: pnpm run changeset:publish
commit: 'ci: Version Packages'
title: 'ci: Version Packages'
- name: Comment on PRs about release
if: steps.changesets.outputs.published == 'true'
uses: TanStack/config/.github/comment-on-release@190f659075ff0845850e330883eb26d7ffd0671f # main
uses: TanStack/config/.github/comment-on-release@0e4c94811ee024520b2ea330855f2d38549a7d92 # main
with:
published-packages: ${{ steps.changesets.outputs.publishedPackages }}
4 changes: 2 additions & 2 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
with:
advanced-security: false
annotations: true
2 changes: 1 addition & 1 deletion DESIGN-assets-as-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ write becomes a **transactional document commit** instead of a bare `putMedia`:
1. **Data migration** (new SQLite migration + Postgres): for each `media` row,
insert an `asset` document (`collection='asset'`, `id=media.id`,
`doc={ kind, blobKey: key, filename, mime, sizeBytes, width, height, alt,
caption, credit, description, tags }`). Bytes untouched. Keep the `media`
caption, credit, description, tags }`). Bytes untouched. Keep the `media`
table readable during a dual-read transition, then drop it in a later major.
2. **`image` field compatibility**: `image` fields keep storing/serving the
`/api/media/<id>` string and keep working (the id resolves to an asset doc).
Expand Down
38 changes: 19 additions & 19 deletions app/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,42 @@
"test:review": "node scripts/review-e2e.mjs"
},
"dependencies": {
"@jitl/quickjs-wasmfile-debug-asyncify": "^0.31.0",
"@jitl/quickjs-wasmfile-debug-sync": "^0.31.0",
"@jitl/quickjs-wasmfile-release-asyncify": "^0.31.0",
"@jitl/quickjs-wasmfile-release-sync": "^0.31.0",
"@tanstack/ai": "^0.64.1",
"@tanstack/ai-anthropic": "^0.19.4",
"@tanstack/ai-code-mode": "0.4.20",
"@tanstack/ai-isolate-quickjs": "0.3.1",
"@tanstack/ai-openai": "0.26.0",
"@jitl/quickjs-wasmfile-debug-asyncify": "^0.32.0",
"@jitl/quickjs-wasmfile-debug-sync": "^0.32.0",
"@jitl/quickjs-wasmfile-release-asyncify": "^0.32.0",
"@jitl/quickjs-wasmfile-release-sync": "^0.32.0",
"@tanstack/ai": "^0.71.0",
"@tanstack/ai-anthropic": "^0.23.0",
"@tanstack/ai-code-mode": "0.5.5",
"@tanstack/ai-isolate-quickjs": "0.3.2",
"@tanstack/ai-openai": "0.31.0",
"@tanstack/cms-api": "workspace:*",
"@tanstack/cms-client": "workspace:*",
"@tanstack/cms-core": "workspace:*",
"@tanstack/cms-migrate-wp": "workspace:*",
"@tanstack/cms-skills": "workspace:*",
"@tanstack/cms-ui-react": "workspace:*",
"@tanstack/db": "0.12.3",
"@tanstack/db": "0.15.2",
"@tanstack/onboarding-core": "workspace:*",
"@tanstack/query-core": "^5.90.2",
"@tanstack/query-db-collection": "1.4.2",
"@tanstack/react-db": "0.5.7",
"@tanstack/query-core": "^5.105.0",
"@tanstack/query-db-collection": "1.4.8",
"@tanstack/react-db": "0.5.12",
"@tanstack/react-onboarding": "workspace:*",
"@tanstack/react-router": "^1.158.4",
"@tanstack/react-start": "^1.159.0",
"@tanstack/react-router": "^1.170.46",
"@tanstack/react-start": "^1.169.4",
"@tanstack/react-store": "^0.11.2",
"@tanstack/search-cms": "workspace:*",
"nitro": "3.0.260610-beta",
"quickjs-emscripten": "^0.31.0",
"quickjs-emscripten-core": "^0.31.0",
"quickjs-emscripten": "^0.32.0",
"quickjs-emscripten-core": "^0.32.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"zod": "^4.2.0"
"zod": "^4.6.7"
},
"devDependencies": {
"@playwright/test": "^1.64.0",
"@playwright/test": "^1.64.1",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/virtual-file-routes": "^1.162.0",
"@types/node": "^24.10.1",
Expand Down
10 changes: 5 additions & 5 deletions app/base/tests/chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('customer chat tools', () => {
await options.tools!.find(
(tool) => tool.name === 'baseProposeCollection',
)!.execute!({ definition, expectedVersion: 0, expectedDraftVersion: 0 })
return 'Review this collection proposal.'
return { text: 'Review this collection proposal.', chunks: [] }
})
const proposed = (await call('agentChat', {
messages: [{ role: 'user', content: 'Create recipes.' }],
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('customer chat tools', () => {
expect(options.systemPrompts?.join('\n')).toContain('ingredients:array')
await options.tools!.find((tool) => tool.name === 'create_document')!
.execute!({ collection: 'recipes', id: 'cake', doc })
return 'Review this recipe.'
return { text: 'Review this recipe.', chunks: [] }
})
const staged = (await call('agentChat', {
messages: [{ role: 'user', content: 'Add cake.' }],
Expand Down Expand Up @@ -190,7 +190,7 @@ describe('customer chat tools', () => {
collection: 'recipes',
where: { title: { contains: 'Ca' } },
})
return 'One cake recipe.'
return { text: 'One cake recipe.', chunks: [] }
})
const queried = (await call('agentChat', {
messages: [{ role: 'user', content: 'Find cake.' }],
Expand All @@ -214,7 +214,7 @@ describe('customer chat tools', () => {
expect(
options.tools!.some((tool) => tool.name === 'baseListSchemas'),
).toBe(false)
return 'I can work with existing collections.'
return { text: 'I can work with existing collections.', chunks: [] }
})
await call(
'agentChat',
Expand All @@ -233,7 +233,7 @@ describe('customer chat tools', () => {
await options.tools!.find(
(tool) => tool.name === 'baseProposeCollection',
)!.execute!({ definition, expectedVersion: 99, expectedDraftVersion: 0 })
return 'The collection changed; reload first.'
return { text: 'The collection changed; reload first.', chunks: [] }
})
const failed = (await call('agentChat', {
messages: [{ role: 'user', content: 'Create recipes.' }],
Expand Down
26 changes: 13 additions & 13 deletions app/prm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@
},
"dependencies": {
"@mcp-b/transports": "^5.1.0",
"@modelcontextprotocol/sdk": "^1.32.0",
"@tanstack/ai": "^0.64.1",
"@tanstack/ai-anthropic": "^0.19.4",
"@tanstack/ai-mcp": "^0.7.0",
"@modelcontextprotocol/sdk": "^1.32.2",
"@tanstack/ai": "^0.71.0",
"@tanstack/ai-anthropic": "^0.23.0",
"@tanstack/ai-mcp": "^0.9.2",
"@tanstack/cms-api": "workspace:*",
"@tanstack/cms-client": "workspace:*",
"@tanstack/cms-core": "workspace:*",
"@tanstack/cms-ui-react": "workspace:*",
"@tanstack/db": "0.12.3",
"@tanstack/db": "0.15.2",
"@tanstack/onboarding-core": "workspace:*",
"@tanstack/query-core": "^5.90.2",
"@tanstack/query-db-collection": "1.4.2",
"@tanstack/react-db": "0.5.7",
"@tanstack/query-core": "^5.105.0",
"@tanstack/query-db-collection": "1.4.8",
"@tanstack/react-db": "0.5.12",
"@tanstack/react-onboarding": "workspace:*",
"@tanstack/react-router": "^1.158.4",
"@tanstack/react-start": "^1.159.0",
"@tanstack/react-router": "^1.170.46",
"@tanstack/react-start": "^1.169.4",
"@tanstack/react-store": "^0.11.2",
"@tanstack/search-client": "workspace:*",
"@tanstack/search-cms": "workspace:*",
Expand All @@ -49,13 +49,13 @@
"react-dom": "^19.2.3",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"zod": "^4.2.0"
"zod": "^4.6.7"
},
"devDependencies": {
"@playwright/test": "^1.64.0",
"@playwright/test": "^1.64.1",
"@tailwindcss/vite": "^4.1.18",
"@tanstack/cms-cli": "workspace:*",
"@tanstack/router-plugin": "^1.158.4",
"@tanstack/router-plugin": "^1.168.48",
"@tanstack/virtual-file-routes": "^1.162.0",
"@types/node": "^24.10.1",
"@types/react": "^19.2.7",
Expand Down
Loading
Loading