@nervur-org/dock 0.3.0

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 (285) hide show
  1. package/GETTING_STARTED.md +128 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +6 -0
  4. package/README.md +37 -0
  5. package/api/quo-api.md +196 -0
  6. package/api/route.ts +227 -0
  7. package/beings/GLOSSARY.md +118 -0
  8. package/beings/WORLDS.md +567 -0
  9. package/beings/avatar.ts +101 -0
  10. package/beings/carry.ts +159 -0
  11. package/beings/clock.ts +552 -0
  12. package/beings/courier.ts +107 -0
  13. package/beings/desk.ts +128 -0
  14. package/beings/doorbell.ts +129 -0
  15. package/beings/envoy.ts +218 -0
  16. package/beings/index.ts +16 -0
  17. package/beings/join.ts +51 -0
  18. package/beings/link.ts +104 -0
  19. package/beings/look.ts +139 -0
  20. package/beings/porter.ts +43 -0
  21. package/beings/presence.ts +39 -0
  22. package/beings/quo-app-bells.md +280 -0
  23. package/beings/quo-dock.md +1942 -0
  24. package/beings/setup.ts +45 -0
  25. package/beings/side.ts +60 -0
  26. package/beings/user.ts +459 -0
  27. package/beings/way.ts +65 -0
  28. package/cli/bundles.ts +20 -0
  29. package/cli/client.ts +73 -0
  30. package/cli/daemon.ts +581 -0
  31. package/cli/estate/Caddyfile +33 -0
  32. package/cli/estate/quo.service +35 -0
  33. package/cli/estate/systems.quo.plist +44 -0
  34. package/cli/estate.ts +48 -0
  35. package/cli/folder.ts +27 -0
  36. package/cli/oauth.ts +32 -0
  37. package/cli/pilot.ts +38 -0
  38. package/cli/quo-dock.md +1942 -0
  39. package/cli/quo.ts +203 -0
  40. package/cli/stand.ts +160 -0
  41. package/dist/api/route.d.ts +21 -0
  42. package/dist/api/route.js +193 -0
  43. package/dist/beings/avatar.d.ts +32 -0
  44. package/dist/beings/avatar.js +100 -0
  45. package/dist/beings/carry.d.ts +12 -0
  46. package/dist/beings/carry.js +174 -0
  47. package/dist/beings/clock.d.ts +161 -0
  48. package/dist/beings/clock.js +528 -0
  49. package/dist/beings/courier.d.ts +50 -0
  50. package/dist/beings/courier.js +96 -0
  51. package/dist/beings/desk.d.ts +53 -0
  52. package/dist/beings/desk.js +135 -0
  53. package/dist/beings/doorbell.d.ts +78 -0
  54. package/dist/beings/doorbell.js +133 -0
  55. package/dist/beings/envoy.d.ts +54 -0
  56. package/dist/beings/envoy.js +211 -0
  57. package/dist/beings/index.d.ts +14 -0
  58. package/dist/beings/index.js +16 -0
  59. package/dist/beings/join.d.ts +15 -0
  60. package/dist/beings/join.js +42 -0
  61. package/dist/beings/link.d.ts +14 -0
  62. package/dist/beings/link.js +91 -0
  63. package/dist/beings/look.d.ts +30 -0
  64. package/dist/beings/look.js +104 -0
  65. package/dist/beings/porter.d.ts +14 -0
  66. package/dist/beings/porter.js +41 -0
  67. package/dist/beings/presence.d.ts +8 -0
  68. package/dist/beings/presence.js +21 -0
  69. package/dist/beings/setup.d.ts +3 -0
  70. package/dist/beings/setup.js +39 -0
  71. package/dist/beings/side.d.ts +32 -0
  72. package/dist/beings/side.js +37 -0
  73. package/dist/beings/user.d.ts +315 -0
  74. package/dist/beings/user.js +462 -0
  75. package/dist/beings/way.d.ts +19 -0
  76. package/dist/beings/way.js +28 -0
  77. package/dist/cli/bundles.d.ts +5 -0
  78. package/dist/cli/bundles.js +17 -0
  79. package/dist/cli/client.d.ts +15 -0
  80. package/dist/cli/client.js +58 -0
  81. package/dist/cli/daemon.d.ts +50 -0
  82. package/dist/cli/daemon.js +584 -0
  83. package/dist/cli/estate/Caddyfile +33 -0
  84. package/dist/cli/estate/quo.service +35 -0
  85. package/dist/cli/estate/systems.quo.plist +44 -0
  86. package/dist/cli/estate.d.ts +5 -0
  87. package/dist/cli/estate.js +50 -0
  88. package/dist/cli/folder.d.ts +2 -0
  89. package/dist/cli/folder.js +25 -0
  90. package/dist/cli/oauth.d.ts +2 -0
  91. package/dist/cli/oauth.js +32 -0
  92. package/dist/cli/pilot.d.ts +5 -0
  93. package/dist/cli/pilot.js +22 -0
  94. package/dist/cli/quo.d.ts +2 -0
  95. package/dist/cli/quo.js +201 -0
  96. package/dist/cli/stand.d.ts +37 -0
  97. package/dist/cli/stand.js +110 -0
  98. package/dist/dock/agents.d.ts +102 -0
  99. package/dist/dock/agents.js +105 -0
  100. package/dist/dock/apns.d.ts +27 -0
  101. package/dist/dock/apns.js +98 -0
  102. package/dist/dock/console.d.ts +6 -0
  103. package/dist/dock/console.js +20 -0
  104. package/dist/dock/dialers.d.ts +56 -0
  105. package/dist/dock/dialers.js +75 -0
  106. package/dist/dock/faculty.d.ts +24 -0
  107. package/dist/dock/faculty.js +142 -0
  108. package/dist/dock/fcm.d.ts +13 -0
  109. package/dist/dock/fcm.js +77 -0
  110. package/dist/dock/grants.d.ts +41 -0
  111. package/dist/dock/grants.js +99 -0
  112. package/dist/dock/http2.d.ts +4 -0
  113. package/dist/dock/http2.js +68 -0
  114. package/dist/dock/index.d.ts +41 -0
  115. package/dist/dock/index.js +113 -0
  116. package/dist/dock/local.d.ts +13 -0
  117. package/dist/dock/local.js +44 -0
  118. package/dist/dock/location.d.ts +19 -0
  119. package/dist/dock/location.js +11 -0
  120. package/dist/dock/notifications.d.ts +38 -0
  121. package/dist/dock/notifications.js +60 -0
  122. package/dist/dock/push.d.ts +79 -0
  123. package/dist/dock/push.js +132 -0
  124. package/dist/dock/service.d.ts +4 -0
  125. package/dist/dock/service.js +107 -0
  126. package/dist/dock/timer.d.ts +52 -0
  127. package/dist/dock/timer.js +149 -0
  128. package/dist/dock/webpush.d.ts +12 -0
  129. package/dist/dock/webpush.js +144 -0
  130. package/dist/harbor/browser.d.ts +15 -0
  131. package/dist/harbor/browser.js +82 -0
  132. package/dist/harbor/capacitor.d.ts +28 -0
  133. package/dist/harbor/capacitor.js +218 -0
  134. package/dist/harbor/disk.d.ts +27 -0
  135. package/dist/harbor/disk.js +249 -0
  136. package/dist/harbor/edge/alarm.d.ts +10 -0
  137. package/dist/harbor/edge/alarm.js +38 -0
  138. package/dist/harbor/edge/edge.d.ts +54 -0
  139. package/dist/harbor/edge/edge.js +370 -0
  140. package/dist/harbor/edge/exercise.d.ts +7 -0
  141. package/dist/harbor/edge/exercise.js +232 -0
  142. package/dist/harbor/edge/given.d.ts +26 -0
  143. package/dist/harbor/edge/given.js +42 -0
  144. package/dist/harbor/edge/platform.d.ts +39 -0
  145. package/dist/harbor/edge/storage.d.ts +30 -0
  146. package/dist/harbor/edge/storage.js +180 -0
  147. package/dist/harbor/edge/worker.d.ts +17 -0
  148. package/dist/harbor/edge/worker.js +67 -0
  149. package/dist/harbor/files.d.ts +15 -0
  150. package/dist/harbor/files.js +220 -0
  151. package/dist/harbor/http.d.ts +19 -0
  152. package/dist/harbor/http.js +177 -0
  153. package/dist/harbor/idb.d.ts +15 -0
  154. package/dist/harbor/idb.js +0 -0
  155. package/dist/harbor/quo.d.ts +10 -0
  156. package/dist/harbor/quo.js +42 -0
  157. package/dist/harbor/resolve.d.ts +16 -0
  158. package/dist/harbor/resolve.js +17 -0
  159. package/dist/harbor/seal.d.ts +3 -0
  160. package/dist/harbor/seal.js +25 -0
  161. package/dist/harbor/sealed.d.ts +35 -0
  162. package/dist/harbor/sealed.js +162 -0
  163. package/dist/harbor/tauri.d.ts +16 -0
  164. package/dist/harbor/tauri.js +59 -0
  165. package/dist/harbor/ward.d.ts +9 -0
  166. package/dist/harbor/ward.js +15 -0
  167. package/dist/human/app.d.ts +32 -0
  168. package/dist/human/app.js +527 -0
  169. package/dist/human/apps.d.ts +10 -0
  170. package/dist/human/apps.js +29 -0
  171. package/dist/human/dom.d.ts +2 -0
  172. package/dist/human/dom.js +15 -0
  173. package/dist/human/door.d.ts +19 -0
  174. package/dist/human/door.js +92 -0
  175. package/dist/human/guest.d.ts +3 -0
  176. package/dist/human/guest.js +33 -0
  177. package/dist/human/html.d.ts +55 -0
  178. package/dist/human/html.js +451 -0
  179. package/dist/human/local.d.ts +7 -0
  180. package/dist/human/local.js +10 -0
  181. package/dist/human/mark.d.ts +8 -0
  182. package/dist/human/mark.js +47 -0
  183. package/dist/human/move.d.ts +17 -0
  184. package/dist/human/move.js +90 -0
  185. package/dist/human/screen.d.ts +19 -0
  186. package/dist/human/screen.js +119 -0
  187. package/dist/human/style.d.ts +2 -0
  188. package/dist/human/style.js +60 -0
  189. package/dist/human/tab.bundle.txt +4775 -0
  190. package/dist/human/tab.d.ts +15 -0
  191. package/dist/human/tab.js +409 -0
  192. package/dist/human/tree.d.ts +50 -0
  193. package/dist/human/tree.js +157 -0
  194. package/dist/human/wake.d.ts +34 -0
  195. package/dist/human/wake.js +179 -0
  196. package/dist/human/web.d.ts +33 -0
  197. package/dist/human/web.js +184 -0
  198. package/dist/human/worker.bundle.txt +3868 -0
  199. package/dist/human/worker.d.ts +1 -0
  200. package/dist/human/worker.js +81 -0
  201. package/dist/human/worlds.d.ts +24 -0
  202. package/dist/human/worlds.js +99 -0
  203. package/dist/mcp/agent.d.ts +10 -0
  204. package/dist/mcp/agent.js +78 -0
  205. package/dist/mcp/allow.d.ts +20 -0
  206. package/dist/mcp/allow.js +88 -0
  207. package/dist/mcp/http.d.ts +27 -0
  208. package/dist/mcp/http.js +92 -0
  209. package/dist/mcp/oauth.d.ts +91 -0
  210. package/dist/mcp/oauth.js +241 -0
  211. package/dist/mcp/route.d.ts +15 -0
  212. package/dist/mcp/route.js +42 -0
  213. package/dist/mcp/runner.d.ts +45 -0
  214. package/dist/mcp/runner.js +99 -0
  215. package/dist/mcp/server.d.ts +11 -0
  216. package/dist/mcp/server.js +102 -0
  217. package/dock/agents.ts +121 -0
  218. package/dock/apns.ts +138 -0
  219. package/dock/console.ts +23 -0
  220. package/dock/dialers.ts +85 -0
  221. package/dock/faculty.ts +148 -0
  222. package/dock/fcm.ts +103 -0
  223. package/dock/grants.ts +111 -0
  224. package/dock/http2.ts +70 -0
  225. package/dock/index.ts +133 -0
  226. package/dock/local.ts +48 -0
  227. package/dock/location.ts +22 -0
  228. package/dock/notifications.ts +67 -0
  229. package/dock/push.ts +161 -0
  230. package/dock/quo-app-bells.md +280 -0
  231. package/dock/quo-dock.md +1942 -0
  232. package/dock/service.ts +100 -0
  233. package/dock/timer.ts +174 -0
  234. package/dock/webpush.ts +182 -0
  235. package/harbor/browser.ts +97 -0
  236. package/harbor/capacitor.ts +223 -0
  237. package/harbor/disk.ts +237 -0
  238. package/harbor/edge/alarm.ts +48 -0
  239. package/harbor/edge/edge.ts +407 -0
  240. package/harbor/edge/exercise.ts +241 -0
  241. package/harbor/edge/given.ts +106 -0
  242. package/harbor/edge/platform.d.ts +39 -0
  243. package/harbor/edge/storage.ts +179 -0
  244. package/harbor/edge/text.d.ts +15 -0
  245. package/harbor/edge/worker.ts +70 -0
  246. package/harbor/edge/wrangler.toml +30 -0
  247. package/harbor/files.ts +221 -0
  248. package/harbor/http.ts +188 -0
  249. package/harbor/idb.ts +0 -0
  250. package/harbor/quo-harbor.md +850 -0
  251. package/harbor/quo.ts +44 -0
  252. package/harbor/resolve.ts +31 -0
  253. package/harbor/seal.ts +26 -0
  254. package/harbor/sealed.ts +183 -0
  255. package/harbor/tauri.ts +79 -0
  256. package/harbor/ward.ts +28 -0
  257. package/human/app.ts +580 -0
  258. package/human/apps.ts +47 -0
  259. package/human/dom.ts +21 -0
  260. package/human/door.ts +113 -0
  261. package/human/guest.ts +34 -0
  262. package/human/html.ts +490 -0
  263. package/human/local.ts +30 -0
  264. package/human/mark.ts +53 -0
  265. package/human/move.ts +122 -0
  266. package/human/quo-human.md +1042 -0
  267. package/human/screen.ts +136 -0
  268. package/human/style.ts +63 -0
  269. package/human/tab.bundle.txt +4775 -0
  270. package/human/tab.ts +446 -0
  271. package/human/tree.ts +217 -0
  272. package/human/wake.ts +191 -0
  273. package/human/web.ts +259 -0
  274. package/human/worker.bundle.txt +3868 -0
  275. package/human/worker.ts +124 -0
  276. package/human/worlds.ts +127 -0
  277. package/mcp/agent.ts +94 -0
  278. package/mcp/allow.ts +131 -0
  279. package/mcp/http.ts +92 -0
  280. package/mcp/oauth.ts +270 -0
  281. package/mcp/quo-mcp.md +343 -0
  282. package/mcp/route.ts +45 -0
  283. package/mcp/runner.ts +136 -0
  284. package/mcp/server.ts +101 -0
  285. package/package.json +121 -0
