rebase: add import ScarfCore to templates feature Mac files

The v2.2.0 templates/config/catalog feature (introduced on main after
M0 branched) added 18 Mac-target files that reference types now living
in ScarfCore — ServerContext, ProjectEntry, ProjectDashboardService,
etc. After rebasing scarf-mobile-development onto main, those files
need `import ScarfCore` the same way the M0a/M0c/M0d extractions
added it to the ~100 pre-existing Mac files.

Unblocks Xcode compile of the scarf (Mac) target on this branch; no
behavior change.

https://claude.ai/code/session_019yMRP6mwZWfzVrPTqevx2y
This commit is contained in:
Claude
2026-04-23 17:17:06 +00:00
parent 44d2d6d6c6
commit 4132cb03e2
18 changed files with 19 additions and 1 deletions
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
// MARK: - Manifest (what lives inside the .scarftemplate zip) // MARK: - Manifest (what lives inside the .scarftemplate zip)
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
// MARK: - Schema (ships inside template.json as manifest.config) // MARK: - Schema (ships inside template.json as manifest.config)
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Per-project configuration I/O: reads `<project>/.scarf/config.json` /// Per-project configuration I/O: reads `<project>/.scarf/config.json`
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Builds a `.scarftemplate` bundle from an existing Scarf project plus the /// Builds a `.scarftemplate` bundle from an existing Scarf project plus the
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Executes a `TemplateInstallPlan`. All writes happen in one pass with /// Executes a `TemplateInstallPlan`. All writes happen in one pass with
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Reads, validates, and plans the install of a `.scarftemplate` bundle. Pure /// Reads, validates, and plans the install of a `.scarftemplate` bundle. Pure
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Reverses the work of `ProjectTemplateInstaller`, driven by the /// Reverses the work of `ProjectTemplateInstaller`, driven by the
@@ -1,5 +1,6 @@
import Foundation import Foundation
import Observation import Observation
import ScarfCore
import os import os
/// Drives the post-install "Configuration" button on the project /// Drives the post-install "Configuration" button on the project
@@ -1,5 +1,6 @@
import Foundation import Foundation
import Observation import Observation
import ScarfCore
import os import os
/// Drives the configure form for template install + post-install editing. /// Drives the configure form for template install + post-install editing.
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Drives the template export sheet. Holds form state for the author-facing /// Drives the template export sheet. Holds form state for the author-facing
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Drives the template install sheet. Handles three entry points: /// Drives the template install sheet. Handles three entry points:
@@ -1,4 +1,5 @@
import Foundation import Foundation
import ScarfCore
import os import os
/// Drives the template-uninstall sheet. Mirrors the installer VM in /// Drives the template-uninstall sheet. Mirrors the installer VM in
@@ -1,3 +1,4 @@
import ScarfCore
import SwiftUI import SwiftUI
/// Post-install configuration editor. Thin wrapper around the same /// Post-install configuration editor. Thin wrapper around the same
@@ -1,3 +1,4 @@
import ScarfCore
import SwiftUI import SwiftUI
/// The configure form rendered for template install + post-install /// The configure form rendered for template install + post-install
@@ -1,5 +1,6 @@
import SwiftUI
import AppKit import AppKit
import ScarfCore
import SwiftUI
/// Preview-and-confirm sheet for installing a `.scarftemplate`. Honest /// Preview-and-confirm sheet for installing a `.scarftemplate`. Honest
/// accounting: shows every file that will be written, every cron job that /// accounting: shows every file that will be written, every cron job that
@@ -1,3 +1,4 @@
import ScarfCore
import SwiftUI import SwiftUI
/// Preview-and-confirm sheet for uninstalling a template-installed /// Preview-and-confirm sheet for uninstalling a template-installed
@@ -1,5 +1,6 @@
import Testing import Testing
import Foundation import Foundation
import ScarfCore
@testable import scarf @testable import scarf
/// Cross-suite serialization lock for tests that touch the real /// Cross-suite serialization lock for tests that touch the real
@@ -1,5 +1,6 @@
import Testing import Testing
import Foundation import Foundation
import ScarfCore
@testable import scarf @testable import scarf
// MARK: - Schema validation // MARK: - Schema validation