@togglhq/cli 1.13.68 → 1.13.70
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/{program-CdVVE8GA.js → program-CBOlZnJy.js} +248 -11
- package/build/program.js +1 -1
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-
|
|
2
|
+
import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-CBOlZnJy.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CBOlZnJy.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -7953,7 +7953,7 @@ const TaskPartialUpdatePayloadSchema = /* @__PURE__ */ object({
|
|
|
7953
7953
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7954
7954
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7955
7955
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7956
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7956
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
7957
7957
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
7958
7958
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
7959
7959
|
"none",
|
|
@@ -7991,7 +7991,7 @@ const TaskPartialUpdatePayloadWithIDSchema = /* @__PURE__ */ object({
|
|
|
7991
7991
|
notes: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ string())),
|
|
7992
7992
|
outbound_sync: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7993
7993
|
parent_task_id: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ number())),
|
|
7994
|
-
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
7994
|
+
pinned: /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("Deprecated: use POST or DELETE .../tasks/{task_id}/pinned. Sets the current user's own pin only."))),
|
|
7995
7995
|
position: /* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ minValue(1)))),
|
|
7996
7996
|
priority: /* @__PURE__ */ optional(/* @__PURE__ */ picklist([
|
|
7997
7997
|
"none",
|
|
@@ -10657,6 +10657,12 @@ async function getTaskWithParentsClassic(httpClient, organization_id, workspace_
|
|
|
10657
10657
|
})
|
|
10658
10658
|
}).json();
|
|
10659
10659
|
}
|
|
10660
|
+
async function pinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10661
|
+
return await httpClient.post(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
10662
|
+
}
|
|
10663
|
+
async function unpinTask(httpClient, organization_id, workspace_id, task_id, signal) {
|
|
10664
|
+
return await httpClient.delete(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/pinned`, { signal }).json();
|
|
10665
|
+
}
|
|
10660
10666
|
async function restoreTask(httpClient, organization_id, workspace_id, task_id, scope, signal) {
|
|
10661
10667
|
return await httpClient.patch(`organizations/${organization_id}/workspaces/${workspace_id}/tasks/${task_id}/restore`, {
|
|
10662
10668
|
signal,
|
|
@@ -10929,7 +10935,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10929
10935
|
]))
|
|
10930
10936
|
});
|
|
10931
10937
|
//#endregion
|
|
10932
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10938
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10933
10939
|
async function getInvitations(httpClient, signal) {
|
|
10934
10940
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10935
10941
|
}
|
|
@@ -10946,7 +10952,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10946
10952
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10947
10953
|
}
|
|
10948
10954
|
//#endregion
|
|
10949
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10955
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
10950
10956
|
function buildSearchParams(params, flattenArrays = false) {
|
|
10951
10957
|
const searchParams = new URLSearchParams();
|
|
10952
10958
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -10958,7 +10964,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
10958
10964
|
return searchParams;
|
|
10959
10965
|
}
|
|
10960
10966
|
//#endregion
|
|
10961
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10967
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
10962
10968
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
10963
10969
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
10964
10970
|
}
|
|
@@ -10972,7 +10978,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
10972
10978
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
10973
10979
|
}
|
|
10974
10980
|
//#endregion
|
|
10975
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10981
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
10976
10982
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
10977
10983
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
10978
10984
|
}
|
|
@@ -10992,7 +10998,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
10992
10998
|
});
|
|
10993
10999
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
10994
11000
|
//#endregion
|
|
10995
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11001
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
10996
11002
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
10997
11003
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
10998
11004
|
signal,
|
|
@@ -11003,12 +11009,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11003
11009
|
})).json();
|
|
11004
11010
|
}
|
|
11005
11011
|
//#endregion
|
|
11006
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11012
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11007
11013
|
async function getStatus(httpClient, signal) {
|
|
11008
11014
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11009
11015
|
}
|
|
11010
11016
|
//#endregion
|
|
11011
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11017
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11012
11018
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11013
11019
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11014
11020
|
signal,
|
|
@@ -11036,7 +11042,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11036
11042
|
return response.json();
|
|
11037
11043
|
}
|
|
11038
11044
|
//#endregion
|
|
11039
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11045
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.252_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_3d12709e3c840c2aa3d5413ec6673fa7/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11040
11046
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11041
11047
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11042
11048
|
}
|
|
@@ -14940,6 +14946,27 @@ async function sendAiMessage(httpClient, organization_id, workspace_id, conversa
|
|
|
14940
14946
|
json: data
|
|
14941
14947
|
}).json();
|
|
14942
14948
|
}
|
|
14949
|
+
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14950
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
14951
|
+
}
|
|
14952
|
+
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14953
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
14954
|
+
}
|
|
14955
|
+
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14956
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
14957
|
+
}
|
|
14958
|
+
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
14959
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
14960
|
+
signal,
|
|
14961
|
+
searchParams: buildSearchParams$2({ q })
|
|
14962
|
+
}).json();
|
|
14963
|
+
}
|
|
14964
|
+
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
14965
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
14966
|
+
signal,
|
|
14967
|
+
json: data
|
|
14968
|
+
}).json();
|
|
14969
|
+
}
|
|
14943
14970
|
//#endregion
|
|
14944
14971
|
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
14945
14972
|
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
@@ -16618,6 +16645,72 @@ function callGeneratedRequest(request, args) {
|
|
|
16618
16645
|
return request(...args);
|
|
16619
16646
|
}
|
|
16620
16647
|
const generatedFocusOperations = [
|
|
16648
|
+
{
|
|
16649
|
+
id: "focus.ai.apply-ai-change",
|
|
16650
|
+
family: "focus",
|
|
16651
|
+
resource: "ai",
|
|
16652
|
+
action: "apply-ai-change",
|
|
16653
|
+
title: "Apply Ai Change Ai",
|
|
16654
|
+
description: "Apply Ai Change Ai.",
|
|
16655
|
+
safety: "update",
|
|
16656
|
+
destructive: false,
|
|
16657
|
+
cli: {
|
|
16658
|
+
group: ["ai"],
|
|
16659
|
+
command: "apply-ai-change",
|
|
16660
|
+
interactive: "default"
|
|
16661
|
+
},
|
|
16662
|
+
mcp: { entityTool: "ai" },
|
|
16663
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16664
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16665
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16666
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16667
|
+
}),
|
|
16668
|
+
execute: (input, { client }) => {
|
|
16669
|
+
const data = input;
|
|
16670
|
+
return client.runGeneratedRequest("applyAiChange", () => callGeneratedRequest(applyAiChange, [
|
|
16671
|
+
client.httpClient,
|
|
16672
|
+
client.organizationId,
|
|
16673
|
+
client.workspaceIdNumber,
|
|
16674
|
+
data.conversation_id,
|
|
16675
|
+
data.message_id,
|
|
16676
|
+
data.view_id,
|
|
16677
|
+
void 0
|
|
16678
|
+
]));
|
|
16679
|
+
}
|
|
16680
|
+
},
|
|
16681
|
+
{
|
|
16682
|
+
id: "focus.ai.discard-ai-change",
|
|
16683
|
+
family: "focus",
|
|
16684
|
+
resource: "ai",
|
|
16685
|
+
action: "discard-ai-change",
|
|
16686
|
+
title: "Discard Ai Change Ai",
|
|
16687
|
+
description: "Discard Ai Change Ai.",
|
|
16688
|
+
safety: "update",
|
|
16689
|
+
destructive: false,
|
|
16690
|
+
cli: {
|
|
16691
|
+
group: ["ai"],
|
|
16692
|
+
command: "discard-ai-change",
|
|
16693
|
+
interactive: "default"
|
|
16694
|
+
},
|
|
16695
|
+
mcp: { entityTool: "ai" },
|
|
16696
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16697
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16698
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16699
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16700
|
+
}),
|
|
16701
|
+
execute: (input, { client }) => {
|
|
16702
|
+
const data = input;
|
|
16703
|
+
return client.runGeneratedRequest("discardAiChange", () => callGeneratedRequest(discardAiChange, [
|
|
16704
|
+
client.httpClient,
|
|
16705
|
+
client.organizationId,
|
|
16706
|
+
client.workspaceIdNumber,
|
|
16707
|
+
data.conversation_id,
|
|
16708
|
+
data.message_id,
|
|
16709
|
+
data.view_id,
|
|
16710
|
+
void 0
|
|
16711
|
+
]));
|
|
16712
|
+
}
|
|
16713
|
+
},
|
|
16621
16714
|
{
|
|
16622
16715
|
id: "focus.ai.get-messages",
|
|
16623
16716
|
family: "focus",
|
|
@@ -16649,6 +16742,63 @@ const generatedFocusOperations = [
|
|
|
16649
16742
|
]));
|
|
16650
16743
|
}
|
|
16651
16744
|
},
|
|
16745
|
+
{
|
|
16746
|
+
id: "focus.ai.run-ai-view",
|
|
16747
|
+
family: "focus",
|
|
16748
|
+
resource: "ai",
|
|
16749
|
+
action: "run-ai-view",
|
|
16750
|
+
title: "Run Ai View Ai",
|
|
16751
|
+
description: "Run Ai View Ai.",
|
|
16752
|
+
safety: "update",
|
|
16753
|
+
destructive: false,
|
|
16754
|
+
cli: {
|
|
16755
|
+
group: ["ai"],
|
|
16756
|
+
command: "run-ai-view",
|
|
16757
|
+
interactive: "default"
|
|
16758
|
+
},
|
|
16759
|
+
mcp: { entityTool: "ai" },
|
|
16760
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16761
|
+
input: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16762
|
+
tool: /* @__PURE__ */ string$1()
|
|
16763
|
+
}) }),
|
|
16764
|
+
execute: (input, { client }) => {
|
|
16765
|
+
const data = input;
|
|
16766
|
+
return client.runGeneratedRequest("runAiView", () => callGeneratedRequest(runAiView, [
|
|
16767
|
+
client.httpClient,
|
|
16768
|
+
client.organizationId,
|
|
16769
|
+
client.workspaceIdNumber,
|
|
16770
|
+
data.payload ?? data.data ?? data,
|
|
16771
|
+
void 0
|
|
16772
|
+
]));
|
|
16773
|
+
}
|
|
16774
|
+
},
|
|
16775
|
+
{
|
|
16776
|
+
id: "focus.ai.search",
|
|
16777
|
+
family: "focus",
|
|
16778
|
+
resource: "ai",
|
|
16779
|
+
action: "search",
|
|
16780
|
+
title: "Search Ai",
|
|
16781
|
+
description: "Search Ai.",
|
|
16782
|
+
safety: "read",
|
|
16783
|
+
destructive: false,
|
|
16784
|
+
cli: {
|
|
16785
|
+
group: ["ai"],
|
|
16786
|
+
command: "search",
|
|
16787
|
+
interactive: "hidden"
|
|
16788
|
+
},
|
|
16789
|
+
mcp: { entityTool: "ai" },
|
|
16790
|
+
inputSchema: /* @__PURE__ */ looseObject({ q: /* @__PURE__ */ unknown$1() }),
|
|
16791
|
+
execute: (input, { client }) => {
|
|
16792
|
+
const data = input;
|
|
16793
|
+
return client.runGeneratedRequest("searchAi", () => callGeneratedRequest(searchAi, [
|
|
16794
|
+
client.httpClient,
|
|
16795
|
+
client.organizationId,
|
|
16796
|
+
client.workspaceIdNumber,
|
|
16797
|
+
data,
|
|
16798
|
+
void 0
|
|
16799
|
+
]));
|
|
16800
|
+
}
|
|
16801
|
+
},
|
|
16652
16802
|
{
|
|
16653
16803
|
id: "focus.ai.send-ai-message",
|
|
16654
16804
|
family: "focus",
|
|
@@ -16771,6 +16921,39 @@ const generatedFocusOperations = [
|
|
|
16771
16921
|
]));
|
|
16772
16922
|
}
|
|
16773
16923
|
},
|
|
16924
|
+
{
|
|
16925
|
+
id: "focus.ai.undo-ai-change",
|
|
16926
|
+
family: "focus",
|
|
16927
|
+
resource: "ai",
|
|
16928
|
+
action: "undo-ai-change",
|
|
16929
|
+
title: "Undo Ai Change Ai",
|
|
16930
|
+
description: "Undo Ai Change Ai.",
|
|
16931
|
+
safety: "update",
|
|
16932
|
+
destructive: false,
|
|
16933
|
+
cli: {
|
|
16934
|
+
group: ["ai"],
|
|
16935
|
+
command: "undo-ai-change",
|
|
16936
|
+
interactive: "default"
|
|
16937
|
+
},
|
|
16938
|
+
mcp: { entityTool: "ai" },
|
|
16939
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16940
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16941
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16942
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16943
|
+
}),
|
|
16944
|
+
execute: (input, { client }) => {
|
|
16945
|
+
const data = input;
|
|
16946
|
+
return client.runGeneratedRequest("undoAiChange", () => callGeneratedRequest(undoAiChange, [
|
|
16947
|
+
client.httpClient,
|
|
16948
|
+
client.organizationId,
|
|
16949
|
+
client.workspaceIdNumber,
|
|
16950
|
+
data.conversation_id,
|
|
16951
|
+
data.message_id,
|
|
16952
|
+
data.view_id,
|
|
16953
|
+
void 0
|
|
16954
|
+
]));
|
|
16955
|
+
}
|
|
16956
|
+
},
|
|
16774
16957
|
{
|
|
16775
16958
|
id: "focus.alerts.create",
|
|
16776
16959
|
family: "focus",
|
|
@@ -25359,6 +25542,33 @@ const generatedFocusOperations = [
|
|
|
25359
25542
|
return client.listTasks(data);
|
|
25360
25543
|
}
|
|
25361
25544
|
},
|
|
25545
|
+
{
|
|
25546
|
+
id: "focus.tasks.pin",
|
|
25547
|
+
family: "focus",
|
|
25548
|
+
resource: "tasks",
|
|
25549
|
+
action: "pin",
|
|
25550
|
+
title: "Pin Tasks",
|
|
25551
|
+
description: "Pin Tasks.",
|
|
25552
|
+
safety: "update",
|
|
25553
|
+
destructive: false,
|
|
25554
|
+
cli: {
|
|
25555
|
+
group: ["tasks"],
|
|
25556
|
+
command: "pin",
|
|
25557
|
+
interactive: "default"
|
|
25558
|
+
},
|
|
25559
|
+
mcp: { entityTool: "tasks" },
|
|
25560
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
25561
|
+
execute: (input, { client }) => {
|
|
25562
|
+
const data = input;
|
|
25563
|
+
return client.runGeneratedRequest("pinTask", () => callGeneratedRequest(pinTask, [
|
|
25564
|
+
client.httpClient,
|
|
25565
|
+
client.organizationId,
|
|
25566
|
+
client.workspaceIdNumber,
|
|
25567
|
+
data.task_id,
|
|
25568
|
+
void 0
|
|
25569
|
+
]));
|
|
25570
|
+
}
|
|
25571
|
+
},
|
|
25362
25572
|
{
|
|
25363
25573
|
id: "focus.tasks.restore",
|
|
25364
25574
|
family: "focus",
|
|
@@ -25483,6 +25693,33 @@ const generatedFocusOperations = [
|
|
|
25483
25693
|
]));
|
|
25484
25694
|
}
|
|
25485
25695
|
},
|
|
25696
|
+
{
|
|
25697
|
+
id: "focus.tasks.unpin",
|
|
25698
|
+
family: "focus",
|
|
25699
|
+
resource: "tasks",
|
|
25700
|
+
action: "unpin",
|
|
25701
|
+
title: "Unpin Tasks",
|
|
25702
|
+
description: "Unpin Tasks.",
|
|
25703
|
+
safety: "delete",
|
|
25704
|
+
destructive: true,
|
|
25705
|
+
cli: {
|
|
25706
|
+
group: ["tasks"],
|
|
25707
|
+
command: "unpin",
|
|
25708
|
+
interactive: "default"
|
|
25709
|
+
},
|
|
25710
|
+
mcp: { entityTool: "tasks" },
|
|
25711
|
+
inputSchema: /* @__PURE__ */ looseObject({ task_id: /* @__PURE__ */ number$2() }),
|
|
25712
|
+
execute: (input, { client }) => {
|
|
25713
|
+
const data = input;
|
|
25714
|
+
return client.runGeneratedRequest("unpinTask", () => callGeneratedRequest(unpinTask, [
|
|
25715
|
+
client.httpClient,
|
|
25716
|
+
client.organizationId,
|
|
25717
|
+
client.workspaceIdNumber,
|
|
25718
|
+
data.task_id,
|
|
25719
|
+
void 0
|
|
25720
|
+
]));
|
|
25721
|
+
}
|
|
25722
|
+
},
|
|
25486
25723
|
{
|
|
25487
25724
|
id: "focus.tasks.update",
|
|
25488
25725
|
family: "focus",
|
|
@@ -30626,4 +30863,4 @@ Common commands:
|
|
|
30626
30863
|
//#endregion
|
|
30627
30864
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
30628
30865
|
|
|
30629
|
-
//# sourceMappingURL=program-
|
|
30866
|
+
//# sourceMappingURL=program-CBOlZnJy.js.map
|
package/build/program.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createProgram } from "./program-
|
|
1
|
+
import { t as createProgram } from "./program-CBOlZnJy.js";
|
|
2
2
|
export { createProgram };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togglhq/cli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.70",
|
|
4
4
|
"description": "Toggl CLI for Toggl 2.0 API operations.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@toggl/cli-core": "workspace:^",
|
|
58
58
|
"@toggl/operations": "workspace:^",
|
|
59
|
-
"@toggl/queries": "2.2.
|
|
59
|
+
"@toggl/queries": "2.2.252",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|