witdem-analytics 0.2.0__tar.gz → 0.2.2__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 (473) hide show
  1. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/.gitignore +3 -0
  2. witdem_analytics-0.2.2/LICENSE +201 -0
  3. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/PKG-INFO +99 -29
  4. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/README.md +90 -27
  5. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/pyproject.toml +29 -4
  6. witdem_analytics-0.2.2/src/witdem/__init__.py +8 -0
  7. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/adapters/providers.py +0 -17
  8. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/contracts/__init__.py +2 -0
  9. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/contracts/read_models.py +53 -0
  10. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/cost.py +20 -18
  11. witdem_analytics-0.2.2/src/witdem/analytics/operations.py +695 -0
  12. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/read_model.py +33 -10
  13. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/repository/analytics_repository.py +1207 -113
  14. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/repository/sql_loader.py +2 -0
  15. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/runtime.py +6 -16
  16. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/schema/analytics_tables.sql +43 -0
  17. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/serving.py +14 -2
  18. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/api.py +2 -1
  19. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/cli.py +257 -16
  20. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/config.py +12 -9
  21. witdem_analytics-0.2.2/src/witdem/dashboard/app.py +216 -0
  22. witdem_analytics-0.2.2/src/witdem/dashboard/service.py +1038 -0
  23. witdem_analytics-0.2.2/src/witdem/dashboard/static/assets/echarts-runtime-eFwAMB1Z.js +19 -0
  24. witdem_analytics-0.2.2/src/witdem/dashboard/static/assets/index-B2TO5dg7.css +1 -0
  25. witdem_analytics-0.2.2/src/witdem/dashboard/static/assets/index-BBNwEw42.js +56 -0
  26. witdem_analytics-0.2.2/src/witdem/dashboard/static/assets/witdem-mark-purple-B7xvtfh0.png +0 -0
  27. witdem_analytics-0.2.2/src/witdem/dashboard/static/index.html +3 -0
  28. witdem_analytics-0.2.2/src/witdem/elt/adapter_stage.py +246 -0
  29. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/elt/publisher.py +8 -1
  30. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/elt/worker.py +12 -0
  31. witdem_analytics-0.2.2/src/witdem/evaluation_campaigns.py +108 -0
  32. witdem_analytics-0.2.2/src/witdem/ingest/corpus.py +387 -0
  33. witdem_analytics-0.2.2/src/witdem/ingest/live_db.py +1282 -0
  34. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/otlp_http.py +19 -2
  35. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/sdk_ingest.py +10 -2
  36. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/normalizers/genai.py +17 -1
  37. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/normalizers/openinference.py +40 -0
  38. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/normalizers/otel.py +69 -1
  39. witdem_analytics-0.2.2/src/witdem/lifecycle.py +316 -0
  40. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/pricing/update.py +1 -5
  41. witdem_analytics-0.2.2/src/witdem/protocol.py +7 -0
  42. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/retention.py +3 -5
  43. witdem_analytics-0.2.2/src/witdem/update.py +212 -0
  44. witdem_analytics-0.2.2/src/witdem/workflows.py +782 -0
  45. witdem_analytics-0.2.0/.dockerignore +0 -16
  46. witdem_analytics-0.2.0/.env.example +0 -18
  47. witdem_analytics-0.2.0/.gitattributes +0 -1
  48. witdem_analytics-0.2.0/.github/workflows/pricing-catalog.yml +0 -46
  49. witdem_analytics-0.2.0/.github/workflows/release-analytics.yml +0 -32
  50. witdem_analytics-0.2.0/.github/workflows/release-container.yml +0 -86
  51. witdem_analytics-0.2.0/.github/workflows/release-sdk.yml +0 -41
  52. witdem_analytics-0.2.0/.github/workflows/test.yml +0 -105
  53. witdem_analytics-0.2.0/Dockerfile.witdem +0 -27
  54. witdem_analytics-0.2.0/compatibility.json +0 -47
  55. witdem_analytics-0.2.0/deploy/Caddyfile +0 -14
  56. witdem_analytics-0.2.0/deploy/empty-pricing.yaml +0 -4
  57. witdem_analytics-0.2.0/deploy/remote-entrypoint.sh +0 -26
  58. witdem_analytics-0.2.0/docker-compose.dev.yml +0 -27
  59. witdem_analytics-0.2.0/docker-compose.yml +0 -118
  60. witdem_analytics-0.2.0/docs/architecture.md +0 -44
  61. witdem_analytics-0.2.0/docs/assets/duckdb.svg +0 -1
  62. witdem_analytics-0.2.0/docs/assets/duckle.png +0 -0
  63. witdem_analytics-0.2.0/docs/assets/tanstack.svg +0 -23
  64. witdem_analytics-0.2.0/docs/changelog.md +0 -15
  65. witdem_analytics-0.2.0/docs/concepts.md +0 -62
  66. witdem_analytics-0.2.0/docs/configuration.md +0 -333
  67. witdem_analytics-0.2.0/docs/contract-tutorial.md +0 -405
  68. witdem_analytics-0.2.0/docs/contracts/01-boolean-goal.yaml +0 -35
  69. witdem_analytics-0.2.0/docs/contracts/02-classification.yaml +0 -45
  70. witdem_analytics-0.2.0/docs/contracts/03-quality-threshold.yaml +0 -41
  71. witdem_analytics-0.2.0/docs/contracts/04-multiple-assurance-checks.yaml +0 -52
  72. witdem_analytics-0.2.0/docs/contracts/05-routing-and-escalation.yaml +0 -41
  73. witdem_analytics-0.2.0/docs/contracts/06-research-approval-loop.yaml +0 -44
  74. witdem_analytics-0.2.0/docs/contracts/07-rag-grounding.yaml +0 -55
  75. witdem_analytics-0.2.0/docs/contracts/08-diagnostic-metrics.yaml +0 -38
  76. witdem_analytics-0.2.0/docs/contracts/09-chat-hard-and-loose.yaml +0 -61
  77. witdem_analytics-0.2.0/docs/dashboard.md +0 -59
  78. witdem_analytics-0.2.0/docs/development.md +0 -22
  79. witdem_analytics-0.2.0/docs/examples.md +0 -85
  80. witdem_analytics-0.2.0/docs/getting-started.md +0 -141
  81. witdem_analytics-0.2.0/docs/integrations/anthropic.md +0 -62
  82. witdem_analytics-0.2.0/docs/integrations/haystack.md +0 -152
  83. witdem_analytics-0.2.0/docs/integrations/langchain.md +0 -82
  84. witdem_analytics-0.2.0/docs/integrations/langgraph.md +0 -107
  85. witdem_analytics-0.2.0/docs/integrations/litellm.md +0 -67
  86. witdem_analytics-0.2.0/docs/integrations/native-python.md +0 -103
  87. witdem_analytics-0.2.0/docs/integrations/openai-agents.md +0 -46
  88. witdem_analytics-0.2.0/docs/integrations/smolagents.md +0 -42
  89. witdem_analytics-0.2.0/docs/npm-launcher.md +0 -73
  90. witdem_analytics-0.2.0/docs/operations.md +0 -61
  91. witdem_analytics-0.2.0/docs/pricing.md +0 -93
  92. witdem_analytics-0.2.0/docs/providers/anthropic.md +0 -38
  93. witdem_analytics-0.2.0/docs/providers/azure-openai.md +0 -32
  94. witdem_analytics-0.2.0/docs/providers/bedrock.md +0 -30
  95. witdem_analytics-0.2.0/docs/providers/cohere.md +0 -24
  96. witdem_analytics-0.2.0/docs/providers/deepseek.md +0 -31
  97. witdem_analytics-0.2.0/docs/providers/mistral.md +0 -29
  98. witdem_analytics-0.2.0/docs/providers/ollama.md +0 -26
  99. witdem_analytics-0.2.0/docs/providers/openai.md +0 -39
  100. witdem_analytics-0.2.0/docs/providers/openrouter.md +0 -54
  101. witdem_analytics-0.2.0/docs/providers/vertex-ai.md +0 -29
  102. witdem_analytics-0.2.0/docs/providers.md +0 -73
  103. witdem_analytics-0.2.0/docs/sdk.md +0 -176
  104. witdem_analytics-0.2.0/docs/troubleshooting.md +0 -125
  105. witdem_analytics-0.2.0/examples/.env.example +0 -12
  106. witdem_analytics-0.2.0/examples/anthropic/basic_agent/.env.example +0 -3
  107. witdem_analytics-0.2.0/examples/anthropic/basic_agent/.witdem/witdem.yaml +0 -40
  108. witdem_analytics-0.2.0/examples/anthropic/basic_agent/app.py +0 -14
  109. witdem_analytics-0.2.0/examples/anthropic/basic_agent/otel_only.py +0 -31
  110. witdem_analytics-0.2.0/examples/anthropic/basic_agent/pyproject.toml +0 -23
  111. witdem_analytics-0.2.0/examples/anthropic/basic_agent/run.py +0 -90
  112. witdem_analytics-0.2.0/examples/anthropic/basic_agent/sdk_enriched.py +0 -15
  113. witdem_analytics-0.2.0/examples/anthropic/basic_agent/tests/test_example.py +0 -19
  114. witdem_analytics-0.2.0/examples/anthropic/basic_agent/uv.lock +0 -958
  115. witdem_analytics-0.2.0/examples/anthropic/tool_loop/.env.example +0 -3
  116. witdem_analytics-0.2.0/examples/anthropic/tool_loop/.witdem/witdem.yaml +0 -40
  117. witdem_analytics-0.2.0/examples/anthropic/tool_loop/app.py +0 -33
  118. witdem_analytics-0.2.0/examples/anthropic/tool_loop/otel_only.py +0 -25
  119. witdem_analytics-0.2.0/examples/anthropic/tool_loop/pyproject.toml +0 -23
  120. witdem_analytics-0.2.0/examples/anthropic/tool_loop/run.py +0 -144
  121. witdem_analytics-0.2.0/examples/anthropic/tool_loop/sdk_enriched.py +0 -15
  122. witdem_analytics-0.2.0/examples/anthropic/tool_loop/tests/test_example.py +0 -32
  123. witdem_analytics-0.2.0/examples/anthropic/tool_loop/uv.lock +0 -958
  124. witdem_analytics-0.2.0/examples/cloud/azure/.env.example +0 -8
  125. witdem_analytics-0.2.0/examples/cloud/azure/.witdem/witdem.yaml +0 -40
  126. witdem_analytics-0.2.0/examples/cloud/azure/app.py +0 -37
  127. witdem_analytics-0.2.0/examples/cloud/azure/otel_only.py +0 -30
  128. witdem_analytics-0.2.0/examples/cloud/azure/pyproject.toml +0 -23
  129. witdem_analytics-0.2.0/examples/cloud/azure/sdk_enriched.py +0 -19
  130. witdem_analytics-0.2.0/examples/cloud/azure/tests/test_example.py +0 -19
  131. witdem_analytics-0.2.0/examples/cloud/azure/uv.lock +0 -956
  132. witdem_analytics-0.2.0/examples/cloud/bedrock/.env.example +0 -8
  133. witdem_analytics-0.2.0/examples/cloud/bedrock/.witdem/witdem.yaml +0 -40
  134. witdem_analytics-0.2.0/examples/cloud/bedrock/app.py +0 -33
  135. witdem_analytics-0.2.0/examples/cloud/bedrock/otel_only.py +0 -30
  136. witdem_analytics-0.2.0/examples/cloud/bedrock/pyproject.toml +0 -23
  137. witdem_analytics-0.2.0/examples/cloud/bedrock/sdk_enriched.py +0 -19
  138. witdem_analytics-0.2.0/examples/cloud/bedrock/tests/test_example.py +0 -19
  139. witdem_analytics-0.2.0/examples/cloud/bedrock/uv.lock +0 -878
  140. witdem_analytics-0.2.0/examples/cloud/vertex/.env.example +0 -7
  141. witdem_analytics-0.2.0/examples/cloud/vertex/.witdem/witdem.yaml +0 -40
  142. witdem_analytics-0.2.0/examples/cloud/vertex/app.py +0 -33
  143. witdem_analytics-0.2.0/examples/cloud/vertex/otel_only.py +0 -30
  144. witdem_analytics-0.2.0/examples/cloud/vertex/pyproject.toml +0 -23
  145. witdem_analytics-0.2.0/examples/cloud/vertex/sdk_enriched.py +0 -19
  146. witdem_analytics-0.2.0/examples/cloud/vertex/tests/test_example.py +0 -19
  147. witdem_analytics-0.2.0/examples/cloud/vertex/uv.lock +0 -1191
  148. witdem_analytics-0.2.0/examples/haystack/compatibility/runner.py +0 -686
  149. witdem_analytics-0.2.0/examples/haystack/demo/.env.example +0 -3
  150. witdem_analytics-0.2.0/examples/haystack/demo/Dockerfile +0 -38
  151. witdem_analytics-0.2.0/examples/haystack/demo/pyproject.toml +0 -92
  152. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/__init__.py +0 -13
  153. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/api.py +0 -140
  154. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/enrichment.py +0 -82
  155. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/fake_provider.py +0 -91
  156. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/otel_setup.py +0 -206
  157. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/__init__.py +0 -33
  158. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/correction_loop.py +0 -35
  159. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/failure_recovery.py +0 -36
  160. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/nested.py +0 -31
  161. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/simple_success.py +0 -24
  162. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/terminal_failure.py +0 -34
  163. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/scenarios/tool_calling.py +0 -26
  164. witdem_analytics-0.2.0/examples/haystack/demo/src/agent_demo/workflow.py +0 -472
  165. witdem_analytics-0.2.0/examples/haystack/demo/tests/conftest.py +0 -32
  166. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_health.py +0 -13
  167. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_mode_equivalence.py +0 -72
  168. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_no_witdem_sdk_import.py +0 -85
  169. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_scenario_shapes_distinct.py +0 -52
  170. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_scenarios_telemetry_only.py +0 -185
  171. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_sdk_enriched.py +0 -59
  172. witdem_analytics-0.2.0/examples/haystack/demo/tests/test_two_mode_topology_equivalence.py +0 -310
  173. witdem_analytics-0.2.0/examples/haystack/demo/uv.lock +0 -1326
  174. witdem_analytics-0.2.0/examples/haystack/pipeline/.env.example +0 -3
  175. witdem_analytics-0.2.0/examples/haystack/pipeline/.witdem/witdem.yaml +0 -40
  176. witdem_analytics-0.2.0/examples/haystack/pipeline/README.md +0 -31
  177. witdem_analytics-0.2.0/examples/haystack/pipeline/app.py +0 -74
  178. witdem_analytics-0.2.0/examples/haystack/pipeline/otel_only.py +0 -29
  179. witdem_analytics-0.2.0/examples/haystack/pipeline/pyproject.toml +0 -25
  180. witdem_analytics-0.2.0/examples/haystack/pipeline/run.py +0 -83
  181. witdem_analytics-0.2.0/examples/haystack/pipeline/sdk_enriched.py +0 -28
  182. witdem_analytics-0.2.0/examples/haystack/pipeline/tests/test_example.py +0 -19
  183. witdem_analytics-0.2.0/examples/haystack/pipeline/tests/test_parallel_pipeline.py +0 -34
  184. witdem_analytics-0.2.0/examples/haystack/pipeline/uv.lock +0 -1799
  185. witdem_analytics-0.2.0/examples/integrations/fixture_demo.py +0 -38
  186. witdem_analytics-0.2.0/examples/integrations/live_runtime_runs.py +0 -38
  187. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/.env.example +0 -3
  188. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/.witdem/witdem.yaml +0 -40
  189. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/app.py +0 -18
  190. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/otel_only.py +0 -22
  191. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/pyproject.toml +0 -24
  192. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/run.py +0 -73
  193. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/sdk_enriched.py +0 -12
  194. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/tests/test_example.py +0 -19
  195. witdem_analytics-0.2.0/examples/langchain/runnable_pipeline/uv.lock +0 -1968
  196. witdem_analytics-0.2.0/examples/langgraph/state_graph/.env.example +0 -1
  197. witdem_analytics-0.2.0/examples/langgraph/state_graph/.witdem/witdem.yaml +0 -40
  198. witdem_analytics-0.2.0/examples/langgraph/state_graph/app.py +0 -31
  199. witdem_analytics-0.2.0/examples/langgraph/state_graph/otel_only.py +0 -22
  200. witdem_analytics-0.2.0/examples/langgraph/state_graph/pyproject.toml +0 -23
  201. witdem_analytics-0.2.0/examples/langgraph/state_graph/run.py +0 -92
  202. witdem_analytics-0.2.0/examples/langgraph/state_graph/sdk_enriched.py +0 -13
  203. witdem_analytics-0.2.0/examples/langgraph/state_graph/tests/test_example.py +0 -19
  204. witdem_analytics-0.2.0/examples/langgraph/state_graph/uv.lock +0 -1625
  205. witdem_analytics-0.2.0/examples/ollama/basic/.env.example +0 -5
  206. witdem_analytics-0.2.0/examples/ollama/basic/.witdem/witdem.yaml +0 -40
  207. witdem_analytics-0.2.0/examples/ollama/basic/app.py +0 -30
  208. witdem_analytics-0.2.0/examples/ollama/basic/otel_only.py +0 -30
  209. witdem_analytics-0.2.0/examples/ollama/basic/pyproject.toml +0 -23
  210. witdem_analytics-0.2.0/examples/ollama/basic/sdk_enriched.py +0 -19
  211. witdem_analytics-0.2.0/examples/ollama/basic/tests/test_example.py +0 -19
  212. witdem_analytics-0.2.0/examples/ollama/basic/uv.lock +0 -821
  213. witdem_analytics-0.2.0/examples/openai/basic_agent/.env.example +0 -3
  214. witdem_analytics-0.2.0/examples/openai/basic_agent/.witdem/witdem.yaml +0 -40
  215. witdem_analytics-0.2.0/examples/openai/basic_agent/app.py +0 -22
  216. witdem_analytics-0.2.0/examples/openai/basic_agent/otel_only.py +0 -26
  217. witdem_analytics-0.2.0/examples/openai/basic_agent/pyproject.toml +0 -23
  218. witdem_analytics-0.2.0/examples/openai/basic_agent/run.py +0 -79
  219. witdem_analytics-0.2.0/examples/openai/basic_agent/sdk_enriched.py +0 -14
  220. witdem_analytics-0.2.0/examples/openai/basic_agent/tests/test_example.py +0 -19
  221. witdem_analytics-0.2.0/examples/openai/basic_agent/uv.lock +0 -1757
  222. witdem_analytics-0.2.0/examples/openai/multi_agent/.env.example +0 -3
  223. witdem_analytics-0.2.0/examples/openai/multi_agent/.witdem/witdem.yaml +0 -40
  224. witdem_analytics-0.2.0/examples/openai/multi_agent/app.py +0 -21
  225. witdem_analytics-0.2.0/examples/openai/multi_agent/otel_only.py +0 -22
  226. witdem_analytics-0.2.0/examples/openai/multi_agent/pyproject.toml +0 -23
  227. witdem_analytics-0.2.0/examples/openai/multi_agent/run.py +0 -75
  228. witdem_analytics-0.2.0/examples/openai/multi_agent/sdk_enriched.py +0 -12
  229. witdem_analytics-0.2.0/examples/openai/multi_agent/tests/test_example.py +0 -19
  230. witdem_analytics-0.2.0/examples/openai/multi_agent/uv.lock +0 -1757
  231. witdem_analytics-0.2.0/examples/product-factory/.env.example +0 -32
  232. witdem_analytics-0.2.0/examples/product-factory/.witdem/witdem.yaml +0 -52
  233. witdem_analytics-0.2.0/examples/product-factory/cases/borderline-escalation.yaml +0 -20
  234. witdem_analytics-0.2.0/examples/product-factory/cases/clear-non-qualification.yaml +0 -20
  235. witdem_analytics-0.2.0/examples/product-factory/cases/clear-qualification.yaml +0 -20
  236. witdem_analytics-0.2.0/examples/product-factory/cases/recoverable-evidence-gap.yaml +0 -23
  237. witdem_analytics-0.2.0/examples/product-factory/config/domains/product_factory.yaml +0 -95
  238. witdem_analytics-0.2.0/examples/product-factory/pyproject.toml +0 -69
  239. witdem_analytics-0.2.0/examples/product-factory/run.py +0 -10
  240. witdem_analytics-0.2.0/examples/product-factory/scripts/validate_fresh.py +0 -341
  241. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/__init__.py +0 -3
  242. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/analytics/__init__.py +0 -5
  243. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/analytics/semantic.py +0 -214
  244. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/analytics/witdem_sdk_semantics.py +0 -41
  245. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/cli.py +0 -121
  246. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/config.py +0 -129
  247. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/domain/__init__.py +0 -1
  248. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/domain/config.py +0 -217
  249. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/domain/evaluation.py +0 -67
  250. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/domain/models.py +0 -341
  251. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/__init__.py +0 -1
  252. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/cost.py +0 -5
  253. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/harness.py +0 -463
  254. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/haystack_compatibility.py +0 -686
  255. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/inspection.py +0 -157
  256. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/live_heterogeneous.py +0 -960
  257. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/real_company_corpus.py +0 -549
  258. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/report.py +0 -71
  259. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/experiments/synthetic_corpus.py +0 -1799
  260. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/persistence/__init__.py +0 -1
  261. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/persistence/store.py +0 -57
  262. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/providers/__init__.py +0 -1
  263. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/providers/factory.py +0 -189
  264. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/__init__.py +0 -6
  265. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/cases.py +0 -52
  266. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/contracts.py +0 -220
  267. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/gateways.py +0 -532
  268. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/matrix.py +0 -246
  269. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/policy.py +0 -108
  270. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/profiles.py +0 -30
  271. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/prompts.py +0 -16
  272. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runner.py +0 -234
  273. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/__init__.py +0 -18
  274. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/anthropic_messages.py +0 -35
  275. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/base.py +0 -275
  276. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/haystack.py +0 -124
  277. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/langchain.py +0 -76
  278. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/langgraph.py +0 -120
  279. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/reference/runtimes/openai_agents.py +0 -41
  280. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/research/__init__.py +0 -1
  281. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/research/sources.py +0 -595
  282. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/service.py +0 -394
  283. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/telemetry.py +0 -102
  284. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/workflow/__init__.py +0 -1
  285. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/workflow/components.py +0 -1422
  286. witdem_analytics-0.2.0/examples/product-factory/src/product_factory_app/workflow/pipeline.py +0 -134
  287. witdem_analytics-0.2.0/examples/product-factory/tests/conftest.py +0 -27
  288. witdem_analytics-0.2.0/examples/product-factory/tests/e2e/test_research.py +0 -200
  289. witdem_analytics-0.2.0/examples/product-factory/tests/integration/test_inspection.py +0 -70
  290. witdem_analytics-0.2.0/examples/product-factory/tests/integration/test_pipeline.py +0 -22
  291. witdem_analytics-0.2.0/examples/product-factory/tests/integration/test_telemetry.py +0 -58
  292. witdem_analytics-0.2.0/examples/product-factory/tests/reference/test_contract.py +0 -235
  293. witdem_analytics-0.2.0/examples/product-factory/tests/reference/test_policy.py +0 -92
  294. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_components.py +0 -264
  295. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_config.py +0 -24
  296. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_cost.py +0 -39
  297. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_experiment_selection.py +0 -29
  298. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_experiments.py +0 -33
  299. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_live_heterogeneous.py +0 -151
  300. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_models.py +0 -24
  301. witdem_analytics-0.2.0/examples/product-factory/tests/unit/test_sources.py +0 -41
  302. witdem_analytics-0.2.0/examples/product-factory/uv.lock +0 -1886
  303. witdem_analytics-0.2.0/examples/run_live.py +0 -256
  304. witdem_analytics-0.2.0/npm/README.md +0 -19
  305. witdem_analytics-0.2.0/npm/bin/witdem.mjs +0 -8
  306. witdem_analytics-0.2.0/npm/compose.yaml +0 -58
  307. witdem_analytics-0.2.0/npm/package-lock.json +0 -18
  308. witdem_analytics-0.2.0/npm/package.json +0 -36
  309. witdem_analytics-0.2.0/npm/src/cli.mjs +0 -219
  310. witdem_analytics-0.2.0/npm/test/cli.test.mjs +0 -66
  311. witdem_analytics-0.2.0/src/witdem/__init__.py +0 -3
  312. witdem_analytics-0.2.0/src/witdem/dashboard/app.py +0 -129
  313. witdem_analytics-0.2.0/src/witdem/dashboard/service.py +0 -178
  314. witdem_analytics-0.2.0/src/witdem/dashboard/static/assets/advanced-workflow-graph-CAdAoHLC.js +0 -7
  315. witdem_analytics-0.2.0/src/witdem/dashboard/static/assets/index-BCd8FOuZ.js +0 -73
  316. witdem_analytics-0.2.0/src/witdem/dashboard/static/assets/index-CnSnjiif.css +0 -1
  317. witdem_analytics-0.2.0/src/witdem/dashboard/static/index.html +0 -3
  318. witdem_analytics-0.2.0/src/witdem/elt/adapter_stage.py +0 -115
  319. witdem_analytics-0.2.0/src/witdem/ingest/corpus.py +0 -222
  320. witdem_analytics-0.2.0/src/witdem/ingest/live_db.py +0 -633
  321. witdem_analytics-0.2.0/src/witdem/protocol.py +0 -5
  322. witdem_analytics-0.2.0/tests/fixtures/sdk-wire-v1-oldest.json +0 -17
  323. witdem_analytics-0.2.0/tests/test_analytics_repository_architecture.py +0 -118
  324. witdem_analytics-0.2.0/tests/test_auth.py +0 -72
  325. witdem_analytics-0.2.0/tests/test_config_cli.py +0 -48
  326. witdem_analytics-0.2.0/tests/test_dashboard_api.py +0 -211
  327. witdem_analytics-0.2.0/tests/test_elt_adapter_stage.py +0 -233
  328. witdem_analytics-0.2.0/tests/test_elt_worker.py +0 -233
  329. witdem_analytics-0.2.0/tests/test_example_tutorial_contracts.py +0 -87
  330. witdem_analytics-0.2.0/tests/test_generic_execution_correlation.py +0 -21
  331. witdem_analytics-0.2.0/tests/test_import_boundaries.py +0 -61
  332. witdem_analytics-0.2.0/tests/test_ingest_corpus.py +0 -73
  333. witdem_analytics-0.2.0/tests/test_integrations.py +0 -487
  334. witdem_analytics-0.2.0/tests/test_live_store.py +0 -53
  335. witdem_analytics-0.2.0/tests/test_pricing_catalog.py +0 -246
  336. witdem_analytics-0.2.0/tests/test_pricing_update.py +0 -107
  337. witdem_analytics-0.2.0/tests/test_primary_tutorial_contract.py +0 -70
  338. witdem_analytics-0.2.0/tests/test_protocol_compatibility.py +0 -30
  339. witdem_analytics-0.2.0/tests/test_provider_adapters.py +0 -73
  340. witdem_analytics-0.2.0/tests/test_readiness.py +0 -35
  341. witdem_analytics-0.2.0/tests/test_remote_compose.py +0 -43
  342. witdem_analytics-0.2.0/tests/test_repeated_patterns.py +0 -59
  343. witdem_analytics-0.2.0/tests/test_retention.py +0 -157
  344. witdem_analytics-0.2.0/tests/test_runtime_semantic_stages.py +0 -64
  345. witdem_analytics-0.2.0/uv.lock +0 -1592
  346. witdem_analytics-0.2.0/web/index.html +0 -1
  347. witdem_analytics-0.2.0/web/package-lock.json +0 -5313
  348. witdem_analytics-0.2.0/web/package.json +0 -38
  349. witdem_analytics-0.2.0/web/postcss.config.js +0 -1
  350. witdem_analytics-0.2.0/web/src/advanced-workflow-graph.test.ts +0 -173
  351. witdem_analytics-0.2.0/web/src/advanced-workflow-graph.tsx +0 -1065
  352. witdem_analytics-0.2.0/web/src/api.ts +0 -365
  353. witdem_analytics-0.2.0/web/src/components.tsx +0 -1102
  354. witdem_analytics-0.2.0/web/src/main.tsx +0 -15
  355. witdem_analytics-0.2.0/web/src/outcome-colors.test.ts +0 -57
  356. witdem_analytics-0.2.0/web/src/outcome-colors.ts +0 -49
  357. witdem_analytics-0.2.0/web/src/pages.test.ts +0 -27
  358. witdem_analytics-0.2.0/web/src/pages.tsx +0 -1354
  359. witdem_analytics-0.2.0/web/src/styles.css +0 -18
  360. witdem_analytics-0.2.0/web/tailwind.config.ts +0 -9
  361. witdem_analytics-0.2.0/web/tsconfig.app.json +0 -9
  362. witdem_analytics-0.2.0/web/tsconfig.json +0 -4
  363. witdem_analytics-0.2.0/web/tsconfig.node.json +0 -11
  364. witdem_analytics-0.2.0/web/vite.config.ts +0 -8
  365. witdem_analytics-0.2.0/witdem-sdk/pyproject.toml +0 -84
  366. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/__init__.py +0 -185
  367. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/__main__.py +0 -3
  368. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_config.py +0 -38
  369. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_contract.py +0 -1161
  370. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_correlation.py +0 -64
  371. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_errors.py +0 -15
  372. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_payload.py +0 -80
  373. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_protocol.py +0 -7
  374. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_telemetry.py +0 -879
  375. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/_transport.py +0 -164
  376. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/cli.py +0 -101
  377. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/__init__.py +0 -3
  378. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/_common.py +0 -73
  379. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/anthropic.py +0 -163
  380. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/claude_agent.py +0 -135
  381. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/generic.py +0 -145
  382. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/haystack.py +0 -557
  383. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/langchain.py +0 -414
  384. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/langgraph.py +0 -221
  385. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/litellm.py +0 -396
  386. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/openai_agents.py +0 -281
  387. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/openrouter.py +0 -368
  388. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/integrations/smolagents.py +0 -145
  389. witdem_analytics-0.2.0/witdem-sdk/src/witdem_sdk/py.typed +0 -0
  390. witdem_analytics-0.2.0/witdem-sdk/tests/conftest.py +0 -69
  391. witdem_analytics-0.2.0/witdem-sdk/tests/test_contract_tutorial.py +0 -42
  392. witdem_analytics-0.2.0/witdem-sdk/tests/test_contracts.py +0 -696
  393. witdem_analytics-0.2.0/witdem-sdk/tests/test_correlation.py +0 -95
  394. witdem_analytics-0.2.0/witdem-sdk/tests/test_gateway_integrations.py +0 -241
  395. witdem_analytics-0.2.0/witdem-sdk/tests/test_haystack_observation.py +0 -194
  396. witdem_analytics-0.2.0/witdem-sdk/tests/test_high_level_integrations.py +0 -412
  397. witdem_analytics-0.2.0/witdem-sdk/tests/test_langgraph_instrumentation.py +0 -161
  398. witdem_analytics-0.2.0/witdem-sdk/tests/test_optional_integrations.py +0 -301
  399. witdem_analytics-0.2.0/witdem-sdk/tests/test_public_api.py +0 -253
  400. witdem_analytics-0.2.0/witdem-sdk/tests/test_telemetry.py +0 -282
  401. witdem_analytics-0.2.0/witdem-sdk/tests/test_transport.py +0 -181
  402. witdem_analytics-0.2.0/witdem-sdk/uv.lock +0 -4773
  403. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/adapters/__init__.py +0 -0
  404. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/adapters/base.py +0 -0
  405. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/adapters/haystack_adapter.py +0 -0
  406. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/adapters/registry.py +0 -0
  407. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/__init__.py +0 -0
  408. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/core.py +0 -0
  409. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/derived.py +0 -0
  410. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/identity.py +0 -0
  411. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/entities/models.sql +0 -0
  412. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/entities/provider_values.sql +0 -0
  413. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/entities/providers.sql +0 -0
  414. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/business_outcome.sql +0 -0
  415. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/evaluations_for_execution.sql +0 -0
  416. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/events_for_execution.sql +0 -0
  417. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/execution_detail.sql +0 -0
  418. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/execution_population.sql +0 -0
  419. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/execution_timeline.sql +0 -0
  420. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/links_for_execution.sql +0 -0
  421. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/outcomes_for_execution.sql +0 -0
  422. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/product_goal.sql +0 -0
  423. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/execution/runtime_outcome.sql +0 -0
  424. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/failures/failure_patterns.sql +0 -0
  425. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/overview/cost_summary.sql +0 -0
  426. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/overview/execution_health.sql +0 -0
  427. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/overview/performance.sql +0 -0
  428. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/overview/product_goals.sql +0 -0
  429. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/overview/success_metrics.sql +0 -0
  430. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/paths/loops.sql +0 -0
  431. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/paths/path_frequency.sql +0 -0
  432. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/capabilities.sql +0 -0
  433. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/evaluations_count.sql +0 -0
  434. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/events_capabilities.sql +0 -0
  435. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_completed.sql +0 -0
  436. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_end_date.sql +0 -0
  437. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_failed.sql +0 -0
  438. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_has_failure.sql +0 -0
  439. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_provider.sql +0 -0
  440. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_running.sql +0 -0
  441. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/filter_start_date.sql +0 -0
  442. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/metadata.sql +0 -0
  443. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/queries/shared/outcomes_count.sql +0 -0
  444. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/repository/__init__.py +0 -0
  445. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/repository/backend.py +0 -0
  446. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/repository/state.py +0 -0
  447. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/analytics/schema.py +0 -0
  448. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/auth.py +0 -0
  449. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/dashboard/__init__.py +0 -0
  450. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/elt/__init__.py +0 -0
  451. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/elt/workspace/pipelines/normalize.pipeline.json +0 -0
  452. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/__init__.py +0 -0
  453. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/correlate.py +0 -0
  454. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/raw_store.py +0 -0
  455. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/ingest/sdk_store.py +0 -0
  456. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/__init__.py +0 -0
  457. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/__init__.py +0 -0
  458. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/claude.py +0 -0
  459. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/langchain.py +0 -0
  460. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/langgraph.py +0 -0
  461. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/openai_agents.py +0 -0
  462. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/adapters/otel.py +0 -0
  463. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/mapping.py +0 -0
  464. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/models/__init__.py +0 -0
  465. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/models/normalized_operation.py +0 -0
  466. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/models/normalized_span.py +0 -0
  467. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/integrations/normalizers/__init__.py +0 -0
  468. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/pricing/__init__.py +0 -0
  469. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/pricing/catalog.yaml +0 -0
  470. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/pricing/sources.yaml +0 -0
  471. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/py.typed +0 -0
  472. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/telemetry/__init__.py +0 -0
  473. {witdem_analytics-0.2.0 → witdem_analytics-0.2.2}/src/witdem/telemetry/otel.py +0 -0
