@mtaap/mcp 0.2.8 → 0.2.10
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 +16 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -162,12 +162,19 @@ var VALID_TRANSITIONS = {
|
|
|
162
162
|
[TaskState.DONE]: []
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
+
// ../../packages/core/dist/config/deployment.js
|
|
166
|
+
var config = {
|
|
167
|
+
deploymentMode: process.env.DEPLOYMENT_MODE || "saas"
|
|
168
|
+
};
|
|
169
|
+
var isSaas = config.deploymentMode === "saas";
|
|
170
|
+
var isOnPrem = config.deploymentMode === "onprem";
|
|
171
|
+
|
|
165
172
|
// ../../packages/core/dist/version.js
|
|
166
173
|
var VERSION2 = "0.1.0";
|
|
167
174
|
|
|
168
175
|
// ../../packages/core/dist/config/index.js
|
|
169
176
|
var DEPLOYMENT_MODE = process.env.DEPLOYMENT_MODE || "saas";
|
|
170
|
-
var
|
|
177
|
+
var config2 = {
|
|
171
178
|
version: VERSION2,
|
|
172
179
|
deploymentMode: DEPLOYMENT_MODE,
|
|
173
180
|
billing: {
|
|
@@ -252,9 +259,9 @@ var config = {
|
|
|
252
259
|
}
|
|
253
260
|
};
|
|
254
261
|
var DEFAULT_SEAT_LIMITS = {
|
|
255
|
-
[PricingTier.FREE]:
|
|
256
|
-
[PricingTier.PRO]:
|
|
257
|
-
[PricingTier.ENTERPRISE]:
|
|
262
|
+
[PricingTier.FREE]: config2.pricing.defaultSeats.FREE,
|
|
263
|
+
[PricingTier.PRO]: config2.pricing.defaultSeats.PRO,
|
|
264
|
+
[PricingTier.ENTERPRISE]: config2.pricing.defaultSeats.ENTERPRISE
|
|
258
265
|
};
|
|
259
266
|
|
|
260
267
|
// ../../packages/core/dist/types/index.js
|
|
@@ -963,11 +970,11 @@ var MCPApiClient = class {
|
|
|
963
970
|
timeout;
|
|
964
971
|
debug;
|
|
965
972
|
authContext = null;
|
|
966
|
-
constructor(
|
|
967
|
-
this.baseUrl =
|
|
968
|
-
this.apiKey =
|
|
969
|
-
this.timeout =
|
|
970
|
-
this.debug =
|
|
973
|
+
constructor(config3) {
|
|
974
|
+
this.baseUrl = config3.baseUrl.replace(/\/$/, "");
|
|
975
|
+
this.apiKey = config3.apiKey;
|
|
976
|
+
this.timeout = config3.timeout ?? DEFAULT_TIMEOUT;
|
|
977
|
+
this.debug = config3.debug ?? false;
|
|
971
978
|
}
|
|
972
979
|
/**
|
|
973
980
|
* Make an HTTP request to the API
|