Skip to content

feat(core-file-watching): define FileWatcher protocol [task/01] - #23

Merged
YamiDaisuke merged 2 commits into
mainfrom
core-file-watching-task/01-define-file-watcher-protocol
Jun 16, 2026
Merged

feat(core-file-watching): define FileWatcher protocol [task/01]#23
YamiDaisuke merged 2 commits into
mainfrom
core-file-watching-task/01-define-file-watcher-protocol

Conversation

@YamiDaisuke

Copy link
Copy Markdown
Owner

Summary

Adds the FileWatcher protocol to Sources/Core/ — a platform-agnostic interface for file and directory change notifications, with start()/stop() methods and optional callbacks for changed, added, and removed events.

Changes

  • Sources/Core/FileWatcher.swift (new): FileWatcher class-bound protocol with onFileChanged, onFileAdded, onFileRemoved callbacks, init(path:), start(), and stop()

Related Task

docs/specs/core-file-watching.md · TASK-01

Stack

Target branch: main

Checklist

  • All acceptance criteria from the task are met
  • Code follows conventions in docs/ARCHITECTURE.md
  • Tests added or updated where required by spec or architecture
  • Only changes related to this task are included
  • Spec task status updated to done

Generated by Claude Code

claude added 2 commits June 7, 2026 15:29
Adds FileWatcher class-bound protocol to Core with start(), stop(),
and optional callbacks onFileChanged/onFileAdded/onFileRemoved(URL).
No platform-specific types — URL is cross-platform Foundation.

https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L
@YamiDaisuke
YamiDaisuke merged commit 34dc05d into main Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants