flowvane 0.25.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.
- flowvane-0.25.0/.cursor/rules/code.mdc +58 -0
- flowvane-0.25.0/.cursorignore +14 -0
- flowvane-0.25.0/.devcontainer/devcontainer.json +10 -0
- flowvane-0.25.0/.dockerignore +18 -0
- flowvane-0.25.0/.env.example +121 -0
- flowvane-0.25.0/.github/CODEOWNERS +3 -0
- flowvane-0.25.0/.github/copilot-ignore +13 -0
- flowvane-0.25.0/.github/copilot-instructions.md +61 -0
- flowvane-0.25.0/.github/workflows/ci.yml +52 -0
- flowvane-0.25.0/.github/workflows/docs.yml +65 -0
- flowvane-0.25.0/.github/workflows/import-performance.yml +21 -0
- flowvane-0.25.0/.gitignore +71 -0
- flowvane-0.25.0/.gitmessage +60 -0
- flowvane-0.25.0/.pre-commit-config.yaml +25 -0
- flowvane-0.25.0/AGENTS.md +93 -0
- flowvane-0.25.0/CHANGELOG.md +2211 -0
- flowvane-0.25.0/CLAUDE.md +93 -0
- flowvane-0.25.0/Dockerfile +31 -0
- flowvane-0.25.0/LICENSE +18 -0
- flowvane-0.25.0/Makefile +69 -0
- flowvane-0.25.0/PKG-INFO +301 -0
- flowvane-0.25.0/README.md +243 -0
- flowvane-0.25.0/docker-compose.yml +33 -0
- flowvane-0.25.0/docs/architecture/configuration.md +160 -0
- flowvane-0.25.0/docs/architecture/exception-handling.md +173 -0
- flowvane-0.25.0/docs/architecture/extension-registry-design.md +201 -0
- flowvane-0.25.0/docs/architecture/task-orchestration.md +493 -0
- flowvane-0.25.0/docs/assets/favicon.ico +0 -0
- flowvane-0.25.0/docs/assets/logo.svg +35 -0
- flowvane-0.25.0/docs/features/apcore-bridge.md +659 -0
- flowvane-0.25.0/docs/features/cost-governance.md +769 -0
- flowvane-0.25.0/docs/features/durable-execution.md +667 -0
- flowvane-0.25.0/docs/features/function-executor.md +480 -0
- flowvane-0.25.0/docs/features/overview.md +107 -0
- flowvane-0.25.0/docs/features/project-slimming.md +206 -0
- flowvane-0.25.0/docs/features/rest-api.md +423 -0
- flowvane-0.25.0/docs/features/scheduler.md +401 -0
- flowvane-0.25.0/docs/features/storage-migration.md +326 -0
- flowvane-0.25.0/docs/features/task-creator-relaxation.md +234 -0
- flowvane-0.25.0/docs/getting-started/concepts.md +85 -0
- flowvane-0.25.0/docs/getting-started/installation.md +44 -0
- flowvane-0.25.0/docs/getting-started/quick-start.md +238 -0
- flowvane-0.25.0/docs/guides/environment-variables.md +122 -0
- flowvane-0.25.0/docs/guides/task-orchestration.md +160 -0
- flowvane-0.25.0/docs/llms.txt +55 -0
- flowvane-0.25.0/docs/prd.md +694 -0
- flowvane-0.25.0/docs/scripts/generate_executor_docs.py +235 -0
- flowvane-0.25.0/docs/tech-design.md +3301 -0
- flowvane-0.25.0/examples/quickstart.py +101 -0
- flowvane-0.25.0/flowvane-logo.svg +35 -0
- flowvane-0.25.0/mkdocs.yml +119 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/overview.md +27 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/plan.md +367 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/state.json +291 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/bootstrap-identity.md +32 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/core-invariants.md +40 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/durable-dispatch.md +40 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/idempotent-submission.md +32 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/outbound-readiness.md +32 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/retry-errors.md +40 -0
- flowvane-0.25.0/planning/apflow-training-integration-findings/tasks/scope-budget.md +42 -0
- flowvane-0.25.0/planning/overview.md +18 -0
- flowvane-0.25.0/pyproject.toml +127 -0
- flowvane-0.25.0/pyrightconfig.json +7 -0
- flowvane-0.25.0/pytest.ini +23 -0
- flowvane-0.25.0/setup.cfg +4 -0
- flowvane-0.25.0/src/apflow/__init__.py +16 -0
- flowvane-0.25.0/src/flowvane/__init__.py +193 -0
- flowvane-0.25.0/src/flowvane/_environment.py +20 -0
- flowvane-0.25.0/src/flowvane/_version.py +8 -0
- flowvane-0.25.0/src/flowvane/adapters/__init__.py +5 -0
- flowvane-0.25.0/src/flowvane/adapters/function_executor.py +187 -0
- flowvane-0.25.0/src/flowvane/api/__init__.py +14 -0
- flowvane-0.25.0/src/flowvane/api/auth.py +140 -0
- flowvane-0.25.0/src/flowvane/api/combined.py +252 -0
- flowvane-0.25.0/src/flowvane/api/rest.py +534 -0
- flowvane-0.25.0/src/flowvane/api/webhook.py +129 -0
- flowvane-0.25.0/src/flowvane/app.py +225 -0
- flowvane-0.25.0/src/flowvane/bridge/__init__.py +5 -0
- flowvane-0.25.0/src/flowvane/bridge/access.py +212 -0
- flowvane-0.25.0/src/flowvane/bridge/errors.py +22 -0
- flowvane-0.25.0/src/flowvane/bridge/execution_modules.py +221 -0
- flowvane-0.25.0/src/flowvane/bridge/governance_modules.py +255 -0
- flowvane-0.25.0/src/flowvane/bridge/module_adapter.py +118 -0
- flowvane-0.25.0/src/flowvane/bridge/output_schema.py +111 -0
- flowvane-0.25.0/src/flowvane/bridge/protocol.py +242 -0
- flowvane-0.25.0/src/flowvane/bridge/registry_setup.py +191 -0
- flowvane-0.25.0/src/flowvane/bridge/scanner_bridge.py +176 -0
- flowvane-0.25.0/src/flowvane/bridge/schedule_modules.py +432 -0
- flowvane-0.25.0/src/flowvane/bridge/session.py +105 -0
- flowvane-0.25.0/src/flowvane/bridge/task_modules.py +1273 -0
- flowvane-0.25.0/src/flowvane/cli.py +720 -0
- flowvane-0.25.0/src/flowvane/core/__init__.py +230 -0
- flowvane-0.25.0/src/flowvane/core/base/__init__.py +10 -0
- flowvane-0.25.0/src/flowvane/core/base/base_task.py +356 -0
- flowvane-0.25.0/src/flowvane/core/builders.py +155 -0
- flowvane-0.25.0/src/flowvane/core/config/__init__.py +69 -0
- flowvane-0.25.0/src/flowvane/core/config/registry.py +846 -0
- flowvane-0.25.0/src/flowvane/core/config_manager.py +316 -0
- flowvane-0.25.0/src/flowvane/core/decorators.py +83 -0
- flowvane-0.25.0/src/flowvane/core/distributed/__init__.py +25 -0
- flowvane-0.25.0/src/flowvane/core/distributed/config.py +184 -0
- flowvane-0.25.0/src/flowvane/core/distributed/events.py +71 -0
- flowvane-0.25.0/src/flowvane/core/distributed/idempotency.py +132 -0
- flowvane-0.25.0/src/flowvane/core/distributed/leader_election.py +237 -0
- flowvane-0.25.0/src/flowvane/core/distributed/lease_manager.py +429 -0
- flowvane-0.25.0/src/flowvane/core/distributed/node_registry.py +186 -0
- flowvane-0.25.0/src/flowvane/core/distributed/placement.py +123 -0
- flowvane-0.25.0/src/flowvane/core/distributed/runtime.py +397 -0
- flowvane-0.25.0/src/flowvane/core/distributed/types.py +12 -0
- flowvane-0.25.0/src/flowvane/core/distributed/worker.py +446 -0
- flowvane-0.25.0/src/flowvane/core/execution/__init__.py +57 -0
- flowvane-0.25.0/src/flowvane/core/execution/context.py +7 -0
- flowvane-0.25.0/src/flowvane/core/execution/dispatch.py +459 -0
- flowvane-0.25.0/src/flowvane/core/execution/error_info.py +196 -0
- flowvane-0.25.0/src/flowvane/core/execution/errors.py +231 -0
- flowvane-0.25.0/src/flowvane/core/execution/result_protocol.py +181 -0
- flowvane-0.25.0/src/flowvane/core/execution/run_retry.py +347 -0
- flowvane-0.25.0/src/flowvane/core/execution/runs.py +260 -0
- flowvane-0.25.0/src/flowvane/core/execution/streaming_callbacks.py +143 -0
- flowvane-0.25.0/src/flowvane/core/execution/submission.py +103 -0
- flowvane-0.25.0/src/flowvane/core/execution/task_creator.py +1562 -0
- flowvane-0.25.0/src/flowvane/core/execution/task_executor.py +1286 -0
- flowvane-0.25.0/src/flowvane/core/execution/task_manager.py +2193 -0
- flowvane-0.25.0/src/flowvane/core/execution/task_tracker.py +65 -0
- flowvane-0.25.0/src/flowvane/core/extensions/__init__.py +49 -0
- flowvane-0.25.0/src/flowvane/core/extensions/base.py +134 -0
- flowvane-0.25.0/src/flowvane/core/extensions/decorators.py +347 -0
- flowvane-0.25.0/src/flowvane/core/extensions/executor_metadata.py +208 -0
- flowvane-0.25.0/src/flowvane/core/extensions/hook.py +71 -0
- flowvane-0.25.0/src/flowvane/core/extensions/manager.py +375 -0
- flowvane-0.25.0/src/flowvane/core/extensions/protocol.py +72 -0
- flowvane-0.25.0/src/flowvane/core/extensions/registry.py +658 -0
- flowvane-0.25.0/src/flowvane/core/extensions/scanner.py +575 -0
- flowvane-0.25.0/src/flowvane/core/extensions/storage.py +86 -0
- flowvane-0.25.0/src/flowvane/core/extensions/types.py +63 -0
- flowvane-0.25.0/src/flowvane/core/interfaces/__init__.py +26 -0
- flowvane-0.25.0/src/flowvane/core/interfaces/executable_task.py +150 -0
- flowvane-0.25.0/src/flowvane/core/storage/__init__.py +41 -0
- flowvane-0.25.0/src/flowvane/core/storage/context.py +313 -0
- flowvane-0.25.0/src/flowvane/core/storage/dialects/__init__.py +13 -0
- flowvane-0.25.0/src/flowvane/core/storage/dialects/postgres.py +76 -0
- flowvane-0.25.0/src/flowvane/core/storage/dialects/registry.py +71 -0
- flowvane-0.25.0/src/flowvane/core/storage/dialects/sqlite.py +96 -0
- flowvane-0.25.0/src/flowvane/core/storage/factory.py +1200 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrate.py +208 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/001_add_task_tree_fields.py +261 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/002_add_scheduling_fields.py +155 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/003_add_distributed_support.py +223 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/004_add_durability_and_governance.py +180 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/005_add_idempotency_key_unique_index.py +110 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/006_add_service_execution_contracts.py +50 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/007_add_workflow_runs_usage_events.py +99 -0
- flowvane-0.25.0/src/flowvane/core/storage/migrations/__init__.py +83 -0
- flowvane-0.25.0/src/flowvane/core/storage/session.py +28 -0
- flowvane-0.25.0/src/flowvane/core/storage/sqlalchemy/__init__.py +15 -0
- flowvane-0.25.0/src/flowvane/core/storage/sqlalchemy/invariants.py +199 -0
- flowvane-0.25.0/src/flowvane/core/storage/sqlalchemy/models.py +856 -0
- flowvane-0.25.0/src/flowvane/core/storage/sqlalchemy/schedule_calculator.py +466 -0
- flowvane-0.25.0/src/flowvane/core/storage/sqlalchemy/task_repository.py +1892 -0
- flowvane-0.25.0/src/flowvane/core/types.py +328 -0
- flowvane-0.25.0/src/flowvane/core/utils/__init__.py +3 -0
- flowvane-0.25.0/src/flowvane/core/utils/credentials.py +283 -0
- flowvane-0.25.0/src/flowvane/core/utils/helpers.py +484 -0
- flowvane-0.25.0/src/flowvane/core/utils/network_security.py +92 -0
- flowvane-0.25.0/src/flowvane/core/utils/project_detection.py +81 -0
- flowvane-0.25.0/src/flowvane/core/validator/__init__.py +20 -0
- flowvane-0.25.0/src/flowvane/core/validator/dependency_validator.py +479 -0
- flowvane-0.25.0/src/flowvane/core/validator/user_validator.py +40 -0
- flowvane-0.25.0/src/flowvane/durability/__init__.py +21 -0
- flowvane-0.25.0/src/flowvane/durability/attempts.py +266 -0
- flowvane-0.25.0/src/flowvane/durability/checkpoint.py +168 -0
- flowvane-0.25.0/src/flowvane/durability/circuit_breaker.py +209 -0
- flowvane-0.25.0/src/flowvane/durability/retry.py +224 -0
- flowvane-0.25.0/src/flowvane/extensions/__init__.py +46 -0
- flowvane-0.25.0/src/flowvane/extensions/core/__init__.py +12 -0
- flowvane-0.25.0/src/flowvane/extensions/core/aggregate_results_executor.py +232 -0
- flowvane-0.25.0/src/flowvane/extensions/email/__init__.py +9 -0
- flowvane-0.25.0/src/flowvane/extensions/email/send_email_executor.py +456 -0
- flowvane-0.25.0/src/flowvane/extensions/flowvane/__init__.py +10 -0
- flowvane-0.25.0/src/flowvane/extensions/flowvane/api_executor.py +770 -0
- flowvane-0.25.0/src/flowvane/extensions/hooks/__init__.py +11 -0
- flowvane-0.25.0/src/flowvane/extensions/hooks/post_execution_hook.py +71 -0
- flowvane-0.25.0/src/flowvane/extensions/hooks/pre_execution_hook.py +71 -0
- flowvane-0.25.0/src/flowvane/extensions/http/__init__.py +10 -0
- flowvane-0.25.0/src/flowvane/extensions/http/rest_executor.py +458 -0
- flowvane-0.25.0/src/flowvane/extensions/storage/__init__.py +16 -0
- flowvane-0.25.0/src/flowvane/extensions/storage/postgres_storage.py +98 -0
- flowvane-0.25.0/src/flowvane/extensions/storage/sqlite_storage.py +47 -0
- flowvane-0.25.0/src/flowvane/governance/__init__.py +21 -0
- flowvane-0.25.0/src/flowvane/governance/budget.py +256 -0
- flowvane-0.25.0/src/flowvane/governance/ledger.py +368 -0
- flowvane-0.25.0/src/flowvane/governance/policy.py +159 -0
- flowvane-0.25.0/src/flowvane/governance/provider_router.py +69 -0
- flowvane-0.25.0/src/flowvane/governance/reporter.py +222 -0
- flowvane-0.25.0/src/flowvane/governance/usage.py +310 -0
- flowvane-0.25.0/src/flowvane/logger.py +77 -0
- flowvane-0.25.0/src/flowvane/py.typed +0 -0
- flowvane-0.25.0/src/flowvane/scheduler/__init__.py +27 -0
- flowvane-0.25.0/src/flowvane/scheduler/base.py +215 -0
- flowvane-0.25.0/src/flowvane/scheduler/gateway/__init__.py +23 -0
- flowvane-0.25.0/src/flowvane/scheduler/gateway/ical.py +469 -0
- flowvane-0.25.0/src/flowvane/scheduler/gateway/webhook.py +608 -0
- flowvane-0.25.0/src/flowvane/scheduler/internal.py +640 -0
- flowvane-0.25.0/src/flowvane.egg-info/PKG-INFO +301 -0
- flowvane-0.25.0/src/flowvane.egg-info/SOURCES.txt +366 -0
- flowvane-0.25.0/src/flowvane.egg-info/dependency_links.txt +1 -0
- flowvane-0.25.0/src/flowvane.egg-info/entry_points.txt +3 -0
- flowvane-0.25.0/src/flowvane.egg-info/requires.txt +44 -0
- flowvane-0.25.0/src/flowvane.egg-info/top_level.txt +2 -0
- flowvane-0.25.0/tests/__init__.py +3 -0
- flowvane-0.25.0/tests/adapters/__init__.py +0 -0
- flowvane-0.25.0/tests/adapters/test_function_executor.py +270 -0
- flowvane-0.25.0/tests/api/test_auth.py +178 -0
- flowvane-0.25.0/tests/api/test_combined.py +372 -0
- flowvane-0.25.0/tests/api/test_rest_adapter.py +244 -0
- flowvane-0.25.0/tests/api/test_review_regressions.py +202 -0
- flowvane-0.25.0/tests/api/test_service_execution_contract.py +169 -0
- flowvane-0.25.0/tests/api/test_webhook.py +108 -0
- flowvane-0.25.0/tests/bridge/__init__.py +0 -0
- flowvane-0.25.0/tests/bridge/test_dispatch.py +408 -0
- flowvane-0.25.0/tests/bridge/test_error_taxonomy.py +39 -0
- flowvane-0.25.0/tests/bridge/test_mcp_inputs.py +128 -0
- flowvane-0.25.0/tests/bridge/test_mcp_output_schema.py +264 -0
- flowvane-0.25.0/tests/bridge/test_module_adapter.py +104 -0
- flowvane-0.25.0/tests/bridge/test_registry_setup.py +145 -0
- flowvane-0.25.0/tests/bridge/test_required_modules.py +181 -0
- flowvane-0.25.0/tests/bridge/test_review_fixes.py +135 -0
- flowvane-0.25.0/tests/bridge/test_scanner_bridge.py +50 -0
- flowvane-0.25.0/tests/bridge/test_schedule_modules.py +254 -0
- flowvane-0.25.0/tests/bridge/test_service_boundaries.py +138 -0
- flowvane-0.25.0/tests/bridge/test_service_policy.py +343 -0
- flowvane-0.25.0/tests/bridge/test_submission.py +117 -0
- flowvane-0.25.0/tests/bridge/test_task_modules.py +674 -0
- flowvane-0.25.0/tests/bridge/test_usage_outbox.py +188 -0
- flowvane-0.25.0/tests/cli/test_cli_bootstrap.py +283 -0
- flowvane-0.25.0/tests/cli/test_scheduler_command.py +76 -0
- flowvane-0.25.0/tests/cli/test_storage_binding.py +178 -0
- flowvane-0.25.0/tests/cli/test_worker_command.py +44 -0
- flowvane-0.25.0/tests/conftest.py +1279 -0
- flowvane-0.25.0/tests/core/__init__.py +3 -0
- flowvane-0.25.0/tests/core/execution/__init__.py +10 -0
- flowvane-0.25.0/tests/core/execution/test_breaker_gating.py +41 -0
- flowvane-0.25.0/tests/core/execution/test_exception_redaction.py +214 -0
- flowvane-0.25.0/tests/core/execution/test_executor_result_protocol.py +773 -0
- flowvane-0.25.0/tests/core/execution/test_group_g_review_fixes.py +41 -0
- flowvane-0.25.0/tests/core/execution/test_invocation_accounting.py +208 -0
- flowvane-0.25.0/tests/core/execution/test_result_protocol.py +360 -0
- flowvane-0.25.0/tests/core/execution/test_review_regressions.py +395 -0
- flowvane-0.25.0/tests/core/execution/test_run_lifecycle.py +325 -0
- flowvane-0.25.0/tests/core/execution/test_run_retry.py +630 -0
- flowvane-0.25.0/tests/core/execution/test_structured_errors.py +167 -0
- flowvane-0.25.0/tests/core/execution/test_task_concurrency.py +242 -0
- flowvane-0.25.0/tests/core/execution/test_task_creator.py +1589 -0
- flowvane-0.25.0/tests/core/execution/test_task_creator_review_fixes.py +80 -0
- flowvane-0.25.0/tests/core/execution/test_task_executor_additional.py +486 -0
- flowvane-0.25.0/tests/core/execution/test_task_executor_concurrent.py +192 -0
- flowvane-0.25.0/tests/core/execution/test_task_executor_storage_scopes.py +161 -0
- flowvane-0.25.0/tests/core/execution/test_task_failure_handling.py +287 -0
- flowvane-0.25.0/tests/core/execution/test_task_manager.py +795 -0
- flowvane-0.25.0/tests/core/execution/test_task_reexecution.py +115 -0
- flowvane-0.25.0/tests/core/execution/test_task_result_handling.py +293 -0
- flowvane-0.25.0/tests/core/execution/test_task_tracker.py +70 -0
- flowvane-0.25.0/tests/core/execution/test_training_invariants.py +701 -0
- flowvane-0.25.0/tests/core/storage/__init__.py +5 -0
- flowvane-0.25.0/tests/core/storage/dialects/__init__.py +0 -0
- flowvane-0.25.0/tests/core/storage/dialects/test_registry.py +31 -0
- flowvane-0.25.0/tests/core/storage/dialects/test_sqlite_dialect.py +110 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/__init__.py +7 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/conftest.py +59 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_custom_task_model.py +237 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_flag_modified.py +272 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_repository_tree_fixes.py +59 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_scheduling.py +1758 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_session_pool.py +653 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_task_repository.py +261 -0
- flowvane-0.25.0/tests/core/storage/sqlalchemy/test_task_repository_additional.py +167 -0
- flowvane-0.25.0/tests/core/storage/test_context.py +307 -0
- flowvane-0.25.0/tests/core/storage/test_database_path_priority.py +312 -0
- flowvane-0.25.0/tests/core/storage/test_hook_context.py +354 -0
- flowvane-0.25.0/tests/core/storage/test_hook_modify_task_with_context.py +186 -0
- flowvane-0.25.0/tests/core/storage/test_migration.py +603 -0
- flowvane-0.25.0/tests/core/storage/test_review_regressions.py +296 -0
- flowvane-0.25.0/tests/core/storage/test_sqlite_session.py +248 -0
- flowvane-0.25.0/tests/core/test_config_manager.py +129 -0
- flowvane-0.25.0/tests/core/test_config_manager_v2.py +182 -0
- flowvane-0.25.0/tests/core/test_decorators.py +579 -0
- flowvane-0.25.0/tests/core/test_demo_mode.py +417 -0
- flowvane-0.25.0/tests/core/test_executor_hooks.py +243 -0
- flowvane-0.25.0/tests/core/test_executor_metadata.py +85 -0
- flowvane-0.25.0/tests/core/test_extension_scanner.py +265 -0
- flowvane-0.25.0/tests/core/test_extensions_manager.py +47 -0
- flowvane-0.25.0/tests/core/test_task_builder.py +182 -0
- flowvane-0.25.0/tests/core/test_task_tree_hooks.py +140 -0
- flowvane-0.25.0/tests/core/utils/__init__.py +0 -0
- flowvane-0.25.0/tests/core/utils/test_helpers.py +115 -0
- flowvane-0.25.0/tests/core/utils/test_project_detection.py +122 -0
- flowvane-0.25.0/tests/core/validator/test_dependency_validator.py +352 -0
- flowvane-0.25.0/tests/durability/__init__.py +0 -0
- flowvane-0.25.0/tests/durability/test_attempt_history.py +319 -0
- flowvane-0.25.0/tests/durability/test_checkpoint.py +152 -0
- flowvane-0.25.0/tests/durability/test_circuit_breaker.py +196 -0
- flowvane-0.25.0/tests/durability/test_failure_phases.py +107 -0
- flowvane-0.25.0/tests/durability/test_integration.py +153 -0
- flowvane-0.25.0/tests/durability/test_retry.py +199 -0
- flowvane-0.25.0/tests/durability/test_retry_classification.py +104 -0
- flowvane-0.25.0/tests/extensions/__init__.py +3 -0
- flowvane-0.25.0/tests/extensions/core/__init__.py +0 -0
- flowvane-0.25.0/tests/extensions/core/test_aggregate_results_executor.py +238 -0
- flowvane-0.25.0/tests/extensions/email/__init__.py +0 -0
- flowvane-0.25.0/tests/extensions/email/test_send_email_executor.py +720 -0
- flowvane-0.25.0/tests/extensions/flowvane/__init__.py +1 -0
- flowvane-0.25.0/tests/extensions/flowvane/test_api_executor.py +616 -0
- flowvane-0.25.0/tests/extensions/http/__init__.py +1 -0
- flowvane-0.25.0/tests/extensions/http/test_rest_error_info.py +101 -0
- flowvane-0.25.0/tests/extensions/http/test_rest_executor.py +706 -0
- flowvane-0.25.0/tests/governance/__init__.py +0 -0
- flowvane-0.25.0/tests/governance/test_budget.py +188 -0
- flowvane-0.25.0/tests/governance/test_execution_enforcement.py +200 -0
- flowvane-0.25.0/tests/governance/test_integration.py +221 -0
- flowvane-0.25.0/tests/governance/test_policy.py +165 -0
- flowvane-0.25.0/tests/governance/test_provider_router.py +55 -0
- flowvane-0.25.0/tests/governance/test_reporter.py +200 -0
- flowvane-0.25.0/tests/governance/test_reservations.py +303 -0
- flowvane-0.25.0/tests/governance/test_service_models.py +79 -0
- flowvane-0.25.0/tests/governance/test_shared_scope_execution.py +150 -0
- flowvane-0.25.0/tests/governance/test_unknown_reporting.py +26 -0
- flowvane-0.25.0/tests/governance/test_usage_events.py +666 -0
- flowvane-0.25.0/tests/integration/__init__.py +6 -0
- flowvane-0.25.0/tests/integration/conftest.py +18 -0
- flowvane-0.25.0/tests/integration/postgres_helpers.py +45 -0
- flowvane-0.25.0/tests/integration/test_config_manager_integration.py +96 -0
- flowvane-0.25.0/tests/integration/test_package_acceptance.py +303 -0
- flowvane-0.25.0/tests/integration/test_postgres_acceptance.py +704 -0
- flowvane-0.25.0/tests/integration/test_sdk_compatibility.py +890 -0
- flowvane-0.25.0/tests/performance/conftest.py +5 -0
- flowvane-0.25.0/tests/performance/test_memory_leaks.py +242 -0
- flowvane-0.25.0/tests/scheduler/__init__.py +3 -0
- flowvane-0.25.0/tests/scheduler/test_distributed_scheduling_e2e.py +180 -0
- flowvane-0.25.0/tests/scheduler/test_ical.py +25 -0
- flowvane-0.25.0/tests/scheduler/test_scheduler.py +1078 -0
- flowvane-0.25.0/tests/scheduler/test_scheduler_history.py +508 -0
- flowvane-0.25.0/tests/scheduler/test_webhook_gateway.py +147 -0
- flowvane-0.25.0/tests/test_app.py +76 -0
- flowvane-0.25.0/tests/test_docker_config.py +32 -0
- flowvane-0.25.0/tests/test_environment_aliases.py +61 -0
- flowvane-0.25.0/tests/test_import_checks.py +55 -0
- flowvane-0.25.0/tests/test_logger.py +34 -0
- flowvane-0.25.0/tests/test_security_review_fixes.py +52 -0
- flowvane-0.25.0/tests/test_service_connections.py +500 -0
- flowvane-0.25.0/tests/test_v2_slimming.py +105 -0
- flowvane-0.25.0/tests/unit/distributed/__init__.py +0 -0
- flowvane-0.25.0/tests/unit/distributed/conftest.py +108 -0
- flowvane-0.25.0/tests/unit/distributed/test_distributed_config.py +305 -0
- flowvane-0.25.0/tests/unit/distributed/test_distributed_models.py +200 -0
- flowvane-0.25.0/tests/unit/distributed/test_events.py +65 -0
- flowvane-0.25.0/tests/unit/distributed/test_idempotency.py +188 -0
- flowvane-0.25.0/tests/unit/distributed/test_leader_election.py +260 -0
- flowvane-0.25.0/tests/unit/distributed/test_lease_manager.py +427 -0
- flowvane-0.25.0/tests/unit/distributed/test_node_registry.py +190 -0
- flowvane-0.25.0/tests/unit/distributed/test_placement.py +259 -0
- flowvane-0.25.0/tests/unit/distributed/test_review_fixes.py +86 -0
- flowvane-0.25.0/tests/unit/distributed/test_runtime.py +602 -0
- flowvane-0.25.0/tests/unit/distributed/test_worker.py +708 -0
- flowvane-0.25.0/tests/unit/distributed/test_worker_outcomes.py +591 -0
- flowvane-0.25.0/tests/unit/execution/__init__.py +0 -0
- flowvane-0.25.0/tests/unit/execution/test_task_executor_distributed.py +119 -0
- flowvane-0.25.0/uv.lock +3403 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: High-Quality Code Specification – Simplicity First
|
|
3
|
+
globs: "**/*.py, **/*.sh, **/*.yml, **/*.md"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Core Principles
|
|
8
|
+
- Simplicity, readability, maintainability highest priority.
|
|
9
|
+
- No premature abstraction, optimization, or over-engineering.
|
|
10
|
+
- Code must be clear in ≤10 seconds; prefer simple over "elegant".
|
|
11
|
+
|
|
12
|
+
## Python Code Quality
|
|
13
|
+
|
|
14
|
+
### Readability
|
|
15
|
+
- Precise full-word names (limited standard abbreviations).
|
|
16
|
+
- Functions ≤50 lines, single responsibility, verb-named.
|
|
17
|
+
- No obscure tricks or overuse of comprehensions/*args/**kwargs/decorators.
|
|
18
|
+
- Break complex logic into small functions.
|
|
19
|
+
|
|
20
|
+
### Types (Mandatory)
|
|
21
|
+
- Full type annotations.
|
|
22
|
+
- No `Any` except dynamic JSON/third-party.
|
|
23
|
+
- Use `dataclass`, `TypedDict`, `Protocol`, `NewType`.
|
|
24
|
+
|
|
25
|
+
### Design
|
|
26
|
+
- Functional + data classes preferred; avoid deep inheritance.
|
|
27
|
+
- Composition > inheritance; ABC/Protocol only for real multiples.
|
|
28
|
+
- No circular imports.
|
|
29
|
+
- Dependency injection for config/logging/DB.
|
|
30
|
+
|
|
31
|
+
### Errors & Resources
|
|
32
|
+
- Explicit exception handling; no bare `except:`.
|
|
33
|
+
- Context managers for resources.
|
|
34
|
+
- Validate all public inputs.
|
|
35
|
+
|
|
36
|
+
### Logging
|
|
37
|
+
- `info` for critical paths; `error` with context for exceptions.
|
|
38
|
+
- No `print()` debugging.
|
|
39
|
+
|
|
40
|
+
### Testing
|
|
41
|
+
- Unit tests for core logic in `tests/`; ≥90% coverage.
|
|
42
|
+
- Names: `test_<feature>_<behavior>`.
|
|
43
|
+
- No changes without tests.
|
|
44
|
+
|
|
45
|
+
### Performance & Security
|
|
46
|
+
- No unjustified O(n²)+ in hot paths.
|
|
47
|
+
- Sanitize user input.
|
|
48
|
+
- Secrets only from config/secret management.
|
|
49
|
+
|
|
50
|
+
### Cursor Rules
|
|
51
|
+
- Never auto-create docs or examples.
|
|
52
|
+
- No extra `.pyi` or bloated `__init__.py`.
|
|
53
|
+
- English only for comments/docstrings/logs/errors.
|
|
54
|
+
- Fully understand context before logic changes.
|
|
55
|
+
|
|
56
|
+
### Formatting
|
|
57
|
+
- Zero errors: `ruff` + `black` + `pyright`.
|
|
58
|
+
- Imports sorted: std → third-party → local.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Python 3 Dev",
|
|
3
|
+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", // ←use Python 3.12 image
|
|
4
|
+
|
|
5
|
+
"features": {
|
|
6
|
+
"ghcr.io/devcontainers/features/python:1": {} // Optional: additional Python tools
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
"postCreateCommand": "pip install --user -r requirements.txt pytest pytest-cov"
|
|
10
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# APFlow Environment Variables Configuration
|
|
2
|
+
# Copy this file to .env and fill in your actual values
|
|
3
|
+
|
|
4
|
+
# =============================================================================
|
|
5
|
+
# API SERVER CONFIGURATION
|
|
6
|
+
# =============================================================================
|
|
7
|
+
|
|
8
|
+
# Host for the API server (default: 0.0.0.0)
|
|
9
|
+
FLOWVANE_API_HOST=0.0.0.0
|
|
10
|
+
|
|
11
|
+
# Port for the API server (default: 8000)
|
|
12
|
+
FLOWVANE_API_PORT=8000
|
|
13
|
+
|
|
14
|
+
# Enable system routes (default: true)
|
|
15
|
+
FLOWVANE_ENABLE_SYSTEM_ROUTES=true
|
|
16
|
+
|
|
17
|
+
# Enable API documentation (default: true)
|
|
18
|
+
FLOWVANE_ENABLE_DOCS=true
|
|
19
|
+
|
|
20
|
+
# =============================================================================
|
|
21
|
+
# AUTHENTICATION
|
|
22
|
+
# =============================================================================
|
|
23
|
+
|
|
24
|
+
# JWT secret key for token signing (REQUIRED for API authentication)
|
|
25
|
+
# Generate a secure random string for production
|
|
26
|
+
FLOWVANE_JWT_SECRET=your_jwt_secret_key_here
|
|
27
|
+
|
|
28
|
+
# JWT algorithm (default: HS256)
|
|
29
|
+
FLOWVANE_JWT_ALGORITHM=HS256
|
|
30
|
+
|
|
31
|
+
# =============================================================================
|
|
32
|
+
# DATABASE CONFIGURATION
|
|
33
|
+
# =============================================================================
|
|
34
|
+
|
|
35
|
+
# Database URL (supports PostgreSQL, DuckDB, etc.)
|
|
36
|
+
# For PostgreSQL: postgresql://user:password@localhost:5432/flowvane
|
|
37
|
+
# For DuckDB: duckdb:///.data/flowvane.duckdb
|
|
38
|
+
FLOWVANE_DATABASE_URL=duckdb:///.data/flowvane.duckdb
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# Alternative test database URL for APFlow tests
|
|
42
|
+
FLOWVANE_TEST_DATABASE_URL=
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# Task table name in database (default: apflow_tasks)
|
|
46
|
+
FLOWVANE_TASK_TABLE_NAME=apflow_tasks
|
|
47
|
+
|
|
48
|
+
# Maximum number of database sessions (default: 50)
|
|
49
|
+
FLOWVANE_MAX_SESSIONS=50
|
|
50
|
+
|
|
51
|
+
# Database session timeout in seconds (default: 1800)
|
|
52
|
+
FLOWVANE_SESSION_TIMEOUT=1800
|
|
53
|
+
|
|
54
|
+
# =============================================================================
|
|
55
|
+
# LOGGING
|
|
56
|
+
# =============================================================================
|
|
57
|
+
|
|
58
|
+
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
|
|
59
|
+
FLOWVANE_LOG_LEVEL=INFO
|
|
60
|
+
|
|
61
|
+
# Alternative log level setting
|
|
62
|
+
LOG_LEVEL=INFO
|
|
63
|
+
|
|
64
|
+
# =============================================================================
|
|
65
|
+
# EXTENSIONS AND FEATURES
|
|
66
|
+
# =============================================================================
|
|
67
|
+
|
|
68
|
+
# Enabled extensions by directory name (comma-separated: stdio,http,crewai,llm,etc.)
|
|
69
|
+
# This loads ALL executors in the specified extension directories
|
|
70
|
+
# Examples:
|
|
71
|
+
# FLOWVANE_EXTENSIONS=stdio -> Loads system_info_executor, command_executor
|
|
72
|
+
# FLOWVANE_EXTENSIONS=stdio,http -> Loads all stdio and http executors
|
|
73
|
+
# FLOWVANE_EXTENSIONS=stdio,http,crewai -> Loads multiple extension directories
|
|
74
|
+
FLOWVANE_EXTENSIONS=stdio,http
|
|
75
|
+
|
|
76
|
+
# Enabled executors by specific ID (comma-separated: system_info_executor,rest_executor,etc.)
|
|
77
|
+
# This loads ONLY the specified executors, regardless of their extension directory
|
|
78
|
+
# Use this for fine-grained control when you want specific executors only
|
|
79
|
+
# Example:
|
|
80
|
+
# FLOWVANE_EXTENSIONS_IDS=system_info_executor,rest_executor
|
|
81
|
+
# FLOWVANE_EXTENSIONS_IDS=
|
|
82
|
+
|
|
83
|
+
# Note: Both FLOWVANE_EXTENSIONS and FLOWVANE_EXTENSIONS_IDS can be used together
|
|
84
|
+
# The result is the union of both configurations
|
|
85
|
+
# If neither is set, all available executors are enabled (no restrictions)
|
|
86
|
+
|
|
87
|
+
# Allowed commands for STDIO extension (comma-separated),
|
|
88
|
+
# Command execution is DISABLED by default for security reasons
|
|
89
|
+
FLOWVANE_STDIO_ALLOW_COMMAND=python,node,npm,yarn
|
|
90
|
+
|
|
91
|
+
# Custom task model class path
|
|
92
|
+
FLOWVANE_TASK_MODEL_CLASS=
|
|
93
|
+
|
|
94
|
+
# Allowlist of fields to keep from the link node itself
|
|
95
|
+
FLOWVANE_TASK_LINK_KEEP_FIELDS= # default: id,parent_id,user_id,task_tree_id,origin_type,created_at,updated_at
|
|
96
|
+
|
|
97
|
+
# =============================================================================
|
|
98
|
+
# LLM API KEYS
|
|
99
|
+
# =============================================================================
|
|
100
|
+
|
|
101
|
+
# OpenAI API key for LLM tasks
|
|
102
|
+
OPENAI_API_KEY=your_openai_api_key_here
|
|
103
|
+
|
|
104
|
+
# Anthropic API key for LLM tasks
|
|
105
|
+
ANTHROPIC_API_KEY=your_anthropic_api_key_here
|
|
106
|
+
|
|
107
|
+
# =============================================================================
|
|
108
|
+
# ALTERNATIVE/LEGACY SETTINGS
|
|
109
|
+
# =============================================================================
|
|
110
|
+
|
|
111
|
+
# Alternative API host setting,
|
|
112
|
+
# API_HOST=0.0.0.0
|
|
113
|
+
|
|
114
|
+
# Alternative API port setting
|
|
115
|
+
# API_PORT=8000
|
|
116
|
+
|
|
117
|
+
# Alternative database URL
|
|
118
|
+
# DATABASE_URL=
|
|
119
|
+
|
|
120
|
+
# Test database URL for running tests
|
|
121
|
+
# TEST_DATABASE_URL=duckdb:///.data/flowvane.test.duckdb
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# High-Quality Code Specification – Simplicity, Readability, and Maintainability First
|
|
2
|
+
|
|
3
|
+
## Project Overview
|
|
4
|
+
FlowVane provides a unified framework for **task orchestration and execution**. The Python package is `flowvane`.
|
|
5
|
+
|
|
6
|
+
## Core Principles
|
|
7
|
+
- Prioritize **simplicity, readability, and maintainability** above all.
|
|
8
|
+
- Avoid premature abstraction, optimization, or over-engineering.
|
|
9
|
+
- Code should be understandable in ≤10 seconds; favor straightforward over clever.
|
|
10
|
+
- Always follow: Understand → Plan → Implement minimally → Test/Validate → Commit.
|
|
11
|
+
|
|
12
|
+
## Python Code Quality
|
|
13
|
+
|
|
14
|
+
### Readability
|
|
15
|
+
- Use precise, full-word names (standard abbreviations only when conventional).
|
|
16
|
+
- Functions ≤50 lines, single responsibility, verb-named.
|
|
17
|
+
- Avoid obscure tricks, heavy comprehensions, excessive *args/**kwargs, unnecessary decorators.
|
|
18
|
+
- Break complex logic into small, well-named helpers.
|
|
19
|
+
|
|
20
|
+
### Types (Mandatory)
|
|
21
|
+
- Full type annotations everywhere.
|
|
22
|
+
- Avoid `Any` except for dynamic/external data.
|
|
23
|
+
- Prefer `dataclass`, `TypedDict`, `Protocol`, `NewType`.
|
|
24
|
+
|
|
25
|
+
### Design
|
|
26
|
+
- Favor functional style + data classes; minimize inheritance.
|
|
27
|
+
- Composition > inheritance; use Protocols/ABCs only for true interfaces.
|
|
28
|
+
- No circular imports.
|
|
29
|
+
- Dependency injection for config, logging, DB, etc.
|
|
30
|
+
|
|
31
|
+
### Errors & Resources
|
|
32
|
+
- Explicit exception handling; no bare `except:`.
|
|
33
|
+
- Context managers for files/DB/connections.
|
|
34
|
+
- Validate/sanitize all public inputs.
|
|
35
|
+
|
|
36
|
+
### Logging
|
|
37
|
+
- Use `logging.info` for key paths.
|
|
38
|
+
- `logging.error` + context for exceptions.
|
|
39
|
+
- No `print()` in production/debug code.
|
|
40
|
+
|
|
41
|
+
### Testing
|
|
42
|
+
- Unit tests in `tests/`, ≥90% coverage on core logic.
|
|
43
|
+
- Name: `test_<unit>_<behavior>`.
|
|
44
|
+
- Never change prod code without/updating tests.
|
|
45
|
+
|
|
46
|
+
### Formatting & Linting
|
|
47
|
+
- After changes, always run:
|
|
48
|
+
- ruff check --fix .
|
|
49
|
+
- black .
|
|
50
|
+
- pyright .
|
|
51
|
+
- Zero errors/warnings before commit.
|
|
52
|
+
|
|
53
|
+
### Security & Performance
|
|
54
|
+
- Never hardcode secrets; use env/config.
|
|
55
|
+
- Validate/sanitize inputs.
|
|
56
|
+
- Avoid unjustified quadratic+ complexity in hot paths.
|
|
57
|
+
|
|
58
|
+
## General Guidelines
|
|
59
|
+
- English ONLY for comments, docstrings, logs, errors, commit messages.
|
|
60
|
+
- Fully understand surrounding code before changes.
|
|
61
|
+
- Do not generate unnecessary documentation, examples, stubs, or bloated `__init__.py` files unless explicitly requested.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
contents: read
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "main" ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "main" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
name: Test on Python ${{ matrix.python-version }}
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
# container:
|
|
17
|
+
# image: python:${{ matrix.python-version }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
# Pin CI to a single, consistent Python version to reduce version-related
|
|
22
|
+
# test flakiness. Use 3.12 for CI stability; expand matrix later if desired.
|
|
23
|
+
python-version: ["3.12"]
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
27
|
+
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
|
|
33
|
+
- name: Set up uv
|
|
34
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
35
|
+
with:
|
|
36
|
+
version: "0.13.8"
|
|
37
|
+
enable-cache: true
|
|
38
|
+
|
|
39
|
+
- name: Install dependencies
|
|
40
|
+
run: |
|
|
41
|
+
uv sync --locked --extra dev --python "${{ matrix.python-version }}"
|
|
42
|
+
uv pip check
|
|
43
|
+
uv run --no-sync python -m pytest tests/integration/test_package_acceptance.py::test_core_dependency_closure_excludes_removed_optional_integrations
|
|
44
|
+
|
|
45
|
+
- name: Check lint and formatting
|
|
46
|
+
run: uv run --no-sync make lint
|
|
47
|
+
|
|
48
|
+
- name: Run tests
|
|
49
|
+
run: uv run --no-sync pytest
|
|
50
|
+
|
|
51
|
+
- name: Run ignored custom task model tests
|
|
52
|
+
run: uv run --no-sync pytest tests/core/storage/sqlalchemy/test_custom_task_model.py
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
name: Deploy Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: ["main"]
|
|
6
|
+
paths:
|
|
7
|
+
- "docs/**"
|
|
8
|
+
- "mkdocs.yml"
|
|
9
|
+
- "README.md"
|
|
10
|
+
- ".github/workflows/docs.yml"
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
pages: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
concurrency:
|
|
19
|
+
group: "pages"
|
|
20
|
+
cancel-in-progress: false
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
build:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
27
|
+
|
|
28
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.12"
|
|
31
|
+
|
|
32
|
+
- name: Install docs dependencies
|
|
33
|
+
run: pip install -e ".[docs]"
|
|
34
|
+
|
|
35
|
+
- name: Prepare docs for MkDocs
|
|
36
|
+
run: |
|
|
37
|
+
# Copy README as index page
|
|
38
|
+
cp README.md docs/index.md
|
|
39
|
+
{
|
|
40
|
+
printf '%s\n' '---'
|
|
41
|
+
printf '%s\n' 'description: FlowVane documentation home for AI-perceivable distributed orchestration, quick start, architecture, and feature guides.'
|
|
42
|
+
printf '%s\n\n' '---'
|
|
43
|
+
cat docs/index.md
|
|
44
|
+
} > docs/index.md.tmp
|
|
45
|
+
mv docs/index.md.tmp docs/index.md
|
|
46
|
+
|
|
47
|
+
# Fix links in index.md: docs/X → X (since we're now inside docs/)
|
|
48
|
+
sed -i 's|\./docs/|./|g' docs/index.md
|
|
49
|
+
sed -i 's|(docs/|(|g' docs/index.md
|
|
50
|
+
|
|
51
|
+
- run: mkdocs build
|
|
52
|
+
|
|
53
|
+
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
|
|
54
|
+
with:
|
|
55
|
+
path: site
|
|
56
|
+
|
|
57
|
+
deploy:
|
|
58
|
+
needs: build
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
environment:
|
|
61
|
+
name: github-pages
|
|
62
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
63
|
+
steps:
|
|
64
|
+
- id: deployment
|
|
65
|
+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Import Performance Check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
check-imports:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
|
|
16
|
+
with:
|
|
17
|
+
python-version: '3.12'
|
|
18
|
+
- name: Install dependencies
|
|
19
|
+
run: pip install -e ".[dev]"
|
|
20
|
+
- name: Check imports and CLI startup
|
|
21
|
+
run: make check-imports
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
.Python
|
|
7
|
+
build/
|
|
8
|
+
develop-eggs/
|
|
9
|
+
dist/
|
|
10
|
+
downloads/
|
|
11
|
+
eggs/
|
|
12
|
+
.eggs/
|
|
13
|
+
lib/
|
|
14
|
+
lib64/
|
|
15
|
+
parts/
|
|
16
|
+
sdist/
|
|
17
|
+
var/
|
|
18
|
+
wheels/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
.installed.cfg
|
|
21
|
+
*.egg
|
|
22
|
+
|
|
23
|
+
# Virtual environments
|
|
24
|
+
venv/
|
|
25
|
+
env/
|
|
26
|
+
ENV/
|
|
27
|
+
.venv
|
|
28
|
+
|
|
29
|
+
# IDE
|
|
30
|
+
.vscode/
|
|
31
|
+
.idea/
|
|
32
|
+
*.swp
|
|
33
|
+
*.swo
|
|
34
|
+
*~
|
|
35
|
+
|
|
36
|
+
# Testing
|
|
37
|
+
.pytest_cache/
|
|
38
|
+
.coverage
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.mypy_cache/
|
|
42
|
+
|
|
43
|
+
# Documentation
|
|
44
|
+
docs/_build/
|
|
45
|
+
site/
|
|
46
|
+
# Generated at build time from README.md (see .github/workflows/docs.yml)
|
|
47
|
+
docs/index.md
|
|
48
|
+
docs/assets/flowvane-logo.svg
|
|
49
|
+
|
|
50
|
+
# Database
|
|
51
|
+
*.db
|
|
52
|
+
*.duckdb
|
|
53
|
+
*.sqlite
|
|
54
|
+
.data/
|
|
55
|
+
# Logs
|
|
56
|
+
logs/
|
|
57
|
+
*.log
|
|
58
|
+
|
|
59
|
+
# Environment variables
|
|
60
|
+
.env
|
|
61
|
+
.env.local
|
|
62
|
+
|
|
63
|
+
# OS
|
|
64
|
+
.DS_Store
|
|
65
|
+
Thumbs.db
|
|
66
|
+
|
|
67
|
+
# Extension scanner cache
|
|
68
|
+
.executor_cache.json
|
|
69
|
+
|
|
70
|
+
# Local planning files
|
|
71
|
+
/planning/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# <type>(<scope>): <subject>
|
|
2
|
+
#
|
|
3
|
+
# <body>
|
|
4
|
+
#
|
|
5
|
+
# <footer>
|
|
6
|
+
|
|
7
|
+
# Type must be one of the following:
|
|
8
|
+
# feat: A new feature
|
|
9
|
+
# fix: A bug fix
|
|
10
|
+
# docs: Documentation only changes
|
|
11
|
+
# style: Changes that do not affect the meaning of the code
|
|
12
|
+
# refactor: A code change that neither fixes a bug nor adds a feature
|
|
13
|
+
# perf: A code change that improves performance
|
|
14
|
+
# test: Adding missing tests or correcting existing tests
|
|
15
|
+
# chore: Changes to the build process or auxiliary tools
|
|
16
|
+
# ci: Changes to CI configuration files and scripts
|
|
17
|
+
|
|
18
|
+
# Scope is optional and can be anything specifying the place of the commit change.
|
|
19
|
+
# Examples: api, core, storage, cli, stdio, etc.
|
|
20
|
+
|
|
21
|
+
# Subject should be:
|
|
22
|
+
# - Use imperative, present tense: "change" not "changed" nor "changes"
|
|
23
|
+
# - Don't capitalize first letter
|
|
24
|
+
# - No dot (.) at the end
|
|
25
|
+
# - Maximum 72 characters
|
|
26
|
+
|
|
27
|
+
# Body should include:
|
|
28
|
+
# - Motivation for the change and contrast with previous behavior
|
|
29
|
+
# - What changed and why
|
|
30
|
+
# - Any breaking changes
|
|
31
|
+
|
|
32
|
+
# Footer should contain:
|
|
33
|
+
# - Breaking changes (start with BREAKING CHANGE:)
|
|
34
|
+
# - Issue references (Closes #123, Fixes #456)
|
|
35
|
+
|
|
36
|
+
# Examples:
|
|
37
|
+
# feat(stdio): add stdio executor for process execution
|
|
38
|
+
#
|
|
39
|
+
# Implement a new stdio executor that allows executing system commands
|
|
40
|
+
# and processes via stdin/stdout communication, similar to MCP stdio
|
|
41
|
+
# transport mode. This enables flexible task execution through shell
|
|
42
|
+
# commands and Python scripts.
|
|
43
|
+
#
|
|
44
|
+
# - Add StdioExecutor class with command execution support
|
|
45
|
+
# - Add system resource monitoring (CPU, memory, disk)
|
|
46
|
+
# - Support async process communication
|
|
47
|
+
# - Add comprehensive error handling and logging
|
|
48
|
+
#
|
|
49
|
+
# Closes #123
|
|
50
|
+
|
|
51
|
+
# refactor(core): extract shared types to core.types module
|
|
52
|
+
#
|
|
53
|
+
# Move common type definitions from various modules to a centralized
|
|
54
|
+
# core.types module to avoid circular dependencies and improve code
|
|
55
|
+
# organization.
|
|
56
|
+
#
|
|
57
|
+
# - Add TaskPreHook and TaskPostHook type aliases
|
|
58
|
+
# - Move TaskStatus enum to core.types
|
|
59
|
+
# - Update imports across affected modules
|
|
60
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
# Custom import checks. These call the `apdev` CLI, which is provided by the
|
|
3
|
+
# `dev` optional-dependency group (`pip install -e ".[dev]"`).
|
|
4
|
+
- repo: local
|
|
5
|
+
hooks:
|
|
6
|
+
- id: check-chars
|
|
7
|
+
name: apdev check-chars
|
|
8
|
+
entry: apdev check-chars
|
|
9
|
+
language: system
|
|
10
|
+
types_or: [text, python]
|
|
11
|
+
|
|
12
|
+
- id: check-imports
|
|
13
|
+
name: apdev check-imports
|
|
14
|
+
entry: apdev check-imports
|
|
15
|
+
language: system
|
|
16
|
+
pass_filenames: false
|
|
17
|
+
always_run: true
|
|
18
|
+
|
|
19
|
+
# Ruff linter and formatter
|
|
20
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
21
|
+
rev: v0.15.1
|
|
22
|
+
hooks:
|
|
23
|
+
- id: ruff
|
|
24
|
+
args: [--fix]
|
|
25
|
+
files: ^(src|tests)/
|