@agentshouse/mdruntime 0.1.0-cfcbb238a5fa0 → 0.1.0-cfcfcecad6596

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 (427) hide show
  1. package/README.md +24 -19
  2. package/dist/acceptance.d.ts +3 -0
  3. package/dist/acceptance.d.ts.map +1 -0
  4. package/dist/acceptance.js +328 -0
  5. package/dist/act-lanes.d.ts +30 -0
  6. package/dist/act-lanes.d.ts.map +1 -0
  7. package/dist/act-lanes.js +225 -0
  8. package/dist/actions.d.ts +26 -0
  9. package/dist/actions.d.ts.map +1 -0
  10. package/dist/actions.js +341 -0
  11. package/dist/adapter.d.ts +287 -127
  12. package/dist/adapter.d.ts.map +1 -1
  13. package/dist/attached-model.d.ts +6 -10
  14. package/dist/attached-model.d.ts.map +1 -1
  15. package/dist/attached-model.js +35 -41
  16. package/dist/{binary.d.ts → attachment.d.ts} +8 -9
  17. package/dist/attachment.d.ts.map +1 -0
  18. package/dist/attachment.js +15 -0
  19. package/dist/authored.d.ts +88 -0
  20. package/dist/authored.d.ts.map +1 -0
  21. package/dist/authored.js +347 -0
  22. package/dist/bootstrap.d.ts +30 -11
  23. package/dist/bootstrap.d.ts.map +1 -1
  24. package/dist/bootstrap.js +309 -113
  25. package/dist/cell.d.ts +6 -0
  26. package/dist/cell.d.ts.map +1 -0
  27. package/dist/cell.js +9 -0
  28. package/dist/chain.d.ts +12 -0
  29. package/dist/chain.d.ts.map +1 -0
  30. package/dist/chain.js +67 -0
  31. package/dist/change-set.d.ts +13 -16
  32. package/dist/change-set.d.ts.map +1 -1
  33. package/dist/change-set.js +17 -89
  34. package/dist/change.d.ts +36 -1
  35. package/dist/change.d.ts.map +1 -1
  36. package/dist/change.js +17 -3
  37. package/dist/chat-types.d.ts +3 -0
  38. package/dist/chat-types.d.ts.map +1 -0
  39. package/dist/chat-types.js +11 -0
  40. package/dist/client.d.ts +51 -27
  41. package/dist/client.d.ts.map +1 -1
  42. package/dist/client.js +95 -28
  43. package/dist/collection.d.ts +34 -21
  44. package/dist/collection.d.ts.map +1 -1
  45. package/dist/collection.js +58 -286
  46. package/dist/column.d.ts +5 -0
  47. package/dist/column.d.ts.map +1 -0
  48. package/dist/column.js +9 -0
  49. package/dist/compile.d.ts +19 -0
  50. package/dist/compile.d.ts.map +1 -0
  51. package/dist/compile.js +755 -0
  52. package/dist/connection.d.ts +7 -132
  53. package/dist/connection.d.ts.map +1 -1
  54. package/dist/connection.js +113 -3468
  55. package/dist/context.d.ts +2 -0
  56. package/dist/context.d.ts.map +1 -0
  57. package/dist/{chat/context.js → context.js} +2 -5
  58. package/dist/conversation-live.d.ts +149 -0
  59. package/dist/conversation-live.d.ts.map +1 -0
  60. package/dist/conversation-live.js +259 -0
  61. package/dist/conversation-row.d.ts +40 -0
  62. package/dist/conversation-row.d.ts.map +1 -0
  63. package/dist/conversation-row.js +66 -0
  64. package/dist/conversation.d.ts +90 -51
  65. package/dist/conversation.d.ts.map +1 -1
  66. package/dist/conversation.js +1082 -759
  67. package/dist/declaration.d.ts +10 -0
  68. package/dist/declaration.d.ts.map +1 -0
  69. package/dist/declaration.js +24 -0
  70. package/dist/digest.d.ts +7 -0
  71. package/dist/digest.d.ts.map +1 -0
  72. package/dist/digest.js +113 -0
  73. package/dist/discovery.d.ts +12 -0
  74. package/dist/discovery.d.ts.map +1 -0
  75. package/dist/discovery.js +175 -0
  76. package/dist/download.d.ts +6 -0
  77. package/dist/download.d.ts.map +1 -0
  78. package/dist/download.js +42 -0
  79. package/dist/durability.d.ts +21 -4
  80. package/dist/durability.d.ts.map +1 -1
  81. package/dist/durability.js +12 -0
  82. package/dist/entry.d.ts +29 -2
  83. package/dist/entry.d.ts.map +1 -1
  84. package/dist/entry.js +121 -39
  85. package/dist/expectation.d.ts +26 -13
  86. package/dist/expectation.d.ts.map +1 -1
  87. package/dist/expectation.js +72 -19
  88. package/dist/failure.d.ts +3 -0
  89. package/dist/failure.d.ts.map +1 -1
  90. package/dist/failure.js +8 -0
  91. package/dist/figures.d.ts +49 -0
  92. package/dist/figures.d.ts.map +1 -0
  93. package/dist/figures.js +199 -0
  94. package/dist/file.d.ts +2 -19
  95. package/dist/file.d.ts.map +1 -1
  96. package/dist/file.js +8 -122
  97. package/dist/holdings.d.ts +29 -0
  98. package/dist/holdings.d.ts.map +1 -0
  99. package/dist/holdings.js +95 -0
  100. package/dist/host.d.ts +25 -11
  101. package/dist/host.d.ts.map +1 -1
  102. package/dist/host.js +165 -56
  103. package/dist/house-query.d.ts +24 -0
  104. package/dist/house-query.d.ts.map +1 -0
  105. package/dist/house-query.js +102 -0
  106. package/dist/identity.d.ts +1 -3
  107. package/dist/identity.d.ts.map +1 -1
  108. package/dist/identity.js +1 -7
  109. package/dist/index.d.ts +49 -17
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +25 -5
  112. package/dist/install.d.ts +60 -0
  113. package/dist/install.d.ts.map +1 -0
  114. package/dist/install.js +537 -0
  115. package/dist/lifecycle.d.ts +7 -0
  116. package/dist/lifecycle.d.ts.map +1 -0
  117. package/dist/lifecycle.js +290 -0
  118. package/dist/listing.d.ts +60 -0
  119. package/dist/listing.d.ts.map +1 -0
  120. package/dist/listing.js +168 -0
  121. package/dist/live.d.ts +39 -0
  122. package/dist/live.d.ts.map +1 -0
  123. package/dist/live.js +223 -0
  124. package/dist/loaded.d.ts +7 -0
  125. package/dist/loaded.d.ts.map +1 -0
  126. package/dist/loaded.js +46 -0
  127. package/dist/locks.d.ts +7 -0
  128. package/dist/locks.d.ts.map +1 -0
  129. package/dist/locks.js +34 -0
  130. package/dist/lost.d.ts +5 -0
  131. package/dist/lost.d.ts.map +1 -0
  132. package/dist/lost.js +49 -0
  133. package/dist/media.d.ts +24 -0
  134. package/dist/media.d.ts.map +1 -0
  135. package/dist/media.js +365 -0
  136. package/dist/memory.d.ts +22 -8
  137. package/dist/memory.d.ts.map +1 -1
  138. package/dist/memory.js +321 -122
  139. package/dist/messages.d.ts +63 -0
  140. package/dist/messages.d.ts.map +1 -0
  141. package/dist/messages.js +169 -0
  142. package/dist/modal.d.ts +2 -0
  143. package/dist/modal.d.ts.map +1 -0
  144. package/dist/modal.js +11 -0
  145. package/dist/model.d.ts +15 -15
  146. package/dist/model.d.ts.map +1 -1
  147. package/dist/model.js +11 -22
  148. package/dist/models.d.ts +10 -0
  149. package/dist/models.d.ts.map +1 -0
  150. package/dist/models.js +153 -0
  151. package/dist/name.d.ts +3 -0
  152. package/dist/name.d.ts.map +1 -0
  153. package/dist/name.js +118 -0
  154. package/dist/observation.d.ts +42 -10
  155. package/dist/observation.d.ts.map +1 -1
  156. package/dist/observation.js +266 -39
  157. package/dist/online.d.ts +7 -0
  158. package/dist/online.d.ts.map +1 -0
  159. package/dist/online.js +29 -0
  160. package/dist/opened.d.ts +22 -0
  161. package/dist/opened.d.ts.map +1 -0
  162. package/dist/opened.js +107 -0
  163. package/dist/opening.d.ts +4 -0
  164. package/dist/opening.d.ts.map +1 -0
  165. package/dist/opening.js +69 -0
  166. package/dist/outcome.d.ts +71 -10
  167. package/dist/outcome.d.ts.map +1 -1
  168. package/dist/outcome.js +75 -3
  169. package/dist/overlay.d.ts +24 -11
  170. package/dist/overlay.d.ts.map +1 -1
  171. package/dist/overlay.js +190 -180
  172. package/dist/page-metadata.d.ts +8 -0
  173. package/dist/page-metadata.d.ts.map +1 -0
  174. package/dist/page-metadata.js +19 -0
  175. package/dist/parts.d.ts +6 -0
  176. package/dist/parts.d.ts.map +1 -0
  177. package/dist/parts.js +36 -0
  178. package/dist/paths.d.ts +2 -0
  179. package/dist/paths.d.ts.map +1 -1
  180. package/dist/paths.js +26 -0
  181. package/dist/preparation.d.ts +46 -0
  182. package/dist/preparation.d.ts.map +1 -0
  183. package/dist/preparation.js +344 -0
  184. package/dist/presence.d.ts +58 -0
  185. package/dist/presence.d.ts.map +1 -0
  186. package/dist/presence.js +231 -0
  187. package/dist/queries.d.ts +16 -0
  188. package/dist/queries.d.ts.map +1 -0
  189. package/dist/queries.js +330 -0
  190. package/dist/query.d.ts +27 -193
  191. package/dist/query.d.ts.map +1 -1
  192. package/dist/query.js +3 -470
  193. package/dist/{chat/questions.d.ts → questions.d.ts} +6 -7
  194. package/dist/questions.d.ts.map +1 -0
  195. package/dist/{chat/questions.js → questions.js} +14 -8
  196. package/dist/queue.d.ts +40 -0
  197. package/dist/queue.d.ts.map +1 -0
  198. package/dist/queue.js +480 -0
  199. package/dist/reach.d.ts +31 -11
  200. package/dist/reach.d.ts.map +1 -1
  201. package/dist/reach.js +444 -112
  202. package/dist/react.d.ts +22 -5
  203. package/dist/react.d.ts.map +1 -1
  204. package/dist/react.js +35 -15
  205. package/dist/{chat/read.d.ts → read.d.ts} +2 -0
  206. package/dist/read.d.ts.map +1 -0
  207. package/dist/{chat/read.js → read.js} +4 -0
  208. package/dist/readiness.d.ts +36 -21
  209. package/dist/readiness.d.ts.map +1 -1
  210. package/dist/readiness.js +20 -18
  211. package/dist/reads.d.ts +38 -10
  212. package/dist/reads.d.ts.map +1 -1
  213. package/dist/reads.js +174 -83
  214. package/dist/recovery.d.ts +6 -2
  215. package/dist/recovery.d.ts.map +1 -1
  216. package/dist/recovery.js +67 -9
  217. package/dist/reference-forms.d.ts +4 -0
  218. package/dist/reference-forms.d.ts.map +1 -0
  219. package/dist/reference-forms.js +74 -0
  220. package/dist/refresh.d.ts +18 -15
  221. package/dist/refresh.d.ts.map +1 -1
  222. package/dist/refresh.js +145 -60
  223. package/dist/refusal.d.ts +5 -0
  224. package/dist/refusal.d.ts.map +1 -0
  225. package/dist/refusal.js +55 -0
  226. package/dist/replica.d.ts +45 -33
  227. package/dist/replica.d.ts.map +1 -1
  228. package/dist/replica.js +340 -200
  229. package/dist/retried.d.ts +30 -0
  230. package/dist/retried.d.ts.map +1 -0
  231. package/dist/retried.js +72 -0
  232. package/dist/room-draft.d.ts +56 -14
  233. package/dist/room-draft.d.ts.map +1 -1
  234. package/dist/room-draft.js +424 -127
  235. package/dist/room-drafts.d.ts +24 -0
  236. package/dist/room-drafts.d.ts.map +1 -0
  237. package/dist/room-drafts.js +222 -0
  238. package/dist/room-list.d.ts +10 -0
  239. package/dist/room-list.d.ts.map +1 -0
  240. package/dist/room-list.js +45 -0
  241. package/dist/rows.d.ts +40 -30
  242. package/dist/rows.d.ts.map +1 -1
  243. package/dist/rows.js +73 -119
  244. package/dist/running.d.ts +5 -0
  245. package/dist/running.d.ts.map +1 -0
  246. package/dist/running.js +10 -0
  247. package/dist/runtime.d.ts +37 -0
  248. package/dist/runtime.d.ts.map +1 -0
  249. package/dist/runtime.js +1 -0
  250. package/dist/save.d.ts +44 -48
  251. package/dist/save.d.ts.map +1 -1
  252. package/dist/save.js +751 -303
  253. package/dist/saves.d.ts +34 -0
  254. package/dist/saves.d.ts.map +1 -0
  255. package/dist/saves.js +463 -0
  256. package/dist/search.d.ts +12 -82
  257. package/dist/search.d.ts.map +1 -1
  258. package/dist/search.js +10 -207
  259. package/dist/seed.d.ts +11 -2
  260. package/dist/seed.d.ts.map +1 -1
  261. package/dist/seed.js +89 -5
  262. package/dist/selector.d.ts +3 -0
  263. package/dist/selector.d.ts.map +1 -0
  264. package/dist/selector.js +22 -0
  265. package/dist/shared.d.ts +6 -7
  266. package/dist/shared.d.ts.map +1 -1
  267. package/dist/shared.js +75 -104
  268. package/dist/shown.d.ts +35 -0
  269. package/dist/shown.d.ts.map +1 -0
  270. package/dist/shown.js +326 -0
  271. package/dist/socket/admission.d.ts +7 -0
  272. package/dist/socket/admission.d.ts.map +1 -0
  273. package/dist/socket/admission.js +39 -0
  274. package/dist/socket/answers.d.ts +6 -0
  275. package/dist/socket/answers.d.ts.map +1 -0
  276. package/dist/socket/answers.js +20 -0
  277. package/dist/socket/lanes.d.ts +28 -0
  278. package/dist/socket/lanes.d.ts.map +1 -0
  279. package/dist/socket/lanes.js +103 -0
  280. package/dist/socket/reads.d.ts +10 -0
  281. package/dist/socket/reads.d.ts.map +1 -0
  282. package/dist/socket/reads.js +31 -0
  283. package/dist/socket/session.d.ts +41 -0
  284. package/dist/socket/session.d.ts.map +1 -0
  285. package/dist/socket/session.js +26 -0
  286. package/dist/socket.d.ts +68 -0
  287. package/dist/socket.d.ts.map +1 -0
  288. package/dist/socket.js +165 -0
  289. package/dist/source.d.ts +61 -0
  290. package/dist/source.d.ts.map +1 -0
  291. package/dist/source.js +95 -0
  292. package/dist/status.d.ts +4 -5
  293. package/dist/status.d.ts.map +1 -1
  294. package/dist/status.js +3 -7
  295. package/dist/store/installs.d.ts +30 -0
  296. package/dist/store/installs.d.ts.map +1 -0
  297. package/dist/store/installs.js +40 -0
  298. package/dist/store/readiness.d.ts +11 -0
  299. package/dist/store/readiness.d.ts.map +1 -0
  300. package/dist/store/readiness.js +68 -0
  301. package/dist/store/records.d.ts +234 -0
  302. package/dist/store/records.d.ts.map +1 -0
  303. package/dist/store/records.js +474 -0
  304. package/dist/store/room-held.d.ts +8 -0
  305. package/dist/store/room-held.d.ts.map +1 -0
  306. package/dist/store/room-held.js +17 -0
  307. package/dist/store/rooms-shown.d.ts +8 -0
  308. package/dist/store/rooms-shown.d.ts.map +1 -0
  309. package/dist/store/rooms-shown.js +13 -0
  310. package/dist/store/space.d.ts +11 -0
  311. package/dist/store/space.d.ts.map +1 -0
  312. package/dist/store/space.js +41 -0
  313. package/dist/store/watchers.d.ts +17 -0
  314. package/dist/store/watchers.d.ts.map +1 -0
  315. package/dist/store/watchers.js +56 -0
  316. package/dist/store/writes.d.ts +24 -0
  317. package/dist/store/writes.d.ts.map +1 -0
  318. package/dist/store/writes.js +125 -0
  319. package/dist/store.d.ts +115 -149
  320. package/dist/store.d.ts.map +1 -1
  321. package/dist/store.js +166 -716
  322. package/dist/stored.d.ts +181 -0
  323. package/dist/stored.d.ts.map +1 -0
  324. package/dist/stored.js +807 -0
  325. package/dist/surface.d.ts +94 -0
  326. package/dist/surface.d.ts.map +1 -0
  327. package/dist/surface.js +255 -0
  328. package/dist/sync.d.ts +21 -0
  329. package/dist/sync.d.ts.map +1 -0
  330. package/dist/sync.js +557 -0
  331. package/dist/tables.d.ts +388 -0
  332. package/dist/tables.d.ts.map +1 -0
  333. package/dist/tables.js +506 -0
  334. package/dist/tallies.d.ts +18 -0
  335. package/dist/tallies.d.ts.map +1 -0
  336. package/dist/tallies.js +128 -0
  337. package/dist/transfer.d.ts +0 -5
  338. package/dist/transfer.d.ts.map +1 -1
  339. package/dist/turn.d.ts +5 -3
  340. package/dist/turn.d.ts.map +1 -1
  341. package/dist/turn.js +51 -21
  342. package/dist/validation.d.ts +31 -0
  343. package/dist/validation.d.ts.map +1 -0
  344. package/dist/validation.js +144 -0
  345. package/dist/windows.d.ts +11 -0
  346. package/dist/windows.d.ts.map +1 -0
  347. package/dist/windows.js +16 -0
  348. package/dist/wire.d.ts +113 -10
  349. package/dist/wire.d.ts.map +1 -1
  350. package/dist/wire.js +42 -12
  351. package/package.json +20 -20
  352. package/AGENTS.md +0 -299
  353. package/dist/acquisition.d.ts +0 -14
  354. package/dist/acquisition.d.ts.map +0 -1
  355. package/dist/acquisition.js +0 -24
  356. package/dist/attempt.d.ts +0 -16
  357. package/dist/attempt.d.ts.map +0 -1
  358. package/dist/attempt.js +0 -70
  359. package/dist/binary.d.ts.map +0 -1
  360. package/dist/binary.js +0 -8
  361. package/dist/chat/acts.d.ts +0 -33
  362. package/dist/chat/acts.d.ts.map +0 -1
  363. package/dist/chat/acts.js +0 -36
  364. package/dist/chat/context.d.ts +0 -3
  365. package/dist/chat/context.d.ts.map +0 -1
  366. package/dist/chat/input.d.ts +0 -9
  367. package/dist/chat/input.d.ts.map +0 -1
  368. package/dist/chat/input.js +0 -99
  369. package/dist/chat/kit.d.ts +0 -61
  370. package/dist/chat/kit.d.ts.map +0 -1
  371. package/dist/chat/kit.js +0 -123
  372. package/dist/chat/lasting.d.ts +0 -6
  373. package/dist/chat/lasting.d.ts.map +0 -1
  374. package/dist/chat/lasting.js +0 -19
  375. package/dist/chat/list.d.ts +0 -27
  376. package/dist/chat/list.d.ts.map +0 -1
  377. package/dist/chat/list.js +0 -63
  378. package/dist/chat/markdown.d.ts +0 -20
  379. package/dist/chat/markdown.d.ts.map +0 -1
  380. package/dist/chat/markdown.js +0 -188
  381. package/dist/chat/message.d.ts +0 -6
  382. package/dist/chat/message.d.ts.map +0 -1
  383. package/dist/chat/message.js +0 -192
  384. package/dist/chat/messages.d.ts +0 -22
  385. package/dist/chat/messages.d.ts.map +0 -1
  386. package/dist/chat/messages.js +0 -155
  387. package/dist/chat/name.d.ts +0 -6
  388. package/dist/chat/name.d.ts.map +0 -1
  389. package/dist/chat/name.js +0 -37
  390. package/dist/chat/opened.d.ts +0 -11
  391. package/dist/chat/opened.d.ts.map +0 -1
  392. package/dist/chat/opened.js +0 -17
  393. package/dist/chat/overlay.d.ts +0 -31
  394. package/dist/chat/overlay.d.ts.map +0 -1
  395. package/dist/chat/overlay.js +0 -97
  396. package/dist/chat/parts.d.ts +0 -57
  397. package/dist/chat/parts.d.ts.map +0 -1
  398. package/dist/chat/parts.js +0 -119
  399. package/dist/chat/process.d.ts +0 -20
  400. package/dist/chat/process.d.ts.map +0 -1
  401. package/dist/chat/process.js +0 -32
  402. package/dist/chat/provider.d.ts +0 -63
  403. package/dist/chat/provider.d.ts.map +0 -1
  404. package/dist/chat/provider.js +0 -629
  405. package/dist/chat/question.d.ts +0 -9
  406. package/dist/chat/question.d.ts.map +0 -1
  407. package/dist/chat/question.js +0 -80
  408. package/dist/chat/questions.d.ts.map +0 -1
  409. package/dist/chat/read.d.ts.map +0 -1
  410. package/dist/chat/ready.d.ts +0 -34
  411. package/dist/chat/ready.d.ts.map +0 -1
  412. package/dist/chat/ready.js +0 -91
  413. package/dist/chat/style.d.ts +0 -4
  414. package/dist/chat/style.d.ts.map +0 -1
  415. package/dist/chat/style.js +0 -302
  416. package/dist/chat.d.ts +0 -14
  417. package/dist/chat.d.ts.map +0 -1
  418. package/dist/chat.js +0 -8
  419. package/dist/fence.d.ts +0 -6
  420. package/dist/fence.d.ts.map +0 -1
  421. package/dist/fence.js +0 -10
  422. package/dist/log.d.ts +0 -5
  423. package/dist/log.d.ts.map +0 -1
  424. package/dist/log.js +0 -14
  425. package/dist/read-side.d.ts +0 -25
  426. package/dist/read-side.d.ts.map +0 -1
  427. package/dist/read-side.js +0 -642
