@tradejs/cli 3.1.4 → 3.1.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/cli.js +8 -2
- package/dist/scripts/runtimeConfig.js +8 -1
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -28090,9 +28090,10 @@ __export(runtimeConfig_exports, {
|
|
|
28090
28090
|
isEquivalentRuntimeStrategyRelease: () => isEquivalentRuntimeStrategyRelease,
|
|
28091
28091
|
main: () => main37,
|
|
28092
28092
|
pointRuntimeDeploymentAtRelease: () => pointRuntimeDeploymentAtRelease,
|
|
28093
|
+
resolveProvisionConnectorName: () => resolveProvisionConnectorName,
|
|
28093
28094
|
runtimeConfig: () => runtimeConfig
|
|
28094
28095
|
});
|
|
28095
|
-
var import_config9, import_promises28, import_node_path23, import_node_util2, import_runtimeDeployments2, import_runtimeStrategyReleases, import_runtimeStrategies, import_strategies11, argv, RUNTIME_CONFIG_ACTIONS, action, option, hasFlag, required2, projectRoot12, userName2, OPERATIONAL_CONFIG_KEYS, requireRuntimePackageIdentity, toReleaseConfig, publish, buildProvisionedRuntimeDeployment, isEquivalentRuntimeStrategyRelease, pointRuntimeDeploymentAtRelease, provision, rollout, updateControlState, rollback, verify, inspect, runtimeConfig, main37;
|
|
28096
|
+
var import_config9, import_promises28, import_node_path23, import_node_util2, import_runtimeDeployments2, import_runtimeStrategyReleases, import_runtimeStrategies, import_strategies11, argv, RUNTIME_CONFIG_ACTIONS, action, option, hasFlag, required2, projectRoot12, userName2, OPERATIONAL_CONFIG_KEYS, resolveProvisionConnectorName, requireRuntimePackageIdentity, toReleaseConfig, publish, buildProvisionedRuntimeDeployment, isEquivalentRuntimeStrategyRelease, pointRuntimeDeploymentAtRelease, provision, rollout, updateControlState, rollback, verify, inspect, runtimeConfig, main37;
|
|
28096
28097
|
var init_runtimeConfig = __esm({
|
|
28097
28098
|
"src/scripts/runtimeConfig.ts"() {
|
|
28098
28099
|
"use strict";
|
|
@@ -28136,6 +28137,11 @@ var init_runtimeConfig = __esm({
|
|
|
28136
28137
|
"MAKE_ORDERS",
|
|
28137
28138
|
"RECORD_RUNTIME_TRADES"
|
|
28138
28139
|
];
|
|
28140
|
+
resolveProvisionConnectorName = (value) => {
|
|
28141
|
+
const connectorName = String(value ?? "").trim();
|
|
28142
|
+
if (!connectorName) throw new Error("--connector is required");
|
|
28143
|
+
return connectorName;
|
|
28144
|
+
};
|
|
28139
28145
|
requireRuntimePackageIdentity = (strategyName, metadata) => {
|
|
28140
28146
|
if (!metadata.strategyPackage || !metadata.strategyPackageVersion || !metadata.runtimePackageVersion) {
|
|
28141
28147
|
throw new Error(
|
|
@@ -28222,7 +28228,7 @@ var init_runtimeConfig = __esm({
|
|
|
28222
28228
|
const strategyName = required2("strategy");
|
|
28223
28229
|
const deploymentId = required2("deployment");
|
|
28224
28230
|
const accountId = required2("account");
|
|
28225
|
-
const connectorName = option("connector")
|
|
28231
|
+
const connectorName = resolveProvisionConnectorName(option("connector"));
|
|
28226
28232
|
const provider = option("provider") ?? connectorName;
|
|
28227
28233
|
const label = option("label") ?? deploymentId;
|
|
28228
28234
|
const configFile = import_node_path23.default.resolve(projectRoot12, required2("file"));
|
|
@@ -35,6 +35,7 @@ __export(runtimeConfig_exports, {
|
|
|
35
35
|
isEquivalentRuntimeStrategyRelease: () => isEquivalentRuntimeStrategyRelease,
|
|
36
36
|
main: () => main,
|
|
37
37
|
pointRuntimeDeploymentAtRelease: () => pointRuntimeDeploymentAtRelease,
|
|
38
|
+
resolveProvisionConnectorName: () => resolveProvisionConnectorName,
|
|
38
39
|
runtimeConfig: () => runtimeConfig
|
|
39
40
|
});
|
|
40
41
|
module.exports = __toCommonJS(runtimeConfig_exports);
|
|
@@ -78,6 +79,11 @@ var OPERATIONAL_CONFIG_KEYS = [
|
|
|
78
79
|
"MAKE_ORDERS",
|
|
79
80
|
"RECORD_RUNTIME_TRADES"
|
|
80
81
|
];
|
|
82
|
+
var resolveProvisionConnectorName = (value) => {
|
|
83
|
+
const connectorName = String(value ?? "").trim();
|
|
84
|
+
if (!connectorName) throw new Error("--connector is required");
|
|
85
|
+
return connectorName;
|
|
86
|
+
};
|
|
81
87
|
var requireRuntimePackageIdentity = (strategyName, metadata) => {
|
|
82
88
|
if (!metadata.strategyPackage || !metadata.strategyPackageVersion || !metadata.runtimePackageVersion) {
|
|
83
89
|
throw new Error(
|
|
@@ -164,7 +170,7 @@ var provision = async () => {
|
|
|
164
170
|
const strategyName = required("strategy");
|
|
165
171
|
const deploymentId = required("deployment");
|
|
166
172
|
const accountId = required("account");
|
|
167
|
-
const connectorName = option("connector")
|
|
173
|
+
const connectorName = resolveProvisionConnectorName(option("connector"));
|
|
168
174
|
const provider = option("provider") ?? connectorName;
|
|
169
175
|
const label = option("label") ?? deploymentId;
|
|
170
176
|
const configFile = import_node_path.default.resolve(projectRoot, required("file"));
|
|
@@ -416,5 +422,6 @@ var main = runtimeConfig;
|
|
|
416
422
|
isEquivalentRuntimeStrategyRelease,
|
|
417
423
|
main,
|
|
418
424
|
pointRuntimeDeploymentAtRelease,
|
|
425
|
+
resolveProvisionConnectorName,
|
|
419
426
|
runtimeConfig
|
|
420
427
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "Official CLI for the TradeJS TypeScript framework: infra setup, backtests, signals, bots, and ML workflows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tradejs",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"tradejs": "dist/cli.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tradejs/connectors": "^3.1.
|
|
36
|
-
"@tradejs/core": "^3.1.
|
|
37
|
-
"@tradejs/indicators": "^3.1.
|
|
38
|
-
"@tradejs/infra": "^3.1.
|
|
39
|
-
"@tradejs/node": "^3.1.
|
|
35
|
+
"@tradejs/connectors": "^3.1.6",
|
|
36
|
+
"@tradejs/core": "^3.1.6",
|
|
37
|
+
"@tradejs/indicators": "^3.1.6",
|
|
38
|
+
"@tradejs/infra": "^3.1.6",
|
|
39
|
+
"@tradejs/node": "^3.1.6",
|
|
40
40
|
"@tradejs/strategy-kit": "^3.0.0",
|
|
41
|
-
"@tradejs/types": "^3.1.
|
|
41
|
+
"@tradejs/types": "^3.1.6",
|
|
42
42
|
"args": "^5.0.3",
|
|
43
43
|
"bcryptjs": "^2.4.3",
|
|
44
44
|
"chalk": "4.1.2",
|