@yaks/platform 0.0.0-stage → 0.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1213) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +261 -2
  3. package/_client-blobs.js +7 -0
  4. package/_client-error.js +70 -0
  5. package/_client-modal.js +3 -0
  6. package/_client-replica.js +5 -0
  7. package/_client-review.js +1 -0
  8. package/_client-schema.js +1 -0
  9. package/_client-vault.js +31 -0
  10. package/_edit-query.js +1 -0
  11. package/_uploads.js +4 -0
  12. package/account-browser.js +67 -0
  13. package/account-browser.js.map +1 -0
  14. package/account-browser.ts +87 -0
  15. package/account-rows.js +130 -0
  16. package/account-rows.js.map +1 -0
  17. package/account-rows.ts +237 -0
  18. package/admin-visits-view.js +65 -0
  19. package/admin-visits-view.js.map +1 -0
  20. package/admin-visits-view.ts +120 -0
  21. package/admin-visits.js +143 -0
  22. package/admin-visits.js.map +1 -0
  23. package/admin-visits.ts +211 -0
  24. package/admit-graph.js +8 -0
  25. package/admit-graph.js.map +1 -0
  26. package/admit-graph.ts +10 -0
  27. package/agent-guide.js +368 -0
  28. package/agent-guide.js.map +1 -0
  29. package/agent-guide.ts +450 -0
  30. package/agents-browser.js +143 -0
  31. package/agents-browser.js.map +1 -0
  32. package/agents-browser.ts +141 -0
  33. package/agents-view.js +129 -0
  34. package/agents-view.js.map +1 -0
  35. package/agents-view.ts +236 -0
  36. package/agents.js +148 -0
  37. package/agents.js.map +1 -0
  38. package/agents.ts +150 -0
  39. package/app-actions.js +56 -0
  40. package/app-actions.js.map +1 -0
  41. package/app-actions.ts +61 -0
  42. package/app-authority.js +280 -0
  43. package/app-authority.js.map +1 -0
  44. package/app-authority.ts +356 -0
  45. package/app-canvas-browser.js +308 -0
  46. package/app-canvas-browser.js.map +1 -0
  47. package/app-canvas-browser.ts +377 -0
  48. package/app-canvas-view.js +244 -0
  49. package/app-canvas-view.js.map +1 -0
  50. package/app-canvas-view.ts +399 -0
  51. package/app-canvas.js +87 -0
  52. package/app-canvas.js.map +1 -0
  53. package/app-canvas.ts +170 -0
  54. package/app-client.js +521 -0
  55. package/app-client.js.map +1 -0
  56. package/app-client.ts +562 -0
  57. package/app-command.js +108 -0
  58. package/app-command.js.map +1 -0
  59. package/app-command.ts +155 -0
  60. package/app-commands.js +334 -0
  61. package/app-commands.js.map +1 -0
  62. package/app-commands.ts +379 -0
  63. package/app-decision.js +69 -0
  64. package/app-decision.js.map +1 -0
  65. package/app-decision.ts +61 -0
  66. package/app-effects.js +43 -0
  67. package/app-effects.js.map +1 -0
  68. package/app-effects.ts +53 -0
  69. package/app-file.js +252 -0
  70. package/app-file.js.map +1 -0
  71. package/app-file.ts +362 -0
  72. package/app-friends.js +60 -0
  73. package/app-friends.js.map +1 -0
  74. package/app-friends.ts +81 -0
  75. package/app-graph.js +9 -0
  76. package/app-graph.js.map +1 -0
  77. package/app-graph.ts +9 -0
  78. package/app-icon.js +59 -0
  79. package/app-icon.js.map +1 -0
  80. package/app-icon.ts +121 -0
  81. package/app-made.js +164 -0
  82. package/app-made.js.map +1 -0
  83. package/app-made.ts +306 -0
  84. package/app-outbound.js +72 -0
  85. package/app-outbound.js.map +1 -0
  86. package/app-outbound.ts +109 -0
  87. package/app-outbox.js +42 -0
  88. package/app-outbox.js.map +1 -0
  89. package/app-outbox.ts +46 -0
  90. package/app-patch.js +75 -0
  91. package/app-patch.js.map +1 -0
  92. package/app-patch.ts +106 -0
  93. package/app-read.js +101 -0
  94. package/app-read.js.map +1 -0
  95. package/app-read.ts +126 -0
  96. package/app-role-tools.js +232 -0
  97. package/app-role-tools.js.map +1 -0
  98. package/app-role-tools.ts +258 -0
  99. package/app-roles.js +91 -0
  100. package/app-roles.js.map +1 -0
  101. package/app-roles.ts +76 -0
  102. package/app-session-access.js +109 -0
  103. package/app-session-access.js.map +1 -0
  104. package/app-session-access.ts +145 -0
  105. package/app-starter.js +109 -0
  106. package/app-starter.js.map +1 -0
  107. package/app-starter.ts +123 -0
  108. package/app-storage.js +38 -0
  109. package/app-storage.js.map +1 -0
  110. package/app-storage.ts +54 -0
  111. package/app-style-guide.js +138 -0
  112. package/app-style-guide.js.map +1 -0
  113. package/app-style-guide.ts +195 -0
  114. package/app-subs.js +89 -0
  115. package/app-subs.js.map +1 -0
  116. package/app-subs.ts +110 -0
  117. package/app-tests.js +54 -0
  118. package/app-tests.js.map +1 -0
  119. package/app-tests.ts +56 -0
  120. package/app-tile.js +209 -0
  121. package/app-tile.js.map +1 -0
  122. package/app-tile.ts +227 -0
  123. package/app-transfer.js +188 -0
  124. package/app-transfer.js.map +1 -0
  125. package/app-transfer.ts +281 -0
  126. package/app-vocab.js +52 -0
  127. package/app-vocab.js.map +1 -0
  128. package/app-vocab.ts +43 -0
  129. package/app-words.js +55 -0
  130. package/app-words.js.map +1 -0
  131. package/app-words.ts +73 -0
  132. package/app-worker.js +28 -0
  133. package/app-worker.js.map +1 -0
  134. package/app-worker.ts +38 -0
  135. package/app-writes.js +132 -0
  136. package/app-writes.js.map +1 -0
  137. package/app-writes.ts +128 -0
  138. package/asset-bytes.js +57 -0
  139. package/asset-bytes.js.map +1 -0
  140. package/asset-bytes.ts +90 -0
  141. package/asset-response.js +28 -0
  142. package/asset-response.js.map +1 -0
  143. package/asset-response.ts +46 -0
  144. package/asset-url.js +556 -0
  145. package/asset-url.js.map +1 -0
  146. package/asset-url.ts +774 -0
  147. package/attribution-vocab.js +14 -0
  148. package/attribution-vocab.js.map +1 -0
  149. package/attribution-vocab.ts +11 -0
  150. package/authorship-graph.js +8 -0
  151. package/authorship-graph.js.map +1 -0
  152. package/authorship-graph.ts +10 -0
  153. package/badge.js +98 -0
  154. package/blob-images.js +206 -0
  155. package/blob-images.js.map +1 -0
  156. package/blob-images.ts +323 -0
  157. package/blob-posters.js +125 -0
  158. package/blob-posters.js.map +1 -0
  159. package/blob-posters.ts +207 -0
  160. package/blob-routes.js +14 -0
  161. package/blob-routes.js.map +1 -0
  162. package/blob-routes.ts +25 -0
  163. package/bots.js +77 -0
  164. package/bots.js.map +1 -0
  165. package/bots.ts +93 -0
  166. package/browser-mockup.js +81 -0
  167. package/browser-mockup.js.map +1 -0
  168. package/browser-mockup.ts +105 -0
  169. package/browser-record.js +55 -0
  170. package/browser-record.js.map +1 -0
  171. package/browser-record.ts +66 -0
  172. package/browser-scroll.js +90 -0
  173. package/browser-scroll.js.map +1 -0
  174. package/browser-scroll.ts +108 -0
  175. package/browser-stream.js +79 -0
  176. package/browser-stream.js.map +1 -0
  177. package/browser-stream.ts +84 -0
  178. package/browser-trace.js +252 -0
  179. package/browser-trace.js.map +1 -0
  180. package/browser-trace.ts +330 -0
  181. package/browser-viewer.js +236 -0
  182. package/browser-viewer.js.map +1 -0
  183. package/browser-viewer.ts +233 -0
  184. package/browser-visit.js +1522 -0
  185. package/browser-visit.js.map +1 -0
  186. package/browser-visit.ts +2179 -0
  187. package/browser-wire.js +242 -0
  188. package/browser-wire.js.map +1 -0
  189. package/browser-wire.ts +262 -0
  190. package/budget.js +17 -0
  191. package/budget.js.map +1 -0
  192. package/budget.ts +42 -0
  193. package/cli.js +52 -0
  194. package/cli.js.map +1 -0
  195. package/cli.ts +55 -0
  196. package/client-modules.js +24 -0
  197. package/client-modules.js.map +1 -0
  198. package/client-modules.ts +24 -0
  199. package/client-routes.js +83 -0
  200. package/client-routes.js.map +1 -0
  201. package/client-routes.ts +104 -0
  202. package/client-words.js +62 -0
  203. package/client-words.js.map +1 -0
  204. package/client-words.ts +77 -0
  205. package/client.js +709 -0
  206. package/comp.js +2 -0
  207. package/comp.js.map +1 -0
  208. package/comp.ts +15 -0
  209. package/config.js +497 -0
  210. package/config.js.map +1 -0
  211. package/config.ts +287 -0
  212. package/connect-parts.js +107 -0
  213. package/connect-parts.js.map +1 -0
  214. package/connect-parts.ts +165 -0
  215. package/connected-activity-browser.js +301 -0
  216. package/connected-activity-browser.js.map +1 -0
  217. package/connected-activity-browser.ts +341 -0
  218. package/connected-activity-view.js +55 -0
  219. package/connected-activity-view.js.map +1 -0
  220. package/connected-activity-view.ts +81 -0
  221. package/connected-activity-wire.js +165 -0
  222. package/connected-activity-wire.js.map +1 -0
  223. package/connected-activity-wire.ts +171 -0
  224. package/connected-activity.css +156 -0
  225. package/connected-activity.js +185 -0
  226. package/connected-activity.js.map +1 -0
  227. package/connected-activity.ts +278 -0
  228. package/connection-icon-browser.js +50 -0
  229. package/connection-icon-browser.js.map +1 -0
  230. package/connection-icon-browser.ts +52 -0
  231. package/connections-browser.js +393 -0
  232. package/connections-browser.js.map +1 -0
  233. package/connections-browser.ts +465 -0
  234. package/connections-page.js +178 -0
  235. package/connections-page.js.map +1 -0
  236. package/connections-page.ts +461 -0
  237. package/connections-view.js +1215 -0
  238. package/connections-view.js.map +1 -0
  239. package/connections-view.ts +2239 -0
  240. package/connector-upload.js +94 -0
  241. package/connector-upload.js.map +1 -0
  242. package/connector-upload.ts +146 -0
  243. package/consent.js +2 -0
  244. package/consent.js.map +1 -0
  245. package/consent.ts +3 -0
  246. package/cookie.js +53 -0
  247. package/cookie.js.map +1 -0
  248. package/cookie.ts +75 -0
  249. package/copy.js +104 -0
  250. package/corner.js +226 -0
  251. package/credential-draft-move.js +154 -0
  252. package/credential-draft-move.js.map +1 -0
  253. package/credential-draft-move.ts +197 -0
  254. package/credential-draft-place.js +2 -0
  255. package/credential-draft-place.js.map +1 -0
  256. package/credential-draft-place.ts +4 -0
  257. package/credential-drafts.js +66 -0
  258. package/credential-drafts.js.map +1 -0
  259. package/credential-drafts.ts +93 -0
  260. package/dashboard-browser.js +149 -0
  261. package/dashboard-browser.js.map +1 -0
  262. package/dashboard-browser.ts +184 -0
  263. package/dashboard-view.js +293 -0
  264. package/dashboard-view.js.map +1 -0
  265. package/dashboard-view.ts +423 -0
  266. package/dashboard.js +268 -0
  267. package/dashboard.js.map +1 -0
  268. package/dashboard.ts +436 -0
  269. package/deno.json +1 -0
  270. package/describe-graph.js +8 -0
  271. package/describe-graph.js.map +1 -0
  272. package/describe-graph.ts +7 -0
  273. package/directory-derived.js +142 -0
  274. package/directory-derived.js.map +1 -0
  275. package/directory-derived.ts +198 -0
  276. package/directory-index-move.js +77 -0
  277. package/directory-index-move.js.map +1 -0
  278. package/directory-index-move.ts +59 -0
  279. package/directory-index.js +382 -0
  280. package/directory-index.js.map +1 -0
  281. package/directory-index.ts +550 -0
  282. package/directory-pages.js +41 -0
  283. package/directory-pages.js.map +1 -0
  284. package/directory-pages.ts +71 -0
  285. package/directory-route.js +129 -0
  286. package/directory-route.js.map +1 -0
  287. package/directory-route.ts +189 -0
  288. package/directory-vocab.js +58 -0
  289. package/directory-vocab.js.map +1 -0
  290. package/directory-vocab.ts +46 -0
  291. package/document-graph.js +86 -0
  292. package/document-graph.js.map +1 -0
  293. package/document-graph.ts +93 -0
  294. package/document-ocr.js +146 -0
  295. package/document-ocr.js.map +1 -0
  296. package/document-ocr.ts +204 -0
  297. package/documents.js +50 -0
  298. package/documents.js.map +1 -0
  299. package/documents.ts +64 -0
  300. package/domain-pages.js +221 -0
  301. package/domain-pages.js.map +1 -0
  302. package/domain-pages.ts +586 -0
  303. package/domain-settings.js +88 -0
  304. package/domain-settings.js.map +1 -0
  305. package/domain-settings.ts +132 -0
  306. package/domain-transfer.js +138 -0
  307. package/domain-transfer.js.map +1 -0
  308. package/domain-transfer.ts +190 -0
  309. package/donation-loans.js +176 -0
  310. package/donation-loans.js.map +1 -0
  311. package/donation-loans.ts +271 -0
  312. package/draft-choice.js +136 -0
  313. package/draft-choice.js.map +1 -0
  314. package/draft-choice.ts +310 -0
  315. package/drawing.js +27 -0
  316. package/drawing.js.map +1 -0
  317. package/drawing.ts +40 -0
  318. package/early-report.js +18 -0
  319. package/early-report.js.map +1 -0
  320. package/early-report.ts +31 -0
  321. package/edit-client-path.js +2 -0
  322. package/edit-client-path.js.map +1 -0
  323. package/edit-client-path.ts +1 -0
  324. package/edit-mode.js +920 -0
  325. package/edit-mode.js.map +1 -0
  326. package/edit-mode.ts +1003 -0
  327. package/edit-sync.js +61 -0
  328. package/edit-sync.js.map +1 -0
  329. package/edit-sync.ts +83 -0
  330. package/edit.js +265 -0
  331. package/embed-graph.js +11 -0
  332. package/embed-graph.js.map +1 -0
  333. package/embed-graph.ts +8 -0
  334. package/embedded-payment.js +211 -0
  335. package/embedded-payment.js.map +1 -0
  336. package/embedded-payment.ts +290 -0
  337. package/entry-actions-browser.js +43 -0
  338. package/entry-actions-browser.js.map +1 -0
  339. package/entry-actions-browser.ts +64 -0
  340. package/entry-actions.js +56 -0
  341. package/entry-actions.js.map +1 -0
  342. package/entry-actions.ts +59 -0
  343. package/escape.js +14 -0
  344. package/escape.js.map +1 -0
  345. package/escape.ts +24 -0
  346. package/face-input.js +6 -0
  347. package/face-input.js.map +1 -0
  348. package/face-input.ts +14 -0
  349. package/facebook.js +370 -0
  350. package/facebook.js.map +1 -0
  351. package/facebook.ts +474 -0
  352. package/facets.js +142 -0
  353. package/facets.js.map +1 -0
  354. package/facets.ts +89 -0
  355. package/fee.js +45 -0
  356. package/fee.js.map +1 -0
  357. package/fee.ts +51 -0
  358. package/fence.js +164 -0
  359. package/fence.js.map +1 -0
  360. package/fence.ts +223 -0
  361. package/file-metadata.js +135 -0
  362. package/file-metadata.js.map +1 -0
  363. package/file-metadata.ts +177 -0
  364. package/file-operation.js +51 -0
  365. package/file-operation.js.map +1 -0
  366. package/file-operation.ts +32 -0
  367. package/file-redirects.js +72 -0
  368. package/file-redirects.js.map +1 -0
  369. package/file-redirects.ts +74 -0
  370. package/file-root.js +8 -0
  371. package/file-root.js.map +1 -0
  372. package/file-root.ts +24 -0
  373. package/files-routes.js +203 -0
  374. package/files-routes.js.map +1 -0
  375. package/files-routes.ts +282 -0
  376. package/files.js +369 -0
  377. package/files.js.map +1 -0
  378. package/files.ts +522 -0
  379. package/fingerprint.js +217 -0
  380. package/fingerprint.js.map +1 -0
  381. package/fingerprint.ts +314 -0
  382. package/firsts.js +335 -0
  383. package/firsts.js.map +1 -0
  384. package/firsts.ts +368 -0
  385. package/friends-at.js +78 -0
  386. package/friends-at.js.map +1 -0
  387. package/friends-at.ts +115 -0
  388. package/friends-browser.js +66 -0
  389. package/friends-browser.js.map +1 -0
  390. package/friends-browser.ts +77 -0
  391. package/friends-dock-browser.js +375 -0
  392. package/friends-dock-browser.js.map +1 -0
  393. package/friends-dock-browser.ts +408 -0
  394. package/friends-dock-view.js +363 -0
  395. package/friends-dock-view.js.map +1 -0
  396. package/friends-dock-view.ts +592 -0
  397. package/friends-view.js +33 -0
  398. package/friends-view.js.map +1 -0
  399. package/friends-view.ts +69 -0
  400. package/friends.js +153 -0
  401. package/friends.js.map +1 -0
  402. package/friends.ts +200 -0
  403. package/fundraising-orders.js +197 -0
  404. package/fundraising-orders.js.map +1 -0
  405. package/fundraising-orders.ts +283 -0
  406. package/fundraising.js +165 -0
  407. package/fundraising.js.map +1 -0
  408. package/fundraising.ts +215 -0
  409. package/funnel.js +141 -0
  410. package/funnel.js.map +1 -0
  411. package/funnel.ts +284 -0
  412. package/gift-savings.js +19 -0
  413. package/gift-savings.js.map +1 -0
  414. package/gift-savings.ts +29 -0
  415. package/git-history.js +331 -0
  416. package/git-history.js.map +1 -0
  417. package/git-history.ts +481 -0
  418. package/giving-browser.js +35 -0
  419. package/giving-browser.js.map +1 -0
  420. package/giving-browser.ts +40 -0
  421. package/giving-pages.js +284 -0
  422. package/giving-pages.js.map +1 -0
  423. package/giving-pages.ts +418 -0
  424. package/giving-view.js +244 -0
  425. package/giving-view.js.map +1 -0
  426. package/giving-view.ts +509 -0
  427. package/giving.js +198 -0
  428. package/giving.js.map +1 -0
  429. package/giving.ts +280 -0
  430. package/gmail-mailbox.js +52 -0
  431. package/gmail-mailbox.js.map +1 -0
  432. package/gmail-mailbox.ts +74 -0
  433. package/graves.js +136 -0
  434. package/graves.js.map +1 -0
  435. package/graves.ts +180 -0
  436. package/hashed.js +499 -0
  437. package/hashed.js.map +1 -0
  438. package/hashed.ts +676 -0
  439. package/home/assets.js +15 -0
  440. package/home/assets.js.map +1 -0
  441. package/home/assets.ts +16 -0
  442. package/home/brands/stripe.svg +12 -0
  443. package/home/brands/zoom.svg +34 -0
  444. package/home/demos.js +413 -0
  445. package/home/demos.js.map +1 -0
  446. package/home/demos.ts +431 -0
  447. package/home/games.js +112 -0
  448. package/home/games.js.map +1 -0
  449. package/home/games.ts +137 -0
  450. package/home/icons.js +41 -0
  451. package/home/icons.js.map +1 -0
  452. package/home/icons.ts +42 -0
  453. package/home/mascot/calculating.webp +0 -0
  454. package/home/mascot/flag.webp +0 -0
  455. package/home/mascot/letter.webp +0 -0
  456. package/home/mascot/plane.webp +0 -0
  457. package/home/mascot/plug.webp +0 -0
  458. package/home/mascot/thinking.webp +0 -0
  459. package/home/mascot/typing.webp +0 -0
  460. package/home/mascot/wave.webp +0 -0
  461. package/home/mod.tsx +517 -0
  462. package/home/parts.js +149 -0
  463. package/home/parts.js.map +1 -0
  464. package/home/parts.ts +45 -0
  465. package/home/phone.tsx +152 -0
  466. package/home/scenes.tsx +212 -0
  467. package/home/sky.js +930 -0
  468. package/home/sky.tsx +479 -0
  469. package/home/story.js +392 -0
  470. package/home/style.css +1304 -0
  471. package/home/words.js +2 -0
  472. package/home/words.js.map +1 -0
  473. package/home/words.ts +8 -0
  474. package/home/yak.js +146 -0
  475. package/home/yak_test.tsx +111 -0
  476. package/home-router.js +30 -0
  477. package/home-router.js.map +1 -0
  478. package/home-router.ts +41 -0
  479. package/host.js +58 -0
  480. package/host.js.map +1 -0
  481. package/host.ts +97 -0
  482. package/hosted-page.js +126 -0
  483. package/hosted-page.js.map +1 -0
  484. package/hosted-page.ts +295 -0
  485. package/install-browser.js +89 -0
  486. package/install-browser.js.map +1 -0
  487. package/install-browser.ts +99 -0
  488. package/install-icons.js +271 -0
  489. package/install-icons.js.map +1 -0
  490. package/install-icons.ts +366 -0
  491. package/installs.js +197 -0
  492. package/installs.js.map +1 -0
  493. package/installs.ts +270 -0
  494. package/instrument.js +50 -0
  495. package/instrument.js.map +1 -0
  496. package/instrument.ts +55 -0
  497. package/integration-icons.js +138 -0
  498. package/integration-icons.js.map +1 -0
  499. package/integration-icons.ts +198 -0
  500. package/interaction-browser.js +95 -0
  501. package/interaction-browser.js.map +1 -0
  502. package/interaction-browser.ts +107 -0
  503. package/interaction-report.js +399 -0
  504. package/interaction-report.js.map +1 -0
  505. package/interaction-report.ts +450 -0
  506. package/interaction.js +273 -0
  507. package/interaction.js.map +1 -0
  508. package/interaction.ts +290 -0
  509. package/invite-browser.js +98 -0
  510. package/invite-browser.js.map +1 -0
  511. package/invite-browser.ts +123 -0
  512. package/invite-view.js +100 -0
  513. package/invite-view.js.map +1 -0
  514. package/invite-view.ts +137 -0
  515. package/kept.js +520 -0
  516. package/kept.js.map +1 -0
  517. package/kept.ts +821 -0
  518. package/kills-graph.js +18 -0
  519. package/kills-graph.js.map +1 -0
  520. package/kills-graph.ts +16 -0
  521. package/ladder.js +418 -0
  522. package/ladder.js.map +1 -0
  523. package/ladder.ts +510 -0
  524. package/lenses-graph.js +24 -0
  525. package/lenses-graph.js.map +1 -0
  526. package/lenses-graph.ts +27 -0
  527. package/lenses.js +197 -0
  528. package/lenses.js.map +1 -0
  529. package/lenses.ts +204 -0
  530. package/lent.js +32 -0
  531. package/lent.js.map +1 -0
  532. package/lent.ts +95 -0
  533. package/letters.js +134 -0
  534. package/letters.js.map +1 -0
  535. package/letters.ts +251 -0
  536. package/lexicon-graph.js +11 -0
  537. package/lexicon-graph.js.map +1 -0
  538. package/lexicon-graph.ts +7 -0
  539. package/link-preview.js +111 -0
  540. package/link-preview.js.map +1 -0
  541. package/link-preview.ts +136 -0
  542. package/listing.js +262 -0
  543. package/listing.js.map +1 -0
  544. package/listing.ts +330 -0
  545. package/local-time.js +32 -0
  546. package/local-time.js.map +1 -0
  547. package/local-time.ts +41 -0
  548. package/located.js +380 -0
  549. package/located.js.map +1 -0
  550. package/located.ts +471 -0
  551. package/log-graph.js +7 -0
  552. package/log-graph.js.map +1 -0
  553. package/log-graph.ts +9 -0
  554. package/lower-graph.js +7 -0
  555. package/lower-graph.js.map +1 -0
  556. package/lower-graph.ts +9 -0
  557. package/mail-request.js +32 -0
  558. package/mail-request.js.map +1 -0
  559. package/mail-request.ts +29 -0
  560. package/mail-senders.js +40 -0
  561. package/mail-senders.js.map +1 -0
  562. package/mail-senders.ts +47 -0
  563. package/managed-browser-pilot.js +151 -0
  564. package/managed-browser-pilot.js.map +1 -0
  565. package/managed-browser-pilot.ts +230 -0
  566. package/managed-browser-sites.js +43 -0
  567. package/managed-browser-sites.js.map +1 -0
  568. package/managed-browser-sites.ts +41 -0
  569. package/managed-browser-wire.js +142 -0
  570. package/managed-browser-wire.js.map +1 -0
  571. package/managed-browser-wire.ts +140 -0
  572. package/managed-browser.js +529 -0
  573. package/managed-browser.js.map +1 -0
  574. package/managed-browser.ts +740 -0
  575. package/manifest.js +425 -0
  576. package/manifest.js.map +1 -0
  577. package/manifest.ts +468 -0
  578. package/metadata-effect.js +61 -0
  579. package/metadata-effect.js.map +1 -0
  580. package/metadata-effect.ts +59 -0
  581. package/meter-graph.js +205 -0
  582. package/meter-graph.js.map +1 -0
  583. package/meter-graph.ts +238 -0
  584. package/meter-vocab.js +8 -0
  585. package/meter-vocab.js.map +1 -0
  586. package/meter-vocab.ts +4 -0
  587. package/meter.js +402 -0
  588. package/meter.js.map +1 -0
  589. package/meter.ts +697 -0
  590. package/mod.js +14 -0
  591. package/mod.js.map +1 -0
  592. package/mod.ts +16 -0
  593. package/models-vocab.js +25 -0
  594. package/models-vocab.js.map +1 -0
  595. package/models-vocab.ts +15 -0
  596. package/monogram.js +32 -0
  597. package/monogram.js.map +1 -0
  598. package/monogram.ts +46 -0
  599. package/mover.js +6 -0
  600. package/mover.js.map +1 -0
  601. package/mover.ts +45 -0
  602. package/named.js +136 -0
  603. package/named.js.map +1 -0
  604. package/named.ts +169 -0
  605. package/names.js +196 -0
  606. package/names.js.map +1 -0
  607. package/names.ts +252 -0
  608. package/notices-vocab.js +20 -0
  609. package/notices-vocab.js.map +1 -0
  610. package/notices-vocab.ts +28 -0
  611. package/numbers.js +85 -0
  612. package/numbers.js.map +1 -0
  613. package/numbers.ts +97 -0
  614. package/object-hosts.js +137 -0
  615. package/object-hosts.js.map +1 -0
  616. package/object-hosts.ts +153 -0
  617. package/open-script.js +235 -0
  618. package/open-script.js.map +1 -0
  619. package/open-script.ts +253 -0
  620. package/opening.js +31 -0
  621. package/opening.js.map +1 -0
  622. package/opening.ts +28 -0
  623. package/operator-activity-view.js +82 -0
  624. package/operator-activity-view.js.map +1 -0
  625. package/operator-activity-view.ts +85 -0
  626. package/operator-activity.js +220 -0
  627. package/operator-activity.js.map +1 -0
  628. package/operator-activity.ts +293 -0
  629. package/operator-brief.js +36 -0
  630. package/operator-brief.js.map +1 -0
  631. package/operator-brief.ts +76 -0
  632. package/operator-copy-browser.js +67 -0
  633. package/operator-copy-browser.js.map +1 -0
  634. package/operator-copy-browser.ts +71 -0
  635. package/operator-corner.js +266 -0
  636. package/operator-corner.js.map +1 -0
  637. package/operator-corner.ts +300 -0
  638. package/operator-decisions.js +19 -0
  639. package/operator-decisions.js.map +1 -0
  640. package/operator-decisions.ts +18 -0
  641. package/operator-docs.js +152 -0
  642. package/operator-docs.js.map +1 -0
  643. package/operator-docs.ts +196 -0
  644. package/operator-door.js +10 -0
  645. package/operator-door.js.map +1 -0
  646. package/operator-door.ts +14 -0
  647. package/operator-drafts-browser.js +28 -0
  648. package/operator-drafts-browser.js.map +1 -0
  649. package/operator-drafts-browser.ts +32 -0
  650. package/operator-drafts.js +60 -0
  651. package/operator-drafts.js.map +1 -0
  652. package/operator-drafts.ts +80 -0
  653. package/operator-early-draft.js +110 -0
  654. package/operator-early-draft.js.map +1 -0
  655. package/operator-early-draft.ts +125 -0
  656. package/operator-go-browser.js +130 -0
  657. package/operator-go-browser.js.map +1 -0
  658. package/operator-go-browser.ts +182 -0
  659. package/operator-go-step.js +86 -0
  660. package/operator-go-step.js.map +1 -0
  661. package/operator-go-step.ts +92 -0
  662. package/operator-go-tool.js +49 -0
  663. package/operator-go-tool.js.map +1 -0
  664. package/operator-go-tool.ts +31 -0
  665. package/operator-go.js +68 -0
  666. package/operator-go.js.map +1 -0
  667. package/operator-go.ts +100 -0
  668. package/operator-graph.js +46 -0
  669. package/operator-graph.js.map +1 -0
  670. package/operator-graph.ts +60 -0
  671. package/operator-handoff.js +91 -0
  672. package/operator-handoff.js.map +1 -0
  673. package/operator-handoff.ts +104 -0
  674. package/operator-machine.js +136 -0
  675. package/operator-machine.js.map +1 -0
  676. package/operator-machine.ts +168 -0
  677. package/operator-matches-browser.js +155 -0
  678. package/operator-matches-browser.js.map +1 -0
  679. package/operator-matches-browser.ts +178 -0
  680. package/operator-matches-view.js +147 -0
  681. package/operator-matches-view.js.map +1 -0
  682. package/operator-matches-view.ts +224 -0
  683. package/operator-matches.js +65 -0
  684. package/operator-matches.js.map +1 -0
  685. package/operator-matches.ts +120 -0
  686. package/operator-memory.js +119 -0
  687. package/operator-memory.js.map +1 -0
  688. package/operator-memory.ts +122 -0
  689. package/operator-mic.ts +40 -0
  690. package/operator-model.js +144 -0
  691. package/operator-model.js.map +1 -0
  692. package/operator-model.ts +154 -0
  693. package/operator-notes.js +32 -0
  694. package/operator-notes.js.map +1 -0
  695. package/operator-notes.ts +40 -0
  696. package/operator-opening-browser.js +184 -0
  697. package/operator-opening-browser.js.map +1 -0
  698. package/operator-opening-browser.ts +195 -0
  699. package/operator-owner.js +391 -0
  700. package/operator-owner.js.map +1 -0
  701. package/operator-owner.ts +392 -0
  702. package/operator-page-context.js +121 -0
  703. package/operator-page-context.js.map +1 -0
  704. package/operator-page-context.ts +143 -0
  705. package/operator-page-image.js +38 -0
  706. package/operator-page-image.js.map +1 -0
  707. package/operator-page-image.ts +42 -0
  708. package/operator-panel-browser.js +601 -0
  709. package/operator-panel-browser.js.map +1 -0
  710. package/operator-panel-browser.ts +669 -0
  711. package/operator-panel-view.js +69 -0
  712. package/operator-panel-view.js.map +1 -0
  713. package/operator-panel-view.ts +100 -0
  714. package/operator-panel.js +131 -0
  715. package/operator-panel.js.map +1 -0
  716. package/operator-panel.ts +155 -0
  717. package/operator-push.tsx +112 -0
  718. package/operator-record.js +55 -0
  719. package/operator-record.js.map +1 -0
  720. package/operator-record.ts +92 -0
  721. package/operator-replies.js +240 -0
  722. package/operator-replies.js.map +1 -0
  723. package/operator-replies.ts +281 -0
  724. package/operator-reply-view.js +117 -0
  725. package/operator-reply-view.js.map +1 -0
  726. package/operator-reply-view.ts +185 -0
  727. package/operator-safety.js +30 -0
  728. package/operator-safety.js.map +1 -0
  729. package/operator-safety.ts +53 -0
  730. package/operator-settings-browser.js +257 -0
  731. package/operator-settings-browser.js.map +1 -0
  732. package/operator-settings-browser.ts +290 -0
  733. package/operator-settings-view.js +291 -0
  734. package/operator-settings-view.js.map +1 -0
  735. package/operator-settings-view.ts +588 -0
  736. package/operator-settings.js +79 -0
  737. package/operator-settings.js.map +1 -0
  738. package/operator-settings.ts +137 -0
  739. package/operator-source.js +43 -0
  740. package/operator-source.js.map +1 -0
  741. package/operator-source.ts +69 -0
  742. package/operator-talk-browser.js +94 -0
  743. package/operator-talk-browser.js.map +1 -0
  744. package/operator-talk-browser.ts +120 -0
  745. package/operator-talk.js +83 -0
  746. package/operator-talk.js.map +1 -0
  747. package/operator-talk.ts +127 -0
  748. package/operator-task-text.js +45 -0
  749. package/operator-task-text.js.map +1 -0
  750. package/operator-task-text.ts +49 -0
  751. package/operator-timing-browser.js +51 -0
  752. package/operator-timing-browser.js.map +1 -0
  753. package/operator-timing-browser.ts +68 -0
  754. package/operator-timing-view.js +48 -0
  755. package/operator-timing-view.js.map +1 -0
  756. package/operator-timing-view.ts +90 -0
  757. package/operator-timing.js +132 -0
  758. package/operator-timing.js.map +1 -0
  759. package/operator-timing.ts +170 -0
  760. package/operator-vocab.js +8 -0
  761. package/operator-vocab.js.map +1 -0
  762. package/operator-vocab.ts +7 -0
  763. package/operator-voice-audio.ts +84 -0
  764. package/operator-voice-browser.ts +237 -0
  765. package/operator-voice-feedback.js +108 -0
  766. package/operator-voice-feedback.js.map +1 -0
  767. package/operator-voice-feedback.ts +133 -0
  768. package/operator-voice-view.js +33 -0
  769. package/operator-voice-view.js.map +1 -0
  770. package/operator-voice-view.ts +43 -0
  771. package/operator-voice.css +38 -0
  772. package/operator-voice.js +35 -0
  773. package/operator-voice.js.map +1 -0
  774. package/operator-voice.ts +33 -0
  775. package/operator-wait.js +70 -0
  776. package/operator-wait.js.map +1 -0
  777. package/operator-wait.ts +79 -0
  778. package/operator-watches.js +126 -0
  779. package/operator-watches.js.map +1 -0
  780. package/operator-watches.ts +141 -0
  781. package/operator-words.js +94 -0
  782. package/operator-words.js.map +1 -0
  783. package/operator-words.ts +114 -0
  784. package/outreach-trial.js +103 -0
  785. package/outreach-trial.js.map +1 -0
  786. package/outreach-trial.ts +122 -0
  787. package/outreach-vocab.js +10 -0
  788. package/outreach-vocab.js.map +1 -0
  789. package/outreach-vocab.ts +7 -0
  790. package/outreach.js +162 -0
  791. package/outreach.js.map +1 -0
  792. package/outreach.ts +239 -0
  793. package/package.json +1131 -4
  794. package/packs.js +103 -0
  795. package/packs.js.map +1 -0
  796. package/packs.ts +119 -0
  797. package/page-copy.js +267 -0
  798. package/page-copy.js.map +1 -0
  799. package/page-copy.ts +362 -0
  800. package/page-graph.js +114 -0
  801. package/page-graph.js.map +1 -0
  802. package/page-graph.ts +151 -0
  803. package/page-links.js +78 -0
  804. package/page-links.js.map +1 -0
  805. package/page-links.ts +124 -0
  806. package/page-parts.js +236 -0
  807. package/page-parts.js.map +1 -0
  808. package/page-parts.ts +388 -0
  809. package/page-query.js +95 -0
  810. package/page-query.js.map +1 -0
  811. package/page-query.ts +120 -0
  812. package/page-script.js +183 -0
  813. package/page-script.js.map +1 -0
  814. package/page-script.ts +192 -0
  815. package/page-wire.js +93 -0
  816. package/page-wire.js.map +1 -0
  817. package/page-wire.ts +100 -0
  818. package/pages-vocab.js +9 -0
  819. package/pages-vocab.js.map +1 -0
  820. package/pages-vocab.ts +5 -0
  821. package/partials.js +21 -0
  822. package/partials.js.map +1 -0
  823. package/partials.ts +37 -0
  824. package/payment-browser.js +250 -0
  825. package/payment-browser.js.map +1 -0
  826. package/payment-browser.ts +298 -0
  827. package/payment-rows.js +117 -0
  828. package/payment-rows.js.map +1 -0
  829. package/payment-rows.ts +219 -0
  830. package/payment-view.js +397 -0
  831. package/payment-view.js.map +1 -0
  832. package/payment-view.ts +852 -0
  833. package/people-browser.js +186 -0
  834. package/people-browser.js.map +1 -0
  835. package/people-browser.ts +210 -0
  836. package/people-rows.js +192 -0
  837. package/people-rows.js.map +1 -0
  838. package/people-rows.ts +289 -0
  839. package/people-view.js +463 -0
  840. package/people-view.js.map +1 -0
  841. package/people-view.ts +804 -0
  842. package/person-lines.js +196 -0
  843. package/person-lines.js.map +1 -0
  844. package/person-lines.ts +256 -0
  845. package/place.js +30 -0
  846. package/place.js.map +1 -0
  847. package/place.ts +31 -0
  848. package/plan-details.js +39 -0
  849. package/plan-details.js.map +1 -0
  850. package/plan-details.ts +57 -0
  851. package/plan-trial-graph.js +63 -0
  852. package/plan-trial-graph.js.map +1 -0
  853. package/plan-trial-graph.ts +57 -0
  854. package/plans.js +223 -0
  855. package/plans.js.map +1 -0
  856. package/plans.ts +313 -0
  857. package/platform-credentials.js +136 -0
  858. package/platform-credentials.js.map +1 -0
  859. package/platform-credentials.ts +189 -0
  860. package/poster-backfill.js +72 -0
  861. package/poster-backfill.js.map +1 -0
  862. package/poster-backfill.ts +96 -0
  863. package/presence.js +57 -0
  864. package/presence.js.map +1 -0
  865. package/presence.ts +77 -0
  866. package/preview-audit.js +65 -0
  867. package/preview-audit.js.map +1 -0
  868. package/preview-audit.ts +126 -0
  869. package/preview-fit.js +62 -0
  870. package/preview-fit.js.map +1 -0
  871. package/preview-fit.ts +72 -0
  872. package/preview-html.js +96 -0
  873. package/preview-html.js.map +1 -0
  874. package/preview-html.ts +139 -0
  875. package/preview.js +317 -0
  876. package/preview.js.map +1 -0
  877. package/preview.ts +498 -0
  878. package/price.js +53 -0
  879. package/price.js.map +1 -0
  880. package/price.ts +85 -0
  881. package/profile-browser.js +117 -0
  882. package/profile-browser.js.map +1 -0
  883. package/profile-browser.ts +141 -0
  884. package/profile-view.js +96 -0
  885. package/profile-view.js.map +1 -0
  886. package/profile-view.ts +197 -0
  887. package/provider-credits.js +159 -0
  888. package/provider-credits.js.map +1 -0
  889. package/provider-credits.ts +174 -0
  890. package/public-site-choice.js +18 -0
  891. package/public-site-choice.js.map +1 -0
  892. package/public-site-choice.ts +21 -0
  893. package/public-site.js +151 -0
  894. package/public-site.js.map +1 -0
  895. package/public-site.ts +268 -0
  896. package/publishing-graph.js +136 -0
  897. package/publishing-graph.js.map +1 -0
  898. package/publishing-graph.ts +122 -0
  899. package/qr.js +32 -0
  900. package/qr.js.map +1 -0
  901. package/qr.ts +32 -0
  902. package/query-page.js +159 -0
  903. package/query-page.js.map +1 -0
  904. package/query-page.ts +249 -0
  905. package/query-refusal.js +174 -0
  906. package/query-refusal.js.map +1 -0
  907. package/query-refusal.ts +319 -0
  908. package/refusal-loop.js +71 -0
  909. package/refusal-loop.js.map +1 -0
  910. package/refusal-loop.ts +98 -0
  911. package/refusals-vocab.js +9 -0
  912. package/refusals-vocab.js.map +1 -0
  913. package/refusals-vocab.ts +5 -0
  914. package/refused-writes.js +119 -0
  915. package/refused-writes.js.map +1 -0
  916. package/refused-writes.ts +152 -0
  917. package/refused.js +67 -0
  918. package/refused.js.map +1 -0
  919. package/refused.ts +76 -0
  920. package/regional-route-storage.js +127 -0
  921. package/regional-route-storage.js.map +1 -0
  922. package/regional-route-storage.ts +94 -0
  923. package/regional-route.js +105 -0
  924. package/regional-route.js.map +1 -0
  925. package/regional-route.ts +158 -0
  926. package/regional-serving-copy.js +153 -0
  927. package/regional-serving-copy.js.map +1 -0
  928. package/regional-serving-copy.ts +200 -0
  929. package/release-asset.js +71 -0
  930. package/release-asset.js.map +1 -0
  931. package/release-asset.ts +121 -0
  932. package/release-browser.js +383 -0
  933. package/release-code.js +5 -0
  934. package/release-entry.js +3 -0
  935. package/release-file.js +169 -0
  936. package/release-file.js.map +1 -0
  937. package/release-file.ts +241 -0
  938. package/release-index.js +140 -0
  939. package/release-index.js.map +1 -0
  940. package/release-index.ts +161 -0
  941. package/release-page.js +227 -0
  942. package/release-reads.js +27 -0
  943. package/release-reads.js.map +1 -0
  944. package/release-reads.ts +56 -0
  945. package/release-sheets.js +76 -0
  946. package/release-state.js +181 -0
  947. package/release-update.js +22 -0
  948. package/release-update.js.map +1 -0
  949. package/release-update.ts +29 -0
  950. package/release.js +50 -0
  951. package/release.js.map +1 -0
  952. package/release.ts +72 -0
  953. package/released.js +263 -0
  954. package/released.js.map +1 -0
  955. package/released.ts +310 -0
  956. package/remake-graph.js +17 -0
  957. package/remake-graph.js.map +1 -0
  958. package/remake-graph.ts +15 -0
  959. package/rouse-graph.js +11 -0
  960. package/rouse-graph.js.map +1 -0
  961. package/rouse-graph.ts +8 -0
  962. package/route-memory.js +101 -0
  963. package/route-memory.js.map +1 -0
  964. package/route-memory.ts +132 -0
  965. package/routes.js +1143 -0
  966. package/routes.js.map +1 -0
  967. package/routes.ts +1502 -0
  968. package/sale-recovery.js +175 -0
  969. package/sale-recovery.js.map +1 -0
  970. package/sale-recovery.ts +156 -0
  971. package/sales.js +113 -0
  972. package/sales.js.map +1 -0
  973. package/sales.ts +150 -0
  974. package/schema.js +28 -0
  975. package/schema.js.map +1 -0
  976. package/schema.ts +13 -0
  977. package/serving-copy.js +161 -0
  978. package/serving-copy.js.map +1 -0
  979. package/serving-copy.ts +201 -0
  980. package/settings-drafts-browser.js +81 -0
  981. package/settings-drafts-browser.js.map +1 -0
  982. package/settings-drafts-browser.ts +95 -0
  983. package/settings-drafts.js +119 -0
  984. package/settings-drafts.js.map +1 -0
  985. package/settings-drafts.ts +136 -0
  986. package/shared-browser.js +61 -0
  987. package/shared-browser.js.map +1 -0
  988. package/shared-browser.ts +77 -0
  989. package/shared-view.js +29 -0
  990. package/shared-view.js.map +1 -0
  991. package/shared-view.ts +47 -0
  992. package/side-browser.js +164 -0
  993. package/side-browser.js.map +1 -0
  994. package/side-browser.ts +201 -0
  995. package/side-parts.js +258 -0
  996. package/side-parts.js.map +1 -0
  997. package/side-parts.ts +447 -0
  998. package/side-rows.js +64 -0
  999. package/side-rows.js.map +1 -0
  1000. package/side-rows.ts +104 -0
  1001. package/signed-in.js +37 -0
  1002. package/signed-in.js.map +1 -0
  1003. package/signed-in.ts +45 -0
  1004. package/site-assets.js +8 -0
  1005. package/site-assets.js.map +1 -0
  1006. package/site-assets.ts +25 -0
  1007. package/site-header.js +65 -0
  1008. package/site-header.js.map +1 -0
  1009. package/site-header.ts +71 -0
  1010. package/site-nav.js +75 -0
  1011. package/site-nav.js.map +1 -0
  1012. package/site-nav.ts +82 -0
  1013. package/site-validation.js +37 -0
  1014. package/site-validation.js.map +1 -0
  1015. package/site-validation.ts +47 -0
  1016. package/space-apps-browser.js +107 -0
  1017. package/space-apps-browser.js.map +1 -0
  1018. package/space-apps-browser.ts +128 -0
  1019. package/space-apps-view.js +222 -0
  1020. package/space-apps-view.js.map +1 -0
  1021. package/space-apps-view.ts +396 -0
  1022. package/space-apps.js +88 -0
  1023. package/space-apps.js.map +1 -0
  1024. package/space-apps.ts +143 -0
  1025. package/space-logo.js +82 -0
  1026. package/space-logo.js.map +1 -0
  1027. package/space-logo.ts +112 -0
  1028. package/space-pages-browser.js +474 -0
  1029. package/space-pages-browser.js.map +1 -0
  1030. package/space-pages-browser.ts +463 -0
  1031. package/space-pages-view.js +212 -0
  1032. package/space-pages-view.js.map +1 -0
  1033. package/space-pages-view.ts +460 -0
  1034. package/space-pages.js +193 -0
  1035. package/space-pages.js.map +1 -0
  1036. package/space-pages.ts +282 -0
  1037. package/space-switch.js +36 -0
  1038. package/space-switch.js.map +1 -0
  1039. package/space-switch.ts +64 -0
  1040. package/splash.js +510 -0
  1041. package/splash.js.map +1 -0
  1042. package/splash.ts +525 -0
  1043. package/standing.js +409 -0
  1044. package/standing.js.map +1 -0
  1045. package/standing.ts +746 -0
  1046. package/still.js +63 -0
  1047. package/still.js.map +1 -0
  1048. package/still.ts +95 -0
  1049. package/store-listing.js +107 -0
  1050. package/store-listing.js.map +1 -0
  1051. package/store-listing.ts +133 -0
  1052. package/store-wake.js +65 -0
  1053. package/store-wake.js.map +1 -0
  1054. package/store-wake.ts +101 -0
  1055. package/stream-posters.js +177 -0
  1056. package/stream-posters.js.map +1 -0
  1057. package/stream-posters.ts +297 -0
  1058. package/support-contract-service.js +219 -0
  1059. package/support-contract-service.js.map +1 -0
  1060. package/support-contract-service.ts +307 -0
  1061. package/support-contract-view.js +155 -0
  1062. package/support-contract-view.js.map +1 -0
  1063. package/support-contract-view.ts +265 -0
  1064. package/support-contract.js +114 -0
  1065. package/support-contract.js.map +1 -0
  1066. package/support-contract.ts +157 -0
  1067. package/sweep-vocab.js +10 -0
  1068. package/sweep-vocab.js.map +1 -0
  1069. package/sweep-vocab.ts +9 -0
  1070. package/talk-views-browser.js +208 -0
  1071. package/talk-views-browser.js.map +1 -0
  1072. package/talk-views-browser.ts +232 -0
  1073. package/talk-views.js +36 -0
  1074. package/talk-views.js.map +1 -0
  1075. package/talk-views.ts +64 -0
  1076. package/task-rows.js +86 -0
  1077. package/task-rows.js.map +1 -0
  1078. package/task-rows.ts +96 -0
  1079. package/tasks-view.js +111 -0
  1080. package/tasks-view.js.map +1 -0
  1081. package/tasks-view.ts +176 -0
  1082. package/toast.ts +17 -0
  1083. package/trash-graph.js +41 -0
  1084. package/trash-graph.js.map +1 -0
  1085. package/trash-graph.ts +27 -0
  1086. package/trash-vocab.js +8 -0
  1087. package/trash-vocab.js.map +1 -0
  1088. package/trash-vocab.ts +4 -0
  1089. package/trial.js +325 -0
  1090. package/trial.js.map +1 -0
  1091. package/trial.ts +451 -0
  1092. package/update-rows.js +77 -0
  1093. package/update-rows.js.map +1 -0
  1094. package/update-rows.ts +171 -0
  1095. package/update-waiting.js +131 -0
  1096. package/update-waiting.js.map +1 -0
  1097. package/update-waiting.ts +133 -0
  1098. package/updates-browser.js +28 -0
  1099. package/updates-browser.js.map +1 -0
  1100. package/updates-browser.ts +33 -0
  1101. package/updates-day-browser.js +77 -0
  1102. package/updates-day-browser.js.map +1 -0
  1103. package/updates-day-browser.ts +84 -0
  1104. package/updates-day.js +60 -0
  1105. package/updates-day.js.map +1 -0
  1106. package/updates-day.ts +94 -0
  1107. package/updates-list-browser.js +175 -0
  1108. package/updates-list-browser.js.map +1 -0
  1109. package/updates-list-browser.ts +198 -0
  1110. package/updates-view.js +546 -0
  1111. package/updates-view.js.map +1 -0
  1112. package/updates-view.ts +814 -0
  1113. package/upload-client-path.js +5 -0
  1114. package/upload-client-path.js.map +1 -0
  1115. package/upload-client-path.ts +4 -0
  1116. package/uploads.js +290 -0
  1117. package/uploads.js.map +1 -0
  1118. package/uploads.ts +334 -0
  1119. package/upstream.js +40 -0
  1120. package/upstream.js.map +1 -0
  1121. package/upstream.ts +57 -0
  1122. package/version-view.js +57 -0
  1123. package/version-view.js.map +1 -0
  1124. package/version-view.ts +99 -0
  1125. package/versions.js +231 -0
  1126. package/versions.js.map +1 -0
  1127. package/versions.ts +367 -0
  1128. package/visit-counts.js +123 -0
  1129. package/visit-counts.js.map +1 -0
  1130. package/visit-counts.ts +162 -0
  1131. package/visitor-location.js +33 -0
  1132. package/visitor-location.js.map +1 -0
  1133. package/visitor-location.ts +38 -0
  1134. package/visitor.js +152 -0
  1135. package/visitor.js.map +1 -0
  1136. package/visitor.ts +228 -0
  1137. package/visits-browser.js +71 -0
  1138. package/visits-browser.js.map +1 -0
  1139. package/visits-browser.ts +87 -0
  1140. package/visits-view.js +88 -0
  1141. package/visits-view.js.map +1 -0
  1142. package/visits-view.ts +184 -0
  1143. package/visits.js +428 -0
  1144. package/visits.js.map +1 -0
  1145. package/visits.ts +561 -0
  1146. package/vocab/account.vocab.json +349 -0
  1147. package/vocab/agents.vocab.json +64 -0
  1148. package/vocab/app-canvas.vocab.json +137 -0
  1149. package/vocab/app-friends.vocab.json +71 -0
  1150. package/vocab/app-permissions.vocab.json +46 -0
  1151. package/vocab/apps.vocab.json +553 -0
  1152. package/vocab/attribution.vocab.json +32 -0
  1153. package/vocab/builder-install.vocab.json +10 -0
  1154. package/vocab/connections.vocab.json +128 -0
  1155. package/vocab/dashboard.vocab.json +148 -0
  1156. package/vocab/directory.vocab.json +2445 -0
  1157. package/vocab/exception.vocab.json +18 -0
  1158. package/vocab/fundraising.vocab.json +284 -0
  1159. package/vocab/gmail-mailbox.vocab.json +73 -0
  1160. package/vocab/kernel.vocab.json +420 -0
  1161. package/vocab/mcp-retirement.vocab.json +66 -0
  1162. package/vocab/meter.vocab.json +230 -0
  1163. package/vocab/models-install.vocab.json +10 -0
  1164. package/vocab/notices.vocab.json +88 -0
  1165. package/vocab/operator-drafts.vocab.json +19 -0
  1166. package/vocab/operator-matches.vocab.json +85 -0
  1167. package/vocab/operator-settings.vocab.json +127 -0
  1168. package/vocab/operator-talk.vocab.json +92 -0
  1169. package/vocab/operator.vocab.json +1314 -0
  1170. package/vocab/outreach.vocab.json +141 -0
  1171. package/vocab/pages.vocab.json +38 -0
  1172. package/vocab/payment.vocab.json +271 -0
  1173. package/vocab/people.vocab.json +337 -0
  1174. package/vocab/presence.vocab.json +19 -0
  1175. package/vocab/preview.vocab.json +66 -0
  1176. package/vocab/referenced.vocab.json +17 -0
  1177. package/vocab/referral.vocab.json +272 -0
  1178. package/vocab/refusals.vocab.json +16 -0
  1179. package/vocab/registration.vocab.json +17 -0
  1180. package/vocab/serving.vocab.json +103 -0
  1181. package/vocab/side.vocab.json +97 -0
  1182. package/vocab/space-apps.vocab.json +137 -0
  1183. package/vocab/space-pages.vocab.json +416 -0
  1184. package/vocab/sweep-install.vocab.json +10 -0
  1185. package/vocab/sweep.vocab.json +125 -0
  1186. package/vocab/trash.vocab.json +19 -0
  1187. package/vocab/update.vocab.json +53 -0
  1188. package/vocab/upload.vocab.json +69 -0
  1189. package/vocab/use.vocab.json +93 -0
  1190. package/vocab/visits.vocab.json +143 -0
  1191. package/vocab/waiting.vocab.json +29 -0
  1192. package/vocab.js +16 -0
  1193. package/vocab.js.map +1 -0
  1194. package/vocab.json +1703 -0
  1195. package/vocab.ts +17 -0
  1196. package/weigh-graph.js +12 -0
  1197. package/weigh-graph.js.map +1 -0
  1198. package/weigh-graph.ts +9 -0
  1199. package/wire-news.js +30 -0
  1200. package/wire-news.js.map +1 -0
  1201. package/wire-news.ts +30 -0
  1202. package/work-standing.js +64 -0
  1203. package/work-standing.js.map +1 -0
  1204. package/work-standing.ts +44 -0
  1205. package/woven.js +435 -0
  1206. package/woven.js.map +1 -0
  1207. package/woven.ts +649 -0
  1208. package/wrap-graph.js +17 -0
  1209. package/wrap-graph.js.map +1 -0
  1210. package/wrap-graph.ts +15 -0
  1211. package/write-owner.js +11 -0
  1212. package/write-owner.js.map +1 -0
  1213. package/write-owner.ts +24 -0
