@togglhq/mcp 1.5.36 → 1.5.38
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 +1 -1
- package/build/index.js +1 -1
- package/build/{src-fBoAkgZs.js → src-UJr4aWmD.js} +61 -3
- package/package.json +1 -1
package/build/cli.js
CHANGED
package/build/index.js
CHANGED
|
@@ -34253,6 +34253,12 @@ async function createGoal(httpClient, organization_id, workspace_id, data, signa
|
|
|
34253
34253
|
json: data
|
|
34254
34254
|
}).json();
|
|
34255
34255
|
}
|
|
34256
|
+
async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
|
|
34257
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
34258
|
+
signal,
|
|
34259
|
+
json: data
|
|
34260
|
+
}).json();
|
|
34261
|
+
}
|
|
34256
34262
|
async function getGoal(httpClient, organization_id, workspace_id, goal_id, signal) {
|
|
34257
34263
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/goals/${goal_id}`, { signal }).json();
|
|
34258
34264
|
}
|
|
@@ -35990,7 +35996,8 @@ const generatedFocusOperations = [
|
|
|
35990
35996
|
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
35991
35997
|
target_seconds: /* @__PURE__ */ number$2(),
|
|
35992
35998
|
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
35993
|
-
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2())
|
|
35999
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36000
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
35994
36001
|
}) }),
|
|
35995
36002
|
execute: (input, { client }) => {
|
|
35996
36003
|
const data = input;
|
|
@@ -36080,6 +36087,57 @@ const generatedFocusOperations = [
|
|
|
36080
36087
|
void 0
|
|
36081
36088
|
]))
|
|
36082
36089
|
},
|
|
36090
|
+
{
|
|
36091
|
+
id: "focus.goals.preview-goal-tracked-time",
|
|
36092
|
+
family: "focus",
|
|
36093
|
+
resource: "goals",
|
|
36094
|
+
action: "preview-goal-tracked-time",
|
|
36095
|
+
title: "Preview Goal Tracked Time Goals",
|
|
36096
|
+
description: "Preview Goal Tracked Time Goals.",
|
|
36097
|
+
safety: "read",
|
|
36098
|
+
destructive: false,
|
|
36099
|
+
cli: {
|
|
36100
|
+
group: ["goals"],
|
|
36101
|
+
command: "preview-goal-tracked-time",
|
|
36102
|
+
interactive: "available"
|
|
36103
|
+
},
|
|
36104
|
+
mcp: { entityTool: "goals" },
|
|
36105
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
36106
|
+
billable: /* @__PURE__ */ boolean$1(),
|
|
36107
|
+
comparison: /* @__PURE__ */ picklist$1(["more_than", "less_than"]),
|
|
36108
|
+
end_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
36109
|
+
icon: /* @__PURE__ */ string$1(),
|
|
36110
|
+
monthly_anchor: /* @__PURE__ */ picklist$1([
|
|
36111
|
+
"calendar",
|
|
36112
|
+
"month_end",
|
|
36113
|
+
"first_workday"
|
|
36114
|
+
]),
|
|
36115
|
+
name: /* @__PURE__ */ string$1(),
|
|
36116
|
+
project_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36117
|
+
recurrence: /* @__PURE__ */ picklist$1([
|
|
36118
|
+
"daily",
|
|
36119
|
+
"weekly",
|
|
36120
|
+
"daily_workdays",
|
|
36121
|
+
"monthly"
|
|
36122
|
+
]),
|
|
36123
|
+
start_date: /* @__PURE__ */ pipe$2(/* @__PURE__ */ string$1(), /* @__PURE__ */ isoDate$1()),
|
|
36124
|
+
tag_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36125
|
+
target_seconds: /* @__PURE__ */ number$2(),
|
|
36126
|
+
task_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36127
|
+
weekdays: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
36128
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
36129
|
+
}) }),
|
|
36130
|
+
execute: (input, { client }) => {
|
|
36131
|
+
const data = input;
|
|
36132
|
+
return client.runGeneratedRequest("previewGoalTrackedTime", () => callGeneratedRequest(previewGoalTrackedTime, [
|
|
36133
|
+
client.httpClient,
|
|
36134
|
+
client.organizationId,
|
|
36135
|
+
client.workspaceIdNumber,
|
|
36136
|
+
data.payload ?? data.data ?? data,
|
|
36137
|
+
void 0
|
|
36138
|
+
]));
|
|
36139
|
+
}
|
|
36140
|
+
},
|
|
36083
36141
|
{
|
|
36084
36142
|
id: "focus.goals.update",
|
|
36085
36143
|
family: "focus",
|
|
@@ -45631,7 +45689,7 @@ import_main.default.config({
|
|
|
45631
45689
|
quiet: true,
|
|
45632
45690
|
ignore: ["MISSING_ENV_FILE"]
|
|
45633
45691
|
});
|
|
45634
|
-
const packageVersion = "1.5.
|
|
45692
|
+
const packageVersion = "1.5.38";
|
|
45635
45693
|
function resolvePublicUrls() {
|
|
45636
45694
|
return {
|
|
45637
45695
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45696,4 +45754,4 @@ function bootstrapServer(options = {}) {
|
|
|
45696
45754
|
//#endregion
|
|
45697
45755
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45698
45756
|
|
|
45699
|
-
//# sourceMappingURL=src-
|
|
45757
|
+
//# sourceMappingURL=src-UJr4aWmD.js.map
|