@yaks/browse 0.0.0-stage → 0.2.36

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 (271) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +324 -2
  3. package/_dist/app.d.ts +8 -0
  4. package/_dist/app.d.ts.map +1 -0
  5. package/_dist/cli.d.ts +16 -0
  6. package/_dist/cli.d.ts.map +1 -0
  7. package/_dist/hosting.d.ts +24 -0
  8. package/_dist/hosting.d.ts.map +1 -0
  9. package/_dist/mod.d.ts +7 -0
  10. package/_dist/mod.d.ts.map +1 -0
  11. package/_dist/types.d.ts +5 -0
  12. package/_dist/types.d.ts.map +1 -0
  13. package/_dist/url.d.ts +2 -0
  14. package/_dist/url.d.ts.map +1 -0
  15. package/app.js +10 -0
  16. package/app.js.map +1 -0
  17. package/app.ts +10 -0
  18. package/browser-links.js +22 -0
  19. package/browser-links.js.map +1 -0
  20. package/browser-links.ts +28 -0
  21. package/cli.js +172 -0
  22. package/cli.js.map +1 -0
  23. package/cli.ts +168 -0
  24. package/client.js +748 -0
  25. package/client.js.map +1 -0
  26. package/client.ts +734 -0
  27. package/clipboard.js +18 -0
  28. package/clipboard.js.map +1 -0
  29. package/clipboard.ts +17 -0
  30. package/commands.js +1157 -0
  31. package/commands.js.map +1 -0
  32. package/commands.ts +1108 -0
  33. package/components/Ansi.tsx +160 -0
  34. package/components/App.tsx +446 -0
  35. package/components/Canvas.tsx +625 -0
  36. package/components/Card.tsx +276 -0
  37. package/components/Chat.tsx +205 -0
  38. package/components/Configuration.tsx +218 -0
  39. package/components/Decision.tsx +49 -0
  40. package/components/Dot.tsx +52 -0
  41. package/components/Entity.tsx +609 -0
  42. package/components/Fault.tsx +43 -0
  43. package/components/Filter.tsx +103 -0
  44. package/components/Keybindings.tsx +100 -0
  45. package/components/Keys.tsx +67 -0
  46. package/components/Markdown.tsx +90 -0
  47. package/components/Navigation.tsx +161 -0
  48. package/components/New.tsx +490 -0
  49. package/components/Peek.tsx +168 -0
  50. package/components/Prio.tsx +20 -0
  51. package/components/Run.tsx +263 -0
  52. package/components/Search.tsx +280 -0
  53. package/components/Stamp.tsx +44 -0
  54. package/components/Status.tsx +514 -0
  55. package/components/Sync.tsx +173 -0
  56. package/components/Tile.tsx +50 -0
  57. package/components/answered.js +23 -0
  58. package/components/answered.js.map +1 -0
  59. package/components/answered.ts +25 -0
  60. package/components/comp.js +11 -0
  61. package/components/comp.js.map +1 -0
  62. package/components/comp.ts +10 -0
  63. package/components/drag.js +173 -0
  64. package/components/drag.js.map +1 -0
  65. package/components/drag.ts +198 -0
  66. package/components/fields.tsx +90 -0
  67. package/components/fixtures/README.md +10 -0
  68. package/components/fixtures/archetypes.json +3646 -0
  69. package/components/hits.js +63 -0
  70. package/components/hits.js.map +1 -0
  71. package/components/hits.ts +84 -0
  72. package/components/icons.tsx +177 -0
  73. package/components/inspect.tsx +331 -0
  74. package/components/mount.ts +79 -0
  75. package/components/nav.tsx +479 -0
  76. package/components/offers.js +26 -0
  77. package/components/offers.js.map +1 -0
  78. package/components/offers.ts +54 -0
  79. package/components/page.js +21 -0
  80. package/components/page.js.map +1 -0
  81. package/components/page.ts +18 -0
  82. package/components/read.js +5 -0
  83. package/components/read.js.map +1 -0
  84. package/components/read.ts +7 -0
  85. package/components/registry.js +285 -0
  86. package/components/registry.js.map +1 -0
  87. package/components/registry.ts +317 -0
  88. package/components/session_status.tsx +115 -0
  89. package/components/subscriptions.js +149 -0
  90. package/components/subscriptions.js.map +1 -0
  91. package/components/subscriptions.ts +161 -0
  92. package/components/title.tsx +21 -0
  93. package/components/useQuery.js +166 -0
  94. package/components/useQuery.js.map +1 -0
  95. package/components/useQuery.ts +211 -0
  96. package/components/views/Board.tsx +450 -0
  97. package/components/views/BoardTile.tsx +65 -0
  98. package/components/views/Dashboard.tsx +148 -0
  99. package/components/views/Debug.tsx +445 -0
  100. package/components/views/Dependency.tsx +51 -0
  101. package/components/views/Entry.tsx +500 -0
  102. package/components/views/Gist.tsx +28 -0
  103. package/components/views/Inline.tsx +54 -0
  104. package/components/views/Json.tsx +19 -0
  105. package/components/views/Layout.tsx +211 -0
  106. package/components/views/List.tsx +238 -0
  107. package/components/views/Md.tsx +43 -0
  108. package/components/views/Media.tsx +48 -0
  109. package/components/views/Memory.tsx +32 -0
  110. package/components/views/Relate.tsx +205 -0
  111. package/components/views/Search.tsx +42 -0
  112. package/components/views/Session.tsx +850 -0
  113. package/components/views/SessionManage.tsx +127 -0
  114. package/components/views/Show.tsx +758 -0
  115. package/components/views/Shown.tsx +72 -0
  116. package/components/views/Split.tsx +58 -0
  117. package/components/views/TaskTile.tsx +37 -0
  118. package/components/views/Title.tsx +105 -0
  119. package/components/views/Wake.tsx +77 -0
  120. package/components/views/Web.tsx +49 -0
  121. package/components/wells.js +30 -0
  122. package/components/wells.js.map +1 -0
  123. package/components/wells.ts +33 -0
  124. package/configuration.js +38 -0
  125. package/configuration.js.map +1 -0
  126. package/configuration.ts +41 -0
  127. package/decision_sync.js +88 -0
  128. package/decision_sync.js.map +1 -0
  129. package/decision_sync.ts +93 -0
  130. package/deno.json +1 -0
  131. package/domain-host.tsx +108 -0
  132. package/edge.js +193 -0
  133. package/edge.js.map +1 -0
  134. package/edge.ts +196 -0
  135. package/entry_log.js +241 -0
  136. package/entry_log.js.map +1 -0
  137. package/entry_log.ts +214 -0
  138. package/failure.js +22 -0
  139. package/failure.js.map +1 -0
  140. package/failure.ts +34 -0
  141. package/front.json +61 -0
  142. package/highlight.js +143 -0
  143. package/highlight.js.map +1 -0
  144. package/highlight.ts +149 -0
  145. package/history.js +68 -0
  146. package/history.js.map +1 -0
  147. package/history.ts +72 -0
  148. package/host_commands.js +107 -0
  149. package/host_commands.js.map +1 -0
  150. package/host_commands.ts +38 -0
  151. package/hosting.js +53 -0
  152. package/hosting.js.map +1 -0
  153. package/hosting.ts +72 -0
  154. package/idb.js +14 -0
  155. package/idb.js.map +1 -0
  156. package/idb.ts +15 -0
  157. package/index.js +232 -0
  158. package/index.js.map +1 -0
  159. package/index.ts +252 -0
  160. package/keybindings.js +136 -0
  161. package/keybindings.js.map +1 -0
  162. package/keybindings.ts +37 -0
  163. package/kit.js +103 -0
  164. package/kit.js.map +1 -0
  165. package/kit.ts +119 -0
  166. package/layout.js +254 -0
  167. package/layout.js.map +1 -0
  168. package/layout.ts +210 -0
  169. package/legacy_outbox.js +53 -0
  170. package/legacy_outbox.js.map +1 -0
  171. package/legacy_outbox.ts +63 -0
  172. package/live.js +2883 -0
  173. package/live.js.map +1 -0
  174. package/live.ts +3334 -0
  175. package/live_archetypes.js +92 -0
  176. package/live_archetypes.js.map +1 -0
  177. package/live_archetypes.ts +113 -0
  178. package/live_client.js +145 -0
  179. package/live_client.js.map +1 -0
  180. package/live_client.ts +120 -0
  181. package/main.tsx +5 -0
  182. package/mod.js +7 -0
  183. package/mod.js.map +1 -0
  184. package/mod.ts +7 -0
  185. package/mount.tsx +50 -0
  186. package/navigation.js +120 -0
  187. package/navigation.js.map +1 -0
  188. package/navigation.ts +152 -0
  189. package/near.js +83 -0
  190. package/near.js.map +1 -0
  191. package/near.ts +83 -0
  192. package/new.js +295 -0
  193. package/new.js.map +1 -0
  194. package/new.ts +361 -0
  195. package/outbox.js +112 -0
  196. package/outbox.js.map +1 -0
  197. package/outbox.ts +129 -0
  198. package/owner.js +39 -0
  199. package/owner.js.map +1 -0
  200. package/owner.ts +37 -0
  201. package/package.json +81 -4
  202. package/paste.js +157 -0
  203. package/paste.js.map +1 -0
  204. package/paste.ts +122 -0
  205. package/props.js +303 -0
  206. package/props.js.map +1 -0
  207. package/props.ts +358 -0
  208. package/providers.js +136 -0
  209. package/providers.js.map +1 -0
  210. package/providers.ts +194 -0
  211. package/query.js +987 -0
  212. package/query.js.map +1 -0
  213. package/query.ts +1113 -0
  214. package/remote.js +37 -0
  215. package/remote.js.map +1 -0
  216. package/remote.ts +46 -0
  217. package/resolver.js +149 -0
  218. package/resolver.js.map +1 -0
  219. package/resolver.ts +213 -0
  220. package/rfc2047.js +37 -0
  221. package/rfc2047.js.map +1 -0
  222. package/rfc2047.ts +40 -0
  223. package/row_holds.js +107 -0
  224. package/row_holds.js.map +1 -0
  225. package/row_holds.ts +93 -0
  226. package/served.ts +42 -0
  227. package/session_worktree.js +7 -0
  228. package/session_worktree.js.map +1 -0
  229. package/session_worktree.ts +16 -0
  230. package/sessions.js +57 -0
  231. package/sessions.js.map +1 -0
  232. package/sessions.ts +53 -0
  233. package/sha.js +161 -0
  234. package/sha.js.map +1 -0
  235. package/sha.ts +164 -0
  236. package/styles.css +2823 -0
  237. package/subs.js +36 -0
  238. package/subs.js.map +1 -0
  239. package/subs.ts +40 -0
  240. package/terminal-route.js +13 -0
  241. package/terminal-route.js.map +1 -0
  242. package/terminal-route.ts +17 -0
  243. package/terminal.js +251 -0
  244. package/terminal.js.map +1 -0
  245. package/terminal.ts +186 -0
  246. package/time.js +142 -0
  247. package/time.js.map +1 -0
  248. package/time.ts +133 -0
  249. package/title.js +25 -0
  250. package/title.js.map +1 -0
  251. package/title.ts +50 -0
  252. package/tui/doc.ts +6 -0
  253. package/tui/testing.ts +19 -0
  254. package/twin.js +11 -0
  255. package/twin.js.map +1 -0
  256. package/twin.ts +13 -0
  257. package/types.js +456 -0
  258. package/types.js.map +1 -0
  259. package/types.ts +1370 -0
  260. package/url.js +77 -0
  261. package/url.js.map +1 -0
  262. package/url.ts +85 -0
  263. package/verb.js +82 -0
  264. package/verb.js.map +1 -0
  265. package/verb.ts +137 -0
  266. package/warmth.js +41 -0
  267. package/warmth.js.map +1 -0
  268. package/warmth.ts +54 -0
  269. package/wire.js +86 -0
  270. package/wire.js.map +1 -0
  271. package/wire.ts +63 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Jeff Peterson
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,325 @@
1
- # Temporary Holding Version
1
+ # @yaks/browse
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The graph browsing app: cards, boards, pages and editing in a browser and a
4
+ terminal. `/` is home: the owner drawn in the home page a configured package
5
+ offers, or the host's own list where none does. `/T-9` opens T-9's page, `?v=`
6
+ picks its view, and every card on screen is live: an edit anywhere reaches the
7
+ page over the socket. `?at=<transaction>` reads the entity as it was just after
8
+ that transaction (@yaks/inspect `Past`); each moment of its History opens one.
9
+ The id of a deleted entity opens what it held last, when and by whom it was
10
+ deleted, and its history; an id nothing ever carried is the not-found page.
11
+
12
+ ## Full
13
+
14
+ Every entity has the same **Full** page: its title, who made it and its meta
15
+ line, its body, its relationships, then its comments, each part drawn by the
16
+ entity's own renderer. A document's title and body are typed over where they
17
+ stand (a double-click); a kind says them its own way by registering its `Title`,
18
+ `Body` or `Full.Body` (a tool by its name and description, a persona by its text
19
+ and every document it carries, a component by its properties), and an entity
20
+ with no text of its own says the facts its components state. Each relationship
21
+ is a row of two lines: the relation and the entity's name, then smaller, what it
22
+ is (its `Gist`). Under them, `+ link` adds a link of any relation the vocabulary
23
+ declares, read either way where the relation says how ('required by'): pick the
24
+ relation, then find the far end, or type a new task's title. An entity opens on
25
+ the first view offered for it (a persona on its Context desk, a board on its
26
+ board) and on Full otherwise; the inspector's page is a tab.
27
+
28
+ ## Search
29
+
30
+ The sidebar's **Search /** button and the `/` key open the same palette over any
31
+ page. Type words or query filters, use arrow keys to select a result, and Enter
32
+ to open it. Escape closes it; Ctrl/⌘+Enter opens the selected result in a new
33
+ tab. Word searches rank by relevance unless the query names its own order.
34
+ Loading, a refused query, and no matches have distinct feedback.
35
+
36
+ Each result is the entity's shared tile, so a mail has its subject, a comment
37
+ its words, and a session its work—not a search-specific untitled placeholder.
38
+ The arrow beside the query opens an inspector table at `/?.task`; that address
39
+ is also a draggable link for keeping or sharing a query.
40
+
41
+ ## New
42
+
43
+ The sidebar's **New** line, the `n` key and `/?page=new` open a form to make an
44
+ entity: Debug on an empty one. Search the vocabulary to add a component (each
45
+ answer reads `comp{prop, …}` and what it is); each property gets a field for its
46
+ type, a closed set its choices, and a reference a search of the graph. Below
47
+ them, an **outline** makes more entities like it, one a line: indenting a line
48
+ puts it in the one above (`contains`), Enter keeps the indent and Tab and
49
+ Shift+Tab move a line in and out. When the form names an entity (a title, or
50
+ what identifies it) the outline goes inside it.
51
+
52
+ Any entity's menu offers **new like this** (`/?page=new&like=T-9`: the same
53
+ components, blank) and **add child** (`/?page=new&in=T-9`: made inside it, like
54
+ it); the command line says them as `:like` and `:child`, which is how a terminal
55
+ reaches them.
56
+
57
+ What it will write shows as it is typed, and Create (Enter in a field,
58
+ Ctrl+Enter or Alt+Enter anywhere) writes it as one batch, held until the server
59
+ takes it: nothing half-made shows, and a refusal appears beside the field it
60
+ names (@yaks/graph's refusals carry `eid`, `comp` and `prop`). What is typed is
61
+ the person's draft, one per address, so it is kept until it is created or
62
+ discarded.
63
+
64
+ ## An app store on yaks.app
65
+
66
+ Open `https://<space>.yaks.app/<app>/_web` while signed in to that space. The
67
+ app's members and owners can browse it; a visitor gets the app's JSON refusal
68
+ even when the app itself is public or open. Editing still follows the app's own
69
+ write permission. The owner a home page draws is the signed-in person, not the
70
+ box's configured owner.
71
+
72
+ The host declares a page mount and API prefix (`hosting.ts`); assets and copied
73
+ entity addresses stay under that mount, while reads, writes and subscriptions
74
+ use the app's existing `/api` doors. The vocabulary comes from `/api/vocab` in
75
+ @yaks/api's `{docs, keywords}` envelope. A host without tasks or transcripts
76
+ gets generic browsing instead of task/session queries and verbs; transcript
77
+ chrome only asks for runtime columns the vocabulary actually declares. The
78
+ Inspect link opens the inspector over the same store at `/<app>/_web/inspect`.
79
+ The legacy freeze door is not an app operation.
80
+
81
+ @yaks/web’s `assets.ts` builds the same browser module, page and stylesheet the
82
+ routes facet serves into a static host's directory. workers/yak builds them
83
+ during its normal deployment preparation; the Worker owns only access and
84
+ mounting.
85
+
86
+ ## Use
87
+
88
+ List it in a `yak serve` config beside @yaks/web and @yaks/api, whose doors the
89
+ page reads and writes through. Add @yaks/canvas for the spatial canvas, tray and
90
+ layouts. `yak init` writes a config that has both. The least one that serves the
91
+ page:
92
+
93
+ ```json
94
+ {
95
+ "db": "yak.db",
96
+ "plugins": [
97
+ "@yaks/kernel",
98
+ "@yaks/provenance",
99
+ "@yaks/id",
100
+ "@yaks/doc",
101
+ "@yaks/task",
102
+ "@yaks/canvas",
103
+ "@yaks/api",
104
+ "@yaks/web",
105
+ "@yaks/browse"
106
+ ]
107
+ }
108
+ ```
109
+
110
+ Set `person` to the owner's id: `/web/owner` resolves it for the home page at
111
+ `/`. Without one the page reads and refuses writes. Reply, decision and search
112
+ drafts stay shared across web and terminal. `yak browse` opens the same App in a
113
+ terminal. Vim's keys move the cursor as on the web (see Pages and the sidebar);
114
+ Tab/Shift+Tab focus every control in turn; typing changes a focused field, Enter
115
+ submits and Shift+Enter adds a line. Escape leaves a field without spending its
116
+ draft. `f` focuses the sidebar query. Ctrl-O goes back, Ctrl-F forward, and q,
117
+ with nothing in front to close, quits. `TASKS_TUI_STATE` names the terminal
118
+ history file. The terminal opens the config's graph in its own process and
119
+ answers its own requests on a loopback port, so no `yak serve` need run; `--app`
120
+ browses a yaks.app store instead.
121
+
122
+ ```sh
123
+ yak browse --config /path/to/yak.json
124
+ yak inspect --config /path/to/yak.json
125
+ yak inspect T-9 --config /path/to/yak.json
126
+ yak inspect '.task .count' --config /path/to/yak.json
127
+ ```
128
+
129
+ `yak open` opens a yaks app built on the kits in the terminal, over its own rows
130
+ on yaks.app, as the signed-in person (kit.ts). Its view is loaded from the app
131
+ by `@yaks/native/remote`, as the iOS shell loads it, and painted by @yaks/tui:
132
+ the first field holds the focus, Tab walks the controls, Enter and Space press,
133
+ and q outside a field quits.
134
+
135
+ ```sh
136
+ yak open yourname.yaks.app/packing
137
+ ```
138
+
139
+ With @yaks/canvas installed, canvas entities remain reachable by their ids.
140
+ Without it, canvas views, actions and screen subscriptions are omitted; stored
141
+ canvas rows and parked edits remain in place for reinstalling the plugin. If a
142
+ package offers a home page and the config names no `person`, home says no owner
143
+ is named.
144
+
145
+ The routes facet (`@yaks/web/routes`, routes.ts) answers:
146
+
147
+ | path | serves |
148
+ | --------------------------------------- | ----------------------------------------- |
149
+ | `/` | the page (index.html) |
150
+ | `/<letter>-*`, `/<letter>%23*`, `/%23*` | the page, for each id letter in use |
151
+ | `/web/app.js` | main.tsx, built by `deno bundle` at start |
152
+ | `/web/styles.css` | @yaks/ui's, then browse styles.css |
153
+ | `/web/manifest.webmanifest`, icons | the files beside it |
154
+
155
+ `POST /web/apply` signs the person's writes; `/apply` remains the generic API
156
+ door.
157
+
158
+ Any other one-segment path is a name an id may be written as (`/lemon-cake`):
159
+ the page when it names an entity, and the page answered 404 when it names
160
+ nothing. @yaks/api answers a path from the route naming it most closely, so
161
+ `/query`, `/ws`, `/apply` and every other plugin's routes still reach their own
162
+ handlers.
163
+
164
+ ## How it works
165
+
166
+ - **Vocabulary.** The page learns the host's documents from @yaks/api's `/vocab`
167
+ before any module reads them (types.ts ends with the fetch), so the browser
168
+ and the server speak one set of components. Tests learn the same plugin
169
+ documents by importing testing.ts first; the terminal door fetches them from
170
+ its host.
171
+ - **Reads.** Each named subscription in live.ts is a server-evaluated watch on a
172
+ @yaks/client box (live_client.ts) over @yaks/api's `/ws`. @yaks/sync owns the
173
+ socket, its reconnect and the resubscribe after it. Aggregates (`.tally=`,
174
+ `.count`, `.distinct=`) arrive as their value and again when it moves. wire.ts
175
+ turns a query line into the host's grammar and bundles into the cache's
176
+ changes. A subscription is owned by the component that draws its data:
177
+ `useHold` (live.ts) opens it when that component mounts and closes it when it
178
+ unmounts, identical holds share one line, and every read (`queryEids`,
179
+ `querySubscription`, `aggRead`, …) only reads what is held.
180
+
181
+ ```tsx ignore
182
+ let Tasks = ({ project }: { project: string }) => {
183
+ let preds = useMemo(() => parseQuery(`.filed.project=${project}`), [
184
+ project,
185
+ ])
186
+ useHold({ query: preds })
187
+ return <List eids={queryEids(preds).value} />
188
+ }
189
+ ```
190
+ - **Writes.** A batch is applied locally, kept in a durable outbox, and POSTed
191
+ to `/web/apply` (live.ts `post`), attributed to the configured owner by the
192
+ web door using @yaks/api's admission and write handler. A refusal is recorded
193
+ in the refusal ledger and the rows it touched are read again; a network error
194
+ or a 5xx is redelivered.
195
+ - **Rendering.** components/registry.ts selects renderers through @yaks/render
196
+ and mounts them with @yaks/preact; Entity.tsx holds the curated list, and
197
+ components/views holds the views. The terminal door (`terminal.ts`) mounts
198
+ that same App and registry through @yaks/tui's fake DOM, native interaction
199
+ adapter and kit sheets.
200
+
201
+ ## Limits
202
+
203
+ - `/web/app.js` is built with `deno bundle`, which Deno marks experimental. From
204
+ a checkout it bundles the files under the workspace's config; installed from
205
+ JSR it bundles the published main.tsx under `@yaks/cli/release`'s config, so
206
+ the day a release publishes it finds the rest of that release.
207
+
208
+ ## Exports
209
+
210
+ | export | provides |
211
+ | ---------------- | -------------------------------------------------------------- |
212
+ | `.` | vocabulary learning and graph address normalization |
213
+ | `./hosting` | the app's page mount, transport and storage declarations |
214
+ | `./app`, `./web` | source assets contributed to a browser door |
215
+ | `./cli` | `yak browse`, `yak inspect` and `yak open`, the terminal doors |
216
+ | `./main` | browser entry served by the browser door |
217
+
218
+ The source URLs let a door bundle the app without importing its page state into
219
+ the server process:
220
+
221
+ ```ts
222
+ import { entry, styles } from '@yaks/browse/app'
223
+ import { equal } from '@yaks/testing'
224
+ equal(entry.pathname.endsWith('/main.tsx'), true)
225
+ equal(styles.pathname.endsWith('/styles.css'), true)
226
+ ```
227
+
228
+ ## Pages and the sidebar
229
+
230
+ The main area shows one page at a time, each at its own address; the browser's
231
+ back is the way back, and a page gone back to starts scrolled where it was left.
232
+ Changing a page's view replaces its address rather than adding one.
233
+
234
+ A **peek** is a pressed link's entity shown over the page, which stays where it
235
+ was: whole, in the Full view its own page draws, its title and body typed into
236
+ right there. There is one at a time, and a link pressed inside it shows its
237
+ entity in its place. A second press on a link to it, its Id in the head, or the
238
+ head's open button goes to its page; Esc, q, the close button or a press
239
+ anywhere else puts it away. The head moves it and its corner sizes it. Only a
240
+ fine pointer peeks: a phone and the terminal open the page at once.
241
+
242
+ Vim's keys move a cursor over the page and the sidebar beside it, in a browser
243
+ and a terminal alike ([@yaks/ux/keys](../ux/README.md#vims-keys)). The status
244
+ bar says the mode: `-- NORMAL --`, or `-- INSERT --` filled while a field is
245
+ typed into. In normal mode h, j, k and l move the cursor to the item left,
246
+ below, above or right, the first j from nowhere onto the page; gg and G go to
247
+ the first and the last; H and L go back and forward; Enter or Space presses the
248
+ item (a link peeks, as a press does). The cursor walks past a title, a body or a
249
+ field without typing into it: i, or Enter on one, types into it, and Esc leaves
250
+ it with the cursor still there. While a peek, a menu or a popover is up, the
251
+ keys walk only the front one, and Esc or q closes it with the cursor back where
252
+ it stood. The cursor wears the theme's accent ring, or paints inverse in a
253
+ terminal.
254
+
255
+ The sidebar is a short fixed list of places: search, then home (named for the
256
+ offered home page, or Home), Favorites, Recent, each package's destinations,
257
+ Sessions, and the Schema when the host serves its packages. Each is a plain
258
+ link, and the one you are on is lit. Narrower than a tablet, it folds behind the
259
+ bar's menu. A destination is a page at `/?page=<key>` listing what its query
260
+ finds, under a page part its `view` draws, or that part alone where it names no
261
+ query (the topics' shelves, @yaks/topic). A package offers its own from its
262
+ `./views` facet beside its renderers, so Browse lists a tracker's bugs without
263
+ knowing a bug:
264
+
265
+ ```ts
266
+ import { destinations } from '@yaks/tracker/views'
267
+ import { equal } from '@yaks/testing'
268
+ equal(destinations.map((d) => d.key), ['bugs'])
269
+ ```
270
+
271
+ The terminal door keeps its history in `TASKS_TUI_STATE`. Ctrl-O goes back and
272
+ Ctrl-F goes forward.
273
+
274
+ The configured `./web` facet contributes `app` to the browser door. The door
275
+ imports that facet from the plugin config, never imports browse by name.
276
+
277
+ ## What a package offers
278
+
279
+ A configured package's `./views` facet is how it reaches the app's screens;
280
+ browse names no package's views itself. Each door imports every configured
281
+ package's facet before the app paints, and takes in these exports:
282
+
283
+ | export | what browse does with it |
284
+ | -------------- | ---------------------------------------------------------------- |
285
+ | `views` | portable renderers, entered in the shared registry |
286
+ | `inspectViews` | @yaks/inspect views, drawn with the app's `io` |
287
+ | `destinations` | pages listed in the sidebar |
288
+ | `home` | the owner's home page |
289
+ | `tabs` | views offered as tabs on the entities they draw |
290
+ | `icons` | Lucide glyphs, by the names its destinations, home and tabs wear |
291
+
292
+ A **home page** is `{name, icon, view}`: `/` draws the owner in `view`, and the
293
+ sidebar's first line is `name` wearing `icon`. Without one, `/` lists the host's
294
+ home query (@yaks/web's `home` option) under the title Home, and nothing at `/`
295
+ asks for more than that list.
296
+
297
+ A **tab** is `{view, icon}`: a view offered on every entity it draws, ahead of
298
+ the app's own, so an entity it draws opens on it. A project's cockpit
299
+ (`Dashboard`) draws a cell for each tab that applies to the project: the project
300
+ in that view, with `limit` in its context.
301
+
302
+ A tab or a home page may say what **waits** there: `waiting(e, io)`, a hook
303
+ called as the place paints with the entity drawn and the same `io` as the
304
+ package's views, answering a count, or undefined while it is unknown. A count
305
+ above zero is worn as a badge on the tab, on the sidebar's home line and in the
306
+ cockpit cell's heading.
307
+
308
+ ```ts
309
+ import { parse } from '@yaks/query'
310
+ import type { View } from '@yaks/inspect'
311
+ import { equal } from '@yaks/testing'
312
+
313
+ // A desk: each person's page of their own, offered as home and as a tab.
314
+ let desk: View = { view: 'Desk', match: parse('.person'), Render: () => null }
315
+ let inspectViews = [desk]
316
+ let home = { name: 'Desk', icon: 'lamp', view: 'Desk' }
317
+ let tabs = [{ view: 'Desk', icon: 'lamp', waiting: () => 3 }]
318
+ let icons = { lamp: [['circle', { cx: '12', cy: '12', r: '4' }]] }
319
+ equal([home.view, tabs[0].view, inspectViews[0].view], [
320
+ 'Desk',
321
+ 'Desk',
322
+ 'Desk',
323
+ ])
324
+ equal(Object.keys(icons), ['lamp'])
325
+ ```
package/_dist/app.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export declare let entry: URL;
2
+ export declare let styles: URL;
3
+ export declare let app: {
4
+ entry: URL;
5
+ styles: URL;
6
+ mount: URL;
7
+ };
8
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sources":["../app.ts"],"names":[],"mappings":"AACA,OAAO,YAAI,OAAO,IAA4C;AAC9D,OAAO,YAAI,QAAQ,IAA8C;AAGjE,OAAO,YAAI;EAAO,OAAO;EAAK,QAAQ;EAAK,OAAO;EAIjD"}
package/_dist/cli.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ /** Browse's terminal commands serve `web` in their own process: the graph
2
+ * they open answers the terminal's HTTP and subscriptions on a loopback port
3
+ * of its own, so no `yak serve` need run first, and other processes' commits
4
+ * still arrive through the host's feed. `--app` browses a yaks.app store
5
+ * instead; configured domains supply views. */ import type { CliCommand } from "@yaks/cli/host";
6
+ /** The app a person names, as the account door resolves it: `space/app` or
7
+ * a slug, or the app's address on the host (`yourname.yaks.app/packing`).
8
+ *
9
+ * ```ts
10
+ * import { assertEquals } from '@std/assert'
11
+ * assertEquals(named('https://yourname.yaks.app/packing/', 'yaks.app'), 'yourname/packing')
12
+ * assertEquals(named('yourname/packing', 'yaks.app'), 'yourname/packing')
13
+ * ```
14
+ */ export declare let named: (app: string, host: string) => string;
15
+ export declare let commands: CliCommand[];
16
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sources":["../cli.ts"],"names":[],"mappings":"AAAA;;;;6CAI6C,GAC7C,cAAc,UAAU,8BAAyC;AAwBjE;;;;;;;;CAQC,GACD,OAAO,YAAI,QAAS,KAAK,MAAM,EAAE,MAAM,MAAM,KAAG,MAAM,CAKrD;AA4HD,OAAO,YAAI,UAAU,aAAkC"}
@@ -0,0 +1,24 @@
1
+ export type Hosting = {
2
+ home?: {
3
+ title: string;
4
+ query: string;
5
+ };
6
+ origin?: string;
7
+ page: string;
8
+ api: string;
9
+ apply: string;
10
+ owner: string;
11
+ storage?: string;
12
+ };
13
+ export declare let box: Hosting;
14
+ export declare let hosting: () => Hosting;
15
+ export declare let pagePath: (path: string) => string;
16
+ export declare let localPath: (path: string) => string;
17
+ export declare let apiPath: (path: string) => string;
18
+ export declare let webOrigin: () => string;
19
+ /** Host-only operations are never inferred from app data words. */ export declare let door: (_name: 'freeze') => boolean;
20
+ export declare let storageKey: (key: string) => string;
21
+ export declare let scopedStorage: (store: Storage) => Storage;
22
+ export declare let legacyOutboxName: () => string | undefined;
23
+ export declare let formerOutboxScope: (api: string) => string | undefined;
24
+ //# sourceMappingURL=hosting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosting.d.ts","sources":["../hosting.ts"],"names":[],"mappings":"AAIA,YAAY;EACV;IAAS,OAAO,MAAM;IAAE,OAAO,MAAM;;EACrC,SAAS,MAAM;EACf,MAAM,MAAM;EACZ,KAAK,MAAM;EACX,OAAO,MAAM;EACb,OAAO,MAAM;EACb,UAAU,MAAM;;AAGlB,OAAO,YAAI,KAAK,QAMf;AACD,OAAO,YAAI,eAAc,QAA4B;AACrD,OAAO,YAAI,WAAY,MAAM,MAAM,KAAG,MAAM,CAAyB;AACrE,OAAO,YAAI,YAAa,MAAM,MAAM,KAAG,MAAM,CAK5C;AACD,OAAO,YAAI,UAAW,MAAM,MAAM,KAAG,MAAM,CAAwB;AACnE,OAAO,YAAI,iBAAgB,MAAM,CAC+B;AAChE,iEAAiE,GACjE,OAAO,YAAI,OAAQ,OAAO,aAAW,OAAO,CAAS;AAIrD,OAAO,YAAI,aAAc,KAAK,MAAM,KAAG,MAAM,CACY;AACzD,OAAO,YAAI,gBAAiB,OAAO,YAAU,QAiB5C;AAID,OAAO,YAAI,wBAAuB,MAAM,GAAG,SAAS,CAKhC;AAKpB,OAAO,YAAI,oBAAqB,KAAK,MAAM,KAAG,MAAM,GAAG,SAAS,CACZ"}
package/_dist/mod.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The graph browsing app: domain views, editing and navigation, painted through
3
+ * @yaks/ui. @yaks/web serves its browser entry; @yaks/tui paints its terminal.
4
+ * @module
5
+ */ export { learn, vocab } from "./types.js";
6
+ export { addressId } from "./url.js";
7
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sources":["../mod.ts"],"names":[],"mappings":"AAAA;;;;CAIC,GACD,SAAS,KAAK,EAAE,KAAK,qBAAoB;AACzC,SAAS,SAAS,mBAAkB"}
@@ -0,0 +1,5 @@
1
+ import { type Keywords, type Vocab, type VocabDoc } from "@yaks/vocab";
2
+ export declare let vocab: Vocab;
3
+ /** Read the tables above out of a host's vocabulary documents, replacing
4
+ * whatever was learned before. */ export declare let learn: (docs: VocabDoc[], hostKeywords?: Keywords[]) => Vocab;
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sources":["../types.ts"],"names":[],"mappings":"AAeA,SACE,KAAK,QAAQ,EAEb,KAAK,KAAK,EACV,KAAK,QAAQ,2BACgB;AAqD/B,OAAO,YAAI,OAAO,MAA+B;AAyEjD;gCACgC,GAChC,OAAO,YAAI,QAAS,MAAM,YAAY,eAAe,eAAa,MAiDjE"}
package/_dist/url.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { addressId } from "@yaks/id";
2
+ //# sourceMappingURL=url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url.d.ts","sources":["../url.ts"],"names":[],"mappings":"AAeA,SAAS,SAAS,wBAA6B"}
package/app.js ADDED
@@ -0,0 +1,10 @@
1
+ // Source assets a door serves without importing the app into its host process.
2
+ export let entry = new URL('./main.tsx', import.meta.url);
3
+ export let styles = new URL('./styles.css', import.meta.url);
4
+ // The ./web facet contributes this app to whichever browser door is configured.
5
+ export let app = {
6
+ entry,
7
+ styles,
8
+ mount: new URL('./mount.tsx', import.meta.url)
9
+ };
10
+ //# sourceMappingURL=app.js.map
package/app.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sources":["./app.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,IAAI,QAAa,IAAI,IAAI,cAAc,YAAY,GAAG,EAAC;AAC9D,OAAO,IAAI,SAAc,IAAI,IAAI,gBAAgB,YAAY,GAAG,EAAC;AAEjE,gFAAgF;AAChF,OAAO,IAAI,MAA+C;EACxD;EACA;EACA,OAAO,IAAI,IAAI,eAAe,YAAY,GAAG;AAC/C,EAAC"}
package/app.ts ADDED
@@ -0,0 +1,10 @@
1
+ // Source assets a door serves without importing the app into its host process.
2
+ export let entry: URL = new URL('./main.tsx', import.meta.url)
3
+ export let styles: URL = new URL('./styles.css', import.meta.url)
4
+
5
+ // The ./web facet contributes this app to whichever browser door is configured.
6
+ export let app: { entry: URL; styles: URL; mount: URL } = {
7
+ entry,
8
+ styles,
9
+ mount: new URL('./mount.tsx', import.meta.url),
10
+ }