|
|
3 周之前 | |
|---|---|---|
| .. | ||
| approvals | 2 月之前 | |
| test-cases | 1 月之前 | |
| .gitignore | 2 月之前 | |
| README.md | 2 月之前 | |
| approvals.spec.ts | 2 月之前 | |
| approvals.ts | 2 月之前 | |
| ghost-provider-tester.ts | 2 月之前 | |
| html-report.ts | 2 月之前 | |
| llm-client.ts | 2 月之前 | |
| mock-context-provider.ts | 1 月之前 | |
| mock-vscode.ts | 4 月之前 | |
| opus-approval.ts | 2 月之前 | |
| package.json | 3 周之前 | |
| runner.ts | 2 月之前 | |
| test-cases.spec.ts | 4 月之前 | |
| test-cases.ts | 2 月之前 | |
| tsconfig.json | 4 月之前 | |
| utils.ts | 3 月之前 | |
Standalone approval-test suite for GhostInlineCompletionProvider using real LLM calls.
cd src/test-llm-autocompletion
cp .env.example .env
Set your kilocode API key in .env.
approvals/<category>/<test>/approved|rejected/*.txt.--skip-approval / --opus-approval)# All tests
pnpm run test
# Verbose
pnpm run test:verbose
# Single test (substring match)
pnpm run test closing-brace
# Repeat runs (works with single test or all)
pnpm run test --runs 5
pnpm run test closing-brace --runs 5
pnpm run test -r 5
# Don’t prompt; fail only on known rejected outputs.
# New outputs become "unknown".
pnpm run test --skip-approval
pnpm run test -sa
# Uses Claude Opus to auto-judge new outputs as APPROVED/REJECTED
pnpm run test --opus-approval
pnpm run test -oa
pnpm run clean
Default model: mistralai/codestral-2508 (supports FIM).
# Override model
LLM_MODEL=anthropic/claude-3-haiku pnpm run test
The suite mirrors production behavior via GhostProviderTester:
ghost-provider-fim (uses FimPromptBuilder)ghost-provider-holefiller (uses HoleFiller)pnpm run test report
Outputs to html-output/ (gitignored):
html-output/index.html overview by category