excutia 0.2.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 (419) hide show
  1. excutia-0.2.0/.gitignore +29 -0
  2. excutia-0.2.0/LICENSE +202 -0
  3. excutia-0.2.0/PKG-INFO +122 -0
  4. excutia-0.2.0/README.md +93 -0
  5. excutia-0.2.0/plugins/excutia/README.md +20 -0
  6. excutia-0.2.0/pyproject.toml +64 -0
  7. excutia-0.2.0/src/excutia/__init__.py +3 -0
  8. excutia-0.2.0/src/excutia/__main__.py +3 -0
  9. excutia-0.2.0/src/excutia/cli.py +66 -0
  10. excutia-0.2.0/src/excutia/credentials.py +73 -0
  11. excutia-0.2.0/src/excutia/demo/__init__.py +78 -0
  12. excutia-0.2.0/src/excutia/demo/replay/ga4/53d0165c1ed9abec746e0ac06c5202270254fd60e6cf1338ab6f7e5532ec1014.json +1 -0
  13. excutia-0.2.0/src/excutia/demo/replay/ga4/8290b79b4d9cff80b07262b691d4ded96f28e3aa87a9c65570d52f24a0442f92.json +1 -0
  14. excutia-0.2.0/src/excutia/demo/replay/ga4/cc2a5b5aff347fa8f58a3b88c3228d80b6d2c59f17a4966d579e0d6b274b26da.json +1 -0
  15. excutia-0.2.0/src/excutia/demo/replay/ga4/ff5c15c69b5a7aedab22c280a31a90af5c179ce0f357354bead9d3b995aeeab4.json +1 -0
  16. excutia-0.2.0/src/excutia/demo/replay/google/0389d638bf2c2c805ecd0c55604df7d6b75f7ec0a5205db927807d72a62e064b.json +1 -0
  17. excutia-0.2.0/src/excutia/demo/replay/google/044ed8e6ff171cab636e87d7935ad255a9b7e427b489b9f0bee5f62df3203a56.json +1 -0
  18. excutia-0.2.0/src/excutia/demo/replay/google/0507079300a86ec9fa9170349d596c72fe1fab4b47379172b521882f3d4b01dd.json +1 -0
  19. excutia-0.2.0/src/excutia/demo/replay/google/069e1f7deacf6d05199677fb40c6748ae18f9a26ee515e2339bf4fbfaec64cce.json +1 -0
  20. excutia-0.2.0/src/excutia/demo/replay/google/07dac2b4f36ec443f3175ee3f5cef94d412b3037e22cc1dc28c20ada2c016931.json +1 -0
  21. excutia-0.2.0/src/excutia/demo/replay/google/0b283261ca0924b077da052fd31c2d7fd7e756eaa948b933a4613d4c484a3803.json +1 -0
  22. excutia-0.2.0/src/excutia/demo/replay/google/0cc2b3e736b96269b316203825a04ab49082048fe213bd0ef89789dc822f8cde.json +1 -0
  23. excutia-0.2.0/src/excutia/demo/replay/google/0ef11e02ec918611832efe80006aab61beb2c40cebe454510508b5b3e7654739.json +1 -0
  24. excutia-0.2.0/src/excutia/demo/replay/google/1395875e2133f0ba54111cfbf0cc1d77d7758c5d24dcc64104cf46d7ba35e221.json +1 -0
  25. excutia-0.2.0/src/excutia/demo/replay/google/159105ffba82112f9f93f42405617c8842c77a9050a3452a9bce11f6a4f5f10b.json +1 -0
  26. excutia-0.2.0/src/excutia/demo/replay/google/1ce72f4dbf451436b3769265ceaeb1b2570de24a6f6455a2761171d5aa3ca330.json +1 -0
  27. excutia-0.2.0/src/excutia/demo/replay/google/1ee89ca0a04a1fc71f9935c059b40c64d10594f7985a444e8fe93fe7eca8c021.json +1 -0
  28. excutia-0.2.0/src/excutia/demo/replay/google/281e46699d8ef267f36a5e62fe0a1e6bad4c50f47b4004fa328403f369cf7433.json +1 -0
  29. excutia-0.2.0/src/excutia/demo/replay/google/28dcb0c55b0a2909b4a0ffdaecd4d20898a27f377150abbddd66c4fda70b9dc0.json +1 -0
  30. excutia-0.2.0/src/excutia/demo/replay/google/2dafab9b00c4e1aded485f7cc01baa391607165a6ccf8ca2698246da28c293a9.json +1 -0
  31. excutia-0.2.0/src/excutia/demo/replay/google/3452a23660505b80740cfd345dea47cd142730d009f5815dd1720e719f8545fe.json +1 -0
  32. excutia-0.2.0/src/excutia/demo/replay/google/35b08a1f4c52d256ba1e4d004826c6efc5d1c45e5c332dd1bbec80d5e6a47126.json +1 -0
  33. excutia-0.2.0/src/excutia/demo/replay/google/36517eb50830f5b602ebb7114ad957995683e8b8ee4fa47b6a96f22082717b8c.json +1 -0
  34. excutia-0.2.0/src/excutia/demo/replay/google/3966fa8f954159c84a19a1e2bec3576e2bada1ace278163234ab932858268b2b.json +1 -0
  35. excutia-0.2.0/src/excutia/demo/replay/google/463f6130127e8ad50bcf57db9f8570912e5b07595f4362655f0da1cfd90bf7bc.json +1 -0
  36. excutia-0.2.0/src/excutia/demo/replay/google/47c6f5f99d7a96ce6a4430d4d39e86bde6a703552785a2b2f9abdc213078c293.json +1 -0
  37. excutia-0.2.0/src/excutia/demo/replay/google/47e529fe440fd2bc62cf3600a40d32c3921143540638ba3f02b924f85e86d76c.json +1 -0
  38. excutia-0.2.0/src/excutia/demo/replay/google/4cc3763a1eae6e46838ee7643cba8bae14a15dee033c4e921f3b96d8d3966db4.json +1 -0
  39. excutia-0.2.0/src/excutia/demo/replay/google/53079479e0fb17f1e2ffd51d17442e20a7635273f51ed40a12d4e055cc362ab3.json +1 -0
  40. excutia-0.2.0/src/excutia/demo/replay/google/536c6da69ac4cd39b12c9a2d8bc8a0d51c324268d5ca2b682a8fcc55b9647dfa.json +1 -0
  41. excutia-0.2.0/src/excutia/demo/replay/google/54553046344ef20bee50d22c5dc4edade20286e3ca2ef44fa84e98b05fcb39cc.json +1 -0
  42. excutia-0.2.0/src/excutia/demo/replay/google/5c3c0f02cd5c82e77a0c8a38642b294163e55c5b9336b092f33ba9f47594dfd6.json +1 -0
  43. excutia-0.2.0/src/excutia/demo/replay/google/5f15811c32710855841dd4ed55ea45acbe423602f2ab7244f446ef10c0d2d216.json +1 -0
  44. excutia-0.2.0/src/excutia/demo/replay/google/5fa833270ac8b1373a38bedcdc9ff38bb14e583690a31dc34682ba47236fec8b.json +1 -0
  45. excutia-0.2.0/src/excutia/demo/replay/google/6218a7a1495e182f2448a18bda614457e1d0dfc0eb1298d50ae35cd93f4fb4d2.json +1 -0
  46. excutia-0.2.0/src/excutia/demo/replay/google/68cb44bdc0dbd73d5d8e1372370f2af30362eef7a39580b275185151a2508c07.json +1 -0
  47. excutia-0.2.0/src/excutia/demo/replay/google/727be7a6e259124bba048be6ade77e687b89a05c04b35b42fa3242f5cbe2f6ed.json +1 -0
  48. excutia-0.2.0/src/excutia/demo/replay/google/74ce7a83a0460c1b767fe9163db5ba1d2605129acc15b49c0fecd191e4c7a413.json +1 -0
  49. excutia-0.2.0/src/excutia/demo/replay/google/7799d1252517e5762ffcec15140fe4a771c25003938c858559a28031a3959a7a.json +1 -0
  50. excutia-0.2.0/src/excutia/demo/replay/google/78ae34db0be7eebb7aa7f774043e124d20e061d084b17582f2a74a15970bc79f.json +1 -0
  51. excutia-0.2.0/src/excutia/demo/replay/google/7a2dd274397637b01948b4b0fe93f712b80cafc856feb8ab72ed903647de6c11.json +1 -0
  52. excutia-0.2.0/src/excutia/demo/replay/google/7bf095d9ebf76add277603b03a7f6aeace372b036892d73f3c23a4b87d0ba24c.json +1 -0
  53. excutia-0.2.0/src/excutia/demo/replay/google/85a621bb0001b064038d945ddeea16ecafedcb80ff84d31ef698acb6af05778d.json +1 -0
  54. excutia-0.2.0/src/excutia/demo/replay/google/874afcb6bc9c792733ea4d1ebb89a286d99ae4990c7a300fa36deb26e7d7402b.json +1 -0
  55. excutia-0.2.0/src/excutia/demo/replay/google/877e86f56fdba30f4baa7776525db40f4a9821d01f2d2a047bfb08ec2db53554.json +1 -0
  56. excutia-0.2.0/src/excutia/demo/replay/google/8841e9ddedaa3187c9962eebeaea4cbad74ff9e03ee7361f3fe10d74ba30e4a0.json +1 -0
  57. excutia-0.2.0/src/excutia/demo/replay/google/896373ac7045a0a91649e7bc8701420bab4f22d9ef3f914dce519e6001d4bb3b.json +1 -0
  58. excutia-0.2.0/src/excutia/demo/replay/google/8af4219d5b73bc7b6f3f0fafc28a62d54ba270a14ce30a331826fd50801d4ece.json +1 -0
  59. excutia-0.2.0/src/excutia/demo/replay/google/8cfcc8a6cdf07d3fc1a7eb48b1e9a2fab4f500756a9f28b5e00b36dcb42389ff.json +1 -0
  60. excutia-0.2.0/src/excutia/demo/replay/google/90b9549744cf87f47d448b9c10af40c0679b8d2a45507d593379709d47561fcd.json +1 -0
  61. excutia-0.2.0/src/excutia/demo/replay/google/939b61e8aa96d90e92b1e226c35ee4f85fc7c580af903fc59bac57e934080905.json +1 -0
  62. excutia-0.2.0/src/excutia/demo/replay/google/95abe8053656ce4710912773d2d32c1974d7d104f3fa60e0be3116aef9774274.json +1 -0
  63. excutia-0.2.0/src/excutia/demo/replay/google/98b2f14d478a1718b284cbcd88576129a07850e2fca8365cb2bd575deacabcd9.json +1 -0
  64. excutia-0.2.0/src/excutia/demo/replay/google/9b6e4fe4068124bf23c909dff6ebef04bede16ddc53c360cb56da7b05f4b8f4f.json +1 -0
  65. excutia-0.2.0/src/excutia/demo/replay/google/a14b8253e10250e89781f95c693cf0bba2dbcbde5b75c10ba19f49b1d0b9cbc5.json +1 -0
  66. excutia-0.2.0/src/excutia/demo/replay/google/a19b1b0a6467f8f086cb8fb27ce3d8ba18555a58b1e4c50424e69f08d8ef5e33.json +1 -0
  67. excutia-0.2.0/src/excutia/demo/replay/google/a63e4d076830cc0a3fda63f3de7085b94fcf873be1d3ee6348c425c9f545d077.json +1 -0
  68. excutia-0.2.0/src/excutia/demo/replay/google/abfb020d0d3e3468bb24080e89c7b408baec0bb31ff4c3ea93023d9edfbc2f03.json +1 -0
  69. excutia-0.2.0/src/excutia/demo/replay/google/ad051bea2317b5ae9a9dd799e0fb810da39e8a933f0143ceb372b095c5ac87b8.json +1 -0
  70. excutia-0.2.0/src/excutia/demo/replay/google/b06e77636fd2c39e5dab51b76f4e307b6d2e09839dddb14a3e4521099b82003b.json +1 -0
  71. excutia-0.2.0/src/excutia/demo/replay/google/b1c70903a039c00c50e5e408b1553eb01e9f2061f987f8cd9c0019d00817d6d1.json +1 -0
  72. excutia-0.2.0/src/excutia/demo/replay/google/b878ec22aef6809e031824f3fbacd122a31412e95139324928480e351174ec9f.json +1 -0
  73. excutia-0.2.0/src/excutia/demo/replay/google/bbfcf252020b7c94595ab2fe2f6a9bd3bbfce1cc40c31798e6c98482d744ae65.json +1 -0
  74. excutia-0.2.0/src/excutia/demo/replay/google/c2ed734fe2884c571a5d4f8f35e7dc6bdf2aa093a60c309dc44842dab5a5b944.json +1 -0
  75. excutia-0.2.0/src/excutia/demo/replay/google/c6a63f3b0cca4bd370fd39632a0823842b5a3b76d12f8744d1333c37e5395d65.json +1 -0
  76. excutia-0.2.0/src/excutia/demo/replay/google/cc3c091fa9340c6f7a696a68c1453a0ff53409132ee6dd23b1c490c4e70419b4.json +1 -0
  77. excutia-0.2.0/src/excutia/demo/replay/google/cc5117da6917a24355ce3e81585fa424cdb9d7a9d0b06f77d1f1fbb162c7eea8.json +1 -0
  78. excutia-0.2.0/src/excutia/demo/replay/google/cda751d26ff2de5838dd354e487e6132f0f0227eed8297c1fd78dab635f97443.json +1 -0
  79. excutia-0.2.0/src/excutia/demo/replay/google/cdb49a07613ed18bb2fad5de6b6906567822636c515e4298af3593fce8d4a1fd.json +1 -0
  80. excutia-0.2.0/src/excutia/demo/replay/google/dc813ff395d54411d4897b922887c09db35c8e9db69df9f6085684eae5df6cda.json +1 -0
  81. excutia-0.2.0/src/excutia/demo/replay/google/e06096a1d21b73918e27d66b5661d2112ac069fe8885e3725b92713d6f940dc2.json +1 -0
  82. excutia-0.2.0/src/excutia/demo/replay/google/e29be17808b795e8f3d26dd1558c61cd10c2d9855c9313f81c7df5c42a9911a8.json +1 -0
  83. excutia-0.2.0/src/excutia/demo/replay/google/e5850c4bad961dcd128b8f1213879ab90ec7e6524352b17b8e5f87af06c954be.json +1 -0
  84. excutia-0.2.0/src/excutia/demo/replay/google/e64fa4653a25c46b2b7048a01533154450ea65386437415ec04422a0390070f7.json +1 -0
  85. excutia-0.2.0/src/excutia/demo/replay/google/e83a0c2fb15ed8bd09148109a40d56d25a3fd829b56440dc698f7463abfb835c.json +1 -0
  86. excutia-0.2.0/src/excutia/demo/replay/google/e8cf7d8357c7a8d33c55e7814b2b0871cd73eb71399de2c8253013352a4d9b68.json +1 -0
  87. excutia-0.2.0/src/excutia/demo/replay/google/eb29d626aef8361a915ff1c5aa1c1a5d593d12a75923de0a7a0cfc8cdb60047d.json +1 -0
  88. excutia-0.2.0/src/excutia/demo/replay/google/f28e258671e4c87884358d888249623fa92520b367a83c246f78c541d7d5e8fa.json +1 -0
  89. excutia-0.2.0/src/excutia/demo/replay/google/f60f5cc8df030beec1f0d3f3494448d10aadcbac977f8c93ab9d6d5ea72dfc67.json +1 -0
  90. excutia-0.2.0/src/excutia/demo/replay/google/f9c08fd9411c3421d96b25e305986f272fd8e4f27e1daaff33d8316063b78866.json +1 -0
  91. excutia-0.2.0/src/excutia/demo/replay/google/ff7db6bd30b16936bd7a85bfcba4e15419d71baed6970f3eafa903beec749cb2.json +1 -0
  92. excutia-0.2.0/src/excutia/demo/replay/meta/00dd2ff38c49e84eb05f5ffdf6ad2f74bf656b2f23b83f68ea51b812bd8bcf6a.json +1 -0
  93. excutia-0.2.0/src/excutia/demo/replay/meta/0a5bfeefaa11ba1ac6ac9a655aa2bea8fcfd0c5cbaed502d74a059c19be4a4af.json +1 -0
  94. excutia-0.2.0/src/excutia/demo/replay/meta/246e830eebd8abfc63ac27cffd5adb93633bf9a173151ddcb85cd655e8a1ad6b.json +1 -0
  95. excutia-0.2.0/src/excutia/demo/replay/meta/272f6f456f6592b5aff077815eaed3d1b98ba2f59dc79f8caaa35162823db9e3.json +1 -0
  96. excutia-0.2.0/src/excutia/demo/replay/meta/42ef8bc73fe3f1915a9740e15408e328ce97958a00ebd1cd1db3c7a9915c7318.json +1 -0
  97. excutia-0.2.0/src/excutia/demo/replay/meta/4b9d73945fd234148a3f883392a9eed634a69981b7a126304fe058ac7eef9afb.json +1 -0
  98. excutia-0.2.0/src/excutia/demo/replay/meta/5de025d803b28e6383a746f371ba77e43364b54b7ed306e7cb438eceed2b7abe.json +1 -0
  99. excutia-0.2.0/src/excutia/demo/replay/meta/5ee35e4635e6e0cf2256974afa069a071ba634ee4fa573ea9584e4b54d87e237.json +1 -0
  100. excutia-0.2.0/src/excutia/demo/replay/meta/68ff80bd2c015232fa0a7f5c56d4e5d367099a767d33010b44e134f6885edeb8.json +1 -0
  101. excutia-0.2.0/src/excutia/demo/replay/meta/6999e614d6a4aa162686d7c44ec92288d4a0c5db8409a4d38f78fbc7c86e7acb.json +1 -0
  102. excutia-0.2.0/src/excutia/demo/replay/meta/6ab07da5380f9d5b87d20c8d9685b6a3f4a8ef170ff796c293cd41b8414a9537.json +1 -0
  103. excutia-0.2.0/src/excutia/demo/replay/meta/6e488538237416184b17af50f13b0ceee8a4b78681bc8e76ee2599efbdd87c47.json +1 -0
  104. excutia-0.2.0/src/excutia/demo/replay/meta/6fad95d34e4a7353cd6bea202e8444f4d7411f14451870b46402d61b59b43a99.json +1 -0
  105. excutia-0.2.0/src/excutia/demo/replay/meta/7270ce5a870afbc7365bac91e112c09470d3698ad47ccee4ac303b1b2f8c3b37.json +1 -0
  106. excutia-0.2.0/src/excutia/demo/replay/meta/7c84b2dc12b263b6a1427cb7165e23b30185fb9863c37c39a3b4baf725f0c9b1.json +1 -0
  107. excutia-0.2.0/src/excutia/demo/replay/meta/8d5cbd61c6afa7e8c56fbe45f6077e945ab730be74e18605d22176139ab5f186.json +1 -0
  108. excutia-0.2.0/src/excutia/demo/replay/meta/9a033d7c0b88b6d4f61da9fd0fada2d7e1ad53107bd707a33d5ef7ae6831b143.json +1 -0
  109. excutia-0.2.0/src/excutia/demo/replay/meta/a140aebce940c5eb873fc46b102b93ddfe5cf691cea7437c68d61fd44df6422f.json +1 -0
  110. excutia-0.2.0/src/excutia/demo/replay/meta/aa4d2677f7b01d18cd50ad68af13dcda825c17e80570e1ef7200d547596ff607.json +1 -0
  111. excutia-0.2.0/src/excutia/demo/replay/meta/ab1bedd93f5f30eb0bef63f0ae4cdf374256b7f70645061b2d1cf37df3bdb537.json +1 -0
  112. excutia-0.2.0/src/excutia/demo/replay/meta/ab8bea2be53ea814c6431b4a39d110ee2f91884e13c2dbc961a2ebe8368d991d.json +1 -0
  113. excutia-0.2.0/src/excutia/demo/replay/meta/b6d29e8be2abaf3af59ac08e03e3aa18cce5403d48388039369826d3c834e07c.json +1 -0
  114. excutia-0.2.0/src/excutia/demo/replay/meta/b9fdbe64e9d03bfa7796f3018552d4ca041f6d592b4078b5bbd16df2d3bc8148.json +1 -0
  115. excutia-0.2.0/src/excutia/demo/replay/meta/bc395012f7b29d5e9a250a3a12d16a984610dbf9559c802f58c8b08b25e00cfb.json +1 -0
  116. excutia-0.2.0/src/excutia/demo/replay/meta/ca221733bf66023707102cdc8062dfe05b560945ee07f49b2ee9e078b18a705e.json +1 -0
  117. excutia-0.2.0/src/excutia/demo/replay/meta/e1488ef5c25ff25229bee8a1cd81f23e56abe082536bbfbdf6964a4c48d09e7c.json +1 -0
  118. excutia-0.2.0/src/excutia/demo/replay/meta/e1fed5d8b12c1c34a0ef71512cd1a9a0e1021676b9cd989fe80c8552cc4e1938.json +1 -0
  119. excutia-0.2.0/src/excutia/demo/replay/meta/ee49dc8e51a07b1c92c193ecedc2549445f76880aae5f9b7c329259213fe10e2.json +1 -0
  120. excutia-0.2.0/src/excutia/demo/replay/meta/f1f8d8922b7d8855b9eeb6d81764bac9f56cb607d8c8fd841df96be15d0acf11.json +1 -0
  121. excutia-0.2.0/src/excutia/demo/replay/meta/f4bb8a7069244766a287a8121a2ac067b7a02ee0531276848c58356c2e8605a6.json +1 -0
  122. excutia-0.2.0/src/excutia/experiments/__init__.py +1 -0
  123. excutia-0.2.0/src/excutia/experiments/adapters.py +237 -0
  124. excutia-0.2.0/src/excutia/experiments/contracts.py +444 -0
  125. excutia-0.2.0/src/excutia/experiments/discovery.py +86 -0
  126. excutia-0.2.0/src/excutia/experiments/fixtures.py +43 -0
  127. excutia-0.2.0/src/excutia/experiments/harness_contracts.py +954 -0
  128. excutia-0.2.0/src/excutia/experiments/harness_design.py +718 -0
  129. excutia-0.2.0/src/excutia/experiments/harness_learning.py +425 -0
  130. excutia-0.2.0/src/excutia/experiments/harness_readiness.py +591 -0
  131. excutia-0.2.0/src/excutia/experiments/learning_v2.py +690 -0
  132. excutia-0.2.0/src/excutia/experiments/numeric_claims.py +417 -0
  133. excutia-0.2.0/src/excutia/experiments/readout.py +142 -0
  134. excutia-0.2.0/src/excutia/experiments/readouts_v2.py +734 -0
  135. excutia-0.2.0/src/excutia/experiments/recipe_contracts.py +687 -0
  136. excutia-0.2.0/src/excutia/experiments/recipes/__init__.py +22 -0
  137. excutia-0.2.0/src/excutia/experiments/recipes/native.py +738 -0
  138. excutia-0.2.0/src/excutia/experiments/recipes/pilot.py +675 -0
  139. excutia-0.2.0/src/excutia/findings.py +84 -0
  140. excutia-0.2.0/src/excutia/ga4/__init__.py +1 -0
  141. excutia-0.2.0/src/excutia/ga4/capability.py +1143 -0
  142. excutia-0.2.0/src/excutia/ga4/client.py +1283 -0
  143. excutia-0.2.0/src/excutia/ga4/configuration.py +102 -0
  144. excutia-0.2.0/src/excutia/ga4/contracts.py +282 -0
  145. excutia-0.2.0/src/excutia/ga4/evidence.py +862 -0
  146. excutia-0.2.0/src/excutia/ga4/fields.py +23 -0
  147. excutia-0.2.0/src/excutia/ga4/reports.py +487 -0
  148. excutia-0.2.0/src/excutia/google/__init__.py +1 -0
  149. excutia-0.2.0/src/excutia/google/client.py +364 -0
  150. excutia-0.2.0/src/excutia/google/gaql.py +131 -0
  151. excutia-0.2.0/src/excutia/google/geo_names.py +168 -0
  152. excutia-0.2.0/src/excutia/google/history.py +243 -0
  153. excutia-0.2.0/src/excutia/google/pmax_queries.py +380 -0
  154. excutia-0.2.0/src/excutia/google/pmax_tools.py +1093 -0
  155. excutia-0.2.0/src/excutia/google/queries.py +588 -0
  156. excutia-0.2.0/src/excutia/google/quota.py +51 -0
  157. excutia-0.2.0/src/excutia/google/results.py +1539 -0
  158. excutia-0.2.0/src/excutia/google/supplements.py +93 -0
  159. excutia-0.2.0/src/excutia/google/tools.py +1518 -0
  160. excutia-0.2.0/src/excutia/local/__init__.py +1 -0
  161. excutia-0.2.0/src/excutia/local/redaction.py +99 -0
  162. excutia-0.2.0/src/excutia/mcp/__init__.py +5 -0
  163. excutia-0.2.0/src/excutia/mcp/common.py +83 -0
  164. excutia-0.2.0/src/excutia/mcp/config.py +244 -0
  165. excutia-0.2.0/src/excutia/mcp/contracts/__init__.py +1 -0
  166. excutia-0.2.0/src/excutia/mcp/contracts/access.py +166 -0
  167. excutia-0.2.0/src/excutia/mcp/contracts/account_ref.py +114 -0
  168. excutia-0.2.0/src/excutia/mcp/contracts/entity_ref.py +75 -0
  169. excutia-0.2.0/src/excutia/mcp/contracts/errors.py +48 -0
  170. excutia-0.2.0/src/excutia/mcp/contracts/jobs.py +143 -0
  171. excutia-0.2.0/src/excutia/mcp/contracts/money.py +124 -0
  172. excutia-0.2.0/src/excutia/mcp/contracts/paging.py +62 -0
  173. excutia-0.2.0/src/excutia/mcp/contracts/platform_fields.py +37 -0
  174. excutia-0.2.0/src/excutia/mcp/contracts/status.py +30 -0
  175. excutia-0.2.0/src/excutia/mcp/contracts/windows.py +136 -0
  176. excutia-0.2.0/src/excutia/mcp/creatives/__init__.py +1 -0
  177. excutia-0.2.0/src/excutia/mcp/creatives/google.py +156 -0
  178. excutia-0.2.0/src/excutia/mcp/creatives/media.py +224 -0
  179. excutia-0.2.0/src/excutia/mcp/creatives/meta.py +178 -0
  180. excutia-0.2.0/src/excutia/mcp/creatives/service.py +170 -0
  181. excutia-0.2.0/src/excutia/mcp/diagnostics/__init__.py +1 -0
  182. excutia-0.2.0/src/excutia/mcp/diagnostics/common.py +137 -0
  183. excutia-0.2.0/src/excutia/mcp/diagnostics/delivery.py +298 -0
  184. excutia-0.2.0/src/excutia/mcp/diagnostics/recommendations.py +125 -0
  185. excutia-0.2.0/src/excutia/mcp/diagnostics/tracking.py +334 -0
  186. excutia-0.2.0/src/excutia/mcp/envelope.py +128 -0
  187. excutia-0.2.0/src/excutia/mcp/evidence.py +72 -0
  188. excutia-0.2.0/src/excutia/mcp/experiments/__init__.py +1 -0
  189. excutia-0.2.0/src/excutia/mcp/experiments/calling.py +230 -0
  190. excutia-0.2.0/src/excutia/mcp/experiments/edits.py +75 -0
  191. excutia-0.2.0/src/excutia/mcp/experiments/google.py +134 -0
  192. excutia-0.2.0/src/excutia/mcp/experiments/health.py +146 -0
  193. excutia-0.2.0/src/excutia/mcp/experiments/learning.py +317 -0
  194. excutia-0.2.0/src/excutia/mcp/experiments/meta.py +474 -0
  195. excutia-0.2.0/src/excutia/mcp/experiments/records.py +108 -0
  196. excutia-0.2.0/src/excutia/mcp/history/__init__.py +0 -0
  197. excutia-0.2.0/src/excutia/mcp/history/coverage.py +75 -0
  198. excutia-0.2.0/src/excutia/mcp/history/google.py +186 -0
  199. excutia-0.2.0/src/excutia/mcp/history/meta.py +178 -0
  200. excutia-0.2.0/src/excutia/mcp/history/model.py +185 -0
  201. excutia-0.2.0/src/excutia/mcp/history/receipts.py +42 -0
  202. excutia-0.2.0/src/excutia/mcp/history/service.py +124 -0
  203. excutia-0.2.0/src/excutia/mcp/keywords/__init__.py +38 -0
  204. excutia-0.2.0/src/excutia/mcp/keywords/planner.py +111 -0
  205. excutia-0.2.0/src/excutia/mcp/keywords/research.py +85 -0
  206. excutia-0.2.0/src/excutia/mcp/keywords/search_terms.py +208 -0
  207. excutia-0.2.0/src/excutia/mcp/memory/__init__.py +6 -0
  208. excutia-0.2.0/src/excutia/mcp/memory/aliases.py +167 -0
  209. excutia-0.2.0/src/excutia/mcp/memory/hooks.py +423 -0
  210. excutia-0.2.0/src/excutia/mcp/memory/model.py +762 -0
  211. excutia-0.2.0/src/excutia/mcp/memory/service.py +574 -0
  212. excutia-0.2.0/src/excutia/mcp/memory/signals.py +51 -0
  213. excutia-0.2.0/src/excutia/mcp/output_schema.py +12 -0
  214. excutia-0.2.0/src/excutia/mcp/performance/__init__.py +1 -0
  215. excutia-0.2.0/src/excutia/mcp/performance/compare.py +101 -0
  216. excutia-0.2.0/src/excutia/mcp/performance/engine.py +262 -0
  217. excutia-0.2.0/src/excutia/mcp/performance/fields.py +221 -0
  218. excutia-0.2.0/src/excutia/mcp/performance/google.py +131 -0
  219. excutia-0.2.0/src/excutia/mcp/performance/meta.py +137 -0
  220. excutia-0.2.0/src/excutia/mcp/performance/meta_actions.py +182 -0
  221. excutia-0.2.0/src/excutia/mcp/performance/meta_async.py +108 -0
  222. excutia-0.2.0/src/excutia/mcp/performance/request.py +188 -0
  223. excutia-0.2.0/src/excutia/mcp/replay.py +89 -0
  224. excutia-0.2.0/src/excutia/mcp/resources/__init__.py +64 -0
  225. excutia-0.2.0/src/excutia/mcp/resources/audiences.py +130 -0
  226. excutia-0.2.0/src/excutia/mcp/resources/negative_lists.py +105 -0
  227. excutia-0.2.0/src/excutia/mcp/review/__init__.py +6 -0
  228. excutia-0.2.0/src/excutia/mcp/review/builders.py +57 -0
  229. excutia-0.2.0/src/excutia/mcp/review/builders_changes.py +254 -0
  230. excutia-0.2.0/src/excutia/mcp/review/builders_workflow.py +42 -0
  231. excutia-0.2.0/src/excutia/mcp/review/catalogue.py +106 -0
  232. excutia-0.2.0/src/excutia/mcp/review/decisions.py +84 -0
  233. excutia-0.2.0/src/excutia/mcp/review/models.py +225 -0
  234. excutia-0.2.0/src/excutia/mcp/review/render.py +133 -0
  235. excutia-0.2.0/src/excutia/mcp/review/render_changes.py +165 -0
  236. excutia-0.2.0/src/excutia/mcp/review/server.py +514 -0
  237. excutia-0.2.0/src/excutia/mcp/review/static/Figtree-OFL.txt +93 -0
  238. excutia-0.2.0/src/excutia/mcp/review/static/excutia-horizontal.svg +1 -0
  239. excutia-0.2.0/src/excutia/mcp/review/static/favicon.svg +1 -0
  240. excutia-0.2.0/src/excutia/mcp/review/static/figtree-latin-wght-normal.woff2 +0 -0
  241. excutia-0.2.0/src/excutia/mcp/review/static/review.css +142 -0
  242. excutia-0.2.0/src/excutia/mcp/review/static/review.js +164 -0
  243. excutia-0.2.0/src/excutia/mcp/review/templates/changes.html +3 -0
  244. excutia-0.2.0/src/excutia/mcp/review/templates/icons.svg +15 -0
  245. excutia-0.2.0/src/excutia/mcp/review/templates/page.html +7 -0
  246. excutia-0.2.0/src/excutia/mcp/review/validation.py +218 -0
  247. excutia-0.2.0/src/excutia/mcp/runtime.py +166 -0
  248. excutia-0.2.0/src/excutia/mcp/server.py +159 -0
  249. excutia-0.2.0/src/excutia/mcp/sources/__init__.py +1 -0
  250. excutia-0.2.0/src/excutia/mcp/sources/arguments.py +26 -0
  251. excutia-0.2.0/src/excutia/mcp/sources/catalog.py +89 -0
  252. excutia-0.2.0/src/excutia/mcp/sources/ga4.py +190 -0
  253. excutia-0.2.0/src/excutia/mcp/sources/google.py +248 -0
  254. excutia-0.2.0/src/excutia/mcp/sources/meta.py +154 -0
  255. excutia-0.2.0/src/excutia/mcp/sources/scope.py +38 -0
  256. excutia-0.2.0/src/excutia/mcp/sources/shared.py +119 -0
  257. excutia-0.2.0/src/excutia/mcp/store.py +438 -0
  258. excutia-0.2.0/src/excutia/mcp/structure/__init__.py +5 -0
  259. excutia-0.2.0/src/excutia/mcp/structure/google.py +238 -0
  260. excutia-0.2.0/src/excutia/mcp/structure/levels.py +86 -0
  261. excutia-0.2.0/src/excutia/mcp/structure/meta.py +126 -0
  262. excutia-0.2.0/src/excutia/mcp/structure/rows.py +269 -0
  263. excutia-0.2.0/src/excutia/mcp/structure/service.py +253 -0
  264. excutia-0.2.0/src/excutia/mcp/sweep/__init__.py +1 -0
  265. excutia-0.2.0/src/excutia/mcp/sweep/__main__.py +87 -0
  266. excutia-0.2.0/src/excutia/mcp/sweep/brief.py +226 -0
  267. excutia-0.2.0/src/excutia/mcp/sweep/jobs.py +57 -0
  268. excutia-0.2.0/src/excutia/mcp/sweep/lifecycle.py +112 -0
  269. excutia-0.2.0/src/excutia/mcp/sweep/remedies.py +25 -0
  270. excutia-0.2.0/src/excutia/mcp/sweep/run.py +299 -0
  271. excutia-0.2.0/src/excutia/mcp/tools/__init__.py +1 -0
  272. excutia-0.2.0/src/excutia/mcp/tools/_bridge.py +7 -0
  273. excutia-0.2.0/src/excutia/mcp/tools/accounts.py +88 -0
  274. excutia-0.2.0/src/excutia/mcp/tools/calculate.py +132 -0
  275. excutia-0.2.0/src/excutia/mcp/tools/changes.py +36 -0
  276. excutia-0.2.0/src/excutia/mcp/tools/connect.py +42 -0
  277. excutia-0.2.0/src/excutia/mcp/tools/context.py +61 -0
  278. excutia-0.2.0/src/excutia/mcp/tools/creatives.py +34 -0
  279. excutia-0.2.0/src/excutia/mcp/tools/diagnostics.py +46 -0
  280. excutia-0.2.0/src/excutia/mcp/tools/evidence.py +33 -0
  281. excutia-0.2.0/src/excutia/mcp/tools/history.py +25 -0
  282. excutia-0.2.0/src/excutia/mcp/tools/jobs.py +20 -0
  283. excutia-0.2.0/src/excutia/mcp/tools/keywords.py +33 -0
  284. excutia-0.2.0/src/excutia/mcp/tools/memory.py +67 -0
  285. excutia-0.2.0/src/excutia/mcp/tools/meta_tests.py +17 -0
  286. excutia-0.2.0/src/excutia/mcp/tools/monitor.py +18 -0
  287. excutia-0.2.0/src/excutia/mcp/tools/performance.py +36 -0
  288. excutia-0.2.0/src/excutia/mcp/tools/reports.py +44 -0
  289. excutia-0.2.0/src/excutia/mcp/tools/resources.py +21 -0
  290. excutia-0.2.0/src/excutia/mcp/tools/review.py +43 -0
  291. excutia-0.2.0/src/excutia/mcp/tools/structure.py +26 -0
  292. excutia-0.2.0/src/excutia/mcp/tools/sweep.py +19 -0
  293. excutia-0.2.0/src/excutia/mcp/tools/tests.py +77 -0
  294. excutia-0.2.0/src/excutia/mcp/tools/variants.py +33 -0
  295. excutia-0.2.0/src/excutia/mcp/tools/workflow.py +62 -0
  296. excutia-0.2.0/src/excutia/mcp/toolsets.py +80 -0
  297. excutia-0.2.0/src/excutia/mcp/variants/__init__.py +198 -0
  298. excutia-0.2.0/src/excutia/mcp/variants/images.py +36 -0
  299. excutia-0.2.0/src/excutia/mcp/variants/review_builder.py +17 -0
  300. excutia-0.2.0/src/excutia/mcp/workflow/__init__.py +1 -0
  301. excutia-0.2.0/src/excutia/mcp/workflow/annotations.py +5 -0
  302. excutia-0.2.0/src/excutia/mcp/workflow/common.py +67 -0
  303. excutia-0.2.0/src/excutia/mcp/workflow/decisions.py +117 -0
  304. excutia-0.2.0/src/excutia/mcp/workflow/design.py +126 -0
  305. excutia-0.2.0/src/excutia/mcp/workflow/diagnosis.py +401 -0
  306. excutia-0.2.0/src/excutia/mcp/workflow/diagnosis_job.py +189 -0
  307. excutia-0.2.0/src/excutia/mcp/workflow/hypotheses.py +268 -0
  308. excutia-0.2.0/src/excutia/mcp/workflow/ranking.py +41 -0
  309. excutia-0.2.0/src/excutia/mcp/workflow/sizing.py +158 -0
  310. excutia-0.2.0/src/excutia/mcp/writes/__init__.py +1 -0
  311. excutia-0.2.0/src/excutia/mcp/writes/applier.py +388 -0
  312. excutia-0.2.0/src/excutia/mcp/writes/approval.py +125 -0
  313. excutia-0.2.0/src/excutia/mcp/writes/errors.py +35 -0
  314. excutia-0.2.0/src/excutia/mcp/writes/facts.py +186 -0
  315. excutia-0.2.0/src/excutia/mcp/writes/google/__init__.py +1 -0
  316. excutia-0.2.0/src/excutia/mcp/writes/google/base.py +71 -0
  317. excutia-0.2.0/src/excutia/mcp/writes/google/client.py +103 -0
  318. excutia-0.2.0/src/excutia/mcp/writes/google/errors.py +96 -0
  319. excutia-0.2.0/src/excutia/mcp/writes/google/executor.py +189 -0
  320. excutia-0.2.0/src/excutia/mcp/writes/google/limits.py +3 -0
  321. excutia-0.2.0/src/excutia/mcp/writes/google/operations.py +67 -0
  322. excutia-0.2.0/src/excutia/mcp/writes/google/reads.py +281 -0
  323. excutia-0.2.0/src/excutia/mcp/writes/google/refs.py +53 -0
  324. excutia-0.2.0/src/excutia/mcp/writes/kinds/__init__.py +0 -0
  325. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/__init__.py +1 -0
  326. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/ad_group.py +132 -0
  327. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/asset_status.py +184 -0
  328. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/audience_targeting.py +350 -0
  329. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/bid.py +166 -0
  330. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/budget.py +142 -0
  331. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/create_experiment.py +337 -0
  332. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/create_experiment_arms.py +231 -0
  333. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/end_experiment.py +86 -0
  334. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/executor.py +6 -0
  335. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/keywords.py +334 -0
  336. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/negatives.py +267 -0
  337. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/rename.py +74 -0
  338. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/schedule_experiment.py +423 -0
  339. excutia-0.2.0/src/excutia/mcp/writes/kinds/google/status.py +82 -0
  340. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/__init__.py +1 -0
  341. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/cancel_study.py +161 -0
  342. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/create_ad.py +150 -0
  343. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/create_creative.py +171 -0
  344. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/create_split_test.py +435 -0
  345. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/rename.py +58 -0
  346. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/set_bid.py +163 -0
  347. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/set_budget.py +262 -0
  348. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/set_status.py +60 -0
  349. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/update_ad_copy.py +310 -0
  350. excutia-0.2.0/src/excutia/mcp/writes/kinds/meta/upload_image.py +264 -0
  351. excutia-0.2.0/src/excutia/mcp/writes/limits.py +17 -0
  352. excutia-0.2.0/src/excutia/mcp/writes/meta/__init__.py +1 -0
  353. excutia-0.2.0/src/excutia/mcp/writes/meta/base.py +78 -0
  354. excutia-0.2.0/src/excutia/mcp/writes/meta/capabilities.py +12 -0
  355. excutia-0.2.0/src/excutia/mcp/writes/meta/client.py +145 -0
  356. excutia-0.2.0/src/excutia/mcp/writes/meta/errors.py +68 -0
  357. excutia-0.2.0/src/excutia/mcp/writes/meta/issues.py +37 -0
  358. excutia-0.2.0/src/excutia/mcp/writes/meta/money.py +48 -0
  359. excutia-0.2.0/src/excutia/mcp/writes/meta/reads.py +41 -0
  360. excutia-0.2.0/src/excutia/mcp/writes/meta/refs.py +10 -0
  361. excutia-0.2.0/src/excutia/mcp/writes/model.py +244 -0
  362. excutia-0.2.0/src/excutia/mcp/writes/pacing.py +135 -0
  363. excutia-0.2.0/src/excutia/mcp/writes/planner.py +373 -0
  364. excutia-0.2.0/src/excutia/mcp/writes/protocol.py +229 -0
  365. excutia-0.2.0/src/excutia/mcp/writes/reconcile.py +229 -0
  366. excutia-0.2.0/src/excutia/mcp/writes/refs.py +46 -0
  367. excutia-0.2.0/src/excutia/mcp/writes/registry.py +64 -0
  368. excutia-0.2.0/src/excutia/memory/__init__.py +1 -0
  369. excutia-0.2.0/src/excutia/memory/contracts.py +338 -0
  370. excutia-0.2.0/src/excutia/memory/policy.py +431 -0
  371. excutia-0.2.0/src/excutia/meta/__init__.py +0 -0
  372. excutia-0.2.0/src/excutia/meta/client.py +298 -0
  373. excutia-0.2.0/src/excutia/meta/contracts.py +40 -0
  374. excutia-0.2.0/src/excutia/meta/conversions.py +36 -0
  375. excutia-0.2.0/src/excutia/meta/errors.py +57 -0
  376. excutia-0.2.0/src/excutia/meta/insights.py +266 -0
  377. excutia-0.2.0/src/excutia/meta/results.py +147 -0
  378. excutia-0.2.0/src/excutia/meta/structure.py +150 -0
  379. excutia-0.2.0/src/excutia/meta/tools.py +246 -0
  380. excutia-0.2.0/src/excutia/onboarding/__init__.py +5 -0
  381. excutia-0.2.0/src/excutia/onboarding/checks.py +215 -0
  382. excutia-0.2.0/src/excutia/onboarding/doctor.py +211 -0
  383. excutia-0.2.0/src/excutia/onboarding/oauth.py +123 -0
  384. excutia-0.2.0/src/excutia/onboarding/setup.py +280 -0
  385. excutia-0.2.0/src/excutia/pmax/__init__.py +1 -0
  386. excutia-0.2.0/src/excutia/pmax/capability.py +841 -0
  387. excutia-0.2.0/src/excutia/pmax/contracts.py +164 -0
  388. excutia-0.2.0/src/excutia/pmax/signals.py +279 -0
  389. excutia-0.2.0/src/excutia/r0/__init__.py +1 -0
  390. excutia-0.2.0/src/excutia/r0/contracts.py +184 -0
  391. excutia-0.2.0/src/excutia/r0/identifiers.py +12 -0
  392. excutia-0.2.0/src/excutia/reporting/__init__.py +1 -0
  393. excutia-0.2.0/src/excutia/reporting/coverage.py +109 -0
  394. excutia-0.2.0/src/excutia/reporting/dimension_summary.py +535 -0
  395. excutia-0.2.0/src/excutia/reporting/metrics.py +96 -0
  396. excutia-0.2.0/src/excutia/reporting/money.py +42 -0
  397. excutia-0.2.0/src/excutia/reporting/projection.py +58 -0
  398. excutia-0.2.0/src/excutia/reporting/search_term_population.py +197 -0
  399. excutia-0.2.0/src/excutia/search/__init__.py +1 -0
  400. excutia-0.2.0/src/excutia/search/capability.py +855 -0
  401. excutia-0.2.0/src/excutia/search/contracts.py +179 -0
  402. excutia-0.2.0/src/excutia/search/signals.py +660 -0
  403. excutia-0.2.0/src/excutia/search_terms/__init__.py +1 -0
  404. excutia-0.2.0/src/excutia/search_terms/operator/__init__.py +1 -0
  405. excutia-0.2.0/src/excutia/search_terms/operator/normalization.py +49 -0
  406. excutia-0.2.0/src/excutia/search_terms/queries.py +627 -0
  407. excutia-0.2.0/src/excutia/sweep/__init__.py +1 -0
  408. excutia-0.2.0/src/excutia/sweep/fetch.py +320 -0
  409. excutia-0.2.0/src/excutia/sweep/mapping.py +321 -0
  410. excutia-0.2.0/src/excutia/trust/__init__.py +1 -0
  411. excutia-0.2.0/src/excutia/trust/artifacts.py +61 -0
  412. excutia-0.2.0/src/excutia/trust/catalog.py +382 -0
  413. excutia-0.2.0/src/excutia/trust/contracts.py +430 -0
  414. excutia-0.2.0/src/excutia/trust/notes.py +230 -0
  415. excutia-0.2.0/src/excutia/trust/validation.py +349 -0
  416. excutia-0.2.0/tests/fixtures/mcp/codex_hooks/README.md +34 -0
  417. excutia-0.2.0/tests/fixtures/mcp/memory_eval/README.md +94 -0
  418. excutia-0.2.0/tests/fixtures/mcp/memory_eval_w2/README.md +165 -0
  419. excutia-0.2.0/tests/fixtures/mcp/memory_eval_w3/README.md +190 -0