@@ -0,0 +1,315 @@
1
+ import type { Asker, Blueprint, Invitation, JsonObject, OccupantRecord, Stance } from '@nervur-org/nervur';
2
+ import { Carrier } from './carry.ts';
3
+ export declare const DESK = "desk";
4
+ export declare const BELL = "bell";
5
+ export declare const HOME = "home";
6
+ declare const isDevice: (occ: OccupantRecord | undefined) => boolean;
7
+ declare const rootMinted: (occ: OccupantRecord | undefined) => boolean;
8
+ declare const mayWake: (occ: OccupantRecord | undefined) => boolean;
9
+ declare const mayMint: (occ: OccupantRecord | undefined) => boolean;
10
+ declare const mayRevoke: (occ: OccupantRecord | undefined) => boolean;
11
+ export declare class User extends Carrier {
12
+ #private;
13
+ static carries(occ: OccupantRecord | undefined): boolean;
14
+ static hidden(id: string): boolean;
15
+ static shows(id: string, occ: OccupantRecord | undefined): boolean;
16
+ static cells: {
17
+ name: string;
18
+ reports: JsonObject[];
19
+ ways: Record<string, Invitation>;
20
+ outbox: Record<string, JsonObject[]>;
21
+ };
22
+ constructor(stance: Stance);
23
+ describe(asker: Asker): Blueprint;
24
+ static asks: {
25
+ hello: {
26
+ description: string;
27
+ input: {
28
+ type: string;
29
+ properties: {
30
+ invitation: {
31
+ type: string;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ whoami: {
37
+ description: string;
38
+ input: {
39
+ type: string;
40
+ };
41
+ for: typeof isDevice;
42
+ };
43
+ device: {
44
+ description: string;
45
+ input: {
46
+ type: string;
47
+ properties: {
48
+ client: {
49
+ type: string;
50
+ };
51
+ wake: {
52
+ type: string;
53
+ };
54
+ reach: {
55
+ type: string;
56
+ };
57
+ mint: {
58
+ type: string;
59
+ };
60
+ revoke: {
61
+ type: string;
62
+ };
63
+ };
64
+ required: string[];
65
+ };
66
+ for: typeof mayMint;
67
+ };
68
+ push: {
69
+ description: string;
70
+ input: {
71
+ type: string;
72
+ properties: {
73
+ client: {
74
+ type: string;
75
+ };
76
+ object: {
77
+ type: string;
78
+ };
79
+ };
80
+ required: string[];
81
+ };
82
+ for: typeof mayWake;
83
+ };
84
+ chores: {
85
+ description: string;
86
+ input: {
87
+ type: string;
88
+ };
89
+ for: (occ: OccupantRecord | undefined) => boolean;
90
+ };
91
+ look: {
92
+ description: string;
93
+ input: {
94
+ type: string;
95
+ };
96
+ for: typeof isDevice;
97
+ };
98
+ page: {
99
+ description: string;
100
+ input: {
101
+ type: string;
102
+ };
103
+ for: typeof isDevice;
104
+ };
105
+ name: {
106
+ description: string;
107
+ input: {
108
+ type: string;
109
+ properties: {
110
+ name: {
111
+ type: string;
112
+ };
113
+ };
114
+ required: string[];
115
+ };
116
+ for: typeof rootMinted;
117
+ };
118
+ devices: {
119
+ description: string;
120
+ input: {
121
+ type: string;
122
+ };
123
+ for: typeof isDevice;
124
+ };
125
+ join: {
126
+ description: string;
127
+ input: {
128
+ type: string;
129
+ properties: {
130
+ invitation: {
131
+ type: string;
132
+ description: string;
133
+ };
134
+ name: {
135
+ type: string;
136
+ description: string;
137
+ };
138
+ };
139
+ required: string[];
140
+ };
141
+ for: typeof mayMint;
142
+ };
143
+ forget: {
144
+ description: string;
145
+ input: {
146
+ type: string;
147
+ properties: {
148
+ client: {
149
+ type: string;
150
+ };
151
+ };
152
+ required: string[];
153
+ };
154
+ for: typeof mayRevoke;
155
+ };
156
+ report: {
157
+ description: string;
158
+ input: {
159
+ type: string;
160
+ properties: {
161
+ event: {
162
+ type: string;
163
+ };
164
+ result: {};
165
+ };
166
+ required: string[];
167
+ };
168
+ for: typeof isDevice;
169
+ };
170
+ bell: {
171
+ description: string;
172
+ input: {
173
+ type: string;
174
+ properties: {
175
+ invitation: {
176
+ type: string;
177
+ };
178
+ banner: {
179
+ type: string;
180
+ };
181
+ token: {
182
+ type: string;
183
+ };
184
+ };
185
+ };
186
+ for: typeof isDevice;
187
+ };
188
+ missed: {
189
+ description: string;
190
+ input: {
191
+ type: string;
192
+ };
193
+ for: typeof isDevice;
194
+ };
195
+ };
196
+ hello(args: JsonObject, asker: Asker): Promise<{
197
+ welcome: string | null;
198
+ name: import("@nervur-org/nervur").Json;
199
+ }>;
200
+ wayBack(id: string, inv: Invitation): Promise<boolean>;
201
+ whoami(_args: JsonObject, asker: Asker): {
202
+ id: string | null;
203
+ client: string | null;
204
+ };
205
+ device(args: JsonObject, asker: Asker): Promise<JsonObject>;
206
+ push(args: JsonObject): Promise<{
207
+ error: string;
208
+ pushed?: undefined;
209
+ } | {
210
+ error?: undefined;
211
+ pushed: import("@nervur-org/nervur").Json;
212
+ } | {
213
+ unreached: boolean;
214
+ rang: boolean;
215
+ }>;
216
+ private unreached;
217
+ private ring;
218
+ bell(args: JsonObject, asker: Asker): Promise<JsonObject>;
219
+ missed(_args: JsonObject, asker: Asker): {
220
+ error: string;
221
+ missed?: undefined;
222
+ } | {
223
+ error?: undefined;
224
+ missed: JsonObject[];
225
+ };
226
+ join(args: JsonObject): Promise<JsonObject>;
227
+ devices(_args: JsonObject, asker: Asker): {
228
+ name: string;
229
+ line: string;
230
+ client: string;
231
+ you?: boolean | undefined;
232
+ may?: ("mint" | "reach" | "revoke" | "wake")[] | undefined;
233
+ }[];
234
+ forget(args: JsonObject): {
235
+ error: string;
236
+ forgot?: undefined;
237
+ } | {
238
+ error?: undefined;
239
+ forgot: string;
240
+ };
241
+ chores(): {
242
+ chores: string[];
243
+ };
244
+ look(): {
245
+ name: string;
246
+ order: string[];
247
+ asks: {
248
+ whoami: {
249
+ title: string;
250
+ readOnly: boolean;
251
+ };
252
+ devices: {
253
+ title: string;
254
+ readOnly: boolean;
255
+ };
256
+ device: {
257
+ title: string;
258
+ };
259
+ join: {
260
+ title: string;
261
+ };
262
+ push: {
263
+ title: string;
264
+ };
265
+ forget: {
266
+ title: string;
267
+ destructive: boolean;
268
+ };
269
+ name: {
270
+ title: string;
271
+ };
272
+ };
273
+ };
274
+ page(_args: JsonObject, asker: Asker): {
275
+ kind: string;
276
+ of: ({
277
+ kind: string;
278
+ text: string;
279
+ role: string;
280
+ as?: undefined;
281
+ ask?: undefined;
282
+ } | {
283
+ text?: undefined;
284
+ role?: undefined;
285
+ kind: string;
286
+ ask: string;
287
+ as: string;
288
+ } | {
289
+ kind: string;
290
+ id: string;
291
+ as: string;
292
+ } | {
293
+ as?: undefined;
294
+ kind: string;
295
+ id: string;
296
+ } | {
297
+ text?: undefined;
298
+ role?: undefined;
299
+ as?: undefined;
300
+ kind: string;
301
+ ask: string;
302
+ })[];
303
+ };
304
+ name(args: JsonObject): {
305
+ error: string;
306
+ named?: undefined;
307
+ } | {
308
+ error?: undefined;
309
+ named: string;
310
+ };
311
+ report(args: JsonObject, asker: Asker): {
312
+ reported: boolean;
313
+ };
314
+ }
315
+ export {};