OpenACP/src/cli/plugin-template
0xmrpeter 1b59e80977 fix: address code review critical and important issues
- Use closure core variable instead of args.coreAccess in command handlers
- Remove pendingResumes state machine from resume.ts
- Replace silent fallback with delegated in command-registry
- Fix plugin template signatures for registerMenuItem and registerAssistantSection
- Add delegated type to CommandResponse docs in plugin template
- Update test to match silent->delegated change

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 18:48:46 +07:00
..

import type { TemplateParams } from './package-json.js'

export function generateReadme(params: TemplateParams): string {
  return [
    `# ${params.pluginName}`,
    '',
    params.description || 'An OpenACP plugin.',
    '',
    '## Installation',
    '',
    '```bash',
    `openacp plugin add ${params.pluginName}`,
    '```',
    '',
    '## Development',
    '',
    '```bash',
    'npm install',
    'npm run build',
    'npm test',
    '',
    '# Live development with hot-reload:',
    `openacp dev .`,
    '```',
    '',
    '## License',
    '',
    params.license,
    '',
  ].join('\n')
}