@vibesdotdev/docs 0.0.0-stage → 1.0.0-rc.3

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 (641) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +74 -2
  3. package/dist/cli/cli.plugin.d.ts +14 -0
  4. package/dist/cli/cli.plugin.d.ts.map +1 -0
  5. package/dist/cli/cli.plugin.js +57 -0
  6. package/dist/cli/cli.plugin.js.map +1 -0
  7. package/dist/cli/commands/docs.list.command.descriptor.d.ts +33 -0
  8. package/dist/cli/commands/docs.list.command.descriptor.d.ts.map +1 -0
  9. package/dist/cli/commands/docs.list.command.descriptor.js +34 -0
  10. package/dist/cli/commands/docs.list.command.descriptor.js.map +1 -0
  11. package/dist/cli/commands/docs.list.command.impl.d.ts +25 -0
  12. package/dist/cli/commands/docs.list.command.impl.d.ts.map +1 -0
  13. package/dist/cli/commands/docs.list.command.impl.js +87 -0
  14. package/dist/cli/commands/docs.list.command.impl.js.map +1 -0
  15. package/dist/cli/commands/docs.show.command.descriptor.d.ts +44 -0
  16. package/dist/cli/commands/docs.show.command.descriptor.d.ts.map +1 -0
  17. package/dist/cli/commands/docs.show.command.descriptor.js +48 -0
  18. package/dist/cli/commands/docs.show.command.descriptor.js.map +1 -0
  19. package/dist/cli/commands/docs.show.command.impl.d.ts +26 -0
  20. package/dist/cli/commands/docs.show.command.impl.d.ts.map +1 -0
  21. package/dist/cli/commands/docs.show.command.impl.js +82 -0
  22. package/dist/cli/commands/docs.show.command.impl.js.map +1 -0
  23. package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts +4 -0
  24. package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.d.ts.map +1 -0
  25. package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js +58 -0
  26. package/dist/cli/commands/generate/docs.generate.cli-command.descriptor.js.map +1 -0
  27. package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts +24 -0
  28. package/dist/cli/commands/generate/docs.generate.cli-command.impl.d.ts.map +1 -0
  29. package/dist/cli/commands/generate/docs.generate.cli-command.impl.js +283 -0
  30. package/dist/cli/commands/generate/docs.generate.cli-command.impl.js.map +1 -0
  31. package/dist/cli/commands/man/man.cli-command.descriptor.d.ts +4 -0
  32. package/dist/cli/commands/man/man.cli-command.descriptor.d.ts.map +1 -0
  33. package/dist/cli/commands/man/man.cli-command.descriptor.js +32 -0
  34. package/dist/cli/commands/man/man.cli-command.descriptor.js.map +1 -0
  35. package/dist/cli/commands/man/man.cli-command.impl.d.ts +23 -0
  36. package/dist/cli/commands/man/man.cli-command.impl.d.ts.map +1 -0
  37. package/dist/cli/commands/man/man.cli-command.impl.js +22 -0
  38. package/dist/cli/commands/man/man.cli-command.impl.js.map +1 -0
  39. package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts +4 -0
  40. package/dist/cli/commands/open/docs.open.cli-command.descriptor.d.ts.map +1 -0
  41. package/dist/cli/commands/open/docs.open.cli-command.descriptor.js +18 -0
  42. package/dist/cli/commands/open/docs.open.cli-command.descriptor.js.map +1 -0
  43. package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts +14 -0
  44. package/dist/cli/commands/open/docs.open.cli-command.impl.d.ts.map +1 -0
  45. package/dist/cli/commands/open/docs.open.cli-command.impl.js +52 -0
  46. package/dist/cli/commands/open/docs.open.cli-command.impl.js.map +1 -0
  47. package/dist/cli/commands/search.command.descriptor.d.ts +36 -0
  48. package/dist/cli/commands/search.command.descriptor.d.ts.map +1 -0
  49. package/dist/cli/commands/search.command.descriptor.js +35 -0
  50. package/dist/cli/commands/search.command.descriptor.js.map +1 -0
  51. package/dist/cli/commands/search.command.impl.d.ts +25 -0
  52. package/dist/cli/commands/search.command.impl.d.ts.map +1 -0
  53. package/dist/cli/commands/search.command.impl.js +113 -0
  54. package/dist/cli/commands/search.command.impl.js.map +1 -0
  55. package/dist/cli/directives/card.d.ts +11 -0
  56. package/dist/cli/directives/card.d.ts.map +1 -0
  57. package/dist/cli/directives/card.js +18 -0
  58. package/dist/cli/directives/card.js.map +1 -0
  59. package/dist/cli/directives/descriptor.d.ts +11 -0
  60. package/dist/cli/directives/descriptor.d.ts.map +1 -0
  61. package/dist/cli/directives/descriptor.js +20 -0
  62. package/dist/cli/directives/descriptor.js.map +1 -0
  63. package/dist/cli/directives/endpoint.d.ts +8 -0
  64. package/dist/cli/directives/endpoint.d.ts.map +1 -0
  65. package/dist/cli/directives/endpoint.js +31 -0
  66. package/dist/cli/directives/endpoint.js.map +1 -0
  67. package/dist/cli/directives/index.d.ts +9 -0
  68. package/dist/cli/directives/index.d.ts.map +1 -0
  69. package/dist/cli/directives/index.js +37 -0
  70. package/dist/cli/directives/index.js.map +1 -0
  71. package/dist/cli/directives/install.d.ts +12 -0
  72. package/dist/cli/directives/install.d.ts.map +1 -0
  73. package/dist/cli/directives/install.js +27 -0
  74. package/dist/cli/directives/install.js.map +1 -0
  75. package/dist/cli/directives/shell.d.ts +10 -0
  76. package/dist/cli/directives/shell.d.ts.map +1 -0
  77. package/dist/cli/directives/shell.js +16 -0
  78. package/dist/cli/directives/shell.js.map +1 -0
  79. package/dist/cli/directives/usage.d.ts +9 -0
  80. package/dist/cli/directives/usage.d.ts.map +1 -0
  81. package/dist/cli/directives/usage.js +13 -0
  82. package/dist/cli/directives/usage.js.map +1 -0
  83. package/dist/cli/docs/docs.cli.docs.descriptor.d.ts +22 -0
  84. package/dist/cli/docs/docs.cli.docs.descriptor.d.ts.map +1 -0
  85. package/dist/cli/docs/docs.cli.docs.descriptor.js +92 -0
  86. package/dist/cli/docs/docs.cli.docs.descriptor.js.map +1 -0
  87. package/dist/cli/docs.cli-group.descriptor.d.ts +4 -0
  88. package/dist/cli/docs.cli-group.descriptor.d.ts.map +1 -0
  89. package/dist/cli/docs.cli-group.descriptor.js +11 -0
  90. package/dist/cli/docs.cli-group.descriptor.js.map +1 -0
  91. package/dist/client/citations.d.ts +11 -0
  92. package/dist/client/citations.d.ts.map +1 -0
  93. package/dist/client/citations.js +197 -0
  94. package/dist/client/citations.js.map +1 -0
  95. package/dist/client/docs-client.d.ts +51 -0
  96. package/dist/client/docs-client.d.ts.map +1 -0
  97. package/dist/client/docs-client.js +298 -0
  98. package/dist/client/docs-client.js.map +1 -0
  99. package/dist/client/index.d.ts +12 -0
  100. package/dist/client/index.d.ts.map +1 -0
  101. package/dist/client/index.js +13 -0
  102. package/dist/client/index.js.map +1 -0
  103. package/dist/client/types.d.ts +26 -0
  104. package/dist/client/types.d.ts.map +1 -0
  105. package/dist/client/types.js +2 -0
  106. package/dist/client/types.js.map +1 -0
  107. package/dist/config/docs.svelte.config.descriptor.d.ts +50 -0
  108. package/dist/config/docs.svelte.config.descriptor.d.ts.map +1 -0
  109. package/dist/config/docs.svelte.config.descriptor.js +46 -0
  110. package/dist/config/docs.svelte.config.descriptor.js.map +1 -0
  111. package/dist/config/documents.source-refresh.config.descriptor.d.ts +41 -0
  112. package/dist/config/documents.source-refresh.config.descriptor.d.ts.map +1 -0
  113. package/dist/config/documents.source-refresh.config.descriptor.js +39 -0
  114. package/dist/config/documents.source-refresh.config.descriptor.js.map +1 -0
  115. package/dist/directives/index.d.ts +4 -0
  116. package/dist/directives/index.d.ts.map +1 -0
  117. package/dist/directives/index.js +3 -0
  118. package/dist/directives/index.js.map +1 -0
  119. package/dist/directives/registry.d.ts +31 -0
  120. package/dist/directives/registry.d.ts.map +1 -0
  121. package/dist/directives/registry.js +65 -0
  122. package/dist/directives/registry.js.map +1 -0
  123. package/dist/directives/types.d.ts +33 -0
  124. package/dist/directives/types.d.ts.map +1 -0
  125. package/dist/directives/types.js +2 -0
  126. package/dist/directives/types.js.map +1 -0
  127. package/dist/docs/agent-voice.docs.descriptor.d.ts +30 -0
  128. package/dist/docs/agent-voice.docs.descriptor.d.ts.map +1 -0
  129. package/dist/docs/agent-voice.docs.descriptor.js +107 -0
  130. package/dist/docs/agent-voice.docs.descriptor.js.map +1 -0
  131. package/dist/docs/charts.usage.docs.descriptor.d.ts +27 -0
  132. package/dist/docs/charts.usage.docs.descriptor.d.ts.map +1 -0
  133. package/dist/docs/charts.usage.docs.descriptor.js +90 -0
  134. package/dist/docs/charts.usage.docs.descriptor.js.map +1 -0
  135. package/dist/docs/command-palette.actions.docs.descriptor.d.ts +25 -0
  136. package/dist/docs/command-palette.actions.docs.descriptor.d.ts.map +1 -0
  137. package/dist/docs/command-palette.actions.docs.descriptor.js +80 -0
  138. package/dist/docs/command-palette.actions.docs.descriptor.js.map +1 -0
  139. package/dist/docs/docs.directives.docs.descriptor.d.ts +22 -0
  140. package/dist/docs/docs.directives.docs.descriptor.d.ts.map +1 -0
  141. package/dist/docs/docs.directives.docs.descriptor.js +104 -0
  142. package/dist/docs/docs.directives.docs.descriptor.js.map +1 -0
  143. package/dist/docs/docs.topics.docs.descriptor.d.ts +22 -0
  144. package/dist/docs/docs.topics.docs.descriptor.d.ts.map +1 -0
  145. package/dist/docs/docs.topics.docs.descriptor.js +90 -0
  146. package/dist/docs/docs.topics.docs.descriptor.js.map +1 -0
  147. package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts +30 -0
  148. package/dist/docs/fleet-pairing-direct.docs.descriptor.d.ts.map +1 -0
  149. package/dist/docs/fleet-pairing-direct.docs.descriptor.js +93 -0
  150. package/dist/docs/fleet-pairing-direct.docs.descriptor.js.map +1 -0
  151. package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts +30 -0
  152. package/dist/docs/fleet-pairing-mdns.docs.descriptor.d.ts.map +1 -0
  153. package/dist/docs/fleet-pairing-mdns.docs.descriptor.js +88 -0
  154. package/dist/docs/fleet-pairing-mdns.docs.descriptor.js.map +1 -0
  155. package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts +30 -0
  156. package/dist/docs/fleet-pairing-platform.docs.descriptor.d.ts.map +1 -0
  157. package/dist/docs/fleet-pairing-platform.docs.descriptor.js +101 -0
  158. package/dist/docs/fleet-pairing-platform.docs.descriptor.js.map +1 -0
  159. package/dist/docs/fleet-pairing.docs.descriptor.d.ts +28 -0
  160. package/dist/docs/fleet-pairing.docs.descriptor.d.ts.map +1 -0
  161. package/dist/docs/fleet-pairing.docs.descriptor.js +89 -0
  162. package/dist/docs/fleet-pairing.docs.descriptor.js.map +1 -0
  163. package/dist/docs/getting-started-cli.docs.descriptor.d.ts +4 -0
  164. package/dist/docs/getting-started-cli.docs.descriptor.d.ts.map +1 -0
  165. package/dist/docs/getting-started-cli.docs.descriptor.js +141 -0
  166. package/dist/docs/getting-started-cli.docs.descriptor.js.map +1 -0
  167. package/dist/docs/getting-started.concepts.docs.descriptor.d.ts +4 -0
  168. package/dist/docs/getting-started.concepts.docs.descriptor.d.ts.map +1 -0
  169. package/dist/docs/getting-started.concepts.docs.descriptor.js +100 -0
  170. package/dist/docs/getting-started.concepts.docs.descriptor.js.map +1 -0
  171. package/dist/docs/getting-started.docs.descriptor.d.ts +4 -0
  172. package/dist/docs/getting-started.docs.descriptor.d.ts.map +1 -0
  173. package/dist/docs/getting-started.docs.descriptor.js +63 -0
  174. package/dist/docs/getting-started.docs.descriptor.js.map +1 -0
  175. package/dist/docs/getting-started.first-query.docs.descriptor.d.ts +4 -0
  176. package/dist/docs/getting-started.first-query.docs.descriptor.d.ts.map +1 -0
  177. package/dist/docs/getting-started.first-query.docs.descriptor.js +95 -0
  178. package/dist/docs/getting-started.first-query.docs.descriptor.js.map +1 -0
  179. package/dist/docs/guided-flows.flows.docs.descriptor.d.ts +22 -0
  180. package/dist/docs/guided-flows.flows.docs.descriptor.d.ts.map +1 -0
  181. package/dist/docs/guided-flows.flows.docs.descriptor.js +114 -0
  182. package/dist/docs/guided-flows.flows.docs.descriptor.js.map +1 -0
  183. package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts +19 -0
  184. package/dist/docs/runtime-rpc-relay.docs.descriptor.d.ts.map +1 -0
  185. package/dist/docs/runtime-rpc-relay.docs.descriptor.js +140 -0
  186. package/dist/docs/runtime-rpc-relay.docs.descriptor.js.map +1 -0
  187. package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts +4 -0
  188. package/dist/docs/tutorials.ai-text-generation.docs.descriptor.d.ts.map +1 -0
  189. package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js +115 -0
  190. package/dist/docs/tutorials.ai-text-generation.docs.descriptor.js.map +1 -0
  191. package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts +4 -0
  192. package/dist/docs/tutorials.build-an-app.docs.descriptor.d.ts.map +1 -0
  193. package/dist/docs/tutorials.build-an-app.docs.descriptor.js +172 -0
  194. package/dist/docs/tutorials.build-an-app.docs.descriptor.js.map +1 -0
  195. package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts +4 -0
  196. package/dist/docs/tutorials.crud-collection.docs.descriptor.d.ts.map +1 -0
  197. package/dist/docs/tutorials.crud-collection.docs.descriptor.js +142 -0
  198. package/dist/docs/tutorials.crud-collection.docs.descriptor.js.map +1 -0
  199. package/dist/docs/tutorials.docs.descriptor.d.ts +4 -0
  200. package/dist/docs/tutorials.docs.descriptor.d.ts.map +1 -0
  201. package/dist/docs/tutorials.docs.descriptor.js +52 -0
  202. package/dist/docs/tutorials.docs.descriptor.js.map +1 -0
  203. package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts +4 -0
  204. package/dist/docs/tutorials.runtime-plugin.docs.descriptor.d.ts.map +1 -0
  205. package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js +121 -0
  206. package/dist/docs/tutorials.runtime-plugin.docs.descriptor.js.map +1 -0
  207. package/dist/docs.plugin.d.ts +12 -0
  208. package/dist/docs.plugin.d.ts.map +1 -0
  209. package/dist/docs.plugin.js +118 -0
  210. package/dist/docs.plugin.js.map +1 -0
  211. package/dist/documents/documents.cloud.plugin.d.ts +3 -0
  212. package/dist/documents/documents.cloud.plugin.d.ts.map +1 -0
  213. package/dist/documents/documents.cloud.plugin.js +26 -0
  214. package/dist/documents/documents.cloud.plugin.js.map +1 -0
  215. package/dist/documents/documents.consumer.plugin.d.ts +3 -0
  216. package/dist/documents/documents.consumer.plugin.d.ts.map +1 -0
  217. package/dist/documents/documents.consumer.plugin.js +26 -0
  218. package/dist/documents/documents.consumer.plugin.js.map +1 -0
  219. package/dist/documents/documents.plugin.d.ts +3 -0
  220. package/dist/documents/documents.plugin.d.ts.map +1 -0
  221. package/dist/documents/documents.plugin.js +33 -0
  222. package/dist/documents/documents.plugin.js.map +1 -0
  223. package/dist/documents/docx/client.d.ts +56 -0
  224. package/dist/documents/docx/client.d.ts.map +1 -0
  225. package/dist/documents/docx/client.js +90 -0
  226. package/dist/documents/docx/client.js.map +1 -0
  227. package/dist/documents/docx/extract.d.ts +12 -0
  228. package/dist/documents/docx/extract.d.ts.map +1 -0
  229. package/dist/documents/docx/extract.js +62 -0
  230. package/dist/documents/docx/extract.js.map +1 -0
  231. package/dist/documents/docx/generator.d.ts +49 -0
  232. package/dist/documents/docx/generator.d.ts.map +1 -0
  233. package/dist/documents/docx/generator.js +101 -0
  234. package/dist/documents/docx/generator.js.map +1 -0
  235. package/dist/documents/docx/index.d.ts +19 -0
  236. package/dist/documents/docx/index.d.ts.map +1 -0
  237. package/dist/documents/docx/index.js +16 -0
  238. package/dist/documents/docx/index.js.map +1 -0
  239. package/dist/documents/docx/kinds.d.ts +10 -0
  240. package/dist/documents/docx/kinds.d.ts.map +1 -0
  241. package/dist/documents/docx/kinds.js +11 -0
  242. package/dist/documents/docx/kinds.js.map +1 -0
  243. package/dist/documents/docx/plugin/docx.plugin.d.ts +9 -0
  244. package/dist/documents/docx/plugin/docx.plugin.d.ts.map +1 -0
  245. package/dist/documents/docx/plugin/docx.plugin.js +35 -0
  246. package/dist/documents/docx/plugin/docx.plugin.js.map +1 -0
  247. package/dist/documents/docx/schemas/generator.d.ts +10 -0
  248. package/dist/documents/docx/schemas/generator.d.ts.map +1 -0
  249. package/dist/documents/docx/schemas/generator.js +2 -0
  250. package/dist/documents/docx/schemas/generator.js.map +1 -0
  251. package/dist/documents/docx/schemas/index.d.ts +4 -0
  252. package/dist/documents/docx/schemas/index.d.ts.map +1 -0
  253. package/dist/documents/docx/schemas/index.js +2 -0
  254. package/dist/documents/docx/schemas/index.js.map +1 -0
  255. package/dist/documents/docx/schemas/runtime.d.ts +68 -0
  256. package/dist/documents/docx/schemas/runtime.d.ts.map +1 -0
  257. package/dist/documents/docx/schemas/runtime.js +30 -0
  258. package/dist/documents/docx/schemas/runtime.js.map +1 -0
  259. package/dist/documents/docx/schemas/template-registry.d.ts +21 -0
  260. package/dist/documents/docx/schemas/template-registry.d.ts.map +1 -0
  261. package/dist/documents/docx/schemas/template-registry.js +2 -0
  262. package/dist/documents/docx/schemas/template-registry.js.map +1 -0
  263. package/dist/documents/docx/templates/index.d.ts +3 -0
  264. package/dist/documents/docx/templates/index.d.ts.map +1 -0
  265. package/dist/documents/docx/templates/index.js +2 -0
  266. package/dist/documents/docx/templates/index.js.map +1 -0
  267. package/dist/documents/docx/templates/loader.d.ts +20 -0
  268. package/dist/documents/docx/templates/loader.d.ts.map +1 -0
  269. package/dist/documents/docx/templates/loader.js +36 -0
  270. package/dist/documents/docx/templates/loader.js.map +1 -0
  271. package/dist/documents/docx/templates/types.d.ts +2 -0
  272. package/dist/documents/docx/templates/types.d.ts.map +1 -0
  273. package/dist/documents/docx/templates/types.js +2 -0
  274. package/dist/documents/docx/templates/types.js.map +1 -0
  275. package/dist/documents/index.d.ts +4 -0
  276. package/dist/documents/index.d.ts.map +1 -0
  277. package/dist/documents/index.js +4 -0
  278. package/dist/documents/index.js.map +1 -0
  279. package/dist/documents/outline/parse-outline.d.ts +132 -0
  280. package/dist/documents/outline/parse-outline.d.ts.map +1 -0
  281. package/dist/documents/outline/parse-outline.js +246 -0
  282. package/dist/documents/outline/parse-outline.js.map +1 -0
  283. package/dist/documents/plugin.d.ts +3 -0
  284. package/dist/documents/plugin.d.ts.map +1 -0
  285. package/dist/documents/plugin.js +13 -0
  286. package/dist/documents/plugin.js.map +1 -0
  287. package/dist/documents/presentations/capabilities/index.d.ts +3 -0
  288. package/dist/documents/presentations/capabilities/index.d.ts.map +1 -0
  289. package/dist/documents/presentations/capabilities/index.js +3 -0
  290. package/dist/documents/presentations/capabilities/index.js.map +1 -0
  291. package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts +333 -0
  292. package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.d.ts.map +1 -0
  293. package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js +101 -0
  294. package/dist/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.js.map +1 -0
  295. package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts +65 -0
  296. package/dist/documents/presentations/capabilities/presentations.directory.kind.d.ts.map +1 -0
  297. package/dist/documents/presentations/capabilities/presentations.directory.kind.js +152 -0
  298. package/dist/documents/presentations/capabilities/presentations.directory.kind.js.map +1 -0
  299. package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts +68 -0
  300. package/dist/documents/presentations/capabilities/presentations.surface.kind.d.ts.map +1 -0
  301. package/dist/documents/presentations/capabilities/presentations.surface.kind.js +100 -0
  302. package/dist/documents/presentations/capabilities/presentations.surface.kind.js.map +1 -0
  303. package/dist/documents/presentations/client/contracts.d.ts +20 -0
  304. package/dist/documents/presentations/client/contracts.d.ts.map +1 -0
  305. package/dist/documents/presentations/client/contracts.js +2 -0
  306. package/dist/documents/presentations/client/contracts.js.map +1 -0
  307. package/dist/documents/presentations/client/index.d.ts +5 -0
  308. package/dist/documents/presentations/client/index.d.ts.map +1 -0
  309. package/dist/documents/presentations/client/index.js +5 -0
  310. package/dist/documents/presentations/client/index.js.map +1 -0
  311. package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts +4 -0
  312. package/dist/documents/presentations/client/presentations.runtime-client.descriptor.d.ts.map +1 -0
  313. package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js +13 -0
  314. package/dist/documents/presentations/client/presentations.runtime-client.descriptor.js.map +1 -0
  315. package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts +711 -0
  316. package/dist/documents/presentations/client/presentations.runtime-client.impl.d.ts.map +1 -0
  317. package/dist/documents/presentations/client/presentations.runtime-client.impl.js +72 -0
  318. package/dist/documents/presentations/client/presentations.runtime-client.impl.js.map +1 -0
  319. package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts +4 -0
  320. package/dist/documents/presentations/docs/presentations.docs.descriptor.d.ts.map +1 -0
  321. package/dist/documents/presentations/docs/presentations.docs.descriptor.js +54 -0
  322. package/dist/documents/presentations/docs/presentations.docs.descriptor.js.map +1 -0
  323. package/dist/documents/presentations/index.d.ts +8 -0
  324. package/dist/documents/presentations/index.d.ts.map +1 -0
  325. package/dist/documents/presentations/index.js +8 -0
  326. package/dist/documents/presentations/index.js.map +1 -0
  327. package/dist/documents/presentations/presentations.consumer.plugin.d.ts +4 -0
  328. package/dist/documents/presentations/presentations.consumer.plugin.d.ts.map +1 -0
  329. package/dist/documents/presentations/presentations.consumer.plugin.js +16 -0
  330. package/dist/documents/presentations/presentations.consumer.plugin.js.map +1 -0
  331. package/dist/documents/presentations/presentations.plugin.d.ts +3 -0
  332. package/dist/documents/presentations/presentations.plugin.d.ts.map +1 -0
  333. package/dist/documents/presentations/presentations.plugin.js +48 -0
  334. package/dist/documents/presentations/presentations.plugin.js.map +1 -0
  335. package/dist/documents/presentations/review-read-authority.d.ts +117 -0
  336. package/dist/documents/presentations/review-read-authority.d.ts.map +1 -0
  337. package/dist/documents/presentations/review-read-authority.js +74 -0
  338. package/dist/documents/presentations/review-read-authority.js.map +1 -0
  339. package/dist/documents/presentations/schemas/index.d.ts +5 -0
  340. package/dist/documents/presentations/schemas/index.d.ts.map +1 -0
  341. package/dist/documents/presentations/schemas/index.js +5 -0
  342. package/dist/documents/presentations/schemas/index.js.map +1 -0
  343. package/dist/documents/presentations/schemas/owner.d.ts +28 -0
  344. package/dist/documents/presentations/schemas/owner.d.ts.map +1 -0
  345. package/dist/documents/presentations/schemas/owner.js +18 -0
  346. package/dist/documents/presentations/schemas/owner.js.map +1 -0
  347. package/dist/documents/presentations/schemas/request.d.ts +325 -0
  348. package/dist/documents/presentations/schemas/request.d.ts.map +1 -0
  349. package/dist/documents/presentations/schemas/request.js +169 -0
  350. package/dist/documents/presentations/schemas/request.js.map +1 -0
  351. package/dist/documents/presentations/schemas/review.d.ts +154 -0
  352. package/dist/documents/presentations/schemas/review.d.ts.map +1 -0
  353. package/dist/documents/presentations/schemas/review.js +83 -0
  354. package/dist/documents/presentations/schemas/review.js.map +1 -0
  355. package/dist/documents/presentations/schemas/surface.d.ts +315 -0
  356. package/dist/documents/presentations/schemas/surface.d.ts.map +1 -0
  357. package/dist/documents/presentations/schemas/surface.js +125 -0
  358. package/dist/documents/presentations/schemas/surface.js.map +1 -0
  359. package/dist/documents/presentations/state-machine.d.ts +36 -0
  360. package/dist/documents/presentations/state-machine.d.ts.map +1 -0
  361. package/dist/documents/presentations/state-machine.js +158 -0
  362. package/dist/documents/presentations/state-machine.js.map +1 -0
  363. package/dist/documents/presentations/storage/index.d.ts +3 -0
  364. package/dist/documents/presentations/storage/index.d.ts.map +1 -0
  365. package/dist/documents/presentations/storage/index.js +3 -0
  366. package/dist/documents/presentations/storage/index.js.map +1 -0
  367. package/dist/documents/presentations/storage/owner-app.d.ts +12 -0
  368. package/dist/documents/presentations/storage/owner-app.d.ts.map +1 -0
  369. package/dist/documents/presentations/storage/owner-app.js +43 -0
  370. package/dist/documents/presentations/storage/owner-app.js.map +1 -0
  371. package/dist/documents/presentations/storage/owner-transforms.d.ts +476 -0
  372. package/dist/documents/presentations/storage/owner-transforms.d.ts.map +1 -0
  373. package/dist/documents/presentations/storage/owner-transforms.js +77 -0
  374. package/dist/documents/presentations/storage/owner-transforms.js.map +1 -0
  375. package/dist/documents/presentations/storage/records.d.ts +227 -0
  376. package/dist/documents/presentations/storage/records.d.ts.map +1 -0
  377. package/dist/documents/presentations/storage/records.js +145 -0
  378. package/dist/documents/presentations/storage/records.js.map +1 -0
  379. package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts +543 -0
  380. package/dist/documents/presentations/tools/presentations.tool.descriptor.d.ts.map +1 -0
  381. package/dist/documents/presentations/tools/presentations.tool.descriptor.js +47 -0
  382. package/dist/documents/presentations/tools/presentations.tool.descriptor.js.map +1 -0
  383. package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts +8 -0
  384. package/dist/documents/presentations/tools/presentations.tool.impl.consumer.d.ts.map +1 -0
  385. package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js +68 -0
  386. package/dist/documents/presentations/tools/presentations.tool.impl.consumer.js.map +1 -0
  387. package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts +504 -0
  388. package/dist/documents/presentations/tools/presentations.tool.schemas.d.ts.map +1 -0
  389. package/dist/documents/presentations/tools/presentations.tool.schemas.js +76 -0
  390. package/dist/documents/presentations/tools/presentations.tool.schemas.js.map +1 -0
  391. package/dist/documents/render/grid.d.ts +96 -0
  392. package/dist/documents/render/grid.d.ts.map +1 -0
  393. package/dist/documents/render/grid.js +115 -0
  394. package/dist/documents/render/grid.js.map +1 -0
  395. package/dist/documents/render/index.d.ts +2 -0
  396. package/dist/documents/render/index.d.ts.map +1 -0
  397. package/dist/documents/render/index.js +2 -0
  398. package/dist/documents/render/index.js.map +1 -0
  399. package/dist/documents/render/render.impl.cloud.d.ts +25 -0
  400. package/dist/documents/render/render.impl.cloud.d.ts.map +1 -0
  401. package/dist/documents/render/render.impl.cloud.js +245 -0
  402. package/dist/documents/render/render.impl.cloud.js.map +1 -0
  403. package/dist/documents/render/render.impl.consumer.d.ts +35 -0
  404. package/dist/documents/render/render.impl.consumer.d.ts.map +1 -0
  405. package/dist/documents/render/render.impl.consumer.js +104 -0
  406. package/dist/documents/render/render.impl.consumer.js.map +1 -0
  407. package/dist/documents/render/render.interface.d.ts +147 -0
  408. package/dist/documents/render/render.interface.d.ts.map +1 -0
  409. package/dist/documents/render/render.interface.js +90 -0
  410. package/dist/documents/render/render.interface.js.map +1 -0
  411. package/dist/documents/schemas/ai-service-binding.schema.d.ts +11 -0
  412. package/dist/documents/schemas/ai-service-binding.schema.d.ts.map +1 -0
  413. package/dist/documents/schemas/ai-service-binding.schema.js +8 -0
  414. package/dist/documents/schemas/ai-service-binding.schema.js.map +1 -0
  415. package/dist/documents/schemas/document-read.schema.d.ts +107 -0
  416. package/dist/documents/schemas/document-read.schema.d.ts.map +1 -0
  417. package/dist/documents/schemas/document-read.schema.js +124 -0
  418. package/dist/documents/schemas/document-read.schema.js.map +1 -0
  419. package/dist/documents/schemas/document-view.schema.d.ts +74 -0
  420. package/dist/documents/schemas/document-view.schema.d.ts.map +1 -0
  421. package/dist/documents/schemas/document-view.schema.js +66 -0
  422. package/dist/documents/schemas/document-view.schema.js.map +1 -0
  423. package/dist/documents/schemas/index.d.ts +3 -0
  424. package/dist/documents/schemas/index.d.ts.map +1 -0
  425. package/dist/documents/schemas/index.js +3 -0
  426. package/dist/documents/schemas/index.js.map +1 -0
  427. package/dist/documents/schemas/page-cache.schema.d.ts +29 -0
  428. package/dist/documents/schemas/page-cache.schema.d.ts.map +1 -0
  429. package/dist/documents/schemas/page-cache.schema.js +50 -0
  430. package/dist/documents/schemas/page-cache.schema.js.map +1 -0
  431. package/dist/documents/storage/index.d.ts +3 -0
  432. package/dist/documents/storage/index.d.ts.map +1 -0
  433. package/dist/documents/storage/index.js +2 -0
  434. package/dist/documents/storage/index.js.map +1 -0
  435. package/dist/documents/storage/page-cache.descriptor.d.ts +17 -0
  436. package/dist/documents/storage/page-cache.descriptor.d.ts.map +1 -0
  437. package/dist/documents/storage/page-cache.descriptor.js +45 -0
  438. package/dist/documents/storage/page-cache.descriptor.js.map +1 -0
  439. package/dist/documents/tools/descriptors.d.ts +248 -0
  440. package/dist/documents/tools/descriptors.d.ts.map +1 -0
  441. package/dist/documents/tools/descriptors.js +78 -0
  442. package/dist/documents/tools/descriptors.js.map +1 -0
  443. package/dist/documents/tools/document-read-loop-guard.d.ts +61 -0
  444. package/dist/documents/tools/document-read-loop-guard.d.ts.map +1 -0
  445. package/dist/documents/tools/document-read-loop-guard.js +314 -0
  446. package/dist/documents/tools/document-read-loop-guard.js.map +1 -0
  447. package/dist/documents/tools/document-read.impl.d.ts +77 -0
  448. package/dist/documents/tools/document-read.impl.d.ts.map +1 -0
  449. package/dist/documents/tools/document-read.impl.js +1139 -0
  450. package/dist/documents/tools/document-read.impl.js.map +1 -0
  451. package/dist/documents/tools/document-view.impl.d.ts +45 -0
  452. package/dist/documents/tools/document-view.impl.d.ts.map +1 -0
  453. package/dist/documents/tools/document-view.impl.js +168 -0
  454. package/dist/documents/tools/document-view.impl.js.map +1 -0
  455. package/dist/documents/tools/index.d.ts +3 -0
  456. package/dist/documents/tools/index.d.ts.map +1 -0
  457. package/dist/documents/tools/index.js +6 -0
  458. package/dist/documents/tools/index.js.map +1 -0
  459. package/dist/documents/tools/source-refresh.d.ts +33 -0
  460. package/dist/documents/tools/source-refresh.d.ts.map +1 -0
  461. package/dist/documents/tools/source-refresh.js +127 -0
  462. package/dist/documents/tools/source-refresh.js.map +1 -0
  463. package/dist/documents/tools/unavailable.impl.d.ts +5 -0
  464. package/dist/documents/tools/unavailable.impl.d.ts.map +1 -0
  465. package/dist/documents/tools/unavailable.impl.js +12 -0
  466. package/dist/documents/tools/unavailable.impl.js.map +1 -0
  467. package/dist/index.d.ts +19 -0
  468. package/dist/index.d.ts.map +1 -0
  469. package/dist/index.js +13 -0
  470. package/dist/index.js.map +1 -0
  471. package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts +113 -0
  472. package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.d.ts.map +1 -0
  473. package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js +35 -0
  474. package/dist/prompts/descriptors/vibes-platform.prompt.descriptor.js.map +1 -0
  475. package/dist/render/ansi.d.ts +86 -0
  476. package/dist/render/ansi.d.ts.map +1 -0
  477. package/dist/render/ansi.js +125 -0
  478. package/dist/render/ansi.js.map +1 -0
  479. package/dist/render/frontmatter.d.ts +21 -0
  480. package/dist/render/frontmatter.d.ts.map +1 -0
  481. package/dist/render/frontmatter.js +57 -0
  482. package/dist/render/frontmatter.js.map +1 -0
  483. package/dist/render/index.d.ts +10 -0
  484. package/dist/render/index.d.ts.map +1 -0
  485. package/dist/render/index.js +6 -0
  486. package/dist/render/index.js.map +1 -0
  487. package/dist/render/parse.d.ts +29 -0
  488. package/dist/render/parse.d.ts.map +1 -0
  489. package/dist/render/parse.js +145 -0
  490. package/dist/render/parse.js.map +1 -0
  491. package/dist/render/sections.d.ts +24 -0
  492. package/dist/render/sections.d.ts.map +1 -0
  493. package/dist/render/sections.js +76 -0
  494. package/dist/render/sections.js.map +1 -0
  495. package/dist/render/terminal.d.ts +15 -0
  496. package/dist/render/terminal.d.ts.map +1 -0
  497. package/dist/render/terminal.js +293 -0
  498. package/dist/render/terminal.js.map +1 -0
  499. package/dist/runbooks/index.d.ts +4 -0
  500. package/dist/runbooks/index.d.ts.map +1 -0
  501. package/dist/runbooks/index.js +3 -0
  502. package/dist/runbooks/index.js.map +1 -0
  503. package/dist/runbooks/runbooks.plugin.d.ts +3 -0
  504. package/dist/runbooks/runbooks.plugin.d.ts.map +1 -0
  505. package/dist/runbooks/runbooks.plugin.js +3 -0
  506. package/dist/runbooks/runbooks.plugin.js.map +1 -0
  507. package/dist/schemas/citations.schema.d.ts +21 -0
  508. package/dist/schemas/citations.schema.d.ts.map +1 -0
  509. package/dist/schemas/citations.schema.js +17 -0
  510. package/dist/schemas/citations.schema.js.map +1 -0
  511. package/dist/schemas/index.d.ts +4 -0
  512. package/dist/schemas/index.d.ts.map +1 -0
  513. package/dist/schemas/index.js +3 -0
  514. package/dist/schemas/index.js.map +1 -0
  515. package/dist/schemas/topic.schema.d.ts +179 -0
  516. package/dist/schemas/topic.schema.d.ts.map +1 -0
  517. package/dist/schemas/topic.schema.js +15 -0
  518. package/dist/schemas/topic.schema.js.map +1 -0
  519. package/dist/svelte/build/highlight.d.ts +33 -0
  520. package/dist/svelte/build/highlight.d.ts.map +1 -0
  521. package/dist/svelte/build/highlight.js +95 -0
  522. package/dist/svelte/build/topic-index.d.ts +96 -0
  523. package/dist/svelte/build/topic-index.d.ts.map +1 -0
  524. package/dist/svelte/build/topic-index.js +247 -0
  525. package/dist/svelte/context.d.ts +12 -0
  526. package/dist/svelte/context.d.ts.map +1 -0
  527. package/dist/svelte/context.js +16 -0
  528. package/dist/svelte/docs-origin.d.ts +14 -0
  529. package/dist/svelte/docs-origin.d.ts.map +1 -0
  530. package/dist/svelte/docs-origin.js +49 -0
  531. package/dist/svelte/docs-svelte.plugin.d.ts +121 -0
  532. package/dist/svelte/docs-svelte.plugin.d.ts.map +1 -0
  533. package/dist/svelte/docs-svelte.plugin.js +35 -0
  534. package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte +261 -0
  535. package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts +16 -0
  536. package/dist/svelte/documents/presentations/components/PresentationMonitor.svelte.d.ts.map +1 -0
  537. package/dist/svelte/documents/presentations/index.d.ts +3 -0
  538. package/dist/svelte/documents/presentations/index.d.ts.map +1 -0
  539. package/dist/svelte/documents/presentations/index.js +2 -0
  540. package/dist/svelte/documents/presentations/monitor-state.d.ts +17 -0
  541. package/dist/svelte/documents/presentations/monitor-state.d.ts.map +1 -0
  542. package/dist/svelte/documents/presentations/monitor-state.js +38 -0
  543. package/dist/svelte/index.d.ts +20 -0
  544. package/dist/svelte/index.d.ts.map +1 -0
  545. package/dist/svelte/index.js +16 -0
  546. package/dist/svelte/loaders.d.ts +57 -0
  547. package/dist/svelte/loaders.d.ts.map +1 -0
  548. package/dist/svelte/loaders.js +74 -0
  549. package/dist/svelte/state.svelte.d.ts +366 -0
  550. package/dist/svelte/state.svelte.d.ts.map +1 -0
  551. package/dist/svelte/state.svelte.js +155 -0
  552. package/dist/svelte/styles.css +8 -0
  553. package/dist/svelte/tool-widgets/DocsToolCard.svelte +41 -0
  554. package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts +5 -0
  555. package/dist/svelte/tool-widgets/DocsToolCard.svelte.d.ts.map +1 -0
  556. package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte +28 -0
  557. package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts +8 -0
  558. package/dist/svelte/tool-widgets/DocumentReadToolCard.svelte.d.ts.map +1 -0
  559. package/dist/svelte/tool-widgets/PresentationsToolCard.svelte +25 -0
  560. package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts +8 -0
  561. package/dist/svelte/tool-widgets/PresentationsToolCard.svelte.d.ts.map +1 -0
  562. package/dist/svelte/tool-widgets/RunbookToolCard.svelte +29 -0
  563. package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts +8 -0
  564. package/dist/svelte/tool-widgets/RunbookToolCard.svelte.d.ts.map +1 -0
  565. package/dist/svelte/tool-widgets/index.d.ts +7 -0
  566. package/dist/svelte/tool-widgets/index.d.ts.map +1 -0
  567. package/dist/svelte/tool-widgets/index.js +5 -0
  568. package/dist/svelte/tool-widgets/models.d.ts +47 -0
  569. package/dist/svelte/tool-widgets/models.d.ts.map +1 -0
  570. package/dist/svelte/tool-widgets/models.js +112 -0
  571. package/dist/svelte/ui/DocViewer.svelte +122 -0
  572. package/dist/svelte/ui/DocViewer.svelte.d.ts +17 -0
  573. package/dist/svelte/ui/DocViewer.svelte.d.ts.map +1 -0
  574. package/dist/svelte/ui/DocsLoader.svelte +37 -0
  575. package/dist/svelte/ui/DocsLoader.svelte.d.ts +21 -0
  576. package/dist/svelte/ui/DocsLoader.svelte.d.ts.map +1 -0
  577. package/dist/svelte/ui/DocsSearch.svelte +129 -0
  578. package/dist/svelte/ui/DocsSearch.svelte.d.ts +15 -0
  579. package/dist/svelte/ui/DocsSearch.svelte.d.ts.map +1 -0
  580. package/dist/svelte/ui/directives/Card.svelte +61 -0
  581. package/dist/svelte/ui/directives/Card.svelte.d.ts +8 -0
  582. package/dist/svelte/ui/directives/Card.svelte.d.ts.map +1 -0
  583. package/dist/svelte/ui/directives/Descriptor.svelte +73 -0
  584. package/dist/svelte/ui/directives/Descriptor.svelte.d.ts +8 -0
  585. package/dist/svelte/ui/directives/Descriptor.svelte.d.ts.map +1 -0
  586. package/dist/svelte/ui/directives/DirectiveDispatch.svelte +45 -0
  587. package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts +8 -0
  588. package/dist/svelte/ui/directives/DirectiveDispatch.svelte.d.ts.map +1 -0
  589. package/dist/svelte/ui/directives/Endpoint.svelte +68 -0
  590. package/dist/svelte/ui/directives/Endpoint.svelte.d.ts +8 -0
  591. package/dist/svelte/ui/directives/Endpoint.svelte.d.ts.map +1 -0
  592. package/dist/svelte/ui/directives/Install.svelte +112 -0
  593. package/dist/svelte/ui/directives/Install.svelte.d.ts +8 -0
  594. package/dist/svelte/ui/directives/Install.svelte.d.ts.map +1 -0
  595. package/dist/svelte/ui/directives/Shell.svelte +32 -0
  596. package/dist/svelte/ui/directives/Shell.svelte.d.ts +8 -0
  597. package/dist/svelte/ui/directives/Shell.svelte.d.ts.map +1 -0
  598. package/dist/svelte/ui/directives/Usage.svelte +14 -0
  599. package/dist/svelte/ui/directives/Usage.svelte.d.ts +8 -0
  600. package/dist/svelte/ui/directives/Usage.svelte.d.ts.map +1 -0
  601. package/dist/svelte/ui/help/HelpDialog.svelte +210 -0
  602. package/dist/svelte/ui/help/HelpDialog.svelte.d.ts +11 -0
  603. package/dist/svelte/ui/help/HelpDialog.svelte.d.ts.map +1 -0
  604. package/dist/svelte/ui/help/HelpIcon.svelte +83 -0
  605. package/dist/svelte/ui/help/HelpIcon.svelte.d.ts +16 -0
  606. package/dist/svelte/ui/help/HelpIcon.svelte.d.ts.map +1 -0
  607. package/dist/svelte/ui/markdown/CodeBlock.svelte +125 -0
  608. package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts +8 -0
  609. package/dist/svelte/ui/markdown/CodeBlock.svelte.d.ts.map +1 -0
  610. package/dist/svelte/ui/markdown/MarkdownView.svelte +319 -0
  611. package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts +9 -0
  612. package/dist/svelte/ui/markdown/MarkdownView.svelte.d.ts.map +1 -0
  613. package/dist/tools/docs.descriptor.d.ts +48 -0
  614. package/dist/tools/docs.descriptor.d.ts.map +1 -0
  615. package/dist/tools/docs.descriptor.js +23 -0
  616. package/dist/tools/docs.descriptor.js.map +1 -0
  617. package/dist/tools/docs.impl.d.ts +7 -0
  618. package/dist/tools/docs.impl.d.ts.map +1 -0
  619. package/dist/tools/docs.impl.js +67 -0
  620. package/dist/tools/docs.impl.js.map +1 -0
  621. package/dist/tools/schemas.d.ts +43 -0
  622. package/dist/tools/schemas.d.ts.map +1 -0
  623. package/dist/tools/schemas.js +30 -0
  624. package/dist/tools/schemas.js.map +1 -0
  625. package/dist/tui/docs-tui.plugin.d.ts +3 -0
  626. package/dist/tui/docs-tui.plugin.d.ts.map +1 -0
  627. package/dist/tui/docs-tui.plugin.js +18 -0
  628. package/dist/tui/docs-tui.plugin.js.map +1 -0
  629. package/dist/tui/index.d.ts +2 -0
  630. package/dist/tui/index.d.ts.map +1 -0
  631. package/dist/tui/index.js +2 -0
  632. package/dist/tui/index.js.map +1 -0
  633. package/dist/tui/tui/docs-explorer.impl.consumer.d.ts +38 -0
  634. package/dist/tui/tui/docs-explorer.impl.consumer.d.ts.map +1 -0
  635. package/dist/tui/tui/docs-explorer.impl.consumer.js +334 -0
  636. package/dist/tui/tui/docs-explorer.impl.consumer.js.map +1 -0
  637. package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts +13 -0
  638. package/dist/tui/tui/docs-explorer.tui.descriptor.d.ts.map +1 -0
  639. package/dist/tui/tui/docs-explorer.tui.descriptor.js +29 -0
  640. package/dist/tui/tui/docs-explorer.tui.descriptor.js.map +1 -0
  641. package/package.json +450 -4
