refactor: update import paths for react/compiler-runtime to react-compiler-runtime
feat: add OpenClaude local agent playbook for setup and usage instructions chore: implement provider bootstrap script for profile initialization chore: create provider launch script to manage provider execution chore: add system check script for runtime diagnostics and validation feat: implement useEffectEventCompat hook for React 18 compatibility
This commit is contained in:
@@ -1,26 +1,44 @@
|
||||
import { parseFrontmatter } from '../../utils/frontmatterParser.js'
|
||||
import { registerBundledSkill } from '../bundledSkills.js'
|
||||
import { SKILL_FILES, SKILL_MD } from './verifyContent.js'
|
||||
|
||||
const { frontmatter, content: SKILL_BODY } = parseFrontmatter(SKILL_MD)
|
||||
|
||||
const DESCRIPTION =
|
||||
typeof frontmatter.description === 'string'
|
||||
? frontmatter.description
|
||||
: 'Verify a code change does what it should by running the app.'
|
||||
function loadVerifyContent(): { skillMd: string; skillFiles: Record<string, string> } {
|
||||
try {
|
||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||
const { SKILL_FILES, SKILL_MD } = require('./verifyContent.js') as {
|
||||
SKILL_FILES: Record<string, string>
|
||||
SKILL_MD: string
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/no-require-imports */
|
||||
return { skillMd: SKILL_MD, skillFiles: SKILL_FILES }
|
||||
} catch {
|
||||
return {
|
||||
skillMd:
|
||||
'# Verify\n\nVerify a code change does what it should by running the app.',
|
||||
skillFiles: {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function registerVerifySkill(): void {
|
||||
if (process.env.USER_TYPE !== 'ant') {
|
||||
return
|
||||
}
|
||||
|
||||
const { skillMd, skillFiles } = loadVerifyContent()
|
||||
const { frontmatter, content: skillBody } = parseFrontmatter(skillMd)
|
||||
|
||||
const description =
|
||||
typeof frontmatter.description === 'string'
|
||||
? frontmatter.description
|
||||
: 'Verify a code change does what it should by running the app.'
|
||||
|
||||
registerBundledSkill({
|
||||
name: 'verify',
|
||||
description: DESCRIPTION,
|
||||
description,
|
||||
userInvocable: true,
|
||||
files: SKILL_FILES,
|
||||
files: skillFiles,
|
||||
async getPromptForCommand(args) {
|
||||
const parts: string[] = [SKILL_BODY.trimStart()]
|
||||
const parts: string[] = [skillBody.trimStart()]
|
||||
if (args) {
|
||||
parts.push(`## User Request\n\n${args}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user