agentharnessapi 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentharnessapi-0.1.0/.env.example +14 -0
- agentharnessapi-0.1.0/.github/workflows/ci.yml +91 -0
- agentharnessapi-0.1.0/.github/workflows/publish.yml +74 -0
- agentharnessapi-0.1.0/.gitignore +213 -0
- agentharnessapi-0.1.0/.pre-commit-config.yaml +26 -0
- agentharnessapi-0.1.0/AGENT.md +1 -0
- agentharnessapi-0.1.0/CLAUDE.md +892 -0
- agentharnessapi-0.1.0/CONTRIBUTING.md +276 -0
- agentharnessapi-0.1.0/IMPLEMENTATION_LOG.md +2549 -0
- agentharnessapi-0.1.0/LICENSE +21 -0
- agentharnessapi-0.1.0/Makefile +173 -0
- agentharnessapi-0.1.0/PKG-INFO +854 -0
- agentharnessapi-0.1.0/PROJECT.md +594 -0
- agentharnessapi-0.1.0/README.md +820 -0
- agentharnessapi-0.1.0/ROADMAP.md +203 -0
- agentharnessapi-0.1.0/SECURITY.md +59 -0
- agentharnessapi-0.1.0/VISION.md +269 -0
- agentharnessapi-0.1.0/development/README.md +41 -0
- agentharnessapi-0.1.0/development/architecture.md +177 -0
- agentharnessapi-0.1.0/development/extending.md +124 -0
- agentharnessapi-0.1.0/development/modules.md +185 -0
- agentharnessapi-0.1.0/development/security.md +87 -0
- agentharnessapi-0.1.0/development/testing.md +118 -0
- agentharnessapi-0.1.0/docs/api/a2a.md +23 -0
- agentharnessapi-0.1.0/docs/api/app.md +15 -0
- agentharnessapi-0.1.0/docs/api/approval.md +17 -0
- agentharnessapi-0.1.0/docs/api/audit.md +39 -0
- agentharnessapi-0.1.0/docs/api/context.md +13 -0
- agentharnessapi-0.1.0/docs/api/dependencies.md +33 -0
- agentharnessapi-0.1.0/docs/api/harness.md +11 -0
- agentharnessapi-0.1.0/docs/api/htmx.md +11 -0
- agentharnessapi-0.1.0/docs/api/interface.md +37 -0
- agentharnessapi-0.1.0/docs/api/llm.md +46 -0
- agentharnessapi-0.1.0/docs/api/mesh.md +10 -0
- agentharnessapi-0.1.0/docs/api/observability.md +63 -0
- agentharnessapi-0.1.0/docs/api/ops.md +9 -0
- agentharnessapi-0.1.0/docs/api/pipeline.md +13 -0
- agentharnessapi-0.1.0/docs/api/policies.md +51 -0
- agentharnessapi-0.1.0/docs/api/sandbox.md +45 -0
- agentharnessapi-0.1.0/docs/api/security.md +35 -0
- agentharnessapi-0.1.0/docs/api/testing.md +27 -0
- agentharnessapi-0.1.0/docs/api/tools.md +39 -0
- agentharnessapi-0.1.0/docs/api/types.md +75 -0
- agentharnessapi-0.1.0/docs/api/upload.md +19 -0
- agentharnessapi-0.1.0/docs/getting-started/examples.md +604 -0
- agentharnessapi-0.1.0/docs/getting-started/installation.md +67 -0
- agentharnessapi-0.1.0/docs/getting-started/quickstart.md +212 -0
- agentharnessapi-0.1.0/docs/guides/a2a.md +60 -0
- agentharnessapi-0.1.0/docs/guides/approval.md +50 -0
- agentharnessapi-0.1.0/docs/guides/architecture.md +233 -0
- agentharnessapi-0.1.0/docs/guides/authentication.md +251 -0
- agentharnessapi-0.1.0/docs/guides/cost-budgeting.md +158 -0
- agentharnessapi-0.1.0/docs/guides/dependency-injection.md +190 -0
- agentharnessapi-0.1.0/docs/guides/eval-harness.md +193 -0
- agentharnessapi-0.1.0/docs/guides/file-handling.md +281 -0
- agentharnessapi-0.1.0/docs/guides/harness.md +128 -0
- agentharnessapi-0.1.0/docs/guides/htmx.md +129 -0
- agentharnessapi-0.1.0/docs/guides/intents.md +95 -0
- agentharnessapi-0.1.0/docs/guides/llm-backends.md +153 -0
- agentharnessapi-0.1.0/docs/guides/memory.md +167 -0
- agentharnessapi-0.1.0/docs/guides/mesh.md +83 -0
- agentharnessapi-0.1.0/docs/guides/observability.md +149 -0
- agentharnessapi-0.1.0/docs/guides/openapi.md +43 -0
- agentharnessapi-0.1.0/docs/guides/ops-agents.md +44 -0
- agentharnessapi-0.1.0/docs/guides/pipelines.md +37 -0
- agentharnessapi-0.1.0/docs/guides/rest-compat.md +125 -0
- agentharnessapi-0.1.0/docs/guides/safety-policies.md +213 -0
- agentharnessapi-0.1.0/docs/guides/security.md +103 -0
- agentharnessapi-0.1.0/docs/guides/sessions.md +44 -0
- agentharnessapi-0.1.0/docs/guides/streaming.md +224 -0
- agentharnessapi-0.1.0/docs/guides/testing.md +101 -0
- agentharnessapi-0.1.0/docs/guides/tool-decorator.md +180 -0
- agentharnessapi-0.1.0/docs/guides/tools.md +80 -0
- agentharnessapi-0.1.0/docs/guides/typed-intents.md +132 -0
- agentharnessapi-0.1.0/docs/index.md +91 -0
- agentharnessapi-0.1.0/docs/internals/architecture.md +241 -0
- agentharnessapi-0.1.0/docs/internals/budgets.md +180 -0
- agentharnessapi-0.1.0/docs/internals/ci.md +181 -0
- agentharnessapi-0.1.0/docs/internals/claude-agent-sdk-extension-plan.md +368 -0
- agentharnessapi-0.1.0/docs/internals/contributing.md +105 -0
- agentharnessapi-0.1.0/docs/internals/current-state.md +246 -0
- agentharnessapi-0.1.0/docs/internals/dependencies.md +101 -0
- agentharnessapi-0.1.0/docs/internals/extending.md +371 -0
- agentharnessapi-0.1.0/docs/internals/extensions.md +311 -0
- agentharnessapi-0.1.0/docs/internals/modules.md +240 -0
- agentharnessapi-0.1.0/docs/internals/observability.md +143 -0
- agentharnessapi-0.1.0/docs/internals/security.md +145 -0
- agentharnessapi-0.1.0/docs/internals/testing.md +120 -0
- agentharnessapi-0.1.0/examples/01_hello_agent/app.py +38 -0
- agentharnessapi-0.1.0/examples/02_ecommerce/app.py +209 -0
- agentharnessapi-0.1.0/examples/03_openai_agent/app.py +331 -0
- agentharnessapi-0.1.0/examples/04_anthropic_agent/app.py +310 -0
- agentharnessapi-0.1.0/examples/05_gemini_agent/app.py +406 -0
- agentharnessapi-0.1.0/examples/06_full_stack/app.py +867 -0
- agentharnessapi-0.1.0/examples/07_comprehensive/app.py +1578 -0
- agentharnessapi-0.1.0/examples/08_mcp_agent/app.py +150 -0
- agentharnessapi-0.1.0/examples/09_auth_agent/app.py +160 -0
- agentharnessapi-0.1.0/examples/10_file_handling/app.py +140 -0
- agentharnessapi-0.1.0/examples/11_html_responses/app.py +296 -0
- agentharnessapi-0.1.0/examples/12_htmx/app.py +252 -0
- agentharnessapi-0.1.0/examples/13_claude_agent_sdk/app.py +271 -0
- agentharnessapi-0.1.0/examples/14_dependency_injection/app.py +543 -0
- agentharnessapi-0.1.0/examples/15_budget_policy/app.py +441 -0
- agentharnessapi-0.1.0/examples/16_observability/app.py +481 -0
- agentharnessapi-0.1.0/examples/16_observability/audit.sqlite +0 -0
- agentharnessapi-0.1.0/examples/17_typed_intents/app.py +406 -0
- agentharnessapi-0.1.0/examples/18_rest_interop/app.py +371 -0
- agentharnessapi-0.1.0/examples/19_native_function_calling/app.py +485 -0
- agentharnessapi-0.1.0/examples/20_streaming_release_control/app.py +476 -0
- agentharnessapi-0.1.0/examples/21_persistent_memory/app.py +634 -0
- agentharnessapi-0.1.0/examples/22_safety_policies/app.py +331 -0
- agentharnessapi-0.1.0/examples/23_eval_harness/app.py +480 -0
- agentharnessapi-0.1.0/examples/23_eval_harness/evals/golden.yaml +79 -0
- agentharnessapi-0.1.0/examples/24_code_cache/app.py +368 -0
- agentharnessapi-0.1.0/examples/25_harness_playground/app.py +342 -0
- agentharnessapi-0.1.0/examples/26_dynamic_pipeline/app.py +300 -0
- agentharnessapi-0.1.0/examples/27_multi_agent_pipeline/app.py +90 -0
- agentharnessapi-0.1.0/examples/README.md +1667 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/README.md +161 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/examples/01_simple_query.py +33 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/examples/02_with_agenticapi_tools.py +73 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/examples/03_with_audit.py +63 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/examples/README.md +18 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/pyproject.toml +71 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/__init__.py +75 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/_imports.py +70 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/backend.py +171 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/exceptions.py +57 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/messages.py +327 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/options.py +72 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/permissions.py +346 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/py.typed +0 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/runner.py +331 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/src/agenticapi_claude_agent_sdk/tools.py +161 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/__init__.py +0 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/conftest.py +300 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_backend.py +87 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_imports.py +49 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_messages.py +147 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_permissions.py +109 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_runner.py +171 -0
- agentharnessapi-0.1.0/extensions/agenticapi-claude-agent-sdk/tests/test_tools.py +99 -0
- agentharnessapi-0.1.0/mkdocs.yml +137 -0
- agentharnessapi-0.1.0/pyproject.toml +112 -0
- agentharnessapi-0.1.0/src/agenticapi/__init__.py +159 -0
- agentharnessapi-0.1.0/src/agenticapi/_compat.py +12 -0
- agentharnessapi-0.1.0/src/agenticapi/app.py +1716 -0
- agentharnessapi-0.1.0/src/agenticapi/application/__init__.py +11 -0
- agentharnessapi-0.1.0/src/agenticapi/application/pipeline.py +164 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/__init__.py +0 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/console.py +136 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/dev.py +54 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/eval.py +119 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/init.py +237 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/main.py +143 -0
- agentharnessapi-0.1.0/src/agenticapi/cli/replay.py +394 -0
- agentharnessapi-0.1.0/src/agenticapi/dependencies/__init__.py +56 -0
- agentharnessapi-0.1.0/src/agenticapi/dependencies/depends.py +81 -0
- agentharnessapi-0.1.0/src/agenticapi/dependencies/scanner.py +306 -0
- agentharnessapi-0.1.0/src/agenticapi/dependencies/solver.py +271 -0
- agentharnessapi-0.1.0/src/agenticapi/evaluation/__init__.py +52 -0
- agentharnessapi-0.1.0/src/agenticapi/evaluation/judges.py +322 -0
- agentharnessapi-0.1.0/src/agenticapi/evaluation/runner.py +413 -0
- agentharnessapi-0.1.0/src/agenticapi/exceptions.py +164 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/__init__.py +107 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/approval/__init__.py +23 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/approval/notifiers.py +63 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/approval/rules.py +76 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/approval/workflow.py +306 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/audit/__init__.py +30 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/audit/exporters.py +200 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/audit/recorder.py +177 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/audit/sqlite_store.py +442 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/audit/trace.py +59 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/engine.py +514 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/__init__.py +59 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/autonomy_policy.py +360 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/base.py +143 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/budget_policy.py +345 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/code_policy.py +161 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/data_policy.py +237 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/evaluator.py +271 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/pii_policy.py +460 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/pricing.py +179 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/prompt_injection_policy.py +347 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/resource_policy.py +138 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/policy/runtime_policy.py +105 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/__init__.py +50 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/base.py +105 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/monitors.py +184 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/process.py +236 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/static_analysis.py +288 -0
- agentharnessapi-0.1.0/src/agenticapi/harness/sandbox/validators.py +166 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/__init__.py +65 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/a2a/__init__.py +18 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/a2a/capability.py +93 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/a2a/protocol.py +83 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/a2a/trust.py +122 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/approval_registry.py +167 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/compat/__init__.py +24 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/compat/fastapi.py +84 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/compat/mcp.py +188 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/compat/rest.py +211 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/endpoint.py +84 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/htmx.py +130 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/intent.py +685 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/response.py +276 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/session.py +201 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/stream.py +688 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/stream_store.py +277 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/tasks.py +90 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/transports/__init__.py +0 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/transports/ndjson.py +201 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/transports/sse.py +231 -0
- agentharnessapi-0.1.0/src/agenticapi/interface/upload.py +54 -0
- agentharnessapi-0.1.0/src/agenticapi/mesh/__init__.py +16 -0
- agentharnessapi-0.1.0/src/agenticapi/mesh/context.py +125 -0
- agentharnessapi-0.1.0/src/agenticapi/mesh/mesh.py +176 -0
- agentharnessapi-0.1.0/src/agenticapi/observability/__init__.py +80 -0
- agentharnessapi-0.1.0/src/agenticapi/observability/metrics.py +340 -0
- agentharnessapi-0.1.0/src/agenticapi/observability/propagation.py +131 -0
- agentharnessapi-0.1.0/src/agenticapi/observability/semconv.py +115 -0
- agentharnessapi-0.1.0/src/agenticapi/observability/tracing.py +285 -0
- agentharnessapi-0.1.0/src/agenticapi/openapi.py +431 -0
- agentharnessapi-0.1.0/src/agenticapi/ops/__init__.py +10 -0
- agentharnessapi-0.1.0/src/agenticapi/ops/base.py +146 -0
- agentharnessapi-0.1.0/src/agenticapi/params.py +40 -0
- agentharnessapi-0.1.0/src/agenticapi/py.typed +0 -0
- agentharnessapi-0.1.0/src/agenticapi/routing.py +136 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/__init__.py +50 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/code_cache.py +286 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/code_generator.py +206 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/context.py +149 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/envelope.py +195 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/__init__.py +35 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/anthropic.py +234 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/base.py +187 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/gemini.py +317 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/mock.py +276 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/openai.py +234 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/llm/retry.py +96 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/memory/__init__.py +36 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/memory/base.py +250 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/memory/sqlite_store.py +321 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/prompts/__init__.py +11 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/prompts/code_generation.py +209 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/prompts/intent_parsing.py +113 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/__init__.py +28 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/base.py +70 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/cache.py +152 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/database.py +155 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/decorator.py +273 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/http_client.py +151 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/queue.py +143 -0
- agentharnessapi-0.1.0/src/agenticapi/runtime/tools/registry.py +127 -0
- agentharnessapi-0.1.0/src/agenticapi/security.py +319 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/__init__.py +29 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/agent_test_case.py +151 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/assertions.py +100 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/benchmark.py +144 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/fixtures.py +64 -0
- agentharnessapi-0.1.0/src/agenticapi/testing/mocks.py +151 -0
- agentharnessapi-0.1.0/src/agenticapi/types.py +38 -0
- agentharnessapi-0.1.0/tests/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/benchmarks/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/benchmarks/bench_intent_parsing.py +61 -0
- agentharnessapi-0.1.0/tests/benchmarks/bench_policy_evaluation.py +79 -0
- agentharnessapi-0.1.0/tests/benchmarks/bench_sandbox_startup.py +34 -0
- agentharnessapi-0.1.0/tests/benchmarks/bench_static_analysis.py +71 -0
- agentharnessapi-0.1.0/tests/conftest.py +23 -0
- agentharnessapi-0.1.0/tests/e2e/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/e2e/test_examples.py +3449 -0
- agentharnessapi-0.1.0/tests/e2e/test_full_request_cycle.py +218 -0
- agentharnessapi-0.1.0/tests/integration/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/integration/test_auth_flow.py +225 -0
- agentharnessapi-0.1.0/tests/integration/test_endpoint_flow.py +91 -0
- agentharnessapi-0.1.0/tests/integration/test_fastapi_compat.py +47 -0
- agentharnessapi-0.1.0/tests/integration/test_harness_flow.py +216 -0
- agentharnessapi-0.1.0/tests/unit/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/a2a/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/a2a/test_capability.py +58 -0
- agentharnessapi-0.1.0/tests/unit/a2a/test_protocol.py +88 -0
- agentharnessapi-0.1.0/tests/unit/a2a/test_trust.py +65 -0
- agentharnessapi-0.1.0/tests/unit/application/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/application/test_pipeline.py +126 -0
- agentharnessapi-0.1.0/tests/unit/cli/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/cli/test_init.py +73 -0
- agentharnessapi-0.1.0/tests/unit/dependencies/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/dependencies/test_depends.py +327 -0
- agentharnessapi-0.1.0/tests/unit/harness/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/harness/policy/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/harness/policy/test_budget_policy.py +244 -0
- agentharnessapi-0.1.0/tests/unit/harness/policy/test_pii_policy.py +341 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_approval.py +262 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_audit_exporters.py +107 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_audit_recorder.py +105 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_code_policy.py +112 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_data_policy.py +156 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_monitors.py +108 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_policy_evaluator.py +95 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_pre_llm_policy.py +237 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_runtime_policy.py +65 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_sandbox.py +165 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_sqlite_audit_recorder.py +261 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_static_analysis.py +167 -0
- agentharnessapi-0.1.0/tests/unit/harness/test_validators.py +111 -0
- agentharnessapi-0.1.0/tests/unit/mesh/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/mesh/test_mesh.py +175 -0
- agentharnessapi-0.1.0/tests/unit/observability/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/observability/test_metrics.py +98 -0
- agentharnessapi-0.1.0/tests/unit/observability/test_propagation.py +90 -0
- agentharnessapi-0.1.0/tests/unit/observability/test_tracing.py +82 -0
- agentharnessapi-0.1.0/tests/unit/ops/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/ops/test_ops_base.py +88 -0
- agentharnessapi-0.1.0/tests/unit/runtime/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/test_anthropic_tool_calls.py +227 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/test_gemini_tool_calls.py +233 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/test_openai_tool_calls.py +227 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/test_retry.py +97 -0
- agentharnessapi-0.1.0/tests/unit/runtime/llm/test_tool_calls.py +134 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_cache_tool.py +88 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_code_generator.py +99 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_context.py +102 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_gemini_backend.py +228 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_http_client_tool.py +120 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_llm_backend.py +104 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_openai_backend.py +221 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_prompts.py +122 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_queue_tool.py +100 -0
- agentharnessapi-0.1.0/tests/unit/runtime/test_tool_registry.py +97 -0
- agentharnessapi-0.1.0/tests/unit/runtime/tools/__init__.py +0 -0
- agentharnessapi-0.1.0/tests/unit/runtime/tools/test_decorator.py +235 -0
- agentharnessapi-0.1.0/tests/unit/test_agent_test_case.py +82 -0
- agentharnessapi-0.1.0/tests/unit/test_app.py +375 -0
- agentharnessapi-0.1.0/tests/unit/test_background_tasks.py +165 -0
- agentharnessapi-0.1.0/tests/unit/test_benchmark_runner.py +72 -0
- agentharnessapi-0.1.0/tests/unit/test_bugfix_regressions.py +206 -0
- agentharnessapi-0.1.0/tests/unit/test_cli_console.py +36 -0
- agentharnessapi-0.1.0/tests/unit/test_compat.py +147 -0
- agentharnessapi-0.1.0/tests/unit/test_custom_responses.py +111 -0
- agentharnessapi-0.1.0/tests/unit/test_dx_integration.py +258 -0
- agentharnessapi-0.1.0/tests/unit/test_file_response.py +161 -0
- agentharnessapi-0.1.0/tests/unit/test_file_upload.py +151 -0
- agentharnessapi-0.1.0/tests/unit/test_fixtures.py +34 -0
- agentharnessapi-0.1.0/tests/unit/test_htmx.py +173 -0
- agentharnessapi-0.1.0/tests/unit/test_increment6.py +569 -0
- agentharnessapi-0.1.0/tests/unit/test_increment7.py +819 -0
- agentharnessapi-0.1.0/tests/unit/test_intent.py +173 -0
- agentharnessapi-0.1.0/tests/unit/test_mcp_compat.py +317 -0
- agentharnessapi-0.1.0/tests/unit/test_mock_sandbox.py +68 -0
- agentharnessapi-0.1.0/tests/unit/test_openapi.py +249 -0
- agentharnessapi-0.1.0/tests/unit/test_params.py +25 -0
- agentharnessapi-0.1.0/tests/unit/test_response.py +148 -0
- agentharnessapi-0.1.0/tests/unit/test_route_dependencies.py +146 -0
- agentharnessapi-0.1.0/tests/unit/test_security.py +372 -0
- agentharnessapi-0.1.0/tests/unit/test_session.py +156 -0
- agentharnessapi-0.1.0/tests/unit/test_streaming.py +398 -0
- agentharnessapi-0.1.0/tests/unit/test_streaming_increment5.py +587 -0
- agentharnessapi-0.1.0/tests/unit/test_typed_intents.py +268 -0
- agentharnessapi-0.1.0/uv.lock +1808 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# AgenticAPI Environment Variables
|
|
2
|
+
# Copy this file to .env and fill in your values.
|
|
3
|
+
# Never commit .env to version control.
|
|
4
|
+
|
|
5
|
+
# --- LLM API Keys (set the one(s) you use) ---
|
|
6
|
+
|
|
7
|
+
# Anthropic (Claude) — https://console.anthropic.com/
|
|
8
|
+
ANTHROPIC_API_KEY=
|
|
9
|
+
|
|
10
|
+
# OpenAI (GPT) — https://platform.openai.com/api-keys
|
|
11
|
+
OPENAI_API_KEY=
|
|
12
|
+
|
|
13
|
+
# Google (Gemini) — https://aistudio.google.com/apikey
|
|
14
|
+
GOOGLE_API_KEY=
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
pre-commit:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.13"
|
|
24
|
+
- uses: pre-commit/action@v3.0.1
|
|
25
|
+
|
|
26
|
+
lint:
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
- uses: astral-sh/setup-uv@v6
|
|
31
|
+
with:
|
|
32
|
+
enable-cache: true
|
|
33
|
+
- uses: actions/setup-python@v5
|
|
34
|
+
with:
|
|
35
|
+
python-version: "3.13"
|
|
36
|
+
- run: uv sync --group dev
|
|
37
|
+
- run: uv run ruff format --check src/ tests/
|
|
38
|
+
- run: uv run ruff check src/ tests/
|
|
39
|
+
|
|
40
|
+
typecheck:
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
- uses: astral-sh/setup-uv@v6
|
|
45
|
+
with:
|
|
46
|
+
enable-cache: true
|
|
47
|
+
- uses: actions/setup-python@v5
|
|
48
|
+
with:
|
|
49
|
+
python-version: "3.13"
|
|
50
|
+
- run: uv sync --group dev
|
|
51
|
+
- run: uv run mypy src/agenticapi/
|
|
52
|
+
|
|
53
|
+
test:
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
strategy:
|
|
56
|
+
matrix:
|
|
57
|
+
python-version: ["3.13"]
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v4
|
|
60
|
+
- uses: astral-sh/setup-uv@v6
|
|
61
|
+
with:
|
|
62
|
+
enable-cache: true
|
|
63
|
+
- uses: actions/setup-python@v5
|
|
64
|
+
with:
|
|
65
|
+
python-version: ${{ matrix.python-version }}
|
|
66
|
+
- run: uv sync --group dev
|
|
67
|
+
- run: uv run pytest --ignore=tests/benchmarks --ignore=tests/e2e -q --cov=src/agenticapi --cov-report=xml
|
|
68
|
+
- uses: actions/upload-artifact@v4
|
|
69
|
+
if: always()
|
|
70
|
+
with:
|
|
71
|
+
name: coverage-report
|
|
72
|
+
path: coverage.xml
|
|
73
|
+
|
|
74
|
+
docs:
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
needs: [lint, typecheck, test]
|
|
77
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
78
|
+
permissions:
|
|
79
|
+
contents: write
|
|
80
|
+
pages: write
|
|
81
|
+
id-token: write
|
|
82
|
+
steps:
|
|
83
|
+
- uses: actions/checkout@v4
|
|
84
|
+
- uses: astral-sh/setup-uv@v6
|
|
85
|
+
with:
|
|
86
|
+
enable-cache: true
|
|
87
|
+
- uses: actions/setup-python@v5
|
|
88
|
+
with:
|
|
89
|
+
python-version: "3.13"
|
|
90
|
+
- run: uv sync --group docs
|
|
91
|
+
- run: uv run mkdocs gh-deploy --force
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Publish to PyPI on every push/merge to main.
|
|
2
|
+
#
|
|
3
|
+
# Setup (one-time):
|
|
4
|
+
# 1. Go to https://pypi.org → Account Settings → Publishing →
|
|
5
|
+
# "Add a new pending publisher"
|
|
6
|
+
# 2. Fill in:
|
|
7
|
+
# PyPI project name: agentharnessapi
|
|
8
|
+
# Owner: shibuiwilliam
|
|
9
|
+
# Repository: AgenticAPI
|
|
10
|
+
# Workflow name: publish.yml
|
|
11
|
+
# Environment name: pypi
|
|
12
|
+
# 3. Go to GitHub repo → Settings → Environments → New environment
|
|
13
|
+
# named "pypi" (this gates the deployment with a manual approval
|
|
14
|
+
# if you add a reviewer, or runs automatically if you don't).
|
|
15
|
+
#
|
|
16
|
+
# The workflow uses PyPI's "Trusted Publisher" (OIDC) — no API tokens
|
|
17
|
+
# or passwords are stored in GitHub Secrets.
|
|
18
|
+
|
|
19
|
+
name: Publish to PyPI
|
|
20
|
+
|
|
21
|
+
on:
|
|
22
|
+
push:
|
|
23
|
+
branches: [main]
|
|
24
|
+
|
|
25
|
+
permissions:
|
|
26
|
+
contents: read
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
# ── Gate: full CI must pass before publishing ──────────────────────
|
|
30
|
+
test:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
|
+
- uses: astral-sh/setup-uv@v6
|
|
35
|
+
with:
|
|
36
|
+
enable-cache: true
|
|
37
|
+
- uses: actions/setup-python@v5
|
|
38
|
+
with:
|
|
39
|
+
python-version: "3.13"
|
|
40
|
+
- run: uv sync --group dev
|
|
41
|
+
- run: uv run ruff format --check src/ tests/ examples/
|
|
42
|
+
- run: uv run ruff check src/ tests/ examples/
|
|
43
|
+
- run: uv run mypy src/agenticapi/
|
|
44
|
+
- run: uv run pytest --ignore=tests/benchmarks --ignore=tests/e2e -q
|
|
45
|
+
|
|
46
|
+
# ── Build sdist + wheel ────────────────────────────────────────────
|
|
47
|
+
build:
|
|
48
|
+
needs: test
|
|
49
|
+
runs-on: ubuntu-latest
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/checkout@v4
|
|
52
|
+
- uses: actions/setup-python@v5
|
|
53
|
+
with:
|
|
54
|
+
python-version: "3.13"
|
|
55
|
+
- run: pip install build
|
|
56
|
+
- run: python -m build
|
|
57
|
+
- uses: actions/upload-artifact@v4
|
|
58
|
+
with:
|
|
59
|
+
name: dist
|
|
60
|
+
path: dist/
|
|
61
|
+
|
|
62
|
+
# ── Publish to PyPI via Trusted Publisher (OIDC) ───────────────────
|
|
63
|
+
publish:
|
|
64
|
+
needs: build
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
environment: pypi
|
|
67
|
+
permissions:
|
|
68
|
+
id-token: write
|
|
69
|
+
steps:
|
|
70
|
+
- uses: actions/download-artifact@v4
|
|
71
|
+
with:
|
|
72
|
+
name: dist
|
|
73
|
+
path: dist/
|
|
74
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
.python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
.vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
.DS_Store
|
|
210
|
+
.claude/
|
|
211
|
+
|
|
212
|
+
harness_playground_audit.sqlite
|
|
213
|
+
agenticapi_memory_demo.sqlite
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
rev: v0.15.9
|
|
4
|
+
hooks:
|
|
5
|
+
- id: ruff-format
|
|
6
|
+
args: [--check, src/, tests/, examples/]
|
|
7
|
+
- id: ruff
|
|
8
|
+
args: [--fix, --exit-non-zero-on-fix, src/, tests/, examples/]
|
|
9
|
+
|
|
10
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
11
|
+
rev: v1.20.0
|
|
12
|
+
hooks:
|
|
13
|
+
- id: mypy
|
|
14
|
+
args: [src/agenticapi/]
|
|
15
|
+
pass_filenames: false
|
|
16
|
+
additional_dependencies:
|
|
17
|
+
- pydantic>=2.12.5
|
|
18
|
+
- starlette>=1.0.0
|
|
19
|
+
- structlog>=25.5.0
|
|
20
|
+
- httpx>=0.28.1
|
|
21
|
+
- openai>=2.30.0
|
|
22
|
+
- anthropic>=0.89.0
|
|
23
|
+
- google-genai>=1.70.0
|
|
24
|
+
- python-multipart>=0.0.20
|
|
25
|
+
- uvicorn>=0.34.0
|
|
26
|
+
- mcp>=1.27.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CLAUDE.md
|