core-agent-ide/codex-cli/src
Michael f4b9153f78
chore: consolidate patch prefix constants in apply‑patch.ts (#274)
This PR replaces all hard‑coded patch markers in apply‑patch.ts with the
corresponding constants (now) exported from parse‑apply‑patch.ts.

Changes
• Import PATCH_PREFIX, PATCH_SUFFIX, ADD_FILE_PREFIX,
DELETE_FILE_PREFIX, UPDATE_FILE_PREFIX, MOVE_FILE_TO_PREFIX,
END_OF_FILE_PREFIX, and HUNK_ADD_LINE_PREFIX from parse‑apply‑patch.ts.
	•	Remove duplicate string literals for patch markers in apply‑patch.ts.
• Changed is_done() to trim the input to account for the slight
difference between the variables.

Why
• DRY & Consistency: Ensures a single source of truth for patch
prefixes.
• Maintainability: Simplifies future updates to prefix values by
centralizing them.
	•	Readability: Makes the code more declarative and self‑documenting.

All tests are passing, lint and format was ran.
2025-04-17 17:00:30 -07:00
..
components fix: duplicated message on model change (#276) 2025-04-17 16:34:35 -07:00
hooks feat: shell command explanation option (#173) 2025-04-17 13:28:58 -07:00
utils chore: consolidate patch prefix constants in apply‑patch.ts (#274) 2025-04-17 17:00:30 -07:00
app.tsx add support for -w,--writable-root to add more writable roots for sandbox (#263) 2025-04-17 15:39:26 -07:00
approvals.ts fix(security): Shell commands auto-executing in 'suggest' mode without permission (#197) 2025-04-17 07:15:02 -07:00
cli.tsx feat: add notifications for MacOS using Applescript (#160) 2025-04-17 16:19:26 -07:00
cli_singlepass.tsx remove triaging labels section + avoid capturing exitOnCtrlC for full-context mode 2025-04-16 10:41:44 -07:00
format-command.ts Back out @lib indirection in tsconfig.json (#111) 2025-04-16 14:16:53 -07:00
parse-apply-patch.ts chore: consolidate patch prefix constants in apply‑patch.ts (#274) 2025-04-17 17:00:30 -07:00
text-buffer.ts fix(text-buffer): correct word deletion logic for trailing spaces (Ctrl+Backspace) (#131) 2025-04-16 16:25:08 -07:00
typings.d.ts Initial commit 2025-04-16 12:56:08 -04:00