@togglhq/mcp 1.13.331 → 1.13.333
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-CISfH3ld.js} +95 -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-CISfH3ld.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.333";
|
|
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-CISfH3ld.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,
|
|
@@ -43018,6 +43024,15 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
43018
43024
|
}
|
|
43019
43025
|
//#endregion
|
|
43020
43026
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
43027
|
+
async function getAiConsent(httpClient, organization_id, workspace_id, signal) {
|
|
43028
|
+
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/consent`, { signal })).json();
|
|
43029
|
+
}
|
|
43030
|
+
async function giveAiConsent(httpClient, organization_id, workspace_id, data, signal) {
|
|
43031
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/consent`, {
|
|
43032
|
+
signal,
|
|
43033
|
+
json: data
|
|
43034
|
+
})).json();
|
|
43035
|
+
}
|
|
43021
43036
|
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit, product } = {}, signal) {
|
|
43022
43037
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
43023
43038
|
signal,
|
|
@@ -46041,6 +46056,29 @@ const generatedFocusOperations = [
|
|
|
46041
46056
|
]));
|
|
46042
46057
|
}
|
|
46043
46058
|
},
|
|
46059
|
+
{
|
|
46060
|
+
id: "focus.ai.get-consent",
|
|
46061
|
+
family: "focus",
|
|
46062
|
+
resource: "ai",
|
|
46063
|
+
action: "get-consent",
|
|
46064
|
+
title: "Get Consent Ai",
|
|
46065
|
+
description: "Get Consent Ai.",
|
|
46066
|
+
safety: "read",
|
|
46067
|
+
destructive: false,
|
|
46068
|
+
cli: {
|
|
46069
|
+
group: ["ai"],
|
|
46070
|
+
command: "get-consent",
|
|
46071
|
+
interactive: "hidden"
|
|
46072
|
+
},
|
|
46073
|
+
mcp: { entityTool: "ai" },
|
|
46074
|
+
inputSchema: /* @__PURE__ */ looseObject({}),
|
|
46075
|
+
execute: (_input, { client }) => client.runGeneratedRequest("getAiConsent", () => callGeneratedRequest(getAiConsent, [
|
|
46076
|
+
client.httpClient,
|
|
46077
|
+
client.organizationId,
|
|
46078
|
+
client.workspaceIdNumber,
|
|
46079
|
+
void 0
|
|
46080
|
+
]))
|
|
46081
|
+
},
|
|
46044
46082
|
{
|
|
46045
46083
|
id: "focus.ai.get-conversations",
|
|
46046
46084
|
family: "focus",
|
|
@@ -46151,6 +46189,33 @@ const generatedFocusOperations = [
|
|
|
46151
46189
|
void 0
|
|
46152
46190
|
]))
|
|
46153
46191
|
},
|
|
46192
|
+
{
|
|
46193
|
+
id: "focus.ai.give-ai-consent",
|
|
46194
|
+
family: "focus",
|
|
46195
|
+
resource: "ai",
|
|
46196
|
+
action: "give-ai-consent",
|
|
46197
|
+
title: "Give Ai Consent Ai",
|
|
46198
|
+
description: "Give Ai Consent Ai.",
|
|
46199
|
+
safety: "update",
|
|
46200
|
+
destructive: false,
|
|
46201
|
+
cli: {
|
|
46202
|
+
group: ["ai"],
|
|
46203
|
+
command: "give-ai-consent",
|
|
46204
|
+
interactive: "default"
|
|
46205
|
+
},
|
|
46206
|
+
mcp: { entityTool: "ai" },
|
|
46207
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ version: /* @__PURE__ */ number$2() }) }),
|
|
46208
|
+
execute: (input, { client }) => {
|
|
46209
|
+
const data = input;
|
|
46210
|
+
return client.runGeneratedRequest("giveAiConsent", () => callGeneratedRequest(giveAiConsent, [
|
|
46211
|
+
client.httpClient,
|
|
46212
|
+
client.organizationId,
|
|
46213
|
+
client.workspaceIdNumber,
|
|
46214
|
+
data.payload ?? data.data ?? data,
|
|
46215
|
+
void 0
|
|
46216
|
+
]));
|
|
46217
|
+
}
|
|
46218
|
+
},
|
|
46154
46219
|
{
|
|
46155
46220
|
id: "focus.ai.next-ai-actions",
|
|
46156
46221
|
family: "focus",
|
|
@@ -57717,6 +57782,33 @@ const generatedFocusOperations = [
|
|
|
57717
57782
|
]));
|
|
57718
57783
|
}
|
|
57719
57784
|
},
|
|
57785
|
+
{
|
|
57786
|
+
id: "focus.time-entries.retime-draft",
|
|
57787
|
+
family: "focus",
|
|
57788
|
+
resource: "time-entries",
|
|
57789
|
+
action: "retime-draft",
|
|
57790
|
+
title: "Retime Draft Time Entries",
|
|
57791
|
+
description: "Retime Draft Time Entries.",
|
|
57792
|
+
safety: "update",
|
|
57793
|
+
destructive: false,
|
|
57794
|
+
cli: {
|
|
57795
|
+
group: ["time-entries"],
|
|
57796
|
+
command: "retime-draft",
|
|
57797
|
+
interactive: "hidden"
|
|
57798
|
+
},
|
|
57799
|
+
mcp: { entityTool: "time-entries" },
|
|
57800
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ unknown$1() }),
|
|
57801
|
+
execute: (input, { client }) => {
|
|
57802
|
+
const data = input;
|
|
57803
|
+
return client.runGeneratedRequest("retimeDraftTimeEntriesWithOrg", () => callGeneratedRequest(retimeDraftTimeEntriesWithOrg, [
|
|
57804
|
+
client.httpClient,
|
|
57805
|
+
client.organizationId,
|
|
57806
|
+
client.workspaceIdNumber,
|
|
57807
|
+
data.payload ?? data.data ?? data,
|
|
57808
|
+
void 0
|
|
57809
|
+
]));
|
|
57810
|
+
}
|
|
57811
|
+
},
|
|
57720
57812
|
{
|
|
57721
57813
|
id: "focus.time-entries.set-day-duration",
|
|
57722
57814
|
family: "focus",
|
|
@@ -61929,7 +62021,7 @@ function registerWorkspaceTools(server) {
|
|
|
61929
62021
|
//#region src/package-version.ts
|
|
61930
62022
|
function mcpPackageVersion() {
|
|
61931
62023
|
try {
|
|
61932
|
-
return "1.13.
|
|
62024
|
+
return "1.13.333";
|
|
61933
62025
|
} catch {
|
|
61934
62026
|
return "unknown";
|
|
61935
62027
|
}
|
|
@@ -62111,7 +62203,7 @@ import_main.default.config({
|
|
|
62111
62203
|
quiet: true,
|
|
62112
62204
|
ignore: ["MISSING_ENV_FILE"]
|
|
62113
62205
|
});
|
|
62114
|
-
const packageVersion = "1.13.
|
|
62206
|
+
const packageVersion = "1.13.333";
|
|
62115
62207
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
62116
62208
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
62117
62209
|
function resolvePublicUrls() {
|
|
@@ -62231,4 +62323,4 @@ function bootstrapServer(options = {}) {
|
|
|
62231
62323
|
//#endregion
|
|
62232
62324
|
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
62325
|
|
|
62234
|
-
//# sourceMappingURL=src-
|
|
62326
|
+
//# sourceMappingURL=src-CISfH3ld.js.map
|