adhelm 0.1.0__tar.gz

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 (265) hide show
  1. adhelm-0.1.0/.gitignore +38 -0
  2. adhelm-0.1.0/LICENSE +202 -0
  3. adhelm-0.1.0/NOTICE +10 -0
  4. adhelm-0.1.0/PKG-INFO +230 -0
  5. adhelm-0.1.0/README.md +192 -0
  6. adhelm-0.1.0/docs/pilots/README.md +110 -0
  7. adhelm-0.1.0/pyproject.toml +120 -0
  8. adhelm-0.1.0/skills/ad-program-optimization/SKILL.md +417 -0
  9. adhelm-0.1.0/skills/ad-program-optimization/references/program-analysis.md +89 -0
  10. adhelm-0.1.0/skills/conversion-optimization/SKILL.md +248 -0
  11. adhelm-0.1.0/skills/conversion-optimization/references/funnel-experiments.md +43 -0
  12. adhelm-0.1.0/skills/conversion-optimization/references/measurement-workflow.md +246 -0
  13. adhelm-0.1.0/src/adhelm/__init__.py +20 -0
  14. adhelm-0.1.0/src/adhelm/__main__.py +3 -0
  15. adhelm-0.1.0/src/adhelm/_compiled_meta_campaign_pause_approval_bridge_v2.py +317 -0
  16. adhelm-0.1.0/src/adhelm/_generated_installed_approval_bridge_binding.py +14 -0
  17. adhelm-0.1.0/src/adhelm/_generated_meta_campaign_pause_approval_bridge_binding_v2.py +13 -0
  18. adhelm-0.1.0/src/adhelm/_installed_approval_execution_status.py +70 -0
  19. adhelm-0.1.0/src/adhelm/_installed_meta_campaign_pause_approval_bridge_v2.py +978 -0
  20. adhelm-0.1.0/src/adhelm/_installed_native_approval_bridge.py +1254 -0
  21. adhelm-0.1.0/src/adhelm/_meta_ads_token_session.py +931 -0
  22. adhelm-0.1.0/src/adhelm/_meta_campaign_pause_approval_bridge_protocol_v2.py +855 -0
  23. adhelm-0.1.0/src/adhelm/_meta_campaign_pause_approval_bridge_transport_v2.py +198 -0
  24. adhelm-0.1.0/src/adhelm/_native_approval_bridge_protocol.py +842 -0
  25. adhelm-0.1.0/src/adhelm/_native_approval_bridge_transport.py +823 -0
  26. adhelm-0.1.0/src/adhelm/additional_compile_cli.py +120 -0
  27. adhelm-0.1.0/src/adhelm/approval_acceptance.py +859 -0
  28. adhelm-0.1.0/src/adhelm/approval_protocol.py +3232 -0
  29. adhelm-0.1.0/src/adhelm/approval_records.py +172 -0
  30. adhelm-0.1.0/src/adhelm/artifact_cli.py +569 -0
  31. adhelm-0.1.0/src/adhelm/artifact_detail.py +218 -0
  32. adhelm-0.1.0/src/adhelm/artifact_workflows.py +795 -0
  33. adhelm-0.1.0/src/adhelm/artifacts.py +1044 -0
  34. adhelm-0.1.0/src/adhelm/assets.py +413 -0
  35. adhelm-0.1.0/src/adhelm/audit.py +869 -0
  36. adhelm-0.1.0/src/adhelm/audits/__init__.py +734 -0
  37. adhelm-0.1.0/src/adhelm/audits/ga4.py +1144 -0
  38. adhelm-0.1.0/src/adhelm/audits/google_ads.py +2303 -0
  39. adhelm-0.1.0/src/adhelm/audits/gtm_web.py +1177 -0
  40. adhelm-0.1.0/src/adhelm/audits/linkedin_ads.py +1378 -0
  41. adhelm-0.1.0/src/adhelm/audits/meta_ads.py +2280 -0
  42. adhelm-0.1.0/src/adhelm/audits/openai_ads.py +1860 -0
  43. adhelm-0.1.0/src/adhelm/audits/reddit_ads.py +1331 -0
  44. adhelm-0.1.0/src/adhelm/audits/tiktok_ads.py +2041 -0
  45. adhelm-0.1.0/src/adhelm/campaign_joins.py +1047 -0
  46. adhelm-0.1.0/src/adhelm/candidate_cli.py +115 -0
  47. adhelm-0.1.0/src/adhelm/candidate_records.py +347 -0
  48. adhelm-0.1.0/src/adhelm/canonical.py +57 -0
  49. adhelm-0.1.0/src/adhelm/cli.py +1785 -0
  50. adhelm-0.1.0/src/adhelm/compile_cli.py +220 -0
  51. adhelm-0.1.0/src/adhelm/config.py +172 -0
  52. adhelm-0.1.0/src/adhelm/conversion_cli.py +187 -0
  53. adhelm-0.1.0/src/adhelm/conversion_contracts.py +482 -0
  54. adhelm-0.1.0/src/adhelm/creative.py +1793 -0
  55. adhelm-0.1.0/src/adhelm/creative_extraction.py +1298 -0
  56. adhelm-0.1.0/src/adhelm/creative_registration.py +968 -0
  57. adhelm-0.1.0/src/adhelm/creative_registration_closure.py +394 -0
  58. adhelm-0.1.0/src/adhelm/credential_cli.py +164 -0
  59. adhelm-0.1.0/src/adhelm/credential_lock.py +387 -0
  60. adhelm-0.1.0/src/adhelm/credential_setup.py +475 -0
  61. adhelm-0.1.0/src/adhelm/credentials.py +212 -0
  62. adhelm-0.1.0/src/adhelm/directory_access.py +115 -0
  63. adhelm-0.1.0/src/adhelm/egress_permit.py +145 -0
  64. adhelm-0.1.0/src/adhelm/errors.py +45 -0
  65. adhelm-0.1.0/src/adhelm/execution_cli.py +507 -0
  66. adhelm-0.1.0/src/adhelm/execution_plan_history.py +108 -0
  67. adhelm-0.1.0/src/adhelm/execution_plan_records.py +358 -0
  68. adhelm-0.1.0/src/adhelm/execution_plan_views.py +335 -0
  69. adhelm-0.1.0/src/adhelm/execution_planning_session.py +543 -0
  70. adhelm-0.1.0/src/adhelm/ga4_admin_access_workflow.py +220 -0
  71. adhelm-0.1.0/src/adhelm/ga4_admin_edit_cli.py +272 -0
  72. adhelm-0.1.0/src/adhelm/ga4_admin_edit_records.py +129 -0
  73. adhelm-0.1.0/src/adhelm/ga4_admin_edit_workflow.py +163 -0
  74. adhelm-0.1.0/src/adhelm/ga4_admin_execution_observation.py +782 -0
  75. adhelm-0.1.0/src/adhelm/ga4_create_cli.py +567 -0
  76. adhelm-0.1.0/src/adhelm/ga4_create_execution_sources.py +120 -0
  77. adhelm-0.1.0/src/adhelm/ga4_create_execution_workflow.py +331 -0
  78. adhelm-0.1.0/src/adhelm/ga4_create_plan_artifacts.py +934 -0
  79. adhelm-0.1.0/src/adhelm/ga4_create_plan_history.py +203 -0
  80. adhelm-0.1.0/src/adhelm/ga4_create_plan_records.py +101 -0
  81. adhelm-0.1.0/src/adhelm/ga4_create_plan_views.py +100 -0
  82. adhelm-0.1.0/src/adhelm/ga4_create_selection.py +151 -0
  83. adhelm-0.1.0/src/adhelm/ga4_create_workflow.py +255 -0
  84. adhelm-0.1.0/src/adhelm/ga4_key_event_candidate_cli.py +192 -0
  85. adhelm-0.1.0/src/adhelm/ga4_key_event_candidate_views.py +93 -0
  86. adhelm-0.1.0/src/adhelm/ga4_key_event_candidates.py +755 -0
  87. adhelm-0.1.0/src/adhelm/ga4_measurement_workflow.py +231 -0
  88. adhelm-0.1.0/src/adhelm/generic_execution_workflow.py +1215 -0
  89. adhelm-0.1.0/src/adhelm/google_ads_activate_execution.py +877 -0
  90. adhelm-0.1.0/src/adhelm/google_ads_activate_planning_session.py +682 -0
  91. adhelm-0.1.0/src/adhelm/google_ads_activate_readback_records.py +300 -0
  92. adhelm-0.1.0/src/adhelm/google_ads_create_execution.py +765 -0
  93. adhelm-0.1.0/src/adhelm/google_ads_create_planning_session.py +708 -0
  94. adhelm-0.1.0/src/adhelm/google_ads_create_readback_records.py +294 -0
  95. adhelm-0.1.0/src/adhelm/google_ads_edit_session.py +572 -0
  96. adhelm-0.1.0/src/adhelm/google_ads_maintain_execution.py +635 -0
  97. adhelm-0.1.0/src/adhelm/google_ads_maintain_planning_session.py +302 -0
  98. adhelm-0.1.0/src/adhelm/google_ads_maintain_readback_records.py +276 -0
  99. adhelm-0.1.0/src/adhelm/google_ads_pause_artifact_cli.py +275 -0
  100. adhelm-0.1.0/src/adhelm/google_ads_pause_cli.py +704 -0
  101. adhelm-0.1.0/src/adhelm/google_ads_pause_execution.py +422 -0
  102. adhelm-0.1.0/src/adhelm/google_ads_pause_plan_artifacts.py +933 -0
  103. adhelm-0.1.0/src/adhelm/google_ads_pause_plan_history.py +40 -0
  104. adhelm-0.1.0/src/adhelm/google_ads_pause_plan_records.py +123 -0
  105. adhelm-0.1.0/src/adhelm/google_ads_pause_plan_views.py +382 -0
  106. adhelm-0.1.0/src/adhelm/google_ads_pause_planning_session.py +1078 -0
  107. adhelm-0.1.0/src/adhelm/google_ads_pause_readback_records.py +220 -0
  108. adhelm-0.1.0/src/adhelm/google_ads_pause_workflow.py +335 -0
  109. adhelm-0.1.0/src/adhelm/google_oauth_browser.py +305 -0
  110. adhelm-0.1.0/src/adhelm/google_oauth_cli.py +209 -0
  111. adhelm-0.1.0/src/adhelm/google_oauth_credentials.py +2504 -0
  112. adhelm-0.1.0/src/adhelm/google_oauth_execution_binding.py +360 -0
  113. adhelm-0.1.0/src/adhelm/google_oauth_protocol.py +1187 -0
  114. adhelm-0.1.0/src/adhelm/google_oauth_setup.py +307 -0
  115. adhelm-0.1.0/src/adhelm/google_oauth_transport.py +406 -0
  116. adhelm-0.1.0/src/adhelm/google_oauth_workflow.py +301 -0
  117. adhelm-0.1.0/src/adhelm/gtm_dependency_graph.py +926 -0
  118. adhelm-0.1.0/src/adhelm/gtm_inventory.py +1675 -0
  119. adhelm-0.1.0/src/adhelm/gtm_measurement_workflow.py +328 -0
  120. adhelm-0.1.0/src/adhelm/guidance.py +226 -0
  121. adhelm-0.1.0/src/adhelm/guidance_cli.py +124 -0
  122. adhelm-0.1.0/src/adhelm/input_files.py +222 -0
  123. adhelm-0.1.0/src/adhelm/inventory.py +1476 -0
  124. adhelm-0.1.0/src/adhelm/join_cli.py +341 -0
  125. adhelm-0.1.0/src/adhelm/ledger.py +3421 -0
  126. adhelm-0.1.0/src/adhelm/linkedin_token_cli.py +61 -0
  127. adhelm-0.1.0/src/adhelm/linkedin_token_credentials.py +170 -0
  128. adhelm-0.1.0/src/adhelm/linkedin_token_profiles.py +194 -0
  129. adhelm-0.1.0/src/adhelm/linkedin_token_workflow.py +301 -0
  130. adhelm-0.1.0/src/adhelm/measurement.py +733 -0
  131. adhelm-0.1.0/src/adhelm/measurement_chunks.py +327 -0
  132. adhelm-0.1.0/src/adhelm/measurement_cli.py +785 -0
  133. adhelm-0.1.0/src/adhelm/measurement_comparison.py +1627 -0
  134. adhelm-0.1.0/src/adhelm/measurement_comparison_artifacts.py +933 -0
  135. adhelm-0.1.0/src/adhelm/measurement_records.py +343 -0
  136. adhelm-0.1.0/src/adhelm/meta_ads_token_edit_session.py +691 -0
  137. adhelm-0.1.0/src/adhelm/meta_ads_token_read_session.py +188 -0
  138. adhelm-0.1.0/src/adhelm/meta_create_execution.py +1070 -0
  139. adhelm-0.1.0/src/adhelm/meta_create_planning_session.py +903 -0
  140. adhelm-0.1.0/src/adhelm/meta_create_readback_records.py +453 -0
  141. adhelm-0.1.0/src/adhelm/meta_pause_artifact_cli.py +273 -0
  142. adhelm-0.1.0/src/adhelm/meta_pause_cli.py +864 -0
  143. adhelm-0.1.0/src/adhelm/meta_pause_execution_workflow.py +391 -0
  144. adhelm-0.1.0/src/adhelm/meta_pause_plan_artifacts.py +925 -0
  145. adhelm-0.1.0/src/adhelm/meta_pause_plan_history.py +38 -0
  146. adhelm-0.1.0/src/adhelm/meta_pause_plan_records.py +98 -0
  147. adhelm-0.1.0/src/adhelm/meta_pause_plan_views.py +412 -0
  148. adhelm-0.1.0/src/adhelm/meta_pause_readback_records.py +117 -0
  149. adhelm-0.1.0/src/adhelm/meta_pause_workflow.py +397 -0
  150. adhelm-0.1.0/src/adhelm/meta_token_cli.py +632 -0
  151. adhelm-0.1.0/src/adhelm/meta_token_credentials.py +849 -0
  152. adhelm-0.1.0/src/adhelm/meta_token_inspection.py +316 -0
  153. adhelm-0.1.0/src/adhelm/meta_token_observation_records.py +411 -0
  154. adhelm-0.1.0/src/adhelm/meta_token_profiles.py +82 -0
  155. adhelm-0.1.0/src/adhelm/meta_token_workflow.py +56 -0
  156. adhelm-0.1.0/src/adhelm/models.py +491 -0
  157. adhelm-0.1.0/src/adhelm/oauth_enrollment.py +1518 -0
  158. adhelm-0.1.0/src/adhelm/openai_account_key_cli.py +236 -0
  159. adhelm-0.1.0/src/adhelm/openai_account_key_lifecycle.py +667 -0
  160. adhelm-0.1.0/src/adhelm/openai_create_execution.py +909 -0
  161. adhelm-0.1.0/src/adhelm/openai_create_planning_session.py +588 -0
  162. adhelm-0.1.0/src/adhelm/openai_create_readback_records.py +370 -0
  163. adhelm-0.1.0/src/adhelm/openai_measurement_workflow.py +282 -0
  164. adhelm-0.1.0/src/adhelm/openai_pause_execution_workflow.py +218 -0
  165. adhelm-0.1.0/src/adhelm/pause_plan_artifacts.py +547 -0
  166. adhelm-0.1.0/src/adhelm/pause_workflow.py +160 -0
  167. adhelm-0.1.0/src/adhelm/pilot_cli.py +109 -0
  168. adhelm-0.1.0/src/adhelm/pilot_records.py +164 -0
  169. adhelm-0.1.0/src/adhelm/pilot_workflow.py +544 -0
  170. adhelm-0.1.0/src/adhelm/plan_cli.py +996 -0
  171. adhelm-0.1.0/src/adhelm/plan_records.py +216 -0
  172. adhelm-0.1.0/src/adhelm/plan_views.py +141 -0
  173. adhelm-0.1.0/src/adhelm/privacy.py +158 -0
  174. adhelm-0.1.0/src/adhelm/private_directories.py +31 -0
  175. adhelm-0.1.0/src/adhelm/projections.py +761 -0
  176. adhelm-0.1.0/src/adhelm/protected_token_cli.py +364 -0
  177. adhelm-0.1.0/src/adhelm/protected_token_lifecycle.py +1188 -0
  178. adhelm-0.1.0/src/adhelm/protected_token_references.py +51 -0
  179. adhelm-0.1.0/src/adhelm/providers/__init__.py +9 -0
  180. adhelm-0.1.0/src/adhelm/providers/_semantic_state.py +415 -0
  181. adhelm-0.1.0/src/adhelm/providers/ga4.py +1506 -0
  182. adhelm-0.1.0/src/adhelm/providers/ga4_admin.py +757 -0
  183. adhelm-0.1.0/src/adhelm/providers/ga4_admin_access.py +119 -0
  184. adhelm-0.1.0/src/adhelm/providers/ga4_admin_compiler.py +271 -0
  185. adhelm-0.1.0/src/adhelm/providers/ga4_admin_create_state.py +945 -0
  186. adhelm-0.1.0/src/adhelm/providers/ga4_admin_edit_inventory.py +975 -0
  187. adhelm-0.1.0/src/adhelm/providers/ga4_admin_edit_preconditions.py +363 -0
  188. adhelm-0.1.0/src/adhelm/providers/ga4_admin_key_event_create_adapter.py +862 -0
  189. adhelm-0.1.0/src/adhelm/providers/ga4_admin_preconditions.py +598 -0
  190. adhelm-0.1.0/src/adhelm/providers/ga4_create_contract.py +1558 -0
  191. adhelm-0.1.0/src/adhelm/providers/google_ads.py +1445 -0
  192. adhelm-0.1.0/src/adhelm/providers/google_ads_activate_adapter.py +937 -0
  193. adhelm-0.1.0/src/adhelm/providers/google_ads_activate_contract.py +1210 -0
  194. adhelm-0.1.0/src/adhelm/providers/google_ads_campaign_state.py +650 -0
  195. adhelm-0.1.0/src/adhelm/providers/google_ads_compiler.py +902 -0
  196. adhelm-0.1.0/src/adhelm/providers/google_ads_create_adapter.py +1044 -0
  197. adhelm-0.1.0/src/adhelm/providers/google_ads_create_contract.py +1305 -0
  198. adhelm-0.1.0/src/adhelm/providers/google_ads_maintain_adapter.py +1042 -0
  199. adhelm-0.1.0/src/adhelm/providers/google_ads_maintain_contract.py +1385 -0
  200. adhelm-0.1.0/src/adhelm/providers/google_ads_pause_adapter.py +766 -0
  201. adhelm-0.1.0/src/adhelm/providers/google_ads_pause_contract.py +1040 -0
  202. adhelm-0.1.0/src/adhelm/providers/gtm_identity.py +416 -0
  203. adhelm-0.1.0/src/adhelm/providers/gtm_read.py +891 -0
  204. adhelm-0.1.0/src/adhelm/providers/linkedin_ads.py +1066 -0
  205. adhelm-0.1.0/src/adhelm/providers/linkedin_compiler.py +713 -0
  206. adhelm-0.1.0/src/adhelm/providers/meta_ads.py +1490 -0
  207. adhelm-0.1.0/src/adhelm/providers/meta_campaign_pause_adapter.py +626 -0
  208. adhelm-0.1.0/src/adhelm/providers/meta_campaign_state.py +449 -0
  209. adhelm-0.1.0/src/adhelm/providers/meta_compiler.py +572 -0
  210. adhelm-0.1.0/src/adhelm/providers/meta_create_adapter.py +1447 -0
  211. adhelm-0.1.0/src/adhelm/providers/meta_create_contract.py +1761 -0
  212. adhelm-0.1.0/src/adhelm/providers/meta_pause_contract.py +965 -0
  213. adhelm-0.1.0/src/adhelm/providers/openai_ads.py +1552 -0
  214. adhelm-0.1.0/src/adhelm/providers/openai_compiler.py +603 -0
  215. adhelm-0.1.0/src/adhelm/providers/openai_conversions.py +554 -0
  216. adhelm-0.1.0/src/adhelm/providers/openai_create_adapter.py +1160 -0
  217. adhelm-0.1.0/src/adhelm/providers/openai_create_contract.py +1467 -0
  218. adhelm-0.1.0/src/adhelm/providers/openai_pause.py +505 -0
  219. adhelm-0.1.0/src/adhelm/providers/openai_pause_contract.py +347 -0
  220. adhelm-0.1.0/src/adhelm/providers/reddit_ads.py +700 -0
  221. adhelm-0.1.0/src/adhelm/providers/reddit_compiler.py +676 -0
  222. adhelm-0.1.0/src/adhelm/providers/tiktok_ads.py +1009 -0
  223. adhelm-0.1.0/src/adhelm/providers/tiktok_compiler.py +702 -0
  224. adhelm-0.1.0/src/adhelm/py.typed +0 -0
  225. adhelm-0.1.0/src/adhelm/recovery_cli.py +345 -0
  226. adhelm-0.1.0/src/adhelm/reddit_token_cli.py +62 -0
  227. adhelm-0.1.0/src/adhelm/reddit_token_credentials.py +157 -0
  228. adhelm-0.1.0/src/adhelm/reddit_token_profiles.py +217 -0
  229. adhelm-0.1.0/src/adhelm/reddit_token_workflow.py +279 -0
  230. adhelm-0.1.0/src/adhelm/release_labels.py +244 -0
  231. adhelm-0.1.0/src/adhelm/release_policy.py +85 -0
  232. adhelm-0.1.0/src/adhelm/reporting.py +1076 -0
  233. adhelm-0.1.0/src/adhelm/safety.py +3041 -0
  234. adhelm-0.1.0/src/adhelm/saved_audit_evidence.py +568 -0
  235. adhelm-0.1.0/src/adhelm/saved_campaign_joins.py +156 -0
  236. adhelm-0.1.0/src/adhelm/saved_candidates.py +258 -0
  237. adhelm-0.1.0/src/adhelm/saved_conversion_contracts.py +85 -0
  238. adhelm-0.1.0/src/adhelm/saved_execution_plans.py +210 -0
  239. adhelm-0.1.0/src/adhelm/saved_ga4_admin_edit_inventories.py +98 -0
  240. adhelm-0.1.0/src/adhelm/saved_ga4_audit_evidence.py +114 -0
  241. adhelm-0.1.0/src/adhelm/saved_ga4_create_plans.py +163 -0
  242. adhelm-0.1.0/src/adhelm/saved_ga4_key_event_candidates.py +170 -0
  243. adhelm-0.1.0/src/adhelm/saved_google_ads_pause_plans.py +132 -0
  244. adhelm-0.1.0/src/adhelm/saved_measurements.py +220 -0
  245. adhelm-0.1.0/src/adhelm/saved_meta_pause_plans.py +124 -0
  246. adhelm-0.1.0/src/adhelm/saved_plans.py +151 -0
  247. adhelm-0.1.0/src/adhelm/saved_reports.py +85 -0
  248. adhelm-0.1.0/src/adhelm/saved_strategies.py +229 -0
  249. adhelm-0.1.0/src/adhelm/schema_views.py +52 -0
  250. adhelm-0.1.0/src/adhelm/storage_cli.py +38 -0
  251. adhelm-0.1.0/src/adhelm/storage_usage.py +406 -0
  252. adhelm-0.1.0/src/adhelm/strategy.py +602 -0
  253. adhelm-0.1.0/src/adhelm/strategy_cli.py +164 -0
  254. adhelm-0.1.0/src/adhelm/strategy_history_cli.py +107 -0
  255. adhelm-0.1.0/src/adhelm/strategy_records.py +190 -0
  256. adhelm-0.1.0/src/adhelm/strict_json.py +47 -0
  257. adhelm-0.1.0/src/adhelm/tiktok_token_cli.py +412 -0
  258. adhelm-0.1.0/src/adhelm/tiktok_token_credentials.py +971 -0
  259. adhelm-0.1.0/src/adhelm/tiktok_token_profiles.py +234 -0
  260. adhelm-0.1.0/src/adhelm/tiktok_token_workflow.py +600 -0
  261. adhelm-0.1.0/src/adhelm/transport.py +359 -0
  262. adhelm-0.1.0/src/adhelm/video_creative.py +437 -0
  263. adhelm-0.1.0/src/adhelm/windows_acl.py +199 -0
  264. adhelm-0.1.0/src/adhelm/windows_filesystem.py +927 -0
  265. adhelm-0.1.0/src/adhelm/workflows.py +507 -0
