@backtest-kit/cli 8.4.1 → 8.4.2
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 +5 -4
- package/build/index.mjs +6 -5
- package/docker/package.json +1 -1
- package/package.json +1 -1
- package/template/project/package.mustache +1 -1
package/build/index.cjs
CHANGED
|
@@ -678,7 +678,8 @@ const notifyFinish = functoolsKit.singleshot(() => {
|
|
|
678
678
|
|
|
679
679
|
const getEntry = (metaUrl) => {
|
|
680
680
|
const metaPath = url.fileURLToPath(metaUrl);
|
|
681
|
-
|
|
681
|
+
const realArgv = fs.realpathSync(process.argv[1]);
|
|
682
|
+
return path.resolve(realArgv) === path.resolve(metaPath);
|
|
682
683
|
};
|
|
683
684
|
|
|
684
685
|
const notifyVerbose = functoolsKit.singleshot(() => {
|
|
@@ -3026,7 +3027,7 @@ const main$f = async () => {
|
|
|
3026
3027
|
if (MODES.some((mode) => values[mode])) {
|
|
3027
3028
|
return;
|
|
3028
3029
|
}
|
|
3029
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3030
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n`);
|
|
3030
3031
|
process.stdout.write("\n");
|
|
3031
3032
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
3032
3033
|
process.stdout.write("\n");
|
|
@@ -3907,7 +3908,7 @@ const main$1 = async () => {
|
|
|
3907
3908
|
if (!values.help) {
|
|
3908
3909
|
return;
|
|
3909
3910
|
}
|
|
3910
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3911
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n\n`);
|
|
3911
3912
|
process.stdout.write(HELP_TEXT);
|
|
3912
3913
|
process.exit(0);
|
|
3913
3914
|
};
|
|
@@ -3921,7 +3922,7 @@ const main = async () => {
|
|
|
3921
3922
|
if (!values.version) {
|
|
3922
3923
|
return;
|
|
3923
3924
|
}
|
|
3924
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3925
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n`);
|
|
3925
3926
|
process.exit(0);
|
|
3926
3927
|
};
|
|
3927
3928
|
main();
|
package/build/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as BacktestKit from 'backtest-kit';
|
|
3
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
|
-
import fs, { constants } from 'fs';
|
|
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';
|
|
8
8
|
import fs$1, { access, readFile, mkdir, writeFile, rm, readdir, copyFile } from 'fs/promises';
|
|
@@ -653,7 +653,8 @@ const notifyFinish = singleshot(() => {
|
|
|
653
653
|
|
|
654
654
|
const getEntry = (metaUrl) => {
|
|
655
655
|
const metaPath = fileURLToPath(metaUrl);
|
|
656
|
-
|
|
656
|
+
const realArgv = realpathSync(process.argv[1]);
|
|
657
|
+
return path.resolve(realArgv) === path.resolve(metaPath);
|
|
657
658
|
};
|
|
658
659
|
|
|
659
660
|
const notifyVerbose = singleshot(() => {
|
|
@@ -2997,7 +2998,7 @@ const main$f = async () => {
|
|
|
2997
2998
|
if (MODES.some((mode) => values[mode])) {
|
|
2998
2999
|
return;
|
|
2999
3000
|
}
|
|
3000
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3001
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n`);
|
|
3001
3002
|
process.stdout.write("\n");
|
|
3002
3003
|
process.stdout.write(`Run with --help to see available commands.\n`);
|
|
3003
3004
|
process.stdout.write("\n");
|
|
@@ -3878,7 +3879,7 @@ const main$1 = async () => {
|
|
|
3878
3879
|
if (!values.help) {
|
|
3879
3880
|
return;
|
|
3880
3881
|
}
|
|
3881
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3882
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n\n`);
|
|
3882
3883
|
process.stdout.write(HELP_TEXT);
|
|
3883
3884
|
process.exit(0);
|
|
3884
3885
|
};
|
|
@@ -3892,7 +3893,7 @@ const main = async () => {
|
|
|
3892
3893
|
if (!values.version) {
|
|
3893
3894
|
return;
|
|
3894
3895
|
}
|
|
3895
|
-
process.stdout.write(`@backtest-kit/cli ${"8.4.
|
|
3896
|
+
process.stdout.write(`@backtest-kit/cli ${"8.4.2"}\n`);
|
|
3896
3897
|
process.exit(0);
|
|
3897
3898
|
};
|
|
3898
3899
|
main();
|
package/docker/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2",
|
|
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",
|