tokenjam 0.5.0__tar.gz → 0.5.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 (367) hide show
  1. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/pull_request_template.md +5 -0
  2. {tokenjam-0.5.0 → tokenjam-0.5.2}/CLAUDE.md +1 -0
  3. tokenjam-0.5.2/CODE_OF_CONDUCT.md +132 -0
  4. tokenjam-0.5.2/CONTRIBUTING.md +117 -0
  5. {tokenjam-0.5.0 → tokenjam-0.5.2}/PKG-INFO +53 -10
  6. {tokenjam-0.5.0 → tokenjam-0.5.2}/README.md +52 -9
  7. tokenjam-0.5.2/docs/brand/README.md +29 -0
  8. tokenjam-0.5.2/docs/brand/tokenjam-banner.png +0 -0
  9. tokenjam-0.5.2/docs/brand/tokenjam-banner.svg +19 -0
  10. tokenjam-0.5.2/docs/brand/tokenjam-icon.png +0 -0
  11. tokenjam-0.5.2/docs/brand/tokenjam-icon.svg +15 -0
  12. tokenjam-0.5.2/docs/brand/tokenjam-wordmark.png +0 -0
  13. tokenjam-0.5.2/docs/brand/tokenjam-wordmark.svg +3 -0
  14. tokenjam-0.5.2/docs/internal/release-smoke-checklist.md +126 -0
  15. tokenjam-0.5.2/docs/policy/overview.md +152 -0
  16. tokenjam-0.5.2/docs/proxy/overview.md +67 -0
  17. tokenjam-0.5.2/docs/screenshots/tj-cost.png +0 -0
  18. tokenjam-0.5.2/docs/screenshots/tj-dashboard-leaderboard.png +0 -0
  19. tokenjam-0.5.2/docs/screenshots/tj-dashboard-tools.png +0 -0
  20. tokenjam-0.5.2/docs/screenshots/tj-dashboard.png +0 -0
  21. tokenjam-0.5.2/docs/screenshots/tj-status.png +0 -0
  22. tokenjam-0.5.2/docs/screenshots/tj-traces.png +0 -0
  23. {tokenjam-0.5.0 → tokenjam-0.5.2}/pyproject.toml +10 -2
  24. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/package.json +1 -1
  25. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/factories.py +8 -0
  26. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_api.py +12 -1
  27. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_cli.py +35 -0
  28. tokenjam-0.5.2/tests/integration/test_cmd_proxy.py +116 -0
  29. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_db.py +3 -3
  30. tokenjam-0.5.2/tests/integration/test_first_run_roundtrip_239.py +303 -0
  31. tokenjam-0.5.2/tests/integration/test_policy_api.py +120 -0
  32. tokenjam-0.5.2/tests/integration/test_proxy_app.py +175 -0
  33. tokenjam-0.5.2/tests/integration/test_proxy_policy.py +130 -0
  34. tokenjam-0.5.2/tests/synthetic/test_request_capture.py +316 -0
  35. tokenjam-0.5.2/tests/unit/test_backfill.py +599 -0
  36. tokenjam-0.5.2/tests/unit/test_budget_cap_policy.py +216 -0
  37. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cmd_policy.py +125 -0
  38. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_config.py +33 -0
  39. tokenjam-0.5.2/tests/unit/test_demo_packaging.py +78 -0
  40. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_lens_ui_regression.py +376 -60
  41. tokenjam-0.5.2/tests/unit/test_mcp_policy.py +226 -0
  42. tokenjam-0.5.2/tests/unit/test_onboard_first_run.py +155 -0
  43. tokenjam-0.5.2/tests/unit/test_policy_engine.py +160 -0
  44. tokenjam-0.5.2/tests/unit/test_proxy_audit.py +202 -0
  45. tokenjam-0.5.2/tests/unit/test_proxy_gate.py +82 -0
  46. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_spans_stats_repair.py +3 -1
  47. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_workflow_restructure.py +25 -0
  48. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/app.py +2 -0
  49. tokenjam-0.5.2/tokenjam/api/routes/policy.py +39 -0
  50. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/traces.py +7 -1
  51. tokenjam-0.5.2/tokenjam/cli/banner.py +36 -0
  52. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_backfill.py +14 -3
  53. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_budget.py +85 -32
  54. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_demo.py +24 -4
  55. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_doctor.py +32 -0
  56. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_onboard.py +89 -32
  57. tokenjam-0.5.2/tokenjam/cli/cmd_policy.py +434 -0
  58. tokenjam-0.5.2/tokenjam/cli/cmd_proxy.py +134 -0
  59. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_serve.py +23 -0
  60. tokenjam-0.5.2/tokenjam/cli/home.py +46 -0
  61. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/main.py +15 -1
  62. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/backfill.py +137 -70
  63. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/config.py +78 -0
  64. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/db.py +189 -4
  65. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/framing.py +16 -0
  66. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/ingest.py +60 -3
  67. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/models.py +72 -0
  68. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/workflow_restructure.py +13 -1
  69. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/mcp/server.py +107 -0
  70. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/otel/semconv.py +36 -0
  71. tokenjam-0.5.2/tokenjam/proxy/__init__.py +44 -0
  72. tokenjam-0.5.2/tokenjam/proxy/app.py +243 -0
  73. tokenjam-0.5.2/tokenjam/proxy/audit.py +279 -0
  74. tokenjam-0.5.2/tokenjam/proxy/engine.py +428 -0
  75. tokenjam-0.5.2/tokenjam/proxy/gate.py +82 -0
  76. tokenjam-0.5.2/tokenjam/proxy/observer.py +95 -0
  77. tokenjam-0.5.2/tokenjam/proxy/recommend.py +167 -0
  78. tokenjam-0.5.2/tokenjam/proxy/server.py +80 -0
  79. tokenjam-0.5.2/tokenjam/proxy/wiring.py +102 -0
  80. tokenjam-0.5.2/tokenjam/sdk/integrations/_request_capture.py +126 -0
  81. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/anthropic.py +3 -0
  82. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/bedrock.py +2 -0
  83. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/gemini.py +3 -0
  84. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/litellm.py +3 -0
  85. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/openai.py +2 -0
  86. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/index.html +611 -333
  87. tokenjam-0.5.0/CONTRIBUTING.md +0 -70
  88. tokenjam-0.5.0/docs/policy/overview.md +0 -64
  89. tokenjam-0.5.0/docs/screenshots/tj-alerts.png +0 -0
  90. tokenjam-0.5.0/docs/screenshots/tj-cost.png +0 -0
  91. tokenjam-0.5.0/docs/screenshots/tj-status.png +0 -0
  92. tokenjam-0.5.0/docs/screenshots/tj-traces.png +0 -0
  93. tokenjam-0.5.0/tests/unit/test_backfill.py +0 -231
  94. tokenjam-0.5.0/tokenjam/cli/cmd_policy.py +0 -251
  95. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/CODEOWNERS +0 -0
  96. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  97. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  98. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/ISSUE_TEMPLATE/integration_request.md +0 -0
  99. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/scripts/archive_traffic.py +0 -0
  100. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/workflows/ci.yml +0 -0
  101. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/workflows/publish-npm.yml +0 -0
  102. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/workflows/publish-pypi.yml +0 -0
  103. {tokenjam-0.5.0 → tokenjam-0.5.2}/.github/workflows/traffic-archive.yml +0 -0
  104. {tokenjam-0.5.0 → tokenjam-0.5.2}/.gitignore +0 -0
  105. {tokenjam-0.5.0 → tokenjam-0.5.2}/AGENTS.md +0 -0
  106. {tokenjam-0.5.0 → tokenjam-0.5.2}/LICENSE +0 -0
  107. {tokenjam-0.5.0 → tokenjam-0.5.2}/Makefile +0 -0
  108. {tokenjam-0.5.0 → tokenjam-0.5.2}/SECURITY.md +0 -0
  109. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/alerts.md +0 -0
  110. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/architecture.md +0 -0
  111. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/backfill/helicone.md +0 -0
  112. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/backfill/langfuse.md +0 -0
  113. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/backfill/otlp.md +0 -0
  114. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/backfill/overview.md +0 -0
  115. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/claude-code-integration.md +0 -0
  116. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/cli-reference.md +0 -0
  117. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/configuration.md +0 -0
  118. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/export.md +0 -0
  119. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/framework-support.md +0 -0
  120. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/installation.md +0 -0
  121. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/internal/lens-vendor-versions.md +0 -0
  122. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/internal/specs/.gitkeep +0 -0
  123. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/nemoclaw-integration.md +0 -0
  124. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/openclaw.md +0 -0
  125. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/optimize/cache.md +0 -0
  126. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/optimize/downsize.md +0 -0
  127. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/optimize/reuse.md +0 -0
  128. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/optimize/script.md +0 -0
  129. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/optimize/trim.md +0 -0
  130. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/python-sdk.md +0 -0
  131. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/screenshots/tj-budget.png +0 -0
  132. {tokenjam-0.5.0 → tokenjam-0.5.2}/docs/typescript-sdk.md +0 -0
  133. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/README.md +0 -0
  134. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/alerts_and_drift/_shared.py +0 -0
  135. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/alerts_and_drift/budget_breach_demo.py +0 -0
  136. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/alerts_and_drift/drift_demo.py +0 -0
  137. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/alerts_and_drift/sensitive_actions_demo.py +0 -0
  138. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/rag_pipeline.py +0 -0
  139. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/research_team.py +0 -0
  140. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/router_agent.py +0 -0
  141. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/sample_docs/agent_patterns.txt +0 -0
  142. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/sample_docs/cost_management.txt +0 -0
  143. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/sample_docs/observability.txt +0 -0
  144. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/multi/sample_docs/safety.txt +0 -0
  145. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/openclaw/README.md +0 -0
  146. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_framework/autogen_agent.py +0 -0
  147. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_framework/crewai_agent.py +0 -0
  148. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_framework/langchain_agent.py +0 -0
  149. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_framework/langgraph_agent.py +0 -0
  150. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_framework/llamaindex_agent.py +0 -0
  151. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/anthropic_agent.py +0 -0
  152. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/bedrock_agent.py +0 -0
  153. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/gemini_agent.py +0 -0
  154. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/litellm_agent.py +0 -0
  155. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/openai_agent.py +0 -0
  156. {tokenjam-0.5.0 → tokenjam-0.5.2}/examples/single_provider/openai_agents_sdk_agent.py +0 -0
  157. {tokenjam-0.5.0 → tokenjam-0.5.2}/growth/README.md +0 -0
  158. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/hallucination-drift/BLOG.md +0 -0
  159. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/hallucination-drift/README.md +0 -0
  160. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/hallucination-drift/scenario.py +0 -0
  161. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/retry-loop/BLOG.md +0 -0
  162. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/retry-loop/README.md +0 -0
  163. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/retry-loop/scenario.py +0 -0
  164. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/surprise-cost/BLOG.md +0 -0
  165. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/surprise-cost/README.md +0 -0
  166. {tokenjam-0.5.0 → tokenjam-0.5.2}/incidents/surprise-cost/scenario.py +0 -0
  167. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/README.md +0 -0
  168. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/package-lock.json +0 -0
  169. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/client.test.ts +0 -0
  170. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/client.ts +0 -0
  171. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/index.ts +0 -0
  172. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/semconv.test.ts +0 -0
  173. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/semconv.ts +0 -0
  174. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/span-builder.test.ts +0 -0
  175. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/span-builder.ts +0 -0
  176. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/src/types.ts +0 -0
  177. {tokenjam-0.5.0 → tokenjam-0.5.2}/sdk-ts/tsconfig.json +0 -0
  178. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/__init__.py +0 -0
  179. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agent-post-release-runner.md +0 -0
  180. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agent-post-release-v0.4.0.md +0 -0
  181. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agent-pre-release-runner.md +0 -0
  182. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agent-pre-release-v0.4.0.md +0 -0
  183. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agent-pre-release-v0.4.1.md +0 -0
  184. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/__init__.py +0 -0
  185. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/email_agent_budget_breach.py +0 -0
  186. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/email_agent_drift.py +0 -0
  187. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/email_agent_loop.py +0 -0
  188. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/email_agent_normal.py +0 -0
  189. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/mock_llm.py +0 -0
  190. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/agents/test_mock_scenarios.py +0 -0
  191. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/conftest.py +0 -0
  192. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/e2e/__init__.py +0 -0
  193. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/e2e/conftest.py +0 -0
  194. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/e2e/test_real_llm.py +0 -0
  195. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/fixtures/helicone_real_response.json +0 -0
  196. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/fixtures/langfuse_real_response.json +0 -0
  197. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/fixtures/otlp_sample.json +0 -0
  198. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/__init__.py +0 -0
  199. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_analytics.py +0 -0
  200. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_cli_api_framing_parity.py +0 -0
  201. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_cmd_route.py +0 -0
  202. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_cost_charts.py +0 -0
  203. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_cost_framing_window.py +0 -0
  204. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_demos.py +0 -0
  205. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_full_pipeline.py +0 -0
  206. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_litellm_enrichment.py +0 -0
  207. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_logs_api.py +0 -0
  208. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/integration/test_sdk_config_discovery.py +0 -0
  209. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/manual-new-release-tests.md +0 -0
  210. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/manual-pre-release-testing.md +0 -0
  211. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/results/agent-post-release-v0.4.0-20260619T221412Z.md +0 -0
  212. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/results/agent-pre-release-v0.4.0-20260619T202233Z.md +0 -0
  213. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/results/agent-pre-release-v0.4.0-20260619T205108Z.md +0 -0
  214. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/results/agent-pre-release-v0.4.1-20260620T002546Z.md +0 -0
  215. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/__init__.py +0 -0
  216. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/test_alert_rules.py +0 -0
  217. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/test_cost_tracking.py +0 -0
  218. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/test_drift_detection.py +0 -0
  219. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/test_ingest.py +0 -0
  220. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/synthetic/test_schema_validation.py +0 -0
  221. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/toy_agent/toy_agent.py +0 -0
  222. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/__init__.py +0 -0
  223. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_alerts.py +0 -0
  224. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cache_efficacy.py +0 -0
  225. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cache_recommend.py +0 -0
  226. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cmd_cost.py +0 -0
  227. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cmd_stop.py +0 -0
  228. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cmd_tokenmaxx.py +0 -0
  229. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_compare.py +0 -0
  230. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_config_secret_divergence.py +0 -0
  231. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cost.py +0 -0
  232. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cost_compare_framing.py +0 -0
  233. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_cycle.py +0 -0
  234. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_db_helpers.py +0 -0
  235. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_demo_env.py +0 -0
  236. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_demo_scenarios.py +0 -0
  237. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_drift.py +0 -0
  238. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_export_claude_code.py +0 -0
  239. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_export_route_generators.py +0 -0
  240. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_formatting.py +0 -0
  241. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_framing.py +0 -0
  242. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_ingest_helicone.py +0 -0
  243. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_ingest_langfuse.py +0 -0
  244. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_ingest_otlp.py +0 -0
  245. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_litellm_client.py +0 -0
  246. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_litellm_integration.py +0 -0
  247. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_logs_converter.py +0 -0
  248. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_mcp_server.py +0 -0
  249. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_models.py +0 -0
  250. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_no_tracked_dev_secrets.py +0 -0
  251. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_onboard_codex.py +0 -0
  252. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_onboard_daemon.py +0 -0
  253. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_onboard_hygiene.py +0 -0
  254. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_onboard_plan.py +0 -0
  255. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_openclaw_ingest.py +0 -0
  256. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_optimize.py +0 -0
  257. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_optimize_recoverable.py +0 -0
  258. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_optimize_reuse.py +0 -0
  259. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_plan_tier_apply.py +0 -0
  260. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_pricing_override.py +0 -0
  261. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_prompt_bloat.py +0 -0
  262. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_provider_attribution_194.py +0 -0
  263. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_reuse_skeleton.py +0 -0
  264. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_time_parse.py +0 -0
  265. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_transport_401.py +0 -0
  266. {tokenjam-0.5.0 → tokenjam-0.5.2}/tests/unit/test_ui_offline.py +0 -0
  267. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/__init__.py +0 -0
  268. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/__init__.py +0 -0
  269. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/deps.py +0 -0
  270. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/middleware.py +0 -0
  271. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/__init__.py +0 -0
  272. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/agents.py +0 -0
  273. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/alerts.py +0 -0
  274. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/analytics.py +0 -0
  275. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/budget.py +0 -0
  276. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/cost.py +0 -0
  277. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/cost_compare.py +0 -0
  278. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/drift.py +0 -0
  279. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/logs.py +0 -0
  280. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/metrics.py +0 -0
  281. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/optimize.py +0 -0
  282. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/otlp.py +0 -0
  283. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/reuse.py +0 -0
  284. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/spans.py +0 -0
  285. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/status.py +0 -0
  286. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/tools.py +0 -0
  287. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/api/routes/version.py +0 -0
  288. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/__init__.py +0 -0
  289. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_alerts.py +0 -0
  290. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_cost.py +0 -0
  291. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_drift.py +0 -0
  292. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_export.py +0 -0
  293. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_mcp.py +0 -0
  294. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_optimize.py +0 -0
  295. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_report.py +0 -0
  296. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_route.py +0 -0
  297. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_status.py +0 -0
  298. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_stop.py +0 -0
  299. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_tokenmaxx.py +0 -0
  300. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_tools.py +0 -0
  301. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_traces.py +0 -0
  302. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/cli/cmd_uninstall.py +0 -0
  303. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/__init__.py +0 -0
  304. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/alerts.py +0 -0
  305. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/api_backend.py +0 -0
  306. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/cost.py +0 -0
  307. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/cycle.py +0 -0
  308. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/drift.py +0 -0
  309. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/__init__.py +0 -0
  310. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/ccr.py +0 -0
  311. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/claude_code.py +0 -0
  312. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/common.py +0 -0
  313. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/litellm.py +0 -0
  314. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/reuse_report.py +0 -0
  315. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/export/reuse_skeleton.py +0 -0
  316. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/ingest_adapters/__init__.py +0 -0
  317. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/ingest_adapters/helicone.py +0 -0
  318. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/ingest_adapters/langfuse.py +0 -0
  319. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/ingest_adapters/otlp.py +0 -0
  320. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/README.md +0 -0
  321. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/__init__.py +0 -0
  322. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/__init__.py +0 -0
  323. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/budget_projection.py +0 -0
  324. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/cache_efficacy.py +0 -0
  325. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/cache_recommend.py +0 -0
  326. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/model_downgrade.py +0 -0
  327. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/plan_reuse.py +0 -0
  328. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/analyzers/prompt_bloat.py +0 -0
  329. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/registry.py +0 -0
  330. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/runner.py +0 -0
  331. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/optimize/types.py +0 -0
  332. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/pricing.py +0 -0
  333. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/retention.py +0 -0
  334. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/core/schema_validator.py +0 -0
  335. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/demo/__init__.py +0 -0
  336. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/demo/env.py +0 -0
  337. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/mcp/__init__.py +0 -0
  338. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/otel/__init__.py +0 -0
  339. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/otel/exporters.py +0 -0
  340. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/otel/otlp_parsing.py +0 -0
  341. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/otel/provider.py +0 -0
  342. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/pricing/models.toml +0 -0
  343. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/py.typed +0 -0
  344. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/__init__.py +0 -0
  345. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/agent.py +0 -0
  346. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/bootstrap.py +0 -0
  347. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/client.py +0 -0
  348. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/http_exporter.py +0 -0
  349. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/__init__.py +0 -0
  350. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/autogen.py +0 -0
  351. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/base.py +0 -0
  352. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/crewai.py +0 -0
  353. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/langchain.py +0 -0
  354. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/langgraph.py +0 -0
  355. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/llamaindex.py +0 -0
  356. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/nemoclaw.py +0 -0
  357. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/integrations/openai_agents_sdk.py +0 -0
  358. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/sdk/transport.py +0 -0
  359. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/vendor/htm.js +0 -0
  360. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/vendor/preact-hooks.js +0 -0
  361. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/vendor/preact.js +0 -0
  362. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/vendor/uplot.css +0 -0
  363. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/ui/vendor/uplot.js +0 -0
  364. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/utils/__init__.py +0 -0
  365. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/utils/formatting.py +0 -0
  366. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/utils/ids.py +0 -0
  367. {tokenjam-0.5.0 → tokenjam-0.5.2}/tokenjam/utils/time_parse.py +0 -0