@@ -0,0 +1,38 @@
1
+ # Credentials and local configuration
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ *.key
6
+ *.pem
7
+ *.p12
8
+ *.pfx
9
+ credentials/
10
+ secrets/
11
+
12
+ # Local application data
13
+ .local/
14
+ *.db
15
+ *.sqlite
16
+ *.sqlite3
17
+ *.log
18
+
19
+ # Python
20
+ .venv/
21
+ __pycache__/
22
+ *.py[cod]
23
+ .pytest_cache/
24
+ .mypy_cache/
25
+ .ruff_cache/
26
+ .coverage
27
+ .coverage.*
28
+
29
+ # Build and packaging
30
+ build/
31
+ dist/
32
+ *.egg-info/
33
+
34
+ # Editors and operating systems
35
+ .DS_Store
36
+ .idea/
37
+ .vscode/
38
+
adhelm-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
adhelm-0.1.0/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ AdHelm
2
+ Copyright 2026 The AdHelm authors
3
+
4
+ This product is licensed under the Apache License, Version 2.0; see the LICENSE
5
+ file. Section 6 of that license grants no permission to use the AdHelm name or
6
+ marks except to describe the origin of the work, and a redistribution must not
7
+ imply endorsement by the AdHelm authors.
8
+
9
+ AdHelm bundles no third-party code. The packages it installs as dependencies
10
+ keep their own licenses.
adhelm-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,230 @@
1
+ Metadata-Version: 2.5
2
+ Name: adhelm
3
+ Version: 0.1.0
4
+ Summary: Local, read-only CLI for AI agents to audit and report on your ad and analytics accounts
5
+ Project-URL: Homepage, https://aptsonic.com/adhelm
6
+ Project-URL: Source, https://github.com/jasonhowie/adhelm
7
+ Project-URL: Issues, https://github.com/jasonhowie/adhelm/issues
8
+ Project-URL: Changelog, https://github.com/jasonhowie/adhelm/blob/main/CHANGELOG.md
9
+ Author: The AdHelm authors
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: advertising,agents,analytics,audit,cli,ga4,google-ads,meta-ads
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Information Technology
17
+ Classifier: Operating System :: MacOS
18
+ Classifier: Operating System :: Microsoft :: Windows
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: Implementation :: CPython
24
+ Classifier: Topic :: Office/Business
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.12
27
+ Requires-Dist: cryptography<51,>=50
28
+ Requires-Dist: google-auth<3,>=2.40
29
+ Requires-Dist: httpx<1,>=0.28
30
+ Requires-Dist: keyring<26,>=25
31
+ Requires-Dist: pillow<13,>=11
32
+ Requires-Dist: portalocker<4,>=3
33
+ Requires-Dist: pydantic<3,>=2.11
34
+ Requires-Dist: rfc8785<1,>=0.1.4
35
+ Requires-Dist: typer<1,>=0.16
36
+ Requires-Dist: tzdata>=2025.2
37
+ Description-Content-Type: text/markdown
38
+
39
+ # AdHelm
40
+
41
+ > AdHelm 0.1.0 lets a marketer direct their own AI agent through a local,
42
+ > free, Apache-2.0 CLI to connect their own ad and analytics accounts, inventory
43
+ > them, report aggregate performance, audit them, and receive evidence-backed
44
+ > recommendations, with append-only local history and redacted exports. It
45
+ > makes no changes to any advertising or analytics account.
46
+
47
+ AdHelm is a command-line tool built to be driven by your AI agent, such as
48
+ Claude Code or Codex. You describe the goal in conversation. The agent discovers
49
+ the installed commands, calls them, and reports back in the form you prefer. You
50
+ do not need to know shell syntax. Direct human use of the CLI is possible but
51
+ secondary.
52
+
53
+ Everything runs on your machine. There is no hosted service, telemetry, account,
54
+ license key, or paid tier. You register your own provider applications and keep
55
+ your own credentials.
56
+
57
+ ## Status
58
+
59
+ `0.1.0` is the first public release and it is **read-only**. Every command that
60
+ would change an advertising or analytics account is listed by `adhelm discover`
61
+ with status `UNRELEASED` and is refused at runtime; see
62
+ [What 0.1.0 does not do](#what-010-does-not-do). The release is gated by the
63
+ [0.1.0 release definition](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/release-0.1.0.md). It makes no `COMPLETE`,
64
+ live-parity, write-support or compliance claim.
65
+
66
+ ## What you can do
67
+
68
+ For each provider below, in `0.1.0`:
69
+
70
+ - enroll your own application or key locally, check its status, refresh it where
71
+ the provider supports refresh, remove it locally, and read the provider's
72
+ revocation guidance;
73
+ - read the account identity, a fixed inventory and a fixed daily aggregate
74
+ report;
75
+ - run audits that state, per dimension, what was and was not read, and receive
76
+ recommendations that name their evidence and change nothing;
77
+ - keep an append-only local history, verify it, reconcile out-of-band changes,
78
+ and export deterministic CSV and JSON projections from a rebuildable SQLite
79
+ index; and
80
+ - ask for optional documents, spreadsheets or HTML reports when you want them.
81
+ Compact conversational summaries are the default.
82
+
83
+ Two [bundled skills](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/agent-skills.md) teach your agent the diagnose,
84
+ recommend and verify loop. `adhelm guidance catalog` lists them.
85
+
86
+ ## Install
87
+
88
+ AdHelm needs Python 3.12 or newer and runs on macOS, Linux and Windows. CPython
89
+ 3.12 is the tested and supported version.
90
+
91
+ ```sh
92
+ uv tool install adhelm
93
+ ```
94
+
95
+ or
96
+
97
+ ```sh
98
+ pipx install adhelm
99
+ ```
100
+
101
+ Check the install:
102
+
103
+ ```sh
104
+ adhelm version
105
+ ```
106
+
107
+ To work on AdHelm itself, see [CONTRIBUTING.md](https://github.com/jasonhowie/adhelm/blob/v0.1.0/CONTRIBUTING.md).
108
+
109
+ ## First run
110
+
111
+ Ask your agent to start with `adhelm discover`. It returns the installed
112
+ commands, schemas, exit codes, release policy and provider labels, and it makes
113
+ no network or credential-store call. You can run the same commands yourself:
114
+
115
+ ```sh
116
+ adhelm init
117
+ adhelm doctor
118
+ adhelm discover
119
+ adhelm guidance catalog
120
+ ```
121
+
122
+ `init` creates local defaults without credentials. `doctor` reports local
123
+ readiness and does not contact any provider. Without `--data-dir`, local data
124
+ lives in the platform data directory: `~/.local/share/adhelm` on Linux,
125
+ `~/Library/Application Support/adhelm` on macOS and `%LOCALAPPDATA%\adhelm` on
126
+ Windows.
127
+
128
+ Then follow the setup guide for each provider you use. A guide covers which
129
+ developer app or key to create, the scopes it needs, the redirect configuration,
130
+ access-tier limits that matter for read-only use, the enrollment command, and how
131
+ to revoke. Secrets are entered through a local interactive handoff and stored in
132
+ your operating system's credential store. They are never accepted in command
133
+ arguments or JSON.
134
+
135
+ ## Providers
136
+
137
+ Each provider carries exactly one release label. `LIVE_PILOTED` means the
138
+ provider is fixture-verified and was read-piloted on a live account, with a
139
+ redacted pilot record committed under [`docs/pilots/`](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/pilots/README.md).
140
+ `EXPERIMENTAL` means it is fixture-verified only and has no live evidence. The
141
+ label states evidence and never a capability. `adhelm discover`, `adhelm doctor`
142
+ and every output that names a provider show the same label.
143
+
144
+ | Provider | Label | Read in 0.1.0 | Setup |
145
+ | --- | --- | --- | --- |
146
+ | Google Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/google_ads.md) |
147
+ | Meta Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/meta_ads.md) |
148
+ | LinkedIn Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/linkedin_ads.md) |
149
+ | TikTok Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/tiktok_ads.md) |
150
+ | Reddit Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/reddit_ads.md) |
151
+ | OpenAI Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/openai_ads.md) |
152
+ | GA4 | `EXPERIMENTAL` | Data API aggregate reporting, read-only Admin inventory, audit | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/ga4.md) |
153
+ | GTM | `EXPERIMENTAL` | Container inventory, dependency graph, read-only audit | [setup](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/setup/gtm.md) |
154
+
155
+ `doctor` expects GA4. GTM is optional, and a provider you have not configured
156
+ does not block work on the others. Provider quotas, approvals and access tiers
157
+ belong to the provider. You must obtain API access yourself, and a provider can
158
+ change or withdraw its API.
159
+
160
+ ## What 0.1.0 does not do
161
+
162
+ - **No remote writes.** Pausing, creating, activating, maintaining, GA4 Admin
163
+ edits and GTM staging, versioning and publishing are all refused with
164
+ `WRITES_NOT_RELEASED` (exit code `3`) before any credential-store access,
165
+ ledger `APPLY_STARTED` entry or network request. No configuration value,
166
+ environment variable, flag or edited file enables them. Offline compile, plan
167
+ and preview commands remain available and say that execution is unreleased.
168
+ When your agent recommends a change, you make it by hand in the provider's own
169
+ interface.
170
+ - **No CRM attribution.** Salesforce and HubSpot are not part of `0.1.0`.
171
+ - **`EXPERIMENTAL` providers have no live evidence.** Their reports and audits
172
+ are tested against fixtures, and their totals have not been compared with the
173
+ provider's own interface.
174
+ - **Some reads are bounded, not exhaustive, and some are narrower than the
175
+ provider's API.** Where a provider documents no pagination, such as LinkedIn
176
+ analytics, audits say so instead of presenting the result as complete. The
177
+ [capability matrix](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/capability-matrix.md) lists each provider's limits.
178
+ - **Money is read in a few currencies only.** Google Ads, LinkedIn Ads, Reddit
179
+ Ads and OpenAI Ads project money exactly only for USD accounts. Meta Ads
180
+ accepts AUD, CAD, CHF, DKK, EUR, GBP, HKD, JPY, MXN, NOK, NZD, SEK, SGD and USD.
181
+ TikTok Ads accepts AUD, CAD, EUR, GBP, JPY and USD. A read that carries money
182
+ for an account in any other currency is refused with `UNSUPPORTED_CURRENCY`
183
+ rather than converted approximately, so check your account currency before you
184
+ register an application.
185
+
186
+ ## Privacy and safety
187
+
188
+ - The default runtime has no vendor proxy, hosted database, telemetry, crash
189
+ upload, automatic updater, or remote license heartbeat.
190
+ - Interactive secrets live in the operating system credential store.
191
+ Environment variables are for explicitly configured CI use only.
192
+ - Logs, plans, evidence and exports are local, redacted, deterministic and
193
+ user-initiated. Raw provider responses are not persisted by default.
194
+ - Output your agent reads follows the same redaction rules, but your agent may
195
+ forward what it reads to its model. Share only what you are comfortable
196
+ sending there.
197
+ - Each configured provider still receives the requests you make of it. Local
198
+ execution reduces vendor custody. It does not make you compliant with HIPAA,
199
+ GLBA or any other regime, and it does not replace legal, provider-policy or
200
+ security review.
201
+
202
+ ## Documentation
203
+
204
+ - [0.1.0 release definition](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/release-0.1.0.md) and
205
+ [ADR 0013](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/adr/0013-open-source-release.md), which decide this release
206
+ - [Product brief](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/product-brief.md) and
207
+ [definition of done](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/definition-of-done.md) for the `v1.0.0` target
208
+ - [Bundled agent skills](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/agent-skills.md)
209
+ - [Capability matrix](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/capability-matrix.md), the evidence level of every
210
+ provider operation
211
+ - [Direct and delegated authorization](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/authorization-policy.md)
212
+ - [Reporting schema](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/reporting-schema.md) and
213
+ [local history ledger and exports](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/local-ledger-and-exports.md)
214
+ - [Threat model](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/threat-model.md) and [egress map](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/egress-map.md)
215
+ - [Architecture decisions](https://github.com/jasonhowie/adhelm/blob/v0.1.0/docs/adr/)
216
+ - [AGENTS.md](https://github.com/jasonhowie/adhelm/blob/v0.1.0/AGENTS.md), the rules every contributor and agent follows
217
+
218
+ ## Contributing and security
219
+
220
+ Contributions are welcome under the Developer Certificate of Origin; read
221
+ [CONTRIBUTING.md](https://github.com/jasonhowie/adhelm/blob/v0.1.0/CONTRIBUTING.md). Report a vulnerability privately as
222
+ [SECURITY.md](https://github.com/jasonhowie/adhelm/blob/v0.1.0/SECURITY.md) describes, never in a public issue. Participation is
223
+ governed by the [Code of Conduct](https://github.com/jasonhowie/adhelm/blob/v0.1.0/CODE_OF_CONDUCT.md). Changes are recorded in
224
+ the [changelog](https://github.com/jasonhowie/adhelm/blob/v0.1.0/CHANGELOG.md).
225
+
226
+ ## License
227
+
228
+ AdHelm is licensed under the Apache License, Version 2.0; see the `LICENSE`
229
+ file. The license does not grant rights to the AdHelm name or marks, and a fork
230
+ that redistributes the software must not imply endorsement by this project.
adhelm-0.1.0/README.md ADDED
@@ -0,0 +1,192 @@
1
+ # AdHelm
2
+
3
+ > AdHelm 0.1.0 lets a marketer direct their own AI agent through a local,
4
+ > free, Apache-2.0 CLI to connect their own ad and analytics accounts, inventory
5
+ > them, report aggregate performance, audit them, and receive evidence-backed
6
+ > recommendations, with append-only local history and redacted exports. It
7
+ > makes no changes to any advertising or analytics account.
8
+
9
+ AdHelm is a command-line tool built to be driven by your AI agent, such as
10
+ Claude Code or Codex. You describe the goal in conversation. The agent discovers
11
+ the installed commands, calls them, and reports back in the form you prefer. You
12
+ do not need to know shell syntax. Direct human use of the CLI is possible but
13
+ secondary.
14
+
15
+ Everything runs on your machine. There is no hosted service, telemetry, account,
16
+ license key, or paid tier. You register your own provider applications and keep
17
+ your own credentials.
18
+
19
+ ## Status
20
+
21
+ `0.1.0` is the first public release and it is **read-only**. Every command that
22
+ would change an advertising or analytics account is listed by `adhelm discover`
23
+ with status `UNRELEASED` and is refused at runtime; see
24
+ [What 0.1.0 does not do](#what-010-does-not-do). The release is gated by the
25
+ [0.1.0 release definition](docs/release-0.1.0.md). It makes no `COMPLETE`,
26
+ live-parity, write-support or compliance claim.
27
+
28
+ ## What you can do
29
+
30
+ For each provider below, in `0.1.0`:
31
+
32
+ - enroll your own application or key locally, check its status, refresh it where
33
+ the provider supports refresh, remove it locally, and read the provider's
34
+ revocation guidance;
35
+ - read the account identity, a fixed inventory and a fixed daily aggregate
36
+ report;
37
+ - run audits that state, per dimension, what was and was not read, and receive
38
+ recommendations that name their evidence and change nothing;
39
+ - keep an append-only local history, verify it, reconcile out-of-band changes,
40
+ and export deterministic CSV and JSON projections from a rebuildable SQLite
41
+ index; and
42
+ - ask for optional documents, spreadsheets or HTML reports when you want them.
43
+ Compact conversational summaries are the default.
44
+
45
+ Two [bundled skills](docs/agent-skills.md) teach your agent the diagnose,
46
+ recommend and verify loop. `adhelm guidance catalog` lists them.
47
+
48
+ ## Install
49
+
50
+ AdHelm needs Python 3.12 or newer and runs on macOS, Linux and Windows. CPython
51
+ 3.12 is the tested and supported version.
52
+
53
+ ```sh
54
+ uv tool install adhelm
55
+ ```
56
+
57
+ or
58
+
59
+ ```sh
60
+ pipx install adhelm
61
+ ```
62
+
63
+ Check the install:
64
+
65
+ ```sh
66
+ adhelm version
67
+ ```
68
+
69
+ To work on AdHelm itself, see [CONTRIBUTING.md](CONTRIBUTING.md).
70
+
71
+ ## First run
72
+
73
+ Ask your agent to start with `adhelm discover`. It returns the installed
74
+ commands, schemas, exit codes, release policy and provider labels, and it makes
75
+ no network or credential-store call. You can run the same commands yourself:
76
+
77
+ ```sh
78
+ adhelm init
79
+ adhelm doctor
80
+ adhelm discover
81
+ adhelm guidance catalog
82
+ ```
83
+
84
+ `init` creates local defaults without credentials. `doctor` reports local
85
+ readiness and does not contact any provider. Without `--data-dir`, local data
86
+ lives in the platform data directory: `~/.local/share/adhelm` on Linux,
87
+ `~/Library/Application Support/adhelm` on macOS and `%LOCALAPPDATA%\adhelm` on
88
+ Windows.
89
+
90
+ Then follow the setup guide for each provider you use. A guide covers which
91
+ developer app or key to create, the scopes it needs, the redirect configuration,
92
+ access-tier limits that matter for read-only use, the enrollment command, and how
93
+ to revoke. Secrets are entered through a local interactive handoff and stored in
94
+ your operating system's credential store. They are never accepted in command
95
+ arguments or JSON.
96
+
97
+ ## Providers
98
+
99
+ Each provider carries exactly one release label. `LIVE_PILOTED` means the
100
+ provider is fixture-verified and was read-piloted on a live account, with a
101
+ redacted pilot record committed under [`docs/pilots/`](docs/pilots/README.md).
102
+ `EXPERIMENTAL` means it is fixture-verified only and has no live evidence. The
103
+ label states evidence and never a capability. `adhelm discover`, `adhelm doctor`
104
+ and every output that names a provider show the same label.
105
+
106
+ | Provider | Label | Read in 0.1.0 | Setup |
107
+ | --- | --- | --- | --- |
108
+ | Google Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/google_ads.md) |
109
+ | Meta Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/meta_ads.md) |
110
+ | LinkedIn Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/linkedin_ads.md) |
111
+ | TikTok Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/tiktok_ads.md) |
112
+ | Reddit Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/reddit_ads.md) |
113
+ | OpenAI Ads | `EXPERIMENTAL` | Account identity, campaign hierarchy, daily aggregate report, audit, recommendations | [setup](docs/setup/openai_ads.md) |
114
+ | GA4 | `EXPERIMENTAL` | Data API aggregate reporting, read-only Admin inventory, audit | [setup](docs/setup/ga4.md) |
115
+ | GTM | `EXPERIMENTAL` | Container inventory, dependency graph, read-only audit | [setup](docs/setup/gtm.md) |
116
+
117
+ `doctor` expects GA4. GTM is optional, and a provider you have not configured
118
+ does not block work on the others. Provider quotas, approvals and access tiers
119
+ belong to the provider. You must obtain API access yourself, and a provider can
120
+ change or withdraw its API.
121
+
122
+ ## What 0.1.0 does not do
123
+
124
+ - **No remote writes.** Pausing, creating, activating, maintaining, GA4 Admin
125
+ edits and GTM staging, versioning and publishing are all refused with
126
+ `WRITES_NOT_RELEASED` (exit code `3`) before any credential-store access,
127
+ ledger `APPLY_STARTED` entry or network request. No configuration value,
128
+ environment variable, flag or edited file enables them. Offline compile, plan
129
+ and preview commands remain available and say that execution is unreleased.
130
+ When your agent recommends a change, you make it by hand in the provider's own
131
+ interface.
132
+ - **No CRM attribution.** Salesforce and HubSpot are not part of `0.1.0`.
133
+ - **`EXPERIMENTAL` providers have no live evidence.** Their reports and audits
134
+ are tested against fixtures, and their totals have not been compared with the
135
+ provider's own interface.
136
+ - **Some reads are bounded, not exhaustive, and some are narrower than the
137
+ provider's API.** Where a provider documents no pagination, such as LinkedIn
138
+ analytics, audits say so instead of presenting the result as complete. The
139
+ [capability matrix](docs/capability-matrix.md) lists each provider's limits.
140
+ - **Money is read in a few currencies only.** Google Ads, LinkedIn Ads, Reddit
141
+ Ads and OpenAI Ads project money exactly only for USD accounts. Meta Ads
142
+ accepts AUD, CAD, CHF, DKK, EUR, GBP, HKD, JPY, MXN, NOK, NZD, SEK, SGD and USD.
143
+ TikTok Ads accepts AUD, CAD, EUR, GBP, JPY and USD. A read that carries money
144
+ for an account in any other currency is refused with `UNSUPPORTED_CURRENCY`
145
+ rather than converted approximately, so check your account currency before you
146
+ register an application.
147
+
148
+ ## Privacy and safety
149
+
150
+ - The default runtime has no vendor proxy, hosted database, telemetry, crash
151
+ upload, automatic updater, or remote license heartbeat.
152
+ - Interactive secrets live in the operating system credential store.
153
+ Environment variables are for explicitly configured CI use only.
154
+ - Logs, plans, evidence and exports are local, redacted, deterministic and
155
+ user-initiated. Raw provider responses are not persisted by default.
156
+ - Output your agent reads follows the same redaction rules, but your agent may
157
+ forward what it reads to its model. Share only what you are comfortable
158
+ sending there.
159
+ - Each configured provider still receives the requests you make of it. Local
160
+ execution reduces vendor custody. It does not make you compliant with HIPAA,
161
+ GLBA or any other regime, and it does not replace legal, provider-policy or
162
+ security review.
163
+
164
+ ## Documentation
165
+
166
+ - [0.1.0 release definition](docs/release-0.1.0.md) and
167
+ [ADR 0013](docs/adr/0013-open-source-release.md), which decide this release
168
+ - [Product brief](docs/product-brief.md) and
169
+ [definition of done](docs/definition-of-done.md) for the `v1.0.0` target
170
+ - [Bundled agent skills](docs/agent-skills.md)
171
+ - [Capability matrix](docs/capability-matrix.md), the evidence level of every
172
+ provider operation
173
+ - [Direct and delegated authorization](docs/authorization-policy.md)
174
+ - [Reporting schema](docs/reporting-schema.md) and
175
+ [local history ledger and exports](docs/local-ledger-and-exports.md)
176
+ - [Threat model](docs/threat-model.md) and [egress map](docs/egress-map.md)
177
+ - [Architecture decisions](docs/adr/)
178
+ - [AGENTS.md](AGENTS.md), the rules every contributor and agent follows
179
+
180
+ ## Contributing and security
181
+
182
+ Contributions are welcome under the Developer Certificate of Origin; read
183
+ [CONTRIBUTING.md](CONTRIBUTING.md). Report a vulnerability privately as
184
+ [SECURITY.md](SECURITY.md) describes, never in a public issue. Participation is
185
+ governed by the [Code of Conduct](CODE_OF_CONDUCT.md). Changes are recorded in
186
+ the [changelog](CHANGELOG.md).
187
+
188
+ ## License
189
+
190
+ AdHelm is licensed under the Apache License, Version 2.0; see the `LICENSE`
191
+ file. The license does not grant rights to the AdHelm name or marks, and a fork
192
+ that redistributes the software must not imply endorsement by this project.