diff --git a/app/config.py b/app/config.py index 2eaeba65..0c4d9720 100644 --- a/app/config.py +++ b/app/config.py @@ -47,12 +47,6 @@ class BackendWalletConfig: """Configuration for backend wallet operations.""" seed_phrase: str = os.getenv("AIBTC_BACKEND_WALLET_SEED_PHRASE", "") - min_balance_threshold: str = os.getenv( - "AIBTC_BACKEND_WALLET_MIN_BALANCE_THRESHOLD", "1" - ) # 1 STX in STX - funding_amount: str = os.getenv( - "AIBTC_BACKEND_WALLET_FUNDING_AMOUNT", "1" - ) # 1 STX in STX @dataclass @@ -60,6 +54,14 @@ class STXTransferWalletConfig: """Configuration for STX transfer operations with dedicated wallet.""" seed_phrase: str = os.getenv("AIBTC_STX_TRANSFER_WALLET_SEED_PHRASE", "") + # TODO: update env var names to match config + min_balance_threshold: str = os.getenv( + "AIBTC_BACKEND_WALLET_MIN_BALANCE_THRESHOLD", "5" + ) # 5 STX in STX + # TODO: update env var names to match config + funding_amount: str = os.getenv( + "AIBTC_BACKEND_WALLET_FUNDING_AMOUNT", "10" + ) # 10 STX in STX @dataclass diff --git a/app/services/infrastructure/job_management/tasks/agent_wallet_balance_monitor.py b/app/services/infrastructure/job_management/tasks/agent_wallet_balance_monitor.py index c64bda3e..3af21135 100644 --- a/app/services/infrastructure/job_management/tasks/agent_wallet_balance_monitor.py +++ b/app/services/infrastructure/job_management/tasks/agent_wallet_balance_monitor.py @@ -65,10 +65,10 @@ def __init__(self, runner_config: Optional[RunnerConfig] = None): # Configurable funding thresholds using global config self.min_balance_threshold = int( config.backend_wallet.min_balance_threshold - ) # 1 STX in STX default + ) # 5 STX in STX default self.funding_amount = int( config.backend_wallet.funding_amount - ) # 5 STX in STX default + ) # 10 STX in STX default async def _validate_config(self, context: JobContext) -> bool: """Validate task configuration.""" diff --git a/eval_viewer.html b/eval_viewer.html deleted file mode 100644 index 390d78cc..00000000 --- a/eval_viewer.html +++ /dev/null @@ -1,764 +0,0 @@ - - - - - - Eval Viewer - - - - - - - - - -
- -
-

Eval Viewer

-

- Browse and analyze proposal evaluations from JSON reports in ./evals/. - View per-proposal details, full prompts, scores, reasoning, and - outcomes, with aggregated stats for prompt improvement. -

-
- - -
- - -
- - - -
- - -
- -
- - -
- - -
- - -
-
- - - - - - - diff --git a/test_bitcoin_face_analysis.py b/scripts/test_bitcoin_face_analysis.py similarity index 100% rename from test_bitcoin_face_analysis.py rename to scripts/test_bitcoin_face_analysis.py diff --git a/eval_viewer_v2.html b/scripts/test_proposal_evaluation_v3_viewer.html similarity index 100% rename from eval_viewer_v2.html rename to scripts/test_proposal_evaluation_v3_viewer.html diff --git a/services/README.md b/services/README.md deleted file mode 100644 index df39d03f..00000000 --- a/services/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# services Folder Documentation - -## Overview -This top-level folder organizes service-related components, including runners, webhooks, and workflows. It provides entry points for service executions. - -## Key Components -- **Files**: - - (None specified.) - -- **Subfolders**: - - [runner/](runner/): Runner services. [runner README](./runner/README.md) - Task runners. - - [webhooks/](webhooks/): Top-level webhooks. [webhooks README](./webhooks/README.md) - Webhook handling. - - [workflows/](workflows/): Workflow definitions. [workflows README](./workflows/README.md) - Custom workflows. - -## Relationships and Integration -Complements app/services/ for additional service layers; may run parallel to app/worker.py. - -## Navigation -- **Parent Folder**: [Up: Root README](../README.md) -- **Child Folders** (if applicable): - - [Down: runner README](./runner/README.md) - - [Down: webhooks README](./webhooks/README.md) - - [Down: workflows README](./workflows/README.md) - -## Additional Notes -Extend for microservices if needed. diff --git a/services/runner/README.md b/services/runner/README.md deleted file mode 100644 index 93f857b4..00000000 --- a/services/runner/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# runner Folder Documentation - -## Overview -This folder manages runner services for task execution, possibly for background jobs. - -## Key Components -- **Files**: - - (None specified.) - -- **Subfolders**: - - [tasks/](tasks/): Runner tasks. [tasks README](./tasks/README.md) - Task implementations. - -## Relationships and Integration -Parallels app/services/infrastructure/job_management/ for job running. - -## Navigation -- **Parent Folder**: [Up: services Folder README](../README.md) -- **Child Folders** (if applicable): - - [Down: tasks README](./tasks/README.md) - -## Additional Notes -Configure for distributed running if needed. diff --git a/services/runner/tasks/README.md b/services/runner/tasks/README.md deleted file mode 100644 index 06d6b8a3..00000000 --- a/services/runner/tasks/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# tasks Folder Documentation - -## Overview -This folder contains task implementations for the runner service, potentially for background or worker processes. (Appears minimal; may hold specific runner tasks.) - -## Key Components -- **Files**: - - (Minimal or none listed; extend as needed.) - -- **Subfolders**: - - (None) - -## Relationships and Integration -Tasks here may parallel those in app/services/infrastructure/job_management/tasks/ and integrate with worker.py in app/. - -## Navigation -- **Parent Folder**: [Up: runner Folder README](../README.md) -- **Child Folders** (if applicable): - - (None) - -## Additional Notes -If empty, consider merging or documenting usage in parent. diff --git a/services/webhooks/README.md b/services/webhooks/README.md deleted file mode 100644 index 6805dd86..00000000 --- a/services/webhooks/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# webhooks Folder Documentation - -## Overview -This folder manages webhook-related services, potentially for top-level webhook handling. (Content minimal; may serve as entry point for webhook integrations.) - -## Key Components -- **Files**: - - (None specified; add as needed.) - -- **Subfolders**: - - (None) - -## Relationships and Integration -Likely integrates with app/services/integrations/webhooks/ for detailed handling. - -## Navigation -- **Parent Folder**: [Up: services Folder README](../README.md) -- **Child Folders** (if applicable): - - (None) - -## Additional Notes -Expand if additional webhook services are added. diff --git a/services/workflows/README.md b/services/workflows/README.md deleted file mode 100644 index 754f9b8b..00000000 --- a/services/workflows/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# workflows Folder Documentation - -## Overview -This folder handles workflow definitions, possibly for AI or job orchestrations. (Content minimal; may be for custom workflows.) - -## Key Components -- **Files**: - - (None specified; add as needed.) - -- **Subfolders**: - - (None) - -## Relationships and Integration -May relate to app/services/ai/simple_workflows/ for AI flows. - -## Navigation -- **Parent Folder**: [Up: services Folder README](../README.md) -- **Child Folders** (if applicable): - - (None) - -## Additional Notes -Document specific workflows if populated.