mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-25 22:28:04 +00:00
Part 1 — Simplified Chinese localization of the iOS app layer: - ios/Hapi/Resources/Localizable.xcstrings: hand-authored String Catalog (395 keys, zh-Hans; en implicit as source). Terminology mined from web/src/lib/locales/zh-CN.ts (会话/新建会话/权限模式/允许/拒绝/工作树/ 机器/语音输入/用量/草稿夹 …). - Mechanical edits only: merged multi-part string concatenations into single LocalizedStringKey literals, converted ternary/plain-String user copy to String(localized:), switched helper params (detailRow, DashboardCard, optionPicker, notice) to LocalizedStringKey. - LocalizedNoticeMapper (app layer): display-point translation of the 27 known HapiKit-emitted strings (ChatInteractor notices, dictation errors, window-sync warnings, files fallbacks, worktree-name validation) with verbatim passthrough for server-originated text; package stays language-free. - Deliberately untranslated (web parity / non-copy): event rows (EventPresentation — web renders presentation.ts verbatim), catalog option labels (Default/Auto/Sonnet/permission modes — web shows them verbatim), tool names, code-like titles (grep(pattern:), MCP:, Skill, Task), unit suffixes (B/KB/MB, m/h/d/w), decorative separators. - Language row wired: AppLanguage gains .system (follow system, new default); explicit picks write the AppleLanguages override, Follow system removes it; footer notes a relaunch applies it (no supported in-place SwiftUI locale swap). - project.pbxproj: zh-Hans added to knownRegions. Part 2 — #39 catalog dedupe (HapiProtocol): - NewSessionCatalogs.claudeModels/claudeEfforts now derive from ClaudeModels/ClaudeEfforts (single source shared with ModelCatalog); codexReasoningEfforts stays own data (web CODEX_REASONING_EFFORT_OPTIONS minus max); effortLabel delegates to ModelCatalog.capitalizedFirst. - New CatalogTests lock test for the derived option lists. Gate: bash ios/scripts/linux-test.sh — 459 tests green.
325 lines
11 KiB
Plaintext
325 lines
11 KiB
Plaintext
// !$*UTF8*$!
|
|
{
|
|
archiveVersion = 1;
|
|
classes = {
|
|
};
|
|
objectVersion = 77;
|
|
objects = {
|
|
|
|
/* Begin PBXBuildFile section */
|
|
A100000000000000000000C4 /* HapiProtocol in Frameworks */ = {isa = PBXBuildFile; productRef = A100000000000000000000C2 /* HapiProtocol */; };
|
|
A100000000000000000000C5 /* HapiClient in Frameworks */ = {isa = PBXBuildFile; productRef = A100000000000000000000C3 /* HapiClient */; };
|
|
A100000000000000000000C8 /* HapiUI in Frameworks */ = {isa = PBXBuildFile; productRef = A100000000000000000000C7 /* HapiUI */; };
|
|
/* End PBXBuildFile section */
|
|
|
|
/* Begin PBXFileReference section */
|
|
A100000000000000000000A4 /* Hapi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Hapi.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
/* End PBXFileReference section */
|
|
|
|
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
|
A100000000000000000000C6 /* Exceptions for "Hapi" folder in "Hapi" target */ = {
|
|
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
|
|
membershipExceptions = (
|
|
Info.plist,
|
|
);
|
|
target = A100000000000000000000A5 /* Hapi */;
|
|
};
|
|
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
|
|
|
|
/* Begin PBXFileSystemSynchronizedRootGroup section */
|
|
A100000000000000000000A2 /* Hapi */ = {
|
|
isa = PBXFileSystemSynchronizedRootGroup;
|
|
exceptions = (
|
|
A100000000000000000000C6 /* Exceptions for "Hapi" folder in "Hapi" target */,
|
|
);
|
|
explicitFileTypes = {
|
|
};
|
|
explicitFolders = (
|
|
);
|
|
path = Hapi;
|
|
sourceTree = "<group>";
|
|
};
|
|
/* End PBXFileSystemSynchronizedRootGroup section */
|
|
|
|
/* Begin PBXFrameworksBuildPhase section */
|
|
A100000000000000000000A8 /* Frameworks */ = {
|
|
isa = PBXFrameworksBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
A100000000000000000000C4 /* HapiProtocol in Frameworks */,
|
|
A100000000000000000000C5 /* HapiClient in Frameworks */,
|
|
A100000000000000000000C8 /* HapiUI in Frameworks */,
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
/* End PBXFrameworksBuildPhase section */
|
|
|
|
/* Begin PBXGroup section */
|
|
A100000000000000000000A1 = {
|
|
isa = PBXGroup;
|
|
children = (
|
|
A100000000000000000000A2 /* Hapi */,
|
|
A100000000000000000000A3 /* Products */,
|
|
);
|
|
sourceTree = "<group>";
|
|
};
|
|
A100000000000000000000A3 /* Products */ = {
|
|
isa = PBXGroup;
|
|
children = (
|
|
A100000000000000000000A4 /* Hapi.app */,
|
|
);
|
|
name = Products;
|
|
sourceTree = "<group>";
|
|
};
|
|
/* End PBXGroup section */
|
|
|
|
/* Begin PBXNativeTarget section */
|
|
A100000000000000000000A5 /* Hapi */ = {
|
|
isa = PBXNativeTarget;
|
|
buildConfigurationList = A100000000000000000000B4 /* Build configuration list for PBXNativeTarget "Hapi" */;
|
|
buildPhases = (
|
|
A100000000000000000000A7 /* Sources */,
|
|
A100000000000000000000A8 /* Frameworks */,
|
|
A100000000000000000000A9 /* Resources */,
|
|
);
|
|
buildRules = (
|
|
);
|
|
dependencies = (
|
|
);
|
|
fileSystemSynchronizedGroups = (
|
|
A100000000000000000000A2 /* Hapi */,
|
|
);
|
|
name = Hapi;
|
|
packageProductDependencies = (
|
|
A100000000000000000000C2 /* HapiProtocol */,
|
|
A100000000000000000000C3 /* HapiClient */,
|
|
A100000000000000000000C7 /* HapiUI */,
|
|
);
|
|
productName = Hapi;
|
|
productReference = A100000000000000000000A4 /* Hapi.app */;
|
|
productType = "com.apple.product-type.application";
|
|
};
|
|
/* End PBXNativeTarget section */
|
|
|
|
/* Begin PBXProject section */
|
|
A100000000000000000000A6 /* Project object */ = {
|
|
isa = PBXProject;
|
|
attributes = {
|
|
BuildIndependentTargetsInParallel = 1;
|
|
LastSwiftUpdateCheck = 1600;
|
|
LastUpgradeCheck = 1600;
|
|
TargetAttributes = {
|
|
A100000000000000000000A5 = {
|
|
CreatedOnToolsVersion = 16.0;
|
|
};
|
|
};
|
|
};
|
|
buildConfigurationList = A100000000000000000000B1 /* Build configuration list for PBXProject "Hapi" */;
|
|
developmentRegion = en;
|
|
hasScannedForEncodings = 0;
|
|
knownRegions = (
|
|
en,
|
|
Base,
|
|
"zh-Hans",
|
|
);
|
|
mainGroup = A100000000000000000000A1;
|
|
minimizedProjectReferenceProxies = 1;
|
|
packageReferences = (
|
|
A100000000000000000000C1 /* XCLocalSwiftPackageReference "Packages/HapiKit" */,
|
|
);
|
|
preferredProjectObjectVersion = 77;
|
|
productRefGroup = A100000000000000000000A3 /* Products */;
|
|
projectDirPath = "";
|
|
projectRoot = "";
|
|
targets = (
|
|
A100000000000000000000A5 /* Hapi */,
|
|
);
|
|
};
|
|
/* End PBXProject section */
|
|
|
|
/* Begin PBXResourcesBuildPhase section */
|
|
A100000000000000000000A9 /* Resources */ = {
|
|
isa = PBXResourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
/* End PBXResourcesBuildPhase section */
|
|
|
|
/* Begin PBXSourcesBuildPhase section */
|
|
A100000000000000000000A7 /* Sources */ = {
|
|
isa = PBXSourcesBuildPhase;
|
|
buildActionMask = 2147483647;
|
|
files = (
|
|
);
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
};
|
|
/* End PBXSourcesBuildPhase section */
|
|
|
|
/* Begin XCBuildConfiguration section */
|
|
A100000000000000000000B2 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
CLANG_ANALYZER_NONNULL = YES;
|
|
CLANG_ENABLE_MODULES = YES;
|
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
COPY_PHASE_STRIP = NO;
|
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
ENABLE_TESTABILITY = YES;
|
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
GCC_DYNAMIC_NO_PIC = NO;
|
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
GCC_OPTIMIZATION_LEVEL = 0;
|
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
"DEBUG=1",
|
|
"$(inherited)",
|
|
);
|
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
MTL_FAST_MATH = YES;
|
|
ONLY_ACTIVE_ARCH = YES;
|
|
SDKROOT = iphoneos;
|
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
|
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
SWIFT_VERSION = 5.0;
|
|
};
|
|
name = Debug;
|
|
};
|
|
A100000000000000000000B3 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
CLANG_ANALYZER_NONNULL = YES;
|
|
CLANG_ENABLE_MODULES = YES;
|
|
CLANG_ENABLE_OBJC_ARC = YES;
|
|
COPY_PHASE_STRIP = NO;
|
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
ENABLE_NS_ASSERTIONS = NO;
|
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
GCC_C_LANGUAGE_STANDARD = gnu17;
|
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
|
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
MTL_FAST_MATH = YES;
|
|
SDKROOT = iphoneos;
|
|
SWIFT_COMPILATION_MODE = wholemodule;
|
|
SWIFT_VERSION = 5.0;
|
|
VALIDATE_PRODUCT = YES;
|
|
};
|
|
name = Release;
|
|
};
|
|
A100000000000000000000B5 /* Debug */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_FILE = Hapi/Info.plist;
|
|
INFOPLIST_KEY_CFBundleDisplayName = HAPI;
|
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/Frameworks",
|
|
);
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = run.hapi.companion;
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
SWIFT_VERSION = 5.0;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
};
|
|
name = Debug;
|
|
};
|
|
A100000000000000000000B6 /* Release */ = {
|
|
isa = XCBuildConfiguration;
|
|
buildSettings = {
|
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
|
CODE_SIGN_STYLE = Automatic;
|
|
CURRENT_PROJECT_VERSION = 1;
|
|
ENABLE_PREVIEWS = YES;
|
|
GENERATE_INFOPLIST_FILE = YES;
|
|
INFOPLIST_FILE = Hapi/Info.plist;
|
|
INFOPLIST_KEY_CFBundleDisplayName = HAPI;
|
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
|
|
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
|
|
LD_RUNPATH_SEARCH_PATHS = (
|
|
"$(inherited)",
|
|
"@executable_path/Frameworks",
|
|
);
|
|
MARKETING_VERSION = 1.0;
|
|
PRODUCT_BUNDLE_IDENTIFIER = run.hapi.companion;
|
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
|
SWIFT_VERSION = 5.0;
|
|
TARGETED_DEVICE_FAMILY = "1,2";
|
|
};
|
|
name = Release;
|
|
};
|
|
/* End XCBuildConfiguration section */
|
|
|
|
/* Begin XCConfigurationList section */
|
|
A100000000000000000000B1 /* Build configuration list for PBXProject "Hapi" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
A100000000000000000000B2 /* Debug */,
|
|
A100000000000000000000B3 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
A100000000000000000000B4 /* Build configuration list for PBXNativeTarget "Hapi" */ = {
|
|
isa = XCConfigurationList;
|
|
buildConfigurations = (
|
|
A100000000000000000000B5 /* Debug */,
|
|
A100000000000000000000B6 /* Release */,
|
|
);
|
|
defaultConfigurationIsVisible = 0;
|
|
defaultConfigurationName = Release;
|
|
};
|
|
/* End XCConfigurationList section */
|
|
|
|
/* Begin XCLocalSwiftPackageReference section */
|
|
A100000000000000000000C1 /* XCLocalSwiftPackageReference "Packages/HapiKit" */ = {
|
|
isa = XCLocalSwiftPackageReference;
|
|
relativePath = Packages/HapiKit;
|
|
};
|
|
/* End XCLocalSwiftPackageReference section */
|
|
|
|
/* Begin XCSwiftPackageProductDependency section */
|
|
A100000000000000000000C2 /* HapiProtocol */ = {
|
|
isa = XCSwiftPackageProductDependency;
|
|
productName = HapiProtocol;
|
|
};
|
|
A100000000000000000000C3 /* HapiClient */ = {
|
|
isa = XCSwiftPackageProductDependency;
|
|
productName = HapiClient;
|
|
};
|
|
A100000000000000000000C7 /* HapiUI */ = {
|
|
isa = XCSwiftPackageProductDependency;
|
|
productName = HapiUI;
|
|
};
|
|
/* End XCSwiftPackageProductDependency section */
|
|
};
|
|
rootObject = A100000000000000000000A6 /* Project object */;
|
|
}
|