mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
Squash-merge of feat/autofix-pr-test (69 commits) onto upstream/main with -X ours strategy (upstream as authoritative for content conflicts). Key features brought in from fork: - LocalMemoryRecall + VaultHttpFetch tools (end-to-end wired) - /local-memory, /local-vault, /memory-stores, /skill-store interactive panels - /agents-platform, /schedule, /vault command scaffolding - /login: switch / replace / remove of workspace API key - statusline refactor (built-in status row, /statusline as info command) - autofix-pr command + workflow Conflict resolutions (upstream-wins): - 10 .js command stubs kept from upstream (alongside fork's .ts implementations) - src/components/BuiltinStatusLine.tsx accepted upstream's deletion (fork's wire-up references in StatusLine.tsx will be cleaned up next) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
41 lines
1.7 KiB
TypeScript
41 lines
1.7 KiB
TypeScript
#!/usr/bin/env bun
|
|
// One-shot verification: import the autofix-pr command exactly the way
|
|
// commands.ts does, and dump its registration shape + isEnabled() result.
|
|
// Run with: bun --feature AUTOFIX_PR scripts/verify-autofix-pr.ts
|
|
|
|
import autofixPr from '../src/commands/autofix-pr/index.ts'
|
|
|
|
console.log('=== /autofix-pr Command Registration ===')
|
|
console.log('name: ', autofixPr.name)
|
|
console.log('type: ', autofixPr.type)
|
|
console.log('description: ', autofixPr.description)
|
|
console.log('argumentHint: ', autofixPr.argumentHint)
|
|
console.log('isHidden: ', autofixPr.isHidden)
|
|
console.log('bridgeSafe: ', autofixPr.bridgeSafe)
|
|
console.log('isEnabled(): ', autofixPr.isEnabled?.())
|
|
console.log()
|
|
console.log('Bridge invocation validation:')
|
|
const cases: Array<[string, string]> = [
|
|
['', 'empty (should reject)'],
|
|
['stop', 'stop (should accept)'],
|
|
['off', 'off (should accept)'],
|
|
['386', 'PR# (should accept)'],
|
|
['anthropics/claude-code#999', 'cross-repo (should accept)'],
|
|
['fix the typo', 'freeform (should reject for bridge)'],
|
|
]
|
|
for (const [arg, label] of cases) {
|
|
const err = autofixPr.getBridgeInvocationError?.(arg)
|
|
console.log(` ${label.padEnd(35)} → ${err ?? 'OK (no error)'}`)
|
|
}
|
|
console.log()
|
|
console.log('=== Verdict ===')
|
|
const enabled = autofixPr.isEnabled?.()
|
|
const visible = !autofixPr.isHidden && enabled
|
|
console.log(`Visible in slash menu: ${visible ? 'YES ✓' : 'NO ✗'}`)
|
|
if (!visible) {
|
|
console.log(' - isEnabled():', enabled)
|
|
console.log(' - isHidden: ', autofixPr.isHidden)
|
|
console.log(' Hint: ensure FEATURE_AUTOFIX_PR=1 or AUTOFIX_PR is in')
|
|
console.log(' DEFAULT_BUILD_FEATURES (scripts/defines.ts).')
|
|
}
|