hex/ios/project.yml
Ryan Vogel f18790ef43 iOS: typing configs page, history and Export for your agent (experiment)
Steps 3 and 4 of the phone side, on the shared reader's latest (21cdab23).

- Settings › Keyboard › Typing configs (beside Vocabulary, only while the experiment is on):
  Hex defaults first, then every kept config newest first with its status (In use, Best so
  far, applied or opened when), Use on each row (one tap, deletes nothing), and Delete all.
  A config's page shows its facts (based on, made from another iPhone's typing), Use or
  Use Hex defaults instead, Rename, Share (the kept file, unchanged) and Delete, and its
  parts with their switches (TypingConfigParts, shared with the review sheet), applied at
  once while it is the one in use.
- History: never refuses a new config. At 20 the oldest that is neither active nor best so
  far goes, and the review names it before Apply (replaces the old refusal). Not now keeps
  the parts switched off. Records this phone's export ids.
- Experiment off: the sheet's first action is Turn on typing configs, which shows the
  review at once; Open Experiments stays as the quieter second.
- The review now reads the keyboards the Hex keyboard recorded (TypingConfigSettings
  .keyboards) instead of a keyboard the app built (TypingConfigKeyboard.swift removed), and
  each item's own list, position, evidence and cleaned text instead of indexing by path;
  the note is the review's cleaned one. With no keyboard recorded yet the sheet says so
  under For another keyboard. hiddenCharacters has its sentence. The active config is
  compiled again when Hex comes to the foreground and a keyboard was recorded since.
- Delete what Hex learned also deletes every typing config and goes back to Hex defaults;
  its confirmation says so.