@@ -2,6 +2,10 @@
2
2
 
3
3
  <!-- What does this PR do? 1-3 sentences. -->
4
4
 
5
+ ## Related issue
6
+
7
+ <!-- Closes #N — so the issue auto-closes on merge. One "Closes" line per issue. Omit if there's no issue. -->
8
+
5
9
  ## Checklist
6
10
 
7
11
  - [ ] Tests pass (`pytest tests/unit/ tests/synthetic/ tests/agents/ tests/integration/`)
@@ -9,3 +13,4 @@
9
13
  - [ ] Type check clean (`mypy tokenjam/`)
10
14
  - [ ] CLAUDE.md updated (if architecture changed)
11
15
  - [ ] Test spans use `tests/factories.py` (not raw `NormalizedSpan`)
16
+ - [ ] Requested `@anilmurty` as reviewer (or @-mentioned him above)
@@ -392,3 +392,4 @@ Key runtime dependency: `pytz` is required by DuckDB for `TIMESTAMPTZ` column ha
392
392
  - **Backfill adapters** — `docs/backfill/overview.md` lists the four sources (`claude-code` / `langfuse` / `helicone` / `otlp`) with the partnership-posture framing; per-adapter pages document modes (URL / file), field mapping, idempotency, and v1 limitations.
393
393
  - **[docs/policy/overview.md](docs/policy/overview.md)** — read-only preview of the unified policy surface (`tj policy list`). Notes that the `add` / `edit` / `apply` subcommands and the underlying `[policy]` config migration land next sprint.
