@sixb/client 0.2.0 → 0.2.1
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/dist/browser.js +2 -2
- package/dist/{chunk-1wdszw1c.js → chunk-0p42gyb5.js} +3 -3
- package/dist/{chunk-mk0w4zr1.js → chunk-3kfn00we.js} +1 -1
- package/dist/{chunk-sh0f609h.js → chunk-hkn0keqj.js} +1 -1
- package/dist/{chunk-2qsekqcn.js → chunk-k2na62sa.js} +14 -2
- package/dist/{chunk-2qsekqcn.js.map → chunk-k2na62sa.js.map} +3 -3
- package/dist/{chunk-fnd56xxz.js → chunk-r50kxqa5.js} +2 -2
- package/dist/{chunk-s2pagg09.js → chunk-rrexv1gk.js} +2 -2
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +315 -115
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +8 -2
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +178 -5
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +21 -6
- package/dist/hooks.js.map +5 -5
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +4 -2
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/dist/useDesktop.d.ts +25 -0
- package/dist/useDesktop.d.ts.map +1 -1
- package/dist/users-hooks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/generated/@tanstack/react-query.gen.ts +34 -1
- package/src/generated/index.ts +6 -0
- package/src/generated/sdk.gen.ts +29 -1
- package/src/generated/types.gen.ts +185 -0
- package/src/hooks.ts +7 -1
- package/src/useDesktop.ts +27 -0
- /package/dist/{chunk-1wdszw1c.js.map → chunk-0p42gyb5.js.map} +0 -0
- /package/dist/{chunk-mk0w4zr1.js.map → chunk-3kfn00we.js.map} +0 -0
- /package/dist/{chunk-sh0f609h.js.map → chunk-hkn0keqj.js.map} +0 -0
- /package/dist/{chunk-fnd56xxz.js.map → chunk-r50kxqa5.js.map} +0 -0
- /package/dist/{chunk-s2pagg09.js.map → chunk-rrexv1gk.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -157,6 +157,7 @@ import {
|
|
|
157
157
|
moveAgentThreadToComputer2,
|
|
158
158
|
releaseAgentComputerSession2,
|
|
159
159
|
holdAgentComputerSession2,
|
|
160
|
+
stopAgentBackgroundCommand2,
|
|
160
161
|
getAgentPreferences2,
|
|
161
162
|
updateAgentPreferences2,
|
|
162
163
|
setAgentThreadApprovalMode2,
|
|
@@ -209,7 +210,7 @@ import {
|
|
|
209
210
|
listProjectionRuns2,
|
|
210
211
|
getProjectionRun2,
|
|
211
212
|
listWebhookRuns2
|
|
212
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-k2na62sa.js";
|
|
213
214
|
import {
|
|
214
215
|
createSixbAgentsWebSocketUrl2,
|
|
215
216
|
createAgentRunSocket2,
|
|
@@ -230,7 +231,7 @@ import {
|
|
|
230
231
|
objectFileContentUrl2,
|
|
231
232
|
SixbFileUploadError2,
|
|
232
233
|
uploadFile2
|
|
233
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-0p42gyb5.js";
|
|
234
235
|
import {
|
|
235
236
|
SIXB_CSRF_HEADER_NAME2,
|
|
236
237
|
SIXB_CSRF_TOKEN_RESPONSE_HEADER_NAME2,
|
|
@@ -240,7 +241,7 @@ import {
|
|
|
240
241
|
createSixbClient2,
|
|
241
242
|
configureSixbClient2,
|
|
242
243
|
createSixbClientConfig2
|
|
243
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-hkn0keqj.js";
|
|
244
245
|
import {
|
|
245
246
|
encodeObjectId2,
|
|
246
247
|
decodeObjectId2,
|
|
@@ -256,8 +257,8 @@ import {
|
|
|
256
257
|
logs2,
|
|
257
258
|
isStoredLogLine2,
|
|
258
259
|
isStoredLogLine3
|
|
259
|
-
} from "./chunk-
|
|
260
|
-
import"./chunk-
|
|
260
|
+
} from "./chunk-r50kxqa5.js";
|
|
261
|
+
import"./chunk-3kfn00we.js";
|
|
261
262
|
import"./chunk-0ka9ykez.js";
|
|
262
263
|
export {
|
|
263
264
|
ActionRunFailedError2 as ActionRunFailedError,
|
|
@@ -490,6 +491,7 @@ export {
|
|
|
490
491
|
signOutSixbSession2 as signOutSixbSession,
|
|
491
492
|
startConnectorConnectionRun2 as startConnectorConnectionRun,
|
|
492
493
|
startSixbDeviceLogin2 as startSixbDeviceLogin,
|
|
494
|
+
stopAgentBackgroundCommand2 as stopAgentBackgroundCommand,
|
|
493
495
|
submitWorkflowIntervention2 as submitWorkflowIntervention,
|
|
494
496
|
suspendAuthMember2 as suspendAuthMember,
|
|
495
497
|
telemetryUpdateFromEvent2 as telemetryUpdateFromEvent,
|
|
@@ -508,4 +510,4 @@ export {
|
|
|
508
510
|
uploadFileRaw2 as uploadFileRaw
|
|
509
511
|
};
|
|
510
512
|
|
|
511
|
-
//# debugId=
|
|
513
|
+
//# debugId=5F975E06FEC205F664756E2164756E21
|
package/dist/index.js.map
CHANGED
package/dist/logs.js
CHANGED
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
logs2,
|
|
7
7
|
isStoredLogLine2,
|
|
8
8
|
isStoredLogLine3
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import"./chunk-
|
|
9
|
+
} from "./chunk-r50kxqa5.js";
|
|
10
|
+
import"./chunk-3kfn00we.js";
|
|
11
11
|
import"./chunk-0ka9ykez.js";
|
|
12
12
|
import"./chunk-j9t5h44d.js";
|
|
13
|
-
import"./chunk-
|
|
13
|
+
import"./chunk-k2na62sa.js";
|
|
14
14
|
export {
|
|
15
15
|
createLogSocket2 as createLogSocket,
|
|
16
16
|
createSixbLogsWebSocketUrl2 as createSixbLogsWebSocketUrl,
|
package/dist/models.js
CHANGED
|
@@ -159,6 +159,7 @@ import {
|
|
|
159
159
|
moveAgentThreadToComputer2,
|
|
160
160
|
releaseAgentComputerSession2,
|
|
161
161
|
holdAgentComputerSession2,
|
|
162
|
+
stopAgentBackgroundCommand2,
|
|
162
163
|
getAgentPreferences2,
|
|
163
164
|
updateAgentPreferences2,
|
|
164
165
|
setAgentThreadApprovalMode2,
|
|
@@ -211,7 +212,7 @@ import {
|
|
|
211
212
|
listProjectionRuns2,
|
|
212
213
|
getProjectionRun2,
|
|
213
214
|
listWebhookRuns2
|
|
214
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-k2na62sa.js";
|
|
215
216
|
export {
|
|
216
217
|
abortFileUpload2 as abortFileUpload,
|
|
217
218
|
addAgentThreadParticipants2 as addAgentThreadParticipants,
|
|
@@ -408,6 +409,7 @@ export {
|
|
|
408
409
|
signOutAll2 as signOutAll,
|
|
409
410
|
signOutSharedAccess2 as signOutSharedAccess,
|
|
410
411
|
startConnectorConnectionRun2 as startConnectorConnectionRun,
|
|
412
|
+
stopAgentBackgroundCommand2 as stopAgentBackgroundCommand,
|
|
411
413
|
submitWorkflowIntervention2 as submitWorkflowIntervention,
|
|
412
414
|
suspendAuthMember2 as suspendAuthMember,
|
|
413
415
|
toObjectDetail2 as toObjectDetail,
|
|
@@ -423,4 +425,4 @@ export {
|
|
|
423
425
|
uploadFileRaw2 as uploadFileRaw
|
|
424
426
|
};
|
|
425
427
|
|
|
426
|
-
//# debugId=
|
|
428
|
+
//# debugId=B80F667DB4D6819564756E2164756E21
|
package/dist/models.js.map
CHANGED
package/dist/query.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
objects2,
|
|
5
5
|
createHttpQueryExecutor2,
|
|
6
6
|
currentUser2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-rrexv1gk.js";
|
|
8
|
+
import"./chunk-hkn0keqj.js";
|
|
9
9
|
import"./chunk-j9t5h44d.js";
|
|
10
|
-
import"./chunk-
|
|
10
|
+
import"./chunk-k2na62sa.js";
|
|
11
11
|
export {
|
|
12
12
|
SixbQueryError2 as SixbQueryError,
|
|
13
13
|
createHttpQueryExecutor2 as createHttpQueryExecutor,
|
package/dist/useDesktop.d.ts
CHANGED
|
@@ -10,6 +10,31 @@ export type DesktopPlatform = "darwin" | "win32" | "linux";
|
|
|
10
10
|
*/
|
|
11
11
|
export interface SixbDesktop {
|
|
12
12
|
readonly platform: DesktopPlatform;
|
|
13
|
+
/** Running the agent on this computer, in folders the person chooses here. */
|
|
14
|
+
readonly computer?: DesktopComputerAccess;
|
|
15
|
+
}
|
|
16
|
+
/** This computer, as a conversation that runs on it names it. */
|
|
17
|
+
export interface DesktopComputer {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* What a page can ask of this computer. It names no path it wasn't given: folders come from a native
|
|
23
|
+
* dialog the person answers, and allowing one that a conversation names asks them first.
|
|
24
|
+
*/
|
|
25
|
+
export interface DesktopComputerAccess {
|
|
26
|
+
/**
|
|
27
|
+
* Null where this desktop app can't run the agent. Rejects where it can, but what runs it couldn't
|
|
28
|
+
* start: asking again tries again.
|
|
29
|
+
*/
|
|
30
|
+
about(): Promise<DesktopComputer | null>;
|
|
31
|
+
/** The folders chosen on this computer for this project. */
|
|
32
|
+
folders(): Promise<readonly string[]>;
|
|
33
|
+
/** Ask the person for a folder, which allows it. Null when they cancel. */
|
|
34
|
+
pickFolder(): Promise<string | null>;
|
|
35
|
+
/** Ask the person to allow `folder`. Whether they did. */
|
|
36
|
+
allowFolder(folder: string): Promise<boolean>;
|
|
37
|
+
forgetFolder(folder: string): Promise<void>;
|
|
13
38
|
}
|
|
14
39
|
/**
|
|
15
40
|
* The desktop app this page runs in, or null in a browser and in a desktop app built before this
|
package/dist/useDesktop.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDesktop.d.ts","sourceRoot":"","sources":["../src/useDesktop.ts"],"names":[],"mappings":"AAEA,yCAAyC;AACzC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;AAE1D;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"useDesktop.d.ts","sourceRoot":"","sources":["../src/useDesktop.ts"],"names":[],"mappings":"AAEA,yCAAyC;AACzC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;AAE1D;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;IAClC,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C;AAED,iEAAiE;AACjE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,KAAK,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAA;IACxC,4DAA4D;IAC5D,OAAO,IAAI,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;IACrC,2EAA2E;IAC3E,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACpC,0DAA0D;IAC1D,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC7C,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5C;AAyBD;;;;;;GAMG;AACH,wBAAgB,UAAU,IAAI,WAAW,GAAG,IAAI,CAE/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-hooks.d.ts","sourceRoot":"","sources":["../src/users-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAgB,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAA;AAGnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAC/D,eAAe,GAAG;IAChB,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAEH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,yFAAyF;AACzF,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,eAAoB;;;;
|
|
1
|
+
{"version":3,"file":"users-hooks.d.ts","sourceRoot":"","sources":["../src/users-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAgB,KAAK,cAAc,EAAY,MAAM,uBAAuB,CAAA;AAGnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAC/D,eAAe,GAAG;IAChB,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAEH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG;IAC7C,oGAAoG;IACpG,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,yFAAyF;AACzF,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,eAAoB;;;;mBAiG0hwf,CAAC;iBAAwB,CAAC;;;;;;;;;mBAA1B,CAAC;iBAAwB,CAAC;;;;;;;;;;uBAA1B,CAAC;qBAAwB,CAAC;;;;;;;;;;;;2BAA1B,CAAC;yBAAwB,CAAC;;;;;;;;EArFlnwf;AAED,0FAA0F;AAC1F,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,GAAE,cAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BnF;AA0BD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB,GAAG,cAAc,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAIhG;AAED;;;GAGG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,eAAe,EACrB,OAAO,GAAE,cAAmB,GAC3B,cAAc,CAAC,eAAe,GAAG,IAAI,EAAE,KAAK,CAAC,CAI/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sixb/client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Type-safe SDK for Sixb API with TanStack Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sixb",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prepack": "bun run build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@sixb/core": "^0.2.
|
|
70
|
+
"@sixb/core": "^0.2.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -195,6 +195,7 @@ import {
|
|
|
195
195
|
signOutAll,
|
|
196
196
|
signOutSharedAccess,
|
|
197
197
|
startConnectorConnectionRun,
|
|
198
|
+
stopAgentBackgroundCommand,
|
|
198
199
|
submitWorkflowIntervention,
|
|
199
200
|
suspendAuthMember,
|
|
200
201
|
transcribeAudio,
|
|
@@ -743,6 +744,9 @@ import type {
|
|
|
743
744
|
StartConnectorConnectionRunData,
|
|
744
745
|
StartConnectorConnectionRunError,
|
|
745
746
|
StartConnectorConnectionRunResponse,
|
|
747
|
+
StopAgentBackgroundCommandData,
|
|
748
|
+
StopAgentBackgroundCommandError,
|
|
749
|
+
StopAgentBackgroundCommandResponse,
|
|
746
750
|
SubmitWorkflowInterventionData,
|
|
747
751
|
SubmitWorkflowInterventionError,
|
|
748
752
|
SubmitWorkflowInterventionResponse,
|
|
@@ -5202,7 +5206,7 @@ export const releaseAgentComputerSessionMutation = (
|
|
|
5202
5206
|
/**
|
|
5203
5207
|
* Open or renew a computer session
|
|
5204
5208
|
*
|
|
5205
|
-
* `sixb` holds one while it is open: your threads on this computer, in this folder, read as online, and you can continue them from anywhere. It lapses a minute after its last renewal.
|
|
5209
|
+
* `sixb` holds one while it is open: your threads on this computer, in this folder, read as online, and you can continue them from anywhere. It lapses a minute after its last renewal. It reports the background commands it runs for your threads; the answer lists the turns waiting for it, and the commands someone asked to stop.
|
|
5206
5210
|
*/
|
|
5207
5211
|
export const holdAgentComputerSessionMutation = (
|
|
5208
5212
|
options?: Partial<Options<HoldAgentComputerSessionData>>
|
|
@@ -5228,6 +5232,35 @@ export const holdAgentComputerSessionMutation = (
|
|
|
5228
5232
|
return mutationOptions
|
|
5229
5233
|
}
|
|
5230
5234
|
|
|
5235
|
+
/**
|
|
5236
|
+
* Stop a background command on your computer
|
|
5237
|
+
*
|
|
5238
|
+
* A command the agent ran in the background on your computer keeps running after its turn. `sixb` there stops it, and everything it started, at its next renewal, which this asks for at once. The thread's owner alone stops it.
|
|
5239
|
+
*/
|
|
5240
|
+
export const stopAgentBackgroundCommandMutation = (
|
|
5241
|
+
options?: Partial<Options<StopAgentBackgroundCommandData>>
|
|
5242
|
+
): UseMutationOptions<
|
|
5243
|
+
StopAgentBackgroundCommandResponse,
|
|
5244
|
+
StopAgentBackgroundCommandError,
|
|
5245
|
+
Options<StopAgentBackgroundCommandData>
|
|
5246
|
+
> => {
|
|
5247
|
+
const mutationOptions: UseMutationOptions<
|
|
5248
|
+
StopAgentBackgroundCommandResponse,
|
|
5249
|
+
StopAgentBackgroundCommandError,
|
|
5250
|
+
Options<StopAgentBackgroundCommandData>
|
|
5251
|
+
> = {
|
|
5252
|
+
mutationFn: async (fnOptions) => {
|
|
5253
|
+
const { data } = await stopAgentBackgroundCommand({
|
|
5254
|
+
...options,
|
|
5255
|
+
...fnOptions,
|
|
5256
|
+
throwOnError: true,
|
|
5257
|
+
})
|
|
5258
|
+
return data
|
|
5259
|
+
},
|
|
5260
|
+
}
|
|
5261
|
+
return mutationOptions
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5231
5264
|
export const getAgentPreferencesQueryKey = (options?: Options<GetAgentPreferencesData>) =>
|
|
5232
5265
|
createQueryKey("getAgentPreferences", options)
|
|
5233
5266
|
|
package/src/generated/index.ts
CHANGED
|
@@ -194,6 +194,7 @@ export {
|
|
|
194
194
|
signOutAll,
|
|
195
195
|
signOutSharedAccess,
|
|
196
196
|
startConnectorConnectionRun,
|
|
197
|
+
stopAgentBackgroundCommand,
|
|
197
198
|
submitWorkflowIntervention,
|
|
198
199
|
suspendAuthMember,
|
|
199
200
|
transcribeAudio,
|
|
@@ -1167,6 +1168,11 @@ export type {
|
|
|
1167
1168
|
StartConnectorConnectionRunErrors,
|
|
1168
1169
|
StartConnectorConnectionRunResponse,
|
|
1169
1170
|
StartConnectorConnectionRunResponses,
|
|
1171
|
+
StopAgentBackgroundCommandData,
|
|
1172
|
+
StopAgentBackgroundCommandError,
|
|
1173
|
+
StopAgentBackgroundCommandErrors,
|
|
1174
|
+
StopAgentBackgroundCommandResponse,
|
|
1175
|
+
StopAgentBackgroundCommandResponses,
|
|
1170
1176
|
SubmitWorkflowInterventionData,
|
|
1171
1177
|
SubmitWorkflowInterventionError,
|
|
1172
1178
|
SubmitWorkflowInterventionErrors,
|
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -571,6 +571,9 @@ import type {
|
|
|
571
571
|
StartConnectorConnectionRunData,
|
|
572
572
|
StartConnectorConnectionRunErrors,
|
|
573
573
|
StartConnectorConnectionRunResponses,
|
|
574
|
+
StopAgentBackgroundCommandData,
|
|
575
|
+
StopAgentBackgroundCommandErrors,
|
|
576
|
+
StopAgentBackgroundCommandResponses,
|
|
574
577
|
SubmitWorkflowInterventionData,
|
|
575
578
|
SubmitWorkflowInterventionErrors,
|
|
576
579
|
SubmitWorkflowInterventionResponses,
|
|
@@ -3330,7 +3333,7 @@ export const releaseAgentComputerSession = <ThrowOnError extends boolean = false
|
|
|
3330
3333
|
/**
|
|
3331
3334
|
* Open or renew a computer session
|
|
3332
3335
|
*
|
|
3333
|
-
* `sixb` holds one while it is open: your threads on this computer, in this folder, read as online, and you can continue them from anywhere. It lapses a minute after its last renewal.
|
|
3336
|
+
* `sixb` holds one while it is open: your threads on this computer, in this folder, read as online, and you can continue them from anywhere. It lapses a minute after its last renewal. It reports the background commands it runs for your threads; the answer lists the turns waiting for it, and the commands someone asked to stop.
|
|
3334
3337
|
*/
|
|
3335
3338
|
export const holdAgentComputerSession = <ThrowOnError extends boolean = false>(
|
|
3336
3339
|
options: Options<HoldAgentComputerSessionData, ThrowOnError>
|
|
@@ -3352,6 +3355,31 @@ export const holdAgentComputerSession = <ThrowOnError extends boolean = false>(
|
|
|
3352
3355
|
},
|
|
3353
3356
|
})
|
|
3354
3357
|
|
|
3358
|
+
/**
|
|
3359
|
+
* Stop a background command on your computer
|
|
3360
|
+
*
|
|
3361
|
+
* A command the agent ran in the background on your computer keeps running after its turn. `sixb` there stops it, and everything it started, at its next renewal, which this asks for at once. The thread's owner alone stops it.
|
|
3362
|
+
*/
|
|
3363
|
+
export const stopAgentBackgroundCommand = <ThrowOnError extends boolean = false>(
|
|
3364
|
+
options: Options<StopAgentBackgroundCommandData, ThrowOnError>
|
|
3365
|
+
) =>
|
|
3366
|
+
(options.client ?? client).post<
|
|
3367
|
+
StopAgentBackgroundCommandResponses,
|
|
3368
|
+
StopAgentBackgroundCommandErrors,
|
|
3369
|
+
ThrowOnError
|
|
3370
|
+
>({
|
|
3371
|
+
security: [
|
|
3372
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3373
|
+
{ scheme: "bearer", type: "http" },
|
|
3374
|
+
],
|
|
3375
|
+
url: "/api/agent-threads/{threadId}/background-commands/{commandId}/stop",
|
|
3376
|
+
...options,
|
|
3377
|
+
headers: {
|
|
3378
|
+
"Content-Type": "application/json",
|
|
3379
|
+
...options.headers,
|
|
3380
|
+
},
|
|
3381
|
+
})
|
|
3382
|
+
|
|
3355
3383
|
/**
|
|
3356
3384
|
* Get your Agent preferences
|
|
3357
3385
|
*/
|
|
@@ -2323,6 +2323,7 @@ export type GetAiAccountingOverviewData = {
|
|
|
2323
2323
|
| "transcription"
|
|
2324
2324
|
| "speech"
|
|
2325
2325
|
| "reranking"
|
|
2326
|
+
| "web-search"
|
|
2326
2327
|
bucket: "hour" | "day" | "week"
|
|
2327
2328
|
}
|
|
2328
2329
|
url: "/api/ai/accounting/overview"
|
|
@@ -2797,6 +2798,7 @@ export type GetAiAccountingOverviewResponses = {
|
|
|
2797
2798
|
| "transcription"
|
|
2798
2799
|
| "speech"
|
|
2799
2800
|
| "reranking"
|
|
2801
|
+
| "web-search"
|
|
2800
2802
|
}>
|
|
2801
2803
|
agents: Array<
|
|
2802
2804
|
| {
|
|
@@ -3037,6 +3039,7 @@ export type ListAiModelCallsData = {
|
|
|
3037
3039
|
| "transcription"
|
|
3038
3040
|
| "speech"
|
|
3039
3041
|
| "reranking"
|
|
3042
|
+
| "web-search"
|
|
3040
3043
|
executionId?: string
|
|
3041
3044
|
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
3042
3045
|
limit?: string
|
|
@@ -3090,6 +3093,7 @@ export type ListAiModelCallsResponses = {
|
|
|
3090
3093
|
| "transcription"
|
|
3091
3094
|
| "speech"
|
|
3092
3095
|
| "reranking"
|
|
3096
|
+
| "web-search"
|
|
3093
3097
|
requestedReasoning?:
|
|
3094
3098
|
| "provider-default"
|
|
3095
3099
|
| "none"
|
|
@@ -3964,6 +3968,7 @@ export type ListAiModelCallGroupsData = {
|
|
|
3964
3968
|
| "transcription"
|
|
3965
3969
|
| "speech"
|
|
3966
3970
|
| "reranking"
|
|
3971
|
+
| "web-search"
|
|
3967
3972
|
valuationStatus?: "rated" | "unpriceable" | "unvalued"
|
|
3968
3973
|
limit?: string
|
|
3969
3974
|
offset?: string
|
|
@@ -12401,6 +12406,16 @@ export type ListAgentThreadsResponses = {
|
|
|
12401
12406
|
folder: string
|
|
12402
12407
|
online: boolean
|
|
12403
12408
|
}
|
|
12409
|
+
backgroundCommands?: Array<{
|
|
12410
|
+
threadId: string
|
|
12411
|
+
id: string
|
|
12412
|
+
command: string
|
|
12413
|
+
status: "running" | "exited" | "stopped"
|
|
12414
|
+
exitCode?: number
|
|
12415
|
+
startedAt: string
|
|
12416
|
+
endedAt?: string
|
|
12417
|
+
stopping?: boolean
|
|
12418
|
+
}>
|
|
12404
12419
|
movedAt?: string
|
|
12405
12420
|
status: "active" | "archived"
|
|
12406
12421
|
activeRunId: string | null
|
|
@@ -12533,6 +12548,16 @@ export type CreateAgentThreadResponses = {
|
|
|
12533
12548
|
folder: string
|
|
12534
12549
|
online: boolean
|
|
12535
12550
|
}
|
|
12551
|
+
backgroundCommands?: Array<{
|
|
12552
|
+
threadId: string
|
|
12553
|
+
id: string
|
|
12554
|
+
command: string
|
|
12555
|
+
status: "running" | "exited" | "stopped"
|
|
12556
|
+
exitCode?: number
|
|
12557
|
+
startedAt: string
|
|
12558
|
+
endedAt?: string
|
|
12559
|
+
stopping?: boolean
|
|
12560
|
+
}>
|
|
12536
12561
|
movedAt?: string
|
|
12537
12562
|
status: "active" | "archived"
|
|
12538
12563
|
activeRunId: string | null
|
|
@@ -12638,6 +12663,16 @@ export type GetAgentThreadResponses = {
|
|
|
12638
12663
|
folder: string
|
|
12639
12664
|
online: boolean
|
|
12640
12665
|
}
|
|
12666
|
+
backgroundCommands?: Array<{
|
|
12667
|
+
threadId: string
|
|
12668
|
+
id: string
|
|
12669
|
+
command: string
|
|
12670
|
+
status: "running" | "exited" | "stopped"
|
|
12671
|
+
exitCode?: number
|
|
12672
|
+
startedAt: string
|
|
12673
|
+
endedAt?: string
|
|
12674
|
+
stopping?: boolean
|
|
12675
|
+
}>
|
|
12641
12676
|
movedAt?: string
|
|
12642
12677
|
status: "active" | "archived"
|
|
12643
12678
|
activeRunId: string | null
|
|
@@ -12768,6 +12803,16 @@ export type AddAgentThreadParticipantsResponses = {
|
|
|
12768
12803
|
folder: string
|
|
12769
12804
|
online: boolean
|
|
12770
12805
|
}
|
|
12806
|
+
backgroundCommands?: Array<{
|
|
12807
|
+
threadId: string
|
|
12808
|
+
id: string
|
|
12809
|
+
command: string
|
|
12810
|
+
status: "running" | "exited" | "stopped"
|
|
12811
|
+
exitCode?: number
|
|
12812
|
+
startedAt: string
|
|
12813
|
+
endedAt?: string
|
|
12814
|
+
stopping?: boolean
|
|
12815
|
+
}>
|
|
12771
12816
|
movedAt?: string
|
|
12772
12817
|
status: "active" | "archived"
|
|
12773
12818
|
activeRunId: string | null
|
|
@@ -12938,6 +12983,16 @@ export type ForkAgentThreadResponses = {
|
|
|
12938
12983
|
folder: string
|
|
12939
12984
|
online: boolean
|
|
12940
12985
|
}
|
|
12986
|
+
backgroundCommands?: Array<{
|
|
12987
|
+
threadId: string
|
|
12988
|
+
id: string
|
|
12989
|
+
command: string
|
|
12990
|
+
status: "running" | "exited" | "stopped"
|
|
12991
|
+
exitCode?: number
|
|
12992
|
+
startedAt: string
|
|
12993
|
+
endedAt?: string
|
|
12994
|
+
stopping?: boolean
|
|
12995
|
+
}>
|
|
12941
12996
|
movedAt?: string
|
|
12942
12997
|
status: "active" | "archived"
|
|
12943
12998
|
activeRunId: string | null
|
|
@@ -13054,6 +13109,16 @@ export type RecreateAgentThreadSandboxResponses = {
|
|
|
13054
13109
|
folder: string
|
|
13055
13110
|
online: boolean
|
|
13056
13111
|
}
|
|
13112
|
+
backgroundCommands?: Array<{
|
|
13113
|
+
threadId: string
|
|
13114
|
+
id: string
|
|
13115
|
+
command: string
|
|
13116
|
+
status: "running" | "exited" | "stopped"
|
|
13117
|
+
exitCode?: number
|
|
13118
|
+
startedAt: string
|
|
13119
|
+
endedAt?: string
|
|
13120
|
+
stopping?: boolean
|
|
13121
|
+
}>
|
|
13057
13122
|
movedAt?: string
|
|
13058
13123
|
status: "active" | "archived"
|
|
13059
13124
|
activeRunId: string | null
|
|
@@ -15138,6 +15203,16 @@ export type MoveAgentThreadToCloudResponses = {
|
|
|
15138
15203
|
folder: string
|
|
15139
15204
|
online: boolean
|
|
15140
15205
|
}
|
|
15206
|
+
backgroundCommands?: Array<{
|
|
15207
|
+
threadId: string
|
|
15208
|
+
id: string
|
|
15209
|
+
command: string
|
|
15210
|
+
status: "running" | "exited" | "stopped"
|
|
15211
|
+
exitCode?: number
|
|
15212
|
+
startedAt: string
|
|
15213
|
+
endedAt?: string
|
|
15214
|
+
stopping?: boolean
|
|
15215
|
+
}>
|
|
15141
15216
|
movedAt?: string
|
|
15142
15217
|
status: "active" | "archived"
|
|
15143
15218
|
activeRunId: string | null
|
|
@@ -15266,6 +15341,16 @@ export type MoveAgentThreadToComputerResponses = {
|
|
|
15266
15341
|
folder: string
|
|
15267
15342
|
online: boolean
|
|
15268
15343
|
}
|
|
15344
|
+
backgroundCommands?: Array<{
|
|
15345
|
+
threadId: string
|
|
15346
|
+
id: string
|
|
15347
|
+
command: string
|
|
15348
|
+
status: "running" | "exited" | "stopped"
|
|
15349
|
+
exitCode?: number
|
|
15350
|
+
startedAt: string
|
|
15351
|
+
endedAt?: string
|
|
15352
|
+
stopping?: boolean
|
|
15353
|
+
}>
|
|
15269
15354
|
movedAt?: string
|
|
15270
15355
|
status: "active" | "archived"
|
|
15271
15356
|
activeRunId: string | null
|
|
@@ -15316,6 +15401,15 @@ export type HoldAgentComputerSessionData = {
|
|
|
15316
15401
|
name: string
|
|
15317
15402
|
folder: string
|
|
15318
15403
|
}
|
|
15404
|
+
backgroundCommands?: Array<{
|
|
15405
|
+
threadId: string
|
|
15406
|
+
id: string
|
|
15407
|
+
command: string
|
|
15408
|
+
status: "running" | "exited" | "stopped"
|
|
15409
|
+
exitCode?: number
|
|
15410
|
+
startedAt: string
|
|
15411
|
+
endedAt?: string
|
|
15412
|
+
}>
|
|
15319
15413
|
}
|
|
15320
15414
|
path: {
|
|
15321
15415
|
sessionId: string
|
|
@@ -15356,12 +15450,83 @@ export type HoldAgentComputerSessionResponses = {
|
|
|
15356
15450
|
200: {
|
|
15357
15451
|
expiresAt: string
|
|
15358
15452
|
waiting: Array<string>
|
|
15453
|
+
stop?: Array<{
|
|
15454
|
+
threadId: string
|
|
15455
|
+
id: string
|
|
15456
|
+
startedAt: string
|
|
15457
|
+
}>
|
|
15359
15458
|
}
|
|
15360
15459
|
}
|
|
15361
15460
|
|
|
15362
15461
|
export type HoldAgentComputerSessionResponse =
|
|
15363
15462
|
HoldAgentComputerSessionResponses[keyof HoldAgentComputerSessionResponses]
|
|
15364
15463
|
|
|
15464
|
+
export type StopAgentBackgroundCommandData = {
|
|
15465
|
+
body: {
|
|
15466
|
+
startedAt: string
|
|
15467
|
+
}
|
|
15468
|
+
path: {
|
|
15469
|
+
threadId: string
|
|
15470
|
+
commandId: string
|
|
15471
|
+
}
|
|
15472
|
+
query?: never
|
|
15473
|
+
url: "/api/agent-threads/{threadId}/background-commands/{commandId}/stop"
|
|
15474
|
+
}
|
|
15475
|
+
|
|
15476
|
+
export type StopAgentBackgroundCommandErrors = {
|
|
15477
|
+
/**
|
|
15478
|
+
* Response for status 400
|
|
15479
|
+
*/
|
|
15480
|
+
400: {
|
|
15481
|
+
error: string
|
|
15482
|
+
code?: string
|
|
15483
|
+
}
|
|
15484
|
+
/**
|
|
15485
|
+
* Response for status 403
|
|
15486
|
+
*/
|
|
15487
|
+
403: {
|
|
15488
|
+
error: string
|
|
15489
|
+
code?: string
|
|
15490
|
+
}
|
|
15491
|
+
/**
|
|
15492
|
+
* Response for status 404
|
|
15493
|
+
*/
|
|
15494
|
+
404: {
|
|
15495
|
+
error: string
|
|
15496
|
+
code?: string
|
|
15497
|
+
}
|
|
15498
|
+
/**
|
|
15499
|
+
* Response for status 501
|
|
15500
|
+
*/
|
|
15501
|
+
501: {
|
|
15502
|
+
error: string
|
|
15503
|
+
}
|
|
15504
|
+
}
|
|
15505
|
+
|
|
15506
|
+
export type StopAgentBackgroundCommandError =
|
|
15507
|
+
StopAgentBackgroundCommandErrors[keyof StopAgentBackgroundCommandErrors]
|
|
15508
|
+
|
|
15509
|
+
export type StopAgentBackgroundCommandResponses = {
|
|
15510
|
+
/**
|
|
15511
|
+
* Response for status 202
|
|
15512
|
+
*/
|
|
15513
|
+
202: {
|
|
15514
|
+
command: {
|
|
15515
|
+
threadId: string
|
|
15516
|
+
id: string
|
|
15517
|
+
command: string
|
|
15518
|
+
status: "running" | "exited" | "stopped"
|
|
15519
|
+
exitCode?: number
|
|
15520
|
+
startedAt: string
|
|
15521
|
+
endedAt?: string
|
|
15522
|
+
stopping?: boolean
|
|
15523
|
+
}
|
|
15524
|
+
}
|
|
15525
|
+
}
|
|
15526
|
+
|
|
15527
|
+
export type StopAgentBackgroundCommandResponse =
|
|
15528
|
+
StopAgentBackgroundCommandResponses[keyof StopAgentBackgroundCommandResponses]
|
|
15529
|
+
|
|
15365
15530
|
export type GetAgentPreferencesData = {
|
|
15366
15531
|
body?: never
|
|
15367
15532
|
path?: never
|
|
@@ -15550,6 +15715,16 @@ export type SetAgentThreadApprovalModeResponses = {
|
|
|
15550
15715
|
folder: string
|
|
15551
15716
|
online: boolean
|
|
15552
15717
|
}
|
|
15718
|
+
backgroundCommands?: Array<{
|
|
15719
|
+
threadId: string
|
|
15720
|
+
id: string
|
|
15721
|
+
command: string
|
|
15722
|
+
status: "running" | "exited" | "stopped"
|
|
15723
|
+
exitCode?: number
|
|
15724
|
+
startedAt: string
|
|
15725
|
+
endedAt?: string
|
|
15726
|
+
stopping?: boolean
|
|
15727
|
+
}>
|
|
15553
15728
|
movedAt?: string
|
|
15554
15729
|
status: "active" | "archived"
|
|
15555
15730
|
activeRunId: string | null
|
|
@@ -16459,6 +16634,16 @@ export type GetObservedAgentThreadResponses = {
|
|
|
16459
16634
|
folder: string
|
|
16460
16635
|
online: boolean
|
|
16461
16636
|
}
|
|
16637
|
+
backgroundCommands?: Array<{
|
|
16638
|
+
threadId: string
|
|
16639
|
+
id: string
|
|
16640
|
+
command: string
|
|
16641
|
+
status: "running" | "exited" | "stopped"
|
|
16642
|
+
exitCode?: number
|
|
16643
|
+
startedAt: string
|
|
16644
|
+
endedAt?: string
|
|
16645
|
+
stopping?: boolean
|
|
16646
|
+
}>
|
|
16462
16647
|
movedAt?: string
|
|
16463
16648
|
status: "active" | "archived"
|
|
16464
16649
|
activeRunId: string | null
|
package/src/hooks.ts
CHANGED
|
@@ -40,7 +40,13 @@ export {
|
|
|
40
40
|
type UseAgentRunStreamResult,
|
|
41
41
|
useAgentRunStream,
|
|
42
42
|
} from "./useAgentRunStream"
|
|
43
|
-
export {
|
|
43
|
+
export {
|
|
44
|
+
type DesktopComputer,
|
|
45
|
+
type DesktopComputerAccess,
|
|
46
|
+
type DesktopPlatform,
|
|
47
|
+
type SixbDesktop,
|
|
48
|
+
useDesktop,
|
|
49
|
+
} from "./useDesktop"
|
|
44
50
|
export {
|
|
45
51
|
type UserLookupInput,
|
|
46
52
|
type UseUserOptions,
|