@01.software/cli 0.7.1 → 0.8.0
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/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp/{chunk-3ZSKJM43.js → chunk-45ZCPS57.js} +340 -292
- package/dist/mcp/chunk-45ZCPS57.js.map +1 -0
- package/dist/mcp/http.js +261 -120
- package/dist/mcp/http.js.map +1 -1
- package/dist/mcp/stdio.js +1 -1
- package/dist/mcp/vercel.js +602 -415
- package/package.json +3 -3
- package/dist/mcp/chunk-3ZSKJM43.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -443,13 +443,11 @@ function isValidBearerToken(secret) {
|
|
|
443
443
|
function resolveClient(apiKeyFlag) {
|
|
444
444
|
let publishableKey = process.env.SOFTWARE_PUBLISHABLE_KEY;
|
|
445
445
|
let secretKey = apiKeyFlag ?? process.env.SOFTWARE_SECRET_KEY;
|
|
446
|
-
let tenantId;
|
|
447
446
|
if (!publishableKey || !secretKey) {
|
|
448
447
|
const local = loadLocalCredentials();
|
|
449
448
|
if (local) {
|
|
450
449
|
publishableKey = publishableKey ?? local.publishableKey;
|
|
451
450
|
secretKey = secretKey ?? local.secretKey;
|
|
452
|
-
tenantId = tenantId ?? local.tenantId;
|
|
453
451
|
}
|
|
454
452
|
}
|
|
455
453
|
if (!publishableKey || !secretKey) {
|
|
@@ -457,7 +455,6 @@ function resolveClient(apiKeyFlag) {
|
|
|
457
455
|
if (stored) {
|
|
458
456
|
publishableKey = publishableKey ?? stored.publishableKey;
|
|
459
457
|
secretKey = secretKey ?? stored.secretKey;
|
|
460
|
-
tenantId = tenantId ?? stored.tenantId;
|
|
461
458
|
}
|
|
462
459
|
}
|
|
463
460
|
if (!publishableKey || !secretKey) {
|
|
@@ -484,15 +481,14 @@ function resolveClient(apiKeyFlag) {
|
|
|
484
481
|
}
|
|
485
482
|
});
|
|
486
483
|
}
|
|
487
|
-
const serverOptions = { publishableKey, secretKey
|
|
484
|
+
const serverOptions = { publishableKey, secretKey };
|
|
488
485
|
return {
|
|
489
486
|
collections: new CollectionClient(
|
|
490
487
|
publishableKey,
|
|
491
488
|
secretKey,
|
|
492
489
|
void 0,
|
|
493
490
|
void 0,
|
|
494
|
-
void 0
|
|
495
|
-
tenantId
|
|
491
|
+
void 0
|
|
496
492
|
),
|
|
497
493
|
commerce: new ServerCommerceClient(serverOptions),
|
|
498
494
|
publishableKey,
|