- Export for your agent (Typing logs, experiment on): the warning sheet every time (design
  §5's wording, a variant for fewer days), the days to include, then one zip: the bundled
  package (ios/TypingConfig/package as a folder resource), the chosen logs and state/
  (phone.json as state.md defines it, the recorded keyboards' layout; vocabulary.json with
  each word's model cost and spell-checker answer). Deleted once the share sheet closes.
- Hex's own dictation (handed to Hex, Action Button) applies the active config's dictation
  fixes after Learn how I type's, never to a translated dictation (TypingConfigDictation).
- Strings in English and Simplified Chinese.

Verified on the Studio (iOS 27.2): TypingLogTests 15 of 15 (history at the limit, apply and go
back, dictation fixes off for translation); every screen on iPhone 17 Pro and iPhone SE (3rd
gen) in English and 简体中文; the export of two real days (6.6 MB of logs) is a 772 KB zip,
built in about 2.5 s from Continue; its state/ read by the package's overview.py; the share
sheet offers Copy, Save to Files and More (AirDrop and other apps don't show on the
simulator). Through the real
keyboard (Full Access granted in the simulator's TCC database, the keyboard's typing log and
Full Access report confirming it), a tap 3.35 pt inside r types R with Hex defaults and E with
a key-off config applied through the review sheet (e's right edge +0.2, word-rule evidence),
the keyboard closed and opened in between.
2026-11-23 14:18:41 -05:00

188 lines
No EOL
7 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: HEXMobile
options:
minimumXcodeGenVersion: 2.46.0
bundleIdPrefix: anomaly.hex
deploymentTarget:
iOS: "18.0"
xcodeVersion: "2660"
packages:
FluidAudio:
url: https://github.com/FluidInference/FluidAudio.git
exactVersion: 0.15.5
settings:
base:
DEVELOPMENT_TEAM: 5NZ4Q7NXJ4
SWIFT_VERSION: 6.0
# The compiler finds the interface's strings for the String Catalogs (Localizable.xcstrings).
SWIFT_EMIT_LOC_STRINGS: YES
LOCALIZATION_PREFERS_STRING_CATALOGS: YES
targets:
HEXMobile:
type: application
platform: iOS
sources:
- HEXMobile
- HEXShared
- HEXActivity
- path: ../app/AppIcon.icon
buildPhase: resources
# Typing configs' Export for your agent: the agent package, copied in as one folder.
- path: TypingConfig/package
type: folder
buildPhase: resources
dependencies:
- package: FluidAudio
- target: HEXKeyboard
embed: true
- target: HEXWidgets
embed: true
info:
path: HEXMobile/Info.plist
properties:
CFBundleDisplayName: Hex
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
CADisableMinimumFrameDurationOnPhone: true
# Typing configs (`.mhexconfig`, ios/TypingConfig): a file tapped in Files or opened
# from a share sheet opens Hex. Conforms to public.data, not public.json: a JSON-typed
# file AirDropped to an iPhone previews as text and never reaches the app.
CFBundleDocumentTypes:
- CFBundleTypeName: Hex typing config
CFBundleTypeRole: Viewer
LSHandlerRank: Owner
LSItemContentTypes:
- anomaly.hex.typing-config
LSSupportsOpeningDocumentsInPlace: true
UTExportedTypeDeclarations:
- UTTypeIdentifier: anomaly.hex.typing-config
UTTypeDescription: Hex typing config
UTTypeConformsTo:
- public.data
UTTypeTagSpecification:
public.filename-extension:
- mhexconfig
public.mime-type:
- application/vnd.anomaly.hex-typing-config
CFBundleURLTypes:
- CFBundleTypeRole: Editor
CFBundleURLName: anomaly.hex.mobile.keyboard-session
CFBundleURLSchemes:
- hex-dictation
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
NSSupportsLiveActivities: true
ITSAppUsesNonExemptEncryption: false
UIBackgroundModes:
- audio
UILaunchScreen:
UIColorName: LaunchBackground
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
UISupportedInterfaceOrientations~ipad:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
settings:
base:
ASSETCATALOG_COMPILER_ACCENT_COLOR_NAME: AccentColor
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
CODE_SIGN_STYLE: Automatic
CODE_SIGN_ENTITLEMENTS: HEXMobile/HEXMobile.entitlements
CURRENT_PROJECT_VERSION: 1
GENERATE_INFOPLIST_FILE: NO
MARKETING_VERSION: 9.0.0
TARGETED_DEVICE_FAMILY: "1"
OTHER_LDFLAGS: $(inherited) -weak_framework FoundationModels
OTHER_SWIFT_FLAGS: $(inherited) -Xfrontend -disable-autolink-framework -Xfrontend FoundationModels
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile
PRODUCT_NAME: HEX
scheme:
gatherCoverageData: false
testTargets:
- HEXMobileTests
HEXKeyboard:
type: app-extension
platform: iOS
sources:
- HEXKeyboard
- HEXShared
# The app's String Catalog, so the keyboard's words (the Hex key menu first) follow
# the iPhone's language where Hex is translated.
- HEXMobile/Localizable.xcstrings
dependencies:
# Experiments › Speech model in keyboard: Parakeet in the keyboard (KeyboardParakeet).
- package: FluidAudio
info:
path: HEXKeyboard/Info.plist
properties:
CFBundleDisplayName: Hex Keyboard
NSMicrophoneUsageDescription: Hex turns what you say into text on this iPhone. Audio never leaves it and is deleted once it's transcribed.
NSSpeechRecognitionUsageDescription: Hex uses Apple's on-device speech recognition to turn what you say into text. Nothing you say is sent to a server.
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
NSExtension:
NSExtensionAttributes:
IsASCIICapable: true
PrefersRightToLeft: false
PrimaryLanguage: mul
RequestsOpenAccess: true
NSExtensionPointIdentifier: com.apple.keyboard-service
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).KeyboardViewController
settings:
base:
APPLICATION_EXTENSION_API_ONLY: YES
CODE_SIGN_ENTITLEMENTS: HEXKeyboard/HEXKeyboard.entitlements
COREML_CODEGEN_LANGUAGE: None
CODE_SIGN_STYLE: Automatic
CURRENT_PROJECT_VERSION: 1
GENERATE_INFOPLIST_FILE: NO
MARKETING_VERSION: 9.0.0
TARGETED_DEVICE_FAMILY: "1"
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.keyboard
PRODUCT_NAME: HEXKeyboard
SKIP_INSTALL: YES
HEXWidgets:
type: app-extension
platform: iOS
sources:
- HEXWidgets
- HEXActivity
- HEXShared/HexTheme.swift
info:
path: HEXWidgets/Info.plist
properties:
CFBundleDisplayName: Hex
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
settings:
base:
APPLICATION_EXTENSION_API_ONLY: YES
CODE_SIGN_STYLE: Automatic
CURRENT_PROJECT_VERSION: 1
GENERATE_INFOPLIST_FILE: NO
MARKETING_VERSION: 9.0.0
TARGETED_DEVICE_FAMILY: "1"
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.widgets
PRODUCT_NAME: HEXWidgets
SKIP_INSTALL: YES
HEXMobileTests:
type: bundle.unit-test
platform: iOS
sources:
- HEXMobileTests
- path: ../tests/fixtures/vocabulary/audio/term-hex-1.wav
buildPhase: resources
dependencies:
- target: HEXMobile
settings:
base:
BUNDLE_LOADER: $(TEST_HOST)
CODE_SIGN_STYLE: Automatic
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: anomaly.hex.mobile.tests
TEST_HOST: $(BUILT_PRODUCTS_DIR)/HEX.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/HEX