@togglhq/cli 1.13.222 → 1.13.224
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-CksHyD6g.js → program-bTXNSlbG.js} +124 -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-bTXNSlbG.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-bTXNSlbG.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -15435,6 +15435,24 @@ async function undoAiChange(httpClient, organization_id, workspace_id, conversat
|
|
|
15435
15435
|
searchParams: buildSearchParams$2({ product })
|
|
15436
15436
|
})).json();
|
|
15437
15437
|
}
|
|
15438
|
+
async function stopAiTurn(httpClient, organization_id, workspace_id, conversation_id, product, signal) {
|
|
15439
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stop`, {
|
|
15440
|
+
signal,
|
|
15441
|
+
searchParams: buildSearchParams$2({ product })
|
|
15442
|
+
})).json();
|
|
15443
|
+
}
|
|
15444
|
+
async function attachAiTurn(httpClient, organization_id, workspace_id, conversation_id, { after, product, lastEventID } = {}, signal) {
|
|
15445
|
+
const response = await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/stream`, {
|
|
15446
|
+
signal,
|
|
15447
|
+
headers: { "Last-Event-ID": lastEventID },
|
|
15448
|
+
searchParams: buildSearchParams$2({
|
|
15449
|
+
after,
|
|
15450
|
+
product
|
|
15451
|
+
})
|
|
15452
|
+
});
|
|
15453
|
+
if ([204, 205].includes(response.status)) return null;
|
|
15454
|
+
return response.json();
|
|
15455
|
+
}
|
|
15438
15456
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
15439
15457
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
15440
15458
|
signal,
|
|
@@ -15498,6 +15516,17 @@ async function runAiView(httpClient, organization_id, workspace_id, data, produc
|
|
|
15498
15516
|
})).json();
|
|
15499
15517
|
}
|
|
15500
15518
|
//#endregion
|
|
15519
|
+
//#region ../focus-queries/dist/archival/requests.ts
|
|
15520
|
+
async function getUpcomingArchivalGroupsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page } = {}, signal) {
|
|
15521
|
+
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archival/upcoming`, {
|
|
15522
|
+
signal,
|
|
15523
|
+
searchParams: buildSearchParams$2({
|
|
15524
|
+
page,
|
|
15525
|
+
per_page
|
|
15526
|
+
})
|
|
15527
|
+
})).json();
|
|
15528
|
+
}
|
|
15529
|
+
//#endregion
|
|
15501
15530
|
//#region ../focus-queries/dist/archived-clients/requests.ts
|
|
15502
15531
|
async function getArchivedClientsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name } = {}, signal) {
|
|
15503
15532
|
return (await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/clients`, {
|
|
@@ -17672,6 +17701,39 @@ const generatedFocusOperations = [
|
|
|
17672
17701
|
]));
|
|
17673
17702
|
}
|
|
17674
17703
|
},
|
|
17704
|
+
{
|
|
17705
|
+
id: "focus.ai.attach-ai-turn",
|
|
17706
|
+
family: "focus",
|
|
17707
|
+
resource: "ai",
|
|
17708
|
+
action: "attach-ai-turn",
|
|
17709
|
+
title: "Attach Ai Turn Ai",
|
|
17710
|
+
description: "Attach Ai Turn Ai.",
|
|
17711
|
+
safety: "read",
|
|
17712
|
+
destructive: false,
|
|
17713
|
+
cli: {
|
|
17714
|
+
group: ["ai"],
|
|
17715
|
+
command: "attach-ai-turn",
|
|
17716
|
+
interactive: "hidden"
|
|
17717
|
+
},
|
|
17718
|
+
mcp: { entityTool: "ai" },
|
|
17719
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17720
|
+
after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17721
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
17722
|
+
lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17723
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17724
|
+
}),
|
|
17725
|
+
execute: (input, { client }) => {
|
|
17726
|
+
const data = input;
|
|
17727
|
+
return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
|
|
17728
|
+
client.httpClient,
|
|
17729
|
+
client.organizationId,
|
|
17730
|
+
client.workspaceIdNumber,
|
|
17731
|
+
data.conversation_id,
|
|
17732
|
+
data,
|
|
17733
|
+
void 0
|
|
17734
|
+
]));
|
|
17735
|
+
}
|
|
17736
|
+
},
|
|
17675
17737
|
{
|
|
17676
17738
|
id: "focus.ai.connect-ai-source",
|
|
17677
17739
|
family: "focus",
|
|
@@ -18286,6 +18348,37 @@ const generatedFocusOperations = [
|
|
|
18286
18348
|
]));
|
|
18287
18349
|
}
|
|
18288
18350
|
},
|
|
18351
|
+
{
|
|
18352
|
+
id: "focus.ai.stop-ai-turn",
|
|
18353
|
+
family: "focus",
|
|
18354
|
+
resource: "ai",
|
|
18355
|
+
action: "stop-ai-turn",
|
|
18356
|
+
title: "Stop Ai Turn Ai",
|
|
18357
|
+
description: "Stop Ai Turn Ai.",
|
|
18358
|
+
safety: "update",
|
|
18359
|
+
destructive: false,
|
|
18360
|
+
cli: {
|
|
18361
|
+
group: ["ai"],
|
|
18362
|
+
command: "stop-ai-turn",
|
|
18363
|
+
interactive: "default"
|
|
18364
|
+
},
|
|
18365
|
+
mcp: { entityTool: "ai" },
|
|
18366
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18367
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
18368
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18369
|
+
}),
|
|
18370
|
+
execute: (input, { client }) => {
|
|
18371
|
+
const data = input;
|
|
18372
|
+
return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
|
|
18373
|
+
client.httpClient,
|
|
18374
|
+
client.organizationId,
|
|
18375
|
+
client.workspaceIdNumber,
|
|
18376
|
+
data.conversation_id,
|
|
18377
|
+
data.product,
|
|
18378
|
+
void 0
|
|
18379
|
+
]));
|
|
18380
|
+
}
|
|
18381
|
+
},
|
|
18289
18382
|
{
|
|
18290
18383
|
id: "focus.ai.undo-ai-change",
|
|
18291
18384
|
family: "focus",
|
|
@@ -18457,6 +18550,36 @@ const generatedFocusOperations = [
|
|
|
18457
18550
|
return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
|
|
18458
18551
|
}
|
|
18459
18552
|
},
|
|
18553
|
+
{
|
|
18554
|
+
id: "focus.archival.get-upcoming-archival-groups",
|
|
18555
|
+
family: "focus",
|
|
18556
|
+
resource: "archival",
|
|
18557
|
+
action: "get-upcoming-archival-groups",
|
|
18558
|
+
title: "Get Upcoming Archival Groups Archival",
|
|
18559
|
+
description: "Get Upcoming Archival Groups Archival.",
|
|
18560
|
+
safety: "read",
|
|
18561
|
+
destructive: false,
|
|
18562
|
+
cli: {
|
|
18563
|
+
group: ["archival"],
|
|
18564
|
+
command: "get-upcoming-archival-groups",
|
|
18565
|
+
interactive: "hidden"
|
|
18566
|
+
},
|
|
18567
|
+
mcp: { entityTool: "archival" },
|
|
18568
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18569
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
18570
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
18571
|
+
}),
|
|
18572
|
+
execute: (input, { client }) => {
|
|
18573
|
+
const data = input;
|
|
18574
|
+
return client.runGeneratedRequest("getUpcomingArchivalGroupsClassic", () => callGeneratedRequest(getUpcomingArchivalGroupsClassic, [
|
|
18575
|
+
client.httpClient,
|
|
18576
|
+
client.organizationId,
|
|
18577
|
+
client.workspaceIdNumber,
|
|
18578
|
+
data,
|
|
18579
|
+
void 0
|
|
18580
|
+
]));
|
|
18581
|
+
}
|
|
18582
|
+
},
|
|
18460
18583
|
{
|
|
18461
18584
|
id: "focus.archived-clients.get",
|
|
18462
18585
|
family: "focus",
|
|
@@ -33806,4 +33929,4 @@ Common commands:
|
|
|
33806
33929
|
//#endregion
|
|
33807
33930
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
33808
33931
|
|
|
33809
|
-
//# sourceMappingURL=program-
|
|
33932
|
+
//# sourceMappingURL=program-bTXNSlbG.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-bTXNSlbG.js";
|
|
2
2
|
export { createProgram };
|