- Added SwiftPM products and targets for
MonocleCore(library) andMonocleCLI(executablemonocle). - Declared dependencies on ArgumentParser, LanguageServerProtocol, and LanguageClient per architecture plan.
- Implemented workspace detection (
WorkspaceLocator) and models (Workspace,SymbolInfo,MonocleError,ToolchainConfiguration). - Wired SourceKit-LSP:
SourceKitServicenow spawnsxcrun sourcekit-lspvia LanguageClient'sDataChannel.localProcessChannel, initializes with client capabilities, and provides shutdown handling plus version probing. LspSessionis now an actor that starts the service, sendsdidOpen, and servesinspect,definition, andhoverby forwarding LSP requests and returning snippets.- CLI commands now use the real session and JSON encoder;
versionreports the detected SourceKit-LSP version. - Ensured Sendable conformance for workspace and symbol models to satisfy Swift 6 concurrency checks.
- Added daemon mode: Unix-domain-socket server that pools
LspSessioninstances with idle reaping, plus CLIservecommand and daemon-aware inspect/definition/hover commands that fall back to direct LSP if the daemon is unavailable. - Current status (2025-12-08):
swift build --quietsucceeds with functional LSP-backed inspect/definition/hover paths and the new daemon server/client flow for faster repeat calls.