- Merge strict:review/strict:security-review into reviewSkills.ts (single file registers all four commands: /review, /security-review, /strict:review, /strict:security-review) - Remove conflicting prompt commands from src/commands/ (review.ts, security-review.ts) so bundled skills take precedence - Remove REVIEW_AGENTS import from builtInAgents.ts and mcp.ts - Remove agent generation logic from generate-review-builtin.ts - Configure allowedTools and model: 'inherit' per claudecode spec - Switch test branch to optimize/agent-prompts Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
1.1 KiB
TypeScript
24 lines
1.1 KiB
TypeScript
import { isUltrareviewEnabled } from './review/ultrareviewEnabled.js'
|
||
import type { Command } from '../commands.js'
|
||
|
||
// Legal wants the explicit surface name plus a docs link visible before the
|
||
// user triggers, so the description carries "Claude Code on the web" + URL.
|
||
const CCR_TERMS_URL = 'https://costrict.ai/docs/en/claude-code-on-the-web'
|
||
|
||
// /review is registered as a bundled skill via registerReviewSkills() in
|
||
// src/costrict/skills/reviewSkills.ts, which provides the full SKILL.md
|
||
// content and reference files. This file only provides /ultrareview.
|
||
|
||
// /ultrareview is the ONLY entry point to the remote bughunter path —
|
||
// /review stays purely local. local-jsx type renders the overage permission
|
||
// dialog when free reviews are exhausted.
|
||
const ultrareview: Command = {
|
||
type: 'local-jsx',
|
||
name: 'ultrareview',
|
||
description: `~10–20 min · Finds and verifies bugs in your branch. Runs in CoStrict on the web. See ${CCR_TERMS_URL}`,
|
||
isEnabled: () => isUltrareviewEnabled(),
|
||
load: () => import('./review/ultrareviewCommand.js'),
|
||
}
|
||
|
||
export { ultrareview }
|