@backtest-kit/cli 7.5.0 → 7.7.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
@@ -738,6 +738,10 @@ class SetupUtils {
738
738
  {
739
739
  BacktestKit.Dump.useMarkdown();
740
740
  }
741
+ {
742
+ BacktestKit.SessionLive.usePersist();
743
+ BacktestKit.SessionBacktest.useLocal();
744
+ }
741
745
  {
742
746
  BacktestKit.StorageLive.usePersist();
743
747
  BacktestKit.StorageBacktest.useMemory();
@@ -805,6 +809,7 @@ class SetupUtils {
805
809
  BacktestKit.PersistMemoryAdapter.clear();
806
810
  BacktestKit.PersistRecentAdapter.clear();
807
811
  BacktestKit.PersistStateAdapter.clear();
812
+ BacktestKit.PersistSessionAdapter.clear();
808
813
  }
809
814
  {
810
815
  BacktestKit.Dump.clear();
@@ -996,7 +1001,7 @@ class WalkerMainService {
996
1001
  }
997
1002
  strategyMap.set(strategyName, entryPoint);
998
1003
  }
999
- sessionMap.set(entryPoint, BacktestKit.Session.createSnapshot());
1004
+ sessionMap.set(entryPoint, BacktestKit.System.createSnapshot());
1000
1005
  BacktestKit.Cache.resetCounter();
1001
1006
  BacktestKit.Interval.resetCounter();
1002
1007
  }
@@ -3009,7 +3014,7 @@ const main$e = async () => {
3009
3014
  if (MODES.some((mode) => values[mode])) {
3010
3015
  return;
3011
3016
  }
3012
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n`);
3017
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n`);
3013
3018
  process.stdout.write("\n");
3014
3019
  process.stdout.write(`Run with --help to see available commands.\n`);
3015
3020
  process.stdout.write("\n");
@@ -3788,7 +3793,7 @@ const main$1 = async () => {
3788
3793
  if (!values.help) {
3789
3794
  return;
3790
3795
  }
3791
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n\n`);
3796
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n\n`);
3792
3797
  process.stdout.write(HELP_TEXT);
3793
3798
  process.exit(0);
3794
3799
  };
@@ -3802,7 +3807,7 @@ const main = async () => {
3802
3807
  if (!values.version) {
3803
3808
  return;
3804
3809
  }
3805
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n`);
3810
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n`);
3806
3811
  process.exit(0);
3807
3812
  };
3808
3813
  main();
package/build/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import * as BacktestKit from 'backtest-kit';
3
- import { setConfig, Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, Notification, Recent, Storage, Markdown, Report, Dump, State, Memory, StorageLive, StorageBacktest, RecentLive, RecentBacktest, NotificationLive, NotificationBacktest, MemoryLive, MemoryBacktest, StateLive, StateBacktest, MarkdownWriter, ReportWriter, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, PersistStateAdapter, listStrategySchema, overrideExchangeSchema, Backtest, Session, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, listenSignalNotify, Exchange } from 'backtest-kit';
3
+ import { setConfig, Log, listExchangeSchema, addExchangeSchema, roundTicks, listFrameSchema, addFrameSchema, listenDoneLive, listenDoneBacktest, shutdown, listenSignal, Notification, Recent, Storage, Markdown, Report, Dump, State, Memory, SessionLive, SessionBacktest, StorageLive, StorageBacktest, RecentLive, RecentBacktest, NotificationLive, NotificationBacktest, MemoryLive, MemoryBacktest, StateLive, StateBacktest, MarkdownWriter, ReportWriter, PersistSignalAdapter, PersistRiskAdapter, PersistScheduleAdapter, PersistPartialAdapter, PersistBreakevenAdapter, PersistCandleAdapter, PersistStorageAdapter, PersistNotificationAdapter, PersistLogAdapter, PersistMeasureAdapter, PersistIntervalAdapter, PersistMemoryAdapter, PersistRecentAdapter, PersistStateAdapter, PersistSessionAdapter, listStrategySchema, overrideExchangeSchema, Backtest, System, Cache, Interval, alignToInterval, addWalkerSchema, overrideWalkerSchema, Walker, listenDoneWalker, Live, getCandles, checkCandles, warmCandles, listenRisk, listenStrategyCommit, listenSync, listenSignalNotify, Exchange } from 'backtest-kit';
4
4
  import { getErrorMessage, errorData, singleshot, str, BehaviorSubject, compose, createAwaiter, execpool, queued, sleep, randomString, TIMEOUT_SYMBOL, typo, retry, trycatch, memoize, isObject } from 'functools-kit';
5
5
  import fs, { constants } from 'fs';
6
6
  import * as stackTrace from 'stack-trace';