394
394
  - **Internal specs** — `docs/internal/specs/` is reserved for canonical specs that production code references at long-term. Currently empty (sprint specs have been cleaned up after merge); add new ones here when a feature needs a stable, code-referenced source of truth.
395
+ - **[docs/internal/release-smoke-checklist.md](docs/internal/release-smoke-checklist.md)** — fresh-install pre-release gate (clean env → `pipx install` → `tj onboard --claude-code` → verify Lens plan badge + `tj optimize` agree → sane session count). Catches plan-tier / framing regressions a real first-run hits that synthetic-factory tests don't. Its automated counterpart is `tests/integration/test_first_run_roundtrip_239.py`.
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ **anil@metabldr.com**.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,117 @@
1
+ # Contributing to TokenJam
2
+
3
+ TokenJam is MIT licensed and welcomes contributions. It's built by AI coding agents, and contributing with one is first-class — see [Using coding agents](#using-coding-agents) below.
4
+
5
+ ## Good first contributions
6
+
7
+ New here? These are the lowest-friction ways to land your first PR:
8
+
9
+ - 🟢 **[Good first issues](https://github.com/Metabuilder-Labs/tokenjam/labels/good%20first%20issue)** — scoped tasks tagged ready for newcomers.
10
+ - 💸 **Model pricing** — add a missing model or correct a rate in [`tokenjam/pricing/models.toml`](tokenjam/pricing/models.toml). One file, no issue needed (details below).
11
+ - 🔌 **A framework/provider integration** — they follow one clear pattern; `tokenjam/sdk/integrations/anthropic.py` is the reference. Open an issue first to align on approach.
12
+
13
+ Questions on any of these? Open an issue — we're happy to point you at a good starting spot.
14
+
15
+ ## Claiming an issue
16
+
17
+ Found an issue you want to work on? **Assign it to yourself** so others know it's taken and nobody duplicates the work. If you don't have permission to self-assign (common if you're not yet a repo collaborator), just leave a quick comment saying you're on it and a maintainer will assign you. If an issue is already assigned — or has a recent "I'll take this" comment — pick another one.
18
+
19
+ ## Getting started
20
+
21
+ ```bash
22
+ git clone https://github.com/Metabuilder-Labs/tokenjam
23
+ cd tokenjam
24
+ pip install -e ".[dev]" # editable install with dev tools (the MCP server ships in the base install)
25
+ pip install anthropic # for running the toy agent
26
+ ```
27
+
28
+ ## Running tests
29
+
30
+ The suite is layered — fastest first. CI runs everything except `e2e`, and **none of these need an API key**:
31
+
32
+ ```bash
33
+ pytest tests/unit/ tests/synthetic/ tests/agents/ tests/integration/
34
+ ```
35
+
36
+ - `tests/unit/` — pure logic, no I/O (runs in well under a second)
37
+ - `tests/synthetic/` — spans injected via `tests/factories.py`, zero cost
38
+ - `tests/agents/` — mock agent scenarios through the full SDK path
39
+ - `tests/integration/` — CLI + HTTP API
40
+
41
+ While iterating, run just one file — or one test:
42
+
43
+ ```bash
44
+ pytest tests/unit/test_config.py
45
+ pytest tests/unit/test_config.py::test_function_name -v
46
+ ```
47
+
48
+ Lint and type-check (both run in CI — please run them before pushing):
49
+
50
+ ```bash
51
+ ruff check tokenjam/
52
+ mypy tokenjam/
53
+ ```
54
+
55
+ The TypeScript SDK is an independent package with its own tests — run these only if you touch `sdk-ts/`:
56
+
57
+ ```bash
58
+ cd sdk-ts && npm install && npm test
59
+ ```
60
+
61
+ E2e tests hit a real API and **auto-skip unless `TJ_ANTHROPIC_API_KEY` is set** (a full run costs fractions of a cent):
62
+
63
+ ```bash
64
+ export TJ_ANTHROPIC_API_KEY="sk-ant-..."
65
+ pytest tests/e2e/
66
+ ```
67
+
68
+ ## Branches and commits
69
+
70
+ - Branch off `main` with a type-prefixed, kebab-case name: `fix/...`, `feat/...`, `docs/...`, or `chore/...` (e.g. `fix/budget-json-flag`).
71
+ - Keep each PR to **one concern** — one feature or fix. If you spot an unrelated problem, open a separate issue rather than expanding the PR.
72
+ - Write commit subjects in the imperative ("Add budget `--json` flag"), and reference the issue with `#N` where relevant. Put `Closes #N` in the PR description so the issue auto-closes on merge.
73
+
74
+ ## Before opening a PR
75
+
76
+ - Run the test suite and make sure it passes: `pytest tests/unit/ tests/synthetic/ tests/agents/ tests/integration/`
77
+ - Run `ruff check tokenjam/` **and** `mypy tokenjam/`, and fix anything they flag
78
+ - Keep PRs focused — one feature or fix per PR
79
+ - If you're adding a framework integration, open an issue first so the approach can be aligned on before you write code — integrations have a specific pattern (see `tokenjam/sdk/integrations/anthropic.py` as the reference implementation)
80
+ - When it's ready, **request `@anilmurty` as the reviewer** (if you can't request reviewers, just @-mention him in the PR description) — that's the signal it's ready for a look
81
+ - Make sure CI is green on your branch before requesting review
82
+
83
+ ## Project structure
84
+
85
+ ```
86
+ tokenjam/core/ Domain logic — no CLI or HTTP imports allowed here
87
+ tokenjam/cli/ Click commands — one file per command
88
+ tokenjam/api/ FastAPI routes
89
+ tokenjam/sdk/ @watch() decorator and provider/framework patches
90
+ tokenjam/otel/ OTel TracerProvider and span exporter wiring
91
+ tokenjam/utils/ Formatting, time parsing, ID generation
92
+ sdk-ts/src/ TypeScript SDK (@tokenjam/sdk)
93
+ tokenjam/pricing/models.toml Community-maintained model pricing — PRs welcome here
94
+ tests/factories.py Span factory — use this in all synthetic tests, never
95
+ construct NormalizedSpan directly
96
+ ```
97
+
98
+ ## Using coding agents
99
+
100
+ TokenJam is built by AI coding agents, and contributing with one is first-class:
101
+
102
+ - **Claude Code** — it reads [`CLAUDE.md`](CLAUDE.md) automatically; run `/init` to bring your agent up to speed on the architecture and conventions.
103
+ - **Codex / Gemini / other agents** — read [`AGENTS.md`](AGENTS.md): the critical rules (DuckDB not SQLite, TOML not YAML, no CLI imports in `tokenjam/core/`, etc.) plus a pointer to CLAUDE.md for the full guide.
104
+
105
+ ## Pricing table contributions
106
+
107
+ The file `tokenjam/pricing/models.toml` is intentionally community-maintained. If a model is missing or prices have changed, open a PR with the update — no issue needed, just update the TOML and verify the format matches existing entries. (This is the file the cost engine loads at runtime; there is no separate repo-root copy.)
108
+
109
+ ## Reporting issues
110
+
111
+ Use GitHub Issues. For bugs, include:
112
+
113
+ - Python version (`python3 --version`)
114
+ - OS
115
+ - The command you ran
116
+ - The full error output
117
+ - Output of `tj doctor` if relevant
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tokenjam
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: TokenJam — local-first OTel-native observability for Autonomous AI agents
5
5
  Project-URL: Homepage, https://opencla.watch
6
6
  Project-URL: Repository, https://github.com/Metabuilder-Labs/openclawwatch
@@ -58,9 +58,7 @@ Description-Content-Type: text/markdown
58
58
 
59
59
  <div align="center">
60
60
 
61
- <img src="https://tokenjam.dev/icon.svg" alt="TokenJam" width="72" height="72">
62
-
63
- # TokenJam
61
+ <img src="docs/brand/tokenjam-banner.png" alt="TokenJam" width="440">
64
62
 
65
63
  ### Token Efficiency For AI Agents
66
64
 
@@ -68,6 +66,7 @@ TokenJam reads your agent's telemetry and tells you when to downsize, when to tr
68
66
 
69
67
  [![CI](https://github.com/Metabuilder-Labs/tokenjam/actions/workflows/ci.yml/badge.svg)](https://github.com/Metabuilder-Labs/tokenjam/actions/workflows/ci.yml)
70
68
  [![PyPI](https://img.shields.io/pypi/v/tokenjam?color=3d8eff&labelColor=0d1117)](https://pypi.org/project/tokenjam/)
69
+ [![Downloads](https://img.shields.io/pypi/dm/tokenjam?color=3d8eff&labelColor=0d1117&label=downloads)](https://pypi.org/project/tokenjam/)
71
70
  [![Python](https://img.shields.io/badge/python-3.10%2B-3d8eff?labelColor=0d1117)](https://pypi.org/project/tokenjam/)
72
71
  [![npm](https://img.shields.io/npm/v/@tokenjam/sdk?color=3d8eff&labelColor=0d1117)](https://www.npmjs.com/package/@tokenjam/sdk)
73
72
  [![License: MIT](https://img.shields.io/badge/license-MIT-3d8eff?labelColor=0d1117)](LICENSE)
@@ -81,6 +80,8 @@ pipx install tokenjam
81
80
 
82
81
  **No cloud · No signup · No vendor lock-in**
83
82
 
83
+ <sub>⭐ If TokenJam saves you tokens, **star it** · 👁 **Watch for releases** — we ship often</sub>
84
+
84
85
  </div>
85
86
 
86
87
  ---
@@ -179,6 +180,23 @@ tj optimize # cost-saving candidates from your actual usage
179
180
  tj serve # open the dashboard at http://127.0.0.1:7391/
180
181
  ```
181
182
 
183
+ That's it. Run `tj` any time and it points you to the next best action:
184
+
185
+ ```text
186
+ _____ _ _
187
+ |_ _|__| |_____ _ _ | |__ _ _ __
188
+ | |/ _ \ / / -_) ' \ | / _` | ' \
189
+ |_|\___/_\_\___|_||_|_/ \__,_|_|_|_|
190
+ |__/
191
+ TokenJam · cost-optimization for AI agents · local-first, OTel-native · no signup
192
+
193
+ You're set up. Next best actions:
194
+ tj status agent overview — what's running, recent cost
195
+ tj tokenmaxx your shareable spend tier
196
+ tj optimize cost-saving candidates from your usage
197
+ tj serve open Lens (web UI) at http://127.0.0.1:7391/
198
+ ```
199
+
182
200
  To upgrade later: `pipx upgrade tokenjam` (then `tj stop && tj serve &` to reload the daemon, and `tj --version` to verify). See [docs/installation.md](docs/installation.md#upgrading).
183
201
 
184
202
  For any Python agent:
@@ -200,16 +218,20 @@ def run(task: str) -> str:
200
218
 
201
219
  ## Lens — the local dashboard
202
220
 
203
- `tj serve` runs Lens at `http://127.0.0.1:7391/`: an Overview triage screen with spend, recoverable waste, and health at a glance; an Optimize tab showing every analyzer's findings side by side; and the standard Status, Traces, Cost, Alerts, Drift, and Budget screens. Plan-tier-aware, fully offline, no signup.
221
+ `tj serve` runs Lens at `http://127.0.0.1:7391/`: a **Dashboard** that lands you on recoverable waste and health at a glance, with an embedded explorer to slice your usage any way (metric × dimension × chart); plus Status, Traces, Cost, Analytics, Alerts, Drift, Optimize, and Budget screens. Plan-tier-aware, fully offline, no signup.
204
222
 
205
223
  <table>
206
224
  <tr>
207
- <td width="50%"><img src="docs/screenshots/tj-status.png" alt="Status screen" /></td>
208
- <td width="50%"><img src="docs/screenshots/tj-cost.png" alt="Cost screen with spend-over-time chart" /></td>
225
+ <td width="50%"><img src="docs/screenshots/tj-dashboard.png" alt="Dashboard — recoverable waste, health at a glance, and the embedded pivot explorer" /></td>
226
+ <td width="50%"><img src="docs/screenshots/tj-cost.png" alt="Cost spend over time + cache savings" /></td>
209
227
  </tr>
210
228
  <tr>
211
- <td width="50%"><img src="docs/screenshots/tj-traces.png" alt="Traces table" /></td>
212
- <td width="50%"><img src="docs/screenshots/tj-alerts.png" alt="Alerts table" /></td>
229
+ <td width="50%"><img src="docs/screenshots/tj-traces.png" alt="Trace waterfall — session-level spans with cost annotations" /></td>
230
+ <td width="50%"><img src="docs/screenshots/tj-status.png" alt="Status — per-agent cards" /></td>
231
+ </tr>
232
+ <tr>
233
+ <td width="50%"><img src="docs/screenshots/tj-dashboard-tools.png" alt="Analytics explorer — tool-usage leaderboard" /></td>
234
+ <td width="50%"><img src="docs/screenshots/tj-dashboard-leaderboard.png" alt="Analytics explorer — cost-by-model leaderboard" /></td>
213
235
  </tr>
214
236
  </table>
215
237
 
@@ -280,7 +302,13 @@ tj serve # start Lens + REST API
280
302
  - [x] **Daemon DB concurrency** — per-thread DuckDB cursors so the Overview's fan-out doesn't block on a single shared connection (v0.4.1)
281
303
  - [x] **Cache cost transparency** — `cache_read` + `cache_write` token columns surfaced in CLI + UI + API (the previously-hidden ~91% cost driver on cache-heavy workloads)
282
304
 
283
- **Up next:**
305
+ **Shipped in 0.5.x:**
306
+ - [x] **Lens Visualizations** — an Analytics pivot explorer (metric × dimension × chart, presets, CSV), stacked cost-by-model, a cache-savings chart, KPI sparklines, a cost-annotated trace waterfall, and consistent series coloring
307
+ - [x] **Merged Dashboard** — the explorer and the triage front-door unified into one default screen, with in-place drill-through from recoverable-waste tiles
308
+ - [x] **First-run polish** — backfill fidelity (session-level traces, cache read/write split, honest session counts), plan-tier-aware framing throughout (subscription users see token-share, never raw spend), an onboarding welcome banner + next-steps guidance, and a contribution funnel
309
+
310
+ **Up next** (roughly):
311
+ - [ ] Continued Lens polish + per-product visual branding
284
312
  - [ ] `tj policy add | edit | apply` — unified rule surface
285
313
  - [ ] `tj replay` — replay captured sessions against new model versions
286
314
  - [ ] TypeScript framework patches (LangChain JS, OpenAI Agents SDK)
@@ -290,6 +318,21 @@ tj serve # start Lens + REST API
290
318
 
291
319
  ---
292
320
 
321
+ ## Contributing
322
+
323
+ TokenJam is MIT, and contributions are welcome — from a one-line pricing fix to a whole new framework integration. A few easy on-ramps:
324
+
325
+ - 🟢 **[Good first issues →](https://github.com/Metabuilder-Labs/tokenjam/labels/good%20first%20issue)** — scoped, newcomer-friendly tasks, ready to pick up.
326
+ - 💸 **Model pricing** — `tokenjam/pricing/models.toml` is community-maintained. Fix a rate or add a model in a single PR — no issue needed.
327
+ - 🔌 **Framework integrations** — provider/framework patches follow one clear pattern (`tokenjam/sdk/integrations/anthropic.py` is the reference). Open an issue first to align on approach.
328
+ - 🤖 **Built with coding agents** — TokenJam is built by AI coding agents, and contributing with one is first-class. **Claude Code:** read [CLAUDE.md](CLAUDE.md) and run `/init` to bring your agent up to speed. **Codex / other agents:** [AGENTS.md](AGENTS.md) has the critical rules.
329
+
330
+ Setup and the full dev workflow are in **[CONTRIBUTING.md](CONTRIBUTING.md)**.
331
+
332
+ If TokenJam saves you tokens, **⭐ star it** and **👁 watch for releases** — we ship often.
333
+
334
+ ---
335
+
293
336
  <div align="center">
294
337
 
295
338
  **[tokenjam.dev](https://tokenjam.dev)** · [PyPI](https://pypi.org/project/tokenjam/) · [npm](https://www.npmjs.com/package/@tokenjam/sdk) · [Issues](https://github.com/Metabuilder-Labs/tokenjam/issues)
@@ -1,8 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- <img src="https://tokenjam.dev/icon.svg" alt="TokenJam" width="72" height="72">
4
-
5
- # TokenJam
3
+ <img src="docs/brand/tokenjam-banner.png" alt="TokenJam" width="440">
6
4
 
7
5
  ### Token Efficiency For AI Agents
8
6
 
@@ -10,6 +8,7 @@ TokenJam reads your agent's telemetry and tells you when to downsize, when to tr
10
8
 
11
9
  [![CI](https://github.com/Metabuilder-Labs/tokenjam/actions/workflows/ci.yml/badge.svg)](https://github.com/Metabuilder-Labs/tokenjam/actions/workflows/ci.yml)
12
10
  [![PyPI](https://img.shields.io/pypi/v/tokenjam?color=3d8eff&labelColor=0d1117)](https://pypi.org/project/tokenjam/)
11
+ [![Downloads](https://img.shields.io/pypi/dm/tokenjam?color=3d8eff&labelColor=0d1117&label=downloads)](https://pypi.org/project/tokenjam/)
13
12
  [![Python](https://img.shields.io/badge/python-3.10%2B-3d8eff?labelColor=0d1117)](https://pypi.org/project/tokenjam/)
14
13
  [![npm](https://img.shields.io/npm/v/@tokenjam/sdk?color=3d8eff&labelColor=0d1117)](https://www.npmjs.com/package/@tokenjam/sdk)
15
14
  [![License: MIT](https://img.shields.io/badge/license-MIT-3d8eff?labelColor=0d1117)](LICENSE)
@@ -23,6 +22,8 @@ pipx install tokenjam
23
22
 
24
23
  **No cloud · No signup · No vendor lock-in**
25
24
 
25
+ <sub>⭐ If TokenJam saves you tokens, **star it** · 👁 **Watch for releases** — we ship often</sub>
26
+
26
27
  </div>
27
28
 
28
29
  ---
@@ -121,6 +122,23 @@ tj optimize # cost-saving candidates from your actual usage
121
122
  tj serve # open the dashboard at http://127.0.0.1:7391/
122
123
  ```
123
124
 
125
+ That's it. Run `tj` any time and it points you to the next best action:
126
+
127
+ ```text
128
+ _____ _ _
129
+ |_ _|__| |_____ _ _ | |__ _ _ __
130
+ | |/ _ \ / / -_) ' \ | / _` | ' \
131
+ |_|\___/_\_\___|_||_|_/ \__,_|_|_|_|
132
+ |__/
133
+ TokenJam · cost-optimization for AI agents · local-first, OTel-native · no signup
134
+
135
+ You're set up. Next best actions:
136
+ tj status agent overview — what's running, recent cost
137
+ tj tokenmaxx your shareable spend tier
138
+ tj optimize cost-saving candidates from your usage
139
+ tj serve open Lens (web UI) at http://127.0.0.1:7391/
140
+ ```
141
+
124
142
  To upgrade later: `pipx upgrade tokenjam` (then `tj stop && tj serve &` to reload the daemon, and `tj --version` to verify). See [docs/installation.md](docs/installation.md#upgrading).
125
143
 
126
144
  For any Python agent:
@@ -142,16 +160,20 @@ def run(task: str) -> str:
142
160
 
143
161
  ## Lens — the local dashboard
144
162
 
145
- `tj serve` runs Lens at `http://127.0.0.1:7391/`: an Overview triage screen with spend, recoverable waste, and health at a glance; an Optimize tab showing every analyzer's findings side by side; and the standard Status, Traces, Cost, Alerts, Drift, and Budget screens. Plan-tier-aware, fully offline, no signup.
163
+ `tj serve` runs Lens at `http://127.0.0.1:7391/`: a **Dashboard** that lands you on recoverable waste and health at a glance, with an embedded explorer to slice your usage any way (metric × dimension × chart); plus Status, Traces, Cost, Analytics, Alerts, Drift, Optimize, and Budget screens. Plan-tier-aware, fully offline, no signup.
146
164
 
147
165
  <table>
148
166
  <tr>
149
- <td width="50%"><img src="docs/screenshots/tj-status.png" alt="Status screen" /></td>
150
- <td width="50%"><img src="docs/screenshots/tj-cost.png" alt="Cost screen with spend-over-time chart" /></td>
167
+ <td width="50%"><img src="docs/screenshots/tj-dashboard.png" alt="Dashboard — recoverable waste, health at a glance, and the embedded pivot explorer" /></td>
168
+ <td width="50%"><img src="docs/screenshots/tj-cost.png" alt="Cost spend over time + cache savings" /></td>
151
169
  </tr>
152
170
  <tr>
153
- <td width="50%"><img src="docs/screenshots/tj-traces.png" alt="Traces table" /></td>
154
- <td width="50%"><img src="docs/screenshots/tj-alerts.png" alt="Alerts table" /></td>
171
+ <td width="50%"><img src="docs/screenshots/tj-traces.png" alt="Trace waterfall — session-level spans with cost annotations" /></td>
172
+ <td width="50%"><img src="docs/screenshots/tj-status.png" alt="Status — per-agent cards" /></td>
173
+ </tr>
174
+ <tr>
175
+ <td width="50%"><img src="docs/screenshots/tj-dashboard-tools.png" alt="Analytics explorer — tool-usage leaderboard" /></td>
176
+ <td width="50%"><img src="docs/screenshots/tj-dashboard-leaderboard.png" alt="Analytics explorer — cost-by-model leaderboard" /></td>
155
177
  </tr>
156
178
  </table>
157
179
 
@@ -222,7 +244,13 @@ tj serve # start Lens + REST API
222
244
  - [x] **Daemon DB concurrency** — per-thread DuckDB cursors so the Overview's fan-out doesn't block on a single shared connection (v0.4.1)
223
245
  - [x] **Cache cost transparency** — `cache_read` + `cache_write` token columns surfaced in CLI + UI + API (the previously-hidden ~91% cost driver on cache-heavy workloads)
224
246
 
225
- **Up next:**
247
+ **Shipped in 0.5.x:**
248
+ - [x] **Lens Visualizations** — an Analytics pivot explorer (metric × dimension × chart, presets, CSV), stacked cost-by-model, a cache-savings chart, KPI sparklines, a cost-annotated trace waterfall, and consistent series coloring
249
+ - [x] **Merged Dashboard** — the explorer and the triage front-door unified into one default screen, with in-place drill-through from recoverable-waste tiles
250
+ - [x] **First-run polish** — backfill fidelity (session-level traces, cache read/write split, honest session counts), plan-tier-aware framing throughout (subscription users see token-share, never raw spend), an onboarding welcome banner + next-steps guidance, and a contribution funnel
251
+
252
+ **Up next** (roughly):
253
+ - [ ] Continued Lens polish + per-product visual branding
226
254
  - [ ] `tj policy add | edit | apply` — unified rule surface
227
255
  - [ ] `tj replay` — replay captured sessions against new model versions
228
256
  - [ ] TypeScript framework patches (LangChain JS, OpenAI Agents SDK)
@@ -232,6 +260,21 @@ tj serve # start Lens + REST API
232
260
 
233
261
  ---
234
262
 
263
+ ## Contributing
264
+
265
+ TokenJam is MIT, and contributions are welcome — from a one-line pricing fix to a whole new framework integration. A few easy on-ramps:
266
+
267
+ - 🟢 **[Good first issues →](https://github.com/Metabuilder-Labs/tokenjam/labels/good%20first%20issue)** — scoped, newcomer-friendly tasks, ready to pick up.
268
+ - 💸 **Model pricing** — `tokenjam/pricing/models.toml` is community-maintained. Fix a rate or add a model in a single PR — no issue needed.
269
+ - 🔌 **Framework integrations** — provider/framework patches follow one clear pattern (`tokenjam/sdk/integrations/anthropic.py` is the reference). Open an issue first to align on approach.
270
+ - 🤖 **Built with coding agents** — TokenJam is built by AI coding agents, and contributing with one is first-class. **Claude Code:** read [CLAUDE.md](CLAUDE.md) and run `/init` to bring your agent up to speed. **Codex / other agents:** [AGENTS.md](AGENTS.md) has the critical rules.
271
+
272
+ Setup and the full dev workflow are in **[CONTRIBUTING.md](CONTRIBUTING.md)**.
273
+
274
+ If TokenJam saves you tokens, **⭐ star it** and **👁 watch for releases** — we ship often.
275
+
276
+ ---
277
+
235
278
  <div align="center">
236
279
 
237
280
  **[tokenjam.dev](https://tokenjam.dev)** · [PyPI](https://pypi.org/project/tokenjam/) · [npm](https://www.npmjs.com/package/@tokenjam/sdk) · [Issues](https://github.com/Metabuilder-Labs/tokenjam/issues)
@@ -0,0 +1,29 @@
1
+ # TokenJam brand assets
2
+
3
+ The TokenJam mark is a **weight matrix in brackets** — `[ W₁₁ W₁₂ / W₂₁ W₂₂ ]` — the tensor at the heart of every model. The wordmark is set in **DIN Alternate Bold** (a technical, squared geometric that echoes the matrix motif).
4
+
5
+ **Convention: black on white.** All brand assets are a single ink color (black) on a white/transparent ground, matching [tokenjam.dev](https://tokenjam.dev). Don't recolor the mark per-surface — keep it monochrome.
6
+
7
+ ## Files
8
+
9
+ | Asset | Vector source | Raster |
10
+ |---|---|---|
11
+ | Mark / logo | `tokenjam-icon.svg` | `tokenjam-icon.png` |
12
+ | Wordmark | `tokenjam-wordmark.svg` | `tokenjam-wordmark.png` |
13
+ | Banner (mark + wordmark lockup) | `tokenjam-banner.svg` | `tokenjam-banner.png` |
14
+
15
+ The README header uses `tokenjam-banner.png`. The SVGs are the editable sources — prefer them for any new surface and rasterize as needed.
16
+
17
+ ## Regenerating the PNGs
18
+
19
+ The PNGs are rendered from the SVGs with [`rsvg-convert`](https://gitlab.gnome.org/GNOME/librsvg) on a white background, then cropped to content:
20
+
21
+ ```bash
22
+ rsvg-convert --background-color=white -w 1600 -o tokenjam-banner.png tokenjam-banner.svg
23
+ ```
24
+
25
+ The wordmark stroke is filled (solid). A hollow-outline variant — `fill="none" stroke="#000"` — matches the mark's stroke language and is available if a lighter treatment is ever wanted; the filled cut is the default for legibility at small sizes (PyPI, favicons, social cards).
26
+
27
+ ## In-app mark
28
+
29
+ The dashboard ("TokenJam Lens") renders the same mark inline in `tokenjam/ui/index.html` (`<svg class="brand-mark">`) using `currentColor`, and as the inlined favicon. If you change the mark here, update those too.
@@ -0,0 +1,19 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="760" height="190" viewBox="0 0 760 190">
2
+ <rect width="760" height="190" fill="#ffffff"/>
3
+ <svg x="22" y="35" width="120" height="120" viewBox="54 32 132 132" fill="none" stroke="#000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round">
4
+ <rect x="74" y="44" width="92" height="20" rx="6" ry="6"/>
5
+ <path d="M 104 72 L 74 72 L 74 152 L 104 152"/>
6
+ <path d="M 136 72 L 166 72 L 166 152 L 136 152"/>
7
+ <g fill="#000" stroke="none" fill-rule="evenodd">
8
+ <path transform="translate(85.68,104)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
9
+ <path transform="translate(106.83,107)" d="M0.54,-7.50 L0.54,-8.75 L3.04,-8.75 L3.04,-0.00 L1.66,-0.00 L1.66,-7.50 L0.54,-7.50 Z M4.74,-7.50 L4.74,-8.75 L7.24,-8.75 L7.24,-0.00 L5.86,-0.00 L5.86,-7.50 L4.74,-7.50 Z"/>
10
+ <path transform="translate(123.97,104)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
11
+ <path transform="translate(145.12,107)" d="M0.54,-7.50 L0.54,-8.75 L3.04,-8.75 L3.04,-0.00 L1.66,-0.00 L1.66,-7.50 L0.54,-7.50 Z M5.68,-1.86 Q6.83,-2.86 7.49,-3.50 Q8.16,-4.14 8.60,-4.84 Q9.05,-5.53 9.05,-6.23 Q9.05,-6.95 8.71,-7.36 Q8.36,-7.76 7.63,-7.76 Q6.92,-7.76 6.53,-7.31 Q6.14,-6.86 6.12,-6.11 L4.80,-6.11 Q4.84,-7.48 5.62,-8.20 Q6.41,-8.93 7.62,-8.93 Q8.93,-8.93 9.67,-8.21 Q10.40,-7.49 10.40,-6.29 Q10.40,-5.42 9.97,-4.63 Q9.53,-3.83 8.92,-3.20 Q8.32,-2.57 7.38,-1.74 L6.84,-1.26 L10.64,-1.26 L10.64,-0.12 L4.81,-0.12 L4.81,-1.12 L5.68,-1.86 Z"/>
12
+ <path transform="translate(84.35,128)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
13
+ <path transform="translate(105.44,131)" d="M1.48,-1.86 Q2.63,-2.86 3.29,-3.50 Q3.96,-4.14 4.40,-4.84 Q4.85,-5.53 4.85,-6.23 Q4.85,-6.95 4.51,-7.36 Q4.16,-7.76 3.43,-7.76 Q2.72,-7.76 2.33,-7.31 Q1.94,-6.86 1.92,-6.11 L0.60,-6.11 Q0.64,-7.48 1.42,-8.20 Q2.21,-8.93 3.42,-8.93 Q4.73,-8.93 5.47,-8.21 Q6.20,-7.49 6.20,-6.29 Q6.20,-5.42 5.77,-4.63 Q5.33,-3.83 4.72,-3.20 Q4.12,-2.57 3.18,-1.74 L2.64,-1.26 L6.44,-1.26 L6.44,-0.12 L0.61,-0.12 L0.61,-1.12 L1.48,-1.86 Z M7.46,-7.50 L7.46,-8.75 L9.96,-8.75 L9.96,-0.00 L8.58,-0.00 L8.58,-7.50 L7.46,-7.50 Z"/>
14
+ <path transform="translate(122.64,128)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
15
+ <path transform="translate(143.73,131)" d="M1.48,-1.86 Q2.63,-2.86 3.29,-3.50 Q3.96,-4.14 4.40,-4.84 Q4.85,-5.53 4.85,-6.23 Q4.85,-6.95 4.51,-7.36 Q4.16,-7.76 3.43,-7.76 Q2.72,-7.76 2.33,-7.31 Q1.94,-6.86 1.92,-6.11 L0.60,-6.11 Q0.64,-7.48 1.42,-8.20 Q2.21,-8.93 3.42,-8.93 Q4.73,-8.93 5.47,-8.21 Q6.20,-7.49 6.20,-6.29 Q6.20,-5.42 5.77,-4.63 Q5.33,-3.83 4.72,-3.20 Q4.12,-2.57 3.18,-1.74 L2.64,-1.26 L6.44,-1.26 L6.44,-0.12 L0.61,-0.12 L0.61,-1.12 L1.48,-1.86 Z M8.40,-1.86 Q9.55,-2.86 10.22,-3.50 Q10.88,-4.14 11.33,-4.84 Q11.77,-5.53 11.77,-6.23 Q11.77,-6.95 11.43,-7.36 Q11.09,-7.76 10.36,-7.76 Q9.65,-7.76 9.26,-7.31 Q8.87,-6.86 8.84,-6.11 L7.52,-6.11 Q7.56,-7.48 8.35,-8.20 Q9.13,-8.93 10.34,-8.93 Q11.65,-8.93 12.39,-8.21 Q13.13,-7.49 13.13,-6.29 Q13.13,-5.42 12.69,-4.63 Q12.25,-3.83 11.65,-3.20 Q11.04,-2.57 10.10,-1.74 L9.56,-1.26 L13.37,-1.26 L13.37,-0.12 L7.54,-0.12 L7.54,-1.12 L8.40,-1.86 Z"/>
16
+ </g>
17
+ </svg>
18
+ <text x="168" y="123" font-family="DIN Alternate" font-weight="bold" font-size="86" letter-spacing="1" fill="#000">TokenJam</text>
19
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="54 32 132 132" fill="none" stroke="#000" stroke-width="7" stroke-linecap="round" stroke-linejoin="round">
2
+ <rect x="74" y="44" width="92" height="20" rx="6" ry="6"/>
3
+ <path d="M 104 72 L 74 72 L 74 152 L 104 152"/>
4
+ <path d="M 136 72 L 166 72 L 166 152 L 136 152"/>
5
+ <g fill="#000" stroke="none" fill-rule="evenodd">
6
+ <path transform="translate(85.68,104)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
7
+ <path transform="translate(106.83,107)" d="M0.54,-7.50 L0.54,-8.75 L3.04,-8.75 L3.04,-0.00 L1.66,-0.00 L1.66,-7.50 L0.54,-7.50 Z M4.74,-7.50 L4.74,-8.75 L7.24,-8.75 L7.24,-0.00 L5.86,-0.00 L5.86,-7.50 L4.74,-7.50 Z"/>
8
+ <path transform="translate(123.97,104)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
9
+ <path transform="translate(145.12,107)" d="M0.54,-7.50 L0.54,-8.75 L3.04,-8.75 L3.04,-0.00 L1.66,-0.00 L1.66,-7.50 L0.54,-7.50 Z M5.68,-1.86 Q6.83,-2.86 7.49,-3.50 Q8.16,-4.14 8.60,-4.84 Q9.05,-5.53 9.05,-6.23 Q9.05,-6.95 8.71,-7.36 Q8.36,-7.76 7.63,-7.76 Q6.92,-7.76 6.53,-7.31 Q6.14,-6.86 6.12,-6.11 L4.80,-6.11 Q4.84,-7.48 5.62,-8.20 Q6.41,-8.93 7.62,-8.93 Q8.93,-8.93 9.67,-8.21 Q10.40,-7.49 10.40,-6.29 Q10.40,-5.42 9.97,-4.63 Q9.53,-3.83 8.92,-3.20 Q8.32,-2.57 7.38,-1.74 L6.84,-1.26 L10.64,-1.26 L10.64,-0.12 L4.81,-0.12 L4.81,-1.12 L5.68,-1.86 Z"/>
10
+ <path transform="translate(84.35,128)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
11
+ <path transform="translate(105.44,131)" d="M1.48,-1.86 Q2.63,-2.86 3.29,-3.50 Q3.96,-4.14 4.40,-4.84 Q4.85,-5.53 4.85,-6.23 Q4.85,-6.95 4.51,-7.36 Q4.16,-7.76 3.43,-7.76 Q2.72,-7.76 2.33,-7.31 Q1.94,-6.86 1.92,-6.11 L0.60,-6.11 Q0.64,-7.48 1.42,-8.20 Q2.21,-8.93 3.42,-8.93 Q4.73,-8.93 5.47,-8.21 Q6.20,-7.49 6.20,-6.29 Q6.20,-5.42 5.77,-4.63 Q5.33,-3.83 4.72,-3.20 Q4.12,-2.57 3.18,-1.74 L2.64,-1.26 L6.44,-1.26 L6.44,-0.12 L0.61,-0.12 L0.61,-1.12 L1.48,-1.86 Z M7.46,-7.50 L7.46,-8.75 L9.96,-8.75 L9.96,-0.00 L8.58,-0.00 L8.58,-7.50 L7.46,-7.50 Z"/>
12
+ <path transform="translate(122.64,128)" d="M21.19,-14.32 L16.75,-0.00 L13.63,-0.00 L10.74,-10.58 L7.85,-0.00 L4.73,-0.00 L0.26,-14.32 L3.27,-14.32 L6.26,-2.81 L9.31,-14.32 L12.40,-14.32 L15.32,-2.86 L18.28,-14.32 L21.19,-14.32 Z"/>
13
+ <path transform="translate(143.73,131)" d="M1.48,-1.86 Q2.63,-2.86 3.29,-3.50 Q3.96,-4.14 4.40,-4.84 Q4.85,-5.53 4.85,-6.23 Q4.85,-6.95 4.51,-7.36 Q4.16,-7.76 3.43,-7.76 Q2.72,-7.76 2.33,-7.31 Q1.94,-6.86 1.92,-6.11 L0.60,-6.11 Q0.64,-7.48 1.42,-8.20 Q2.21,-8.93 3.42,-8.93 Q4.73,-8.93 5.47,-8.21 Q6.20,-7.49 6.20,-6.29 Q6.20,-5.42 5.77,-4.63 Q5.33,-3.83 4.72,-3.20 Q4.12,-2.57 3.18,-1.74 L2.64,-1.26 L6.44,-1.26 L6.44,-0.12 L0.61,-0.12 L0.61,-1.12 L1.48,-1.86 Z M8.40,-1.86 Q9.55,-2.86 10.22,-3.50 Q10.88,-4.14 11.33,-4.84 Q11.77,-5.53 11.77,-6.23 Q11.77,-6.95 11.43,-7.36 Q11.09,-7.76 10.36,-7.76 Q9.65,-7.76 9.26,-7.31 Q8.87,-6.86 8.84,-6.11 L7.52,-6.11 Q7.56,-7.48 8.35,-8.20 Q9.13,-8.93 10.34,-8.93 Q11.65,-8.93 12.39,-8.21 Q13.13,-7.49 13.13,-6.29 Q13.13,-5.42 12.69,-4.63 Q12.25,-3.83 11.65,-3.20 Q11.04,-2.57 10.10,-1.74 L9.56,-1.26 L13.37,-1.26 L13.37,-0.12 L7.54,-0.12 L7.54,-1.12 L8.40,-1.86 Z"/>
14
+ </g>
15
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="600" height="150" viewBox="0 0 600 150">
2
+ <text x="6" y="112" font-family="DIN Alternate" font-weight="bold" font-size="92" letter-spacing="1" fill="#000">TokenJam</text>
3
+ </svg>