@togglhq/mcp 1.13.332 → 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-C9T7oUwb.js → src-CISfH3ld.js} +62 -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 };
|
|
@@ -43024,6 +43024,15 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
43024
43024
|
}
|
|
43025
43025
|
//#endregion
|
|
43026
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
|
+
}
|
|
43027
43036
|
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit, product } = {}, signal) {
|
|
43028
43037
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
43029
43038
|
signal,
|
|
@@ -46047,6 +46056,29 @@ const generatedFocusOperations = [
|
|
|
46047
46056
|
]));
|
|
46048
46057
|
}
|
|
46049
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
|
+
},
|
|
46050
46082
|
{
|
|
46051
46083
|
id: "focus.ai.get-conversations",
|
|
46052
46084
|
family: "focus",
|
|
@@ -46157,6 +46189,33 @@ const generatedFocusOperations = [
|
|
|
46157
46189
|
void 0
|
|
46158
46190
|
]))
|
|
46159
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
|
+
},
|
|
46160
46219
|
{
|
|
46161
46220
|
id: "focus.ai.next-ai-actions",
|
|
46162
46221
|
family: "focus",
|
|
@@ -61962,7 +62021,7 @@ function registerWorkspaceTools(server) {
|
|
|
61962
62021
|
//#region src/package-version.ts
|
|
61963
62022
|
function mcpPackageVersion() {
|
|
61964
62023
|
try {
|
|
61965
|
-
return "1.13.
|
|
62024
|
+
return "1.13.333";
|
|
61966
62025
|
} catch {
|
|
61967
62026
|
return "unknown";
|
|
61968
62027
|
}
|
|
@@ -62144,7 +62203,7 @@ import_main.default.config({
|
|
|
62144
62203
|
quiet: true,
|
|
62145
62204
|
ignore: ["MISSING_ENV_FILE"]
|
|
62146
62205
|
});
|
|
62147
|
-
const packageVersion = "1.13.
|
|
62206
|
+
const packageVersion = "1.13.333";
|
|
62148
62207
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
62149
62208
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
62150
62209
|
function resolvePublicUrls() {
|
|
@@ -62264,4 +62323,4 @@ function bootstrapServer(options = {}) {
|
|
|
62264
62323
|
//#endregion
|
|
62265
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 };
|
|
62266
62325
|
|
|
62267
|
-
//# sourceMappingURL=src-
|
|
62326
|
+
//# sourceMappingURL=src-CISfH3ld.js.map
|