chore: initial commit of Vorleser kit

This commit is contained in:
schihei committed 2026-11-01 15:38:29 +01:00
commit cf3f2678e1
62 files changed
+2350

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import AppKit
/// Lifecycle glue: composition root (T5.2), Services provider (T6.4), hotkeys (T6.3).
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
// T5.2: build AppEnvironment here.
// T6.4: NSApp.servicesProvider = servicesHandler; NSUpdateDynamicServices()
// T6.3: register KeyboardShortcuts handlers.
}
func applicationWillTerminate(_ notification: Notification) {
// T4.x: stop session, cancel synthesis, stop audio engine.
}
}
+1
View File
@@ -0,0 +1 @@
Created in milestone tasks — see docs/IMPLEMENTATION_PLAN.md.
+65
View File
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Vorleser</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<!-- Menu-bar agent: no Dock icon, no main menu. -->
<key>LSUIElement</key>
<true/>
<!-- Permits http:// to localhost / 127.0.0.1 only. Remote endpoints must use HTTPS (SP-5). -->
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<!-- Services menu entry point (docs/SELECTION_CAPTURE.md, Strategy 2). -->
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Read with Vorleser</string>
</dict>
<key>NSMessage</key>
<string>readSelection</string>
<key>NSPortName</key>
<string>Vorleser</string>
<key>NSSendTypes</key>
<array>
<string>public.utf8-plain-text</string>
<string>NSStringPboardType</string>
</array>
<key>NSRequiredContext</key>
<dict/>
</dict>
</array>
<!-- Intentionally NO usage-description keys for microphone, camera, screen recording,
input monitoring etc. (SP-10). Accessibility has no Info.plist key. -->
</dict>
</plist>
+1
View File
@@ -0,0 +1 @@
Created in milestone tasks — see docs/IMPLEMENTATION_PLAN.md.
+1
View File
@@ -0,0 +1 @@
Created in milestone tasks — see docs/IMPLEMENTATION_PLAN.md.
+1
View File
@@ -0,0 +1 @@
Created in milestone tasks — see docs/IMPLEMENTATION_PLAN.md.
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- ADR-003: App Sandbox is disabled because reading other apps' selections via
kAXSelectedTextAttribute requires Accessibility trust. Hardened Runtime is enabled
via ENABLE_HARDENED_RUNTIME in project.yml. No hardened-runtime exceptions. -->
<key>com.apple.security.app-sandbox</key>
<false/>
</dict>
</plist>
+25
View File
@@ -0,0 +1,25 @@
import SwiftUI
/// Entry point. Keep this file thin: scenes only, no business logic (ARCHITECTURE §3).
@main
struct VorleserApp: App {
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
var body: some Scene {
MenuBarExtra("Vorleser", systemImage: "text.bubble") {
// Replaced by MenuBar/StatusMenu.swift in T7.5.
Text("Vorleser")
Divider()
Button("Quit Vorleser") { NSApplication.shared.terminate(nil) }
.keyboardShortcut("q")
}
.menuBarExtraStyle(.menu)
Settings {
// Replaced by Settings/SettingsView.swift in T5.3.
Text("Settings")
.padding()
.frame(width: 420, height: 240)
}
}
}