@togglhq/mcp 1.13.194 → 1.13.196
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-DohQbZZS.js → src-pQnbkPR1.js} +17 -5
- 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-pQnbkPR1.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.196";
|
|
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-pQnbkPR1.js";
|
|
3
3
|
export { MCP_CACHE_TTL_MS, MCP_MAX_TOOL_INPUT_ELEMENTS, bootstrapServer, runMcpCli };
|
|
@@ -41305,7 +41305,7 @@ function createAuthenticatedClientProxy() {
|
|
|
41305
41305
|
} });
|
|
41306
41306
|
}
|
|
41307
41307
|
//#endregion
|
|
41308
|
-
//#region ../operations/build/validation-
|
|
41308
|
+
//#region ../operations/build/validation-DbwJkkEI.js
|
|
41309
41309
|
const optionalNumber = /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2());
|
|
41310
41310
|
const perPageField = (max) => /* @__PURE__ */ optional$1(/* @__PURE__ */ pipe$2(/* @__PURE__ */ number$2(), /* @__PURE__ */ integer(), /* @__PURE__ */ minValue$1(1), /* @__PURE__ */ maxValue$1(max), /* @__PURE__ */ description$1(`Results per page (1-${max})`)));
|
|
41311
41311
|
const perPageSchema = perPageField(100);
|
|
@@ -41544,6 +41544,12 @@ const RATE_CONFLICT_CHECK = {
|
|
|
41544
41544
|
destructive: false
|
|
41545
41545
|
};
|
|
41546
41546
|
const RATE_SCHEDULE_GUIDANCE = "hourly_rate is in the currency's smallest unit, so it depends on the currency: two-decimal currencies like USD/EUR use cents (5000 = 50.00), zero-decimal ones like JPY/KRW use whole units (5000 = 5000), three-decimal ones like KWD/BHD use thousandths. Reads return the same unit. Omit end_date for an open-ended schedule; when set it must be on or after start_date.";
|
|
41547
|
+
const RATE_SCHEDULE_ACTION = /^focus\.rates\.(?:billable|labor)-(?:bulk-)?(?:check-|upsert-)/;
|
|
41548
|
+
const SYNTHESIZED_RATE_CHECK = {
|
|
41549
|
+
...RATE_CONFLICT_CHECK,
|
|
41550
|
+
agentGuidance: RATE_SCHEDULE_GUIDANCE
|
|
41551
|
+
};
|
|
41552
|
+
const SYNTHESIZED_RATE_WRITE = { agentGuidance: RATE_SCHEDULE_GUIDANCE };
|
|
41547
41553
|
const rateOverrides = {
|
|
41548
41554
|
"focus.rates.create-project": { mcp: { entityTool: void 0 } },
|
|
41549
41555
|
"focus.rates.billable-check-project-billable-rate-conflicts": {
|
|
@@ -41587,6 +41593,12 @@ const rateOverrides = {
|
|
|
41587
41593
|
"focus.rates.labor-upsert-workspace-labor-cost-rate": { agentGuidance: RATE_SCHEDULE_GUIDANCE },
|
|
41588
41594
|
"focus.rates.labor-upsert-workspace-user-labor-cost-rate": { agentGuidance: RATE_SCHEDULE_GUIDANCE }
|
|
41589
41595
|
};
|
|
41596
|
+
/** Explicit overrides win. New check/upsert actions from codegen get the same contract. */
|
|
41597
|
+
function rateOverrideFor(id) {
|
|
41598
|
+
if (Object.prototype.hasOwnProperty.call(rateOverrides, id)) return rateOverrides[id];
|
|
41599
|
+
if (!RATE_SCHEDULE_ACTION.test(id)) return void 0;
|
|
41600
|
+
return id.includes("-check-") ? SYNTHESIZED_RATE_CHECK : SYNTHESIZED_RATE_WRITE;
|
|
41601
|
+
}
|
|
41590
41602
|
const TASK_DATES_RULE = "Send start_date and end_date together, with end_date on or after start_date";
|
|
41591
41603
|
const TASK_DATES_CREATE_GUIDANCE = `${TASK_DATES_RULE}; for a single due date, send both as that day.`;
|
|
41592
41604
|
const taskOverrides = {
|
|
@@ -58594,7 +58606,7 @@ const focusOperationOverrides = {
|
|
|
58594
58606
|
...customFieldOverrides
|
|
58595
58607
|
};
|
|
58596
58608
|
function applyOverrides(operation) {
|
|
58597
|
-
const override = focusOperationOverrides[operation.id];
|
|
58609
|
+
const override = rateOverrideFor(operation.id) ?? focusOperationOverrides[operation.id];
|
|
58598
58610
|
if (!override) return operation;
|
|
58599
58611
|
return {
|
|
58600
58612
|
...operation,
|
|
@@ -59729,7 +59741,7 @@ function registerWorkspaceTools(server) {
|
|
|
59729
59741
|
//#region src/package-version.ts
|
|
59730
59742
|
function mcpPackageVersion() {
|
|
59731
59743
|
try {
|
|
59732
|
-
return "1.13.
|
|
59744
|
+
return "1.13.196";
|
|
59733
59745
|
} catch {
|
|
59734
59746
|
return "unknown";
|
|
59735
59747
|
}
|
|
@@ -59910,7 +59922,7 @@ import_main.default.config({
|
|
|
59910
59922
|
quiet: true,
|
|
59911
59923
|
ignore: ["MISSING_ENV_FILE"]
|
|
59912
59924
|
});
|
|
59913
|
-
const packageVersion = "1.13.
|
|
59925
|
+
const packageVersion = "1.13.196";
|
|
59914
59926
|
const MCP_CACHE_TTL_MS = 300 * 1e3;
|
|
59915
59927
|
const MCP_MAX_TOOL_INPUT_ELEMENTS = 1e4;
|
|
59916
59928
|
function resolvePublicUrls() {
|
|
@@ -60030,4 +60042,4 @@ function bootstrapServer(options = {}) {
|
|
|
60030
60042
|
//#endregion
|
|
60031
60043
|
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 };
|
|
60032
60044
|
|
|
60033
|
-
//# sourceMappingURL=src-
|
|
60045
|
+
//# sourceMappingURL=src-pQnbkPR1.js.map
|