@kadoa/mcp 0.5.32 → 0.5.33
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 +26 -147
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -36563,29 +36563,6 @@ function buildAgenticPrompt2(params) {
|
|
|
36563
36563
|
}
|
|
36564
36564
|
return `extract all records from this page and return these fields: ${fieldList}`;
|
|
36565
36565
|
}
|
|
36566
|
-
function mapInboxItem(item) {
|
|
36567
|
-
return {
|
|
36568
|
-
id: item.id,
|
|
36569
|
-
type: knownInboxItemTypes[item.type] ?? item.type,
|
|
36570
|
-
subjectId: item.subjectId,
|
|
36571
|
-
workflowId: item.workflowId,
|
|
36572
|
-
title: item.title,
|
|
36573
|
-
payload: item.payload,
|
|
36574
|
-
isRead: item.isRead,
|
|
36575
|
-
readAt: item.readAt,
|
|
36576
|
-
createdAt: item.createdAt,
|
|
36577
|
-
updatedAt: item.updatedAt
|
|
36578
|
-
};
|
|
36579
|
-
}
|
|
36580
|
-
function mapInboxListResponse(response) {
|
|
36581
|
-
return {
|
|
36582
|
-
unreadCount: response.data.unreadCount,
|
|
36583
|
-
items: response.data.items.map(mapInboxItem)
|
|
36584
|
-
};
|
|
36585
|
-
}
|
|
36586
|
-
function mapInboxMarkReadResponse(response) {
|
|
36587
|
-
return { readCount: response.data.readCount };
|
|
36588
|
-
}
|
|
36589
36566
|
function validateEmailChannelConfig(config) {
|
|
36590
36567
|
const issues = [];
|
|
36591
36568
|
if (!config.recipients?.length) {
|
|
@@ -36748,7 +36725,6 @@ function createClientDomains(params) {
|
|
|
36748
36725
|
const { client } = params;
|
|
36749
36726
|
const assistantService = new AssistantService(client.apis.agent);
|
|
36750
36727
|
const changesService = new ChangesService(client);
|
|
36751
|
-
const inboxService = new InboxService(client.apis.inbox);
|
|
36752
36728
|
const userService = new UserService(client);
|
|
36753
36729
|
const dataFetcherService = new DataFetcherService(client.apis.workflows);
|
|
36754
36730
|
const channelsService = new NotificationChannelsService(client.apis.notifications, userService);
|
|
@@ -36778,7 +36754,6 @@ function createClientDomains(params) {
|
|
|
36778
36754
|
extraction: extractionService,
|
|
36779
36755
|
workflow: workflowsCoreService,
|
|
36780
36756
|
notification,
|
|
36781
|
-
inbox: inboxService,
|
|
36782
36757
|
schema: schemasService,
|
|
36783
36758
|
scrape: scrapeService,
|
|
36784
36759
|
user: userService,
|
|
@@ -36967,8 +36942,8 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
36967
36942
|
return needsSerialization ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
36968
36943
|
}, toPathString = function(url) {
|
|
36969
36944
|
return url.pathname + url.search + url.hash;
|
|
36970
|
-
}, createRequestFunction = function(axiosArgs,
|
|
36971
|
-
return (axios2 =
|
|
36945
|
+
}, createRequestFunction = function(axiosArgs, globalAxios12, BASE_PATH2, configuration) {
|
|
36946
|
+
return (axios2 = globalAxios12, basePath = BASE_PATH2) => {
|
|
36972
36947
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
36973
36948
|
return axios2.request(axiosRequestArgs);
|
|
36974
36949
|
};
|
|
@@ -38290,67 +38265,7 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
38290
38265
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
38291
38266
|
}
|
|
38292
38267
|
};
|
|
38293
|
-
}, DataValidationApi,
|
|
38294
|
-
return {
|
|
38295
|
-
v5InboxList: async (options = {}) => {
|
|
38296
|
-
const localVarPath = `/v5/inbox`;
|
|
38297
|
-
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
38298
|
-
let baseOptions;
|
|
38299
|
-
if (configuration) {
|
|
38300
|
-
baseOptions = configuration.baseOptions;
|
|
38301
|
-
}
|
|
38302
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
38303
|
-
const localVarHeaderParameter = {};
|
|
38304
|
-
const localVarQueryParameter = {};
|
|
38305
|
-
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
38306
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
38307
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38308
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38309
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
38310
|
-
return {
|
|
38311
|
-
url: toPathString(localVarUrlObj),
|
|
38312
|
-
options: localVarRequestOptions
|
|
38313
|
-
};
|
|
38314
|
-
},
|
|
38315
|
-
v5InboxMarkRead: async (itemId, options = {}) => {
|
|
38316
|
-
assertParamExists("v5InboxMarkRead", "itemId", itemId);
|
|
38317
|
-
const localVarPath = `/v5/inbox/{itemId}/mark-read`.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
38318
|
-
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
38319
|
-
let baseOptions;
|
|
38320
|
-
if (configuration) {
|
|
38321
|
-
baseOptions = configuration.baseOptions;
|
|
38322
|
-
}
|
|
38323
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
38324
|
-
const localVarHeaderParameter = {};
|
|
38325
|
-
const localVarQueryParameter = {};
|
|
38326
|
-
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
38327
|
-
localVarHeaderParameter["Accept"] = "application/json";
|
|
38328
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38329
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38330
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
38331
|
-
return {
|
|
38332
|
-
url: toPathString(localVarUrlObj),
|
|
38333
|
-
options: localVarRequestOptions
|
|
38334
|
-
};
|
|
38335
|
-
}
|
|
38336
|
-
};
|
|
38337
|
-
}, InboxApiFp = function(configuration) {
|
|
38338
|
-
const localVarAxiosParamCreator = InboxApiAxiosParamCreator(configuration);
|
|
38339
|
-
return {
|
|
38340
|
-
async v5InboxList(options) {
|
|
38341
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v5InboxList(options);
|
|
38342
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
38343
|
-
const localVarOperationServerBasePath = operationServerMap["InboxApi.v5InboxList"]?.[localVarOperationServerIndex]?.url;
|
|
38344
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
38345
|
-
},
|
|
38346
|
-
async v5InboxMarkRead(itemId, options) {
|
|
38347
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v5InboxMarkRead(itemId, options);
|
|
38348
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
38349
|
-
const localVarOperationServerBasePath = operationServerMap["InboxApi.v5InboxMarkRead"]?.[localVarOperationServerIndex]?.url;
|
|
38350
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
38351
|
-
}
|
|
38352
|
-
};
|
|
38353
|
-
}, InboxApi, MeApiAxiosParamCreator = function(configuration) {
|
|
38268
|
+
}, DataValidationApi, MeApiAxiosParamCreator = function(configuration) {
|
|
38354
38269
|
return {
|
|
38355
38270
|
v4MeFeaturesGet: async (options = {}) => {
|
|
38356
38271
|
const localVarPath = `/v4/me/features`;
|
|
@@ -39891,7 +39806,7 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
39891
39806
|
options: localVarRequestOptions
|
|
39892
39807
|
};
|
|
39893
39808
|
},
|
|
39894
|
-
v4WorkflowsGet: async (search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options = {}) => {
|
|
39809
|
+
v4WorkflowsGet: async (search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, groupWindows, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options = {}) => {
|
|
39895
39810
|
const localVarPath = `/v4/workflows`;
|
|
39896
39811
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
39897
39812
|
let baseOptions;
|
|
@@ -39929,6 +39844,9 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
39929
39844
|
if (statusFilters) {
|
|
39930
39845
|
localVarQueryParameter["statusFilters"] = statusFilters;
|
|
39931
39846
|
}
|
|
39847
|
+
if (groupWindows !== undefined) {
|
|
39848
|
+
localVarQueryParameter["groupWindows"] = groupWindows;
|
|
39849
|
+
}
|
|
39932
39850
|
if (userId) {
|
|
39933
39851
|
localVarQueryParameter["userId"] = userId;
|
|
39934
39852
|
}
|
|
@@ -40633,8 +40551,8 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
40633
40551
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsBulkPost"]?.[localVarOperationServerIndex]?.url;
|
|
40634
40552
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
40635
40553
|
},
|
|
40636
|
-
async v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options) {
|
|
40637
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options);
|
|
40554
|
+
async v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, groupWindows, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options) {
|
|
40555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, statusFilters, groupWindows, userId, channelId, monitoring, updateInterval, scheduleType, templateId, includeDeleted, format, options);
|
|
40638
40556
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40639
40557
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
40640
40558
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -40799,7 +40717,7 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
40799
40717
|
const jsonMime = new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
|
|
40800
40718
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json");
|
|
40801
40719
|
}
|
|
40802
|
-
}, DataFieldDataTypeEnum,
|
|
40720
|
+
}, DataFieldDataTypeEnum, CrawlerConfigService = class {
|
|
40803
40721
|
constructor(client) {
|
|
40804
40722
|
this.client = client;
|
|
40805
40723
|
}
|
|
@@ -41562,18 +41480,6 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
41562
41480
|
}
|
|
41563
41481
|
return typeof error.message === "string" ? error.message.includes(BUILD_NOT_READY_ERROR) : false;
|
|
41564
41482
|
}
|
|
41565
|
-
}, InboxItemType, knownInboxItemTypes, InboxService = class {
|
|
41566
|
-
constructor(inboxApi) {
|
|
41567
|
-
this.inboxApi = inboxApi;
|
|
41568
|
-
}
|
|
41569
|
-
async list() {
|
|
41570
|
-
const response = await this.inboxApi.v5InboxList();
|
|
41571
|
-
return mapInboxListResponse(response.data);
|
|
41572
|
-
}
|
|
41573
|
-
async markRead(itemId) {
|
|
41574
|
-
const response = await this.inboxApi.v5InboxMarkRead({ itemId });
|
|
41575
|
-
return mapInboxMarkReadResponse(response.data);
|
|
41576
|
-
}
|
|
41577
41483
|
}, NotificationChannelType, EMAIL_REGEX, _NotificationChannelsService = class _NotificationChannelsService {
|
|
41578
41484
|
constructor(notificationsApi, userService) {
|
|
41579
41485
|
this.api = notificationsApi;
|
|
@@ -41900,7 +41806,7 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
41900
41806
|
}));
|
|
41901
41807
|
return channels;
|
|
41902
41808
|
}
|
|
41903
|
-
}, PUBLIC_API_URI, WSS_API_URI, REALTIME_API_URI, SDK_VERSION = "0.
|
|
41809
|
+
}, PUBLIC_API_URI, WSS_API_URI, REALTIME_API_URI, SDK_VERSION = "0.42.0", SDK_NAME = "kadoa-node-sdk", SDK_LANGUAGE = "node", debug6, isDrainControlMessage = (message) => message.type === "control.draining", isRealtimeEvent = (message) => message.type !== "heartbeat" && message.type !== "control.draining", _Realtime = class _Realtime {
|
|
41904
41810
|
constructor(config) {
|
|
41905
41811
|
this.drainingSockets = /* @__PURE__ */ new Set;
|
|
41906
41812
|
this.lastHeartbeat = Date.now();
|
|
@@ -42693,7 +42599,7 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
42693
42599
|
variableId
|
|
42694
42600
|
});
|
|
42695
42601
|
}
|
|
42696
|
-
}, JobStateEnum, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES2, debug9, WorkflowsCoreService = class {
|
|
42602
|
+
}, JobStateEnum, WorkflowStatusFilter, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES2, debug9, WorkflowsCoreService = class {
|
|
42697
42603
|
constructor(workflowsApi) {
|
|
42698
42604
|
this.workflowsApi = workflowsApi;
|
|
42699
42605
|
}
|
|
@@ -42948,9 +42854,6 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
42948
42854
|
get notifications() {
|
|
42949
42855
|
return this.get(NotificationsApi);
|
|
42950
42856
|
}
|
|
42951
|
-
get inbox() {
|
|
42952
|
-
return this.get(InboxApi);
|
|
42953
|
-
}
|
|
42954
42857
|
get templates() {
|
|
42955
42858
|
return this.get(TemplatesApi);
|
|
42956
42859
|
}
|
|
@@ -42990,7 +42893,6 @@ var import_debug, __require2, FREEFORM_ASSISTANT_ANSWER_KEY = "_freeform", Kadoa
|
|
|
42990
42893
|
this.schema = domains.schema;
|
|
42991
42894
|
this.scrape = domains.scrape;
|
|
42992
42895
|
this.notification = domains.notification;
|
|
42993
|
-
this.inbox = domains.inbox;
|
|
42994
42896
|
this.template = domains.template;
|
|
42995
42897
|
this.validation = domains.validation;
|
|
42996
42898
|
this.variable = domains.variable;
|
|
@@ -43440,14 +43342,6 @@ var init_dist2 = __esm(() => {
|
|
|
43440
43342
|
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(requestParameters.workflowId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
43441
43343
|
}
|
|
43442
43344
|
};
|
|
43443
|
-
InboxApi = class extends BaseAPI {
|
|
43444
|
-
v5InboxList(options) {
|
|
43445
|
-
return InboxApiFp(this.configuration).v5InboxList(options).then((request) => request(this.axios, this.basePath));
|
|
43446
|
-
}
|
|
43447
|
-
v5InboxMarkRead(requestParameters, options) {
|
|
43448
|
-
return InboxApiFp(this.configuration).v5InboxMarkRead(requestParameters.itemId, options).then((request) => request(this.axios, this.basePath));
|
|
43449
|
-
}
|
|
43450
|
-
};
|
|
43451
43345
|
MeApi = class extends BaseAPI {
|
|
43452
43346
|
v4MeFeaturesGet(options) {
|
|
43453
43347
|
return MeApiFp(this.configuration).v4MeFeaturesGet(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -43629,7 +43523,7 @@ var init_dist2 = __esm(() => {
|
|
|
43629
43523
|
return WorkflowsApiFp(this.configuration).v4WorkflowsBulkPost(requestParameters.v4WorkflowsBulkPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
43630
43524
|
}
|
|
43631
43525
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
43632
|
-
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.runState, requestParameters.displayState, requestParameters.inSupport, requestParameters.tags, requestParameters.statusFilters, requestParameters.userId, requestParameters.channelId, requestParameters.monitoring, requestParameters.updateInterval, requestParameters.scheduleType, requestParameters.templateId, requestParameters.includeDeleted, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
43526
|
+
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.runState, requestParameters.displayState, requestParameters.inSupport, requestParameters.tags, requestParameters.statusFilters, requestParameters.groupWindows, requestParameters.userId, requestParameters.channelId, requestParameters.monitoring, requestParameters.updateInterval, requestParameters.scheduleType, requestParameters.templateId, requestParameters.includeDeleted, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
43633
43527
|
}
|
|
43634
43528
|
v4WorkflowsPost(requestParameters = {}, options) {
|
|
43635
43529
|
return WorkflowsApiFp(this.configuration).v4WorkflowsPost(requestParameters.createWorkflowBody, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -43713,11 +43607,6 @@ var init_dist2 = __esm(() => {
|
|
|
43713
43607
|
Object: "OBJECT",
|
|
43714
43608
|
Array: "ARRAY"
|
|
43715
43609
|
};
|
|
43716
|
-
InboxItemTypeEnum = {
|
|
43717
|
-
ShellyQuestion: "shelly_question",
|
|
43718
|
-
DataQualityIssues: "data_quality_issues",
|
|
43719
|
-
SampleDataReady: "sample_data_ready"
|
|
43720
|
-
};
|
|
43721
43610
|
CanonicalSchemaFieldDataType = {
|
|
43722
43611
|
String: DataFieldDataTypeEnum.String,
|
|
43723
43612
|
Number: DataFieldDataTypeEnum.Number,
|
|
@@ -43776,16 +43665,6 @@ This is the main page content.`
|
|
|
43776
43665
|
};
|
|
43777
43666
|
debug4 = logger.extraction;
|
|
43778
43667
|
TERMINAL_RUN_STATES = /* @__PURE__ */ new Set(["FINISHED", "SUCCESS", "FAILED", "ERROR", "STOPPED", "CANCELLED"]);
|
|
43779
|
-
InboxItemType = {
|
|
43780
|
-
AssistantQuestion: InboxItemTypeEnum.ShellyQuestion,
|
|
43781
|
-
DataQualityIssues: InboxItemTypeEnum.DataQualityIssues,
|
|
43782
|
-
PreviewDataReady: InboxItemTypeEnum.SampleDataReady
|
|
43783
|
-
};
|
|
43784
|
-
knownInboxItemTypes = {
|
|
43785
|
-
[InboxItemTypeEnum.ShellyQuestion]: InboxItemType.AssistantQuestion,
|
|
43786
|
-
[InboxItemTypeEnum.DataQualityIssues]: InboxItemType.DataQualityIssues,
|
|
43787
|
-
[InboxItemTypeEnum.SampleDataReady]: InboxItemType.PreviewDataReady
|
|
43788
|
-
};
|
|
43789
43668
|
NotificationChannelType = {
|
|
43790
43669
|
EMAIL: "EMAIL",
|
|
43791
43670
|
SLACK: "SLACK",
|
|
@@ -43823,6 +43702,15 @@ This is the main page content.`
|
|
|
43823
43702
|
NotSupported: "NOT_SUPPORTED",
|
|
43824
43703
|
FailedInsufficientFunds: "FAILED_INSUFFICIENT_FUNDS"
|
|
43825
43704
|
};
|
|
43705
|
+
WorkflowStatusFilter = {
|
|
43706
|
+
Attention: "group:attention",
|
|
43707
|
+
Working: "group:working",
|
|
43708
|
+
Support: "group:support",
|
|
43709
|
+
Failed: "group:failed",
|
|
43710
|
+
Active: "group:active",
|
|
43711
|
+
Complete: "group:complete",
|
|
43712
|
+
Paused: "group:paused"
|
|
43713
|
+
};
|
|
43826
43714
|
TERMINAL_JOB_STATES = /* @__PURE__ */ new Set([
|
|
43827
43715
|
JobStateEnum.Finished,
|
|
43828
43716
|
JobStateEnum.Failed,
|
|
@@ -44720,7 +44608,7 @@ function registerTools(server, ctx, capabilities) {
|
|
|
44720
44608
|
monitoring: preprocess(coerceBoolean(), boolean2()).optional().describe("Filter by monitoring/real-time status"),
|
|
44721
44609
|
updateInterval: _enum(["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "REAL_TIME"]).optional().describe("Filter by scheduled update frequency or realtime workflows"),
|
|
44722
44610
|
templateId: string2().optional().describe("Filter to workflows instantiated from this template ID"),
|
|
44723
|
-
statusFilters: array(_enum(
|
|
44611
|
+
statusFilters: array(_enum(Object.values(WorkflowStatusFilter))).optional().describe("Dashboard category filters. group:attention = workflows waiting on the requesting user (Assistant question, unfinished setup, or preview approval). Other groups: working, support, failed, active, complete, paused.")
|
|
44724
44612
|
},
|
|
44725
44613
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }
|
|
44726
44614
|
}, withErrorHandling("list_workflows", async (args) => {
|
|
@@ -46109,7 +45997,7 @@ function registerTools(server, ctx, capabilities) {
|
|
|
46109
45997
|
});
|
|
46110
45998
|
}));
|
|
46111
45999
|
}
|
|
46112
|
-
var SchemaFieldShape, SchemaValidationAttributionShape, SchemaValidationPresenceRule, SchemaValidationUniquenessRule, SchemaValidationStringLengthRule, SchemaValidationStringFormatRule, SchemaValidationFieldRulesSchema, SchemaValidationRulesSchema, LocationSchema, MonitoringValueOperators, MonitoringValuelessOperators, MonitoringConditionOperatorSchema, MonitoringConditionSchema, MonitoringSchema,
|
|
46000
|
+
var SchemaFieldShape, SchemaValidationAttributionShape, SchemaValidationPresenceRule, SchemaValidationUniquenessRule, SchemaValidationStringLengthRule, SchemaValidationStringFormatRule, SchemaValidationFieldRulesSchema, SchemaValidationRulesSchema, LocationSchema, MonitoringValueOperators, MonitoringValuelessOperators, MonitoringConditionOperatorSchema, MonitoringConditionSchema, MonitoringSchema, RESUMABLE_ASSISTANT_STATUSES, ACTIVE_ASSISTANT_STATUSES, IDLE_ASSISTANT_STATUSES, CLOSED_ASSISTANT_STATUSES, DASHBOARD_BASE_URL = "https://www.kadoa.com", WORKFLOW_AUDIT_WATCHED_KEYS;
|
|
46113
46001
|
var init_tools = __esm(() => {
|
|
46114
46002
|
init_dist2();
|
|
46115
46003
|
init_zod();
|
|
@@ -46284,15 +46172,6 @@ var init_tools = __esm(() => {
|
|
|
46284
46172
|
conditions: preprocess(coerceArray(), array(MonitoringConditionSchema).min(1))
|
|
46285
46173
|
}).strict().optional()
|
|
46286
46174
|
}).strict();
|
|
46287
|
-
WORKFLOW_STATUS_FILTERS = [
|
|
46288
|
-
"group:attention",
|
|
46289
|
-
"group:working",
|
|
46290
|
-
"group:support",
|
|
46291
|
-
"group:failed",
|
|
46292
|
-
"group:active",
|
|
46293
|
-
"group:complete",
|
|
46294
|
-
"group:paused"
|
|
46295
|
-
];
|
|
46296
46175
|
RESUMABLE_ASSISTANT_STATUSES = new Set(["pending", "created", "active", "idle", "inactive", "interrupted"]);
|
|
46297
46176
|
ACTIVE_ASSISTANT_STATUSES = new Set(["pending", "created", "active"]);
|
|
46298
46177
|
IDLE_ASSISTANT_STATUSES = new Set(["idle", "inactive", "interrupted"]);
|
|
@@ -46315,7 +46194,7 @@ var package_default;
|
|
|
46315
46194
|
var init_package = __esm(() => {
|
|
46316
46195
|
package_default = {
|
|
46317
46196
|
name: "@kadoa/mcp",
|
|
46318
|
-
version: "0.5.
|
|
46197
|
+
version: "0.5.33",
|
|
46319
46198
|
description: "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
|
|
46320
46199
|
type: "module",
|
|
46321
46200
|
main: "dist/index.js",
|
|
@@ -46339,7 +46218,7 @@ var init_package = __esm(() => {
|
|
|
46339
46218
|
prepublishOnly: "bun run check-types && bun run test:unit && bun run build"
|
|
46340
46219
|
},
|
|
46341
46220
|
dependencies: {
|
|
46342
|
-
"@kadoa/node-sdk": "^0.
|
|
46221
|
+
"@kadoa/node-sdk": "^0.42.0",
|
|
46343
46222
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
46344
46223
|
express: "^5.2.1",
|
|
46345
46224
|
"express-rate-limit": "^8.2.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kadoa/mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.33",
|
|
4
4
|
"description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepublishOnly": "bun run check-types && bun run test:unit && bun run build"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@kadoa/node-sdk": "^0.
|
|
27
|
+
"@kadoa/node-sdk": "^0.42.0",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
29
29
|
"express": "^5.2.1",
|
|
30
30
|
"express-rate-limit": "^8.2.1",
|