@sixb/app 0.2.5 → 0.2.7

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 (136) hide show
  1. package/dist/agent/components/agent-threads.d.ts.map +1 -1
  2. package/dist/agent/components/composer-place.d.ts.map +1 -1
  3. package/dist/agent/components/computer-place.d.ts +24 -6
  4. package/dist/agent/components/computer-place.d.ts.map +1 -1
  5. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  6. package/dist/agent/components/message-view.d.ts +13 -3
  7. package/dist/agent/components/message-view.d.ts.map +1 -1
  8. package/dist/agent/components/pending-messages.d.ts.map +1 -1
  9. package/dist/agent/components/sandbox-recovery.d.ts +8 -2
  10. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  11. package/dist/agent/components/transcript.d.ts +13 -0
  12. package/dist/agent/components/transcript.d.ts.map +1 -1
  13. package/dist/agent/conversation.d.ts +4 -0
  14. package/dist/agent/conversation.d.ts.map +1 -1
  15. package/dist/agent/delegation/use-children.d.ts +5 -5
  16. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  17. package/dist/agent/format.d.ts +7 -0
  18. package/dist/agent/format.d.ts.map +1 -1
  19. package/dist/agent/hooks/thread-queries.d.ts +1548 -0
  20. package/dist/agent/hooks/thread-queries.d.ts.map +1 -0
  21. package/dist/agent/hooks/use-agent-conversation.d.ts +41 -2
  22. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  23. package/dist/agent/hooks/use-thread-lists.d.ts +80 -3
  24. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  25. package/dist/agent/hooks/use-thread-place.d.ts +49 -0
  26. package/dist/agent/hooks/use-thread-place.d.ts.map +1 -0
  27. package/dist/agent/i18n/en.d.ts +44 -6
  28. package/dist/agent/i18n/en.d.ts.map +1 -1
  29. package/dist/agent/i18n/fr.d.ts.map +1 -1
  30. package/dist/agent/i18n/index.d.ts +76 -12
  31. package/dist/agent/i18n/index.d.ts.map +1 -1
  32. package/dist/agent/live-run.d.ts.map +1 -1
  33. package/dist/agent/model-selection.d.ts +3 -2
  34. package/dist/agent/model-selection.d.ts.map +1 -1
  35. package/dist/agent/moves.d.ts +40 -0
  36. package/dist/agent/moves.d.ts.map +1 -0
  37. package/dist/agent/thread-reader-state.d.ts +30 -0
  38. package/dist/agent/thread-reader-state.d.ts.map +1 -0
  39. package/dist/agent/types.d.ts +4 -0
  40. package/dist/agent/types.d.ts.map +1 -1
  41. package/dist/artifacts/live/session.d.ts.map +1 -1
  42. package/dist/artifacts/queries.d.ts.map +1 -1
  43. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -1
  44. package/dist/{chunk-69qgh20f.js → chunk-1f4h75n3.js} +1 -1
  45. package/dist/{chunk-4fex83k2.js → chunk-7v9622qb.js} +2254 -739
  46. package/dist/{chunk-4fex83k2.js.map → chunk-7v9622qb.js.map} +29 -26
  47. package/dist/{chunk-5sgac68y.js → chunk-dntecmwb.js} +1 -1
  48. package/dist/{chunk-4wm09prf.js → chunk-qmka6aea.js} +1 -1
  49. package/dist/createCustomApp.d.ts +8 -1
  50. package/dist/createCustomApp.d.ts.map +1 -1
  51. package/dist/index.d.ts +3 -2
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +4 -2
  54. package/dist/index.js.map +3 -3
  55. package/dist/pages/console/data/accounts.d.ts +94 -0
  56. package/dist/pages/console/data/accounts.d.ts.map +1 -0
  57. package/dist/pages/console/data/connectors.d.ts.map +1 -1
  58. package/dist/pages/console/data/datasets.d.ts.map +1 -1
  59. package/dist/pages/console/data/live-updates.d.ts.map +1 -1
  60. package/dist/pages/console/data/messages.d.ts +46 -0
  61. package/dist/pages/console/data/messages.d.ts.map +1 -1
  62. package/dist/pages/console/data/pipelines.d.ts.map +1 -1
  63. package/dist/pages/console/data/projections.d.ts.map +1 -1
  64. package/dist/pages/console/data/sync-button.d.ts.map +1 -1
  65. package/dist/pages/console/data/syncs.d.ts.map +1 -1
  66. package/dist/pages/console/ontology/actions.d.ts.map +1 -1
  67. package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
  68. package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
  69. package/dist/pages/console/ontology/rules.d.ts.map +1 -1
  70. package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
  71. package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
  72. package/dist/pages/folders.d.ts +106 -0
  73. package/dist/pages/folders.d.ts.map +1 -0
  74. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
  75. package/dist/pages/settings/usage/page.d.ts +4 -1
  76. package/dist/pages/settings/usage/page.d.ts.map +1 -1
  77. package/dist/pages/settings/usage/spend-model.d.ts +43 -19
  78. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
  79. package/dist/pages.js +23453 -22656
  80. package/dist/pages.js.map +23 -21
  81. package/dist/server.d.ts +1 -1
  82. package/dist/server.d.ts.map +1 -1
  83. package/dist/server.js +40 -3
  84. package/dist/server.js.map +3 -3
  85. package/package.json +3 -3
  86. package/src/agent/agent-chat.tsx +2 -2
  87. package/src/agent/components/agent-threads.tsx +42 -2
  88. package/src/agent/components/composer-place.tsx +2 -7
  89. package/src/agent/components/computer-place.tsx +415 -70
  90. package/src/agent/components/conversation-panel.tsx +31 -26
  91. package/src/agent/components/message-view.tsx +418 -9
  92. package/src/agent/components/pending-messages.tsx +5 -1
  93. package/src/agent/components/sandbox-recovery.tsx +24 -6
  94. package/src/agent/components/transcript.tsx +136 -5
  95. package/src/agent/conversation.ts +16 -1
  96. package/src/agent/format.ts +52 -0
  97. package/src/agent/hooks/thread-queries.ts +75 -0
  98. package/src/agent/hooks/use-agent-conversation.ts +461 -112
  99. package/src/agent/hooks/use-thread-lists.ts +72 -7
  100. package/src/agent/hooks/use-thread-place.ts +239 -0
  101. package/src/agent/i18n/en.ts +69 -16
  102. package/src/agent/i18n/fr.ts +71 -19
  103. package/src/agent/live-run.ts +38 -0
  104. package/src/agent/model-selection.ts +3 -2
  105. package/src/agent/moves.ts +174 -0
  106. package/src/agent/thread-reader-state.ts +75 -0
  107. package/src/agent/types.ts +6 -0
  108. package/src/artifacts/live/session.ts +5 -0
  109. package/src/createCustomApp.ts +57 -3
  110. package/src/index.ts +4 -0
  111. package/src/pages/console/data/accounts.tsx +509 -0
  112. package/src/pages/console/data/connectors.tsx +67 -64
  113. package/src/pages/console/data/datasets.tsx +79 -68
  114. package/src/pages/console/data/live-updates.ts +2 -0
  115. package/src/pages/console/data/messages.ts +73 -0
  116. package/src/pages/console/data/pipelines.tsx +80 -69
  117. package/src/pages/console/data/projections.tsx +111 -82
  118. package/src/pages/console/data/sync-button.tsx +56 -16
  119. package/src/pages/console/data/syncs.tsx +121 -86
  120. package/src/pages/console/ontology/actions.tsx +51 -24
  121. package/src/pages/console/ontology/object-type.tsx +5 -1
  122. package/src/pages/console/ontology/object-types.tsx +41 -32
  123. package/src/pages/console/ontology/rules.tsx +48 -38
  124. package/src/pages/console/ontology/workflow.tsx +9 -3
  125. package/src/pages/console/ontology/workflows.tsx +55 -67
  126. package/src/pages/folders.tsx +335 -0
  127. package/src/pages/section-ui.tsx +1 -1
  128. package/src/pages/settings/usage/breakdown.tsx +5 -2
  129. package/src/pages/settings/usage/filter-menu.tsx +1 -1
  130. package/src/pages/settings/usage/page.tsx +32 -13
  131. package/src/pages/settings/usage/spend-chart.tsx +2 -2
  132. package/src/pages/settings/usage/spend-model.ts +118 -50
  133. package/src/server.ts +1 -0
  134. /package/dist/{chunk-69qgh20f.js.map → chunk-1f4h75n3.js.map} +0 -0
  135. /package/dist/{chunk-5sgac68y.js.map → chunk-dntecmwb.js.map} +0 -0
  136. /package/dist/{chunk-4wm09prf.js.map → chunk-qmka6aea.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"sync-button.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/sync-button.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2GAA2G;IAC3G,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAA;IAChE,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,UAAkB,EAClB,OAAmB,EACnB,IAAW,EACX,SAAS,GACV,EAAE,eAAe,+BAmEjB"}
