@hasna/connectors 0.3.15 → 0.3.16
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/bin/index.js
CHANGED
|
@@ -6833,7 +6833,7 @@ var PRESETS = {
|
|
|
6833
6833
|
commerce: { description: "Commerce and finance", connectors: ["stripe", "shopify", "revolut", "mercury", "pandadoc"] }
|
|
6834
6834
|
};
|
|
6835
6835
|
var program2 = new Command;
|
|
6836
|
-
program2.name("connectors").description("Install API connectors for your project").version("0.3.
|
|
6836
|
+
program2.name("connectors").description("Install API connectors for your project").version("0.3.16").enablePositionalOptions();
|
|
6837
6837
|
program2.command("interactive", { isDefault: true }).alias("i").description("Interactive connector browser").action(() => {
|
|
6838
6838
|
if (!isTTY) {
|
|
6839
6839
|
console.log(`Non-interactive environment detected. Use a subcommand:
|
package/bin/mcp.js
CHANGED
|
@@ -20315,7 +20315,7 @@ async function getConnectorCommandHelp(name, command) {
|
|
|
20315
20315
|
loadConnectorVersions();
|
|
20316
20316
|
var server = new McpServer({
|
|
20317
20317
|
name: "connectors",
|
|
20318
|
-
version: "0.3.
|
|
20318
|
+
version: "0.3.16"
|
|
20319
20319
|
});
|
|
20320
20320
|
server.registerTool("search_connectors", {
|
|
20321
20321
|
title: "Search Connectors",
|
|
@@ -173,7 +173,10 @@ export function loadProfile(profile?: string): ProfileConfig {
|
|
|
173
173
|
const tokens = JSON.parse(readFileSync(tokensPath, 'utf-8'));
|
|
174
174
|
if (tokens.accessToken && !config.accessToken) config.accessToken = tokens.accessToken;
|
|
175
175
|
if (tokens.refreshToken && !config.refreshToken) config.refreshToken = tokens.refreshToken;
|
|
176
|
-
if (tokens.expiresAt
|
|
176
|
+
if (tokens.expiresAt) {
|
|
177
|
+
if (!config.expiresAt) config.expiresAt = tokens.expiresAt;
|
|
178
|
+
if (!config.tokenExpiry) config.tokenExpiry = tokens.expiresAt;
|
|
179
|
+
}
|
|
177
180
|
} catch {}
|
|
178
181
|
}
|
|
179
182
|
|