Framework versions and upgrades
Pin dependencies.apps with executor apps framework, understand how hosts build pinned versions, and upgrade apps past 0.0.1-beta.38 and 0.0.1-beta.90.
Every Executor app pins an exact apps framework version in package.json under dependencies.apps. Check the version your host runs with executor apps framework (or tools.executor.framework.release over MCP), keep existing deployed versions running without interruption, and apply breaking-change upgrade notes when bumping dependencies.apps. Framework pinning and upgrades work on Local, Self-host, and Cloud.
The command that matters most: run executor apps framework against your target host and copy the returned version (for example 0.0.1-beta.148) verbatim into dependencies.apps in package.json.
Prerequisites and permissions: an existing app and edit/deploy permission (Local owner, or app creator / organization admin or owner on Cloud and Self-host; see Build an app).
You’ll know it worked when… executor apps deploy builds cleanly against the pinned apps version, activates the new version, and the app’s tools load without protocol or declaration errors.
How to use it
1. Check your host’s apps version
- Local: run
executor apps framework(starts the local background Executor if needed). - Cloud: run
executor apps loginif you have not already, thenexecutor apps framework. - Self-host: run
executor apps framework --host https://executor.example.com(afterexecutor apps login --host https://executor.example.com).
When dependencies.apps matches the host’s own version, the host supplies its bundled apps package directly during build. When dependencies.apps pins a different exact version, the host installs that version from npm during build. Already-deployed versions continue running on the framework build they were deployed with until you deploy a new version.
2. Upgrade across breaking framework changes
If you are updating an older app to your host’s current apps version, check whether its previous dependencies.apps predates either of these breaking releases and apply the changes below before deploying.
Upgrading from before 0.0.1-beta.90 (account and schedule scopes)
- Bump
dependencies.appsinpackage.jsonto the version printed byexecutor apps framework. - Move account requirements from
{ accounts: { github } }to{ user: { accounts: { github } } }(or{}when an app has no accounts). - Update handlers from
ctx.accounts.githubtoctx.user.accounts.github(and workflow steps fromstep.accountstostep.user.accounts). Inside adefineAppfactory, guardctx.user(ctx.user?.accounts.service ?? []) because the factory also runs without a caller for app-scope work. - Scope webhook accounts from
account: "github"toaccount: { user: "github" }(or{ app: "service" }for an app-scoped account). - Replace
cronandintervalwithuserCronanduserIntervalfor per-member schedules, orappCronandappIntervalfor single app-wide schedules without user requirements. App-wide schedule mutations cannot declareapproval, and their handler context must be typedMutationContext<typeof requirements, "app">. Converting an existing user schedule to an app schedule deletes existing members’ schedule copies, history, and pending approvals when deployed, and the app schedule starts paused. - Optionally move shared team credentials to
app: { accounts: { ... } }and read them fromctx.app.accounts. Existing member links do not carry over; an app manager links the shared account on the app’s Accounts tab after deploying.
Upgrading from before 0.0.1-beta.38 (document database to SQLite)
- Bump
dependencies.appsinpackage.jsonto the version printed byexecutor apps framework. - Remove
database: defineDatabase(...)from requirements and dropdefineDatabase,table,id, anduserIdimports. - Add
migrations/0001_init.sqlcreating your tables and copying any existing rows from_executor_legacy_rows (table_name, id, body)usingjson_extract(body, '$.field')._executor_legacy_rowsexists in every app database (empty on fresh apps), so the same migration works for both upgraded and newly copied apps. Legacy tables are not deleted. - Rewrite
ctx.dbcalls to synchronousctx.sql.exec(...)andctx.sql.transaction(...)(see App storage and SQLite). Dropawaiton SQL statements, alias snake_case columns if callers expect camelCase, and ensure workflow step mutations perform writes inside a singlectx.sql.transaction(...).
Example
Checking the host’s version and updating package.json and index.ts from pre-beta.90 requirements:
executor apps framework
# { "version": "0.0.1-beta.148" }
{
"name": "github-issues-app",
"private": true,
"dependencies": {
"apps": "0.0.1-beta.148"
}
}
import { defineApp, object, query, router, string } from "apps";
import { github } from "./provider.ts";
const requirements = { user: { accounts: { github } } };
const whoami = query(
{
description: "Return the connected GitHub account ID",
input: object({}),
output: object({ accountId: string() }),
},
async ({ user }) => ({ accountId: user.accounts.github.id }),
);
export default defineApp(requirements, { tools: router({ whoami }) });
Deploy with executor apps deploy --app <app-id> --files ./my-app and confirm the build passes without removed-API errors.
Limits
- Exact version required:
dependencies.appsmust be an exact version string; omitting it fails the build with the host’s version to add. - No automatic migration of running versions: upgrading your CLI or Executor server does not rebuild already-deployed app versions. Each app stays on its deployed build until you deploy again.
- Protocol drift on very old pins: an app pinned to a much older
appsversion can fail with host protocol errors or spend extra work listing large APIs; bumpdependencies.appstoexecutor apps frameworkand redeploy. - Legacy schedule conversion is destructive: changing a user schedule declaration to
appCronorappIntervalremoves members’ saved schedule copies, run history, and pending approvals on deploy.