From 41ad28a38d719f640750ada0c83abda82bca7950 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Jul 2026 20:06:51 +0000 Subject: [PATCH] Reorganize repo docs and scripts, fix Scripts/scripts case collision Move the 13 product/spec docs (AI_RULES, ARCHITECTURE, PRODUCT, etc.) from the repo root into docs/specs/, alongside the existing docs/adr/ and docs/site/. Keep README, LICENSE.md, COMMERCIAL-LICENSE.md, CONTRIBUTING.md, and SECURITY.md at root, since GitHub's community health file detection and the docs-lint license-presence check both expect them there. Merge Scripts/ (build-app.sh, make-icns.sh) into the existing lowercase scripts/ directory. Having both Scripts/ and scripts/ at the repo root is a latent bug: on the case-insensitive filesystem macOS and Windows use by default, git checkout would fold the two into one directory and silently drop files. Update every real reference to a moved path (README, CONTRIBUTING, COMMERCIAL-LICENSE, Assets/Icon/README, generate_icon.py, the Prompts/ agent-prompt file lists, and the release-macos.yml workflow) so nothing links to a stale location. Verified all markdown links resolve and the screen-parity/license-presence checks still pass locally. --- .github/workflows/release-macos.yml | 2 +- .gitignore | 4 +++ Assets/Icon/README.md | 2 +- Assets/Icon/generate_icon.py | 4 +-- COMMERCIAL-LICENSE.md | 2 +- CONTRIBUTING.md | 4 +-- Prompts/build.md | 14 ++++---- Prompts/release.md | 8 ++--- Prompts/terminal.md | 8 ++--- Prompts/testing.md | 10 +++--- Prompts/ui.md | 10 +++--- README.md | 36 +++++++++---------- AI_RULES.md => docs/specs/AI_RULES.md | 0 ARCHITECTURE.md => docs/specs/ARCHITECTURE.md | 0 .../specs/BOOTABLE_USB_ENGINE.md | 0 .../specs/DESIGN_SYSTEM.md | 0 .../specs/ICON_GUIDELINES.md | 0 PRODUCT.md => docs/specs/PRODUCT.md | 0 REQUIREMENTS.md => docs/specs/REQUIREMENTS.md | 0 ROADMAP.md => docs/specs/ROADMAP.md | 0 .../specs/TERMINAL_AUTOMATION.md | 0 .../specs/UI_GUIDELINES.md | 0 USER_FLOW.md => docs/specs/USER_FLOW.md | 0 VISION.md => docs/specs/VISION.md | 0 .../specs/VMWARE_INTEGRATION.md | 0 {Scripts => scripts}/build-app.sh | 4 +-- {Scripts => scripts}/make-icns.sh | 0 27 files changed, 56 insertions(+), 52 deletions(-) rename AI_RULES.md => docs/specs/AI_RULES.md (100%) rename ARCHITECTURE.md => docs/specs/ARCHITECTURE.md (100%) rename BOOTABLE_USB_ENGINE.md => docs/specs/BOOTABLE_USB_ENGINE.md (100%) rename DESIGN_SYSTEM.md => docs/specs/DESIGN_SYSTEM.md (100%) rename ICON_GUIDELINES.md => docs/specs/ICON_GUIDELINES.md (100%) rename PRODUCT.md => docs/specs/PRODUCT.md (100%) rename REQUIREMENTS.md => docs/specs/REQUIREMENTS.md (100%) rename ROADMAP.md => docs/specs/ROADMAP.md (100%) rename TERMINAL_AUTOMATION.md => docs/specs/TERMINAL_AUTOMATION.md (100%) rename UI_GUIDELINES.md => docs/specs/UI_GUIDELINES.md (100%) rename USER_FLOW.md => docs/specs/USER_FLOW.md (100%) rename VISION.md => docs/specs/VISION.md (100%) rename VMWARE_INTEGRATION.md => docs/specs/VMWARE_INTEGRATION.md (100%) rename {Scripts => scripts}/build-app.sh (93%) rename {Scripts => scripts}/make-icns.sh (100%) diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index 8873687..808dfe5 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -34,7 +34,7 @@ jobs: xcodebuild -version - name: Build wInstaller.app - run: Scripts/build-app.sh "$RUNNER_TEMP/build" + run: scripts/build-app.sh "$RUNNER_TEMP/build" - name: Zip app bundle run: | diff --git a/.gitignore b/.gitignore index 2d4eca2..36a31c7 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,7 @@ xcuserdata/ # Logs *.log +# Python +__pycache__/ +*.pyc + diff --git a/Assets/Icon/README.md b/Assets/Icon/README.md index 04afa39..bb8db82 100644 --- a/Assets/Icon/README.md +++ b/Assets/Icon/README.md @@ -9,5 +9,5 @@ Recommended files: - `winstaller-icon.sketch`: Sketch source, if used. - `AppIcon.appiconset`: Xcode export. -The icon direction is defined in [../../ICON_GUIDELINES.md](../../ICON_GUIDELINES.md). +The icon direction is defined in [../../docs/specs/ICON_GUIDELINES.md](../../docs/specs/ICON_GUIDELINES.md). diff --git a/Assets/Icon/generate_icon.py b/Assets/Icon/generate_icon.py index ee214e1..fd0563c 100755 --- a/Assets/Icon/generate_icon.py +++ b/Assets/Icon/generate_icon.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Generate the wInstaller app icon with no third-party dependencies. -The icon follows ICON_GUIDELINES.md: a rounded macOS tile, a brushed-aluminum +The icon follows docs/specs/ICON_GUIDELINES.md: a rounded macOS tile, a brushed-aluminum USB-C flash drive, a sapphire connector, a small status LED, and a neutral "OS" glyph. No Windows logo, no long text. @@ -12,7 +12,7 @@ Assets/AppIcon.appiconset/ -> Xcode asset catalog (icon_.png + Contents.json) Assets/AppIcon.iconset/ -> iconutil input (icon_16x16.png ... icon_512x512@2x.png) -Run `Scripts/make-icns.sh` on a Mac to turn the iconset into AppIcon.icns. +Run `scripts/make-icns.sh` on a Mac to turn the iconset into AppIcon.icns. """ import math diff --git a/COMMERCIAL-LICENSE.md b/COMMERCIAL-LICENSE.md index 402eb19..45cbe45 100644 --- a/COMMERCIAL-LICENSE.md +++ b/COMMERCIAL-LICENSE.md @@ -50,4 +50,4 @@ under the same noncommercial terms, so the guarantee can't be stripped out downstream). Commercial use funds continued development directly instead of through telemetry, ads, or a freemium paywall inside the app itself — both of which conflict with this project's local-only, no-telemetry trust model (see -[SECURITY.md](SECURITY.md) and [VISION.md](VISION.md)). +[SECURITY.md](SECURITY.md) and [VISION.md](docs/specs/VISION.md)). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 90d8be9..58c867d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,13 +2,13 @@ wInstaller is a multi-platform project: three native UIs (SwiftUI/macOS, WinUI3/ Windows, GTK4-libadwaita/Linux) sharing one Rust core engine. Read -[AI_RULES.md](AI_RULES.md) before making any change — it applies to human and AI +[AI_RULES.md](docs/specs/AI_RULES.md) before making any change — it applies to human and AI contributors alike. Read the [ADRs](docs/adr/) for the architecture reasoning behind the current shape of the project. ## Before you start -1. Read [AI_RULES.md](AI_RULES.md) and [PRODUCT.md](PRODUCT.md). +1. Read [AI_RULES.md](docs/specs/AI_RULES.md) and [PRODUCT.md](docs/specs/PRODUCT.md). 2. If your change affects behavior described in a spec doc (`BOOTABLE_USB_ENGINE.md`, `TERMINAL_AUTOMATION.md`, `USER_FLOW.md`, `ARCHITECTURE.md`, `SECURITY.md`, `DESIGN_SYSTEM.md`), update that doc in the same PR. diff --git a/Prompts/build.md b/Prompts/build.md index 7bc962c..c79c15b 100644 --- a/Prompts/build.md +++ b/Prompts/build.md @@ -6,13 +6,13 @@ Use this prompt when asking an AI coding agent to start implementing wInstaller. You are building wInstaller, a native macOS assistant for creating bootable USB drives from Windows and Linux ISO files. Read these files first: -- AI_RULES.md -- PRODUCT.md -- REQUIREMENTS.md -- USER_FLOW.md -- ARCHITECTURE.md -- BOOTABLE_USB_ENGINE.md -- TERMINAL_AUTOMATION.md +- docs/specs/AI_RULES.md +- docs/specs/PRODUCT.md +- docs/specs/REQUIREMENTS.md +- docs/specs/USER_FLOW.md +- docs/specs/ARCHITECTURE.md +- docs/specs/BOOTABLE_USB_ENGINE.md +- docs/specs/TERMINAL_AUTOMATION.md - SECURITY.md Task: diff --git a/Prompts/release.md b/Prompts/release.md index 17bc2ae..e6ba0a8 100644 --- a/Prompts/release.md +++ b/Prompts/release.md @@ -6,11 +6,11 @@ Use this prompt when asking an AI coding agent to prepare a release. You are preparing wInstaller for release. Read: -- AI_RULES.md +- docs/specs/AI_RULES.md - SECURITY.md -- ROADMAP.md -- REQUIREMENTS.md -- ICON_GUIDELINES.md +- docs/specs/ROADMAP.md +- docs/specs/REQUIREMENTS.md +- docs/specs/ICON_GUIDELINES.md Task: Prepare the app for a signed, notarized macOS release. Verify build settings, entitlements, hardened runtime, app icon assets, help documentation, privacy statements, and release checklist. diff --git a/Prompts/terminal.md b/Prompts/terminal.md index ff4e04b..6d0af3d 100644 --- a/Prompts/terminal.md +++ b/Prompts/terminal.md @@ -6,11 +6,11 @@ Use this prompt when asking an AI coding agent to implement command planning and You are implementing wInstaller's terminal automation layer. Read: -- AI_RULES.md -- TERMINAL_AUTOMATION.md -- BOOTABLE_USB_ENGINE.md +- docs/specs/AI_RULES.md +- docs/specs/TERMINAL_AUTOMATION.md +- docs/specs/BOOTABLE_USB_ENGINE.md - SECURITY.md -- REQUIREMENTS.md +- docs/specs/REQUIREMENTS.md Task: Implement a command runner abstraction, dry-run command planning, structured parsers for disk and ISO metadata, and a fake runner for tests. Do not run destructive commands. Do not add real formatting or erase execution until the confirmation flow and safety checks are implemented. diff --git a/Prompts/testing.md b/Prompts/testing.md index bb4060a..7835d2c 100644 --- a/Prompts/testing.md +++ b/Prompts/testing.md @@ -6,11 +6,11 @@ Use this prompt when asking an AI coding agent to improve test coverage. You are strengthening wInstaller's test suite. Read: -- AI_RULES.md -- REQUIREMENTS.md -- ARCHITECTURE.md -- BOOTABLE_USB_ENGINE.md -- TERMINAL_AUTOMATION.md +- docs/specs/AI_RULES.md +- docs/specs/REQUIREMENTS.md +- docs/specs/ARCHITECTURE.md +- docs/specs/BOOTABLE_USB_ENGINE.md +- docs/specs/TERMINAL_AUTOMATION.md - SECURITY.md Task: diff --git a/Prompts/ui.md b/Prompts/ui.md index ba73162..b510ec3 100644 --- a/Prompts/ui.md +++ b/Prompts/ui.md @@ -6,11 +6,11 @@ Use this prompt when asking an AI coding agent to implement or refine the app in You are refining the wInstaller macOS SwiftUI interface. Read: -- AI_RULES.md -- UI_GUIDELINES.md -- DESIGN_SYSTEM.md -- USER_FLOW.md -- ICON_GUIDELINES.md +- docs/specs/AI_RULES.md +- docs/specs/UI_GUIDELINES.md +- docs/specs/DESIGN_SYSTEM.md +- docs/specs/USER_FLOW.md +- docs/specs/ICON_GUIDELINES.md Task: Build the assistant UI as the first screen. Follow the supplied product mockup as direction, but use native macOS controls and Apple's Human Interface Guidelines. Implement the step sidebar, main step content, local-only footer, ISO card, USB selector, live checklist, confirmation dialog, and technical details panel. diff --git a/README.md b/README.md index e49e1c0..619fcc8 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The macOS app is feature-complete for the first-release happy path: > Always verify the target and prefer the Simulate toggle first. Destructive > operations have not been run on hardware in CI — test on a spare USB. -Windows and Linux native apps are planned (see [ROADMAP.md](ROADMAP.md) and the +Windows and Linux native apps are planned (see [ROADMAP.md](docs/specs/ROADMAP.md) and the phased delivery plan referenced from the ADRs). ## Building from source @@ -78,7 +78,7 @@ To build a real `.app` bundle: ```bash python3 Assets/Icon/generate_icon.py # generate app icon assets -Scripts/build-app.sh # assemble build/wInstaller.app +scripts/build-app.sh # assemble build/wInstaller.app open build/wInstaller.app ``` @@ -131,7 +131,7 @@ wInstaller should feel like something a first-party disk utility would be if it actually explained itself: it explains what it found, asks before anything destructive happens, validates the result, and never leaves the machine it runs on. Read the [full manifesto on the landing page](https://pedrobritx.github.io/winstaller/) -or [VISION.md](VISION.md) for the complete set of interaction principles. +or [VISION.md](docs/specs/VISION.md) for the complete set of interaction principles. ## Architecture @@ -144,32 +144,32 @@ wInstaller is three native UIs sharing one Rust core engine: The core (state machine, disk/ISO domain models, error taxonomy, and the per-OS `SystemAdapter` trait) is the *only* shared layer — each UI is fully -native, with no cross-platform UI framework. See [ARCHITECTURE.md](ARCHITECTURE.md) +native, with no cross-platform UI framework. See [ARCHITECTURE.md](docs/specs/ARCHITECTURE.md) and every decision record under [docs/adr/](docs/adr/), starting with [docs/adr/0001-core-language-and-ffi.md](docs/adr/0001-core-language-and-ffi.md). ## Documentation Map -- [PRODUCT.md](PRODUCT.md): mission, users, success criteria, and non-goals. -- [VISION.md](VISION.md): product philosophy and interaction principles. -- [REQUIREMENTS.md](REQUIREMENTS.md): functional and non-functional requirements. -- [USER_FLOW.md](USER_FLOW.md): screen-by-screen assistant flow. -- [ARCHITECTURE.md](ARCHITECTURE.md): app structure, modules, and state model. -- [UI_GUIDELINES.md](UI_GUIDELINES.md): per-OS interface rules. -- [DESIGN_SYSTEM.md](DESIGN_SYSTEM.md): reusable visual and component standards. -- [TERMINAL_AUTOMATION.md](TERMINAL_AUTOMATION.md): allowed commands, policies, and error recovery. -- [BOOTABLE_USB_ENGINE.md](BOOTABLE_USB_ENGINE.md): bootable media engine state machine. -- [VMWARE_INTEGRATION.md](VMWARE_INTEGRATION.md): virtualization detection and handoff behavior. +- [PRODUCT.md](docs/specs/PRODUCT.md): mission, users, success criteria, and non-goals. +- [VISION.md](docs/specs/VISION.md): product philosophy and interaction principles. +- [REQUIREMENTS.md](docs/specs/REQUIREMENTS.md): functional and non-functional requirements. +- [USER_FLOW.md](docs/specs/USER_FLOW.md): screen-by-screen assistant flow. +- [ARCHITECTURE.md](docs/specs/ARCHITECTURE.md): app structure, modules, and state model. +- [UI_GUIDELINES.md](docs/specs/UI_GUIDELINES.md): per-OS interface rules. +- [DESIGN_SYSTEM.md](docs/specs/DESIGN_SYSTEM.md): reusable visual and component standards. +- [TERMINAL_AUTOMATION.md](docs/specs/TERMINAL_AUTOMATION.md): allowed commands, policies, and error recovery. +- [BOOTABLE_USB_ENGINE.md](docs/specs/BOOTABLE_USB_ENGINE.md): bootable media engine state machine. +- [VMWARE_INTEGRATION.md](docs/specs/VMWARE_INTEGRATION.md): virtualization detection and handoff behavior. - [SECURITY.md](SECURITY.md): local-only trust model and permission strategy. -- [ICON_GUIDELINES.md](ICON_GUIDELINES.md): app icon and interface icon direction. -- [AI_RULES.md](AI_RULES.md): implementation rules for coding agents. -- [ROADMAP.md](ROADMAP.md): phased delivery plan. +- [ICON_GUIDELINES.md](docs/specs/ICON_GUIDELINES.md): app icon and interface icon direction. +- [AI_RULES.md](docs/specs/AI_RULES.md): implementation rules for coding agents. +- [ROADMAP.md](docs/specs/ROADMAP.md): phased delivery plan. - [docs/adr/](docs/adr/): architecture decision records for the multi-platform evolution. - [docs/screen-inventory.yaml](docs/screen-inventory.yaml): canonical screen/step registry used for cross-platform parity checks. ## Contributing -Read [AI_RULES.md](AI_RULES.md) and [CONTRIBUTING.md](CONTRIBUTING.md) before +Read [AI_RULES.md](docs/specs/AI_RULES.md) and [CONTRIBUTING.md](CONTRIBUTING.md) before implementing a feature. Because the three UIs are separate native codebases sharing only the core engine, a user-visible feature must be reflected across all three (or explicitly tracked as pending) — see diff --git a/AI_RULES.md b/docs/specs/AI_RULES.md similarity index 100% rename from AI_RULES.md rename to docs/specs/AI_RULES.md diff --git a/ARCHITECTURE.md b/docs/specs/ARCHITECTURE.md similarity index 100% rename from ARCHITECTURE.md rename to docs/specs/ARCHITECTURE.md diff --git a/BOOTABLE_USB_ENGINE.md b/docs/specs/BOOTABLE_USB_ENGINE.md similarity index 100% rename from BOOTABLE_USB_ENGINE.md rename to docs/specs/BOOTABLE_USB_ENGINE.md diff --git a/DESIGN_SYSTEM.md b/docs/specs/DESIGN_SYSTEM.md similarity index 100% rename from DESIGN_SYSTEM.md rename to docs/specs/DESIGN_SYSTEM.md diff --git a/ICON_GUIDELINES.md b/docs/specs/ICON_GUIDELINES.md similarity index 100% rename from ICON_GUIDELINES.md rename to docs/specs/ICON_GUIDELINES.md diff --git a/PRODUCT.md b/docs/specs/PRODUCT.md similarity index 100% rename from PRODUCT.md rename to docs/specs/PRODUCT.md diff --git a/REQUIREMENTS.md b/docs/specs/REQUIREMENTS.md similarity index 100% rename from REQUIREMENTS.md rename to docs/specs/REQUIREMENTS.md diff --git a/ROADMAP.md b/docs/specs/ROADMAP.md similarity index 100% rename from ROADMAP.md rename to docs/specs/ROADMAP.md diff --git a/TERMINAL_AUTOMATION.md b/docs/specs/TERMINAL_AUTOMATION.md similarity index 100% rename from TERMINAL_AUTOMATION.md rename to docs/specs/TERMINAL_AUTOMATION.md diff --git a/UI_GUIDELINES.md b/docs/specs/UI_GUIDELINES.md similarity index 100% rename from UI_GUIDELINES.md rename to docs/specs/UI_GUIDELINES.md diff --git a/USER_FLOW.md b/docs/specs/USER_FLOW.md similarity index 100% rename from USER_FLOW.md rename to docs/specs/USER_FLOW.md diff --git a/VISION.md b/docs/specs/VISION.md similarity index 100% rename from VISION.md rename to docs/specs/VISION.md diff --git a/VMWARE_INTEGRATION.md b/docs/specs/VMWARE_INTEGRATION.md similarity index 100% rename from VMWARE_INTEGRATION.md rename to docs/specs/VMWARE_INTEGRATION.md diff --git a/Scripts/build-app.sh b/scripts/build-app.sh similarity index 93% rename from Scripts/build-app.sh rename to scripts/build-app.sh index 3ff31b0..4fd16c0 100755 --- a/Scripts/build-app.sh +++ b/scripts/build-app.sh @@ -2,7 +2,7 @@ # Build wInstaller.app, a real macOS application bundle, from the SwiftPM # executable target. macOS only. # -# Usage: Scripts/build-app.sh [output-dir] +# Usage: scripts/build-app.sh [output-dir] # Result: /wInstaller.app (default output-dir: ./build) set -euo pipefail @@ -26,7 +26,7 @@ cp "$ROOT/Sources/WInstallerApp/Info.plist" "$CONTENTS/Info.plist" # App icon: build the .icns if missing (needs the generated iconset). if [[ ! -f "$ROOT/Assets/AppIcon.icns" ]]; then echo "==> Building AppIcon.icns" - "$ROOT/Scripts/make-icns.sh" || echo "warning: could not build AppIcon.icns; app will use the default icon" + "$ROOT/scripts/make-icns.sh" || echo "warning: could not build AppIcon.icns; app will use the default icon" fi if [[ -f "$ROOT/Assets/AppIcon.icns" ]]; then cp "$ROOT/Assets/AppIcon.icns" "$CONTENTS/Resources/AppIcon.icns" diff --git a/Scripts/make-icns.sh b/scripts/make-icns.sh similarity index 100% rename from Scripts/make-icns.sh rename to scripts/make-icns.sh