package/dist/host.js CHANGED
@@ -1,10 +1,22 @@
1
- import { composeRuntime, } from './connection.js';
2
- import { queryKey } from './query.js';
1
+ import { queryKey } from '@agentshouse/mdmodel';
2
+ import { composeRuntime } from './connection.js';
3
+ import { untilAnswered } from './recovery.js';
3
4
  import { described } from './failure.js';
4
- import { removeRuntimeStore } from './store.js';
5
- import { AUTHORIZATION_ENDED, request, WIRE, } from './wire.js';
5
+ import { observed } from './observation.js';
6
+ import { answeredResult } from './outcome.js';
7
+ import { AUTHORIZATION_ENDED, WIRE, wireRequest, } from './wire.js';
6
8
  const NARROWED = new Set(['within', 'whole']);
7
- function answered(md, app, writtenBy, member, input) {
9
+ const UNWAITED_MEMBERS = new Set(['call', 'queryHouse']);
10
+ const UNWAITED_TOPICS = new Set([
11
+ 'deployment-facts',
12
+ 'room-drafts',
13
+ 'sync-status',
14
+ 'connection-refusal',
15
+ 'storage-loss',
16
+ 'service-mode',
17
+ 'authority-changes',
18
+ ]);
19
+ function answered(md, app, writtenBy, member, input, said) {
8
20
  switch (member) {
9
21
  case 'rooms':
10
22
  return md.rooms();
@@ -12,22 +24,48 @@ function answered(md, app, writtenBy, member, input) {
12
24
  return md.query(input[0]);
13
25
  case 'search':
14
26
  return md.search(input[0]);
27
+ case 'queryHouse':
28
+ return md.queryHouse(input[0], input[1]);
15
29
  case 'types':
16
30
  return md.types(input[0]);
17
31
  case 'save':
18
- return md.save(input[0], input[1], writtenBy);
32
+ return md
33
+ .save(input[0], input[1], writtenBy)
34
+ .then(said);
35
+ case 'saveParts':
36
+ return md
37
+ .saveParts(input[0], input[1], writtenBy)
38
+ .then(said);
19
39
  case 'history':
20
40
  return md.history(input[0], input[1], input[2]);
21
- case 'binaryFile.read':
22
- return md.binaryFile.read(input[0], input[1], input[2]);
23
- case 'binaryFile.readReference':
24
- return md.binaryFile.readReference(input[0]);
41
+ case 'resolve':
42
+ return md.resolve(input[0], input[1], input[2]);
43
+ case 'attachment.read':
44
+ return md.attachment.read(input[0], input[1], input[2]);
45
+ case 'attachment.link':
46
+ return md.attachment.link(input[0], input[1], input[2]);
47
+ case 'attachment.show':
48
+ return md.attachment.show(input[0], input[1], input[2]);
49
+ case 'attachment.attach':
50
+ return md.attachment.attach(input[0], input[1]);
51
+ case 'attachment.part':
52
+ return md.attachment.part(input[0], input[1]);
25
53
  case 'call':
26
54
  return md.call(input[0], input[1]);
55
+ case 'answered':
56
+ return md.answered(input[0]);
27
57
  case 'reached':
28
58
  return md.reached(input[0], input[1], input[2]);
29
- case 'log':
30
- return md.log();
59
+ case 'cleanUp':
60
+ return md.cleanUp();
61
+ case 'unsent':
62
+ return md.unsent();
63
+ case 'sent':
64
+ return md.sent();
65
+ case 'reset':
66
+ return md.reset();
67
+ case 'readAgain':
68
+ return md.readAgain();
31
69
  case 'persistence':
32
70
  return md.persistence();
33
71
  case 'retry':
@@ -39,13 +77,15 @@ function answered(md, app, writtenBy, member, input) {
39
77
  case 'roomDraft.read':
40
78
  return md.roomDraft.read(input[0], input[1]);
41
79
  case 'roomDraft.write':
42
- return md.roomDraft.write(input[0], input[1], input[2], input[3]);
80
+ return md.roomDraft.write(input[0], input[1], input[2], input[3], input[4]);
43
81
  case 'roomDraft.discard':
44
82
  return md.roomDraft.discard(input[0], input[1], input[2]);
45
83
  case 'presentation.read':
46
84
  return md.presentation.read(app);
47
85
  case 'presentation.write':
48
86
  return md.presentation.write(app, input[0]);
87
+ case 'presentation.edit':
88
+ return md.presentation.edit(app, input[0]);
49
89
  case 'conversation.list':
50
90
  return md.conversation.list();
51
91
  case 'conversation.read':
@@ -55,31 +95,65 @@ function answered(md, app, writtenBy, member, input) {
55
95
  case 'conversation.send':
56
96
  return md.conversation.send(input[0], input[1], input[2]);
57
97
  case 'conversation.answer':
58
- return md.conversation.answer(input[0], input[1]);
98
+ return md.conversation.answer(input[0], input[1], input[2]);
59
99
  case 'conversation.interrupt':
60
- return md.conversation.interrupt(input[0]);
100
+ return md.conversation.interrupt(input[0], input[1]);
61
101
  case 'conversation.kill':
62
- return md.conversation.kill(input[0]);
63
- case 'conversation.cancel':
64
- return md.conversation.cancel(input[0], input[1]);
102
+ return md.conversation.kill(input[0], input[1]);
65
103
  case 'conversation.delete':
66
- return md.conversation.delete(input[0]);
104
+ return md.conversation.delete(input[0], input[1]);
105
+ case 'conversation.takeOut':
106
+ return md.conversation.takeOut(input[0], input[1], input[2]);
107
+ case 'conversation.decide':
108
+ return md.conversation.decide(input[0], input[1], input[2]);
109
+ case 'conversation.rename':
110
+ return md.conversation.rename(input[0], input[1], input[2]);
111
+ case 'conversation.set':
112
+ return md.conversation.set(input[0], input[1], input[2]);
113
+ case 'conversation.retry':
114
+ return md.conversation.retry(input[0], input[1], input[2]);
115
+ case 'conversation.pin':
116
+ return md.conversation.pin(input[0]);
117
+ case 'conversation.openTurn':
118
+ return md.conversation.openTurn(input[0], input[1]);
119
+ case 'conversation.dismissSuggestion':
120
+ return md.conversation.dismissSuggestion(input[0], input[1]);
121
+ case 'conversation.attach':
122
+ return md.conversation.attach(input[0]);
123
+ case 'conversation.attachment':
124
+ return md.conversation.attachment(input[0]);
67
125
  case 'chatDraft.write':
68
126
  return md.chatDraft.write(input[0], input[1], input[2]);
127
+ case 'chatDraft.prepend':
128
+ return md.chatDraft.prepend(input[0], input[1]);
129
+ case 'chatDraft.append':
130
+ return md.chatDraft.append(input[0], input[1]);
69
131
  case 'chatDraft.discard':
70
132
  return md.chatDraft.discard(input[0]);
71
133
  }
72
134
  }
73
- function answeredResult(value) {
74
- return typeof value === 'object' && value !== null && !('pending' in value);
135
+ function attempted(work) {
136
+ try {
137
+ return Promise.resolve(work());
138
+ }
139
+ catch (error) {
140
+ return Promise.reject(error);
141
+ }
75
142
  }
76
143
  function answeredMessage(value) {
77
144
  if (typeof value !== 'object' || value === null)
78
145
  return false;
79
- return !('result' in value) || answeredResult(value.result);
146
+ return 'result' in value ? answeredResult(value.result) : !('pending' in value);
80
147
  }
81
148
  export function serveMdRuntime(options) {
82
149
  const deploymentFacts = structuredClone(options.deploymentFacts);
150
+ const saveMessages = new Map(Object.entries(options.saveMessages ?? {}));
151
+ const said = (result) => {
152
+ if (result.outcome !== 'refused')
153
+ return result;
154
+ const message = saveMessages.get(result.code);
155
+ return message === undefined ? result : { ...result, message };
156
+ };
83
157
  const closing = new AbortController();
84
158
  const close = () => {
85
159
  closing.abort();
@@ -91,16 +165,18 @@ export function serveMdRuntime(options) {
91
165
  const { md } = runtime;
92
166
  const attachments = new Map();
93
167
  let authorized = true;
168
+ let opening = null;
169
+ const opened = () => (opening ??= untilAnswered(() => md.loaded(), closing.signal, () => true, options.recovery));
94
170
  const watchFacts = (deliver) => {
95
171
  deliver(structuredClone(deploymentFacts));
96
172
  return () => { };
97
173
  };
98
- function attach(port, app, release, reach, code = 'stored', search = 'unused') {
174
+ function attach(port, options) {
99
175
  if (!authorized)
100
176
  throw new Error(AUTHORIZATION_ENDED);
177
+ const { app, release, reach, admission, code = 'stored', first = null } = options;
101
178
  const writtenBy = release === undefined ? undefined : { app, release };
102
- let facts = { target: app, code, capacity: null, search };
103
- const view = runtime.within(reach ?? null, facts);
179
+ const view = runtime.within(reach ?? null, { target: app, code, first, inboxed: null });
104
180
  const observations = new Map();
105
181
  const followed = new Set();
106
182
  const answeredKeys = new Set();
@@ -126,6 +202,7 @@ export function serveMdRuntime(options) {
126
202
  observations.clear();
127
203
  for (const end of [...followed])
128
204
  end();
205
+ view.close();
129
206
  attachments.delete(detach);
130
207
  };
131
208
  const observe = (id, topic, input) => {
@@ -138,10 +215,40 @@ export function serveMdRuntime(options) {
138
215
  if (topic === 'query' && answeredMessage(value))
139
216
  answeredQuery(input[0]);
140
217
  };
218
+ const fail = (error) => {
219
+ if (!serving || resolved)
220
+ return;
221
+ observations.get(id)?.();
222
+ observations.delete(id);
223
+ send({ kind: 'failure', id, ...described(error) });
224
+ };
141
225
  observations.set(id, topic === 'deployment-facts'
142
226
  ? watchFacts(deliver)
143
- : (NARROWED.has(WIRE.topics[topic]) ? view : runtime).watch(topic, topic === 'presentation' ? [app] : input, deliver));
227
+ : (NARROWED.has(WIRE.topics[topic]) ? view : runtime).watch(topic, topic === 'presentation' ? [app] : input, deliver, fail));
228
+ };
229
+ const reply = async (id, query, pending) => {
230
+ try {
231
+ const value = await pending;
232
+ if (!serving)
233
+ return;
234
+ send({ kind: 'result', id, value });
235
+ if (query !== undefined && answeredResult(value))
236
+ answeredQuery(query);
237
+ }
238
+ catch (error) {
239
+ if (serving)
240
+ send({ kind: 'failure', id, ...described(error) });
241
+ }
144
242
  };
243
+ const admitted = admission === undefined
244
+ ? view.md
245
+ : {
246
+ ...view.md,
247
+ async call(name, input) {
248
+ const decided = await admission(name, input);
249
+ return 'refused' in decided ? decided.refused : view.md.call(name, decided.admitted);
250
+ },
251
+ };
145
252
  const serve = async (message) => {
146
253
  if (message.kind === 'hello')
147
254
  return;
@@ -151,29 +258,31 @@ export function serveMdRuntime(options) {
151
258
  return;
152
259
  }
153
260
  try {
154
- if (message.kind !== 'observe' || message.topic !== 'room-drafts')
261
+ if (message.kind === 'observe') {
262
+ if (!UNWAITED_TOPICS.has(message.topic))
263
+ await opened();
264
+ }
265
+ else if (!UNWAITED_MEMBERS.has(message.member))
155
266
  await md.loaded();
156
267
  if (message.kind === 'observe') {
157
268
  if (serving)
158
269
  observe(message.id, message.topic, message.input);
159
270
  return;
160
271
  }
161
- const value = await answered(NARROWED.has(WIRE.members[message.member].reach) ? view.md : md, app, writtenBy, message.member, message.input);
162
- if (!serving)
163
- return;
164
- send({ kind: 'result', id: message.id, value });
165
- if (message.member === 'query' && answeredResult(value))
166
- answeredQuery(message.input[0]);
167
272
  }
168
273
  catch (error) {
169
274
  if (serving)
170
275
  send({ kind: 'failure', id: message.id, ...described(error) });
276
+ return;
171
277
  }
278
+ const { id, member, input } = message;
279
+ const pending = attempted(() => answered(NARROWED.has(WIRE.members[member].reach) ? admitted : md, app, writtenBy, member, input, said));
280
+ return reply(id, member === 'query' ? input[0] : undefined, pending);
172
281
  };
173
282
  port.addEventListener('message', (event) => {
174
283
  if (!serving)
175
284
  return;
176
- const message = request(event.data);
285
+ const message = wireRequest(event.data);
177
286
  if (message === null)
178
287
  return;
179
288
  void serve(message);
@@ -187,17 +296,9 @@ export function serveMdRuntime(options) {
187
296
  if (serving)
188
297
  view.narrow(next);
189
298
  },
190
- code(next, capacity) {
191
- if (!serving)
192
- return;
193
- facts = { ...facts, code: next, capacity };
194
- view.facts(facts);
195
- },
196
- search(next) {
197
- if (!serving)
198
- return;
199
- facts = { ...facts, search: next };
200
- view.facts(facts);
299
+ code(next) {
300
+ if (serving)
301
+ view.code(next);
201
302
  },
202
303
  answered(queries, done) {
203
304
  const keys = queries.map(queryKey);
@@ -209,10 +310,18 @@ export function serveMdRuntime(options) {
209
310
  readiness(deliver) {
210
311
  if (!serving)
211
312
  return () => { };
212
- const stop = view.watch('readiness', [], (value) => {
213
- if (serving)
214
- deliver(value);
215
- });
313
+ let shown = null;
314
+ const stop = view.watch('readiness', [], (message) => {
315
+ if (!serving)
316
+ return;
317
+ if (shown !== null) {
318
+ shown.receive(message);
319
+ return;
320
+ }
321
+ shown = observed(message, () => { }, 'readiness');
322
+ shown.observation.subscribe((value) => deliver(value));
323
+ deliver(shown.observation.current());
324
+ }, () => { });
216
325
  const end = () => {
217
326
  followed.delete(end);
218
327
  stop();
@@ -224,8 +333,8 @@ export function serveMdRuntime(options) {
224
333
  }
225
334
  return {
226
335
  attach,
227
- acquire(demand) {
228
- runtime.acquire(demand);
336
+ present(app, members) {
337
+ return md.presentation.edit(app, members);
229
338
  },
230
339
  seed(entry) {
231
340
  runtime.seed(entry);
@@ -240,11 +349,9 @@ export function serveMdRuntime(options) {
240
349
  detach();
241
350
  }
242
351
  close();
243
- if (!(await removeRuntimeStore(holder)))
352
+ if (!(await options.database.ask({ kind: 'authored.end', holder: holder ?? null }))) {
244
353
  await options.shell.dropGeneration();
245
- },
246
- lose(locators) {
247
- return runtime.lose(locators);
354
+ }
248
355
  },
249
356
  stop() {
250
357
  return runtime.stop();
@@ -253,4 +360,6 @@ export function serveMdRuntime(options) {
253
360
  }
254
361
  export { entrySeedOf } from './seed.js';
255
362
  export { createRecovery, retryDelay, } from './recovery.js';
256
- export { AUTHORED_SCHEMA, authoredBinding, authoredBy, authoredHolder, bindAuthored, openDatabase, STORE_SCHEMA, } from './store.js';
363
+ export { replaces } from './observation.js';
364
+ export { undeclared } from './outcome.js';
365
+ export { wireAnswer, wireRequest, } from './wire.js';
@@ -0,0 +1,24 @@
1
+ import { type DocumentQuery, type GroupQuery } from '@agentshouse/mdmodel';
2
+ import type { HouseQueryGroups, HouseQueryRows, ProviderRefusal } from './adapter.js';
3
+ import { type Failure, type Offline } from './outcome.js';
4
+ import { type PortReach } from './reach.js';
5
+ import type { Runtime } from './runtime.js';
6
+ type HouseViewQuery = {
7
+ readonly rooms: readonly [string];
8
+ readonly path: string;
9
+ readonly after?: string;
10
+ };
11
+ export type HouseQuery = ((DocumentQuery | GroupQuery) & {
12
+ rooms: readonly [string];
13
+ }) | HouseViewQuery;
14
+ export type HouseQueryOptions = {
15
+ readonly fresh?: boolean;
16
+ };
17
+ export type HouseQueryResult = HouseQueryRows | HouseQueryGroups | Offline | (ProviderRefusal & {
18
+ kind: 'rejected';
19
+ }) | (ProviderRefusal & {
20
+ kind: 'undeclared';
21
+ }) | Failure;
22
+ export declare function queriedHouse(runtime: Runtime, input: unknown, reach: PortReach | null, options: unknown): Promise<HouseQueryResult>;
23
+ export {};
24
+ //# sourceMappingURL=house-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"house-query.d.ts","sourceRoot":"","sources":["../src/house-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,aAAa,E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paths.js';
4
+ import { failure, OFFLINE, UNCERTAIN, undeclared } from './outcome.js';
5
+ import { askedOnline, offline } from './online.js';
6
+ import { holds, queriedOnly } from './reach.js';
7
+ import { documentKey } from './rows.js';
8
+ const HELD_ON_DEVICE = {
9
+ kind: 'rejected',
10
+ code: 'held-on-device',
11
+ fields: {},
12
+ retryable: false,
13
+ };
14
+ function freshOf(options) {
15
+ if (options === undefined)
16
+ return false;
17
+ if (!plain(options))
18
+ invalid('options', 'expects { fresh }');
19
+ known(options, ['fresh'], 'options');
20
+ const { fresh = false } = options;
21
+ if (typeof fresh !== 'boolean')
22
+ invalid('fresh', 'expects true or false');
23
+ return fresh;
24
+ }
25
+ function viewOf(query) {
26
+ known(query, ['path', 'after'], '');
27
+ const { path, after } = query;
28
+ if (typeof path !== 'string' || path === '' || normalize(path) !== path)
29
+ invalid('path', 'names a View by its Path in the Room');
30
+ if (after === undefined)
31
+ return { path };
32
+ if (typeof after !== 'string')
33
+ invalid('after', 'expects the next an earlier page answered');
34
+ return { path, after };
35
+ }
36
+ function followedOf(reach) {
37
+ if (reach === null)
38
+ return {};
39
+ const whole = new Set([
40
+ ...reach.rooms,
41
+ ...(reach.queriesOnly ?? []).map(({ locator }) => locator),
42
+ ]);
43
+ const documents = new Map(reach.documents
44
+ .filter(({ room }) => !whole.has(room))
45
+ .map(({ room, path }) => [documentKey(room, path), { room, path }]));
46
+ const followed = new Set([...whole, ...[...documents.values()].map(({ room }) => room)]);
47
+ const areas = new Map((reach.areas ?? [])
48
+ .filter(({ room }) => followed.has(room))
49
+ .map(({ room, path, open }) => [
50
+ documentKey(room, path),
51
+ { room, path, open: [...new Set(open)].sort() },
52
+ ]));
53
+ return {
54
+ follows: [
55
+ ...[...whole].sort(),
56
+ ...[...documents.keys()].sort().map((key) => documents.get(key)),
57
+ ...[...areas.keys()].sort().map((key) => areas.get(key)),
58
+ ],
59
+ };
60
+ }
61
+ function houseQueryOf(input, options, reach) {
62
+ if (!plain(input))
63
+ invalid('query', 'expects a query object');
64
+ const { rooms, ...query } = input;
65
+ if (!Array.isArray(rooms) || rooms.length !== 1 || typeof rooms[0] !== 'string')
66
+ invalid('rooms', 'names the one Room House answers');
67
+ const asked = { room: rooms[0], fresh: freshOf(options), ...followedOf(reach) };
68
+ return query.path === undefined ? { ...asked, query } : { ...asked, ...viewOf(query) };
69
+ }
70
+ async function heldHere(runtime, reach, room) {
71
+ return holds(reach, room) && listedOrHeld(runtime, await runtime.store.rooms([room]), room);
72
+ }
73
+ async function searchListed(runtime, room) {
74
+ const { roomList } = await (await runtime.store.open()).facts(['roomList']);
75
+ return roomList?.rooms.some((one) => one.room_ref === room && one.level === 'search') === true;
76
+ }
77
+ async function queriedHere(runtime, reach, room) {
78
+ if (queriedOnly(reach, runtime.socket.session.now().queriesOnly, room))
79
+ return true;
80
+ return reach === null && (await searchListed(runtime, room));
81
+ }
82
+ export async function queriedHouse(runtime, input, reach, options) {
83
+ const { socket } = runtime;
84
+ const query = socket.queryHouse();
85
+ if (query === undefined)
86
+ return undeclared('queryHouse');
87
+ const asked = houseQueryOf(input, options, reach);
88
+ await socket.ready;
89
+ if (!(await queriedHere(runtime, reach, asked.room))) {
90
+ return (await heldHere(runtime, reach, asked.room))
91
+ ? HELD_ON_DEVICE
92
+ : failure({ kind: 'room-not-readable', locator: asked.room });
93
+ }
94
+ if (await offline(runtime))
95
+ return OFFLINE;
96
+ const answer = await askedOnline(runtime, (authorization) => query(authorization, asked));
97
+ if (answer === null)
98
+ return UNCERTAIN;
99
+ return answer.kind === 'rows' || answer.kind === 'groups' || answer.kind === 'rejected'
100
+ ? answer
101
+ : failure(answer);
102
+ }
@@ -1,8 +1,6 @@
1
1
  export declare function changeBatchIdentity(at?: number): string;
2
- export declare function identityTime(identity: string): number;
3
2
  export declare function roomDraftRevision(): string;
4
3
  export declare function chatDraftRevision(): string;
5
4
  export declare function transferIdentity(): string;
6
- export declare function indexGeneration(): string;
7
- export declare function binaryLocalId(): string;
5
+ export declare function attachmentLocalId(): string;
8
6
  //# sourceMappingURL=identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAErD;AAQD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
1
+ {"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;AAQD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
package/dist/identity.js CHANGED
@@ -10,9 +10,6 @@ export function changeBatchIdentity(at = Date.now()) {
10
10
  const hex = [...bytes].map((byte) => byte.toString(16).padStart(2, '0')).join('');
11
11
  return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
12
12
  }
13
- export function identityTime(identity) {
14
- return Number.parseInt(identity.replaceAll('-', '').slice(0, 12), 16);
15
- }
16
13
  function randomIdentity() {
17
14
  const bytes = new Uint8Array(16);
18
15
  crypto.getRandomValues(bytes);
@@ -27,9 +24,6 @@ export function chatDraftRevision() {
27
24
  export function transferIdentity() {
28
25
  return randomIdentity();
29
26
  }
30
- export function indexGeneration() {
31
- return randomIdentity();
32
- }
33
- export function binaryLocalId() {
27
+ export function attachmentLocalId() {
34
28
  return randomIdentity();
35
29
  }
package/dist/index.d.ts CHANGED
@@ -1,25 +1,57 @@
1
- export type { AcquiredDemand, AcceptedMessage, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, Authorization, BinaryFile, BinaryRequest, BinaryResult, ReferrerScope, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationAgents, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, HeldContent, HeldRoom, KeptReceipt, ListedConversation, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, ServiceMode, ServiceModeSignal, StreamReceipts, TransportUncertainty, TurnContext, TurnOperation, TypedSelection, } from './adapter.js';
2
- export type { Change, ChangeBatch, Precondition, WrittenBy } from './change.js';
3
- export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationEntry, ConversationOptions, ConversationState, ConversationSurface, ConversationView, RunningTurn, } from './conversation.js';
4
- export type { ChatDraftFile, FileDeclaration } from './file.js';
5
- export type { AppRoom, AppTypedSelection, BinaryFileSurface, ConnectionRefusal, ConnectionRefusalCode, HistoryQuery, MdRuntime, MdRuntimeOptions, PresentationSurface, RoomDraftSurface, RoomSchemas, SavedRoomDraft, SaveResult, } from './connection.js';
1
+ export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization, AttachmentCopy, AttachmentCopy as BinaryCopy, Attachment, AttachmentLinkResult, AttachmentLinkResult as BinaryLinkResult, AttachmentRequest, AttachmentRequest as BinaryRequest, AttachmentResult, AttachmentResult as BinaryResult, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, SavedFacts, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, BootstrapPart, NotReady, HeldRoom, KeyedRequest, AgentEnvironment, ListedAgent, ListedConversation, ListedOwner, ListedSpaceRef, RoomList, RoomListEntry, SpaceListEntry, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomChange, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, HouseQueryAnswer, HouseQueryAsk, HouseQueryGroups, HouseQueryRows, SearchAnswer, SearchAsk, ServiceMode, ServiceModeSignal, TransportUncertainty, TurnOperation, TypedPath, TypedSelection, } from './adapter.js';
2
+ export type { Change, ChangeBatch, Precondition, RoomMove, WrittenBy } from './change.js';
3
+ export type { Written, WrittenDocument } from './overlay.js';
4
+ export { unreadDocuments } from './overlay.js';
5
+ export { heldFacts } from './conversation-row.js';
6
+ export type { ConversationAsk, ConversationHeld, ConversationLast, ConversationStart, } from './conversation-row.js';
7
+ export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationAnswer, ConversationEntry, ConversationOptions, ConversationRead, ConversationSettings, ConversationState, ConversationSurface, ConversationView, RequestDecision, RunningTurn, } from './conversation.js';
8
+ export type { MdRuntimeOptions } from './connection.js';
9
+ export { PAGE_METADATA_WORDS } from './page-metadata.js';
10
+ export { writeRule, type WriteRefusal } from './declaration.js';
11
+ export type { HistoryQuery } from './actions.js';
12
+ export type { AppRoom, AppTypedSelection } from './listing.js';
13
+ export type { ConnectionRefusal, ConnectionRefusalCode } from './socket.js';
14
+ export type { MdRuntime, RoomSchemas } from './surface.js';
15
+ export type { AttachmentSurface, SavedParts, SavedRoomDraft, SaveResult } from './saves.js';
6
16
  export type { Observation } from './observation.js';
7
- export type { BinaryAnswer, CallResult, Failure, HistoryAnswer, Offline, QueueEntry, Submission, } from './outcome.js';
8
- export type { BinaryFileRecord, BinaryReference } from './binary.js';
17
+ export type { DayFigures, Figures, FiguresResult, RoomFigures } from './figures.js';
18
+ export type { HeldApp, Holdings, RoomDocuments } from './holdings.js';
19
+ export type { PresentationSurface, RoomDraftSurface } from './room-drafts.js';
20
+ export type { AttachAnswer, AttachmentAnswer, AttachmentAnswer as BinaryAnswer, AttachmentLinkAnswer, AttachmentLinkAnswer as BinaryLinkAnswer, CallResult, ShownAnswer, ConversationAttachAnswer, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
21
+ export { attachmentBlob, attachmentBlob as blobOf, declaredType } from './outcome.js';
22
+ export type { AttachmentRecord } from './attachment.js';
9
23
  export type { RuntimeError } from './failure.js';
10
- export type { ChangedPart, FieldValue, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
24
+ export { refusalError } from './failure.js';
25
+ export type { ChangedPart, FieldValue, Marks, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
11
26
  export type { SaveRefusal } from './save.js';
12
- export type { DocumentHit, DocumentPart, MessageHit, PendingConversation, SearchCoverage, SearchHits, SearchPending, SearchRequest, SearchResult, SearchUndeclared, } from './search.js';
13
- export { departure } from './change.js';
14
- export { partsAfter } from './room-draft.js';
15
- export { SESSION_STARTED } from './conversation.js';
27
+ export type { SearchFound, SearchHit, SearchRequest, SearchResult } from './search.js';
28
+ export type { HouseQuery, HouseQueryOptions, HouseQueryResult } from './house-query.js';
29
+ export { keptFile, keptLines } from './chat-types.js';
30
+ export { FIGURES_DAY_MS } from './figures.js';
31
+ export { departure, isPart } from './change.js';
32
+ export { definitionsIn, selected } from './collection.js';
33
+ export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
34
+ export { cutName, nameFrom } from './name.js';
35
+ export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
36
+ export { contextFigure } from './context.js';
37
+ export { runningWords } from './running.js';
38
+ export { turnLine, WORKING } from './parts.js';
16
39
  export { changeBatchIdentity } from './identity.js';
17
- export { attempts, identities, intentOf, type Answered, type Attempt, type Attempts, type Identities, } from './attempt.js';
18
- export { expectedList, expecting, type ExpectedOf, type Expecting } from './expectation.js';
19
- export type { RuntimeShell, StorageEstimate } from './durability.js';
20
- export type { CapacityCause, CodeAvailability, ConnectionAvailability, ConversationCoverage, Durability, HouseOutcome, Persistence, Readiness, ReadinessStatus, RefusedRoom, RoomCoverage, RoomPreparation, SearchObligation, TargetCoverage, } from './readiness.js';
40
+ export { paced, ROW_WEIGHT, stepped } from './turn.js';
41
+ export { documentAt, documentAt as authoredAt, covered } from './paths.js';
42
+ export { untilAnswered } from './recovery.js';
43
+ export { selectorRewritten } from './selector.js';
44
+ export { createRetries, STEPS, retrying, Unanswered, uncertainError, type RetriedFailure, type Retries, type Step, } from './retried.js';
45
+ export { patching } from './shared.js';
46
+ export { acting, type Acting, type ActingRules, type Ended, type Lane, type LaneShown, type Send, } from './act-lanes.js';
47
+ export { expectation, expecting, type Descriptor, type Expectation, type Expected, type Expecting, } from './expectation.js';
48
+ export type { AppCode, HeldCode, RuntimeShell, UnsentKind, UnsentWork } from './durability.js';
49
+ export { leftToSend } from './durability.js';
50
+ export type { CodeAvailability, ConnectionAvailability, ConversationCoverage, Durability, HouseOutcome, Installation, InstallationAmount, InstallationStep, Persistence, Readiness, ReadinessStatus, RoomCoverage, RoomPreparation, Space, TargetCoverage, } from './readiness.js';
51
+ export type { ObservedRead } from './reads.js';
21
52
  export type { AttentionEntry, SyncStatus } from './status.js';
22
- export type { Awaits, Backlink, CoveredRoom, Direction, DocumentQuery, DocumentResult, Filter, GroupQuery, GroupResult, Key, LocalQuery, OrderOptions, PendingResult, PendingRoom, Predicate, QueryCoverage, QueryDocument, QueryGroup, QueryResult, QueryRows, Related, Select, Value, Where, } from './query.js';
53
+ export type { Direction, DocumentQuery, Filter, GroupKey, GroupOrder, GroupQuery, GroupSelect, Key, LocalQuery, OrderOptions, Predicate, Related, Select, Value, Where, } from '@agentshouse/mdmodel';
54
+ export type { Awaits, Backlink, CoveredRoom, DocumentResult, GroupResult, GroupTotal, PendingResult, PendingRoom, QueryCoverage, QueryDocument, QueryGroup, QueryResult, QueryRows, } from './query.js';
23
55
  export type { MdType, ModelIdentity, ModelSnapshot, ModelState, ModelResult, TypesResult, ValidationReceipt, } from './model.js';
24
56
  export type { OperationScopes, ReplicaAdmission, ScopedRefusal } from './adapter.js';
25
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,eAAe,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AAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,IAAI,UAAU,EAC5B,UAAU,EACV,oBAAoB,EACpB,oBAAoB,IAAI,gBAAgB,EACxC,iBAAiB,EACjB,iBAAiB,IAAI,aAAa,EAClC,gBAAgB,EAChB,gBAAgB,IAAI,YAAY,EAChC,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,GACf,MAAM,cAAc,CAAC;AACtB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