@@ -713,6 +713,10 @@ class SetupUtils {
713
713
  {
714
714
  Dump.useMarkdown();
715
715
  }
716
+ {
717
+ SessionLive.usePersist();
718
+ SessionBacktest.useLocal();
719
+ }
716
720
  {
717
721
  StorageLive.usePersist();
718
722
  StorageBacktest.useMemory();
@@ -780,6 +784,7 @@ class SetupUtils {
780
784
  PersistMemoryAdapter.clear();
781
785
  PersistRecentAdapter.clear();
782
786
  PersistStateAdapter.clear();
787
+ PersistSessionAdapter.clear();
783
788
  }
784
789
  {
785
790
  Dump.clear();
@@ -971,7 +976,7 @@ class WalkerMainService {
971
976
  }
972
977
  strategyMap.set(strategyName, entryPoint);
973
978
  }
974
- sessionMap.set(entryPoint, Session.createSnapshot());
979
+ sessionMap.set(entryPoint, System.createSnapshot());
975
980
  Cache.resetCounter();
976
981
  Interval.resetCounter();
977
982
  }
@@ -2980,7 +2985,7 @@ const main$e = async () => {
2980
2985
  if (MODES.some((mode) => values[mode])) {
2981
2986
  return;
2982
2987
  }
2983
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n`);
2988
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n`);
2984
2989
  process.stdout.write("\n");
2985
2990
  process.stdout.write(`Run with --help to see available commands.\n`);
2986
2991
  process.stdout.write("\n");
@@ -3759,7 +3764,7 @@ const main$1 = async () => {
3759
3764
  if (!values.help) {
3760
3765
  return;
3761
3766
  }
3762
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n\n`);
3767
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n\n`);
3763
3768
  process.stdout.write(HELP_TEXT);
3764
3769
  process.exit(0);
3765
3770
  };
@@ -3773,7 +3778,7 @@ const main = async () => {
3773
3778
  if (!values.version) {
3774
3779
  return;
3775
3780
  }
3776
- process.stdout.write(`@backtest-kit/cli ${"7.5.0"}\n`);
3781
+ process.stdout.write(`@backtest-kit/cli ${"7.7.0"}\n`);
3777
3782
  process.exit(0);
3778
3783
  };
3779
3784
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "7.5.0",
3
+ "version": "7.7.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",
@@ -62,11 +62,11 @@
62
62
  "devDependencies": {
63
63
  "@babel/plugin-transform-modules-umd": "7.27.1",
64
64
  "@babel/standalone": "7.29.1",
65
- "@backtest-kit/graph": "7.5.0",
66
- "@backtest-kit/ollama": "7.5.0",
67
- "@backtest-kit/pinets": "7.5.0",
68
- "@backtest-kit/signals": "7.5.0",
69
- "@backtest-kit/ui": "7.5.0",
65
+ "@backtest-kit/graph": "7.7.0",
66
+ "@backtest-kit/ollama": "7.7.0",
67
+ "@backtest-kit/pinets": "7.7.0",
68
+ "@backtest-kit/signals": "7.7.0",
69
+ "@backtest-kit/ui": "7.7.0",
70
70
  "@rollup/plugin-replace": "6.0.3",
71
71
  "@rollup/plugin-typescript": "11.1.6",
72
72
  "@types/image-size": "0.7.0",
@@ -74,7 +74,7 @@
74
74
  "@types/mustache": "4.2.6",
75
75
  "@types/node": "22.9.0",
76
76
  "@types/stack-trace": "0.0.33",
77
- "backtest-kit": "7.5.0",
77
+ "backtest-kit": "7.7.0",
78
78
  "glob": "11.0.1",
79
79
  "markdown-it": "14.1.1",
80
80
  "rimraf": "6.0.1",
@@ -89,12 +89,12 @@
89
89
  "peerDependencies": {
90
90
  "@babel/plugin-transform-modules-umd": "^7.27.1",
91
91
  "@babel/standalone": "^7.29.1",
92
- "@backtest-kit/graph": "^7.5.0",
93
- "@backtest-kit/ollama": "^7.5.0",
94
- "@backtest-kit/pinets": "^7.5.0",
95
- "@backtest-kit/signals": "^7.5.0",
96
- "@backtest-kit/ui": "^7.5.0",
97
- "backtest-kit": "^7.5.0",
92
+ "@backtest-kit/graph": "^7.7.0",
93
+ "@backtest-kit/ollama": "^7.7.0",
94
+ "@backtest-kit/pinets": "^7.7.0",
95
+ "@backtest-kit/signals": "^7.7.0",
96
+ "@backtest-kit/ui": "^7.7.0",
97
+ "backtest-kit": "^7.7.0",
98
98
  "markdown-it": "^14.1.1",
99
99
  "typescript": "^5.0.0"
100
100
  },
@@ -13,12 +13,12 @@
13
13
  "license": "ISC",
14
14
  "type": "commonjs",
15
15
  "dependencies": {
16
- "@backtest-kit/cli": "^7.5.0",
17
- "@backtest-kit/graph": "^7.5.0",
18
- "@backtest-kit/pinets": "^7.5.0",
19
- "@backtest-kit/ui": "^7.5.0",
16
+ "@backtest-kit/cli": "^7.7.0",
17
+ "@backtest-kit/graph": "^7.7.0",
18
+ "@backtest-kit/pinets": "^7.7.0",
19
+ "@backtest-kit/ui": "^7.7.0",
20
20
  "agent-swarm-kit": "^2.6.0",
21
- "backtest-kit": "^7.5.0",
21
+ "backtest-kit": "^7.7.0",
22
22
  "functools-kit": "^2.3.0",
23
23
  "garch": "^1.2.3",
24
24
  "get-moment-stamp": "^1.1.2",