amund 0.9.1__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 (163) hide show
  1. amund-0.9.1/.gitignore +118 -0
  2. amund-0.9.1/CHANGELOG.md +716 -0
  3. amund-0.9.1/LICENSE +21 -0
  4. amund-0.9.1/PKG-INFO +535 -0
  5. amund-0.9.1/README.md +474 -0
  6. amund-0.9.1/benchmarks/infra_capture_overhead.py +345 -0
  7. amund-0.9.1/dogfood-published/README.md +38 -0
  8. amund-0.9.1/dogfood-published/run.py +147 -0
  9. amund-0.9.1/package.json +12 -0
  10. amund-0.9.1/poetry.lock +2909 -0
  11. amund-0.9.1/pyproject.toml +115 -0
  12. amund-0.9.1/src/amund/__init__.py +845 -0
  13. amund-0.9.1/src/amund/_internal/__init__.py +0 -0
  14. amund-0.9.1/src/amund/_internal/active_framework.py +95 -0
  15. amund-0.9.1/src/amund/_internal/agent_name.py +131 -0
  16. amund-0.9.1/src/amund/_internal/attribution.py +190 -0
  17. amund-0.9.1/src/amund/_internal/auto_detect.py +346 -0
  18. amund-0.9.1/src/amund/_internal/diagnostics.py +847 -0
  19. amund-0.9.1/src/amund/_internal/env.py +345 -0
  20. amund-0.9.1/src/amund/_internal/errors.py +67 -0
  21. amund-0.9.1/src/amund/_internal/harness.py +293 -0
  22. amund-0.9.1/src/amund/_internal/json_default.py +94 -0
  23. amund-0.9.1/src/amund/_internal/redaction.py +429 -0
  24. amund-0.9.1/src/amund/_internal/span_ids.py +22 -0
  25. amund-0.9.1/src/amund/_version.py +20 -0
  26. amund-0.9.1/src/amund/adapters/__init__.py +30 -0
  27. amund-0.9.1/src/amund/adapters/_retrieval.py +90 -0
  28. amund-0.9.1/src/amund/adapters/anthropic.py +1919 -0
  29. amund-0.9.1/src/amund/adapters/base.py +142 -0
  30. amund-0.9.1/src/amund/adapters/claude_agent_sdk.py +1127 -0
  31. amund-0.9.1/src/amund/adapters/google_genai.py +767 -0
  32. amund-0.9.1/src/amund/adapters/langchain.py +1144 -0
  33. amund-0.9.1/src/amund/adapters/langgraph.py +1876 -0
  34. amund-0.9.1/src/amund/adapters/openai.py +1720 -0
  35. amund-0.9.1/src/amund/adapters/openai_agents.py +1237 -0
  36. amund-0.9.1/src/amund/adapters/strands.py +343 -0
  37. amund-0.9.1/src/amund/client.py +395 -0
  38. amund-0.9.1/src/amund/context/__init__.py +1 -0
  39. amund-0.9.1/src/amund/context/decomposer.py +345 -0
  40. amund-0.9.1/src/amund/data/__init__.py +1 -0
  41. amund-0.9.1/src/amund/data/compat.py +50 -0
  42. amund-0.9.1/src/amund/data/compat_manifest.json +145 -0
  43. amund-0.9.1/src/amund/data/pricing.json +374 -0
  44. amund-0.9.1/src/amund/infra_capture.py +876 -0
  45. amund-0.9.1/src/amund/instrumentation/__init__.py +0 -0
  46. amund-0.9.1/src/amund/instrumentation/http_classifier.py +53 -0
  47. amund-0.9.1/src/amund/instrumentation/imports.py +168 -0
  48. amund-0.9.1/src/amund/logging.py +308 -0
  49. amund-0.9.1/src/amund/otel_provider.py +1140 -0
  50. amund-0.9.1/src/amund/pricing.py +173 -0
  51. amund-0.9.1/src/amund/prompts.py +229 -0
  52. amund-0.9.1/src/amund/propagation.py +203 -0
  53. amund-0.9.1/src/amund/py.typed +0 -0
  54. amund-0.9.1/src/amund/queue.py +65 -0
  55. amund-0.9.1/src/amund/queue_capture.py +447 -0
  56. amund-0.9.1/src/amund/record.py +42 -0
  57. amund-0.9.1/src/amund/spans.py +109 -0
  58. amund-0.9.1/src/amund/tracing.py +1567 -0
  59. amund-0.9.1/src/amund/transport.py +536 -0
  60. amund-0.9.1/tests/__init__.py +0 -0
  61. amund-0.9.1/tests/_otlp_stub.py +65 -0
  62. amund-0.9.1/tests/conftest.py +115 -0
  63. amund-0.9.1/tests/contract/README.md +54 -0
  64. amund-0.9.1/tests/contract/test_adapter_contracts.py +216 -0
  65. amund-0.9.1/tests/fixtures/harness2/README.md +3 -0
  66. amund-0.9.1/tests/fixtures/harness2/harness-telemetry-v1.schema.json +122 -0
  67. amund-0.9.1/tests/fixtures/parity_corpus.json +255 -0
  68. amund-0.9.1/tests/integration/__init__.py +0 -0
  69. amund-0.9.1/tests/integration/test_anthropic_live.py +235 -0
  70. amund-0.9.1/tests/test_adapter_thread_id.py +134 -0
  71. amund-0.9.1/tests/test_adapters.py +92 -0
  72. amund-0.9.1/tests/test_age267_roundtrip.py +105 -0
  73. amund-0.9.1/tests/test_agent_identity_v2.py +453 -0
  74. amund-0.9.1/tests/test_agent_name_resolution.py +180 -0
  75. amund-0.9.1/tests/test_amund_attr_namespace.py +179 -0
  76. amund-0.9.1/tests/test_anthropic_context_segments.py +363 -0
  77. amund-0.9.1/tests/test_anthropic_streaming.py +438 -0
  78. amund-0.9.1/tests/test_anthropic_summarize.py +338 -0
  79. amund-0.9.1/tests/test_anthropic_wrap.py +456 -0
  80. amund-0.9.1/tests/test_attribution_capture.py +634 -0
  81. amund-0.9.1/tests/test_auto_detect.py +176 -0
  82. amund-0.9.1/tests/test_auto_detect_import_hook.py +175 -0
  83. amund-0.9.1/tests/test_claude_agent_sdk_adapter.py +1102 -0
  84. amund-0.9.1/tests/test_claude_agent_sdk_mhq1416.py +295 -0
  85. amund-0.9.1/tests/test_claude_agent_sdk_module_query.py +193 -0
  86. amund-0.9.1/tests/test_closed_trace_readers.py +211 -0
  87. amund-0.9.1/tests/test_coercion_never_escapes.py +109 -0
  88. amund-0.9.1/tests/test_compat_manifest.py +63 -0
  89. amund-0.9.1/tests/test_compat_morse_ai.py +289 -0
  90. amund-0.9.1/tests/test_context_decomposer.py +340 -0
  91. amund-0.9.1/tests/test_diagnostics.py +372 -0
  92. amund-0.9.1/tests/test_diagnostics_process_exit.py +319 -0
  93. amund-0.9.1/tests/test_diagnostics_shutdown_drain.py +186 -0
  94. amund-0.9.1/tests/test_env_amund_prefix.py +190 -0
  95. amund-0.9.1/tests/test_exception_type.py +60 -0
  96. amund-0.9.1/tests/test_get_prompt.py +356 -0
  97. amund-0.9.1/tests/test_get_prompt_link.py +205 -0
  98. amund-0.9.1/tests/test_google_genai_adapter.py +434 -0
  99. amund-0.9.1/tests/test_harness_telemetry.py +670 -0
  100. amund-0.9.1/tests/test_http_classifier.py +66 -0
  101. amund-0.9.1/tests/test_import_scanner.py +131 -0
  102. amund-0.9.1/tests/test_infra_capture.py +141 -0
  103. amund-0.9.1/tests/test_infra_capture_default_on.py +202 -0
  104. amund-0.9.1/tests/test_infra_capture_http.py +343 -0
  105. amund-0.9.1/tests/test_infra_capture_psycopg.py +82 -0
  106. amund-0.9.1/tests/test_infra_capture_streaming.py +107 -0
  107. amund-0.9.1/tests/test_infra_pii_audit.py +218 -0
  108. amund-0.9.1/tests/test_integration.py +69 -0
  109. amund-0.9.1/tests/test_langchain_adapter.py +642 -0
  110. amund-0.9.1/tests/test_langchain_state_capture.py +372 -0
  111. amund-0.9.1/tests/test_langgraph_async_dedup_controlflow.py +337 -0
  112. amund-0.9.1/tests/test_langgraph_context_segments.py +477 -0
  113. amund-0.9.1/tests/test_langgraph_memory_ops.py +880 -0
  114. amund-0.9.1/tests/test_langgraph_trace_context_bridges.py +571 -0
  115. amund-0.9.1/tests/test_launch_repro_anthropic.py +188 -0
  116. amund-0.9.1/tests/test_launch_repro_langchain.py +126 -0
  117. amund-0.9.1/tests/test_launch_repro_langgraph.py +245 -0
  118. amund-0.9.1/tests/test_launch_repro_openai.py +495 -0
  119. amund-0.9.1/tests/test_launch_repro_openai_agents.py +264 -0
  120. amund-0.9.1/tests/test_logging_handler.py +375 -0
  121. amund-0.9.1/tests/test_manual_tool_span_dedupe.py +148 -0
  122. amund-0.9.1/tests/test_openai_agents_adapter.py +651 -0
  123. amund-0.9.1/tests/test_openai_agents_closed_trace.py +111 -0
  124. amund-0.9.1/tests/test_openai_agents_failures.py +259 -0
  125. amund-0.9.1/tests/test_openai_agents_nested_run.py +163 -0
  126. amund-0.9.1/tests/test_openai_azure.py +447 -0
  127. amund-0.9.1/tests/test_openai_compat_providers.py +150 -0
  128. amund-0.9.1/tests/test_openai_context_segments.py +478 -0
  129. amund-0.9.1/tests/test_openai_responses.py +249 -0
  130. amund-0.9.1/tests/test_openai_summarize.py +251 -0
  131. amund-0.9.1/tests/test_otel_429_retry.py +347 -0
  132. amund-0.9.1/tests/test_otel_export_drops.py +126 -0
  133. amund-0.9.1/tests/test_otel_provider.py +493 -0
  134. amund-0.9.1/tests/test_otel_status_capture_mhq1922.py +209 -0
  135. amund-0.9.1/tests/test_performance.py +55 -0
  136. amund-0.9.1/tests/test_pricing.py +143 -0
  137. amund-0.9.1/tests/test_propagation.py +371 -0
  138. amund-0.9.1/tests/test_provider_reported_cost.py +266 -0
  139. amund-0.9.1/tests/test_queue.py +47 -0
  140. amund-0.9.1/tests/test_queue_capture.py +325 -0
  141. amund-0.9.1/tests/test_record.py +50 -0
  142. amund-0.9.1/tests/test_redaction.py +645 -0
  143. amund-0.9.1/tests/test_resilience.py +362 -0
  144. amund-0.9.1/tests/test_retriever_adapter.py +127 -0
  145. amund-0.9.1/tests/test_retriever_documents.py +80 -0
  146. amund-0.9.1/tests/test_sdk_error_reporting.py +437 -0
  147. amund-0.9.1/tests/test_set_context.py +83 -0
  148. amund-0.9.1/tests/test_setup_checklist_sdk.py +249 -0
  149. amund-0.9.1/tests/test_span_outside_trace_warning.py +80 -0
  150. amund-0.9.1/tests/test_strands_adapter.py +287 -0
  151. amund-0.9.1/tests/test_traceparent_propagation.py +401 -0
  152. amund-0.9.1/tests/test_tracing.py +568 -0
  153. amund-0.9.1/tests/test_track_payload.py +75 -0
  154. amund-0.9.1/tests/test_transport.py +101 -0
  155. amund-0.9.1/tests/test_transport_retry.py +485 -0
  156. amund-0.9.1/tests/test_unsent_runs_no_key.py +87 -0
  157. amund-0.9.1/tests/test_v2_api.py +174 -0
  158. amund-0.9.1/tests/test_v2_env_init.py +269 -0
  159. amund-0.9.1/tests/test_v2_framework_attr.py +283 -0
  160. amund-0.9.1/tests/test_v2_source_attr.py +201 -0
  161. amund-0.9.1/tests/test_v2_tracing_auto_init.py +63 -0
  162. amund-0.9.1/tests/test_wire_contract_after_rename.py +57 -0
  163. amund-0.9.1/uv.lock +2634 -0
