@backtest-kit/cli 3.4.1 → 3.4.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
@@ -1899,7 +1899,17 @@ class LiveProviderService {
1899
1899
  }
1900
1900
 
1901
1901
  standalone.registerPlugin("plugin-transform-modules-umd", pluginUMD);
1902
- const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
1902
+ const baseRequire = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
1903
+ const require$1 = new Proxy(baseRequire, {
1904
+ apply(_target, _this, args) {
1905
+ const id = args[0];
1906
+ if (id === "backtest-kit")
1907
+ return globalThis.BacktestKit;
1908
+ if (id === "@backtest-kit/cli")
1909
+ return globalThis.BacktestKitCli;
1910
+ return baseRequire(id);
1911
+ },
1912
+ });
1903
1913
  const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
1904
1914
  const __dirname$1 = path.dirname(__filename$1);
1905
1915
  const BacktestKitCli = new Proxy({}, {
@@ -1917,14 +1927,15 @@ class BabelService {
1917
1927
  filename: "index.ts",
1918
1928
  presets: ["env", "typescript"],
1919
1929
  plugins: [
1920
- "plugin-transform-modules-umd",
1921
- {
1922
- globals: {
1923
- "backtest-kit": "BacktestKit",
1924
- "@backtest-kit/cli": "BacktestKitCli",
1930
+ [
1931
+ "plugin-transform-modules-umd",
1932
+ {
1933
+ globals: {
1934
+ "backtest-kit": "BacktestKit",
1935
+ },
1936
+ moduleId: "Executor",
1925
1937
  },
1926
- moduleId: "Executor",
1927
- },
1938
+ ],
1928
1939
  ],
1929
1940
  parserOpts: { strictMode: false },
1930
1941
  });
package/build/index.mjs CHANGED
@@ -1877,7 +1877,17 @@ class LiveProviderService {
1877
1877
  }
1878
1878
 
1879
1879
  registerPlugin("plugin-transform-modules-umd", pluginUMD);
1880
- const require = createRequire(import.meta.url);
1880
+ const baseRequire = createRequire(import.meta.url);
1881
+ const require = new Proxy(baseRequire, {
1882
+ apply(_target, _this, args) {
1883
+ const id = args[0];
1884
+ if (id === "backtest-kit")
1885
+ return globalThis.BacktestKit;
1886
+ if (id === "@backtest-kit/cli")
1887
+ return globalThis.BacktestKitCli;
1888
+ return baseRequire(id);
1889
+ },
1890
+ });
1881
1891
  const __filename = fileURLToPath(import.meta.url);
1882
1892
  const __dirname = path.dirname(__filename);
1883
1893
  const BacktestKitCli = new Proxy({}, {
@@ -1895,14 +1905,15 @@ class BabelService {
1895
1905
  filename: "index.ts",
1896
1906
  presets: ["env", "typescript"],
1897
1907
  plugins: [
1898
- "plugin-transform-modules-umd",
1899
- {
1900
- globals: {
1901
- "backtest-kit": "BacktestKit",
1902
- "@backtest-kit/cli": "BacktestKitCli",
1908
+ [
1909
+ "plugin-transform-modules-umd",
1910
+ {
1911
+ globals: {
1912
+ "backtest-kit": "BacktestKit",
1913
+ },
1914
+ moduleId: "Executor",
1903
1915
  },
1904
- moduleId: "Executor",
1905
- },
1916
+ ],
1906
1917
  ],
1907
1918
  parserOpts: { strictMode: false },
1908
1919
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backtest-kit/cli",
3
- "version": "3.4.1",
3
+ "version": "3.4.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",