@togglhq/cli 1.13.22 → 1.13.24
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-CstPOFzt.js → program-BgzwC8dF.js} +169 -6
- package/build/program.js +1 -1
- package/package.json +1 -1
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-BgzwC8dF.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-BgzwC8dF.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -10042,7 +10042,7 @@ async function unarchiveTag(httpClient, workspace_id, tag_id, signal) {
|
|
|
10042
10042
|
}
|
|
10043
10043
|
//#endregion
|
|
10044
10044
|
//#region ../focus-queries/dist/projects/requests.ts
|
|
10045
|
-
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id,
|
|
10045
|
+
async function getProjectsClassic(httpClient, organization_id, workspace_id, { member_only, include_task_counts, include_tasks, unified_search, include_picker_parent_group_counts, task_archived, task_recurring, task_state, task_source, task_assignee_user_id, task_assignee_team_id, task_include_unassigned, task_name, task_occurrence_window_date, task_occurrence_window_days, page, per_page, order_by, pinned, archived, completed, private: private_, name, client_id, creator_id, tag_id, project_id, user_id, only_me, include_rates, include_rollover, include_idle_recurring_templates, collapse_recurring, include_drafts, include_locked_private, start_date, end_date, date_overlap_start, date_overlap_end, cf_filter } = {}, signal) {
|
|
10046
10046
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects`, {
|
|
10047
10047
|
signal,
|
|
10048
10048
|
searchParams: buildSearchParams$2({
|
|
@@ -10072,7 +10072,6 @@ async function getProjectsClassic(httpClient, organization_id, workspace_id, { m
|
|
|
10072
10072
|
client_id,
|
|
10073
10073
|
creator_id,
|
|
10074
10074
|
tag_id,
|
|
10075
|
-
assignee_user_id,
|
|
10076
10075
|
project_id,
|
|
10077
10076
|
user_id,
|
|
10078
10077
|
only_me,
|
|
@@ -14884,6 +14883,20 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
14884
14883
|
return [...messages.slice(0, included), `(+${messages.length - included} more)`].join("; ");
|
|
14885
14884
|
}
|
|
14886
14885
|
//#endregion
|
|
14886
|
+
//#region ../focus-queries/dist/ai/requests.ts
|
|
14887
|
+
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
14888
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14889
|
+
signal,
|
|
14890
|
+
searchParams: buildSearchParams$2({ limit })
|
|
14891
|
+
}).json();
|
|
14892
|
+
}
|
|
14893
|
+
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
14894
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14895
|
+
signal,
|
|
14896
|
+
json: data
|
|
14897
|
+
}).json();
|
|
14898
|
+
}
|
|
14899
|
+
//#endregion
|
|
14887
14900
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
14888
14901
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
14889
14902
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
|
|
@@ -15462,7 +15475,7 @@ async function restoreMilestone(httpClient, workspace_id, milestone_id, signal)
|
|
|
15462
15475
|
}
|
|
15463
15476
|
//#endregion
|
|
15464
15477
|
//#region ../focus-queries/dist/project-groups/requests.ts
|
|
15465
|
-
async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id,
|
|
15478
|
+
async function getProjectGroupsClassic(httpClient, organization_id, workspace_id, group, { page, per_page, order_by, project_order_by, projects_per_group, include_group_totals, include_unassigned, archived, completed, private: private_, name, client_id, creator_id, tag_id, parent_project_id, project_id, start_date, end_date, user_id, only_me, include_drafts, include_recurring_series, cf_filter } = {}, signal) {
|
|
15466
15479
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/projects/groups/${group}`, {
|
|
15467
15480
|
signal,
|
|
15468
15481
|
searchParams: buildSearchParams$2({
|
|
@@ -15481,7 +15494,6 @@ async function getProjectGroupsClassic(httpClient, organization_id, workspace_id
|
|
|
15481
15494
|
creator_id,
|
|
15482
15495
|
tag_id,
|
|
15483
15496
|
parent_project_id,
|
|
15484
|
-
assignee_user_id,
|
|
15485
15497
|
project_id,
|
|
15486
15498
|
start_date,
|
|
15487
15499
|
end_date,
|
|
@@ -16476,6 +16488,158 @@ function callGeneratedRequest(request, args) {
|
|
|
16476
16488
|
return request(...args);
|
|
16477
16489
|
}
|
|
16478
16490
|
const generatedFocusOperations = [
|
|
16491
|
+
{
|
|
16492
|
+
id: "focus.ai.get-messages",
|
|
16493
|
+
family: "focus",
|
|
16494
|
+
resource: "ai",
|
|
16495
|
+
action: "get-messages",
|
|
16496
|
+
title: "Get Messages Ai",
|
|
16497
|
+
description: "Get Messages Ai.",
|
|
16498
|
+
safety: "read",
|
|
16499
|
+
destructive: false,
|
|
16500
|
+
cli: {
|
|
16501
|
+
group: ["ai"],
|
|
16502
|
+
command: "get-messages",
|
|
16503
|
+
interactive: "hidden"
|
|
16504
|
+
},
|
|
16505
|
+
mcp: { entityTool: "ai" },
|
|
16506
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16507
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16508
|
+
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
16509
|
+
}),
|
|
16510
|
+
execute: (input, { client }) => {
|
|
16511
|
+
const data = input;
|
|
16512
|
+
return client.runGeneratedRequest("getAiMessages", () => callGeneratedRequest(getAiMessages, [
|
|
16513
|
+
client.httpClient,
|
|
16514
|
+
client.organizationId,
|
|
16515
|
+
client.workspaceIdNumber,
|
|
16516
|
+
data.conversation_id,
|
|
16517
|
+
data,
|
|
16518
|
+
void 0
|
|
16519
|
+
]));
|
|
16520
|
+
}
|
|
16521
|
+
},
|
|
16522
|
+
{
|
|
16523
|
+
id: "focus.ai.send-ai-message",
|
|
16524
|
+
family: "focus",
|
|
16525
|
+
resource: "ai",
|
|
16526
|
+
action: "send-ai-message",
|
|
16527
|
+
title: "Send Ai Message Ai",
|
|
16528
|
+
description: "Send Ai Message Ai.",
|
|
16529
|
+
safety: "update",
|
|
16530
|
+
destructive: false,
|
|
16531
|
+
cli: {
|
|
16532
|
+
group: ["ai"],
|
|
16533
|
+
command: "send-ai-message",
|
|
16534
|
+
interactive: "hidden"
|
|
16535
|
+
},
|
|
16536
|
+
mcp: { entityTool: "ai" },
|
|
16537
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16538
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16539
|
+
payload: /* @__PURE__ */ looseObject({
|
|
16540
|
+
text: /* @__PURE__ */ string$1(),
|
|
16541
|
+
page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
16542
|
+
date_range: /* @__PURE__ */ looseObject({
|
|
16543
|
+
from: /* @__PURE__ */ string$1(),
|
|
16544
|
+
preset: /* @__PURE__ */ string$1(),
|
|
16545
|
+
to: /* @__PURE__ */ string$1()
|
|
16546
|
+
}),
|
|
16547
|
+
extra: /* @__PURE__ */ unknown$1(),
|
|
16548
|
+
filters: /* @__PURE__ */ looseObject({
|
|
16549
|
+
entities: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16550
|
+
id: /* @__PURE__ */ number$2(),
|
|
16551
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16552
|
+
"project",
|
|
16553
|
+
"task",
|
|
16554
|
+
"client",
|
|
16555
|
+
"tag",
|
|
16556
|
+
"member",
|
|
16557
|
+
"team",
|
|
16558
|
+
"status",
|
|
16559
|
+
"time_entry"
|
|
16560
|
+
]),
|
|
16561
|
+
name: /* @__PURE__ */ string$1()
|
|
16562
|
+
})),
|
|
16563
|
+
search: /* @__PURE__ */ string$1()
|
|
16564
|
+
}),
|
|
16565
|
+
focus: /* @__PURE__ */ looseObject({
|
|
16566
|
+
id: /* @__PURE__ */ number$2(),
|
|
16567
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16568
|
+
"project",
|
|
16569
|
+
"task",
|
|
16570
|
+
"client",
|
|
16571
|
+
"tag",
|
|
16572
|
+
"member",
|
|
16573
|
+
"team",
|
|
16574
|
+
"status",
|
|
16575
|
+
"time_entry"
|
|
16576
|
+
]),
|
|
16577
|
+
name: /* @__PURE__ */ string$1()
|
|
16578
|
+
}),
|
|
16579
|
+
groups: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16580
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16581
|
+
id: /* @__PURE__ */ number$2(),
|
|
16582
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16583
|
+
"project",
|
|
16584
|
+
"task",
|
|
16585
|
+
"client",
|
|
16586
|
+
"tag",
|
|
16587
|
+
"member",
|
|
16588
|
+
"team",
|
|
16589
|
+
"status",
|
|
16590
|
+
"time_entry"
|
|
16591
|
+
]),
|
|
16592
|
+
name: /* @__PURE__ */ string$1()
|
|
16593
|
+
})),
|
|
16594
|
+
label: /* @__PURE__ */ string$1(),
|
|
16595
|
+
ref: /* @__PURE__ */ looseObject({
|
|
16596
|
+
id: /* @__PURE__ */ number$2(),
|
|
16597
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16598
|
+
"project",
|
|
16599
|
+
"task",
|
|
16600
|
+
"client",
|
|
16601
|
+
"tag",
|
|
16602
|
+
"member",
|
|
16603
|
+
"team",
|
|
16604
|
+
"status",
|
|
16605
|
+
"time_entry"
|
|
16606
|
+
]),
|
|
16607
|
+
name: /* @__PURE__ */ string$1()
|
|
16608
|
+
})
|
|
16609
|
+
})),
|
|
16610
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16611
|
+
id: /* @__PURE__ */ number$2(),
|
|
16612
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16613
|
+
"project",
|
|
16614
|
+
"task",
|
|
16615
|
+
"client",
|
|
16616
|
+
"tag",
|
|
16617
|
+
"member",
|
|
16618
|
+
"team",
|
|
16619
|
+
"status",
|
|
16620
|
+
"time_entry"
|
|
16621
|
+
]),
|
|
16622
|
+
name: /* @__PURE__ */ string$1()
|
|
16623
|
+
})),
|
|
16624
|
+
page: /* @__PURE__ */ string$1(),
|
|
16625
|
+
page_label: /* @__PURE__ */ string$1(),
|
|
16626
|
+
url: /* @__PURE__ */ string$1(),
|
|
16627
|
+
version: /* @__PURE__ */ number$2()
|
|
16628
|
+
}))
|
|
16629
|
+
})
|
|
16630
|
+
}),
|
|
16631
|
+
execute: (input, { client }) => {
|
|
16632
|
+
const data = input;
|
|
16633
|
+
return client.runGeneratedRequest("sendAiMessage", () => callGeneratedRequest(sendAiMessage, [
|
|
16634
|
+
client.httpClient,
|
|
16635
|
+
client.organizationId,
|
|
16636
|
+
client.workspaceIdNumber,
|
|
16637
|
+
data.conversation_id,
|
|
16638
|
+
data.payload ?? data.data ?? data,
|
|
16639
|
+
void 0
|
|
16640
|
+
]));
|
|
16641
|
+
}
|
|
16642
|
+
},
|
|
16479
16643
|
{
|
|
16480
16644
|
id: "focus.alerts.create",
|
|
16481
16645
|
family: "focus",
|
|
@@ -19316,7 +19480,6 @@ const generatedFocusOperations = [
|
|
|
19316
19480
|
mcp: { entityTool: "projects" },
|
|
19317
19481
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
19318
19482
|
archived: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
19319
|
-
assignee_user_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
19320
19483
|
cf_filter: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
19321
19484
|
client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
19322
19485
|
completed: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
@@ -29695,4 +29858,4 @@ Common commands:
|
|
|
29695
29858
|
//#endregion
|
|
29696
29859
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29697
29860
|
|
|
29698
|
-
//# sourceMappingURL=program-
|
|
29861
|
+
//# sourceMappingURL=program-BgzwC8dF.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-BgzwC8dF.js";
|
|
2
2
|
export { createProgram };
|