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

Больше skills от vercel

benchmark-sandbox
vercel
Запускает сценарии оценки vercel-plugin в песочницах Vercel вместо локальных панелей WezTerm. Предоставляет эфемерные микроВМ с предустановленными Claude Code и плагином,…
official
emil-design-eng
vercel
Этот навык кодирует философию Эмиля Ковальски в отношении полировки интерфейса, дизайна компонентов, анимационных решений и незаметных деталей, которые делают программное обеспечение приятным в использовании.
official
vercel-react-best-practices
vercel
Рекомендации по оптимизации производительности React и Next.js от инженеров Vercel. Этот навык следует использовать при написании, ревью или рефакторинге React/Next.js…
official
vercel-react-best-practices
vercel
Рекомендации по оптимизации производительности React и Next.js от инженеров Vercel. Этот навык следует использовать при написании, рецензировании или рефакторинге React/Next.js…
official
write-guide
vercel
Создайте техническое руководство, которое обучает реальному примеру использования через последовательные примеры. Концепции вводятся только тогда, когда они нужны читателю.
official
release
vercel
Vercel-plugin — запуск шлюзов, обновление версии, генерация артефактов, коммит и пуш. Используйте, когда вас просят «выпустить релиз», «запустить», «обновить версию и запушить» или «сделать релиз».
official
deepsec
vercel
Запустить DeepSec для проверки проекта Vercel из dev3000. Используется для одношаговой настройки DeepSec, начальной загрузки контекста проекта, ограниченной первичной обработки и…
official
backport-pr
vercel
Выполнить бэкпорт объединённого pull request Next.js из canary в предыдущую ветку релиза, например next-16-2. Используйте, когда пользователь просит выполнить бэкпорт, cherry-pick или открыть…
official