Add native Codex hooks integration (#2319)
* Add native Codex hooks integration * Address Codex review feedback * Use durable Codex marketplace root * Address Codex file context review feedback * Harden Codex installer review paths * Report Codex legacy cleanup failures * fix: keep MCP manifests in marketplace sync * fix: bundle zod in MCP server * fix: warn on Codex legacy cleanup failure * Fix hook observation readiness timeouts * Address Codex hook review notes * Tighten Codex MCP file context matching * Resolve final Codex review nits * Add Codex marketplace version guidance * Reset worker failure counter on API fallback * Fix Codex cat flag file extraction
This commit is contained in:
@@ -34,10 +34,19 @@ function getGitignoreExcludes(basePath) {
|
||||
const gitignorePath = path.join(basePath, '.gitignore');
|
||||
if (!existsSync(gitignorePath)) return '';
|
||||
|
||||
const syncManagedFiles = new Set([
|
||||
'.mcp.json',
|
||||
]);
|
||||
|
||||
const lines = readFileSync(gitignorePath, 'utf-8').split('\n');
|
||||
return lines
|
||||
.map(line => line.trim())
|
||||
.filter(line => line && !line.startsWith('#') && !line.startsWith('!'))
|
||||
.filter(line =>
|
||||
line &&
|
||||
!line.startsWith('#') &&
|
||||
!line.startsWith('!') &&
|
||||
!syncManagedFiles.has(line)
|
||||
)
|
||||
.map(pattern => `--exclude=${JSON.stringify(pattern)}`)
|
||||
.join(' ');
|
||||
}
|
||||
@@ -211,4 +220,4 @@ try {
|
||||
} catch (error) {
|
||||
console.error('\x1b[31m%s\x1b[0m', 'Sync failed:', error.message);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user