@backtest-kit/cli 12.6.0 → 12.8.0

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
@@ -97,10 +97,16 @@ const getEntrySubject = functoolsKit.singleshot(() => {
97
97
  }
98
98
  return new functoolsKit.BehaviorSubject();
99
99
  });
100
+ const getReadySubject = functoolsKit.singleshot(() => {
101
+ return new functoolsKit.Subject();
102
+ });
100
103
 
101
104
  const main$i = () => {
102
105
  const entrySubject = getEntrySubject();
103
- entrySubject.subscribe((path) => console.log("Running", path));
106
+ entrySubject.subscribe(async (path) => {
107
+ console.log("Running", path);
108
+ await getReadySubject().next();
109
+ });
104
110
  };
105
111
  main$i();
106
112
 
@@ -1709,7 +1715,7 @@ class FrontendProviderService {
1709
1715
  if (!getArgs().values.ui) {
1710
1716
  return;
1711
1717
  }
1712
- return getEntrySubject().subscribe(CREATE_LISTEN_FN(this));
1718
+ return getReadySubject().subscribe(CREATE_LISTEN_FN(this));
1713
1719
  });
1714
1720
  }
1715
1721
  }
@@ -1745,7 +1751,7 @@ class TelegramProviderService {
1745
1751
  if (!getArgs().values.telegram) {
1746
1752
  return;
1747
1753
  }
1748
- return getEntrySubject().subscribe(this.enable);
1754
+ return getReadySubject().subscribe(this.enable);
1749
1755
  });
1750
1756
  }
1751
1757
  }
@@ -3390,7 +3396,7 @@ const main$h = async () => {
3390
3396
  if (MODES.some((mode) => values[mode])) {
3391
3397
  return;
3392
3398
  }
3393
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n`);
3399
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n`);
3394
3400
  process.stdout.write("\n");
3395
3401
  process.stdout.write(`Run with --help to see available commands.\n`);
3396
3402
  process.stdout.write("\n");
@@ -4696,7 +4702,7 @@ const main$1 = async () => {
4696
4702
  if (!values.help) {
4697
4703
  return;
4698
4704
  }
4699
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n\n`);
4705
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n\n`);
4700
4706
  process.stdout.write(HELP_TEXT);
4701
4707
  process.exit(0);
4702
4708
  };
@@ -4710,7 +4716,7 @@ const main = async () => {
4710
4716
  if (!values.version) {
4711
4717
  return;
4712
4718
  }
4713
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n`);
4719
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n`);
4714
4720
  process.exit(0);
4715
4721
  };
4716
4722
  main();
package/build/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import * as BacktestKit from 'backtest-kit';
3
3
  import { setConfig, emitters, Notification, Cron, Recent, Storage, Markdown, Report, Dump, State, Memory, MarkdownWriter, ReportWriter, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, PersistStateAdapter, PersistSessionAdapter, Log, StorageLive, StorageBacktest, NotificationLive, NotificationBacktest, RecentLive, RecentBacktest, Broker, SessionLive, SessionBacktest, MemoryLive, MemoryBacktest, StateLive, StateBacktest, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, listStrategySchema, overrideExchangeSchema, Backtest, System, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, listenSignalNotify, Exchange } from 'backtest-kit';
4
- import { singleshot, BehaviorSubject, getErrorMessage, errorData, str, compose, sleep, createAwaiter, execpool, queued, randomString, TIMEOUT_SYMBOL, typo, retry, trycatch, memoize, isObject } from 'functools-kit';
4
+ import { singleshot, BehaviorSubject, Subject, getErrorMessage, errorData, str, compose, sleep, createAwaiter, execpool, queued, randomString, TIMEOUT_SYMBOL, typo, retry, trycatch, memoize, isObject } from 'functools-kit';
5
5
  import fs, { constants, realpathSync } from 'fs';
6
6
  import * as stackTrace from 'stack-trace';
7
7
  import path, { join, resolve, dirname, basename, extname } from 'path';
@@ -72,10 +72,16 @@ const getEntrySubject = singleshot(() => {
72
72
  }
73
73
  return new BehaviorSubject();
74
74
  });
75
+ const getReadySubject = singleshot(() => {
76
+ return new Subject();
77
+ });
75
78
 
76
79
  const main$i = () => {
77
80
  const entrySubject = getEntrySubject();
78
- entrySubject.subscribe((path) => console.log("Running", path));
81
+ entrySubject.subscribe(async (path) => {
82
+ console.log("Running", path);
83
+ await getReadySubject().next();
84
+ });
79
85
  };
80
86
  main$i();
81
87
 
@@ -1684,7 +1690,7 @@ class FrontendProviderService {
1684
1690
  if (!getArgs().values.ui) {
1685
1691
  return;
1686
1692
  }
1687
- return getEntrySubject().subscribe(CREATE_LISTEN_FN(this));
1693
+ return getReadySubject().subscribe(CREATE_LISTEN_FN(this));
1688
1694
  });
1689
1695
  }
1690
1696
  }
@@ -1720,7 +1726,7 @@ class TelegramProviderService {
1720
1726
  if (!getArgs().values.telegram) {
1721
1727
  return;
1722
1728
  }
1723
- return getEntrySubject().subscribe(this.enable);
1729
+ return getReadySubject().subscribe(this.enable);
1724
1730
  });
1725
1731
  }
1726
1732
  }
@@ -3361,7 +3367,7 @@ const main$h = async () => {
3361
3367
  if (MODES.some((mode) => values[mode])) {
3362
3368
  return;
3363
3369
  }
3364
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n`);
3370
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n`);
3365
3371
  process.stdout.write("\n");
