@togglhq/mcp 1.13.331 → 1.13.332
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-Bzk2BEyp.js → src-C9T7oUwb.js} +36 -3
- package/package.json +1 -1
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-
|
|
2
|
+
import { a as PUBLIC_SENTRY_PRIVACY_OPTIONS, c as initProductAnalytics, d as shutdownProductAnalytics, i as runMcpCli, l as resolveProductAnalyticsDistinctId, o as captureToolInvocation, s as getProductAnalyticsDistinctId, u as resolvePublicSentryDsn } from "./src-C9T7oUwb.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.13.
|
|
165
|
+
const packageVersion = "1.13.332";
|
|
166
166
|
let sentryEnabled = false;
|
|
167
167
|
let productAnalyticsEnabled = false;
|
|
168
168
|
runMcpCli({
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-
|
|
2
|
+
import { i as runMcpCli, n as MCP_MAX_TOOL_INPUT_ELEMENTS, r as bootstrapServer, t as MCP_CACHE_TTL_MS } from "./src-C9T7oUwb.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -38493,6 +38493,12 @@ async function bulkEditTimeEntriesWithOrg(httpClient, organization_id, workspace
|
|
|
38493
38493
|
if ([204, 205].includes(response.status)) return null;
|
|
38494
38494
|
return response.json();
|
|
38495
38495
|
}
|
|
38496
|
+
async function retimeDraftTimeEntriesWithOrg(httpClient, organization_id, workspace_id, data, signal) {
|
|
38497
|
+
return (await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk/drafts`, {
|
|
38498
|
+
signal,
|
|
38499
|
+
json: data
|
|
38500
|
+
})).json();
|
|
38501
|
+
}
|
|
38496
38502
|
async function bulkRestoreTimeEntryWithOrg(httpClient, organization_id, workspace_id, ids, signal) {
|
|
38497
38503
|
const response = await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/time-entries/bulk/restore`, {
|
|
38498
38504
|
signal,
|
|
@@ -57717,6 +57723,33 @@ const generatedFocusOperations = [
|
|
|
57717
57723
|
]));
|
|
57718
57724
|
}
|
|
57719
57725
|
},
|
|
57726
|
+
{
|
|
57727
|
+
id: "focus.time-entries.retime-draft",
|
|
57728
|
+
family: "focus",
|
|
57729
|
+
resource: "time-entries",
|
|
57730
|
+
action: "retime-draft",
|
|
57731
|
+
title: "Retime Draft Time Entries",
|
|
57732
|
+
description: "Retime Draft Time Entries.",
|
|
57733
|
+
safety: "update",
|
|
57734
|
+
destructive: false,
|
|
57735
|
+
cli: {
|
|
57736
|
+
group: ["time-entries"],
|
|
57737
|
+
command: "retime-draft",
|
|
57738
|
+
interactive: "hidden"
|
|
57739
|
+
},
|
|
57740
|
+
mcp: { entityTool: "time-entries" },
|
|
57741
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
|
|
57742
|
+
execute: (input, { client }) => {
|
|
57743
|
+
const data = input;
|
|
57744
|
+
return client.runGeneratedRequest("retimeDraftTimeEntriesWithOrg", () => callGeneratedRequest(retimeDraftTimeEntriesWithOrg, [
|
|
57745
|
+
client.httpClient,
|
|
57746
|
+
client.organizationId,
|
|
57747
|
+
client.workspaceIdNumber,
|
|
57748
|
+
data.payload ?? data.data ?? data,
|
|
57749
|
+
void 0
|
|
57750
|
+
]));
|
|
57751
|
+
}
|
|
57752
|
+
},
|
|
57720
57753
|
{
|
|
57721
57754
|
id: "focus.time-entries.set-day-duration",
|
|
57722
57755
|
family: "focus",
|
|
@@ -61929,7 +61962,7 @@ function registerWorkspaceTools(server) {
|
|
|
61929
61962
|
//#region src/package-version.ts
|
|
61930
61963
|
function mcpPackageVersion() {
|
|
61931
61964
|
try {
|
|
61932
|
-
return "1.13.
|
|
61965
|
+
return "1.13.332";
|
|
61933
61966
|
} catch {
|
|
61934
61967
|
return "unknown";
|
|
61935
61968
|
}
|
|
@@ -62111,7 +62144,7 @@ import_main.default.config({
|
|
|
62111
62144
|
quiet: true,
|
|
62112
62145
|
ignore: ["MISSING_ENV_FILE"]
|
|
62113
62146
|
});
|
|
62114
|
-
const packageVersion = "1.13.
|
|
62147
|
+
const packageVersion = "1.13.332";
|
|
62115
62148
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
62116
62149
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
62117
62150
|
function resolvePublicUrls() {
|
|
@@ -62231,4 +62264,4 @@ function bootstrapServer(options = {}) {
|
|
|
62231
62264
|
//#endregion
|
|
62232
62265
|
export { PUBLIC_SENTRY_PRIVACY_OPTIONS as a, initProductAnalytics as c, shutdownProductAnalytics as d, runMcpCli as i, resolveProductAnalyticsDistinctId as l, MCP_MAX_TOOL_INPUT_ELEMENTS as n, captureToolInvocation as o, bootstrapServer as r, getProductAnalyticsDistinctId as s, MCP_CACHE_TTL_MS as t, resolvePublicSentryDsn as u };
|
|
62233
62266
|
|
|
62234
|
-
//# sourceMappingURL=src-
|
|
62267
|
+
//# sourceMappingURL=src-C9T7oUwb.js.map
|