badgerflow 0.2.0__tar.gz → 0.2.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 (199) hide show
  1. {badgerflow-0.2.0/badgerflow.egg-info → badgerflow-0.2.1}/PKG-INFO +42 -8
  2. {badgerflow-0.2.0 → badgerflow-0.2.1}/README.md +41 -7
  3. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/__init__.py +1 -1
  4. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/main.py +30 -5
  5. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/plugin.py +400 -41
  6. badgerflow-0.2.1/badgerflow/cli/plugin_call.py +191 -0
  7. badgerflow-0.2.1/badgerflow/cli/plugin_image.py +244 -0
  8. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/plugin_scaffold.py +156 -10
  9. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/README.md +1 -1
  10. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/constants.py +15 -2
  11. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-policy_violation.json +1 -1
  12. badgerflow-0.2.1/badgerflow/contract/examples/ir.hash +1 -0
  13. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/ir.json +38 -0
  14. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/manifest.json +39 -1
  15. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/invoke-request.schema.json +1 -1
  16. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/ir.schema.json +72 -26
  17. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/manifest.schema.json +124 -51
  18. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/knowledge/client.py +9 -5
  19. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/compile.py +196 -83
  20. badgerflow-0.2.1/badgerflow/plugin/conformance.py +297 -0
  21. badgerflow-0.2.1/badgerflow/plugin/egress_proxy.py +368 -0
  22. badgerflow-0.2.1/badgerflow/plugin/envelope.py +71 -0
  23. badgerflow-0.2.1/badgerflow/plugin/oci.py +446 -0
  24. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/testing.py +15 -20
  25. badgerflow-0.2.1/badgerflow/procode/actor.py +118 -0
  26. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/context.py +7 -0
  27. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/tools/client.py +17 -1
  28. {badgerflow-0.2.0 → badgerflow-0.2.1/badgerflow.egg-info}/PKG-INFO +42 -8
  29. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/SOURCES.txt +11 -0
  30. {badgerflow-0.2.0 → badgerflow-0.2.1}/pyproject.toml +1 -1
  31. badgerflow-0.2.1/tests/test_actor_tokens.py +200 -0
  32. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli.py +9 -4
  33. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_plugin.py +172 -1
  34. badgerflow-0.2.1/tests/test_cli_plugin_call.py +232 -0
  35. badgerflow-0.2.1/tests/test_cli_plugin_image.py +261 -0
  36. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_register.py +1 -1
  37. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_constants.py +8 -2
  38. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_hash.py +1 -1
  39. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_schemas.py +2 -0
  40. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_export_golden.py +12 -4
  41. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_import.py +2 -2
  42. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_compile.py +106 -22
  43. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_stream.py +3 -1
  44. badgerflow-0.2.1/tests/test_plugin_egress_proxy.py +191 -0
  45. badgerflow-0.2.1/tests/test_plugin_oci.py +445 -0
  46. badgerflow-0.2.0/badgerflow/contract/examples/ir.hash +0 -1
  47. badgerflow-0.2.0/badgerflow/plugin/conformance.py +0 -166
  48. {badgerflow-0.2.0 → badgerflow-0.2.1}/LICENSE +0 -0
  49. {badgerflow-0.2.0 → badgerflow-0.2.1}/NOTICE +0 -0
  50. {badgerflow-0.2.0 → badgerflow-0.2.1}/agiel/__init__.py +0 -0
  51. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/auth/__init__.py +0 -0
  52. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/auth/run_token.py +0 -0
  53. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/__init__.py +0 -0
  54. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/preview.py +0 -0
  55. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/project.py +0 -0
  56. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/cli/scaffold.py +0 -0
  57. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/__init__.py +0 -0
  58. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/__init__.py +0 -0
  59. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/autogen.py +0 -0
  60. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/crewai.py +0 -0
  61. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/adapters/langchain.py +0 -0
  62. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/__init__.py +0 -0
  63. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/main.py +0 -0
  64. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/cli/manifest.py +0 -0
  65. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/client.py +0 -0
  66. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/exceptions.py +0 -0
  67. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/__init__.py +0 -0
  68. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/agents.py +0 -0
  69. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/auth.py +0 -0
  70. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/dependencies.py +0 -0
  71. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/guardrail_profiles.py +0 -0
  72. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/guardrails.py +0 -0
  73. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/models.py +0 -0
  74. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/namespaces.py +0 -0
  75. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/rag.py +0 -0
  76. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/releases.py +0 -0
  77. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/webhooks.py +0 -0
  78. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/client/resources/workflows.py +0 -0
  79. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/connectors/__init__.py +0 -0
  80. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/connectors/client.py +0 -0
  81. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/__init__.py +0 -0
  82. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/event.schema.json +0 -0
  83. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-complete.json +0 -0
  84. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-pause_review.json +0 -0
  85. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-step_completed.json +0 -0
  86. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/event-step_started.json +0 -0
  87. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-request.json +0 -0
  88. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-completed.json +0 -0
  89. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-failed.json +0 -0
  90. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/examples/invoke-response-paused.json +0 -0
  91. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/hash.py +0 -0
  92. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/invoke-response.schema.json +0 -0
  93. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/pause.py +0 -0
  94. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/README.md +0 -0
  95. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/__init__.py +0 -0
  96. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/attestation.py +0 -0
  97. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/constants.py +0 -0
  98. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-call-meta--credential-field-not-an-identifier.json +0 -0
  99. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-call-meta--missing-namespace.json +0 -0
  100. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--any-allowed-with-aliases.json +0 -0
  101. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--credentials-without-form.json +0 -0
  102. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--duplicate-tool.json +0 -0
  103. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--egress-with-scheme.json +0 -0
  104. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--no-tools.json +0 -0
  105. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--non-object-output-schema.json +0 -0
  106. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--select-without-options.json +0 -0
  107. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--stale-schema-hash.json +0 -0
  108. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--typo-in-tool.json +0 -0
  109. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--unknown-effect.json +0 -0
  110. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--unknown-permission.json +0 -0
  111. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--uppercase-name.json +0 -0
  112. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--wildcard-egress.json +0 -0
  113. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-manifest--wrong-manifest-hash.json +0 -0
  114. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--audience-not-derived-from-perms.json +0 -0
  115. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--installation-mismatch.json +0 -0
  116. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--outlives-a-tool-call.json +0 -0
  117. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--run-token-marker.json +0 -0
  118. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/invalid/plugin-token--unknown-audience.json +0 -0
  119. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-attestation.json +0 -0
  120. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-attestation.trust.json +0 -0
  121. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-call-meta.json +0 -0
  122. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-manifest.json +0 -0
  123. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/examples/plugin-token.json +0 -0
  124. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/hash.py +0 -0
  125. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-call-meta.schema.json +0 -0
  126. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-manifest.schema.json +0 -0
  127. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/plugin-token.schema.json +0 -0
  128. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/plugin/validate.py +0 -0
  129. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/contract/validate.py +0 -0
  130. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/__init__.py +0 -0
  131. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/emitter.py +0 -0
  132. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/events/steps.py +0 -0
  133. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/guardrails/__init__.py +0 -0
  134. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/guardrails/client.py +0 -0
  135. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/knowledge/__init__.py +0 -0
  136. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/__init__.py +0 -0
  137. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/agent.py +0 -0
  138. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/callback.py +0 -0
  139. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/chat.py +0 -0
  140. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/checkpoint.py +0 -0
  141. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/tools.py +0 -0
  142. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/langgraph/uses.py +0 -0
  143. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/llm/__init__.py +0 -0
  144. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/llm/client.py +0 -0
  145. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/ontology/__init__.py +0 -0
  146. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/ontology/client.py +0 -0
  147. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/__init__.py +0 -0
  148. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/logs.py +0 -0
  149. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/metrics.py +0 -0
  150. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/scope.py +0 -0
  151. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/spans.py +0 -0
  152. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/otel/tracing.py +0 -0
  153. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/__init__.py +0 -0
  154. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/context.py +0 -0
  155. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/definition.py +0 -0
  156. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/errors.py +0 -0
  157. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/server.py +0 -0
  158. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/plugin/signing.py +0 -0
  159. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/__init__.py +0 -0
  160. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/app.py +0 -0
  161. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/clients.py +0 -0
  162. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/config.py +0 -0
  163. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/current.py +0 -0
  164. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/errors.py +0 -0
  165. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/stepctx.py +0 -0
  166. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/procode/transport.py +0 -0
  167. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow/tools/__init__.py +0 -0
  168. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/dependency_links.txt +0 -0
  169. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/entry_points.txt +0 -0
  170. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/requires.txt +0 -0
  171. {badgerflow-0.2.0 → badgerflow-0.2.1}/badgerflow.egg-info/top_level.txt +0 -0
  172. {badgerflow-0.2.0 → badgerflow-0.2.1}/setup.cfg +0 -0
  173. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_agent_card.py +0 -0
  174. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_claims_chat_example.py +0 -0
  175. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_claims_triage_example.py +0 -0
  176. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_preview.py +0 -0
  177. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_cli_release.py +0 -0
  178. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_context_steps.py +0 -0
  179. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_contract_pause.py +0 -0
  180. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_events_emitter.py +0 -0
  181. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_governed_clients.py +0 -0
  182. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_agent.py +0 -0
  183. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_approval_example.py +0 -0
  184. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_checkpoint.py +0 -0
  185. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_langgraph_tools.py +0 -0
  186. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_llm_client.py +0 -0
  187. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_llm_standalone.py +0 -0
  188. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_metrics_endpoint.py +0 -0
  189. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_otel.py +0 -0
  190. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_payout_approval_example.py +0 -0
  191. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_contract.py +0 -0
  192. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_manifest.py +0 -0
  193. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_mcp.py +0 -0
  194. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_storage.py +0 -0
  195. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_plugin_testing.py +0 -0
  196. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_procode_server.py +0 -0
  197. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_proxy_environment.py +0 -0
  198. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_run_token_verifier.py +0 -0
  199. {badgerflow-0.2.0 → badgerflow-0.2.1}/tests/test_slow_review_example.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: badgerflow
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: BadgerFlow Python SDK: governed pro-code agents, the platform REST client, and the bf / agiel CLIs
5
5
  License-Expression: Apache-2.0