3366
3372
  process.stdout.write(`Run with --help to see available commands.\n`);
3367
3373
  process.stdout.write("\n");
@@ -4667,7 +4673,7 @@ const main$1 = async () => {
4667
4673
  if (!values.help) {
4668
4674
  return;
4669
4675
  }
4670
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n\n`);
4676
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n\n`);
4671
4677
  process.stdout.write(HELP_TEXT);
4672
4678
  process.exit(0);
4673
4679
  };
@@ -4681,7 +4687,7 @@ const main = async () => {
4681
4687
  if (!values.version) {
4682
4688
  return;
4683
4689
  }
4684
- process.stdout.write(`@backtest-kit/cli ${"12.6.0"}\n`);
4690
+ process.stdout.write(`@backtest-kit/cli ${"12.8.0"}\n`);
4685
4691
  process.exit(0);
4686
4692
  };
4687
4693
  main();
@@ -15,17 +15,17 @@
15
15
  "@types/node": "25.6.0"
16
16
  },
17
17
  "dependencies": {
18
- "@backtest-kit/cli": "12.6.0",
19
- "@backtest-kit/graph": "12.6.0",
20
- "@backtest-kit/pinets": "12.6.0",
21
- "@backtest-kit/signals": "12.6.0",
22
- "@backtest-kit/ui": "12.6.0",
18
+ "@backtest-kit/cli": "12.8.0",
19
+ "@backtest-kit/graph": "12.8.0",
20
+ "@backtest-kit/pinets": "12.8.0",
21
+ "@backtest-kit/signals": "12.8.0",
22
+ "@backtest-kit/ui": "12.8.0",
23
23
  "@tavily/core": "0.7.2",
24
24
  "@tensorflow/tfjs": "4.22.0",
25
25
  "@tensorflow/tfjs-backend-wasm": "4.22.0",
26
26
  "@tensorflow/tfjs-core": "4.22.0",
27
27
  "agent-swarm-kit": "2.7.0",
28
- "backtest-kit": "12.6.0",
28
+ "backtest-kit": "12.8.0",
29
29
  "dayjs": "1.11.20",
30
30
  "functools-kit": "2.3.0",
31
31
  "garch": "1.2.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "12.6.0",
3
+ "version": "12.8.0",
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",
@@ -63,11 +63,11 @@
63
63
  "devDependencies": {
64
64
  "@babel/plugin-transform-modules-umd": "7.27.1",
65
65
  "@babel/standalone": "7.29.1",
66
- "@backtest-kit/graph": "12.6.0",
67
- "@backtest-kit/ollama": "12.6.0",
68
- "@backtest-kit/pinets": "12.6.0",
69
- "@backtest-kit/signals": "12.6.0",
70
- "@backtest-kit/ui": "12.6.0",
66
+ "@backtest-kit/graph": "12.8.0",
67
+ "@backtest-kit/ollama": "12.8.0",
68
+ "@backtest-kit/pinets": "12.8.0",
69
+ "@backtest-kit/signals": "12.8.0",
70
+ "@backtest-kit/ui": "12.8.0",
71
71
  "@rollup/plugin-replace": "6.0.3",
72
72
  "@rollup/plugin-typescript": "11.1.6",
73
73
  "@types/image-size": "0.7.0",
@@ -75,7 +75,7 @@
75
75
  "@types/mustache": "4.2.6",
76
76
  "@types/node": "22.9.0",
77
77
  "@types/stack-trace": "0.0.33",
78
- "backtest-kit": "12.6.0",
78
+ "backtest-kit": "12.8.0",
79
79
  "glob": "11.0.1",
80
80
  "markdown-it": "14.1.1",
81
81
  "rimraf": "6.0.1",
@@ -90,12 +90,12 @@
90
90
  "peerDependencies": {
91
91
  "@babel/plugin-transform-modules-umd": "^7.27.1",
92
92
  "@babel/standalone": "^7.29.1",
93
- "@backtest-kit/graph": "^12.6.0",
94
- "@backtest-kit/ollama": "^12.6.0",
95
- "@backtest-kit/pinets": "^12.6.0",
96
- "@backtest-kit/signals": "^12.6.0",
97
- "@backtest-kit/ui": "^12.6.0",
98
- "backtest-kit": "^12.6.0",
93
+ "@backtest-kit/graph": "^12.8.0",
94
+ "@backtest-kit/ollama": "^12.8.0",
95
+ "@backtest-kit/pinets": "^12.8.0",
96
+ "@backtest-kit/signals": "^12.8.0",
97
+ "@backtest-kit/ui": "^12.8.0",
98
+ "backtest-kit": "^12.8.0",
99
99
  "markdown-it": "^14.1.1",
100
100
  "typescript": "^5.0.0"
101
101
  },
@@ -13,12 +13,12 @@
13
13
  "license": "ISC",
14
14
  "type": "commonjs",
15
15
  "dependencies": {
16
- "@backtest-kit/cli": "^12.6.0",
17
- "@backtest-kit/graph": "^12.6.0",
18
- "@backtest-kit/pinets": "^12.6.0",
19
- "@backtest-kit/ui": "^12.6.0",
16
+ "@backtest-kit/cli": "^12.8.0",
17
+ "@backtest-kit/graph": "^12.8.0",
18
+ "@backtest-kit/pinets": "^12.8.0",
19
+ "@backtest-kit/ui": "^12.8.0",
20
20
  "agent-swarm-kit": "^2.7.0",
21
- "backtest-kit": "^12.6.0",
21
+ "backtest-kit": "^12.8.0",
22
22
  "functools-kit": "^2.3.0",
23
23
  "garch": "^1.2.3",
24
24
  "get-moment-stamp": "^2.0.0",