@@ -25,3 +25,6 @@ web/tailwind.config.d.ts
25
25
 
26
26
  # Locally generated live-matrix reports
27
27
  examples/product-factory/reports/
28
+
29
+ # Local screenshots and investigation output
30
+ /artifacts/
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,8 +1,15 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: witdem-analytics
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Runtime analytics for agent applications using OpenTelemetry, with optional business semantics through the Witdem SDK.
5
- Requires-Python: >=3.10
5
+ License-File: LICENSE
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.10
8
+ Classifier: Programming Language :: Python :: 3.11
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Programming Language :: Python :: 3.13
11
+ Requires-Python: <3.14,>=3.10
12
+ Requires-Dist: cryptography<51,>=50
6
13
  Requires-Dist: duckdb<2,>=1.2
7
14
  Requires-Dist: duckle==0.5.11
8
15
  Requires-Dist: fastapi<1,>=0.115
@@ -20,41 +27,92 @@ Description-Content-Type: text/markdown
20
27
 
21
28
  <div align="center">
22
29
 
30
+ <img src="docs/assets/witdem-banner.png" alt="Witdem AI — Understand how your AI system actually behaves" width="100%">
31
+
23
32
  # Witdem
24
33
 
25
34
  **Analytics for AI agents and multi-step AI applications.**
