@togglhq/mcp 1.13.208 → 1.13.209
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-BKwOAaFF.js → src-Ulfh0KQr.js} +67 -28
- 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-Ulfh0KQr.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.209";
|
|
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-Ulfh0KQr.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -42988,13 +42988,14 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
42988
42988
|
}
|
|
42989
42989
|
//#endregion
|
|
42990
42990
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
42991
|
-
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit } = {}, signal) {
|
|
42991
|
+
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit, product } = {}, signal) {
|
|
42992
42992
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
42993
42993
|
signal,
|
|
42994
42994
|
searchParams: buildSearchParams$2({
|
|
42995
42995
|
search,
|
|
42996
42996
|
before,
|
|
42997
|
-
limit
|
|
42997
|
+
limit,
|
|
42998
|
+
product
|
|
42998
42999
|
})
|
|
42999
43000
|
})).json();
|
|
43000
43001
|
}
|
|
@@ -43009,32 +43010,51 @@ async function removeAiAttachment(httpClient, organization_id, workspace_id, con
|
|
|
43009
43010
|
if ([204, 205].includes(response.status)) return null;
|
|
43010
43011
|
return response.json();
|
|
43011
43012
|
}
|
|
43012
|
-
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
43013
|
+
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit, product } = {}, signal) {
|
|
43013
43014
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
43014
43015
|
signal,
|
|
43015
|
-
searchParams: buildSearchParams$2({
|
|
43016
|
+
searchParams: buildSearchParams$2({
|
|
43017
|
+
limit,
|
|
43018
|
+
product
|
|
43019
|
+
})
|
|
43016
43020
|
})).json();
|
|
43017
43021
|
}
|
|
43018
|
-
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
43022
|
+
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, product, signal) {
|
|
43019
43023
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
43020
43024
|
signal,
|
|
43021
|
-
json: data
|
|
43025
|
+
json: data,
|
|
43026
|
+
searchParams: buildSearchParams$2({ product })
|
|
43022
43027
|
})).json();
|
|
43023
43028
|
}
|
|
43024
|
-
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, signal) {
|
|
43025
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, {
|
|
43029
|
+
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, product, signal) {
|
|
43030
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, {
|
|
43031
|
+
signal,
|
|
43032
|
+
searchParams: buildSearchParams$2({ product })
|
|
43033
|
+
})).json();
|
|
43026
43034
|
}
|
|
43027
|
-
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
43028
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, {
|
|
43035
|
+
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
43036
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, {
|
|
43037
|
+
signal,
|
|
43038
|
+
searchParams: buildSearchParams$2({ product })
|
|
43039
|
+
})).json();
|
|
43029
43040
|
}
|
|
43030
|
-
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
43031
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, {
|
|
43041
|
+
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
43042
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, {
|
|
43043
|
+
signal,
|
|
43044
|
+
searchParams: buildSearchParams$2({ product })
|
|
43045
|
+
})).json();
|
|
43032
43046
|
}
|
|
43033
|
-
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
43034
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, {
|
|
43047
|
+
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
43048
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, {
|
|
43049
|
+
signal,
|
|
43050
|
+
searchParams: buildSearchParams$2({ product })
|
|
43051
|
+
})).json();
|
|
43035
43052
|
}
|
|
43036
|
-
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
43037
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, {
|
|
43053
|
+
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
43054
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, {
|
|
43055
|
+
signal,
|
|
43056
|
+
searchParams: buildSearchParams$2({ product })
|
|
43057
|
+
})).json();
|
|
43038
43058
|
}
|
|
43039
43059
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
43040
43060
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
@@ -43091,10 +43111,11 @@ async function connectAiSource(httpClient, organization_id, workspace_id, source
|
|
|
43091
43111
|
async function getAiUsage(httpClient, organization_id, workspace_id, signal) {
|
|
43092
43112
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/usage`, { signal })).json();
|
|
43093
43113
|
}
|
|
43094
|
-
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
43114
|
+
async function runAiView(httpClient, organization_id, workspace_id, data, product, signal) {
|
|
43095
43115
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
43096
43116
|
signal,
|
|
43097
|
-
json: data
|
|
43117
|
+
json: data,
|
|
43118
|
+
searchParams: buildSearchParams$2({ product })
|
|
43098
43119
|
})).json();
|
|
43099
43120
|
}
|
|
43100
43121
|
//#endregion
|
|
@@ -45210,6 +45231,7 @@ const generatedFocusOperations = [
|
|
|
45210
45231
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45211
45232
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45212
45233
|
message_id: /* @__PURE__ */ number$2(),
|
|
45234
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
45213
45235
|
view_id: /* @__PURE__ */ string$1()
|
|
45214
45236
|
}),
|
|
45215
45237
|
execute: (input, { client }) => {
|
|
@@ -45221,6 +45243,7 @@ const generatedFocusOperations = [
|
|
|
45221
45243
|
data.conversation_id,
|
|
45222
45244
|
data.message_id,
|
|
45223
45245
|
data.view_id,
|
|
45246
|
+
data.product,
|
|
45224
45247
|
void 0
|
|
45225
45248
|
]));
|
|
45226
45249
|
}
|
|
@@ -45243,6 +45266,7 @@ const generatedFocusOperations = [
|
|
|
45243
45266
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45244
45267
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45245
45268
|
message_id: /* @__PURE__ */ number$2(),
|
|
45269
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
45246
45270
|
view_id: /* @__PURE__ */ string$1()
|
|
45247
45271
|
}),
|
|
45248
45272
|
execute: (input, { client }) => {
|
|
@@ -45254,6 +45278,7 @@ const generatedFocusOperations = [
|
|
|
45254
45278
|
data.conversation_id,
|
|
45255
45279
|
data.message_id,
|
|
45256
45280
|
data.view_id,
|
|
45281
|
+
data.product,
|
|
45257
45282
|
void 0
|
|
45258
45283
|
]));
|
|
45259
45284
|
}
|
|
@@ -45434,6 +45459,7 @@ const generatedFocusOperations = [
|
|
|
45434
45459
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45435
45460
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45436
45461
|
message_id: /* @__PURE__ */ number$2(),
|
|
45462
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
45437
45463
|
view_id: /* @__PURE__ */ string$1()
|
|
45438
45464
|
}),
|
|
45439
45465
|
execute: (input, { client }) => {
|
|
@@ -45445,6 +45471,7 @@ const generatedFocusOperations = [
|
|
|
45445
45471
|
data.conversation_id,
|
|
45446
45472
|
data.message_id,
|
|
45447
45473
|
data.view_id,
|
|
45474
|
+
data.product,
|
|
45448
45475
|
void 0
|
|
45449
45476
|
]));
|
|
45450
45477
|
}
|
|
@@ -45528,6 +45555,7 @@ const generatedFocusOperations = [
|
|
|
45528
45555
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45529
45556
|
before: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45530
45557
|
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45558
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45531
45559
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
45532
45560
|
}),
|
|
45533
45561
|
execute: (input, { client }) => {
|
|
@@ -45558,7 +45586,8 @@ const generatedFocusOperations = [
|
|
|
45558
45586
|
mcp: { entityTool: "ai" },
|
|
45559
45587
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45560
45588
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45561
|
-
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
45589
|
+
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
45590
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
45562
45591
|
}),
|
|
45563
45592
|
execute: (input, { client }) => {
|
|
45564
45593
|
const data = input;
|
|
@@ -45635,7 +45664,8 @@ const generatedFocusOperations = [
|
|
|
45635
45664
|
mcp: { entityTool: "ai" },
|
|
45636
45665
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45637
45666
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45638
|
-
message_id: /* @__PURE__ */ number$2()
|
|
45667
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
45668
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
45639
45669
|
}),
|
|
45640
45670
|
execute: (input, { client }) => {
|
|
45641
45671
|
const data = input;
|
|
@@ -45645,6 +45675,7 @@ const generatedFocusOperations = [
|
|
|
45645
45675
|
client.workspaceIdNumber,
|
|
45646
45676
|
data.conversation_id,
|
|
45647
45677
|
data.message_id,
|
|
45678
|
+
data.product,
|
|
45648
45679
|
void 0
|
|
45649
45680
|
]));
|
|
45650
45681
|
}
|
|
@@ -45695,10 +45726,13 @@ const generatedFocusOperations = [
|
|
|
45695
45726
|
interactive: "default"
|
|
45696
45727
|
},
|
|
45697
45728
|
mcp: { entityTool: "ai" },
|
|
45698
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
45699
|
-
|
|
45700
|
-
|
|
45701
|
-
|
|
45729
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
45730
|
+
payload: /* @__PURE__ */ looseObject({
|
|
45731
|
+
input: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
45732
|
+
tool: /* @__PURE__ */ string$1()
|
|
45733
|
+
}),
|
|
45734
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
45735
|
+
}),
|
|
45702
45736
|
execute: (input, { client }) => {
|
|
45703
45737
|
const data = input;
|
|
45704
45738
|
return client.runGeneratedRequest("runAiView", () => callGeneratedRequest(runAiView, [
|
|
@@ -45706,6 +45740,7 @@ const generatedFocusOperations = [
|
|
|
45706
45740
|
client.organizationId,
|
|
45707
45741
|
client.workspaceIdNumber,
|
|
45708
45742
|
data.payload ?? data.data ?? data,
|
|
45743
|
+
data.product,
|
|
45709
45744
|
void 0
|
|
45710
45745
|
]));
|
|
45711
45746
|
}
|
|
@@ -45846,7 +45881,8 @@ const generatedFocusOperations = [
|
|
|
45846
45881
|
page_label: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
45847
45882
|
url: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
45848
45883
|
}))
|
|
45849
|
-
})
|
|
45884
|
+
}),
|
|
45885
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
45850
45886
|
}),
|
|
45851
45887
|
execute: (input, { client }) => {
|
|
45852
45888
|
const data = input;
|
|
@@ -45856,6 +45892,7 @@ const generatedFocusOperations = [
|
|
|
45856
45892
|
client.workspaceIdNumber,
|
|
45857
45893
|
data.conversation_id,
|
|
45858
45894
|
data.payload ?? data.data ?? data,
|
|
45895
|
+
data.product,
|
|
45859
45896
|
void 0
|
|
45860
45897
|
]));
|
|
45861
45898
|
}
|
|
@@ -45878,6 +45915,7 @@ const generatedFocusOperations = [
|
|
|
45878
45915
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
45879
45916
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
45880
45917
|
message_id: /* @__PURE__ */ number$2(),
|
|
45918
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
45881
45919
|
view_id: /* @__PURE__ */ string$1()
|
|
45882
45920
|
}),
|
|
45883
45921
|
execute: (input, { client }) => {
|
|
@@ -45889,6 +45927,7 @@ const generatedFocusOperations = [
|
|
|
45889
45927
|
data.conversation_id,
|
|
45890
45928
|
data.message_id,
|
|
45891
45929
|
data.view_id,
|
|
45930
|
+
data.product,
|
|
45892
45931
|
void 0
|
|
45893
45932
|
]));
|
|
45894
45933
|
}
|
|
@@ -60761,7 +60800,7 @@ function registerWorkspaceTools(server) {
|
|
|
60761
60800
|
//#region src/package-version.ts
|
|
60762
60801
|
function mcpPackageVersion() {
|
|
60763
60802
|
try {
|
|
60764
|
-
return "1.13.
|
|
60803
|
+
return "1.13.209";
|
|
60765
60804
|
} catch {
|
|
60766
60805
|
return "unknown";
|
|
60767
60806
|
}
|
|
@@ -60943,7 +60982,7 @@ import_main.default.config({
|
|
|
60943
60982
|
quiet: true,
|
|
60944
60983
|
ignore: ["MISSING_ENV_FILE"]
|
|
60945
60984
|
});
|
|
60946
|
-
const packageVersion = "1.13.
|
|
60985
|
+
const packageVersion = "1.13.209";
|
|
60947
60986
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
60948
60987
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
60949
60988
|
function resolvePublicUrls() {
|
|
@@ -61063,4 +61102,4 @@ function bootstrapServer(options = {}) {
|
|
|
61063
61102
|
//#endregion
|
|
61064
61103
|
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 };
|
|
61065
61104
|
|
|
61066
|
-
//# sourceMappingURL=src-
|
|
61105
|
+
//# sourceMappingURL=src-Ulfh0KQr.js.map
|