@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.
Files changed (42) hide show
  1. package/dist/browser.js +2 -2
  2. package/dist/{chunk-1wdszw1c.js → chunk-0p42gyb5.js} +3 -3
  3. package/dist/{chunk-mk0w4zr1.js → chunk-3kfn00we.js} +1 -1
  4. package/dist/{chunk-sh0f609h.js → chunk-hkn0keqj.js} +1 -1
  5. package/dist/{chunk-2qsekqcn.js → chunk-k2na62sa.js} +14 -2
  6. package/dist/{chunk-2qsekqcn.js.map → chunk-k2na62sa.js.map} +3 -3
  7. package/dist/{chunk-fnd56xxz.js → chunk-r50kxqa5.js} +2 -2
  8. package/dist/{chunk-s2pagg09.js → chunk-rrexv1gk.js} +2 -2
  9. package/dist/connectors/queries.d.ts.map +1 -1
  10. package/dist/generated/@tanstack/react-query.gen.d.ts +315 -115
  11. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  12. package/dist/generated/index.d.ts +2 -2
  13. package/dist/generated/index.d.ts.map +1 -1
  14. package/dist/generated/sdk.gen.d.ts +8 -2
  15. package/dist/generated/sdk.gen.d.ts.map +1 -1
  16. package/dist/generated/types.gen.d.ts +178 -5
  17. package/dist/generated/types.gen.d.ts.map +1 -1
  18. package/dist/hooks.d.ts +1 -1
  19. package/dist/hooks.d.ts.map +1 -1
  20. package/dist/hooks.js +21 -6
  21. package/dist/hooks.js.map +5 -5
  22. package/dist/index.js +8 -6
  23. package/dist/index.js.map +1 -1
  24. package/dist/logs.js +3 -3
  25. package/dist/models.js +4 -2
  26. package/dist/models.js.map +1 -1
  27. package/dist/query.js +3 -3
  28. package/dist/useDesktop.d.ts +25 -0
  29. package/dist/useDesktop.d.ts.map +1 -1
  30. package/dist/users-hooks.d.ts.map +1 -1
  31. package/package.json +2 -2
  32. package/src/generated/@tanstack/react-query.gen.ts +34 -1
  33. package/src/generated/index.ts +6 -0
  34. package/src/generated/sdk.gen.ts +29 -1
  35. package/src/generated/types.gen.ts +185 -0
  36. package/src/hooks.ts +7 -1
  37. package/src/useDesktop.ts +27 -0
  38. /package/dist/{chunk-1wdszw1c.js.map → chunk-0p42gyb5.js.map} +0 -0
  39. /package/dist/{chunk-mk0w4zr1.js.map → chunk-3kfn00we.js.map} +0 -0
  40. /package/dist/{chunk-sh0f609h.js.map → chunk-hkn0keqj.js.map} +0 -0
  41. /package/dist/{chunk-fnd56xxz.js.map → chunk-r50kxqa5.js.map} +0 -0
  42. /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[]