@@ -0,0 +1,246 @@
1
+ /**
2
+ * Drawing-set structure extraction — trade-neutral, in-isolate.
3
+ *
4
+ * Given the raw per-page text of a PDF (from the rasterization primitive's `pdftotext`
5
+ * pass) this derives each sheet's identity: its title-block NUMBER and TITLE, plus whether
6
+ * the page's text layer is garbled. That's document *structure* — the same shape a
7
+ * structural, MEP, or GC takeoff needs — so it lives in the generic documents package, not
8
+ * in a trade-specific place and not in the Docker container that only knows poppler.
9
+ *
10
+ * What is DELIBERATELY absent: a notion of "casework" (or another trade's relevance).
11
+ * Which sheets matter for a given takeoff is a DOMAIN judgment — the consuming surface's
12
+ * prompt/config tells the agent ("casework = millwork details / interior elevations /
13
+ * enlarged floor plans / the schedule"), and the model applies it to these titles. Baking a
14
+ * keyword list in here (as the old container `looksLikeCasework` did) both put org
15
+ * secret-sauce in shared infra AND had code doing a model's classification job — it flagged
16
+ * ~70% of a set from cross-sheet callouts, forcing a blind multi-page vision scan.
17
+ *
18
+ * HONEST BOUND on "neutral": every judgment this module makes about a page's IDENTITY is
19
+ * structural (field layout, reading order, letter/word statistics) and carries no trade
20
+ * vocabulary. The one exception is `detectSheetTitle`, a last-resort keyword fallback kept
21
+ * for sheets the set's own drawing index omits — it is a legacy title guess, explicitly
22
+ * labelled below, and it never decides relevance. Nothing here classifies a sheet.
23
+ *
24
+ * The rule every identity function obeys: a page's identity comes from THAT page. Nothing is
25
+ * borrowed from a neighbour or from the set-wide index because it happens to match, and when
26
+ * a page's own identity cannot be read the function returns a blank the agent can see. A
27
+ * confident wrong sheet number sends the agent to quote dimensions off the wrong drawing.
28
+ */
29
+ /**
30
+ * Title-block / index sheet-number token, in the forms real sets actually print:
31
+ *
32
+ * A-101 · A101 · A501 · A-101.1 · A2.01 · M1.02 · M-1.02 · FP-101 · G0.01
33
+ *
34
+ * A 1–2 letter discipline code, an optional hyphen, then either a 3-digit group or a dotted
35
+ * digit group. Two-digit equipment tags (VAV-02) and single-digit ids (P-1) never qualify.
36
+ *
37
+ * SHAPE ALONE CANNOT separate a sheet id from content noise — an equipment tag C840, a UL
38
+ * rating UL891 and a spec ref E814 are shape-identical to the hyphenless sheet id A101, so no
39
+ * amount of tightening this pattern distinguishes them, and tightening it to a literal hyphen
40
+ * + exactly three digits (as it briefly was) merely deleted the hyphenless and dotted
41
+ * conventions from the world. That call belongs to the STRUCTURE around a token instead: an
42
+ * index ROW is a standalone number FIELD followed by a caps-title FIELD; a title-block number
43
+ * is the LAST standalone number FIELD on the page that no index row on that page claims.
44
+ *
45
+ * Both readers therefore test a WHOLE ≥2-space-delimited column field — never a token fished
46
+ * out of running text, which is exactly where references to OTHER sheets live.
47
+ */
48
+ const SHEET_NO_SOURCE = String.raw `[A-Z]{1,2}-?(?:\d{3}(?:\.\d{1,2})?|\d{1,2}\.\d{1,2})`;
49
+ const SHEET_NO_FIELD_RE = new RegExp(String.raw `^${SHEET_NO_SOURCE}$`);
50
+ /** A title block often prints its id and the id's LABEL in one cell — "SHEET NO. A-221". The
51
+ * label is anchored to the START of the field, so a reference living in running text ("SEE
52
+ * SHEET A-521", "…sheets A-221, A-223") can never qualify. Document-structure vocabulary, not
53
+ * a trade's. */
54
+ const SHEET_NO_LABELLED_RE = new RegExp(String.raw `^(?:SHEET|DWG|DRAWING)\s*(?:NO\.?|NUMBER|#)?\s*[:.]?\s*(${SHEET_NO_SOURCE})$`);
55
+ /** This field's sheet number when the FIELD ITSELF is one — either bare or behind its label.
56
+ * '' when the field merely mentions a number somewhere inside other text. */
57
+ function fieldSheetNumber(field) {
58
+ const token = field.trim();
59
+ if (SHEET_NO_FIELD_RE.test(token))
60
+ return token;
61
+ return SHEET_NO_LABELLED_RE.exec(token)?.[1] ?? '';
62
+ }
63
+ const TITLE_KEYWORDS = [
64
+ 'INTERIOR ELEVATIONS', 'MILLWORK DETAILS', 'ENLARGED FLOOR PLAN', 'ENLARGED REFLECTED CEILING PLAN',
65
+ 'REFLECTED CEILING PLAN', 'FINISH PLAN', 'FLOOR PLAN', 'DEMOLITION PLAN', 'PLAN DETAILS',
66
+ 'PARTITION TYPES', 'DOOR SCHEDULE', 'WINDOW TYPES', 'EQUIPMENT SCHEDULE', 'FURNITURE',
67
+ 'GENERAL INFORMATION', 'RENDERINGS', 'CASEWORK', 'COVER', 'SCHEDULE'
68
+ ];
69
+ /**
70
+ * Parse the cover sheet's DRAWING INDEX into a canonical `number -> title` map. The index sits
71
+ * in a multi-column layout — "…project notes… A-101 DEMOLITION PLAN …" — so split each line
72
+ * on the ≥2-space column gap and read a standalone sheet-number FIELD immediately followed by a
73
+ * caps-title FIELD. Numbers embedded in note sentences ("…sheets A-221, A-223…") never form a
74
+ * standalone field, so they're rejected. This is the AUTHORITATIVE per-sheet identity.
75
+ */
76
+ export function parseDrawingIndex(coverText) {
77
+ const map = new Map();
78
+ for (const raw of coverText.split('\n')) {
79
+ const fields = raw.split(/\s{2,}/).map((f) => f.trim()).filter(Boolean);
80
+ for (let i = 0; i < fields.length - 1; i++) {
81
+ if (!SHEET_NO_FIELD_RE.test(fields[i]))
82
+ continue;
83
+ const title = fields[i + 1].replace(/\s+/g, ' ').trim();
84
+ if (!/^[A-Z][A-Z0-9 &/,'.()-]{3,}$/.test(title))
85
+ continue;
86
+ if (!map.has(fields[i]))
87
+ map.set(fields[i], title);
88
+ }
89
+ }
90
+ return map;
91
+ }
92
+ /** How many index-shaped rows a page must print before it counts as a DRAWING INDEX page — a
93
+ * LIST of other sheets rather than one sheet's own title block. A normal title block can print
94
+ * "A-221 INTERIOR ELEVATIONS" as a single adjacent pair; a list is three or more. */
95
+ const INDEX_PAGE_MIN_ROWS = 3;
96
+ /**
97
+ * The sheet numbers a page prints as INDEX ROWS — i.e. the OTHER sheets it is listing, never
98
+ * its own identity. Empty unless the page prints a genuine list, so an ordinary title block is
99
+ * not mistaken for a one-row index of itself.
100
+ */
101
+ function listedSheetNumbers(text) {
102
+ const rows = parseDrawingIndex((text || '').toUpperCase());
103
+ return rows.size >= INDEX_PAGE_MIN_ROWS ? new Set(rows.keys()) : new Set();
104
+ }
105
+ /**
106
+ * THIS page's own title-block sheet number.
107
+ *
108
+ * The title block is the bottom-right corner id, so in `-layout` text it is the LAST
109
+ * sheet-number token in reading order — read with the SAME column model `parseDrawingIndex`
110
+ * uses, and subject to two structural exclusions, both of which name a DIFFERENT sheet:
111
+ *
112
+ * - The number must BE a whole ≥2-space-delimited column field (bare, or behind a
113
+ * "SHEET NO." label anchored at the field start), not sit inside one. A title block prints
114
+ * its id in its own cell; a reference to another sheet is USUALLY embedded in surrounding
115
+ * text — a prose note ("…REFERENCING sheets A-221, A-223"), an instruction ("SEE A-101 FOR
116
+ * DEMOLITION SCOPE"), a prose detail callout ("SEE DETAIL 3/A-521").
117
+ *
118
+ * This exclusion is NOT sufficient on its own, and the difference matters. A detail callout
119
+ * BUBBLE — the commonest annotation on an architectural sheet — extracts under
120
+ * `pdftotext -layout` as the detail no. stacked over the sheet no., EACH ALONE IN ITS OWN
121
+ * CELL. It is structurally indistinguishable from a title-block id, so "keep the last
122
+ * standalone field" silently returned the CALLOUT's target and, through it, that sheet's
123
+ * canonical index title — the exact wrong-sheet harm this function exists to prevent.
124
+ * Hence the ambiguity rule below.
125
+ * - A row of a drawing index this page itself prints (cover / index sheets) lists OTHER
126
+ * sheets, never this one.
127
+ *
128
+ * It is NEVER borrowed from the set's drawing index. Membership in that index proves only that
129
+ * SOME sheet carries the number, not that this page is that sheet — the previous
130
+ * cross-validation walked tokens from the end and returned the first index MEMBER, which
131
+ * stamped the index page itself (and every sheet whose own number the index omitted) with the
132
+ * last indexed sheet's number, and through it that sheet's canonical title.
133
+ *
134
+ * When this page's own number cannot be read, return '' — an honest blank the agent can see
135
+ * beats a confident wrong sheet. There is deliberately no most-frequent-token fallback: the
136
+ * most frequent id-shaped token on a sheet is routinely an equipment tag or a spec reference.
137
+ */
138
+ export function titleBlockSheetNumber(text) {
139
+ const upper = (text || '').toUpperCase();
140
+ const listed = listedSheetNumbers(upper);
141
+ const candidates = new Set();
142
+ for (const line of upper.split('\n')) {
143
+ for (const field of line.split(/\s{2,}/)) {
144
+ const token = fieldSheetNumber(field); // '' when embedded in text → another sheet
145
+ if (!token)
146
+ continue;
147
+ if (listed.has(token))
148
+ continue; // a row of the index THIS page prints
149
+ candidates.add(token);
150
+ }
151
+ }
152
+ // AMBIGUITY IS A BLANK, NOT A GUESS. A page prints its OWN id in the title block; if two or
153
+ // more DIFFERENT standalone ids survive, at least one of them names another sheet (a callout
154
+ // bubble, a short "REFERENCE DRAWINGS" table too small to read as an index) and nothing in
155
+ // the text layer says which. Picking one — the previous "last in reading order" — is a coin
156
+ // flip that, when it loses, hands the model a different sheet's number AND that sheet's
157
+ // canonical title. A blank is visibly unknown; a wrong sheet is invisibly wrong.
158
+ // The same id repeated (title block header + footer) is not ambiguity — hence the Set.
159
+ if (candidates.size !== 1)
160
+ return '';
161
+ return [...candidates][0] ?? '';
162
+ }
163
+ /** LEGACY keyword title guess — the one trade-flavoured thing left in this module. Used only
164
+ * for a page the set's drawing index does not list, and only to put SOMETHING readable in
165
+ * front of the model; it never decides relevance. Prefer the index title whenever it exists. */
166
+ export function detectSheetTitle(text) {
167
+ const t = text.toUpperCase();
168
+ for (const title of TITLE_KEYWORDS)
169
+ if (t.includes(title))
170
+ return title;
171
+ return '';
172
+ }
173
+ /** A "word": a run of 3+ letters. Domain- and language-neutral — a legible Latin-alphabet page
174
+ * carries them whatever trade drew it; a Caesar-shifted CAD font maps letters onto punctuation,
175
+ * so a broken text layer carries none. */
176
+ const WORD_RUN_RE = /[A-Za-z]{3,}/g;
177
+ /** Three independent 3-letter runs is far beyond chance at the 0.00–0.01 letter ratio a
178
+ * shifted-font layer scores, and is present on any legible page — including a letter-POOR one
179
+ * (a bar list, a bill of quantities, a numeric table) whose column headers are its only prose. */
180
+ const MIN_WORDS_FOR_LEGIBLE = 3;
181
+ /** Below this letter ratio a page is too letter-poor to judge by prose alone (garbled sheets
182
+ * score 0.00–0.01; legible architectural pages 0.51–0.94). */
183
+ const LETTER_POOR_RATIO = 0.35;
184
+ /**
185
+ * True when a page's text layer is GARBLED — a custom font encoding pdftotext can't decode
186
+ * (e.g. a Caesar-shifted CAD font extracts "DEMOLITION" as "'(02/,7,21").
187
+ *
188
+ * Two independent, DOMAIN-NEUTRAL tests must both fire: the page is letter-poor, AND no words
189
+ * survive it. The second test used to be "zero hits against an ARCHITECTURE keyword list",
190
+ * which condemned any legible document that simply isn't architectural — a rebar bar list, a
191
+ * bill of quantities, a numeric schedule — inside a package that must serve every trade. What
192
+ * actually separates a broken layer from a letter-poor legible one is not WHICH words appear
193
+ * (a domain judgment, and the model's job) but WHETHER ANY word appears at all.
194
+ *
195
+ * Mostly-graphic sheets (little text) are NOT garbled — they just have few characters.
196
+ */
197
+ export function textLooksGarbled(text) {
198
+ const nonSpace = (text || '').replace(/\s+/g, '');
199
+ if (nonSpace.length < 200)
200
+ return false;
201
+ const letters = (nonSpace.match(/[A-Za-z]/g) || []).length;
202
+ if (letters / nonSpace.length >= LETTER_POOR_RATIO)
203
+ return false;
204
+ const words = ((text || '').match(WORD_RUN_RE) || []).length;
205
+ return words < MIN_WORDS_FOR_LEGIBLE;
206
+ }
207
+ /**
208
+ * Build the structural outline from the rasterizer's raw per-page text. Trade-neutral: emits
209
+ * number + title + garbled per sheet. The cover drawing index (first few sheets) supplies the
210
+ * canonical title for the sheets it lists; each page's NUMBER is read from that page's own
211
+ * title block. NO relevance flag — the consuming surface's prompt + the model decide which
212
+ * sheets a given takeoff needs.
213
+ */
214
+ export function buildOutlineFromPages(raw) {
215
+ const { pageCount, pageWidthIn, pageHeightIn, pages } = raw;
216
+ const drawingIndex = parseDrawingIndex(pages.slice(0, 5).map((p) => p.text).join('\n'));
217
+ const sheets = [];
218
+ let garbledCount = 0;
219
+ for (const { page, text } of pages) {
220
+ if (!text || !text.trim())
221
+ continue;
222
+ if (pageCount > 0 && page > pageCount)
223
+ break;
224
+ if (textLooksGarbled(text)) {
225
+ garbledCount += 1;
226
+ sheets.push({ page, number: '', title: '', garbled: true });
227
+ continue;
228
+ }
229
+ const number = titleBlockSheetNumber(text);
230
+ // Canonical index title when the index lists THIS page's own number; otherwise the
231
+ // keyword guess — decided PER PAGE. Gating that fallback on whether the SET as a whole
232
+ // had a parseable index blanked the title of every sheet a partially-parsed index
233
+ // happened to miss (mechanical/plumbing/continuation sheets), titles the container on
234
+ // main always produced.
235
+ //
236
+ // The single page a keyword scan cannot speak for is a page that PRINTS the index: it
237
+ // carries every OTHER sheet's title, so a keyword hit there would be one more borrowed
238
+ // identity. That page gets '' unless the index names its own number.
239
+ const canonical = number ? drawingIndex.get(number) : undefined;
240
+ const title = canonical ?? (listedSheetNumbers(text).size > 0 ? '' : detectSheetTitle(text));
241
+ sheets.push({ page, number, title });
242
+ }
243
+ const textLayerReliable = sheets.length === 0 ? true : garbledCount / sheets.length < 0.5;
244
+ return { pageCount, pageWidthIn, pageHeightIn, sheets, textLayerReliable };
245
+ }
246
+ //# sourceMappingURL=parse-outline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-outline.js","sourceRoot":"","sources":["../../../src/documents/outline/parse-outline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAyCH;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA,sDAAsD,CAAC;AACzF,MAAM,iBAAiB,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,eAAe,GAAG,CAAC,CAAC;AAEvE;;;iBAGiB;AACjB,MAAM,oBAAoB,GAAG,IAAI,MAAM,CACtC,MAAM,CAAC,GAAG,CAAA,2DAA2D,eAAe,IAAI,CACxF,CAAC;AAEF;8EAC8E;AAC9E,SAAS,gBAAgB,CAAC,KAAa;IACtC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC3B,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAChD,OAAO,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC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gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7F,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IACD,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;IAC1F,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;AAC5E,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const documentsPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export default documentsPlugin;
3
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/documents/plugin.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,6CAM1B,CAAC;AACH,eAAe,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** Compatible full document composition. Use cloud.plugin or universal.plugin in portable hosts. */
2
+ import { createRuntimePlugin } from '@vibesdotdev/kernel';
3
+ import documentsCloudPlugin from "./documents.cloud.plugin.js";
4
+ import documentsConsumerPlugin from "./documents.consumer.plugin.js";
5
+ export const documentsPlugin = createRuntimePlugin({
6
+ id: 'documents.compatible',
7
+ async onRegister(runtime) {
8
+ await runtime.registerPlugin(documentsCloudPlugin);
9
+ await runtime.registerPlugin(documentsConsumerPlugin);
10
+ }
11
+ });
12
+ export default documentsPlugin;
13
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/documents/plugin.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,uBAAuB,MAAM,gCAAgC,CAAC;AAErE,MAAM,CAAC,MAAM,eAAe,GAAG,mBAAmB,CAAC;IAClD,EAAE,EAAE,sBAAsB;IAC1B,KAAK,CAAC,UAAU,CAAC,OAAO;QACvB,MAAM,OAAO,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QACnD,MAAM,OAAO,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAC;IACvD,CAAC;CACD,CAAC,CAAC;AACH,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './presentations.directory.kind.ts';
2
+ export * from './presentations.surface.kind.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/documents/presentations/capabilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./presentations.directory.kind.js";
2
+ export * from "./presentations.surface.kind.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/documents/presentations/capabilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,333 @@
1
+ import { type KindContext, type RuntimeDescriptor } from '@vibesdotdev/kernel';
2
+ import { type CreatePresentationRequestInput, type WithdrawPresentationRequestInput } from '../schemas/index.ts';
3
+ import type { PresentationsDirectoryCapability } from './presentations.directory.kind.ts';
4
+ export default class ConsumerPresentationsDirectoryCapability implements PresentationsDirectoryCapability {
5
+ private readonly runtime;
6
+ constructor(_descriptor: RuntimeDescriptor, context: KindContext);
7
+ listSurfaces(input?: {
8
+ owner?: {
9
+ type: "user";
10
+ id: string;
11
+ } | {
12
+ type: "organization";
13
+ id: string;
14
+ } | undefined;
15
+ requires?: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[] | undefined;
16
+ includeBusy?: boolean | undefined;
17
+ }): Promise<{
18
+ id: string;
19
+ capabilities: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[];
20
+ label: string;
21
+ state: {
22
+ visibility: "unknown" | "background" | "foreground";
23
+ engagement: "unknown" | "active" | "idle";
24
+ availability: "available" | "busy" | "ask" | "do-not-disturb";
25
+ presentation: "idle" | "presenting";
26
+ };
27
+ client: string;
28
+ formFactor: "browser" | "desktop" | "tablet" | "phone" | "display";
29
+ }[]>;
30
+ createRequest(input: CreatePresentationRequestInput): Promise<{
31
+ id: string;
32
+ requester: {
33
+ id: string;
34
+ type: "agent";
35
+ roles?: string[] | undefined;
36
+ displayName?: string | undefined;
37
+ };
38
+ owner: {
39
+ type: "user";
40
+ id: string;
41
+ } | {
42
+ type: "organization";
43
+ id: string;
44
+ };
45
+ sessionId: string;
46
+ preferredSurfaceId: string | null;
47
+ selectedSurfaceId: string | null;
48
+ target: {
49
+ view: "session" | "artifact" | "image-review" | "code-review" | "plan-review";
50
+ link: {
51
+ kind: string;
52
+ id: string;
53
+ source: string;
54
+ role: string;
55
+ };
56
+ title?: string | undefined;
57
+ revision?: string | undefined;
58
+ anchor?: {
59
+ kind: "region";
60
+ rect: {
61
+ x: number;
62
+ y: number;
63
+ width: number;
64
+ height: number;
65
+ };
66
+ } | {
67
+ kind: "code";
68
+ path: string;
69
+ startLine: number;
70
+ endLine: number;
71
+ } | {
72
+ kind: "plan-node";
73
+ nodeId: string;
74
+ } | {
75
+ kind: "fragment";
76
+ id: string;
77
+ } | undefined;
78
+ };
79
+ message: string;
80
+ requestedCapabilities: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[];
81
+ urgency: "high" | "normal";
82
+ status: "failed" | "pending" | "completed" | "accepted" | "presenting" | "declined" | "expired" | "withdrawn";
83
+ revision: number;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ expiresAt: string;
87
+ respondedAt: string | null;
88
+ presentingAt: string | null;
89
+ completedAt: string | null;
90
+ note: string | null;
91
+ }>;
92
+ getRequest(requestId: string): Promise<{
93
+ id: string;
94
+ requester: {
95
+ id: string;
96
+ type: "agent";
97
+ roles?: string[] | undefined;
98
+ displayName?: string | undefined;
99
+ };
100
+ owner: {
101
+ type: "user";
102
+ id: string;
103
+ } | {
104
+ type: "organization";
105
+ id: string;
106
+ };
107
+ sessionId: string;
108
+ preferredSurfaceId: string | null;
109
+ selectedSurfaceId: string | null;
110
+ target: {
111
+ view: "session" | "artifact" | "image-review" | "code-review" | "plan-review";
112
+ link: {
113
+ kind: string;
114
+ id: string;
115
+ source: string;
116
+ role: string;
117
+ };
118
+ title?: string | undefined;
119
+ revision?: string | undefined;
120
+ anchor?: {
121
+ kind: "region";
122
+ rect: {
123
+ x: number;
124
+ y: number;
125
+ width: number;
126
+ height: number;
127
+ };
128
+ } | {
129
+ kind: "code";
130
+ path: string;
131
+ startLine: number;
132
+ endLine: number;
133
+ } | {
134
+ kind: "plan-node";
135
+ nodeId: string;
136
+ } | {
137
+ kind: "fragment";
138
+ id: string;
139
+ } | undefined;
140
+ };
141
+ message: string;
142
+ requestedCapabilities: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[];
143
+ urgency: "high" | "normal";
144
+ status: "failed" | "pending" | "completed" | "accepted" | "presenting" | "declined" | "expired" | "withdrawn";
145
+ revision: number;
146
+ createdAt: string;
147
+ updatedAt: string;
148
+ expiresAt: string;
149
+ respondedAt: string | null;
150
+ presentingAt: string | null;
151
+ completedAt: string | null;
152
+ note: string | null;
153
+ } | null>;
154
+ listRequests(input?: {
155
+ limit: number;
156
+ status?: ("failed" | "pending" | "completed" | "accepted" | "presenting" | "declined" | "expired" | "withdrawn")[] | undefined;
157
+ surfaceId?: string | undefined;
158
+ }): Promise<{
159
+ id: string;
160
+ requester: {
161
+ id: string;
162
+ type: "agent";
163
+ roles?: string[] | undefined;
164
+ displayName?: string | undefined;
165
+ };
166
+ owner: {
167
+ type: "user";
168
+ id: string;
169
+ } | {
170
+ type: "organization";
171
+ id: string;
172
+ };
173
+ sessionId: string;
174
+ preferredSurfaceId: string | null;
175
+ selectedSurfaceId: string | null;
176
+ target: {
177
+ view: "session" | "artifact" | "image-review" | "code-review" | "plan-review";
178
+ link: {
179
+ kind: string;
180
+ id: string;
181
+ source: string;
182
+ role: string;
183
+ };
184
+ title?: string | undefined;
185
+ revision?: string | undefined;
186
+ anchor?: {
187
+ kind: "region";
188
+ rect: {
189
+ x: number;
190
+ y: number;
191
+ width: number;
192
+ height: number;
193
+ };
194
+ } | {
195
+ kind: "code";
196
+ path: string;
197
+ startLine: number;
198
+ endLine: number;
199
+ } | {
200
+ kind: "plan-node";
201
+ nodeId: string;
202
+ } | {
203
+ kind: "fragment";
204
+ id: string;
205
+ } | undefined;
206
+ };
207
+ message: string;
208
+ requestedCapabilities: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[];
209
+ urgency: "high" | "normal";
210
+ status: "failed" | "pending" | "completed" | "accepted" | "presenting" | "declined" | "expired" | "withdrawn";
211
+ revision: number;
212
+ createdAt: string;
213
+ updatedAt: string;
214
+ expiresAt: string;
215
+ respondedAt: string | null;
216
+ presentingAt: string | null;
217
+ completedAt: string | null;
218
+ note: string | null;
219
+ }[]>;
220
+ withdrawRequest(input: WithdrawPresentationRequestInput): Promise<{
221
+ id: string;
222
+ requester: {
223
+ id: string;
224
+ type: "agent";
225
+ roles?: string[] | undefined;
226
+ displayName?: string | undefined;
227
+ };
228
+ owner: {
229
+ type: "user";
230
+ id: string;
231
+ } | {
232
+ type: "organization";
233
+ id: string;
234
+ };
235
+ sessionId: string;
236
+ preferredSurfaceId: string | null;
237
+ selectedSurfaceId: string | null;
238
+ target: {
239
+ view: "session" | "artifact" | "image-review" | "code-review" | "plan-review";
240
+ link: {
241
+ kind: string;
242
+ id: string;
243
+ source: string;
244
+ role: string;
245
+ };
246
+ title?: string | undefined;
247
+ revision?: string | undefined;
248
+ anchor?: {
249
+ kind: "region";
250
+ rect: {
251
+ x: number;
252
+ y: number;
253
+ width: number;
254
+ height: number;
255
+ };
256
+ } | {
257
+ kind: "code";
258
+ path: string;
259
+ startLine: number;
260
+ endLine: number;
261
+ } | {
262
+ kind: "plan-node";
263
+ nodeId: string;
264
+ } | {
265
+ kind: "fragment";
266
+ id: string;
267
+ } | undefined;
268
+ };
269
+ message: string;
270
+ requestedCapabilities: ("present.session" | "present.artifact" | "present.image" | "present.code" | "present.plan" | "input.pointer" | "input.touch" | "input.ink" | "input.keyboard" | "input.voice" | "review.comment" | "review.annotation" | "review.steering")[];
271
+ urgency: "high" | "normal";
272
+ status: "failed" | "pending" | "completed" | "accepted" | "presenting" | "declined" | "expired" | "withdrawn";
273
+ revision: number;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ expiresAt: string;
277
+ respondedAt: string | null;
278
+ presentingAt: string | null;
279
+ completedAt: string | null;
280
+ note: string | null;
281
+ }>;
282
+ listReviews(requestId: string): Promise<{
283
+ id: string;
284
+ requestId: string;
285
+ surfaceId: string;
286
+ submitter: {
287
+ type: "agent" | "user" | "service" | "operator";
288
+ id: string;
289
+ roles?: string[] | undefined;
290
+ };
291
+ accessGrantId: string | null;
292
+ targetRevision: string | null;
293
+ audience: "owner-only" | "request-participants";
294
+ items: ({
295
+ kind: "code-note";
296
+ path: string;
297
+ startLine: number;
298
+ endLine: number;
299
+ text: string;
300
+ } | {
301
+ kind: "comment";
302
+ text: string;
303
+ } | {
304
+ kind: "steering";
305
+ text: string;
306
+ } | {
307
+ kind: "region-note";
308
+ rect: {
309
+ x: number;
310
+ y: number;
311
+ width: number;
312
+ height: number;
313
+ };
314
+ text: string;
315
+ } | {
316
+ kind: "ink-stroke";
317
+ points: {
318
+ x: number;
319
+ y: number;
320
+ pressure?: number | undefined;
321
+ }[];
322
+ color: string;
323
+ width: number;
324
+ } | {
325
+ kind: "plan-note";
326
+ nodeId: string;
327
+ text: string;
328
+ })[];
329
+ createdAt: string;
330
+ }[]>;
331
+ private request;
332
+ }
333
+ //# sourceMappingURL=presentations.directory.impl.consumer.worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.directory.impl.consumer.worker.d.ts","sourceRoot":"","sources":["../../../../src/documents/presentations/capabilities/presentations.directory.impl.consumer.worker.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAmB,MAAM,qBAAqB,CAAC;AAGjH,OAAO,EAQN,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAmC1F,MAAM,CAAC,OAAO,OAAO,wCAAyC,YAAW,gCAAgC;IACxG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;gBAEzB,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,WAAW;IAW1D,YAAY,CAAC,KAAK;;;;;;;;;;KAAgD;;;;;;;;;;;;;IAelE,aAAa,CAAC,KAAK,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUnD,UAAU,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO5B,YAAY,CAAC,KAAK;;;;KAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUlE,eAAe,CAAC,KAAK,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkBvD,WAAW,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQrB,OAAO;CA4BrB"}