@backtest-kit/cli 6.1.1 → 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 +16 -1
- package/build/index.mjs +16 -1
- package/package.json +1 -1
- package/template/project/package.mustache +5 -5
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
|
});
|
|
@@ -2722,7 +2737,7 @@ const main = async () => {
|
|
|
2722
2737
|
if (!values.version) {
|
|
2723
2738
|
return;
|
|
2724
2739
|
}
|
|
2725
|
-
process.stdout.write(`@backtest-kit/cli ${"6.1.
|
|
2740
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2726
2741
|
process.exit(0);
|
|
2727
2742
|
};
|
|
2728
2743
|
main();
|
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
|
});
|
|
@@ -2693,7 +2708,7 @@ const main = async () => {
|
|
|
2693
2708
|
if (!values.version) {
|
|
2694
2709
|
return;
|
|
2695
2710
|
}
|
|
2696
|
-
process.stdout.write(`@backtest-kit/cli ${"6.1.
|
|
2711
|
+
process.stdout.write(`@backtest-kit/cli ${"6.1.1"}\n`);
|
|
2697
2712
|
process.exit(0);
|
|
2698
2713
|
};
|
|
2699
2714
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backtest-kit/cli",
|
|
3
|
-
"version": "6.1.
|
|
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,12 +12,12 @@
|
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"type": "commonjs",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@backtest-kit/cli": "^6.
|
|
16
|
-
"@backtest-kit/graph": "^6.
|
|
17
|
-
"@backtest-kit/pinets": "^6.
|
|
18
|
-
"@backtest-kit/ui": "^6.
|
|
15
|
+
"@backtest-kit/cli": "^6.1.3",
|
|
16
|
+
"@backtest-kit/graph": "^6.1.1",
|
|
17
|
+
"@backtest-kit/pinets": "^6.1.1",
|
|
18
|
+
"@backtest-kit/ui": "^6.1.1",
|
|
19
19
|
"agent-swarm-kit": "^1.3.0",
|
|
20
|
-
"backtest-kit": "^6.
|
|
20
|
+
"backtest-kit": "^6.1.1",
|
|
21
21
|
"functools-kit": "^1.0.95",
|
|
22
22
|
"garch": "^1.2.3",
|
|
23
23
|
"get-moment-stamp": "^1.1.2",
|