Skip to main content
在 Manus 中运行任何 Skill
一键导入

adding-admin-trigger-endpoint

星标5
分支1
更新时间2026年5月3日 18:17

Adds a new admin-gated POST endpoint that manually triggers a cron engine for the requesting tenant. Use when writing a cron-engine spec (G-9/G-10/G-11/G-12/G-14/G-15 pattern) and the engine has no manual-trigger surface — without one, the spec can only wait for the cron tick which is non-deterministic. Encodes the canonical mirror pattern (verifyToken + verifyRole(['ADMIN']) + per-tenant scope via req.user.tenantId + return envelope shape) plus the optional confirmDestructive body guard for destructive ops like GDPR retention. Pairs with writing-api-gate-spec for the test side.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
2 个文件
SKILL.md
readonly