@togglhq/mcp 1.5.44 → 1.5.45
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-DHHmttsB.js → src-DIg53bZB.js} +35 -2
- 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 reorderGoals(httpClient, organization_id, workspace_id, data, signal) {
|
|
34257
|
+
return await httpClient.put(`organizations/${organization_id}/workspaces/${workspace_id}/goals/positions`, {
|
|
34258
|
+
signal,
|
|
34259
|
+
json: data
|
|
34260
|
+
}).json();
|
|
34261
|
+
}
|
|
34256
34262
|
async function previewGoalTrackedTime(httpClient, organization_id, workspace_id, data, signal) {
|
|
34257
34263
|
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/goals/preview`, {
|
|
34258
34264
|
signal,
|
|
@@ -36141,6 +36147,33 @@ const generatedFocusOperations = [
|
|
|
36141
36147
|
]));
|
|
36142
36148
|
}
|
|
36143
36149
|
},
|
|
36150
|
+
{
|
|
36151
|
+
id: "focus.goals.reorder",
|
|
36152
|
+
family: "focus",
|
|
36153
|
+
resource: "goals",
|
|
36154
|
+
action: "reorder",
|
|
36155
|
+
title: "Reorder Goals",
|
|
36156
|
+
description: "Reorder Goals.",
|
|
36157
|
+
safety: "read",
|
|
36158
|
+
destructive: false,
|
|
36159
|
+
cli: {
|
|
36160
|
+
group: ["goals"],
|
|
36161
|
+
command: "reorder",
|
|
36162
|
+
interactive: "available"
|
|
36163
|
+
},
|
|
36164
|
+
mcp: { entityTool: "goals" },
|
|
36165
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ goal_ids: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()) }) }),
|
|
36166
|
+
execute: (input, { client }) => {
|
|
36167
|
+
const data = input;
|
|
36168
|
+
return client.runGeneratedRequest("reorderGoals", () => callGeneratedRequest(reorderGoals, [
|
|
36169
|
+
client.httpClient,
|
|
36170
|
+
client.organizationId,
|
|
36171
|
+
client.workspaceIdNumber,
|
|
36172
|
+
data.payload ?? data.data ?? data,
|
|
36173
|
+
void 0
|
|
36174
|
+
]));
|
|
36175
|
+
}
|
|
36176
|
+
},
|
|
36144
36177
|
{
|
|
36145
36178
|
id: "focus.goals.update",
|
|
36146
36179
|
family: "focus",
|
|
@@ -45692,7 +45725,7 @@ import_main.default.config({
|
|
|
45692
45725
|
quiet: true,
|
|
45693
45726
|
ignore: ["MISSING_ENV_FILE"]
|
|
45694
45727
|
});
|
|
45695
|
-
const packageVersion = "1.5.
|
|
45728
|
+
const packageVersion = "1.5.45";
|
|
45696
45729
|
function resolvePublicUrls() {
|
|
45697
45730
|
return {
|
|
45698
45731
|
focusApiUrl: process.env.TOGGL_FOCUS_API_URL ?? "https://focus.toggl.com",
|
|
@@ -45757,4 +45790,4 @@ function bootstrapServer(options = {}) {
|
|
|
45757
45790
|
//#endregion
|
|
45758
45791
|
export { runMcpCli as n, bootstrapServer as t };
|
|
45759
45792
|
|
|
45760
|
-
//# sourceMappingURL=src-
|
|
45793
|
+
//# sourceMappingURL=src-DIg53bZB.js.map
|