@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/src/useDesktop.ts
CHANGED
|
@@ -13,6 +13,33 @@ export type DesktopPlatform = "darwin" | "win32" | "linux"
|
|
|
13
13
|
*/
|
|
14
14
|
export interface SixbDesktop {
|
|
15
15
|
readonly platform: DesktopPlatform
|
|
16
|
+
/** Running the agent on this computer, in folders the person chooses here. */
|
|
17
|
+
readonly computer?: DesktopComputerAccess
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** This computer, as a conversation that runs on it names it. */
|
|
21
|
+
export interface DesktopComputer {
|
|
22
|
+
readonly id: string
|
|
23
|
+
readonly name: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* What a page can ask of this computer. It names no path it wasn't given: folders come from a native
|
|
28
|
+
* dialog the person answers, and allowing one that a conversation names asks them first.
|
|
29
|
+
*/
|
|
30
|
+
export interface DesktopComputerAccess {
|
|
31
|
+
/**
|
|
32
|
+
* Null where this desktop app can't run the agent. Rejects where it can, but what runs it couldn't
|
|
33
|
+
* start: asking again tries again.
|
|
34
|
+
*/
|
|
35
|
+
about(): Promise<DesktopComputer | null>
|
|
36
|
+
/** The folders chosen on this computer for this project. */
|
|
37
|
+
folders(): Promise<readonly string[]>
|
|
38
|
+
/** Ask the person for a folder, which allows it. Null when they cancel. */
|
|
39
|
+
pickFolder(): Promise<string | null>
|
|
40
|
+
/** Ask the person to allow `folder`. Whether they did. */
|
|
41
|
+
allowFolder(folder: string): Promise<boolean>
|
|
42
|
+
forgetFolder(folder: string): Promise<void>
|
|
16
43
|
}
|
|
17
44
|
|
|
18
45
|
const PLATFORMS: readonly unknown[] = ["darwin", "win32", "linux"] satisfies DesktopPlatform[]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|