1
+ {"version":3,"file":"sync-button.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/sync-button.tsx"],"names":[],"mappings":"AAmBA,MAAM,WAAW,eAAe;IAC9B,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2GAA2G;IAC3G,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAA;IAChE,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,UAAkB,EAClB,OAAmB,EACnB,IAAW,EACX,SAAS,GACV,EAAE,eAAe,+BAyDjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/syncs.tsx"],"names":[],"mappings":"AAiCA,iGAAiG;AACjG,wBAAgB,gBAAgB,gCAuE/B;AAED,+DAA+D;AAC/D,wBAAgB,eAAe,gCAyP9B"}
1
+ {"version":3,"file":"syncs.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/data/syncs.tsx"],"names":[],"mappings":"AA0CA,iGAAiG;AACjG,wBAAgB,gBAAgB,gCAqE/B;AAED,+DAA+D;AAC/D,wBAAgB,eAAe,gCAqR9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/actions.tsx"],"names":[],"mappings":"AAuFA;;;GAGG;AACH,wBAAgB,kBAAkB,gCAyDjC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/actions.tsx"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,wBAAgB,kBAAkB,gCAwDjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"object-type.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-type.tsx"],"names":[],"mappings":"AAwCA,qFAAqF;AACrF,wBAAgB,qBAAqB,gCA8cpC"}
1
+ {"version":3,"file":"object-type.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-type.tsx"],"names":[],"mappings":"AAyCA,qFAAqF;AACrF,wBAAgB,qBAAqB,gCAidpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAe3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErD,KAAK,iBAAiB,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAA;AAMxD,uFAAuF;AACvF,wBAAgB,sBAAsB,gCAoErC;AAwKD,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CA4B3E"}
1
+ {"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/object-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAgB3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErD,KAAK,iBAAiB,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAA;AAMxD,uFAAuF;AACvF,wBAAgB,sBAAsB,gCA4ErC;AAwKD,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CA4B3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/rules.tsx"],"names":[],"mappings":"AAyLA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAE9B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;CACf,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,IAAI,CAOtD;AA8eD,yFAAyF;AACzF,wBAAgB,gBAAgB,gCA2G/B;AAED,oFAAoF;AACpF,wBAAgB,eAAe,gCA+H9B"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/rules.tsx"],"names":[],"mappings":"AAgMA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAE9B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,OAAO,CAAA;CACf,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,IAAI,CAOtD;AAkfD,yFAAyF;AACzF,wBAAgB,gBAAgB,gCA0G/B;AAED,oFAAoF;AACpF,wBAAgB,eAAe,gCA+H9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflow.tsx"],"names":[],"mappings":"AAkGA;;;GAGG;AACH,wBAAgB,mBAAmB,gCA2OlC"}
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflow.tsx"],"names":[],"mappings":"AAmGA;;;GAGG;AACH,wBAAgB,mBAAmB,gCAgPlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflows.tsx"],"names":[],"mappings":"AAcA,sFAAsF;AACtF,wBAAgB,oBAAoB,gCAqBnC"}
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../src/pages/console/ontology/workflows.tsx"],"names":[],"mappings":"AAeA,sFAAsF;AACtF,wBAAgB,oBAAoB,gCAgGnC"}
@@ -0,0 +1,106 @@
1
+ /**
2
+ * Browsing a list of definitions by the folders they sit in: `datasets/raw/erp/orders.ts` puts
3
+ * `orders` in the folder `raw/erp`. A list page shows its top level with a tile for each folder,
4
+ * and opening one becomes the page itself, titled by the folder with a way back up, the way a
5
+ * detail page is. Searching looks through every folder at once and groups what it finds by
6
+ * folder. A project without folders sees its lists exactly as before.
7
+ *
8
+ * The open folder lives in the URL (`?folder=raw/erp`), so the browser's back button, reloads and
9
+ * shared links all keep it.
10
+ */
11
+ import { type Translation } from "@sixb/ui/lib/i18n";
12
+ import { type ReactNode } from "react";
13
+ export declare const en: {
14
+ items: (count: number) => string;
15
+ };
16
+ export declare const fr: Translation<typeof en>;
17
+ /** A definition as the API lists it: in a folder below its directory, or at its top. */
18
+ export interface Foldered {
19
+ readonly folder?: string;
20
+ }
21
+ /** One empty list for every page to start from while its query loads, so memos hold. */
22
+ export declare const noItems: readonly never[];
23
+ export interface FolderTile {
24
+ /** The folder's own name, such as `erp`. */
25
+ readonly name: string;
26
+ /** Its full path, such as `raw/erp`. */
27
+ readonly path: string;
28
+ /** Everything inside it, in subfolders too. */
29
+ readonly count: number;
30
+ readonly href: string;
31
+ }
32
+ export interface FolderGroup<TItem> {
33
+ /** Undefined for the items at the top. */
34
+ readonly folder: string | undefined;
35
+ readonly items: readonly TItem[];
36
+ }
37
+ export interface FolderBrowser<TItem> {
38
+ /** The open folder's subfolders, by name. */
39
+ readonly folders: readonly FolderTile[];
40
+ /** The items directly in the open folder. */
41
+ readonly items: readonly TItem[];
42
+ /** While the list is narrowed, every match grouped by folder, the top first. */
43
+ readonly groups: readonly FolderGroup<TItem>[] | undefined;
44
+ /** What the page's header shows: the list's own at the top, the folder's inside one. */
45
+ readonly frame: {
46
+ readonly title: string;
47
+ readonly description?: string;
48
+ readonly back?: {
49
+ readonly href: string;
50
+ readonly label: string;
51
+ };
52
+ readonly meta?: ReactNode;
53
+ };
54
+ }
55
+ /**
56
+ * Arrange `items` by folder for the page at the current URL. Pass every item while nothing narrows
57
+ * the list, and only the matches with `narrowed` while a search or filter does: folders then give
58
+ * way to the matches from all of them, grouped by folder.
59
+ */
60
+ export declare function useFolderBrowser<TItem extends Foldered>({ items, title, description, meta, narrowed, }: {
61
+ readonly items: readonly TItem[];
62
+ /** The list's own title and description, shown at the top. */
63
+ readonly title: string;
64
+ readonly description?: string;
65
+ readonly meta?: ReactNode;
66
+ readonly narrowed?: boolean;
67
+ }): FolderBrowser<TItem>;
68
+ /** What a list holds at one folder, before it becomes links and a page header. */
69
+ export interface FolderArrangement<TItem> {
70
+ /** The open folder, or `undefined` at the top. */
71
+ readonly folder: string | undefined;
72
+ readonly folders: readonly Omit<FolderTile, "href">[];
73
+ readonly items: readonly TItem[];
74
+ readonly groups: readonly FolderGroup<TItem>[] | undefined;
75
+ /** Everything in the open folder, in its subfolders too. */
76
+ readonly total: number;
77
+ }
78
+ /**
79
+ * The open folder's subfolders, each with how much it holds, and the items directly in it; or
80
+ * while `narrowed`, every item grouped by its folder. A folder nothing is in any more, say after
81
+ * its files moved, opens the top instead.
82
+ */
83
+ export declare function arrangeByFolder<TItem extends Foldered>(items: readonly TItem[], requested: string | undefined, narrowed: boolean): FolderArrangement<TItem>;
84
+ /**
85
+ * A folder browser's body: the open folder's subfolders as tiles, then its items through
86
+ * `children`, or while narrowed each folder's matches under its name. `children` only runs for a
87
+ * non-empty list, so a folder holding only folders shows no empty list.
88
+ */
89
+ export declare function FolderContents<TItem>({ browser, rootLabel, children, }: {
90
+ readonly browser: FolderBrowser<TItem>;
91
+ /** Names the matches at the top while narrowed, such as "Datasets". */
92
+ readonly rootLabel: string;
93
+ readonly children: (items: readonly TItem[]) => ReactNode;
94
+ }): import("react").JSX.Element;
95
+ /**
96
+ * Where a detail page's back link goes: its folder when it has one, so leaving a definition
97
+ * returns to where it was found, or the list itself.
98
+ */
99
+ export declare function folderBack(list: {
100
+ readonly href: string;
101
+ readonly label: string;
102
+ }, folder: string | undefined): {
103
+ readonly href: string;
104
+ readonly label: string;
105
+ };
106
+ //# sourceMappingURL=folders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/pages/folders.tsx"],"names":[],"mappings":"AAAA;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K,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACtE,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,KAAK,IAAI,CAAA;CACvF,+BA8QA"}
1
+ {"version":3,"file":"breakdown.d.ts","sourceRoot":"","sources":["../../../../src/pages/settings/usage/breakdown.tsx"],"names":[],"mappings":"AAUA,OAAO,EAQL,KAAK,SAAS,EAMd,KAAK,YAAY,EACjB,KAAK,UAAU,EAGhB,MAAM,eAAe,CAAA;AA2BtB;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACtE,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,KAAK,IAAI,CAAA;CACvF,+BAiRA"}
@@ -2,5 +2,8 @@
2
2
  * Settings › Usage: what models were called, what it cost and who asked, narrowed by the filters
