remove-demo-limits

作成者: vercel

フォークからOpen Harnessがホストするデモの制限を削除します。メンテナーが管理テンプレートのトライアル上限、ホスト型デプロイメントのゲーティングなどを削除したい場合に使用します。

npx skills add https://github.com/vercel-labs/open-agents --skill remove-demo-limits

Remove the managed-template trial restrictions with the smallest coherent change.

Goal

Make the fork behave like a normal self-hosted deployment:

  • no trial session cap
  • no trial message cap
  • no hosted-only restriction errors
  • no hosted-demo delete restrictions
  • no dead helper code or stale tests

Inspect first

Read these files before editing:

  • apps/web/lib/managed-template-trial.ts
  • apps/web/app/api/sessions/route.ts
  • apps/web/app/api/chat/route.ts
  • apps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.ts
  • apps/web/app/api/sessions/route.test.ts
  • apps/web/app/api/chat/route.test.ts
  • apps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.test.ts

Then search for these identifiers and strings to catch older or newer variants:

  • isManagedTemplateTrialUser
  • MANAGED_TEMPLATE_TRIAL_
  • deploy-your-own
  • open-agents.dev
  • vercel.com
  • This hosted deployment includes
  • does not allow message deletion

Required changes

  1. Remove the guards that block session creation, chat messages, or message deletion for managed-template users.
  2. If the auth callback still blocks non-Vercel emails on hosted deployments, remove that restriction too.
  3. Delete apps/web/lib/managed-template-trial.ts if it becomes unused; otherwise simplify it so no dead exports remain.
  4. Remove or update tests that assert the hosted caps, delete restrictions, or hosted-only auth gating.
  5. Do not add feature flags, env toggles, or new dependencies. Prefer deleting the restriction code outright.
  6. Keep unrelated auth, session ownership, and sandbox behavior unchanged.

Verification

This repo uses Bun. After the edits:

  • run bun run ci
  • if a failure is pre-existing, say that clearly and separate it from your changes

Output

Report:

  • which restrictions were removed
  • which files changed
  • verification result

vercelのその他のスキル

benchmark-sandbox
vercel
Vercel Sandbox上でvercel-pluginの評価シナリオを実行し、ローカルのWezTermパネルの代わりに使用します。Claude Codeとプラグインがプリインストールされた一時的なマイクロVMをプロビジョニングします…
official
emil-design-eng
vercel
このスキルは、Emil KowalskiのUIポリッシュ、コンポーネントデザイン、アニメーションの決定、そしてソフトウェアを素晴らしいものにする目に見えない細部に関する哲学をエンコードしています。
official
vercel-react-best-practices
vercel
Vercel EngineeringによるReactおよびNext.jsのパフォーマンス最適化ガイドライン。このスキルは、React/Next.jsのコードを記述、レビュー、またはリファクタリングする際に使用すべきものです。
official
vercel-react-best-practices
vercel
Vercel EngineeringによるReactおよびNext.jsのパフォーマンス最適化ガイドライン。このスキルは、React/Next.jsのコードを記述、レビュー、またはリファクタリングする際に使用すべきものです。
official
write-guide
vercel
現実世界のユースケースを段階的な例を通じて教える技術ガイドを作成します。概念は読者が必要とするタイミングでのみ導入されます。
official
release
vercel
Vercelプラグインをリリース — ゲートを実行し、バージョンを上げ、アーティファクトを生成し、コミットしてプッシュします。「リリースして」「出荷して」「バージョンを上げてプッシュして」または「リリースを切って」と依頼されたときに使用します。
official
deepsec
vercel
dev3000からチェックアウトしたVercelプロジェクトに対してDeepSecを実行します。ワンクリックDeepSecセットアップ、プロジェクトコンテキストのブートストラップ、制限付きの初回パス処理などに使用します。
official
backport-pr
vercel
マージされたNext.jsのプルリクエストをcanaryからnext-16-2などの以前のリリースブランチにバックポートします。ユーザーがバックポート、チェリーピック、またはオープンを依頼した場合に使用します…
official