@togglhq/cli 1.13.208 → 1.13.209
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-CR_l78NL.js → program-DySjHzDI.js} +65 -26
- 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-DySjHzDI.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-DySjHzDI.js";
|
|
2
2
|
export { createProgram };
|
|
@@ -15362,13 +15362,14 @@ function formatValibotError(issues, maxLength = MAX_ERROR_LENGTH) {
|
|
|
15362
15362
|
}
|
|
15363
15363
|
//#endregion
|
|
15364
15364
|
//#region ../focus-queries/dist/ai/requests.ts
|
|
15365
|
-
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit } = {}, signal) {
|
|
15365
|
+
async function getAiConversations(httpClient, organization_id, workspace_id, { search, before, limit, product } = {}, signal) {
|
|
15366
15366
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations`, {
|
|
15367
15367
|
signal,
|
|
15368
15368
|
searchParams: buildSearchParams$2({
|
|
15369
15369
|
search,
|
|
15370
15370
|
before,
|
|
15371
|
-
limit
|
|
15371
|
+
limit,
|
|
15372
|
+
product
|
|
15372
15373
|
})
|
|
15373
15374
|
})).json();
|
|
15374
15375
|
}
|
|
@@ -15383,32 +15384,51 @@ async function removeAiAttachment(httpClient, organization_id, workspace_id, con
|
|
|
15383
15384
|
if ([204, 205].includes(response.status)) return null;
|
|
15384
15385
|
return response.json();
|
|
15385
15386
|
}
|
|
15386
|
-
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit } = {}, signal) {
|
|
15387
|
+
async function getAiMessages(httpClient, organization_id, workspace_id, conversation_id, { limit, product } = {}, signal) {
|
|
15387
15388
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15388
15389
|
signal,
|
|
15389
|
-
searchParams: buildSearchParams$2({
|
|
15390
|
+
searchParams: buildSearchParams$2({
|
|
15391
|
+
limit,
|
|
15392
|
+
product
|
|
15393
|
+
})
|
|
15390
15394
|
})).json();
|
|
15391
15395
|
}
|
|
15392
|
-
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, signal) {
|
|
15396
|
+
async function sendAiMessage(httpClient, organization_id, workspace_id, conversation_id, data, product, signal) {
|
|
15393
15397
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages`, {
|
|
15394
15398
|
signal,
|
|
15395
|
-
json: data
|
|
15399
|
+
json: data,
|
|
15400
|
+
searchParams: buildSearchParams$2({ product })
|
|
15396
15401
|
})).json();
|
|
15397
15402
|
}
|
|
15398
|
-
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, signal) {
|
|
15399
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, {
|
|
15403
|
+
async function nextAiActions(httpClient, organization_id, workspace_id, conversation_id, message_id, product, signal) {
|
|
15404
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/next`, {
|
|
15405
|
+
signal,
|
|
15406
|
+
searchParams: buildSearchParams$2({ product })
|
|
15407
|
+
})).json();
|
|
15400
15408
|
}
|
|
15401
|
-
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15402
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, {
|
|
15409
|
+
async function acceptAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
15410
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/accept`, {
|
|
15411
|
+
signal,
|
|
15412
|
+
searchParams: buildSearchParams$2({ product })
|
|
15413
|
+
})).json();
|
|
15403
15414
|
}
|
|
15404
|
-
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15405
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, {
|
|
15415
|
+
async function applyAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
15416
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/apply`, {
|
|
15417
|
+
signal,
|
|
15418
|
+
searchParams: buildSearchParams$2({ product })
|
|
15419
|
+
})).json();
|
|
15406
15420
|
}
|
|
15407
|
-
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15408
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, {
|
|
15421
|
+
async function discardAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
15422
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/discard`, {
|
|
15423
|
+
signal,
|
|
15424
|
+
searchParams: buildSearchParams$2({ product })
|
|
15425
|
+
})).json();
|
|
15409
15426
|
}
|
|
15410
|
-
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, signal) {
|
|
15411
|
-
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, {
|
|
15427
|
+
async function undoAiChange(httpClient, organization_id, workspace_id, conversation_id, message_id, view_id, product, signal) {
|
|
15428
|
+
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/conversations/${conversation_id}/messages/${message_id}/views/${view_id}/undo`, {
|
|
15429
|
+
signal,
|
|
15430
|
+
searchParams: buildSearchParams$2({ product })
|
|
15431
|
+
})).json();
|
|
15412
15432
|
}
|
|
15413
15433
|
async function dayRebuildGroup(httpClient, organization_id, workspace_id, data, signal) {
|
|
15414
15434
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/day-rebuild/group`, {
|
|
@@ -15465,10 +15485,11 @@ async function connectAiSource(httpClient, organization_id, workspace_id, source
|
|
|
15465
15485
|
async function getAiUsage(httpClient, organization_id, workspace_id, signal) {
|
|
15466
15486
|
return (await httpClient.get(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/usage`, { signal })).json();
|
|
15467
15487
|
}
|
|
15468
|
-
async function runAiView(httpClient, organization_id, workspace_id, data, signal) {
|
|
15488
|
+
async function runAiView(httpClient, organization_id, workspace_id, data, product, signal) {
|
|
15469
15489
|
return (await httpClient.post(`intelligence/organizations/${organization_id}/workspaces/${workspace_id}/views/run`, {
|
|
15470
15490
|
signal,
|
|
15471
|
-
json: data
|
|
15491
|
+
json: data,
|
|
15492
|
+
searchParams: buildSearchParams$2({ product })
|
|
15472
15493
|
})).json();
|
|
15473
15494
|
}
|
|
15474
15495
|
//#endregion
|
|
@@ -17584,6 +17605,7 @@ const generatedFocusOperations = [
|
|
|
17584
17605
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17585
17606
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
17586
17607
|
message_id: /* @__PURE__ */ number$2(),
|
|
17608
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
17587
17609
|
view_id: /* @__PURE__ */ string$1()
|
|
17588
17610
|
}),
|
|
17589
17611
|
execute: (input, { client }) => {
|
|
@@ -17595,6 +17617,7 @@ const generatedFocusOperations = [
|
|
|
17595
17617
|
data.conversation_id,
|
|
17596
17618
|
data.message_id,
|
|
17597
17619
|
data.view_id,
|
|
17620
|
+
data.product,
|
|
17598
17621
|
void 0
|
|
17599
17622
|
]));
|
|
17600
17623
|
}
|
|
@@ -17617,6 +17640,7 @@ const generatedFocusOperations = [
|
|
|
17617
17640
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17618
17641
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
17619
17642
|
message_id: /* @__PURE__ */ number$2(),
|
|
17643
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
17620
17644
|
view_id: /* @__PURE__ */ string$1()
|
|
17621
17645
|
}),
|
|
17622
17646
|
execute: (input, { client }) => {
|
|
@@ -17628,6 +17652,7 @@ const generatedFocusOperations = [
|
|
|
17628
17652
|
data.conversation_id,
|
|
17629
17653
|
data.message_id,
|
|
17630
17654
|
data.view_id,
|
|
17655
|
+
data.product,
|
|
17631
17656
|
void 0
|
|
17632
17657
|
]));
|
|
17633
17658
|
}
|
|
@@ -17808,6 +17833,7 @@ const generatedFocusOperations = [
|
|
|
17808
17833
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17809
17834
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
17810
17835
|
message_id: /* @__PURE__ */ number$2(),
|
|
17836
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
17811
17837
|
view_id: /* @__PURE__ */ string$1()
|
|
17812
17838
|
}),
|
|
17813
17839
|
execute: (input, { client }) => {
|
|
@@ -17819,6 +17845,7 @@ const generatedFocusOperations = [
|
|
|
17819
17845
|
data.conversation_id,
|
|
17820
17846
|
data.message_id,
|
|
17821
17847
|
data.view_id,
|
|
17848
|
+
data.product,
|
|
17822
17849
|
void 0
|
|
17823
17850
|
]));
|
|
17824
17851
|
}
|
|
@@ -17902,6 +17929,7 @@ const generatedFocusOperations = [
|
|
|
17902
17929
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17903
17930
|
before: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17904
17931
|
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17932
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17905
17933
|
search: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17906
17934
|
}),
|
|
17907
17935
|
execute: (input, { client }) => {
|
|
@@ -17932,7 +17960,8 @@ const generatedFocusOperations = [
|
|
|
17932
17960
|
mcp: { entityTool: "ai" },
|
|
17933
17961
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
17934
17962
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
17935
|
-
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17963
|
+
limit: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1()),
|
|
17964
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ unknown$1())
|
|
17936
17965
|
}),
|
|
17937
17966
|
execute: (input, { client }) => {
|
|
17938
17967
|
const data = input;
|
|
@@ -18009,7 +18038,8 @@ const generatedFocusOperations = [
|
|
|
18009
18038
|
mcp: { entityTool: "ai" },
|
|
18010
18039
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18011
18040
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
18012
|
-
message_id: /* @__PURE__ */ number$2()
|
|
18041
|
+
message_id: /* @__PURE__ */ number$2(),
|
|
18042
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18013
18043
|
}),
|
|
18014
18044
|
execute: (input, { client }) => {
|
|
18015
18045
|
const data = input;
|
|
@@ -18019,6 +18049,7 @@ const generatedFocusOperations = [
|
|
|
18019
18049
|
client.workspaceIdNumber,
|
|
18020
18050
|
data.conversation_id,
|
|
18021
18051
|
data.message_id,
|
|
18052
|
+
data.product,
|
|
18022
18053
|
void 0
|
|
18023
18054
|
]));
|
|
18024
18055
|
}
|
|
@@ -18069,10 +18100,13 @@ const generatedFocusOperations = [
|
|
|
18069
18100
|
interactive: "default"
|
|
18070
18101
|
},
|
|
18071
18102
|
mcp: { entityTool: "ai" },
|
|
18072
|
-
inputSchema: /* @__PURE__ */ looseObject({
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18103
|
+
inputSchema: /* @__PURE__ */ looseObject({
|
|
18104
|
+
payload: /* @__PURE__ */ looseObject({
|
|
18105
|
+
input: /* @__PURE__ */ array$1(/* @__PURE__ */ number$2()),
|
|
18106
|
+
tool: /* @__PURE__ */ string$1()
|
|
18107
|
+
}),
|
|
18108
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18109
|
+
}),
|
|
18076
18110
|
execute: (input, { client }) => {
|
|
18077
18111
|
const data = input;
|
|
18078
18112
|
return client.runGeneratedRequest("runAiView", () => callGeneratedRequest(runAiView, [
|
|
@@ -18080,6 +18114,7 @@ const generatedFocusOperations = [
|
|
|
18080
18114
|
client.organizationId,
|
|
18081
18115
|
client.workspaceIdNumber,
|
|
18082
18116
|
data.payload ?? data.data ?? data,
|
|
18117
|
+
data.product,
|
|
18083
18118
|
void 0
|
|
18084
18119
|
]));
|
|
18085
18120
|
}
|
|
@@ -18220,7 +18255,8 @@ const generatedFocusOperations = [
|
|
|
18220
18255
|
page_label: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1()),
|
|
18221
18256
|
url: /* @__PURE__ */ optional$1(/* @__PURE__ */ string$1())
|
|
18222
18257
|
}))
|
|
18223
|
-
})
|
|
18258
|
+
}),
|
|
18259
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"]))
|
|
18224
18260
|
}),
|
|
18225
18261
|
execute: (input, { client }) => {
|
|
18226
18262
|
const data = input;
|
|
@@ -18230,6 +18266,7 @@ const generatedFocusOperations = [
|
|
|
18230
18266
|
client.workspaceIdNumber,
|
|
18231
18267
|
data.conversation_id,
|
|
18232
18268
|
data.payload ?? data.data ?? data,
|
|
18269
|
+
data.product,
|
|
18233
18270
|
void 0
|
|
18234
18271
|
]));
|
|
18235
18272
|
}
|
|
@@ -18252,6 +18289,7 @@ const generatedFocusOperations = [
|
|
|
18252
18289
|
inputSchema: /* @__PURE__ */ looseObject({
|
|
18253
18290
|
conversation_id: /* @__PURE__ */ string$1(),
|
|
18254
18291
|
message_id: /* @__PURE__ */ number$2(),
|
|
18292
|
+
product: /* @__PURE__ */ optional$1(/* @__PURE__ */ picklist$1(["track"])),
|
|
18255
18293
|
view_id: /* @__PURE__ */ string$1()
|
|
18256
18294
|
}),
|
|
18257
18295
|
execute: (input, { client }) => {
|
|
@@ -18263,6 +18301,7 @@ const generatedFocusOperations = [
|
|
|
18263
18301
|
data.conversation_id,
|
|
18264
18302
|
data.message_id,
|
|
18265
18303
|
data.view_id,
|
|
18304
|
+
data.product,
|
|
18266
18305
|
void 0
|
|
18267
18306
|
]));
|
|
18268
18307
|
}
|
|
@@ -33692,4 +33731,4 @@ Common commands:
|
|
|
33692
33731
|
//#endregion
|
|
33693
33732
|
export { CommanderError as a, shutdownCliTelemetry as i, captureCliException as n, initCliTelemetry as r, createProgram as t };
|
|
33694
33733
|
|
|
33695
|
-
//# sourceMappingURL=program-
|
|
33734
|
+
//# sourceMappingURL=program-DySjHzDI.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-DySjHzDI.js";
|
|
2
2
|
export { createProgram };
|