@togglhq/cli 1.13.67 → 1.13.69
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-BIMbFXA3.js → program-CgO1wpBJ.js} +253 -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-CgO1wpBJ.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-CgO1wpBJ.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -14940,6 +14940,43 @@ async function sendAiMessage(httpClient, organization_id, workspace_id, conversa
|
|
|
14940
14940
|
json: data
|
|
14941
14941
|
}).json();
|
|
14942
14942
|
}
|
|
14943
|
+
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14944
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, { signal }).json();
|
|
14945
|
+
}
|
|
14946
|
+
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
14947
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, { signal }).json();
|
|
14948
|
+
}
|
|
14949
|
+
async function undoAiChange(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}/undo`, { signal }).json();
|
|
14951
|
+
}
|
|
14952
|
+
async function searchAi(httpClient, organization_id, workspace_id, { q }, signal) {
|
|
14953
|
+
return await httpClient.get(`ai/organizations/${organization_id}/workspaces/${workspace_id}/search`, {
|
|
14954
|
+
signal,
|
|
14955
|
+
searchParams: buildSearchParams$2({ q })
|
|
14956
|
+
}).json();
|
|
14957
|
+
}
|
|
14958
|
+
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
14959
|
+
return await httpClient.post(`ai/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
14960
|
+
signal,
|
|
14961
|
+
json: data
|
|
14962
|
+
}).json();
|
|
14963
|
+
}
|
|
14964
|
+
//#endregion
|
|
14965
|
+
//#region ../focus-queries/dist/archived-projects/requests.ts
|
|
14966
|
+
async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
|
|
14967
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects`, {
|
|
14968
|
+
signal,
|
|
14969
|
+
searchParams: buildSearchParams$2({
|
|
14970
|
+
page,
|
|
14971
|
+
per_page,
|
|
14972
|
+
name,
|
|
14973
|
+
client_id
|
|
14974
|
+
})
|
|
14975
|
+
}).json();
|
|
14976
|
+
}
|
|
14977
|
+
async function getArchivedProject(httpClient, organization_id, workspace_id, project_id, signal) {
|
|
14978
|
+
return await httpClient.get(`organizations/${organization_id}/workspaces/${workspace_id}/archived/projects/${project_id}`, { signal }).json();
|
|
14979
|
+
}
|
|
14943
14980
|
//#endregion
|
|
14944
14981
|
//#region ../focus-queries/dist/attachments/requests.ts
|
|
14945
14982
|
async function getWorkspaceAttachmentStorage(httpClient, organization_id, workspace_id, signal) {
|
|
@@ -16602,6 +16639,72 @@ function callGeneratedRequest(request, args) {
|
|
|
16602
16639
|
return request(...args);
|
|
16603
16640
|
}
|
|
16604
16641
|
const generatedFocusOperations = [
|
|
16642
|
+
{
|
|
16643
|
+
id: "focus.ai.apply-ai-change",
|
|
16644
|
+
family: "focus",
|
|
16645
|
+
resource: "ai",
|
|
16646
|
+
action: "apply-ai-change",
|
|
16647
|
+
title: "Apply Ai Change Ai",
|
|
16648
|
+
description: "Apply Ai Change Ai.",
|
|
16649
|
+
safety: "update",
|
|
16650
|
+
destructive: false,
|
|
16651
|
+
cli: {
|
|
16652
|
+
group: ["ai"],
|
|
16653
|
+
command: "apply-ai-change",
|
|
16654
|
+
interactive: "default"
|
|
16655
|
+
},
|
|
16656
|
+
mcp: { entityTool: "ai" },
|
|
16657
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16658
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16659
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16660
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16661
|
+
}),
|
|
16662
|
+
execute: (input, { client }) => {
|
|
16663
|
+
const data = input;
|
|
16664
|
+
return client.runGeneratedRequest("applyAiChange", () => callGeneratedRequest(applyAiChange, [
|
|
16665
|
+
client.httpClient,
|
|
16666
|
+
client.organizationId,
|
|
16667
|
+
client.workspaceIdNumber,
|
|
16668
|
+
data.conversation_id,
|
|
16669
|
+
data.message_id,
|
|
16670
|
+
data.view_id,
|
|
16671
|
+
void 0
|
|
16672
|
+
]));
|
|
16673
|
+
}
|
|
16674
|
+
},
|
|
16675
|
+
{
|
|
16676
|
+
id: "focus.ai.discard-ai-change",
|
|
16677
|
+
family: "focus",
|
|
16678
|
+
resource: "ai",
|
|
16679
|
+
action: "discard-ai-change",
|
|
16680
|
+
title: "Discard Ai Change Ai",
|
|
16681
|
+
description: "Discard Ai Change Ai.",
|
|
16682
|
+
safety: "update",
|
|
16683
|
+
destructive: false,
|
|
16684
|
+
cli: {
|
|
16685
|
+
group: ["ai"],
|
|
16686
|
+
command: "discard-ai-change",
|
|
16687
|
+
interactive: "default"
|
|
16688
|
+
},
|
|
16689
|
+
mcp: { entityTool: "ai" },
|
|
16690
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16691
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16692
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16693
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16694
|
+
}),
|
|
16695
|
+
execute: (input, { client }) => {
|
|
16696
|
+
const data = input;
|
|
16697
|
+
return client.runGeneratedRequest("discardAiChange", () => callGeneratedRequest(discardAiChange, [
|
|
16698
|
+
client.httpClient,
|
|
16699
|
+
client.organizationId,
|
|
16700
|
+
client.workspaceIdNumber,
|
|
16701
|
+
data.conversation_id,
|
|
16702
|
+
data.message_id,
|
|
16703
|
+
data.view_id,
|
|
16704
|
+
void 0
|
|
16705
|
+
]));
|
|
16706
|
+
}
|
|
16707
|
+
},
|
|
16605
16708
|
{
|
|
16606
16709
|
id: "focus.ai.get-messages",
|
|
16607
16710
|
family: "focus",
|
|
@@ -16633,6 +16736,63 @@ const generatedFocusOperations = [
|
|
|
16633
16736
|
]));
|
|
16634
16737
|
}
|
|
16635
16738
|
},
|
|
16739
|
+
{
|
|
16740
|
+
id: "focus.ai.run-ai-view",
|
|
16741
|
+
family: "focus",
|
|
16742
|
+
resource: "ai",
|
|
16743
|
+
action: "run-ai-view",
|
|
16744
|
+
title: "Run Ai View Ai",
|
|
16745
|
+
description: "Run Ai View Ai.",
|
|
16746
|
+
safety: "update",
|
|
16747
|
+
destructive: false,
|
|
16748
|
+
cli: {
|
|
16749
|
+
group: ["ai"],
|
|
16750
|
+
command: "run-ai-view",
|
|
16751
|
+
interactive: "default"
|
|
16752
|
+
},
|
|
16753
|
+
mcp: { entityTool: "ai" },
|
|
16754
|
+
inputSchema: /* @__PURE__ */ looseObject({ payload: /* @__PURE__ */ looseObject({
|
|
16755
|
+
input: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
16756
|
+
tool: /* @__PURE__ */ string$1()
|
|
16757
|
+
}) }),
|
|
16758
|
+
execute: (input, { client }) => {
|
|
16759
|
+
const data = input;
|
|
16760
|
+
return client.runGeneratedRequest("runAiView", () => callGeneratedRequest(runAiView, [
|
|
16761
|
+
client.httpClient,
|
|
16762
|
+
client.organizationId,
|
|
16763
|
+
client.workspaceIdNumber,
|
|
16764
|
+
data.payload ?? data.data ?? data,
|
|
16765
|
+
void 0
|
|
16766
|
+
]));
|
|
16767
|
+
}
|
|
16768
|
+
},
|
|
16769
|
+
{
|
|
16770
|
+
id: "focus.ai.search",
|
|
16771
|
+
family: "focus",
|
|
16772
|
+
resource: "ai",
|
|
16773
|
+
action: "search",
|
|
16774
|
+
title: "Search Ai",
|
|
16775
|
+
description: "Search Ai.",
|
|
16776
|
+
safety: "read",
|
|
16777
|
+
destructive: false,
|
|
16778
|
+
cli: {
|
|
16779
|
+
group: ["ai"],
|
|
16780
|
+
command: "search",
|
|
16781
|
+
interactive: "hidden"
|
|
16782
|
+
},
|
|
16783
|
+
mcp: { entityTool: "ai" },
|
|
16784
|
+
inputSchema: /* @__PURE__ */ looseObject({ q: /* @__PURE__ */ unknown$1() }),
|
|
16785
|
+
execute: (input, { client }) => {
|
|
16786
|
+
const data = input;
|
|
16787
|
+
return client.runGeneratedRequest("searchAi", () => callGeneratedRequest(searchAi, [
|
|
16788
|
+
client.httpClient,
|
|
16789
|
+
client.organizationId,
|
|
16790
|
+
client.workspaceIdNumber,
|
|
16791
|
+
data,
|
|
16792
|
+
void 0
|
|
16793
|
+
]));
|
|
16794
|
+
}
|
|
16795
|
+
},
|
|
16636
16796
|
{
|
|
16637
16797
|
id: "focus.ai.send-ai-message",
|
|
16638
16798
|
family: "focus",
|
|
@@ -16755,6 +16915,39 @@ const generatedFocusOperations = [
|
|
|
16755
16915
|
]));
|
|
16756
16916
|
}
|
|
16757
16917
|
},
|
|
16918
|
+
{
|
|
16919
|
+
id: "focus.ai.undo-ai-change",
|
|
16920
|
+
family: "focus",
|
|
16921
|
+
resource: "ai",
|
|
16922
|
+
action: "undo-ai-change",
|
|
16923
|
+
title: "Undo Ai Change Ai",
|
|
16924
|
+
description: "Undo Ai Change Ai.",
|
|
16925
|
+
safety: "update",
|
|
16926
|
+
destructive: false,
|
|
16927
|
+
cli: {
|
|
16928
|
+
group: ["ai"],
|
|
16929
|
+
command: "undo-ai-change",
|
|
16930
|
+
interactive: "default"
|
|
16931
|
+
},
|
|
16932
|
+
mcp: { entityTool: "ai" },
|
|
16933
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
16934
|
+
conversation_id: /* @__PURE__ */ string$1(),
|
|
16935
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
16936
|
+
view_id: /* @__PURE__ */ string$1()
|
|
16937
|
+
}),
|
|
16938
|
+
execute: (input, { client }) => {
|
|
16939
|
+
const data = input;
|
|
16940
|
+
return client.runGeneratedRequest("undoAiChange", () => callGeneratedRequest(undoAiChange, [
|
|
16941
|
+
client.httpClient,
|
|
16942
|
+
client.organizationId,
|
|
16943
|
+
client.workspaceIdNumber,
|
|
16944
|
+
data.conversation_id,
|
|
16945
|
+
data.message_id,
|
|
16946
|
+
data.view_id,
|
|
16947
|
+
void 0
|
|
16948
|
+
]));
|
|
16949
|
+
}
|
|
16950
|
+
},
|
|
16758
16951
|
{
|
|
16759
16952
|
id: "focus.alerts.create",
|
|
16760
16953
|
family: "focus",
|
|
@@ -16860,6 +17053,65 @@ const generatedFocusOperations = [
|
|
|
16860
17053
|
return client.partialUpdateAlert(data.alert_id, data.payload ?? data.data ?? data);
|
|
16861
17054
|
}
|
|
16862
17055
|
},
|
|
17056
|
+
{
|
|
17057
|
+
id: "focus.archived-projects.get",
|
|
17058
|
+
family: "focus",
|
|
17059
|
+
resource: "archived-projects",
|
|
17060
|
+
action: "get",
|
|
17061
|
+
title: "Get Archived Projects",
|
|
17062
|
+
description: "Get Archived Projects.",
|
|
17063
|
+
safety: "read",
|
|
17064
|
+
destructive: false,
|
|
17065
|
+
cli: {
|
|
17066
|
+
group: ["archived-projects"],
|
|
17067
|
+
command: "get",
|
|
17068
|
+
interactive: "available"
|
|
17069
|
+
},
|
|
17070
|
+
mcp: { entityTool: "archived-projects" },
|
|
17071
|
+
inputSchema: /* @__PURE__ */ looseObject({ project_id: /* @__PURE__ */ number$2() }),
|
|
17072
|
+
execute: (input, { client }) => {
|
|
17073
|
+
const data = input;
|
|
17074
|
+
return client.runGeneratedRequest("getArchivedProject", () => callGeneratedRequest(getArchivedProject, [
|
|
17075
|
+
client.httpClient,
|
|
17076
|
+
client.organizationId,
|
|
17077
|
+
client.workspaceIdNumber,
|
|
17078
|
+
data.project_id,
|
|
17079
|
+
void 0
|
|
17080
|
+
]));
|
|
17081
|
+
}
|
|
17082
|
+
},
|
|
17083
|
+
{
|
|
17084
|
+
id: "focus.archived-projects.get-classic",
|
|
17085
|
+
family: "focus",
|
|
17086
|
+
resource: "archived-projects",
|
|
17087
|
+
action: "get-classic",
|
|
17088
|
+
title: "Get Classic Archived Projects",
|
|
17089
|
+
description: "Get Classic Archived Projects.",
|
|
17090
|
+
safety: "read",
|
|
17091
|
+
destructive: false,
|
|
17092
|
+
cli: {
|
|
17093
|
+
group: ["archived-projects"],
|
|
17094
|
+
command: "get-classic",
|
|
17095
|
+
interactive: "hidden"
|
|
17096
|
+
},
|
|
17097
|
+
mcp: { entityTool: "archived-projects" },
|
|
17098
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
17099
|
+
client_id: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17100
|
+
name: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17101
|
+
page: /* @__PURE__ */ optional$1(/* @__PURE__ */ number$2()),
|
|
17102
|
+
per_page: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17103
|
+
}),
|
|
17104
|
+
execute: (input, { client }) => {
|
|
17105
|
+
const data = input;
|
|
17106
|
+
return client.runGeneratedRequest("getArchivedProjectsClassic", () => callGeneratedRequest(getArchivedProjectsClassic, [
|
|
17107
|
+
client.httpClient,
|
|
17108
|
+
client.organizationId,
|
|
17109
|
+
client.workspaceIdNumber,
|
|
17110
|
+
data,
|
|
17111
|
+
void 0
|
|
17112
|
+
]));
|
|
17113
|
+
}
|
|
17114
|
+
},
|
|
16863
17115
|
{
|
|
16864
17116
|
id: "focus.attachments.get-workspace-attachment-storage",
|
|
16865
17117
|
family: "focus",
|
|
@@ -30551,4 +30803,4 @@ Common commands:
|
|
|
30551
30803
|
//#endregion
|
|
30552
30804
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
30553
30805
|
|
|
30554
|
-
//# sourceMappingURL=program-
|
|
30806
|
+
//# sourceMappingURL=program-CgO1wpBJ.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-CgO1wpBJ.js";
|
|
2
2
|
export { createProgram };
|