@popmelt.com/core 0.36.0 → 0.37.1

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 (222) hide show
  1. package/README.md +106 -23
  2. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  3. package/claude-plugin/skills/popmelt-core/SKILL.md +6 -1
  4. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  5. package/codex-plugin/skills/popmelt-core/SKILL.md +6 -1
  6. package/dist/ExploreAttachment-6AIMXC2K.mjs +1 -0
  7. package/dist/PagePreviewLayer-SIH7DDBF.mjs +1 -0
  8. package/dist/ParticipantRuntime-RTMEFDKF.mjs +1 -0
  9. package/dist/PhoneHostGate-RZRGWS2E.mjs +1 -0
  10. package/dist/PopmeltTasteConnectedPane-FAJXJEQQ.mjs +1 -0
  11. package/dist/PreviewRuntime-MW33PLMV.mjs +1 -0
  12. package/dist/{QueuedReplies-ESIFFRKS.mjs → QueuedReplies-4APDDNQX.mjs} +1 -1
  13. package/dist/SamplePlacementOverlay-2VLBRDPZ.mjs +1 -0
  14. package/dist/ShareProjectPane-OR2LS2A3.mjs +1 -0
  15. package/dist/SuppliedContext-SAQKEDWW.mjs +1 -0
  16. package/dist/ThreadErrorCard-OSHIWSHR.mjs +1 -0
  17. package/dist/ThreadPanel-CMC5Q6WM.mjs +1 -0
  18. package/dist/adapter-react-three-fiber.d.mts +20 -3
  19. package/dist/adapter-react-three-fiber.mjs +1 -1
  20. package/dist/adapter-three.d.mts +53 -2
  21. package/dist/adapter-three.mjs +45 -1
  22. package/dist/bridge-entry.mjs +1 -1
  23. package/dist/bridgeSSEStream-6OMAFDFW.mjs +1 -0
  24. package/dist/bridgeWebSocketStream-WIOGOPJW.mjs +1 -0
  25. package/dist/browser-runtime-5W2ZKUCZ.mjs +1 -0
  26. package/dist/browser.d.mts +4 -4
  27. package/dist/browser.mjs +1 -1
  28. package/dist/canvas-chat-note-O3USBECW.mjs +1 -0
  29. package/dist/checkFixture-DQPLFEUL.mjs +1 -0
  30. package/dist/{chunk-AH6LZOQC.mjs → chunk-3PSB5BST.mjs} +1 -1
  31. package/dist/chunk-3QYA5LGF.mjs +1 -0
  32. package/dist/chunk-3VOEPWRL.mjs +1 -0
  33. package/dist/chunk-4LVGVKSS.mjs +1 -0
  34. package/dist/chunk-5GEBVPTA.mjs +1 -0
  35. package/dist/chunk-5IZHN3A7.mjs +1 -0
  36. package/dist/chunk-6EO73WJN.mjs +1 -0
  37. package/dist/chunk-6XEEXK3U.mjs +1 -0
  38. package/dist/chunk-76WRZ2NH.mjs +1 -0
  39. package/dist/chunk-7EISKUU7.mjs +1 -0
  40. package/dist/chunk-7JWADHTH.mjs +1 -0
  41. package/dist/chunk-A4GARXVQ.mjs +1 -0
  42. package/dist/chunk-AAMUU2QA.mjs +1 -0
  43. package/dist/chunk-AGCS65LT.mjs +1 -0
  44. package/dist/{chunk-RR4SHK7O.mjs → chunk-AOTDTBQO.mjs} +1 -1
  45. package/dist/chunk-ATLUO4G7.mjs +1 -0
  46. package/dist/chunk-AYZUOBFI.mjs +1 -0
  47. package/dist/chunk-B22WBEQC.mjs +1 -0
  48. package/dist/chunk-B4DYUYX4.mjs +1 -0
  49. package/dist/{chunk-NDGM4DAP.mjs → chunk-BYASSHKJ.mjs} +1 -1
  50. package/dist/chunk-C2ZSNUXQ.mjs +1 -0
  51. package/dist/chunk-CCFTIBCJ.mjs +1 -0
  52. package/dist/chunk-CIKFUS7J.mjs +1 -0
  53. package/dist/chunk-CK3CDA3L.mjs +1 -0
  54. package/dist/chunk-CVVD2OMQ.mjs +1 -0
  55. package/dist/chunk-EBJ23A7F.mjs +1 -0
  56. package/dist/chunk-ECMLCGAM.mjs +1 -0
  57. package/dist/chunk-EFGQKWSZ.mjs +1 -0
  58. package/dist/chunk-EILBHZDX.mjs +1 -0
  59. package/dist/{chunk-DOCRI237.mjs → chunk-ELKVFX2O.mjs} +1 -1
  60. package/dist/{chunk-EXIUW3JX.mjs → chunk-EUFR7R5Q.mjs} +1 -1
  61. package/dist/chunk-EZVFCJEG.mjs +1 -0
  62. package/dist/chunk-F3VZQGPM.mjs +1 -0
  63. package/dist/chunk-FHCKFQBY.mjs +1 -0
  64. package/dist/chunk-FJWWBKCQ.mjs +1 -0
  65. package/dist/chunk-FON4QY7P.mjs +1 -0
  66. package/dist/chunk-GAUQZAW6.mjs +1 -0
  67. package/dist/chunk-GLF7Z5IR.mjs +1 -0
  68. package/dist/chunk-HAN6CUNB.mjs +1 -0
  69. package/dist/chunk-HAZXZ5TU.mjs +1 -0
  70. package/dist/chunk-HBFSPXIC.mjs +1 -0
  71. package/dist/chunk-HKHZBKAN.mjs +1 -0
  72. package/dist/chunk-HPU2UMVE.mjs +1 -0
  73. package/dist/{chunk-YHYFWNN6.mjs → chunk-IAXSC2ZN.mjs} +1 -1
  74. package/dist/chunk-IW7V7WNL.mjs +1 -0
  75. package/dist/chunk-JEGBAHYK.mjs +1 -0
  76. package/dist/chunk-JJK4LAN6.mjs +1 -0
  77. package/dist/chunk-JSNK6NX7.mjs +1 -0
  78. package/dist/chunk-KCDHP4N3.mjs +1 -0
  79. package/dist/chunk-KF73S7MG.mjs +1 -0
  80. package/dist/chunk-KXVXWEN4.mjs +1 -0
  81. package/dist/chunk-L6S66APQ.mjs +1 -0
  82. package/dist/chunk-LH7HKUCK.mjs +1 -0
  83. package/dist/chunk-LOUWY55X.mjs +1 -0
  84. package/dist/chunk-MPEVFQ43.mjs +1 -0
  85. package/dist/{chunk-57FM7XQV.mjs → chunk-NI77Y3WC.mjs} +1 -1
  86. package/dist/chunk-O2ZQFLNV.mjs +1 -0
  87. package/dist/chunk-OA63PYHZ.mjs +1 -0
  88. package/dist/chunk-OIKFQ2FV.mjs +1 -0
  89. package/dist/chunk-OREALBUO.mjs +1 -0
  90. package/dist/chunk-OVZ4CQGM.mjs +1 -0
  91. package/dist/chunk-PRPXMDZ7.mjs +1 -0
  92. package/dist/chunk-PWQB3FIW.mjs +1 -0
  93. package/dist/chunk-QE5XGXIA.mjs +30 -0
  94. package/dist/chunk-QV5G3XRE.mjs +1 -0
  95. package/dist/chunk-ROKRMYFR.mjs +1 -0
  96. package/dist/chunk-SBD7GQDN.mjs +1 -0
  97. package/dist/chunk-SKKHZBOJ.mjs +1 -0
  98. package/dist/chunk-SOGN7S54.mjs +1 -0
  99. package/dist/chunk-SOT33EQ4.mjs +1 -0
  100. package/dist/chunk-SUAHDXJZ.mjs +1 -0
  101. package/dist/chunk-TCGXG7UA.mjs +1 -0
  102. package/dist/chunk-TIAPJGX2.mjs +1 -0
  103. package/dist/chunk-TMSGNHXH.mjs +1 -0
  104. package/dist/chunk-UTP56NCY.mjs +1 -0
  105. package/dist/chunk-UX3DTCHL.mjs +1 -0
  106. package/dist/chunk-VVNZ5IEG.mjs +24 -0
  107. package/dist/chunk-W2QQVB2H.mjs +1 -0
  108. package/dist/chunk-WF3YGZPI.mjs +1 -0
  109. package/dist/chunk-WJHYEACV.mjs +1 -0
  110. package/dist/chunk-WP2SHSCG.mjs +1 -0
  111. package/dist/chunk-X6I6KQDG.mjs +1 -0
  112. package/dist/chunk-XJJDBMZI.mjs +1 -0
  113. package/dist/chunk-YMWXWXPV.mjs +1 -0
  114. package/dist/chunk-YYODLRV3.mjs +1 -0
  115. package/dist/cli.mjs +1 -1
  116. package/dist/codex-note-context-6QGJT2V3.mjs +1 -0
  117. package/dist/codex-project-3GJPU63O.mjs +1 -0
  118. package/dist/codex-session-registry-YNU6LEVH.mjs +1 -0
  119. package/dist/codex-store-mount-F6RBC77X.mjs +1 -0
  120. package/dist/{dev-server-DtX2_HCa.d.mts → dev-server-BRrhkH5t.d.mts} +11 -1
  121. package/dist/dev-server-KWVIMLLL.mjs +1 -0
  122. package/dist/focus-inspection-F25RXWZV.mjs +1 -0
  123. package/dist/guest-admission.d.mts +2 -0
  124. package/dist/guest-admission.mjs +1 -0
  125. package/dist/guest-live-canvas.d.mts +2 -0
  126. package/dist/guest-live-canvas.mjs +1 -0
  127. package/dist/index.d.mts +6 -6
  128. package/dist/index.mjs +1 -1
  129. package/dist/invitationLink-LUIIOAEZ.mjs +1 -0
  130. package/dist/inviteQr-HVHH45SN.mjs +1 -0
  131. package/dist/inviteQr-U77MLSEQ.mjs +1 -0
  132. package/dist/media.d.mts +3 -3
  133. package/dist/memory-store.d.mts +5 -1
  134. package/dist/page-interaction-TV3P6B3X.mjs +1 -0
  135. package/dist/page-planes-2ZepTpen.d.mts +817 -0
  136. package/dist/participantBootstrap-BuTrTQbo.d.mts +22 -0
  137. package/dist/{participantBootstrap-DFJlcKRI.d.mts → participantBootstrap-CSLsiQ-C.d.mts} +9 -3
  138. package/dist/peer-client-7X52EKMX.mjs +1 -0
  139. package/dist/plain-html-EF7MUNRZ.mjs +1 -0
  140. package/dist/plugin-astro.d.mts +5 -2
  141. package/dist/plugin-astro.mjs +1 -1
  142. package/dist/plugin-next.mjs +1 -1
  143. package/dist/plugin-nuxt.d.mts +4 -2
  144. package/dist/plugin-nuxt.mjs +1 -1
  145. package/dist/plugin-vite.d.mts +69 -9
  146. package/dist/plugin-vite.mjs +1 -1
  147. package/dist/qr-encoder.mjs +3 -0
  148. package/dist/server.d.mts +45 -20
  149. package/dist/server.mjs +1 -1
  150. package/dist/shared-page-GO76UP7I.mjs +1 -0
  151. package/dist/{subjects-DdavjSTL.d.mts → subjects-BQFCkehy.d.mts} +84 -1
  152. package/dist/taste-proposal-session-DBOUA54V.mjs +1 -0
  153. package/dist/toolbarFonts-GVPRHJGB.mjs +1 -0
  154. package/dist/{types-g9YCBx4Z.d.mts → types-CggBG-H6.d.mts} +1 -137
  155. package/dist/{video-adapter-DB6Hex1f.d.mts → video-adapter-C0kSwUir.d.mts} +2 -2
  156. package/dist/workspace-snapshot-6LN7U2NJ.mjs +1 -0
  157. package/package.json +45 -22
  158. package/samples/README.md +32 -0
  159. package/samples/build.d.mts +16 -0
  160. package/samples/build.mjs +138 -0
  161. package/dist/ExploreAttachment-H5WPEAZB.mjs +0 -1
  162. package/dist/PagePreviewLayer-WCYOBKAS.mjs +0 -1
  163. package/dist/ParticipantRuntime-HEC26AER.mjs +0 -1
  164. package/dist/PhoneHostGate-Q2AXVOSH.mjs +0 -1
  165. package/dist/PopmeltTasteConnectedPane-B7DHQKRQ.mjs +0 -1
  166. package/dist/PreviewRuntime-H2UOLP6T.mjs +0 -1
  167. package/dist/SuppliedContext-7ASO6GAW.mjs +0 -1
  168. package/dist/ThreadErrorCard-6R7W3RGZ.mjs +0 -1
  169. package/dist/ThreadPanel-3IS7GUYS.mjs +0 -1
  170. package/dist/bridgeSSEStream-K3UIMBTC.mjs +0 -1
  171. package/dist/bridgeWebSocketStream-2SUZUBE3.mjs +0 -1
  172. package/dist/browser-runtime-ILNTJLZ5.mjs +0 -1
  173. package/dist/canvas-chat-note-MGAEUYJO.mjs +0 -1
  174. package/dist/checkFixture-YE2ROOLL.mjs +0 -1
  175. package/dist/chunk-26P7UUHT.mjs +0 -1
  176. package/dist/chunk-2P2NUZW7.mjs +0 -1
  177. package/dist/chunk-3SEXH3AZ.mjs +0 -1
  178. package/dist/chunk-3XJEC6LS.mjs +0 -1
  179. package/dist/chunk-4LHTPRFY.mjs +0 -1
  180. package/dist/chunk-5D2ADU7H.mjs +0 -1
  181. package/dist/chunk-5K7SACPW.mjs +0 -1
  182. package/dist/chunk-67QNAAUC.mjs +0 -1
  183. package/dist/chunk-7CGKO4IU.mjs +0 -30
  184. package/dist/chunk-BACXPVHP.mjs +0 -1
  185. package/dist/chunk-DC47WNPG.mjs +0 -1
  186. package/dist/chunk-DJTGR3RO.mjs +0 -1
  187. package/dist/chunk-DLUNNAZC.mjs +0 -1
  188. package/dist/chunk-EX63NVDN.mjs +0 -1
  189. package/dist/chunk-FLTHWLRC.mjs +0 -1
  190. package/dist/chunk-G6RYESYI.mjs +0 -1
  191. package/dist/chunk-G7JR5Z3P.mjs +0 -1
  192. package/dist/chunk-GBVPRXA3.mjs +0 -1
  193. package/dist/chunk-HAE5LUJX.mjs +0 -1
  194. package/dist/chunk-HU2XWUJC.mjs +0 -1
  195. package/dist/chunk-HV7HRQ2S.mjs +0 -1
  196. package/dist/chunk-J4WDYITA.mjs +0 -1
  197. package/dist/chunk-L7QONR4K.mjs +0 -1
  198. package/dist/chunk-LVEMYZOA.mjs +0 -1
  199. package/dist/chunk-MSWXKP77.mjs +0 -1
  200. package/dist/chunk-NSCO633B.mjs +0 -1
  201. package/dist/chunk-NWE5PYKM.mjs +0 -1
  202. package/dist/chunk-O4HZP3RP.mjs +0 -1
  203. package/dist/chunk-OAHYSDJ4.mjs +0 -1
  204. package/dist/chunk-PNTM77NT.mjs +0 -1
  205. package/dist/chunk-RUTWU5W2.mjs +0 -1
  206. package/dist/chunk-TLREGQQB.mjs +0 -1
  207. package/dist/chunk-TUXBMJQZ.mjs +0 -1
  208. package/dist/chunk-V2I7PSJW.mjs +0 -1
  209. package/dist/chunk-WDAXARLI.mjs +0 -1
  210. package/dist/chunk-WHJEKDNP.mjs +0 -1
  211. package/dist/chunk-X2Q3H6X7.mjs +0 -1
  212. package/dist/chunk-XJQJQ5V5.mjs +0 -1
  213. package/dist/chunk-XT6PHPPG.mjs +0 -1
  214. package/dist/chunk-YD3PDEFX.mjs +0 -1
  215. package/dist/chunk-ZDXQ7WNW.mjs +0 -1
  216. package/dist/codex-note-context-YFURG7VL.mjs +0 -1
  217. package/dist/codex-project-3NSU5OWL.mjs +0 -1
  218. package/dist/codex-session-registry-ONODFWFD.mjs +0 -1
  219. package/dist/focus-inspection-SZJ5KP23.mjs +0 -1
  220. package/dist/peer-client-56EAHIGF.mjs +0 -1
  221. package/dist/taste-proposal-session-XU4N7RUV.mjs +0 -1
  222. package/dist/workspace-snapshot-RTTXNNUX.mjs +0 -1
