@cometchat/skills 4.4.2 → 5.0.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.
Files changed (490) hide show
  1. package/.claude-plugin/marketplace.json +55 -0
  2. package/.claude-plugin/plugin.json +14 -0
  3. package/CHANGELOG.md +36 -0
  4. package/LICENSE +21 -0
  5. package/README.md +41 -163
  6. package/RULES.md +114 -0
  7. package/bin/cometchat-skills.mjs +1180 -0
  8. package/bin/legacy-skills.json +95 -0
  9. package/catalogs/android-v6.json +1646 -0
  10. package/catalogs/flutter-v6.json +651 -0
  11. package/catalogs/ios-v5.json +1383 -0
  12. package/catalogs/rn-calls-v5.json +134 -0
  13. package/catalogs/rn-calls-v5.symbols.txt +58 -0
  14. package/catalogs/rn-sdk-v4.json +672 -0
  15. package/catalogs/rn-v5.json +449 -0
  16. package/catalogs/rn-v5.symbols.txt +216 -0
  17. package/catalogs/sdk-android-v5.json +514 -0
  18. package/contracts.android-calls-v5.json +122 -0
  19. package/contracts.android-v6.json +135 -0
  20. package/contracts.angular-v5.json +694 -0
  21. package/contracts.flutter-calls-v5.json +77 -0
  22. package/contracts.flutter-v6.json +126 -0
  23. package/contracts.ios-calls-v5.json +67 -0
  24. package/contracts.ios-v5.json +436 -0
  25. package/contracts.json +82 -0
  26. package/contracts.rn-calls-v5.json +77 -0
  27. package/contracts.rn-v5.json +727 -0
  28. package/contracts.sdk-android-v5.json +15 -0
  29. package/contracts.web-calls-v5.json +45 -0
  30. package/features.android-calls-v5.json +246 -0
  31. package/features.android-v6.json +65 -0
  32. package/features.angular-v5.json +521 -0
  33. package/features.flutter-calls-v5.json +286 -0
  34. package/features.flutter-v6.json +484 -0
  35. package/features.ios-calls-v5.json +236 -0
  36. package/features.ios-v5.json +573 -0
  37. package/features.json +61 -0
  38. package/features.rn-calls-v5.json +187 -0
  39. package/features.rn-v5.json +614 -0
  40. package/features.sdk-android-v5.json +40 -0
  41. package/features.sdk-jsv4.json +24 -0
  42. package/features.web-calls-v5.json +108 -0
  43. package/package.json +151 -74
  44. package/peers.yaml +312 -0
  45. package/registry/README.md +31 -0
  46. package/registry/android-calls-v5.json +54 -0
  47. package/registry/android-v6.json +137 -0
  48. package/registry/angular-v5.json +114 -0
  49. package/registry/flutter-calls-v5.json +54 -0
  50. package/registry/flutter-v6.json +119 -0
  51. package/registry/ios-calls-v5.json +59 -0
  52. package/registry/ios-v5.json +97 -0
  53. package/registry/rn-calls-v5.json +59 -0
  54. package/registry/rn-v5.json +129 -0
  55. package/registry/sdk-android-v5.json +53 -0
  56. package/registry/sdk-jsv4.json +53 -0
  57. package/registry/web-calls-v5.json +54 -0
  58. package/registry/web-v7.json +99 -0
  59. package/skills/cometchat/SKILL.md +42 -2096
  60. package/skills/cometchat-android-v5-calls-sdk/SKILL.md +206 -0
  61. package/skills/cometchat-android-v5-calls-sdk/references/build-truth.md +63 -0
  62. package/skills/cometchat-android-v5-calls-sdk/references/docs-map.md +119 -0
  63. package/skills/cometchat-android-v5-calls-sdk/references/method-map.md +53 -0
  64. package/skills/cometchat-android-v5-calls-sdk/references/pitfalls.md +72 -0
  65. package/skills/cometchat-android-v5-calls-sdk/references/ringing.md +92 -0
  66. package/skills/cometchat-android-v5-calls-sdk/references/user-switch.md +90 -0
  67. package/skills/cometchat-android-v5-sdk/SKILL.md +127 -0
  68. package/skills/cometchat-android-v5-sdk/references/app-surface.md +88 -0
  69. package/skills/cometchat-android-v5-sdk/references/docs-map.md +91 -0
  70. package/skills/cometchat-android-v6-builder-settings/SKILL.md +51 -137
  71. package/skills/cometchat-android-v6-calls/SKILL.md +128 -413
  72. package/skills/cometchat-android-v6-compose-components/SKILL.md +84 -194
  73. package/skills/cometchat-android-v6-compose-customization/SKILL.md +66 -411
  74. package/skills/cometchat-android-v6-compose-placement/SKILL.md +154 -237
  75. package/skills/cometchat-android-v6-core/SKILL.md +236 -672
  76. package/skills/cometchat-android-v6-core/references/anti-patterns.md +31 -0
  77. package/skills/cometchat-android-v6-core/references/component-props.md +168 -0
  78. package/skills/cometchat-android-v6-core/references/docs-map.md +153 -0
  79. package/skills/cometchat-android-v6-core/references/layout.md +112 -0
  80. package/skills/cometchat-android-v6-core/references/lifecycle.md +75 -0
  81. package/skills/cometchat-android-v6-core/references/setup-credentials.md +105 -0
  82. package/skills/cometchat-android-v6-core/references/troubleshooting.md +36 -0
  83. package/skills/cometchat-android-v6-events/SKILL.md +46 -184
  84. package/skills/cometchat-android-v6-extensions/SKILL.md +39 -179
  85. package/skills/cometchat-android-v6-features/SKILL.md +74 -143
  86. package/skills/cometchat-android-v6-kotlin-components/SKILL.md +75 -193
  87. package/skills/cometchat-android-v6-kotlin-customization/SKILL.md +67 -419
  88. package/skills/cometchat-android-v6-kotlin-placement/SKILL.md +77 -223
  89. package/skills/cometchat-android-v6-migration/SKILL.md +67 -378
  90. package/skills/cometchat-android-v6-production/SKILL.md +40 -179
  91. package/skills/cometchat-android-v6-push/SKILL.md +39 -289
  92. package/skills/cometchat-android-v6-testing/SKILL.md +50 -265
  93. package/skills/cometchat-android-v6-troubleshooting/SKILL.md +70 -254
  94. package/skills/cometchat-angular-v5-calls/SKILL.md +193 -0
  95. package/skills/cometchat-angular-v5-components/SKILL.md +131 -0
  96. package/skills/cometchat-angular-v5-components/references/catalog.md +111 -0
  97. package/skills/cometchat-angular-v5-components/references/host-composed.md +46 -0
  98. package/skills/cometchat-angular-v5-core/SKILL.md +300 -0
  99. package/skills/cometchat-angular-v5-core/references/anti-patterns.md +49 -0
  100. package/skills/cometchat-angular-v5-core/references/component-props.md +55 -0
  101. package/skills/cometchat-angular-v5-core/references/dependencies.md +66 -0
  102. package/skills/cometchat-angular-v5-core/references/docs-map.md +132 -0
  103. package/skills/cometchat-angular-v5-core/references/layout.md +64 -0
  104. package/skills/cometchat-angular-v5-core/references/lifecycle.md +202 -0
  105. package/skills/cometchat-angular-v5-core/references/setup-credentials.md +137 -0
  106. package/skills/cometchat-angular-v5-core/references/theming.md +70 -0
  107. package/skills/cometchat-angular-v5-core/references/troubleshooting.md +27 -0
  108. package/skills/cometchat-angular-v5-customization/SKILL.md +94 -0
  109. package/skills/cometchat-angular-v5-features/SKILL.md +107 -0
  110. package/skills/cometchat-angular-v5-features/references/custom-messages.md +133 -0
  111. package/skills/cometchat-angular-v5-features/references/formatters.md +28 -0
  112. package/skills/cometchat-angular-v5-features/references/host-composed-extensions.md +85 -0
  113. package/skills/cometchat-angular-v5-migration/SKILL.md +40 -0
  114. package/skills/cometchat-angular-v5-migration/references/migration-guide.md +165 -0
  115. package/skills/cometchat-angular-v5-patterns/SKILL.md +107 -0
  116. package/skills/cometchat-angular-v5-placement/SKILL.md +133 -0
  117. package/skills/cometchat-angular-v5-placement/references/combined-app.md +174 -0
  118. package/skills/cometchat-angular-v5-placement/references/core-surface.md +199 -0
  119. package/skills/cometchat-angular-v5-production/SKILL.md +101 -0
  120. package/skills/cometchat-angular-v5-push/SKILL.md +61 -0
  121. package/skills/cometchat-angular-v5-testing/SKILL.md +112 -0
  122. package/skills/cometchat-angular-v5-troubleshooting/SKILL.md +96 -0
  123. package/skills/cometchat-flutter-v5-sdk/SKILL.md +188 -0
  124. package/skills/cometchat-flutter-v5-sdk/references/doc-corrections.md +55 -0
  125. package/skills/cometchat-flutter-v5-sdk/references/docs-map.md +211 -0
  126. package/skills/cometchat-flutter-v5-sdk/references/platform-notes.md +48 -0
  127. package/skills/cometchat-flutter-v5-sdk/references/transcription.md +87 -0
  128. package/skills/cometchat-flutter-v6-calls/SKILL.md +75 -389
  129. package/skills/cometchat-flutter-v6-components/SKILL.md +88 -361
  130. package/skills/cometchat-flutter-v6-core/SKILL.md +154 -593
  131. package/skills/cometchat-flutter-v6-core/references/anti-patterns.md +55 -0
  132. package/skills/cometchat-flutter-v6-core/references/docs-map.md +143 -0
  133. package/skills/cometchat-flutter-v6-core/references/layout.md +45 -0
  134. package/skills/cometchat-flutter-v6-core/references/lifecycle.md +87 -0
  135. package/skills/cometchat-flutter-v6-core/references/setup-credentials.md +84 -0
  136. package/skills/cometchat-flutter-v6-core/references/troubleshooting.md +26 -0
  137. package/skills/cometchat-flutter-v6-customization/SKILL.md +70 -712
  138. package/skills/cometchat-flutter-v6-events/SKILL.md +79 -174
  139. package/skills/cometchat-flutter-v6-features/SKILL.md +55 -394
  140. package/skills/cometchat-flutter-v6-migration/SKILL.md +68 -367
  141. package/skills/cometchat-flutter-v6-migration/references/migration-guide.md +131 -0
  142. package/skills/cometchat-flutter-v6-patterns/SKILL.md +61 -0
  143. package/skills/cometchat-flutter-v6-placement/SKILL.md +94 -381
  144. package/skills/cometchat-flutter-v6-production/SKILL.md +58 -615
  145. package/skills/cometchat-flutter-v6-push/SKILL.md +46 -455
  146. package/skills/cometchat-flutter-v6-testing/SKILL.md +68 -299
  147. package/skills/cometchat-flutter-v6-troubleshooting/SKILL.md +54 -878
  148. package/skills/cometchat-ios-calls/SKILL.md +112 -563
  149. package/skills/cometchat-ios-components/SKILL.md +44 -834
  150. package/skills/cometchat-ios-core/SKILL.md +181 -1068
  151. package/skills/cometchat-ios-core/references/anti-patterns.md +80 -0
  152. package/skills/cometchat-ios-core/references/docs-map.md +123 -0
  153. package/skills/cometchat-ios-core/references/install.md +23 -0
  154. package/skills/cometchat-ios-core/references/layout.md +186 -0
  155. package/skills/cometchat-ios-core/references/setup-credentials.md +197 -0
  156. package/skills/cometchat-ios-core/references/swiftui.md +91 -0
  157. package/skills/cometchat-ios-core/references/troubleshooting.md +100 -0
  158. package/skills/cometchat-ios-customization/SKILL.md +33 -968
  159. package/skills/cometchat-ios-features/SKILL.md +29 -738
  160. package/skills/cometchat-ios-migration/SKILL.md +39 -0
  161. package/skills/cometchat-ios-placement/SKILL.md +51 -729
  162. package/skills/cometchat-ios-push/SKILL.md +24 -602
  163. package/skills/cometchat-ios-v5-sdk/SKILL.md +161 -0
  164. package/skills/cometchat-ios-v5-sdk/references/docs-map.md +326 -0
  165. package/skills/cometchat-js-v5-sdk/SKILL.md +95 -0
  166. package/skills/cometchat-js-v5-sdk/references/docs-map.md +114 -0
  167. package/skills/cometchat-onboarding/SKILL.md +89 -0
  168. package/skills/cometchat-onboarding/references/archetypes.md +51 -0
  169. package/skills/cometchat-onboarding/references/calling-first.md +77 -0
  170. package/skills/cometchat-onboarding/references/not-in-this-pack.md +8 -0
  171. package/skills/cometchat-onboarding/references/plan-artifact.md +133 -0
  172. package/skills/cometchat-onboarding/references/platforms.md +90 -0
  173. package/skills/cometchat-react-native-bare-patterns/SKILL.md +120 -0
  174. package/skills/cometchat-react-native-calls/SKILL.md +200 -0
  175. package/skills/cometchat-react-native-components/SKILL.md +142 -0
  176. package/skills/cometchat-react-native-core/SKILL.md +313 -0
  177. package/skills/cometchat-react-native-core/references/anti-patterns.md +79 -0
  178. package/skills/cometchat-react-native-core/references/component-props.md +105 -0
  179. package/skills/cometchat-react-native-core/references/dependencies.md +62 -0
  180. package/skills/cometchat-react-native-core/references/docs-map.md +126 -0
  181. package/skills/cometchat-react-native-core/references/layout.md +61 -0
  182. package/skills/cometchat-react-native-core/references/lifecycle.md +64 -0
  183. package/skills/cometchat-react-native-core/references/setup-credentials.md +39 -0
  184. package/skills/cometchat-react-native-customization/SKILL.md +198 -0
  185. package/skills/cometchat-react-native-expo-patterns/SKILL.md +116 -0
  186. package/skills/cometchat-react-native-features/SKILL.md +122 -0
  187. package/skills/cometchat-react-native-migration/SKILL.md +103 -0
  188. package/skills/cometchat-react-native-placement/SKILL.md +158 -0
  189. package/skills/cometchat-react-native-production/SKILL.md +78 -0
  190. package/skills/cometchat-react-native-push/SKILL.md +88 -0
  191. package/skills/cometchat-react-native-sdk/SKILL.md +126 -0
  192. package/skills/cometchat-react-native-sdk/references/method-map.md +239 -0
  193. package/skills/cometchat-react-native-sdk/references/page-map.md +96 -0
  194. package/skills/cometchat-react-native-testing/SKILL.md +94 -0
  195. package/skills/cometchat-react-native-troubleshooting/SKILL.md +116 -0
  196. package/skills/cometchat-react-native-v5-sdk/SKILL.md +150 -0
  197. package/skills/cometchat-react-native-v5-sdk/references/docs-map.md +127 -0
  198. package/skills/cometchat-react-native-v5-sdk/references/ringing-voip.md +369 -0
  199. package/skills/cometchat-react-v7-calls/SKILL.md +75 -0
  200. package/skills/cometchat-react-v7-components/SKILL.md +72 -0
  201. package/skills/cometchat-react-v7-core/SKILL.md +101 -0
  202. package/skills/cometchat-react-v7-core/references/anti-patterns.md +19 -0
  203. package/skills/cometchat-react-v7-core/references/component-props.md +82 -0
  204. package/skills/cometchat-react-v7-core/references/dependencies.md +23 -0
  205. package/skills/cometchat-react-v7-core/references/docs-map.md +117 -0
  206. package/skills/cometchat-react-v7-core/references/i18n-rtl-a11y.md +22 -0
  207. package/skills/cometchat-react-v7-core/references/layout.md +158 -0
  208. package/skills/cometchat-react-v7-core/references/lifecycle.md +74 -0
  209. package/skills/cometchat-react-v7-core/references/setup-credentials.md +58 -0
  210. package/skills/cometchat-react-v7-core/references/ssr.md +11 -0
  211. package/skills/cometchat-react-v7-core/references/theming.md +52 -0
  212. package/skills/cometchat-react-v7-core/references/troubleshooting.md +28 -0
  213. package/skills/cometchat-react-v7-customization/SKILL.md +84 -0
  214. package/skills/cometchat-react-v7-features/SKILL.md +92 -0
  215. package/skills/cometchat-react-v7-migration/SKILL.md +39 -0
  216. package/skills/cometchat-react-v7-migration/references/migration-guide.md +119 -0
  217. package/skills/cometchat-react-v7-patterns/SKILL.md +43 -0
  218. package/skills/cometchat-react-v7-placement/SKILL.md +106 -0
  219. package/skills/cometchat-react-v7-placement/references/recipes.md +354 -0
  220. package/skills/cometchat-react-v7-push/SKILL.md +53 -0
  221. package/test-suite/README.md +70 -0
  222. package/test-suite/catalogs/android-calls-v5.json +830 -0
  223. package/test-suite/catalogs/android-calls-v5.symbols.txt +499 -0
  224. package/test-suite/catalogs/android-v6.json +1646 -0
  225. package/test-suite/catalogs/android-v6.symbols.txt +298 -0
  226. package/test-suite/catalogs/angular-v5.json +7587 -0
  227. package/test-suite/catalogs/flutter-calls-v5.json +196 -0
  228. package/test-suite/catalogs/flutter-calls-v5.symbols.txt +59 -0
  229. package/test-suite/catalogs/flutter-v6.json +651 -0
  230. package/test-suite/catalogs/ios-calls-v5.json +158 -0
  231. package/test-suite/catalogs/ios-calls-v5.symbols.txt +70 -0
  232. package/test-suite/catalogs/ios-v5.json +1383 -0
  233. package/test-suite/catalogs/ios-v5.symbols.txt +699 -0
  234. package/test-suite/catalogs/rn-calls-v5.json +134 -0
  235. package/test-suite/catalogs/rn-sdk-v4.json +672 -0
  236. package/test-suite/catalogs/rn-v5.json +449 -0
  237. package/test-suite/catalogs/sdk-android-v5.json +514 -0
  238. package/test-suite/catalogs/sdk-android-v5.symbols.txt +254 -0
  239. package/test-suite/catalogs/sdk-jsv4.json +800 -0
  240. package/test-suite/catalogs/web-calls-v5.json +195 -0
  241. package/test-suite/catalogs/web-v7.json +1243 -0
  242. package/test-suite/scripts/build-registry.mjs +113 -0
  243. package/test-suite/scripts/catalog-refresh-dart.mjs +151 -0
  244. package/test-suite/scripts/catalog-refresh.mjs +100 -0
  245. package/test-suite/scripts/lint-skills.mjs +909 -0
  246. package/test-suite/scripts/measure-tokens.mjs +169 -0
  247. package/test-suite/scripts/typecheck-fences-dart.mjs +437 -0
  248. package/test-suite/scripts/typecheck-fences-kotlin.mjs +269 -0
  249. package/test-suite/scripts/typecheck-fences.mjs +206 -0
  250. package/test-suite/scripts/verify-catalog.mjs +242 -0
  251. package/test-suite/scripts/verify-contract-fences.mjs +94 -0
  252. package/test-suite/scripts/verify-detection.mjs +178 -0
  253. package/test-suite/scripts/verify-docs-base.mjs +91 -0
  254. package/test-suite/scripts/verify-family-agnostic.mjs +130 -0
  255. package/test-suite/scripts/verify-golden-path.mjs +138 -0
  256. package/test-suite/scripts/verify-oracle-components.mjs +133 -0
  257. package/test-suite/scripts/verify-template-bindings.mjs +148 -0
  258. package/test-suite/typecheck/angular-v5/package.json +21 -0
  259. package/test-suite/typecheck/angular-v5/tsconfig.json +21 -0
  260. package/test-suite/typecheck/flutter-v6/analysis_options.yaml +25 -0
  261. package/test-suite/typecheck/flutter-v6/pubspec.yaml +21 -0
  262. package/test-suite/typecheck/web-v7/package.json +18 -0
  263. package/test-suite/typecheck/web-v7/tsconfig.json +19 -0
  264. package/bin/install.js +0 -1003
  265. package/skills/.claude-plugin/marketplace.json +0 -86
  266. package/skills/cometchat/references/asking-questions.md +0 -48
  267. package/skills/cometchat-a11y/SKILL.md +0 -477
  268. package/skills/cometchat-android-v5/SKILL.md +0 -121
  269. package/skills/cometchat-android-v5-calls/SKILL.md +0 -429
  270. package/skills/cometchat-android-v5-calls/references/README.md +0 -53
  271. package/skills/cometchat-android-v5-calls/references/add-calls-to-existing-chat.md +0 -197
  272. package/skills/cometchat-android-v5-calls/references/audio-controls.md +0 -91
  273. package/skills/cometchat-android-v5-calls/references/background-handling.md +0 -168
  274. package/skills/cometchat-android-v5-calls/references/call-layouts.md +0 -131
  275. package/skills/cometchat-android-v5-calls/references/call-logs.md +0 -113
  276. package/skills/cometchat-android-v5-calls/references/call-session.md +0 -274
  277. package/skills/cometchat-android-v5-calls/references/custom-ui.md +0 -150
  278. package/skills/cometchat-android-v5-calls/references/event-listeners.md +0 -123
  279. package/skills/cometchat-android-v5-calls/references/group-calls.md +0 -205
  280. package/skills/cometchat-android-v5-calls/references/idle-timeout.md +0 -117
  281. package/skills/cometchat-android-v5-calls/references/in-call-chat.md +0 -134
  282. package/skills/cometchat-android-v5-calls/references/join-session.md +0 -120
  283. package/skills/cometchat-android-v5-calls/references/migration-v4-to-v5.md +0 -222
  284. package/skills/cometchat-android-v5-calls/references/participant-management.md +0 -110
  285. package/skills/cometchat-android-v5-calls/references/picture-in-picture.md +0 -106
  286. package/skills/cometchat-android-v5-calls/references/raise-hand.md +0 -248
  287. package/skills/cometchat-android-v5-calls/references/recording.md +0 -101
  288. package/skills/cometchat-android-v5-calls/references/ringing-integration.md +0 -152
  289. package/skills/cometchat-android-v5-calls/references/screen-sharing.md +0 -78
  290. package/skills/cometchat-android-v5-calls/references/server-fcm-voip.md +0 -215
  291. package/skills/cometchat-android-v5-calls/references/session-settings.md +0 -121
  292. package/skills/cometchat-android-v5-calls/references/setup.md +0 -137
  293. package/skills/cometchat-android-v5-calls/references/share-invite.md +0 -156
  294. package/skills/cometchat-android-v5-calls/references/video-controls.md +0 -87
  295. package/skills/cometchat-android-v5-calls/references/voip-calling.md +0 -526
  296. package/skills/cometchat-android-v5-components/SKILL.md +0 -431
  297. package/skills/cometchat-android-v5-core/SKILL.md +0 -486
  298. package/skills/cometchat-android-v5-customization/SKILL.md +0 -469
  299. package/skills/cometchat-android-v5-extensions/SKILL.md +0 -127
  300. package/skills/cometchat-android-v5-features/SKILL.md +0 -131
  301. package/skills/cometchat-android-v5-placement/SKILL.md +0 -277
  302. package/skills/cometchat-android-v5-production/SKILL.md +0 -95
  303. package/skills/cometchat-android-v5-push/SKILL.md +0 -619
  304. package/skills/cometchat-android-v5-testing/SKILL.md +0 -188
  305. package/skills/cometchat-android-v5-theming/SKILL.md +0 -167
  306. package/skills/cometchat-android-v5-troubleshooting/SKILL.md +0 -74
  307. package/skills/cometchat-android-v6/SKILL.md +0 -108
  308. package/skills/cometchat-android-v6-calls/references/add-calls-to-existing-chat.md +0 -97
  309. package/skills/cometchat-android-v6-calls/references/advanced-features.md +0 -87
  310. package/skills/cometchat-android-v6-calls/references/call-layouts.md +0 -100
  311. package/skills/cometchat-android-v6-calls/references/call-session.md +0 -163
  312. package/skills/cometchat-android-v6-calls/references/device-management.md +0 -172
  313. package/skills/cometchat-android-v6-calls/references/group-calls.md +0 -191
  314. package/skills/cometchat-android-v6-calls/references/idle-timeout.md +0 -110
  315. package/skills/cometchat-android-v6-calls/references/in-call-chat.md +0 -141
  316. package/skills/cometchat-android-v6-calls/references/raise-hand.md +0 -188
  317. package/skills/cometchat-android-v6-calls/references/ringing-integration.md +0 -176
  318. package/skills/cometchat-android-v6-calls/references/server-fcm-voip.md +0 -127
  319. package/skills/cometchat-android-v6-calls/references/share-invite.md +0 -105
  320. package/skills/cometchat-android-v6-compose-theming/SKILL.md +0 -250
  321. package/skills/cometchat-android-v6-kotlin-theming/SKILL.md +0 -233
  322. package/skills/cometchat-angular-calls/SKILL.md +0 -380
  323. package/skills/cometchat-angular-calls/references/add-calls-to-existing-chat.md +0 -96
  324. package/skills/cometchat-angular-calls/references/call-layouts.md +0 -123
  325. package/skills/cometchat-angular-calls/references/call-session.md +0 -167
  326. package/skills/cometchat-angular-calls/references/custom-ui.md +0 -239
  327. package/skills/cometchat-angular-calls/references/device-management.md +0 -154
  328. package/skills/cometchat-angular-calls/references/group-calls.md +0 -433
  329. package/skills/cometchat-angular-calls/references/idle-timeout.md +0 -161
  330. package/skills/cometchat-angular-calls/references/in-call-chat.md +0 -148
  331. package/skills/cometchat-angular-calls/references/lazy-loading-pitfalls.md +0 -205
  332. package/skills/cometchat-angular-calls/references/migration-v4-to-v5.md +0 -53
  333. package/skills/cometchat-angular-calls/references/ngzone-and-async-callbacks.md +0 -184
  334. package/skills/cometchat-angular-calls/references/picture-in-picture.md +0 -285
  335. package/skills/cometchat-angular-calls/references/raise-hand.md +0 -172
  336. package/skills/cometchat-angular-calls/references/recording-screen-share.md +0 -260
  337. package/skills/cometchat-angular-calls/references/ringing-integration.md +0 -133
  338. package/skills/cometchat-angular-calls/references/server-web-push-vapid.md +0 -100
  339. package/skills/cometchat-angular-calls/references/share-invite.md +0 -122
  340. package/skills/cometchat-angular-calls/references/virtual-background.md +0 -29
  341. package/skills/cometchat-angular-components/SKILL.md +0 -235
  342. package/skills/cometchat-angular-core/SKILL.md +0 -386
  343. package/skills/cometchat-angular-customization/SKILL.md +0 -616
  344. package/skills/cometchat-angular-features/SKILL.md +0 -329
  345. package/skills/cometchat-angular-patterns/SKILL.md +0 -256
  346. package/skills/cometchat-angular-placement/SKILL.md +0 -314
  347. package/skills/cometchat-angular-production/SKILL.md +0 -564
  348. package/skills/cometchat-angular-push/SKILL.md +0 -389
  349. package/skills/cometchat-angular-testing/SKILL.md +0 -605
  350. package/skills/cometchat-angular-theming/SKILL.md +0 -290
  351. package/skills/cometchat-angular-troubleshooting/SKILL.md +0 -364
  352. package/skills/cometchat-astro-patterns/SKILL.md +0 -708
  353. package/skills/cometchat-calls/SKILL.md +0 -364
  354. package/skills/cometchat-calls/references/use-case-broadcast.md +0 -199
  355. package/skills/cometchat-calls/references/use-case-marketplace.md +0 -157
  356. package/skills/cometchat-calls/references/use-case-support.md +0 -189
  357. package/skills/cometchat-calls/references/use-case-team.md +0 -180
  358. package/skills/cometchat-calls/references/use-case-telehealth.md +0 -153
  359. package/skills/cometchat-components/SKILL.md +0 -1142
  360. package/skills/cometchat-core/SKILL.md +0 -1048
  361. package/skills/cometchat-customization/SKILL.md +0 -580
  362. package/skills/cometchat-customization/references/component-catalog.md +0 -236
  363. package/skills/cometchat-features/SKILL.md +0 -861
  364. package/skills/cometchat-flutter-v5/SKILL.md +0 -173
  365. package/skills/cometchat-flutter-v5-calls/SKILL.md +0 -455
  366. package/skills/cometchat-flutter-v5-calls/references/add-calls-to-existing-chat.md +0 -193
  367. package/skills/cometchat-flutter-v5-calls/references/call-layouts.md +0 -103
  368. package/skills/cometchat-flutter-v5-calls/references/call-session.md +0 -285
  369. package/skills/cometchat-flutter-v5-calls/references/device-management.md +0 -124
  370. package/skills/cometchat-flutter-v5-calls/references/group-calls.md +0 -181
  371. package/skills/cometchat-flutter-v5-calls/references/idle-timeout.md +0 -99
  372. package/skills/cometchat-flutter-v5-calls/references/in-call-chat.md +0 -135
  373. package/skills/cometchat-flutter-v5-calls/references/migration-v4-to-v5.md +0 -210
  374. package/skills/cometchat-flutter-v5-calls/references/raise-hand.md +0 -255
  375. package/skills/cometchat-flutter-v5-calls/references/ringing-integration.md +0 -196
  376. package/skills/cometchat-flutter-v5-calls/references/server-push-bridge.md +0 -101
  377. package/skills/cometchat-flutter-v5-calls/references/share-invite.md +0 -148
  378. package/skills/cometchat-flutter-v5-conversations/SKILL.md +0 -118
  379. package/skills/cometchat-flutter-v5-core/SKILL.md +0 -239
  380. package/skills/cometchat-flutter-v5-customization/SKILL.md +0 -358
  381. package/skills/cometchat-flutter-v5-events/SKILL.md +0 -156
  382. package/skills/cometchat-flutter-v5-messages/SKILL.md +0 -259
  383. package/skills/cometchat-flutter-v5-production/SKILL.md +0 -216
  384. package/skills/cometchat-flutter-v5-push/SKILL.md +0 -285
  385. package/skills/cometchat-flutter-v5-testing/SKILL.md +0 -401
  386. package/skills/cometchat-flutter-v5-theming/SKILL.md +0 -161
  387. package/skills/cometchat-flutter-v5-troubleshooting/SKILL.md +0 -130
  388. package/skills/cometchat-flutter-v5-users-groups/SKILL.md +0 -152
  389. package/skills/cometchat-flutter-v6/SKILL.md +0 -446
  390. package/skills/cometchat-flutter-v6-calls/references/add-calls-to-existing-chat.md +0 -136
  391. package/skills/cometchat-flutter-v6-calls/references/advanced-features.md +0 -89
  392. package/skills/cometchat-flutter-v6-calls/references/call-layouts.md +0 -105
  393. package/skills/cometchat-flutter-v6-calls/references/call-session.md +0 -229
  394. package/skills/cometchat-flutter-v6-calls/references/device-management.md +0 -105
  395. package/skills/cometchat-flutter-v6-calls/references/group-calls.md +0 -190
  396. package/skills/cometchat-flutter-v6-calls/references/idle-timeout.md +0 -88
  397. package/skills/cometchat-flutter-v6-calls/references/in-call-chat.md +0 -125
  398. package/skills/cometchat-flutter-v6-calls/references/raise-hand.md +0 -275
  399. package/skills/cometchat-flutter-v6-calls/references/ringing-integration.md +0 -171
  400. package/skills/cometchat-flutter-v6-calls/references/server-push-bridge.md +0 -93
  401. package/skills/cometchat-flutter-v6-calls/references/share-invite.md +0 -102
  402. package/skills/cometchat-flutter-v6-conversations/SKILL.md +0 -238
  403. package/skills/cometchat-flutter-v6-messages/SKILL.md +0 -384
  404. package/skills/cometchat-flutter-v6-theming/SKILL.md +0 -293
  405. package/skills/cometchat-flutter-v6-users-groups/SKILL.md +0 -224
  406. package/skills/cometchat-i18n/SKILL.md +0 -419
  407. package/skills/cometchat-ios/SKILL.md +0 -325
  408. package/skills/cometchat-ios-calls/references/add-calls-to-existing-chat.md +0 -181
  409. package/skills/cometchat-ios-calls/references/audio-modes-and-controls.md +0 -45
  410. package/skills/cometchat-ios-calls/references/avaudiosession-routing.md +0 -188
  411. package/skills/cometchat-ios-calls/references/call-layouts.md +0 -76
  412. package/skills/cometchat-ios-calls/references/call-session.md +0 -218
  413. package/skills/cometchat-ios-calls/references/callkit-and-pushkit.md +0 -357
  414. package/skills/cometchat-ios-calls/references/custom-ui.md +0 -322
  415. package/skills/cometchat-ios-calls/references/device-management.md +0 -171
  416. package/skills/cometchat-ios-calls/references/group-calls.md +0 -359
  417. package/skills/cometchat-ios-calls/references/idle-timeout.md +0 -184
  418. package/skills/cometchat-ios-calls/references/in-call-chat.md +0 -179
  419. package/skills/cometchat-ios-calls/references/migration-v4-to-v5.md +0 -196
  420. package/skills/cometchat-ios-calls/references/picture-in-picture.md +0 -246
  421. package/skills/cometchat-ios-calls/references/raise-hand.md +0 -26
  422. package/skills/cometchat-ios-calls/references/recording-screen-share.md +0 -252
  423. package/skills/cometchat-ios-calls/references/ringing-integration.md +0 -143
  424. package/skills/cometchat-ios-calls/references/server-apns-pushkit.md +0 -267
  425. package/skills/cometchat-ios-calls/references/share-invite.md +0 -148
  426. package/skills/cometchat-ios-calls/references/swiftui-uikit-hosting.md +0 -246
  427. package/skills/cometchat-ios-calls/references/voip-cert-setup.md +0 -166
  428. package/skills/cometchat-ios-production/SKILL.md +0 -738
  429. package/skills/cometchat-ios-testing/SKILL.md +0 -376
  430. package/skills/cometchat-ios-theming/SKILL.md +0 -667
  431. package/skills/cometchat-ios-troubleshooting/SKILL.md +0 -1003
  432. package/skills/cometchat-native-bare-patterns/SKILL.md +0 -550
  433. package/skills/cometchat-native-calls/SKILL.md +0 -671
  434. package/skills/cometchat-native-calls/references/add-calls-to-existing-chat.md +0 -203
  435. package/skills/cometchat-native-calls/references/call-layouts.md +0 -125
  436. package/skills/cometchat-native-calls/references/call-session.md +0 -182
  437. package/skills/cometchat-native-calls/references/custom-ui.md +0 -254
  438. package/skills/cometchat-native-calls/references/device-management.md +0 -158
  439. package/skills/cometchat-native-calls/references/expo-vs-bare.md +0 -179
  440. package/skills/cometchat-native-calls/references/group-calls.md +0 -296
  441. package/skills/cometchat-native-calls/references/idle-timeout.md +0 -128
  442. package/skills/cometchat-native-calls/references/in-call-chat.md +0 -145
  443. package/skills/cometchat-native-calls/references/migration-v4-to-v5.md +0 -72
  444. package/skills/cometchat-native-calls/references/picture-in-picture.md +0 -276
  445. package/skills/cometchat-native-calls/references/raise-hand.md +0 -205
  446. package/skills/cometchat-native-calls/references/recording-screen-share.md +0 -169
  447. package/skills/cometchat-native-calls/references/ringing-integration.md +0 -118
  448. package/skills/cometchat-native-calls/references/server-push-bridge.md +0 -135
  449. package/skills/cometchat-native-calls/references/server-push-payloads.md +0 -193
  450. package/skills/cometchat-native-calls/references/share-invite.md +0 -146
  451. package/skills/cometchat-native-calls/references/voip-push-end-to-end.md +0 -319
  452. package/skills/cometchat-native-components/SKILL.md +0 -628
  453. package/skills/cometchat-native-core/SKILL.md +0 -679
  454. package/skills/cometchat-native-customization/SKILL.md +0 -716
  455. package/skills/cometchat-native-expo-patterns/SKILL.md +0 -552
  456. package/skills/cometchat-native-features/SKILL.md +0 -638
  457. package/skills/cometchat-native-placement/SKILL.md +0 -509
  458. package/skills/cometchat-native-production/SKILL.md +0 -700
  459. package/skills/cometchat-native-push/SKILL.md +0 -594
  460. package/skills/cometchat-native-testing/SKILL.md +0 -582
  461. package/skills/cometchat-native-theming/SKILL.md +0 -681
  462. package/skills/cometchat-native-troubleshooting/SKILL.md +0 -501
  463. package/skills/cometchat-nextjs-patterns/SKILL.md +0 -899
  464. package/skills/cometchat-placement/SKILL.md +0 -1360
  465. package/skills/cometchat-production/SKILL.md +0 -1027
  466. package/skills/cometchat-react-calls/SKILL.md +0 -752
  467. package/skills/cometchat-react-calls/references/add-calls-to-existing-chat.md +0 -146
  468. package/skills/cometchat-react-calls/references/call-layouts.md +0 -160
  469. package/skills/cometchat-react-calls/references/call-session.md +0 -235
  470. package/skills/cometchat-react-calls/references/custom-ui.md +0 -247
  471. package/skills/cometchat-react-calls/references/device-management.md +0 -210
  472. package/skills/cometchat-react-calls/references/group-calls.md +0 -257
  473. package/skills/cometchat-react-calls/references/idle-timeout.md +0 -188
  474. package/skills/cometchat-react-calls/references/in-call-chat.md +0 -212
  475. package/skills/cometchat-react-calls/references/migration-v4-to-v5.md +0 -170
  476. package/skills/cometchat-react-calls/references/picture-in-picture.md +0 -245
  477. package/skills/cometchat-react-calls/references/raise-hand.md +0 -238
  478. package/skills/cometchat-react-calls/references/recording-screen-share.md +0 -144
  479. package/skills/cometchat-react-calls/references/ringing-integration.md +0 -255
  480. package/skills/cometchat-react-calls/references/server-web-push-vapid.md +0 -241
  481. package/skills/cometchat-react-calls/references/share-invite.md +0 -175
  482. package/skills/cometchat-react-calls/references/testing-calls-on-web.md +0 -216
  483. package/skills/cometchat-react-calls/references/virtual-background.md +0 -32
  484. package/skills/cometchat-react-calls/references/voip-and-web-push.md +0 -165
  485. package/skills/cometchat-react-patterns/SKILL.md +0 -628
  486. package/skills/cometchat-react-push/SKILL.md +0 -634
  487. package/skills/cometchat-react-router-patterns/SKILL.md +0 -758
  488. package/skills/cometchat-react-testing/SKILL.md +0 -413
  489. package/skills/cometchat-theming/SKILL.md +0 -498
  490. package/skills/cometchat-troubleshooting/SKILL.md +0 -294