3
3
  * any number on the page sets, down to how one call was priced. Limits sit on their own tab.
4
4
  */
5
- export declare function SettingsUsagePage(): import("react").JSX.Element;
5
+ export declare function SettingsUsagePage({ timeZone, }?: {
6
+ /** The zone the page's days follow; the reader's own unless a caller pins one. */
7
+ readonly timeZone?: string;
8
+ }): import("react").JSX.Element;
6
9
  //# sourceMappingURL=page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/pages/settings/usage/page.tsx"],"names":[],"mappings":"AA8CA;;;GAGG;AACH,wBAAgB,iBAAiB,gCA6FhC"}
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/pages/settings/usage/page.tsx"],"names":[],"mappings":"AAgDA;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAA2B,GAC5B,GAAE;IACD,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CACtB,+BA+FL"}
@@ -1,4 +1,5 @@
1
1
  import type { GetAiAccountingOverviewData, ListAiModelCallGroupsResponse, ListAiModelCallsResponse } from "@sixb/client";
2
+ import { type CalendarPeriod } from "@sixb/core/calendar";
2
3
  import { type Overview } from "./format";
3
4
  /**
4
5
  * What Settings › Usage › Spend reads: the range, the filters that narrow the whole page, and
@@ -10,41 +11,56 @@ export type GroupExecution = Group["executions"][number];
10
11
  export type Call = ListAiModelCallsResponse["items"][number];
11
12
  export type ModelKind = NonNullable<Overview["kinds"][number]["modelKind"]>;
12
13
  type OverviewQuery = GetAiAccountingOverviewData["query"];
14
+ /**
15
+ * The ranges the page offers: `periods` whole hours or days of the reader's calendar, ending with
16
+ * the current one, drawn in `bucket` bars. The 90 days end today, so their first and last weeks
17
+ * are partial.
18
+ */
13
19
  export declare const spendRanges: readonly [{
14
20
  readonly id: "24h";
21
+ readonly unit: "hour";
22
+ readonly periods: 24;
15
23
  readonly bucket: "hour";
16
- readonly ms: number;
17
24
  readonly period: "day";
18
25
  }, {
19
26
  readonly id: "7d";
27
+ readonly unit: "day";
28
+ readonly periods: 7;
20
29
  readonly bucket: "day";
21
- readonly ms: number;
22
30
  readonly period: "week";
23
31
  }, {
24
32
  readonly id: "30d";
33
+ readonly unit: "day";
34
+ readonly periods: 30;
25
35
  readonly bucket: "day";
26
- readonly ms: number;
27
36
  readonly period: "month";
28
37
  }, {
29
38
  readonly id: "90d";
39
+ readonly unit: "day";
40
+ readonly periods: 91;
30
41
  readonly bucket: "week";
31
- readonly ms: number;
32
42
  readonly period: "quarter";
33
43
  }];