@@ -0,0 +1,817 @@
1
+ import * as node_http from 'node:http';
2
+ import { IncomingMessage, ServerResponse } from 'node:http';
3
+ import { P as ParticipantBootstrapConfig } from './participantBootstrap-BuTrTQbo.mjs';
4
+ import { build } from 'vite';
5
+
6
+ type CanvasSample = {
7
+ subject?: {
8
+ adapter: string;
9
+ key: string;
10
+ canvasSelector: string;
11
+ inserted?: true;
12
+ label?: string;
13
+ };
14
+ pathname: string;
15
+ selector: string;
16
+ format: string;
17
+ value: string;
18
+ };
19
+
20
+ type ComponentSample = {
21
+ version: string;
22
+ variant: string;
23
+ dark: boolean;
24
+ props?: string;
25
+ label?: string;
26
+ };
27
+
28
+ type Frame = {
29
+ offset: number;
30
+ easing: string;
31
+ [key: string]: string | number;
32
+ };
33
+ type SampledMotion = {
34
+ frames: Frame[];
35
+ timing: {
36
+ duration: number;
37
+ delay: number;
38
+ endDelay: number;
39
+ iterations: number | 'infinite';
40
+ direction: PlaybackDirection;
41
+ fill: FillMode;
42
+ easing: string;
43
+ };
44
+ paused: boolean;
45
+ currentTime?: number;
46
+ };
47
+
48
+ type SampledElement = {
49
+ tag: string;
50
+ imageSourceHash?: string;
51
+ motion?: SampledMotion[];
52
+ backgroundStill?: string;
53
+ component?: ComponentSample;
54
+ attributes?: Record<string, string>;
55
+ previewWidth?: number;
56
+ previewHeight?: number;
57
+ style: Record<string, string>;
58
+ children: (SampledElement | string)[];
59
+ };
60
+
61
+ /** Each path names a text node in the authored paragraph. A boundary between
62
+ * two entries in parts starts a sibling paragraph with the same inline markup. */
63
+ type ParagraphLayout = {
64
+ path: number[];
65
+ parts: string[];
66
+ }[];
67
+ type ParagraphChange = {
68
+ before: ParagraphLayout;
69
+ after: ParagraphLayout;
70
+ };
71
+
72
+ declare const STICKER_COLOR_NAMES: readonly ["slate", "gray", "zinc", "neutral", "stone", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose"];
73
+ type StickerColorName = (typeof STICKER_COLOR_NAMES)[number];
74
+ declare const STICKER_COLOR_STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
75
+ type StickerColorStep = (typeof STICKER_COLOR_STEPS)[number];
76
+
77
+ declare const STICKER_FAMILIES: readonly ["padding", "margin", "border", "radius", "stack", "grid", "text", "color", "transform", "opacity"];
78
+ type StickerFamily = (typeof STICKER_FAMILIES)[number];
79
+ declare const SPACING_STEPS: readonly [0, 1, 2, 3, 4, 6, 8, 10, 12, 16];
80
+ declare const TRANSLATE_STEPS: readonly [-16, -12, -10, -8, -6, -4, -3, -2, -1, 0, 1, 2, 3, 4, 6, 8, 10, 12, 16];
81
+ declare const BORDER_STEPS: readonly [0, 1, 2, 4, 8];
82
+ declare const DIRECTION_STEPS: readonly ["vertical", "horizontal"];
83
+ declare const ALIGN_STEPS: readonly ["stretch", "start", "center", "end", "baseline"];
84
+ declare const JUSTIFY_STEPS: readonly ["start", "center", "end", "between", "around", "evenly"];
85
+ declare const GRID_COUNT_STEPS: readonly [1, 2, 3, 4, 5, 6];
86
+ declare const FONT_SIZE_STEPS: readonly ["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl"];
87
+ declare const FONT_WEIGHT_STEPS: readonly [300, 400, 500, 600, 700, 800];
88
+ declare const LINE_HEIGHT_STEPS: readonly ["none", "tight", "snug", "normal", "relaxed", "loose"];
89
+ declare const LETTER_SPACING_STEPS: readonly ["tighter", "tight", "normal", "wide", "wider", "widest"];
90
+ declare const TEXT_ALIGN_STEPS: readonly ["left", "center", "right", "justify"];
91
+ declare const SCALE_STEPS: readonly [25, 50, 75, 90, 95, 100, 105, 110, 125, 150];
92
+ declare const ROTATE_STEPS: readonly [-180, -90, -45, -25, -12, -6, -3, -2, -1, 0, 1, 2, 3, 6, 12, 25, 45, 90, 180];
93
+ declare const OPACITY_STEPS: readonly [0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 95, 100];
94
+ declare const MIX_BLEND_STEPS: readonly ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
95
+ type StickerStep = (typeof SPACING_STEPS)[number] | (typeof BORDER_STEPS)[number] | (typeof DIRECTION_STEPS)[number] | (typeof ALIGN_STEPS)[number] | (typeof JUSTIFY_STEPS)[number] | (typeof GRID_COUNT_STEPS)[number] | (typeof FONT_SIZE_STEPS)[number] | (typeof FONT_WEIGHT_STEPS)[number] | (typeof LINE_HEIGHT_STEPS)[number] | (typeof LETTER_SPACING_STEPS)[number] | (typeof TEXT_ALIGN_STEPS)[number] | (typeof TRANSLATE_STEPS)[number] | (typeof SCALE_STEPS)[number] | (typeof ROTATE_STEPS)[number] | (typeof OPACITY_STEPS)[number] | (typeof MIX_BLEND_STEPS)[number] | StickerColorStep;
96
+ type StickerSubproperty = 'all' | 'x' | 'y' | 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | 'vertical' | 'horizontal' | 'direction' | 'gap' | 'align' | 'justify' | 'rows' | 'columns' | 'size' | 'weight' | 'line-height' | 'letter-spacing' | 'text-align' | 'color' | 'translate' | 'scale' | 'rotate' | 'opacity' | 'mix-blend' | StickerColorName;
97
+
98
+ type TargetFingerprint = {
99
+ tag: string;
100
+ attributes?: Record<string, string>;
101
+ heading?: string;
102
+ text?: string;
103
+ };
104
+
105
+ type Provider = 'claude' | 'codex' | 'copilot' | 'omp' | 'opencode' | 'cursor';
106
+
107
+ type AnnotationLifecycleStatus = 'pending' | 'sending' | 'awaiting_review' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input' | 'failed';
108
+ type ScopeBreadth = 'instance' | 'pattern';
109
+ type ScopeTarget = 'element' | 'component' | 'token';
110
+ type Scope = {
111
+ breadth: ScopeBreadth;
112
+ target: ScopeTarget;
113
+ };
114
+ declare const TOOL_TYPES: readonly ["inspector", "sticker", "model"];
115
+ type ToolType = (typeof TOOL_TYPES)[number];
116
+ declare const LEGACY_ANNOTATION_TYPES: readonly ["freehand", "line", "rectangle", "circle"];
117
+ type LegacyAnnotationType = (typeof LEGACY_ANNOTATION_TYPES)[number];
118
+ type AnnotationType = LegacyAnnotationType | 'text';
119
+ /** @internal Retired modes retained temporarily while their dead paths are removed. */
120
+ type InteractionMode = ToolType | LegacyAnnotationType | 'hand';
121
+ type Point = {
122
+ x: number;
123
+ y: number;
124
+ };
125
+ type AnnotationRevealStep = {
126
+ triggerSelector: string;
127
+ targetSelector?: string;
128
+ label: string;
129
+ };
130
+ type AnnotationRevealRecipe = {
131
+ steps: AnnotationRevealStep[];
132
+ location: string[];
133
+ };
134
+ type ReactSourceLocation = {
135
+ fileName: string;
136
+ lineNumber: number;
137
+ columnNumber?: number;
138
+ };
139
+ /** Coordinates refer to the original image, not its responsive DOM rectangle. */
140
+ type ImageObjectContext = {
141
+ src: string;
142
+ alt: string;
143
+ width: number;
144
+ height: number;
145
+ box: {
146
+ x: number;
147
+ y: number;
148
+ width: number;
149
+ height: number;
150
+ };
151
+ normalizedBox: {
152
+ x: number;
153
+ y: number;
154
+ width: number;
155
+ height: number;
156
+ };
157
+ };
158
+ /** Coordinates refer to the decoded video frame, not its responsive DOM box. */
159
+ type VideoObjectContext = {
160
+ src: string;
161
+ width: number;
162
+ height: number;
163
+ duration: number;
164
+ currentTime: number;
165
+ normalizedBox: {
166
+ x: number;
167
+ y: number;
168
+ width: number;
169
+ height: number;
170
+ };
171
+ box: {
172
+ x: number;
173
+ y: number;
174
+ width: number;
175
+ height: number;
176
+ };
177
+ trackStart: number;
178
+ trackEnd: number;
179
+ };
180
+ type ElementInfo = {
181
+ /** Outermost-to-innermost screen context; selectors retain instance identity. */
182
+ frameContext?: {
183
+ url: string;
184
+ title: string;
185
+ label?: string;
186
+ }[];
187
+ targetFingerprint?: TargetFingerprint;
188
+ selector: string;
189
+ tagName: string;
190
+ /** Adapter-owned semantic name for a non-DOM subject. */
191
+ subjectLabel?: string;
192
+ id?: string;
193
+ className?: string;
194
+ textContent?: string;
195
+ dataAttributes?: Record<string, string>;
196
+ reactComponent?: string;
197
+ reactComponentPath?: string[];
198
+ reactSource?: ReactSourceLocation;
199
+ imageObject?: ImageObjectContext;
200
+ videoObject?: VideoObjectContext;
201
+ /** The real DOM surface, rather than the subject's hidden projection. */
202
+ sourceElement?: ElementInfo;
203
+ context?: string;
204
+ revealRecipe?: AnnotationRevealRecipe;
205
+ };
206
+ /** Renderer-owned identity for a target that does not exist as a DOM node. */
207
+ type OpaqueTargetReference = {
208
+ adapter: string;
209
+ key: string;
210
+ };
211
+ type StyleChange = {
212
+ property: string;
213
+ original: string;
214
+ modified: string;
215
+ token?: string;
216
+ sticker?: {
217
+ family: StickerFamily;
218
+ subproperty: StickerSubproperty;
219
+ step: StickerStep;
220
+ axisSteps?: {
221
+ x: StickerStep;
222
+ y: StickerStep;
223
+ };
224
+ };
225
+ };
226
+ type StyleModification = {
227
+ /** Receipt-derived presentation only; never written to the editable draft. */
228
+ awaitingReview?: {
229
+ submissionId: string;
230
+ threadId: string;
231
+ };
232
+ selector: string;
233
+ durableSelector?: string;
234
+ element: ElementInfo;
235
+ changes: StyleChange[];
236
+ createdAt?: number;
237
+ annotationNumber?: number;
238
+ captured?: boolean;
239
+ pathname?: string;
240
+ };
241
+ type TextModification = {
242
+ /** Whole-field preview for an edit stored as individual inline text runs. */
243
+ canvasLabel?: string;
244
+ paragraphs?: ParagraphChange;
245
+ selector: string;
246
+ durableSelector?: string;
247
+ element: ElementInfo;
248
+ textNodePath: number[];
249
+ original: string;
250
+ modified: string;
251
+ createdAt?: number;
252
+ annotationNumber?: number;
253
+ captured?: boolean;
254
+ pathname?: string;
255
+ };
256
+ type DomInsertionPlacement = 'before' | 'after';
257
+ type DomModification = {
258
+ id: string;
259
+ operation: 'move' | 'copy';
260
+ sampledTree?: SampledElement;
261
+ sourceSlot?: {
262
+ index: number;
263
+ count: number;
264
+ siblings: string;
265
+ };
266
+ selector: string;
267
+ durableSelector?: string;
268
+ element: ElementInfo;
269
+ sourceSelector?: string;
270
+ sourceDurableSelector?: string;
271
+ sourceElement?: ElementInfo;
272
+ originalParentSelector?: string;
273
+ originalParentDurableSelector?: string;
274
+ originalIndex?: number;
275
+ targetParentSelector: string;
276
+ targetParentDurableSelector?: string;
277
+ targetIndex: number;
278
+ referenceSelector?: string;
279
+ referenceDurableSelector?: string;
280
+ placement: DomInsertionPlacement;
281
+ captured?: boolean;
282
+ pathname?: string;
283
+ };
284
+ type SpacingElementEvidence = {
285
+ selector: string;
286
+ reactComponent?: string;
287
+ className: string;
288
+ property: string;
289
+ matchedClass?: string;
290
+ suggestedClass?: string;
291
+ };
292
+ type SpacingTokenChange = {
293
+ id: string;
294
+ tokenPath: string;
295
+ tokenName: string;
296
+ originalPx: number;
297
+ newPx: number;
298
+ captured?: boolean;
299
+ affectedElements: SpacingElementEvidence[];
300
+ };
301
+ type AnnotationAttachment = {
302
+ id: string;
303
+ name: string;
304
+ mimeType: string;
305
+ size: number;
306
+ kind: 'svg' | 'text';
307
+ };
308
+ type InteractionEpisodeElementState = {
309
+ selector?: string;
310
+ tagName: string;
311
+ className?: string;
312
+ role?: string;
313
+ ariaLabel?: string;
314
+ text?: string;
315
+ value?: string;
316
+ checked?: boolean;
317
+ disabled?: boolean;
318
+ expanded?: boolean;
319
+ pressed?: boolean;
320
+ selected?: boolean;
321
+ rect?: {
322
+ x: number;
323
+ y: number;
324
+ width: number;
325
+ height: number;
326
+ };
327
+ subject?: {
328
+ adapter: string;
329
+ key: string;
330
+ label: string;
331
+ context?: string;
332
+ data?: Record<string, string>;
333
+ };
334
+ media?: {
335
+ kind: 'image';
336
+ src?: string;
337
+ complete: boolean;
338
+ naturalWidth: number;
339
+ naturalHeight: number;
340
+ } | {
341
+ kind: 'video';
342
+ src?: string;
343
+ currentTime: number;
344
+ duration?: number;
345
+ paused: boolean;
346
+ } | {
347
+ kind: 'canvas';
348
+ width: number;
349
+ height: number;
350
+ };
351
+ };
352
+ type InteractionEpisodeChange = {
353
+ kind: 'added' | 'removed' | 'updated';
354
+ element: InteractionEpisodeElementState;
355
+ };
356
+ type InteractionEpisodeStep = {
357
+ id: string;
358
+ action: {
359
+ kind: 'click' | 'drag' | 'input' | 'change' | 'submit' | 'keydown' | 'scroll' | 'play' | 'pause' | 'seek';
360
+ label: string;
361
+ key?: string;
362
+ target?: InteractionEpisodeElementState;
363
+ };
364
+ startedAt: number;
365
+ completedAt: number;
366
+ outcome: 'changed' | 'no-observable-change';
367
+ changes: InteractionEpisodeChange[];
368
+ result?: InteractionEpisodeElementState;
369
+ visuals?: {
370
+ beforeFrameId?: string;
371
+ afterFrameId?: string;
372
+ };
373
+ };
374
+ type InteractionEpisodeFrame = {
375
+ id: string;
376
+ /** Index in the annotation's out-of-band image list. */
377
+ imageIndex: number;
378
+ fingerprint: string;
379
+ };
380
+ /** A compact, semantic account of actions performed while Comment passes through. */
381
+ type InteractionEpisode = {
382
+ version: 1;
383
+ startedAt: number;
384
+ completedAt: number;
385
+ subject?: InteractionEpisodeElementState;
386
+ steps: InteractionEpisodeStep[];
387
+ frames?: InteractionEpisodeFrame[];
388
+ };
389
+ /** A view-space annotation, not a renderer selection or a segmentation mask. */
390
+ type AnnotationRegion = {
391
+ kind: 'lasso';
392
+ /** Sampled context only; never used to bind the note to one object. */
393
+ elements?: ElementInfo[];
394
+ coordinateSpace: 'document';
395
+ points: Point[];
396
+ viewport: {
397
+ width: number;
398
+ height: number;
399
+ };
400
+ scroll: Point;
401
+ capturedAt: number;
402
+ };
403
+ type Annotation = {
404
+ region?: AnnotationRegion;
405
+ id: string;
406
+ type: AnnotationType;
407
+ points: Point[];
408
+ color: string;
409
+ strokeWidth: number;
410
+ text?: string;
411
+ fontSize?: number;
412
+ timestamp: number;
413
+ groupId?: string;
414
+ captured?: boolean;
415
+ status?: AnnotationLifecycleStatus;
416
+ question?: string;
417
+ resolutionSummary?: string;
418
+ scope?: Scope | null;
419
+ replyCount?: number;
420
+ replyJobIds?: string[];
421
+ threadId?: string;
422
+ targetBindingId?: string;
423
+ target?: OpaqueTargetReference;
424
+ pathname?: string;
425
+ elements?: ElementInfo[];
426
+ linkedSelector?: string;
427
+ linkedAnchor?: 'top-left' | 'bottom-left';
428
+ imageCount?: number;
429
+ attachments?: AnnotationAttachment[];
430
+ interactionEpisode?: InteractionEpisode;
431
+ };
432
+ /** A token modification tracked for undo/redo. Stores enough to revert both
433
+ * the model.json value and DOM inline style overrides. */
434
+ type SpacingTokenMod = {
435
+ tokenPath: string;
436
+ originalValue: string;
437
+ currentValue: string;
438
+ targets: Array<{
439
+ selector: string;
440
+ property: string;
441
+ }>;
442
+ originalPx: number;
443
+ currentPx: number;
444
+ captured?: boolean;
445
+ };
446
+ type UndoEntry = {
447
+ canvasSamples?: CanvasSample[];
448
+ textEditSessionId?: string;
449
+ annotations: Annotation[];
450
+ styleModifications: StyleModification[];
451
+ textModifications: TextModification[];
452
+ domModifications: DomModification[];
453
+ spacingTokenChanges: SpacingTokenChange[];
454
+ spacingTokenMods: SpacingTokenMod[];
455
+ };
456
+ type AnnotationState = {
457
+ canvasSamples?: CanvasSample[];
458
+ isAnnotating: boolean;
459
+ activeTool: InteractionMode;
460
+ activeColor: string;
461
+ strokeWidth: number;
462
+ annotations: Annotation[];
463
+ undoStack: UndoEntry[];
464
+ redoStack: UndoEntry[];
465
+ selectedAnnotationIds: string[];
466
+ lastSelectedId: string | null;
467
+ styleModifications: StyleModification[];
468
+ textModifications: TextModification[];
469
+ domModifications: DomModification[];
470
+ spacingTokenChanges: SpacingTokenChange[];
471
+ spacingTokenMods: SpacingTokenMod[];
472
+ };
473
+
474
+ /** Experimental peer primitives. Not a public API or an authorization boundary. */
475
+ type PeerIdentity = {
476
+ id: string;
477
+ name: string;
478
+ kind: 'human' | 'assistant';
479
+ relationship: 'host' | 'guest';
480
+ };
481
+
482
+ /** Local preview protocol. Peers never supply reducer actions or host authority. */
483
+ type PeerAction = {
484
+ type: 'tokens';
485
+ family?: StickerFamily;
486
+ subproperty?: StickerSubproperty;
487
+ } | {
488
+ type: 'inspect';
489
+ selector: string;
490
+ target?: OpaqueTargetReference;
491
+ properties?: string[];
492
+ plane?: 'own' | 'host';
493
+ } | {
494
+ type: 'comment';
495
+ selector: string;
496
+ target?: OpaqueTargetReference;
497
+ text: string;
498
+ } | {
499
+ type: 'clear';
500
+ selector: string;
501
+ kind: 'comment' | 'style' | 'all';
502
+ } | {
503
+ type: 'style';
504
+ selector: string;
505
+ property: string;
506
+ value: string;
507
+ } | {
508
+ type: 'style';
509
+ selector: string;
510
+ token: string;
511
+ family?: StickerFamily;
512
+ } | {
513
+ type: 'attention';
514
+ selector: string | null;
515
+ target?: OpaqueTargetReference;
516
+ activity?: 'looking' | 'working';
517
+ } | {
518
+ type: 'undo' | 'redo' | 'send' | 'rebase';
519
+ };
520
+
521
+ /** Only target identity and submitted values travel in the polling receipt. */
522
+ type StyleSuggestionReceipt = Pick<StyleModification, 'selector' | 'durableSelector' | 'pathname' | 'annotationNumber'> & {
523
+ changes: Pick<StyleModification['changes'][number], 'property' | 'original' | 'modified' | 'token'>[];
524
+ };
525
+
526
+ type PlaneStamp = {
527
+ time: number;
528
+ counter: number;
529
+ actor: string;
530
+ };
531
+ type PlaneChange = {
532
+ key: string;
533
+ value?: unknown;
534
+ };
535
+ type PlaneEvent = {
536
+ id: string;
537
+ stamp: PlaneStamp;
538
+ } & ({
539
+ kind: 'edit';
540
+ changes: PlaneChange[];
541
+ group?: string;
542
+ reset?: boolean;
543
+ /** Selection provenance recorded by the recipient; informational only. */
544
+ pulledFrom?: {
545
+ participantId: string;
546
+ planeId: string;
547
+ revision: number;
548
+ };
549
+ } | {
550
+ kind: 'undo' | 'redo';
551
+ target: string;
552
+ });
553
+ type PlaneHistory = {
554
+ /** Bridge-owned tombstones. Ordinary peer edits and Undo cannot clear these. */
555
+ hostDeletions?: Record<string, Annotation>;
556
+ /** Value-specific moderation: stale replay stays hidden; genuinely new edits remain usable. */
557
+ hostStyleDeletions?: StyleSuggestionReceipt[];
558
+ version: 1 | 2;
559
+ /** Migration baseline; v2 continues from its bridge-owned checkpoint instead. */
560
+ base: AnnotationState;
561
+ events: PlaneEvent[];
562
+ checkpoint?: PlaneCheckpoint;
563
+ };
564
+ type Change = {
565
+ key: string;
566
+ before?: unknown;
567
+ after?: unknown;
568
+ beforeWriter: string;
569
+ afterWriter: string;
570
+ };
571
+ type Step = {
572
+ id: string;
573
+ writer: string;
574
+ changes: Change[];
575
+ pulledFrom?: Extract<PlaneEvent, {
576
+ kind: 'edit';
577
+ }>['pulledFrom'];
578
+ };
579
+ type PlaneCheckpoint = {
580
+ through: Pick<PlaneEvent, 'id' | 'stamp'>;
581
+ cells: Array<[string, unknown]>;
582
+ writers: Array<[string, string]>;
583
+ undo: Step[];
584
+ redo: Step[];
585
+ /** Exact recent receipts validate ambiguous retries without replaying them. */
586
+ receipts: PlaneEvent[];
587
+ };
588
+
589
+ /** Stable identity silhouettes. Order is part of the allocation contract. */
590
+ declare const PEER_SHAPES: readonly ["circle", "square", "diamond", "hexagon"];
591
+ type PeerShape = (typeof PEER_SHAPES)[number];
592
+
593
+ /** Source identity is independent of a participant, browser, or draft. */
594
+ type PeerSourceReference = {
595
+ sourceId: string;
596
+ revision: string;
597
+ };
598
+ type ParticipantDraft = {
599
+ revision: number;
600
+ /** Reported basis, not an attestation. Verify current source before execution. */
601
+ source: PeerSourceReference | null;
602
+ /** The existing annotation grammar, not a second multiplayer reducer. */
603
+ state: AnnotationState | null;
604
+ history?: PlaneHistory;
605
+ };
606
+ /** A capability for a person/agent. Keep out of URLs, logs, and peer snapshots. */
607
+ type ParticipantCredential = {
608
+ participantId: string;
609
+ token: string;
610
+ };
611
+
612
+ /** For a host that owns turn scheduling. Each note must start a distinct turn. */
613
+ type CanvasNoteTurn = {
614
+ threadId: string;
615
+ clientUserMessageId: string;
616
+ input: [{
617
+ type: 'text';
618
+ text: string;
619
+ text_elements: [];
620
+ }];
621
+ additionalContext: {
622
+ popmelt_receipt: {
623
+ kind: 'untrusted';
624
+ value: string;
625
+ };
626
+ };
627
+ };
628
+
629
+ /** Browser hosting is replaceable; this boundary owns only local agent enrollment. */
630
+ type ParticipantAgentView = {
631
+ act(action: PeerAction): Promise<unknown>;
632
+ close(): Promise<void>;
633
+ };
634
+ type ParticipantAgentAdapter = (credential: ParticipantCredential) => Promise<ParticipantAgentView>;
635
+
636
+ declare function createSharedPageReader(root: string, devOrigin: () => string, framework?: PageFramework, projectRoot?: string, nextBundler?: NextBundlerFlag): ({ url, document: isDocument, sharedPath, assets, projectId, basePath, bootstrap, }: GuestAppRequest) => Promise<Response | undefined>;
637
+
638
+ type RunningApp = {
639
+ /** Dedicated loopback HTTP listener serving this checkout at basePath. */
640
+ origin: string;
641
+ /** Optional build generation for reloading a pinned viewer after recompilation. */
642
+ version?: () => string;
643
+ /** Raw loopback framework renderer for page-scoped sessions. */
644
+ pageReader?: ReturnType<typeof createSharedPageReader>;
645
+ /** Finish any pending checkout-specific dependency changes before serving. */
646
+ ready?: () => void | Promise<void>;
647
+ close: () => Promise<void>;
648
+ };
649
+ declare function createParticipantPlaneApps(options: {
650
+ projectRoot: string;
651
+ directory: string;
652
+ previousDirectory?: string;
653
+ interactivePage?: boolean;
654
+ startApp: (options: {
655
+ directory: string;
656
+ basePath: string;
657
+ checkoutRoot: string;
658
+ sourceRevision: string;
659
+ }) => Promise<RunningApp>;
660
+ }): Promise<{
661
+ capture: () => Promise<string>;
662
+ hostWorkspace: () => Promise<{
663
+ revision: string;
664
+ basePath: string;
665
+ }>;
666
+ hostBasis: () => Promise<string>;
667
+ open: (bridge: PopmeltHandle, proof: ParticipantCredential, target: string, pathname?: string, active?: boolean) => Promise<{
668
+ application: {
669
+ interactivePage?: boolean | undefined;
670
+ basePath: string;
671
+ path: string;
672
+ version: string;
673
+ basis: string;
674
+ };
675
+ ownWorkspace?: {
676
+ revision: string;
677
+ basePath?: string;
678
+ };
679
+ version: 1;
680
+ author: PeerIdentity;
681
+ planeId: string;
682
+ draft: ParticipantDraft;
683
+ } | {
684
+ application: {
685
+ interactivePage?: boolean | undefined;
686
+ basePath: string;
687
+ path: string;
688
+ version: string;
689
+ basis: string;
690
+ };
691
+ author: {
692
+ id: string;
693
+ };
694
+ }>;
695
+ /** In-process build input for an already authorized application mount. */
696
+ checkout(base: string): string;
697
+ pageReader(base: string): Promise<(({ url, document: isDocument, sharedPath, assets, projectId, basePath, bootstrap, }: GuestAppRequest) => Promise<Response | undefined>) | undefined>;
698
+ sourceChanged(): void;
699
+ servedAt(pathname: string): Promise<{
700
+ revision: string;
701
+ appVersion: string;
702
+ }>;
703
+ findEditable: (owner: string) => Promise<string | null>;
704
+ /** Called by a trusted local editor, or by Core after dispatch authorization. */
705
+ forEdit(owner: string, revision: string, host?: boolean): Promise<string>;
706
+ middleware(bridge: PopmeltHandle, origin: string, readBootstrap?: (pathname: string) => Promise<ParticipantBootstrapConfig>): (req: IncomingMessage, res: ServerResponse, next: () => void) => Promise<void>;
707
+ close(): Promise<void>;
708
+ }>;
709
+ type ParticipantPlaneApps = Awaited<ReturnType<typeof createParticipantPlaneApps>>;
710
+
711
+ /** Public endpoints only. Signing keys and credentials never belong here. */
712
+ type CloudTasteEnvironment = 'production' | 'staging';
713
+
714
+ type PopmeltOptions = {
715
+ /** Local events. Overrides POPMELT_EXPERIMENTAL_EVENT_TRANSPORT; defaults to WebSocket. */
716
+ experimentalEventTransport?: 'sse' | 'websocket';
717
+ port?: number;
718
+ projectRoot?: string;
719
+ tempDir?: string;
720
+ maxTurns?: number;
721
+ maxBudgetUsd?: number;
722
+ allowedTools?: string[];
723
+ claudePath?: string;
724
+ copilotPath?: string;
725
+ ompPath?: string;
726
+ opencodePath?: string;
727
+ cursorPath?: string;
728
+ provider?: Provider;
729
+ timeoutMs?: number;
730
+ devOrigin?: string;
731
+ /** Optional Chromium DevTools endpoint, e.g. http://127.0.0.1:9222. */
732
+ nativeCaptureUrl?: string;
733
+ restartMode?: 'embedded' | 'detached';
734
+ /** Requires a proven local host or participant host. Defaults to production; false disables cloud access. */
735
+ cloudTaste?: false | {
736
+ environment: CloudTasteEnvironment;
737
+ };
738
+ /** Participant storage and optional app-specific guest transports. */
739
+ participantSessions?: {
740
+ /** Same-origin recovery endpoint for built-in development adapters. */
741
+ hostEntry?: (req: IncomingMessage, res: ServerResponse) => void | Promise<void>;
742
+ planeEntry?: (req: IncomingMessage, res: ServerResponse) => Promise<void>;
743
+ /** Optional context metadata. Never used as a save, Send, or approval gate. */
744
+ sourceRevision?: () => Promise<string>;
745
+ /** Keep each plane on its first draft basis when the app serves retained revisions. */
746
+ pinDraftSource?: boolean;
747
+ /** Trusted local worktrees and app runners, shared with the dev-server bootstrap. */
748
+ planeApps?: Pick<ParticipantPlaneApps, 'capture' | 'forEdit'> & Partial<Pick<ParticipantPlaneApps, 'hostBasis' | 'hostWorkspace' | 'findEditable'>>;
749
+ /** Resolve a host-selected guest transport after invite authorization. */
750
+ stopGuestSharing?: () => Promise<void>;
751
+ guestOrigin?: (mode: 'lan' | 'tunnel') => Promise<string>;
752
+ agentAdapter?: ParticipantAgentAdapter;
753
+ /** Experimental host transport: preserve the visible input and attach its context to the same Codex turn. */
754
+ sendCanvasNoteTurn?: (turn: CanvasNoteTurn) => Promise<void>;
755
+ };
756
+ };
757
+ type PopmeltHandle = {
758
+ port: number;
759
+ projectId: string;
760
+ storeId?: string;
761
+ guestInviteAppearance?: (invitation: string) => Promise<{
762
+ color: string;
763
+ shape: PeerShape;
764
+ }>;
765
+ /** In-process authorization for worktree app documents and assets. */
766
+ planeAppBasis?: (credential: ParticipantCredential, id: string) => Promise<{
767
+ id: string;
768
+ revision?: string;
769
+ }>;
770
+ /** Trusted local launch/recovery only; never publish this capability in HTML. */
771
+ participantHost?: () => Promise<ParticipantCredential>;
772
+ close: () => Promise<void>;
773
+ };
774
+ type MemoryReviewReceipt = {
775
+ status: 'committed' | 'not_ready' | 'rejected';
776
+ action: 'accept' | 'edit_and_accept' | 'reject' | 'defer';
777
+ proposalId: string;
778
+ decisionId?: string;
779
+ message: string;
780
+ headSequence?: number;
781
+ };
782
+
783
+ type GuestAppRequest = {
784
+ projectId: string;
785
+ sharedPath: string;
786
+ assets: Set<string>;
787
+ url: URL;
788
+ document: boolean;
789
+ range?: string;
790
+ basePath?: string;
791
+ bootstrap?: ParticipantBootstrapConfig;
792
+ };
793
+ type ReadGuestApp = (request: GuestAppRequest) => Promise<Response | undefined>;
794
+ type GatewayOptions = {
795
+ address?: string;
796
+ quickTunnel?: boolean;
797
+ };
798
+ /** Framework adapters supply only the app content they intend guests to see.
799
+ * Core owns invitation redemption, authorization and the guest-only bridge. */
800
+ declare function createParticipantGuestAccess(getBridge: () => PopmeltHandle, readApp: ReadGuestApp, planes?: ParticipantPlaneApps): {
801
+ guestOrigin(mode: "lan" | "tunnel"): Promise<string>;
802
+ stopGuestSharing(): Promise<void>;
803
+ };
804
+ declare function startParticipantLan(bridge: PopmeltHandle, planes: ParticipantPlaneApps, options: GatewayOptions & {
805
+ build: typeof build;
806
+ }): Promise<{
807
+ server: node_http.Server<typeof IncomingMessage, typeof ServerResponse>;
808
+ origin: string;
809
+ inviteOrigin(): Promise<string>;
810
+ fingerprint: string | undefined;
811
+ close(): Promise<void>;
812
+ }>;
813
+
814
+ type PageFramework = 'next' | 'astro' | 'nuxt' | 'html';
815
+ type NextBundlerFlag = '--turbo' | '--turbopack' | '--webpack';
816
+
817
+ export { type GuestAppRequest as G, type MemoryReviewReceipt as M, type NextBundlerFlag as N, type PopmeltHandle as P, type ParticipantAgentAdapter as a, type ParticipantCredential as b, createParticipantPlaneApps as c, type ParticipantPlaneApps as d, type PopmeltOptions as e, type PageFramework as f, type PeerShape as g, type ParticipantAgentView as h, createParticipantGuestAccess as i, startParticipantLan as s };