@woodger/t-invest-node-sdk 0.5.1
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/CHANGELOG.md +611 -0
- package/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +307 -0
- package/certificates/russian-trusted-root-ca.pem +33 -0
- package/dist/application/dto/t-invest-options.d.ts +30 -0
- package/dist/application/dto/t-invest-options.js +11 -0
- package/dist/application/dto/t-invest-services.d.ts +168 -0
- package/dist/application/dto/t-invest-services.js +12 -0
- package/dist/application/errors/sdk-error.d.ts +47 -0
- package/dist/application/errors/sdk-error.js +84 -0
- package/dist/application/reports/accounts.report.d.ts +26 -0
- package/dist/application/reports/accounts.report.js +11 -0
- package/dist/application/reports/accrued-interests.report.d.ts +22 -0
- package/dist/application/reports/accrued-interests.report.js +11 -0
- package/dist/application/reports/asset.report.d.ts +72 -0
- package/dist/application/reports/asset.report.js +11 -0
- package/dist/application/reports/bond-coupons.report.d.ts +31 -0
- package/dist/application/reports/bond-coupons.report.js +11 -0
- package/dist/application/reports/bond.report.d.ts +82 -0
- package/dist/application/reports/bond.report.js +11 -0
- package/dist/application/reports/brands.report.d.ts +24 -0
- package/dist/application/reports/brands.report.js +11 -0
- package/dist/application/reports/broker-report.report.d.ts +74 -0
- package/dist/application/reports/broker-report.report.js +11 -0
- package/dist/application/reports/cancel-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-order.report.js +11 -0
- package/dist/application/reports/cancel-stop-order.report.d.ts +14 -0
- package/dist/application/reports/cancel-stop-order.report.js +11 -0
- package/dist/application/reports/candles.report.d.ts +26 -0
- package/dist/application/reports/candles.report.js +11 -0
- package/dist/application/reports/close-prices.report.d.ts +20 -0
- package/dist/application/reports/close-prices.report.js +11 -0
- package/dist/application/reports/countries.report.d.ts +20 -0
- package/dist/application/reports/countries.report.js +11 -0
- package/dist/application/reports/currency.report.d.ts +58 -0
- package/dist/application/reports/currency.report.js +11 -0
- package/dist/application/reports/dividends-foreign-issuer.report.d.ts +51 -0
- package/dist/application/reports/dividends-foreign-issuer.report.js +11 -0
- package/dist/application/reports/dividends.report.d.ts +33 -0
- package/dist/application/reports/dividends.report.js +11 -0
- package/dist/application/reports/etf.report.d.ts +62 -0
- package/dist/application/reports/etf.report.js +11 -0
- package/dist/application/reports/favorites.report.d.ts +24 -0
- package/dist/application/reports/favorites.report.js +11 -0
- package/dist/application/reports/find-instrument.report.d.ts +34 -0
- package/dist/application/reports/find-instrument.report.js +11 -0
- package/dist/application/reports/future.report.d.ts +66 -0
- package/dist/application/reports/future.report.js +11 -0
- package/dist/application/reports/futures-margin.report.d.ts +21 -0
- package/dist/application/reports/futures-margin.report.js +11 -0
- package/dist/application/reports/index.d.ts +50 -0
- package/dist/application/reports/index.js +66 -0
- package/dist/application/reports/instrument.report.d.ts +47 -0
- package/dist/application/reports/instrument.report.js +11 -0
- package/dist/application/reports/last-prices.report.d.ts +20 -0
- package/dist/application/reports/last-prices.report.js +11 -0
- package/dist/application/reports/last-trades.report.d.ts +24 -0
- package/dist/application/reports/last-trades.report.js +11 -0
- package/dist/application/reports/margin-attributes.report.d.ts +25 -0
- package/dist/application/reports/margin-attributes.report.js +11 -0
- package/dist/application/reports/money.report.d.ts +15 -0
- package/dist/application/reports/money.report.js +11 -0
- package/dist/application/reports/operations-by-cursor.report.d.ts +65 -0
- package/dist/application/reports/operations-by-cursor.report.js +11 -0
- package/dist/application/reports/operations.report.d.ts +40 -0
- package/dist/application/reports/operations.report.js +11 -0
- package/dist/application/reports/option.report.d.ts +76 -0
- package/dist/application/reports/option.report.js +11 -0
- package/dist/application/reports/order-book.report.d.ts +38 -0
- package/dist/application/reports/order-book.report.js +11 -0
- package/dist/application/reports/order-mutation.report.d.ts +45 -0
- package/dist/application/reports/order-mutation.report.js +11 -0
- package/dist/application/reports/order-state.report.d.ts +12 -0
- package/dist/application/reports/order-state.report.js +11 -0
- package/dist/application/reports/orders.report.d.ts +53 -0
- package/dist/application/reports/orders.report.js +11 -0
- package/dist/application/reports/portfolio.report.d.ts +54 -0
- package/dist/application/reports/portfolio.report.js +11 -0
- package/dist/application/reports/positions.report.d.ts +45 -0
- package/dist/application/reports/positions.report.js +11 -0
- package/dist/application/reports/post-stop-order.report.d.ts +14 -0
- package/dist/application/reports/post-stop-order.report.js +11 -0
- package/dist/application/reports/sandbox-account.report.d.ts +20 -0
- package/dist/application/reports/sandbox-account.report.js +11 -0
- package/dist/application/reports/share.report.d.ts +66 -0
- package/dist/application/reports/share.report.js +11 -0
- package/dist/application/reports/stop-orders.report.d.ts +34 -0
- package/dist/application/reports/stop-orders.report.js +11 -0
- package/dist/application/reports/trading-schedules.report.d.ts +44 -0
- package/dist/application/reports/trading-schedules.report.js +11 -0
- package/dist/application/reports/trading-status.report.d.ts +19 -0
- package/dist/application/reports/trading-status.report.js +11 -0
- package/dist/application/reports/trading-statuses.report.d.ts +12 -0
- package/dist/application/reports/trading-statuses.report.js +11 -0
- package/dist/application/reports/user-info.report.d.ts +16 -0
- package/dist/application/reports/user-info.report.js +11 -0
- package/dist/application/reports/user-tariff.report.d.ts +28 -0
- package/dist/application/reports/user-tariff.report.js +11 -0
- package/dist/application/reports/withdraw-limits.report.d.ts +16 -0
- package/dist/application/reports/withdraw-limits.report.js +11 -0
- package/dist/application/services/unary-limiter.d.ts +44 -0
- package/dist/application/services/unary-limiter.js +138 -0
- package/dist/bootstrap/args/command-options.d.ts +43 -0
- package/dist/bootstrap/args/command-options.js +125 -0
- package/dist/bootstrap/args/index.d.ts +1 -0
- package/dist/bootstrap/args/index.js +5 -0
- package/dist/bootstrap/args/instrument-id-options.d.ts +24 -0
- package/dist/bootstrap/args/instrument-id-options.js +47 -0
- package/dist/bootstrap/args/instruments-args.d.ts +49 -0
- package/dist/bootstrap/args/instruments-args.js +89 -0
- package/dist/bootstrap/args/sdk-options.d.ts +19 -0
- package/dist/bootstrap/args/sdk-options.js +40 -0
- package/dist/bootstrap/args/side-effect-args.d.ts +20 -0
- package/dist/bootstrap/args/side-effect-args.js +50 -0
- package/dist/bootstrap/cli/contract.d.ts +16 -0
- package/dist/bootstrap/cli/contract.js +15 -0
- package/dist/bootstrap/cli/domains.d.ts +260 -0
- package/dist/bootstrap/cli/domains.js +631 -0
- package/dist/bootstrap/cli/error.d.ts +15 -0
- package/dist/bootstrap/cli/error.js +40 -0
- package/dist/bootstrap/cli/help.d.ts +751 -0
- package/dist/bootstrap/cli/help.js +1789 -0
- package/dist/bootstrap/cli/registry.d.ts +2102 -0
- package/dist/bootstrap/cli/registry.js +186 -0
- package/dist/bootstrap/cli/runner.d.ts +10 -0
- package/dist/bootstrap/cli/runner.js +151 -0
- package/dist/bootstrap/cli/version.d.ts +17 -0
- package/dist/bootstrap/cli/version.js +26 -0
- package/dist/bootstrap/commands/accounts/cli.d.ts +63 -0
- package/dist/bootstrap/commands/accounts/cli.js +50 -0
- package/dist/bootstrap/commands/accounts/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accounts/reporter.js +50 -0
- package/dist/bootstrap/commands/accrued-interests/cli.d.ts +129 -0
- package/dist/bootstrap/commands/accrued-interests/cli.js +80 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/accrued-interests/reporter.js +43 -0
- package/dist/bootstrap/commands/asset/cli.d.ts +99 -0
- package/dist/bootstrap/commands/asset/cli.js +64 -0
- package/dist/bootstrap/commands/asset/reporter.d.ts +16 -0
- package/dist/bootstrap/commands/asset/reporter.js +122 -0
- package/dist/bootstrap/commands/assets/cli.d.ts +102 -0
- package/dist/bootstrap/commands/assets/cli.js +78 -0
- package/dist/bootstrap/commands/assets/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/assets/reporter.js +27 -0
- package/dist/bootstrap/commands/bond/cli.d.ts +83 -0
- package/dist/bootstrap/commands/bond/cli.js +53 -0
- package/dist/bootstrap/commands/bond/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/bond/reporter.js +123 -0
- package/dist/bootstrap/commands/bond-coupons/cli.d.ts +129 -0
- package/dist/bootstrap/commands/bond-coupons/cli.js +80 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/bond-coupons/reporter.js +64 -0
- package/dist/bootstrap/commands/bonds/cli.d.ts +73 -0
- package/dist/bootstrap/commands/bonds/cli.js +53 -0
- package/dist/bootstrap/commands/bonds/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/bonds/reporter.js +27 -0
- package/dist/bootstrap/commands/brand/cli.d.ts +99 -0
- package/dist/bootstrap/commands/brand/cli.js +64 -0
- package/dist/bootstrap/commands/brand/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brand/reporter.js +37 -0
- package/dist/bootstrap/commands/brands/cli.d.ts +63 -0
- package/dist/bootstrap/commands/brands/cli.js +50 -0
- package/dist/bootstrap/commands/brands/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/brands/reporter.js +49 -0
- package/dist/bootstrap/commands/broker-report/cli.d.ts +132 -0
- package/dist/bootstrap/commands/broker-report/cli.js +105 -0
- package/dist/bootstrap/commands/broker-report/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/broker-report/reporter.js +123 -0
- package/dist/bootstrap/commands/cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-order/reporter.js +32 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/cancel-stop-order/cli.js +71 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/cancel-stop-order/reporter.js +32 -0
- package/dist/bootstrap/commands/candles/cli.d.ts +138 -0
- package/dist/bootstrap/commands/candles/cli.js +104 -0
- package/dist/bootstrap/commands/candles/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/candles/reporter.js +49 -0
- package/dist/bootstrap/commands/close-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/close-prices/cli.js +66 -0
- package/dist/bootstrap/commands/close-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/close-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/compile-proto/cli.d.ts +12 -0
- package/dist/bootstrap/commands/compile-proto/cli.js +22 -0
- package/dist/bootstrap/commands/countries/cli.d.ts +63 -0
- package/dist/bootstrap/commands/countries/cli.js +50 -0
- package/dist/bootstrap/commands/countries/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/countries/reporter.js +42 -0
- package/dist/bootstrap/commands/currencies/cli.d.ts +73 -0
- package/dist/bootstrap/commands/currencies/cli.js +53 -0
- package/dist/bootstrap/commands/currencies/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/currencies/reporter.js +27 -0
- package/dist/bootstrap/commands/currency/cli.d.ts +83 -0
- package/dist/bootstrap/commands/currency/cli.js +53 -0
- package/dist/bootstrap/commands/currency/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/currency/reporter.js +104 -0
- package/dist/bootstrap/commands/dividends/cli.d.ts +129 -0
- package/dist/bootstrap/commands/dividends/cli.js +80 -0
- package/dist/bootstrap/commands/dividends/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends/reporter.js +62 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.d.ts +132 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/cli.js +105 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/dividends-foreign-issuer/reporter.js +108 -0
- package/dist/bootstrap/commands/edit-favorites/cli.d.ts +129 -0
- package/dist/bootstrap/commands/edit-favorites/cli.js +78 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/edit-favorites/reporter.js +23 -0
- package/dist/bootstrap/commands/etf/cli.d.ts +83 -0
- package/dist/bootstrap/commands/etf/cli.js +53 -0
- package/dist/bootstrap/commands/etf/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/etf/reporter.js +109 -0
- package/dist/bootstrap/commands/etfs/cli.d.ts +73 -0
- package/dist/bootstrap/commands/etfs/cli.js +53 -0
- package/dist/bootstrap/commands/etfs/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/etfs/reporter.js +27 -0
- package/dist/bootstrap/commands/favorites/cli.d.ts +63 -0
- package/dist/bootstrap/commands/favorites/cli.js +50 -0
- package/dist/bootstrap/commands/favorites/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/favorites/reporter.js +60 -0
- package/dist/bootstrap/commands/find-instrument/cli.d.ts +126 -0
- package/dist/bootstrap/commands/find-instrument/cli.js +88 -0
- package/dist/bootstrap/commands/find-instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/find-instrument/reporter.js +71 -0
- package/dist/bootstrap/commands/future/cli.d.ts +83 -0
- package/dist/bootstrap/commands/future/cli.js +53 -0
- package/dist/bootstrap/commands/future/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/future/reporter.js +116 -0
- package/dist/bootstrap/commands/futures/cli.d.ts +73 -0
- package/dist/bootstrap/commands/futures/cli.js +53 -0
- package/dist/bootstrap/commands/futures/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/futures/reporter.js +27 -0
- package/dist/bootstrap/commands/futures-margin/cli.d.ts +105 -0
- package/dist/bootstrap/commands/futures-margin/cli.js +64 -0
- package/dist/bootstrap/commands/futures-margin/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/futures-margin/reporter.js +40 -0
- package/dist/bootstrap/commands/help/cli.d.ts +13 -0
- package/dist/bootstrap/commands/help/cli.js +26 -0
- package/dist/bootstrap/commands/instrument/cli.d.ts +83 -0
- package/dist/bootstrap/commands/instrument/cli.js +53 -0
- package/dist/bootstrap/commands/instrument/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/instrument/reporter.js +91 -0
- package/dist/bootstrap/commands/last-prices/cli.d.ts +99 -0
- package/dist/bootstrap/commands/last-prices/cli.js +66 -0
- package/dist/bootstrap/commands/last-prices/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-prices/reporter.js +43 -0
- package/dist/bootstrap/commands/last-trades/cli.d.ts +123 -0
- package/dist/bootstrap/commands/last-trades/cli.js +82 -0
- package/dist/bootstrap/commands/last-trades/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/last-trades/reporter.js +48 -0
- package/dist/bootstrap/commands/margin-attributes/cli.d.ts +99 -0
- package/dist/bootstrap/commands/margin-attributes/cli.js +64 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/margin-attributes/reporter.js +51 -0
- package/dist/bootstrap/commands/operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/operations/cli.js +99 -0
- package/dist/bootstrap/commands/operations/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations/reporter.js +78 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/operations-by-cursor/cli.js +164 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/operations-by-cursor/reporter.js +107 -0
- package/dist/bootstrap/commands/option/cli.d.ts +83 -0
- package/dist/bootstrap/commands/option/cli.js +53 -0
- package/dist/bootstrap/commands/option/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/option/reporter.js +125 -0
- package/dist/bootstrap/commands/options-by/cli.d.ts +108 -0
- package/dist/bootstrap/commands/options-by/cli.js +68 -0
- package/dist/bootstrap/commands/options-by/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/options-by/reporter.js +27 -0
- package/dist/bootstrap/commands/order-book/cli.d.ts +120 -0
- package/dist/bootstrap/commands/order-book/cli.js +73 -0
- package/dist/bootstrap/commands/order-book/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/order-book/reporter.js +60 -0
- package/dist/bootstrap/commands/order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/order-state/cli.js +71 -0
- package/dist/bootstrap/commands/order-state/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/order-state/reporter.js +57 -0
- package/dist/bootstrap/commands/orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/orders/cli.js +64 -0
- package/dist/bootstrap/commands/orders/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/orders/reporter.js +88 -0
- package/dist/bootstrap/commands/portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/portfolio/cli.js +77 -0
- package/dist/bootstrap/commands/portfolio/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/portfolio/reporter.js +95 -0
- package/dist/bootstrap/commands/positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/positions/cli.js +64 -0
- package/dist/bootstrap/commands/positions/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/positions/reporter.js +116 -0
- package/dist/bootstrap/commands/post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/post-order/cli.js +113 -0
- package/dist/bootstrap/commands/post-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-order/reporter.js +77 -0
- package/dist/bootstrap/commands/post-stop-order/cli.d.ts +216 -0
- package/dist/bootstrap/commands/post-stop-order/cli.js +145 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/post-stop-order/reporter.js +31 -0
- package/dist/bootstrap/commands/replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/replace-order/cli.js +99 -0
- package/dist/bootstrap/commands/replace-order/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/replace-order/reporter.js +17 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.d.ts +64 -0
- package/dist/bootstrap/commands/sandbox-accounts/cli.js +54 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.d.ts +120 -0
- package/dist/bootstrap/commands/sandbox-cancel-order/cli.js +69 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.d.ts +108 -0
- package/dist/bootstrap/commands/sandbox-close-account/cli.js +66 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.d.ts +12 -0
- package/dist/bootstrap/commands/sandbox-close-account/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.d.ts +70 -0
- package/dist/bootstrap/commands/sandbox-open-account/cli.js +57 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-open-account/reporter.js +31 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.d.ts +156 -0
- package/dist/bootstrap/commands/sandbox-operations/cli.js +78 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.d.ts +204 -0
- package/dist/bootstrap/commands/sandbox-operations-by-cursor/cli.js +98 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.d.ts +111 -0
- package/dist/bootstrap/commands/sandbox-order-state/cli.js +67 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-orders/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.d.ts +135 -0
- package/dist/bootstrap/commands/sandbox-pay-in/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/sandbox-pay-in/reporter.js +32 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.d.ts +114 -0
- package/dist/bootstrap/commands/sandbox-portfolio/cli.js +68 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-positions/cli.js +63 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.d.ts +192 -0
- package/dist/bootstrap/commands/sandbox-post-order/cli.js +90 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.d.ts +180 -0
- package/dist/bootstrap/commands/sandbox-replace-order/cli.js +86 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/sandbox-withdraw-limits/cli.js +63 -0
- package/dist/bootstrap/commands/share/cli.d.ts +83 -0
- package/dist/bootstrap/commands/share/cli.js +53 -0
- package/dist/bootstrap/commands/share/reporter.d.ts +15 -0
- package/dist/bootstrap/commands/share/reporter.js +111 -0
- package/dist/bootstrap/commands/shares/cli.d.ts +73 -0
- package/dist/bootstrap/commands/shares/cli.js +53 -0
- package/dist/bootstrap/commands/shares/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/shares/reporter.js +27 -0
- package/dist/bootstrap/commands/stop-orders/cli.d.ts +99 -0
- package/dist/bootstrap/commands/stop-orders/cli.js +68 -0
- package/dist/bootstrap/commands/stop-orders/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/stop-orders/reporter.js +69 -0
- package/dist/bootstrap/commands/stream-run/cli.d.ts +138 -0
- package/dist/bootstrap/commands/stream-run/cli.js +229 -0
- package/dist/bootstrap/commands/stream-run/config.d.ts +56 -0
- package/dist/bootstrap/commands/stream-run/config.js +468 -0
- package/dist/bootstrap/commands/stream-run/reporter.d.ts +30 -0
- package/dist/bootstrap/commands/stream-run/reporter.js +76 -0
- package/dist/bootstrap/commands/trading-schedules/cli.d.ts +120 -0
- package/dist/bootstrap/commands/trading-schedules/cli.js +79 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-schedules/reporter.js +58 -0
- package/dist/bootstrap/commands/trading-status/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-status/cli.js +65 -0
- package/dist/bootstrap/commands/trading-status/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/trading-status/reporter.js +51 -0
- package/dist/bootstrap/commands/trading-statuses/cli.d.ts +99 -0
- package/dist/bootstrap/commands/trading-statuses/cli.js +64 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.d.ts +14 -0
- package/dist/bootstrap/commands/trading-statuses/reporter.js +44 -0
- package/dist/bootstrap/commands/user-info/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-info/cli.js +50 -0
- package/dist/bootstrap/commands/user-info/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-info/reporter.js +39 -0
- package/dist/bootstrap/commands/user-tariff/cli.d.ts +63 -0
- package/dist/bootstrap/commands/user-tariff/cli.js +50 -0
- package/dist/bootstrap/commands/user-tariff/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/user-tariff/reporter.js +50 -0
- package/dist/bootstrap/commands/version/cli.d.ts +13 -0
- package/dist/bootstrap/commands/version/cli.js +22 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.d.ts +99 -0
- package/dist/bootstrap/commands/withdraw-limits/cli.js +64 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.d.ts +13 -0
- package/dist/bootstrap/commands/withdraw-limits/reporter.js +59 -0
- package/dist/bootstrap/generated-exports.d.ts +29 -0
- package/dist/bootstrap/generated-exports.js +590 -0
- package/dist/bootstrap/index.d.ts +6 -0
- package/dist/bootstrap/index.js +22 -0
- package/dist/bootstrap/proto/compile-proto.d.ts +18 -0
- package/dist/bootstrap/proto/compile-proto.js +122 -0
- package/dist/bootstrap/sdk-config.d.ts +21 -0
- package/dist/bootstrap/sdk-config.js +152 -0
- package/dist/bootstrap/t-invest-node-sdk.d.ts +42 -0
- package/dist/bootstrap/t-invest-node-sdk.js +115 -0
- package/dist/bootstrap/unary-limit-config.d.ts +38 -0
- package/dist/bootstrap/unary-limit-config.js +130 -0
- package/dist/config.d.ts +160 -0
- package/dist/config.js +173 -0
- package/dist/config.types.d.ts +89 -0
- package/dist/config.types.js +13 -0
- package/dist/generated/common.d.ts +214 -0
- package/dist/generated/common.js +1336 -0
- package/dist/generated/google/api/field_behavior.d.ts +61 -0
- package/dist/generated/google/api/field_behavior.js +126 -0
- package/dist/generated/google/protobuf/descriptor.d.ts +1330 -0
- package/dist/generated/google/protobuf/descriptor.js +5984 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +122 -0
- package/dist/generated/google/protobuf/timestamp.js +102 -0
- package/dist/generated/instruments.d.ts +3230 -0
- package/dist/generated/instruments.js +24246 -0
- package/dist/generated/marketdata.d.ts +1268 -0
- package/dist/generated/marketdata.js +8922 -0
- package/dist/generated/operations.d.ts +1165 -0
- package/dist/generated/operations.js +8625 -0
- package/dist/generated/orders.d.ts +806 -0
- package/dist/generated/orders.js +5639 -0
- package/dist/generated/sandbox.d.ts +356 -0
- package/dist/generated/sandbox.js +603 -0
- package/dist/generated/signals.d.ts +196 -0
- package/dist/generated/signals.js +1261 -0
- package/dist/generated/stoporders.d.ts +328 -0
- package/dist/generated/stoporders.js +1990 -0
- package/dist/generated/users.d.ts +453 -0
- package/dist/generated/users.js +2334 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +30 -0
- package/dist/infrastructure/interceptor/index.d.ts +1 -0
- package/dist/infrastructure/interceptor/index.js +17 -0
- package/dist/infrastructure/interceptor/warning-interceptor.d.ts +23 -0
- package/dist/infrastructure/interceptor/warning-interceptor.js +38 -0
- package/dist/infrastructure/report-values.d.ts +19 -0
- package/dist/infrastructure/report-values.js +50 -0
- package/dist/infrastructure/transport/grpc/index.d.ts +5 -0
- package/dist/infrastructure/transport/grpc/index.js +13 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-channel.js +23 -0
- package/dist/infrastructure/transport/grpc/sdk-client.d.ts +16 -0
- package/dist/infrastructure/transport/grpc/sdk-client.js +33 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.d.ts +12 -0
- package/dist/infrastructure/transport/grpc/sdk-metadata.js +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/sdk-middleware.js +312 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.d.ts +10 -0
- package/dist/infrastructure/transport/grpc/tls-root-certificates.js +20 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.d.ts +22 -0
- package/dist/infrastructure/transport/grpc/unary-limit-resolver.js +60 -0
- package/dist/infrastructure/transport/grpc/unary-limits.d.ts +1 -0
- package/dist/infrastructure/transport/grpc/unary-limits.js +7 -0
- package/docs/architecture.md +378 -0
- package/docs/bundled-ca.md +157 -0
- package/docs/clean-architecture/adapters.md +173 -0
- package/docs/clean-architecture/api-commands.md +487 -0
- package/docs/clean-architecture/application.md +137 -0
- package/docs/clean-architecture/cli-output-boundaries.md +256 -0
- package/docs/clean-architecture/dto.md +153 -0
- package/docs/clean-architecture/index.md +89 -0
- package/docs/cli-stream-configuration.md +305 -0
- package/docs/cli-stream-reference.md +195 -0
- package/docs/guides/custom-unary-limiter.md +552 -0
- package/docs/guides/errors-and-lifecycle.md +196 -0
- package/docs/guides/getting-started.md +100 -0
- package/docs/guides/index.md +43 -0
- package/docs/guides/streams-and-cancellation.md +177 -0
- package/docs/guides/testing-with-service-definitions.md +110 -0
- package/docs/guides/unary-calls.md +216 -0
- package/docs/index.md +86 -0
- package/docs/limits-policy.md +201 -0
- package/docs/roadmap.md +204 -0
- package/docs/tls-policy.md +62 -0
- package/package.json +62 -0
- package/readme.md +472 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Адаптеры
|
|
2
|
+
|
|
3
|
+
> Type: Design Note. Документ фиксирует текущий placement project adapters и
|
|
4
|
+
> границу bootstrap-интеграции с внешней зависимостью `icore`.
|
|
5
|
+
|
|
6
|
+
## Контекст
|
|
7
|
+
|
|
8
|
+
В Clean Architecture adapters находятся на внешней стороне application. Они
|
|
9
|
+
преобразуют внутренние contracts в форму конкретного внешнего интерфейса и
|
|
10
|
+
обратно.
|
|
11
|
+
|
|
12
|
+
В текущем SDK command-specific CLI adapter-ы остаются рядом с командами в
|
|
13
|
+
`bootstrap`. Generic option/command mechanics, механический JSON/CSV-row/table
|
|
14
|
+
rendering и terminal output предоставляет `icore`. Это внешняя зависимость, а
|
|
15
|
+
не новый project layer или директория внутри `infrastructure`.
|
|
16
|
+
|
|
17
|
+
Focused правила по форматированию и штатному stdout/stderr delivery описаны в
|
|
18
|
+
[Разделении форматирования и вывода в CLI](./cli-output-boundaries.md).
|
|
19
|
+
|
|
20
|
+
## Текущее Состояние
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
src/application
|
|
24
|
+
reports/
|
|
25
|
+
|
|
26
|
+
src/infrastructure
|
|
27
|
+
interceptor/
|
|
28
|
+
report-values.ts
|
|
29
|
+
transport/
|
|
30
|
+
grpc/
|
|
31
|
+
|
|
32
|
+
src/bootstrap
|
|
33
|
+
cli/
|
|
34
|
+
contract.ts
|
|
35
|
+
error.ts
|
|
36
|
+
runner.ts
|
|
37
|
+
commands/*/
|
|
38
|
+
cli.ts
|
|
39
|
+
reporter.ts
|
|
40
|
+
|
|
41
|
+
external dependency
|
|
42
|
+
icore
|
|
43
|
+
option/command mechanics
|
|
44
|
+
renderJson/renderCsv/renderCsvRow/renderTextTable
|
|
45
|
+
TerminalApp/Output
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`infrastructure/transport/grpc` - технический adapter к `nice-grpc`:
|
|
49
|
+
|
|
50
|
+
- channel;
|
|
51
|
+
- metadata;
|
|
52
|
+
- middleware;
|
|
53
|
+
- typed clients;
|
|
54
|
+
- mapping gRPC method path в transport-neutral `TInvestUnaryQuota`;
|
|
55
|
+
- mapping `nice-grpc` client failures в transport-neutral `SdkError`.
|
|
56
|
+
|
|
57
|
+
`unary-limit-resolver.ts` выбирает method rule или service fallback и разрешает
|
|
58
|
+
quota bucket. Middleware передаёт Consumer-owned limiter-у полный `path`,
|
|
59
|
+
`bucket`, `maxRequests`, `windowMs` и `AbortSignal`. Application port не
|
|
60
|
+
разбирает gRPC path и не владеет transport lifecycle.
|
|
61
|
+
|
|
62
|
+
`infrastructure/interceptor` содержит технический process hook для известных
|
|
63
|
+
warnings. Обычный вывод команд проходит через terminal app.
|
|
64
|
+
|
|
65
|
+
`infrastructure/report-values.ts` - принадлежащий проекту адаптер скалярных
|
|
66
|
+
значений:
|
|
67
|
+
|
|
68
|
+
- преобразует повторяющиеся provider scalar DTO values в reusable report values;
|
|
69
|
+
- сохраняет `MoneyValue` в JSON как структурный `ReportMoney`;
|
|
70
|
+
- предоставляет text helper для table cells вида `"amount currency"`;
|
|
71
|
+
- не знает command names, report shapes, columns, generic renderers или output
|
|
72
|
+
delivery.
|
|
73
|
+
|
|
74
|
+
`bootstrap/commands/*/reporter.ts` выполняет роль command-specific CLI adapter-а:
|
|
75
|
+
|
|
76
|
+
- принимает generated response или stream event;
|
|
77
|
+
- строит application report, если он является контрактом команды;
|
|
78
|
+
- выбирает поля, порядок, headers и пользовательское представление;
|
|
79
|
+
- вызывает generic render primitives `icore`, когда они подходят формату;
|
|
80
|
+
- оставляет project-specific rendering, например JSONL event shape, у команды.
|
|
81
|
+
|
|
82
|
+
`bootstrap/cli/runner.ts` выполняет integration wiring:
|
|
83
|
+
|
|
84
|
+
- создает default `Output` или принимает injected `Output`;
|
|
85
|
+
- собирает lightweight `TerminalApp` для shortcuts и external errors;
|
|
86
|
+
- лениво загружает command registry и собирает command `TerminalApp`;
|
|
87
|
+
- направляет help, version и warnings через output facade;
|
|
88
|
+
- передает prepared command в terminal app для выполнения и записи результата.
|
|
89
|
+
|
|
90
|
+
## Адаптер и вывод
|
|
91
|
+
|
|
92
|
+
Command-specific presentation и terminal output - разные ответственности:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
CLI adapter:
|
|
96
|
+
provider response/event
|
|
97
|
+
-> application report или command-local event contract
|
|
98
|
+
-> command-specific output values
|
|
99
|
+
-> string через generic primitive или project-specific formatter
|
|
100
|
+
|
|
101
|
+
normal output:
|
|
102
|
+
string/AsyncIterable -> TerminalApp -> Output.write -> stdout
|
|
103
|
+
|
|
104
|
+
diagnostics:
|
|
105
|
+
warnings/errors -> Output.error -> stderr
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Reporter знает смысл команды и ее output contract. `icore` render primitives
|
|
109
|
+
знают только общую механику формата: JSON serialization, CSV escaping/document
|
|
110
|
+
joining и plain-text table alignment. `icore` `Output` знает только delivery
|
|
111
|
+
готового результата или diagnostics и backpressure.
|
|
112
|
+
|
|
113
|
+
Локальные wrappers над этими primitives не нужны, пока у проекта нет
|
|
114
|
+
самостоятельного поведения или контракта поверх generic API.
|
|
115
|
+
|
|
116
|
+
## Направление зависимостей
|
|
117
|
+
|
|
118
|
+
Допустимо:
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
bootstrap/commands/*/reporter.ts -> application/reports
|
|
122
|
+
bootstrap/commands/*/reporter.ts -> infrastructure/report-values.ts
|
|
123
|
+
bootstrap/commands/*/reporter.ts -> icore presentation primitives
|
|
124
|
+
bootstrap/cli/runner.ts -> icore TerminalApp/Output
|
|
125
|
+
infrastructure/report-values.ts -> application/reports
|
|
126
|
+
infrastructure/transport/grpc -> application services/contracts
|
|
127
|
+
infrastructure/unary resolver -> application TInvestUnaryQuota
|
|
128
|
+
infrastructure/grpc middleware -> application TInvestUnaryLimiter
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Недопустимо:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
application -> bootstrap/commands/*/reporter.ts
|
|
135
|
+
application -> icore CLI/presentation mechanics
|
|
136
|
+
infrastructure/report-values.ts -> command-specific report formatting
|
|
137
|
+
generic output facade -> выбор полей или JSON contract команды
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Прямой import `icore` из `bootstrap` не меняет направление project layers:
|
|
141
|
+
bootstrap остается внешним composition/presentation слоем и интегрирует
|
|
142
|
+
external mechanics с локальными contracts.
|
|
143
|
+
|
|
144
|
+
## История перехода
|
|
145
|
+
|
|
146
|
+
Текущая модель появилась после переноса generic presentation/output mechanics
|
|
147
|
+
в `icore`:
|
|
148
|
+
|
|
149
|
+
1. Project-owned generic renderers и stdout/stderr writers удалены.
|
|
150
|
+
2. Reporter-ы вызывают публичные `icore` render primitives напрямую, без
|
|
151
|
+
локальных forwarding wrappers.
|
|
152
|
+
3. Bootstrap CLI собирает `TerminalApp` и `Output`, но сохраняет project-owned
|
|
153
|
+
alias inventory, help/version shortcuts, warnings и error policy; command
|
|
154
|
+
aliases передаются в canonical definitions и разрешаются самим `icore`.
|
|
155
|
+
4. `application/reports`, command-specific presentation и
|
|
156
|
+
`infrastructure/report-values.ts` остались project-owned contracts.
|
|
157
|
+
|
|
158
|
+
Отдельный use-case слой нужен только когда command перестает быть простой
|
|
159
|
+
оберткой над одним SDK call.
|
|
160
|
+
|
|
161
|
+
## Короткое Правило
|
|
162
|
+
|
|
163
|
+
Если код отвечает на вопрос "что и как показать для конкретной команды", это
|
|
164
|
+
command reporter.
|
|
165
|
+
|
|
166
|
+
Если код отвечает на вопрос "как механически сериализовать выбранные значения",
|
|
167
|
+
используется подходящий public primitive `icore`.
|
|
168
|
+
|
|
169
|
+
Если код отвечает на вопрос "как доставить готовый результат", это
|
|
170
|
+
`TerminalApp`/`Output`, собранные в CLI runner-е.
|
|
171
|
+
|
|
172
|
+
Если код отвечает на вопрос "какой сценарий выполнить", это application
|
|
173
|
+
use-case.
|
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
# API-команды
|
|
2
|
+
|
|
3
|
+
> Type: Design Note. Документ фиксирует текущую структуру CLI API-команд и
|
|
4
|
+
> проблему роста `bootstrap`.
|
|
5
|
+
|
|
6
|
+
## Контекст
|
|
7
|
+
|
|
8
|
+
В SDK появились API-команды. Публичная форма CLI строится как preferred
|
|
9
|
+
friendly path: `<domain> <resource/action>`.
|
|
10
|
+
|
|
11
|
+
Публичные domains:
|
|
12
|
+
|
|
13
|
+
- `account`;
|
|
14
|
+
- `instrument`;
|
|
15
|
+
- `market`;
|
|
16
|
+
- `order`;
|
|
17
|
+
- `stop-order`;
|
|
18
|
+
- `operation`;
|
|
19
|
+
- `sandbox`;
|
|
20
|
+
- `stream`;
|
|
21
|
+
- `dev`.
|
|
22
|
+
|
|
23
|
+
Technical и legacy paths остаются совместимыми aliases, но help и документация
|
|
24
|
+
продвигают только preferred paths. Registry хранит один canonical definition на
|
|
25
|
+
команду и передает остальные пути через first-class `icore` aliases; resolved
|
|
26
|
+
`name`/`path` остаются preferred, а введенный путь сохраняется в `matchedPath`.
|
|
27
|
+
Список ниже фиксирует текущий CLI contract:
|
|
28
|
+
|
|
29
|
+
- `account list` -> `sdk.users.getAccounts`
|
|
30
|
+
(`account get-accounts`, `users get-accounts`);
|
|
31
|
+
- `account info` -> `sdk.users.getInfo`
|
|
32
|
+
(`account get-info`, `users get-info`);
|
|
33
|
+
- `account margin` -> `sdk.users.getMarginAttributes`
|
|
34
|
+
(`account get-margin-attributes`, `users get-margin-attributes`);
|
|
35
|
+
- `account tariff` -> `sdk.users.getUserTariff`
|
|
36
|
+
(`account get-user-tariff`, `users get-user-tariff`);
|
|
37
|
+
- `market candles` -> `sdk.marketdata.getCandles`
|
|
38
|
+
(`market get-candles`, `marketdata get-candles`);
|
|
39
|
+
- `market close-prices` -> `sdk.marketdata.getClosePrices`
|
|
40
|
+
(`market get-close-prices`, `marketdata get-close-prices`);
|
|
41
|
+
- `market last-prices` -> `sdk.marketdata.getLastPrices`
|
|
42
|
+
(`market get-last-prices`, `marketdata get-last-prices`);
|
|
43
|
+
- `market trades` -> `sdk.marketdata.getLastTrades`
|
|
44
|
+
(`market get-last-trades`, `marketdata get-last-trades`);
|
|
45
|
+
- `market order-book` -> `sdk.marketdata.getOrderBook`
|
|
46
|
+
(`market get-order-book`, `marketdata get-order-book`);
|
|
47
|
+
- `market status` -> `sdk.marketdata.getTradingStatus`
|
|
48
|
+
(`market get-trading-status`, `marketdata get-trading-status`);
|
|
49
|
+
- `market statuses` -> `sdk.marketdata.getTradingStatuses`
|
|
50
|
+
(`market get-trading-statuses`, `marketdata get-trading-statuses`);
|
|
51
|
+
- `instrument search` -> `sdk.instruments.findInstrument`
|
|
52
|
+
(`instrument find-instrument`, `instruments find-instrument`);
|
|
53
|
+
- `instrument show` -> `sdk.instruments.getInstrumentBy`
|
|
54
|
+
(`instrument get-instrument-by`, `instruments get-instrument-by`);
|
|
55
|
+
- `instrument dividends` -> `sdk.instruments.getDividends`
|
|
56
|
+
(`instrument get-dividends`, `instruments get-dividends`);
|
|
57
|
+
- `instrument schedules` -> `sdk.instruments.tradingSchedules`
|
|
58
|
+
(`instrument trading-schedules`, `instruments trading-schedules`);
|
|
59
|
+
- `instrument favorite list` -> `sdk.instruments.getFavorites`
|
|
60
|
+
(`instrument get-favorites`, `instruments get-favorites`);
|
|
61
|
+
- `instrument favorite edit` -> `sdk.instruments.editFavorites`
|
|
62
|
+
(`instrument edit-favorites`, `instruments edit-favorites`);
|
|
63
|
+
- `instrument share list` -> `sdk.instruments.shares`
|
|
64
|
+
(`instrument shares`, `instruments shares`);
|
|
65
|
+
- `instrument share show` -> `sdk.instruments.shareBy`
|
|
66
|
+
(`instrument share-by`, `instruments share-by`);
|
|
67
|
+
- `instrument bond list` -> `sdk.instruments.bonds`
|
|
68
|
+
(`instrument bonds`, `instruments bonds`);
|
|
69
|
+
- `instrument bond show` -> `sdk.instruments.bondBy`
|
|
70
|
+
(`instrument bond-by`, `instruments bond-by`);
|
|
71
|
+
- `instrument bond coupons` -> `sdk.instruments.getBondCoupons`
|
|
72
|
+
(`instrument get-bond-coupons`, `instruments get-bond-coupons`);
|
|
73
|
+
- `instrument bond accrued` -> `sdk.instruments.getAccruedInterests`
|
|
74
|
+
(`instrument get-accrued-interests`, `instruments get-accrued-interests`);
|
|
75
|
+
- `instrument etf list` -> `sdk.instruments.etfs`
|
|
76
|
+
(`instrument etfs`, `instruments etfs`);
|
|
77
|
+
- `instrument etf show` -> `sdk.instruments.etfBy`
|
|
78
|
+
(`instrument etf-by`, `instruments etf-by`);
|
|
79
|
+
- `instrument currency list` -> `sdk.instruments.currencies`
|
|
80
|
+
(`instrument currencies`, `instruments currencies`);
|
|
81
|
+
- `instrument currency show` -> `sdk.instruments.currencyBy`
|
|
82
|
+
(`instrument currency-by`, `instruments currency-by`);
|
|
83
|
+
- `instrument future list` -> `sdk.instruments.futures`
|
|
84
|
+
(`instrument futures`, `instruments futures`);
|
|
85
|
+
- `instrument future show` -> `sdk.instruments.futureBy`
|
|
86
|
+
(`instrument future-by`, `instruments future-by`);
|
|
87
|
+
- `instrument future margin` -> `sdk.instruments.getFuturesMargin`
|
|
88
|
+
(`instrument get-futures-margin`, `instruments get-futures-margin`);
|
|
89
|
+
- `instrument option list` -> `sdk.instruments.optionsBy`
|
|
90
|
+
(`instrument options-by`, `instruments options-by`);
|
|
91
|
+
- `instrument option show` -> `sdk.instruments.optionBy`
|
|
92
|
+
(`instrument option-by`, `instruments option-by`);
|
|
93
|
+
- `instrument asset list` -> `sdk.instruments.getAssets`
|
|
94
|
+
(`instrument get-assets`, `instruments get-assets`);
|
|
95
|
+
- `instrument asset show` -> `sdk.instruments.getAssetBy`
|
|
96
|
+
(`instrument get-asset-by`, `instruments get-asset-by`);
|
|
97
|
+
- `instrument brand list` -> `sdk.instruments.getBrands`
|
|
98
|
+
(`instrument get-brands`, `instruments get-brands`);
|
|
99
|
+
- `instrument brand show` -> `sdk.instruments.getBrandBy`
|
|
100
|
+
(`instrument get-brand-by`, `instruments get-brand-by`);
|
|
101
|
+
- `instrument country list` -> `sdk.instruments.getCountries`
|
|
102
|
+
(`instrument get-countries`, `instruments get-countries`);
|
|
103
|
+
- `order list` -> `sdk.orders.getOrders`
|
|
104
|
+
(`order get-orders`, `orders get-orders`);
|
|
105
|
+
- `order show` -> `sdk.orders.getOrderState`
|
|
106
|
+
(`order get-order-state`, `orders get-order-state`);
|
|
107
|
+
- `order place` -> `sdk.orders.postOrder`
|
|
108
|
+
(`order post-order`, `orders post-order`);
|
|
109
|
+
- `order cancel` -> `sdk.orders.cancelOrder`
|
|
110
|
+
(`order cancel-order`, `orders cancel-order`);
|
|
111
|
+
- `order replace` -> `sdk.orders.replaceOrder`
|
|
112
|
+
(`order replace-order`, `orders replace-order`);
|
|
113
|
+
- `operation list` -> `sdk.operations.getOperations`
|
|
114
|
+
(`operation get-operations`, `operations get-operations`);
|
|
115
|
+
- `operation page` -> `sdk.operations.getOperationsByCursor`
|
|
116
|
+
(`operation get-operations-by-cursor`, `operations get-operations-by-cursor`);
|
|
117
|
+
- `operation broker-report` -> `sdk.operations.getBrokerReport`
|
|
118
|
+
(`operation get-broker-report`, `operations get-broker-report`);
|
|
119
|
+
- `operation foreign-dividends-report` -> `sdk.operations.getDividendsForeignIssuer`
|
|
120
|
+
(`operation get-dividends-foreign-issuer`, `operations get-dividends-foreign-issuer`);
|
|
121
|
+
- `operation portfolio` -> `sdk.operations.getPortfolio`
|
|
122
|
+
(`operation get-portfolio`, `operations get-portfolio`);
|
|
123
|
+
- `operation positions` -> `sdk.operations.getPositions`
|
|
124
|
+
(`operation get-positions`, `operations get-positions`);
|
|
125
|
+
- `operation withdraw-limits` -> `sdk.operations.getWithdrawLimits`
|
|
126
|
+
(`operation get-withdraw-limits`, `operations get-withdraw-limits`);
|
|
127
|
+
- `stop-order list` -> `sdk.stoporders.getStopOrders`
|
|
128
|
+
(`stop-order get-stop-orders`, `stoporders get-stop-orders`);
|
|
129
|
+
- `stop-order place` -> `sdk.stoporders.postStopOrder`
|
|
130
|
+
(`stop-order post-stop-order`, `stoporders post-stop-order`);
|
|
131
|
+
- `stop-order cancel` -> `sdk.stoporders.cancelStopOrder`
|
|
132
|
+
(`stop-order cancel-stop-order`, `stoporders cancel-stop-order`);
|
|
133
|
+
- `sandbox account list` -> `sdk.sandbox.getSandboxAccounts`
|
|
134
|
+
(`sandbox get-sandbox-accounts`);
|
|
135
|
+
- `sandbox account open` -> `sdk.sandbox.openSandboxAccount`
|
|
136
|
+
(`sandbox open-sandbox-account`);
|
|
137
|
+
- `sandbox account close` -> `sdk.sandbox.closeSandboxAccount`
|
|
138
|
+
(`sandbox close-sandbox-account`);
|
|
139
|
+
- `sandbox order list` -> `sdk.sandbox.getSandboxOrders`
|
|
140
|
+
(`sandbox get-sandbox-orders`);
|
|
141
|
+
- `sandbox order show` -> `sdk.sandbox.getSandboxOrderState`
|
|
142
|
+
(`sandbox get-sandbox-order-state`);
|
|
143
|
+
- `sandbox order place` -> `sdk.sandbox.postSandboxOrder`
|
|
144
|
+
(`sandbox post-sandbox-order`);
|
|
145
|
+
- `sandbox order replace` -> `sdk.sandbox.replaceSandboxOrder`
|
|
146
|
+
(`sandbox replace-sandbox-order`);
|
|
147
|
+
- `sandbox order cancel` -> `sdk.sandbox.cancelSandboxOrder`
|
|
148
|
+
(`sandbox cancel-sandbox-order`);
|
|
149
|
+
- `sandbox position list` -> `sdk.sandbox.getSandboxPositions`
|
|
150
|
+
(`sandbox get-sandbox-positions`);
|
|
151
|
+
- `sandbox operation list` -> `sdk.sandbox.getSandboxOperations`
|
|
152
|
+
(`sandbox get-sandbox-operations`);
|
|
153
|
+
- `sandbox operation page` -> `sdk.sandbox.getSandboxOperationsByCursor`
|
|
154
|
+
(`sandbox get-sandbox-operations-by-cursor`);
|
|
155
|
+
- `sandbox portfolio` -> `sdk.sandbox.getSandboxPortfolio`
|
|
156
|
+
(`sandbox get-sandbox-portfolio`);
|
|
157
|
+
- `sandbox withdraw-limits` -> `sdk.sandbox.getSandboxWithdrawLimits`
|
|
158
|
+
(`sandbox get-sandbox-withdraw-limits`);
|
|
159
|
+
- `sandbox pay-in` -> `sdk.sandbox.sandboxPayIn`
|
|
160
|
+
(`sandbox sandbox-pay-in`);
|
|
161
|
+
- `stream run` -> поток выбирается в JSON config;
|
|
162
|
+
- `dev compile-proto` -> TypeScript contract generation (`compile-proto`).
|
|
163
|
+
- `help` -> встроенная справка по CLI, домену или команде;
|
|
164
|
+
- `version` -> версия пакета.
|
|
165
|
+
|
|
166
|
+
Новые API-команды добавляются инкрементально, когда выбран конкретный SDK
|
|
167
|
+
method и понятен CLI-контракт команды. Preferred path должен быть добавлен в
|
|
168
|
+
command definition и help, а technical/legacy aliases - только через единый
|
|
169
|
+
alias layer, который передает их в native command definition `icore`.
|
|
170
|
+
|
|
171
|
+
## Отложенные расширения
|
|
172
|
+
|
|
173
|
+
Этот раздел отделяет текущий CLI-контракт от возможностей, которые потребуют
|
|
174
|
+
отдельного проектирования и изменения документации.
|
|
175
|
+
|
|
176
|
+
Реализованные команды с side effects являются текущим CLI-контрактом и по
|
|
177
|
+
умолчанию требуют явный `--confirm` через
|
|
178
|
+
`defaultConfig.requireSideEffectConfirmation`. CLI не генерирует idempotency
|
|
179
|
+
keys автоматически:
|
|
180
|
+
`order place` принимает `--order-id`, а `order replace` принимает
|
|
181
|
+
`--idempotency-key`.
|
|
182
|
+
|
|
183
|
+
`sandbox pay-in` принимает `--currency=rub|usd`. Неизвестные currency
|
|
184
|
+
значения отклоняются CLI parser-ом, а `--currency=usd` завершается ошибкой как
|
|
185
|
+
явно неподдержанный provider-кейс.
|
|
186
|
+
|
|
187
|
+
Stream API вводится отдельно от unary CLI-команд через utility-команду
|
|
188
|
+
`stream run --config=PATH`. CLI-контракт для долгоживущих подписок, завершения
|
|
189
|
+
процесса и формата событий описан в
|
|
190
|
+
[справочнике потокового CLI](../cli-stream-reference.md) и
|
|
191
|
+
[справочнике его конфигурации](../cli-stream-configuration.md).
|
|
192
|
+
|
|
193
|
+
Текущая реализация поддерживает server-side streams и статический initial
|
|
194
|
+
request contract для bidirectional market data stream:
|
|
195
|
+
|
|
196
|
+
- `sdk.marketdataStream.marketDataStream`;
|
|
197
|
+
- `sdk.marketdataStream.marketDataServerSideStream`;
|
|
198
|
+
- `sdk.operationsStream.portfolioStream`;
|
|
199
|
+
- `sdk.operationsStream.positionsStream`;
|
|
200
|
+
- `sdk.ordersStream.tradesStream`.
|
|
201
|
+
|
|
202
|
+
Динамические bidirectional request sources остаются отложенным API-контрактом.
|
|
203
|
+
|
|
204
|
+
Deprecated generated methods не вводятся как публичные CLI-команды:
|
|
205
|
+
|
|
206
|
+
- `sdk.instruments.options` - deprecated в generated contract; вместо него
|
|
207
|
+
используется `instrument option list` / `sdk.instruments.optionsBy`.
|
|
208
|
+
|
|
209
|
+
Перед расширением stream command нужно сверять поведение с этими
|
|
210
|
+
reference-документами и отдельно фиксировать любые изменения контракта.
|
|
211
|
+
|
|
212
|
+
Command flow объединяет несколько разных ответственностей:
|
|
213
|
+
|
|
214
|
+
1. runner и `icore` разбирают CLI args и валидируют primitive options по schema;
|
|
215
|
+
2. command handler выполняет API-specific validation и request mapping;
|
|
216
|
+
3. command handler создает `TInvestNodeSDK`;
|
|
217
|
+
4. command handler вызывает API method;
|
|
218
|
+
5. reporter преобразует unary response в stable report или stream event в
|
|
219
|
+
локальный контракт вывода команды;
|
|
220
|
+
6. reporter выбирает command-specific output и использует generic render
|
|
221
|
+
primitives, когда они подходят;
|
|
222
|
+
7. terminal app получает готовую строку или stream для вывода.
|
|
223
|
+
|
|
224
|
+
Если свести эти обязанности обратно в один command handler, command layer быстро
|
|
225
|
+
станет местом для любой логики вокруг CLI.
|
|
226
|
+
|
|
227
|
+
## Текущая Структура
|
|
228
|
+
|
|
229
|
+
```text
|
|
230
|
+
src/bootstrap
|
|
231
|
+
index.ts
|
|
232
|
+
args/
|
|
233
|
+
command-options.ts
|
|
234
|
+
instrument-id-options.ts
|
|
235
|
+
instruments-args.ts
|
|
236
|
+
side-effect-args.ts
|
|
237
|
+
cli/
|
|
238
|
+
contract.ts
|
|
239
|
+
error.ts
|
|
240
|
+
help.ts
|
|
241
|
+
registry.ts
|
|
242
|
+
runner.ts
|
|
243
|
+
commands/
|
|
244
|
+
<command-adapter>/
|
|
245
|
+
cli.ts
|
|
246
|
+
reporter.ts
|
|
247
|
+
|
|
248
|
+
src/infrastructure
|
|
249
|
+
interceptor/
|
|
250
|
+
report-values.ts
|
|
251
|
+
transport/grpc/
|
|
252
|
+
|
|
253
|
+
external dependency
|
|
254
|
+
icore
|
|
255
|
+
option/command mechanics
|
|
256
|
+
renderJson/renderCsv/renderCsvRow/renderTextTable
|
|
257
|
+
TerminalApp/Output
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
`cli.ts` сейчас отвечает за:
|
|
261
|
+
|
|
262
|
+
- объявление command path, declarative option schema и handler-а через локальный
|
|
263
|
+
command facade над `icore`;
|
|
264
|
+
- mapping typed command options в generated request DTO;
|
|
265
|
+
- API-specific validation, которая не выражается primitive schema;
|
|
266
|
+
- создание SDK facade;
|
|
267
|
+
- вызов API;
|
|
268
|
+
- закрытие SDK.
|
|
269
|
+
|
|
270
|
+
Логические CLI options используют синтаксис флагов `icore`: `--flag` и, если
|
|
271
|
+
команда поддерживает отрицательное переопределение, `--no-flag`. Формы со
|
|
272
|
+
значением `--flag=true` и `--flag=false` не входят в публичный CLI-контракт.
|
|
273
|
+
|
|
274
|
+
Внутри command module нужно различать parsing и request mapping:
|
|
275
|
+
|
|
276
|
+
```text
|
|
277
|
+
icore schema -> raw argv -> typed command options
|
|
278
|
+
parse* -> typed primitive value -> project-specific value
|
|
279
|
+
create*Request -> typed command options -> generated request DTO
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Command-local `parse*` helpers не должны повторно принимать raw option map:
|
|
283
|
+
format, enum и primitive schema validation принадлежат `icore`. Project-specific
|
|
284
|
+
helper допустим для преобразования отдельного typed значения, например
|
|
285
|
+
comma-separated списка. `create*Request` не принимает raw CLI args: он получает
|
|
286
|
+
typed options после `icore` и отвечает за generated request DTO shape и
|
|
287
|
+
request-level validation вроде date range или mutually exclusive modes.
|
|
288
|
+
|
|
289
|
+
`reporter.ts` сейчас отвечает за:
|
|
290
|
+
|
|
291
|
+
- mapping unary response в application report или stream event в command-local
|
|
292
|
+
output contract;
|
|
293
|
+
- выбор command-specific output contract;
|
|
294
|
+
- выбор полей, headers, порядка и подготовку значений для JSON/CSV/table output;
|
|
295
|
+
- вызов generic render primitives `icore`, когда они подходят формату.
|
|
296
|
+
|
|
297
|
+
`icore` сейчас предоставляет:
|
|
298
|
+
|
|
299
|
+
- primitive option parsing, typed schema validation и command mechanics;
|
|
300
|
+
- технические детали JSON, plain-text table и CSV rendering;
|
|
301
|
+
- `TerminalApp`/`Output.write` для штатной записи готовой строки или stream в
|
|
302
|
+
stdout;
|
|
303
|
+
- `Output.error` для warnings/errors в stderr.
|
|
304
|
+
|
|
305
|
+
Project CLI layer собирает terminal app, объявляет native short aliases,
|
|
306
|
+
передает compatible command paths как first-class aliases canonical definitions,
|
|
307
|
+
обслуживает help/version shortcuts и warnings, а project error policy определяет
|
|
308
|
+
текст ошибки и exit code.
|
|
309
|
+
|
|
310
|
+
Директории внутри `bootstrap/commands/*` сейчас остаются компактными именами
|
|
311
|
+
adapter-модулей. Они не задают публичный CLI path: публичный контракт команды
|
|
312
|
+
фиксируется в `bootstrap/cli/registry.ts` и `bootstrap/cli/help.ts`.
|
|
313
|
+
|
|
314
|
+
## Что Уже Хорошо
|
|
315
|
+
|
|
316
|
+
- primitive option validation выражена `icore` schemas, а reusable
|
|
317
|
+
project-specific normalizers отделены в `bootstrap/args`;
|
|
318
|
+
- raw CLI parsing отделен от typed generated request mapping;
|
|
319
|
+
- stable unary output shape вынесен в `application/reports`, а stream contract
|
|
320
|
+
зафиксирован отдельно;
|
|
321
|
+
- команды закрывают SDK в `finally`;
|
|
322
|
+
- formatting logic вынесена из `cli.ts`;
|
|
323
|
+
- JSON pretty-print, table alignment и CSV escaping не дублируются в command
|
|
324
|
+
reporter-ах;
|
|
325
|
+
- `stdout`/`stderr` delivery отделен от построения JSON/CSV/table.
|
|
326
|
+
|
|
327
|
+
## Текущая Проблема
|
|
328
|
+
|
|
329
|
+
`bootstrap` по смыслу должен быть composition/entrypoint layer:
|
|
330
|
+
|
|
331
|
+
```text
|
|
332
|
+
parse entrypoint -> assemble dependencies -> call command -> return status/output
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
В `bootstrap` остается command-specific presentation/adaptation logic:
|
|
336
|
+
|
|
337
|
+
```text
|
|
338
|
+
unary response -> stable report
|
|
339
|
+
stream event -> command-local output contract
|
|
340
|
+
report/event contract -> command-specific output values
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Это осознанный компактный вариант, близкий к Inventory. Риск появляется, если
|
|
344
|
+
generic primitives начнут использоваться как место выбора полей, redaction,
|
|
345
|
+
normalization или версионирования output конкретной команды. Обратный риск -
|
|
346
|
+
дублировать JSON/CSV/table механику в reporter-ах или создавать локальные
|
|
347
|
+
forwarding wrappers над `icore` без собственного контракта.
|
|
348
|
+
|
|
349
|
+
Подробные правила разделения command-specific formatting, generic render
|
|
350
|
+
primitives и stdout delivery описаны в
|
|
351
|
+
[Разделение форматирования и вывода в CLI](./cli-output-boundaries.md).
|
|
352
|
+
|
|
353
|
+
## Важное Разделение
|
|
354
|
+
|
|
355
|
+
Нужно различать три ответственности:
|
|
356
|
+
|
|
357
|
+
```text
|
|
358
|
+
application report/command-local event -> command-specific output values
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Это CLI adapter/presentation policy в command reporter-е.
|
|
362
|
+
|
|
363
|
+
```text
|
|
364
|
+
output values -> JSON/CSV/table string
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
Это generic format mechanics `icore`.
|
|
368
|
+
|
|
369
|
+
```text
|
|
370
|
+
string/AsyncIterable -> TerminalApp -> Output.write -> stdout
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Это normal output через `icore` facade, собранный project runner-ом.
|
|
374
|
+
|
|
375
|
+
```text
|
|
376
|
+
warnings/errors -> Output.error -> stderr
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Output boundary не должен знать, как строить JSON, CSV или table.
|
|
380
|
+
|
|
381
|
+
## Принятое Разделение
|
|
382
|
+
|
|
383
|
+
```text
|
|
384
|
+
src/bootstrap
|
|
385
|
+
index.ts
|
|
386
|
+
args/
|
|
387
|
+
command-options.ts
|
|
388
|
+
instrument-id-options.ts
|
|
389
|
+
instruments-args.ts
|
|
390
|
+
side-effect-args.ts
|
|
391
|
+
cli/
|
|
392
|
+
contract.ts
|
|
393
|
+
error.ts
|
|
394
|
+
registry.ts
|
|
395
|
+
runner.ts
|
|
396
|
+
commands/
|
|
397
|
+
<command-adapter>/
|
|
398
|
+
cli.ts
|
|
399
|
+
reporter.ts
|
|
400
|
+
|
|
401
|
+
src/infrastructure
|
|
402
|
+
report-values.ts
|
|
403
|
+
|
|
404
|
+
external dependency
|
|
405
|
+
icore
|
|
406
|
+
renderJson/renderCsv/renderCsvRow/renderTextTable
|
|
407
|
+
TerminalApp/Output
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
Граница:
|
|
411
|
+
|
|
412
|
+
- `bootstrap/commands/*/cli.ts` - command definition, API-specific mapping и SDK
|
|
413
|
+
lifecycle;
|
|
414
|
+
- `bootstrap/commands/*/reporter.ts` - provider result -> stable report или
|
|
415
|
+
локальный контракт события -> специализированный вывод CLI-команды;
|
|
416
|
+
- public render primitives `icore` - механика JSON/CSV-row/table rendering;
|
|
417
|
+
- `icore` `TerminalApp`/`Output.write`, собранные в
|
|
418
|
+
`bootstrap/cli/runner.ts`, - штатная запись готовой строки или stream в
|
|
419
|
+
stdout;
|
|
420
|
+
- `icore` `Output.error` - warnings/errors в stderr;
|
|
421
|
+
- `application/reports/**` - стабильные контракты вывода unary-команд.
|
|
422
|
+
|
|
423
|
+
## Когда Нужен Use-Case
|
|
424
|
+
|
|
425
|
+
Текущие API-команды тонкие: они вызывают один SDK method и форматируют результат.
|
|
426
|
+
Для таких команд отдельный use-case не обязателен.
|
|
427
|
+
|
|
428
|
+
Use-case стоит выделять, если появляется хотя бы одно:
|
|
429
|
+
|
|
430
|
+
- несколько API calls в одном сценарии;
|
|
431
|
+
- решение о retry/fallback/cache;
|
|
432
|
+
- сценарные ошибки и partial success;
|
|
433
|
+
- provider-neutral contract;
|
|
434
|
+
- reuse того же сценария вне CLI;
|
|
435
|
+
- тесты начинают мокать слишком много деталей SDK.
|
|
436
|
+
|
|
437
|
+
## Правило Для Новых Команд
|
|
438
|
+
|
|
439
|
+
- не добавлять новую formatting logic в `cli.ts`;
|
|
440
|
+
- держать command handler тонким;
|
|
441
|
+
- описывать stable unary output в `application/reports`, а специализированный
|
|
442
|
+
stream contract фиксировать отдельно;
|
|
443
|
+
- держать command-specific output policy в `bootstrap/commands/*/reporter.ts`;
|
|
444
|
+
- использовать public render primitives `icore` только для общей механики
|
|
445
|
+
формата;
|
|
446
|
+
- возвращать normal result terminal app и не переносить JSON/CSV/table policy в
|
|
447
|
+
output facade;
|
|
448
|
+
- регистрировать команду в `bootstrap/cli/registry.ts` в canonical форме
|
|
449
|
+
`<domain> <command>`;
|
|
450
|
+
- добавлять technical/legacy paths только через project alias inventory; registry
|
|
451
|
+
передаст их в `aliases` canonical definition;
|
|
452
|
+
- не добавлять short option aliases для API-команд;
|
|
453
|
+
- добавлять help metadata в `bootstrap/cli/help.ts`;
|
|
454
|
+
- добавлять тесты рядом с конкретными файлами команды;
|
|
455
|
+
- не вводить общий command framework до появления реального повторения в
|
|
456
|
+
нескольких командах;
|
|
457
|
+
- сверять новые output-решения с
|
|
458
|
+
[Разделением форматирования и вывода в CLI](./cli-output-boundaries.md).
|
|
459
|
+
|
|
460
|
+
## Когда Обобщать Commands
|
|
461
|
+
|
|
462
|
+
Обобщение command lifecycle допустимо только после появления повторения с
|
|
463
|
+
одинаковой ответственностью.
|
|
464
|
+
|
|
465
|
+
До этого каждая команда остается явной:
|
|
466
|
+
|
|
467
|
+
```text
|
|
468
|
+
bootstrap/commands/<command-adapter>/cli.ts
|
|
469
|
+
bootstrap/commands/<command-adapter>/reporter.ts
|
|
470
|
+
application/reports/<command-adapter>.report.ts
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
Допустимые причины для extract-а:
|
|
474
|
+
|
|
475
|
+
- один и тот же SDK lifecycle повторяется в 3+ API-командах;
|
|
476
|
+
- одинаковый parsing/validation pattern больше не выражается существующими
|
|
477
|
+
`icore` option schemas;
|
|
478
|
+
- tests начинают дублировать setup без изменения сценария;
|
|
479
|
+
- общий код получает понятную ответственность и не скрывает command-specific
|
|
480
|
+
различия.
|
|
481
|
+
|
|
482
|
+
Недопустимые причины:
|
|
483
|
+
|
|
484
|
+
- будущий список команд неизвестен, поэтому хочется подготовить framework;
|
|
485
|
+
- две команды выглядят похожими внешне, но имеют разные request/report/output
|
|
486
|
+
правила;
|
|
487
|
+
- хочется сократить количество строк в `commands/*/cli.ts`.
|