@backtest-kit/cli 6.1.2 → 6.1.3

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/build/index.cjs CHANGED
@@ -2215,6 +2215,21 @@ const cli = {
2215
2215
  };
2216
2216
  init();
2217
2217
 
2218
+ const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
2219
+ const main$a = async () => {
2220
+ if (!getEntry((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))) {
2221
+ return;
2222
+ }
2223
+ const { values } = getArgs();
2224
+ if (MODES.some((mode) => values[mode])) {
2225
+ return;
2226
+ }
2227
+ process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
2228
+ process.stdout.write(`Run with --help to see available commands.\n`);
2229
+ process.exit(0);
2230
+ };
2231
+ main$a();
2232
+
2218
2233
  const notifyShutdown = functoolsKit.singleshot(async () => {
2219
2234
  console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
2220
2235
  });
package/build/index.mjs CHANGED
@@ -2186,6 +2186,21 @@ const cli = {
2186
2186
  };
2187
2187
  init();
2188
2188
 
2189
+ const MODES = ["backtest", "paper", "live", "pine", "dump", "init", "help", "version"];
2190
+ const main$a = async () => {
2191
+ if (!getEntry(import.meta.url)) {
2192
+ return;
2193
+ }
2194
+ const { values } = getArgs();
2195
+ if (MODES.some((mode) => values[mode])) {
2196
+ return;
2197
+ }
2198
+ process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
2199
+ process.stdout.write(`Run with --help to see available commands.\n`);
2200
+ process.exit(0);
2201
+ };
2202
+ main$a();
2203
+
2189
2204
  const notifyShutdown = singleshot(async () => {
2190
2205
  console.log("Graceful shutdown initiated. Press Ctrl+C again to force quit.");
2191
2206
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Zero-boilerplate CLI runner for backtest-kit strategies. Run backtests, paper trading, and live bots with candle cache warming, web dashboard, and Telegram notifications — no setup code required.",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -12,7 +12,7 @@
12
12
  "license": "ISC",
13
13
  "type": "commonjs",
14
14
  "dependencies": {
15
- "@backtest-kit/cli": "^6.1.2",
15
+ "@backtest-kit/cli": "^6.1.3",
16
16
  "@backtest-kit/graph": "^6.1.1",
17
17
  "@backtest-kit/pinets": "^6.1.1",
18
18
  "@backtest-kit/ui": "^6.1.1",