dexbot 1.1.10
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.
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/claw/README.md +513 -0
- package/claw/scripts/memu_runner.py +385 -0
- package/claw/skills/bitshares-guide/SKILL.md +14 -0
- package/claw/skills/bitshares-guide/references/example-skill-shells.md +18 -0
- package/claw/skills/bitshares-guide/references/presentation-patterns.md +19 -0
- package/claw/skills/bitshares-guide/references/scope-guardrails.md +9 -0
- package/claw/skills/launcher-ops/SKILL.md +18 -0
- package/claw/skills/launcher-ops/references/launcher-workflow.md +23 -0
- package/claw/skills/margin-trading/SKILL.md +23 -0
- package/claw/skills/margin-trading/references/honest-asset-list.md +74 -0
- package/claw/skills/margin-trading/references/honest-assets.md +44 -0
- package/claw/skills/margin-trading/references/position-management.md +203 -0
- package/claw/skills/margin-trading/references/trading-concepts.md +80 -0
- package/claw/skills/memu-memory/SKILL.md +218 -0
- package/claw/skills/shared/references/js-automation-overview.md +24 -0
- package/claw/skills/shared/references/safety-and-staleness.md +11 -0
- package/claw/skills/shared/references/skill-boundaries.md +17 -0
- package/claw/skills/trend-detection/SKILL.md +33 -0
- package/claw/skills/trend-detection/agents/openai.yaml +3 -0
- package/claw/skills/trend-detection/references/service.md +45 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js +149 -0
- package/dist/analysis/ama_fitting/analyze_ama_price_changes.js.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts +3 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js +387 -0
- package/dist/analysis/ama_fitting/analyze_lambda_vs_slow.js.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts +3 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js +200 -0
- package/dist/analysis/ama_fitting/calibrate_convergence_er.js.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts +3 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js +212 -0
- package/dist/analysis/ama_fitting/fetch_lp_candles.js.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts +31 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js +249 -0
- package/dist/analysis/ama_fitting/generate_unified_comparison_chart.js.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts +2 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.d.ts.map +1 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js +782 -0
- package/dist/analysis/ama_fitting/optimizer_high_resolution.js.map +1 -0
- package/dist/analysis/analyze_derivatives.d.ts +95 -0
- package/dist/analysis/analyze_derivatives.d.ts.map +1 -0
- package/dist/analysis/analyze_derivatives.js +295 -0
- package/dist/analysis/analyze_derivatives.js.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts +14 -0
- package/dist/analysis/analyze_dynamic_weight.d.ts.map +1 -0
- package/dist/analysis/analyze_dynamic_weight.js +208 -0
- package/dist/analysis/analyze_dynamic_weight.js.map +1 -0
- package/dist/analysis/analyze_kalman.d.ts +13 -0
- package/dist/analysis/analyze_kalman.d.ts.map +1 -0
- package/dist/analysis/analyze_kalman.js +123 -0
- package/dist/analysis/analyze_kalman.js.map +1 -0
- package/dist/analysis/analyze_regime.d.ts +20 -0
- package/dist/analysis/analyze_regime.d.ts.map +1 -0
- package/dist/analysis/analyze_regime.js +139 -0
- package/dist/analysis/analyze_regime.js.map +1 -0
- package/dist/analysis/analyze_regime_windows.d.ts +19 -0
- package/dist/analysis/analyze_regime_windows.d.ts.map +1 -0
- package/dist/analysis/analyze_regime_windows.js +413 -0
- package/dist/analysis/analyze_regime_windows.js.map +1 -0
- package/dist/analysis/analyze_risk_profile.d.ts +3 -0
- package/dist/analysis/analyze_risk_profile.d.ts.map +1 -0
- package/dist/analysis/analyze_risk_profile.js +159 -0
- package/dist/analysis/analyze_risk_profile.js.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts +3 -0
- package/dist/analysis/analyze_trade_heatmap.d.ts.map +1 -0
- package/dist/analysis/analyze_trade_heatmap.js +367 -0
- package/dist/analysis/analyze_trade_heatmap.js.map +1 -0
- package/dist/analysis/analyze_volatility.d.ts +22 -0
- package/dist/analysis/analyze_volatility.d.ts.map +1 -0
- package/dist/analysis/analyze_volatility.js +172 -0
- package/dist/analysis/analyze_volatility.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts +99 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js +804 -0
- package/dist/analysis/bot_fitting/backtest_ama_sweep.js.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts +2 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js +347 -0
- package/dist/analysis/bot_fitting/backtest_bot_fitting.js.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts +15 -0
- package/dist/analysis/bot_fitting/shared_utils.d.ts.map +1 -0
- package/dist/analysis/bot_fitting/shared_utils.js +48 -0
- package/dist/analysis/bot_fitting/shared_utils.js.map +1 -0
- package/dist/analysis/bot_key_utils.d.ts +16 -0
- package/dist/analysis/bot_key_utils.d.ts.map +1 -0
- package/dist/analysis/bot_key_utils.js +61 -0
- package/dist/analysis/bot_key_utils.js.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts +3 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.d.ts.map +1 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js +498 -0
- package/dist/analysis/bot_usage/discover_bot_accounts.js.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts +546 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.d.ts.map +1 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js +427 -0
- package/dist/analysis/bot_usage/kibana_bot_queries.js.map +1 -0
- package/dist/analysis/chart_utils.d.ts +13 -0
- package/dist/analysis/chart_utils.d.ts.map +1 -0
- package/dist/analysis/chart_utils.js +142 -0
- package/dist/analysis/chart_utils.js.map +1 -0
- package/dist/analysis/derivative_chart_generator.d.ts +18 -0
- package/dist/analysis/derivative_chart_generator.d.ts.map +1 -0
- package/dist/analysis/derivative_chart_generator.js +896 -0
- package/dist/analysis/derivative_chart_generator.js.map +1 -0
- package/dist/analysis/math_utils.d.ts +35 -0
- package/dist/analysis/math_utils.d.ts.map +1 -0
- package/dist/analysis/math_utils.js +121 -0
- package/dist/analysis/math_utils.js.map +1 -0
- package/dist/analysis/price_sources.d.ts +34 -0
- package/dist/analysis/price_sources.d.ts.map +1 -0
- package/dist/analysis/price_sources.js +103 -0
- package/dist/analysis/price_sources.js.map +1 -0
- package/dist/analysis/trade_profitability.d.ts +115 -0
- package/dist/analysis/trade_profitability.d.ts.map +1 -0
- package/dist/analysis/trade_profitability.js +1247 -0
- package/dist/analysis/trade_profitability.js.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts +38 -0
- package/dist/analysis/tradingview/analyze_tradingview.d.ts.map +1 -0
- package/dist/analysis/tradingview/analyze_tradingview.js +212 -0
- package/dist/analysis/tradingview/analyze_tradingview.js.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +9 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +1 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js +1717 -0
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts +250 -0
- package/dist/analysis/trend_detection/derivative_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js +903 -0
- package/dist/analysis/trend_detection/derivative_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js +1449 -0
- package/dist/analysis/trend_detection/dynamic_weight_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts +42 -0
- package/dist/analysis/trend_detection/hurst_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js +159 -0
- package/dist/analysis/trend_detection/hurst_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js +408 -0
- package/dist/analysis/trend_detection/kalman_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts +103 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js +229 -0
- package/dist/analysis/trend_detection/kalman_trend_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts +34 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js +89 -0
- package/dist/analysis/trend_detection/kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts +39 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.d.ts.map +1 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js +132 -0
- package/dist/analysis/trend_detection/permutation_entropy_analyzer.js.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/regime_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js +345 -0
- package/dist/analysis/trend_detection/regime_chart_generator.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js +130 -0
- package/dist/analysis/trend_detection/tests/test_kalman_trend.js.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts +2 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.d.ts.map +1 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js +38 -0
- package/dist/analysis/trend_detection/tests/test_kalman_velocity_smoothing.js.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts +6 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.d.ts.map +1 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js +732 -0
- package/dist/analysis/trend_detection/volatility_chart_generator.js.map +1 -0
- package/dist/bot.d.ts +49 -0
- package/dist/bot.d.ts.map +1 -0
- package/dist/bot.js +221 -0
- package/dist/bot.js.map +1 -0
- package/dist/credential-daemon.d.ts +64 -0
- package/dist/credential-daemon.d.ts.map +1 -0
- package/dist/credential-daemon.js +987 -0
- package/dist/credential-daemon.js.map +1 -0
- package/dist/dexbot.d.ts +87 -0
- package/dist/dexbot.d.ts.map +1 -0
- package/dist/dexbot.js +1222 -0
- package/dist/dexbot.js.map +1 -0
- package/dist/market_adapter/ama_signal_runner.d.ts +3 -0
- package/dist/market_adapter/ama_signal_runner.d.ts.map +1 -0
- package/dist/market_adapter/ama_signal_runner.js +175 -0
- package/dist/market_adapter/ama_signal_runner.js.map +1 -0
- package/dist/market_adapter/candle_utils.d.ts +57 -0
- package/dist/market_adapter/candle_utils.d.ts.map +1 -0
- package/dist/market_adapter/candle_utils.js +252 -0
- package/dist/market_adapter/candle_utils.js.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts +20 -0
- package/dist/market_adapter/core/asymmetric_bounds.d.ts.map +1 -0
- package/dist/market_adapter/core/asymmetric_bounds.js +88 -0
- package/dist/market_adapter/core/asymmetric_bounds.js.map +1 -0
- package/dist/market_adapter/core/config_normalizers.d.ts +10 -0
- package/dist/market_adapter/core/config_normalizers.d.ts.map +1 -0
- package/dist/market_adapter/core/config_normalizers.js +24 -0
- package/dist/market_adapter/core/config_normalizers.js.map +1 -0
- package/dist/market_adapter/core/kibana_candles.d.ts +74 -0
- package/dist/market_adapter/core/kibana_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_candles.js +249 -0
- package/dist/market_adapter/core/kibana_candles.js.map +1 -0
- package/dist/market_adapter/core/kibana_client.d.ts +27 -0
- package/dist/market_adapter/core/kibana_client.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_client.js +120 -0
- package/dist/market_adapter/core/kibana_client.js.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts +143 -0
- package/dist/market_adapter/core/kibana_market_candles.d.ts.map +1 -0
- package/dist/market_adapter/core/kibana_market_candles.js +170 -0
- package/dist/market_adapter/core/kibana_market_candles.js.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts +210 -0
- package/dist/market_adapter/core/market_adapter_service.d.ts.map +1 -0
- package/dist/market_adapter/core/market_adapter_service.js +2328 -0
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama.d.ts +2 -0
- package/dist/market_adapter/core/strategies/ama.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama.js +138 -0
- package/dist/market_adapter/core/strategies/ama.js.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts +50 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js +143 -0
- package/dist/market_adapter/core/strategies/ama_slope_model.js.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts +12 -0
- package/dist/market_adapter/core/strategies/atr/calculator.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js +47 -0
- package/dist/market_adapter/core/strategies/atr/calculator.js.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts +32 -0
- package/dist/market_adapter/core/strategies/collateral_manager.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js +68 -0
- package/dist/market_adapter/core/strategies/collateral_manager.js.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts +66 -0
- package/dist/market_adapter/core/strategies/regime_gate.d.ts.map +1 -0
- package/dist/market_adapter/core/strategies/regime_gate.js +189 -0
- package/dist/market_adapter/core/strategies/regime_gate.js.map +1 -0
- package/dist/market_adapter/index.d.ts +10 -0
- package/dist/market_adapter/index.d.ts.map +1 -0
- package/dist/market_adapter/index.js +71 -0
- package/dist/market_adapter/index.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts +3 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js +1165 -0
- package/dist/market_adapter/inputs/fetch_cex_synthetic_data.js.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts +54 -0
- package/dist/market_adapter/inputs/fetch_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js +743 -0
- package/dist/market_adapter/inputs/fetch_lp_data.js.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts +68 -0
- package/dist/market_adapter/inputs/kibana_source.d.ts.map +1 -0
- package/dist/market_adapter/inputs/kibana_source.js +143 -0
- package/dist/market_adapter/inputs/kibana_source.js.map +1 -0
- package/dist/market_adapter/interval_utils.d.ts +6 -0
- package/dist/market_adapter/interval_utils.d.ts.map +1 -0
- package/dist/market_adapter/interval_utils.js +14 -0
- package/dist/market_adapter/interval_utils.js.map +1 -0
- package/dist/market_adapter/log_format.d.ts +16 -0
- package/dist/market_adapter/log_format.d.ts.map +1 -0
- package/dist/market_adapter/log_format.js +72 -0
- package/dist/market_adapter/log_format.js.map +1 -0
- package/dist/market_adapter/lp_chart_core.d.ts +6 -0
- package/dist/market_adapter/lp_chart_core.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_core.js +874 -0
- package/dist/market_adapter/lp_chart_core.js.map +1 -0
- package/dist/market_adapter/lp_chart_runner.d.ts +135 -0
- package/dist/market_adapter/lp_chart_runner.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_runner.js +337 -0
- package/dist/market_adapter/lp_chart_runner.js.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts +23 -0
- package/dist/market_adapter/lp_chart_strategy_loader.d.ts.map +1 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js +169 -0
- package/dist/market_adapter/lp_chart_strategy_loader.js.map +1 -0
- package/dist/market_adapter/market_adapter.d.ts +133 -0
- package/dist/market_adapter/market_adapter.d.ts.map +1 -0
- package/dist/market_adapter/market_adapter.js +1331 -0
- package/dist/market_adapter/market_adapter.js.map +1 -0
- package/dist/market_adapter/merge_lp_data.d.ts +3 -0
- package/dist/market_adapter/merge_lp_data.d.ts.map +1 -0
- package/dist/market_adapter/merge_lp_data.js +125 -0
- package/dist/market_adapter/merge_lp_data.js.map +1 -0
- package/dist/market_adapter/test_helpers.d.ts +14 -0
- package/dist/market_adapter/test_helpers.d.ts.map +1 -0
- package/dist/market_adapter/test_helpers.js +22 -0
- package/dist/market_adapter/test_helpers.js.map +1 -0
- package/dist/market_adapter/utils/adapter_client.d.ts +20 -0
- package/dist/market_adapter/utils/adapter_client.d.ts.map +1 -0
- package/dist/market_adapter/utils/adapter_client.js +88 -0
- package/dist/market_adapter/utils/adapter_client.js.map +1 -0
- package/dist/market_adapter/utils/atomic_write.d.ts +9 -0
- package/dist/market_adapter/utils/atomic_write.d.ts.map +1 -0
- package/dist/market_adapter/utils/atomic_write.js +13 -0
- package/dist/market_adapter/utils/atomic_write.js.map +1 -0
- package/dist/market_adapter/utils/chain.d.ts +50 -0
- package/dist/market_adapter/utils/chain.d.ts.map +1 -0
- package/dist/market_adapter/utils/chain.js +196 -0
- package/dist/market_adapter/utils/chain.js.map +1 -0
- package/dist/market_adapter/utils/data_discovery.d.ts +6 -0
- package/dist/market_adapter/utils/data_discovery.d.ts.map +1 -0
- package/dist/market_adapter/utils/data_discovery.js +35 -0
- package/dist/market_adapter/utils/data_discovery.js.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts +15 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.d.ts.map +1 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js +60 -0
- package/dist/market_adapter/utils/dynamic_grid_snapshot.js.map +1 -0
- package/dist/market_adapter/utils/file_lock.d.ts +19 -0
- package/dist/market_adapter/utils/file_lock.d.ts.map +1 -0
- package/dist/market_adapter/utils/file_lock.js +191 -0
- package/dist/market_adapter/utils/file_lock.js.map +1 -0
- package/dist/market_adapter/utils/native_history.d.ts +19 -0
- package/dist/market_adapter/utils/native_history.d.ts.map +1 -0
- package/dist/market_adapter/utils/native_history.js +172 -0
- package/dist/market_adapter/utils/native_history.js.map +1 -0
- package/dist/market_adapter/utils/paths.d.ts +5 -0
- package/dist/market_adapter/utils/paths.d.ts.map +1 -0
- package/dist/market_adapter/utils/paths.js +7 -0
- package/dist/market_adapter/utils/paths.js.map +1 -0
- package/dist/modules/account_bots.d.ts +112 -0
- package/dist/modules/account_bots.d.ts.map +1 -0
- package/dist/modules/account_bots.js +1259 -0
- package/dist/modules/account_bots.js.map +1 -0
- package/dist/modules/account_orders.d.ts +273 -0
- package/dist/modules/account_orders.d.ts.map +1 -0
- package/dist/modules/account_orders.js +662 -0
- package/dist/modules/account_orders.js.map +1 -0
- package/dist/modules/authority_resolver.d.ts +2 -0
- package/dist/modules/authority_resolver.d.ts.map +1 -0
- package/dist/modules/authority_resolver.js +231 -0
- package/dist/modules/authority_resolver.js.map +1 -0
- package/dist/modules/bitshares-native/chain_client.d.ts +38 -0
- package/dist/modules/bitshares-native/chain_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/chain_client.js +322 -0
- package/dist/modules/bitshares-native/chain_client.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +59 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +456 -0
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +66 -0
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc.js +557 -0
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts +2 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.d.ts.map +1 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js +20 -0
- package/dist/modules/bitshares-native/crypto/ecc_selector.js.map +1 -0
- package/dist/modules/bitshares-native/index.d.ts +3 -0
- package/dist/modules/bitshares-native/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/index.js +32 -0
- package/dist/modules/bitshares-native/index.js.map +1 -0
- package/dist/modules/bitshares-native/resolvers.d.ts +40 -0
- package/dist/modules/bitshares-native/resolvers.d.ts.map +1 -0
- package/dist/modules/bitshares-native/resolvers.js +161 -0
- package/dist/modules/bitshares-native/resolvers.js.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +56 -0
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js +92 -0
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -0
- package/dist/modules/bitshares-native/serial/index.d.ts +10 -0
- package/dist/modules/bitshares-native/serial/index.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/index.js +14 -0
- package/dist/modules/bitshares-native/serial/index.js.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts +102 -0
- package/dist/modules/bitshares-native/serial/operations.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/operations.js +615 -0
- package/dist/modules/bitshares-native/serial/operations.js.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts +64 -0
- package/dist/modules/bitshares-native/serial/serializer.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/serializer.js +252 -0
- package/dist/modules/bitshares-native/serial/serializer.js.map +1 -0
- package/dist/modules/bitshares-native/serial/types.d.ts +120 -0
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -0
- package/dist/modules/bitshares-native/serial/types.js +837 -0
- package/dist/modules/bitshares-native/serial/types.js.map +1 -0
- package/dist/modules/bitshares-native/signing_client.d.ts +6 -0
- package/dist/modules/bitshares-native/signing_client.d.ts.map +1 -0
- package/dist/modules/bitshares-native/signing_client.js +141 -0
- package/dist/modules/bitshares-native/signing_client.js.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts +6 -0
- package/dist/modules/bitshares-native/subscriptions.d.ts.map +1 -0
- package/dist/modules/bitshares-native/subscriptions.js +865 -0
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -0
- package/dist/modules/bitshares-native/transport.d.ts +51 -0
- package/dist/modules/bitshares-native/transport.d.ts.map +1 -0
- package/dist/modules/bitshares-native/transport.js +447 -0
- package/dist/modules/bitshares-native/transport.js.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts +30 -0
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -0
- package/dist/modules/bitshares-native/tx/builder.js +262 -0
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -0
- package/dist/modules/bitshares_client.d.ts +129 -0
- package/dist/modules/bitshares_client.d.ts.map +1 -0
- package/dist/modules/bitshares_client.js +627 -0
- package/dist/modules/bitshares_client.js.map +1 -0
- package/dist/modules/bot_settings.d.ts +33 -0
- package/dist/modules/bot_settings.d.ts.map +1 -0
- package/dist/modules/bot_settings.js +328 -0
- package/dist/modules/bot_settings.js.map +1 -0
- package/dist/modules/bots_file_lock.d.ts +88 -0
- package/dist/modules/bots_file_lock.d.ts.map +1 -0
- package/dist/modules/bots_file_lock.js +161 -0
- package/dist/modules/bots_file_lock.js.map +1 -0
- package/dist/modules/chain_keys.d.ts +302 -0
- package/dist/modules/chain_keys.d.ts.map +1 -0
- package/dist/modules/chain_keys.js +1095 -0
- package/dist/modules/chain_keys.js.map +1 -0
- package/dist/modules/chain_orders.d.ts +423 -0
- package/dist/modules/chain_orders.d.ts.map +1 -0
- package/dist/modules/chain_orders.js +1201 -0
- package/dist/modules/chain_orders.js.map +1 -0
- package/dist/modules/cli_whitelist_args.d.ts +6 -0
- package/dist/modules/cli_whitelist_args.d.ts.map +1 -0
- package/dist/modules/cli_whitelist_args.js +13 -0
- package/dist/modules/cli_whitelist_args.js.map +1 -0
- package/dist/modules/config.d.ts +57 -0
- package/dist/modules/config.d.ts.map +1 -0
- package/dist/modules/config.js +107 -0
- package/dist/modules/config.js.map +1 -0
- package/dist/modules/constants.d.ts +635 -0
- package/dist/modules/constants.d.ts.map +1 -0
- package/dist/modules/constants.js +1464 -0
- package/dist/modules/constants.js.map +1 -0
- package/dist/modules/cr_planner.d.ts +51 -0
- package/dist/modules/cr_planner.d.ts.map +1 -0
- package/dist/modules/cr_planner.js +299 -0
- package/dist/modules/cr_planner.js.map +1 -0
- package/dist/modules/credential_policy.d.ts +188 -0
- package/dist/modules/credential_policy.d.ts.map +1 -0
- package/dist/modules/credential_policy.js +1452 -0
- package/dist/modules/credential_policy.js.map +1 -0
- package/dist/modules/credential_runtime.d.ts +42 -0
- package/dist/modules/credential_runtime.d.ts.map +1 -0
- package/dist/modules/credential_runtime.js +148 -0
- package/dist/modules/credential_runtime.js.map +1 -0
- package/dist/modules/credential_session_cache.d.ts +36 -0
- package/dist/modules/credential_session_cache.d.ts.map +1 -0
- package/dist/modules/credential_session_cache.js +106 -0
- package/dist/modules/credential_session_cache.js.map +1 -0
- package/dist/modules/credit_runtime.d.ts +412 -0
- package/dist/modules/credit_runtime.d.ts.map +1 -0
- package/dist/modules/credit_runtime.js +2866 -0
- package/dist/modules/credit_runtime.js.map +1 -0
- package/dist/modules/crypto/browser_provider.d.ts +15 -0
- package/dist/modules/crypto/browser_provider.d.ts.map +1 -0
- package/dist/modules/crypto/browser_provider.js +113 -0
- package/dist/modules/crypto/browser_provider.js.map +1 -0
- package/dist/modules/crypto/index.d.ts +9 -0
- package/dist/modules/crypto/index.d.ts.map +1 -0
- package/dist/modules/crypto/index.js +44 -0
- package/dist/modules/crypto/index.js.map +1 -0
- package/dist/modules/crypto/node_provider.d.ts +15 -0
- package/dist/modules/crypto/node_provider.d.ts.map +1 -0
- package/dist/modules/crypto/node_provider.js +74 -0
- package/dist/modules/crypto/node_provider.js.map +1 -0
- package/dist/modules/crypto/provider.d.ts +34 -0
- package/dist/modules/crypto/provider.d.ts.map +1 -0
- package/dist/modules/crypto/provider.js +3 -0
- package/dist/modules/crypto/provider.js.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts +8 -0
- package/dist/modules/crypto/pure_ripemd160.d.ts.map +1 -0
- package/dist/modules/crypto/pure_ripemd160.js +142 -0
- package/dist/modules/crypto/pure_ripemd160.js.map +1 -0
- package/dist/modules/crypto/pure_scrypt.d.ts +23 -0
- package/dist/modules/crypto/pure_scrypt.d.ts.map +1 -0
- package/dist/modules/crypto/pure_scrypt.js +161 -0
- package/dist/modules/crypto/pure_scrypt.js.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts +29 -0
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -0
- package/dist/modules/crypto/pure_secp256k1.js +195 -0
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -0
- package/dist/modules/crypto/sync.d.ts +13 -0
- package/dist/modules/crypto/sync.d.ts.map +1 -0
- package/dist/modules/crypto/sync.js +37 -0
- package/dist/modules/crypto/sync.js.map +1 -0
- package/dist/modules/dexbot_class.d.ts +1074 -0
- package/dist/modules/dexbot_class.d.ts.map +1 -0
- package/dist/modules/dexbot_class.js +4613 -0
- package/dist/modules/dexbot_class.js.map +1 -0
- package/dist/modules/dexbot_credential_client.d.ts +71 -0
- package/dist/modules/dexbot_credential_client.d.ts.map +1 -0
- package/dist/modules/dexbot_credential_client.js +224 -0
- package/dist/modules/dexbot_credential_client.js.map +1 -0
- package/dist/modules/dexbot_fill_runtime.d.ts +173 -0
- package/dist/modules/dexbot_fill_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_fill_runtime.js +217 -0
- package/dist/modules/dexbot_fill_runtime.js.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts +279 -0
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -0
- package/dist/modules/dexbot_maintenance_runtime.js +1613 -0
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -0
- package/dist/modules/env.d.ts +12 -0
- package/dist/modules/env.d.ts.map +1 -0
- package/dist/modules/env.js +57 -0
- package/dist/modules/env.js.map +1 -0
- package/dist/modules/fund_registry.d.ts +96 -0
- package/dist/modules/fund_registry.d.ts.map +1 -0
- package/dist/modules/fund_registry.js +261 -0
- package/dist/modules/fund_registry.js.map +1 -0
- package/dist/modules/general_settings.d.ts +36 -0
- package/dist/modules/general_settings.d.ts.map +1 -0
- package/dist/modules/general_settings.js +63 -0
- package/dist/modules/general_settings.js.map +1 -0
- package/dist/modules/graceful_shutdown.d.ts +86 -0
- package/dist/modules/graceful_shutdown.d.ts.map +1 -0
- package/dist/modules/graceful_shutdown.js +164 -0
- package/dist/modules/graceful_shutdown.js.map +1 -0
- package/dist/modules/key_store.d.ts +60 -0
- package/dist/modules/key_store.d.ts.map +1 -0
- package/dist/modules/key_store.js +215 -0
- package/dist/modules/key_store.js.map +1 -0
- package/dist/modules/launcher/bot_supervisor.d.ts +84 -0
- package/dist/modules/launcher/bot_supervisor.d.ts.map +1 -0
- package/dist/modules/launcher/bot_supervisor.js +1067 -0
- package/dist/modules/launcher/bot_supervisor.js.map +1 -0
- package/dist/modules/launcher/child_env.d.ts +9 -0
- package/dist/modules/launcher/child_env.d.ts.map +1 -0
- package/dist/modules/launcher/child_env.js +78 -0
- package/dist/modules/launcher/child_env.js.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts +22 -0
- package/dist/modules/launcher/credential_bootstrap.d.ts.map +1 -0
- package/dist/modules/launcher/credential_bootstrap.js +303 -0
- package/dist/modules/launcher/credential_bootstrap.js.map +1 -0
- package/dist/modules/launcher/credential_daemon.d.ts +32 -0
- package/dist/modules/launcher/credential_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/credential_daemon.js +173 -0
- package/dist/modules/launcher/credential_daemon.js.map +1 -0
- package/dist/modules/launcher/credential_secret.d.ts +6 -0
- package/dist/modules/launcher/credential_secret.d.ts.map +1 -0
- package/dist/modules/launcher/credential_secret.js +15 -0
- package/dist/modules/launcher/credential_secret.js.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts +2 -0
- package/dist/modules/launcher/foreign_cred_daemon.d.ts.map +1 -0
- package/dist/modules/launcher/foreign_cred_daemon.js +166 -0
- package/dist/modules/launcher/foreign_cred_daemon.js.map +1 -0
- package/dist/modules/launcher/headless_password.d.ts +8 -0
- package/dist/modules/launcher/headless_password.d.ts.map +1 -0
- package/dist/modules/launcher/headless_password.js +33 -0
- package/dist/modules/launcher/headless_password.js.map +1 -0
- package/dist/modules/launcher/launch_modes.d.ts +36 -0
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -0
- package/dist/modules/launcher/launch_modes.js +129 -0
- package/dist/modules/launcher/launch_modes.js.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts +43 -0
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_runtime.js +217 -0
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts +26 -0
- package/dist/modules/launcher/market_adapter_watchdog.d.ts.map +1 -0
- package/dist/modules/launcher/market_adapter_watchdog.js +214 -0
- package/dist/modules/launcher/market_adapter_watchdog.js.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts +89 -0
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -0
- package/dist/modules/launcher/monolithic_runtime.js +425 -0
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -0
- package/dist/modules/launcher/runtime_entry.d.ts +26 -0
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -0
- package/dist/modules/launcher/runtime_entry.js +49 -0
- package/dist/modules/launcher/runtime_entry.js.map +1 -0
- package/dist/modules/launcher/status_reporting.d.ts +48 -0
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -0
- package/dist/modules/launcher/status_reporting.js +113 -0
- package/dist/modules/launcher/status_reporting.js.map +1 -0
- package/dist/modules/launcher/supervisor_control.d.ts +6 -0
- package/dist/modules/launcher/supervisor_control.d.ts.map +1 -0
- package/dist/modules/launcher/supervisor_control.js +59 -0
- package/dist/modules/launcher/supervisor_control.js.map +1 -0
- package/dist/modules/logger.d.ts +2 -0
- package/dist/modules/logger.d.ts.map +1 -0
- package/dist/modules/logger.js +71 -0
- package/dist/modules/logger.js.map +1 -0
- package/dist/modules/market_adapter_whitelist.d.ts +22 -0
- package/dist/modules/market_adapter_whitelist.d.ts.map +1 -0
- package/dist/modules/market_adapter_whitelist.js +82 -0
- package/dist/modules/market_adapter_whitelist.js.map +1 -0
- package/dist/modules/node_health_cache.d.ts +55 -0
- package/dist/modules/node_health_cache.d.ts.map +1 -0
- package/dist/modules/node_health_cache.js +134 -0
- package/dist/modules/node_health_cache.js.map +1 -0
- package/dist/modules/node_manager.d.ts +215 -0
- package/dist/modules/node_manager.d.ts.map +1 -0
- package/dist/modules/node_manager.js +628 -0
- package/dist/modules/node_manager.js.map +1 -0
- package/dist/modules/order/accounting.d.ts +349 -0
- package/dist/modules/order/accounting.d.ts.map +1 -0
- package/dist/modules/order/accounting.js +1191 -0
- package/dist/modules/order/accounting.js.map +1 -0
- package/dist/modules/order/async_lock.d.ts +126 -0
- package/dist/modules/order/async_lock.d.ts.map +1 -0
- package/dist/modules/order/async_lock.js +195 -0
- package/dist/modules/order/async_lock.js.map +1 -0
- package/dist/modules/order/export.d.ts +129 -0
- package/dist/modules/order/export.d.ts.map +1 -0
- package/dist/modules/order/export.js +316 -0
- package/dist/modules/order/export.js.map +1 -0
- package/dist/modules/order/format.d.ts +158 -0
- package/dist/modules/order/format.d.ts.map +1 -0
- package/dist/modules/order/format.js +232 -0
- package/dist/modules/order/format.js.map +1 -0
- package/dist/modules/order/grid.d.ts +549 -0
- package/dist/modules/order/grid.d.ts.map +1 -0
- package/dist/modules/order/grid.js +1746 -0
- package/dist/modules/order/grid.js.map +1 -0
- package/dist/modules/order/grid_reconcile.d.ts +154 -0
- package/dist/modules/order/grid_reconcile.d.ts.map +1 -0
- package/dist/modules/order/grid_reconcile.js +1192 -0
- package/dist/modules/order/grid_reconcile.js.map +1 -0
- package/dist/modules/order/index.d.ts +55 -0
- package/dist/modules/order/index.d.ts.map +1 -0
- package/dist/modules/order/index.js +79 -0
- package/dist/modules/order/index.js.map +1 -0
- package/dist/modules/order/logger.d.ts +136 -0
- package/dist/modules/order/logger.d.ts.map +1 -0
- package/dist/modules/order/logger.js +614 -0
- package/dist/modules/order/logger.js.map +1 -0
- package/dist/modules/order/logger_state.d.ts +133 -0
- package/dist/modules/order/logger_state.d.ts.map +1 -0
- package/dist/modules/order/logger_state.js +170 -0
- package/dist/modules/order/logger_state.js.map +1 -0
- package/dist/modules/order/manager.d.ts +413 -0
- package/dist/modules/order/manager.d.ts.map +1 -0
- package/dist/modules/order/manager.js +1605 -0
- package/dist/modules/order/manager.js.map +1 -0
- package/dist/modules/order/processed_fill_store.d.ts +135 -0
- package/dist/modules/order/processed_fill_store.d.ts.map +1 -0
- package/dist/modules/order/processed_fill_store.js +288 -0
- package/dist/modules/order/processed_fill_store.js.map +1 -0
- package/dist/modules/order/runner.d.ts +70 -0
- package/dist/modules/order/runner.d.ts.map +1 -0
- package/dist/modules/order/runner.js +140 -0
- package/dist/modules/order/runner.js.map +1 -0
- package/dist/modules/order/strategy.d.ts +196 -0
- package/dist/modules/order/strategy.d.ts.map +1 -0
- package/dist/modules/order/strategy.js +398 -0
- package/dist/modules/order/strategy.js.map +1 -0
- package/dist/modules/order/sync_engine.d.ts +386 -0
- package/dist/modules/order/sync_engine.d.ts.map +1 -0
- package/dist/modules/order/sync_engine.js +1459 -0
- package/dist/modules/order/sync_engine.js.map +1 -0
- package/dist/modules/order/utils/math.d.ts +677 -0
- package/dist/modules/order/utils/math.d.ts.map +1 -0
- package/dist/modules/order/utils/math.js +1172 -0
- package/dist/modules/order/utils/math.js.map +1 -0
- package/dist/modules/order/utils/order.d.ts +572 -0
- package/dist/modules/order/utils/order.d.ts.map +1 -0
- package/dist/modules/order/utils/order.js +1145 -0
- package/dist/modules/order/utils/order.js.map +1 -0
- package/dist/modules/order/utils/system.d.ts +268 -0
- package/dist/modules/order/utils/system.d.ts.map +1 -0
- package/dist/modules/order/utils/system.js +1261 -0
- package/dist/modules/order/utils/system.js.map +1 -0
- package/dist/modules/order/utils/validate.d.ts +280 -0
- package/dist/modules/order/utils/validate.d.ts.map +1 -0
- package/dist/modules/order/utils/validate.js +918 -0
- package/dist/modules/order/utils/validate.js.map +1 -0
- package/dist/modules/order/working_grid.d.ts +212 -0
- package/dist/modules/order/working_grid.d.ts.map +1 -0
- package/dist/modules/order/working_grid.js +279 -0
- package/dist/modules/order/working_grid.js.map +1 -0
- package/dist/modules/path_api.d.ts +32 -0
- package/dist/modules/path_api.d.ts.map +1 -0
- package/dist/modules/path_api.js +148 -0
- package/dist/modules/path_api.js.map +1 -0
- package/dist/modules/paths.d.ts +58 -0
- package/dist/modules/paths.d.ts.map +1 -0
- package/dist/modules/paths.js +82 -0
- package/dist/modules/paths.js.map +1 -0
- package/dist/modules/process_discovery.d.ts +58 -0
- package/dist/modules/process_discovery.d.ts.map +1 -0
- package/dist/modules/process_discovery.js +265 -0
- package/dist/modules/process_discovery.js.map +1 -0
- package/dist/modules/runtime.d.ts +34 -0
- package/dist/modules/runtime.d.ts.map +1 -0
- package/dist/modules/runtime.js +98 -0
- package/dist/modules/runtime.js.map +1 -0
- package/dist/modules/runtime_settings.d.ts +12 -0
- package/dist/modules/runtime_settings.d.ts.map +1 -0
- package/dist/modules/runtime_settings.js +122 -0
- package/dist/modules/runtime_settings.js.map +1 -0
- package/dist/modules/settings_merge.d.ts +38 -0
- package/dist/modules/settings_merge.d.ts.map +1 -0
- package/dist/modules/settings_merge.js +246 -0
- package/dist/modules/settings_merge.js.map +1 -0
- package/dist/modules/storage/browser_adapter.d.ts +56 -0
- package/dist/modules/storage/browser_adapter.d.ts.map +1 -0
- package/dist/modules/storage/browser_adapter.js +231 -0
- package/dist/modules/storage/browser_adapter.js.map +1 -0
- package/dist/modules/storage/index.d.ts +28 -0
- package/dist/modules/storage/index.d.ts.map +1 -0
- package/dist/modules/storage/index.js +52 -0
- package/dist/modules/storage/index.js.map +1 -0
- package/dist/modules/storage/node_adapter.d.ts +49 -0
- package/dist/modules/storage/node_adapter.d.ts.map +1 -0
- package/dist/modules/storage/node_adapter.js +167 -0
- package/dist/modules/storage/node_adapter.js.map +1 -0
- package/dist/modules/storage/types.d.ts +92 -0
- package/dist/modules/storage/types.d.ts.map +1 -0
- package/dist/modules/storage/types.js +3 -0
- package/dist/modules/storage/types.js.map +1 -0
- package/dist/modules/types.d.ts +1382 -0
- package/dist/modules/types.d.ts.map +1 -0
- package/dist/modules/types.js +11 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/utils/base58check.d.ts +12 -0
- package/dist/modules/utils/base58check.d.ts.map +1 -0
- package/dist/modules/utils/base58check.js +112 -0
- package/dist/modules/utils/base58check.js.map +1 -0
- package/dist/modules/utils/build_dir.d.ts +7 -0
- package/dist/modules/utils/build_dir.d.ts.map +1 -0
- package/dist/modules/utils/build_dir.js +8 -0
- package/dist/modules/utils/build_dir.js.map +1 -0
- package/dist/modules/utils/fs_utils.d.ts +25 -0
- package/dist/modules/utils/fs_utils.d.ts.map +1 -0
- package/dist/modules/utils/fs_utils.js +27 -0
- package/dist/modules/utils/fs_utils.js.map +1 -0
- package/dist/modules/utils/math_utils.d.ts +10 -0
- package/dist/modules/utils/math_utils.d.ts.map +1 -0
- package/dist/modules/utils/math_utils.js +17 -0
- package/dist/modules/utils/math_utils.js.map +1 -0
- package/dist/modules/validate_profiles.d.ts +37 -0
- package/dist/modules/validate_profiles.d.ts.map +1 -0
- package/dist/modules/validate_profiles.js +369 -0
- package/dist/modules/validate_profiles.js.map +1 -0
- package/dist/pm2.d.ts +167 -0
- package/dist/pm2.d.ts.map +1 -0
- package/dist/pm2.js +998 -0
- package/dist/pm2.js.map +1 -0
- package/dist/scripts/analyze-git.d.ts +11 -0
- package/dist/scripts/analyze-git.d.ts.map +1 -0
- package/dist/scripts/analyze-git.js +851 -0
- package/dist/scripts/analyze-git.js.map +1 -0
- package/dist/scripts/analyze-orders.d.ts +17 -0
- package/dist/scripts/analyze-orders.d.ts.map +1 -0
- package/dist/scripts/analyze-orders.js +1568 -0
- package/dist/scripts/analyze-orders.js.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts +3 -0
- package/dist/scripts/diagnose-kibana-candles.d.ts.map +1 -0
- package/dist/scripts/diagnose-kibana-candles.js +82 -0
- package/dist/scripts/diagnose-kibana-candles.js.map +1 -0
- package/dist/scripts/diagnose-pool-history.d.ts +3 -0
- package/dist/scripts/diagnose-pool-history.d.ts.map +1 -0
- package/dist/scripts/diagnose-pool-history.js +296 -0
- package/dist/scripts/diagnose-pool-history.js.map +1 -0
- package/dist/scripts/divergence-calc.d.ts +26 -0
- package/dist/scripts/divergence-calc.d.ts.map +1 -0
- package/dist/scripts/divergence-calc.js +119 -0
- package/dist/scripts/divergence-calc.js.map +1 -0
- package/dist/scripts/generate_lp_chart.d.ts +31 -0
- package/dist/scripts/generate_lp_chart.d.ts.map +1 -0
- package/dist/scripts/generate_lp_chart.js +92 -0
- package/dist/scripts/generate_lp_chart.js.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts +24 -0
- package/dist/scripts/generate_mainnet_corpus_report.d.ts.map +1 -0
- package/dist/scripts/generate_mainnet_corpus_report.js +237 -0
- package/dist/scripts/generate_mainnet_corpus_report.js.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts +2 -0
- package/dist/scripts/generate_market_adapter_whitelist.d.ts.map +1 -0
- package/dist/scripts/generate_market_adapter_whitelist.js +111 -0
- package/dist/scripts/generate_market_adapter_whitelist.js.map +1 -0
- package/dist/scripts/migrate_bot_keys.d.ts +6 -0
- package/dist/scripts/migrate_bot_keys.d.ts.map +1 -0
- package/dist/scripts/migrate_bot_keys.js +301 -0
- package/dist/scripts/migrate_bot_keys.js.map +1 -0
- package/dist/scripts/native_release_gates.d.ts +3 -0
- package/dist/scripts/native_release_gates.d.ts.map +1 -0
- package/dist/scripts/native_release_gates.js +52 -0
- package/dist/scripts/native_release_gates.js.map +1 -0
- package/dist/scripts/print_grid.d.ts +16 -0
- package/dist/scripts/print_grid.d.ts.map +1 -0
- package/dist/scripts/print_grid.js +80 -0
- package/dist/scripts/print_grid.js.map +1 -0
- package/dist/scripts/run-tests.d.ts +2 -0
- package/dist/scripts/run-tests.d.ts.map +1 -0
- package/dist/scripts/run-tests.js +49 -0
- package/dist/scripts/run-tests.js.map +1 -0
- package/dist/scripts/sync-version.d.ts +14 -0
- package/dist/scripts/sync-version.d.ts.map +1 -0
- package/dist/scripts/sync-version.js +158 -0
- package/dist/scripts/sync-version.js.map +1 -0
- package/dist/scripts/test-credit-renewal.d.ts +2 -0
- package/dist/scripts/test-credit-renewal.d.ts.map +1 -0
- package/dist/scripts/test-credit-renewal.js +329 -0
- package/dist/scripts/test-credit-renewal.js.map +1 -0
- package/dist/scripts/update.d.ts +24 -0
- package/dist/scripts/update.d.ts.map +1 -0
- package/dist/scripts/update.js +650 -0
- package/dist/scripts/update.js.map +1 -0
- package/dist/scripts/validate_bots.d.ts +16 -0
- package/dist/scripts/validate_bots.d.ts.map +1 -0
- package/dist/scripts/validate_bots.js +106 -0
- package/dist/scripts/validate_bots.js.map +1 -0
- package/dist/scripts/verify-browser-bundle.d.ts +22 -0
- package/dist/scripts/verify-browser-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-browser-bundle.js +339 -0
- package/dist/scripts/verify-browser-bundle.js.map +1 -0
- package/dist/unlock.d.ts +48 -0
- package/dist/unlock.d.ts.map +1 -0
- package/dist/unlock.js +925 -0
- package/dist/unlock.js.map +1 -0
- package/package.json +112 -0
- package/scripts/README.md +356 -0
- package/scripts/clear-all.sh +195 -0
- package/scripts/clear-logs.sh +95 -0
- package/scripts/clear-market-adapter.sh +196 -0
- package/scripts/clear-orders.sh +113 -0
- package/scripts/create-bot-symlinks.sh +51 -0
- package/scripts/postinstall.js +9 -0
- package/scripts/reset-settings.sh +118 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
memU Runner - Python subprocess bridge for DEXBot2 claw integration.
|
|
4
|
+
|
|
5
|
+
This script is called by the Node.js memu_bridge.js module to execute
|
|
6
|
+
memU memory operations. It handles argument parsing, service initialization,
|
|
7
|
+
and JSON output for the Node.js caller.
|
|
8
|
+
|
|
9
|
+
Usage:
|
|
10
|
+
python3 memu_runner.py <command> [options]
|
|
11
|
+
|
|
12
|
+
Commands:
|
|
13
|
+
memorize Store a resource as memory
|
|
14
|
+
retrieve Query stored memories
|
|
15
|
+
list-categories List memory categories
|
|
16
|
+
list-items List memory items
|
|
17
|
+
create-item Create a memory item directly
|
|
18
|
+
update-item Update a memory item
|
|
19
|
+
delete-item Delete a memory item
|
|
20
|
+
clear Clear all memory
|
|
21
|
+
status Get memU service status
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
from __future__ import annotations
|
|
25
|
+
|
|
26
|
+
import argparse
|
|
27
|
+
import asyncio
|
|
28
|
+
import json
|
|
29
|
+
import sys
|
|
30
|
+
from pathlib import Path
|
|
31
|
+
|
|
32
|
+
try:
|
|
33
|
+
from memu import MemoryService
|
|
34
|
+
except ImportError:
|
|
35
|
+
print(
|
|
36
|
+
json.dumps({
|
|
37
|
+
"error": "memU package not found. Install with: pip install memu-py",
|
|
38
|
+
"hint": "See https://github.com/NevaMind-AI/memU for installation instructions"
|
|
39
|
+
}),
|
|
40
|
+
file=sys.stderr
|
|
41
|
+
)
|
|
42
|
+
sys.exit(1)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def parse_llm_profiles(raw: str | None) -> dict | None:
|
|
46
|
+
"""Parse LLM profiles from JSON string."""
|
|
47
|
+
if not raw:
|
|
48
|
+
return None
|
|
49
|
+
return json.loads(raw)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def parse_db_config(raw: str | None) -> dict | None:
|
|
53
|
+
"""Parse database config from JSON string."""
|
|
54
|
+
if not raw:
|
|
55
|
+
return None
|
|
56
|
+
return json.loads(raw)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def parse_user(raw: str | None) -> dict | None:
|
|
60
|
+
"""Parse user scope from JSON string."""
|
|
61
|
+
if not raw:
|
|
62
|
+
return None
|
|
63
|
+
return json.loads(raw)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def parse_where(raw: str | None) -> dict | None:
|
|
67
|
+
"""Parse generic scope filters from JSON string."""
|
|
68
|
+
if not raw:
|
|
69
|
+
return None
|
|
70
|
+
return json.loads(raw)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
async def resolve_category_refs(
|
|
74
|
+
service: MemoryService,
|
|
75
|
+
category_refs: list[str] | None,
|
|
76
|
+
where: dict | None = None,
|
|
77
|
+
) -> list[str] | None:
|
|
78
|
+
"""Resolve memU category ids or names to the category names expected by CRUD APIs."""
|
|
79
|
+
if category_refs is None:
|
|
80
|
+
return None
|
|
81
|
+
if not category_refs:
|
|
82
|
+
return []
|
|
83
|
+
|
|
84
|
+
result = await service.list_memory_categories(where=where)
|
|
85
|
+
categories = result.get("categories", [])
|
|
86
|
+
by_id = {}
|
|
87
|
+
by_name = {}
|
|
88
|
+
for category in categories:
|
|
89
|
+
category_id = category.get("id")
|
|
90
|
+
category_name = category.get("name")
|
|
91
|
+
if isinstance(category_id, str) and category_id:
|
|
92
|
+
by_id[category_id] = category_name
|
|
93
|
+
if isinstance(category_name, str) and category_name:
|
|
94
|
+
by_name[category_name.strip().lower()] = category_name
|
|
95
|
+
|
|
96
|
+
resolved: list[str] = []
|
|
97
|
+
seen: set[str] = set()
|
|
98
|
+
unresolved: list[str] = []
|
|
99
|
+
for ref in category_refs:
|
|
100
|
+
if not isinstance(ref, str):
|
|
101
|
+
unresolved.append(str(ref))
|
|
102
|
+
continue
|
|
103
|
+
normalized = ref.strip()
|
|
104
|
+
if not normalized:
|
|
105
|
+
unresolved.append(ref)
|
|
106
|
+
continue
|
|
107
|
+
category_name = by_id.get(normalized) or by_name.get(normalized.lower())
|
|
108
|
+
if not category_name:
|
|
109
|
+
unresolved.append(ref)
|
|
110
|
+
continue
|
|
111
|
+
if category_name not in seen:
|
|
112
|
+
resolved.append(category_name)
|
|
113
|
+
seen.add(category_name)
|
|
114
|
+
|
|
115
|
+
if unresolved:
|
|
116
|
+
raise ValueError(f"Unknown memU categories: {', '.join(unresolved)}")
|
|
117
|
+
return resolved
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def create_service(args: argparse.Namespace) -> MemoryService:
|
|
121
|
+
"""Create a MemoryService instance from CLI arguments."""
|
|
122
|
+
llm_profiles = parse_llm_profiles(getattr(args, 'llm_profile', None))
|
|
123
|
+
db_config = parse_db_config(getattr(args, 'db_config', None))
|
|
124
|
+
|
|
125
|
+
service_kwargs: dict = {}
|
|
126
|
+
|
|
127
|
+
if llm_profiles:
|
|
128
|
+
service_kwargs["llm_profiles"] = llm_profiles
|
|
129
|
+
|
|
130
|
+
if db_config:
|
|
131
|
+
service_kwargs["database_config"] = db_config
|
|
132
|
+
elif hasattr(args, 'memu_dir') and args.memu_dir:
|
|
133
|
+
db_path = Path(args.memu_dir) / "memu.db"
|
|
134
|
+
service_kwargs["database_config"] = {
|
|
135
|
+
"metadata_store": {
|
|
136
|
+
"provider": "sqlite",
|
|
137
|
+
"dsn": f"sqlite:///{db_path}"
|
|
138
|
+
},
|
|
139
|
+
}
|
|
140
|
+
else:
|
|
141
|
+
service_kwargs["database_config"] = {
|
|
142
|
+
"metadata_store": {"provider": "inmemory"},
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if hasattr(args, 'memu_dir') and args.memu_dir:
|
|
146
|
+
blob_dir = Path(args.memu_dir) / "blob"
|
|
147
|
+
blob_dir.mkdir(parents=True, exist_ok=True)
|
|
148
|
+
service_kwargs["blob_config"] = {
|
|
149
|
+
"resources_dir": str(blob_dir)
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return MemoryService(**service_kwargs)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
async def cmd_memorize(args: argparse.Namespace) -> dict:
|
|
156
|
+
"""Execute memorize command."""
|
|
157
|
+
service = create_service(args)
|
|
158
|
+
user = parse_user(getattr(args, 'user', None))
|
|
159
|
+
|
|
160
|
+
result = await service.memorize(
|
|
161
|
+
resource_url=args.resource_url,
|
|
162
|
+
modality=args.modality,
|
|
163
|
+
user=user,
|
|
164
|
+
)
|
|
165
|
+
return result
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
async def cmd_retrieve(args: argparse.Namespace) -> dict:
|
|
169
|
+
"""Execute retrieve command."""
|
|
170
|
+
service = create_service(args)
|
|
171
|
+
queries = json.loads(args.queries)
|
|
172
|
+
where = parse_user(getattr(args, 'where', None))
|
|
173
|
+
method = getattr(args, 'method', 'rag')
|
|
174
|
+
|
|
175
|
+
if method == 'llm':
|
|
176
|
+
service.retrieve_config.method = 'llm'
|
|
177
|
+
|
|
178
|
+
result = await service.retrieve(
|
|
179
|
+
queries=queries,
|
|
180
|
+
where=where,
|
|
181
|
+
)
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
async def cmd_list_categories(args: argparse.Namespace) -> dict:
|
|
186
|
+
"""List memory categories."""
|
|
187
|
+
service = create_service(args)
|
|
188
|
+
where = parse_user(getattr(args, 'where', None))
|
|
189
|
+
|
|
190
|
+
result = await service.list_memory_categories(where=where)
|
|
191
|
+
return {**result, "count": len(result.get("categories", []))}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
async def cmd_list_items(args: argparse.Namespace) -> dict:
|
|
195
|
+
"""List memory items."""
|
|
196
|
+
service = create_service(args)
|
|
197
|
+
where = parse_user(getattr(args, 'where', None))
|
|
198
|
+
|
|
199
|
+
result = await service.list_memory_items(where=where)
|
|
200
|
+
return {**result, "count": len(result.get("items", []))}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
async def cmd_create_item(args: argparse.Namespace) -> dict:
|
|
204
|
+
"""Create a memory item directly."""
|
|
205
|
+
service = create_service(args)
|
|
206
|
+
user = parse_user(getattr(args, 'user', None))
|
|
207
|
+
categories = await resolve_category_refs(service, [args.category_ref], where=user)
|
|
208
|
+
|
|
209
|
+
return await service.create_memory_item(
|
|
210
|
+
memory_type=args.memory_type,
|
|
211
|
+
memory_content=args.summary,
|
|
212
|
+
memory_categories=categories or [],
|
|
213
|
+
user=user,
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
async def cmd_update_item(args: argparse.Namespace) -> dict:
|
|
218
|
+
"""Update a memory item."""
|
|
219
|
+
service = create_service(args)
|
|
220
|
+
updates = json.loads(args.updates)
|
|
221
|
+
user = updates.get("user")
|
|
222
|
+
memory_categories = updates.get("memory_categories")
|
|
223
|
+
if memory_categories is not None:
|
|
224
|
+
memory_categories = await resolve_category_refs(service, memory_categories, where=user)
|
|
225
|
+
|
|
226
|
+
return await service.update_memory_item(
|
|
227
|
+
memory_id=args.item_id,
|
|
228
|
+
memory_type=updates.get("memory_type"),
|
|
229
|
+
memory_content=updates.get("summary") or updates.get("memory_content"),
|
|
230
|
+
memory_categories=memory_categories,
|
|
231
|
+
user=user,
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
async def cmd_delete_item(args: argparse.Namespace) -> dict:
|
|
236
|
+
"""Delete a memory item."""
|
|
237
|
+
service = create_service(args)
|
|
238
|
+
|
|
239
|
+
result = await service.delete_memory_item(memory_id=args.item_id)
|
|
240
|
+
return {**result, "item_id": args.item_id}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
async def cmd_clear(args: argparse.Namespace) -> dict:
|
|
244
|
+
"""Clear all memory."""
|
|
245
|
+
service = create_service(args)
|
|
246
|
+
where = parse_where(getattr(args, 'where', None))
|
|
247
|
+
|
|
248
|
+
result = await service.clear_memory(where=where)
|
|
249
|
+
return {**result, "cleared": True}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
async def cmd_status(args: argparse.Namespace) -> dict:
|
|
253
|
+
"""Get memU service status."""
|
|
254
|
+
service = create_service(args)
|
|
255
|
+
where = parse_where(getattr(args, 'where', None))
|
|
256
|
+
categories_result = await service.list_memory_categories(where=where)
|
|
257
|
+
items_result = await service.list_memory_items(where=where)
|
|
258
|
+
resources = service.database.resource_repo.list_resources(where or {})
|
|
259
|
+
category_count = len(categories_result.get("categories", []))
|
|
260
|
+
item_count = len(items_result.get("items", []))
|
|
261
|
+
resource_count = len(resources)
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
"status": "ready",
|
|
265
|
+
"categories_ready": service._context.categories_ready or category_count > 0,
|
|
266
|
+
"category_count": category_count,
|
|
267
|
+
"item_count": item_count,
|
|
268
|
+
"resource_count": resource_count,
|
|
269
|
+
"llm_profiles": list(service.llm_profiles.profiles.keys()) if service.llm_profiles else [],
|
|
270
|
+
"metadata_store": service.database_config.metadata_store.provider,
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
COMMANDS = {
|
|
275
|
+
"memorize": cmd_memorize,
|
|
276
|
+
"retrieve": cmd_retrieve,
|
|
277
|
+
"list-categories": cmd_list_categories,
|
|
278
|
+
"list-items": cmd_list_items,
|
|
279
|
+
"create-item": cmd_create_item,
|
|
280
|
+
"update-item": cmd_update_item,
|
|
281
|
+
"delete-item": cmd_delete_item,
|
|
282
|
+
"clear": cmd_clear,
|
|
283
|
+
"status": cmd_status,
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
288
|
+
"""Build argument parser for all commands."""
|
|
289
|
+
parser = argparse.ArgumentParser(description="memU Runner for DEXBot2")
|
|
290
|
+
subparsers = parser.add_subparsers(dest="command", required=True)
|
|
291
|
+
|
|
292
|
+
memorize_parser = subparsers.add_parser("memorize", help="Store a resource as memory")
|
|
293
|
+
memorize_parser.add_argument("--resource-url", required=True)
|
|
294
|
+
memorize_parser.add_argument("--modality", required=True)
|
|
295
|
+
memorize_parser.add_argument("--user", default=None)
|
|
296
|
+
memorize_parser.add_argument("--memu-dir", default=None)
|
|
297
|
+
memorize_parser.add_argument("--llm-profile", default=None)
|
|
298
|
+
memorize_parser.add_argument("--db-config", default=None)
|
|
299
|
+
|
|
300
|
+
retrieve_parser = subparsers.add_parser("retrieve", help="Query stored memories")
|
|
301
|
+
retrieve_parser.add_argument("--queries", required=True)
|
|
302
|
+
retrieve_parser.add_argument("--where", default=None)
|
|
303
|
+
retrieve_parser.add_argument("--method", default="rag")
|
|
304
|
+
retrieve_parser.add_argument("--memu-dir", default=None)
|
|
305
|
+
retrieve_parser.add_argument("--llm-profile", default=None)
|
|
306
|
+
retrieve_parser.add_argument("--db-config", default=None)
|
|
307
|
+
|
|
308
|
+
list_cat_parser = subparsers.add_parser("list-categories", help="List memory categories")
|
|
309
|
+
list_cat_parser.add_argument("--where", default=None)
|
|
310
|
+
list_cat_parser.add_argument("--memu-dir", default=None)
|
|
311
|
+
list_cat_parser.add_argument("--llm-profile", default=None)
|
|
312
|
+
list_cat_parser.add_argument("--db-config", default=None)
|
|
313
|
+
|
|
314
|
+
list_items_parser = subparsers.add_parser("list-items", help="List memory items")
|
|
315
|
+
list_items_parser.add_argument("--where", default=None)
|
|
316
|
+
list_items_parser.add_argument("--memu-dir", default=None)
|
|
317
|
+
list_items_parser.add_argument("--llm-profile", default=None)
|
|
318
|
+
list_items_parser.add_argument("--db-config", default=None)
|
|
319
|
+
|
|
320
|
+
create_parser = subparsers.add_parser("create-item", help="Create a memory item")
|
|
321
|
+
create_parser.add_argument("--category-id", "--category-name", dest="category_ref", required=True)
|
|
322
|
+
create_parser.add_argument("--summary", required=True)
|
|
323
|
+
create_parser.add_argument("--memory-type", default="knowledge")
|
|
324
|
+
create_parser.add_argument("--user", default=None)
|
|
325
|
+
create_parser.add_argument("--memu-dir", default=None)
|
|
326
|
+
create_parser.add_argument("--llm-profile", default=None)
|
|
327
|
+
create_parser.add_argument("--db-config", default=None)
|
|
328
|
+
|
|
329
|
+
update_parser = subparsers.add_parser("update-item", help="Update a memory item")
|
|
330
|
+
update_parser.add_argument("--item-id", required=True)
|
|
331
|
+
update_parser.add_argument("--updates", required=True)
|
|
332
|
+
update_parser.add_argument("--memu-dir", default=None)
|
|
333
|
+
update_parser.add_argument("--llm-profile", default=None)
|
|
334
|
+
update_parser.add_argument("--db-config", default=None)
|
|
335
|
+
|
|
336
|
+
delete_parser = subparsers.add_parser("delete-item", help="Delete a memory item")
|
|
337
|
+
delete_parser.add_argument("--item-id", required=True)
|
|
338
|
+
delete_parser.add_argument("--memu-dir", default=None)
|
|
339
|
+
delete_parser.add_argument("--llm-profile", default=None)
|
|
340
|
+
delete_parser.add_argument("--db-config", default=None)
|
|
341
|
+
|
|
342
|
+
clear_parser = subparsers.add_parser("clear", help="Clear all memory")
|
|
343
|
+
clear_parser.add_argument("--where", default=None)
|
|
344
|
+
clear_parser.add_argument("--memu-dir", default=None)
|
|
345
|
+
clear_parser.add_argument("--llm-profile", default=None)
|
|
346
|
+
clear_parser.add_argument("--db-config", default=None)
|
|
347
|
+
|
|
348
|
+
status_parser = subparsers.add_parser("status", help="Get memU status")
|
|
349
|
+
status_parser.add_argument("--where", default=None)
|
|
350
|
+
status_parser.add_argument("--memu-dir", default=None)
|
|
351
|
+
status_parser.add_argument("--db-config", default=None)
|
|
352
|
+
|
|
353
|
+
return parser
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
def main() -> None:
|
|
357
|
+
"""Main entry point."""
|
|
358
|
+
parser = build_parser()
|
|
359
|
+
args = parser.parse_args()
|
|
360
|
+
|
|
361
|
+
command_fn = COMMANDS.get(args.command)
|
|
362
|
+
if not command_fn:
|
|
363
|
+
print(
|
|
364
|
+
json.dumps({"error": f"Unknown command: {args.command}"}),
|
|
365
|
+
file=sys.stderr
|
|
366
|
+
)
|
|
367
|
+
sys.exit(1)
|
|
368
|
+
|
|
369
|
+
try:
|
|
370
|
+
result = asyncio.run(command_fn(args))
|
|
371
|
+
print(json.dumps(result, default=str))
|
|
372
|
+
except Exception as e:
|
|
373
|
+
print(
|
|
374
|
+
json.dumps({
|
|
375
|
+
"error": str(e),
|
|
376
|
+
"command": args.command,
|
|
377
|
+
"type": type(e).__name__
|
|
378
|
+
}),
|
|
379
|
+
file=sys.stderr
|
|
380
|
+
)
|
|
381
|
+
sys.exit(1)
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
if __name__ == "__main__":
|
|
385
|
+
main()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bitshares-guide
|
|
3
|
+
description: Presentation-only BitShares skill pack guide.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BitShares Guide
|
|
7
|
+
|
|
8
|
+
Use this skill for the public-facing BitShares guide layer only.
|
|
9
|
+
|
|
10
|
+
Treat the guide reference material as layout and tone reference. Keep the section rhythm centered on `BitShares Overview`, `BitShares Network Metadata`, `Configuration Reference`, and `Resources & Links`.
|
|
11
|
+
|
|
12
|
+
Keep it presentation-only: no runtime instructions, secrets, operational claims, or duplicate source pointers.
|
|
13
|
+
|
|
14
|
+
Use the companion reference files for the section order, guardrails, and minimal shell fragments instead of expanding this file.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Presentation Patterns
|
|
2
|
+
|
|
3
|
+
Structure-only guidance for the guide branch.
|
|
4
|
+
|
|
5
|
+
## Section Order
|
|
6
|
+
|
|
7
|
+
1. Hero banner / top nav
|
|
8
|
+
2. `BitShares Overview`
|
|
9
|
+
3. `BitShares Network Metadata`
|
|
10
|
+
4. `Configuration Reference`
|
|
11
|
+
5. `Resources & Links`
|
|
12
|
+
|
|
13
|
+
## Cues
|
|
14
|
+
|
|
15
|
+
- Keep the header fixed, concise, and navigation-first.
|
|
16
|
+
- Make the hero feel polished and public-facing, not operational.
|
|
17
|
+
- Use `BitShares Network Metadata` as a compact framing section, not a source-of-truth dump.
|
|
18
|
+
- Keep `Configuration Reference` illustrative and reference-driven.
|
|
19
|
+
- End with `Resources & Links` as a footer-style link grid.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Scope Guardrails
|
|
2
|
+
|
|
3
|
+
- presentation-only
|
|
4
|
+
- no runtime instructions
|
|
5
|
+
- no secrets
|
|
6
|
+
- no unsupported operational claims
|
|
7
|
+
- historical labels required when citing legacy BitShares material
|
|
8
|
+
|
|
9
|
+
Presentation reference material is reference-only: use it for layout, tone, and framing, not as operational guidance.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: launcher-ops
|
|
3
|
+
description: DEXBot2 launcher and orchestration workflows for PM2, unlock, claw-only mode, and Docker-friendly startup.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Launcher Ops
|
|
7
|
+
|
|
8
|
+
Use this skill for DEXBot2 startup orchestration, PM2 startup, and credential-daemon-only launcher flow.
|
|
9
|
+
|
|
10
|
+
## What To Do
|
|
11
|
+
|
|
12
|
+
- Read the companion reference for the exact command matrix.
|
|
13
|
+
- Keep launcher parsing in `modules/launcher/launch_modes.ts`.
|
|
14
|
+
- Keep daemon lifecycle handling in `modules/launcher/credential_daemon.ts`.
|
|
15
|
+
- Keep `unlock` as the direct single-prompt path for Docker and local use.
|
|
16
|
+
- Keep `claw-only` independent of bot config and BitShares connection checks.
|
|
17
|
+
|
|
18
|
+
Use this skill when the task is about launcher behavior, but use the reference for exact commands and validation.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Launcher Workflow
|
|
2
|
+
|
|
3
|
+
Use this reference for DEXBot2 startup and PM2 orchestration work.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
- `tsx unlock` - single-prompt local startup.
|
|
8
|
+
- `tsx unlock --claw-only` - credential daemon only, no bot startup.
|
|
9
|
+
- `tsx pm2` - PM2 startup for all active bots.
|
|
10
|
+
- `tsx pm2 <bot-name>` - PM2 startup for one active bot.
|
|
11
|
+
- `tsx pm2 claw-only` - PM2 credential daemon only.
|
|
12
|
+
|
|
13
|
+
## Rules
|
|
14
|
+
|
|
15
|
+
- Keep `claw-only` free of bot config and BitShares connectivity checks.
|
|
16
|
+
- Keep parsing in `modules/launcher/launch_modes.ts`.
|
|
17
|
+
- Keep daemon lifecycle in `modules/launcher/credential_daemon.ts`.
|
|
18
|
+
|
|
19
|
+
## Validation
|
|
20
|
+
|
|
21
|
+
- `node --import tsx tests/test_launcher_exports.ts`
|
|
22
|
+
- `node --import tsx tests/test_pm2_logic.ts`
|
|
23
|
+
- `npm test`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: margin-trading
|
|
3
|
+
description: Margin trading concepts and position management for BitShares MPAs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Margin Trading
|
|
7
|
+
|
|
8
|
+
Reference skill for margin position management on BitShares DEX.
|
|
9
|
+
|
|
10
|
+
Covers the trading concepts available through the claw bridge, the mechanics of MPA debt positions, the HONEST.Asset ecosystem properties that shape how positions behave, and the position management principles that govern capital deployment.
|
|
11
|
+
|
|
12
|
+
The practical control model is split into:
|
|
13
|
+
|
|
14
|
+
- structural settings that are usually kept fixed (`incrementPercent`, `targetSpreadPercent`, `activeOrders`)
|
|
15
|
+
- adaptive settings layered on top of AMA (`weightDistribution`, min/max range ratio, debt/collateral actions)
|
|
16
|
+
|
|
17
|
+
## Reference Files
|
|
18
|
+
|
|
19
|
+
- `references/honest-asset-list.md` — All 46 HONEST MPAs with on-chain IDs, precision, and categories
|
|
20
|
+
- `references/honest-assets.md` — HONEST ecosystem properties: fees, MCR, feed price mechanics
|
|
21
|
+
- `references/trading-concepts.md` — Short/long position lifecycles, collateral operations, claw bridge commands
|
|
22
|
+
- `references/position-management.md` — CR zones, capital efficiency, unified planner model, loss/profit principles
|
|
23
|
+
- Shared trend and signal tuning lives in `../trend-detection/SKILL.md`
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# HONEST MPA Assets
|
|
2
|
+
|
|
3
|
+
Market Pegged Assets backed by collateral with on-chain price feeds. They can be borrowed, shorted, and traded on the order book. These are the assets the margin trading system operates on.
|
|
4
|
+
|
|
5
|
+
For fee structure, MCR, and ecosystem properties, see `honest-assets.md`. This file lists only asset IDs, precisions, and short variants.
|
|
6
|
+
|
|
7
|
+
Liquidity pools exist for many of these pairs but are handled by arbitrage bots — the margin trading system only uses limit orders on the book.
|
|
8
|
+
|
|
9
|
+
## Crypto Assets (BTS-backed)
|
|
10
|
+
|
|
11
|
+
| Symbol | ID | Precision | Short Variant |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| HONEST.BTC | 1.3.5650 | 8 | HONEST.BTCSHORT |
|
|
14
|
+
| HONEST.ETH | 1.3.5659 | 6 | HONEST.ETHSHORT |
|
|
15
|
+
| HONEST.LTC | 1.3.6306 | 8 | HONEST.LTCSHORT |
|
|
16
|
+
| HONEST.XRP | 1.3.5660 | 6 | HONEST.XRPSHORT |
|
|
17
|
+
| HONEST.XMR | 1.3.6308 | 8 | HONEST.XMRSHORT |
|
|
18
|
+
| HONEST.SOL | 1.3.6307 | 8 | HONEST.SOLSHORT |
|
|
19
|
+
| HONEST.DOT | 1.3.6305 | 8 | HONEST.DOTSHORT |
|
|
20
|
+
| HONEST.ADA | 1.3.6304 | 8 | HONEST.ADASHORT |
|
|
21
|
+
| HONEST.ATOM | 1.3.6309 | 8 | HONEST.ATOMSHORT |
|
|
22
|
+
| HONEST.ALGO | 1.3.6311 | 8 | HONEST.ALGOSHORT |
|
|
23
|
+
| HONEST.XLM | 1.3.6310 | 8 | HONEST.XLMSHORT |
|
|
24
|
+
| HONEST.FIL | 1.3.6312 | 8 | HONEST.FILSHORT |
|
|
25
|
+
| HONEST.EOS | 1.3.6313 | 8 | HONEST.EOSSHORT |
|
|
26
|
+
|
|
27
|
+
## Fiat Currencies (BTS-backed)
|
|
28
|
+
|
|
29
|
+
| Symbol | ID | Precision | Short Variant | Note |
|
|
30
|
+
|---|---|---|---|---|
|
|
31
|
+
| HONEST.USD | 1.3.5649 | 4 | HONEST.USDSHORT | 0.2% taker fee |
|
|
32
|
+
| HONEST.CNY | 1.3.5641 | 4 | HONEST.CNYSHORT | |
|
|
33
|
+
| HONEST.EUR | 1.3.6315 | 4 | HONEST.EURSHORT | |
|
|
34
|
+
| HONEST.GBP | 1.3.6316 | 4 | HONEST.GBPSHORT | |
|
|
35
|
+
| HONEST.JPY | 1.3.6317 | 4 | HONEST.JPYSHORT | |
|
|
36
|
+
| HONEST.KRW | 1.3.6318 | 4 | HONEST.KRWSHORT | |
|
|
37
|
+
| HONEST.RUB | 1.3.6314 | 4 | HONEST.RUBSHORT | |
|
|
38
|
+
|
|
39
|
+
## Commodities (BTS-backed)
|
|
40
|
+
|
|
41
|
+
| Symbol | ID | Precision | Short Variant |
|
|
42
|
+
|---|---|---|---|
|
|
43
|
+
| HONEST.XAU | 1.3.5651 | 8 | HONEST.XAUSHORT |
|
|
44
|
+
| HONEST.XAG | 1.3.5652 | 8 | HONEST.XAGSHORT |
|
|
45
|
+
|
|
46
|
+
## Cross-Backed (HONEST.BTC-backed)
|
|
47
|
+
|
|
48
|
+
These use HONEST.BTC as collateral instead of BTS — different collateral dynamics.
|
|
49
|
+
|
|
50
|
+
| Symbol | ID | Precision | Backing |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| HONEST.ETH1 | 1.3.5662 | 6 | HONEST.BTC |
|
|
53
|
+
| HONEST.XRP1 | 1.3.5661 | 6 | HONEST.BTC |
|
|
54
|
+
|
|
55
|
+
## Reference Asset
|
|
56
|
+
|
|
57
|
+
| Symbol | ID | Type | Note |
|
|
58
|
+
|---|---|---|---|
|
|
59
|
+
| HONEST.MONEY | 1.3.6301 | ASSET | Internal reference asset, not an MPA |
|
|
60
|
+
|
|
61
|
+
## Summary
|
|
62
|
+
|
|
63
|
+
- 46 MPAs total: 22 base assets + 22 SHORT inverse tokens + 2 cross-backed
|
|
64
|
+
- Every base crypto/fiat/commodity has a corresponding SHORT inverse token
|
|
65
|
+
- SHORT tokens allow inverse exposure without a direct short position
|
|
66
|
+
- Cross-backed assets (ETH1, XRP1) have HONEST.BTC collateral dynamics instead of BTS
|
|
67
|
+
|
|
68
|
+
## Live Discovery
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
tsx scripts/honest_assets_report.ts --json
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Filter by `type === 'MPA'` for margin-tradeable assets. The `honest_ecosystem.ts` module's `isMpa()` function checks for `bitasset_data_id`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# HONEST.Asset Ecosystem
|
|
2
|
+
|
|
3
|
+
HONEST.Assets are Market Pegged Assets (MPAs) on the BitShares DEX backed by BTS collateral with price feeds published by the HONEST committee.
|
|
4
|
+
|
|
5
|
+
## Fee Structure
|
|
6
|
+
|
|
7
|
+
| Parameter | HONEST.Assets (standard) | HONEST.USD (exception) |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| Maker fee | 0% | 0% |
|
|
10
|
+
| Taker fee | 0.1% | 0.2% |
|
|
11
|
+
|
|
12
|
+
All HONEST.Assets share the same parameters except HONEST.USD which has a higher taker fee.
|
|
13
|
+
|
|
14
|
+
Order operation fees (create, update, cancel) are approximately 0.1 BTS each.
|
|
15
|
+
|
|
16
|
+
## Collateral
|
|
17
|
+
|
|
18
|
+
- Maintenance Collateral Ratio (MCR): 1.4
|
|
19
|
+
|
|
20
|
+
The collateral ratio is:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
CR = collateral_amount / (debt_amount × feed_price)
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Collateral ratio zones are defined in `references/position-management.md`. Green zone starts at CR 2.0.
|
|
27
|
+
|
|
28
|
+
## Feed Price
|
|
29
|
+
|
|
30
|
+
Each HONEST.Asset has an on-chain settlement feed price published by feed producers. This feed anchors the asset to its external reference value.
|
|
31
|
+
|
|
32
|
+
The relationship between market price and feed price defines the premium or discount:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
premium_percent = ((market_price - feed_price) / feed_price) × 100
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
- Positive: market trades at a premium (MPA is overvalued relative to feed)
|
|
39
|
+
- Negative: market trades at a discount (MPA is undervalued relative to feed)
|
|
40
|
+
- Near zero: market tracks the peg
|
|
41
|
+
|
|
42
|
+
## Reference Asset
|
|
43
|
+
|
|
44
|
+
HONEST.MONEY serves as the internal reference bridge asset. The HONEST.MONEY/BTS liquidity pool (1.19.305) provides cross-pricing between HONEST.Assets and BTS.
|