34
44
  type SpendRangeId = (typeof spendRanges)[number]["id"];
35
- export type Bucket = (typeof spendRanges)[number]["bucket"];
45
+ export type Bucket = CalendarPeriod;
36
46
  export interface SpendRange {
37
47
  readonly id: SpendRangeId;
38
48
  readonly from: string;
39
49
  readonly to: string;
50
+ /** What the range is counted in, and what the period it compares with steps back by. */
51
+ readonly unit: (typeof spendRanges)[number]["unit"];
40
52
  readonly bucket: Bucket;
41
53
  readonly period: (typeof spendRanges)[number]["period"];
54
+ /** The zone whose days, weeks or hours the bars are, and which the API buckets by. */
55
+ readonly timeZone: string;
42
56
  }
43
- /** A range that ends with the current hour or day, so its bars are whole UTC periods. */
44
- export declare function spendRange(id: string | null, now?: number): SpendRange;
45
- /** The filters that narrow every number on the page, as the address spells them. */
57
+ /** The reader's IANA zone, whose calendar the page follows; UTC when this browser cannot name one. */
58
+ export declare function viewerTimeZone(): string;
59
+ /** A range that ends with the current hour or day, never later, on the zone's calendar. */
60
+ export declare function spendRange(id: string | null, timeZone: string, now?: number): SpendRange;
61
+ /** The filters that narrow every number on the page, read from the address. */
46
62
  export interface SpendFilters {
47
- /** The start of one bar: a day, an hour or a week. */
63
+ /** The start of one bar: a day, an hour or a week. The address spells it with `periodKey`. */
48
64
  readonly day?: string;
49
65
  readonly provider?: string;
50
66
  readonly model?: string;
@@ -58,7 +74,12 @@ export interface SpendFilters {
58
74
  }
59
75
  export type FilterKey = keyof SpendFilters;
60
76
  export declare const filterKeys: readonly FilterKey[];
61
- export declare function readFilters(params: URLSearchParams): SpendFilters;
77
+ /**
78
+ * How the address names a bar: its date on the reader's calendar, with its hour when bars are
79
+ * hours. A link to November 14 opens November 14 for a reader in any zone.
80
+ */
81
+ export declare function periodKey(start: string, range: Pick<SpendRange, "bucket" | "timeZone">): string;
82
+ export declare function readFilters(params: URLSearchParams, range: Pick<SpendRange, "bucket" | "timeZone">): SpendFilters;
62
83
  export declare function hasFilters(filters: SpendFilters): boolean;
63
84
  /** The overview filters the API takes, leaving out the day, which narrows the range instead. */
64
85
  export declare function apiFilters(filters: SpendFilters): Pick<OverviewQuery, "providerId" | "modelId" | "person" | "source" | "kind">;
@@ -67,11 +88,14 @@ export declare function activeRange(range: SpendRange, filters: SpendFilters): {
67
88
  from: string;
68
89
  to: string;
69
90
  };
70
- /** The period before, as long: the previous bar for a picked day, else the previous range. */
71
- export declare function priorRange(range: {
91
+ /**
92
+ * The as many hours or days just before: the previous bar for a picked day, else the previous
93
+ * range, so a range that has not finished its last day compares with one as long.
94
+ */
95
+ export declare function priorRange(active: {
72
96
  readonly from: string;
73
97
  readonly to: string;
74
- }): {
98
+ }, range: Pick<SpendRange, "unit" | "timeZone">): {
75
99
  from: string;
76
100
  to: string;
77
101
  };
@@ -98,17 +122,17 @@ export declare function percent(value: number | undefined, locale?: string): str
98
122
  /** A share of spend to a tenth of a percent, so small rows still read. */
99
123
  export declare function sharePercent(value: number, locale?: string): string;
100
124
  /**
101
- * Where the range's bars start, as the server buckets them: whole UTC hours or days, and weeks
102
- * from Monday. The chart lays out its bars from these before their numbers arrive.
125
+ * Where the range's bars start, as the server buckets them: whole periods of the zone's calendar.
126
+ * The chart lays out its bars from these before their numbers arrive.
103
127
  */
104
- export declare function rangePeriods(range: Pick<SpendRange, "from" | "to" | "bucket">): string[];
105
- /** A bar's label: its hour, its day, or the week it starts. Buckets are UTC periods. */
106
- export declare function bucketLabel(start: string, bucket: Bucket, locale?: string): string;
128
+ export declare function rangePeriods(range: Pick<SpendRange, "from" | "to" | "bucket" | "timeZone">): string[];
129
+ /** A bar's label: its hour, its day, or the week it starts, on the zone's calendar. */
130
+ export declare function bucketLabel(start: string, bucket: Bucket, locale: string, timeZone: string): string;
107
131
  /** "Oct 23 – 29", "Oct 28 – Nov 3", or one day when the range is one. */
108
132
  export declare function rangeLabel(range: {
109
133
  readonly from: string;
110
134
  readonly to: string;
111
- }, locale?: string): string;
135
+ }, locale: string, timeZone: string): string;
112
136
  /** A time today, a day otherwise. */
113
137
  export declare function whenLabel(at: string, locale?: string, now?: Date): string;
114
138
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"spend-model.d.ts","sourceRoot":"","sources":["../../../../src/pages/settings/usage/spend-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AACrB,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAElE;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAC1C,MAAM,MAAM,KAAK,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAClE,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AACxD,MAAM,MAAM,IAAI,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAC5D,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,CAAA;AAC3E,KAAK,aAAa,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAA;AAKzD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;EAKd,CAAA;AAEV,KAAK,YAAY,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAA;AACtD,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE3D,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,YAAY,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