Command reference
ed file-changes
Observe one selected workspace recursively and retain a bounded debugging
timeline. Commands route to the fileChangeTimeline extension's running owner.
| Command | Arguments and behavior |
|---|---|
ed file-changes status |
Show preparing, watching or stopped state, event and bookmark counts, eviction count and any watcher error. This is the default subcommand. |
ed file-changes watch <workspace> |
Select a folder, absolute or relative to the current directory, and begin preparing a new baseline. The workspace is stored as its real path, so /tmp/x becomes /private/tmp/x. Repeat --exclude <relative-path> for excluded subtrees; surrounding whitespace and trailing slashes are ignored, so build/ excludes build. Without this option, .git is excluded. An explicit list replaces that default; --exclude '' watches with no exclusions. |
ed file-changes events |
Show retained bursts with event UUIDs, types and paths. Use --kind create, modify, rename or remove to filter observations. |
ed file-changes stop |
Release the watcher and retain the current timeline. |
ed file-changes restart |
Restart the selected workspace with a fresh baseline and a new burst boundary. The workspace and exclusions are remembered across app launches, so restart resumes the last selection. |
ed file-changes bookmark <id> |
Save an event UUID from the retained timeline. Add --remove to remove that bookmark. An id that is not in the retained timeline is rejected. |
ed file-changes bookmarks |
List saved events with their original workspace. |
All commands accept --json. watch and restart return while baseline
preparation is pending. Poll status --json until watching is true; inspect
error if preparation fails. Invalid exclusions are rejected before replacing
the active watcher. A runtime scan failure appears in status rather than a
previous command's exit code.
The timeline retains at most 1,000 events. Consecutive observations within one
second join a burst, for at most five seconds. Stop and restart retain the
timeline but separate subsequent bursts. Changing the workspace or exclusion
list clears that session's timeline. Bookmarks have a separate 100-event limit
and persist in the extension's preferences. Watching ends on extension disable
or app exit. The selected workspace and exclusions persist in the extension's
preferences and come back stopped after a relaunch; restart resumes them.
JSON contracts
status, watch, stop and restart return a snapshot with configuration
(workspace, exclusions), watching, scanning, bursts, bookmarks,
evicted, unreadable (up to 100 relative folders that could not be read), and
optional notice and error fields. events returns the bursts
array. bookmarks and bookmark return the bookmark array. Dates use ISO 8601.
A burst contains id, started, ended and events. An event contains id,
kind (create, modify, rename, remove), path, date and optional
previousPath. Paths are relative to the selected workspace. A bookmark stores
workspace and the original event; its identity is the event UUID. JSON escapes
paths containing newlines and other special characters.
ed file-changes watch /tmp/timeline-example --exclude .git --exclude cache --jsoned file-changes status --jsoned file-changes events --jsoned file-changes bookmark <event-uuid> --jsoned file-changes restart --jsonThe watcher reads file metadata and records observations. Symlink targets are
not traversed. Exclusions are literal relative subtrees, not glob or regex
patterns. Changes inside excluded subtrees never trigger a scan. The scan limit
is 100,000 entries. A folder that vanishes during a scan is skipped without
stopping the watcher. A folder that cannot be read keeps its earlier entries and
is listed in unreadable. Watching stops with an error only when the
workspace itself is missing or unreadable or the limit is exceeded; restart
recovers. Renaming or removing a folder records one rename or remove for the
folder rather than one per descendant. Transient files and intermediate writes
between snapshots may be absent; event dates identify observations.
Exit codes
| Code | When |
|---|---|
| 0 | The command completed. watch and restart return while the baseline is still being prepared |
| 1 | The bookmark limit of 100 is reached |
| 2 | The command line was wrong: an unknown --kind, a malformed event UUID, or an invalid --exclude path such as ../outside, a//b or ./cache |
| 3 | The watch folder does not exist, the bookmark event is not in the retained timeline, or restart has no selected workspace |
| 4 | The File change timeline extension is not running |