@@ -0,0 +1,80 @@
1
+ # Anti-patterns — what does NOT exist, and what compiles but is wrong
2
+
3
+ > Catalog-verified against the shipped 5.1.22 `.swiftinterface`. If a symbol is not in
4
+ > `catalogs/ios-v5.json`, it does not exist in the installed kit — no matter where you saw it.
5
+
6
+ ## 1. v4 composite components — they do not exist in v5
7
+
8
+ The single most damaging carry-over. These are **v4** names and are NOT in the v5 public API:
9
+
10
+ - `CometChatConversationsWithMessages`
11
+ - `CometChatUsersWithMessages`
12
+ - `CometChatGroupsWithMessages`
13
+ - `CometChatMessages`
14
+
15
+ They appeared on v5 documentation pages (tracked as **IOS-DOCS-001**), which is exactly why the
16
+ rule is "verify against the catalog", not "trust a code sample". v5 has **no composite** — the
17
+ host composes header + list + composer itself and owns the navigation. See `layout.md`.
18
+
19
+ If you find yourself reaching for a one-liner chat screen: there isn't one. That is the design.
20
+
21
+ ## 2. Styles are PROPERTIES, not setters
22
+
23
+ The kit's API is setter-based and returns `Self`, so `set(...)` is the reflex — but styling is
24
+ not applied that way:
25
+
26
+ ```swift
27
+ // wrong — no such setter
28
+ list.set(style: myStyle)
29
+
30
+ // right — assign the style property
31
+ list.style = myStyle
32
+ ```
33
+
34
+ Guessing the call form is the most common compile failure. Fetch the component's `.md` twin via
35
+ `docs-map.md` and match the shape exactly.
36
+
37
+ ## 3. `CometChatCallLogs` hands back `Any`
38
+
39
+ Unlike every other list component, five of its setters pass untyped values. Using them directly
40
+ does not compile — cast first:
41
+
42
+ ```swift
43
+ callLogs.set(onItemClick: { callLog, _ in
44
+ guard let log = callLog as? CallLog else { return }
45
+ // …
46
+ })
47
+ ```
48
+
49
+ This is a property of the shipped binary, not a docs error. Treat every `CometChatCallLogs`
50
+ callback parameter as `Any` until proven otherwise.
51
+
52
+ ## 4. The thread trap — two parent APIs
53
+
54
+ A threaded reply view needs its parent message, and there is more than one way to hand it over.
55
+ Mixing them (setting a parent message id on one component and a parent message object on
56
+ another) yields a view that renders but never sends. Set the parent ONE way, on the component
57
+ the docs prescribe for that surface, and verify by actually sending a reply.
58
+
59
+ ## 5. Assuming the SDK ships with the kit's dependencies resolved
60
+
61
+ The kit is a prebuilt binary xcframework compiled against ONE `CometChatSDK` version, and SPM
62
+ does **not** resolve that transitively. Pin the exact version. On 5.1.19 the shipped
63
+ `.swiftinterface` also hard-imports `CometChatCallsSDK`, so the Calls SDK must resolve for ANY
64
+ integration to compile — even a chat-only one that never places a call. 5.1.18 built without it,
65
+ so treat this as a packaging regression to state plainly, not as a design requirement to teach.
66
+
67
+ ## 6. Answering API from memory
68
+
69
+ The kit's surface is largely un-prefixed (`User`, `Group`, `ConversationRequest`), so a
70
+ plausible-looking name is often a real type from a DIFFERENT module — which is why guessing here
71
+ fails silently rather than loudly. Always fetch the `.md` twin via `docs-map.md`. Never read the
72
+ `.swiftinterface` as a substitute for the docs; it is the catalog's source, not user-facing API
73
+ guidance.
74
+
75
+ ## 7. Three things that are NOT like the web UI Kit
76
+
77
+ Read these before writing any Swift, or you will carry React habits across and they will compile but not work.
78
+ 1. **The API is SETTER-based, not prop-based.** `view.set(user: user)`, `view.set(controller: self)` — chained, returning `Self`. There are no props.
79
+ 2. **There is NO composite/all-in-one component.** `CometChatMessages`, `CometChatConversationsWithMessages` and friends are **v4** and do not exist in v5 — never emit them, in any file. You compose the chat screen from three components. (Some v5 doc pages still showed them; that is tracked as IOS-DOCS-001 and corrected upstream.)
80
+ 3. **The default UX is a NAVIGATION STACK**, not side-by-side panes. The list pushes the chat screen. There is nothing to "collapse on mobile" — iOS is one-pane by construction.
@@ -0,0 +1,123 @@
1
+ # docs-map — CometChat iOS v5: intent → the exact docs page to fetch
2
+
3
+ ## Reaching docs — PREFER the CometChat docs MCP; fetch is the fallback
4
+ The canonical doc channel is the **first-party CometChat docs MCP** — tools `search_cometchat_docs`,
5
+ `fetch_cometchat_doc_page`, and `get_cometchat_implementation_bundle`. **If those tools are connected,
6
+ use them instead of a raw web fetch:**
7
+ - **Find the page** → `search_cometchat_docs(query, version?)` — replaces browsing the scoped `llms-*` index.
8
+ - **Read the page** → `fetch_cometchat_doc_page(path)` — pass the SAME `<path>` the tables below list
9
+ (the conversations page path for your platform); the MCP resolves the `.md` twin and returns raw Markdown.
10
+ A full `https://…/docs/<path>` URL also works.
11
+ - **A whole feature/recipe** → `get_cometchat_implementation_bundle(...)` is **NON-AUTHORITATIVE** — curated STATIC recipes that can lag the live docs (verified stale vs v7: e.g. `CometChatConversationsWithMessages`, `css-variables.css`). Treat any bundle as a hint only: RECONCILE it against the `fetch_cometchat_doc_page` result + the pack's hardening; never emit bundle code verbatim.
12
+
13
+ The MCP reads whatever docs environment it is pointed at (production by default; a preview when repointed),
14
+ so it also carries the environment-swap concern below — no hardcoded host on the skill side.
15
+
16
+ **If the MCP tools are NOT connected:** add it (`claude mcp add --transport http cometchat-docs https://mcp.cometchat.com/mcp`, or reinstall/enable the plugin) and retry; only if it still will not connect, fall back to a plain fetch via `DOCS_BASE`/`SDK_DOCS_BASE` (defined next).
17
+ Either way the `<path>` catalog in this file is the source of truth for WHICH page — MCP-vs-fetch is only HOW.
18
+
19
+ ## DOCS_BASE — the fetch FALLBACK entry point (⚠️ SWAP HERE to change environments)
20
+ ```
21
+ DOCS_BASE = https://www.cometchat.com/docs
22
+ SDK_DOCS_BASE = https://www.cometchat.com/docs
23
+ ```
24
+ > **Fetch rule:** always build a URL as `DOCS_BASE` + the path shown, then append `.md`.
25
+ > Never hardcode a host anywhere else; **never** read the kit's `.swiftinterface`, and never
26
+ > answer API from memory.
27
+ >
28
+ > **Known docs gap (DOCS-BACKLOG.md):** Some iOS v5 pages on production may still document v4
29
+ > composite components (`*WithMessages`) that do not exist in 5.1.22. Verify every symbol against
30
+ > `catalogs/ios-v5.json` before emitting; the catalog is the ground truth, not the docs.
31
+
32
+ ## The convention
33
+ `DOCS_BASE` + `<path>` + `.md` → raw Markdown (verbatim Swift + an "AI Integration Quick Reference"
34
+ block: component, package, props, callbacks).
35
+ ```
36
+ Fetch: {DOCS_BASE}/ui-kit/ios/conversations.md
37
+ ```
38
+ Fallback order: `.md` twin → if it 404s, the same URL **without** `.md` (HTML) → **never** the
39
+ `.swiftinterface`, never memory.
40
+
41
+ ## Scoped iOS v5 index
42
+ ```
43
+ {DOCS_BASE}/ui-kit/ios/llms-ios-v5.md
44
+ ```
45
+ > Covers all 51 iOS UI Kit v5 pages, and its **"Task guides (recipes)"** section is the source for
46
+ > the guide list below. Prefer this index over the site-wide `{DOCS_BASE}/llms.txt` (large; last
47
+ > resort). The twin of React's `llms-react-v7.md` and Angular's `llms-angular-v5.md`.
48
+ > If this path 404s, fall back to the trigger table below.
49
+
50
+ ## SDK docs — the FALLBACK reference (a feature the UI Kit has NO component for)
51
+ The rule of the pack: **for every feature, first check whether the UI Kit has a component for it**
52
+ (the table below + `catalogs/ios-v5.json`). **If it does — USE it. If it does NOT** (AI agents,
53
+ campaigns, moderation, add-members, transient messages, low-level presence, webhooks) **— drop to the
54
+ Chat SDK and call its method directly.** The SDK is already linked under the kit. Look the method up —
55
+ never guess:
56
+ - **SDK index:** prefer the scoped `{SDK_DOCS_BASE}/sdk/ios/llms-ios-v4.md` — it routes every iOS
57
+ Chat SDK v4 page by intent. If it 404s, fall back to `{SDK_DOCS_BASE}/sdk/ios/overview.md` and
58
+ the page for the area.
59
+ - **Convention:** `{SDK_DOCS_BASE}/sdk/ios/<page>` + `.md`. Each page opens with an **"AI Integration
60
+ Quick Reference"** accordion (package · import · key methods) — read that FIRST.
61
+ - **Worked example (the kit ships no component):** adding group members →
62
+ `{SDK_DOCS_BASE}/sdk/ios/group-add-members.md` →
63
+ `CometChat.addMembersToGroup(guid:groupMembers:bannedUIDs:onSuccess:onError:)`, driven from a
64
+ `CometChatUsers` picker in `selectionMode`.
65
+
66
+ ## Don't fetch the hot path — it's baked
67
+ Install, the exact version trio, `init → login → render`, the golden-path composition and its five
68
+ layout rules are BAKED in `cometchat-ios-core`. Fetch ONLY for exhaustive API, long-tail components,
69
+ theming tokens, or feature enablement.
70
+
71
+ ## The 80% trigger table (URL = `{DOCS_BASE}` + path, then append `.md`)
72
+ | Intent | Path (append `.md`) |
73
+ |---|---|
74
+ | install / init / login / permissions | `/ui-kit/ios/getting-started` |
75
+ | conversation list → chat screen (THE core recipe) | `/ui-kit/ios/ios-conversation` |
76
+ | 1:1 or group chat from a user/group list | `/ui-kit/ios/ios-one-to-one-chat` |
77
+ | tab-based app | `/ui-kit/ios/ios-tab-based-chat` |
78
+ | conversation list (full API) | `/ui-kit/ios/conversations` |
79
+ | message list · composer · header | `/ui-kit/ios/message-list` · `message-composer` · `message-header` |
80
+ | users · groups · group members | `/ui-kit/ios/users` · `groups` · `group-members` |
81
+ | threads | `/ui-kit/ios/threaded-messages-header` |
82
+ | search | `/ui-kit/ios/search` |
83
+ | call buttons · incoming · outgoing · ongoing · logs | `/ui-kit/ios/call-buttons` · `incoming-call` · `outgoing-call` · `ongoing-call` · `call-logs` |
84
+ | calling setup | `/ui-kit/ios/calling-integration` |
85
+ | AI features / assistant history | `/ui-kit/ios/ai-features` · `/ui-kit/ios/ai-assistant-chat-history` |
86
+ | theming: tokens · colors · per-component · bubbles | `/ui-kit/ios/theme-introduction` · `color-resources` · `component-styling` · `message-bubble-styling` |
87
+ | localization · sounds | `/ui-kit/ios/localize` · `/ui-kit/ios/sound-manager` |
88
+ | formatters (mentions · shortcuts) | `/ui-kit/ios/mentions-formatter-guide` · `shortcut-formatter-guide` |
89
+ | message templates | `/ui-kit/ios/message-template` |
90
+ | events | `/ui-kit/ios/events` |
91
+ | extensions (dashboard-gated) | `/ui-kit/ios/extensions` |
92
+ | full component list | `/ui-kit/ios/components-overview` |
93
+ | v4 → v5 upgrade | `/ui-kit/ios/upgrading-from-v4` |
94
+ | push notifications | `/notifications/push-overview` |
95
+
96
+ ## Task guides (recipes) — for a whole FEATURE, BUILD FROM the guide + COMPARE against it
97
+ For a TASK ask (a whole capability, not one component's API), the docs ship **end-to-end guides**. iOS
98
+ has **nine** — more than React:
99
+ `guide-overview` · `guide-new-chat` · `guide-group-chat` · `guide-group-ownership` ·
100
+ `guide-threaded-messages` · `guide-message-privately` · `guide-block-unblock-user` ·
101
+ `guide-call-log-details` · `guide-ai-agent`
102
+ (at `{DOCS_BASE}/ui-kit/ios/<guide>.md`). Use the matching guide **two ways**:
103
+ 1. **As the implementation SOURCE** — build the feature from the official recipe, adapted
104
+ **ADDITIVELY** into the user's app (reuse their navigation, auth and layout; never drop in the
105
+ guide's standalone shell).
106
+ 2. **As a COMPLETENESS check** — after you emit, DIFF your implementation against the guide: every
107
+ component, call and affordance it shows. Fill any gap.
108
+
109
+ > **Then apply the baked HARDENING DELTAS — the guide is the BASELINE, not the whole truth.**
110
+ > The guides do not carry the runtime lessons: `set(controller:)` on every component or its
111
+ > affordances are inert; the composer pinned to the **safe-area bottom** (NOT `keyboardLayoutGuide` — the kit composer already handles the keyboard, and double-pinning collapses the list)
112
+ > the recipe shows; explicit vertical division or the list collapses; the host nav bar hidden or you
113
+ > get two headers; and the thread trap — `CometChatThreadedMessageHeader` takes
114
+ > `set(parentMessage:)`; the LIST takes `set(user:parentMessage:withParent:)` (parent in the same
115
+ > call as the target); the composer takes `set(user:)` + `set(parentMessageId:)`.
116
+
117
+ **No matching guide? → build from this skill's baked golden path** and fetch each component's `.md`
118
+ twin for exact API. The guide is an enhancement when present, never a hard dependency.
119
+
120
+ ## Not in the table?
121
+ Fetch the page from the trigger table nearest your intent, or the site-wide `{DOCS_BASE}/llms.txt`.
122
+ Never guess a path; never read the `.swiftinterface`; never answer API from memory. If a symbol is not
123
+ in `catalogs/ios-v5.json`, it does not exist in v5 — do not emit it, whatever a page says.
@@ -0,0 +1,23 @@
1
+ # Install — Swift Package Manager
2
+
3
+ The full install detail. The entry keeps only the three pinned versions and the SPM-only rule.
4
+
5
+ **Use SPM. Do not use CocoaPods and do not offer it as an option**, even if the user's project already has a `Podfile`: CocoaPods distribution is being wound down and its spec repo is going read-only, so a Podfile-based integration cannot receive future releases. A project already on CocoaPods should be moved to SPM as part of adding CometChat.
6
+
7
+ Add these three packages. The kit is a **prebuilt binary compiled against ONE Chat SDK version** and SPM does not resolve that transitively, so the versions are **exact, not floors** — overriding either side is unsupported and either fails to build or crashes at runtime.
8
+
9
+ | Package | Repository | Version |
10
+ |---|---|---|
11
+ | `CometChatUIKitSwift` | `https://github.com/cometchat/cometchat-uikit-ios` | **exactly 5.1.22** |
12
+ | `CometChatSDK` | `https://github.com/cometchat/chat-sdk-ios` | **exactly 4.1.7** |
13
+ | `CometChatCallsSDK` | `https://github.com/cometchat/calls-sdk-ios` | **exactly 5.0.3** |
14
+
15
+ > **All three must be added BY HAND — including the Calls SDK, and including for a chat-only app.**
16
+ > This is a **packaging regression in 5.1.19**, not a design requirement, so treat it as a workaround with a shelf life rather than a permanent rule:
17
+ > - 5.1.19's compiled `.swiftinterface` carries `import CometChatCallsSDK`, and Swift requires every import in an interface to be resolvable — so the module must be present to compile **any** integration, even one with no calling.
18
+ > - Nothing in the kit's **public API actually uses a CallsSDK type** (0 references), and **5.1.16 and 5.1.18 have no such import at all**. It appears in 5.1.19 only. That makes it an internal import leaking into the public interface, not an intentional dependency.
19
+ > - The kit's own `Package.swift` declares **neither** `CometChatSDK` nor `CometChatCallsSDK`, so SPM cannot supply them. Omit the Calls SDK and the build fails with `unable to resolve module dependency: 'CometChatCallsSDK'`.
20
+ >
21
+ > If a future release drops that import, the Calls SDK goes back to being calls-only and belongs to `cometchat-ios-calls`. Re-check the interface before assuming this still applies.
22
+
23
+ Deployment target **iOS 15.1+**. Add the usage descriptions the kit's media features need to `Info.plist` (camera, microphone, photo library) — see `references/setup-credentials.md`.
@@ -0,0 +1,186 @@
1
+ # The iOS sizing standard — why each rule exists
2
+
3
+ > Every rule below was measured on a simulator by the native review harness (iPhone 16 / iOS
4
+ > 18.2, kit 5.1.22), not reasoned across from the web UI Kit. Where a claim is unverified, it
5
+ > says so.
6
+
7
+ v5 ships **no composite chat component**. The host composes `CometChatMessageHeader` +
8
+ `CometChatMessageList` + `CometChatCompactMessageComposer` and owns the layout. That means the sizing
9
+ below is YOUR responsibility — the kit will not correct it, and every failure here is a RUNTIME
10
+ failure that compiles perfectly.
11
+
12
+ ## Rule 1 — exactly one target
13
+
14
+ `conversationWith` is a `User` **or** a `Group`, never both. Set one:
15
+
16
+ ```swift
17
+ if let user { list.set(user: user) } else if let group { list.set(group: group) }
18
+ ```
19
+
20
+ Setting both is not a compile error; it produces a surface bound to the wrong conversation.
21
+
22
+ ## Rule 2 — `set(controller:)` is REQUIRED. Omitting it CRASHES the app.
23
+
24
+ Call `set(controller: self)` on the header, the list and the composer. It hands the kit a
25
+ controller to present its OWN sub-screens from — the action sheet behind a long-press, the media
26
+ picker, the details screen.
27
+
28
+ **Measured: omitting it is not a degradation, it is a crash.** Long-press any message in a surface
29
+ built without `set(controller:)` and the app dies:
30
+
31
+ ```
32
+ EXC_BREAKPOINT (SIGTRAP) — nil force-unwrap
33
+ MessagePopupViewController.buildUI()
34
+ ← CometChatMessageList.onCellLongPressGestureRecognized
35
+ ← CometChatMessageBubble.onLongPressEnded
36
+ ```
37
+
38
+ The kit force-unwraps the presenting controller it was never given. There is no error, no no-op,
39
+ no degraded mode — the process terminates on a gesture any user will perform within minutes.
40
+
41
+ **An earlier version of this file said the opposite.** It reported that omitting `set(controller:)`
42
+ "affects neither rendering nor primary navigation" and called the kit's presented sub-screens
43
+ "genuinely untested" — because our own gate only tapped, and a tap never reaches this path. The
44
+ sub-screens were testable all along; the answer is a crash. `Fixtures/broken-no-controller` scored
45
+ WORKING for the entire life of this project while modelling an app that dies on first long-press.
46
+ The gate now long-presses and detects process death, so the fixture fails as it always should have.
47
+
48
+ The lesson is the one this pack keeps relearning: an untested path reported as "probably fine" is a
49
+ claim, not a measurement. Say "untested" and stop there, or test it.
50
+
51
+ ## Rule 3 — pin to the safe area, top AND bottom
52
+
53
+ ```swift
54
+ headerView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor)
55
+ composerView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor)
56
+ ```
57
+
58
+ Both anchors come straight from the published recipe. **Do not pin the composer to
59
+ `view.keyboardLayoutGuide.topAnchor`.** `CometChatCompactMessageComposer` does its own keyboard
60
+ adjustment, so that double-applies the offset. Measured on iPhone 16 / iOS 18.2 with the keyboard
61
+ raised:
62
+
63
+ <!-- Provenance: the table below was measured against `CometChatMessageComposer`, which the golden
64
+ path used before it moved to the compact composer. The rule carries over because the compact
65
+ composer self-adjusts the same way — it registers
66
+ `UIResponder.keyboardWillChangeFrameNotification` and offsets itself (source-verified on
67
+ master-v5). The numbers are NOT a re-measurement of the compact composer; re-measure before
68
+ quoting them as such. -->
69
+
70
+
71
+ | | safe-area pin (correct) | keyboardLayoutGuide pin |
72
+ |---|---|---|
73
+ | message list | `(0, 109, 393, 267)` — survives | **height 0 — gone** |
74
+ | composer internal stack | on the keyboard top | **`(0, -249, 393, 0)`** |
75
+
76
+ The user taps to type and the entire conversation disappears, along with the text field they were
77
+ about to type into. It compiles, and it looks perfect until that first tap.
78
+
79
+ This skill previously taught the keyboardLayoutGuide pin as a "hardening delta" over the docs, and
80
+ asserted it was simulator-verified. That assertion was false: no gate raised the keyboard, so
81
+ nothing could contradict it. The gate now taps the composer and grades whether a list survives
82
+ above the keyboard (`Fixtures/broken-keyboard-double-pin` is the standing regression case).
83
+
84
+ ## Rule 4 — divide the vertical space EXPLICITLY
85
+
86
+ The list must be pinned top and bottom so it scrolls internally instead of growing its parent:
87
+
88
+ ```swift
89
+ messageListView.topAnchor.constraint(equalTo: headerView.bottomAnchor),
90
+ messageListView.bottomAnchor.constraint(equalTo: composerView.topAnchor),
91
+ ```
92
+
93
+ Without both, the surface collapses to its intrinsic content height. **This is the defect the
94
+ harness catches most often**: a collapsed pane measured 10% of screen height where a correct one
95
+ measures ~90%. It compiles, it mounts, and a launch-only screenshot of the conversation list
96
+ looks perfectly fine — the collapse is one tap away, on the pushed screen.
97
+
98
+ ## Rule 5 — one navigation bar, not two
99
+
100
+ `CometChatMessageHeader` carries its own title and back control. Left alone, `UINavigationController`
101
+ adds a second bar above it:
102
+
103
+ ```swift
104
+ override func viewDidLoad() {
105
+ super.viewDidLoad()
106
+ navigationController?.setNavigationBarHidden(true, animated: false)
107
+ }
108
+ override func viewWillDisappear(_ animated: Bool) {
109
+ super.viewWillDisappear(animated)
110
+ navigationController?.setNavigationBarHidden(false, animated: true) // restore for the list
111
+ }
112
+ ```
113
+
114
+ Hide it on the message screen only, and restore it on the way out — hiding it globally strips
115
+ the conversation list's own bar.
116
+
117
+ ## Navigation, not panes
118
+
119
+ The web kit's default is side-by-side. iOS composes by NAVIGATION: the conversation list
120
+ pushes the message pane. Wire selection or the list is a dead end:
121
+
122
+ ```swift
123
+ conversations.set(onItemClick: { [weak nav] conversation, _ in
124
+ let vc = MessagesVC()
125
+ vc.user = conversation.conversationWith as? CometChatSDK.User
126
+ vc.group = conversation.conversationWith as? CometChatSDK.Group
127
+ nav?.pushViewController(vc, animated: true)
128
+ })
129
+ ```
130
+
131
+ ## Surface errors
132
+
133
+ A failed load and an empty account render the SAME empty list. Wire `set(onError:)` or a
134
+ failure is indistinguishable from "no conversations yet".
135
+
136
+ ### Own the bar centrally — the per-screen recipe does not survive real flows
137
+
138
+ The published recipe (hide in `viewDidLoad`, restore in `viewWillDisappear`) works for a single
139
+ push and breaks in three flows we measured:
140
+
141
+ | flow | result |
142
+ |---|---|
143
+ | activate the list's search field, then open a conversation | host bar returns |
144
+ | chat → thread | host bar returns — and on the THREAD screen that is what you want: it has no back control of its own (see below) |
145
+ | pop back thread → chat | chat screen ends with two headers |
146
+
147
+ Measured on the search flow: `(0,109,393,579)` becomes `(0,199,393,488)` — two headers, 91pt lost.
148
+
149
+ **Why the obvious fixes fail.** `viewDidLoad` runs once, so it cannot correct a later transition.
150
+ `viewWillAppear` cannot either: the INCOMING screen's `viewWillAppear` runs BEFORE the outgoing
151
+ screen's `viewWillDisappear`, so the restore lands last and clobbers the hide. `isMovingFromParent`
152
+ handles the pushes but not the pop-back.
153
+
154
+ **What works, measured, with no flash** — decide the bar on the navigation controller:
155
+
156
+ ```swift
157
+ final class NavBarCoordinator: NSObject, UINavigationControllerDelegate {
158
+ // Hide the bar ONLY on screens whose kit header has its own back control (your composed chat
159
+ // screen). Do NOT hide it on a pushed thread screen: CometChatThreadedMessageHeader ships NO
160
+ // back/close of its own (measured — its public surface is hideReceipt/hideBubbleHeader/
161
+ // hideReplyCount/hideReplyCountBar/hideAvatar plus setters), and edge-swipe does not pop it.
162
+ // Hiding the host bar there removes the ONLY exit and strands the user. Same rule for any
163
+ // pushed kit list (CometChatGroupMembers etc.): keep the host bar, hide the KIT's — see the
164
+ // placement skill.
165
+ private func shouldHide(_ vc: UIViewController) -> Bool { vc is MessagesVC } // your chat screens ONLY
166
+
167
+ func navigationController(_ nav: UINavigationController, willShow vc: UIViewController, animated: Bool) {
168
+ nav.setNavigationBarHidden(shouldHide(vc), animated: animated)
169
+ }
170
+ func navigationController(_ nav: UINavigationController, didShow vc: UIViewController, animated: Bool) {
171
+ let want = shouldHide(vc) // re-assert ONLY if clobbered, so no flash
172
+ if nav.isNavigationBarHidden != want { nav.setNavigationBarHidden(want, animated: false) }
173
+ }
174
+ }
175
+ ```
176
+
177
+ Hold the coordinator somewhere that outlives the push — `UINavigationController.delegate` is weak.
178
+ With it in place the message pane measures `(0,109,393,579)` through all four flows.
179
+
180
+ **Note on how this was found.** An earlier pass reported the defect with `CometChatSearch` as the
181
+ trigger; a fixture built around presenting and dismissing `CometChatSearch` measured clean every
182
+ time, and this file recorded it as unreproduced. The real trigger is activating the list's OWN
183
+ `UISearchController` — which is simply how a user reaches search, so the original report was right
184
+ about the symptom and wrong about the cause. `Fixtures/broken-navbar-after-search` is the standing
185
+ regression case, and the gate now asserts `navBars == 0` on the message pane, because the collapse
186
+ ratio cannot see this (488/852 = 57%, over the 50% minimum).
@@ -0,0 +1,197 @@
1
+ # Setup & credentials (iOS UI Kit v5)
2
+
3
+ > Verified against `CometChatUIKitSwift` 5.1.22 / `CometChatSDK` 4.1.7. Exact API always comes
4
+ > from the docs `.md` twin via `docs-map.md` — never from memory and never from `.swiftinterface`.
5
+
6
+ ## 1. Detect before you add anything
7
+
8
+ Read the project, don't ask what you can see:
9
+
10
+ | Signal | Means |
11
+ |---|---|
12
+ | `Package.swift` / `*.xcodeproj` naming `CometChatUIKitSwift` | already integrated via SPM — REUSE, do not re-add |
13
+ | `Podfile` naming `CometChatUIKitSwift` | integrated via **CocoaPods** — see *version_conflict* below |
14
+ | `*.xcworkspace` present | CocoaPods project; open the workspace, never the `.xcodeproj` |
15
+ | none of the above | greenfield add |
16
+
17
+ ## 2. Credentials — the full chain, including the two steps that make it work
18
+
19
+ The chain is `Secrets.xcconfig` → build settings → `Info.plist` → `Bundle.main`. Drawing the chain
20
+ is not enough: **an xcconfig that is not ATTACHED to the build configurations substitutes nothing**,
21
+ and `Info.plist` only exposes a value if the key is DECLARED there. Miss either and
22
+ `Bundle.main.infoDictionary` hands back the literal string `$(COMETCHAT_APP_ID)` — which is why the
23
+ guard in step 4 exists, and why omitting these steps drops you straight into the failure it detects.
24
+
25
+ ### Step 0 — get the App ID / Region / Auth Key — OFFER to FETCH first, never default to "paste it yourself"
26
+ Before writing any file, you need three values: **App ID · Region · Auth Key** (Auth Key is dev-only).
27
+ **OFFER to fetch them from the CometChat Dashboard** — load the CLI on demand
28
+ (`@3` pins the CLI major that matches the v5 skills):
29
+
30
+ ```bash
31
+ npx @cometchat/skills-cli@3 auth login
32
+ npx @cometchat/skills-cli@3 provision use --app-id <id> --json
33
+ ```
34
+
35
+ Ask which EXISTING app; never auto-create. **Already have App ID / Region / Auth Key? Just paste them** —
36
+ manual paste is the fallback, not the default. Mint **auth tokens server-side** for production; never
37
+ ship the Auth Key (§4). The CLI is a dashboard/API client only (`auth`/`provision`/`config`/`features`) —
38
+ it does NOT write env files or generate code; this skill does the wiring in Steps 1–5 below.
39
+
40
+ ### Step 1 — write the file (gitignored)
41
+
42
+ `Config/Secrets.xcconfig`:
43
+
44
+ ```
45
+ COMETCHAT_APP_ID = 123456abcdef
46
+ COMETCHAT_REGION = us
47
+ COMETCHAT_AUTH_KEY = <dev only — see §4>
48
+ ```
49
+
50
+ Add `Config/Secrets.xcconfig` to `.gitignore` **before** you put a real value in it.
51
+
52
+ > `//` starts a comment in an xcconfig, so any value containing it is silently truncated. Values
53
+ > here are plain identifiers, but keep it in mind if you ever add a URL.
54
+
55
+ ### Step 2 — ATTACH it to the build configurations (the step everyone misses)
56
+
57
+ *Xcode:* select the **project** (not the target) → **Info** → **Configurations** → expand **Debug**
58
+ and **Release** → set the configuration file to `Secrets.xcconfig`.
59
+
60
+ *xcodegen* (`project.yml`), at the top level:
61
+
62
+ ```yaml
63
+ configFiles:
64
+ Debug: Config/Secrets.xcconfig
65
+ Release: Config/Secrets.xcconfig
66
+ ```
67
+
68
+ Without this the keys are not build settings at all and nothing substitutes them.
69
+
70
+ ### Step 3 — DECLARE the keys in `Info.plist`
71
+
72
+ Build settings are not visible to your code on their own. Each one you want at runtime must be
73
+ declared as an `Info.plist` entry whose value is the `$(...)` reference.
74
+
75
+ > **First check whether the project HAS an `Info.plist`.** Since Xcode 13 the default is
76
+ > `GENERATE_INFOPLIST_FILE = YES` and there is no plist file in the project at all. You cannot add
77
+ > a CUSTOM key to a generated plist through build settings — measured on Xcode 16:
78
+ >
79
+ > | build setting | reaches the built `Info.plist`? |
80
+ > |---|---|
81
+ > | `INFOPLIST_KEY_NSCameraUsageDescription` (an Apple-defined key) | **yes** |
82
+ > | `INFOPLIST_KEY_COMETCHAT_APP_ID` (a custom key) | **no — silently dropped** |
83
+ >
84
+ > `INFOPLIST_KEY_*` only understands keys Apple defines. So on a generated-plist project, either
85
+ > add a real `Info.plist` and point `INFOPLIST_FILE` at it, or add the keys through the target's
86
+ > **Info** tab, which makes Xcode create one for you. The §3 usage descriptions below are Apple
87
+ > keys, so those CAN stay as `INFOPLIST_KEY_*` build settings — it is only the `COMETCHAT_*`
88
+ > credentials that need a real file.
89
+
90
+ ```xml
91
+ <key>COMETCHAT_APP_ID</key>
92
+ <string>$(COMETCHAT_APP_ID)</string>
93
+ <key>COMETCHAT_REGION</key>
94
+ <string>$(COMETCHAT_REGION)</string>
95
+ <key>COMETCHAT_AUTH_KEY</key>
96
+ <string>$(COMETCHAT_AUTH_KEY)</string>
97
+ ```
98
+
99
+ ### Step 4 — read it back, and fail loudly
100
+
101
+ An unsubstituted value arrives as the literal `$(COMETCHAT_APP_ID)`, not as `nil` — a
102
+ silent-wrong-value trap, so reject that form explicitly:
103
+
104
+ ```swift
105
+ func credential(_ key: String) -> String? {
106
+ guard let v = Bundle.main.infoDictionary?[key] as? String,
107
+ !v.isEmpty, !v.hasPrefix("$(") else { return nil } // reject the un-substituted form
108
+ return v
109
+ }
110
+ ```
111
+
112
+ ### Step 5 — verify the substitution before blaming CometChat
113
+
114
+ Build, then print `Bundle.main.infoDictionary?["COMETCHAT_APP_ID"]`. A real App ID means the chain
115
+ works. The literal `$(COMETCHAT_APP_ID)` means step 2 or step 3 is missing — the credentials are
116
+ fine and the wiring is not. An init/login failure here is NOT a CometChat problem.
117
+
118
+ > For a shipping build, do not carry the Auth Key in the Release configuration at all — see §4.
119
+
120
+ ## 3. `Info.plist` usage descriptions
121
+
122
+ The kit's media affordances call system pickers, and iOS terminates the app if the matching
123
+ usage string is absent. Add the ones your chosen features actually need:
124
+
125
+ | Key | Needed by |
126
+ |---|---|
127
+ | `NSCameraUsageDescription` | camera attachments, video calling |
128
+ | `NSMicrophoneUsageDescription` | voice notes, voice/video calling |
129
+ | `NSPhotoLibraryUsageDescription` | image/video attachments |
130
+
131
+ Write a real sentence for each ("Take photos to send in chat") — App Review rejects placeholders.
132
+
133
+ ## 4. Auth Key vs auth token — the production rule
134
+
135
+ - **Auth Key** authenticates as ANY user. It is a development convenience only. Shipping it in
136
+ an app binary hands every account to anyone who unzips the IPA.
137
+ - **Production**: mint an auth token **server-side** and log in with it. The client never holds
138
+ the Auth Key.
139
+
140
+ `login(uid:)` does NOT create users. On a fresh app the docs' pre-created test users are
141
+ `cometchat-uid-1 … 5`; for any real app, ASK which UID to use rather than guessing.
142
+
143
+ ## 5. version_conflict
144
+
145
+ CocoaPods distribution is winding down and its spec repo is going read-only, so **SPM is the
146
+ only supported integration path**. A `Podfile` is a DETECTION signal, never an instruction.
147
+
148
+ If the project already integrates via CocoaPods, STOP and surface the choice — do not silently
149
+ add SPM alongside it. Two package managers resolving the same binary xcframework is the
150
+ `version_conflict` case: state it, recommend migrating to SPM, and let the user decide.
151
+
152
+ The kit is a prebuilt binary compiled against ONE SDK version, and SPM does not resolve that
153
+ transitively — pin `CometChatSDK` to the exact version the kit requires, or you get link errors
154
+ that look like missing symbols.
155
+
156
+ ## 6. `cometchat-settings.json` — telemetry attribution
157
+
158
+ Separate from the xcconfig chain above, and required for CometChat to attribute the integration
159
+ to the skills rather than to a hand-written one.
160
+
161
+ `CometChatUIKit.initFromSettings` takes **no parameters**. That is not a limitation — it reads a
162
+ JSON file from the app bundle. Create `cometchat-settings.json` and add it to the target's **Copy
163
+ Bundle Resources**:
164
+
165
+ ```json
166
+ {
167
+ "appId": "<your app id>",
168
+ "region": "<your region>",
169
+ "authKey": "<dev only — see §4>",
170
+ "presenceSubscription": { "type": "ALL_USERS" }
171
+ }
172
+ ```
173
+
174
+ Valid `presenceSubscription.type` values are `ALL_USERS`, `ROLES`, `FRIENDS`, `NONE` — the SDK
175
+ rejects anything else by name. **Gitignore this file**: it carries the Auth Key, exactly like
176
+ `Secrets.xcconfig`.
177
+
178
+ ### Call it BEFORE the classic init, not instead of it
179
+
180
+ | init path | `integrationSource` | login / render |
181
+ |---|---|---|
182
+ | classic `CometChatUIKit(uiKitSettings:)` alone | *absent* — calls stamped **`"manual"`** | works |
183
+ | `initFromSettings` alone | `"ai-agent"` | **fails — `Err_101`** |
184
+ | `initFromSettings` **then** classic | `"ai-agent"` | works |
185
+
186
+ Measured on 5.1.19 with the app container wiped between runs. On this version
187
+ `initFromSettings` initialises the Chat SDK but leaves the UI Kit layer uninitialised, so using it
188
+ alone breaks login — a kit defect, and the reason the recipe runs both.
189
+
190
+ > Why this is worth the extra call: without it every app you build is attributed to
191
+ > `"manual"`. That is not merely missing attribution, it is **wrong** attribution.
192
+
193
+ > A note on verifying this API: `integrationSource` appears **nowhere** in the shipped
194
+ > `.swiftinterface`, and an earlier version of this pack concluded from that fact that attribution
195
+ > was impossible on iOS. That was wrong. The interface lists which SYMBOLS EXIST; it says nothing
196
+ > about runtime behaviour or where a function's inputs come from. Both facts here came from the
197
+ > shipped binaries and from measuring `UserDefaults`, not from the interface.