@togglhq/cli 1.13.124 → 1.13.125
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-BfGvCvZt.js → program-Cq0tkFHJ.js} +159 -9
- 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-Cq0tkFHJ.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-Cq0tkFHJ.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10979,7 +10979,7 @@ const PublicMeEntryRequestSchema = /* @__PURE__ */ object$2({
|
|
|
10979
10979
|
]))
|
|
10980
10980
|
});
|
|
10981
10981
|
//#endregion
|
|
10982
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10982
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/invitation/requests.mjs
|
|
10983
10983
|
async function getInvitations(httpClient, signal) {
|
|
10984
10984
|
return (await httpClient.get(`invitations`, { signal })).json();
|
|
10985
10985
|
}
|
|
@@ -10996,7 +10996,7 @@ async function resendInvitation(httpClient, organization_id, organization_user_i
|
|
|
10996
10996
|
return (await httpClient.post(`organizations/${organization_id}/invitations/${organization_user_id}/resend`, { signal })).json();
|
|
10997
10997
|
}
|
|
10998
10998
|
//#endregion
|
|
10999
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
10999
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/utils/requests.mjs
|
|
11000
11000
|
function buildSearchParams(params, flattenArrays = false) {
|
|
11001
11001
|
const searchParams = new URLSearchParams();
|
|
11002
11002
|
Object.entries(params).forEach(([key, value]) => {
|
|
@@ -11008,7 +11008,7 @@ function buildSearchParams(params, flattenArrays = false) {
|
|
|
11008
11008
|
return searchParams;
|
|
11009
11009
|
}
|
|
11010
11010
|
//#endregion
|
|
11011
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11011
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/organization-user/requests.mjs
|
|
11012
11012
|
async function getOrganizationUser(httpClient, organization_id, organization_user_id, signal) {
|
|
11013
11013
|
return (await httpClient.get(`organizations/${organization_id}/users/${organization_user_id}`, { signal })).json();
|
|
11014
11014
|
}
|
|
@@ -11023,7 +11023,7 @@ async function patchOrganizationUserActive(httpClient, organization_id, organiza
|
|
|
11023
11023
|
return (await httpClient.patch(`organizations/${organization_id}/users/${organization_user_id}/active_status/${status}`, { signal })).json();
|
|
11024
11024
|
}
|
|
11025
11025
|
//#endregion
|
|
11026
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11026
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/workspace/requests.mjs
|
|
11027
11027
|
async function getWorkspaces(httpClient, organization_id, signal) {
|
|
11028
11028
|
return (await httpClient.get(`organizations/${organization_id}/workspaces`, { signal })).json();
|
|
11029
11029
|
}
|
|
@@ -11043,7 +11043,7 @@ const WorkingHoursUpdateInputSchema = /* @__PURE__ */ object$2({
|
|
|
11043
11043
|
});
|
|
11044
11044
|
const StatusOKSchema = /* @__PURE__ */ object$2({ status: /* @__PURE__ */ string$1() });
|
|
11045
11045
|
//#endregion
|
|
11046
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11046
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/holiday-calendar/requests.mjs
|
|
11047
11047
|
async function holidayListDates(httpClient, organization_id, { year, country }, signal) {
|
|
11048
11048
|
return (await httpClient.get(`holidays/organizations/${organization_id}/calendar/dates`, {
|
|
11049
11049
|
signal,
|
|
@@ -11054,12 +11054,12 @@ async function holidayListDates(httpClient, organization_id, { year, country },
|
|
|
11054
11054
|
})).json();
|
|
11055
11055
|
}
|
|
11056
11056
|
//#endregion
|
|
11057
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11057
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/status/requests.mjs
|
|
11058
11058
|
async function getStatus(httpClient, signal) {
|
|
11059
11059
|
return (await httpClient.get(`shared_data/api/status`, { signal })).json();
|
|
11060
11060
|
}
|
|
11061
11061
|
//#endregion
|
|
11062
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11062
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/org/timeoff/requests.mjs
|
|
11063
11063
|
async function timeoffListMyEntries(httpClient, organization_id, { from, to }, signal) {
|
|
11064
11064
|
return (await httpClient.get(`timeoff/organizations/${organization_id}/me`, {
|
|
11065
11065
|
signal,
|
|
@@ -11087,7 +11087,7 @@ async function timeoffDeleteMyEntry(httpClient, organization_id, id, signal) {
|
|
|
11087
11087
|
return response.json();
|
|
11088
11088
|
}
|
|
11089
11089
|
//#endregion
|
|
11090
|
-
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.
|
|
11090
|
+
//#region ../../node_modules/.pnpm/@toggl+queries@2.2.286_@tanstack+react-query@5.99.0_react@19.2.5__@toggl+sync@0.2.4_rea_4f8505a04b442d6f47d7aabbc6b0813d/node_modules/@toggl/queries/dist/shared-data/working-hours/requests.mjs
|
|
11091
11091
|
async function getMyWorkingHours(httpClient, organization_id, signal) {
|
|
11092
11092
|
return (await httpClient.get(`shared_data/api/workinghours/${organization_id}/me`, { signal })).json();
|
|
11093
11093
|
}
|
|
@@ -15016,6 +15016,30 @@ async function discardAiChange(httpClient, organization_id, workspace_id, conver
|
|
|
15016
15016
|
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15017
15017
|
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, { signal }).json();
|
|
15018
15018
|
}
|
|
15019
|
+
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
15020
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
15021
|
+
signal,
|
|
15022
|
+
json: data
|
|
15023
|
+
}).json();
|
|
15024
|
+
}
|
|
15025
|
+
async function dayRebuildName(httpClient, organization_id, workspace_id, data, signal) {
|
|
15026
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/name`, {
|
|
15027
|
+
signal,
|
|
15028
|
+
json: data
|
|
15029
|
+
}).json();
|
|
15030
|
+
}
|
|
15031
|
+
async function dayRebuildProjects(httpClient, organization_id, workspace_id, data, signal) {
|
|
15032
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/projects`, {
|
|
15033
|
+
signal,
|
|
15034
|
+
json: data
|
|
15035
|
+
}).json();
|
|
15036
|
+
}
|
|
15037
|
+
async function dayRebuildReadConnected(httpClient, organization_id, workspace_id, data, signal) {
|
|
15038
|
+
return await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/read-connected`, {
|
|
15039
|
+
signal,
|
|
15040
|
+
json: data
|
|
15041
|
+
}).json();
|
|
15042
|
+
}
|
|
15019
15043
|
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
15020
15044
|
return await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
15021
15045
|
signal,
|
|
@@ -16829,6 +16853,132 @@ const generatedFocusOperations = [
|
|
|
16829
16853
|
]));
|
|
16830
16854
|
}
|
|
16831
16855
|
},
|
|
16856
|
+
{
|
|
16857
|
+
id: "focus.ai.day-rebuild-group",
|
|
16858
|
+
family: "focus",
|
|
16859
|
+
resource: "ai",
|
|
16860
|
+
action: "day-rebuild-group",
|
|
16861
|
+
title: "Day Rebuild Group Ai",
|
|
16862
|
+
description: "Day Rebuild Group Ai.",
|
|
16863
|
+
safety: "update",
|
|
16864
|
+
destructive: false,
|
|
16865
|
+
cli: {
|
|
16866
|
+
group: ["ai"],
|
|
16867
|
+
command: "day-rebuild-group",
|
|
16868
|
+
interactive: "hidden"
|
|
16869
|
+
},
|
|
16870
|
+
mcp: { entityTool: "ai" },
|
|
16871
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
16872
|
+
execute: (input, { client }) => {
|
|
16873
|
+
const data = input;
|
|
16874
|
+
return client.runGeneratedRequest("dayRebuildGroup", () => callGeneratedRequest(dayRebuildGroup, [
|
|
16875
|
+
client.httpClient,
|
|
16876
|
+
client.organizationId,
|
|
16877
|
+
client.workspaceIdNumber,
|
|
16878
|
+
data.payload ?? data.data ?? data,
|
|
16879
|
+
void 0
|
|
16880
|
+
]));
|
|
16881
|
+
}
|
|
16882
|
+
},
|
|
16883
|
+
{
|
|
16884
|
+
id: "focus.ai.day-rebuild-name",
|
|
16885
|
+
family: "focus",
|
|
16886
|
+
resource: "ai",
|
|
16887
|
+
action: "day-rebuild-name",
|
|
16888
|
+
title: "Day Rebuild Name Ai",
|
|
16889
|
+
description: "Day Rebuild Name Ai.",
|
|
16890
|
+
safety: "update",
|
|
16891
|
+
destructive: false,
|
|
16892
|
+
cli: {
|
|
16893
|
+
group: ["ai"],
|
|
16894
|
+
command: "day-rebuild-name",
|
|
16895
|
+
interactive: "hidden"
|
|
16896
|
+
},
|
|
16897
|
+
mcp: { entityTool: "ai" },
|
|
16898
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
16899
|
+
execute: (input, { client }) => {
|
|
16900
|
+
const data = input;
|
|
16901
|
+
return client.runGeneratedRequest("dayRebuildName", () => callGeneratedRequest(dayRebuildName, [
|
|
16902
|
+
client.httpClient,
|
|
16903
|
+
client.organizationId,
|
|
16904
|
+
client.workspaceIdNumber,
|
|
16905
|
+
data.payload ?? data.data ?? data,
|
|
16906
|
+
void 0
|
|
16907
|
+
]));
|
|
16908
|
+
}
|
|
16909
|
+
},
|
|
16910
|
+
{
|
|
16911
|
+
id: "focus.ai.day-rebuild-projects",
|
|
16912
|
+
family: "focus",
|
|
16913
|
+
resource: "ai",
|
|
16914
|
+
action: "day-rebuild-projects",
|
|
16915
|
+
title: "Day Rebuild Projects Ai",
|
|
16916
|
+
description: "Day Rebuild Projects Ai.",
|
|
16917
|
+
safety: "update",
|
|
16918
|
+
destructive: false,
|
|
16919
|
+
cli: {
|
|
16920
|
+
group: ["ai"],
|
|
16921
|
+
command: "day-rebuild-projects",
|
|
16922
|
+
interactive: "hidden"
|
|
16923
|
+
},
|
|
16924
|
+
mcp: { entityTool: "ai" },
|
|
16925
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({ evidence: /* @__PURE__ */ unknown$1() }) }),
|
|
16926
|
+
execute: (input, { client }) => {
|
|
16927
|
+
const data = input;
|
|
16928
|
+
return client.runGeneratedRequest("dayRebuildProjects", () => callGeneratedRequest(dayRebuildProjects, [
|
|
16929
|
+
client.httpClient,
|
|
16930
|
+
client.organizationId,
|
|
16931
|
+
client.workspaceIdNumber,
|
|
16932
|
+
data.payload ?? data.data ?? data,
|
|
16933
|
+
void 0
|
|
16934
|
+
]));
|
|
16935
|
+
}
|
|
16936
|
+
},
|
|
16937
|
+
{
|
|
16938
|
+
id: "focus.ai.day-rebuild-read-connected",
|
|
16939
|
+
family: "focus",
|
|
16940
|
+
resource: "ai",
|
|
16941
|
+
action: "day-rebuild-read-connected",
|
|
16942
|
+
title: "Day Rebuild Read Connected Ai",
|
|
16943
|
+
description: "Day Rebuild Read Connected Ai.",
|
|
16944
|
+
safety: "update",
|
|
16945
|
+
destructive: false,
|
|
16946
|
+
cli: {
|
|
16947
|
+
group: ["ai"],
|
|
16948
|
+
command: "day-rebuild-read-connected",
|
|
16949
|
+
interactive: "hidden"
|
|
16950
|
+
},
|
|
16951
|
+
mcp: { entityTool: "ai" },
|
|
16952
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16953
|
+
now: /* @__PURE__ */ string$1(),
|
|
16954
|
+
service: /* @__PURE__ */ string$1(),
|
|
16955
|
+
since: /* @__PURE__ */ string$1(),
|
|
16956
|
+
tools: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16957
|
+
name: /* @__PURE__ */ string$1(),
|
|
16958
|
+
description: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
16959
|
+
input_schema: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
16960
|
+
})),
|
|
16961
|
+
preferred_tools: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ string$1())),
|
|
16962
|
+
turns: /* @__PURE__ */ optional$1(/* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16963
|
+
assistant_content: /* @__PURE__ */ array$1(/* @__PURE__ */ unknown$1()),
|
|
16964
|
+
tool_results: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16965
|
+
tool_use_id: /* @__PURE__ */ string$1(),
|
|
16966
|
+
content: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
16967
|
+
is_error: /* @__PURE__ */ optional$1(/* @__PURE__ */ boolean$1())
|
|
16968
|
+
}))
|
|
16969
|
+
})))
|
|
16970
|
+
}) }),
|
|
16971
|
+
execute: (input, { client }) => {
|
|
16972
|
+
const data = input;
|
|
16973
|
+
return client.runGeneratedRequest("dayRebuildReadConnected", () => callGeneratedRequest(dayRebuildReadConnected, [
|
|
16974
|
+
client.httpClient,
|
|
16975
|
+
client.organizationId,
|
|
16976
|
+
client.workspaceIdNumber,
|
|
16977
|
+
data.payload ?? data.data ?? data,
|
|
16978
|
+
void 0
|
|
16979
|
+
]));
|
|
16980
|
+
}
|
|
16981
|
+
},
|
|
16832
16982
|
{
|
|
16833
16983
|
id: "focus.ai.discard-ai-change",
|
|
16834
16984
|
family: "focus",
|
|
@@ -31434,4 +31584,4 @@ Common commands:
|
|
|
31434
31584
|
//#endregion
|
|
31435
31585
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
31436
31586
|
|
|
31437
|
-
//# sourceMappingURL=program-
|
|
31587
|
+
//# sourceMappingURL=program-Cq0tkFHJ.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-Cq0tkFHJ.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.125",
|
|
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.286",
|
|
60
60
|
"@types/node": "22.19.11",
|
|
61
61
|
"tsdown": "0.21.8",
|
|
62
62
|
"typescript": "5.9.3",
|