@@ -0,0 +1,1215 @@
1
+ /**
2
+ * A space's Connections page (`/manage/<space>/connections`), drawn from its
3
+ * `connectionsPage` row (./connections-page.ts): the connections agents asked
4
+ * for, the person's own, the space's and what its apps borrow, the person's
5
+ * MCP servers, and the catalog of services to connect. One dialog shows the
6
+ * connection, loan, server or service opened (`opened`, the address's hash in
7
+ * the browser, `?detail=` on the server). What the page says beside the row,
8
+ * which changes only by leaving the page, is its `ConnectionsView`. The server
9
+ * draws it for the first paint, and the browser draws it again as the row
10
+ * moves (./connections-browser.ts).
11
+ *
12
+ * @module
13
+ */ /* @ts-types="npm:@types/react@19.3.0" */ import { cloneElement, createContext, createElement as h, Fragment, useContext } from "react";
14
+ import { Button } from "@yaks/ui/Button";
15
+ import { Card } from "@yaks/ui/Card";
16
+ import { Cards } from "@yaks/ui/Cards";
17
+ import { Check } from "@yaks/ui/Check";
18
+ import { Chip } from "@yaks/ui/Chip";
19
+ import { Chips } from "@yaks/ui/Chips";
20
+ import { Empty } from "@yaks/ui/Empty";
21
+ import { ErrorNotice } from "@yaks/ui/ErrorNotice";
22
+ import { Field } from "@yaks/ui/Field";
23
+ import { Form } from "@yaks/ui/Form";
24
+ import { Group } from "@yaks/ui/Group";
25
+ import { Loading } from "@yaks/ui/Loading";
26
+ import { Logo } from "@yaks/ui/Logo";
27
+ import { Modal } from "@yaks/ui/Modal";
28
+ import { More } from "@yaks/ui/More";
29
+ import { Notice } from "@yaks/ui/Notice";
30
+ import { Rows } from "@yaks/ui/Rows";
31
+ import { Section, Select, Stack } from "@yaks/ui/parts";
32
+ import { Time } from "@yaks/ui/Time";
33
+ import { Answer, Save } from "@yaks/ux";
34
+ import { ActionMenu, actionProps, menuOf, MoreMenu } from "@yaks/ux/context-menu";
35
+ import { spaceHost } from "./host.js";
36
+ import { FRIENDS_ACCESS } from "./app-friends.js";
37
+ import { enabling, integrationLogo, managePath } from "./routes.js";
38
+ import { aiUse, connectionsFull, count } from "./standing.js";
39
+ import { ceilings, NAMES, planName, SUBSCRIBED } from "./plans.js";
40
+ import { planPrice } from "./price.js";
41
+ import { choice } from "./side-parts.js";
42
+ import { fieldsOf, heading, held, labeled, said as told, sentence, status } from "./page-parts.js";
43
+ import { credentialHelp, credentialLabel, detail, howTo, keyBox, logo, overview, resources, signingIn, siteLogin, technical } from "./connect-parts.js";
44
+ let Inspection = /*#__PURE__*/ createContext(false);
45
+ let ConnectionForm = ({ children, ...props })=>{
46
+ let readOnly = useContext(Inspection) && props.method == 'post';
47
+ return /*#__PURE__*/ h(Form, readOnly ? {
48
+ ...props,
49
+ inert: true,
50
+ 'data-save': undefined,
51
+ 'data-save-reset': undefined
52
+ } : props, children, !readOnly && props.method == 'post' && !props['data-save'] && told('', false, (props.className ?? props.class) == 'Card_Form' ? 'end' : undefined));
53
+ };
54
+ // An item's menu, or with `more` its ⋯ and menu: an inspection, which only
55
+ // shows the page, offers nothing in it but to open the item.
56
+ let Offered = ({ more, actions, ...props })=>{
57
+ let offered = useContext(Inspection) ? {
58
+ open: actions.open
59
+ } : actions;
60
+ return Object.values(offered).some(Boolean) ? /*#__PURE__*/ h(more ? MoreMenu : ActionMenu, {
61
+ ...props,
62
+ actions: offered
63
+ }) : null;
64
+ };
65
+ // A space at its plan's connections, where another would be refused
66
+ // (yaks.app connections.ts `admitted`): the limit, what the Plus plan gives,
67
+ // and its checkout, the Billing page's button (./payment-view.ts), which
68
+ // ./connections-browser.ts presses the same way. None below the limit.
69
+ let full = (slug, plan, readOnly)=>{
70
+ let limit = ceilings(plan.tier, slug)?.connections;
71
+ if (limit == null || plan.held < limit) return null;
72
+ return /*#__PURE__*/ h(Card, {
73
+ className: 'Bill'
74
+ }, /*#__PURE__*/ h(Card.Sub, null, `${connectionsFull({
75
+ slug,
76
+ tier: plan.tier
77
+ })}. The ${NAMES.plus} ` + `plan connects as many as you like and includes ${aiUse('plus')}. ` + `A first paid subscription to it adds $${SUBSCRIBED} of building ` + 'credit.'), /*#__PURE__*/ h(Form.Actions, null, /*#__PURE__*/ h(Button, {
78
+ type: 'button',
79
+ disabled: readOnly,
80
+ mod: 'go',
81
+ className: 'Bill_Go',
82
+ 'data-door': 'checkout',
83
+ 'data-plan': 'plus',
84
+ 'data-per': 'month'
85
+ }, `Get ${planName('plus')} — ${planPrice('plus')}`)), told());
86
+ };
87
+ // The integration directory, which lists services others added.
88
+ let DIRECTORY = '/integrations';
89
+ /** Choose the space that will use a provider's completed installation. */ export let installChoice = (action, state, spaces, label)=>/*#__PURE__*/ h(ConnectionForm, {
90
+ method: 'post',
91
+ action
92
+ }, held('install', state), labeled('install-space', 'Space', /*#__PURE__*/ h(Select, {
93
+ id: 'install-space',
94
+ name: 'space',
95
+ required: true
96
+ }, spaces.length > 1 ? /*#__PURE__*/ h('option', {
97
+ value: ''
98
+ }, 'Choose a space') : null, spaces.map((s)=>/*#__PURE__*/ h('option', {
99
+ value: s.eid
100
+ }, s.title || s.slug)))), /*#__PURE__*/ h(Button, {
101
+ type: 'submit'
102
+ }, label));
103
+ /** The answers to a sign-in that came back to a browser other than the one
104
+ * that began it, posted back to `action`, the return's own address. */ export let approveConnect = (action)=>/*#__PURE__*/ h(ConnectionForm, {
105
+ method: 'post',
106
+ action
107
+ }, /*#__PURE__*/ h(Button, {
108
+ mod: 'go',
109
+ type: 'submit',
110
+ name: 'answer',
111
+ value: 'connect'
112
+ }, 'Connect'), ' ', /*#__PURE__*/ h(Button, {
113
+ type: 'submit',
114
+ name: 'answer',
115
+ value: 'decline'
116
+ }, 'Decline'));
117
+ // A label for what may be left empty.
118
+ let optional = (label)=>[
119
+ label,
120
+ ' ',
121
+ /*#__PURE__*/ h(Form.Optional, null, '(optional)')
122
+ ];
123
+ // What the page says of something, as a notice; a refusal where `no`.
124
+ let noticed = (say, no)=>say ? no ? /*#__PURE__*/ h(ErrorNotice, null, say) : /*#__PURE__*/ h(Notice, {
125
+ role: 'status'
126
+ }, say) : null;
127
+ // How a connection stands, as its head says it.
128
+ let STATUS = {
129
+ needed: 'Needs connecting',
130
+ connected: 'Connected',
131
+ broken: 'Needs reconnecting'
132
+ };
133
+ // A button a connection's form sends: quiet unless it is the card's one
134
+ // next step.
135
+ let press = (value, label, quiet = true)=>/*#__PURE__*/ h(Button, {
136
+ mod: !quiet && 'go',
137
+ type: 'submit',
138
+ name: 'do',
139
+ value
140
+ }, label);
141
+ let appAccess = (a, credential, personal)=>/*#__PURE__*/ h(Section.Sub, null, personal ? 'Only you can use this connection in the app.' : a.anyone ? `Anyone who can open the app can make requests using ${credential}.` : `Only app members can make requests using ${credential}.`);
142
+ let visitorAccess = (a, credential, form, named = false)=>/*#__PURE__*/ h(More, {
143
+ 'data-key': `access-${a.app}-${a.anyone}`,
144
+ 'data-save-fold': ''
145
+ }, /*#__PURE__*/ h(More.Summary, null, named ? `Visitor access for ${a.title}` : 'Visitor access'), /*#__PURE__*/ h(More.Body, null, /*#__PURE__*/ h(Form.Hint, null, a.anyone ? `Only app members will be able to make requests using ${credential}.` : `Anyone who can open ${a.title}, including people who aren’t members, could use ${credential} through the app. They may be able to access account data, use up quota, or incur charges.`), form(/*#__PURE__*/ h(Form.Actions, null, a.anyone ? press('close', 'Limit to members') : press('open', 'Allow visitors')))));
146
+ let accessCredential = (c)=>c.keyed ? credentialLabel(c.face) : 'connected account';
147
+ let credentialFields = (face, id)=>[
148
+ /*#__PURE__*/ h(Form.Hint, null, credentialHelp(face)),
149
+ keyBox(id, 'API key', null, '', face.fields),
150
+ /*#__PURE__*/ h(Save.Slot, {
151
+ label: 'Save'
152
+ })
153
+ ];
154
+ // What a connection lacking scopes its integration now asks for says.
155
+ let FULLER = 'Reconnect to grant full access.';
156
+ let APP_NAMES = new Intl.ListFormat('en', {
157
+ type: 'conjunction'
158
+ });
159
+ // A connection signed in to, rather than given a key, that is connected or
160
+ // was refused, signs in again in place: the same connection, the apps using
161
+ // it, and a new grant.
162
+ let reconnects = (c)=>!c.keyed && !c.failed && !(c.each && !c.own) && (c.status == 'connected' || c.status == 'broken');
163
+ // Where a connection stands, which says what can be done with it: `ask`, the
164
+ // space's side of an app that asks each person to connect their own;
165
+ // `waiting`, one an app shares and waits on, which is connected rather than
166
+ // removed; `again`, signed in to again in place, which `needs` doing.
167
+ let standing = (c)=>{
168
+ let ask = c.each && !c.own;
169
+ let again = reconnects(c);
170
+ return {
171
+ ask,
172
+ again,
173
+ needs: again && (c.status == 'broken' || !!c.lacking.length),
174
+ waiting: c.status == 'needed' && !!c.apps.length && !c.each,
175
+ connecting: !ask && !c.keyed && !again && (c.status != 'connected' || !!c.failed)
176
+ };
177
+ };
178
+ // The id of the form that does `act` to the item at `key`: the button in its
179
+ // dialog and its menu (@yaks/ux/context-menu) both send it.
180
+ let doing = (key, act)=>`do-${act}-${encodeURIComponent(key)}`;
181
+ // The action sending the item at `key`'s form for `act`, as its button would.
182
+ let acting = (key, act, label, more = {})=>({
183
+ label,
184
+ submits: doing(key, act),
185
+ sends: [
186
+ 'do',
187
+ act
188
+ ],
189
+ ...more
190
+ });
191
+ // The kit's button doing `a`, the page's go-ahead unless `quiet`.
192
+ let pressed = (a, quiet = true)=>/*#__PURE__*/ h(Button, {
193
+ mod: !quiet && 'go',
194
+ ...actionProps(a)
195
+ }, a.label);
196
+ // Whether a sign-in leaves for its service in a tab of its own.
197
+ let away = (face)=>face.broker ? {
198
+ target: '_blank'
199
+ } : {};
200
+ /** What can be done with a connection, its dialog at `open`, declared once:
201
+ * its card's menu and its dialog's buttons are drawn from it. */ export let connectionActions = (c, key, open)=>{
202
+ let is = standing(c);
203
+ return {
204
+ open: {
205
+ label: 'Open',
206
+ href: open
207
+ },
208
+ signin: is.connecting ? acting(key, 'signin', 'Connect') : undefined,
209
+ reconnect: is.again ? acting(key, 'reconnect', is.needs ? 'Reconnect' : 'Sign in again') : undefined,
210
+ disconnect: !is.ask && !is.waiting ? acting(key, 'disconnect', c.status == 'needed' ? 'Remove' : 'Disconnect', {
211
+ danger: true
212
+ }) : undefined
213
+ };
214
+ };
215
+ /** What can be done with a connection an app here borrows, `mine` the
216
+ * space's own that could replace it: use that, or connect its own. */ export let borrowedActions = (b, key, open, on, mine)=>({
217
+ open: {
218
+ label: 'Open',
219
+ href: open
220
+ },
221
+ own: mine ? acting(key, 'attach', 'Use your own') : on && !b.keyed ? acting(key, 'own', 'Connect your own') : undefined
222
+ });
223
+ /** What can be done with one of the person's MCP servers: turn it on or
224
+ * off, share it with the space or keep it theirs, move it to the trash, or
225
+ * restore it from there. */ export let serverActions = (s, key, open)=>({
226
+ open: {
227
+ label: 'Open',
228
+ href: open
229
+ },
230
+ ...s.trashed ? {
231
+ restore: acting(key, 'mcp-restore', 'Restore')
232
+ } : {
233
+ power: s.enabled ? acting(key, 'mcp-off', 'Turn off') : acting(key, 'mcp-on', 'Turn on'),
234
+ share: s.machine ? undefined : s.everyone ? acting(key, 'mcp-mine', 'Use only with me') : acting(key, 'mcp-everyone', 'Share with everyone'),
235
+ remove: acting(key, 'mcp-remove', 'Remove', {
236
+ danger: true
237
+ })
238
+ }
239
+ });
240
+ /** What can be done with a credential kept in the trash of the space
241
+ * `space`: restore it, or erase it for good. */ export let retainedActions = (one, space, key, open)=>({
242
+ open: {
243
+ label: 'Open',
244
+ href: open
245
+ },
246
+ restore: acting(key, 'restore-credential', 'Restore credential'),
247
+ erase: {
248
+ label: 'Erase saved credential…',
249
+ href: `/space/${space}/confirm/credentialerase/${one.id}`,
250
+ danger: true
251
+ }
252
+ });
253
+ // The credential, the apps using it, and the connection's advanced settings.
254
+ // For an app that asks each person to connect their own, the space's side
255
+ // shows only the request.
256
+ let connection = (c, on, action, close, context, env, actions, menu)=>{
257
+ let is = standing(c);
258
+ let { ask } = is;
259
+ let id = (what)=>`${what}-${c.eid}`;
260
+ let form = (kids, at = {})=>/*#__PURE__*/ h(ConnectionForm, {
261
+ method: 'post',
262
+ action,
263
+ ...at,
264
+ 'data-key': at['data-save']
265
+ }, held('connection', c.eid), kids);
266
+ let editing = (do_, kids)=>form([
267
+ held('do', do_),
268
+ kids
269
+ ], {
270
+ 'data-save': id(do_)
271
+ });
272
+ // An action's own form, its button in it where the dialog shows one, else
273
+ // empty and hidden, for the menu to send.
274
+ let sending = (a, shown, quiet = true)=>a?.submits ? form(shown ? pressed(a, quiet) : null, {
275
+ id: a.submits,
276
+ class: 'Card_Form',
277
+ hidden: !shown || undefined,
278
+ ...a.sends?.[1] == 'disconnect' ? {} : away(c.face)
279
+ }) : null;
280
+ let { signin, reconnect, disconnect } = actions;
281
+ let open = c.status != 'connected' || !!c.failed;
282
+ // A key is pasted here for a keyed connection this deploy can keep one for.
283
+ let keying = !ask && on && c.keyed;
284
+ let login = siteLogin(c.face);
285
+ let credential = credentialLabel(c.face);
286
+ // A connection signed in to again only now and then keeps that, and its
287
+ // disconnecting, in its head's ⋯; one needing it says so in its body.
288
+ let tucked = is.again && !is.needs;
289
+ let more = tucked ? /*#__PURE__*/ h(Offered, {
290
+ more: true,
291
+ id: `${menu}-in`,
292
+ label: `More for ${c.face.title}`,
293
+ actions: {
294
+ reconnect,
295
+ disconnect
296
+ }
297
+ }) : null;
298
+ let { connecting } = is;
299
+ let needsReconnect = is.needs;
300
+ let purpose = c.apps.length ? `Connect ${c.face.title} to give ${APP_NAMES.format(c.apps.map((app)=>app.title))} access through the account you choose.` : c.own ? `Sign in to ${c.face.title} to use your own account.` : `Connect ${c.face.title} so you can grant apps access.`;
301
+ let connect = connecting || needsReconnect ? /*#__PURE__*/ h(Form.Line, null, /*#__PURE__*/ h(Section.Sub, null, connecting ? purpose : c.lacking.length ? FULLER : 'Sign in again to restore this connection.'), sending(connecting ? signin : reconnect, true, false)) : null;
302
+ let stands = ask ? status('Each person connects their own') : status(login ? c.status == 'needed' ? 'Needs sign-in details' : c.status == 'connected' ? 'Sign-in details saved' : 'Needs new sign-in details' : STATUS[c.status], c.status == 'connected' ? 'positive' : 'negative');
303
+ let notice = c.failed ? noticed(`${c.face.title} could not be connected. Try connecting again.`, true) : c.saving ? noticed(sentence(c.saving)) : null;
304
+ let fields = keying ? form([
305
+ held('do', 'key'),
306
+ credentialFields(c.face, id('key'))
307
+ ], {
308
+ 'data-save': id('key'),
309
+ 'data-save-reset': ''
310
+ }) : null;
311
+ let paste = keying && /*#__PURE__*/ h(More, {
312
+ open,
313
+ 'data-save-fold': ''
314
+ }, /*#__PURE__*/ h(More.Summary, null, login ? open ? `Sign in to ${c.face.title}` : 'Replace sign-in details' : open ? `Enter your ${credential}` : `Replace the ${credential}`), /*#__PURE__*/ h(More.Body, null, fields));
315
+ let forApp = (a, kids, at = {})=>form([
316
+ held('app', a.app),
317
+ kids
318
+ ], at);
319
+ let using = (a, only)=>a.borrower != null ? /*#__PURE__*/ h(Rows.Item, {
320
+ as: 'li'
321
+ }, /*#__PURE__*/ h(Rows.Main, null, /*#__PURE__*/ h(Rows.Name, null, a.borrower), /*#__PURE__*/ h(Rows.Meta, null, `Their copy of ${a.title} borrows this connection.`)), c.each ? null : /*#__PURE__*/ h(Rows.Actions, null, forApp(a, press('recall', 'Recall')))) : /*#__PURE__*/ h(Section, {
322
+ as: 'li'
323
+ }, only ? null : /*#__PURE__*/ h(Rows.Name, null, a.title), appAccess(a, `your ${accessCredential(c)}`, c.each));
324
+ // The space's own apps first, then the copies borrowing it.
325
+ let rows = [
326
+ ...c.apps
327
+ ].sort((a, b)=>Number(a.borrower != null) - Number(b.borrower != null));
328
+ let only = rows.length == 1 && rows[0].borrower == null ? rows[0] : null;
329
+ let apps = ask ? c.apps.length ? /*#__PURE__*/ h(Card.Sub, null, `Each person who uses ${c.apps.map((a)=>a.title).join(', ')} connects their own account, from the app.`) : null : rows.length ? /*#__PURE__*/ h(Rows, {
330
+ as: 'ul',
331
+ className: 'Connection_Apps'
332
+ }, rows.map((a)=>using(a, !!only))) : /*#__PURE__*/ h(Card.Sub, null, 'No apps use the connection yet.');
333
+ let attaching = c.status == 'connected' && !c.own && c.available.length > 0;
334
+ let attach = attaching ? form(labeled(id('attach'), 'Grant app access', /*#__PURE__*/ h(Form.Line, null, /*#__PURE__*/ h(Select, {
335
+ id: id('attach'),
336
+ name: 'app',
337
+ required: true
338
+ }, /*#__PURE__*/ h('option', {
339
+ value: ''
340
+ }, 'Choose an app'), c.available.map((a)=>/*#__PURE__*/ h('option', {
341
+ value: a.app
342
+ }, a.title))), press('attach', 'Attach', false)), c.face.visitors == 'on' ? 'App visitors can use this connection by default.' : 'Only app members can use this connection by default.'), {
343
+ class: 'Connection_Attach'
344
+ }) : null;
345
+ // Whether a service this space added is in the integration directory, for
346
+ // anyone to add with their own key: its owner lists it or takes it out.
347
+ let listing = c.about ? /*#__PURE__*/ h(Form.Field, null, /*#__PURE__*/ h(Form.Label, {
348
+ as: 'span'
349
+ }, 'Public listing'), /*#__PURE__*/ h(Form.Hint, null, c.listed ? [
350
+ 'Listed in the ',
351
+ /*#__PURE__*/ h('a', {
352
+ href: `${DIRECTORY}#${encodeURIComponent(c.integration)}`
353
+ }, 'public directory'),
354
+ `, for anyone to connect with their own ${credential}.`
355
+ ] : `Once listed, anyone could connect it with their own ${credential}.`), form(/*#__PURE__*/ h(Form.Actions, null, c.listed ? press('unlist', 'Unlist') : press('list', 'List publicly')))) : null;
356
+ // What is said about a service this space added, its owner's to change.
357
+ let told = c.about ? /*#__PURE__*/ h(More, {
358
+ 'data-save-fold': ''
359
+ }, /*#__PURE__*/ h(More.Summary, null, `About ${c.face.title}`), /*#__PURE__*/ h(More.Body, null, editing('about', [
360
+ [
361
+ [
362
+ 'title',
363
+ 'Name',
364
+ c.face.title
365
+ ],
366
+ [
367
+ 'tagline',
368
+ 'Description',
369
+ 'Short description'
370
+ ],
371
+ [
372
+ 'site',
373
+ 'Website',
374
+ 'https://…'
375
+ ],
376
+ ...credential == 'API key' ? [
377
+ [
378
+ 'example',
379
+ 'API key format',
380
+ 'rk_live_••••••••'
381
+ ]
382
+ ] : []
383
+ ].map(([k, label, hint])=>labeled(id(k), label, /*#__PURE__*/ h(Field, {
384
+ id: id(k),
385
+ name: k,
386
+ value: c.about[k] ?? '',
387
+ placeholder: hint,
388
+ ...k == 'site' && {
389
+ type: 'url',
390
+ pattern: 'https://.*'
391
+ }
392
+ }))),
393
+ labeled(id('instructions'), login ? 'Sign-in instructions' : `How to get the ${credential}`, /*#__PURE__*/ h(Field, {
394
+ lines: true,
395
+ id: id('instructions'),
396
+ name: 'instructions',
397
+ rows: 6,
398
+ placeholder: login ? 'Where to sign in and which account to use' : `Where to find the ${credential}`,
399
+ value: c.about.instructions ?? ''
400
+ }), 'Written for whoever connects it and the agent helping them, in Markdown.'),
401
+ /*#__PURE__*/ h(Save.Slot, {
402
+ label: 'Save'
403
+ })
404
+ ]))) : null;
405
+ let icon = c.about ? /*#__PURE__*/ h(Form.Field, null, /*#__PURE__*/ h(Form.Label, {
406
+ as: 'span'
407
+ }, 'Icon'), /*#__PURE__*/ h('div', {
408
+ 'data-key': id('icon'),
409
+ 'data-kept': '',
410
+ 'data-connection-icon': c.eid,
411
+ 'data-icon-src': integrationLogo(c.face, env)
412
+ }, logo(c.face, env))) : null;
413
+ // Lending it to the copies people install of an app here: the calls a
414
+ // month each copy may make, saved again to change it, and the button that
415
+ // stops lending and takes every loan back. Only a shared sentinel the app
416
+ // holds is lent, never the key itself.
417
+ let lendable = c.status == 'connected' && !c.own && !c.each;
418
+ let lend = (a)=>{
419
+ let field = `${id('lend')}-${a.app}`;
420
+ let stop = `${field}-stop`;
421
+ return [
422
+ forApp(a, [
423
+ a.lends == null ? null : held('do', 'lend'),
424
+ labeled(field, `Lend to copies of ${a.title}`, /*#__PURE__*/ h(Form.Line, null, /*#__PURE__*/ h(Field, {
425
+ id: field,
426
+ name: 'cap',
427
+ type: 'number',
428
+ min: 1,
429
+ step: 1,
430
+ inputmode: 'numeric',
431
+ value: a.lends ?? 100,
432
+ placeholder: 'e.g. 100',
433
+ required: true
434
+ }), a.lends == null ? press('lend', 'Lend') : null, a.lends == null ? null : /*#__PURE__*/ h(Button, {
435
+ type: 'submit',
436
+ form: stop,
437
+ name: 'do',
438
+ value: 'lend'
439
+ }, 'Stop lending')), `How many calls each installed copy may make each month. A copy can connect with its own ${credential} instead.`),
440
+ a.lends == null ? null : /*#__PURE__*/ h(Save.Slot, {
441
+ label: 'Save'
442
+ })
443
+ ], a.lends == null ? {} : {
444
+ 'data-save': field
445
+ }),
446
+ a.lends == null ? null : forApp(a, null, {
447
+ id: stop,
448
+ hidden: true
449
+ })
450
+ ];
451
+ };
452
+ let lent = lendable ? c.apps.filter((a)=>a.borrower == null && !a.direct).map(lend) : [];
453
+ let folded = [
454
+ c.scopes.length ? /*#__PURE__*/ h(Section.Sub, null, 'Scopes ', /*#__PURE__*/ h('code', null, c.scopes.join(', '))) : null,
455
+ ...rows.filter((app)=>!c.each && app.binding && app.borrower == null).map((app)=>/*#__PURE__*/ h(Section.Sub, {
456
+ key: app.app
457
+ }, `${app.title} reads this connection as `, /*#__PURE__*/ h('code', null, `env.${app.binding}`), '.')),
458
+ ...c.each || c.face.visitors == 'never' ? [] : rows.filter((app)=>app.borrower == null).map((app)=>visitorAccess(app, `your ${accessCredential(c)}`, (kids)=>forApp(app, kids), !only)),
459
+ keying && open ? null : howTo(c.face, false),
460
+ technical(c.face),
461
+ ...lent,
462
+ listing,
463
+ told,
464
+ icon,
465
+ tucked ? null : sending(disconnect, true)
466
+ ];
467
+ let as = c.title || c.account;
468
+ let usage = /*#__PURE__*/ h(Section, {
469
+ className: 'Connection_Section',
470
+ 'aria-labelledby': id('apps')
471
+ }, /*#__PURE__*/ h(Section.Title, {
472
+ as: 'h3',
473
+ id: id('apps')
474
+ }, only ? `Used by ${only.title}` : 'Apps using this connection'), apps, attach, context);
475
+ return /*#__PURE__*/ h(Modal.Body, {
476
+ 'data-connection': c.eid
477
+ }, /*#__PURE__*/ h(Modal.Head, {
478
+ title: c.face.title,
479
+ mark: logo(c.face, env),
480
+ status: stands,
481
+ actions: more,
482
+ close
483
+ }), /*#__PURE__*/ h(Modal.Main, null, // What came of a press of its ⋯, whose forms are out of sight.
484
+ tucked ? /*#__PURE__*/ h(ErrorNotice, {
485
+ 'data-connections-status': ''
486
+ }) : null, tucked ? sending(reconnect, false) : null, tucked ? sending(disconnect, false) : null, ...overview(c.face), resources(c.face), connect, notice, as && c.status == 'connected' ? /*#__PURE__*/ h(Section.Sub, null, 'Connected as ', /*#__PURE__*/ h('strong', null, as)) : null, keying && open ? howTo(c.face, true) : null, paste, usage, folded.some(Boolean) ? /*#__PURE__*/ h(More, {
487
+ className: 'Connection_Section',
488
+ 'data-save-fold': ''
489
+ }, /*#__PURE__*/ h(More.Summary, null, 'Advanced'), /*#__PURE__*/ h(More.Body, null, folded)) : null));
490
+ };
491
+ // A connection an app here borrows from the space that lent it with the app,
492
+ // as a card: its head says whose it is, its row what the app has spent of the
493
+ // cap it was lent under and who may call out through it, which is this space's
494
+ // to say, and what replaces it is the space's own: a
495
+ // connection it holds already, a sign-in, or a key pasted under the fold.
496
+ let borrowing = (b, env, on, action, close, actions, mine)=>{
497
+ let form = (kids, connection = b.eid, edit = false, part = '', at = {})=>/*#__PURE__*/ h(ConnectionForm, {
498
+ className: part,
499
+ method: 'post',
500
+ action,
501
+ ...at,
502
+ ...edit ? {
503
+ 'data-save': `own-${b.eid}-${b.app.app}`,
504
+ 'data-save-reset': ''
505
+ } : {}
506
+ }, edit ? held('do', 'own') : null, held('connection', connection), held('app', b.app.app), kids);
507
+ let { own: owning } = actions;
508
+ let ownership = owning ? form(pressed(owning, !!mine), mine?.eid ?? b.eid, false, 'Card_Form', {
509
+ id: owning.submits,
510
+ ...mine ? {} : away(b.face)
511
+ }) : null;
512
+ let id = `own-${b.eid}-${b.app.app}`;
513
+ let credential = credentialLabel(b.face);
514
+ let own = on && b.keyed && !mine ? /*#__PURE__*/ h(More, null, /*#__PURE__*/ h(More.Summary, null, `Use your own ${credential}`), /*#__PURE__*/ h(More.Body, null, form(credentialFields(b.face, id), b.eid, true))) : null;
515
+ return /*#__PURE__*/ h(Modal.Body, {
516
+ 'data-borrowed': b.eid
517
+ }, /*#__PURE__*/ h(Modal.Head, {
518
+ title: b.face.title,
519
+ mark: logo(b.face, env),
520
+ status: status(`Borrowed from ${b.lender}`, 'positive'),
521
+ close
522
+ }), ...overview(b.face), resources(b.face), ownership ? /*#__PURE__*/ h(Card.Actions, null, ownership) : null, own, /*#__PURE__*/ h(Section, {
523
+ className: 'Connection_Section',
524
+ 'aria-labelledby': id
525
+ }, /*#__PURE__*/ h(Section.Title, {
526
+ as: 'h3',
527
+ id
528
+ }, `Used by ${b.app.title}`), appAccess(b.app, `${b.lender}’s ${accessCredential(b)}`, false)), /*#__PURE__*/ h(More, {
529
+ className: 'Connection_Section',
530
+ 'data-save-fold': ''
531
+ }, /*#__PURE__*/ h(More.Summary, null, 'Advanced'), /*#__PURE__*/ h(More.Body, null, b.app.cap == null ? null : /*#__PURE__*/ h(Form.Hint, null, `This app can make up to ${b.app.cap} requests per month with this connection.`), b.face.visitors == 'never' ? null : visitorAccess(b.app, `${b.lender}’s ${accessCredential(b)}`, form), howTo(b.face, false), technical(b.face))));
532
+ };
533
+ // The id of the menu of the item at `key`.
534
+ let menuId = (key)=>`menu-${encodeURIComponent(key)}`;
535
+ // A card opens its dialog, `actions.open`, and its menu (a right-click, a
536
+ // long press) offers the rest. It carries just the name, status and one line.
537
+ let card = (env, face, line, key, actions, stands)=>/*#__PURE__*/ h(Fragment, {
538
+ key
539
+ }, /*#__PURE__*/ h(Card, {
540
+ mod: 'button',
541
+ ...actionProps(actions.open),
542
+ ...menuOf(menuId(key))
543
+ }, heading(face.title, {
544
+ mark: logo(face, env),
545
+ status: stands
546
+ }), line ? /*#__PURE__*/ h(Card.Sub, null, line) : null), /*#__PURE__*/ h(Offered, {
547
+ id: menuId(key),
548
+ label: face.title,
549
+ actions
550
+ }));
551
+ let serviceKey = (name)=>`service:${name}`;
552
+ let serviceFace = (name)=>({
553
+ name,
554
+ title: name,
555
+ logo: '',
556
+ image: ''
557
+ });
558
+ let serviceLine = (s)=>[
559
+ 'Signed in with your yaks.app account ',
560
+ /*#__PURE__*/ h(Time, {
561
+ at: new Date(s.connectedAt * 1000).toISOString()
562
+ }),
563
+ '.'
564
+ ];
565
+ // The link a card's button follows: this page, opened on one thing.
566
+ let openedOn = (action, value)=>`${action}#${encodeURIComponent(value)}`;
567
+ let retainedKey = (one)=>`credential:${one.id}`;
568
+ let retainedLine = (one)=>[
569
+ 'Saved ',
570
+ /*#__PURE__*/ h(Time, {
571
+ at: new Date(one.at).toISOString()
572
+ }),
573
+ '. Kept privately until restored or permanently erased.'
574
+ ];
575
+ let credentialTrash = (href, open, cards)=>/*#__PURE__*/ h('div', {
576
+ className: 'Connection_Trash'
577
+ }, /*#__PURE__*/ h(Button, {
578
+ href,
579
+ mod: 'quiet',
580
+ 'aria-controls': 'credential-trash',
581
+ 'aria-expanded': open
582
+ }, 'Trash'), /*#__PURE__*/ h('div', {
583
+ id: 'credential-trash',
584
+ className: 'Connection_TrashItems',
585
+ hidden: !open
586
+ }, open && /*#__PURE__*/ h(Answer, {
587
+ answered: {
588
+ rows: cards ?? [],
589
+ ready: !!cards
590
+ },
591
+ empty: 'No saved credentials in the trash.',
592
+ loading: 'Loading trash…',
593
+ name: 'trash',
594
+ children: (kept)=>/*#__PURE__*/ h(Cards, null, kept)
595
+ })));
596
+ // What each of a server's states says, beside its name.
597
+ let MCP_STATE = {
598
+ open: [
599
+ 'Connected',
600
+ 'positive'
601
+ ],
602
+ machine: [
603
+ 'On your machine',
604
+ 'positive'
605
+ ],
606
+ connected: [
607
+ 'Connected',
608
+ 'positive'
609
+ ],
610
+ needed: [
611
+ 'Waiting for a key or sign-in',
612
+ 'negative'
613
+ ],
614
+ broken: [
615
+ 'Its key or sign-in was refused',
616
+ 'negative'
617
+ ],
618
+ unavailable: [
619
+ 'Unavailable',
620
+ 'negative'
621
+ ]
622
+ };
623
+ // One grant's button on the connections page: the app, the source and the
624
+ // act, `source-grant` or `source-revoke`.
625
+ let granting = (action, a, at, act, label)=>/*#__PURE__*/ h(ConnectionForm, {
626
+ method: 'post',
627
+ action,
628
+ className: 'Card_Form'
629
+ }, held('app', a.eid), held('at', at), press(act, label, act == 'source-revoke'));
630
+ // An app asking the person for what they connected (`./api/allow`), at the
631
+ // top of their connections page: each source it asks for, allowed or not.
632
+ let sourceAsk = (ask, action, env)=>{
633
+ let friends = ask.at == FRIENDS_ACCESS;
634
+ return /*#__PURE__*/ h(Card, {
635
+ id: 'grant'
636
+ }, /*#__PURE__*/ h(Card.Title, null, friends ? `Let ${ask.app.title} see your friends?` : `${ask.app.title} requests access to a connection`), /*#__PURE__*/ h(Card.Sub, null, friends ? `${ask.app.title} can read your confirmed friends and their visible online status, and send play invitations on your behalf. You can remove access in Connections.` : `${ask.app.title} can call the tools of an approved connection on your behalf only while you use the app. Other users cannot use your connection.`), ask.sources.length ? ask.sources.map((src)=>/*#__PURE__*/ h(Card.Sub, {
637
+ as: 'div'
638
+ }, /*#__PURE__*/ h('strong', null, /*#__PURE__*/ h(Logo, null, src.title)), ` ${src.about} `, src.granted ? granting(action, ask.app, src.at, 'source-revoke', 'Stop') : granting(action, ask.app, src.at, 'source-grant', 'Allow'))) : /*#__PURE__*/ h(Card.Sub, null, 'No matching connection. Add a connection below before granting app access.'), /*#__PURE__*/ h(Card.Sub, null, /*#__PURE__*/ h('a', {
639
+ href: `https://${spaceHost(env, ask.app.space)}/${ask.app.slug}/`
640
+ }, `Back to ${ask.app.title}`)));
641
+ };
642
+ let friendsAccess = (apps, action)=>/*#__PURE__*/ h(Card, null, heading('Friends access'), apps.map((app)=>/*#__PURE__*/ h(Card.Sub, {
643
+ key: app.eid
644
+ }, app.title, granting(action, app, FRIENDS_ACCESS, 'source-revoke', 'Remove access'))));
645
+ // What a server waiting on its credential offers: a box for its key, or a
646
+ // button that starts its sign-in (`signin` on its connection).
647
+ let mcpCredential = (s, on, action, redirect)=>{
648
+ if (s.status != 'needed' && s.status != 'broken') return null;
649
+ if (s.keyed) {
650
+ return on ? /*#__PURE__*/ h(ConnectionForm, {
651
+ method: 'post',
652
+ action
653
+ }, held('server', s.id), labeled(`mcp-header-${s.id}`, 'Header', /*#__PURE__*/ h(Field, {
654
+ id: `mcp-header-${s.id}`,
655
+ name: 'header',
656
+ value: s.header ?? '',
657
+ placeholder: 'Authorization'
658
+ }), 'The header its key goes in, such as X-API-Key. Left empty, it is sent as a bearer token.'), keyBox(`mcp-key-${s.id}`, 'Its key', press('mcp-key', 'Save', false))) : /*#__PURE__*/ h(Card.Sub, null, 'Saving connection keys is currently unavailable.');
659
+ }
660
+ return s.connection ? [
661
+ /*#__PURE__*/ h(ConnectionForm, {
662
+ method: 'post',
663
+ action
664
+ }, held('connection', s.connection), /*#__PURE__*/ h(Form.Actions, null, press('signin', `Sign in to ${s.name}`, false))),
665
+ on ? mcpClient(s, action, redirect) : null
666
+ ] : null;
667
+ };
668
+ // A box for the OAuth client a server signs in as, for a server that takes
669
+ // only clients it knows: one made in its developer portal.
670
+ let mcpClient = (s, action, redirect)=>/*#__PURE__*/ h(More, null, /*#__PURE__*/ h(More.Summary, null, 'Sign in with your own OAuth client'), /*#__PURE__*/ h(More.Body, null, /*#__PURE__*/ h(ConnectionForm, {
671
+ method: 'post',
672
+ action
673
+ }, held('server', s.id), labeled(`mcp-client-${s.id}`, 'Client id', /*#__PURE__*/ h(Field, {
674
+ id: `mcp-client-${s.id}`,
675
+ placeholder: 'Paste the ID from your provider',
676
+ name: 'client_id',
677
+ required: true
678
+ })), labeled(`mcp-client-secret-${s.id}`, 'Client secret', /*#__PURE__*/ h(Field, {
679
+ id: `mcp-client-secret-${s.id}`,
680
+ placeholder: 'Paste the secret from your provider',
681
+ name: 'client_secret',
682
+ type: 'password',
683
+ autocomplete: 'off'
684
+ }), `Its redirect URI is ${redirect}. The secret is kept in the vault and never shown again.`), /*#__PURE__*/ h(Form.Actions, null, press('mcp-client', 'Save', false)))));
685
+ let mcpForm = (action, id, kids, part, at = {})=>/*#__PURE__*/ h(ConnectionForm, {
686
+ method: 'post',
687
+ action,
688
+ className: part,
689
+ ...at
690
+ }, held('server', id), kids);
691
+ let mcpKey = (s)=>`mcp:${s.id}`;
692
+ let mcpStatus = (s)=>s.trashed ? status('In trash') : s.enabled ? status(...MCP_STATE[s.status]) : status('Off');
693
+ let mcpLine = (s)=>s.machine ? `${s.url} on your machine` : s.url;
694
+ let mcpDetails = (s, m, on, action, chooseTools, alternative, close, actions)=>{
695
+ let form = (kids, part)=>mcpForm(action, s.id, kids, part);
696
+ // An action's own form, which its menu sends too.
697
+ let sending = (a, kids, part)=>a?.submits ? mcpForm(action, s.id, kids, part, {
698
+ id: a.submits
699
+ }) : null;
700
+ let { power, share, remove, restore } = actions;
701
+ let tools = ()=>{
702
+ let t = m.tools?.server == s.id ? m.tools : undefined;
703
+ if (!t) {
704
+ return /*#__PURE__*/ h(Button, {
705
+ href: chooseTools,
706
+ mod: 'quiet'
707
+ }, 'Choose its tools');
708
+ }
709
+ return /*#__PURE__*/ h(Answer, {
710
+ answered: {
711
+ rows: t.list ?? [],
712
+ ready: true,
713
+ refused: t.failed && 'Refresh the page to try again.'
714
+ },
715
+ empty: 'This server offers no tools',
716
+ failed: 'The tools could not load.',
717
+ children: (list)=>toolsForm(list)
718
+ });
719
+ };
720
+ let toolsForm = (list)=>form([
721
+ /*#__PURE__*/ h(Card.Sub, null, 'The tools your agents and apps may use:'),
722
+ list.map((tool)=>/*#__PURE__*/ h(Check, null, /*#__PURE__*/ h(Check.Input, {
723
+ type: 'checkbox',
724
+ name: 'tool',
725
+ value: tool.name,
726
+ checked: tool.allowed
727
+ }), tool.title, tool.description ? /*#__PURE__*/ h(Check.Note, null, ` ${tool.description}`) : null)),
728
+ /*#__PURE__*/ h(Form.Actions, null, press('mcp-tools', 'Save tools', false))
729
+ ]);
730
+ let head = /*#__PURE__*/ h(Modal.Head, {
731
+ title: s.name,
732
+ mark: logo(s),
733
+ status: mcpStatus(s),
734
+ close
735
+ });
736
+ if (s.trashed) {
737
+ return /*#__PURE__*/ h(Modal.Body, null, head, /*#__PURE__*/ h(Modal.Main, null, /*#__PURE__*/ h(Card.Sub, null, mcpLine(s)), restore ? sending(restore, /*#__PURE__*/ h(Form.Actions, null, pressed(restore, false))) : null));
738
+ }
739
+ return /*#__PURE__*/ h(Modal.Body, null, head, /*#__PURE__*/ h(Modal.Main, null, /*#__PURE__*/ h(Modal.Actions, {
740
+ 'aria-label': 'Actions'
741
+ }, power ? sending(power, pressed(power), 'Card_Form') : null, remove ? sending(remove, pressed(remove), 'Card_Form') : null), /*#__PURE__*/ h(Card.Sub, null, mcpLine(s)), s.machine ? null : /*#__PURE__*/ h(Card.Sub, {
742
+ as: 'div'
743
+ }, s.everyone ? 'The space Operator uses your sign-in or key when working with anyone in the space. ' : 'The space Operator uses the MCP server only when working with you. ', share ? sending(share, pressed(share), 'Card_Form') : null), s.header ? /*#__PURE__*/ h(Card.Sub, null, `Its key goes in the ${s.header} header.`) : null, mcpCredential(s, on, action, m.redirect), s.alternative ? /*#__PURE__*/ h(Notice, null, 'This MCP server cannot sign in through yaks.app. ', alternative ? /*#__PURE__*/ h('a', {
744
+ href: alternative
745
+ }, `Open ${s.alternative.title}`) : null) : s.enabled ? tools() : null, /*#__PURE__*/ h(More, null, /*#__PURE__*/ h(More.Summary, null, 'Rename'), /*#__PURE__*/ h(More.Body, null, form(/*#__PURE__*/ h(Form.Line, null, /*#__PURE__*/ h(Field, {
746
+ name: 'name',
747
+ value: s.name,
748
+ required: true,
749
+ 'aria-label': 'Name',
750
+ placeholder: 'e.g. Calendar tools'
751
+ }), press('mcp-name', 'Rename', false))))), s.apps.map((a)=>/*#__PURE__*/ h(Card.Sub, null, `Used by ${a.title} `, granting(action, a, `mcp:${s.id}`, 'source-revoke', 'Stop')))));
752
+ };
753
+ let addMcp = (on, action, redirect)=>/*#__PURE__*/ h(ConnectionForm, {
754
+ method: 'post',
755
+ action
756
+ }, held('do', 'mcp-add'), labeled('mcp-url', 'Address', /*#__PURE__*/ h(Field, {
757
+ id: 'mcp-url',
758
+ name: 'url',
759
+ inputmode: 'url',
760
+ autocomplete: 'off',
761
+ spellcheck: 'false',
762
+ required: true,
763
+ placeholder: 'https://example.com/mcp'
764
+ }), 'yaks.app names the server and checks whether the server requires a sign-in or key.'), labeled('mcp-for-everyone', 'Who can use the server through the space Operator', [
765
+ [
766
+ 'everyone',
767
+ 'Everyone the Operator works with, using your sign-in or key'
768
+ ],
769
+ [
770
+ 'me',
771
+ 'Only me'
772
+ ]
773
+ ].map(([value, label])=>/*#__PURE__*/ h(Check, null, /*#__PURE__*/ h(Check.Input, {
774
+ type: 'radio',
775
+ name: 'for',
776
+ id: `mcp-for-${value}`,
777
+ value
778
+ }), label)), 'Left unchosen: only you for a server you sign in to, everyone for one that takes a key or nothing.'), /*#__PURE__*/ h(More, null, /*#__PURE__*/ h(More.Summary, null, 'Advanced'), /*#__PURE__*/ h(More.Body, null, labeled('mcp-name', 'Name', /*#__PURE__*/ h(Field, {
779
+ id: 'mcp-name',
780
+ name: 'name',
781
+ placeholder: 'e.g. Calendar tools'
782
+ }), 'Leave blank to use the server’s name or hostname.'), labeled('mcp-client', 'OAuth client id', /*#__PURE__*/ h(Field, {
783
+ id: 'mcp-client',
784
+ name: 'client_id',
785
+ placeholder: 'Paste the ID from your provider'
786
+ }), `For a server you sign in to that registers no client for yaks.app: one made in its developer portal, with the redirect URI ${redirect}.`), on ? labeled('mcp-client-secret', 'OAuth client secret', /*#__PURE__*/ h(Field, {
787
+ id: 'mcp-client-secret',
788
+ placeholder: 'Paste the secret from your provider',
789
+ name: 'client_secret',
790
+ type: 'password',
791
+ autocomplete: 'off'
792
+ }), 'Kept in the vault and never shown again.') : null, on ? labeled('mcp-key', 'Key', /*#__PURE__*/ h(Field, {
793
+ id: 'mcp-key',
794
+ placeholder: 'Paste the server’s access key',
795
+ name: 'key',
796
+ type: 'password',
797
+ autocomplete: 'off'
798
+ }), 'Enter the header for the server’s key. Leave blank to let yaks.app check whether the server requires a key.') : null, labeled('mcp-header', 'Header', /*#__PURE__*/ h(Field, {
799
+ id: 'mcp-header',
800
+ name: 'header',
801
+ placeholder: 'Authorization'
802
+ }), 'The header its key goes in, such as X-API-Key. Left empty, a key is sent as a bearer token.'), /*#__PURE__*/ h(Check, null, /*#__PURE__*/ h(Check.Input, {
803
+ type: 'checkbox',
804
+ name: 'machine',
805
+ id: 'mcp-machine',
806
+ value: 'here'
807
+ }), 'Connect to a server on the space’s machine through the tunnel. Enter the server path, such as /mcp. Only you can use the connection, and no key is required.'))), /*#__PURE__*/ h(Form.Actions, null, /*#__PURE__*/ h(Button, {
808
+ type: 'submit',
809
+ mod: 'go'
810
+ }, 'Add')));
811
+ let NEW_MCP = 'new:mcp';
812
+ let CUSTOM_CONNECTION = 'new:custom';
813
+ /** Whether `c` holds what `opened` names, or was read for it: a dialog the
814
+ * page draws without asking the server again. */ export let holds = (c, opened)=>opened == NEW_MCP || opened == CUSTOM_CONNECTION || c.open == opened || c.list.some((one)=>one.eid == opened || one.integration == opened) || c.borrowed.some((b)=>b.eid == opened) || !!c.mcp?.servers.some((s)=>mcpKey(s) == opened) || c.services.some((s)=>serviceKey(s.name) == opened) || !!c.trash?.some((one)=>retainedKey(one) == opened) || [
815
+ c.asked,
816
+ ...c.built
817
+ ].some((i)=>i?.name == opened);
818
+ // An MCP server's OAuth connection supplies its grant. The server owns its
819
+ // card and dialog, including links from agents that name the credential.
820
+ let serverOf = (c, one)=>c.mcp?.servers.find((s)=>s.connection == one.eid || mcpKey(s) == one.integration);
821
+ let integrationsOf = (c)=>c.list.filter((one)=>!serverOf(c, one));
822
+ // A connection's dialog is named by its service, or by its eid when the
823
+ // space holds more than one of that service.
824
+ let keyIn = (integrations, one)=>integrations.filter((c)=>c.integration == one.integration).length > 1 ? one.eid : one.integration;
825
+ // A detail read can carry a catalog description of a service the page
826
+ // already holds. Its link opens the connection with its own controls.
827
+ let offersOf = (c)=>{
828
+ let names = new Set(c.list.map((one)=>one.integration));
829
+ return [
830
+ c.asked,
831
+ ...c.built
832
+ ].filter((i)=>!!i && !names.has(i.name));
833
+ };
834
+ /** Which of the dialog's bodies `opened` shows, by its `data-key`, and what
835
+ * the dialog is called while it shows it: what a press opens without
836
+ * drawing the page again (./connections-browser.ts). The page has no such
837
+ * body when `opened` is something `c` does not hold. */ export let chosen = (c, opened)=>{
838
+ let integrations = integrationsOf(c);
839
+ let open = opened ? c.list.find((one)=>one.eid == opened || one.integration == opened) : undefined;
840
+ let offered = opened ? offersOf(c).find((i)=>i.name == opened) : undefined;
841
+ let server = c.mcp?.servers.find((s)=>mcpKey(s) == opened) ?? (open && serverOf(c, open));
842
+ let key = server ? mcpKey(server) : offered?.name ?? (open && keyIn(integrations, open)) ?? (opened && c.borrowed.find((b)=>b.eid == opened)?.eid) ?? opened;
843
+ return {
844
+ key,
845
+ label: offered ? `Connect ${offered.face.title}` : key == NEW_MCP ? 'Add an MCP server' : key == CUSTOM_CONNECTION ? 'Add an API key' : 'Manage connection'
846
+ };
847
+ };
848
+ /** The Connections page of `view`'s space, drawn from `c`, its one dialog
849
+ * showing what `opened` names: a connection by its eid or its service's name,
850
+ * a loan, an MCP server (`mcp:<id>`), or a service to connect; by default
851
+ * what the row was read for (`c.open`, or the service it was asked to add).
852
+ * The dialog shows loading while the page reads a detail. If that read finds
853
+ * nothing, the page says so beside the list. */ export let connectionsView = (view, c, opened = c.open ?? c.asked?.name ?? null)=>{
854
+ let { env } = view;
855
+ let inspection = view.inspection;
856
+ let at = {
857
+ space: view.space.slug,
858
+ spaces: view.spaces
859
+ };
860
+ let host = spaceHost(env, at.space);
861
+ let context = new URL(enabling(inspection ?? managePath('connections', at.space), c.enable), 'https://page.invalid');
862
+ let asked = new URLSearchParams(view.ask);
863
+ let q = asked.get('q') ?? '';
864
+ let mcp = asked.get('mcp');
865
+ if (!opened && mcp) opened = `mcp:${mcp}`;
866
+ if (q) context.searchParams.set('q', q);
867
+ let trashOpen = asked.has('trash');
868
+ let pathOf = (to)=>`${to.pathname}${to.search}`;
869
+ let opening = (path, key)=>{
870
+ if (!inspection) return openedOn(path, key);
871
+ let to = new URL(path, context);
872
+ to.searchParams.set('detail', key);
873
+ return pathOf(to);
874
+ };
875
+ let ordinary = pathOf(context);
876
+ context.searchParams.set('trash', '1');
877
+ let withTrash = pathOf(context);
878
+ let action = trashOpen ? withTrash : ordinary;
879
+ let closing = inspection ? action : `${action}#`;
880
+ // The service the page was opened to add: a key to paste, or a sign-in to
881
+ // start, and which space it goes to.
882
+ let close = {
883
+ href: closing,
884
+ 'data-modal-close': '',
885
+ autofocus: true
886
+ };
887
+ let offer = (i)=>/*#__PURE__*/ h(Modal.Body, null, [
888
+ /*#__PURE__*/ h(Modal.Head, {
889
+ title: `Connect ${i.face.title}`,
890
+ mark: logo(i.face, env),
891
+ close
892
+ }),
893
+ detail(i.face, i.keyed),
894
+ to(true, inspection ? undefined : addTo(i.name)),
895
+ i.available === false ? [
896
+ /*#__PURE__*/ h(Notice, null, `${i.face.title} connections are currently unavailable.`),
897
+ /*#__PURE__*/ h(Button, {
898
+ type: 'button',
899
+ disabled: true
900
+ }, 'Connect')
901
+ ] : /*#__PURE__*/ h(ConnectionForm, {
902
+ method: 'post',
903
+ action,
904
+ ...i.keyed && {
905
+ 'data-key': `add-${i.name}`,
906
+ 'data-save': `add-${i.name}`,
907
+ 'data-save-reset': ''
908
+ }
909
+ }, held('integration', i.name), howTo(i.face, true), i.keyed ? [
910
+ held('do', 'add'),
911
+ credentialFields(i.face, `add-${i.name}`)
912
+ ] : /*#__PURE__*/ h(Form.Actions, null, signingIn(i.face, 'Connect', 'add'))),
913
+ // A service with its own MCP server is signed in to there, as a server
914
+ // this space connects (@yaks/connections/mcp), its tools the person's.
915
+ i.face.mcp && i.available !== false ? /*#__PURE__*/ h(ConnectionForm, {
916
+ method: 'post',
917
+ action
918
+ }, held('url', i.face.mcp), /*#__PURE__*/ h(Form.Actions, null, signingIn(i.face, `Sign in with your ${i.face.title} account`, 'mcp-add', i.keyed))) : null
919
+ ]);
920
+ let add = /*#__PURE__*/ h(ConnectionForm, {
921
+ method: 'post',
922
+ action,
923
+ 'data-key': 'new-api-key',
924
+ 'data-save': 'new-api-key',
925
+ 'data-save-reset': ''
926
+ }, held('do', 'add'), fieldsOf(labeled('new-name', 'Name', /*#__PURE__*/ h(Field, {
927
+ id: 'new-name',
928
+ name: 'integration',
929
+ maxlength: 60,
930
+ placeholder: 'Weather API',
931
+ required: true
932
+ })), labeled('new-hosts', 'API addresses', /*#__PURE__*/ h(Field, {
933
+ id: 'new-hosts',
934
+ name: 'hosts',
935
+ autocomplete: 'off',
936
+ spellcheck: 'false',
937
+ placeholder: 'api.example.com',
938
+ required: true
939
+ }), 'Enter the addresses from the API documentation. The API key is sent only to these addresses.'), labeled('new-key', 'API key', /*#__PURE__*/ h(Field, {
940
+ id: 'new-key',
941
+ placeholder: 'Paste your API key',
942
+ name: 'key',
943
+ type: 'password',
944
+ autocomplete: 'off',
945
+ spellcheck: 'false',
946
+ required: true
947
+ })), labeled('new-instructions', optional('How to get an API key'), /*#__PURE__*/ h(Field, {
948
+ lines: true,
949
+ id: 'new-instructions',
950
+ name: 'instructions',
951
+ placeholder: 'Where to find the API key'
952
+ })), /*#__PURE__*/ h(Save.Slot, {
953
+ label: 'Save'
954
+ })));
955
+ // What the space holds already that could replace a loan: a connected
956
+ // connection through the same service.
957
+ let mine = (b)=>c.list.find((one)=>!one.own && one.integration == b.integration && one.status == 'connected' && !one.failed && !one.each);
958
+ let servers = c.mcp?.servers ?? [];
959
+ let integrations = integrationsOf(c);
960
+ // What agents asked for and nobody connected: an app's ask, never the
961
+ // space's side of an ask each person answers with their own.
962
+ let working = (one)=>one.status == 'connected' && !one.failed;
963
+ let started = (one)=>one.status == 'needed' && !one.own && !one.each;
964
+ let asks = integrations.filter((one)=>started(one) && one.apps.length);
965
+ let pending = integrations.filter((one)=>started(one) && !one.apps.length);
966
+ // Within a group, one that needs reconnecting comes before the connected.
967
+ let rest = integrations.filter((one)=>!started(one)).toSorted((a, b)=>+working(a) - +working(b));
968
+ let keyOf = (one)=>keyIn(integrations, one);
969
+ let manage = (key)=>opening(action, key);
970
+ // What can be done with each item, declared once beside what it is: its
971
+ // card's menu and its dialog's buttons are drawn from the same.
972
+ let ofConnection = (one)=>connectionActions(one, keyOf(one), manage(keyOf(one)));
973
+ let ofBorrowed = (b)=>borrowedActions(b, b.eid, manage(b.eid), c.on, mine(b));
974
+ let ofServer = (s)=>serverActions(s, mcpKey(s), manage(mcpKey(s)));
975
+ let ofRetained = (one)=>retainedActions(one, at.space, retainedKey(one), manage(retainedKey(one)));
976
+ let opens = (label, href)=>({
977
+ open: {
978
+ label,
979
+ href
980
+ }
981
+ });
982
+ let shown = (one)=>card(env, one.face, one.each && !one.own ? `Each person connects their own, from ${one.apps.map((a)=>a.title).join(', ') || 'the app'}.` : one.lacking.length && reconnects(one) ? FULLER : one.apps.length ? `For ${one.apps.map((a)=>a.title).join(', ')}` : one.face.tagline, keyOf(one), ofConnection(one), status(one.failed ? 'Not saved' : one.each && !one.own ? 'Each person connects their own' : STATUS[one.status], one.each && !one.own ? undefined : one.status == 'connected' && !one.failed ? 'positive' : 'negative'));
983
+ let grid = (cards)=>cards.length ? /*#__PURE__*/ h(Cards, null, cards) : null;
984
+ let group = (title, ...kids)=>kids.some(Boolean) ? /*#__PURE__*/ h(Stack, null, /*#__PURE__*/ h(Group, null, title), kids) : null;
985
+ let yours = [
986
+ ...rest.filter((one)=>one.own).map(shown),
987
+ ...c.services.map((s)=>card(env, serviceFace(s.name), serviceLine(s), serviceKey(s.name), opens('Open', manage(serviceKey(s.name))), status('Connected', 'positive')))
988
+ ];
989
+ let here = [
990
+ ...rest.filter((one)=>!one.own).map(shown),
991
+ ...c.borrowed.map((b)=>card(env, b.face, `${b.app.title} borrows ${b.lender}’s`, b.eid, ofBorrowed(b), status('Borrowed', 'positive')))
992
+ ];
993
+ // The catalog: a search box over every service, what it found or the
994
+ // featured ones, and the categories to look through.
995
+ let cat = c.catalog;
996
+ let tile = (i)=>card(env, i, i.tagline, `catalog:${i.name}`, opens('Connect', opening(action, i.name)));
997
+ let finding = /*#__PURE__*/ h(ConnectionForm, {
998
+ method: 'get',
999
+ action: context.pathname,
1000
+ role: 'search',
1001
+ 'data-find': ''
1002
+ }, inspection ? [
1003
+ ...new URL(inspection, context).searchParams.entries()
1004
+ ].map(([name, value])=>/*#__PURE__*/ h(Form.Hidden, {
1005
+ key: name,
1006
+ name,
1007
+ value
1008
+ })) : null, c.enable?.length ? held('enable', c.enable.join(',')) : null, trashOpen ? held('trash', '1') : null, /*#__PURE__*/ h(Form.Line, null, /*#__PURE__*/ h(Field, {
1009
+ type: 'search',
1010
+ name: 'q',
1011
+ value: q,
1012
+ placeholder: 'Search connections',
1013
+ 'aria-label': 'Search connections',
1014
+ autocomplete: 'off'
1015
+ }), /*#__PURE__*/ h(Button, {
1016
+ type: 'submit'
1017
+ }, 'Search')));
1018
+ // A category opens the services of its kind, as a search for it.
1019
+ let browse = (k)=>{
1020
+ let to = new URL(action, context);
1021
+ to.searchParams.set('q', k.name);
1022
+ return /*#__PURE__*/ h(Chip, {
1023
+ key: k.name,
1024
+ href: pathOf(to)
1025
+ }, k.label);
1026
+ };
1027
+ // A search answers once the catalog has answered what was typed.
1028
+ let found = cat && (cat.q != q || cat.q) ? /*#__PURE__*/ h(Answer, {
1029
+ answered: {
1030
+ rows: cat.q == q ? cat.found : [],
1031
+ ready: cat.q == q
1032
+ },
1033
+ empty: [
1034
+ /*#__PURE__*/ h(Empty.Title, {
1035
+ key: 'title'
1036
+ }, `No connections match “${cat.q}”`),
1037
+ /*#__PURE__*/ h('p', {
1038
+ key: 'add'
1039
+ }, 'You can add an API key below.')
1040
+ ],
1041
+ loading: 'Searching…',
1042
+ name: 'connection-search',
1043
+ children: (shown)=>[
1044
+ /*#__PURE__*/ h(Card.Sub, {
1045
+ key: 'matched'
1046
+ }, cat.matched > shown.length ? `The first ${shown.length} of ${count(cat.matched)} connections matching “${cat.q}”.` : `${cat.matched == 1 ? 'One connection matches' : `${cat.matched} connections match`} “${cat.q}”.`),
1047
+ /*#__PURE__*/ h(Fragment, {
1048
+ key: 'found'
1049
+ }, grid(shown.map(tile)))
1050
+ ]
1051
+ }) : cat ? [
1052
+ group('Featured', grid(cat.featured.map(tile))),
1053
+ group('Categories', cat.kinds.length ? /*#__PURE__*/ h(Chips, null, cat.kinds.map(browse)) : null)
1054
+ ] : null;
1055
+ // The selected service says which space it goes to, in the space switcher
1056
+ // that offers the others.
1057
+ let current = at.spaces?.find((s)=>s.slug == at.space);
1058
+ let owned = (at.spaces ?? []).filter((s)=>s.owner);
1059
+ let spaceName = view.space.title || current?.title || at.space;
1060
+ let to = (pending, other)=>[
1061
+ /*#__PURE__*/ h(Card.Sub, null, pending ? `Available to apps in ${spaceName} once connected.` : `Connected for apps in ${spaceName}.`),
1062
+ other && current && owned.length > 1 ? /*#__PURE__*/ h('div', {
1063
+ className: 'Connect_Space'
1064
+ }, choice(current, owned, (s)=>other(s.slug), null, undefined, 'Space for the connection')) : null
1065
+ ];
1066
+ let addTo = (name)=>(slug)=>openedOn(managePath('connections', slug), name);
1067
+ let contents = (one)=>connection(one, c.on, action, close, one.own ? null : to(one.status == 'needed'), env, ofConnection(one), menuId(keyOf(one)));
1068
+ let serverTile = (s)=>card(env, serviceFace(s.name), mcpLine(s), mcpKey(s), ofServer(s), mcpStatus(s));
1069
+ let serving = (s)=>{
1070
+ let to = new URL(action, context);
1071
+ to.searchParams.set('mcp', s.id);
1072
+ return mcpDetails(s, c.mcp, c.on, action, opening(pathOf(to), mcpKey(s)), s.alternative && (c.list.some((i)=>i.integration == s.alternative?.name) || c.built.some((i)=>i.name == s.alternative?.name)) ? opening(action, s.alternative.name) : undefined, close, ofServer(s));
1073
+ };
1074
+ let offers = offersOf(c);
1075
+ let pick = chosen(c, opened);
1076
+ let additions = c.on ? [
1077
+ [
1078
+ NEW_MCP,
1079
+ /*#__PURE__*/ h(Modal.Body, null, /*#__PURE__*/ h(Modal.Head, {
1080
+ title: 'Add an MCP server',
1081
+ close
1082
+ }), /*#__PURE__*/ h(Modal.Main, null, addMcp(c.on, action, c.mcp?.redirect)))
1083
+ ],
1084
+ [
1085
+ CUSTOM_CONNECTION,
1086
+ /*#__PURE__*/ h(Modal.Body, null, /*#__PURE__*/ h(Modal.Head, {
1087
+ title: 'Add an API key',
1088
+ close
1089
+ }), /*#__PURE__*/ h(Modal.Main, null, add))
1090
+ ]
1091
+ ] : [];
1092
+ let bodies = [
1093
+ ...offers.map((i)=>[
1094
+ i.name,
1095
+ offer(i)
1096
+ ]),
1097
+ ...integrations.map((one)=>[
1098
+ keyOf(one),
1099
+ contents(one)
1100
+ ]),
1101
+ ...c.borrowed.map((b)=>[
1102
+ b.eid,
1103
+ borrowing(b, env, c.on, action, close, ofBorrowed(b), mine(b))
1104
+ ]),
1105
+ ...servers.map((s)=>[
1106
+ mcpKey(s),
1107
+ serving(s)
1108
+ ]),
1109
+ ...c.services.map((s)=>[
1110
+ serviceKey(s.name),
1111
+ /*#__PURE__*/ h(Modal.Body, null, /*#__PURE__*/ h(Modal.Head, {
1112
+ title: s.name,
1113
+ mark: logo(serviceFace(s.name), env),
1114
+ status: status('Connected', 'positive'),
1115
+ close
1116
+ }), /*#__PURE__*/ h(Modal.Main, null, /*#__PURE__*/ h(Card.Sub, null, serviceLine(s))))
1117
+ ]),
1118
+ ...(c.trash ?? []).map((one)=>{
1119
+ let { restore, erase } = ofRetained(one);
1120
+ return [
1121
+ retainedKey(one),
1122
+ /*#__PURE__*/ h(Modal.Body, null, /*#__PURE__*/ h(Modal.Head, {
1123
+ title: one.integration,
1124
+ mark: logo(serviceFace(one.integration), env),
1125
+ status: status('In trash'),
1126
+ close
1127
+ }), /*#__PURE__*/ h(Modal.Main, null, /*#__PURE__*/ h(Card.Sub, null, retainedLine(one)), /*#__PURE__*/ h(ConnectionForm, {
1128
+ method: 'post',
1129
+ action,
1130
+ id: restore.submits
1131
+ }, held('retained', one.id), /*#__PURE__*/ h(Form.Actions, null, pressed(restore, false), pressed(erase)))))
1132
+ ];
1133
+ }),
1134
+ ...additions
1135
+ ];
1136
+ if (opened && !holds(c, opened)) {
1137
+ bodies.push([
1138
+ opened,
1139
+ /*#__PURE__*/ h(Modal.Body, null, [
1140
+ /*#__PURE__*/ h(Modal.Head, {
1141
+ title: 'Connection details',
1142
+ close
1143
+ }),
1144
+ /*#__PURE__*/ h(Loading, {
1145
+ state: 'connection',
1146
+ as: 'p'
1147
+ }, 'Loading connection…')
1148
+ ])
1149
+ ]);
1150
+ }
1151
+ let selected = bodies.find(([k])=>k == pick.key);
1152
+ let showing = selected?.[0];
1153
+ let missing = opened && opened == c.open && !selected;
1154
+ // Every body is kept in the page, showing only while opened, so what is
1155
+ // typed into one stays when it closes and its drafts are bound at once.
1156
+ let modal = /*#__PURE__*/ h(Modal, {
1157
+ open: !!showing,
1158
+ 'aria-modal': true,
1159
+ id: 'connect',
1160
+ 'data-modal-key': showing,
1161
+ 'aria-label': showing ? pick.label : 'Manage connection'
1162
+ }, // Drawn while closed too, so a press opens a body without drawing the
1163
+ // dialog again.
1164
+ /*#__PURE__*/ h(Modal.Backdrop, {
1165
+ href: closing,
1166
+ 'data-modal-close': '',
1167
+ tabIndex: -1,
1168
+ 'aria-label': 'Close connection details'
1169
+ }), bodies.map(([k, body])=>/*#__PURE__*/ cloneElement(body, {
1170
+ key: k,
1171
+ 'data-key': k,
1172
+ 'data-modal-key': k,
1173
+ hidden: body != selected?.[1]
1174
+ })));
1175
+ let catalog = /*#__PURE__*/ h(Stack, {
1176
+ id: 'find'
1177
+ }, /*#__PURE__*/ h(Group, null, 'Available connections'), finding, c.on ? group('Other connections', grid([
1178
+ card(env, serviceFace('MCP server'), 'Connect by its address', NEW_MCP, opens('Add', opening(action, NEW_MCP))),
1179
+ card(env, serviceFace('API key'), 'For a service that isn’t listed', CUSTOM_CONNECTION, opens('Add', opening(action, CUSTOM_CONNECTION)))
1180
+ ])) : null, /*#__PURE__*/ h(Stack, {
1181
+ 'data-found': ''
1182
+ }, found));
1183
+ let liveServers = servers.filter((s)=>!s.trashed);
1184
+ let trashedServers = servers.filter((s)=>s.trashed);
1185
+ let content = /*#__PURE__*/ h(Inspection.Provider, {
1186
+ value: !!inspection
1187
+ }, /*#__PURE__*/ h(Stack, {
1188
+ inert: selected ? true : undefined,
1189
+ 'data-connections': '',
1190
+ 'data-bind-save': inspection ? undefined : ''
1191
+ }, [
1192
+ /*#__PURE__*/ h(ErrorNotice, {
1193
+ 'data-connections-status': ''
1194
+ }),
1195
+ missing ? /*#__PURE__*/ h(ErrorNotice, {
1196
+ 'data-connections-missing': ''
1197
+ }, 'The requested connection is unavailable. Choose a connection below.') : null,
1198
+ c.plan ? full(view.space.slug, c.plan, !!inspection) : null,
1199
+ c.mcp?.ask ? sourceAsk(c.mcp.ask, action, env) : null,
1200
+ c.mcp?.friends?.length ? friendsAccess(c.mcp.friends, action) : null,
1201
+ c.on ? null : /*#__PURE__*/ h(Card, null, heading('Connections are unavailable'), /*#__PURE__*/ h(Card.Sub, null, 'API keys and sign-in details can’t be saved right now.')),
1202
+ // What needs connecting leads, so nobody scrolls past what is
1203
+ // connected to find it.
1204
+ group('Requested by agents', grid(asks.map(shown))),
1205
+ group('Finish connecting', grid(pending.map(shown))),
1206
+ group('Yours', grid(yours)),
1207
+ group(yours.length ? `Connected for ${host}` : 'Connected', grid(here)),
1208
+ group('MCP servers', grid(liveServers.map(serverTile))),
1209
+ catalog,
1210
+ trashedServers.length ? /*#__PURE__*/ h(More, null, /*#__PURE__*/ h(More.Summary, null, 'MCP servers in the trash'), /*#__PURE__*/ h(More.Body, null, grid(trashedServers.map(serverTile)))) : null,
1211
+ c.on || trashOpen ? credentialTrash(trashOpen ? ordinary : withTrash, trashOpen, c.trash?.map((one)=>card(env, serviceFace(one.integration), retainedLine(one), retainedKey(one), ofRetained(one), status('In trash')))) : null
1212
+ ]), modal);
1213
+ return content;
1214
+ };
1215
+ //# sourceMappingURL=connections-view.js.map