@togglhq/cli 1.13.22 → 1.13.23
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-CHU6dMAq.js} +167 -1
- 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-CHU6dMAq.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-CHU6dMAq.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -14884,6 +14884,20 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
14884
14884
|
return [...messages.slice(0, included), `(+${messages.length - included} more)`].join("; ");
|
|
14885
14885
|
}
|
|
14886
14886
|
//#endregion
|
|
14887
|
+
//#region ../focus-queries/dist/ai/requests.ts
|
|
14888
|
+
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
14889
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14890
|
+
signal,
|
|
14891
|
+
searchParams: buildSearchParams$2({ limit })
|
|
14892
|
+
}).json();
|
|
14893
|
+
}
|
|
14894
|
+
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
14895
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
14896
|
+
signal,
|
|
14897
|
+
json: data
|
|
14898
|
+
}).json();
|
|
14899
|
+
}
|
|
14900
|
+
//#endregion
|
|
14887
14901
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
14888
14902
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
14889
14903
|
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/attachments/storage`, { signal }).json();
|
|
@@ -16476,6 +16490,158 @@ function callGeneratedRequest(request, args) {
|
|
|
16476
16490
|
return request(...args);
|
|
16477
16491
|
}
|
|
16478
16492
|
const generatedFocusOperations = [
|
|
16493
|
+
{
|
|
16494
|
+
id: "focus.ai.get-messages",
|
|
16495
|
+
family: "focus",
|
|
16496
|
+
resource: "ai",
|
|
16497
|
+
action: "get-messages",
|
|
16498
|
+
title: "Get Messages Ai",
|
|
16499
|
+
description: "Get Messages Ai.",
|
|
16500
|
+
safety: "read",
|
|
16501
|
+
destructive: false,
|
|
16502
|
+
cli: {
|
|
16503
|
+
group: ["ai"],
|
|
16504
|
+
command: "get-messages",
|
|
16505
|
+
interactive: "hidden"
|
|
16506
|
+
},
|
|
16507
|
+
mcp: { entityTool: "ai" },
|
|
16508
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16509
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16510
|
+
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
16511
|
+
}),
|
|
16512
|
+
execute: (input, { client }) => {
|
|
16513
|
+
const data = input;
|
|
16514
|
+
return client.runGeneratedRequest("getAiMessages", () => callGeneratedRequest(getAiMessages, [
|
|
16515
|
+
client.httpClient,
|
|
16516
|
+
client.organizationId,
|
|
16517
|
+
client.workspaceIdNumber,
|
|
16518
|
+
data.conversation_id,
|
|
16519
|
+
data,
|
|
16520
|
+
void 0
|
|
16521
|
+
]));
|
|
16522
|
+
}
|
|
16523
|
+
},
|
|
16524
|
+
{
|
|
16525
|
+
id: "focus.ai.send-ai-message",
|
|
16526
|
+
family: "focus",
|
|
16527
|
+
resource: "ai",
|
|
16528
|
+
action: "send-ai-message",
|
|
16529
|
+
title: "Send Ai Message Ai",
|
|
16530
|
+
description: "Send Ai Message Ai.",
|
|
16531
|
+
safety: "update",
|
|
16532
|
+
destructive: false,
|
|
16533
|
+
cli: {
|
|
16534
|
+
group: ["ai"],
|
|
16535
|
+
command: "send-ai-message",
|
|
16536
|
+
interactive: "hidden"
|
|
16537
|
+
},
|
|
16538
|
+
mcp: { entityTool: "ai" },
|
|
16539
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16540
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16541
|
+
payload: /* @__PURE__ */ looseObject({
|
|
16542
|
+
text: /* @__PURE__ */ string$1(),
|
|
16543
|
+
page_context: /* @__PURE__ */ optional$1(/* @__PURE__ */ looseObject({
|
|
16544
|
+
date_range: /* @__PURE__ */ looseObject({
|
|
16545
|
+
from: /* @__PURE__ */ string$1(),
|
|
16546
|
+
preset: /* @__PURE__ */ string$1(),
|
|
16547
|
+
to: /* @__PURE__ */ string$1()
|
|
16548
|
+
}),
|
|
16549
|
+
extra: /* @__PURE__ */ unknown$1(),
|
|
16550
|
+
filters: /* @__PURE__ */ looseObject({
|
|
16551
|
+
entities: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16552
|
+
id: /* @__PURE__ */ number$2(),
|
|
16553
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16554
|
+
"project",
|
|
16555
|
+
"task",
|
|
16556
|
+
"client",
|
|
16557
|
+
"tag",
|
|
16558
|
+
"member",
|
|
16559
|
+
"team",
|
|
16560
|
+
"status",
|
|
16561
|
+
"time_entry"
|
|
16562
|
+
]),
|
|
16563
|
+
name: /* @__PURE__ */ string$1()
|
|
16564
|
+
})),
|
|
16565
|
+
search: /* @__PURE__ */ string$1()
|
|
16566
|
+
}),
|
|
16567
|
+
focus: /* @__PURE__ */ looseObject({
|
|
16568
|
+
id: /* @__PURE__ */ number$2(),
|
|
16569
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16570
|
+
"project",
|
|
16571
|
+
"task",
|
|
16572
|
+
"client",
|
|
16573
|
+
"tag",
|
|
16574
|
+
"member",
|
|
16575
|
+
"team",
|
|
16576
|
+
"status",
|
|
16577
|
+
"time_entry"
|
|
16578
|
+
]),
|
|
16579
|
+
name: /* @__PURE__ */ string$1()
|
|
16580
|
+
}),
|
|
16581
|
+
groups: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16582
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16583
|
+
id: /* @__PURE__ */ number$2(),
|
|
16584
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16585
|
+
"project",
|
|
16586
|
+
"task",
|
|
16587
|
+
"client",
|
|
16588
|
+
"tag",
|
|
16589
|
+
"member",
|
|
16590
|
+
"team",
|
|
16591
|
+
"status",
|
|
16592
|
+
"time_entry"
|
|
16593
|
+
]),
|
|
16594
|
+
name: /* @__PURE__ */ string$1()
|
|
16595
|
+
})),
|
|
16596
|
+
label: /* @__PURE__ */ string$1(),
|
|
16597
|
+
ref: /* @__PURE__ */ looseObject({
|
|
16598
|
+
id: /* @__PURE__ */ number$2(),
|
|
16599
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16600
|
+
"project",
|
|
16601
|
+
"task",
|
|
16602
|
+
"client",
|
|
16603
|
+
"tag",
|
|
16604
|
+
"member",
|
|
16605
|
+
"team",
|
|
16606
|
+
"status",
|
|
16607
|
+
"time_entry"
|
|
16608
|
+
]),
|
|
16609
|
+
name: /* @__PURE__ */ string$1()
|
|
16610
|
+
})
|
|
16611
|
+
})),
|
|
16612
|
+
items: /* @__PURE__ */ array$1(/* @__PURE__ */ looseObject({
|
|
16613
|
+
id: /* @__PURE__ */ number$2(),
|
|
16614
|
+
kind: /* @__PURE__ */ picklist$1([
|
|
16615
|
+
"project",
|
|
16616
|
+
"task",
|
|
16617
|
+
"client",
|
|
16618
|
+
"tag",
|
|
16619
|
+
"member",
|
|
16620
|
+
"team",
|
|
16621
|
+
"status",
|
|
16622
|
+
"time_entry"
|
|
16623
|
+
]),
|
|
16624
|
+
name: /* @__PURE__ */ string$1()
|
|
16625
|
+
})),
|
|
16626
|
+
page: /* @__PURE__ */ string$1(),
|
|
16627
|
+
page_label: /* @__PURE__ */ string$1(),
|
|
16628
|
+
url: /* @__PURE__ */ string$1(),
|
|
16629
|
+
version: /* @__PURE__ */ number$2()
|
|
16630
|
+
}))
|
|
16631
|
+
})
|
|
16632
|
+
}),
|
|
16633
|
+
execute: (input, { client }) => {
|
|
16634
|
+
const data = input;
|
|
16635
|
+
return client.runGeneratedRequest("sendAiMessage", () => callGeneratedRequest(sendAiMessage, [
|
|
16636
|
+
client.httpClient,
|
|
16637
|
+
client.organizationId,
|
|
16638
|
+
client.workspaceIdNumber,
|
|
16639
|
+
data.conversation_id,
|
|
16640
|
+
data.payload ?? data.data ?? data,
|
|
16641
|
+
void 0
|
|
16642
|
+
]));
|
|
16643
|
+
}
|
|
16644
|
+
},
|
|
16479
16645
|
{
|
|
16480
16646
|
id: "focus.alerts.create",
|
|
16481
16647
|
family: "focus",
|
|
@@ -29695,4 +29861,4 @@ Common commands:
|
|
|
29695
29861
|
//#endregion
|
|
29696
29862
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
29697
29863
|
|
|
29698
|
-
//# sourceMappingURL=program-
|
|
29864
|
+
//# sourceMappingURL=program-CHU6dMAq.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-CHU6dMAq.js";
|
|
2
2
|
export { createProgram };
|