@togglhq/cli 1.13.68 → 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 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-CdVVE8GA.js";
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-CdVVE8GA.js";
1
+ import { t as createProgram } from "./program-CgO1wpBJ.js";
2
2
  export { createProgram };
@@ -14940,6 +14940,27 @@ 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
+ }
14943
14964
  //#endregion
14944
14965
  //#region ../focus-queries/dist/archived-projects/requests.ts
14945
14966
  async function getArchivedProjectsClassic(httpClient, organization_id, workspace_id, { page = 1, per_page, name, client_id } = {}, signal) {
@@ -16618,6 +16639,72 @@ function callGeneratedRequest(request, args) {
16618
16639
  return request(...args);
16619
16640
  }
16620
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
+ },
16621
16708
  {
16622
16709
  id: "focus.ai.get-messages",
16623
16710
  family: "focus",
@@ -16649,6 +16736,63 @@ const generatedFocusOperations = [
16649
16736
  ]));
16650
16737
  }
16651
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
+ },
16652
16796
  {
16653
16797
  id: "focus.ai.send-ai-message",
16654
16798
  family: "focus",
@@ -16771,6 +16915,39 @@ const generatedFocusOperations = [
16771
16915
  ]));
16772
16916
  }
16773
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
+ },
16774
16951
  {
16775
16952
  id: "focus.alerts.create",
16776
16953
  family: "focus",
@@ -30626,4 +30803,4 @@ Common commands:
30626
30803
  //#endregion
30627
30804
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
30628
30805
 
30629
- //# sourceMappingURL=program-CdVVE8GA.js.map
30806
+ //# sourceMappingURL=program-CgO1wpBJ.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CdVVE8GA.js";
1
+ import { t as createProgram } from "./program-CgO1wpBJ.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.68",
3
+ "version": "1.13.69",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",