@tradejs/node 2.0.4 → 2.0.6
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/dist/ai.mjs +1 -1
- package/dist/backtest.mjs +1 -1
- package/dist/{chunk-KZDHZ56N.mjs → chunk-GPR56UYQ.mjs} +1 -1
- package/dist/{chunk-H6LIYHU4.mjs → chunk-IQKMII6L.mjs} +1 -1
- package/dist/{chunk-6DZX6EAA.mjs → chunk-UV2HVMKZ.mjs} +5 -1
- package/dist/cli.js +6 -2
- package/dist/cli.mjs +3 -3
- package/dist/connectors.mjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/pine.mjs +2 -2
- package/dist/registry.mjs +1 -1
- package/dist/strategies.js +5 -1
- package/dist/strategies.mjs +3 -3
- package/package.json +9 -9
package/dist/ai.mjs
CHANGED
package/dist/backtest.mjs
CHANGED
|
@@ -11,7 +11,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
throw mod = 0, e;
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -7274,7 +7278,7 @@ var screenDashboard = async (signal, projectRoot, userName = "root") => {
|
|
|
7274
7278
|
"screenshot page error: %s %sm (%s)",
|
|
7275
7279
|
symbol,
|
|
7276
7280
|
interval,
|
|
7277
|
-
error.message
|
|
7281
|
+
error instanceof Error ? error.message : String(error)
|
|
7278
7282
|
);
|
|
7279
7283
|
});
|
|
7280
7284
|
page.on("error", (error) => {
|
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-KMJQQ53K.mjs";
|
|
6
6
|
import {
|
|
7
7
|
require_lodash
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GPR56UYQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
askAI
|
|
11
11
|
} from "./chunk-IUZML4RK.mjs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-WS5DYEVZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UV2HVMKZ.mjs";
|
|
20
20
|
|
|
21
21
|
// src/cli.ts
|
|
22
22
|
var import_lodash = __toESM(require_lodash());
|
|
@@ -277,7 +277,7 @@ var screenDashboard = async (signal, projectRoot, userName = "root") => {
|
|
|
277
277
|
"screenshot page error: %s %sm (%s)",
|
|
278
278
|
symbol,
|
|
279
279
|
interval,
|
|
280
|
-
error.message
|
|
280
|
+
error instanceof Error ? error.message : String(error)
|
|
281
281
|
);
|
|
282
282
|
});
|
|
283
283
|
page.on("error", (error) => {
|
package/dist/connectors.mjs
CHANGED
package/dist/constants.mjs
CHANGED
package/dist/pine.mjs
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
runPineScript,
|
|
11
11
|
toFiniteNumber,
|
|
12
12
|
toPineBoolean
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-IQKMII6L.mjs";
|
|
14
|
+
import "./chunk-UV2HVMKZ.mjs";
|
|
15
15
|
export {
|
|
16
16
|
createPineScriptLoader,
|
|
17
17
|
getLatestPineBooleanPlotValue,
|
package/dist/registry.mjs
CHANGED
package/dist/strategies.js
CHANGED
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
package/dist/strategies.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-2DZCHRP6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
require_lodash
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GPR56UYQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_AI_MODEL,
|
|
12
12
|
MAX_AI_SERIES_POINTS,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-IUZML4RK.mjs";
|
|
28
28
|
import {
|
|
29
29
|
createPineScriptLoader
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IQKMII6L.mjs";
|
|
31
31
|
import "./chunk-5YNMSWL3.mjs";
|
|
32
32
|
import {
|
|
33
33
|
ensureIndicatorPluginsLoaded,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-WS5DYEVZ.mjs";
|
|
49
49
|
import {
|
|
50
50
|
__toESM
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UV2HVMKZ.mjs";
|
|
52
52
|
|
|
53
53
|
// src/strategies.ts
|
|
54
54
|
export * from "@tradejs/core/strategies";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/node",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Node-only runtime for the TradeJS TypeScript framework: strategies, backtests, Pine strategy loading, and plugin registries.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tradejs",
|
|
@@ -65,23 +65,23 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@langchain/core": "^1.
|
|
69
|
-
"@langchain/openai": "^1.
|
|
70
|
-
"@tradejs/core": "^2.0.
|
|
71
|
-
"@tradejs/infra": "^2.0.
|
|
72
|
-
"@tradejs/types": "^2.0.
|
|
68
|
+
"@langchain/core": "^1.2.3",
|
|
69
|
+
"@langchain/openai": "^1.5.5",
|
|
70
|
+
"@tradejs/core": "^2.0.6",
|
|
71
|
+
"@tradejs/infra": "^2.0.6",
|
|
72
|
+
"@tradejs/types": "^2.0.6",
|
|
73
73
|
"chalk": "4.1.2",
|
|
74
|
-
"ioredis": "5.
|
|
74
|
+
"ioredis": "5.11.1",
|
|
75
75
|
"pinets": "0.8.12",
|
|
76
76
|
"progress": "^2.0.3",
|
|
77
|
-
"puppeteer": "24.
|
|
77
|
+
"puppeteer": "24.43.1",
|
|
78
78
|
"ts-node": "^10.9.2",
|
|
79
79
|
"tsconfig-paths": "^4.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/node": "^24",
|
|
83
83
|
"tsup": "^8.5.1",
|
|
84
|
-
"typescript": "^5.
|
|
84
|
+
"typescript": "^5.9"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build": "tsup",
|