amund-0.9.1/.gitignore ADDED
@@ -0,0 +1,118 @@
1
+ # OS
2
+ .DS_Store
3
+ Thumbs.db
4
+ *.sw?
5
+
6
+ # Node / JS / TS
7
+ node_modules/
8
+ .pnpm-store/
9
+ .npm-cache/
10
+ dist/
11
+ build/
12
+ coverage/
13
+ .nyc_output/
14
+ .turbo/
15
+ .next/
16
+ out/
17
+ *.tsbuildinfo
18
+ pnpm-debug.log*
19
+ npm-debug.log*
20
+ yarn-debug.log*
21
+ yarn-error.log*
22
+
23
+ # Vite/Vitest
24
+ .vite/
25
+ vitest.config.ts.timestamp-*
26
+
27
+ # Expo / React Native
28
+ .expo/
29
+ .expo-shared/
30
+ ios/
31
+ android/
32
+
33
+ # Python
34
+ __pycache__/
35
+ *.py[cod]
36
+ *.pyo
37
+ *.pyd
38
+ *.so
39
+ *.egg-info/
40
+ .venv/
41
+ venv/
42
+ env/
43
+ .mypy_cache/
44
+ .pytest_cache/
45
+ .ruff_cache/
46
+ .coverage
47
+ htmlcov/
48
+ *.sqlite3
49
+ coverage.xml
50
+ .hypothesis/
51
+
52
+ # Django collected static files (built artifact — produced by collectstatic
53
+ # at Docker build time and at runtime; never checked in).
54
+ apps/api/staticfiles/
55
+
56
+ # User-uploaded media (feedback attachments, local FileSystemStorage default).
57
+ apps/api/media/
58
+ media/
59
+
60
+ # Env files
61
+ .env
62
+ .env.local
63
+ .env.*.local
64
+ .env.*
65
+ !.env.example
66
+ !.env.*.example
67
+
68
+ # GSD / planning backups
69
+ .planning/STATE.md.bak-*
70
+
71
+ # Test artifacts
72
+ test-results/
73
+
74
+ # Screen recordings (marketing video build artifacts — scripts/record-video.sh)
75
+ apps/web/recordings/
76
+
77
+ # Local agent/tool folders
78
+ .agent/
79
+ .agents/
80
+ .codex/
81
+ .gemini/
82
+ .openpackage/
83
+ .aider*
84
+ .claude/worktrees/
85
+ .claude/settings.local.json
86
+ .serena/
87
+ .remember/
88
+ apps/landing/playwright-report/
89
+ # orchestration env (covered by .env.* above, but kept explicit for clarity)
90
+ .env.orchestration
91
+ .env.orchestration.bak
92
+
93
+ # QA bot run artifacts (machine-generated, high churn, binaries)
94
+ qa/state/
95
+
96
+ # Local scratch worktrees (never tracked — a stray gitlink was committed 2026-07-25)
97
+ .worktrees/
98
+
99
+ # Post-deploy smoke reports (scripts/run-smoke.sh) — run artefacts, not source
100
+ test-results/SMOKE-*.md
101
+ # Saved smoke session (scripts/run-smoke.sh) — a real session token, never commit
102
+ apps/web/tests/smoke/.auth/
103
+ # Playwright E2E fixture sessions (MHQ-998) — live cookies, never committed.
104
+ apps/web/tests/e2e/.auth/
105
+
106
+ # Tinybird CLI workspace credentials (host, token, tokens, user_token).
107
+ # Untracked and unignored until 2026-08-08, when a routine `git add -A` staged
108
+ # it and the secret scan caught it. Never commit — rotate if it ever lands.
109
+ .tinyb
110
+
111
+ # MHQ-1138 load-harness output (scripts/load/run.sh) and seeded throwaway credentials
112
+ load-results/
113
+
114
+ # Local Redis snapshots
115
+ dump.rdb
116
+
117
+ # Design-review capture output (scripts/design-review/capture.mjs)
118
+ .design-review/