@togglhq/cli 1.13.222 → 1.13.223

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-CksHyD6g.js";
2
+ import { a as CommanderError, i as shutdownCliTelemetry, n as captureCliException, r as initCliTelemetry, t as createProgram } from "./program-Bcsbm6wK.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-CksHyD6g.js";
1
+ import { t as createProgram } from "./program-Bcsbm6wK.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,
@@ -17672,6 +17690,39 @@ const generatedFocusOperations = [
17672
17690
  ]));
17673
17691
  }
17674
17692
  },
17693
+ {
17694
+ id: "focus.ai.attach-ai-turn",
17695
+ family: "focus",
17696
+ resource: "ai",
17697
+ action: "attach-ai-turn",
17698
+ title: "Attach Ai Turn Ai",
17699
+ description: "Attach Ai Turn Ai.",
17700
+ safety: "read",
17701
+ destructive: false,
17702
+ cli: {
17703
+ group: ["ai"],
17704
+ command: "attach-ai-turn",
17705
+ interactive: "hidden"
17706
+ },
17707
+ mcp: { entityTool: "ai" },
17708
+ inputSchema: /* @__PURE__ */ looseObject({
17709
+ after: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17710
+ conversation_id: /* @__PURE__ */ string$1(),
17711
+ lastEventID: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
17712
+ product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
17713
+ }),
17714
+ execute: (input, { client }) => {
17715
+ const data = input;
17716
+ return client.runGeneratedRequest("attachAiTurn", () => callGeneratedRequest(attachAiTurn, [
17717
+ client.httpClient,
17718
+ client.organizationId,
17719
+ client.workspaceIdNumber,
17720
+ data.conversation_id,
17721
+ data,
17722
+ void 0
17723
+ ]));
17724
+ }
17725
+ },
17675
17726
  {
17676
17727
  id: "focus.ai.connect-ai-source",
17677
17728
  family: "focus",
@@ -18286,6 +18337,37 @@ const generatedFocusOperations = [
18286
18337
  ]));
18287
18338
  }
18288
18339
  },
18340
+ {
18341
+ id: "focus.ai.stop-ai-turn",
18342
+ family: "focus",
18343
+ resource: "ai",
18344
+ action: "stop-ai-turn",
18345
+ title: "Stop Ai Turn Ai",
18346
+ description: "Stop Ai Turn Ai.",
18347
+ safety: "update",
18348
+ destructive: false,
18349
+ cli: {
18350
+ group: ["ai"],
18351
+ command: "stop-ai-turn",
18352
+ interactive: "default"
18353
+ },
18354
+ mcp: { entityTool: "ai" },
18355
+ inputSchema: /* @__PURE__ */ looseObject({
18356
+ conversation_id: /* @__PURE__ */ string$1(),
18357
+ product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
18358
+ }),
18359
+ execute: (input, { client }) => {
18360
+ const data = input;
18361
+ return client.runGeneratedRequest("stopAiTurn", () => callGeneratedRequest(stopAiTurn, [
18362
+ client.httpClient,
18363
+ client.organizationId,
18364
+ client.workspaceIdNumber,
18365
+ data.conversation_id,
18366
+ data.product,
18367
+ void 0
18368
+ ]));
18369
+ }
18370
+ },
18289
18371
  {
18290
18372
  id: "focus.ai.undo-ai-change",
18291
18373
  family: "focus",
@@ -33806,4 +33888,4 @@ Common commands:
33806
33888
  //#endregion
33807
33889
  export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
33808
33890
 
33809
- //# sourceMappingURL=program-CksHyD6g.js.map
33891
+ //# sourceMappingURL=program-Bcsbm6wK.js.map
package/build/program.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as createProgram } from "./program-CksHyD6g.js";
1
+ import { t as createProgram } from "./program-Bcsbm6wK.js";
2
2
  export { createProgram };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@togglhq/cli",
3
- "version": "1.13.222",
3
+ "version": "1.13.223",
4
4
  "description": "Toggl CLI for Toggl 2.0 API operations.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",