@togglhq/mcp 1.13.222 → 1.13.224
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-D4O2e2Dh.js → src-DQCJ1PiA.js} +126 -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-DQCJ1PiA.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.224";
|
|
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-DQCJ1PiA.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -43061,6 +43061,24 @@ async function undoAiChange(httpClient, organization_id, workspace_id, conversat
|
|
|
43061
43061
|
searchParams: buildSearchParams$2({ product })
|
|
43062
43062
|
})).json();
|
|
43063
43063
|
}
|
|
43064
|
+
async function stopAiTurn(httpClient, organization_id, workspace_id, conversation_id, product, signal) {
|
|
43065
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stop`, {
|
|
43066
|
+
signal,
|
|
43067
|
+
searchParams: buildSearchParams$2({ product })
|
|
43068
|
+
})).json();
|
|
43069
|
+
}
|
|
43070
|
+
async function attachAiTurn(httpClient, organization_id, workspace_id, conversation_id, { after, product, lastEventID } = {}, signal) {
|
|
43071
|
+
const response = await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stream`, {
|
|
43072
|
+
signal,
|
|
43073
|
+
headers: { "Last-Event-ID": lastEventID },
|
|
43074
|
+
searchParams: buildSearchParams$2({
|
|
43075
|
+
after,
|
|
43076
|
+
product
|
|
43077
|
+
})
|
|
43078
|
+
});
|
|
43079
|
+
if ([204, 205].includes(response.status)) return null;
|
|
43080
|
+
return response.json();
|
|
43081
|
+
}
|
|
43064
43082
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
43065
43083
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
43066
43084
|
signal,
|
|
@@ -43124,6 +43142,17 @@ async function runAiView(httpClient, organization_id, workspace_id, data, produc
|
|
|
43124
43142
|
})).json();
|
|
43125
43143
|
}
|
|
43126
43144
|
//#endregion
|
|
43145
|
+
//#region ../focus-queries/dist/archival/requests.ts
|
|
43146
|
+
async function getUpcomingArchivalGroupsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page } = {}, signal) {
|
|
43147
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archival/upcoming`, {
|
|
43148
|
+
signal,
|
|
43149
|
+
searchParams: buildSearchParams$2({
|
|
43150
|
+
page,
|
|
43151
|
+
per_page
|
|
43152
|
+
})
|
|
43153
|
+
})).json();
|
|
43154
|
+
}
|
|
43155
|
+
//#endregion
|
|
43127
43156
|
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
43128
43157
|
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
43129
43158
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
@@ -45298,6 +45327,39 @@ const generatedFocusOperations = [
|
|
|
45298
45327
|
]));
|
|
45299
45328
|
}
|
|
45300
45329
|
},
|
|
45330
|
+
{
|
|
45331
|
+
id: "focus.ai.attach-ai-turn",
|
|
45332
|
+
family: "focus",
|
|
45333
|
+
resource: "ai",
|
|
45334
|
+
action: "attach-ai-turn",
|
|
45335
|
+
title: "Attach Ai Turn Ai",
|
|
45336
|
+
description: "Attach Ai Turn Ai.",
|
|
45337
|
+
safety: "read",
|
|
45338
|
+
destructive: false,
|
|
45339
|
+
cli: {
|
|
45340
|
+
group: ["ai"],
|
|
45341
|
+
command: "attach-ai-turn",
|
|
45342
|
+
interactive: "hidden"
|
|
45343
|
+
},
|
|
45344
|
+
mcp: { entityTool: "ai" },
|
|
45345
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45346
|
+
after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45347
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
45348
|
+
lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45349
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
45350
|
+
}),
|
|
45351
|
+
execute: (input, { client }) => {
|
|
45352
|
+
const data = input;
|
|
45353
|
+
return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
|
|
45354
|
+
client.httpClient,
|
|
45355
|
+
client.organizationId,
|
|
45356
|
+
client.workspaceIdNumber,
|
|
45357
|
+
data.conversation_id,
|
|
45358
|
+
data,
|
|
45359
|
+
void 0
|
|
45360
|
+
]));
|
|
45361
|
+
}
|
|
45362
|
+
},
|
|
45301
45363
|
{
|
|
45302
45364
|
id: "focus.ai.connect-ai-source",
|
|
45303
45365
|
family: "focus",
|
|
@@ -45912,6 +45974,37 @@ const generatedFocusOperations = [
|
|
|
45912
45974
|
]));
|
|
45913
45975
|
}
|
|
45914
45976
|
},
|
|
45977
|
+
{
|
|
45978
|
+
id: "focus.ai.stop-ai-turn",
|
|
45979
|
+
family: "focus",
|
|
45980
|
+
resource: "ai",
|
|
45981
|
+
action: "stop-ai-turn",
|
|
45982
|
+
title: "Stop Ai Turn Ai",
|
|
45983
|
+
description: "Stop Ai Turn Ai.",
|
|
45984
|
+
safety: "update",
|
|
45985
|
+
destructive: false,
|
|
45986
|
+
cli: {
|
|
45987
|
+
group: ["ai"],
|
|
45988
|
+
command: "stop-ai-turn",
|
|
45989
|
+
interactive: "default"
|
|
45990
|
+
},
|
|
45991
|
+
mcp: { entityTool: "ai" },
|
|
45992
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45993
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
45994
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
45995
|
+
}),
|
|
45996
|
+
execute: (input, { client }) => {
|
|
45997
|
+
const data = input;
|
|
45998
|
+
return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
|
|
45999
|
+
client.httpClient,
|
|
46000
|
+
client.organizationId,
|
|
46001
|
+
client.workspaceIdNumber,
|
|
46002
|
+
data.conversation_id,
|
|
46003
|
+
data.product,
|
|
46004
|
+
void 0
|
|
46005
|
+
]));
|
|
46006
|
+
}
|
|
46007
|
+
},
|
|
45915
46008
|
{
|
|
45916
46009
|
id: "focus.ai.undo-ai-change",
|
|
45917
46010
|
family: "focus",
|
|
@@ -46083,6 +46176,36 @@ const generatedFocusOperations = [
|
|
|
46083
46176
|
return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
|
|
46084
46177
|
}
|
|
46085
46178
|
},
|
|
46179
|
+
{
|
|
46180
|
+
id: "focus.archival.get-upcoming-archival-groups",
|
|
46181
|
+
family: "focus",
|
|
46182
|
+
resource: "archival",
|
|
46183
|
+
action: "get-upcoming-archival-groups",
|
|
46184
|
+
title: "Get Upcoming Archival Groups Archival",
|
|
46185
|
+
description: "Get Upcoming Archival Groups Archival.",
|
|
46186
|
+
safety: "read",
|
|
46187
|
+
destructive: false,
|
|
46188
|
+
cli: {
|
|
46189
|
+
group: ["archival"],
|
|
46190
|
+
command: "get-upcoming-archival-groups",
|
|
46191
|
+
interactive: "hidden"
|
|
46192
|
+
},
|
|
46193
|
+
mcp: { entityTool: "archival" },
|
|
46194
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
46195
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
46196
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
46197
|
+
}),
|
|
46198
|
+
execute: (input, { client }) => {
|
|
46199
|
+
const data = input;
|
|
46200
|
+
return client.runGeneratedRequest("getUpcomingArchivalGroupsClassic", () => callGeneratedRequest(getUpcomingArchivalGroupsClassic, [
|
|
46201
|
+
client.httpClient,
|
|
46202
|
+
client.organizationId,
|
|
46203
|
+
client.workspaceIdNumber,
|
|
46204
|
+
data,
|
|
46205
|
+
void 0
|
|
46206
|
+
]));
|
|
46207
|
+
}
|
|
46208
|
+
},
|
|
46086
46209
|
{
|
|
46087
46210
|
id: "focus.archived-clients.get",
|
|
46088
46211
|
family: "focus",
|
|
@@ -60875,7 +60998,7 @@ function registerWorkspaceTools(server) {
|
|
|
60875
60998
|
//#region src/package-version.ts
|
|
60876
60999
|
function mcpPackageVersion() {
|
|
60877
61000
|
try {
|
|
60878
|
-
return "1.13.
|
|
61001
|
+
return "1.13.224";
|
|
60879
61002
|
} catch {
|
|
60880
61003
|
return "unknown";
|
|
60881
61004
|
}
|
|
@@ -61057,7 +61180,7 @@ import_main.default.config({
|
|
|
61057
61180
|
quiet: true,
|
|
61058
61181
|
ignore: ["MISSING_ENV_FILE"]
|
|
61059
61182
|
});
|
|
61060
|
-
const packageVersion = "1.13.
|
|
61183
|
+
const packageVersion = "1.13.224";
|
|
61061
61184
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
61062
61185
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
61063
61186
|
function resolvePublicUrls() {
|
|
@@ -61177,4 +61300,4 @@ function bootstrapServer(options = {}) {
|
|
|
61177
61300
|
//#endregion
|
|
61178
61301
|
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 };
|
|
61179
61302
|
|
|
61180
|
-
//# sourceMappingURL=src-
|
|
61303
|
+
//# sourceMappingURL=src-DQCJ1PiA.js.map
|