@togglhq/mcp 1.11.88 → 1.11.89
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/build/cli.js +2 -2
- package/build/index.js +1 -1
- package/build/{src-dkhZSWKr.js → src-BnE8Y1Wl.js} +12 -32
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-
|
|
2
|
+
import { a as getProductAnalyticsDistinctId, c as resolvePublicSentryDsn, i as captureToolInvocation, l as shutdownProductAnalytics, n as runMcpCli, o as initProductAnalytics, r as PUBLIC_SENTRY_PRIVACY_OPTIONS, s as resolveProductAnalyticsDistinctId } from "./src-BnE8Y1Wl.js";
|
|
3
3
|
import * as Sentry from "@sentry/node";
|
|
4
4
|
//#region src/analytics-tool-metadata.ts
|
|
5
5
|
/**
|
|
@@ -162,7 +162,7 @@ function wrapServerWithProductAnalytics(server) {
|
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/cli.ts
|
|
165
|
-
const packageVersion = "1.11.
|
|
165
|
+
const packageVersion = "1.11.89";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -32773,10 +32773,6 @@ function _joinExpects$1(values$1, separator) {
|
|
|
32773
32773
|
*/
|
|
32774
32774
|
const ISO_DATE_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
32775
32775
|
/**
|
|
32776
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time regex.
|
|
32777
|
-
*/
|
|
32778
|
-
const ISO_DATE_TIME_REGEX$1 = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3]):[0-5]\d$/u;
|
|
32779
|
-
/**
|
|
32780
32776
|
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp regex. Allows a
|
|
32781
32777
|
* space as a date/time separator and an optional space before the UTC offset.
|
|
32782
32778
|
*/
|
|
@@ -32830,22 +32826,6 @@ function isoDate$1(message$1) {
|
|
|
32830
32826
|
};
|
|
32831
32827
|
}
|
|
32832
32828
|
/* @__NO_SIDE_EFFECTS__ */
|
|
32833
|
-
function isoDateTime$1(message$1) {
|
|
32834
|
-
return {
|
|
32835
|
-
kind: "validation",
|
|
32836
|
-
type: "iso_date_time",
|
|
32837
|
-
reference: isoDateTime$1,
|
|
32838
|
-
async: false,
|
|
32839
|
-
expects: null,
|
|
32840
|
-
requirement: ISO_DATE_TIME_REGEX$1,
|
|
32841
|
-
message: message$1,
|
|
32842
|
-
"~run"(dataset, config$1) {
|
|
32843
|
-
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue$1(this, "date-time", dataset, config$1);
|
|
32844
|
-
return dataset;
|
|
32845
|
-
}
|
|
32846
|
-
};
|
|
32847
|
-
}
|
|
32848
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
32849
32829
|
function isoTimestamp(message$1) {
|
|
32850
32830
|
return {
|
|
32851
32831
|
kind: "validation",
|
|
@@ -38208,7 +38188,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
38208
38188
|
]))
|
|
38209
38189
|
});
|
|
38210
38190
|
//#endregion
|
|
38211
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38191
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
38212
38192
|
async function getInvitations(httpClient, signal) {
|
|
38213
38193
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
38214
38194
|
}
|
|
@@ -38225,7 +38205,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
38225
38205
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
38226
38206
|
}
|
|
38227
38207
|
//#endregion
|
|
38228
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38208
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
38229
38209
|
function buildSearchParams(params, flattenArrays = false) {
|
|
38230
38210
|
const searchParams = new URLSearchParams();
|
|
38231
38211
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -38237,7 +38217,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
38237
38217
|
return searchParams;
|
|
38238
38218
|
}
|
|
38239
38219
|
//#endregion
|
|
38240
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38220
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
38241
38221
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
38242
38222
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
38243
38223
|
}
|
|
@@ -38251,7 +38231,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
38251
38231
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
38252
38232
|
}
|
|
38253
38233
|
//#endregion
|
|
38254
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38234
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
38255
38235
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
38256
38236
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
38257
38237
|
}
|
|
@@ -38260,7 +38240,7 @@ async function getWorkspaceUserMeRoles(httpClient, organization_id, workspace_id
|
|
|
38260
38240
|
}
|
|
38261
38241
|
const WorkingHoursCreateInputSchema = /* @__PURE__ */ object$2({
|
|
38262
38242
|
working_hours: /* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(168)),
|
|
38263
|
-
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */
|
|
38243
|
+
starting_hours: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ maxValue$1(24))),
|
|
38264
38244
|
weekday: /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ minValue$1(0), /* @__PURE__ */ maxValue$1(6)))
|
|
38265
38245
|
});
|
|
38266
38246
|
const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
@@ -38271,7 +38251,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
38271
38251
|
});
|
|
38272
38252
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
38273
38253
|
//#endregion
|
|
38274
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38254
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
38275
38255
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
38276
38256
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
38277
38257
|
signal,
|
|
@@ -38282,12 +38262,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
38282
38262
|
})).json();
|
|
38283
38263
|
}
|
|
38284
38264
|
//#endregion
|
|
38285
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38265
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
38286
38266
|
async function getStatus(httpClient, signal) {
|
|
38287
38267
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
38288
38268
|
}
|
|
38289
38269
|
//#endregion
|
|
38290
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38270
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
38291
38271
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
38292
38272
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
38293
38273
|
signal,
|
|
@@ -38315,7 +38295,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
38315
38295
|
return response.json();
|
|
38316
38296
|
}
|
|
38317
38297
|
//#endregion
|
|
38318
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
38298
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.91_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_reac_6859c486febf661de60aaacac1a2e2a0/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
38319
38299
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
38320
38300
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
38321
38301
|
}
|
|
@@ -54837,7 +54817,7 @@ function registerWorkspaceTools(server) {
|
|
|
54837
54817
|
//#region src/package-version.ts
|
|
54838
54818
|
function mcpPackageVersion() {
|
|
54839
54819
|
try {
|
|
54840
|
-
return "1.11.
|
|
54820
|
+
return "1.11.89";
|
|
54841
54821
|
} catch {
|
|
54842
54822
|
return "unknown";
|
|
54843
54823
|
}
|
|
@@ -55012,7 +54992,7 @@ import_main.default.config({
|
|
|
55012
54992
|
quiet: true,
|
|
55013
54993
|
ignore: ["MISSING_ENV_FILE"]
|
|
55014
54994
|
});
|
|
55015
|
-
const packageVersion = "1.11.
|
|
54995
|
+
const packageVersion = "1.11.89";
|
|
55016
54996
|
function resolvePublicUrls() {
|
|
55017
54997
|
return {
|
|
55018
54998
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -55077,4 +55057,4 @@ function bootstrapServer(options = {}) {
|
|
|
55077
55057
|
//#endregion
|
|
55078
55058
|
export { getProductAnalyticsDistinctId as a, resolvePublicSentryDsn as c, captureToolInvocation as i, shutdownProductAnalytics as l, runMcpCli as n, initProductAnalytics as o, PUBLIC_SENTRY_PRIVACY_OPTIONS as r, resolveProductAnalyticsDistinctId as s, bootstrapServer as t };
|
|
55079
55059
|
|
|
55080
|
-
//# sourceMappingURL=src-
|
|
55060
|
+
//# sourceMappingURL=src-BnE8Y1Wl.js.map
|