quantnodes 3.0.0__py3-none-any.whl
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.
- QuantNodes/__init__.py +15 -0
- QuantNodes/__main__.py +14 -0
- QuantNodes/agent/__init__.py +158 -0
- QuantNodes/agent/agents/__init__.py +13 -0
- QuantNodes/agent/agents/definition.py +180 -0
- QuantNodes/agent/agents/manager.py +73 -0
- QuantNodes/agent/config/__init__.py +34 -0
- QuantNodes/agent/config/executor.py +958 -0
- QuantNodes/agent/config/loader.py +427 -0
- QuantNodes/agent/config/templates/bollinger_bands.yaml +84 -0
- QuantNodes/agent/config/templates/dual_ma.yaml +72 -0
- QuantNodes/agent/config/templates/empty.yaml +56 -0
- QuantNodes/agent/config/templates/mean_reversion.yaml +47 -0
- QuantNodes/agent/config/templates/mean_reversion_zscore.yaml +90 -0
- QuantNodes/agent/config/templates/momentum.yaml +81 -0
- QuantNodes/agent/config/templates/momentum_breakout.yaml +84 -0
- QuantNodes/agent/config/templates/rsi_strategy.yaml +72 -0
- QuantNodes/agent/config/templates/volume_price.yaml +86 -0
- QuantNodes/agent/config/types.py +156 -0
- QuantNodes/agent/config_mapper.py +293 -0
- QuantNodes/agent/core/__init__.py +19 -0
- QuantNodes/agent/core/dream.py +47 -0
- QuantNodes/agent/core/quant_dream.py +274 -0
- QuantNodes/agent/cron_jobs.py +314 -0
- QuantNodes/agent/nanobot_bridge.py +242 -0
- QuantNodes/agent/permission/__init__.py +30 -0
- QuantNodes/agent/permission/defaults.py +36 -0
- QuantNodes/agent/permission/evaluate.py +41 -0
- QuantNodes/agent/permission/models.py +59 -0
- QuantNodes/agent/permission/service.py +133 -0
- QuantNodes/agent/providers/__init__.py +11 -0
- QuantNodes/agent/providers/base.py +102 -0
- QuantNodes/agent/providers/quantnodes.py +610 -0
- QuantNodes/agent/providers/rate_limiter.py +326 -0
- QuantNodes/agent/providers/registry.py +163 -0
- QuantNodes/agent/skills/__init__.py +20 -0
- QuantNodes/agent/skills/base.py +118 -0
- QuantNodes/agent/skills/bridge.py +73 -0
- QuantNodes/agent/skills/factor/__init__.py +14 -0
- QuantNodes/agent/skills/factor/correlation.py +99 -0
- QuantNodes/agent/skills/factor/group_backtest.py +114 -0
- QuantNodes/agent/skills/factor/ic_analysis.py +106 -0
- QuantNodes/agent/skills/loader.py +107 -0
- QuantNodes/agent/skills/registry.py +105 -0
- QuantNodes/agent/skills/strategy/__init__.py +16 -0
- QuantNodes/agent/skills/strategy/bollinger.py +86 -0
- QuantNodes/agent/skills/strategy/dual_ma.py +82 -0
- QuantNodes/agent/skills/strategy/momentum.py +74 -0
- QuantNodes/agent/skills/strategy/rsi_reversal.py +99 -0
- QuantNodes/agent/skills_quant/__init__.py +14 -0
- QuantNodes/agent/skills_quant/backtest-analyze/SKILL.md +42 -0
- QuantNodes/agent/skills_quant/config-driven/SKILL.md +72 -0
- QuantNodes/agent/skills_quant/factor-research/SKILL.md +40 -0
- QuantNodes/agent/skills_quant/quant-dream/SKILL.md +55 -0
- QuantNodes/agent/skills_quant/risk-management/SKILL.md +45 -0
- QuantNodes/agent/skills_quant/strategy-design/SKILL.md +43 -0
- QuantNodes/agent/templates/__init__.py +4 -0
- QuantNodes/agent/tools/__init__.py +173 -0
- QuantNodes/agent/tools/_workspace.py +51 -0
- QuantNodes/agent/tools/alpha_backtest.py +328 -0
- QuantNodes/agent/tools/alpha_evaluate.py +493 -0
- QuantNodes/agent/tools/backtest.py +226 -0
- QuantNodes/agent/tools/base.py +133 -0
- QuantNodes/agent/tools/code_search.py +207 -0
- QuantNodes/agent/tools/config_backtest.py +401 -0
- QuantNodes/agent/tools/context.py +97 -0
- QuantNodes/agent/tools/dream_skill.py +77 -0
- QuantNodes/agent/tools/echo.py +38 -0
- QuantNodes/agent/tools/factor.py +231 -0
- QuantNodes/agent/tools/file_ops.py +201 -0
- QuantNodes/agent/tools/git_ops.py +190 -0
- QuantNodes/agent/tools/operator_lookup.py +218 -0
- QuantNodes/agent/tools/output_truncation.py +77 -0
- QuantNodes/agent/tools/path_check.py +43 -0
- QuantNodes/agent/tools/pipeline.py +62 -0
- QuantNodes/agent/tools/registry.py +150 -0
- QuantNodes/agent/tools/sandbox.py +62 -0
- QuantNodes/agent/tools/shell_safety.py +63 -0
- QuantNodes/agent/tools/strategy.py +106 -0
- QuantNodes/agent/tools/task.py +171 -0
- QuantNodes/agent/tools/web_fetch.py +142 -0
- QuantNodes/agent/tools/web_search.py +114 -0
- QuantNodes/agent/tools/wiki.py +370 -0
- QuantNodes/agent/utils/__init__.py +11 -0
- QuantNodes/agent/utils/helpers.py +43 -0
- QuantNodes/agent/utils/prompt_templates.py +30 -0
- QuantNodes/agent/workflows/__init__.py +20 -0
- QuantNodes/agent/workflows/implementations/__init__.py +8 -0
- QuantNodes/agent/workflows/implementations/alpha_gpt.py +508 -0
- QuantNodes/agent/workflows/implementations/mcts.py +442 -0
- QuantNodes/agent/workflows/parsers.py +44 -0
- QuantNodes/agent/workflows/registry.py +119 -0
- QuantNodes/agent/workflows/step_agent.py +219 -0
- QuantNodes/agent/workflows/tool.py +198 -0
- QuantNodes/ai/__init__.py +93 -0
- QuantNodes/ai/llm/__init__.py +75 -0
- QuantNodes/ai/llm/base.py +233 -0
- QuantNodes/ai/llm/decorators.py +281 -0
- QuantNodes/ai/llm/gateway.py +571 -0
- QuantNodes/ai/llm/null.py +76 -0
- QuantNodes/ai/llm/openai.py +435 -0
- QuantNodes/ai/optimizer.py +405 -0
- QuantNodes/ai/prompts/__init__.py +229 -0
- QuantNodes/ai/sandbox.py +371 -0
- QuantNodes/ai/sandbox_pandas_bridge.py +150 -0
- QuantNodes/ai/strategy_gen.py +396 -0
- QuantNodes/backtest/__init__.py +64 -0
- QuantNodes/backtest/backtest_node.py +188 -0
- QuantNodes/backtest/broker_node.py +378 -0
- QuantNodes/backtest/config_runner.py +397 -0
- QuantNodes/backtest/config_strategy.py +64 -0
- QuantNodes/backtest/risk_node.py +360 -0
- QuantNodes/backtest/strategy_node.py +268 -0
- QuantNodes/cache_node/__init__.py +19 -0
- QuantNodes/cache_node/base.py +244 -0
- QuantNodes/cache_node/cache_store.py +99 -0
- QuantNodes/cache_node/metadata.py +100 -0
- QuantNodes/cli/__init__.py +109 -0
- QuantNodes/cli/_helpers.py +511 -0
- QuantNodes/cli/command.py +110 -0
- QuantNodes/cli/commands/__init__.py +69 -0
- QuantNodes/cli/commands/agent.py +158 -0
- QuantNodes/cli/commands/alpha.py +951 -0
- QuantNodes/cli/commands/chat.py +38 -0
- QuantNodes/cli/commands/evolve.py +120 -0
- QuantNodes/cli/commands/factor.py +569 -0
- QuantNodes/cli/commands/init.py +190 -0
- QuantNodes/cli/commands/run.py +259 -0
- QuantNodes/cli/commands/serve.py +398 -0
- QuantNodes/cli/commands/version.py +120 -0
- QuantNodes/cli/enhanced.py +146 -0
- QuantNodes/conf_node/__init__.py +37 -0
- QuantNodes/conf_node/base.py +120 -0
- QuantNodes/conf_node/env_config.py +132 -0
- QuantNodes/conf_node/ini_config.py +70 -0
- QuantNodes/conf_node/json_config.py +69 -0
- QuantNodes/conf_node/yaml_config.py +78 -0
- QuantNodes/constants.py +17 -0
- QuantNodes/core/__init__.py +196 -0
- QuantNodes/core/_lookback_helpers.py +49 -0
- QuantNodes/core/ast_parser.py +198 -0
- QuantNodes/core/base.py +61 -0
- QuantNodes/core/cache_manager.py +344 -0
- QuantNodes/core/cache_utils.py +150 -0
- QuantNodes/core/cond_builder.py +53 -0
- QuantNodes/core/config.py +170 -0
- QuantNodes/core/constants.py +48 -0
- QuantNodes/core/control.py +412 -0
- QuantNodes/core/data_preprocessing.py +453 -0
- QuantNodes/core/data_source.py +46 -0
- QuantNodes/core/events.py +178 -0
- QuantNodes/core/evolution/__init__.py +22 -0
- QuantNodes/core/evolution/loop.py +583 -0
- QuantNodes/core/evolution/operators.py +289 -0
- QuantNodes/core/evolution/settings.py +44 -0
- QuantNodes/core/expression.py +841 -0
- QuantNodes/core/feedback/__init__.py +38 -0
- QuantNodes/core/feedback/channels.py +182 -0
- QuantNodes/core/feedback/collector.py +91 -0
- QuantNodes/core/feedback/dataclass.py +239 -0
- QuantNodes/core/feedback/llm_judge.py +138 -0
- QuantNodes/core/knowledge/__init__.py +69 -0
- QuantNodes/core/knowledge/knowledge_base.py +217 -0
- QuantNodes/core/knowledge/lineage_compress.py +196 -0
- QuantNodes/core/knowledge/lineage_expand.py +123 -0
- QuantNodes/core/knowledge/metrics/__init__.py +43 -0
- QuantNodes/core/knowledge/metrics/evaluator.py +176 -0
- QuantNodes/core/knowledge/metrics/metrics.py +220 -0
- QuantNodes/core/knowledge/rag_prompt.py +196 -0
- QuantNodes/core/knowledge/retriever.py +209 -0
- QuantNodes/core/lambda_node.py +81 -0
- QuantNodes/core/monitoring/__init__.py +22 -0
- QuantNodes/core/monitoring/collector.py +292 -0
- QuantNodes/core/monitoring/dashboard.py +365 -0
- QuantNodes/core/node.py +375 -0
- QuantNodes/core/pandas_utils.py +504 -0
- QuantNodes/core/parallel/__init__.py +15 -0
- QuantNodes/core/parallel/worker.py +140 -0
- QuantNodes/core/parallel/worker_process.py +265 -0
- QuantNodes/core/path_utils.py +73 -0
- QuantNodes/core/pipeline.py +328 -0
- QuantNodes/core/plugin.py +135 -0
- QuantNodes/core/quality_gate/__init__.py +32 -0
- QuantNodes/core/quality_gate/complexity.py +94 -0
- QuantNodes/core/quality_gate/consistency.py +26 -0
- QuantNodes/core/quality_gate/node.py +97 -0
- QuantNodes/core/quality_gate/redundancy.py +51 -0
- QuantNodes/core/quality_gate/settings.py +43 -0
- QuantNodes/core/quality_gate/zoo.py +98 -0
- QuantNodes/core/serializable.py +116 -0
- QuantNodes/core/serialization.py +673 -0
- QuantNodes/core/tools.py +333 -0
- QuantNodes/core/trajectory/__init__.py +25 -0
- QuantNodes/core/trajectory/entry.py +116 -0
- QuantNodes/core/trajectory/lineage.py +67 -0
- QuantNodes/core/trajectory/pool.py +211 -0
- QuantNodes/core/trajectory/selector.py +140 -0
- QuantNodes/core/visualization/__init__.py +33 -0
- QuantNodes/core/visualization/builder.py +233 -0
- QuantNodes/core/visualization/gate_breakdown.py +140 -0
- QuantNodes/core/visualization/lineage_dag.py +203 -0
- QuantNodes/core/visualization/metric_distribution.py +125 -0
- QuantNodes/core/visualization/report.py +68 -0
- QuantNodes/database_node/__init__.py +69 -0
- QuantNodes/database_node/base.py +135 -0
- QuantNodes/database_node/clickhouse_node.py +272 -0
- QuantNodes/database_node/csv_node.py +83 -0
- QuantNodes/database_node/duckdb_node.py +86 -0
- QuantNodes/database_node/factory.py +83 -0
- QuantNodes/database_node/mysql_node.py +100 -0
- QuantNodes/database_node/parquet_node.py +75 -0
- QuantNodes/database_node/sqlite_node.py +67 -0
- QuantNodes/factor_node/__init__.py +50 -0
- QuantNodes/factor_node/factor.py +563 -0
- QuantNodes/factor_node/factor_db.py +421 -0
- QuantNodes/factor_node/factor_functions/__init__.py +252 -0
- QuantNodes/factor_node/factor_functions/_helpers.py +358 -0
- QuantNodes/factor_node/factor_functions/_helpers_debug.py +317 -0
- QuantNodes/factor_node/factor_functions/composite_ops.py +136 -0
- QuantNodes/factor_node/factor_functions/math_ops.py +433 -0
- QuantNodes/factor_node/factor_functions/section_ops.py +290 -0
- QuantNodes/factor_node/factor_functions/talib_ops.py +1293 -0
- QuantNodes/factor_node/factor_functions/time_ops.py +535 -0
- QuantNodes/factor_node/factor_operation.py +1115 -0
- QuantNodes/factor_node/factor_table.py +1073 -0
- QuantNodes/factor_node/quant_nodes_object.py +60 -0
- QuantNodes/mcp_server/__init__.py +27 -0
- QuantNodes/mcp_server/__main__.py +4 -0
- QuantNodes/mcp_server/server.py +272 -0
- QuantNodes/methods/__init__.py +28 -0
- QuantNodes/methods/pipeline.py +100 -0
- QuantNodes/methods/sandbox.py +102 -0
- QuantNodes/monitor/__init__.py +27 -0
- QuantNodes/monitor/agent_tools/__init__.py +5 -0
- QuantNodes/monitor/agent_tools/monitor_tool.py +98 -0
- QuantNodes/monitor/agent_tools/schedule_tool.py +98 -0
- QuantNodes/monitor/agent_tools/version_tool.py +133 -0
- QuantNodes/monitor/monitor/__init__.py +6 -0
- QuantNodes/monitor/monitor/alerter.py +60 -0
- QuantNodes/monitor/monitor/collector.py +164 -0
- QuantNodes/monitor/monitor/dashboard.py +115 -0
- QuantNodes/monitor/monitor/drift.py +190 -0
- QuantNodes/monitor/scheduler/__init__.py +4 -0
- QuantNodes/monitor/scheduler/runner.py +133 -0
- QuantNodes/monitor/scheduler/scheduler.py +184 -0
- QuantNodes/monitor/storage/__init__.py +16 -0
- QuantNodes/monitor/storage/models.py +70 -0
- QuantNodes/monitor/storage/repository.py +407 -0
- QuantNodes/monitor/version/__init__.py +4 -0
- QuantNodes/monitor/version/diff.py +81 -0
- QuantNodes/monitor/version/version_manager.py +182 -0
- QuantNodes/operator_node/__init__.py +28 -0
- QuantNodes/operator_node/base.py +97 -0
- QuantNodes/operator_node/query_node.py +129 -0
- QuantNodes/operator_node/sql_builder.py +125 -0
- QuantNodes/operator_node/sql_utils.py +172 -0
- QuantNodes/operator_node/transform.py +130 -0
- QuantNodes/operators/__init__.py +90 -0
- QuantNodes/operators/_engine.py +108 -0
- QuantNodes/operators/composite.py +161 -0
- QuantNodes/operators/composite_dag.py +667 -0
- QuantNodes/operators/composite_dag_ops.py +343 -0
- QuantNodes/operators/composite_dag_pandas_ops.py +382 -0
- QuantNodes/operators/custom.py +408 -0
- QuantNodes/operators/facade.py +164 -0
- QuantNodes/operators/math.py +163 -0
- QuantNodes/operators/proxy.py +29 -0
- QuantNodes/operators/registry.py +144 -0
- QuantNodes/operators/section.py +99 -0
- QuantNodes/operators/talib.py +757 -0
- QuantNodes/operators/templates.py +95 -0
- QuantNodes/operators/time_series.py +136 -0
- QuantNodes/prompts/__init__.py +20 -0
- QuantNodes/prompts/backtest/__init__.py +12 -0
- QuantNodes/prompts/backtest/factor_based.py +86 -0
- QuantNodes/prompts/backtest/standard.py +73 -0
- QuantNodes/prompts/factor/__init__.py +14 -0
- QuantNodes/prompts/factor/correlation.py +77 -0
- QuantNodes/prompts/factor/group_backtest.py +86 -0
- QuantNodes/prompts/factor/ic_analysis.py +91 -0
- QuantNodes/prompts/strategy/__init__.py +18 -0
- QuantNodes/prompts/strategy/market_neutral.py +96 -0
- QuantNodes/prompts/strategy/mean_reversion.py +107 -0
- QuantNodes/prompts/strategy/momentum.py +160 -0
- QuantNodes/prompts/strategy/pairs_trading.py +107 -0
- QuantNodes/prompts/strategy/trend_following.py +96 -0
- QuantNodes/research/README.md +106 -0
- QuantNodes/research/__init__.py +154 -0
- QuantNodes/research/_legacy_3c/__init__.py +61 -0
- QuantNodes/research/_legacy_3c/auto_researcher.py +289 -0
- QuantNodes/research/_legacy_3c/factor_evaluator.py +560 -0
- QuantNodes/research/_legacy_3c/factor_miner.py +318 -0
- QuantNodes/research/_legacy_3c/mcts_search.py +324 -0
- QuantNodes/research/factor_test/__init__.py +25 -0
- QuantNodes/research/factor_test/config.py +184 -0
- QuantNodes/research/factor_test/config_builder.py +276 -0
- QuantNodes/research/factor_test/e2e/data_prep.py +163 -0
- QuantNodes/research/factor_test/e2e/run_evolution_e2e.py +309 -0
- QuantNodes/research/factor_test/evolution_adapter.py +231 -0
- QuantNodes/research/factor_test/feedback_wrapper.py +102 -0
- QuantNodes/research/factor_test/ifind_db/__init__.py +7 -0
- QuantNodes/research/factor_test/ifind_db/fetcher.py +224 -0
- QuantNodes/research/factor_test/ifind_db/ifind_database.py +689 -0
- QuantNodes/research/factor_test/nodes/__init__.py +1 -0
- QuantNodes/research/factor_test/nodes/_base.py +91 -0
- QuantNodes/research/factor_test/nodes/adjust_date_node.py +48 -0
- QuantNodes/research/factor_test/nodes/configs.py +240 -0
- QuantNodes/research/factor_test/nodes/factor_neutralize_node.py +87 -0
- QuantNodes/research/factor_test/nodes/factor_preprocess_node.py +222 -0
- QuantNodes/research/factor_test/nodes/factor_score_node.py +141 -0
- QuantNodes/research/factor_test/nodes/factor_test_report_node.py +153 -0
- QuantNodes/research/factor_test/nodes/group_analyzer_node.py +317 -0
- QuantNodes/research/factor_test/nodes/ic_analyzer_node.py +112 -0
- QuantNodes/research/factor_test/nodes/load_data_node.py +100 -0
- QuantNodes/research/factor_test/nodes/long_short_node.py +93 -0
- QuantNodes/research/factor_test/nodes/neutralizers.py +222 -0
- QuantNodes/research/factor_test/nodes/preprocess_strategies.py +277 -0
- QuantNodes/research/factor_test/nodes/risk_correlation_node.py +112 -0
- QuantNodes/research/factor_test/nodes/sample_pool_filter_node.py +110 -0
- QuantNodes/research/factor_test/nodes/tradability_filter_node.py +92 -0
- QuantNodes/research/factor_test/pipeline_runner.py +305 -0
- QuantNodes/research/factor_test/pipeline_spec.py +216 -0
- QuantNodes/research/factor_test/utils/__init__.py +26 -0
- QuantNodes/research/factor_test/utils/constants.py +86 -0
- QuantNodes/research/factor_test/utils/data_loader.py +141 -0
- QuantNodes/research/factor_test/utils/date_utils.py +232 -0
- QuantNodes/research/factor_test/utils/file_loaders.py +150 -0
- QuantNodes/research/factor_test/utils/labels.py +37 -0
- QuantNodes/research/factor_test/utils/metrics_extractor.py +55 -0
- QuantNodes/research/factor_test/utils/performance_metrics.py +175 -0
- QuantNodes/research/factor_test/utils/safe_load.py +106 -0
- QuantNodes/research/quant_alpha/CHANGELOG.md +80 -0
- QuantNodes/research/quant_alpha/README.md +142 -0
- QuantNodes/research/quant_alpha/__init__.py +45 -0
- QuantNodes/research/quant_alpha/adapters/__init__.py +99 -0
- QuantNodes/research/quant_alpha/adapters/calculator.py +503 -0
- QuantNodes/research/quant_alpha/adapters/expression.py +387 -0
- QuantNodes/research/quant_alpha/alpha101_design/__init__.py +50 -0
- QuantNodes/research/quant_alpha/alpha101_design/few_shot_examples.py +243 -0
- QuantNodes/research/quant_alpha/alpha101_design/philosophy.py +474 -0
- QuantNodes/research/quant_alpha/alpha158_design/__init__.py +63 -0
- QuantNodes/research/quant_alpha/alpha158_design/few_shot_examples.py +219 -0
- QuantNodes/research/quant_alpha/alpha158_design/philosophy.py +240 -0
- QuantNodes/research/quant_alpha/evaluation/__init__.py +47 -0
- QuantNodes/research/quant_alpha/evaluation/baselines/__init__.py +8 -0
- QuantNodes/research/quant_alpha/evaluation/baselines/g1_handcrafted.py +135 -0
- QuantNodes/research/quant_alpha/evaluation/baselines/g2_llm_only.py +269 -0
- QuantNodes/research/quant_alpha/evaluation/baselines/g3_alpha_gpt.py +152 -0
- QuantNodes/research/quant_alpha/evaluation/clickhouse_data_loader.py +227 -0
- QuantNodes/research/quant_alpha/evaluation/contracts.py +376 -0
- QuantNodes/research/quant_alpha/evaluation/evaluators/__init__.py +6 -0
- QuantNodes/research/quant_alpha/evaluation/evaluators/polars_evaluator.py +545 -0
- QuantNodes/research/quant_alpha/evaluation/mock_data_loader.py +226 -0
- QuantNodes/research/quant_alpha/evaluation/runner.py +243 -0
- QuantNodes/research/quant_alpha/llm/__init__.py +38 -0
- QuantNodes/research/quant_alpha/llm/parser.py +681 -0
- QuantNodes/research/quant_alpha/logic_driven_pipeline.py +411 -0
- QuantNodes/research/quant_alpha/logic_mining/__init__.py +74 -0
- QuantNodes/research/quant_alpha/logic_mining/compiler.py +457 -0
- QuantNodes/research/quant_alpha/logic_mining/generator.py +366 -0
- QuantNodes/research/quant_alpha/logic_mining/models.py +252 -0
- QuantNodes/research/quant_alpha/logic_mining/parser.py +287 -0
- QuantNodes/research/quant_alpha/logic_mining/pipelines.py +297 -0
- QuantNodes/research/quant_alpha/logic_mining/sources.py +149 -0
- QuantNodes/research/quant_alpha/mcts/__init__.py +66 -0
- QuantNodes/research/quant_alpha/mcts/cache.py +262 -0
- QuantNodes/research/quant_alpha/mcts/extension_ops.py +320 -0
- QuantNodes/research/quant_alpha/mcts/feedback.py +825 -0
- QuantNodes/research/quant_alpha/mcts/op_prior.py +180 -0
- QuantNodes/research/quant_alpha/mcts/search.py +540 -0
- QuantNodes/research/quant_alpha/mcts/tree.py +201 -0
- QuantNodes/research/quant_alpha/operator_vocab/__init__.py +50 -0
- QuantNodes/research/quant_alpha/operator_vocab/config.py +54 -0
- QuantNodes/research/quant_alpha/operator_vocab/metadata.py +263 -0
- QuantNodes/research/quant_alpha/operator_vocab/vocabulary.py +481 -0
- QuantNodes/research/quant_alpha/pipeline.py +1027 -0
- QuantNodes/research/quant_alpha/types/__init__.py +27 -0
- QuantNodes/research/quant_alpha/types/constants.py +28 -0
- QuantNodes/research/quant_alpha/types/state.py +205 -0
- QuantNodes/research/quant_alpha/workflow/__init__.py +32 -0
- QuantNodes/research/quant_alpha/workflow/alpha_gpt.py +911 -0
- QuantNodes/research/quant_alpha/workflow/alpha_logics.py +416 -0
- QuantNodes/research/quant_alpha/workflow/state.py +27 -0
- QuantNodes/research/report_reproducer.py +485 -0
- QuantNodes/research/wiki.py +1155 -0
- QuantNodes/symbolic/__init__.py +51 -0
- QuantNodes/symbolic/compiler.py +113 -0
- QuantNodes/symbolic/dialect.py +260 -0
- QuantNodes/symbolic/executor.py +147 -0
- QuantNodes/symbolic/expression.py +234 -0
- QuantNodes/symbolic/functions.py +433 -0
- QuantNodes/symbolic/optimizer.py +165 -0
- QuantNodes/ui_node/__init__.py +30 -0
- QuantNodes/ui_node/base.py +222 -0
- quantnodes-3.0.0.dist-info/METADATA +463 -0
- quantnodes-3.0.0.dist-info/RECORD +399 -0
- quantnodes-3.0.0.dist-info/WHEEL +5 -0
- quantnodes-3.0.0.dist-info/entry_points.txt +24 -0
- quantnodes-3.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
"""``quantnodes init`` command."""
|
|
3
|
+
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from QuantNodes.cli.command import Command
|
|
7
|
+
from QuantNodes.constants import DEFAULT_LLM_MODEL
|
|
8
|
+
from .._helpers import (
|
|
9
|
+
confirm_section,
|
|
10
|
+
create_directory_structure,
|
|
11
|
+
get_input_with_default,
|
|
12
|
+
get_model_choice,
|
|
13
|
+
get_yes_no,
|
|
14
|
+
init_llmwikify_wiki,
|
|
15
|
+
install_talib,
|
|
16
|
+
print_nanobot_install_hint,
|
|
17
|
+
write_conn_ini,
|
|
18
|
+
write_env_file,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def cmd_init(args) -> int:
|
|
23
|
+
"""Initialize current directory for QuantNodes."""
|
|
24
|
+
print()
|
|
25
|
+
print("=" * 50)
|
|
26
|
+
print("QuantNodes 初始化向导")
|
|
27
|
+
print("=" * 50)
|
|
28
|
+
|
|
29
|
+
current_dir = Path.cwd()
|
|
30
|
+
print(f"\n✓ 检测当前目录: {current_dir}")
|
|
31
|
+
print("✓ 检查初始化状态...")
|
|
32
|
+
|
|
33
|
+
already_init = False
|
|
34
|
+
if Path(".env").exists():
|
|
35
|
+
print(" ✗ .env 已存在")
|
|
36
|
+
already_init = True
|
|
37
|
+
|
|
38
|
+
if Path("conn.ini").exists():
|
|
39
|
+
print(" ✗ conn.ini 已存在")
|
|
40
|
+
already_init = True
|
|
41
|
+
|
|
42
|
+
if already_init and not args.force:
|
|
43
|
+
print("\n错误: 当前目录已初始化")
|
|
44
|
+
print("请先 cd 到其他目录,或使用 --force 强制重新初始化")
|
|
45
|
+
return 1
|
|
46
|
+
|
|
47
|
+
if already_init and args.force:
|
|
48
|
+
print(" (强制模式: 将覆盖现有配置)")
|
|
49
|
+
|
|
50
|
+
print()
|
|
51
|
+
|
|
52
|
+
print("-" * 50)
|
|
53
|
+
print("配置 LLM")
|
|
54
|
+
print("-" * 50)
|
|
55
|
+
|
|
56
|
+
api_key = get_input_with_default(
|
|
57
|
+
"请输入 OpenAI API Key (sk-...)",
|
|
58
|
+
"",
|
|
59
|
+
required=True
|
|
60
|
+
)
|
|
61
|
+
while not api_key.startswith("sk-"):
|
|
62
|
+
print(" 错误: API Key 必须以 sk- 开头")
|
|
63
|
+
api_key = get_input_with_default(
|
|
64
|
+
"请输入 OpenAI API Key (sk-...)",
|
|
65
|
+
"",
|
|
66
|
+
required=True
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
base_url = get_input_with_default(
|
|
70
|
+
"请输入 API Base URL",
|
|
71
|
+
"https://api.openai.com/v1"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
model = get_model_choice()
|
|
75
|
+
if model == "custom":
|
|
76
|
+
model = get_input_with_default("请输入自定义模型名称", DEFAULT_LLM_MODEL)
|
|
77
|
+
|
|
78
|
+
print()
|
|
79
|
+
print("-" * 50)
|
|
80
|
+
print("配置数据源")
|
|
81
|
+
print("-" * 50)
|
|
82
|
+
|
|
83
|
+
duckdb_path = get_input_with_default(
|
|
84
|
+
"DuckDB 数据库路径",
|
|
85
|
+
"data/quantnodes.db"
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
configure_clickhouse = get_yes_no("是否配置 ClickHouse", default=False)
|
|
89
|
+
configure_mysql = get_yes_no("是否配置 MySQL", default=False)
|
|
90
|
+
|
|
91
|
+
clickhouse_config = {}
|
|
92
|
+
mysql_config = {}
|
|
93
|
+
|
|
94
|
+
if configure_clickhouse:
|
|
95
|
+
clickhouse_config = confirm_section(
|
|
96
|
+
"ClickHouse",
|
|
97
|
+
[
|
|
98
|
+
("Host", "localhost"),
|
|
99
|
+
("Port", "8123"),
|
|
100
|
+
("User", "default"),
|
|
101
|
+
("Password", ""),
|
|
102
|
+
("Database", "default"),
|
|
103
|
+
],
|
|
104
|
+
) or {}
|
|
105
|
+
|
|
106
|
+
if configure_mysql:
|
|
107
|
+
mysql_config = confirm_section(
|
|
108
|
+
"MySQL",
|
|
109
|
+
[
|
|
110
|
+
("Host", "localhost"),
|
|
111
|
+
("Port", "3306"),
|
|
112
|
+
("User", "root"),
|
|
113
|
+
("Password", ""),
|
|
114
|
+
("Database", "quant"),
|
|
115
|
+
],
|
|
116
|
+
) or {}
|
|
117
|
+
|
|
118
|
+
print()
|
|
119
|
+
|
|
120
|
+
print("-" * 50)
|
|
121
|
+
print("初始化 llmwikify Wiki")
|
|
122
|
+
print("-" * 50)
|
|
123
|
+
init_llmwikify_wiki(force=args.force)
|
|
124
|
+
print()
|
|
125
|
+
|
|
126
|
+
print("-" * 50)
|
|
127
|
+
print("创建目录结构")
|
|
128
|
+
print("-" * 50)
|
|
129
|
+
create_directory_structure()
|
|
130
|
+
print()
|
|
131
|
+
|
|
132
|
+
print("-" * 50)
|
|
133
|
+
print("创建配置文件")
|
|
134
|
+
print("-" * 50)
|
|
135
|
+
|
|
136
|
+
write_env_file(api_key, base_url, model, duckdb_path, clickhouse_config, mysql_config)
|
|
137
|
+
write_conn_ini(duckdb_path, clickhouse_config, mysql_config)
|
|
138
|
+
|
|
139
|
+
print()
|
|
140
|
+
|
|
141
|
+
install_talib_option = get_yes_no("是否安装 TA-Lib 技术分析库 (可选)", default=True)
|
|
142
|
+
if install_talib_option:
|
|
143
|
+
install_talib()
|
|
144
|
+
|
|
145
|
+
print()
|
|
146
|
+
print("=" * 50)
|
|
147
|
+
print("✓ 初始化完成!")
|
|
148
|
+
print("=" * 50)
|
|
149
|
+
print()
|
|
150
|
+
print("快速启动:")
|
|
151
|
+
print(" # 启动后端(推荐)")
|
|
152
|
+
print(" quantnodes serve # 前台,Ctrl+C 停止")
|
|
153
|
+
print(" quantnodes serve --daemon # 后台,写 .quantnodes.pid")
|
|
154
|
+
print(" quantnodes serve --frontend # 同时启动 Vite dev server")
|
|
155
|
+
print(" quantnodes serve --check-env # 启动前校验 API key")
|
|
156
|
+
print()
|
|
157
|
+
print(" # 服务管理")
|
|
158
|
+
print(" quantnodes status # health + agent state")
|
|
159
|
+
print(" quantnodes logs -f # 实时日志")
|
|
160
|
+
print(" quantnodes stop # 停止后台 serve")
|
|
161
|
+
print()
|
|
162
|
+
print(" # Agent Chat(HTTP 模式,需后端在跑)")
|
|
163
|
+
print(" quantnodes agent chat '一句话回答动量因子'")
|
|
164
|
+
print()
|
|
165
|
+
print(" # 启动前端 (新终端)")
|
|
166
|
+
print(" cd frontend && npm run dev")
|
|
167
|
+
print()
|
|
168
|
+
print(" # 或使用 quantnodes run 启动全部服务(旧接口,兼容保留)")
|
|
169
|
+
print()
|
|
170
|
+
print("访问 http://localhost:5173")
|
|
171
|
+
print()
|
|
172
|
+
|
|
173
|
+
# v3.0.0 Stage 7: 友好提示 nanobot-ai 可选依赖
|
|
174
|
+
print_nanobot_install_hint()
|
|
175
|
+
|
|
176
|
+
return 0
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class InitCommand(Command):
|
|
180
|
+
"""``quantnodes init`` subcommand."""
|
|
181
|
+
|
|
182
|
+
name = "init"
|
|
183
|
+
description = "初始化当前目录"
|
|
184
|
+
|
|
185
|
+
def add_arguments(self, subparsers) -> None:
|
|
186
|
+
p = subparsers.add_parser(self.name, help=self.description)
|
|
187
|
+
p.add_argument("--force", action="store_true", help="强制重新初始化")
|
|
188
|
+
|
|
189
|
+
def run(self, args) -> int:
|
|
190
|
+
return cmd_init(args)
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
"""``quantnodes run`` command + server start helpers."""
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
import subprocess
|
|
6
|
+
import sys
|
|
7
|
+
from datetime import datetime
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import Optional, Tuple, Any, List
|
|
10
|
+
|
|
11
|
+
from QuantNodes.core.path_utils import ensure_parent
|
|
12
|
+
from QuantNodes.cli.command import Command
|
|
13
|
+
|
|
14
|
+
from .._helpers import (
|
|
15
|
+
DEFAULT_API_PORT,
|
|
16
|
+
DEFAULT_FRONTEND_PORT,
|
|
17
|
+
DEFAULT_GATEWAY_PORT,
|
|
18
|
+
DEFAULT_HOST,
|
|
19
|
+
get_project_root,
|
|
20
|
+
is_initialized,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def start_api_server(
|
|
25
|
+
host: str,
|
|
26
|
+
port: int,
|
|
27
|
+
log_file: Optional[Path] = None,
|
|
28
|
+
gateway_port: Optional[int] = None,
|
|
29
|
+
) -> Tuple[subprocess.Popen, Optional[Any]]:
|
|
30
|
+
"""Start the API server. Returns (process, log_file_handle).
|
|
31
|
+
|
|
32
|
+
v3.0.0 Stage 7: ``gateway_port`` (default ``DEFAULT_GATEWAY_PORT=18090``)
|
|
33
|
+
is injected into the subprocess env as ``NANOBOT_GATEWAY_PORT`` so the
|
|
34
|
+
nanobot WebSocket gateway binds to a port not occupied by gpustack
|
|
35
|
+
(which defaults to 18080).
|
|
36
|
+
"""
|
|
37
|
+
cmd = [
|
|
38
|
+
sys.executable, "-m", "uvicorn",
|
|
39
|
+
"api.main:app",
|
|
40
|
+
"--host", host,
|
|
41
|
+
"--port", str(port),
|
|
42
|
+
"--reload"
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
env = os.environ.copy()
|
|
46
|
+
env["NANOBOT_GATEWAY_HOST"] = host
|
|
47
|
+
env["NANOBOT_GATEWAY_PORT"] = str(gateway_port or DEFAULT_GATEWAY_PORT)
|
|
48
|
+
|
|
49
|
+
if log_file:
|
|
50
|
+
ensure_parent(log_file)
|
|
51
|
+
log_fd = open(log_file, "w", encoding="utf-8")
|
|
52
|
+
proc = subprocess.Popen(
|
|
53
|
+
cmd,
|
|
54
|
+
stdout=log_fd,
|
|
55
|
+
stderr=subprocess.STDOUT,
|
|
56
|
+
cwd=get_project_root(),
|
|
57
|
+
env=env,
|
|
58
|
+
)
|
|
59
|
+
return proc, log_fd
|
|
60
|
+
else:
|
|
61
|
+
proc = subprocess.Popen(
|
|
62
|
+
cmd,
|
|
63
|
+
cwd=get_project_root(),
|
|
64
|
+
env=env,
|
|
65
|
+
)
|
|
66
|
+
return proc, None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def start_frontend_server(
|
|
70
|
+
host: str,
|
|
71
|
+
port: int,
|
|
72
|
+
api_port: int = DEFAULT_API_PORT,
|
|
73
|
+
log_file: Optional[Path] = None,
|
|
74
|
+
) -> Tuple[subprocess.Popen, Optional[Any]]:
|
|
75
|
+
"""Start the frontend server. Returns (process, log_file_handle)."""
|
|
76
|
+
cmd = ["npm", "run", "dev"]
|
|
77
|
+
|
|
78
|
+
env = os.environ.copy()
|
|
79
|
+
env["HOST"] = host
|
|
80
|
+
env["PORT"] = str(port)
|
|
81
|
+
env["API_PORT"] = str(api_port)
|
|
82
|
+
|
|
83
|
+
if log_file:
|
|
84
|
+
ensure_parent(log_file)
|
|
85
|
+
log_fd = open(log_file, "w", encoding="utf-8")
|
|
86
|
+
proc = subprocess.Popen(
|
|
87
|
+
cmd,
|
|
88
|
+
stdout=log_fd,
|
|
89
|
+
stderr=subprocess.STDOUT,
|
|
90
|
+
cwd=str(get_project_root() / "frontend"),
|
|
91
|
+
env=env
|
|
92
|
+
)
|
|
93
|
+
return proc, log_fd
|
|
94
|
+
else:
|
|
95
|
+
proc = subprocess.Popen(
|
|
96
|
+
cmd,
|
|
97
|
+
cwd=str(get_project_root() / "frontend"),
|
|
98
|
+
env=env
|
|
99
|
+
)
|
|
100
|
+
return proc, None
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def cmd_run(args) -> int:
|
|
104
|
+
"""Start QuantNodes services."""
|
|
105
|
+
if not is_initialized():
|
|
106
|
+
print("错误: 当前目录未初始化")
|
|
107
|
+
print("请先运行: quantnodes init")
|
|
108
|
+
return 1
|
|
109
|
+
|
|
110
|
+
host = args.host or DEFAULT_HOST
|
|
111
|
+
frontend_port = args.port or DEFAULT_FRONTEND_PORT
|
|
112
|
+
# 联动:如果只设置 --port,则 api_port = port + 1000
|
|
113
|
+
if args.port and not args.api_port:
|
|
114
|
+
api_port = args.port + 1000
|
|
115
|
+
else:
|
|
116
|
+
api_port = args.api_port or DEFAULT_API_PORT
|
|
117
|
+
|
|
118
|
+
if args.daemon:
|
|
119
|
+
if sys.platform != "linux":
|
|
120
|
+
print("错误: daemon 模式仅支持 Linux")
|
|
121
|
+
return 1
|
|
122
|
+
|
|
123
|
+
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
124
|
+
log_dir = Path("logs")
|
|
125
|
+
log_dir.mkdir(exist_ok=True)
|
|
126
|
+
|
|
127
|
+
api_log = log_dir / f"quantnodes_api_{timestamp}.log"
|
|
128
|
+
frontend_log = log_dir / f"quantnodes_frontend_{timestamp}.log"
|
|
129
|
+
|
|
130
|
+
print("=" * 50)
|
|
131
|
+
print("QuantNodes 服务 (后台运行)")
|
|
132
|
+
print("=" * 50)
|
|
133
|
+
print(f" 后端: http://{host}:{api_port}")
|
|
134
|
+
print(f" 前端: http://{host}:{frontend_port}")
|
|
135
|
+
print(f" API 日志: {api_log}")
|
|
136
|
+
print(f" 前端日志: {frontend_log}")
|
|
137
|
+
print()
|
|
138
|
+
|
|
139
|
+
api_proc, api_fd = start_api_server(host, api_port, api_log,
|
|
140
|
+
gateway_port=args.gateway_port)
|
|
141
|
+
frontend_proc, frontend_fd = start_frontend_server(
|
|
142
|
+
host, frontend_port, api_port, frontend_log,
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
print("✓ 服务已后台启动")
|
|
146
|
+
print(f" API 进程: {api_proc.pid}")
|
|
147
|
+
print(f" 前端进程: {frontend_proc.pid}")
|
|
148
|
+
print(f" nanobot gateway: ws://{host}:{args.gateway_port}")
|
|
149
|
+
print()
|
|
150
|
+
print("查看日志:")
|
|
151
|
+
print(f" tail -f {api_log}")
|
|
152
|
+
print(f" tail -f {frontend_log}")
|
|
153
|
+
print()
|
|
154
|
+
print("停止服务:")
|
|
155
|
+
print(f" kill {api_proc.pid} {frontend_proc.pid}")
|
|
156
|
+
print(f" (quantnodes stop 仅作用于 serve --daemon 启动的服务)")
|
|
157
|
+
|
|
158
|
+
return 0
|
|
159
|
+
|
|
160
|
+
print("=" * 50)
|
|
161
|
+
print("QuantNodes 服务")
|
|
162
|
+
print("=" * 50)
|
|
163
|
+
|
|
164
|
+
processes: List[Tuple[str, subprocess.Popen]] = []
|
|
165
|
+
log_fds: List[Any] = []
|
|
166
|
+
|
|
167
|
+
try:
|
|
168
|
+
if not args.frontend_only:
|
|
169
|
+
print(f"\n启动后端: http://{host}:{api_port}")
|
|
170
|
+
print(f" nanobot gateway: ws://{host}:{args.gateway_port}")
|
|
171
|
+
api_proc, api_fd = start_api_server(host, api_port,
|
|
172
|
+
gateway_port=args.gateway_port)
|
|
173
|
+
processes.append(("API", api_proc))
|
|
174
|
+
log_fds.append(api_fd)
|
|
175
|
+
print(f" 进程 PID: {api_proc.pid}")
|
|
176
|
+
|
|
177
|
+
if not args.api_only:
|
|
178
|
+
print(f"\n启动前端: http://{host}:{frontend_port}")
|
|
179
|
+
# Wait for backend to be ready before starting frontend
|
|
180
|
+
import time
|
|
181
|
+
import urllib.request
|
|
182
|
+
import urllib.error
|
|
183
|
+
print(" 等待后端就绪...")
|
|
184
|
+
for i in range(30):
|
|
185
|
+
try:
|
|
186
|
+
urllib.request.urlopen(f"http://localhost:{api_port}/docs", timeout=2)
|
|
187
|
+
print(" ✓ 后端已就绪")
|
|
188
|
+
break
|
|
189
|
+
except (urllib.error.URLError, OSError):
|
|
190
|
+
time.sleep(1)
|
|
191
|
+
else:
|
|
192
|
+
print(" ⚠ 后端未就绪,继续启动前端")
|
|
193
|
+
frontend_proc, frontend_fd = start_frontend_server(host, frontend_port, api_port)
|
|
194
|
+
processes.append(("Frontend", frontend_proc))
|
|
195
|
+
log_fds.append(frontend_fd)
|
|
196
|
+
print(f" 进程 PID: {frontend_proc.pid}")
|
|
197
|
+
|
|
198
|
+
print()
|
|
199
|
+
print("=" * 50)
|
|
200
|
+
print("✓ 服务已启动")
|
|
201
|
+
print("=" * 50)
|
|
202
|
+
print()
|
|
203
|
+
print("访问:")
|
|
204
|
+
if not args.frontend_only:
|
|
205
|
+
print(f" 后端: http://localhost:{api_port}/docs")
|
|
206
|
+
if not args.api_only:
|
|
207
|
+
print(f" 前端: http://localhost:{frontend_port}")
|
|
208
|
+
print()
|
|
209
|
+
print("按 Ctrl+C 停止服务")
|
|
210
|
+
print()
|
|
211
|
+
|
|
212
|
+
try:
|
|
213
|
+
for name, proc in processes:
|
|
214
|
+
proc.wait()
|
|
215
|
+
except KeyboardInterrupt:
|
|
216
|
+
print("\n\n正在停止服务...")
|
|
217
|
+
for name, proc in processes:
|
|
218
|
+
proc.terminate()
|
|
219
|
+
proc.wait()
|
|
220
|
+
for fd in log_fds:
|
|
221
|
+
if fd:
|
|
222
|
+
fd.close()
|
|
223
|
+
print("✓ 服务已停止")
|
|
224
|
+
|
|
225
|
+
except Exception as e:
|
|
226
|
+
print(f"错误: {e}")
|
|
227
|
+
for name, proc in processes:
|
|
228
|
+
proc.terminate()
|
|
229
|
+
for fd in log_fds:
|
|
230
|
+
if fd:
|
|
231
|
+
fd.close()
|
|
232
|
+
return 1
|
|
233
|
+
|
|
234
|
+
return 0
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
class RunCommand(Command):
|
|
238
|
+
"""``quantnodes run`` subcommand."""
|
|
239
|
+
|
|
240
|
+
name = "run"
|
|
241
|
+
description = "启动服务"
|
|
242
|
+
|
|
243
|
+
def add_arguments(self, subparsers) -> None:
|
|
244
|
+
p = subparsers.add_parser(self.name, help=self.description)
|
|
245
|
+
p.add_argument("--host", help="绑定主机")
|
|
246
|
+
p.add_argument("--port", type=int, help="前端端口")
|
|
247
|
+
p.add_argument("--api-port", type=int, dest="api_port", help="后端端口")
|
|
248
|
+
# v3.0.0 Stage 7: nanobot WebSocket gateway 端口(注入到子进程 env)
|
|
249
|
+
p.add_argument("--gateway-port", type=int, dest="gateway_port",
|
|
250
|
+
default=DEFAULT_GATEWAY_PORT,
|
|
251
|
+
help=f"nanobot WebSocket gateway 端口 (默认 {DEFAULT_GATEWAY_PORT})")
|
|
252
|
+
p.add_argument("--daemon", action="store_true", help="后台运行 (仅 Linux)")
|
|
253
|
+
p.add_argument("--api-only", action="store_true", dest="api_only", help="仅启动后端")
|
|
254
|
+
p.add_argument(
|
|
255
|
+
"--frontend-only", action="store_true", dest="frontend_only", help="仅启动前端"
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
def run(self, args) -> int:
|
|
259
|
+
return cmd_run(args)
|