INNER CODE UNIT · Python

main

viticci/shortcuts-playground-plugin · claude/skills/shortcuts-playground/scripts/generate_healthkit_reference.py:321

def main() -> int:
    root = Path(__file__).resolve().parents[1]
    sdk = sdk_path()
    headers = sdk / "System/Library/Frameworks/HealthKit.framework/Headers"
    types = parse_types(headers / "HKTypeIdentifiers.h")
    category_values = parse_category_values(headers / "HKCategoryValues.h")
    workouts = parse_workout_activity_types(headers / "HKWorkout.h")
    units = actionkit_units()

    payload = {
        "generated_on": date.today().isoformat(),
        "source": {
            "sdk_path": str(sdk),
            "headers": [
                "HealthKit/HKTypeIdentifiers.h",
                "HealthKit/HKCategoryValues.h",
                "HealthKit/HKWorkout.h",
            ],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…