integrate-sdk 0.9.47-dev.0 → 0.9.48-dev.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/adapters/auto-routes.js +12 -0
- package/dist/adapters/base-handler.js +12 -0
- package/dist/adapters/index.js +99 -78
- package/dist/adapters/nextjs.js +12 -0
- package/dist/adapters/solid-start.js +99 -78
- package/dist/adapters/svelte-kit.js +99 -78
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +398 -241
- package/dist/oauth.js +12 -0
- package/dist/server.js +419 -261
- package/dist/src/client.d.ts +4 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/box-client.d.ts +83 -0
- package/dist/src/integrations/box-client.d.ts.map +1 -0
- package/dist/src/integrations/box.d.ts +22 -0
- package/dist/src/integrations/box.d.ts.map +1 -0
- package/dist/src/integrations/gkeep-client.d.ts +38 -0
- package/dist/src/integrations/gkeep-client.d.ts.map +1 -0
- package/dist/src/integrations/gkeep.d.ts +22 -0
- package/dist/src/integrations/gkeep.d.ts.map +1 -0
- package/dist/src/integrations/library-metadata.d.ts.map +1 -1
- package/dist/src/integrations/telegram-client.d.ts +46 -0
- package/dist/src/integrations/telegram-client.d.ts.map +1 -0
- package/dist/src/integrations/telegram.d.ts +19 -0
- package/dist/src/integrations/telegram.d.ts.map +1 -0
- package/dist/src/server.d.ts +3 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +4 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -148,6 +148,10 @@ var init_library_metadata = __esm(() => {
|
|
|
148
148
|
description: "Manage Google Tasks lists and to-dos",
|
|
149
149
|
category: "Productivity"
|
|
150
150
|
},
|
|
151
|
+
gkeep: {
|
|
152
|
+
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
153
|
+
category: "Productivity"
|
|
154
|
+
},
|
|
151
155
|
gmeet: {
|
|
152
156
|
description: "Create Google Meet links and manage meeting events via Calendar",
|
|
153
157
|
category: "Communication"
|
|
@@ -248,6 +252,10 @@ var init_library_metadata = __esm(() => {
|
|
|
248
252
|
description: "Send and manage Slack messages and channels",
|
|
249
253
|
category: "Communication"
|
|
250
254
|
},
|
|
255
|
+
telegram: {
|
|
256
|
+
description: "Use Telegram as an actual user account via MTProto sessions",
|
|
257
|
+
category: "Communication"
|
|
258
|
+
},
|
|
251
259
|
stripe: {
|
|
252
260
|
description: "Manage Stripe customers, payments, and subscriptions",
|
|
253
261
|
category: "Finance"
|
|
@@ -312,6 +320,10 @@ var init_library_metadata = __esm(() => {
|
|
|
312
320
|
description: "Manage Dropbox files, folders, and sharing",
|
|
313
321
|
category: "Storage"
|
|
314
322
|
},
|
|
323
|
+
box: {
|
|
324
|
+
description: "Manage Box files, folders, sharing, comments, search, and collaborations",
|
|
325
|
+
category: "Storage"
|
|
326
|
+
},
|
|
315
327
|
paper: {
|
|
316
328
|
description: "Create, update, and export Dropbox Paper documents",
|
|
317
329
|
category: "Productivity"
|
|
@@ -2623,7 +2635,7 @@ async function deliverWebhook(webhook, payload, timeoutMs) {
|
|
|
2623
2635
|
signal: controller.signal
|
|
2624
2636
|
});
|
|
2625
2637
|
if (!response.ok) {
|
|
2626
|
-
|
|
2638
|
+
logger94.warn(`Webhook delivery to ${webhook.url} returned ${response.status}`);
|
|
2627
2639
|
}
|
|
2628
2640
|
} finally {
|
|
2629
2641
|
clearTimeout(timeout);
|
|
@@ -2636,14 +2648,14 @@ async function deliverWebhooks(webhooks, payload, timeoutMs) {
|
|
|
2636
2648
|
for (let i = 0;i < results.length; i++) {
|
|
2637
2649
|
const result = results[i];
|
|
2638
2650
|
if (result.status === "rejected") {
|
|
2639
|
-
|
|
2651
|
+
logger94.warn(`Webhook delivery to ${webhooks[i].url} failed:`, result.reason);
|
|
2640
2652
|
}
|
|
2641
2653
|
}
|
|
2642
2654
|
}
|
|
2643
|
-
var
|
|
2655
|
+
var logger94;
|
|
2644
2656
|
var init_webhooks = __esm(() => {
|
|
2645
2657
|
init_logger();
|
|
2646
|
-
|
|
2658
|
+
logger94 = createLogger("Webhooks", "server");
|
|
2647
2659
|
});
|
|
2648
2660
|
|
|
2649
2661
|
// src/triggers/types.ts
|
|
@@ -2663,13 +2675,13 @@ async function executeTrigger(trigger, config, context) {
|
|
|
2663
2675
|
while (stepIndex < MAX_TRIGGER_STEPS) {
|
|
2664
2676
|
const stepValidation = validateStepLimit(stepIndex, MAX_TRIGGER_STEPS);
|
|
2665
2677
|
if (!stepValidation.valid) {
|
|
2666
|
-
|
|
2678
|
+
logger95.error(`[Trigger ${trigger.id}] ${stepValidation.error}`);
|
|
2667
2679
|
break;
|
|
2668
2680
|
}
|
|
2669
2681
|
const providerToken = await config.getProviderToken(currentProvider, undefined, context);
|
|
2670
2682
|
if (!providerToken) {
|
|
2671
2683
|
const error = `No OAuth token available for provider '${currentProvider}'`;
|
|
2672
|
-
|
|
2684
|
+
logger95.error(`[Trigger ${trigger.id}] ${error}`);
|
|
2673
2685
|
steps.push({
|
|
2674
2686
|
stepIndex,
|
|
2675
2687
|
toolName: currentToolName,
|
|
@@ -2695,7 +2707,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
2695
2707
|
} catch (err) {
|
|
2696
2708
|
stepSuccess = false;
|
|
2697
2709
|
stepError = err.message || "Tool execution failed";
|
|
2698
|
-
|
|
2710
|
+
logger95.error(`[Trigger ${trigger.id}] Step ${stepIndex} failed:`, err);
|
|
2699
2711
|
}
|
|
2700
2712
|
if (stepSuccess && toolResult) {
|
|
2701
2713
|
if (toolResult.isError === true) {
|
|
@@ -2788,7 +2800,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
2788
2800
|
return { success: steps.every((s) => s.success), steps, error: stepError };
|
|
2789
2801
|
}
|
|
2790
2802
|
const limitError = `Trigger execution exceeded maximum of ${MAX_TRIGGER_STEPS} steps`;
|
|
2791
|
-
|
|
2803
|
+
logger95.error(`[Trigger ${trigger.id}] ${limitError}`);
|
|
2792
2804
|
await config.triggers.update(trigger.id, {
|
|
2793
2805
|
lastRunAt: new Date().toISOString(),
|
|
2794
2806
|
runCount: (trigger.runCount || 0) + 1,
|
|
@@ -2797,12 +2809,12 @@ async function executeTrigger(trigger, config, context) {
|
|
|
2797
2809
|
}, context);
|
|
2798
2810
|
return { success: false, steps, error: limitError };
|
|
2799
2811
|
}
|
|
2800
|
-
var
|
|
2812
|
+
var logger95;
|
|
2801
2813
|
var init_executor2 = __esm(() => {
|
|
2802
2814
|
init_logger();
|
|
2803
2815
|
init_utils();
|
|
2804
2816
|
init_webhooks();
|
|
2805
|
-
|
|
2817
|
+
logger95 = createLogger("TriggerExecutor", "server");
|
|
2806
2818
|
});
|
|
2807
2819
|
|
|
2808
2820
|
// src/protocol/jsonrpc.ts
|
|
@@ -5871,9 +5883,111 @@ function discordIntegration(config = {}) {
|
|
|
5871
5883
|
}
|
|
5872
5884
|
};
|
|
5873
5885
|
}
|
|
5886
|
+
// src/integrations/telegram.ts
|
|
5887
|
+
init_logger();
|
|
5888
|
+
var logger14 = createLogger("Telegram");
|
|
5889
|
+
var TELEGRAM_TOOLS = [
|
|
5890
|
+
"telegram_auth_send_code",
|
|
5891
|
+
"telegram_auth_sign_in",
|
|
5892
|
+
"telegram_auth_check_password",
|
|
5893
|
+
"telegram_get_me",
|
|
5894
|
+
"telegram_resolve_username",
|
|
5895
|
+
"telegram_list_dialogs",
|
|
5896
|
+
"telegram_get_history",
|
|
5897
|
+
"telegram_search_messages",
|
|
5898
|
+
"telegram_send_message"
|
|
5899
|
+
];
|
|
5900
|
+
function telegramIntegration(options = {}) {
|
|
5901
|
+
const apiId = options.apiId ?? getEnv("TELEGRAM_API_ID");
|
|
5902
|
+
const apiHash = options.apiHash ?? getEnv("TELEGRAM_API_HASH");
|
|
5903
|
+
const sessionId = options.sessionId ?? getEnv("TELEGRAM_SESSION_ID");
|
|
5904
|
+
if (!apiId) {
|
|
5905
|
+
throw new Error("telegramIntegration requires apiId or TELEGRAM_API_ID");
|
|
5906
|
+
}
|
|
5907
|
+
if (!apiHash) {
|
|
5908
|
+
throw new Error("telegramIntegration requires apiHash or TELEGRAM_API_HASH");
|
|
5909
|
+
}
|
|
5910
|
+
return {
|
|
5911
|
+
id: "telegram",
|
|
5912
|
+
name: "Telegram",
|
|
5913
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/telegram.png",
|
|
5914
|
+
description: "Use Telegram as an actual user account via MTProto sessions, not the Bot API",
|
|
5915
|
+
category: "Communication",
|
|
5916
|
+
tools: [...TELEGRAM_TOOLS],
|
|
5917
|
+
authType: "apiKey",
|
|
5918
|
+
getHeaders() {
|
|
5919
|
+
const headers = {
|
|
5920
|
+
"X-Telegram-Api-Id": String(apiId),
|
|
5921
|
+
"X-Telegram-Api-Hash": String(apiHash)
|
|
5922
|
+
};
|
|
5923
|
+
if (sessionId) {
|
|
5924
|
+
headers["X-Telegram-Session-Id"] = sessionId;
|
|
5925
|
+
}
|
|
5926
|
+
return headers;
|
|
5927
|
+
},
|
|
5928
|
+
async onInit(_client) {
|
|
5929
|
+
logger14.debug("Telegram integration initialized");
|
|
5930
|
+
},
|
|
5931
|
+
async onAfterConnect(_client) {
|
|
5932
|
+
logger14.debug("Telegram integration connected");
|
|
5933
|
+
}
|
|
5934
|
+
};
|
|
5935
|
+
}
|
|
5936
|
+
// src/integrations/box.ts
|
|
5937
|
+
init_logger();
|
|
5938
|
+
var logger15 = createLogger("Box");
|
|
5939
|
+
var BOX_TOOLS = [
|
|
5940
|
+
"box_get_current_user",
|
|
5941
|
+
"box_list_folder_items",
|
|
5942
|
+
"box_get_file",
|
|
5943
|
+
"box_get_folder",
|
|
5944
|
+
"box_create_folder",
|
|
5945
|
+
"box_update_file",
|
|
5946
|
+
"box_update_folder",
|
|
5947
|
+
"box_delete_file",
|
|
5948
|
+
"box_delete_folder",
|
|
5949
|
+
"box_upload_text_file",
|
|
5950
|
+
"box_download_file",
|
|
5951
|
+
"box_search",
|
|
5952
|
+
"box_create_shared_link",
|
|
5953
|
+
"box_create_collaboration",
|
|
5954
|
+
"box_list_comments",
|
|
5955
|
+
"box_create_comment",
|
|
5956
|
+
"box_delete_comment"
|
|
5957
|
+
];
|
|
5958
|
+
function boxIntegration(options = {}) {
|
|
5959
|
+
if (options.scopes !== undefined && (!Array.isArray(options.scopes) || options.scopes.some((scope) => typeof scope !== "string"))) {
|
|
5960
|
+
throw new Error("boxIntegration scopes must be an array of strings");
|
|
5961
|
+
}
|
|
5962
|
+
const oauth = {
|
|
5963
|
+
provider: "box",
|
|
5964
|
+
clientId: options.clientId ?? getEnv("BOX_CLIENT_ID"),
|
|
5965
|
+
clientSecret: options.clientSecret ?? getEnv("BOX_CLIENT_SECRET"),
|
|
5966
|
+
scopes: options.scopes,
|
|
5967
|
+
optionalScopes: options.optionalScopes,
|
|
5968
|
+
redirectUri: options.redirectUri,
|
|
5969
|
+
config: options
|
|
5970
|
+
};
|
|
5971
|
+
return {
|
|
5972
|
+
id: "box",
|
|
5973
|
+
name: "Box",
|
|
5974
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/box.png",
|
|
5975
|
+
description: "Manage Box files, folders, sharing, comments, search, and collaborations",
|
|
5976
|
+
category: "Storage",
|
|
5977
|
+
tools: [...BOX_TOOLS],
|
|
5978
|
+
authType: "oauth",
|
|
5979
|
+
oauth,
|
|
5980
|
+
async onInit(_client) {
|
|
5981
|
+
logger15.debug("Box integration initialized");
|
|
5982
|
+
},
|
|
5983
|
+
async onAfterConnect(_client) {
|
|
5984
|
+
logger15.debug("Box integration connected");
|
|
5985
|
+
}
|
|
5986
|
+
};
|
|
5987
|
+
}
|
|
5874
5988
|
// src/integrations/linear.ts
|
|
5875
5989
|
init_logger();
|
|
5876
|
-
var
|
|
5990
|
+
var logger16 = createLogger("Linear");
|
|
5877
5991
|
var LINEAR_TOOLS = [
|
|
5878
5992
|
"linear_create_issue",
|
|
5879
5993
|
"linear_list_issues",
|
|
@@ -5928,16 +6042,16 @@ function linearIntegration(config = {}) {
|
|
|
5928
6042
|
tools: [...LINEAR_TOOLS],
|
|
5929
6043
|
oauth,
|
|
5930
6044
|
async onInit(_client) {
|
|
5931
|
-
|
|
6045
|
+
logger16.debug("Linear integration initialized");
|
|
5932
6046
|
},
|
|
5933
6047
|
async onAfterConnect(_client) {
|
|
5934
|
-
|
|
6048
|
+
logger16.debug("Linear integration connected");
|
|
5935
6049
|
}
|
|
5936
6050
|
};
|
|
5937
6051
|
}
|
|
5938
6052
|
// src/integrations/railway.ts
|
|
5939
6053
|
init_logger();
|
|
5940
|
-
var
|
|
6054
|
+
var logger17 = createLogger("Railway");
|
|
5941
6055
|
var RAILWAY_SCOPES = [
|
|
5942
6056
|
"openid",
|
|
5943
6057
|
"profile",
|
|
@@ -6042,16 +6156,16 @@ function railwayIntegration(config = {}) {
|
|
|
6042
6156
|
tools: [...RAILWAY_TOOLS],
|
|
6043
6157
|
oauth,
|
|
6044
6158
|
async onInit(_client) {
|
|
6045
|
-
|
|
6159
|
+
logger17.debug("Railway integration initialized");
|
|
6046
6160
|
},
|
|
6047
6161
|
async onAfterConnect(_client) {
|
|
6048
|
-
|
|
6162
|
+
logger17.debug("Railway integration connected");
|
|
6049
6163
|
}
|
|
6050
6164
|
};
|
|
6051
6165
|
}
|
|
6052
6166
|
// src/integrations/vercel.ts
|
|
6053
6167
|
init_logger();
|
|
6054
|
-
var
|
|
6168
|
+
var logger18 = createLogger("Vercel");
|
|
6055
6169
|
var VERCEL_TOOLS = [
|
|
6056
6170
|
"vercel_list_projects",
|
|
6057
6171
|
"vercel_get_project",
|
|
@@ -6094,16 +6208,16 @@ function vercelIntegration(config = {}) {
|
|
|
6094
6208
|
tools: [...VERCEL_TOOLS],
|
|
6095
6209
|
oauth,
|
|
6096
6210
|
async onInit(_client) {
|
|
6097
|
-
|
|
6211
|
+
logger18.debug("Vercel integration initialized");
|
|
6098
6212
|
},
|
|
6099
6213
|
async onAfterConnect(_client) {
|
|
6100
|
-
|
|
6214
|
+
logger18.debug("Vercel integration connected");
|
|
6101
6215
|
}
|
|
6102
6216
|
};
|
|
6103
6217
|
}
|
|
6104
6218
|
// src/integrations/zendesk.ts
|
|
6105
6219
|
init_logger();
|
|
6106
|
-
var
|
|
6220
|
+
var logger19 = createLogger("Zendesk");
|
|
6107
6221
|
var ZENDESK_TOOLS = [
|
|
6108
6222
|
"zendesk_list_tickets",
|
|
6109
6223
|
"zendesk_get_ticket",
|
|
@@ -6152,16 +6266,16 @@ function zendeskIntegration(config = {}) {
|
|
|
6152
6266
|
tools: [...ZENDESK_TOOLS],
|
|
6153
6267
|
oauth,
|
|
6154
6268
|
async onInit(_client) {
|
|
6155
|
-
|
|
6269
|
+
logger19.debug("Zendesk integration initialized");
|
|
6156
6270
|
},
|
|
6157
6271
|
async onAfterConnect(_client) {
|
|
6158
|
-
|
|
6272
|
+
logger19.debug("Zendesk integration connected");
|
|
6159
6273
|
}
|
|
6160
6274
|
};
|
|
6161
6275
|
}
|
|
6162
6276
|
// src/integrations/stripe.ts
|
|
6163
6277
|
init_logger();
|
|
6164
|
-
var
|
|
6278
|
+
var logger20 = createLogger("Stripe");
|
|
6165
6279
|
var STRIPE_TOOLS = [
|
|
6166
6280
|
"stripe_list_customers",
|
|
6167
6281
|
"stripe_get_customer",
|
|
@@ -6218,16 +6332,16 @@ function stripeIntegration(config = {}) {
|
|
|
6218
6332
|
tools: [...STRIPE_TOOLS],
|
|
6219
6333
|
oauth,
|
|
6220
6334
|
async onInit(_client) {
|
|
6221
|
-
|
|
6335
|
+
logger20.debug("Stripe integration initialized");
|
|
6222
6336
|
},
|
|
6223
6337
|
async onAfterConnect(_client) {
|
|
6224
|
-
|
|
6338
|
+
logger20.debug("Stripe integration connected");
|
|
6225
6339
|
}
|
|
6226
6340
|
};
|
|
6227
6341
|
}
|
|
6228
6342
|
// src/integrations/gcal.ts
|
|
6229
6343
|
init_logger();
|
|
6230
|
-
var
|
|
6344
|
+
var logger21 = createLogger("Google Calendar");
|
|
6231
6345
|
var GCAL_TOOLS = [
|
|
6232
6346
|
"gcal_create_calendar",
|
|
6233
6347
|
"gcal_create_event",
|
|
@@ -6261,16 +6375,16 @@ function gcalIntegration(config = {}) {
|
|
|
6261
6375
|
tools: [...GCAL_TOOLS],
|
|
6262
6376
|
oauth,
|
|
6263
6377
|
async onInit(_client) {
|
|
6264
|
-
|
|
6378
|
+
logger21.debug("Google Calendar integration initialized");
|
|
6265
6379
|
},
|
|
6266
6380
|
async onAfterConnect(_client) {
|
|
6267
|
-
|
|
6381
|
+
logger21.debug("Google Calendar integration connected");
|
|
6268
6382
|
}
|
|
6269
6383
|
};
|
|
6270
6384
|
}
|
|
6271
6385
|
// src/integrations/gcontacts.ts
|
|
6272
6386
|
init_logger();
|
|
6273
|
-
var
|
|
6387
|
+
var logger22 = createLogger("Google Contacts");
|
|
6274
6388
|
var GCONTACTS_TOOLS = [
|
|
6275
6389
|
"gcontacts_batch_get_contacts",
|
|
6276
6390
|
"gcontacts_copy_other_contact",
|
|
@@ -6304,16 +6418,16 @@ function gcontactsIntegration(config = {}) {
|
|
|
6304
6418
|
tools: [...GCONTACTS_TOOLS],
|
|
6305
6419
|
oauth,
|
|
6306
6420
|
async onInit(_client) {
|
|
6307
|
-
|
|
6421
|
+
logger22.debug("Google Contacts integration initialized");
|
|
6308
6422
|
},
|
|
6309
6423
|
async onAfterConnect(_client) {
|
|
6310
|
-
|
|
6424
|
+
logger22.debug("Google Contacts integration connected");
|
|
6311
6425
|
}
|
|
6312
6426
|
};
|
|
6313
6427
|
}
|
|
6314
6428
|
// src/integrations/gmeet.ts
|
|
6315
6429
|
init_logger();
|
|
6316
|
-
var
|
|
6430
|
+
var logger23 = createLogger("Google Meet");
|
|
6317
6431
|
var GMEET_TOOLS = [
|
|
6318
6432
|
"gmeet_add_meet_to_event",
|
|
6319
6433
|
"gmeet_create_meeting",
|
|
@@ -6341,16 +6455,16 @@ function gmeetIntegration(config = {}) {
|
|
|
6341
6455
|
tools: [...GMEET_TOOLS],
|
|
6342
6456
|
oauth,
|
|
6343
6457
|
async onInit(_client) {
|
|
6344
|
-
|
|
6458
|
+
logger23.debug("Google Meet integration initialized");
|
|
6345
6459
|
},
|
|
6346
6460
|
async onAfterConnect(_client) {
|
|
6347
|
-
|
|
6461
|
+
logger23.debug("Google Meet integration connected");
|
|
6348
6462
|
}
|
|
6349
6463
|
};
|
|
6350
6464
|
}
|
|
6351
6465
|
// src/integrations/gtasks.ts
|
|
6352
6466
|
init_logger();
|
|
6353
|
-
var
|
|
6467
|
+
var logger24 = createLogger("Google Tasks");
|
|
6354
6468
|
var GTASKS_TOOLS = [
|
|
6355
6469
|
"gtasks_clear_completed",
|
|
6356
6470
|
"gtasks_create_task",
|
|
@@ -6386,16 +6500,57 @@ function gtasksIntegration(config = {}) {
|
|
|
6386
6500
|
tools: [...GTASKS_TOOLS],
|
|
6387
6501
|
oauth,
|
|
6388
6502
|
async onInit(_client) {
|
|
6389
|
-
|
|
6503
|
+
logger24.debug("Google Tasks integration initialized");
|
|
6504
|
+
},
|
|
6505
|
+
async onAfterConnect(_client) {
|
|
6506
|
+
logger24.debug("Google Tasks integration connected");
|
|
6507
|
+
}
|
|
6508
|
+
};
|
|
6509
|
+
}
|
|
6510
|
+
// src/integrations/gkeep.ts
|
|
6511
|
+
init_logger();
|
|
6512
|
+
var logger25 = createLogger("Google Keep");
|
|
6513
|
+
var GKEEP_TOOLS = [
|
|
6514
|
+
"gkeep_list_notes",
|
|
6515
|
+
"gkeep_get_note",
|
|
6516
|
+
"gkeep_create_text_note",
|
|
6517
|
+
"gkeep_create_list_note",
|
|
6518
|
+
"gkeep_delete_note",
|
|
6519
|
+
"gkeep_download_attachment",
|
|
6520
|
+
"gkeep_batch_create_permissions",
|
|
6521
|
+
"gkeep_batch_delete_permissions"
|
|
6522
|
+
];
|
|
6523
|
+
function gkeepIntegration(config = {}) {
|
|
6524
|
+
const oauth = {
|
|
6525
|
+
provider: "gkeep",
|
|
6526
|
+
clientId: config.clientId ?? getEnv("GKEEP_CLIENT_ID"),
|
|
6527
|
+
clientSecret: config.clientSecret ?? getEnv("GKEEP_CLIENT_SECRET"),
|
|
6528
|
+
scopes: config.scopes,
|
|
6529
|
+
optionalScopes: config.optionalScopes,
|
|
6530
|
+
redirectUri: config.redirectUri,
|
|
6531
|
+
config: {
|
|
6532
|
+
...config
|
|
6533
|
+
}
|
|
6534
|
+
};
|
|
6535
|
+
return {
|
|
6536
|
+
id: "gkeep",
|
|
6537
|
+
name: "Google Keep",
|
|
6538
|
+
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_keep.png",
|
|
6539
|
+
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
6540
|
+
category: "Productivity",
|
|
6541
|
+
tools: [...GKEEP_TOOLS],
|
|
6542
|
+
oauth,
|
|
6543
|
+
async onInit(_client) {
|
|
6544
|
+
logger25.debug("Google Keep integration initialized");
|
|
6390
6545
|
},
|
|
6391
6546
|
async onAfterConnect(_client) {
|
|
6392
|
-
|
|
6547
|
+
logger25.debug("Google Keep integration connected");
|
|
6393
6548
|
}
|
|
6394
6549
|
};
|
|
6395
6550
|
}
|
|
6396
6551
|
// src/integrations/outlook.ts
|
|
6397
6552
|
init_logger();
|
|
6398
|
-
var
|
|
6553
|
+
var logger26 = createLogger("Outlook");
|
|
6399
6554
|
var OUTLOOK_TOOLS = [
|
|
6400
6555
|
"outlook_accept_event",
|
|
6401
6556
|
"outlook_create_draft",
|
|
@@ -6442,16 +6597,16 @@ function outlookIntegration(config = {}) {
|
|
|
6442
6597
|
tools: [...OUTLOOK_TOOLS],
|
|
6443
6598
|
oauth,
|
|
6444
6599
|
async onInit(_client) {
|
|
6445
|
-
|
|
6600
|
+
logger26.debug("Outlook integration initialized");
|
|
6446
6601
|
},
|
|
6447
6602
|
async onAfterConnect(_client) {
|
|
6448
|
-
|
|
6603
|
+
logger26.debug("Outlook integration connected");
|
|
6449
6604
|
}
|
|
6450
6605
|
};
|
|
6451
6606
|
}
|
|
6452
6607
|
// src/integrations/teams.ts
|
|
6453
6608
|
init_logger();
|
|
6454
|
-
var
|
|
6609
|
+
var logger27 = createLogger("Teams");
|
|
6455
6610
|
var TEAMS_SCOPES = [
|
|
6456
6611
|
"offline_access",
|
|
6457
6612
|
"User.Read",
|
|
@@ -6501,16 +6656,16 @@ function teamsIntegration(config = {}) {
|
|
|
6501
6656
|
tools: [...TEAMS_TOOLS],
|
|
6502
6657
|
oauth,
|
|
6503
6658
|
async onInit(_client) {
|
|
6504
|
-
|
|
6659
|
+
logger27.debug("Teams integration initialized");
|
|
6505
6660
|
},
|
|
6506
6661
|
async onAfterConnect(_client) {
|
|
6507
|
-
|
|
6662
|
+
logger27.debug("Teams integration connected");
|
|
6508
6663
|
}
|
|
6509
6664
|
};
|
|
6510
6665
|
}
|
|
6511
6666
|
// src/integrations/airtable.ts
|
|
6512
6667
|
init_logger();
|
|
6513
|
-
var
|
|
6668
|
+
var logger28 = createLogger("Airtable");
|
|
6514
6669
|
var AIRTABLE_TOOLS = [
|
|
6515
6670
|
"airtable_list_bases",
|
|
6516
6671
|
"airtable_get_base",
|
|
@@ -6556,16 +6711,16 @@ function airtableIntegration(config = {}) {
|
|
|
6556
6711
|
tools: [...AIRTABLE_TOOLS],
|
|
6557
6712
|
oauth,
|
|
6558
6713
|
async onInit(_client) {
|
|
6559
|
-
|
|
6714
|
+
logger28.debug("Airtable integration initialized");
|
|
6560
6715
|
},
|
|
6561
6716
|
async onAfterConnect(_client) {
|
|
6562
|
-
|
|
6717
|
+
logger28.debug("Airtable integration connected");
|
|
6563
6718
|
}
|
|
6564
6719
|
};
|
|
6565
6720
|
}
|
|
6566
6721
|
// src/integrations/auth0.ts
|
|
6567
6722
|
init_logger();
|
|
6568
|
-
var
|
|
6723
|
+
var logger29 = createLogger("Auth0");
|
|
6569
6724
|
var AUTH0_TOOLS = [
|
|
6570
6725
|
"auth0_list_users",
|
|
6571
6726
|
"auth0_get_user",
|
|
@@ -6654,7 +6809,7 @@ function auth0Integration(options) {
|
|
|
6654
6809
|
};
|
|
6655
6810
|
},
|
|
6656
6811
|
async onInit() {
|
|
6657
|
-
|
|
6812
|
+
logger29.debug("Auth0 integration initialized");
|
|
6658
6813
|
},
|
|
6659
6814
|
async onBeforeConnect() {
|
|
6660
6815
|
await ensureFreshToken();
|
|
@@ -6663,13 +6818,13 @@ function auth0Integration(options) {
|
|
|
6663
6818
|
}
|
|
6664
6819
|
},
|
|
6665
6820
|
async onAfterConnect() {
|
|
6666
|
-
|
|
6821
|
+
logger29.debug("Auth0 integration connected");
|
|
6667
6822
|
}
|
|
6668
6823
|
};
|
|
6669
6824
|
}
|
|
6670
6825
|
// src/integrations/astronomer.ts
|
|
6671
6826
|
init_logger();
|
|
6672
|
-
var
|
|
6827
|
+
var logger30 = createLogger("Astronomer");
|
|
6673
6828
|
var ASTRONOMER_TOOLS = [
|
|
6674
6829
|
"astronomer_get_self",
|
|
6675
6830
|
"astronomer_list_organizations",
|
|
@@ -6704,16 +6859,16 @@ function astronomerIntegration(options = {}) {
|
|
|
6704
6859
|
};
|
|
6705
6860
|
},
|
|
6706
6861
|
async onInit(_client) {
|
|
6707
|
-
|
|
6862
|
+
logger30.debug("Astronomer integration initialized");
|
|
6708
6863
|
},
|
|
6709
6864
|
async onAfterConnect(_client) {
|
|
6710
|
-
|
|
6865
|
+
logger30.debug("Astronomer integration connected");
|
|
6711
6866
|
}
|
|
6712
6867
|
};
|
|
6713
6868
|
}
|
|
6714
6869
|
// src/integrations/betterstack.ts
|
|
6715
6870
|
init_logger();
|
|
6716
|
-
var
|
|
6871
|
+
var logger31 = createLogger("BetterStack");
|
|
6717
6872
|
var BETTERSTACK_TOOLS = [
|
|
6718
6873
|
"betterstack_list_sources",
|
|
6719
6874
|
"betterstack_get_source",
|
|
@@ -6746,16 +6901,16 @@ function betterstackIntegration(options = {}) {
|
|
|
6746
6901
|
};
|
|
6747
6902
|
},
|
|
6748
6903
|
async onInit(_client) {
|
|
6749
|
-
|
|
6904
|
+
logger31.debug("Better Stack integration initialized");
|
|
6750
6905
|
},
|
|
6751
6906
|
async onAfterConnect(_client) {
|
|
6752
|
-
|
|
6907
|
+
logger31.debug("Better Stack integration connected");
|
|
6753
6908
|
}
|
|
6754
6909
|
};
|
|
6755
6910
|
}
|
|
6756
6911
|
// src/integrations/todoist.ts
|
|
6757
6912
|
init_logger();
|
|
6758
|
-
var
|
|
6913
|
+
var logger32 = createLogger("Todoist");
|
|
6759
6914
|
var TODOIST_TOOLS = [
|
|
6760
6915
|
"todoist_list_projects",
|
|
6761
6916
|
"todoist_get_project",
|
|
@@ -6810,16 +6965,16 @@ function todoistIntegration(config = {}) {
|
|
|
6810
6965
|
tools: [...TODOIST_TOOLS],
|
|
6811
6966
|
oauth,
|
|
6812
6967
|
async onInit(_client) {
|
|
6813
|
-
|
|
6968
|
+
logger32.debug("Todoist integration initialized");
|
|
6814
6969
|
},
|
|
6815
6970
|
async onAfterConnect(_client) {
|
|
6816
|
-
|
|
6971
|
+
logger32.debug("Todoist integration connected");
|
|
6817
6972
|
}
|
|
6818
6973
|
};
|
|
6819
6974
|
}
|
|
6820
6975
|
// src/integrations/whatsapp.ts
|
|
6821
6976
|
init_logger();
|
|
6822
|
-
var
|
|
6977
|
+
var logger33 = createLogger("WhatsApp");
|
|
6823
6978
|
var WHATSAPP_TOOLS = [
|
|
6824
6979
|
"whatsapp_send_message",
|
|
6825
6980
|
"whatsapp_reply_message",
|
|
@@ -6868,16 +7023,16 @@ function whatsappIntegration(config = {}) {
|
|
|
6868
7023
|
tools: [...WHATSAPP_TOOLS],
|
|
6869
7024
|
oauth,
|
|
6870
7025
|
async onInit(_client) {
|
|
6871
|
-
|
|
7026
|
+
logger33.debug("WhatsApp Business integration initialized");
|
|
6872
7027
|
},
|
|
6873
7028
|
async onAfterConnect(_client) {
|
|
6874
|
-
|
|
7029
|
+
logger33.debug("WhatsApp Business integration connected");
|
|
6875
7030
|
}
|
|
6876
7031
|
};
|
|
6877
7032
|
}
|
|
6878
7033
|
// src/integrations/calcom.ts
|
|
6879
7034
|
init_logger();
|
|
6880
|
-
var
|
|
7035
|
+
var logger34 = createLogger("Cal.com");
|
|
6881
7036
|
var CALCOM_TOOLS = [
|
|
6882
7037
|
"calcom_list_bookings",
|
|
6883
7038
|
"calcom_get_booking",
|
|
@@ -6953,16 +7108,16 @@ function calcomIntegration(config = {}) {
|
|
|
6953
7108
|
tools: [...CALCOM_TOOLS],
|
|
6954
7109
|
oauth,
|
|
6955
7110
|
async onInit(_client) {
|
|
6956
|
-
|
|
7111
|
+
logger34.debug("Cal.com integration initialized");
|
|
6957
7112
|
},
|
|
6958
7113
|
async onAfterConnect(_client) {
|
|
6959
|
-
|
|
7114
|
+
logger34.debug("Cal.com integration connected");
|
|
6960
7115
|
}
|
|
6961
7116
|
};
|
|
6962
7117
|
}
|
|
6963
7118
|
// src/integrations/ramp.ts
|
|
6964
7119
|
init_logger();
|
|
6965
|
-
var
|
|
7120
|
+
var logger35 = createLogger("Ramp");
|
|
6966
7121
|
var RAMP_TOOLS = [
|
|
6967
7122
|
"ramp_list_transactions",
|
|
6968
7123
|
"ramp_get_transaction",
|
|
@@ -6994,16 +7149,16 @@ function rampIntegration(config = {}) {
|
|
|
6994
7149
|
tools: [...RAMP_TOOLS],
|
|
6995
7150
|
oauth,
|
|
6996
7151
|
async onInit(_client) {
|
|
6997
|
-
|
|
7152
|
+
logger35.debug("Ramp integration initialized");
|
|
6998
7153
|
},
|
|
6999
7154
|
async onAfterConnect(_client) {
|
|
7000
|
-
|
|
7155
|
+
logger35.debug("Ramp integration connected");
|
|
7001
7156
|
}
|
|
7002
7157
|
};
|
|
7003
7158
|
}
|
|
7004
7159
|
// src/integrations/onedrive.ts
|
|
7005
7160
|
init_logger();
|
|
7006
|
-
var
|
|
7161
|
+
var logger36 = createLogger("OneDrive");
|
|
7007
7162
|
var ONEDRIVE_TOOLS = [
|
|
7008
7163
|
"onedrive_create_folder",
|
|
7009
7164
|
"onedrive_delete_file",
|
|
@@ -7035,10 +7190,10 @@ function onedriveIntegration(config = {}) {
|
|
|
7035
7190
|
tools: [...ONEDRIVE_TOOLS],
|
|
7036
7191
|
oauth,
|
|
7037
7192
|
async onInit(_client) {
|
|
7038
|
-
|
|
7193
|
+
logger36.debug("OneDrive integration initialized");
|
|
7039
7194
|
},
|
|
7040
7195
|
async onAfterConnect(_client) {
|
|
7041
|
-
|
|
7196
|
+
logger36.debug("OneDrive integration connected");
|
|
7042
7197
|
}
|
|
7043
7198
|
};
|
|
7044
7199
|
}
|
|
@@ -7077,7 +7232,7 @@ function plannerIntegration(config = {}) {
|
|
|
7077
7232
|
}
|
|
7078
7233
|
// src/integrations/sharepoint.ts
|
|
7079
7234
|
init_logger();
|
|
7080
|
-
var
|
|
7235
|
+
var logger37 = createLogger("SharePoint");
|
|
7081
7236
|
var SHAREPOINT_SCOPES = ["Sites.ReadWrite.All", "Files.ReadWrite.All", "offline_access"];
|
|
7082
7237
|
var SHAREPOINT_TOOLS = [
|
|
7083
7238
|
"sharepoint_create_folder",
|
|
@@ -7116,16 +7271,16 @@ function sharepointIntegration(config = {}) {
|
|
|
7116
7271
|
tools: [...SHAREPOINT_TOOLS],
|
|
7117
7272
|
oauth,
|
|
7118
7273
|
async onInit(_client) {
|
|
7119
|
-
|
|
7274
|
+
logger37.debug("SharePoint integration initialized");
|
|
7120
7275
|
},
|
|
7121
7276
|
async onAfterConnect(_client) {
|
|
7122
|
-
|
|
7277
|
+
logger37.debug("SharePoint integration connected");
|
|
7123
7278
|
}
|
|
7124
7279
|
};
|
|
7125
7280
|
}
|
|
7126
7281
|
// src/integrations/dropbox.ts
|
|
7127
7282
|
init_logger();
|
|
7128
|
-
var
|
|
7283
|
+
var logger38 = createLogger("Dropbox");
|
|
7129
7284
|
var DROPBOX_TOOLS = [
|
|
7130
7285
|
"dropbox_get_current_account",
|
|
7131
7286
|
"dropbox_get_space_usage",
|
|
@@ -7167,16 +7322,16 @@ function dropboxIntegration(options = {}) {
|
|
|
7167
7322
|
authType: "oauth",
|
|
7168
7323
|
oauth,
|
|
7169
7324
|
async onInit(_client) {
|
|
7170
|
-
|
|
7325
|
+
logger38.debug("Dropbox integration initialized");
|
|
7171
7326
|
},
|
|
7172
7327
|
async onAfterConnect(_client) {
|
|
7173
|
-
|
|
7328
|
+
logger38.debug("Dropbox integration connected");
|
|
7174
7329
|
}
|
|
7175
7330
|
};
|
|
7176
7331
|
}
|
|
7177
7332
|
// src/integrations/paper.ts
|
|
7178
7333
|
init_logger();
|
|
7179
|
-
var
|
|
7334
|
+
var logger39 = createLogger("Paper");
|
|
7180
7335
|
var PAPER_SCOPES = [
|
|
7181
7336
|
"account_info.read",
|
|
7182
7337
|
"files.metadata.read",
|
|
@@ -7222,16 +7377,16 @@ function paperIntegration(config = {}) {
|
|
|
7222
7377
|
authType: "oauth",
|
|
7223
7378
|
oauth,
|
|
7224
7379
|
async onInit(_client) {
|
|
7225
|
-
|
|
7380
|
+
logger39.debug("Paper integration initialized");
|
|
7226
7381
|
},
|
|
7227
7382
|
async onAfterConnect(_client) {
|
|
7228
|
-
|
|
7383
|
+
logger39.debug("Paper integration connected");
|
|
7229
7384
|
}
|
|
7230
7385
|
};
|
|
7231
7386
|
}
|
|
7232
7387
|
// src/integrations/word.ts
|
|
7233
7388
|
init_logger();
|
|
7234
|
-
var
|
|
7389
|
+
var logger40 = createLogger("Word");
|
|
7235
7390
|
var WORD_TOOLS = [
|
|
7236
7391
|
"word_copy",
|
|
7237
7392
|
"word_create",
|
|
@@ -7258,16 +7413,16 @@ function wordIntegration(config = {}) {
|
|
|
7258
7413
|
tools: [...WORD_TOOLS],
|
|
7259
7414
|
oauth,
|
|
7260
7415
|
async onInit(_client) {
|
|
7261
|
-
|
|
7416
|
+
logger40.debug("Word integration initialized");
|
|
7262
7417
|
},
|
|
7263
7418
|
async onAfterConnect(_client) {
|
|
7264
|
-
|
|
7419
|
+
logger40.debug("Word integration connected");
|
|
7265
7420
|
}
|
|
7266
7421
|
};
|
|
7267
7422
|
}
|
|
7268
7423
|
// src/integrations/excel.ts
|
|
7269
7424
|
init_logger();
|
|
7270
|
-
var
|
|
7425
|
+
var logger41 = createLogger("Excel");
|
|
7271
7426
|
var EXCEL_TOOLS = [
|
|
7272
7427
|
"excel_add_table_rows",
|
|
7273
7428
|
"excel_add_worksheet",
|
|
@@ -7303,16 +7458,16 @@ function excelIntegration(config = {}) {
|
|
|
7303
7458
|
tools: [...EXCEL_TOOLS],
|
|
7304
7459
|
oauth,
|
|
7305
7460
|
async onInit(_client) {
|
|
7306
|
-
|
|
7461
|
+
logger41.debug("Excel integration initialized");
|
|
7307
7462
|
},
|
|
7308
7463
|
async onAfterConnect(_client) {
|
|
7309
|
-
|
|
7464
|
+
logger41.debug("Excel integration connected");
|
|
7310
7465
|
}
|
|
7311
7466
|
};
|
|
7312
7467
|
}
|
|
7313
7468
|
// src/integrations/powerpoint.ts
|
|
7314
7469
|
init_logger();
|
|
7315
|
-
var
|
|
7470
|
+
var logger42 = createLogger("PowerPoint");
|
|
7316
7471
|
var POWERPOINT_TOOLS = [
|
|
7317
7472
|
"powerpoint_copy",
|
|
7318
7473
|
"powerpoint_create",
|
|
@@ -7339,16 +7494,16 @@ function powerpointIntegration(config = {}) {
|
|
|
7339
7494
|
tools: [...POWERPOINT_TOOLS],
|
|
7340
7495
|
oauth,
|
|
7341
7496
|
async onInit(_client) {
|
|
7342
|
-
|
|
7497
|
+
logger42.debug("PowerPoint integration initialized");
|
|
7343
7498
|
},
|
|
7344
7499
|
async onAfterConnect(_client) {
|
|
7345
|
-
|
|
7500
|
+
logger42.debug("PowerPoint integration connected");
|
|
7346
7501
|
}
|
|
7347
7502
|
};
|
|
7348
7503
|
}
|
|
7349
7504
|
// src/integrations/gdocs.ts
|
|
7350
7505
|
init_logger();
|
|
7351
|
-
var
|
|
7506
|
+
var logger43 = createLogger("Google Docs");
|
|
7352
7507
|
var GDOCS_TOOLS = [
|
|
7353
7508
|
"gdocs_append_text",
|
|
7354
7509
|
"gdocs_batch_update",
|
|
@@ -7378,16 +7533,16 @@ function gdocsIntegration(config = {}) {
|
|
|
7378
7533
|
tools: [...GDOCS_TOOLS],
|
|
7379
7534
|
oauth,
|
|
7380
7535
|
async onInit(_client) {
|
|
7381
|
-
|
|
7536
|
+
logger43.debug("Google Docs integration initialized");
|
|
7382
7537
|
},
|
|
7383
7538
|
async onAfterConnect(_client) {
|
|
7384
|
-
|
|
7539
|
+
logger43.debug("Google Docs integration connected");
|
|
7385
7540
|
}
|
|
7386
7541
|
};
|
|
7387
7542
|
}
|
|
7388
7543
|
// src/integrations/gdrive.ts
|
|
7389
7544
|
init_logger();
|
|
7390
|
-
var
|
|
7545
|
+
var logger44 = createLogger("Google Drive");
|
|
7391
7546
|
var GDRIVE_TOOLS = [
|
|
7392
7547
|
"gdrive_copy_file",
|
|
7393
7548
|
"gdrive_create_folder",
|
|
@@ -7421,16 +7576,16 @@ function gdriveIntegration(config = {}) {
|
|
|
7421
7576
|
tools: [...GDRIVE_TOOLS],
|
|
7422
7577
|
oauth,
|
|
7423
7578
|
async onInit(_client) {
|
|
7424
|
-
|
|
7579
|
+
logger44.debug("Google Drive integration initialized");
|
|
7425
7580
|
},
|
|
7426
7581
|
async onAfterConnect(_client) {
|
|
7427
|
-
|
|
7582
|
+
logger44.debug("Google Drive integration connected");
|
|
7428
7583
|
}
|
|
7429
7584
|
};
|
|
7430
7585
|
}
|
|
7431
7586
|
// src/integrations/gsheets.ts
|
|
7432
7587
|
init_logger();
|
|
7433
|
-
var
|
|
7588
|
+
var logger45 = createLogger("Google Sheets");
|
|
7434
7589
|
var GSHEETS_TOOLS = [
|
|
7435
7590
|
"gsheets_append_values",
|
|
7436
7591
|
"gsheets_batch_update",
|
|
@@ -7460,16 +7615,16 @@ function gsheetsIntegration(config = {}) {
|
|
|
7460
7615
|
tools: [...GSHEETS_TOOLS],
|
|
7461
7616
|
oauth,
|
|
7462
7617
|
async onInit(_client) {
|
|
7463
|
-
|
|
7618
|
+
logger45.debug("Google Sheets integration initialized");
|
|
7464
7619
|
},
|
|
7465
7620
|
async onAfterConnect(_client) {
|
|
7466
|
-
|
|
7621
|
+
logger45.debug("Google Sheets integration connected");
|
|
7467
7622
|
}
|
|
7468
7623
|
};
|
|
7469
7624
|
}
|
|
7470
7625
|
// src/integrations/gslides.ts
|
|
7471
7626
|
init_logger();
|
|
7472
|
-
var
|
|
7627
|
+
var logger46 = createLogger("Google Slides");
|
|
7473
7628
|
var GSLIDES_TOOLS = [
|
|
7474
7629
|
"gslides_add_slide",
|
|
7475
7630
|
"gslides_batch_update",
|
|
@@ -7498,16 +7653,16 @@ function gslidesIntegration(config = {}) {
|
|
|
7498
7653
|
tools: [...GSLIDES_TOOLS],
|
|
7499
7654
|
oauth,
|
|
7500
7655
|
async onInit(_client) {
|
|
7501
|
-
|
|
7656
|
+
logger46.debug("Google Slides integration initialized");
|
|
7502
7657
|
},
|
|
7503
7658
|
async onAfterConnect(_client) {
|
|
7504
|
-
|
|
7659
|
+
logger46.debug("Google Slides integration connected");
|
|
7505
7660
|
}
|
|
7506
7661
|
};
|
|
7507
7662
|
}
|
|
7508
7663
|
// src/integrations/polar.ts
|
|
7509
7664
|
init_logger();
|
|
7510
|
-
var
|
|
7665
|
+
var logger47 = createLogger("Polar");
|
|
7511
7666
|
var POLAR_TOOLS = [
|
|
7512
7667
|
"polar_list_products",
|
|
7513
7668
|
"polar_get_product",
|
|
@@ -7564,16 +7719,16 @@ function polarIntegration(config = {}) {
|
|
|
7564
7719
|
tools: [...POLAR_TOOLS],
|
|
7565
7720
|
oauth,
|
|
7566
7721
|
async onInit(_client) {
|
|
7567
|
-
|
|
7722
|
+
logger47.debug("Polar integration initialized");
|
|
7568
7723
|
},
|
|
7569
7724
|
async onAfterConnect(_client) {
|
|
7570
|
-
|
|
7725
|
+
logger47.debug("Polar integration connected");
|
|
7571
7726
|
}
|
|
7572
7727
|
};
|
|
7573
7728
|
}
|
|
7574
7729
|
// src/integrations/phantom.ts
|
|
7575
7730
|
init_logger();
|
|
7576
|
-
var
|
|
7731
|
+
var logger48 = createLogger("Phantom");
|
|
7577
7732
|
var PHANTOM_TOOLS = [
|
|
7578
7733
|
"phantom_build_browse_deeplink",
|
|
7579
7734
|
"phantom_deeplink_provider_reference"
|
|
@@ -7595,16 +7750,16 @@ function phantomIntegration(_options = {}) {
|
|
|
7595
7750
|
category: "Other",
|
|
7596
7751
|
tools: [...PHANTOM_TOOLS],
|
|
7597
7752
|
async onInit(_client) {
|
|
7598
|
-
|
|
7753
|
+
logger48.debug("Phantom integration initialized");
|
|
7599
7754
|
},
|
|
7600
7755
|
async onAfterConnect(_client) {
|
|
7601
|
-
|
|
7756
|
+
logger48.debug("Phantom integration connected");
|
|
7602
7757
|
}
|
|
7603
7758
|
};
|
|
7604
7759
|
}
|
|
7605
7760
|
// src/integrations/figma.ts
|
|
7606
7761
|
init_logger();
|
|
7607
|
-
var
|
|
7762
|
+
var logger49 = createLogger("Figma");
|
|
7608
7763
|
var FIGMA_TOOLS = [
|
|
7609
7764
|
"figma_get_file",
|
|
7610
7765
|
"figma_get_file_nodes",
|
|
@@ -7670,16 +7825,16 @@ function figmaIntegration(config = {}) {
|
|
|
7670
7825
|
tools: [...FIGMA_TOOLS],
|
|
7671
7826
|
oauth,
|
|
7672
7827
|
async onInit(_client) {
|
|
7673
|
-
|
|
7828
|
+
logger49.debug("Figma integration initialized");
|
|
7674
7829
|
},
|
|
7675
7830
|
async onAfterConnect(_client) {
|
|
7676
|
-
|
|
7831
|
+
logger49.debug("Figma integration connected");
|
|
7677
7832
|
}
|
|
7678
7833
|
};
|
|
7679
7834
|
}
|
|
7680
7835
|
// src/integrations/intercom.ts
|
|
7681
7836
|
init_logger();
|
|
7682
|
-
var
|
|
7837
|
+
var logger50 = createLogger("Intercom");
|
|
7683
7838
|
var INTERCOM_TOOLS = [
|
|
7684
7839
|
"intercom_list_contacts",
|
|
7685
7840
|
"intercom_get_contact",
|
|
@@ -7710,16 +7865,16 @@ function intercomIntegration(config = {}) {
|
|
|
7710
7865
|
tools: [...INTERCOM_TOOLS],
|
|
7711
7866
|
oauth,
|
|
7712
7867
|
async onInit(_client) {
|
|
7713
|
-
|
|
7868
|
+
logger50.debug("Intercom integration initialized");
|
|
7714
7869
|
},
|
|
7715
7870
|
async onAfterConnect(_client) {
|
|
7716
|
-
|
|
7871
|
+
logger50.debug("Intercom integration connected");
|
|
7717
7872
|
}
|
|
7718
7873
|
};
|
|
7719
7874
|
}
|
|
7720
7875
|
// src/integrations/hubspot.ts
|
|
7721
7876
|
init_logger();
|
|
7722
|
-
var
|
|
7877
|
+
var logger51 = createLogger("HubSpot");
|
|
7723
7878
|
var HUBSPOT_TOOLS = [
|
|
7724
7879
|
"hubspot_list_contacts",
|
|
7725
7880
|
"hubspot_get_contact",
|
|
@@ -7769,16 +7924,16 @@ function hubspotIntegration(config = {}) {
|
|
|
7769
7924
|
tools: [...HUBSPOT_TOOLS],
|
|
7770
7925
|
oauth,
|
|
7771
7926
|
async onInit(_client) {
|
|
7772
|
-
|
|
7927
|
+
logger51.debug("HubSpot integration initialized");
|
|
7773
7928
|
},
|
|
7774
7929
|
async onAfterConnect(_client) {
|
|
7775
|
-
|
|
7930
|
+
logger51.debug("HubSpot integration connected");
|
|
7776
7931
|
}
|
|
7777
7932
|
};
|
|
7778
7933
|
}
|
|
7779
7934
|
// src/integrations/youtube.ts
|
|
7780
7935
|
init_logger();
|
|
7781
|
-
var
|
|
7936
|
+
var logger52 = createLogger("YouTube");
|
|
7782
7937
|
var YOUTUBE_TOOLS = [
|
|
7783
7938
|
"youtube_add_comment",
|
|
7784
7939
|
"youtube_add_to_playlist",
|
|
@@ -7824,16 +7979,16 @@ function youtubeIntegration(config = {}) {
|
|
|
7824
7979
|
tools: [...YOUTUBE_TOOLS],
|
|
7825
7980
|
oauth,
|
|
7826
7981
|
async onInit(_client) {
|
|
7827
|
-
|
|
7982
|
+
logger52.debug("YouTube integration initialized");
|
|
7828
7983
|
},
|
|
7829
7984
|
async onAfterConnect(_client) {
|
|
7830
|
-
|
|
7985
|
+
logger52.debug("YouTube integration connected");
|
|
7831
7986
|
}
|
|
7832
7987
|
};
|
|
7833
7988
|
}
|
|
7834
7989
|
// src/integrations/zoom.ts
|
|
7835
7990
|
init_logger();
|
|
7836
|
-
var
|
|
7991
|
+
var logger53 = createLogger("Zoom");
|
|
7837
7992
|
var ZOOM_TOOLS = [
|
|
7838
7993
|
"zoom_get_user",
|
|
7839
7994
|
"zoom_list_meetings",
|
|
@@ -7859,10 +8014,10 @@ function zoomIntegration(config = {}) {
|
|
|
7859
8014
|
tools: [...ZOOM_TOOLS],
|
|
7860
8015
|
oauth,
|
|
7861
8016
|
async onInit(_client) {
|
|
7862
|
-
|
|
8017
|
+
logger53.debug("Zoom integration initialized");
|
|
7863
8018
|
},
|
|
7864
8019
|
async onAfterConnect(_client) {
|
|
7865
|
-
|
|
8020
|
+
logger53.debug("Zoom integration connected");
|
|
7866
8021
|
}
|
|
7867
8022
|
};
|
|
7868
8023
|
}
|
|
@@ -7898,7 +8053,7 @@ function redditIntegration(config = {}) {
|
|
|
7898
8053
|
}
|
|
7899
8054
|
// src/integrations/cursor.ts
|
|
7900
8055
|
init_logger();
|
|
7901
|
-
var
|
|
8056
|
+
var logger54 = createLogger("Cursor");
|
|
7902
8057
|
var CURSOR_TOOLS = [
|
|
7903
8058
|
"cursor_list_agents",
|
|
7904
8059
|
"cursor_get_agent",
|
|
@@ -7918,16 +8073,16 @@ function cursorIntegration(_config = {}) {
|
|
|
7918
8073
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/cursor.jpeg",
|
|
7919
8074
|
tools: [...CURSOR_TOOLS],
|
|
7920
8075
|
async onInit(_client) {
|
|
7921
|
-
|
|
8076
|
+
logger54.debug("Cursor integration initialized");
|
|
7922
8077
|
},
|
|
7923
8078
|
async onAfterConnect(_client) {
|
|
7924
|
-
|
|
8079
|
+
logger54.debug("Cursor integration connected");
|
|
7925
8080
|
}
|
|
7926
8081
|
};
|
|
7927
8082
|
}
|
|
7928
8083
|
// src/integrations/databricks.ts
|
|
7929
8084
|
init_logger();
|
|
7930
|
-
var
|
|
8085
|
+
var logger55 = createLogger("Databricks");
|
|
7931
8086
|
var DATABRICKS_SCOPES = ["all-apis", "offline_access"];
|
|
7932
8087
|
var DATABRICKS_TOOLS = [
|
|
7933
8088
|
"databricks_current_user",
|
|
@@ -7974,16 +8129,16 @@ function databricksIntegration(config = {}) {
|
|
|
7974
8129
|
tools: [...DATABRICKS_TOOLS],
|
|
7975
8130
|
oauth,
|
|
7976
8131
|
async onInit(_client) {
|
|
7977
|
-
|
|
8132
|
+
logger55.debug("Databricks integration initialized");
|
|
7978
8133
|
},
|
|
7979
8134
|
async onAfterConnect(_client) {
|
|
7980
|
-
|
|
8135
|
+
logger55.debug("Databricks integration connected");
|
|
7981
8136
|
}
|
|
7982
8137
|
};
|
|
7983
8138
|
}
|
|
7984
8139
|
// src/integrations/posthog.ts
|
|
7985
8140
|
init_logger();
|
|
7986
|
-
var
|
|
8141
|
+
var logger56 = createLogger("PostHog");
|
|
7987
8142
|
var DEFAULT_POSTHOG_BASE_URL = "https://us.posthog.com";
|
|
7988
8143
|
var POSTHOG_SCOPES = [
|
|
7989
8144
|
"openid",
|
|
@@ -8069,16 +8224,16 @@ function posthogIntegration(config = {}) {
|
|
|
8069
8224
|
tools: [...POSTHOG_TOOLS],
|
|
8070
8225
|
oauth,
|
|
8071
8226
|
async onInit(_client) {
|
|
8072
|
-
|
|
8227
|
+
logger56.debug("PostHog integration initialized");
|
|
8073
8228
|
},
|
|
8074
8229
|
async onAfterConnect(_client) {
|
|
8075
|
-
|
|
8230
|
+
logger56.debug("PostHog integration connected");
|
|
8076
8231
|
}
|
|
8077
8232
|
};
|
|
8078
8233
|
}
|
|
8079
8234
|
// src/integrations/postman.ts
|
|
8080
8235
|
init_logger();
|
|
8081
|
-
var
|
|
8236
|
+
var logger57 = createLogger("Postman");
|
|
8082
8237
|
var POSTMAN_TOOLS = [
|
|
8083
8238
|
"postman_get_me",
|
|
8084
8239
|
"postman_list_workspaces",
|
|
@@ -8109,16 +8264,16 @@ function postmanIntegration(options = {}) {
|
|
|
8109
8264
|
};
|
|
8110
8265
|
},
|
|
8111
8266
|
async onInit(_client) {
|
|
8112
|
-
|
|
8267
|
+
logger57.debug("Postman integration initialized");
|
|
8113
8268
|
},
|
|
8114
8269
|
async onAfterConnect(_client) {
|
|
8115
|
-
|
|
8270
|
+
logger57.debug("Postman integration connected");
|
|
8116
8271
|
}
|
|
8117
8272
|
};
|
|
8118
8273
|
}
|
|
8119
8274
|
// src/integrations/sentry.ts
|
|
8120
8275
|
init_logger();
|
|
8121
|
-
var
|
|
8276
|
+
var logger58 = createLogger("Sentry");
|
|
8122
8277
|
var SENTRY_SCOPES = [
|
|
8123
8278
|
"org:read",
|
|
8124
8279
|
"project:read",
|
|
@@ -8167,16 +8322,16 @@ function sentryIntegration(config = {}) {
|
|
|
8167
8322
|
tools: [...SENTRY_TOOLS],
|
|
8168
8323
|
oauth,
|
|
8169
8324
|
async onInit(_client) {
|
|
8170
|
-
|
|
8325
|
+
logger58.debug("Sentry integration initialized");
|
|
8171
8326
|
},
|
|
8172
8327
|
async onAfterConnect(_client) {
|
|
8173
|
-
|
|
8328
|
+
logger58.debug("Sentry integration connected");
|
|
8174
8329
|
}
|
|
8175
8330
|
};
|
|
8176
8331
|
}
|
|
8177
8332
|
// src/integrations/supabase.ts
|
|
8178
8333
|
init_logger();
|
|
8179
|
-
var
|
|
8334
|
+
var logger59 = createLogger("Supabase");
|
|
8180
8335
|
var SUPABASE_API_BASE = "https://api.supabase.com";
|
|
8181
8336
|
var SUPABASE_TOOLS = [
|
|
8182
8337
|
"supabase_get_profile",
|
|
@@ -8214,10 +8369,10 @@ function supabaseIntegration(config = {}) {
|
|
|
8214
8369
|
};
|
|
8215
8370
|
},
|
|
8216
8371
|
async onInit(_client) {
|
|
8217
|
-
|
|
8372
|
+
logger59.debug("Supabase integration initialized (personal access token)");
|
|
8218
8373
|
},
|
|
8219
8374
|
async onAfterConnect(_client) {
|
|
8220
|
-
|
|
8375
|
+
logger59.debug("Supabase integration connected");
|
|
8221
8376
|
}
|
|
8222
8377
|
};
|
|
8223
8378
|
}
|
|
@@ -8247,16 +8402,16 @@ function supabaseIntegration(config = {}) {
|
|
|
8247
8402
|
tools: [...SUPABASE_TOOLS],
|
|
8248
8403
|
oauth,
|
|
8249
8404
|
async onInit(_client) {
|
|
8250
|
-
|
|
8405
|
+
logger59.debug("Supabase integration initialized");
|
|
8251
8406
|
},
|
|
8252
8407
|
async onAfterConnect(_client) {
|
|
8253
|
-
|
|
8408
|
+
logger59.debug("Supabase integration connected");
|
|
8254
8409
|
}
|
|
8255
8410
|
};
|
|
8256
8411
|
}
|
|
8257
8412
|
// src/integrations/netlify.ts
|
|
8258
8413
|
init_logger();
|
|
8259
|
-
var
|
|
8414
|
+
var logger60 = createLogger("Netlify");
|
|
8260
8415
|
var NETLIFY_TOOLS = [
|
|
8261
8416
|
"netlify_get_current_user",
|
|
8262
8417
|
"netlify_list_accounts",
|
|
@@ -8319,16 +8474,16 @@ function netlifyIntegration(config = {}) {
|
|
|
8319
8474
|
tools: [...NETLIFY_TOOLS],
|
|
8320
8475
|
oauth,
|
|
8321
8476
|
async onInit(_client) {
|
|
8322
|
-
|
|
8477
|
+
logger60.debug("Netlify integration initialized");
|
|
8323
8478
|
},
|
|
8324
8479
|
async onAfterConnect(_client) {
|
|
8325
|
-
|
|
8480
|
+
logger60.debug("Netlify integration connected");
|
|
8326
8481
|
}
|
|
8327
8482
|
};
|
|
8328
8483
|
}
|
|
8329
8484
|
// src/integrations/datadog.ts
|
|
8330
8485
|
init_logger();
|
|
8331
|
-
var
|
|
8486
|
+
var logger61 = createLogger("Datadog");
|
|
8332
8487
|
var DATADOG_SCOPES = [
|
|
8333
8488
|
"monitors_read",
|
|
8334
8489
|
"dashboards_read",
|
|
@@ -8358,10 +8513,10 @@ function datadogIntegration(config = {}) {
|
|
|
8358
8513
|
category: "Engineering",
|
|
8359
8514
|
tools: [...DATADOG_TOOLS],
|
|
8360
8515
|
async onInit(_client) {
|
|
8361
|
-
|
|
8516
|
+
logger61.debug("Datadog integration initialized");
|
|
8362
8517
|
},
|
|
8363
8518
|
async onAfterConnect(_client) {
|
|
8364
|
-
|
|
8519
|
+
logger61.debug("Datadog integration connected");
|
|
8365
8520
|
}
|
|
8366
8521
|
};
|
|
8367
8522
|
if (apiKey || applicationKey) {
|
|
@@ -8403,7 +8558,7 @@ function datadogIntegration(config = {}) {
|
|
|
8403
8558
|
}
|
|
8404
8559
|
// src/integrations/redis.ts
|
|
8405
8560
|
init_logger();
|
|
8406
|
-
var
|
|
8561
|
+
var logger62 = createLogger("Redis Cloud");
|
|
8407
8562
|
var REDIS_TOOLS = [
|
|
8408
8563
|
"redis_list_subscriptions",
|
|
8409
8564
|
"redis_get_subscription",
|
|
@@ -8458,16 +8613,16 @@ function redisIntegration(options = {}) {
|
|
|
8458
8613
|
};
|
|
8459
8614
|
},
|
|
8460
8615
|
async onInit(_client) {
|
|
8461
|
-
|
|
8616
|
+
logger62.debug("Redis Cloud integration initialized");
|
|
8462
8617
|
},
|
|
8463
8618
|
async onAfterConnect(_client) {
|
|
8464
|
-
|
|
8619
|
+
logger62.debug("Redis Cloud integration connected");
|
|
8465
8620
|
}
|
|
8466
8621
|
};
|
|
8467
8622
|
}
|
|
8468
8623
|
// src/integrations/upstash.ts
|
|
8469
8624
|
init_logger();
|
|
8470
|
-
var
|
|
8625
|
+
var logger63 = createLogger("Upstash");
|
|
8471
8626
|
var UPSTASH_TOOLS = [
|
|
8472
8627
|
"upstash_redis_run",
|
|
8473
8628
|
"upstash_redis_get",
|
|
@@ -8507,16 +8662,16 @@ function upstashIntegration(options = {}) {
|
|
|
8507
8662
|
return headers;
|
|
8508
8663
|
},
|
|
8509
8664
|
async onInit(_client) {
|
|
8510
|
-
|
|
8665
|
+
logger63.debug("Upstash integration initialized");
|
|
8511
8666
|
},
|
|
8512
8667
|
async onAfterConnect(_client) {
|
|
8513
|
-
|
|
8668
|
+
logger63.debug("Upstash integration connected");
|
|
8514
8669
|
}
|
|
8515
8670
|
};
|
|
8516
8671
|
}
|
|
8517
8672
|
// src/integrations/webflow.ts
|
|
8518
8673
|
init_logger();
|
|
8519
|
-
var
|
|
8674
|
+
var logger64 = createLogger("Webflow");
|
|
8520
8675
|
var WEBFLOW_TOOLS = [
|
|
8521
8676
|
"webflow_token_introspect",
|
|
8522
8677
|
"webflow_get_authorized_user",
|
|
@@ -8575,16 +8730,16 @@ function webflowIntegration(config = {}) {
|
|
|
8575
8730
|
tools: [...WEBFLOW_TOOLS],
|
|
8576
8731
|
oauth,
|
|
8577
8732
|
async onInit(_client) {
|
|
8578
|
-
|
|
8733
|
+
logger64.debug("Webflow integration initialized");
|
|
8579
8734
|
},
|
|
8580
8735
|
async onAfterConnect(_client) {
|
|
8581
|
-
|
|
8736
|
+
logger64.debug("Webflow integration connected");
|
|
8582
8737
|
}
|
|
8583
8738
|
};
|
|
8584
8739
|
}
|
|
8585
8740
|
// src/integrations/jira.ts
|
|
8586
8741
|
init_logger();
|
|
8587
|
-
var
|
|
8742
|
+
var logger65 = createLogger("Jira");
|
|
8588
8743
|
var JIRA_SCOPES = [
|
|
8589
8744
|
"read:jira-work",
|
|
8590
8745
|
"write:jira-work",
|
|
@@ -8629,16 +8784,16 @@ function jiraIntegration(config = {}) {
|
|
|
8629
8784
|
tools: [...JIRA_TOOLS],
|
|
8630
8785
|
oauth,
|
|
8631
8786
|
async onInit(_client) {
|
|
8632
|
-
|
|
8787
|
+
logger65.debug("Jira integration initialized");
|
|
8633
8788
|
},
|
|
8634
8789
|
async onAfterConnect(_client) {
|
|
8635
|
-
|
|
8790
|
+
logger65.debug("Jira integration connected");
|
|
8636
8791
|
}
|
|
8637
8792
|
};
|
|
8638
8793
|
}
|
|
8639
8794
|
// src/integrations/salesforce.ts
|
|
8640
8795
|
init_logger();
|
|
8641
|
-
var
|
|
8796
|
+
var logger66 = createLogger("Salesforce");
|
|
8642
8797
|
var SALESFORCE_TOOLS = [
|
|
8643
8798
|
"salesforce_query",
|
|
8644
8799
|
"salesforce_get_limits",
|
|
@@ -8669,16 +8824,16 @@ function salesforceIntegration(config = {}) {
|
|
|
8669
8824
|
tools: [...SALESFORCE_TOOLS],
|
|
8670
8825
|
oauth,
|
|
8671
8826
|
async onInit(_client) {
|
|
8672
|
-
|
|
8827
|
+
logger66.debug("Salesforce integration initialized");
|
|
8673
8828
|
},
|
|
8674
8829
|
async onAfterConnect(_client) {
|
|
8675
|
-
|
|
8830
|
+
logger66.debug("Salesforce integration connected");
|
|
8676
8831
|
}
|
|
8677
8832
|
};
|
|
8678
8833
|
}
|
|
8679
8834
|
// src/integrations/zapier.ts
|
|
8680
8835
|
init_logger();
|
|
8681
|
-
var
|
|
8836
|
+
var logger67 = createLogger("Zapier");
|
|
8682
8837
|
var ZAPIER_TOOLS = [
|
|
8683
8838
|
"zapier_get_profile",
|
|
8684
8839
|
"zapier_list_zaps",
|
|
@@ -8710,16 +8865,16 @@ function zapierIntegration(config = {}) {
|
|
|
8710
8865
|
tools: [...ZAPIER_TOOLS],
|
|
8711
8866
|
oauth,
|
|
8712
8867
|
async onInit(_client) {
|
|
8713
|
-
|
|
8868
|
+
logger67.debug("Zapier integration initialized");
|
|
8714
8869
|
},
|
|
8715
8870
|
async onAfterConnect(_client) {
|
|
8716
|
-
|
|
8871
|
+
logger67.debug("Zapier integration connected");
|
|
8717
8872
|
}
|
|
8718
8873
|
};
|
|
8719
8874
|
}
|
|
8720
8875
|
// src/integrations/linkedin.ts
|
|
8721
8876
|
init_logger();
|
|
8722
|
-
var
|
|
8877
|
+
var logger68 = createLogger("LinkedIn");
|
|
8723
8878
|
var LINKEDIN_SCOPES = ["openid", "profile", "email", "w_member_social"];
|
|
8724
8879
|
var LINKEDIN_TOOLS = ["linkedin_get_userinfo", "linkedin_create_post"];
|
|
8725
8880
|
function linkedinIntegration(config = {}) {
|
|
@@ -8746,16 +8901,16 @@ function linkedinIntegration(config = {}) {
|
|
|
8746
8901
|
tools: [...LINKEDIN_TOOLS],
|
|
8747
8902
|
oauth,
|
|
8748
8903
|
async onInit(_client) {
|
|
8749
|
-
|
|
8904
|
+
logger68.debug("LinkedIn integration initialized");
|
|
8750
8905
|
},
|
|
8751
8906
|
async onAfterConnect(_client) {
|
|
8752
|
-
|
|
8907
|
+
logger68.debug("LinkedIn integration connected");
|
|
8753
8908
|
}
|
|
8754
8909
|
};
|
|
8755
8910
|
}
|
|
8756
8911
|
// src/integrations/threads.ts
|
|
8757
8912
|
init_logger();
|
|
8758
|
-
var
|
|
8913
|
+
var logger69 = createLogger("Threads");
|
|
8759
8914
|
var THREADS_SCOPES = [
|
|
8760
8915
|
"threads_basic",
|
|
8761
8916
|
"threads_content_publish",
|
|
@@ -8806,16 +8961,16 @@ function threadsIntegration(config = {}) {
|
|
|
8806
8961
|
tools: [...THREADS_TOOLS],
|
|
8807
8962
|
oauth,
|
|
8808
8963
|
async onInit(_client) {
|
|
8809
|
-
|
|
8964
|
+
logger69.debug("Threads integration initialized");
|
|
8810
8965
|
},
|
|
8811
8966
|
async onAfterConnect(_client) {
|
|
8812
|
-
|
|
8967
|
+
logger69.debug("Threads integration connected");
|
|
8813
8968
|
}
|
|
8814
8969
|
};
|
|
8815
8970
|
}
|
|
8816
8971
|
// src/integrations/tiktok.ts
|
|
8817
8972
|
init_logger();
|
|
8818
|
-
var
|
|
8973
|
+
var logger70 = createLogger("TikTok");
|
|
8819
8974
|
var TIKTOK_SCOPES = ["user.info.basic", "video.list"];
|
|
8820
8975
|
var TIKTOK_TOOLS = [
|
|
8821
8976
|
"tiktok_get_user_info",
|
|
@@ -8846,16 +9001,16 @@ function tiktokIntegration(config = {}) {
|
|
|
8846
9001
|
tools: [...TIKTOK_TOOLS],
|
|
8847
9002
|
oauth,
|
|
8848
9003
|
async onInit(_client) {
|
|
8849
|
-
|
|
9004
|
+
logger70.debug("TikTok integration initialized");
|
|
8850
9005
|
},
|
|
8851
9006
|
async onAfterConnect(_client) {
|
|
8852
|
-
|
|
9007
|
+
logger70.debug("TikTok integration connected");
|
|
8853
9008
|
}
|
|
8854
9009
|
};
|
|
8855
9010
|
}
|
|
8856
9011
|
// src/integrations/trello.ts
|
|
8857
9012
|
init_logger();
|
|
8858
|
-
var
|
|
9013
|
+
var logger71 = createLogger("Trello");
|
|
8859
9014
|
var TRELLO_TOOLS = [
|
|
8860
9015
|
"trello_get_member",
|
|
8861
9016
|
"trello_list_boards",
|
|
@@ -8892,16 +9047,16 @@ function trelloIntegration(options = {}) {
|
|
|
8892
9047
|
return { Authorization: `Bearer ${encodeCredential(apiKey, memberToken)}` };
|
|
8893
9048
|
},
|
|
8894
9049
|
async onInit(_client) {
|
|
8895
|
-
|
|
9050
|
+
logger71.debug("Trello integration initialized");
|
|
8896
9051
|
},
|
|
8897
9052
|
async onAfterConnect(_client) {
|
|
8898
|
-
|
|
9053
|
+
logger71.debug("Trello integration connected");
|
|
8899
9054
|
}
|
|
8900
9055
|
};
|
|
8901
9056
|
}
|
|
8902
9057
|
// src/integrations/typeform.ts
|
|
8903
9058
|
init_logger();
|
|
8904
|
-
var
|
|
9059
|
+
var logger72 = createLogger("Typeform");
|
|
8905
9060
|
var TYPEFORM_SCOPES = [
|
|
8906
9061
|
"offline",
|
|
8907
9062
|
"accounts:read",
|
|
@@ -8945,16 +9100,16 @@ function typeformIntegration(config = {}) {
|
|
|
8945
9100
|
tools: [...TYPEFORM_TOOLS],
|
|
8946
9101
|
oauth,
|
|
8947
9102
|
async onInit(_client) {
|
|
8948
|
-
|
|
9103
|
+
logger72.debug("Typeform integration initialized");
|
|
8949
9104
|
},
|
|
8950
9105
|
async onAfterConnect(_client) {
|
|
8951
|
-
|
|
9106
|
+
logger72.debug("Typeform integration connected");
|
|
8952
9107
|
}
|
|
8953
9108
|
};
|
|
8954
9109
|
}
|
|
8955
9110
|
// src/integrations/xero.ts
|
|
8956
9111
|
init_logger();
|
|
8957
|
-
var
|
|
9112
|
+
var logger73 = createLogger("Xero");
|
|
8958
9113
|
var XERO_SCOPES = [
|
|
8959
9114
|
"openid",
|
|
8960
9115
|
"profile",
|
|
@@ -9001,16 +9156,16 @@ function xeroIntegration(config = {}) {
|
|
|
9001
9156
|
tools: [...XERO_TOOLS],
|
|
9002
9157
|
oauth,
|
|
9003
9158
|
async onInit(_client) {
|
|
9004
|
-
|
|
9159
|
+
logger73.debug("Xero integration initialized");
|
|
9005
9160
|
},
|
|
9006
9161
|
async onAfterConnect(_client) {
|
|
9007
|
-
|
|
9162
|
+
logger73.debug("Xero integration connected");
|
|
9008
9163
|
}
|
|
9009
9164
|
};
|
|
9010
9165
|
}
|
|
9011
9166
|
// src/integrations/attio.ts
|
|
9012
9167
|
init_logger();
|
|
9013
|
-
var
|
|
9168
|
+
var logger74 = createLogger("Attio");
|
|
9014
9169
|
var ATTIO_SCOPES = [
|
|
9015
9170
|
"record_permission:read-write",
|
|
9016
9171
|
"object_configuration:read",
|
|
@@ -9056,16 +9211,16 @@ function attioIntegration(config = {}) {
|
|
|
9056
9211
|
tools: [...ATTIO_TOOLS],
|
|
9057
9212
|
oauth,
|
|
9058
9213
|
async onInit(_client) {
|
|
9059
|
-
|
|
9214
|
+
logger74.debug("Attio integration initialized");
|
|
9060
9215
|
},
|
|
9061
9216
|
async onAfterConnect(_client) {
|
|
9062
|
-
|
|
9217
|
+
logger74.debug("Attio integration connected");
|
|
9063
9218
|
}
|
|
9064
9219
|
};
|
|
9065
9220
|
}
|
|
9066
9221
|
// src/integrations/gchat.ts
|
|
9067
9222
|
init_logger();
|
|
9068
|
-
var
|
|
9223
|
+
var logger75 = createLogger("Google Chat");
|
|
9069
9224
|
var GCHAT_SCOPES = [
|
|
9070
9225
|
"https://www.googleapis.com/auth/chat.messages",
|
|
9071
9226
|
"https://www.googleapis.com/auth/chat.spaces.readonly"
|
|
@@ -9104,16 +9259,16 @@ function gchatIntegration(config = {}) {
|
|
|
9104
9259
|
tools: [...GCHAT_TOOLS],
|
|
9105
9260
|
oauth,
|
|
9106
9261
|
async onInit(_client) {
|
|
9107
|
-
|
|
9262
|
+
logger75.debug("Google Chat integration initialized");
|
|
9108
9263
|
},
|
|
9109
9264
|
async onAfterConnect(_client) {
|
|
9110
|
-
|
|
9265
|
+
logger75.debug("Google Chat integration connected");
|
|
9111
9266
|
}
|
|
9112
9267
|
};
|
|
9113
9268
|
}
|
|
9114
9269
|
// src/integrations/shopify.ts
|
|
9115
9270
|
init_logger();
|
|
9116
|
-
var
|
|
9271
|
+
var logger76 = createLogger("Shopify");
|
|
9117
9272
|
var SHOPIFY_SCOPES = [
|
|
9118
9273
|
"read_products",
|
|
9119
9274
|
"write_products",
|
|
@@ -9162,16 +9317,16 @@ function shopifyIntegration(config = {}) {
|
|
|
9162
9317
|
tools: [...SHOPIFY_TOOLS],
|
|
9163
9318
|
oauth,
|
|
9164
9319
|
async onInit(_client) {
|
|
9165
|
-
|
|
9320
|
+
logger76.debug("Shopify integration initialized");
|
|
9166
9321
|
},
|
|
9167
9322
|
async onAfterConnect(_client) {
|
|
9168
|
-
|
|
9323
|
+
logger76.debug("Shopify integration connected");
|
|
9169
9324
|
}
|
|
9170
9325
|
};
|
|
9171
9326
|
}
|
|
9172
9327
|
// src/integrations/convex.ts
|
|
9173
9328
|
init_logger();
|
|
9174
|
-
var
|
|
9329
|
+
var logger77 = createLogger("Convex");
|
|
9175
9330
|
var CONVEX_TOOLS = [
|
|
9176
9331
|
"convex_management_token_details",
|
|
9177
9332
|
"convex_management_list_projects",
|
|
@@ -9208,16 +9363,16 @@ function convexIntegration(options = {}) {
|
|
|
9208
9363
|
return { Authorization: `Bearer ${accessToken}` };
|
|
9209
9364
|
},
|
|
9210
9365
|
async onInit(_client) {
|
|
9211
|
-
|
|
9366
|
+
logger77.debug("Convex integration initialized");
|
|
9212
9367
|
},
|
|
9213
9368
|
async onAfterConnect(_client) {
|
|
9214
|
-
|
|
9369
|
+
logger77.debug("Convex integration connected");
|
|
9215
9370
|
}
|
|
9216
9371
|
};
|
|
9217
9372
|
}
|
|
9218
9373
|
// src/integrations/etoro.ts
|
|
9219
9374
|
init_logger();
|
|
9220
|
-
var
|
|
9375
|
+
var logger78 = createLogger("eToro");
|
|
9221
9376
|
var ETORO_TOOLS = [
|
|
9222
9377
|
"etoro_get_identity",
|
|
9223
9378
|
"etoro_get_portfolio",
|
|
@@ -9247,16 +9402,16 @@ function etoroIntegration(options = {}) {
|
|
|
9247
9402
|
};
|
|
9248
9403
|
},
|
|
9249
9404
|
async onInit(_client) {
|
|
9250
|
-
|
|
9405
|
+
logger78.debug("eToro integration initialized");
|
|
9251
9406
|
},
|
|
9252
9407
|
async onAfterConnect(_client) {
|
|
9253
|
-
|
|
9408
|
+
logger78.debug("eToro integration connected");
|
|
9254
9409
|
}
|
|
9255
9410
|
};
|
|
9256
9411
|
}
|
|
9257
9412
|
// src/integrations/alpaca.ts
|
|
9258
9413
|
init_logger();
|
|
9259
|
-
var
|
|
9414
|
+
var logger79 = createLogger("Alpaca");
|
|
9260
9415
|
var ALPACA_TOOLS = [
|
|
9261
9416
|
"alpaca_get_account",
|
|
9262
9417
|
"alpaca_list_positions",
|
|
@@ -9298,16 +9453,16 @@ function alpacaIntegration(options = {}) {
|
|
|
9298
9453
|
return headers;
|
|
9299
9454
|
},
|
|
9300
9455
|
async onInit(_client) {
|
|
9301
|
-
|
|
9456
|
+
logger79.debug("Alpaca integration initialized");
|
|
9302
9457
|
},
|
|
9303
9458
|
async onAfterConnect(_client) {
|
|
9304
|
-
|
|
9459
|
+
logger79.debug("Alpaca integration connected");
|
|
9305
9460
|
}
|
|
9306
9461
|
};
|
|
9307
9462
|
}
|
|
9308
9463
|
// src/integrations/neon.ts
|
|
9309
9464
|
init_logger();
|
|
9310
|
-
var
|
|
9465
|
+
var logger80 = createLogger("Neon");
|
|
9311
9466
|
var NEON_TOOLS = [
|
|
9312
9467
|
"neon_list_api_keys",
|
|
9313
9468
|
"neon_create_api_key",
|
|
@@ -9347,10 +9502,10 @@ function neonIntegration(options = {}) {
|
|
|
9347
9502
|
};
|
|
9348
9503
|
},
|
|
9349
9504
|
async onInit(_client) {
|
|
9350
|
-
|
|
9505
|
+
logger80.debug("Neon integration initialized");
|
|
9351
9506
|
},
|
|
9352
9507
|
async onAfterConnect(_client) {
|
|
9353
|
-
|
|
9508
|
+
logger80.debug("Neon integration connected");
|
|
9354
9509
|
}
|
|
9355
9510
|
};
|
|
9356
9511
|
}
|
|
@@ -9460,7 +9615,7 @@ function mercuryIntegration(options) {
|
|
|
9460
9615
|
}
|
|
9461
9616
|
// src/integrations/aws.ts
|
|
9462
9617
|
init_logger();
|
|
9463
|
-
var
|
|
9618
|
+
var logger81 = createLogger("AWS");
|
|
9464
9619
|
var AWS_TOOLS = [
|
|
9465
9620
|
"aws_sts_get_caller_identity",
|
|
9466
9621
|
"aws_ec2_describe_regions",
|
|
@@ -9513,16 +9668,16 @@ function awsIntegration(options = {}) {
|
|
|
9513
9668
|
};
|
|
9514
9669
|
},
|
|
9515
9670
|
async onInit(_client) {
|
|
9516
|
-
|
|
9671
|
+
logger81.debug("AWS integration initialized");
|
|
9517
9672
|
},
|
|
9518
9673
|
async onAfterConnect(_client) {
|
|
9519
|
-
|
|
9674
|
+
logger81.debug("AWS integration connected");
|
|
9520
9675
|
}
|
|
9521
9676
|
};
|
|
9522
9677
|
}
|
|
9523
9678
|
// src/integrations/wix.ts
|
|
9524
9679
|
init_logger();
|
|
9525
|
-
var
|
|
9680
|
+
var logger82 = createLogger("Wix");
|
|
9526
9681
|
var WIX_TOOLS = [
|
|
9527
9682
|
"wix_query_products",
|
|
9528
9683
|
"wix_get_product",
|
|
@@ -9555,10 +9710,10 @@ function wixIntegration(options = {}) {
|
|
|
9555
9710
|
};
|
|
9556
9711
|
},
|
|
9557
9712
|
async onInit(_client) {
|
|
9558
|
-
|
|
9713
|
+
logger82.debug("Wix integration initialized");
|
|
9559
9714
|
},
|
|
9560
9715
|
async onAfterConnect(_client) {
|
|
9561
|
-
|
|
9716
|
+
logger82.debug("Wix integration connected");
|
|
9562
9717
|
}
|
|
9563
9718
|
};
|
|
9564
9719
|
}
|
|
@@ -9592,7 +9747,7 @@ function mailchimpIntegration(config = {}) {
|
|
|
9592
9747
|
}
|
|
9593
9748
|
// src/integrations/monday.ts
|
|
9594
9749
|
init_logger();
|
|
9595
|
-
var
|
|
9750
|
+
var logger83 = createLogger("Monday");
|
|
9596
9751
|
var MONDAY_TOOLS = [
|
|
9597
9752
|
"monday_me",
|
|
9598
9753
|
"monday_list_workspaces",
|
|
@@ -9629,16 +9784,16 @@ function mondayIntegration(config = {}) {
|
|
|
9629
9784
|
tools: [...MONDAY_TOOLS],
|
|
9630
9785
|
oauth,
|
|
9631
9786
|
async onInit(_client) {
|
|
9632
|
-
|
|
9787
|
+
logger83.debug("Monday.com integration initialized");
|
|
9633
9788
|
},
|
|
9634
9789
|
async onAfterConnect(_client) {
|
|
9635
|
-
|
|
9790
|
+
logger83.debug("Monday.com integration connected");
|
|
9636
9791
|
}
|
|
9637
9792
|
};
|
|
9638
9793
|
}
|
|
9639
9794
|
// src/integrations/binance.ts
|
|
9640
9795
|
init_logger();
|
|
9641
|
-
var
|
|
9796
|
+
var logger84 = createLogger("Binance");
|
|
9642
9797
|
var BINANCE_TOOLS = [
|
|
9643
9798
|
"binance_ping",
|
|
9644
9799
|
"binance_get_server_time",
|
|
@@ -9681,16 +9836,16 @@ function binanceIntegration(options = {}) {
|
|
|
9681
9836
|
};
|
|
9682
9837
|
},
|
|
9683
9838
|
async onInit(_client) {
|
|
9684
|
-
|
|
9839
|
+
logger84.debug("Binance integration initialized");
|
|
9685
9840
|
},
|
|
9686
9841
|
async onAfterConnect(_client) {
|
|
9687
|
-
|
|
9842
|
+
logger84.debug("Binance integration connected");
|
|
9688
9843
|
}
|
|
9689
9844
|
};
|
|
9690
9845
|
}
|
|
9691
9846
|
// src/integrations/canva.ts
|
|
9692
9847
|
init_logger();
|
|
9693
|
-
var
|
|
9848
|
+
var logger85 = createLogger("Canva");
|
|
9694
9849
|
var CANVA_TOOLS = [
|
|
9695
9850
|
"canva_get_me",
|
|
9696
9851
|
"canva_get_profile",
|
|
@@ -9727,16 +9882,16 @@ function canvaIntegration(config = {}) {
|
|
|
9727
9882
|
tools: [...CANVA_TOOLS],
|
|
9728
9883
|
oauth,
|
|
9729
9884
|
async onInit(_client) {
|
|
9730
|
-
|
|
9885
|
+
logger85.debug("Canva integration initialized");
|
|
9731
9886
|
},
|
|
9732
9887
|
async onAfterConnect(_client) {
|
|
9733
|
-
|
|
9888
|
+
logger85.debug("Canva integration connected");
|
|
9734
9889
|
}
|
|
9735
9890
|
};
|
|
9736
9891
|
}
|
|
9737
9892
|
// src/integrations/clerk.ts
|
|
9738
9893
|
init_logger();
|
|
9739
|
-
var
|
|
9894
|
+
var logger86 = createLogger("Clerk");
|
|
9740
9895
|
var CLERK_TOOLS = [
|
|
9741
9896
|
"clerk_list_users",
|
|
9742
9897
|
"clerk_get_user",
|
|
@@ -9771,16 +9926,16 @@ function clerkIntegration(options = {}) {
|
|
|
9771
9926
|
};
|
|
9772
9927
|
},
|
|
9773
9928
|
async onInit(_client) {
|
|
9774
|
-
|
|
9929
|
+
logger86.debug("Clerk integration initialized");
|
|
9775
9930
|
},
|
|
9776
9931
|
async onAfterConnect(_client) {
|
|
9777
|
-
|
|
9932
|
+
logger86.debug("Clerk integration connected");
|
|
9778
9933
|
}
|
|
9779
9934
|
};
|
|
9780
9935
|
}
|
|
9781
9936
|
// src/integrations/clickup.ts
|
|
9782
9937
|
init_logger();
|
|
9783
|
-
var
|
|
9938
|
+
var logger87 = createLogger("ClickUp");
|
|
9784
9939
|
var CLICKUP_TOOLS = [
|
|
9785
9940
|
"clickup_get_authorized_user",
|
|
9786
9941
|
"clickup_list_teams",
|
|
@@ -9816,16 +9971,16 @@ function clickupIntegration(config = {}) {
|
|
|
9816
9971
|
tools: [...CLICKUP_TOOLS],
|
|
9817
9972
|
oauth,
|
|
9818
9973
|
async onInit(_client) {
|
|
9819
|
-
|
|
9974
|
+
logger87.debug("ClickUp integration initialized");
|
|
9820
9975
|
},
|
|
9821
9976
|
async onAfterConnect(_client) {
|
|
9822
|
-
|
|
9977
|
+
logger87.debug("ClickUp integration connected");
|
|
9823
9978
|
}
|
|
9824
9979
|
};
|
|
9825
9980
|
}
|
|
9826
9981
|
// src/integrations/cloudflare.ts
|
|
9827
9982
|
init_logger();
|
|
9828
|
-
var
|
|
9983
|
+
var logger88 = createLogger("Cloudflare");
|
|
9829
9984
|
var CLOUDFLARE_TOOLS = [
|
|
9830
9985
|
"cloudflare_verify_token",
|
|
9831
9986
|
"cloudflare_get_user",
|
|
@@ -9864,10 +10019,10 @@ function cloudflareIntegration(config = {}) {
|
|
|
9864
10019
|
return { Authorization: `Bearer ${apiToken.trim()}` };
|
|
9865
10020
|
},
|
|
9866
10021
|
async onInit(_client) {
|
|
9867
|
-
|
|
10022
|
+
logger88.debug("Cloudflare integration initialized (API token)");
|
|
9868
10023
|
},
|
|
9869
10024
|
async onAfterConnect(_client) {
|
|
9870
|
-
|
|
10025
|
+
logger88.debug("Cloudflare integration connected");
|
|
9871
10026
|
}
|
|
9872
10027
|
};
|
|
9873
10028
|
}
|
|
@@ -9893,16 +10048,16 @@ function cloudflareIntegration(config = {}) {
|
|
|
9893
10048
|
tools: [...CLOUDFLARE_TOOLS],
|
|
9894
10049
|
oauth,
|
|
9895
10050
|
async onInit(_client) {
|
|
9896
|
-
|
|
10051
|
+
logger88.debug("Cloudflare integration initialized (OAuth)");
|
|
9897
10052
|
},
|
|
9898
10053
|
async onAfterConnect(_client) {
|
|
9899
|
-
|
|
10054
|
+
logger88.debug("Cloudflare integration connected");
|
|
9900
10055
|
}
|
|
9901
10056
|
};
|
|
9902
10057
|
}
|
|
9903
10058
|
// src/integrations/instagram.ts
|
|
9904
10059
|
init_logger();
|
|
9905
|
-
var
|
|
10060
|
+
var logger89 = createLogger("Instagram");
|
|
9906
10061
|
var INSTAGRAM_SCOPES = [
|
|
9907
10062
|
"pages_show_list",
|
|
9908
10063
|
"pages_read_engagement",
|
|
@@ -9952,16 +10107,16 @@ function instagramIntegration(config = {}) {
|
|
|
9952
10107
|
tools: [...INSTAGRAM_TOOLS],
|
|
9953
10108
|
oauth,
|
|
9954
10109
|
async onInit(_client) {
|
|
9955
|
-
|
|
10110
|
+
logger89.debug("Instagram integration initialized");
|
|
9956
10111
|
},
|
|
9957
10112
|
async onAfterConnect(_client) {
|
|
9958
|
-
|
|
10113
|
+
logger89.debug("Instagram integration connected");
|
|
9959
10114
|
}
|
|
9960
10115
|
};
|
|
9961
10116
|
}
|
|
9962
10117
|
// src/integrations/facebook.ts
|
|
9963
10118
|
init_logger();
|
|
9964
|
-
var
|
|
10119
|
+
var logger90 = createLogger("Facebook");
|
|
9965
10120
|
var FACEBOOK_SCOPES = [
|
|
9966
10121
|
"public_profile",
|
|
9967
10122
|
"email",
|
|
@@ -10007,10 +10162,10 @@ function facebookIntegration(config = {}) {
|
|
|
10007
10162
|
tools: [...FACEBOOK_TOOLS],
|
|
10008
10163
|
oauth,
|
|
10009
10164
|
async onInit(_client) {
|
|
10010
|
-
|
|
10165
|
+
logger90.debug("Facebook integration initialized");
|
|
10011
10166
|
},
|
|
10012
10167
|
async onAfterConnect(_client) {
|
|
10013
|
-
|
|
10168
|
+
logger90.debug("Facebook integration connected");
|
|
10014
10169
|
}
|
|
10015
10170
|
};
|
|
10016
10171
|
}
|
|
@@ -10041,7 +10196,7 @@ function ga4Integration(config = {}) {
|
|
|
10041
10196
|
}
|
|
10042
10197
|
// src/integrations/resend.ts
|
|
10043
10198
|
init_logger();
|
|
10044
|
-
var
|
|
10199
|
+
var logger91 = createLogger("Resend");
|
|
10045
10200
|
var RESEND_TOOLS = [
|
|
10046
10201
|
"resend_list_domains",
|
|
10047
10202
|
"resend_get_domain",
|
|
@@ -10066,10 +10221,10 @@ function resendIntegration(options = {}) {
|
|
|
10066
10221
|
return { Authorization: `Bearer ${apiKey}` };
|
|
10067
10222
|
},
|
|
10068
10223
|
async onInit(_client) {
|
|
10069
|
-
|
|
10224
|
+
logger91.debug("Resend integration initialized");
|
|
10070
10225
|
},
|
|
10071
10226
|
async onAfterConnect(_client) {
|
|
10072
|
-
|
|
10227
|
+
logger91.debug("Resend integration connected");
|
|
10073
10228
|
}
|
|
10074
10229
|
};
|
|
10075
10230
|
}
|
|
@@ -10093,7 +10248,7 @@ function tldrawIntegration(options = {}) {
|
|
|
10093
10248
|
}
|
|
10094
10249
|
// src/integrations/workday.ts
|
|
10095
10250
|
init_logger();
|
|
10096
|
-
var
|
|
10251
|
+
var logger92 = createLogger("Workday");
|
|
10097
10252
|
var WORKDAY_TOOLS = [
|
|
10098
10253
|
"workday_list_workers",
|
|
10099
10254
|
"workday_get_worker"
|
|
@@ -10118,16 +10273,16 @@ function workdayIntegration(config = {}) {
|
|
|
10118
10273
|
tools: [...WORKDAY_TOOLS],
|
|
10119
10274
|
oauth,
|
|
10120
10275
|
async onInit(_client) {
|
|
10121
|
-
|
|
10276
|
+
logger92.debug("Workday integration initialized");
|
|
10122
10277
|
},
|
|
10123
10278
|
async onAfterConnect(_client) {
|
|
10124
|
-
|
|
10279
|
+
logger92.debug("Workday integration connected");
|
|
10125
10280
|
}
|
|
10126
10281
|
};
|
|
10127
10282
|
}
|
|
10128
10283
|
// src/integrations/workos.ts
|
|
10129
10284
|
init_logger();
|
|
10130
|
-
var
|
|
10285
|
+
var logger93 = createLogger("WorkOS");
|
|
10131
10286
|
var WORKOS_TOOLS = [
|
|
10132
10287
|
"workos_list_organizations",
|
|
10133
10288
|
"workos_get_organization",
|
|
@@ -10160,10 +10315,10 @@ function workosIntegration(options = {}) {
|
|
|
10160
10315
|
};
|
|
10161
10316
|
},
|
|
10162
10317
|
async onInit(_client) {
|
|
10163
|
-
|
|
10318
|
+
logger93.debug("WorkOS integration initialized");
|
|
10164
10319
|
},
|
|
10165
10320
|
async onAfterConnect(_client) {
|
|
10166
|
-
|
|
10321
|
+
logger93.debug("WorkOS integration connected");
|
|
10167
10322
|
}
|
|
10168
10323
|
};
|
|
10169
10324
|
}
|
|
@@ -16370,7 +16525,7 @@ function convertJsonSchemaToGoogleSchema(jsonSchema, TypeEnum) {
|
|
|
16370
16525
|
}
|
|
16371
16526
|
// src/server.ts
|
|
16372
16527
|
var SERVER_LOG_CONTEXT3 = "server";
|
|
16373
|
-
var
|
|
16528
|
+
var logger96 = createLogger("MCPServer", SERVER_LOG_CONTEXT3);
|
|
16374
16529
|
async function refreshTokenIfNeeded(provider, tokenData, providers, config, context) {
|
|
16375
16530
|
const credentials = providers[provider];
|
|
16376
16531
|
if (!credentials || !config.serverUrl) {
|
|
@@ -16392,9 +16547,9 @@ async function refreshTokenIfNeeded(provider, tokenData, providers, config, cont
|
|
|
16392
16547
|
});
|
|
16393
16548
|
} catch (err) {
|
|
16394
16549
|
if (err instanceof RefreshRejectedError) {
|
|
16395
|
-
|
|
16550
|
+
logger96.warn(`[Token Refresh] Refresh token rejected for ${provider}; integration marked disconnected.`);
|
|
16396
16551
|
} else {
|
|
16397
|
-
|
|
16552
|
+
logger96.warn(`[Token Refresh] Failed to refresh ${provider} token: ${err.message}`);
|
|
16398
16553
|
}
|
|
16399
16554
|
return tokenData.accessToken;
|
|
16400
16555
|
}
|
|
@@ -16504,7 +16659,7 @@ function createMCPServer(config) {
|
|
|
16504
16659
|
if (integration.oauth) {
|
|
16505
16660
|
const { clientId, clientSecret, redirectUri: integrationRedirectUri, config: oauthConfig } = integration.oauth;
|
|
16506
16661
|
if (!clientId || !clientSecret) {
|
|
16507
|
-
|
|
16662
|
+
logger96.warn(`Warning: Integration "${integration.id}" is missing OAuth credentials. ` + `Provide clientId and clientSecret in the integration configuration.`);
|
|
16508
16663
|
return integration;
|
|
16509
16664
|
}
|
|
16510
16665
|
const redirectUri = integrationRedirectUri || config.redirectUri || getDefaultRedirectUri();
|
|
@@ -16684,7 +16839,7 @@ function createMCPServer(config) {
|
|
|
16684
16839
|
}
|
|
16685
16840
|
return response2;
|
|
16686
16841
|
} catch (error) {
|
|
16687
|
-
|
|
16842
|
+
logger96.error("[MCP Tool Call] Error:", error);
|
|
16688
16843
|
return Response.json({ error: error.message || "Failed to execute tool call" }, { status: error.statusCode || 500 });
|
|
16689
16844
|
}
|
|
16690
16845
|
}
|
|
@@ -16733,7 +16888,7 @@ function createMCPServer(config) {
|
|
|
16733
16888
|
});
|
|
16734
16889
|
return Response.json(result, { status: result.success ? 200 : 500 });
|
|
16735
16890
|
} catch (error) {
|
|
16736
|
-
|
|
16891
|
+
logger96.error("[Code Mode] Error:", error);
|
|
16737
16892
|
return Response.json({ error: error?.message || "Failed to execute code" }, { status: 500 });
|
|
16738
16893
|
}
|
|
16739
16894
|
}
|
|
@@ -16791,7 +16946,7 @@ function createMCPServer(config) {
|
|
|
16791
16946
|
error: executionResult.error
|
|
16792
16947
|
});
|
|
16793
16948
|
} catch (error) {
|
|
16794
|
-
|
|
16949
|
+
logger96.error("[Trigger Notify] Error:", error);
|
|
16795
16950
|
return Response.json({ error: error.message || "Failed to execute trigger" }, { status: 500 });
|
|
16796
16951
|
}
|
|
16797
16952
|
}
|
|
@@ -16855,7 +17010,7 @@ function createMCPServer(config) {
|
|
|
16855
17010
|
})
|
|
16856
17011
|
});
|
|
16857
17012
|
} catch (scheduleError) {
|
|
16858
|
-
|
|
17013
|
+
logger96.error("[Trigger] Failed to register with scheduler:", scheduleError);
|
|
16859
17014
|
}
|
|
16860
17015
|
return Response.json(created, { status: 201 });
|
|
16861
17016
|
}
|
|
@@ -16890,7 +17045,7 @@ function createMCPServer(config) {
|
|
|
16890
17045
|
body: JSON.stringify({ triggerId })
|
|
16891
17046
|
});
|
|
16892
17047
|
} catch (error) {
|
|
16893
|
-
|
|
17048
|
+
logger96.error("[Trigger] Failed to pause in scheduler:", error);
|
|
16894
17049
|
}
|
|
16895
17050
|
return Response.json(updated);
|
|
16896
17051
|
} else if (subAction === "resume" && method === "POST") {
|
|
@@ -16918,7 +17073,7 @@ function createMCPServer(config) {
|
|
|
16918
17073
|
body: JSON.stringify({ triggerId })
|
|
16919
17074
|
});
|
|
16920
17075
|
} catch (error) {
|
|
16921
|
-
|
|
17076
|
+
logger96.error("[Trigger] Failed to resume in scheduler:", error);
|
|
16922
17077
|
}
|
|
16923
17078
|
return Response.json(updated);
|
|
16924
17079
|
} else if (subAction === "run" && method === "POST") {
|
|
@@ -16989,7 +17144,7 @@ function createMCPServer(config) {
|
|
|
16989
17144
|
})
|
|
16990
17145
|
});
|
|
16991
17146
|
} catch (error) {
|
|
16992
|
-
|
|
17147
|
+
logger96.error("[Trigger] Failed to update scheduler:", error);
|
|
16993
17148
|
}
|
|
16994
17149
|
}
|
|
16995
17150
|
return Response.json(updated);
|
|
@@ -17006,14 +17161,14 @@ function createMCPServer(config) {
|
|
|
17006
17161
|
body: JSON.stringify({ triggerId })
|
|
17007
17162
|
});
|
|
17008
17163
|
} catch (error) {
|
|
17009
|
-
|
|
17164
|
+
logger96.error("[Trigger] Failed to unregister from scheduler:", error);
|
|
17010
17165
|
}
|
|
17011
17166
|
return new Response(null, { status: 204 });
|
|
17012
17167
|
}
|
|
17013
17168
|
}
|
|
17014
17169
|
return Response.json({ error: "Invalid trigger route or method" }, { status: 404 });
|
|
17015
17170
|
} catch (error) {
|
|
17016
|
-
|
|
17171
|
+
logger96.error("[Trigger] Error:", error);
|
|
17017
17172
|
return Response.json({ error: error.message || "Failed to process trigger request" }, { status: error.statusCode || 500 });
|
|
17018
17173
|
}
|
|
17019
17174
|
}
|
|
@@ -17039,11 +17194,11 @@ function createMCPServer(config) {
|
|
|
17039
17194
|
const errorRedirectUrl = "/auth-error";
|
|
17040
17195
|
if (error) {
|
|
17041
17196
|
const errorMsg = errorDescription || error;
|
|
17042
|
-
|
|
17197
|
+
logger96.error("[OAuth Redirect] Error:", errorMsg);
|
|
17043
17198
|
return Response.redirect(new URL(`${errorRedirectUrl}?error=${encodeURIComponent(errorMsg)}`, webRequest.url));
|
|
17044
17199
|
}
|
|
17045
17200
|
if (!code || !state) {
|
|
17046
|
-
|
|
17201
|
+
logger96.error("[OAuth Redirect] Missing code or state parameter");
|
|
17047
17202
|
return Response.redirect(new URL(`${errorRedirectUrl}?error=${encodeURIComponent("Invalid OAuth callback")}`, webRequest.url));
|
|
17048
17203
|
}
|
|
17049
17204
|
let returnUrl = defaultRedirectUrl;
|
|
@@ -17120,7 +17275,7 @@ function createMCPServer(config) {
|
|
|
17120
17275
|
frontendUrl.hash = `oauth_callback=${encodeURIComponent(JSON.stringify({ code, state, tokenData }))}`;
|
|
17121
17276
|
return Response.redirect(frontendUrl);
|
|
17122
17277
|
} catch (error2) {
|
|
17123
|
-
|
|
17278
|
+
logger96.error("[OAuth Backend Callback] Error:", error2);
|
|
17124
17279
|
return Response.redirect(new URL(`${errorRedirectUrl}?error=${encodeURIComponent(error2.message || "Failed to exchange token")}`, webRequest.url));
|
|
17125
17280
|
}
|
|
17126
17281
|
} else {
|
|
@@ -17423,6 +17578,7 @@ export {
|
|
|
17423
17578
|
tldrawIntegration,
|
|
17424
17579
|
tiktokIntegration,
|
|
17425
17580
|
threadsIntegration,
|
|
17581
|
+
telegramIntegration,
|
|
17426
17582
|
teamsIntegration,
|
|
17427
17583
|
svelteKitHandler,
|
|
17428
17584
|
supabaseIntegration,
|
|
@@ -17469,6 +17625,7 @@ export {
|
|
|
17469
17625
|
granolaIntegration,
|
|
17470
17626
|
gmeetIntegration,
|
|
17471
17627
|
gmailIntegration,
|
|
17628
|
+
gkeepIntegration,
|
|
17472
17629
|
gitlabIntegration,
|
|
17473
17630
|
githubIntegration,
|
|
17474
17631
|
getVercelAITools,
|
|
@@ -17510,6 +17667,7 @@ export {
|
|
|
17510
17667
|
calcomIntegration,
|
|
17511
17668
|
buildPhantomBrowseDeeplink,
|
|
17512
17669
|
buildCodeModeTool,
|
|
17670
|
+
boxIntegration,
|
|
17513
17671
|
binanceIntegration,
|
|
17514
17672
|
betterstackIntegration,
|
|
17515
17673
|
awsIntegration,
|