@@ -0,0 +1,29 @@
1
+ # Secrets and local configuration
2
+ .env
3
+ .env.*
4
+ *.pem
5
+ *.p12
6
+
7
+ # Python
8
+ .venv/
9
+ __pycache__/
10
+ *.py[cod]
11
+ *.egg-info/
12
+ .pytest_cache/
13
+ .hypothesis/
14
+ .coverage
15
+ htmlcov/
16
+
17
+ # Build output
18
+ dist/
19
+ build/
20
+ .excutia-build/
21
+
22
+ # Local scratch output written by tests and scripts
23
+ .adops/
24
+ .excutia/
25
+
26
+ # Editors and OS
27
+ .DS_Store
28
+ .idea/
29
+ .vscode/
excutia-0.2.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 2026 Stephen Dang
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.
excutia-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.5
2
+ Name: excutia
3
+ Version: 0.2.0
4
+ Summary: Local MCP server for Google Ads, Meta Ads and GA4: read performance, size and call tests, and change accounts only through approved plans.
5
+ Project-URL: Homepage, https://excutia.com
6
+ Project-URL: Repository, https://github.com/excutia/ads-mcp
7
+ Project-URL: Issues, https://github.com/excutia/ads-mcp/issues
8
+ Author: Stephen Dang
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: advertising,claude-code,codex,ga4,google-ads,mcp,meta-ads
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: MacOS
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Office/Business
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: google-ads<33,>=32
22
+ Requires-Dist: httpx>=0.27
23
+ Requires-Dist: keyring>=25.6
24
+ Requires-Dist: mcp<2.4,>=2.3
25
+ Requires-Dist: pydantic<3,>=2.11
26
+ Requires-Dist: python-dotenv>=1.0
27
+ Requires-Dist: statsmodels>=0.15
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Excutia ads MCP
31
+
32
+ A local MCP server and plugin for Claude Code and Codex that reads Google Ads, Meta Ads and GA4,
33
+ sizes and calls ad tests honestly, and changes accounts only through change plans you approve.
34
+
35
+ It runs on your machine with your own credentials and your own Google Cloud project. It makes no
36
+ LLM or paid API calls: your assistant does the reasoning, and code computes every number.
37
+
38
+ > Early release. The commands below work once `excutia` 0.2.0 is published to PyPI.
39
+
40
+ ## Install
41
+
42
+ Claude Code:
43
+
44
+ ```
45
+ /plugin install excutia --marketplace excutia/ads-mcp
46
+ ```
47
+
48
+ or, from a shell: `claude plugin marketplace add excutia/ads-mcp` then `claude plugin install excutia@excutia`.
49
+
50
+ Codex:
51
+
52
+ ```bash
53
+ codex plugin marketplace add excutia/ads-mcp
54
+ ```
55
+
56
+ ```bash
57
+ codex plugin add excutia@excutia
58
+ ```
59
+
60
+ Codex runs a plugin's hooks only after you trust them; until then Excutia works without its memory hooks.
61
+
62
+ Only the MCP server, without skills or experts:
63
+
64
+ ```bash
65
+ claude mcp add excutia -- uvx excutia==0.2.0
66
+ ```
67
+
68
+ ```bash
69
+ codex mcp add excutia -- uvx excutia==0.2.0
70
+ ```
71
+
72
+ The plugins and these commands launch the pinned package with [uv](https://docs.astral.sh/uv/)'s
73
+ `uvx`, so uv must be installed.
74
+
75
+ ## Try it without an account
76
+
77
+ With no workspace configured, Excutia serves a demo workspace of invented data. Ask your assistant
78
+ "Diagnose my Google Ads account" or "How did my campaigns do last week?". Nothing reaches an ad
79
+ platform in the demo, and change plans refuse to apply.
80
+
81
+ ## Connect your accounts
82
+
83
+ ```bash
84
+ uvx excutia==0.2.0 setup
85
+ ```
86
+
87
+ Setup walks through your own Google Cloud project (enable the Google Ads API, publish the OAuth
88
+ consent screen to In production, create a Desktop OAuth client, sign in on a 127.0.0.1 redirect),
89
+ a Meta system-user token and a GA4 property. Developer tokens are not needed: Google sunset them on
90
+ 9 Sep 2026, and API access now follows your Cloud project. Secrets go to the OS keychain; Claude Code
91
+ users can also enter them as plugin options, which Claude Code keeps in its secure storage.
92
+
93
+ Check credentials and access at any time; each failure prints the exact fix:
94
+
95
+ ```bash
96
+ uvx excutia==0.2.0 doctor
97
+ ```
98
+
99
+ ## What it runs and contacts
100
+
101
+ - `uvx` downloads the `excutia` package and its dependencies from PyPI.
102
+ - The server reads and, only after you approve a change plan, writes through the Google Ads API
103
+ (v25), the Meta Graph API (v26.0) and the GA4 Data and Admin APIs, using your OAuth tokens.
104
+ - `setup` and `doctor` call Google's OAuth endpoints and the read-only checks above.
105
+ - Creative previews are fetched from the platforms' image CDNs (fbcdn.net, googlesyndication.com,
106
+ googleusercontent.com).
107
+ - Review pages are served on 127.0.0.1 only.
108
+ - Data is stored in SQLite under `~/.excutia/<workspace>/`. There is no telemetry.
109
+
110
+ ## Development
111
+
112
+ ```bash
113
+ uv sync
114
+ ```
115
+
116
+ ```bash
117
+ uv run pytest
118
+ ```
119
+
120
+ ## License
121
+
122
+ Apache-2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,93 @@
1
+ # Excutia ads MCP
2
+
3
+ A local MCP server and plugin for Claude Code and Codex that reads Google Ads, Meta Ads and GA4,
4
+ sizes and calls ad tests honestly, and changes accounts only through change plans you approve.
5
+
6
+ It runs on your machine with your own credentials and your own Google Cloud project. It makes no
7
+ LLM or paid API calls: your assistant does the reasoning, and code computes every number.
8
+
9
+ > Early release. The commands below work once `excutia` 0.2.0 is published to PyPI.
10
+
11
+ ## Install
12
+
13
+ Claude Code:
14
+
15
+ ```
16
+ /plugin install excutia --marketplace excutia/ads-mcp
17
+ ```
18
+
19
+ or, from a shell: `claude plugin marketplace add excutia/ads-mcp` then `claude plugin install excutia@excutia`.
20
+
21
+ Codex:
22
+
23
+ ```bash
24
+ codex plugin marketplace add excutia/ads-mcp
25
+ ```
26
+
27
+ ```bash
28
+ codex plugin add excutia@excutia
29
+ ```
30
+
31
+ Codex runs a plugin's hooks only after you trust them; until then Excutia works without its memory hooks.
32
+
33
+ Only the MCP server, without skills or experts:
34
+
35
+ ```bash
36
+ claude mcp add excutia -- uvx excutia==0.2.0
37
+ ```
38
+
39
+ ```bash
40
+ codex mcp add excutia -- uvx excutia==0.2.0
41
+ ```
42
+
43
+ The plugins and these commands launch the pinned package with [uv](https://docs.astral.sh/uv/)'s
44
+ `uvx`, so uv must be installed.
45
+
46
+ ## Try it without an account
47
+
48
+ With no workspace configured, Excutia serves a demo workspace of invented data. Ask your assistant
49
+ "Diagnose my Google Ads account" or "How did my campaigns do last week?". Nothing reaches an ad
50
+ platform in the demo, and change plans refuse to apply.
51
+
52
+ ## Connect your accounts
53
+
54
+ ```bash
55
+ uvx excutia==0.2.0 setup
56
+ ```
57
+
58
+ Setup walks through your own Google Cloud project (enable the Google Ads API, publish the OAuth
59
+ consent screen to In production, create a Desktop OAuth client, sign in on a 127.0.0.1 redirect),
60
+ a Meta system-user token and a GA4 property. Developer tokens are not needed: Google sunset them on
61
+ 9 Sep 2026, and API access now follows your Cloud project. Secrets go to the OS keychain; Claude Code
62
+ users can also enter them as plugin options, which Claude Code keeps in its secure storage.
63
+
64
+ Check credentials and access at any time; each failure prints the exact fix:
65
+
66
+ ```bash
67
+ uvx excutia==0.2.0 doctor
68
+ ```
69
+
70
+ ## What it runs and contacts
71
+
72
+ - `uvx` downloads the `excutia` package and its dependencies from PyPI.
73
+ - The server reads and, only after you approve a change plan, writes through the Google Ads API
74
+ (v25), the Meta Graph API (v26.0) and the GA4 Data and Admin APIs, using your OAuth tokens.
75
+ - `setup` and `doctor` call Google's OAuth endpoints and the read-only checks above.
76
+ - Creative previews are fetched from the platforms' image CDNs (fbcdn.net, googlesyndication.com,
77
+ googleusercontent.com).
78
+ - Review pages are served on 127.0.0.1 only.
79
+ - Data is stored in SQLite under `~/.excutia/<workspace>/`. There is no telemetry.
80
+
81
+ ## Development
82
+
83
+ ```bash
84
+ uv sync
85
+ ```
86
+
87
+ ```bash
88
+ uv run pytest
89
+ ```
90
+
91
+ ## License
92
+
93
+ Apache-2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,20 @@
1
+ # Excutia plugin
2
+
3
+ Skills, expert agents and memory hooks for the Excutia MCP server, for Claude Code and Codex. The
4
+ server reads Google Ads, Meta Ads and GA4, sizes and calls ad tests, and changes accounts only
5
+ through change plans you approve.
6
+
7
+ The plugin launches `uvx excutia==0.2.0`, which downloads the `excutia` package from PyPI and runs
8
+ it on your machine. The server talks to the Google Ads API, the Meta Graph API, the GA4 Data and
9
+ Admin APIs and Google's OAuth endpoints with your own credentials, fetches creative previews from
10
+ the platforms' image CDNs, serves review pages on 127.0.0.1, and stores data in SQLite under
11
+ `~/.excutia`. It makes no LLM calls and sends no telemetry.
12
+
13
+ The memory hooks run `uvx excutia==0.2.0 hook <event>` and act only in sessions that used Excutia.
14
+
15
+ With no workspace configured, the server serves a demo of invented data. To connect real accounts,
16
+ run `uvx excutia==0.2.0 setup`; secrets go to the OS keychain. In Claude Code you can instead enter
17
+ them as plugin options with `/plugin configure excutia@excutia`; the secret options are stored as
18
+ sensitive values.
19
+
20
+ Source, license (Apache-2.0) and issues: https://github.com/excutia/ads-mcp
@@ -0,0 +1,64 @@
1
+ [project]
2
+ name = "excutia"
3
+ version = "0.2.0"
4
+ description = "Local MCP server for Google Ads, Meta Ads and GA4: read performance, size and call tests, and change accounts only through approved plans."
5
+ readme = "README.md"
6
+ license = "Apache-2.0"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "Stephen Dang" }]
9
+ requires-python = ">=3.12"
10
+ keywords = ["mcp", "google-ads", "meta-ads", "ga4", "advertising", "claude-code", "codex"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: MacOS",
15
+ "Operating System :: POSIX :: Linux",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Topic :: Office/Business",
20
+ ]
21
+ dependencies = [
22
+ # Developer tokens were sunset on 9 Sep 2026. 32.x omits the header when
23
+ # GOOGLE_DEVELOPER_TOKEN is empty; 31.x sends it and fails.
24
+ "google-ads>=32,<33",
25
+ "httpx>=0.27",
26
+ "keyring>=25.6",
27
+ "mcp>=2.3,<2.4",
28
+ "pydantic>=2.11,<3",
29
+ "python-dotenv>=1.0",
30
+ # Only size_test needs it, and it is imported lazily.
31
+ "statsmodels>=0.15",
32
+ ]
33
+
34
+ [project.urls]
35
+ Homepage = "https://excutia.com"
36
+ Repository = "https://github.com/excutia/ads-mcp"
37
+ Issues = "https://github.com/excutia/ads-mcp/issues"
38
+
39
+ [project.scripts]
40
+ excutia = "excutia.cli:main"
41
+
42
+ [dependency-groups]
43
+ dev = [
44
+ "hypothesis>=6.167.1",
45
+ "jsonschema>=4.26",
46
+ "pytest>=8.0",
47
+ # scripts/excutia_plugin.py reads skill and expert frontmatter.
48
+ "pyyaml>=6.0",
49
+ ]
50
+
51
+ [build-system]
52
+ requires = ["hatchling>=1.27"]
53
+ build-backend = "hatchling.build"
54
+
55
+ [tool.hatch.build.targets.wheel]
56
+ packages = ["src/excutia"]
57
+
58
+ [tool.hatch.build.targets.sdist]
59
+ include = ["src/excutia", "LICENSE", "README.md", "pyproject.toml"]
60
+
61
+ [tool.pytest.ini_options]
62
+ testpaths = ["tests"]
63
+ pythonpath = ["."]
64
+ addopts = "-ra"
@@ -0,0 +1,3 @@
1
+ """Excutia: a local MCP server for Google Ads, Meta Ads and GA4."""
2
+
3
+ __version__ = "0.2.0"
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())
@@ -0,0 +1,66 @@
1
+ """The `excutia` command: the MCP server over stdio, plus setup and doctor."""
2
+
3
+ import argparse
4
+ import sys
5
+
6
+ from . import __version__
7
+
8
+
9
+ def _serve(args):
10
+ # Importing the server builds the tool registry; keep it out of --help.
11
+ from .mcp.server import main
12
+ main()
13
+ return 0
14
+
15
+
16
+ def _sweep(argv):
17
+ from .mcp.sweep.__main__ import main
18
+ return main(argv)
19
+
20
+
21
+ def _hook(argv):
22
+ # Memory hooks import only the light memory modules, not the server.
23
+ from .mcp.memory.hooks import main
24
+ return main(argv)
25
+
26
+
27
+ def _setup(argv):
28
+ from .onboarding.setup import main
29
+ return main(argv)
30
+
31
+
32
+ def _doctor(argv):
33
+ from .onboarding.doctor import main
34
+ return main(argv)
35
+
36
+
37
+ # These own their arguments, so they are forwarded before argparse sees them.
38
+ PASSTHROUGH = {"setup": _setup, "doctor": _doctor, "sweep": _sweep, "hook": _hook}
39
+
40
+
41
+ def parser():
42
+ root = argparse.ArgumentParser(
43
+ prog="excutia",
44
+ description="Local MCP server for Google Ads, Meta Ads and GA4. "
45
+ "With no command, it serves MCP over stdio.")
46
+ root.add_argument("--version", action="version", version=f"excutia {__version__}")
47
+ commands = root.add_subparsers(dest="command", metavar="command")
48
+ commands.add_parser("serve", help="serve MCP over stdio (the default)").set_defaults(run=_serve)
49
+ commands.add_parser("setup", help="connect Google Ads, Meta Ads and GA4 (--demo for invented data)", add_help=False)
50
+ commands.add_parser("doctor", help="check credentials and access, and print the fix", add_help=False)
51
+ commands.add_parser("sweep", help="run the deterministic sweep or print a local schedule", add_help=False)
52
+ commands.add_parser("hook", help="memory hook entry point used by the plugins", add_help=False)
53
+ root.set_defaults(run=_serve)
54
+ return root
55
+
56
+
57
+ def main(argv=None):
58
+ argv = sys.argv[1:] if argv is None else list(argv)
59
+ if argv and argv[0] in PASSTHROUGH:
60
+ return PASSTHROUGH[argv[0]](argv[1:])
61
+ args = parser().parse_args(argv)
62
+ return args.run(args)
63
+
64
+
65
+ if __name__ == "__main__":
66
+ raise SystemExit(main())
@@ -0,0 +1,73 @@
1
+ """Workspace credentials in the OS keychain.
2
+
3
+ The server takes each credential from the first place that has it: the process
4
+ environment (a host config or a Claude Code plugin option), the workspace's
5
+ env_file, then the keychain entry `excutia setup` saved. Values never appear
6
+ in workspace.toml, URLs or logs.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import re
12
+
13
+ SERVICE = "excutia"
14
+ # A host that did not substitute an empty plugin option passes its template.
15
+ _PLACEHOLDER = re.compile(r"^\$\{[^}]*\}$")
16
+
17
+
18
+ class KeychainUnavailable(RuntimeError):
19
+ """No usable OS keychain backend on this machine."""
20
+
21
+
22
+ def unset(value: str | None) -> bool:
23
+ """True for a missing, blank or unsubstituted host value."""
24
+ return value is None or not value.strip() or bool(_PLACEHOLDER.match(value.strip()))
25
+
26
+
27
+ def _entry(workspace: str, field: str) -> str:
28
+ return f"{workspace}/{field}"
29
+
30
+
31
+ def _keyring():
32
+ try:
33
+ import keyring
34
+ from keyring.backends.fail import Keyring as FailKeyring
35
+ except ImportError as exc: # pragma: no cover - keyring is a dependency
36
+ raise KeychainUnavailable("the keyring package is not installed") from exc
37
+ backend = keyring.get_keyring()
38
+ if isinstance(backend, FailKeyring) or type(backend).__name__ == "ChainerBackend" and not backend.backends:
39
+ raise KeychainUnavailable("no OS keychain backend is available")
40
+ return keyring
41
+
42
+
43
+ def save(workspace: str, values: dict[str, str]) -> None:
44
+ keyring = _keyring()
45
+ for field, value in values.items():
46
+ keyring.set_password(SERVICE, _entry(workspace, field), value)
47
+
48
+
49
+ def read(workspace: str, fields) -> dict[str, str]:
50
+ """The keychain values present for these fields; absent fields are omitted."""
51
+ try:
52
+ keyring = _keyring()
53
+ except KeychainUnavailable:
54
+ return {}
55
+ found = {}
56
+ for field in fields:
57
+ try:
58
+ value = keyring.get_password(SERVICE, _entry(workspace, field))
59
+ except Exception: # a locked or refusing keychain reads as absent
60
+ value = None
61
+ if not unset(value):
62
+ found[field] = value
63
+ return found
64
+
65
+
66
+ def delete(workspace: str, fields) -> None:
67
+ keyring = _keyring()
68
+ from keyring.errors import PasswordDeleteError
69
+ for field in fields:
70
+ try:
71
+ keyring.delete_password(SERVICE, _entry(workspace, field))
72
+ except PasswordDeleteError:
73
+ pass