oficina / memoria Public
| apple/ | ||
| ios/ | ||
| macos/ | ||
| scripts/ | ||
| .gitignore | ||
| LICENSE.lucide | ||
| PrivacyInfo.xcprivacy | ||
| README.md | ||
| REVIEW.md | ||
| UX-REVIEW.md | ||
| mac-updates.json |
Oficina Memoria for Apple platforms
Memoria provides permission-aware search, source passages and team note creation. Optional Apple Foundation Models generation runs on-device after a fresh server search, using up to five current passages. Search needs the team server; this is not an offline corpus. On unsupported devices search remains available.
The SwiftUI client supports macOS 14+, iOS 17+ and iPadOS 17+. Mac uses a split window with a sidebar, toolbar and form sheets; iPhone collapses navigation into native columns and sheets. iPad uses the wider split layout. Both appearances use system typography and controls. Credentials stay in the per-app Keychain; responses and generated answers are held in memory.
Every build is works.oficina.memoria (Sparkle Mac, App Store Mac and iOS); the iOS review fixture is works.oficina.memoria.review. Finder, the Dock, Spotlight and the home screen say "Oficina Memoria"; the app's own windows and the Mac menu bar say "Memoria" (PlainAppNameCommands, first in the Mac .commands, titles About, Hide, Quit and Help with it). build-mac.sh registers the works.oficina.memoria URL scheme on every build, so the browser's "Return to Memoria" link works in a plain development build. Pass --updates-config mac-updates.json only for a release: it turns on the live update feed, and a build carrying the feed with a low build number (the script defaults to build 1) is offered every published release.
Memoria's own strings are English only, so mac-updates.json declares "localizations": ["en"] and the app reads English throughout, the shared kit's menu and sign-in strings included. When Memoria's strings are translated, add those languages there and to CFBundleLocalizations in native/macos/project.yml.
The Mac app has no Settings scene yet. When one is added, give its content .navigationTitle("Memoria"): SwiftUI otherwise titles the window "Oficina Memoria Settings" (rastrillo/native docs/mac-updates.md).
Sparkle releases: the copy on Paul's Mac is net.amadan.oficina.memoria 0.1.0 build 1 with no SUFeedURL, so it cannot update itself and needs one manual reinstall. The feed's newest item is build 2, so the next release is build 3 or later, archived as works.oficina.memoria-<build>.zip. The Sparkle build updates quietly, as Calls and Calendar do. Quiet needs both halves: "install": "automatic" in mac-updates.json writes Sparkle's automatic check, download and install keys (daily checks, background download, install on quit, no first-launch question), and NativeUpdater(policy: .quiet) in MemoriaApp.swift keeps a scheduled check from opening a window. While a downloaded update waits, the app menu offers "Update Ready — Restart Memoria" and the window shows NativeUpdateNotice's one line. Releases up to 0.1.1 (3) had the keys but the default policy.
Build Mac with native/scripts/build-mac.sh; build the simulator app with native/scripts/build-iphone.sh. For a physical device use OFICINA_DEVELOPMENT_TEAM=<team> native/scripts/build-iphone.sh device. Generate the iOS project with xcodegen generate --spec native/ios/project.yml, then build MemoriaPhone in Xcode. Physical devices require your development team. The generated projects and build products are ignored.
The Swift package and the Go server module (go.mod, amadan.net/rastrillo/native/server) both pin Rastrillo Native main c989034602fd540531e845b0934864575be11b3e (native/apple/Package.swift). A repin puts one revision in all six places: native/apple/Package.swift, native/apple/Package.resolved, native/macos/project.yml, native/ios/project.yml, the generated native/macos/MemoriaMacStore.xcodeproj and go.mod (go get amadan.net/rastrillo/native/server@<sha>).
Browser sign-in requires the new backend /native/ routes. A server that has not received this update reports that native support is unavailable.
MemoriaReview is a test-only executable: it accepts a loopback fixture credential over stdin, renders the real workspace and captures its window. Set NATIVEREVIEWBINARY and NATIVEREVIEWOUTPUT when running go test ./internal/memoria -run TestNative to exercise it against the app's real test server. It is never included in the Mac or iOS app bundle.
For XCTest interaction checks against the isolated authenticated fixture, set NATIVE_REVIEW_SIMULATOR=<UDID> NATIVE_REVIEW_UI_TESTS=1 with a writable NATIVE_REVIEW_OUTPUT PNG path when running the native Go fixture test. First build/install the separate ReviewPhone target. The UI tests create and inspect fixture notes and never connect to a real account. Xcode result bundles are under native/build/ios/Logs/Test. Review credentials enter only the isolated review app's Documents directory and are removed when the fixture exits.