feat: add native Codex hook integration

This commit is contained in:
ZacharyZhang-NY committed 2026-07-19 05:48:24 -04:00
1 parent 758d129dbf
commit dfddb02f66
10 files changed
+925 -84

No files matched your search

+3 -3
View File
@@ -269,9 +269,9 @@ func applyKiroMutation(mutation kiroConfigMutation) error {
return nil
}
if mutation.remove {
return removeKiroFile(mutation.path, "Kiro CLI config")
return removeHookFile(mutation.path, "Kiro CLI config")
}
return writeKiroObjectAtomic(mutation.path, mutation.value)
return writeHookJSONObjectAtomic(mutation.path, mutation.value)
}
func configuredKiroContracts(
@@ -378,7 +378,7 @@ func kiroRuntimeScriptsExist(contracts []kiroHookContract) (bool, error) {
continue
}
configPath := filepath.Join(agentDir, "config.json")
config, exists, err := readKiroObject(configPath, "Elydora runtime config")
config, exists, err := readHookJSONObject(configPath, "Elydora runtime config")
if err != nil {
return false, err
}