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
47 changes: 47 additions & 0 deletions .github/workflows/deploy-mcp-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy MCP app

on:
workflow_dispatch:
inputs:
target:
description: 'Target ref to deploy'
required: true
default: 'main'

env:
CI: 1
PRINT_GITHUB_ANNOTATIONS: 1
TLDRAW_ENV: production
TARGET: ${{ github.event.inputs.target }}

defaults:
run:
shell: bash

jobs:
deploy:
name: Deploy MCP app to production
timeout-minutes: 10
runs-on: ubuntu-latest
environment: deploy-production
concurrency: mcp-app-deploy-production

steps:
- name: Check out code
uses: actions/checkout@v6
with:
ref: ${{ env.TARGET }}
submodules: true
fetch-depth: 0

- uses: ./.github/actions/setup

- name: Build types
run: yarn build-types

- name: Deploy
run: yarn workspace mcp-app deploy
env:
VITE_TLDRAW_LICENSE_KEY: ${{ secrets.MCP_APP_TLDRAW_LICENSE_KEY }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
431 changes: 244 additions & 187 deletions apps/docs/content/starter-kits/agent.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/docs/version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is automatically generated by internal/scripts/refresh-assets.ts.
// Do not edit manually. Or do, I'm a comment, not a cop.

export const version = '4.5.9'
export const version = '4.5.10'
export const publishDates = {
major: '2025-09-18T14:39:22.803Z',
minor: '2026-03-18T11:12:18.976Z',
patch: '2026-04-14T16:57:48.941Z',
patch: '2026-04-21T16:38:04.450Z',
}
4 changes: 2 additions & 2 deletions apps/dotcom/client/version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is automatically generated by internal/scripts/refresh-assets.ts.
// Do not edit manually. Or do, I'm a comment, not a cop.

export const version = '4.5.9'
export const version = '4.5.10'
export const publishDates = {
major: '2025-09-18T14:39:22.803Z',
minor: '2026-03-18T11:12:18.976Z',
patch: '2026-04-14T16:57:48.941Z',
patch: '2026-04-21T16:38:04.450Z',
}
8 changes: 5 additions & 3 deletions internal/scripts/publish-patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,18 @@ async function main() {
appendFileSync(process.env.GITHUB_OUTPUT, `is_latest_version=${isLatestVersion}\n`)
}

// Capture the previous tag BEFORE calling .inc(): semver's SemVer.prototype.inc()
// mutates the instance in place, so reading latestVersionInBranch.format() afterwards
// would return the new version and leave prevTag === tag, producing an empty changelog.
const prevTag = `v${latestVersionInBranch.format()}`

const nextVersion = latestVersionInBranch.inc('patch').format()
nicelog('Releasing version', nextVersion)

await setAllVersions(nextVersion, { stageChanges: true })

const tag = `v${nextVersion}`

// Get the previous tag for changelog generation
const prevTag = `v${latestVersionInBranch.format()}`

// create and push a new tag
await exec('git', ['commit', '-m', `${tag} [skip ci]`])
await exec('git', ['tag', '-a', tag, '-m', tag, '-f'])
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"packages": [
"packages/*"
],
"version": "4.5.9"
"version": "4.5.10"
}
2 changes: 1 addition & 1 deletion packages/assets/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/assets",
"description": "tldraw infinite canvas SDK (assets).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-tldraw/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-tldraw",
"description": "tldraw infinite canvas SDK (create cli).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/driver/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/driver",
"description": "Imperative API for driving the tldraw editor programmatically.",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/editor",
"description": "tldraw infinite canvas SDK (editor).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is automatically generated by internal/scripts/refresh-assets.ts.
// Do not edit manually. Or do, I'm a comment, not a cop.

export const version = '4.5.9'
export const version = '4.5.10'
export const publishDates = {
major: '2025-09-18T14:39:22.803Z',
minor: '2026-03-18T11:12:18.976Z',
patch: '2026-04-14T16:57:48.941Z',
patch: '2026-04-21T16:38:04.450Z',
}
2 changes: 1 addition & 1 deletion packages/mermaid/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/mermaid",
"description": "Mermaid diagram to tldraw shape conversion.",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/namespaced-tldraw/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/tldraw",
"description": "A tiny little drawing editor.",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/state-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/state-react",
"description": "tldraw infinite canvas SDK (react bindings for state).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/state/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/state",
"description": "tldraw infinite canvas SDK (state).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/store",
"description": "tldraw infinite canvas SDK (store).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/sync-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/sync-core",
"description": "tldraw infinite canvas SDK (multiplayer sync).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw GB Ltd.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/sync/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/sync",
"description": "tldraw infinite canvas SDK (multiplayer sync react bindings).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw GB Ltd.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/tldraw/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tldraw",
"description": "A tiny little drawing editor.",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
4 changes: 2 additions & 2 deletions packages/tldraw/src/lib/ui/version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is automatically generated by internal/scripts/refresh-assets.ts.
// Do not edit manually. Or do, I'm a comment, not a cop.

export const version = '4.5.9'
export const version = '4.5.10'
export const publishDates = {
major: '2025-09-18T14:39:22.803Z',
minor: '2026-03-18T11:12:18.976Z',
patch: '2026-04-14T16:57:48.941Z',
patch: '2026-04-21T16:38:04.450Z',
}
2 changes: 1 addition & 1 deletion packages/tlschema/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/tlschema",
"description": "tldraw infinite canvas SDK (schema).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/utils",
"description": "tldraw infinite canvas SDK (private utilities).",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
2 changes: 1 addition & 1 deletion packages/validate/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tldraw/validate",
"description": "A runtime validation library by tldraw.",
"version": "4.5.9",
"version": "4.5.10",
"author": {
"name": "tldraw Inc.",
"email": "hello@tldraw.com"
Expand Down
Loading