6
6
  Keywords: langgraph,agents,llm,governance,badgerflow,mlops
@@ -91,8 +91,10 @@ app = Agent.from_langgraph(build_graph(), name="claims-triage", version="0.1.0",
91
91
  ```
92
92
 
93
93
  Those declarations are the contract. The platform compiles them into a graph it
94
- can render, checks them against what exists in your namespace at release time,
95
- and denies a node at runtime that reaches for something it never declared.
94
+ can render — every node, every conditional edge as a router with its branch
95
+ labels, and the END your graph declares — checks them against what exists in
96
+ your namespace at release time, and denies a node at runtime that reaches for
97
+ something it never declared. `bf compile` shows that graph before you register.
96
98
 
97
99
  ## Work that outlives a request
98
100
 
@@ -141,6 +143,21 @@ Keep large values out of the graph state. The checkpoint travels with the pause
141
143
  and is capped; a state that is too big fails the run with a clear reason rather
142
144
  than producing a pause the platform cannot file. Hold a reference instead.
143
145
 
146
+ ## Answering a chat
147
+
148
+ A chat-triggered agent receives each turn as text. The platform puts that text
149
+ in `input` and, when your input model has exactly one place for it — its one
150
+ required string field, else its one string field — under that field's name in
151
+ `structured` too, so `Input(problem: str, attempt: str = "")` receives the
152
+ turn as `problem`. Two string fields with nothing to tell them apart is left to
153
+ your model's own validation error.
154
+
155
+ Going back, the bubble shows one field of your output model: the one you mark
156
+ with `Field(json_schema_extra={"x-badgerflow-reply": True})`, else one named
157
+ `reply`, `answer`, `response`, `message`, `text` or `content`, else the single
158
+ string field. An output that names none of those shows as its JSON, which is
159
+ the cue to mark the field. A streamed agent's deltas are always the reply.
160
+
144
161
  ## Streaming a run
145
162
 
146
163
  Ask for `text/event-stream` and the invocation answers with the run's event
@@ -257,10 +274,26 @@ Each workspace's credential reaches the tool only inside the platform's call.
257
274
  model outside `models`. A raised exception becomes a tool error the model can
258
275
  read. Test tools in-process with `badgerflow.plugin.testing.PluginTestClient`.
259
276
 
260
- Plugins ship only through your own registry: `bf plugin build`,
261
- `bf plugin publish --registry <yours>`, `bf plugin sign --key <pem>`, then
262
- `bf plugin submit`. The platform imports a package only if a key in the
263
- operator's trust set signed it. `ctx.storage` is a JSON key-value store per calling
277
+ Before shipping, check the built image and call a tool the way the platform would:
278
+
279
+ ```bash
280
+ bf plugin build
281
+ bf plugin validate --image acme-crm:0.1.0 # run non-root, read-only, no capabilities, as the cluster does
282
+ bf plugin call find_customer --image acme-crm:0.1.0 \
283
+ --args '{"email": "ada@example.com"}' --credentials @creds.json
284
+ ```
285
+
286
+ `call` sends the platform's call envelope, credentials included, and with
287
+ `--image` puts the plugin behind a local proxy that allows only `egress` and
288
+ prints each connection; `--url` calls a plugin already serving. `ctx.llm` and
289
+ `ctx.storage` have no local platform there.
290
+
291
+ Plugins ship only through your own registry. `bf plugin publish --registry <yours>
292
+ --key <pem> --keyid <id>` pushes the image by digest over the registry API (no
293
+ cosign, no Docker `insecure-registries`; `--insecure` for plain HTTP) and pushes
294
+ the signed attestation beside it; then `bf plugin submit --image <ref>`. The
295
+ platform imports a package only if a key in the operator's trust set signed it.
296
+ `bf plugin init` also writes a CI workflow that runs these on a version tag. `ctx.storage` is a JSON key-value store per calling
264
297
  workspace under `storage_bytes`, in memory under `PluginTestClient` and on the
265
298
  platform (`BADGERFLOW_PLATFORM_URL`) when served.
266
299
 
@@ -276,7 +309,8 @@ platform (`BADGERFLOW_PLATFORM_URL`) when served.
276
309
  | `bf status` | registration, release, and hash agreement |
277
310
  | `bf release submit \| status` | the governed release and its scorecard |
278
311
  | `bf models` | the models your model key may call, with prices |
279
- | `bf plugin init \| manifest \| test \| validate` | author and check a tool plugin |
312
+ | `bf plugin init \| manifest \| test \| validate [--image]` | author and check a tool plugin, or its image |
313
+ | `bf plugin call <tool> --image \| --url` | one call with the platform's envelope and credentials |
280
314
  | `bf plugin build \| publish \| sign \| submit \| dev` | package, sign and submit it |
281
315
 
282
316
  ## Versioning
@@ -36,8 +36,10 @@ app = Agent.from_langgraph(build_graph(), name="claims-triage", version="0.1.0",
36
36
  ```
37
37
 
38
38
  Those declarations are the contract. The platform compiles them into a graph it
39
- can render, checks them against what exists in your namespace at release time,
40
- and denies a node at runtime that reaches for something it never declared.
39
+ can render — every node, every conditional edge as a router with its branch
40
+ labels, and the END your graph declares — checks them against what exists in
41
+ your namespace at release time, and denies a node at runtime that reaches for
42
+ something it never declared. `bf compile` shows that graph before you register.
41
43
 
42
44
  ## Work that outlives a request
43
45
 
@@ -86,6 +88,21 @@ Keep large values out of the graph state. The checkpoint travels with the pause
86
88
  and is capped; a state that is too big fails the run with a clear reason rather
87
89
  than producing a pause the platform cannot file. Hold a reference instead.
88
90
 
91
+ ## Answering a chat
92
+
93
+ A chat-triggered agent receives each turn as text. The platform puts that text
94
+ in `input` and, when your input model has exactly one place for it — its one
95
+ required string field, else its one string field — under that field's name in
96
+ `structured` too, so `Input(problem: str, attempt: str = "")` receives the
97
+ turn as `problem`. Two string fields with nothing to tell them apart is left to
98
+ your model's own validation error.
99
+
100
+ Going back, the bubble shows one field of your output model: the one you mark
101
+ with `Field(json_schema_extra={"x-badgerflow-reply": True})`, else one named
102
+ `reply`, `answer`, `response`, `message`, `text` or `content`, else the single
103
+ string field. An output that names none of those shows as its JSON, which is
104
+ the cue to mark the field. A streamed agent's deltas are always the reply.
105
+
89
106
  ## Streaming a run
90
107
 
91
108
  Ask for `text/event-stream` and the invocation answers with the run's event
@@ -202,10 +219,26 @@ Each workspace's credential reaches the tool only inside the platform's call.
202
219
  model outside `models`. A raised exception becomes a tool error the model can
203
220
  read. Test tools in-process with `badgerflow.plugin.testing.PluginTestClient`.
204
221
 
205
- Plugins ship only through your own registry: `bf plugin build`,
206
- `bf plugin publish --registry <yours>`, `bf plugin sign --key <pem>`, then
207
- `bf plugin submit`. The platform imports a package only if a key in the
208
- operator's trust set signed it. `ctx.storage` is a JSON key-value store per calling
222
+ Before shipping, check the built image and call a tool the way the platform would:
223
+
224
+ ```bash
225
+ bf plugin build
226
+ bf plugin validate --image acme-crm:0.1.0 # run non-root, read-only, no capabilities, as the cluster does
227
+ bf plugin call find_customer --image acme-crm:0.1.0 \
228
+ --args '{"email": "ada@example.com"}' --credentials @creds.json
229
+ ```
230
+
231
+ `call` sends the platform's call envelope, credentials included, and with
232
+ `--image` puts the plugin behind a local proxy that allows only `egress` and
233
+ prints each connection; `--url` calls a plugin already serving. `ctx.llm` and
234
+ `ctx.storage` have no local platform there.
235
+
236
+ Plugins ship only through your own registry. `bf plugin publish --registry <yours>
237
+ --key <pem> --keyid <id>` pushes the image by digest over the registry API (no
238
+ cosign, no Docker `insecure-registries`; `--insecure` for plain HTTP) and pushes
239
+ the signed attestation beside it; then `bf plugin submit --image <ref>`. The
240
+ platform imports a package only if a key in the operator's trust set signed it.
241
+ `bf plugin init` also writes a CI workflow that runs these on a version tag. `ctx.storage` is a JSON key-value store per calling
209
242
  workspace under `storage_bytes`, in memory under `PluginTestClient` and on the
210
243
  platform (`BADGERFLOW_PLATFORM_URL`) when served.
211
244
 
@@ -221,7 +254,8 @@ platform (`BADGERFLOW_PLATFORM_URL`) when served.
221
254
  | `bf status` | registration, release, and hash agreement |
222
255
  | `bf release submit \| status` | the governed release and its scorecard |
223
256
  | `bf models` | the models your model key may call, with prices |
224
- | `bf plugin init \| manifest \| test \| validate` | author and check a tool plugin |
257
+ | `bf plugin init \| manifest \| test \| validate [--image]` | author and check a tool plugin, or its image |
258
+ | `bf plugin call <tool> --image \| --url` | one call with the platform's envelope and credentials |
225
259
  | `bf plugin build \| publish \| sign \| submit \| dev` | package, sign and submit it |
226
260
 
227
261
  ## Versioning
@@ -25,7 +25,7 @@ thing defined eagerly. ``badgerflow.current()`` — the running invocation's
25
25
 
26
26
  from typing import Any
27
27
 
28
- __version__ = "0.2.0"
28
+ __version__ = "0.2.1"
29
29
 
30
30
  __all__ = ["__version__", "current"]
31
31
 
@@ -316,10 +316,7 @@ def validate(
316
316
  console.print(_requires_table(manifest["requires"]))
317
317
  graph = manifest.get("graph")
318
318
  if graph is not None:
319
- console.print(
320
- f" graph {len(graph['nodes'])} nodes, {len(graph['edges'])} edges, "
321
- f"{len(graph.get('interactions') or ())} interactions — `bf compile` for the IR"
322
- )
319
+ console.print(f" graph {graph_summary(graph)} — `bf compile` for the IR")
323
320
  _print_warnings(agent.warnings)
324
321
  if against:
325
322
  rows, unpreviewable = _preview(cwd, manifest, against)
@@ -499,6 +496,27 @@ def _str_or_none(value: Any) -> str | None:
499
496
  return text or None
500
497
 
501
498
 
499
+ #: How ``bf compile`` names each IR node kind — the SDK's words, not the wire's.
500
+ _NODE_KIND_LABEL = {"procode_node": "node", "procode_router": "router", "procode_end": "end"}
501
+
502
+
503
+ def graph_summary(graph: Mapping[str, Any]) -> str:
504
+ """``"5 nodes, 2 routers, an end, 9 edges, 1 interactions"`` — routers and the
505
+ end counted apart from the stepped nodes, since a reader comparing the line to
506
+ their ``add_node`` calls should find their own number in it."""
507
+ kinds = [n.get("kind") for n in graph.get("nodes") or []]
508
+ stepped = sum(1 for k in kinds if k not in ("procode_router", "procode_end"))
509
+ routers = sum(1 for k in kinds if k == "procode_router")
510
+ parts = [f"{stepped} nodes"]
511
+ if routers:
512
+ parts.append(f"{routers} router{'s' if routers != 1 else ''}")
513
+ if "procode_end" in kinds:
514
+ parts.append("an end")
515
+ parts.append(f"{len(graph.get('edges') or [])} edges")
516
+ parts.append(f"{len(graph.get('interactions') or [])} interactions")
517
+ return ", ".join(parts)
518
+
519
+
502
520
  def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
503
521
  console.print(
504
522
  f"[green]✓[/green] {escape(agent.name)} {escape(agent.version)} — process IR v"
@@ -508,6 +526,7 @@ def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
508
526
  console.print(f" ir_hash {agent.manifest_hash}")
509
527
  nodes = Table(title="nodes", show_header=True, header_style="bold")
510
528
  nodes.add_column("id")
529
+ nodes.add_column("kind")
511
530
  nodes.add_column("determinism")
512
531
  nodes.add_column("uses")
513
532
  for node in graph["nodes"]:
@@ -519,9 +538,15 @@ def _print_graph(agent: Any, graph: Mapping[str, Any]) -> None:
519
538
  parts.append(f"{key}={','.join(map(str, value))}")
520
539
  elif isinstance(value, str) and value:
521
540
  parts.append(f"{key}={value}")
541
+ # A router declares no uses; what it declares is where it routes from.
542
+ if config.get("source"):
543
+ parts.append(f"routes from {escape(str(config['source']))}")
522
544
  if config.get("dynamic"):
523
545
  parts.append("[yellow]dynamic[/yellow]")
524
- nodes.add_row(escape(node["id"]), node["determinism"], " ".join(parts) or "—")
546
+ nodes.add_row(
547
+ escape(node["id"]), _NODE_KIND_LABEL.get(node["kind"], node["kind"]),
548
+ node["determinism"], " ".join(parts) or "—",
549
+ )
525
550
  console.print(nodes)
526
551
  if graph["edges"]:
527
552
  console.print("[bold]edges[/bold]")