@mmerterden/multi-agent-pipeline 24.3.2 → 24.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/README.md +9 -2
- package/README.tr.md +9 -2
- package/docs/architecture.md +1 -1
- package/docs/ecosystem.md +7 -1
- package/docs/facts.json +3 -2
- package/install/_common.mjs +21 -1
- package/install/_dev-only-files.mjs +3 -0
- package/install/_external-source.mjs +174 -0
- package/install/_platform-filter.mjs +18 -17
- package/install/_plugin-skills.mjs +8 -21
- package/install/_rewrite-tree.mjs +5 -1
- package/install/claude.mjs +18 -15
- package/install/codex.mjs +96 -37
- package/install/copilot.mjs +35 -13
- package/install/index.mjs +82 -14
- package/manifest.json +40 -826
- package/package.json +4 -2
- package/pipeline/commands/multi-agent/update/SKILL.md +20 -13
- package/pipeline/lib/low-disk.mjs +33 -1
- package/pipeline/lib/plugins-source.mjs +206 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +12 -5
- package/pipeline/multi-agent-refs/sync/repo.md +1 -1
- package/pipeline/multi-agent-refs/sync/stack-plugins.md +12 -0
- package/pipeline/office/index.html +5076 -793
- package/pipeline/schemas/plugins-pin.json +204 -0
- package/pipeline/schemas/plugins-pin.schema.json +38 -0
- package/pipeline/schemas/prefs.schema.json +134 -48
- package/pipeline/scripts/_active-run.mjs +31 -14
- package/pipeline/scripts/disk-cleaner.mjs +1 -1
- package/pipeline/scripts/gen-facts.mjs +9 -4
- package/pipeline/scripts/gen-plugins-pin.mjs +172 -0
- package/pipeline/scripts/office-build.mjs +14 -1
- package/pipeline/scripts/pre-push-check.sh +6 -5
- package/pipeline/scripts/smoke-cross-cli-behavior.sh +9 -0
- package/pipeline/scripts/task-mirror.mjs +16 -2
- package/pipeline/skills/.skill-manifest.json +2 -2
- package/pipeline/skills/shared/external/accessibility-compliance-accessibility-audit/SKILL.md +0 -147
- package/pipeline/skills/shared/external/accessibility-compliance-accessibility-audit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/agent-introspection-debugging/SKILL.md +0 -66
- package/pipeline/skills/shared/external/agent-introspection-debugging/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/alarmkit/SKILL.md +0 -341
- package/pipeline/skills/shared/external/alarmkit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/alarmkit/references/alarmkit-code.md +0 -257
- package/pipeline/skills/shared/external/alarmkit/references/alarmkit-patterns.md +0 -555
- package/pipeline/skills/shared/external/android-architecture/SKILL.md +0 -438
- package/pipeline/skills/shared/external/android-architecture/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-architecture/references/code-examples.md +0 -68
- package/pipeline/skills/shared/external/android-architecture/references/patterns.md +0 -148
- package/pipeline/skills/shared/external/android-build-quality-gates/SKILL.md +0 -362
- package/pipeline/skills/shared/external/android-build-quality-gates/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-build-quality-gates/references/patterns.md +0 -451
- package/pipeline/skills/shared/external/android-datastore/SKILL.md +0 -237
- package/pipeline/skills/shared/external/android-datastore/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-datastore/references/patterns.md +0 -308
- package/pipeline/skills/shared/external/android-design-tokens-codegen/SKILL.md +0 -250
- package/pipeline/skills/shared/external/android-design-tokens-codegen/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/android-design-tokens-codegen/references/patterns.md +0 -278
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/SKILL.md +0 -140
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/android-jetpack-compose-expert/references/patterns.md +0 -153
- package/pipeline/skills/shared/external/android-mvi-viewmodel/SKILL.md +0 -296
- package/pipeline/skills/shared/external/android-mvi-viewmodel/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-mvi-viewmodel/references/patterns.md +0 -267
- package/pipeline/skills/shared/external/android-performance/SKILL.md +0 -247
- package/pipeline/skills/shared/external/android-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/android-performance/references/patterns.md +0 -672
- package/pipeline/skills/shared/external/android-security/SKILL.md +0 -266
- package/pipeline/skills/shared/external/android-security/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/android-security/references/patterns.md +0 -706
- package/pipeline/skills/shared/external/api-patterns/SKILL.md +0 -117
- package/pipeline/skills/shared/external/api-patterns/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/api-patterns/references/contract-details.md +0 -137
- package/pipeline/skills/shared/external/api-security-best-practices/SKILL.md +0 -162
- package/pipeline/skills/shared/external/api-security-best-practices/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/api-security-best-practices/references/abuse-controls.md +0 -152
- package/pipeline/skills/shared/external/api-security-best-practices/references/identity-and-access.md +0 -220
- package/pipeline/skills/shared/external/api-security-best-practices/references/operations.md +0 -66
- package/pipeline/skills/shared/external/api-security-best-practices/references/request-handling.md +0 -187
- package/pipeline/skills/shared/external/app-clips/SKILL.md +0 -269
- package/pipeline/skills/shared/external/app-clips/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/app-clips/references/data-handoff-notifications-location.md +0 -211
- package/pipeline/skills/shared/external/app-clips/references/routing-and-experiences.md +0 -185
- package/pipeline/skills/shared/external/app-clips/references/size-capabilities-and-promotion.md +0 -181
- package/pipeline/skills/shared/external/app-intents/SKILL.md +0 -405
- package/pipeline/skills/shared/external/app-intents/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/app-intents/references/appintents-advanced.md +0 -1018
- package/pipeline/skills/shared/external/app-intents/references/code-examples.md +0 -54
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +0 -317
- package/pipeline/skills/shared/external/app-store-optimization/evals/evals.json +0 -63
- package/pipeline/skills/shared/external/app-store-optimization/references/engagement-and-localization.md +0 -96
- package/pipeline/skills/shared/external/app-store-optimization/references/keyword-research-methodology.md +0 -169
- package/pipeline/skills/shared/external/app-store-optimization/references/product-page-variants.md +0 -178
- package/pipeline/skills/shared/external/app-store-release-notes/SKILL.md +0 -92
- package/pipeline/skills/shared/external/app-store-release-notes/evals/evals.json +0 -40
- package/pipeline/skills/shared/external/app-store-release-notes/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/app-store-release-notes/references/release-notes-guidelines.md +0 -64
- package/pipeline/skills/shared/external/app-store-release-notes/scripts/collect_release_changes.sh +0 -31
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +0 -311
- package/pipeline/skills/shared/external/app-store-review/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/app-store-review/references/monetization-and-submission.md +0 -138
- package/pipeline/skills/shared/external/app-store-review/references/privacy-manifest.md +0 -161
- package/pipeline/skills/shared/external/app-store-review/references/review-checklists.md +0 -151
- package/pipeline/skills/shared/external/apple-on-device-ai/SKILL.md +0 -361
- package/pipeline/skills/shared/external/apple-on-device-ai/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/apple-on-device-ai/references/coreml-conversion.md +0 -346
- package/pipeline/skills/shared/external/apple-on-device-ai/references/coreml-optimization.md +0 -269
- package/pipeline/skills/shared/external/apple-on-device-ai/references/foundation-models-code.md +0 -186
- package/pipeline/skills/shared/external/apple-on-device-ai/references/foundation-models.md +0 -440
- package/pipeline/skills/shared/external/apple-on-device-ai/references/mlx-swift.md +0 -292
- package/pipeline/skills/shared/external/architecture/SKILL.md +0 -125
- package/pipeline/skills/shared/external/architecture/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/architecture/references/adr-and-review.md +0 -76
- package/pipeline/skills/shared/external/authentication/SKILL.md +0 -343
- package/pipeline/skills/shared/external/authentication/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/authentication/references/code-examples.md +0 -59
- package/pipeline/skills/shared/external/authentication/references/keychain-biometric.md +0 -204
- package/pipeline/skills/shared/external/authentication/references/passkeys.md +0 -158
- package/pipeline/skills/shared/external/avkit/SKILL.md +0 -402
- package/pipeline/skills/shared/external/avkit/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/avkit/references/avkit-patterns.md +0 -563
- package/pipeline/skills/shared/external/background-processing/SKILL.md +0 -390
- package/pipeline/skills/shared/external/background-processing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/background-processing/references/background-task-patterns.md +0 -276
- package/pipeline/skills/shared/external/backlog/BACKLOG.md +0 -32
- package/pipeline/skills/shared/external/backlog/SKILL.md +0 -77
- package/pipeline/skills/shared/external/backlog/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/build-settings-audit/SKILL.md +0 -81
- package/pipeline/skills/shared/external/build-settings-audit/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-settings-audit/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/build-settings-audit/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-settings-audit/references/project-audit-checks.md +0 -146
- package/pipeline/skills/shared/external/build-settings-audit/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-benchmark/SKILL.md +0 -97
- package/pipeline/skills/shared/external/build-time-benchmark/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/build-time-benchmark/references/benchmark-artifacts.md +0 -96
- package/pipeline/skills/shared/external/build-time-benchmark/references/benchmarking-workflow.md +0 -59
- package/pipeline/skills/shared/external/build-time-benchmark/schemas/build-benchmark.schema.json +0 -123
- package/pipeline/skills/shared/external/build-time-benchmark/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-fixes/SKILL.md +0 -227
- package/pipeline/skills/shared/external/build-time-fixes/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-time-fixes/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-time-fixes/references/fix-patterns.md +0 -342
- package/pipeline/skills/shared/external/build-time-fixes/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-fixes/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-optimizer/SKILL.md +0 -168
- package/pipeline/skills/shared/external/build-time-optimizer/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/build-time-optimizer/references/benchmark-artifacts.md +0 -96
- package/pipeline/skills/shared/external/build-time-optimizer/references/build-settings-best-practices.md +0 -131
- package/pipeline/skills/shared/external/build-time-optimizer/references/orchestration-report-template.md +0 -193
- package/pipeline/skills/shared/external/build-time-optimizer/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/benchmark_builds.py +0 -334
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/diagnose_compilation.py +0 -266
- package/pipeline/skills/shared/external/build-time-optimizer/scripts/generate_optimization_report.py +0 -408
- package/pipeline/skills/shared/external/callkit-voip/SKILL.md +0 -341
- package/pipeline/skills/shared/external/callkit-voip/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/callkit-voip/references/callkit-patterns.md +0 -286
- package/pipeline/skills/shared/external/callkit-voip/references/code-examples.md +0 -93
- package/pipeline/skills/shared/external/ci-cd-pipelines/SKILL.md +0 -209
- package/pipeline/skills/shared/external/ci-cd-pipelines/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ci-cd-pipelines/references/pipeline-examples.md +0 -261
- package/pipeline/skills/shared/external/clean-code/SKILL.md +0 -163
- package/pipeline/skills/shared/external/clean-code/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/clean-code/references/code-examples.md +0 -56
- package/pipeline/skills/shared/external/cloudkit-sync/SKILL.md +0 -316
- package/pipeline/skills/shared/external/cloudkit-sync/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/cloudkit-sync/references/cloudkit-code.md +0 -214
- package/pipeline/skills/shared/external/cloudkit-sync/references/cloudkit-patterns.md +0 -351
- package/pipeline/skills/shared/external/compose-components/SKILL.md +0 -417
- package/pipeline/skills/shared/external/compose-components/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/compose-components/references/code-examples.md +0 -89
- package/pipeline/skills/shared/external/compose-components/references/patterns.md +0 -207
- package/pipeline/skills/shared/external/compose-navigation/SKILL.md +0 -441
- package/pipeline/skills/shared/external/compose-navigation/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/compose-navigation/references/code-examples.md +0 -70
- package/pipeline/skills/shared/external/compose-navigation/references/patterns.md +0 -198
- package/pipeline/skills/shared/external/compose-testing/SKILL.md +0 -246
- package/pipeline/skills/shared/external/compose-testing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/compose-testing/references/patterns.md +0 -646
- package/pipeline/skills/shared/external/contacts-framework/SKILL.md +0 -298
- package/pipeline/skills/shared/external/contacts-framework/evals/evals.json +0 -39
- package/pipeline/skills/shared/external/contacts-framework/references/contacts-patterns.md +0 -279
- package/pipeline/skills/shared/external/context-compression/SKILL.md +0 -134
- package/pipeline/skills/shared/external/context-compression/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/core-bluetooth/SKILL.md +0 -350
- package/pipeline/skills/shared/external/core-bluetooth/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-bluetooth/references/ble-patterns.md +0 -390
- package/pipeline/skills/shared/external/core-data/SKILL.md +0 -284
- package/pipeline/skills/shared/external/core-data/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-data/references/core-data-code.md +0 -221
- package/pipeline/skills/shared/external/core-motion/SKILL.md +0 -334
- package/pipeline/skills/shared/external/core-motion/evals/evals.json +0 -53
- package/pipeline/skills/shared/external/core-motion/references/motion-patterns.md +0 -346
- package/pipeline/skills/shared/external/core-nfc/SKILL.md +0 -357
- package/pipeline/skills/shared/external/core-nfc/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/core-nfc/references/code-examples.md +0 -98
- package/pipeline/skills/shared/external/core-nfc/references/nfc-patterns.md +0 -367
- package/pipeline/skills/shared/external/coreml/SKILL.md +0 -340
- package/pipeline/skills/shared/external/coreml/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/coreml/references/coreml-code.md +0 -208
- package/pipeline/skills/shared/external/coreml/references/coreml-swift-integration.md +0 -827
- package/pipeline/skills/shared/external/council/SKILL.md +0 -66
- package/pipeline/skills/shared/external/council/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/cryptokit/SKILL.md +0 -354
- package/pipeline/skills/shared/external/cryptokit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/cryptokit/references/cryptokit-patterns.md +0 -429
- package/pipeline/skills/shared/external/css-modern/SKILL.md +0 -347
- package/pipeline/skills/shared/external/css-modern/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/css-modern/references/code-examples.md +0 -149
- package/pipeline/skills/shared/external/database-patterns/SKILL.md +0 -241
- package/pipeline/skills/shared/external/database-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/database-patterns/references/orm-examples.md +0 -152
- package/pipeline/skills/shared/external/debugging-instruments/SKILL.md +0 -401
- package/pipeline/skills/shared/external/debugging-instruments/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/debugging-instruments/references/instruments-guide.md +0 -263
- package/pipeline/skills/shared/external/debugging-instruments/references/lldb-patterns.md +0 -259
- package/pipeline/skills/shared/external/debugging-strategies/SKILL.md +0 -151
- package/pipeline/skills/shared/external/debugging-strategies/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/debugging-strategies/references/hard-cases.md +0 -54
- package/pipeline/skills/shared/external/device-integrity/SKILL.md +0 -322
- package/pipeline/skills/shared/external/device-integrity/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/device-integrity/references/device-integrity-patterns.md +0 -215
- package/pipeline/skills/shared/external/disk-cleaner/SKILL.md +0 -124
- package/pipeline/skills/shared/external/disk-cleaner/evals/evals.json +0 -62
- package/pipeline/skills/shared/external/disk-cleaner/scripts/disk-cleaner.mjs +0 -2018
- package/pipeline/skills/shared/external/docker-expert/SKILL.md +0 -169
- package/pipeline/skills/shared/external/docker-expert/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/docker-expert/references/patterns.md +0 -98
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +0 -148
- package/pipeline/skills/shared/external/e2e-testing/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/e2e-testing/references/document-fixtures.md +0 -65
- package/pipeline/skills/shared/external/energykit/SKILL.md +0 -333
- package/pipeline/skills/shared/external/energykit/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/energykit/references/energykit-patterns.md +0 -297
- package/pipeline/skills/shared/external/eventkit-calendar/SKILL.md +0 -377
- package/pipeline/skills/shared/external/eventkit-calendar/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/eventkit-calendar/references/eventkit-patterns.md +0 -283
- package/pipeline/skills/shared/external/evidence-github/SKILL.md +0 -47
- package/pipeline/skills/shared/external/evidence-github/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/evidence-registry/SKILL.md +0 -35
- package/pipeline/skills/shared/external/evidence-registry/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/fastapi-pro/SKILL.md +0 -120
- package/pipeline/skills/shared/external/fastapi-pro/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/fastapi-pro/references/app-structure.md +0 -245
- package/pipeline/skills/shared/external/fastapi-pro/references/testing-and-deployment.md +0 -69
- package/pipeline/skills/shared/external/firebase-integration/SKILL.md +0 -140
- package/pipeline/skills/shared/external/firebase-integration/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/firebase-integration/references/functions-and-products.md +0 -51
- package/pipeline/skills/shared/external/firebase-integration/references/security-rules.md +0 -59
- package/pipeline/skills/shared/external/fix-review-verdicts/SKILL.md +0 -136
- package/pipeline/skills/shared/external/fix-review-verdicts/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/free-llm-apis/SKILL.md +0 -70
- package/pipeline/skills/shared/external/free-llm-apis/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/free-llm-apis/references/providers.md +0 -34
- package/pipeline/skills/shared/external/github-actions-templates/SKILL.md +0 -192
- package/pipeline/skills/shared/external/github-actions-templates/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/github-actions-templates/references/patterns.md +0 -96
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/SKILL.md +0 -226
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/evals/evals.json +0 -58
- package/pipeline/skills/shared/external/gradle-kotlin-dsl/references/patterns.md +0 -732
- package/pipeline/skills/shared/external/handle-request/SKILL.md +0 -97
- package/pipeline/skills/shared/external/handle-request/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/healthkit/SKILL.md +0 -382
- package/pipeline/skills/shared/external/healthkit/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/healthkit/references/healthkit-patterns.md +0 -541
- package/pipeline/skills/shared/external/hig-app-icons/SKILL.md +0 -159
- package/pipeline/skills/shared/external/hig-app-icons/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/hig-app-icons/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/hig-app-icons/references/icon-workflow.md +0 -125
- package/pipeline/skills/shared/external/hig-components-content/SKILL.md +0 -78
- package/pipeline/skills/shared/external/hig-components-content/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-content/references/content-views.md +0 -121
- package/pipeline/skills/shared/external/hig-components-layout/SKILL.md +0 -114
- package/pipeline/skills/shared/external/hig-components-layout/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/hig-components-layout/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/hig-components-layout/references/bars-and-tabs.md +0 -242
- package/pipeline/skills/shared/external/hig-components-layout/references/containers.md +0 -73
- package/pipeline/skills/shared/external/hig-components-status/SKILL.md +0 -154
- package/pipeline/skills/shared/external/hig-components-status/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-system/SKILL.md +0 -80
- package/pipeline/skills/shared/external/hig-components-system/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/hig-components-system/references/surfaces.md +0 -98
- package/pipeline/skills/shared/external/hig-foundations/SKILL.md +0 -85
- package/pipeline/skills/shared/external/hig-foundations/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/hig-foundations/evals/trigger-eval.json +0 -21
- package/pipeline/skills/shared/external/hig-foundations/references/foundations-detail.md +0 -153
- package/pipeline/skills/shared/external/hig-foundations/references/type-color-spacing.md +0 -232
- package/pipeline/skills/shared/external/hig-inputs/SKILL.md +0 -152
- package/pipeline/skills/shared/external/hig-inputs/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/hig-patterns/SKILL.md +0 -99
- package/pipeline/skills/shared/external/hig-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/hig-patterns/references/onboarding-and-states.md +0 -199
- package/pipeline/skills/shared/external/hig-patterns/references/patterns.md +0 -86
- package/pipeline/skills/shared/external/hig-platforms/SKILL.md +0 -163
- package/pipeline/skills/shared/external/hig-platforms/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/hig-platforms/references/ipad-layout.md +0 -230
- package/pipeline/skills/shared/external/hig-technologies/SKILL.md +0 -65
- package/pipeline/skills/shared/external/hig-technologies/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/hig-technologies/references/technologies.md +0 -124
- package/pipeline/skills/shared/external/homekit-matter/SKILL.md +0 -385
- package/pipeline/skills/shared/external/homekit-matter/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/homekit-matter/references/matter-commissioning.md +0 -363
- package/pipeline/skills/shared/external/html-semantic/SKILL.md +0 -263
- package/pipeline/skills/shared/external/html-semantic/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/html-semantic/references/code-examples.md +0 -54
- package/pipeline/skills/shared/external/humanizer/SKILL.md +0 -204
- package/pipeline/skills/shared/external/humanizer/evals/evals.json +0 -59
- package/pipeline/skills/shared/external/humanizer/references/turkish.md +0 -88
- package/pipeline/skills/shared/external/humanizer/references/voice.md +0 -24
- package/pipeline/skills/shared/external/ink-animation/SKILL.md +0 -230
- package/pipeline/skills/shared/external/ink-animation/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/ios-accessibility/SKILL.md +0 -333
- package/pipeline/skills/shared/external/ios-accessibility/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/ios-accessibility/references/a11y-patterns.md +0 -470
- package/pipeline/skills/shared/external/ios-accessibility/references/assistive-tech-review.md +0 -224
- package/pipeline/skills/shared/external/ios-accessibility/references/large-content-and-appearance.md +0 -144
- package/pipeline/skills/shared/external/ios-accessibility/references/media-accessibility.md +0 -156
- package/pipeline/skills/shared/external/ios-accessibility/references/nutrition-labels.md +0 -212
- package/pipeline/skills/shared/external/ios-coding-standard/SKILL.md +0 -119
- package/pipeline/skills/shared/external/ios-coding-standard/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ios-coding-standard/modules/_TEMPLATE.yml +0 -82
- package/pipeline/skills/shared/external/ios-coding-standard/references/STANDARD.md +0 -629
- package/pipeline/skills/shared/external/ios-coding-standard/references/lint-local.sh +0 -172
- package/pipeline/skills/shared/external/ios-coding-standard/references/rules.yml +0 -1959
- package/pipeline/skills/shared/external/ios-coding-standard/references/swiftlint.draft.yml +0 -370
- package/pipeline/skills/shared/external/ios-design-review/SKILL.md +0 -146
- package/pipeline/skills/shared/external/ios-design-review/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/ios-design-review/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-design-review/references/appearance-matrix.md +0 -144
- package/pipeline/skills/shared/external/ios-design-review/references/checklist.md +0 -208
- package/pipeline/skills/shared/external/ios-haptics/SKILL.md +0 -191
- package/pipeline/skills/shared/external/ios-haptics/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-haptics/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-haptics/references/core-haptics.md +0 -226
- package/pipeline/skills/shared/external/ios-iphone-duo/SKILL.md +0 -178
- package/pipeline/skills/shared/external/ios-iphone-duo/evals/evals.json +0 -65
- package/pipeline/skills/shared/external/ios-iphone-duo/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-iphone-duo/references/api-map.md +0 -223
- package/pipeline/skills/shared/external/ios-iphone-duo/references/fixed-assumptions.md +0 -217
- package/pipeline/skills/shared/external/ios-iphone-duo/references/poses-and-panes.md +0 -133
- package/pipeline/skills/shared/external/ios-localization/SKILL.md +0 -343
- package/pipeline/skills/shared/external/ios-localization/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-localization/references/code-examples.md +0 -30
- package/pipeline/skills/shared/external/ios-localization/references/formatstyle-locale.md +0 -454
- package/pipeline/skills/shared/external/ios-localization/references/string-catalogs.md +0 -463
- package/pipeline/skills/shared/external/ios-module-structure/SKILL.md +0 -102
- package/pipeline/skills/shared/external/ios-module-structure/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/ios-module-structure/modules/_TEMPLATE.yml +0 -152
- package/pipeline/skills/shared/external/ios-module-structure/references/rules.yml +0 -673
- package/pipeline/skills/shared/external/ios-module-structure/scripts/check_structure.py +0 -827
- package/pipeline/skills/shared/external/ios-networking/SKILL.md +0 -359
- package/pipeline/skills/shared/external/ios-networking/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/ios-networking/references/background-websocket.md +0 -662
- package/pipeline/skills/shared/external/ios-networking/references/code-examples.md +0 -67
- package/pipeline/skills/shared/external/ios-networking/references/file-storage-patterns.md +0 -219
- package/pipeline/skills/shared/external/ios-networking/references/lightweight-clients.md +0 -141
- package/pipeline/skills/shared/external/ios-networking/references/network-framework.md +0 -375
- package/pipeline/skills/shared/external/ios-networking/references/urlsession-patterns.md +0 -832
- package/pipeline/skills/shared/external/ios-security/SKILL.md +0 -438
- package/pipeline/skills/shared/external/ios-security/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/ios-security/references/app-review-guidelines.md +0 -182
- package/pipeline/skills/shared/external/ios-security/references/code-examples.md +0 -84
- package/pipeline/skills/shared/external/ios-security/references/cryptokit-advanced.md +0 -311
- package/pipeline/skills/shared/external/ios-security/references/file-storage-patterns.md +0 -362
- package/pipeline/skills/shared/external/ios-security/references/privacy-manifest.md +0 -126
- package/pipeline/skills/shared/external/ios-sf-symbols/SKILL.md +0 -177
- package/pipeline/skills/shared/external/ios-sf-symbols/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/ios-sf-symbols/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/ios-sf-symbols/references/effects-and-custom-symbols.md +0 -144
- package/pipeline/skills/shared/external/ios-simulator/SKILL.md +0 -359
- package/pipeline/skills/shared/external/ios-simulator/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/ios-simulator/references/simctl-commands.md +0 -236
- package/pipeline/skills/shared/external/ios-simulator-debugging/SKILL.md +0 -99
- package/pipeline/skills/shared/external/ios-simulator-debugging/evals/evals.json +0 -41
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/SKILL.md +0 -153
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/references/patterns.md +0 -111
- package/pipeline/skills/shared/external/live-activities/SKILL.md +0 -363
- package/pipeline/skills/shared/external/live-activities/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/live-activities/references/activitykit-patterns.md +0 -742
- package/pipeline/skills/shared/external/live-activities/references/code-examples.md +0 -108
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +0 -88
- package/pipeline/skills/shared/external/localization-reuse-map/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/localization-reuse-map/example-mapping.json +0 -188
- package/pipeline/skills/shared/external/localization-reuse-map/references/format-and-output.md +0 -135
- package/pipeline/skills/shared/external/localization-reuse-map/references/project-settings.md +0 -22
- package/pipeline/skills/shared/external/localization-reuse-map/references/publish-and-snapshot.md +0 -78
- package/pipeline/skills/shared/external/localization-reuse-map/references/sources-and-recipes.md +0 -154
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/_shared.py +0 -201
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/build-artifact.py +0 -838
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/build-spreadsheet.py +0 -298
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/fetch-annotations.py +0 -291
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/fetch-legacy-labels.py +0 -114
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/publish-confluence.py +0 -224
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/render-key-shots.py +0 -234
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/render-overlay.py +0 -551
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/resolve-legacy-values.py +0 -191
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/resolve-new-values.py +0 -160
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/scan-screen-keys.py +0 -166
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/snapshot-resources.sh +0 -29
- package/pipeline/skills/shared/external/localization-reuse-map/scripts/verify-map.py +0 -163
- package/pipeline/skills/shared/external/macos-app-distribution/SKILL.md +0 -149
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Package.swift +0 -17
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Sources/MyApp/MyApp.swift +0 -24
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/Sources/MyApp/Resources/.keep +0 -0
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/bootstrap/version.env +0 -4
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/build_icon.sh +0 -56
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/compile_and_run.sh +0 -84
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/launch.sh +0 -35
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/make_appcast.sh +0 -97
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/package_app.sh +0 -265
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/setup_dev_signing.sh +0 -63
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/sign-and-notarize.sh +0 -83
- package/pipeline/skills/shared/external/macos-app-distribution/assets/templates/version.env +0 -4
- package/pipeline/skills/shared/external/macos-app-distribution/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/macos-app-distribution/evals/trigger-eval.json +0 -10
- package/pipeline/skills/shared/external/macos-app-distribution/references/packaging.md +0 -49
- package/pipeline/skills/shared/external/macos-app-distribution/references/release.md +0 -57
- package/pipeline/skills/shared/external/macos-app-distribution/references/scaffold.md +0 -109
- package/pipeline/skills/shared/external/macos-menubar-utility/SKILL.md +0 -206
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/evals.json +0 -52
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/trigger-eval.json +0 -10
- package/pipeline/skills/shared/external/mapkit-location/SKILL.md +0 -371
- package/pipeline/skills/shared/external/mapkit-location/evals/evals.json +0 -51
- package/pipeline/skills/shared/external/mapkit-location/references/code-examples.md +0 -117
- package/pipeline/skills/shared/external/mapkit-location/references/mapkit-corelocation-patterns.md +0 -639
- package/pipeline/skills/shared/external/mapkit-location/references/mapkit-patterns.md +0 -712
- package/pipeline/skills/shared/external/metrickit-diagnostics/SKILL.md +0 -255
- package/pipeline/skills/shared/external/metrickit-diagnostics/evals/evals.json +0 -49
- package/pipeline/skills/shared/external/metrickit-diagnostics/references/metrickit-patterns.md +0 -183
- package/pipeline/skills/shared/external/monorepo-architect/SKILL.md +0 -166
- package/pipeline/skills/shared/external/monorepo-architect/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/monorepo-architect/references/patterns.md +0 -70
- package/pipeline/skills/shared/external/musickit-audio/SKILL.md +0 -298
- package/pipeline/skills/shared/external/musickit-audio/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/musickit-audio/references/musickit-patterns.md +0 -303
- package/pipeline/skills/shared/external/natural-language/SKILL.md +0 -292
- package/pipeline/skills/shared/external/natural-language/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/natural-language/references/translation-patterns.md +0 -282
- package/pipeline/skills/shared/external/nextjs-routing/SKILL.md +0 -333
- package/pipeline/skills/shared/external/nextjs-routing/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/nextjs-routing/references/app-router-examples.md +0 -127
- package/pipeline/skills/shared/external/nodejs-backend-patterns/SKILL.md +0 -104
- package/pipeline/skills/shared/external/nodejs-backend-patterns/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/nodejs-backend-patterns/references/runtime-patterns.md +0 -258
- package/pipeline/skills/shared/external/nodejs-backend-patterns/references/testing-and-frameworks.md +0 -57
- package/pipeline/skills/shared/external/observability-engineer/SKILL.md +0 -158
- package/pipeline/skills/shared/external/observability-engineer/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/observability-engineer/references/patterns.md +0 -75
- package/pipeline/skills/shared/external/package-build-audit/SKILL.md +0 -114
- package/pipeline/skills/shared/external/package-build-audit/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/package-build-audit/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/package-build-audit/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/package-build-audit/references/spm-analysis-checks.md +0 -126
- package/pipeline/skills/shared/external/package-build-audit/scripts/check_spm_pins.py +0 -123
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +0 -367
- package/pipeline/skills/shared/external/passkit-wallet/evals/evals.json +0 -52
- package/pipeline/skills/shared/external/passkit-wallet/references/wallet-passes.md +0 -249
- package/pipeline/skills/shared/external/pdfkit/SKILL.md +0 -468
- package/pipeline/skills/shared/external/pdfkit/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/pdfkit/references/pdfkit-patterns.md +0 -651
- package/pipeline/skills/shared/external/pencilkit-drawing/SKILL.md +0 -367
- package/pipeline/skills/shared/external/pencilkit-drawing/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/pencilkit-drawing/references/pencilkit-patterns.md +0 -279
- package/pipeline/skills/shared/external/permissionkit/SKILL.md +0 -359
- package/pipeline/skills/shared/external/permissionkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/permissionkit/references/code-examples.md +0 -37
- package/pipeline/skills/shared/external/permissionkit/references/permissionkit-patterns.md +0 -374
- package/pipeline/skills/shared/external/photos-camera-media/SKILL.md +0 -451
- package/pipeline/skills/shared/external/photos-camera-media/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/photos-camera-media/references/av-playback.md +0 -470
- package/pipeline/skills/shared/external/photos-camera-media/references/camera-capture.md +0 -544
- package/pipeline/skills/shared/external/photos-camera-media/references/image-loading-caching.md +0 -539
- package/pipeline/skills/shared/external/photos-camera-media/references/photokit-patterns.md +0 -465
- package/pipeline/skills/shared/external/play-store-review/SKILL.md +0 -284
- package/pipeline/skills/shared/external/play-store-review/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/play-store-review/references/signing-and-policies.md +0 -83
- package/pipeline/skills/shared/external/push-notifications/SKILL.md +0 -359
- package/pipeline/skills/shared/external/push-notifications/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/push-notifications/references/notification-code.md +0 -176
- package/pipeline/skills/shared/external/push-notifications/references/notification-patterns.md +0 -523
- package/pipeline/skills/shared/external/push-notifications/references/rich-notifications.md +0 -541
- package/pipeline/skills/shared/external/python-patterns/SKILL.md +0 -235
- package/pipeline/skills/shared/external/python-patterns/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/python-patterns/references/python-examples.md +0 -176
- package/pipeline/skills/shared/external/react-best-practices/SKILL.md +0 -293
- package/pipeline/skills/shared/external/react-best-practices/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/realitykit-ar/SKILL.md +0 -327
- package/pipeline/skills/shared/external/realitykit-ar/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/realitykit-ar/references/realitykit-patterns.md +0 -365
- package/pipeline/skills/shared/external/release-video/SKILL.md +0 -147
- package/pipeline/skills/shared/external/release-video/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/rest-api-design/SKILL.md +0 -239
- package/pipeline/skills/shared/external/rest-api-design/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/rest-api-design/references/api-examples.md +0 -233
- package/pipeline/skills/shared/external/retrofit-networking/SKILL.md +0 -219
- package/pipeline/skills/shared/external/retrofit-networking/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/retrofit-networking/references/patterns.md +0 -654
- package/pipeline/skills/shared/external/reverse-engineer-own-app/SKILL.md +0 -230
- package/pipeline/skills/shared/external/reverse-engineer-own-app/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/room-database/SKILL.md +0 -227
- package/pipeline/skills/shared/external/room-database/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/room-database/references/patterns.md +0 -630
- package/pipeline/skills/shared/external/scenario-gap-analysis/SKILL.md +0 -129
- package/pipeline/skills/shared/external/scenario-gap-analysis/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/scenario-gap-analysis/references/scenario-schema.md +0 -60
- package/pipeline/skills/shared/external/search-first/SKILL.md +0 -73
- package/pipeline/skills/shared/external/search-first/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/security-review/SKILL.md +0 -76
- package/pipeline/skills/shared/external/security-review/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/security-review/references/agentic-systems.md +0 -93
- package/pipeline/skills/shared/external/security-review/references/firebase-rules.md +0 -100
- package/pipeline/skills/shared/external/security-review/references/graphql.md +0 -82
- package/pipeline/skills/shared/external/security-review/references/llm-prompt-injection.md +0 -93
- package/pipeline/skills/shared/external/security-review/references/oauth-oidc.md +0 -100
- package/pipeline/skills/shared/external/security-review/references/owasp-mobile-top10-2024.md +0 -53
- package/pipeline/skills/shared/external/security-review/references/owasp-web-api-top10-2021.md +0 -56
- package/pipeline/skills/shared/external/security-review/references/supabase.md +0 -73
- package/pipeline/skills/shared/external/shareplay-activities/SKILL.md +0 -329
- package/pipeline/skills/shared/external/shareplay-activities/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/shareplay-activities/references/shareplay-patterns.md +0 -453
- package/pipeline/skills/shared/external/short-video-craft/SKILL.md +0 -177
- package/pipeline/skills/shared/external/short-video-craft/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/short-video-craft/references/generated-defaults.md +0 -24
- package/pipeline/skills/shared/external/signal-community/SKILL.md +0 -78
- package/pipeline/skills/shared/external/signal-community/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/skill-creator/SKILL.md +0 -88
- package/pipeline/skills/shared/external/skill-creator/audit.md +0 -63
- package/pipeline/skills/shared/external/skill-creator/checklist.md +0 -40
- package/pipeline/skills/shared/external/skill-creator/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/skill-creator/examples.md +0 -65
- package/pipeline/skills/shared/external/skill-creator/label-check.md +0 -55
- package/pipeline/skills/shared/external/skill-creator/scripts/audit-panel.js +0 -110
- package/pipeline/skills/shared/external/skill-creator/template.md +0 -83
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +0 -118
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +0 -443
- package/pipeline/skills/shared/external/speech-recognition/SKILL.md +0 -296
- package/pipeline/skills/shared/external/speech-recognition/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/speech-recognition/references/speechanalyzer-patterns.md +0 -189
- package/pipeline/skills/shared/external/store-screenshots/SKILL.md +0 -441
- package/pipeline/skills/shared/external/store-screenshots/evals/evals.json +0 -115
- package/pipeline/skills/shared/external/store-screenshots/references/frames.md +0 -141
- package/pipeline/skills/shared/external/storekit/SKILL.md +0 -296
- package/pipeline/skills/shared/external/storekit/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/storekit/references/app-review-guidelines.md +0 -98
- package/pipeline/skills/shared/external/storekit/references/core-patterns.md +0 -445
- package/pipeline/skills/shared/external/storekit/references/storekit-advanced.md +0 -542
- package/pipeline/skills/shared/external/swift-api-design-guidelines/SKILL.md +0 -326
- package/pipeline/skills/shared/external/swift-api-design-guidelines/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/argument-labels-and-parameters.md +0 -171
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/conventions-and-special-rules.md +0 -156
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/naming-and-clarity.md +0 -156
- package/pipeline/skills/shared/external/swift-api-design-guidelines/references/side-effects-and-mutating-pairs.md +0 -123
- package/pipeline/skills/shared/external/swift-architecture/SKILL.md +0 -269
- package/pipeline/skills/shared/external/swift-architecture/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/swift-architecture/references/pattern-examples.md +0 -295
- package/pipeline/skills/shared/external/swift-charts/SKILL.md +0 -314
- package/pipeline/skills/shared/external/swift-charts/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swift-charts/references/charts-patterns.md +0 -589
- package/pipeline/skills/shared/external/swift-codable/SKILL.md +0 -360
- package/pipeline/skills/shared/external/swift-codable/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swift-codable/references/codable-recipes.md +0 -207
- package/pipeline/skills/shared/external/swift-compile-hotspots/SKILL.md +0 -93
- package/pipeline/skills/shared/external/swift-compile-hotspots/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/build-optimization-sources.md +0 -119
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/code-compilation-checks.md +0 -126
- package/pipeline/skills/shared/external/swift-compile-hotspots/references/recommendation-format.md +0 -95
- package/pipeline/skills/shared/external/swift-compile-hotspots/scripts/diagnose_compilation.py +0 -266
- package/pipeline/skills/shared/external/swift-concurrency/SKILL.md +0 -296
- package/pipeline/skills/shared/external/swift-concurrency/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swift-concurrency/references/approachable-concurrency.md +0 -72
- package/pipeline/skills/shared/external/swift-concurrency/references/async-algorithms.md +0 -77
- package/pipeline/skills/shared/external/swift-concurrency/references/bridging-interop.md +0 -213
- package/pipeline/skills/shared/external/swift-concurrency/references/code-examples.md +0 -100
- package/pipeline/skills/shared/external/swift-concurrency/references/concurrency-patterns.md +0 -236
- package/pipeline/skills/shared/external/swift-concurrency/references/diagnostics.md +0 -64
- package/pipeline/skills/shared/external/swift-concurrency/references/swift-6-2-additions.md +0 -18
- package/pipeline/skills/shared/external/swift-concurrency/references/swiftui-concurrency.md +0 -170
- package/pipeline/skills/shared/external/swift-concurrency/references/synchronization-primitives.md +0 -293
- package/pipeline/skills/shared/external/swift-concurrency-fix/SKILL.md +0 -123
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/evals.json +0 -54
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/approachable-concurrency.md +0 -67
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/swift-6-2-concurrency.md +0 -214
- package/pipeline/skills/shared/external/swift-concurrency-fix/references/swiftui-concurrency-tour-wwdc.md +0 -79
- package/pipeline/skills/shared/external/swift-concurrency-review/SKILL.md +0 -148
- package/pipeline/skills/shared/external/swift-concurrency-review/evals/evals.json +0 -57
- package/pipeline/skills/shared/external/swift-concurrency-review/references/actors.md +0 -170
- package/pipeline/skills/shared/external/swift-concurrency-review/references/async-streams.md +0 -66
- package/pipeline/skills/shared/external/swift-concurrency-review/references/bridging.md +0 -100
- package/pipeline/skills/shared/external/swift-concurrency-review/references/bug-patterns.md +0 -138
- package/pipeline/skills/shared/external/swift-concurrency-review/references/cancellation.md +0 -114
- package/pipeline/skills/shared/external/swift-concurrency-review/references/diagnostics.md +0 -93
- package/pipeline/skills/shared/external/swift-concurrency-review/references/hotspots.md +0 -63
- package/pipeline/skills/shared/external/swift-concurrency-review/references/interop.md +0 -146
- package/pipeline/skills/shared/external/swift-concurrency-review/references/new-features.md +0 -256
- package/pipeline/skills/shared/external/swift-concurrency-review/references/structured.md +0 -113
- package/pipeline/skills/shared/external/swift-concurrency-review/references/testing.md +0 -244
- package/pipeline/skills/shared/external/swift-concurrency-review/references/unstructured.md +0 -69
- package/pipeline/skills/shared/external/swift-formatstyle/SKILL.md +0 -296
- package/pipeline/skills/shared/external/swift-formatstyle/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swift-formatstyle/references/formatstyle-examples.md +0 -113
- package/pipeline/skills/shared/external/swift-language/SKILL.md +0 -406
- package/pipeline/skills/shared/external/swift-language/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swift-language/references/code-examples.md +0 -65
- package/pipeline/skills/shared/external/swift-language/references/swift-attributes-interop.md +0 -127
- package/pipeline/skills/shared/external/swift-language/references/swift-patterns-extended.md +0 -489
- package/pipeline/skills/shared/external/swift-security/SKILL.md +0 -217
- package/pipeline/skills/shared/external/swift-security/evals/evals.json +0 -48
- package/pipeline/skills/shared/external/swift-security/references/biometric-authentication.md +0 -456
- package/pipeline/skills/shared/external/swift-security/references/certificate-trust.md +0 -563
- package/pipeline/skills/shared/external/swift-security/references/common-anti-patterns.md +0 -457
- package/pipeline/skills/shared/external/swift-security/references/compliance-owasp-mapping.md +0 -382
- package/pipeline/skills/shared/external/swift-security/references/credential-storage-patterns.md +0 -773
- package/pipeline/skills/shared/external/swift-security/references/cryptokit-public-key.md +0 -485
- package/pipeline/skills/shared/external/swift-security/references/cryptokit-symmetric.md +0 -445
- package/pipeline/skills/shared/external/swift-security/references/keychain-access-control.md +0 -438
- package/pipeline/skills/shared/external/swift-security/references/keychain-fundamentals.md +0 -521
- package/pipeline/skills/shared/external/swift-security/references/keychain-item-classes.md +0 -531
- package/pipeline/skills/shared/external/swift-security/references/keychain-sharing.md +0 -417
- package/pipeline/skills/shared/external/swift-security/references/migration-legacy-stores.md +0 -530
- package/pipeline/skills/shared/external/swift-security/references/secure-enclave.md +0 -522
- package/pipeline/skills/shared/external/swift-security/references/testing-security-code.md +0 -569
- package/pipeline/skills/shared/external/swift-testing/SKILL.md +0 -280
- package/pipeline/skills/shared/external/swift-testing/evals/evals.json +0 -46
- package/pipeline/skills/shared/external/swift-testing/references/testing-advanced.md +0 -129
- package/pipeline/skills/shared/external/swift-testing/references/testing-patterns.md +0 -540
- package/pipeline/skills/shared/external/swift-testing-review/SKILL.md +0 -118
- package/pipeline/skills/shared/external/swift-testing-review/evals/evals.json +0 -59
- package/pipeline/skills/shared/external/swift-testing-review/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swift-testing-review/references/async-tests.md +0 -256
- package/pipeline/skills/shared/external/swift-testing-review/references/core-rules.md +0 -114
- package/pipeline/skills/shared/external/swift-testing-review/references/migrating-from-xctest.md +0 -51
- package/pipeline/skills/shared/external/swift-testing-review/references/new-features.md +0 -322
- package/pipeline/skills/shared/external/swift-testing-review/references/writing-better-tests.md +0 -293
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +0 -379
- package/pipeline/skills/shared/external/swiftdata/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftdata/references/code-examples.md +0 -140
- package/pipeline/skills/shared/external/swiftdata/references/core-data-coexistence.md +0 -316
- package/pipeline/skills/shared/external/swiftdata/references/indexing.md +0 -82
- package/pipeline/skills/shared/external/swiftdata/references/predicate-pitfalls.md +0 -78
- package/pipeline/skills/shared/external/swiftdata/references/swiftdata-advanced.md +0 -603
- package/pipeline/skills/shared/external/swiftdata/references/swiftdata-queries.md +0 -479
- package/pipeline/skills/shared/external/swiftdata-review/SKILL.md +0 -119
- package/pipeline/skills/shared/external/swiftdata-review/evals/evals.json +0 -50
- package/pipeline/skills/shared/external/swiftdata-review/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/swiftdata-review/references/cloudkit.md +0 -37
- package/pipeline/skills/shared/external/swiftdata-review/references/indexing.md +0 -33
- package/pipeline/skills/shared/external/swiftdata-review/references/inheritance.md +0 -127
- package/pipeline/skills/shared/external/swiftdata-review/references/model-rules.md +0 -141
- package/pipeline/skills/shared/external/swiftdata-review/references/predicates.md +0 -67
- package/pipeline/skills/shared/external/swiftlint/SKILL.md +0 -288
- package/pipeline/skills/shared/external/swiftlint/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftlint/references/adoption-and-configuration.md +0 -241
- package/pipeline/skills/shared/external/swiftlint/references/custom-rules-and-analyze.md +0 -168
- package/pipeline/skills/shared/external/swiftlint/references/plugins-run-scripts-and-integrations.md +0 -300
- package/pipeline/skills/shared/external/swiftlint/references/rule-reference.md +0 -424
- package/pipeline/skills/shared/external/swiftlint/references/rules-suppressions-and-baselines.md +0 -232
- package/pipeline/skills/shared/external/swiftui-animation/SKILL.md +0 -401
- package/pipeline/skills/shared/external/swiftui-animation/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftui-animation/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/swiftui-animation/references/animation-advanced.md +0 -562
- package/pipeline/skills/shared/external/swiftui-animation/references/core-animation-bridge.md +0 -519
- package/pipeline/skills/shared/external/swiftui-animation/references/scroll-effects.md +0 -197
- package/pipeline/skills/shared/external/swiftui-feature-builder/SKILL.md +0 -105
- package/pipeline/skills/shared/external/swiftui-feature-builder/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/accessibility-patterns.md +0 -208
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-advanced.md +0 -140
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-basics.md +0 -229
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/animation-transitions.md +0 -216
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/charts-accessibility.md +0 -186
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/charts.md +0 -559
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/image-optimization.md +0 -189
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/latest-apis.md +0 -361
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/layout-best-practices.md +0 -238
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/liquid-glass.md +0 -33
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/list-patterns.md +0 -346
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-scenes.md +0 -258
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-views.md +0 -270
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/macos-window-styling.md +0 -216
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/performance-patterns.md +0 -364
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/scroll-patterns.md +0 -209
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/sheet-navigation-patterns.md +0 -307
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/state-management.md +0 -371
- package/pipeline/skills/shared/external/swiftui-feature-builder/references/view-structure.md +0 -342
- package/pipeline/skills/shared/external/swiftui-flow-recipes/SKILL.md +0 -110
- package/pipeline/skills/shared/external/swiftui-flow-recipes/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/app-wiring.md +0 -218
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/async-state.md +0 -111
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/components-index.md +0 -63
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/controls.md +0 -58
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/deeplinks.md +0 -77
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/focus.md +0 -118
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/form.md +0 -114
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/grids.md +0 -69
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/haptics.md +0 -9
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/input-toolbar.md +0 -64
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/lightweight-clients.md +0 -119
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/list.md +0 -85
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/loading-placeholders.md +0 -49
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/macos-settings.md +0 -71
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/matched-transitions.md +0 -76
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/media.md +0 -81
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/menu-bar.md +0 -115
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/navigationstack.md +0 -185
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/overlay.md +0 -48
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/performance.md +0 -64
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/previews.md +0 -48
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/scroll-reveal.md +0 -138
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/scrollview.md +0 -94
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/searchable.md +0 -86
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/sheets.md +0 -198
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/split-views.md +0 -75
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/tabview.md +0 -124
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/theming.md +0 -76
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/title-menus.md +0 -83
- package/pipeline/skills/shared/external/swiftui-flow-recipes/references/top-bar.md +0 -65
- package/pipeline/skills/shared/external/swiftui-gestures/SKILL.md +0 -364
- package/pipeline/skills/shared/external/swiftui-gestures/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-gestures/references/gesture-patterns.md +0 -364
- package/pipeline/skills/shared/external/swiftui-glass-effects/SKILL.md +0 -247
- package/pipeline/skills/shared/external/swiftui-glass-effects/evals/evals.json +0 -47
- package/pipeline/skills/shared/external/swiftui-glass-effects/evals/trigger-eval.json +0 -22
- package/pipeline/skills/shared/external/swiftui-glass-effects/references/liquid-glass.md +0 -468
- package/pipeline/skills/shared/external/swiftui-glass-effects/references/uikit-glass.md +0 -241
- package/pipeline/skills/shared/external/swiftui-layout-components/SKILL.md +0 -353
- package/pipeline/skills/shared/external/swiftui-layout-components/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-layout-components/references/form.md +0 -123
- package/pipeline/skills/shared/external/swiftui-layout-components/references/grids.md +0 -179
- package/pipeline/skills/shared/external/swiftui-layout-components/references/list.md +0 -87
- package/pipeline/skills/shared/external/swiftui-layout-components/references/scrollview.md +0 -161
- package/pipeline/skills/shared/external/swiftui-navigation/SKILL.md +0 -297
- package/pipeline/skills/shared/external/swiftui-navigation/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-navigation/references/deeplinks.md +0 -206
- package/pipeline/skills/shared/external/swiftui-navigation/references/navigationstack.md +0 -187
- package/pipeline/skills/shared/external/swiftui-navigation/references/sheets.md +0 -217
- package/pipeline/skills/shared/external/swiftui-navigation/references/tabview.md +0 -161
- package/pipeline/skills/shared/external/swiftui-patterns/SKILL.md +0 -460
- package/pipeline/skills/shared/external/swiftui-patterns/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/swiftui-patterns/references/architecture-patterns.md +0 -581
- package/pipeline/skills/shared/external/swiftui-patterns/references/deprecated-migration.md +0 -965
- package/pipeline/skills/shared/external/swiftui-patterns/references/platform-and-sharing.md +0 -634
- package/pipeline/skills/shared/external/swiftui-performance/SKILL.md +0 -314
- package/pipeline/skills/shared/external/swiftui-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-performance/references/demystify-swiftui-performance-wwdc23.md +0 -142
- package/pipeline/skills/shared/external/swiftui-performance/references/optimizing-swiftui-performance-instruments.md +0 -139
- package/pipeline/skills/shared/external/swiftui-performance/references/understanding-hangs-in-your-app.md +0 -156
- package/pipeline/skills/shared/external/swiftui-performance/references/understanding-improving-swiftui-performance.md +0 -99
- package/pipeline/skills/shared/external/swiftui-performance/references/wwdc-session-sources.md +0 -21
- package/pipeline/skills/shared/external/swiftui-performance-triage/SKILL.md +0 -107
- package/pipeline/skills/shared/external/swiftui-performance-triage/evals/evals.json +0 -55
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/audit-layout.md +0 -50
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/capture-checklist.md +0 -51
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/hangs.md +0 -34
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/instruments-guide.md +0 -68
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/smell-catalog.md +0 -191
- package/pipeline/skills/shared/external/swiftui-performance-triage/references/update-model.md +0 -69
- package/pipeline/skills/shared/external/swiftui-review/SKILL.md +0 -111
- package/pipeline/skills/shared/external/swiftui-review/evals/evals.json +0 -45
- package/pipeline/skills/shared/external/swiftui-review/references/accessibility.md +0 -40
- package/pipeline/skills/shared/external/swiftui-review/references/api.md +0 -84
- package/pipeline/skills/shared/external/swiftui-review/references/data.md +0 -63
- package/pipeline/skills/shared/external/swiftui-review/references/design.md +0 -45
- package/pipeline/skills/shared/external/swiftui-review/references/hygiene.md +0 -18
- package/pipeline/skills/shared/external/swiftui-review/references/navigation.md +0 -24
- package/pipeline/skills/shared/external/swiftui-review/references/performance.md +0 -62
- package/pipeline/skills/shared/external/swiftui-review/references/swift.md +0 -84
- package/pipeline/skills/shared/external/swiftui-review/references/views.md +0 -60
- package/pipeline/skills/shared/external/swiftui-uikit-interop/SKILL.md +0 -311
- package/pipeline/skills/shared/external/swiftui-uikit-interop/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/hosting-migration.md +0 -361
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/interop-code.md +0 -198
- package/pipeline/skills/shared/external/swiftui-uikit-interop/references/representable-recipes.md +0 -747
- package/pipeline/skills/shared/external/swiftui-view-splitting/SKILL.md +0 -242
- package/pipeline/skills/shared/external/swiftui-view-splitting/evals/evals.json +0 -56
- package/pipeline/skills/shared/external/swiftui-view-splitting/references/mv-patterns.md +0 -188
- package/pipeline/skills/shared/external/swiftui-webkit/SKILL.md +0 -229
- package/pipeline/skills/shared/external/swiftui-webkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/swiftui-webkit/references/loading-and-observation.md +0 -148
- package/pipeline/skills/shared/external/swiftui-webkit/references/local-content-and-custom-schemes.md +0 -98
- package/pipeline/skills/shared/external/swiftui-webkit/references/migration-and-fallbacks.md +0 -97
- package/pipeline/skills/shared/external/swiftui-webkit/references/navigation-and-javascript.md +0 -147
- package/pipeline/skills/shared/external/tailwind-styling/SKILL.md +0 -240
- package/pipeline/skills/shared/external/tailwind-styling/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/tailwind-styling/evals/trigger-eval.json +0 -11
- package/pipeline/skills/shared/external/tailwind-styling/references/code-examples.md +0 -91
- package/pipeline/skills/shared/external/test-result-triage/SKILL.md +0 -160
- package/pipeline/skills/shared/external/test-result-triage/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/testing-backend/SKILL.md +0 -196
- package/pipeline/skills/shared/external/testing-backend/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/testing-backend/references/testing-examples.md +0 -266
- package/pipeline/skills/shared/external/thesis-writing/SKILL.md +0 -140
- package/pipeline/skills/shared/external/thesis-writing/evals/evals.json +0 -40
- package/pipeline/skills/shared/external/thesis-writing/references/review-checklist.md +0 -33
- package/pipeline/skills/shared/external/thesis-writing/references/turkish-thesis-conventions.md +0 -65
- package/pipeline/skills/shared/external/tipkit/SKILL.md +0 -381
- package/pipeline/skills/shared/external/tipkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/tipkit/references/tipkit-patterns.md +0 -658
- package/pipeline/skills/shared/external/typescript-patterns/SKILL.md +0 -258
- package/pipeline/skills/shared/external/typescript-patterns/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/typescript-patterns/references/code-examples.md +0 -100
- package/pipeline/skills/shared/external/valven-rules/SKILL.md +0 -93
- package/pipeline/skills/shared/external/valven-rules/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/valven-rules/references/rules.yml +0 -186
- package/pipeline/skills/shared/external/vision-framework/SKILL.md +0 -346
- package/pipeline/skills/shared/external/vision-framework/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/vision-framework/references/code-examples.md +0 -26
- package/pipeline/skills/shared/external/vision-framework/references/vision-requests.md +0 -631
- package/pipeline/skills/shared/external/vision-framework/references/visionkit-scanner.md +0 -573
- package/pipeline/skills/shared/external/vue-composition/SKILL.md +0 -212
- package/pipeline/skills/shared/external/vue-composition/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/vue-composition/references/vue-examples.md +0 -187
- package/pipeline/skills/shared/external/weatherkit/SKILL.md +0 -256
- package/pipeline/skills/shared/external/weatherkit/evals/evals.json +0 -42
- package/pipeline/skills/shared/external/weatherkit/references/weatherkit-patterns.md +0 -459
- package/pipeline/skills/shared/external/web-accessibility/SKILL.md +0 -209
- package/pipeline/skills/shared/external/web-accessibility/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/web-accessibility/references/a11y-examples.md +0 -178
- package/pipeline/skills/shared/external/web-performance/SKILL.md +0 -290
- package/pipeline/skills/shared/external/web-performance/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/web-performance/references/code-examples.md +0 -77
- package/pipeline/skills/shared/external/web-testing/SKILL.md +0 -270
- package/pipeline/skills/shared/external/web-testing/evals/evals.json +0 -43
- package/pipeline/skills/shared/external/web-testing/references/testing-examples.md +0 -213
- package/pipeline/skills/shared/external/widgetkit/SKILL.md +0 -365
- package/pipeline/skills/shared/external/widgetkit/evals/evals.json +0 -44
- package/pipeline/skills/shared/external/widgetkit/references/widgetkit-advanced.md +0 -801
|
@@ -1,654 +0,0 @@
|
|
|
1
|
-
# Retrofit Networking -- Reference Patterns
|
|
2
|
-
|
|
3
|
-
<!-- toc -->
|
|
4
|
-
- [Contents](#contents)
|
|
5
|
-
- [API Interface](#api-interface)
|
|
6
|
-
- [Retrofit Setup with Hilt](#retrofit-setup-with-hilt)
|
|
7
|
-
- [OkHttp Interceptors](#okhttp-interceptors)
|
|
8
|
-
- [Error Handling](#error-handling)
|
|
9
|
-
- [Network-Bound Resource](#network-bound-resource)
|
|
10
|
-
- [Multipart Uploads](#multipart-uploads)
|
|
11
|
-
- [WebSocket Support](#websocket-support)
|
|
12
|
-
- [Envelope to Typed Exception](#envelope-to-typed-exception)
|
|
13
|
-
- [Unknown-Tolerant Enum Serialization](#unknown-tolerant-enum-serialization)
|
|
14
|
-
- [Client Composition and Environment Config](#client-composition-and-environment-config)
|
|
15
|
-
<!-- /toc -->
|
|
16
|
-
|
|
17
|
-
Full code for the patterns summarized in `SKILL.md`. Load the section you need
|
|
18
|
-
when implementing that part of the networking layer.
|
|
19
|
-
|
|
20
|
-
## Contents
|
|
21
|
-
|
|
22
|
-
- [API Interface](#api-interface)
|
|
23
|
-
- [Retrofit Setup with Hilt](#retrofit-setup-with-hilt)
|
|
24
|
-
- [OkHttp Interceptors](#okhttp-interceptors)
|
|
25
|
-
- [Error Handling](#error-handling)
|
|
26
|
-
- [Network-Bound Resource](#network-bound-resource)
|
|
27
|
-
- [Multipart Uploads](#multipart-uploads)
|
|
28
|
-
- [WebSocket Support](#websocket-support)
|
|
29
|
-
- [Envelope to Typed Exception](#envelope-to-typed-exception)
|
|
30
|
-
- [Unknown-Tolerant Enum Serialization](#unknown-tolerant-enum-serialization)
|
|
31
|
-
- [Client Composition and Environment Config](#client-composition-and-environment-config)
|
|
32
|
-
|
|
33
|
-
## API Interface
|
|
34
|
-
|
|
35
|
-
Define endpoints as suspend functions. Retrofit handles coroutine integration.
|
|
36
|
-
|
|
37
|
-
```kotlin
|
|
38
|
-
interface OrderApiService {
|
|
39
|
-
|
|
40
|
-
@GET("orders")
|
|
41
|
-
suspend fun searchOrders(
|
|
42
|
-
@Query("store") store: String,
|
|
43
|
-
@Query("region") region: String,
|
|
44
|
-
@Query("date") date: String,
|
|
45
|
-
): List<OrderDto>
|
|
46
|
-
|
|
47
|
-
@GET("orders/{id}")
|
|
48
|
-
suspend fun getOrderDetail(
|
|
49
|
-
@Path("id") orderId: String,
|
|
50
|
-
): OrderDetailDto
|
|
51
|
-
|
|
52
|
-
@POST("payments")
|
|
53
|
-
suspend fun createPayment(
|
|
54
|
-
@Body request: PaymentRequest,
|
|
55
|
-
): PaymentResponse
|
|
56
|
-
|
|
57
|
-
@PUT("payments/{id}")
|
|
58
|
-
suspend fun updatePayment(
|
|
59
|
-
@Path("id") paymentId: String,
|
|
60
|
-
@Body request: UpdatePaymentRequest,
|
|
61
|
-
): PaymentResponse
|
|
62
|
-
|
|
63
|
-
@DELETE("payments/{id}")
|
|
64
|
-
suspend fun cancelPayment(
|
|
65
|
-
@Path("id") paymentId: String,
|
|
66
|
-
): Response<Unit>
|
|
67
|
-
|
|
68
|
-
@GET("orders")
|
|
69
|
-
suspend fun searchOrdersWithHeaders(
|
|
70
|
-
@Query("store") store: String,
|
|
71
|
-
@Header("Accept-Language") language: String = "en",
|
|
72
|
-
): List<OrderDto>
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### DTO Classes
|
|
77
|
-
|
|
78
|
-
```kotlin
|
|
79
|
-
@Serializable
|
|
80
|
-
data class OrderDto(
|
|
81
|
-
val id: String,
|
|
82
|
-
val store: LocationDto,
|
|
83
|
-
val region: LocationDto,
|
|
84
|
-
@SerialName("placed_at")
|
|
85
|
-
val placedAt: String,
|
|
86
|
-
@SerialName("delivered_at")
|
|
87
|
-
val deliveredAt: String,
|
|
88
|
-
val price: PriceDto,
|
|
89
|
-
val status: String,
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
@Serializable
|
|
93
|
-
data class LocationDto(
|
|
94
|
-
val code: String,
|
|
95
|
-
val name: String,
|
|
96
|
-
)
|
|
97
|
-
|
|
98
|
-
@Serializable
|
|
99
|
-
data class PriceDto(
|
|
100
|
-
val amount: Double,
|
|
101
|
-
val currency: String,
|
|
102
|
-
)
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Retrofit Setup with Hilt
|
|
106
|
-
|
|
107
|
-
```kotlin
|
|
108
|
-
@Module
|
|
109
|
-
@InstallIn(SingletonComponent::class)
|
|
110
|
-
object NetworkModule {
|
|
111
|
-
|
|
112
|
-
@Provides
|
|
113
|
-
@Singleton
|
|
114
|
-
fun provideJson(): Json = Json {
|
|
115
|
-
ignoreUnknownKeys = true
|
|
116
|
-
coerceInputValues = true
|
|
117
|
-
encodeDefaults = true
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@Provides
|
|
121
|
-
@Singleton
|
|
122
|
-
fun provideOkHttpClient(
|
|
123
|
-
authInterceptor: AuthInterceptor,
|
|
124
|
-
loggingInterceptor: HttpLoggingInterceptor,
|
|
125
|
-
): OkHttpClient = OkHttpClient.Builder()
|
|
126
|
-
.connectTimeout(30, TimeUnit.SECONDS)
|
|
127
|
-
.readTimeout(30, TimeUnit.SECONDS)
|
|
128
|
-
.writeTimeout(30, TimeUnit.SECONDS)
|
|
129
|
-
.addInterceptor(authInterceptor)
|
|
130
|
-
.addInterceptor(loggingInterceptor)
|
|
131
|
-
.build()
|
|
132
|
-
|
|
133
|
-
@Provides
|
|
134
|
-
@Singleton
|
|
135
|
-
fun provideLoggingInterceptor(): HttpLoggingInterceptor =
|
|
136
|
-
HttpLoggingInterceptor().apply {
|
|
137
|
-
level = if (BuildConfig.DEBUG) {
|
|
138
|
-
HttpLoggingInterceptor.Level.BODY
|
|
139
|
-
} else {
|
|
140
|
-
HttpLoggingInterceptor.Level.NONE
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@Provides
|
|
145
|
-
@Singleton
|
|
146
|
-
fun provideRetrofit(
|
|
147
|
-
client: OkHttpClient,
|
|
148
|
-
json: Json,
|
|
149
|
-
): Retrofit = Retrofit.Builder()
|
|
150
|
-
.baseUrl(BuildConfig.BASE_URL)
|
|
151
|
-
.client(client)
|
|
152
|
-
.addConverterFactory(json.asConverterFactory("application/json".toMediaType()))
|
|
153
|
-
.build()
|
|
154
|
-
|
|
155
|
-
@Provides
|
|
156
|
-
@Singleton
|
|
157
|
-
fun provideOrderApiService(retrofit: Retrofit): OrderApiService =
|
|
158
|
-
retrofit.create(OrderApiService::class.java)
|
|
159
|
-
}
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
## OkHttp Interceptors
|
|
163
|
-
|
|
164
|
-
### Auth Interceptor (Token Injection)
|
|
165
|
-
|
|
166
|
-
```kotlin
|
|
167
|
-
class AuthInterceptor @Inject constructor(
|
|
168
|
-
private val tokenProvider: TokenProvider,
|
|
169
|
-
) : Interceptor {
|
|
170
|
-
|
|
171
|
-
override fun intercept(chain: Interceptor.Chain): Response {
|
|
172
|
-
val token = tokenProvider.getAccessToken()
|
|
173
|
-
val request = chain.request().newBuilder().apply {
|
|
174
|
-
token?.let { addHeader("Authorization", "Bearer $it") }
|
|
175
|
-
}.build()
|
|
176
|
-
|
|
177
|
-
val response = chain.proceed(request)
|
|
178
|
-
|
|
179
|
-
// Handle 401: refresh token and retry
|
|
180
|
-
if (response.code == 401) {
|
|
181
|
-
response.close()
|
|
182
|
-
val newToken = tokenProvider.refreshToken()
|
|
183
|
-
?: return response
|
|
184
|
-
|
|
185
|
-
val retryRequest = chain.request().newBuilder()
|
|
186
|
-
.header("Authorization", "Bearer $newToken")
|
|
187
|
-
.build()
|
|
188
|
-
|
|
189
|
-
return chain.proceed(retryRequest)
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
return response
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
### Retry Interceptor
|
|
198
|
-
|
|
199
|
-
```kotlin
|
|
200
|
-
class RetryInterceptor(
|
|
201
|
-
private val maxRetries: Int = 3,
|
|
202
|
-
private val initialDelayMs: Long = 1_000,
|
|
203
|
-
) : Interceptor {
|
|
204
|
-
|
|
205
|
-
override fun intercept(chain: Interceptor.Chain): Response {
|
|
206
|
-
var lastException: IOException? = null
|
|
207
|
-
var delay = initialDelayMs
|
|
208
|
-
|
|
209
|
-
repeat(maxRetries) { attempt ->
|
|
210
|
-
try {
|
|
211
|
-
val response = chain.proceed(chain.request())
|
|
212
|
-
if (response.isSuccessful || response.code !in 500..599) {
|
|
213
|
-
return response
|
|
214
|
-
}
|
|
215
|
-
response.close()
|
|
216
|
-
} catch (e: IOException) {
|
|
217
|
-
lastException = e
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (attempt < maxRetries - 1) {
|
|
221
|
-
Thread.sleep(delay)
|
|
222
|
-
delay *= 2 // Exponential backoff
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
throw lastException ?: IOException("Request failed after $maxRetries retries")
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### Cache Interceptor
|
|
232
|
-
|
|
233
|
-
```kotlin
|
|
234
|
-
class CacheInterceptor : Interceptor {
|
|
235
|
-
override fun intercept(chain: Interceptor.Chain): Response {
|
|
236
|
-
val response = chain.proceed(chain.request())
|
|
237
|
-
val cacheControl = CacheControl.Builder()
|
|
238
|
-
.maxAge(5, TimeUnit.MINUTES)
|
|
239
|
-
.build()
|
|
240
|
-
|
|
241
|
-
return response.newBuilder()
|
|
242
|
-
.header("Cache-Control", cacheControl.toString())
|
|
243
|
-
.removeHeader("Pragma")
|
|
244
|
-
.build()
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// Add cache to OkHttpClient
|
|
249
|
-
val cacheDir = File(context.cacheDir, "http_cache")
|
|
250
|
-
val cache = Cache(cacheDir, 10L * 1024 * 1024) // 10 MB
|
|
251
|
-
|
|
252
|
-
OkHttpClient.Builder()
|
|
253
|
-
.cache(cache)
|
|
254
|
-
.addNetworkInterceptor(CacheInterceptor())
|
|
255
|
-
.build()
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
## Error Handling
|
|
259
|
-
|
|
260
|
-
### Sealed Result Type
|
|
261
|
-
|
|
262
|
-
```kotlin
|
|
263
|
-
sealed interface NetworkResult<out T> {
|
|
264
|
-
data class Success<T>(val data: T) : NetworkResult<T>
|
|
265
|
-
data class Error(val code: Int, val message: String) : NetworkResult<Nothing>
|
|
266
|
-
data class Exception(val throwable: Throwable) : NetworkResult<Nothing>
|
|
267
|
-
}
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
### Safe API Call Wrapper
|
|
271
|
-
|
|
272
|
-
```kotlin
|
|
273
|
-
suspend fun <T> safeApiCall(
|
|
274
|
-
apiCall: suspend () -> T,
|
|
275
|
-
): NetworkResult<T> = try {
|
|
276
|
-
NetworkResult.Success(apiCall())
|
|
277
|
-
} catch (e: HttpException) {
|
|
278
|
-
val errorBody = e.response()?.errorBody()?.string()
|
|
279
|
-
NetworkResult.Error(
|
|
280
|
-
code = e.code(),
|
|
281
|
-
message = errorBody ?: e.message(),
|
|
282
|
-
)
|
|
283
|
-
} catch (e: IOException) {
|
|
284
|
-
NetworkResult.Exception(e)
|
|
285
|
-
} catch (e: CancellationException) {
|
|
286
|
-
throw e // Never swallow cancellation
|
|
287
|
-
}
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### Usage in Repository
|
|
291
|
-
|
|
292
|
-
```kotlin
|
|
293
|
-
class OrderRepositoryImpl @Inject constructor(
|
|
294
|
-
private val api: OrderApiService,
|
|
295
|
-
private val mapper: OrderMapper,
|
|
296
|
-
) : OrderRepository {
|
|
297
|
-
|
|
298
|
-
override suspend fun searchOrders(
|
|
299
|
-
store: String,
|
|
300
|
-
region: String,
|
|
301
|
-
date: LocalDate,
|
|
302
|
-
): NetworkResult<List<Order>> = safeApiCall {
|
|
303
|
-
api.searchOrders(store, region, date.toString())
|
|
304
|
-
.map(mapper::toDomain)
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
### ViewModel Consumption
|
|
310
|
-
|
|
311
|
-
```kotlin
|
|
312
|
-
@HiltViewModel
|
|
313
|
-
class SearchViewModel @Inject constructor(
|
|
314
|
-
private val repository: OrderRepository,
|
|
315
|
-
) : ViewModel() {
|
|
316
|
-
|
|
317
|
-
private val _uiState = MutableStateFlow<SearchUiState>(SearchUiState.Idle)
|
|
318
|
-
val uiState: StateFlow<SearchUiState> = _uiState.asStateFlow()
|
|
319
|
-
|
|
320
|
-
fun search(store: String, region: String, date: LocalDate) {
|
|
321
|
-
viewModelScope.launch {
|
|
322
|
-
_uiState.value = SearchUiState.Loading
|
|
323
|
-
|
|
324
|
-
_uiState.value = when (val result = repository.searchOrders(store, region, date)) {
|
|
325
|
-
is NetworkResult.Success -> SearchUiState.Success(result.data)
|
|
326
|
-
is NetworkResult.Error -> SearchUiState.Error("Server error: ${result.message}")
|
|
327
|
-
is NetworkResult.Exception -> SearchUiState.Error(
|
|
328
|
-
result.throwable.localizedMessage ?: "Network error"
|
|
329
|
-
)
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
## Network-Bound Resource
|
|
337
|
-
|
|
338
|
-
Pattern for showing cached data while fetching fresh data from the network.
|
|
339
|
-
|
|
340
|
-
```kotlin
|
|
341
|
-
inline fun <ResultType, RequestType> networkBoundResource(
|
|
342
|
-
crossinline query: () -> Flow<ResultType>,
|
|
343
|
-
crossinline fetch: suspend () -> RequestType,
|
|
344
|
-
crossinline saveFetchResult: suspend (RequestType) -> Unit,
|
|
345
|
-
crossinline shouldFetch: (ResultType) -> Boolean = { true },
|
|
346
|
-
): Flow<Resource<ResultType>> = flow {
|
|
347
|
-
emit(Resource.Loading())
|
|
348
|
-
|
|
349
|
-
val data = query().first()
|
|
350
|
-
|
|
351
|
-
val flow = if (shouldFetch(data)) {
|
|
352
|
-
emit(Resource.Loading(data))
|
|
353
|
-
try {
|
|
354
|
-
val fetchedData = fetch()
|
|
355
|
-
saveFetchResult(fetchedData)
|
|
356
|
-
query().map { Resource.Success(it) }
|
|
357
|
-
} catch (throwable: Throwable) {
|
|
358
|
-
if (throwable is CancellationException) throw throwable
|
|
359
|
-
query().map { Resource.Error(throwable, it) }
|
|
360
|
-
}
|
|
361
|
-
} else {
|
|
362
|
-
query().map { Resource.Success(it) }
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
emitAll(flow)
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
sealed class Resource<T>(
|
|
369
|
-
val data: T? = null,
|
|
370
|
-
val error: Throwable? = null,
|
|
371
|
-
) {
|
|
372
|
-
class Success<T>(data: T) : Resource<T>(data)
|
|
373
|
-
class Loading<T>(data: T? = null) : Resource<T>(data)
|
|
374
|
-
class Error<T>(throwable: Throwable, data: T? = null) : Resource<T>(data, throwable)
|
|
375
|
-
}
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
### Usage
|
|
379
|
-
|
|
380
|
-
```kotlin
|
|
381
|
-
override fun getOrders(store: String, region: String): Flow<Resource<List<Order>>> =
|
|
382
|
-
networkBoundResource(
|
|
383
|
-
query = {
|
|
384
|
-
dao.getOrders(store, region)
|
|
385
|
-
.map { entities -> entities.map(mapper::toDomain) }
|
|
386
|
-
},
|
|
387
|
-
fetch = { api.searchOrders(store, region, today()) },
|
|
388
|
-
saveFetchResult = { dtos ->
|
|
389
|
-
dao.upsertOrders(dtos.map(mapper::toEntity))
|
|
390
|
-
},
|
|
391
|
-
shouldFetch = { cachedOrders ->
|
|
392
|
-
cachedOrders.isEmpty() || cacheExpired()
|
|
393
|
-
},
|
|
394
|
-
)
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
## Multipart Uploads
|
|
398
|
-
|
|
399
|
-
```kotlin
|
|
400
|
-
interface FileApiService {
|
|
401
|
-
|
|
402
|
-
@Multipart
|
|
403
|
-
@POST("documents/upload")
|
|
404
|
-
suspend fun uploadDocument(
|
|
405
|
-
@Part file: MultipartBody.Part,
|
|
406
|
-
@Part("description") description: RequestBody,
|
|
407
|
-
): UploadResponse
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
// Usage
|
|
411
|
-
suspend fun uploadFile(context: Context, uri: Uri, description: String) {
|
|
412
|
-
val contentResolver = context.contentResolver
|
|
413
|
-
val inputStream = contentResolver.openInputStream(uri) ?: return
|
|
414
|
-
val fileName = getFileName(context, uri)
|
|
415
|
-
|
|
416
|
-
val requestBody = inputStream.readBytes()
|
|
417
|
-
.toRequestBody("application/octet-stream".toMediaType())
|
|
418
|
-
|
|
419
|
-
val part = MultipartBody.Part.createFormData("file", fileName, requestBody)
|
|
420
|
-
val descriptionBody = description.toRequestBody("text/plain".toMediaType())
|
|
421
|
-
|
|
422
|
-
api.uploadDocument(part, descriptionBody)
|
|
423
|
-
}
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
## WebSocket Support
|
|
427
|
-
|
|
428
|
-
```kotlin
|
|
429
|
-
class OrderUpdatesWebSocket @Inject constructor(
|
|
430
|
-
private val client: OkHttpClient,
|
|
431
|
-
) {
|
|
432
|
-
private var webSocket: WebSocket? = null
|
|
433
|
-
|
|
434
|
-
fun connect(orderId: String): Flow<OrderUpdate> = callbackFlow {
|
|
435
|
-
val request = Request.Builder()
|
|
436
|
-
.url("wss://api.example.com/orders/$orderId/updates")
|
|
437
|
-
.build()
|
|
438
|
-
|
|
439
|
-
val listener = object : WebSocketListener() {
|
|
440
|
-
override fun onMessage(webSocket: WebSocket, text: String) {
|
|
441
|
-
val update = Json.decodeFromString<OrderUpdate>(text)
|
|
442
|
-
trySend(update)
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
override fun onFailure(webSocket: WebSocket, t: Throwable, response: Response?) {
|
|
446
|
-
close(t)
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
override fun onClosed(webSocket: WebSocket, code: Int, reason: String) {
|
|
450
|
-
channel.close()
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
webSocket = client.newWebSocket(request, listener)
|
|
455
|
-
|
|
456
|
-
awaitClose {
|
|
457
|
-
webSocket?.close(1000, "Client closed")
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
fun disconnect() {
|
|
462
|
-
webSocket?.close(1000, "Client closed")
|
|
463
|
-
webSocket = null
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
```
|
|
467
|
-
|
|
468
|
-
## Envelope to Typed Exception
|
|
469
|
-
|
|
470
|
-
The backend wraps every payload in a `success` envelope. A delegating
|
|
471
|
-
`Converter.Factory` unwraps it and turns a business failure into a typed
|
|
472
|
-
`ApiException`, so `success == false` surfaces through the same catch path as a
|
|
473
|
-
transport failure instead of forcing every call site to inspect the body.
|
|
474
|
-
|
|
475
|
-
```kotlin
|
|
476
|
-
@Serializable
|
|
477
|
-
data class ApiEnvelope<T>(
|
|
478
|
-
val success: Boolean,
|
|
479
|
-
val data: T? = null,
|
|
480
|
-
@SerialName("error_code") val errorCode: Int? = null,
|
|
481
|
-
val message: String? = null,
|
|
482
|
-
)
|
|
483
|
-
|
|
484
|
-
class ApiException(
|
|
485
|
-
val code: Int,
|
|
486
|
-
override val message: String,
|
|
487
|
-
) : IOException(message)
|
|
488
|
-
|
|
489
|
-
private fun parameterized(raw: Type, arg: Type): ParameterizedType =
|
|
490
|
-
object : ParameterizedType {
|
|
491
|
-
override fun getRawType(): Type = raw
|
|
492
|
-
override fun getActualTypeArguments(): Array<Type> = arrayOf(arg)
|
|
493
|
-
override fun getOwnerType(): Type? = null
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
class EnvelopeUnwrapFactory(
|
|
497
|
-
private val delegate: Converter.Factory,
|
|
498
|
-
) : Converter.Factory() {
|
|
499
|
-
override fun responseBodyConverter(
|
|
500
|
-
type: Type,
|
|
501
|
-
annotations: Array<out Annotation>,
|
|
502
|
-
retrofit: Retrofit,
|
|
503
|
-
): Converter<ResponseBody, *>? {
|
|
504
|
-
val envelopeType = parameterized(ApiEnvelope::class.java, type)
|
|
505
|
-
val inner = delegate.responseBodyConverter(envelopeType, annotations, retrofit)
|
|
506
|
-
?: return null
|
|
507
|
-
return Converter<ResponseBody, Any?> { body ->
|
|
508
|
-
val envelope = inner.convert(body) as ApiEnvelope<*>
|
|
509
|
-
if (!envelope.success) {
|
|
510
|
-
throw ApiException(envelope.errorCode ?: -1, envelope.message.orEmpty())
|
|
511
|
-
}
|
|
512
|
-
envelope.data
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
```
|
|
517
|
-
|
|
518
|
-
Register it in front of the serialization converter:
|
|
519
|
-
|
|
520
|
-
```kotlin
|
|
521
|
-
Retrofit.Builder()
|
|
522
|
-
.baseUrl(config.baseUrl)
|
|
523
|
-
.client(client)
|
|
524
|
-
.addConverterFactory(EnvelopeUnwrapFactory(json.asConverterFactory(contentType)))
|
|
525
|
-
.build()
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
Central throwable-to-sealed mapper, called from `safeApiCall`:
|
|
529
|
-
|
|
530
|
-
```kotlin
|
|
531
|
-
fun Throwable.toNetworkError(): NetworkResult.Error = when (this) {
|
|
532
|
-
is ApiException -> NetworkResult.Error(code, message)
|
|
533
|
-
is HttpException -> NetworkResult.Error(code(), message())
|
|
534
|
-
is SocketTimeoutException -> NetworkResult.Error(-1, "Request timed out")
|
|
535
|
-
is IOException -> NetworkResult.Error(-1, "No network connection")
|
|
536
|
-
else -> NetworkResult.Error(-1, message ?: "Unexpected error")
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
suspend fun <T> safeApiCall(block: suspend () -> T): NetworkResult<T> =
|
|
540
|
-
try {
|
|
541
|
-
NetworkResult.Success(block())
|
|
542
|
-
} catch (e: CancellationException) {
|
|
543
|
-
throw e
|
|
544
|
-
} catch (e: Throwable) {
|
|
545
|
-
e.toNetworkError()
|
|
546
|
-
}
|
|
547
|
-
```
|
|
548
|
-
|
|
549
|
-
## Unknown-Tolerant Enum Serialization
|
|
550
|
-
|
|
551
|
-
`ignoreUnknownKeys` tolerates unknown object keys, not unknown enum values: a new
|
|
552
|
-
server code fails the whole response. A base `KSerializer` maps any unrecognized
|
|
553
|
-
value to a declared default so a single field degrades instead of the payload.
|
|
554
|
-
|
|
555
|
-
```kotlin
|
|
556
|
-
interface DefaultedEnum {
|
|
557
|
-
val serialName: String
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
abstract class UnknownTolerantEnumSerializer<T>(
|
|
561
|
-
serialName: String,
|
|
562
|
-
private val values: Array<T>,
|
|
563
|
-
private val default: T,
|
|
564
|
-
) : KSerializer<T> where T : Enum<T>, T : DefaultedEnum {
|
|
565
|
-
override val descriptor: SerialDescriptor =
|
|
566
|
-
PrimitiveSerialDescriptor(serialName, PrimitiveKind.STRING)
|
|
567
|
-
|
|
568
|
-
override fun serialize(encoder: Encoder, value: T) = encoder.encodeString(value.serialName)
|
|
569
|
-
|
|
570
|
-
override fun deserialize(decoder: Decoder): T {
|
|
571
|
-
val raw = decoder.decodeString()
|
|
572
|
-
return values.firstOrNull { it.serialName == raw } ?: default
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
```
|
|
576
|
-
|
|
577
|
-
Usage:
|
|
578
|
-
|
|
579
|
-
```kotlin
|
|
580
|
-
@Serializable(with = ShippingClassSerializer::class)
|
|
581
|
-
enum class ShippingClass(override val serialName: String) : DefaultedEnum {
|
|
582
|
-
STANDARD("STANDARD"),
|
|
583
|
-
EXPRESS("EXPRESS"),
|
|
584
|
-
UNKNOWN("UNKNOWN"),
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
object ShippingClassSerializer : UnknownTolerantEnumSerializer<ShippingClass>(
|
|
588
|
-
"ShippingClass", ShippingClass.entries.toTypedArray(), ShippingClass.UNKNOWN,
|
|
589
|
-
)
|
|
590
|
-
```
|
|
591
|
-
|
|
592
|
-
## Client Composition and Environment Config
|
|
593
|
-
|
|
594
|
-
Derive every specialized client from one base with `newBuilder()`. An image
|
|
595
|
-
pipeline must not send auth headers, so it clears inherited interceptors:
|
|
596
|
-
|
|
597
|
-
```kotlin
|
|
598
|
-
@Provides
|
|
599
|
-
@Singleton
|
|
600
|
-
@ImageClient
|
|
601
|
-
fun provideImageClient(
|
|
602
|
-
@BaseClient base: OkHttpClient,
|
|
603
|
-
cache: Cache,
|
|
604
|
-
): OkHttpClient = base.newBuilder()
|
|
605
|
-
.apply { interceptors().clear() }
|
|
606
|
-
.cache(cache)
|
|
607
|
-
.build()
|
|
608
|
-
```
|
|
609
|
-
|
|
610
|
-
Resolve the base URL and pin hashes per flavor from build config, with a runtime
|
|
611
|
-
override allowed only outside production (QA environment switching):
|
|
612
|
-
|
|
613
|
-
```kotlin
|
|
614
|
-
class NetworkConfig(
|
|
615
|
-
private val settings: EnvironmentSettings,
|
|
616
|
-
) {
|
|
617
|
-
val baseUrl: String
|
|
618
|
-
get() = if (BuildConfig.IS_PRODUCTION) {
|
|
619
|
-
BuildConfig.BASE_URL
|
|
620
|
-
} else {
|
|
621
|
-
settings.overrideBaseUrl ?: BuildConfig.BASE_URL
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
fun certificatePinner(): CertificatePinner {
|
|
625
|
-
val host = baseUrl.toHttpUrl().host
|
|
626
|
-
return CertificatePinner.Builder()
|
|
627
|
-
.apply { BuildConfig.PIN_HASHES.forEach { add(host, it) } }
|
|
628
|
-
.build()
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
```
|
|
632
|
-
|
|
633
|
-
`BASE_URL` and `PIN_HASHES` are `buildConfigField`s per product flavor;
|
|
634
|
-
`IS_PRODUCTION` gates the override so QA builds can retarget without a rebuild.
|
|
635
|
-
|
|
636
|
-
Deadlock-safe suspend-in-interceptor bridge. Plain `runBlocking { }` resumes on
|
|
637
|
-
the interceptor's own thread and can deadlock when the token fetch reuses the
|
|
638
|
-
same dispatcher. Pin the suspend work to a dedicated single-thread dispatcher:
|
|
639
|
-
|
|
640
|
-
```kotlin
|
|
641
|
-
class TokenInterceptor @Inject constructor(
|
|
642
|
-
private val tokenProvider: TokenProvider,
|
|
643
|
-
) : Interceptor {
|
|
644
|
-
private val tokenDispatcher = Dispatchers.IO.limitedParallelism(1)
|
|
645
|
-
|
|
646
|
-
override fun intercept(chain: Interceptor.Chain): Response {
|
|
647
|
-
val token = runBlocking(tokenDispatcher) { tokenProvider.currentToken() }
|
|
648
|
-
val request = chain.request().newBuilder()
|
|
649
|
-
.header("Authorization", "Bearer $token")
|
|
650
|
-
.build()
|
|
651
|
-
return chain.proceed(request)
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
```
|