26
35
 
27
36
  Tracing tells you what executed. Witdem connects those executions to application outcomes: which paths ran, what they cost, where they failed, and whether they achieved the product goal you defined.
28
37
 
29
- [Get started](docs/getting-started.md) · [YAML contracts](docs/contract-tutorial.md) · [Haystack](docs/integrations/haystack.md) · [Frameworks](#integration-status) · [Providers](docs/providers.md) · [Troubleshooting](docs/troubleshooting.md)
38
+ [![Tests](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml/badge.svg)](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml)
39
+ [![SDK on PyPI](https://img.shields.io/pypi/v/witdem-sdk?label=witdem-sdk)](https://pypi.org/project/witdem-sdk/)
40
+ [![Analytics on PyPI](https://img.shields.io/pypi/v/witdem-analytics?label=witdem-analytics)](https://pypi.org/project/witdem-analytics/)
41
+ [![npm](https://img.shields.io/npm/v/witdem/latest?label=npx%20witdem)](https://www.npmjs.com/package/witdem)
42
+ [![Python](https://img.shields.io/badge/Python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml)
43
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
44
+
45
+ [Get started](docs/getting-started.md) · [YAML contracts](docs/contract-tutorial.md) · [Frameworks](#integration-status) · [Providers](docs/providers.md) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md)
30
46
 
31
47
  </div>
32
48
 
49
+ ## See Witdem in action
50
+
51
+ From one-line setup and two-line instrumentation to a measured run, its
52
+ execution graph, business outcome, cost, and contract evidence.
53
+
54
+ <p align="center">
55
+ <a href="https://cdn.jsdelivr.net/gh/ebrahimisoheil/witdem-oss@37e335d/docs/assets/witdem-demo.mp4">
56
+ <img src="docs/assets/witdem-demo-poster.jpg" alt="Watch the Witdem installation and analysis walkthrough" width="100%">
57
+ </a>
58
+ <br>
59
+ <a href="https://cdn.jsdelivr.net/gh/ebrahimisoheil/witdem-oss@37e335d/docs/assets/witdem-demo.mp4"><strong>▶ Watch the 1:48 installation-to-analysis walkthrough</strong></a>
60
+ </p>
61
+
33
62
  ## First run
34
63
 
35
- Start the local receiver, ELT worker, and dashboard:
64
+ Choose one backend launcher. Applications use `witdem-sdk` with either path.
65
+
66
+ Docker-managed (requires Docker Compose):
67
+
68
+ ```bash
69
+ npx -y witdem@latest up
70
+ ```
71
+
72
+ Native Python (requires Python and [pipx](https://pipx.pypa.io/)):
73
+
74
+ ```bash
75
+ pipx install witdem-analytics
76
+ witdem up
77
+ ```
78
+
79
+ Both start the receiver, ELT worker, and dashboard, wait for health, open
80
+ `http://localhost:8501`, and preserve data across `down` and upgrades. Their
81
+ lifecycle vocabulary is the same:
36
82
 
37
83
  ```bash
38
- npx -y witdem@0.2.0 up
84
+ npx -y witdem@latest status # Docker path
85
+ witdem status # pipx path
86
+ npx -y witdem@latest logs receiver
87
+ witdem down
39
88
  ```
40
89
 
41
- That pulls the version-matched container, starts all three services, waits for
42
- them to become healthy, and opens `http://localhost:8501`. Docker with Compose
43
- is the only prerequisite. Data persists across `down` and package upgrades.
90
+ Check releases and compatibility without changing packages or data:
44
91
 
45
92
  ```bash
46
- npx -y witdem@0.2.0 status
47
- npx -y witdem@0.2.0 logs
48
- npx -y witdem@0.2.0 down
93
+ npx -y witdem@latest update --check
94
+ witdem update --check
49
95
  ```
50
96
 
51
- Add the SDK to an existing Haystack 3 project from the checkout:
97
+ See the [upgrade guide](docs/upgrade.md) for exact NPX, pipx, and SDK commands.
98
+
99
+ Add the SDK to an existing Haystack 3 project:
52
100
 
53
101
  ```bash
54
- python -m pip install -e "/path/to/Witdem-Analytics/witdem-sdk[haystack]"
102
+ python -m pip install "witdem-sdk[haystack]"
55
103
  export WITDEM_ENDPOINT=http://localhost:4318
56
104
  ```
57
105
 
106
+ From the application project, create the YAML contract and then edit it to
107
+ describe that application's result:
108
+
109
+ ```bash
110
+ witdem-sdk init --runtime haystack
111
+ ```
112
+
113
+ This creates `.witdem/witdem.yaml`. It does not inspect or rewrite application
114
+ code, and it will not replace an existing contract unless `--force` is used.
115
+
58
116
  Wrap the pipeline once. Its existing `run`, `run_async`, and `run_async_generator` calls stay unchanged:
59
117
 
60
118
  ```python
@@ -91,8 +149,6 @@ contracts:
91
149
 
92
150
  Run the application normally. The execution and its business result appear at **http://localhost:8501**.
93
151
 
94
- > `witdem-sdk` 0.2.0 is not yet published to the package index. The source-checkout command above is the verified installation path for this release. Publishing the package is the remaining installation launch blocker.
95
-
96
152
  ## What you get
97
153
 
98
154
  - Actual execution paths, branches, loops, retries, tools, model calls, and failures
@@ -114,6 +170,7 @@ Statuses reflect current implementation and test evidence, not roadmap intent.
114
170
  | [LangGraph](docs/integrations/langgraph.md) | **Beta** | Compiled graphs, nodes, tools, models, errors, sync/async invocation and streaming |
115
171
  | [LangChain](docs/integrations/langchain.md) | **Beta** | Runnables, chains, chat/LLM calls, tools, retrievers, sync/async invocation and streaming |
116
172
  | [Native Python](docs/integrations/native-python.md) | **Supported** | Execution, operation, model, tool, decision, evaluation, outcome, and metric primitives |
173
+ | [Direct OpenAI SDK](docs/integrations/openai.md) | **Beta** | Responses, Chat Completions, embeddings, sync/async and streaming calls, usage, tool-call IDs |
117
174
  | [OpenAI Agents](docs/integrations/openai-agents.md) | **Beta** | Native trace processor, agents, generations, tools, handoffs, sync/async workloads |
118
175
  | [Anthropic Messages and Claude Agent SDK](docs/integrations/anthropic.md) | **Beta** | Messages calls, usage, tool-use IDs, multi-turn workloads, Claude Agent message streams |
119
176
  | [Hugging Face smolagents](docs/integrations/smolagents.md) | **Beta** | Official OpenInference agent, step, model, and tool spans; sync and streaming execution |
@@ -122,6 +179,8 @@ Statuses reflect current implementation and test evidence, not roadmap intent.
122
179
  | Generic provider calls | **Experimental** | Sync/async callable wrapper with explicit provider/model and observed result metadata |
123
180
  | Standard OTLP/HTTP | **Supported** | Generic OpenTelemetry, OTel GenAI, and OpenInference evidence |
124
181
 
182
+ Witdem also normalizes retrieval, reranking, search, embeddings, OCR, tools, evaluations, image, audio, video, and extension operations without inferring vendors. See [AI operations and evaluations](docs/ai-operations.md).
183
+
125
184
  See [`compatibility.json`](compatibility.json) for machine-readable version constraints and [Providers](docs/providers.md) for the difference between native, framework-observed, and generic support.
126
185
 
127
186
  ## Providers
@@ -157,9 +216,8 @@ The runnable [Haystack parallel pipeline](examples/haystack/pipeline/README.md)
157
216
 
158
217
  ## Self-hosting
159
218
 
160
- The npm launcher is the recommended local backend path. It is deliberately a
161
- small, dependency-free Docker launcher rather than a second implementation of
162
- Witdem. It never runs an npm `postinstall` script.
219
+ NPX is the Docker-managed path; pipx is a genuinely native, Node-free and
220
+ Docker-free path. The npm package never runs a `postinstall` script.
163
221
 
164
222
  | Service | Address | Purpose |
165
223
  | --- | --- | --- |
@@ -168,21 +226,14 @@ Witdem. It never runs an npm `postinstall` script.
168
226
  | ELT worker | internal | Duckle transformation into dashboard-ready DuckDB tables |
169
227
 
170
228
  ```bash
171
- npx -y witdem@0.2.0 status
229
+ npx -y witdem@latest status
172
230
  curl http://localhost:4318/readiness
173
231
  curl http://localhost:8501/health
174
232
  ```
175
233
 
176
- For source development, clone the repository and run `docker compose up -d`.
177
- See [Running Witdem with npx](docs/npm-launcher.md) for ports, lifecycle, image
178
- pinning, and troubleshooting.
179
-
180
- The Python-only development path is also available:
181
-
182
- ```bash
183
- uv sync
184
- uv run witdem dev --open
185
- ```
234
+ See [Operations](docs/operations.md) for lifecycle, ports, logs, data,
235
+ backup/recovery, and [Development](docs/development.md) only when contributing
236
+ to Witdem itself.
186
237
 
187
238
  ## Documentation
188
239
 
@@ -191,6 +242,7 @@ uv run witdem dev --open
191
242
  - [Concepts: tracing and business meaning](docs/concepts.md)
192
243
  - [Tutorial: defining a YAML contract](docs/contract-tutorial.md)
193
244
  - [YAML configuration](docs/configuration.md)
245
+ - [Workflow definitions, compilation, and replay](docs/workflow-replay.md)
194
246
  - [Haystack](docs/integrations/haystack.md)
195
247
  - [LangGraph](docs/integrations/langgraph.md)
196
248
  - [LangChain](docs/integrations/langchain.md)
@@ -203,8 +255,26 @@ uv run witdem dev --open
203
255
  - [Troubleshooting](docs/troubleshooting.md)
204
256
  - [Examples](docs/examples.md)
205
257
  - [Operations](docs/operations.md)
258
+ - [CLI reference](docs/cli-reference.md)
259
+ - [Upgrade and compatibility](docs/upgrade.md)
260
+ - [Architecture and data flow](docs/architecture.md)
261
+ - [Release notes](docs/changelog.md)
262
+ - [Performance and lifecycle implementation report](docs/implementation-report.md)
206
263
  - [Development and contributing](docs/development.md)
207
264
 
265
+ ## Community
266
+
267
+ Witdem is built in the open. Bug reports, integration examples, documentation
268
+ improvements, and focused code contributions are welcome.
269
+
270
+ - Read [Contributing](CONTRIBUTING.md) before opening a pull request.
271
+ - Participate under the [Code of Conduct](CODE_OF_CONDUCT.md).
272
+ - Report vulnerabilities privately according to the [Security policy](SECURITY.md).
273
+
274
+ ## License
275
+
276
+ Witdem is licensed under the [Apache License 2.0](LICENSE).
277
+
208
278
  ## Built with
209
279
 
210
280
  <table>
@@ -1,40 +1,91 @@
1
1
  <div align="center">
2
2
 
3
+ <img src="docs/assets/witdem-banner.png" alt="Witdem AI — Understand how your AI system actually behaves" width="100%">
4
+
3
5
  # Witdem
4
6
 
5
7
  **Analytics for AI agents and multi-step AI applications.**
6
8
 
7
9
  Tracing tells you what executed. Witdem connects those executions to application outcomes: which paths ran, what they cost, where they failed, and whether they achieved the product goal you defined.
8
10
 
9
- [Get started](docs/getting-started.md) · [YAML contracts](docs/contract-tutorial.md) · [Haystack](docs/integrations/haystack.md) · [Frameworks](#integration-status) · [Providers](docs/providers.md) · [Troubleshooting](docs/troubleshooting.md)
11
+ [![Tests](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml/badge.svg)](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml)
12
+ [![SDK on PyPI](https://img.shields.io/pypi/v/witdem-sdk?label=witdem-sdk)](https://pypi.org/project/witdem-sdk/)
13
+ [![Analytics on PyPI](https://img.shields.io/pypi/v/witdem-analytics?label=witdem-analytics)](https://pypi.org/project/witdem-analytics/)
14
+ [![npm](https://img.shields.io/npm/v/witdem/latest?label=npx%20witdem)](https://www.npmjs.com/package/witdem)
15
+ [![Python](https://img.shields.io/badge/Python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)](https://github.com/ebrahimisoheil/witdem-oss/actions/workflows/test.yml)
16
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
17
+
18
+ [Get started](docs/getting-started.md) · [YAML contracts](docs/contract-tutorial.md) · [Frameworks](#integration-status) · [Providers](docs/providers.md) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md)
10
19
 
11
20
  </div>
12
21
 
22
+ ## See Witdem in action
23
+
24
+ From one-line setup and two-line instrumentation to a measured run, its
25
+ execution graph, business outcome, cost, and contract evidence.
26
+
27
+ <p align="center">
28
+ <a href="https://cdn.jsdelivr.net/gh/ebrahimisoheil/witdem-oss@37e335d/docs/assets/witdem-demo.mp4">
29
+ <img src="docs/assets/witdem-demo-poster.jpg" alt="Watch the Witdem installation and analysis walkthrough" width="100%">
30
+ </a>
31
+ <br>
32
+ <a href="https://cdn.jsdelivr.net/gh/ebrahimisoheil/witdem-oss@37e335d/docs/assets/witdem-demo.mp4"><strong>▶ Watch the 1:48 installation-to-analysis walkthrough</strong></a>
33
+ </p>
34
+
13
35
  ## First run
14
36
 
15
- Start the local receiver, ELT worker, and dashboard:
37
+ Choose one backend launcher. Applications use `witdem-sdk` with either path.
38
+
39
+ Docker-managed (requires Docker Compose):
40
+
41
+ ```bash
42
+ npx -y witdem@latest up
43
+ ```
44
+
45
+ Native Python (requires Python and [pipx](https://pipx.pypa.io/)):
46
+
47
+ ```bash
48
+ pipx install witdem-analytics
49
+ witdem up
50
+ ```
51
+
52
+ Both start the receiver, ELT worker, and dashboard, wait for health, open
53
+ `http://localhost:8501`, and preserve data across `down` and upgrades. Their
54
+ lifecycle vocabulary is the same:
16
55
 
17
56
  ```bash
18
- npx -y witdem@0.2.0 up
57
+ npx -y witdem@latest status # Docker path
58
+ witdem status # pipx path
59
+ npx -y witdem@latest logs receiver
60
+ witdem down
19
61
  ```
20
62
 
21
- That pulls the version-matched container, starts all three services, waits for
22
- them to become healthy, and opens `http://localhost:8501`. Docker with Compose
23
- is the only prerequisite. Data persists across `down` and package upgrades.
63
+ Check releases and compatibility without changing packages or data:
24
64
 
25
65
  ```bash
26
- npx -y witdem@0.2.0 status
27
- npx -y witdem@0.2.0 logs
28
- npx -y witdem@0.2.0 down
66
+ npx -y witdem@latest update --check
67
+ witdem update --check
29
68
  ```
30
69
 
31
- Add the SDK to an existing Haystack 3 project from the checkout:
70
+ See the [upgrade guide](docs/upgrade.md) for exact NPX, pipx, and SDK commands.
71
+
72
+ Add the SDK to an existing Haystack 3 project:
32
73
 
33
74
  ```bash
34
- python -m pip install -e "/path/to/Witdem-Analytics/witdem-sdk[haystack]"
75
+ python -m pip install "witdem-sdk[haystack]"
35
76
  export WITDEM_ENDPOINT=http://localhost:4318
36
77
  ```
37
78
 
79
+ From the application project, create the YAML contract and then edit it to
80
+ describe that application's result:
81
+
82
+ ```bash
83
+ witdem-sdk init --runtime haystack
84
+ ```
85
+
86
+ This creates `.witdem/witdem.yaml`. It does not inspect or rewrite application
87
+ code, and it will not replace an existing contract unless `--force` is used.
88
+
38
89
  Wrap the pipeline once. Its existing `run`, `run_async`, and `run_async_generator` calls stay unchanged:
39
90
 
40
91
  ```python
@@ -71,8 +122,6 @@ contracts:
71
122
 
72
123
  Run the application normally. The execution and its business result appear at **http://localhost:8501**.
73
124
 
74
- > `witdem-sdk` 0.2.0 is not yet published to the package index. The source-checkout command above is the verified installation path for this release. Publishing the package is the remaining installation launch blocker.
75
-
76
125
  ## What you get
77
126
 
78
127
  - Actual execution paths, branches, loops, retries, tools, model calls, and failures
@@ -94,6 +143,7 @@ Statuses reflect current implementation and test evidence, not roadmap intent.
94
143
  | [LangGraph](docs/integrations/langgraph.md) | **Beta** | Compiled graphs, nodes, tools, models, errors, sync/async invocation and streaming |
95
144
  | [LangChain](docs/integrations/langchain.md) | **Beta** | Runnables, chains, chat/LLM calls, tools, retrievers, sync/async invocation and streaming |
96
145
  | [Native Python](docs/integrations/native-python.md) | **Supported** | Execution, operation, model, tool, decision, evaluation, outcome, and metric primitives |
146
+ | [Direct OpenAI SDK](docs/integrations/openai.md) | **Beta** | Responses, Chat Completions, embeddings, sync/async and streaming calls, usage, tool-call IDs |
97
147
  | [OpenAI Agents](docs/integrations/openai-agents.md) | **Beta** | Native trace processor, agents, generations, tools, handoffs, sync/async workloads |
98
148
  | [Anthropic Messages and Claude Agent SDK](docs/integrations/anthropic.md) | **Beta** | Messages calls, usage, tool-use IDs, multi-turn workloads, Claude Agent message streams |
99
149
  | [Hugging Face smolagents](docs/integrations/smolagents.md) | **Beta** | Official OpenInference agent, step, model, and tool spans; sync and streaming execution |
@@ -102,6 +152,8 @@ Statuses reflect current implementation and test evidence, not roadmap intent.
102
152
  | Generic provider calls | **Experimental** | Sync/async callable wrapper with explicit provider/model and observed result metadata |
103
153
  | Standard OTLP/HTTP | **Supported** | Generic OpenTelemetry, OTel GenAI, and OpenInference evidence |
104
154
 
155
+ Witdem also normalizes retrieval, reranking, search, embeddings, OCR, tools, evaluations, image, audio, video, and extension operations without inferring vendors. See [AI operations and evaluations](docs/ai-operations.md).
156
+
105
157
  See [`compatibility.json`](compatibility.json) for machine-readable version constraints and [Providers](docs/providers.md) for the difference between native, framework-observed, and generic support.
106
158
 
107
159
  ## Providers
@@ -137,9 +189,8 @@ The runnable [Haystack parallel pipeline](examples/haystack/pipeline/README.md)
137
189
 
138
190
  ## Self-hosting
139
191
 
140
- The npm launcher is the recommended local backend path. It is deliberately a
141
- small, dependency-free Docker launcher rather than a second implementation of
142
- Witdem. It never runs an npm `postinstall` script.
192
+ NPX is the Docker-managed path; pipx is a genuinely native, Node-free and
193
+ Docker-free path. The npm package never runs a `postinstall` script.
143
194
 
144
195
  | Service | Address | Purpose |
145
196
  | --- | --- | --- |
@@ -148,21 +199,14 @@ Witdem. It never runs an npm `postinstall` script.
148
199
  | ELT worker | internal | Duckle transformation into dashboard-ready DuckDB tables |
149
200
 
150
201
  ```bash
151
- npx -y witdem@0.2.0 status
202
+ npx -y witdem@latest status
152
203
  curl http://localhost:4318/readiness
153
204
  curl http://localhost:8501/health
154
205
  ```
155
206
 
156
- For source development, clone the repository and run `docker compose up -d`.
157
- See [Running Witdem with npx](docs/npm-launcher.md) for ports, lifecycle, image
158
- pinning, and troubleshooting.
159
-
160
- The Python-only development path is also available:
161
-
162
- ```bash
163
- uv sync
164
- uv run witdem dev --open
165
- ```
207
+ See [Operations](docs/operations.md) for lifecycle, ports, logs, data,
208
+ backup/recovery, and [Development](docs/development.md) only when contributing
209
+ to Witdem itself.
166
210
 
167
211
  ## Documentation
168
212
 
@@ -171,6 +215,7 @@ uv run witdem dev --open
171
215
  - [Concepts: tracing and business meaning](docs/concepts.md)
172
216
  - [Tutorial: defining a YAML contract](docs/contract-tutorial.md)
173
217
  - [YAML configuration](docs/configuration.md)
218
+ - [Workflow definitions, compilation, and replay](docs/workflow-replay.md)
174
219
  - [Haystack](docs/integrations/haystack.md)
175
220
  - [LangGraph](docs/integrations/langgraph.md)
176
221
  - [LangChain](docs/integrations/langchain.md)
@@ -183,8 +228,26 @@ uv run witdem dev --open
183
228
  - [Troubleshooting](docs/troubleshooting.md)
184
229
  - [Examples](docs/examples.md)
185
230
  - [Operations](docs/operations.md)
231
+ - [CLI reference](docs/cli-reference.md)
232
+ - [Upgrade and compatibility](docs/upgrade.md)
233
+ - [Architecture and data flow](docs/architecture.md)
234
+ - [Release notes](docs/changelog.md)
235
+ - [Performance and lifecycle implementation report](docs/implementation-report.md)
186
236
  - [Development and contributing](docs/development.md)
187
237
 
238
+ ## Community
239
+
240
+ Witdem is built in the open. Bug reports, integration examples, documentation
241
+ improvements, and focused code contributions are welcome.
242
+
243
+ - Read [Contributing](CONTRIBUTING.md) before opening a pull request.
244
+ - Participate under the [Code of Conduct](CODE_OF_CONDUCT.md).
245
+ - Report vulnerabilities privately according to the [Security policy](SECURITY.md).
246
+
247
+ ## License
248
+
249
+ Witdem is licensed under the [Apache License 2.0](LICENSE).
250
+
188
251
  ## Built with
189
252
 
190
253
  <table>