@popmelt.com/core 0.41.1 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/claude-plugin/.claude-plugin/plugin.json +1 -1
- package/codex-plugin/.codex-plugin/plugin.json +1 -1
- package/codex-plugin/assets/popmelt-logo.svg +1 -1
- package/dist/{ExploreAttachment-PTK4YHVE.mjs → ExploreAttachment-TRA62BMX.mjs} +1 -1
- package/dist/PagePreviewLayer-TX74TJBY.mjs +1 -0
- package/dist/ParticipantRuntime-Y7MKLWBC.mjs +1 -0
- package/dist/PhoneHostGate-XRYFSUJA.mjs +1 -0
- package/dist/{PopmeltProvider-5g-1VH5a.d.mts → PopmeltProvider-NwqjKtGG.d.mts} +1 -1
- package/dist/PopmeltTasteConnectedPane-NMKIRMDM.mjs +1 -0
- package/dist/{PreviewRuntime-7EQNIOF5.mjs → PreviewRuntime-VJXFECBF.mjs} +1 -1
- package/dist/{QueuedReplies-ESF5UL3J.mjs → QueuedReplies-X2N4JRS6.mjs} +1 -1
- package/dist/SamplePlacementOverlay-VWCULP2R.mjs +1 -0
- package/dist/ShareProjectPane-L6AO57IN.mjs +1 -0
- package/dist/SuppliedContext-UGQSL4IG.mjs +1 -0
- package/dist/{ThreadErrorCard-QGTWIV7B.mjs → ThreadErrorCard-WSNEGY7J.mjs} +1 -1
- package/dist/ThreadPanel-QNDCQOA4.mjs +1 -0
- package/dist/adapter-react-three-fiber.d.mts +1 -1
- package/dist/adapter-three.d.mts +1 -1
- package/dist/bridge-entry.mjs +1 -1
- package/dist/{bridgeSSEStream-2KKFO64A.mjs → bridgeSSEStream-BHUFYHTT.mjs} +1 -1
- package/dist/{bridgeWebSocketStream-XTHQPBPI.mjs → bridgeWebSocketStream-L277I5ZX.mjs} +1 -1
- package/dist/browser-runtime-3PAM2ZUE.mjs +1 -0
- package/dist/browser.d.mts +4 -4
- package/dist/browser.mjs +1 -1
- package/dist/{canvas-chat-note-XMVKWL2J.mjs → canvas-chat-note-HTK23RYE.mjs} +1 -1
- package/dist/canvas-text.d.mts +1 -1
- package/dist/{checkFixture-VWHN4ZNH.mjs → checkFixture-C26VSTGP.mjs} +1 -1
- package/dist/chunk-23YWKAQM.mjs +1 -0
- package/dist/chunk-2OWGUAUI.mjs +1 -0
- package/dist/{chunk-YTIDSDPP.mjs → chunk-2PARHFWP.mjs} +1 -1
- package/dist/chunk-2YT4X5VC.mjs +1 -0
- package/dist/{chunk-DMKBAI2Z.mjs → chunk-47SWWW5Y.mjs} +1 -1
- package/dist/chunk-56AALMHI.mjs +1 -0
- package/dist/chunk-5JAZXI47.mjs +1 -0
- package/dist/chunk-5SXPTNUM.mjs +1 -0
- package/dist/chunk-5YNIYMKX.mjs +1 -0
- package/dist/{chunk-EWNSX5BF.mjs → chunk-7PZN2RNE.mjs} +1 -1
- package/dist/chunk-ALW6WNDJ.mjs +1 -0
- package/dist/{chunk-ADRWR5GI.mjs → chunk-BH5BNULT.mjs} +1 -1
- package/dist/chunk-BZPWT44Z.mjs +1 -0
- package/dist/chunk-DAMF6ZWZ.mjs +1 -0
- package/dist/chunk-E7VH7WB5.mjs +1 -0
- package/dist/chunk-EBESPLST.mjs +1 -0
- package/dist/{chunk-7D4BUDKG.mjs → chunk-ECGXE2Z6.mjs} +1 -1
- package/dist/chunk-EEU5J3CD.mjs +1 -0
- package/dist/chunk-FGJX74DI.mjs +1 -0
- package/dist/chunk-I3LFTKJP.mjs +1 -0
- package/dist/chunk-K4CIGHJI.mjs +1 -0
- package/dist/chunk-KYS76O3N.mjs +1 -0
- package/dist/{chunk-77DD4HQE.mjs → chunk-LB66O2BP.mjs} +1 -1
- package/dist/chunk-LEMLTB2X.mjs +1 -0
- package/dist/chunk-M2BCEQDP.mjs +1 -0
- package/dist/{chunk-44NLL6X3.mjs → chunk-MYEG7OXO.mjs} +1 -1
- package/dist/chunk-NMMTIZ6K.mjs +1 -0
- package/dist/chunk-NWQGXYER.mjs +1 -0
- package/dist/{chunk-3UE2DLFY.mjs → chunk-OBYCW4I3.mjs} +1 -1
- package/dist/chunk-ODZOYCTC.mjs +1 -0
- package/dist/{chunk-HFKGW34E.mjs → chunk-OOFTFGZL.mjs} +1 -1
- package/dist/chunk-OSUJWNS2.mjs +1 -0
- package/dist/chunk-PACB6IBR.mjs +1 -0
- package/dist/{chunk-ENXCO63D.mjs → chunk-PGIWJ37M.mjs} +1 -1
- package/dist/{chunk-VSWRWS2H.mjs → chunk-PLRJ4GAR.mjs} +1 -1
- package/dist/{chunk-KF35YUNZ.mjs → chunk-QF5B6AYF.mjs} +1 -1
- package/dist/chunk-QKJPWA2I.mjs +1 -0
- package/dist/{chunk-4O6YFMWF.mjs → chunk-RBX7ANQX.mjs} +1 -1
- package/dist/chunk-RQHZNEA2.mjs +1 -0
- package/dist/{chunk-SZQTGYPS.mjs → chunk-SDXFJ7JW.mjs} +1 -1
- package/dist/{chunk-EHM2ZBQU.mjs → chunk-SKQA53J2.mjs} +1 -1
- package/dist/chunk-TJ25JLBL.mjs +1 -0
- package/dist/chunk-U522GPBG.mjs +1 -0
- package/dist/{chunk-5J4BZL6N.mjs → chunk-V5K4F2XQ.mjs} +1 -1
- package/dist/chunk-VGX6J2OP.mjs +1 -0
- package/dist/{chunk-EO3SHOXX.mjs → chunk-VPF4NHAP.mjs} +1 -1
- package/dist/{chunk-VJKC2RJB.mjs → chunk-WNCZCPTX.mjs} +1 -1
- package/dist/chunk-XMCHOGMG.mjs +1 -0
- package/dist/chunk-XNCN6DGG.mjs +30 -0
- package/dist/{chunk-P6XIVHP5.mjs → chunk-XRM2KI4C.mjs} +1 -1
- package/dist/{chunk-YU5PF45T.mjs → chunk-YFXYRNER.mjs} +1 -1
- package/dist/{chunk-YHCZYT4T.mjs → chunk-YZIDCW7A.mjs} +1 -1
- package/dist/chunk-Z32CLWW2.mjs +1 -0
- package/dist/{chunk-KCDHP4N3.mjs → chunk-ZCJCM3DT.mjs} +1 -1
- package/dist/{chunk-WIJSWSNF.mjs → chunk-ZE3LG7MR.mjs} +1 -1
- package/dist/chunk-ZEIVO4X7.mjs +1 -0
- package/dist/{chunk-SIGOY5GG.mjs → chunk-ZQLNGMVV.mjs} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/codex-note-context-327LH622.mjs +1 -0
- package/dist/codex-project-25QJDNJN.mjs +1 -0
- package/dist/{codex-store-mount-VHUHC2ZA.mjs → codex-store-mount-BRHVGYZU.mjs} +1 -1
- package/dist/{dev-server-D8Qxrp1A.d.mts → dev-server-C-mvGeOM.d.mts} +2 -2
- package/dist/dev-server-ZLIPCFFT.mjs +1 -0
- package/dist/{focus-inspection-FVQ6TVGA.mjs → focus-inspection-TPTEFBH3.mjs} +1 -1
- package/dist/guest-admission.mjs +1 -1
- package/dist/guest-live-canvas.mjs +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +1 -1
- package/dist/{invitationLink-LUIIOAEZ.mjs → invitationLink-RX53O6RI.mjs} +1 -1
- package/dist/media.d.mts +3 -3
- package/dist/memory-store.d.mts +6 -6
- package/dist/{page-interaction-74JGNCZ5.mjs → page-interaction-6SR32FFS.mjs} +1 -1
- package/dist/{page-planes-BeFZ3Wso.d.mts → page-planes-C5J6qgMj.d.mts} +99 -50
- package/dist/{participantBootstrap-BcfNTEe9.d.mts → participantBootstrap-BjHfrdwL.d.mts} +3 -2
- package/dist/peer-client-2LEZ7SW4.mjs +1 -0
- package/dist/phone-recovery.mjs +1 -0
- package/dist/plugin-astro.d.mts +7 -7
- package/dist/plugin-astro.mjs +1 -1
- package/dist/plugin-next.mjs +1 -1
- package/dist/plugin-nuxt.d.mts +5 -5
- package/dist/plugin-nuxt.mjs +1 -1
- package/dist/plugin-vite.d.mts +8 -7
- package/dist/plugin-vite.mjs +1 -1
- package/dist/project-id.mjs +1 -0
- package/dist/{protocol-BIUE4rB6.d.mts → protocol-aJ3S127Q.d.mts} +5 -1
- package/dist/server.d.mts +15 -7
- package/dist/server.mjs +1 -1
- package/dist/shared-page-KQSG3DM3.mjs +1 -0
- package/dist/{subjects-qHIrZrlt.d.mts → subjects-CGN4QTSS.d.mts} +1 -1
- package/dist/{video-adapter-B5eap10v.d.mts → video-adapter-DtIw_QVy.d.mts} +1 -1
- package/dist/{workspace-snapshot-RUGPDEYJ.mjs → workspace-snapshot-DX62ZFVF.mjs} +1 -1
- package/infra/phone-pairing/machine-config.mjs +15 -2
- package/infra/phone-pairing/machine-service.mjs +39 -13
- package/infra/phone-pairing/managed-install.mjs +8 -2
- package/package.json +1 -1
- package/dist/PagePreviewLayer-HMKZL5VB.mjs +0 -1
- package/dist/ParticipantRuntime-ELXK42P7.mjs +0 -1
- package/dist/PhoneHostGate-5S2WCM3W.mjs +0 -1
- package/dist/PopmeltTasteConnectedPane-BILMI6L2.mjs +0 -1
- package/dist/SamplePlacementOverlay-K3Z5C67A.mjs +0 -1
- package/dist/ShareProjectPane-P5HAKBKX.mjs +0 -1
- package/dist/SuppliedContext-ADMN2D2I.mjs +0 -1
- package/dist/ThreadPanel-Z76WNKPP.mjs +0 -1
- package/dist/browser-runtime-OWU4CMJB.mjs +0 -1
- package/dist/chunk-2F2BVGFH.mjs +0 -1
- package/dist/chunk-5TCWBNV4.mjs +0 -1
- package/dist/chunk-72CUIZA2.mjs +0 -1
- package/dist/chunk-C2ZSNUXQ.mjs +0 -1
- package/dist/chunk-EILBHZDX.mjs +0 -1
- package/dist/chunk-FAEFYWCY.mjs +0 -1
- package/dist/chunk-FQH24XFS.mjs +0 -1
- package/dist/chunk-G7UU6M76.mjs +0 -1
- package/dist/chunk-GYKRKAEF.mjs +0 -1
- package/dist/chunk-HAZXZ5TU.mjs +0 -1
- package/dist/chunk-HM6EBJVO.mjs +0 -1
- package/dist/chunk-IC4G3NXR.mjs +0 -1
- package/dist/chunk-ITLRSHNZ.mjs +0 -1
- package/dist/chunk-J3IPAD7E.mjs +0 -1
- package/dist/chunk-LZV3IYTM.mjs +0 -1
- package/dist/chunk-OEJXPUAR.mjs +0 -1
- package/dist/chunk-PRZ6C5X3.mjs +0 -1
- package/dist/chunk-RWZ7SVMO.mjs +0 -1
- package/dist/chunk-SHIN4R4V.mjs +0 -1
- package/dist/chunk-SMIEQSM5.mjs +0 -1
- package/dist/chunk-SOGN7S54.mjs +0 -1
- package/dist/chunk-SUAHDXJZ.mjs +0 -1
- package/dist/chunk-TMW3SI7F.mjs +0 -1
- package/dist/chunk-TRRNHBEH.mjs +0 -1
- package/dist/chunk-UFU5IA3G.mjs +0 -1
- package/dist/chunk-UNUYNWTJ.mjs +0 -1
- package/dist/chunk-VI3DNZM4.mjs +0 -1
- package/dist/chunk-VLTK7KWK.mjs +0 -1
- package/dist/chunk-WP44H6DL.mjs +0 -30
- package/dist/chunk-YG3RSK5J.mjs +0 -1
- package/dist/chunk-YTMUAK4P.mjs +0 -1
- package/dist/codex-note-context-PM4TA6WR.mjs +0 -1
- package/dist/codex-project-YSALZU44.mjs +0 -1
- package/dist/dev-server-KE4NM4WM.mjs +0 -1
- package/dist/peer-client-TSTD27DV.mjs +0 -1
- package/dist/shared-page-6AUYAPJ3.mjs +0 -1
- /package/dist/{chunk-CIKFUS7J.mjs → chunk-R565ZNSP.mjs} +0 -0
- /package/dist/{chunk-DPLSL33X.mjs → chunk-XBA5ROC5.mjs} +0 -0
- /package/dist/{toolbarFonts-33BI56VQ.mjs → toolbarFonts-RR24L4CJ.mjs} +0 -0
- /package/dist/{webpEncoder-JVMGDKHV.mjs → webpEncoder-XTISHUBA.mjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { P as PopmeltProvider, a as PopmeltProviderProps } from './PopmeltProvider-
|
|
2
|
-
import { C as CommentMeta } from './participantBootstrap-
|
|
3
|
-
export { a as CommentMetaContext, b as CommentMetaNote, c as CommentMetaValue, G as GetCommentMeta, d as PopmeltExtension, e as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-
|
|
4
|
-
import { f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-
|
|
5
|
-
import { P as PopmeltSubjectAdapter, O as OpaqueTargetReference, A as Annotation, E as ElementInfo, f as AnnotationAttachment, S as SubjectFeedbackAttachment, g as StyleModification, T as TextModification, D as DomModification, h as SpacingTokenChange } from './subjects-
|
|
6
|
-
export { i as AnnotationRegion, j as AnnotationType, B as BridgeStatus, k as ClaudeResponse, I as ImageObjectContext, l as Point, b as PopmeltSubject, a as PopmeltSubjectBounds, c as PopmeltSubjectCreationSession, d as PopmeltSubjectOutlinePoint, e as PopmeltSubjectTrackingAnchor, m as PopmeltSurfaceSnapshot, R as ReactSourceLocation, n as StyleChange, o as ToolType, V as VideoObjectContext } from './subjects-
|
|
7
|
-
export { B as BridgeEvent } from './protocol-
|
|
1
|
+
export { P as PopmeltProvider, a as PopmeltProviderProps } from './PopmeltProvider-NwqjKtGG.mjs';
|
|
2
|
+
import { C as CommentMeta } from './participantBootstrap-BjHfrdwL.mjs';
|
|
3
|
+
export { a as CommentMetaContext, b as CommentMetaNote, c as CommentMetaValue, G as GetCommentMeta, d as PopmeltExtension, e as PopmeltExtensionRuntime, i as isPopmeltPreview } from './participantBootstrap-BjHfrdwL.mjs';
|
|
4
|
+
import { f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-DtIw_QVy.mjs';
|
|
5
|
+
import { P as PopmeltSubjectAdapter, O as OpaqueTargetReference, A as Annotation, E as ElementInfo, f as AnnotationAttachment, S as SubjectFeedbackAttachment, g as StyleModification, T as TextModification, D as DomModification, h as SpacingTokenChange } from './subjects-CGN4QTSS.mjs';
|
|
6
|
+
export { i as AnnotationRegion, j as AnnotationType, B as BridgeStatus, k as ClaudeResponse, I as ImageObjectContext, l as Point, b as PopmeltSubject, a as PopmeltSubjectBounds, c as PopmeltSubjectCreationSession, d as PopmeltSubjectOutlinePoint, e as PopmeltSubjectTrackingAnchor, m as PopmeltSurfaceSnapshot, R as ReactSourceLocation, n as StyleChange, o as ToolType, V as VideoObjectContext } from './subjects-CGN4QTSS.mjs';
|
|
7
|
+
export { B as BridgeEvent } from './protocol-aJ3S127Q.mjs';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
|
10
10
|
type PopmeltContextValue = {
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";export{b as PopmeltProvider}from"./chunk-
|
|
1
|
+
"use client";export{b as PopmeltProvider}from"./chunk-RQHZNEA2.mjs";import"./chunk-V5K4F2XQ.mjs";import"./chunk-ELKVFX2O.mjs";import"./chunk-JWWWU4GY.mjs";import"./chunk-Q6N77LIS.mjs";import"./chunk-I3LFTKJP.mjs";import"./chunk-RXC7B7SX.mjs";import"./chunk-SDXFJ7JW.mjs";import"./chunk-56AALMHI.mjs";import"./chunk-DAMF6ZWZ.mjs";import"./chunk-XRM2KI4C.mjs";import"./chunk-PLRJ4GAR.mjs";import"./chunk-B4RLDY5H.mjs";import"./chunk-PH2MLB3T.mjs";import"./chunk-FGJX74DI.mjs";export{b as usePopmelt}from"./chunk-J3UIBBU2.mjs";import"./chunk-XTOCFTVW.mjs";import"./chunk-Q74FBX2I.mjs";export{a as isPopmeltPreview}from"./chunk-ZCJCM3DT.mjs";import"./chunk-2YT4X5VC.mjs";import"./chunk-OVZ4CQGM.mjs";import"./chunk-FHCKFQBY.mjs";import"./chunk-APP5IYTE.mjs";import"./chunk-ZE3LG7MR.mjs";import"./chunk-YFXYRNER.mjs";import"./chunk-5SXPTNUM.mjs";import"./chunk-2OWGUAUI.mjs";import"./chunk-VOL4KS67.mjs";import"./chunk-U522GPBG.mjs";import"./chunk-7PZN2RNE.mjs";import"./chunk-G2ZHJXHZ.mjs";import"./chunk-53SKVMWR.mjs";import"./chunk-KYS76O3N.mjs";import"./chunk-RK6UROPO.mjs";import"./chunk-AOTDTBQO.mjs";import"./chunk-E7VH7WB5.mjs";import"./chunk-M2BCEQDP.mjs";import"./chunk-5YNIYMKX.mjs";import"./chunk-MYEG7OXO.mjs";import"./chunk-2PARHFWP.mjs";import"./chunk-QF5B6AYF.mjs";import"./chunk-VBH2YQLG.mjs";import"./chunk-VXRRHXUP.mjs";import"./chunk-WP2SHSCG.mjs";import"./chunk-AAMUU2QA.mjs";import"./chunk-LH7HKUCK.mjs";import"./chunk-PGIWJ37M.mjs";import"./chunk-DUWONLQE.mjs";import"./chunk-ATLUO4G7.mjs";import"./chunk-BZPWT44Z.mjs";import"./chunk-VGX6J2OP.mjs";import"./chunk-PACB6IBR.mjs";import"./chunk-5JAZXI47.mjs";import"./chunk-NWQGXYER.mjs";import"./chunk-OOFTFGZL.mjs";import"./chunk-ZVDKW7TO.mjs";import"./chunk-HQVWOBYH.mjs";import"./chunk-Q6C7ZA3H.mjs";import"./chunk-OREALBUO.mjs";import"./chunk-CK3CDA3L.mjs";import"./chunk-ECGXE2Z6.mjs";import"./chunk-ODZOYCTC.mjs";import"./chunk-KE4MQBRY.mjs";import"./chunk-B4DYUYX4.mjs";import"./chunk-EEU5J3CD.mjs";import"./chunk-BH5BNULT.mjs";import"./chunk-LEMLTB2X.mjs";import"./chunk-N2ZEZCHO.mjs";import"./chunk-PRPXMDZ7.mjs";import"./chunk-YGP6PPOZ.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./chunk-
|
|
1
|
+
import{c as t}from"./chunk-R565ZNSP.mjs";var e="popmelt-join",n=/^[A-Za-z0-9_-]{43}$/;function r(r,o,a){let l=new URL(r);if(!["http:","https:"].includes(l.protocol)||!["localhost","127.0.0.1","[::1]"].includes(l.hostname)||!n.test(o))throw new Error("A local page and valid invitation are required");if(a){let n=new URL(a),r=/^(?:192\.168\.|10\.|172\.(?:1[6-9]|2\d|3[01])\.)/.test(n.hostname)&&/^\d+\.\d+\.\d+\.\d+$/.test(n.hostname);if(n.origin!==a||"https:"!==n.protocol||!r&&!t(a))throw new Error("Invalid guest invitation origin");return n.origin+"/__popmelt/join#"+e+"="+o}let s=i(l.href).cleanUrl,h=new URL(s);return h.hash=`${h.hash.slice(1)}${h.hash?"&":""}${e}=${o}`,h.href}function i(t){let r=new URL(t),i=null,o=r.hash.slice(1).split("&").filter(t=>{if(!t.startsWith(`${e}=`))return!0;let r=t.slice(13);return n.test(r)&&(i=r),!1});return r.hash=o.join("&"),{token:i,cleanUrl:r.href}}export{r as createPeerInvitationLink,i as readPeerInvitationLink};
|
package/dist/media.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as ImageObjectBox, V as VideoSubjectStore, a as VideoObjectBox } from './video-adapter-
|
|
2
|
-
export { B as BrowserImageSubjectStoreOptions, b as ImageContentHasher, c as ImageObjectObservation, d as ImageRecognitionProvider, e as ImageSubjectAdapter, f as ImageSubjectAdapterOptions, g as ImageSubjectStore, P as PersistedImageAnalysis, h as PersistedImageSubject, i as PersistedImageSuppression, j as PersistedVideoAnalysis, k as PersistedVideoTrack, l as VideoBackwardAnalysisOptions, m as VideoBackwardAnalysisResult, n as VideoMotionAttempt, o as VideoMotionPolicy, p as VideoMotionPresenceDecision, q as VideoMotionState, r as VideoSegmentationObservation, s as VideoSegmentationPoint, t as VideoSegmentationProvider, u as VideoSubjectAdapter, v as VideoSubjectAdapterOptions, w as VideoTrackKeyframe, x as VideoTrackObservation, y as VideoTrackSegment, z as VideoTrackSmoother, A as VideoTrackingAnchor, C as VideoTrackingAttempt, D as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-
|
|
3
|
-
import { a as PopmeltSubjectBounds } from './subjects-
|
|
1
|
+
import { I as ImageObjectBox, V as VideoSubjectStore, a as VideoObjectBox } from './video-adapter-DtIw_QVy.mjs';
|
|
2
|
+
export { B as BrowserImageSubjectStoreOptions, b as ImageContentHasher, c as ImageObjectObservation, d as ImageRecognitionProvider, e as ImageSubjectAdapter, f as ImageSubjectAdapterOptions, g as ImageSubjectStore, P as PersistedImageAnalysis, h as PersistedImageSubject, i as PersistedImageSuppression, j as PersistedVideoAnalysis, k as PersistedVideoTrack, l as VideoBackwardAnalysisOptions, m as VideoBackwardAnalysisResult, n as VideoMotionAttempt, o as VideoMotionPolicy, p as VideoMotionPresenceDecision, q as VideoMotionState, r as VideoSegmentationObservation, s as VideoSegmentationPoint, t as VideoSegmentationProvider, u as VideoSubjectAdapter, v as VideoSubjectAdapterOptions, w as VideoTrackKeyframe, x as VideoTrackObservation, y as VideoTrackSegment, z as VideoTrackSmoother, A as VideoTrackingAnchor, C as VideoTrackingAttempt, D as VideoTrackingProvider, E as VideoTrackingSeed, F as VideoTrackingSession, G as createBrowserImageSubjectStore, H as createImageSubjectAdapter, J as createMemoryImageSubjectStore, K as createVideoSubjectAdapter } from './video-adapter-DtIw_QVy.mjs';
|
|
3
|
+
import { a as PopmeltSubjectBounds } from './subjects-CGN4QTSS.mjs';
|
|
4
4
|
|
|
5
5
|
declare function unprojectImagePoint(image: HTMLImageElement, clientPoint: {
|
|
6
6
|
x: number;
|
package/dist/memory-store.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ReviewProjectionUpdate, OwnerReviewActionPlan, selectContextualReviewPackets, ContextualReviewQuery, retrieveActionPacket, OwnerReviewCommand, OwnerReviewPlanResult } from './memory.mjs';
|
|
2
2
|
import { P as ProjectMemoryBundle, C as CanonicalRecord, L as LifecycleEvent, R as RelationshipRecord, A as ArtifactManifestEntry, T as Tombstone, D as DecisionKind, I as IterationOutcome, a as ProposalRecord, b as IterationRecord, c as DecisionRecord, M as ModelEntryRecord, J as JsonValue } from './validate-0kt2EgVe.mjs';
|
|
3
3
|
import { I as ImprintThreadSummary, a as ImprintGroundingAction, b as ImprintView } from './types-XKO-uva0.mjs';
|
|
4
|
-
import { M as MemoryReviewReceipt } from './page-planes-
|
|
5
|
-
import './PopmeltProvider-
|
|
6
|
-
import './participantBootstrap-
|
|
4
|
+
import { M as MemoryReviewReceipt } from './page-planes-C5J6qgMj.mjs';
|
|
5
|
+
import './PopmeltProvider-NwqjKtGG.mjs';
|
|
6
|
+
import './participantBootstrap-BjHfrdwL.mjs';
|
|
7
7
|
import { LegacyImportOptions, LegacyImportReport } from './memory-legacy.mjs';
|
|
8
8
|
import 'node:http';
|
|
9
9
|
import 'vite';
|
|
10
|
-
import './protocol-
|
|
11
|
-
import './subjects-
|
|
10
|
+
import './protocol-aJ3S127Q.mjs';
|
|
11
|
+
import './subjects-CGN4QTSS.mjs';
|
|
12
12
|
import 'react';
|
|
13
|
-
import './video-adapter-
|
|
13
|
+
import './video-adapter-DtIw_QVy.mjs';
|
|
14
14
|
|
|
15
15
|
type MemoryJournalMutation = {
|
|
16
16
|
records: CanonicalRecord[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t,c as r}from"./chunk-VJKC2RJB.mjs";import"./chunk-PCUUOIFD.mjs";import{a,b as i}from"./chunk-YHCZYT4T.mjs";import{a as n}from"./chunk-ITLRSHNZ.mjs";import{b as s}from"./chunk-HKHZBKAN.mjs";import"./chunk-CIKFUS7J.mjs";import"./chunk-GLF7Z5IR.mjs";import"./chunk-KD2AOPYP.mjs";import"./chunk-KF73S7MG.mjs";import{execFile as o}from"child_process";import{createHash as l,randomBytes as c}from"crypto";import{mkdir as p,mkdtemp as u,readFile as f,readdir as m,realpath as d,rm as h,stat as g}from"fs/promises";import{extname as w,join as y,relative as v,resolve as b,sep as x}from"path";import{promisify as S}from"util";import{parse as E,serialize as R}from"parse5";var j=S(o),N=33554432,L=(e,t)=>e.attrs.find(e=>e.name===t)?.value;async function k(o,S,k,A,P){let T=async(e,t,r)=>{let n=new URL(k,t),o=await fetch(n,{redirect:"manual",headers:{Accept:"text/html"},signal:AbortSignal.timeout(15e3)});if(200!==o.status||!o.headers.get("content-type")?.includes("text/html"))throw await(o.body?.cancel()),Error("Page unavailable");return async function(e,t,r,n,o){let p=c(18).toString("base64"),u=Buffer.byteLength(r);if(u>N)throw Error("Shared page exceeds the preview size limit");async function h(r,a,s){let l=new URL(r,a);if(l.origin!==t.origin||l.username||l.password)return;let c=decodeURIComponent(l.pathname);if(c.split("/").some(e=>e.startsWith(".")||"node_modules"===e)||/[\\%?#]/.test(c)||i(c)||!s.has(w(c).toLowerCase()))return;let p="next"===n&&c.startsWith("/_next/static/"),m=p?y(e,".next","static"):o,h=b(m,"."+(p?c.slice(13):c));if(h.startsWith(m+x))try{if(await d(h)!==h)return;let e=await g(h);if(!e.isFile()||e.size>N-u)throw Error("Shared page exceeds the preview size limit");return u+=e.size,{data:await f(h),url:l}}catch(e){if("ENOENT"!==e.code)throw e}}let v=new Set(Object.keys(a).filter(e=>".css"!==e)),S=new Set,j=Object.create(null),k=async(e,r)=>{if(e.startsWith("data:"))return e;let i=new URL(e,r);if(i.origin===t.origin&&j[i.pathname])return j[i.pathname];let n=await h(e,r,v),s=n?"data:"+a[w(n.url.pathname).toLowerCase()]+";base64,"+n.data.toString("base64"):"";return s.startsWith("data:image/")&&(j[i.pathname]=s),s};async function A(e,t){let r=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,a=0,i="";for(let n of e.matchAll(r))n[2].startsWith("#")||(i+=e.slice(a,n.index)+"url("+JSON.stringify(await k(n[2].trim(),t))+")",a=n.index+n[0].length);return i+e.slice(a)}let P=E(r);function T(e,t){e.childNodes=[{nodeName:"#text",value:t,parentNode:e}]}let _=new Set,I=new Set,U=new Set,H=new Set([".js",".mjs"]);function z(e){_.add(e.url.pathname);let t=e.data.toString();for(let e of t.matchAll(/["'](\/(?:[A-Za-z0-9_.%~-]+\/)*[A-Za-z0-9_.%~-]+\.(?:png|jpe?g|gif|webp|avif|svg|ico))["']/gi))S.add(e[1]);for(let e of t.matchAll(/["'](?:\/_next\/)?(static\/chunks\/[\w./%-]+\.js)["']/g))I.add("/_next/"+e[1]);for(let e of t.matchAll(/\b[\w$]+\.e\((\d+)\)/g))U.add(e[1]);return('if(document.currentScript)document.currentScript.setAttribute("src",'+JSON.stringify(e.url.pathname).replace(/</g,"\\u003c")+");\n"+t).replace(/<\/script/gi,"<\\/script")}let D=function(e,t){let r="popmelt-module:/",a=new Map,i=new Map,n=new Map,s=new Map;function o(t,r){if(r&&"object"==typeof r)for(let[a,i]of Object.entries(r)){let r=/^(?:\.{0,2}\/|https?:)/.test(a)?new URL(a,e).href:a;t.has(r)||t.set(r,"string"==typeof i?new URL(i,e).href:null)}}function l(e,t){if(e.has(t))return e.get(t);let r=[...e.keys()].filter(e=>e.endsWith("/")&&t.startsWith(e)).sort((e,t)=>t.length-e.length)[0];if(r){let a=e.get(r);return a?.endsWith("/")?a+t.slice(r.length):null}}function c(t){let i=new URL(t,e).href,n=a.get(i)??"entry-"+a.size;return a.set(i,n),r+n+".js"}return{entry:c,importMap(t){let r=JSON.parse(t);o(n,r.imports);for(let[t,a]of Object.entries(r.scopes??{})){let r=new URL(t,e).href,i=s.get(r)??new Map;o(i,a),s.set(r,i)}},inline(t){let r=new URL(e);return r.hash="inline-"+i.size,i.set(r.href,t),c(r.href)},async compile(){if(!a.size)return;let o={name:"invited-page-modules",setup(r){r.onResolve({filter:/.*/},t=>{let r,a=t.importer||e.href,i=/^(?:\.{0,2}\/|https?:\/\/)/.test(t.path),o=i?new URL(t.path,a).href:t.path;if("entry-point"!==t.kind){for(let e of[...s.keys()].filter(e=>a===e||e.endsWith("/")&&a.startsWith(e)).sort((e,t)=>t.length-e.length))if(r=l(s.get(e),o),void 0!==r)break;void 0===r&&(r=l(n,o))}if(null===r||!i&&!r)return{external:!0};let c=new URL(r??o);return c.origin!==e.origin?{path:c.href,external:!0}:{path:c.href,namespace:"page"}}),r.onLoad({filter:/.*/,namespace:"page"},async({path:r})=>{let a=i.get(r)??(await t(r,e))?.data.toString();if(void 0===a)throw new Error("Invited page module unavailable");return{contents:a,loader:"js"}})}},{build:c}=await(import("esbuild")),p=await c({entryPoints:[...a].map(([e,t])=>({in:e,out:t})),bundle:!0,splitting:!0,format:"esm",platform:"browser",publicPath:r,write:!1,outdir:"/",logLevel:"silent",legalComments:"none",minify:!0,plugins:[o]});return Object.fromEntries(p.outputFiles.map(e=>[r+e.path.split(/[\\/]/).pop(),"data:text/javascript;base64,"+Buffer.from(e.contents).toString("base64")]))}}}(t,(e,t)=>h(e,t,H)),W=new Set;await async function e(r){let a=[];for(let i of r.childNodes){if("tagName"in i){let r=i.tagName;if(["base","iframe","frame","embed","object"].includes(r)||"meta"===r&&L(i,"http-equiv"))continue;if("html"===n)for(let e of i.attrs)/^on[a-z]+$/.test(e.name)&&W.add("'sha256-"+l("sha256").update(e.value).digest("base64")+"'");if("astro"===n&&"astro-island"===r)for(let e of i.attrs)["component-url","renderer-url","before-hydration-url"].includes(e.name)&&e.value&&(e.value=D.entry(e.value));if("script"===r){let e=()=>i.childNodes.map(e=>"value"in e?e.value:"").join("");if("next"!==n&&"importmap"===L(i,"type")){D.importMap(e());continue}let r,a=L(i,"src");if("next"!==n&&"module"===L(i,"type")){let t=a?D.entry(a):D.inline(e());T(i,"import "+JSON.stringify(t)+";")}else if(a){if(void 0!==L(i,"nomodule"))continue;let e=await h(a,t,H);if(!e)continue;"next"===n?T(i,z(e)):r="data:text/javascript;base64,"+e.data.toString("base64")}i.attrs=i.attrs.filter(e=>["type","id","async","defer"].includes(e.name)||e.name.startsWith("data-")),r&&i.attrs.push({name:"src",value:r}),i.attrs.push({name:"nonce",value:p})}else if("link"===r){if("stylesheet"!==L(i,"rel"))continue;let e=await h(L(i,"href")??"",t,new Set([".css"]));if(!e)continue;i.tagName=i.nodeName="style",i.attrs=[],T(i,(await A(e.data.toString(),e.url)).replace(/<\/style/gi,"<\\/style"))}else if("style"===r)for(let e of i.childNodes)"value"in e&&(e.value=(await A(e.value,t)).replace(/<\/style/gi,"<\\/style"));else if("img"===r){let e=L(i,"src")??"";e.startsWith("/_next/image?")&&(e=new URL(e,t).searchParams.get("url")??""),i.attrs=i.attrs.filter(e=>"src"!==e.name&&"srcset"!==e.name),e&&(await k(e,t),i.attrs.push({name:"src",value:e}))}await e(i)}a.push(i)}r.childNodes=a}(P);let F=[],J=await D.compile();J&&F.push('<script type="importmap" nonce="'+p+'">'+JSON.stringify({imports:J})+"<\/script>");let B=U.size?await m(y(e,".next","static","chunks")):[],C=new Map;for(let e of B){let t=/^(\d+)[.-][\w.-]+\.js$/.exec(e);if(t){let r=t[1],a=C.get(r)??[];a.push("/_next/static/chunks/"+e),C.set(r,a)}}let q=()=>{for(let e of U)for(let t of C.get(e)??[])I.add(t);U.clear()};q();for(let e of I){if(_.has(e))continue;let r=await h(e,t,H);r&&F.push('<script nonce="'+p+'">'+z(r)+"<\/script>"),q()}for(let e of S)await k(e,t);let K="("+O.toString()+")("+JSON.stringify(j).replace(/</g,"\\u003c")+","+JSON.stringify(t.pathname).replace(/</g,"\\u003c")+");",Y=Buffer.from(await s("live-canvas")).toString().replace(/<\/script/gi,"<\\/script");return{body:R(P).replace(/<head(?: [^>]*)?>/i,e=>e+'<meta name="popmelt-live-canvas" content="1"><script nonce="'+p+'">('+M.toString()+")();"+K+"\n"+Y+"<\/script>"+F.join("")),policy:"sandbox allow-scripts; default-src 'none'; script-src 'nonce-"+p+"'"+(J?" data:":"")+(W.size?"; script-src-attr 'unsafe-hashes' "+[...W].join(" "):"")+"; style-src 'unsafe-inline'; img-src data:; font-src data:; connect-src 'none'; form-action 'none'; base-uri 'none'; frame-ancestors 'self'"}}(e,n,await o.text(),A,r)};if("html"===A){let e=await r(o,A,o,void 0,{});try{return await T(o,e.origin,o)}finally{await e.close()}}let _=y(o,".popmelt");await p(_,{recursive:!0});let I,U=await u(y(_,"interact-"));try{let a=await(await n(o,U)).capture(),i=async e=>(await j("git",e,{cwd:o,env:{...process.env,GIT_INDEX_FILE:y(U,"index")}})).stdout.trim(),s=await i(["rev-parse","--show-toplevel"]),l=y(U,"checkout");await j("git",["init","--quiet","--template=",l]),await i(["read-tree",a]),await i(["-C",s,"checkout-index","--all","--prefix="+l+x]);let c=y(l,v(s,o)),{cli:p}=await t(o,A),u="next"===A?await e(S):{},f="nuxt"===A?["--input-type=module","-e","\nimport { loadNuxt, buildNuxt } from 'nuxt/kit';\nimport { createRequire } from 'node:module';\nimport { writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nconst require = createRequire(import.meta.url);\nconst routerPath = createRequire(require.resolve('nuxt/package.json')).resolve('vue-router');\nconst { createMemoryHistory, createRouter } = await import(routerPath);\nconst route = process.argv[1];\nconst options = resolve('.popmelt-router.mjs');\nawait writeFile(options, 'import { createMemoryHistory } from ' + JSON.stringify(routerPath) +\n ';export default { history: () => createMemoryHistory() };');\nconst nuxt = await loadNuxt({ cwd: process.cwd(), dev: false, overrides: {\n nitro: { preset: 'node-server' }, experimental: { appManifest: false, payloadExtraction: false },\n vite: { build: { modulePreload: false } },\n hooks: {\n 'pages:routerOptions'({files}) { files.push({path: options}); },\n 'pages:resolved'(pages) {\n if (!pages.length) return;\n const record = page => ({ path: page.path, alias: page.alias ?? [],\n component: {}, meta: { page }, children: (page.children || []).map(record) });\n const router = createRouter({ history: createMemoryHistory(), routes: pages.map(record) });\n const selected = new Set(router.resolve(route).matched.map(r => r.meta.page));\n const trim = list => {\n for (let i = list.length - 1; i >= 0; i--) {\n const page = list[i];\n if (!selected.has(page)) list.splice(i, 1);\n else if (page.children) trim(page.children);\n }\n };\n trim(pages);\n },\n },\n}});\ntry { await buildNuxt(nuxt); } finally { await nuxt.close(); }\n",k]:[p,"build",..."next"===A?[...P?[P]:[],"--experimental-build-mode","compile"]:[]];await j(process.execPath,f,{cwd:c,timeout:18e4,maxBuffer:8388608,env:{...u,PATH:process.env.PATH,HOME:process.env.HOME,TMPDIR:process.env.TMPDIR,SystemRoot:process.env.SystemRoot,CI:"1",NODE_ENV:"production",NEXT_TELEMETRY_DISABLED:"1",ASTRO_TELEMETRY_DISABLED:"1",NUXT_TELEMETRY_DISABLED:"1",POPMELT_PLANE_RENDERER:"1"}}),I=await r(c,A,s,void 0,u,!0);let m=y(c,"nuxt"===A?".output/public":"astro"===A?(await g(y(c,"dist/client")).catch(()=>{}))?.isDirectory()?"dist/client":"dist":"public");return await T(c,I.origin,m)}finally{try{await(I?.close())}finally{await h(U,{recursive:!0,force:!0,maxRetries:3})}}}function M(){Object.defineProperty(navigator,"locks",{value:void 0});let e=new Map;Object.defineProperty(document,"cookie",{get:()=>Array.from(e,([e,t])=>e+"="+t).join("; "),set:t=>{let[r,...a]=String(t).split(";"),i=r.indexOf("=");if(i<1)return;let n=r.slice(0,i).trim();a.some(e=>/^\s*max-age=0\s*$/i.test(e))?e.delete(n):e.set(n,r.slice(i+1))}});for(let e of["localStorage","sessionStorage"]){let t=new Map;Object.defineProperty(window,e,{value:{get length(){return t.size},key:e=>Array.from(t.keys())[e]??null,getItem:e=>t.get(String(e))??null,setItem:(e,r)=>{t.set(String(e),String(r))},removeItem:e=>{t.delete(String(e))},clear:()=>t.clear()}})}}function O(e,t){let r=new URL(t,location.href);function a(t){if(t&&!t.startsWith("data:"))try{let a=new URL(t,r);if(a.origin!==r.origin)return;if("/_next/image"===a.pathname&&(a=new URL(a.searchParams.get("url")??"",r)),a.origin===r.origin)return e[a.pathname]}catch{}}function i(e){if(e instanceof HTMLImageElement){let t=a(e.getAttribute("src")??"");t&&(e.removeAttribute("srcset"),e.src=t)}else if(e instanceof HTMLVideoElement){let t=a(e.getAttribute("poster")??"");t&&(e.poster=t)}}new MutationObserver(e=>{for(let t of e)if("attributes"===t.type)i(t.target);else for(let e of t.addedNodes)e instanceof Element&&(i(e),e.querySelectorAll("img,video[poster]").forEach(i))}).observe(document,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["src","poster","srcset"]})}function A(e,t,r,a){let i,n="";return async(s,o)=>{let l=o+"\n"+s;for(;i&&n!==l;){let e=i;await e.catch(()=>{}),i===e&&(i=void 0)}if(!i||n!==l){n=l;let o=k(e,t,s,r,a);i=o,o.catch(()=>{i===o&&(i=void 0)})}return i}}export{A as pageInteraction};
|
|
1
|
+
import{a as e,b as t,c as r}from"./chunk-WNCZCPTX.mjs";import"./chunk-PCUUOIFD.mjs";import{a,b as i}from"./chunk-YZIDCW7A.mjs";import{a as n}from"./chunk-NMMTIZ6K.mjs";import{b as s}from"./chunk-HKHZBKAN.mjs";import"./chunk-R565ZNSP.mjs";import"./chunk-GLF7Z5IR.mjs";import"./chunk-KD2AOPYP.mjs";import"./chunk-KF73S7MG.mjs";import{execFile as o}from"child_process";import{createHash as l,randomBytes as c}from"crypto";import{mkdir as p,mkdtemp as u,readFile as f,readdir as m,realpath as d,rm as h,stat as g}from"fs/promises";import{extname as w,join as y,relative as v,resolve as b,sep as x}from"path";import{promisify as S}from"util";import{parse as N,serialize as E}from"parse5";var j=S(o),R=33554432,L=(e,t)=>e.attrs.find(e=>e.name===t)?.value;async function k(o,S,k,A,P){let _=async(e,t,r)=>{let n=new URL(k,t),o=await fetch(n,{redirect:"manual",headers:{Accept:"text/html"},signal:AbortSignal.timeout(15e3)});if(200!==o.status||!o.headers.get("content-type")?.includes("text/html"))throw await(o.body?.cancel()),Error("Page unavailable");return async function(e,t,r,n,o){let p=c(18).toString("base64"),u=Buffer.byteLength(r);if(u>R)throw Error("Shared page exceeds the preview size limit");async function h(r,a,s){let l=new URL(r,a);if(l.origin!==t.origin||l.username||l.password)return;let c=decodeURIComponent(l.pathname);if(c.split("/").some(e=>e.startsWith(".")||"node_modules"===e)||/[\\%?#]/.test(c)||i(c)||!s.has(w(c).toLowerCase()))return;let p="next"===n&&c.startsWith("/_next/static/"),m=p?y(e,".next","static"):o,h=b(m,"."+(p?c.slice(13):c));if(h.startsWith(m+x))try{if(await d(h)!==h)return;let e=await g(h);if(!e.isFile()||e.size>R-u)throw Error("Shared page exceeds the preview size limit");return u+=e.size,{data:await f(h),url:l}}catch(e){if("ENOENT"!==e.code)throw e}}let v=new Set(Object.keys(a).filter(e=>".css"!==e)),S=new Set,j=Object.create(null),k=async(e,r)=>{if(e.startsWith("data:"))return e;let i=new URL(e,r);if(i.origin===t.origin&&j[i.pathname])return j[i.pathname];let n=await h(e,r,v),s=n?"data:"+a[w(n.url.pathname).toLowerCase()]+";base64,"+n.data.toString("base64"):"";return s.startsWith("data:image/")&&(j[i.pathname]=s),s};async function A(e,t){let r=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,a=0,i="";for(let n of e.matchAll(r))n[2].startsWith("#")||(i+=e.slice(a,n.index)+"url("+JSON.stringify(await k(n[2].trim(),t))+")",a=n.index+n[0].length);return i+e.slice(a)}let P=N(r);function _(e,t){e.childNodes=[{nodeName:"#text",value:t,parentNode:e}]}let I=new Set,T=new Set,U=new Set,W=new Set([".js",".mjs"]);function D(e){I.add(e.url.pathname);let t=e.data.toString();for(let e of t.matchAll(/["'](\/(?:[A-Za-z0-9_.%~-]+\/)*[A-Za-z0-9_.%~-]+\.(?:png|jpe?g|gif|webp|avif|svg|ico))["']/gi))S.add(e[1]);for(let e of t.matchAll(/["'](?:\/_next\/)?(static\/chunks\/[\w./%-]+\.js)["']/g))T.add("/_next/"+e[1]);for(let e of t.matchAll(/\b[\w$]+\.e\((\d+)\)/g))U.add(e[1]);return('if(document.currentScript)document.currentScript.setAttribute("src",'+JSON.stringify(e.url.pathname).replace(/</g,"\\u003c")+");\n"+t).replace(/<\/script/gi,"<\\/script")}let z=function(e,t){let r="popmelt-module:/",a=new Map,i=new Map,n=new Map,s=new Map;function o(t,r){if(r&&"object"==typeof r)for(let[a,i]of Object.entries(r)){let r=/^(?:\.{0,2}\/|https?:)/.test(a)?new URL(a,e).href:a;t.has(r)||t.set(r,"string"==typeof i?new URL(i,e).href:null)}}function l(e,t){if(e.has(t))return e.get(t);let r=[...e.keys()].filter(e=>e.endsWith("/")&&t.startsWith(e)).sort((e,t)=>t.length-e.length)[0];if(r){let a=e.get(r);return a?.endsWith("/")?a+t.slice(r.length):null}}function c(t){let i=new URL(t,e).href,n=a.get(i)??"entry-"+a.size;return a.set(i,n),r+n+".js"}return{entry:c,importMap(t){let r=JSON.parse(t);o(n,r.imports);for(let[t,a]of Object.entries(r.scopes??{})){let r=new URL(t,e).href,i=s.get(r)??new Map;o(i,a),s.set(r,i)}},inline(t){let r=new URL(e);return r.hash="inline-"+i.size,i.set(r.href,t),c(r.href)},async compile(){if(!a.size)return;let o={name:"invited-page-modules",setup(r){r.onResolve({filter:/.*/},t=>{let r,a=t.importer||e.href,i=/^(?:\.{0,2}\/|https?:\/\/)/.test(t.path),o=i?new URL(t.path,a).href:t.path;if("entry-point"!==t.kind){for(let e of[...s.keys()].filter(e=>a===e||e.endsWith("/")&&a.startsWith(e)).sort((e,t)=>t.length-e.length))if(r=l(s.get(e),o),void 0!==r)break;void 0===r&&(r=l(n,o))}if(null===r||!i&&!r)return{external:!0};let c=new URL(r??o);return c.origin!==e.origin?{path:c.href,external:!0}:{path:c.href,namespace:"page"}}),r.onLoad({filter:/.*/,namespace:"page"},async({path:r})=>{let a=i.get(r)??(await t(r,e))?.data.toString();if(void 0===a)throw new Error("Invited page module unavailable");return{contents:a,loader:"js"}})}},{build:c}=await(import("esbuild")),p=await c({entryPoints:[...a].map(([e,t])=>({in:e,out:t})),bundle:!0,splitting:!0,format:"esm",platform:"browser",publicPath:r,write:!1,outdir:"/",logLevel:"silent",legalComments:"none",minify:!0,plugins:[o]});return Object.fromEntries(p.outputFiles.map(e=>[r+e.path.split(/[\\/]/).pop(),"data:text/javascript;base64,"+Buffer.from(e.contents).toString("base64")]))}}}(t,(e,t)=>h(e,t,W)),H=new Set;await async function e(r){let a=[];for(let i of r.childNodes){if("tagName"in i){let r=i.tagName;if(["base","iframe","frame","embed","object"].includes(r)||"meta"===r&&L(i,"http-equiv"))continue;if("html"===n)for(let e of i.attrs)/^on[a-z]+$/.test(e.name)&&H.add("'sha256-"+l("sha256").update(e.value).digest("base64")+"'");if("astro"===n&&"astro-island"===r)for(let e of i.attrs)["component-url","renderer-url","before-hydration-url"].includes(e.name)&&e.value&&(e.value=z.entry(e.value));if("script"===r){let e=()=>i.childNodes.map(e=>"value"in e?e.value:"").join("");if("next"!==n&&"importmap"===L(i,"type")){z.importMap(e());continue}let r,a=L(i,"src");if("next"!==n&&"module"===L(i,"type")){let t=a?z.entry(a):z.inline(e());_(i,"import "+JSON.stringify(t)+";")}else if(a){if(void 0!==L(i,"nomodule"))continue;let e=await h(a,t,W);if(!e)continue;"next"===n?_(i,D(e)):r="data:text/javascript;base64,"+e.data.toString("base64")}i.attrs=i.attrs.filter(e=>["type","id","async","defer"].includes(e.name)||e.name.startsWith("data-")),r&&i.attrs.push({name:"src",value:r}),i.attrs.push({name:"nonce",value:p})}else if("link"===r){if("stylesheet"!==L(i,"rel"))continue;let e=await h(L(i,"href")??"",t,new Set([".css"]));if(!e)continue;i.tagName=i.nodeName="style",i.attrs=[],_(i,(await A(e.data.toString(),e.url)).replace(/<\/style/gi,"<\\/style"))}else if("style"===r)for(let e of i.childNodes)"value"in e&&(e.value=(await A(e.value,t)).replace(/<\/style/gi,"<\\/style"));else if("img"===r){let e=L(i,"src")??"";e.startsWith("/_next/image?")&&(e=new URL(e,t).searchParams.get("url")??""),i.attrs=i.attrs.filter(e=>"src"!==e.name&&"srcset"!==e.name),e&&(await k(e,t),i.attrs.push({name:"src",value:e}))}await e(i)}a.push(i)}r.childNodes=a}(P);let F=[],C=await z.compile();C&&F.push('<script type="importmap" nonce="'+p+'">'+JSON.stringify({imports:C})+"<\/script>");let B=U.size?await m(y(e,".next","static","chunks")):[],q=new Map;for(let e of B){let t=/^(\d+)[.-][\w.-]+\.js$/.exec(e);if(t){let r=t[1],a=q.get(r)??[];a.push("/_next/static/chunks/"+e),q.set(r,a)}}let J=()=>{for(let e of U)for(let t of q.get(e)??[])T.add(t);U.clear()};J();for(let e of T){if(I.has(e))continue;let r=await h(e,t,W);r&&F.push('<script nonce="'+p+'">'+D(r)+"<\/script>"),J()}for(let e of S)await k(e,t);let Z="("+O.toString()+")("+JSON.stringify(j).replace(/</g,"\\u003c")+","+JSON.stringify(t.pathname).replace(/</g,"\\u003c")+");",K=Buffer.from(await s("live-canvas")).toString().replace(/<\/script/gi,"<\\/script");return{body:E(P).replace(/<head(?: [^>]*)?>/i,e=>e+'<meta name="popmelt-live-canvas" content="1"><script nonce="'+p+'">('+M.toString()+")();"+Z+"\n"+K+"<\/script>"+F.join("")),policy:"sandbox allow-scripts; default-src 'none'; script-src 'nonce-"+p+"'"+(C?" data:":"")+(H.size?"; script-src-attr 'unsafe-hashes' "+[...H].join(" "):"")+"; style-src 'unsafe-inline'; img-src data:; font-src data:; connect-src 'none'; form-action 'none'; base-uri 'none'; frame-ancestors 'self'"}}(e,n,await o.text(),A,r)};if("html"===A){let e=await r(o,A,o,void 0,{});try{return await _(o,e.origin,o)}finally{await e.close()}}let I=y(o,".popmelt");await p(I,{recursive:!0});let T,U=await u(y(I,"interact-"));try{let a=await(await n(o,U)).capture(),i=async e=>(await j("git",e,{cwd:o,env:{...process.env,GIT_INDEX_FILE:y(U,"index")}})).stdout.trim(),s=await i(["rev-parse","--show-toplevel"]),l=y(U,"checkout");await j("git",["init","--quiet","--template=",l]),await i(["read-tree",a]),await i(["-C",s,"checkout-index","--all","--prefix="+l+x]);let c=y(l,v(s,o)),{cli:p}=await t(o,A),u="next"===A?await e(S):{},f="nuxt"===A?["--input-type=module","-e","\nimport { loadNuxt, buildNuxt } from 'nuxt/kit';\nimport { createRequire } from 'node:module';\nimport { writeFile } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nconst require = createRequire(import.meta.url);\nconst routerPath = createRequire(require.resolve('nuxt/package.json')).resolve('vue-router');\nconst { createMemoryHistory, createRouter } = await import(routerPath);\nconst route = process.argv[1];\nconst options = resolve('.popmelt-router.mjs');\nawait writeFile(options, 'import { createMemoryHistory } from ' + JSON.stringify(routerPath) +\n ';export default { history: () => createMemoryHistory() };');\nconst nuxt = await loadNuxt({ cwd: process.cwd(), dev: false, overrides: {\n nitro: { preset: 'node-server' }, experimental: { appManifest: false, payloadExtraction: false },\n vite: { build: { modulePreload: false } },\n hooks: {\n 'pages:routerOptions'({files}) { files.push({path: options}); },\n 'pages:resolved'(pages) {\n if (!pages.length) return;\n const record = page => ({ path: page.path, alias: page.alias ?? [],\n component: {}, meta: { page }, children: (page.children || []).map(record) });\n const router = createRouter({ history: createMemoryHistory(), routes: pages.map(record) });\n const selected = new Set(router.resolve(route).matched.map(r => r.meta.page));\n const trim = list => {\n for (let i = list.length - 1; i >= 0; i--) {\n const page = list[i];\n if (!selected.has(page)) list.splice(i, 1);\n else if (page.children) trim(page.children);\n }\n };\n trim(pages);\n },\n },\n}});\ntry { await buildNuxt(nuxt); } finally { await nuxt.close(); }\n",k]:[p,"build",..."next"===A?[...P?[P]:[],"--experimental-build-mode","compile"]:[]];await j(process.execPath,f,{cwd:c,timeout:18e4,maxBuffer:8388608,env:{...u,PATH:process.env.PATH,HOME:process.env.HOME,TMPDIR:process.env.TMPDIR,SystemRoot:process.env.SystemRoot,CI:"1",NODE_ENV:"production",NEXT_TELEMETRY_DISABLED:"1",ASTRO_TELEMETRY_DISABLED:"1",NUXT_TELEMETRY_DISABLED:"1",POPMELT_PLANE_RENDERER:"1"}}),T=await r(c,A,s,void 0,u,!0);let m=y(c,"nuxt"===A?".output/public":"astro"===A?(await g(y(c,"dist/client")).catch(()=>{}))?.isDirectory()?"dist/client":"dist":"public");return await _(c,T.origin,m)}finally{try{await(T?.close())}finally{await h(U,{recursive:!0,force:!0,maxRetries:3})}}}function M(){Object.defineProperty(navigator,"locks",{value:void 0});let e=new Map;Object.defineProperty(document,"cookie",{get:()=>Array.from(e,([e,t])=>e+"="+t).join("; "),set:t=>{let[r,...a]=String(t).split(";"),i=r.indexOf("=");if(i<1)return;let n=r.slice(0,i).trim();a.some(e=>/^\s*max-age=0\s*$/i.test(e))?e.delete(n):e.set(n,r.slice(i+1))}});for(let e of["localStorage","sessionStorage"]){let t=new Map;Object.defineProperty(window,e,{value:{get length(){return t.size},key:e=>Array.from(t.keys())[e]??null,getItem:e=>t.get(String(e))??null,setItem:(e,r)=>{t.set(String(e),String(r))},removeItem:e=>{t.delete(String(e))},clear:()=>t.clear()}})}}function O(e,t){let r=new URL(t,location.href);function a(t){if(t&&!t.startsWith("data:"))try{let a=new URL(t,r);if(a.origin!==r.origin)return;if("/_next/image"===a.pathname&&(a=new URL(a.searchParams.get("url")??"",r)),a.origin===r.origin)return e[a.pathname]}catch{}}function i(e){if(e instanceof HTMLImageElement){let t=a(e.getAttribute("src")??"");t&&(e.removeAttribute("srcset"),e.src=t)}else if(e instanceof HTMLVideoElement){let t=a(e.getAttribute("poster")??"");t&&(e.poster=t)}}new MutationObserver(e=>{for(let t of e)if("attributes"===t.type)i(t.target);else for(let e of t.addedNodes)e instanceof Element&&(i(e),e.querySelectorAll("img,video[poster]").forEach(i))}).observe(document,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["src","poster","srcset"]})}function A(e,t,r,a){let i,n="";return async(s,o)=>{let l=o+"\n"+s;for(;i&&n!==l;){let e=i;await e.catch(()=>{}),i===e&&(i=void 0)}if(!i||n!==l){n=l;let o=k(e,t,s,r,a);i=o,o.catch(()=>{i===o&&(i=void 0)})}return i}}export{A as pageInteraction};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as node_http from 'node:http';
|
|
2
2
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
3
|
-
import { f as ParticipantBootstrapConfig } from './participantBootstrap-
|
|
3
|
+
import { f as ParticipantBootstrapConfig } from './participantBootstrap-BjHfrdwL.mjs';
|
|
4
4
|
import { build } from 'vite';
|
|
5
|
-
import { P as Provider } from './protocol-
|
|
6
|
-
import './
|
|
7
|
-
import
|
|
5
|
+
import { A as AgentRunSettings, P as Provider } from './protocol-aJ3S127Q.mjs';
|
|
6
|
+
import { g as StyleModification, A as Annotation, p as AnnotationState, q as StickerFamily, r as StickerSubproperty, O as OpaqueTargetReference } from './subjects-CGN4QTSS.mjs';
|
|
7
|
+
import './PopmeltProvider-NwqjKtGG.mjs';
|
|
8
8
|
|
|
9
9
|
/** Experimental peer primitives. Not a public API or an authorization boundary. */
|
|
10
10
|
type PeerIdentity = {
|
|
@@ -15,45 +15,6 @@ type PeerIdentity = {
|
|
|
15
15
|
};
|
|
16
16
|
type PeerPermission = 'direct' | 'approval-required' | 'blocked';
|
|
17
17
|
|
|
18
|
-
/** Local preview protocol. Peers never supply reducer actions or host authority. */
|
|
19
|
-
type PeerAction = {
|
|
20
|
-
type: 'tokens';
|
|
21
|
-
family?: StickerFamily;
|
|
22
|
-
subproperty?: StickerSubproperty;
|
|
23
|
-
} | {
|
|
24
|
-
type: 'inspect';
|
|
25
|
-
selector: string;
|
|
26
|
-
target?: OpaqueTargetReference;
|
|
27
|
-
properties?: string[];
|
|
28
|
-
plane?: 'own' | 'host';
|
|
29
|
-
} | {
|
|
30
|
-
type: 'comment';
|
|
31
|
-
selector: string;
|
|
32
|
-
target?: OpaqueTargetReference;
|
|
33
|
-
text: string;
|
|
34
|
-
} | {
|
|
35
|
-
type: 'clear';
|
|
36
|
-
selector: string;
|
|
37
|
-
kind: 'comment' | 'style' | 'all';
|
|
38
|
-
} | {
|
|
39
|
-
type: 'style';
|
|
40
|
-
selector: string;
|
|
41
|
-
property: string;
|
|
42
|
-
value: string;
|
|
43
|
-
} | {
|
|
44
|
-
type: 'style';
|
|
45
|
-
selector: string;
|
|
46
|
-
token: string;
|
|
47
|
-
family?: StickerFamily;
|
|
48
|
-
} | {
|
|
49
|
-
type: 'attention';
|
|
50
|
-
selector: string | null;
|
|
51
|
-
target?: OpaqueTargetReference;
|
|
52
|
-
activity?: 'looking' | 'working';
|
|
53
|
-
} | {
|
|
54
|
-
type: 'undo' | 'redo' | 'send' | 'rebase';
|
|
55
|
-
};
|
|
56
|
-
|
|
57
18
|
/** Only target identity and submitted values travel in the polling receipt. */
|
|
58
19
|
type StyleSuggestionReceipt = Pick<StyleModification, 'selector' | 'durableSelector' | 'pathname' | 'annotationNumber'> & {
|
|
59
20
|
changes: Pick<StyleModification['changes'][number], 'property' | 'original' | 'modified' | 'token'>[];
|
|
@@ -144,6 +105,7 @@ type HostModelSelection = {
|
|
|
144
105
|
provider: string;
|
|
145
106
|
model: string;
|
|
146
107
|
label: string;
|
|
108
|
+
settings?: AgentRunSettings;
|
|
147
109
|
};
|
|
148
110
|
type ProjectVisibility = 'public' | 'private';
|
|
149
111
|
type PeerParticipant = {
|
|
@@ -165,6 +127,8 @@ type PeerParticipant = {
|
|
|
165
127
|
draftRevision: number;
|
|
166
128
|
/** Thread-linked pins omitted from this participant's shared canvas. */
|
|
167
129
|
hiddenAnnotationThreadIds?: string[];
|
|
130
|
+
/** Shared pins on this plane with a model question for the current viewer. */
|
|
131
|
+
questionThreadIds?: string[];
|
|
168
132
|
/** Latest recorded plane event; absent when no dated activity is known. */
|
|
169
133
|
lastActivityAt?: number;
|
|
170
134
|
};
|
|
@@ -201,6 +165,56 @@ type PeerChangeReference = {
|
|
|
201
165
|
draft: ParticipantDraft;
|
|
202
166
|
};
|
|
203
167
|
|
|
168
|
+
type ManagedGuestPreview = {
|
|
169
|
+
origin: string;
|
|
170
|
+
remember(cookie: string, bookmark: string, expires: number): void;
|
|
171
|
+
resume(cookie: string): Promise<{
|
|
172
|
+
credential: ParticipantCredential;
|
|
173
|
+
sharedPath: string;
|
|
174
|
+
bookmark: string;
|
|
175
|
+
expires: number;
|
|
176
|
+
} | undefined>;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/** Local preview protocol. Peers never supply reducer actions or host authority. */
|
|
180
|
+
type PeerAction = {
|
|
181
|
+
type: 'tokens';
|
|
182
|
+
family?: StickerFamily;
|
|
183
|
+
subproperty?: StickerSubproperty;
|
|
184
|
+
} | {
|
|
185
|
+
type: 'inspect';
|
|
186
|
+
selector: string;
|
|
187
|
+
target?: OpaqueTargetReference;
|
|
188
|
+
properties?: string[];
|
|
189
|
+
plane?: 'own' | 'host';
|
|
190
|
+
} | {
|
|
191
|
+
type: 'comment';
|
|
192
|
+
selector: string;
|
|
193
|
+
target?: OpaqueTargetReference;
|
|
194
|
+
text: string;
|
|
195
|
+
} | {
|
|
196
|
+
type: 'clear';
|
|
197
|
+
selector: string;
|
|
198
|
+
kind: 'comment' | 'style' | 'all';
|
|
199
|
+
} | {
|
|
200
|
+
type: 'style';
|
|
201
|
+
selector: string;
|
|
202
|
+
property: string;
|
|
203
|
+
value: string;
|
|
204
|
+
} | {
|
|
205
|
+
type: 'style';
|
|
206
|
+
selector: string;
|
|
207
|
+
token: string;
|
|
208
|
+
family?: StickerFamily;
|
|
209
|
+
} | {
|
|
210
|
+
type: 'attention';
|
|
211
|
+
selector: string | null;
|
|
212
|
+
target?: OpaqueTargetReference;
|
|
213
|
+
activity?: 'looking' | 'working';
|
|
214
|
+
} | {
|
|
215
|
+
type: 'undo' | 'redo' | 'send' | 'rebase';
|
|
216
|
+
};
|
|
217
|
+
|
|
204
218
|
/** A request capability can inspect only its own admission, never a plane. */
|
|
205
219
|
interface AdmissionReceipt {
|
|
206
220
|
id: string;
|
|
@@ -221,6 +235,11 @@ interface AdmissionStatus extends AdmissionRequest {
|
|
|
221
235
|
participant?: PeerParticipant;
|
|
222
236
|
}
|
|
223
237
|
|
|
238
|
+
type GuestPasskey = {
|
|
239
|
+
id: string;
|
|
240
|
+
publicKey: string;
|
|
241
|
+
counter: number;
|
|
242
|
+
};
|
|
224
243
|
/**
|
|
225
244
|
* Opt-in session kernel. No browser launching, rendering, app-state sync, or
|
|
226
245
|
* code execution lives here. A trusted bridge owns ONE instance per project.
|
|
@@ -269,7 +288,8 @@ declare class PeerSessions {
|
|
|
269
288
|
canReadNow(credential: ParticipantCredential): boolean;
|
|
270
289
|
/** Trusted executor check. An approval is issued by the host transport, not the caller. */
|
|
271
290
|
checkExecution(participantId: string, epoch: number, approvedBy?: string, approverEpoch?: number): Promise<PeerParticipant>;
|
|
272
|
-
invite(credential: ParticipantCredential, sharedPath?: string): Promise<{
|
|
291
|
+
invite(credential: ParticipantCredential, sharedPath?: string, passkey?: boolean): Promise<{
|
|
292
|
+
bookmark?: string | undefined;
|
|
273
293
|
token: string;
|
|
274
294
|
expiresAt: number;
|
|
275
295
|
}>;
|
|
@@ -292,6 +312,27 @@ declare class PeerSessions {
|
|
|
292
312
|
credential?: undefined;
|
|
293
313
|
sharedPath?: undefined;
|
|
294
314
|
}>;
|
|
315
|
+
inspectGuestTicket(bookmark: string, ticket: string): Promise<void>;
|
|
316
|
+
enrollGuestPasskey(bookmark: string, ticket: string, name: string, passkey: GuestPasskey): Promise<void>;
|
|
317
|
+
pairedGuest(lookup: string | {
|
|
318
|
+
passkeyId: string;
|
|
319
|
+
}, assertion?: {
|
|
320
|
+
id: string;
|
|
321
|
+
previous: number;
|
|
322
|
+
counter: number;
|
|
323
|
+
}): Promise<{
|
|
324
|
+
bookmark: string;
|
|
325
|
+
passkey: {
|
|
326
|
+
id: string;
|
|
327
|
+
publicKey: string;
|
|
328
|
+
counter: number;
|
|
329
|
+
};
|
|
330
|
+
sharedPath: string;
|
|
331
|
+
credential: {
|
|
332
|
+
participantId: string;
|
|
333
|
+
token: string;
|
|
334
|
+
};
|
|
335
|
+
}>;
|
|
295
336
|
guestInviteAppearance(invitation: string): Promise<{
|
|
296
337
|
projectName: string;
|
|
297
338
|
color: string;
|
|
@@ -321,14 +362,11 @@ declare class PeerSessions {
|
|
|
321
362
|
admission: AdmissionRequest;
|
|
322
363
|
joined?: undefined;
|
|
323
364
|
}>;
|
|
324
|
-
snapshot(credential: ParticipantCredential, threadIsVisible?: (id: string) => boolean): Promise<PeerParticipant[]>;
|
|
365
|
+
snapshot(credential: ParticipantCredential, threadIsVisible?: (id: string) => boolean, peerQuestionPinIds?: (threadId: string, ownerId: string) => readonly string[] | undefined): Promise<PeerParticipant[]>;
|
|
325
366
|
isHost(id: string): Promise<boolean>;
|
|
326
367
|
setProjectVisibility(credential: ParticipantCredential, visibility: unknown): Promise<PeerParticipant[]>;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
model: string;
|
|
330
|
-
label: string;
|
|
331
|
-
}>;
|
|
368
|
+
hostModelSelection(): Promise<HostModelSelection | null>;
|
|
369
|
+
setHostModelSelection(credential: ParticipantCredential, value: unknown, initialize?: boolean): Promise<HostModelSelection>;
|
|
332
370
|
/** Called only after the transport has authenticated the execution's author. */
|
|
333
371
|
inheritedModelSelection(participantId: string): Promise<HostModelSelection | null>;
|
|
334
372
|
private admission;
|
|
@@ -349,6 +387,7 @@ declare class PeerSessions {
|
|
|
349
387
|
revision: string | undefined;
|
|
350
388
|
}>;
|
|
351
389
|
hasSharedAnnotation(credential: ParticipantCredential, ownerId: string | undefined, threadId: string, annotationIds: ReadonlySet<string>): Promise<boolean>;
|
|
390
|
+
hasSharedAnnotationNow(credential: ParticipantCredential, ownerId: string | undefined, threadId: string, annotationIds: ReadonlySet<string>): boolean;
|
|
352
391
|
readPlane(credential: ParticipantCredential, participantId: string, historyVersion?: number): Promise<PeerChangeReference>;
|
|
353
392
|
rename(credential: ParticipantCredential, name: string): Promise<PeerParticipant>;
|
|
354
393
|
setPermission(credential: ParticipantCredential, participantId: string, permission: PeerPermission): Promise<PeerParticipant>;
|
|
@@ -533,6 +572,7 @@ type PopmeltOptions = {
|
|
|
533
572
|
/** Resolve a host-selected guest transport after invite authorization. */
|
|
534
573
|
stopGuestSharing?: () => Promise<void>;
|
|
535
574
|
guestOrigin?: (mode: 'lan' | 'tunnel') => Promise<string>;
|
|
575
|
+
managedGuest?: (config: ManagedGuestPreview) => node_http.RequestListener;
|
|
536
576
|
agentAdapter?: ParticipantAgentAdapter;
|
|
537
577
|
/** Experimental host transport: preserve the visible input and attach its context to the same Codex turn. */
|
|
538
578
|
sendCanvasNoteTurn?: (turn: CanvasNoteTurn) => Promise<void>;
|
|
@@ -542,6 +582,13 @@ type PopmeltHandle = {
|
|
|
542
582
|
port: number;
|
|
543
583
|
projectId: string;
|
|
544
584
|
storeId?: string;
|
|
585
|
+
guestRecoveryUrl?: () => string | undefined;
|
|
586
|
+
redeemGuestHandoff?: (ticket: string, origin: string) => Promise<{
|
|
587
|
+
bookmark: string;
|
|
588
|
+
credential: ParticipantCredential;
|
|
589
|
+
sharedPath: string;
|
|
590
|
+
}>;
|
|
591
|
+
checkGuestBookmark?: (bookmark: string) => Promise<void>;
|
|
545
592
|
visitGuestInvite?: PeerSessions['visitGuestInvite'];
|
|
546
593
|
guestInviteAppearance?: (invitation: string) => Promise<{
|
|
547
594
|
projectName?: string;
|
|
@@ -554,6 +601,7 @@ type PopmeltHandle = {
|
|
|
554
601
|
revision?: string;
|
|
555
602
|
}>;
|
|
556
603
|
/** Trusted local launch/recovery only; never publish this capability in HTML. */
|
|
604
|
+
remoteGuestAvailable?: () => boolean;
|
|
557
605
|
participantHost?: () => Promise<ParticipantCredential>;
|
|
558
606
|
close: () => Promise<void>;
|
|
559
607
|
};
|
|
@@ -584,6 +632,7 @@ type GatewayOptions = {
|
|
|
584
632
|
/** Framework adapters supply only the app content they intend guests to see.
|
|
585
633
|
* Core owns invitation redemption, authorization and the guest-only bridge. */
|
|
586
634
|
declare function createParticipantGuestAccess(getBridge: () => PopmeltHandle, readApp: ReadGuestApp, planes?: ParticipantPlaneApps): {
|
|
635
|
+
managedGuest(config: ManagedGuestPreview): (req: IncomingMessage, res: ServerResponse) => void;
|
|
587
636
|
guestOrigin(mode: "lan" | "tunnel"): Promise<string>;
|
|
588
637
|
stopGuestSharing(): Promise<void>;
|
|
589
638
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, P as PopmeltSubjectAdapter } from './subjects-
|
|
2
|
-
import { d as ImageRecognitionProvider, D as VideoTrackingProvider, t as VideoSegmentationProvider, f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-
|
|
1
|
+
import { A as Annotation, P as PopmeltSubjectAdapter } from './subjects-CGN4QTSS.mjs';
|
|
2
|
+
import { d as ImageRecognitionProvider, D as VideoTrackingProvider, t as VideoSegmentationProvider, f as ImageSubjectAdapterOptions, v as VideoSubjectAdapterOptions } from './video-adapter-DtIw_QVy.mjs';
|
|
3
3
|
|
|
4
4
|
type CommentMetaValue = null | boolean | number | string | CommentMetaValue[] | {
|
|
5
5
|
[key: string]: CommentMetaValue;
|
|
@@ -87,6 +87,7 @@ type ParticipantBootstrapConfig = {
|
|
|
87
87
|
lanInviteOrigin?: string;
|
|
88
88
|
/** Preferred initial transport when the host supports on-demand guest gateways. */
|
|
89
89
|
guestInvites?: 'lan' | 'tunnel';
|
|
90
|
+
remoteAvailable?: boolean;
|
|
90
91
|
tunnelAvailable?: boolean;
|
|
91
92
|
appVersion?: string;
|
|
92
93
|
url: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m,b as n,c as s,d as r,e as t,f as o}from"./chunk-OSUJWNS2.mjs";import"./chunk-QKJPWA2I.mjs";import"./chunk-XMCHOGMG.mjs";import"./chunk-WNCZCPTX.mjs";import"./chunk-PCUUOIFD.mjs";import"./chunk-YZIDCW7A.mjs";import"./chunk-XNCN6DGG.mjs";import"./chunk-ALWPAFIW.mjs";import"./chunk-BSVZXOOS.mjs";import"./chunk-7OATJ6BO.mjs";import"./chunk-NC7YXD7Q.mjs";import"./chunk-KOHR4LAQ.mjs";import"./chunk-TJ25JLBL.mjs";import"./chunk-NMMTIZ6K.mjs";import"./chunk-HKHZBKAN.mjs";import"./chunk-R565ZNSP.mjs";import"./chunk-ZEIVO4X7.mjs";import"./chunk-GLF7Z5IR.mjs";import"./chunk-KD2AOPYP.mjs";import"./chunk-KF73S7MG.mjs";import"./chunk-NOHXTT24.mjs";export{m as agentCredentialFile,t as callPeer,r as canvasChatRequest,s as enrolledCanvasEndpoint,o as runPeerCommand,n as sendThreadNote};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={mac:{title:"Can’t reach your Mac",detail:"This phone can’t reach the Mac’s pairing service. Check that the Mac is awake and online."},gateway:{title:"Project gateway unavailable",detail:"Your Mac’s pairing service is online, but this project’s gateway isn’t responding."},app:{title:"Dev server unavailable",detail:"The project gateway is online, but it can’t reach the dev server for this project."},bridge:{title:"Project bridge unavailable",detail:"The project gateway is online, but it can’t reach the Popmelt bridge."},connection:{title:"Can’t reach the project bridge",detail:"This phone couldn’t get a response from the Popmelt bridge."},checkout:{title:"Check the paired project",detail:"Popmelt can no longer verify the paired project folder. Open Pair your phone in the original project on your Mac."}};function t(t,a){return["Please restore remote access to my Popmelt project on this Mac.","Pairing ID: "+a+".",e[t].detail,"Identify the original checkout from its existing pairing record. Check its dev server, Popmelt bridge and pairing route. Restart only the unavailable service using the project’s existing setup, then verify that the local app and bridge respond and the original bookmark reaches Unlock project. Preserve my pairing and other running projects."].join("\n")}export{e as phoneRecovery,t as phoneRestartPrompt};
|
package/dist/plugin-astro.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { P as PopmeltPluginOptions } from './dev-server-
|
|
1
|
+
import { P as PopmeltPluginOptions } from './dev-server-C-mvGeOM.mjs';
|
|
2
2
|
import { popmelt as popmelt$1 } from './plugin-vite.mjs';
|
|
3
|
-
import './participantBootstrap-
|
|
4
|
-
import './subjects-
|
|
5
|
-
import './video-adapter-
|
|
3
|
+
import './participantBootstrap-BjHfrdwL.mjs';
|
|
4
|
+
import './subjects-CGN4QTSS.mjs';
|
|
5
|
+
import './video-adapter-DtIw_QVy.mjs';
|
|
6
6
|
import 'node:http';
|
|
7
|
-
import './PopmeltProvider-
|
|
7
|
+
import './PopmeltProvider-NwqjKtGG.mjs';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'vite';
|
|
10
|
-
import './page-planes-
|
|
11
|
-
import './protocol-
|
|
10
|
+
import './page-planes-C5J6qgMj.mjs';
|
|
11
|
+
import './protocol-aJ3S127Q.mjs';
|
|
12
12
|
|
|
13
13
|
type PopmeltAstroOptions = PopmeltPluginOptions & {
|
|
14
14
|
/** Set false when an existing provider mounts the UI. */
|
package/dist/plugin-astro.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"./chunk-
|
|
1
|
+
import{b as t}from"./chunk-23YWKAQM.mjs";import"./chunk-RBX7ANQX.mjs";import"./chunk-LWPNOBGS.mjs";import"./chunk-TJ25JLBL.mjs";import"./chunk-NMMTIZ6K.mjs";import"./chunk-HKHZBKAN.mjs";import"./chunk-R565ZNSP.mjs";import"./chunk-ZEIVO4X7.mjs";import"./chunk-GLF7Z5IR.mjs";import"./chunk-KD2AOPYP.mjs";import"./chunk-KF73S7MG.mjs";import"./chunk-XBA5ROC5.mjs";import"./chunk-NOHXTT24.mjs";import{fileURLToPath as e}from"url";function n(n={}){return{name:"popmelt",hooks:{"astro:config:setup"({command:r,config:i,updateConfig:s,injectScript:m}){if("dev"!==r||"1"===process.env.POPMELT_PLANE_RENDERER)return;let{client:a=!0,...d}=n;s({vite:{plugins:[t({...d,projectRoot:n.projectRoot??e(i.root)},"astro")],optimizeDeps:{include:a?["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client"]:[]}}}),m("page",a?o:"\nimport { bridgeUrl, projectId } from 'virtual:popmelt/bridge';\nif (bridgeUrl) window.__POPMELT_BRIDGE_URL__ = bridgeUrl;\nif (projectId) window.__POPMELT_PROJECT_ID__ = projectId;\n")}}}}var o="\nimport { bridgeUrl, projectId } from 'virtual:popmelt/bridge';\nimport { navigate } from 'astro:transitions/client';\nlet disposed = false;\nlet mounting;\nconst start = () => {\n if (disposed || mounting || !bridgeUrl || !projectId) return;\n mounting = Promise.resolve(import.meta.hot?.data.cleanup).then(async () => {\n if (disposed) return;\n const { mountPopmelt } = await import('@popmelt.com/core/browser');\n if (disposed) return;\n const handle = await mountPopmelt({ enabled: true, bridgeUrl, projectId, navigate });\n return handle;\n }).catch(error => { console.warn('[popmelt] startup failed:', error); });\n};\n// The standalone hosts live outside body, so Astro's body swaps retain them.\ndocument.addEventListener('astro:page-load', start);\nif (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start, { once: true });\nelse start();\nimport.meta.hot?.dispose(data => {\n if (disposed) return;\n disposed = true;\n document.removeEventListener('astro:page-load', start);\n document.removeEventListener('DOMContentLoaded', start);\n data.cleanup = mounting?.then(handle => handle?.unmount());\n});\n";export{n as popmelt};
|
package/dist/plugin-next.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NextResponse as
|
|
1
|
+
import{NextResponse as m}from"next/server.js";function u(t=1111){return Array.from({length:Math.min(32,65536-t)},(e,o)=>t+o)}import{getPopmeltProjectId as P}from"./project-id.mjs";function f(){if(process.env.POPMELT_BRIDGE_URL)try{let t=new URL(process.env.POPMELT_BRIDGE_URL).port;if(t)return parseInt(t,10)}catch{}return parseInt(process.env.POPMELT_BRIDGE_PORT||"1111",10)}var h=1e3,l=null;function g(){try{return typeof process<"u"&&typeof process.cwd=="function"?process.cwd():null}catch{return null}}function E(t){if(t)return P(t);let e=g();return process.env.POPMELT_PROJECT_ID||(e?P(e):null)}async function _(t,e){let o=new AbortController,r=setTimeout(()=>o.abort(),350);try{let n=new URL("/status?discovery=1",`http://localhost:${t}`);e&&n.searchParams.set("projectId",e);let s=await fetch(n,{signal:o.signal,cache:"no-store"});if(!s.ok)return null;let p=await s.json();return e&&p.projectId!==e?null:p}catch{return null}finally{clearTimeout(r)}}async function d(t,e){let o=Date.now();if(l&&l.preferredPort===t&&l.projectId===e&&l.expiresAt>o)return l.port;if(await _(t,e))return l={preferredPort:t,projectId:e,port:t,expiresAt:o+h},t;if(!e)return t;let n=u().filter(a=>a!==t),i=(await Promise.all(n.map(async a=>await _(a,e)?a:null))).find(a=>a!==null)??null;return l={preferredPort:t,projectId:e,port:i,expiresAt:o+h},i}async function c(t,e,o="/status"){let r=await d(t,e);if(r===null)return m.json({error:"Popmelt bridge unavailable for this project",projectId:e},{status:503,headers:{"Cache-Control":"no-store"}});let n=new URL(o,`http://localhost:${r}`);return e&&n.searchParams.set("projectId",e),m.rewrite(n)}function I(t,e){let o=e?.basePath??"/popmelt",r=e?.port??f(),n=e?.projectId??E(e?.projectRoot);return process.env.NODE_ENV!=="production"&&t.nextUrl.pathname==="/popmelt/phone"?c(r,n,"/phone-host"):process.env.NODE_ENV!=="production"&&process.env.POPMELT_DEV_SESSION&&t.nextUrl.pathname==="/__popmelt/host"&&n?c(r,n,"/__popmelt/host"):process.env.NODE_ENV!=="production"&&process.env.POPMELT_DEV_SESSION&&t.nextUrl.pathname.startsWith("/__popmelt/planes/")&&n?c(r,n,t.nextUrl.pathname+(t.nextUrl.search??"")):t.nextUrl.pathname===`${o}/status`?c(r,n):null}function v(t,e){if(process.env.NODE_ENV==="production")return t;if(process.env.POPMELT_PLANE_RENDERER==="1"){let s=process.env.POPMELT_PLANE_WORKSPACE_ROOT;return s?{...t,turbopack:{...t.turbopack,root:s}}:t}let o=e?.port??f(),r=e?.projectId??E(e?.projectRoot),n=t.rewrites;return{...t,serverExternalPackages:[...new Set([...t.serverExternalPackages??[],"@napi-rs/keyring","esbuild"])],async rewrites(){let s=n?await n():[],i=`http://localhost:${await d(o,r)??o}`,a=[...process.env.POPMELT_DEV_SESSION&&r?[{source:"/__popmelt/planes/:path*",destination:`${i}/__popmelt/planes/:path*?projectId=${encodeURIComponent(r)}`},{source:"/__popmelt/host",destination:`${i}/__popmelt/host?projectId=${encodeURIComponent(r)}`}]:[],{source:"/popmelt/phone",destination:`${i}/phone-host`},{source:"/popmelt/status",destination:r?`${i}/status?projectId=${encodeURIComponent(r)}`:`${i}/status`}];return Array.isArray(s)?{beforeFiles:a,afterFiles:s,fallback:[]}:{...s,beforeFiles:[...s.beforeFiles||[],...a]}}}}export{E as getPopmeltProjectId,I as popmeltMiddleware,v as withPopmelt};
|
package/dist/plugin-nuxt.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NuxtModule } from 'nuxt/schema';
|
|
2
|
-
import { P as PopmeltPluginOptions } from './dev-server-
|
|
3
|
-
import './participantBootstrap-
|
|
4
|
-
import './subjects-
|
|
5
|
-
import './video-adapter-
|
|
2
|
+
import { P as PopmeltPluginOptions } from './dev-server-C-mvGeOM.mjs';
|
|
3
|
+
import './participantBootstrap-BjHfrdwL.mjs';
|
|
4
|
+
import './subjects-CGN4QTSS.mjs';
|
|
5
|
+
import './video-adapter-DtIw_QVy.mjs';
|
|
6
6
|
import 'node:http';
|
|
7
|
-
import './PopmeltProvider-
|
|
7
|
+
import './PopmeltProvider-NwqjKtGG.mjs';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
|
10
10
|
type PopmeltNuxtOptions = Pick<PopmeltPluginOptions, 'port' | 'projectRoot' | 'bridge'> & {
|
package/dist/plugin-nuxt.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,c as t}from"./chunk-
|
|
1
|
+
import{b as e,c as t}from"./chunk-XBA5ROC5.mjs";import{b as o}from"./chunk-NOHXTT24.mjs";import{addPluginTemplate as n,defineNuxtModule as r}from"nuxt/kit";var p=r({meta:{name:"@popmelt.com/core/nuxt",configKey:"popmelt"},async setup(r,p){if(!p.options.dev||"1"===process.env.POPMELT_PLANE_RENDERER)return;let s={config:{server:p.options.devServer},middlewares:{use(){}}},i=await e({...r,projectRoot:r.projectRoot??p.options.rootDir},s,3e3,void 0,"nuxt");if(null===i.port)return;i.updateOrigin&&p.hook("listen",async(e,t)=>{s.httpServer=e;let o=e.address();if(!o||"string"==typeof o)return;let n="127.0.0.1"===o.address?"127.0.0.1":"::1"===o.address?"[::1]":"localhost";await i.updateOrigin(`${t.https?"https":"http"}://${n}:${o.port}`)}),p.hook("nitro:config",e=>{e.routeRules??={},Object.assign(e.routeRules,{...i.bootstrap?.planeApps&&{"/__popmelt/planes/**":{proxy:{to:`http://127.0.0.1:${i.port}/__popmelt/planes/**`,headers:{"x-popmelt-project-id":i.projectId}}}},...i.bootstrap&&{"/__popmelt/host":{proxy:`http://127.0.0.1:${i.port}/__popmelt/host?projectId=${encodeURIComponent(i.projectId)}`}},"/popmelt/phone":{proxy:`http://127.0.0.1:${i.port}/phone-host`}})}),p.hook("vite:extend",({config:e})=>{e.server??={},e.server.fs??={},e.server.fs.strict=!0,e.server.fs.deny=[...e.server.fs.deny??[".env",".env.*","*.{crt,pem}","**/.git/**"],"**/.popmelt","**/.popmelt/**"],e.server.watch??={};let t=e.server.watch.ignored;e.server.watch.ignored=[...Array.isArray(t)?t:t?[t]:[],"**/.popmelt/**"],e.optimizeDeps??={},e.optimizeDeps.include=[...new Set([...e.optimizeDeps.include??[],"react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client"])]});let d=await t(i,s),a=d?o(d):void 0;p.hook("close",async()=>{a?.(),await(d?.release())}),n({filename:"popmelt.client.mjs",mode:"client",getContents:()=>`import { defineNuxtPlugin } from '#app';\nexport default defineNuxtPlugin((nuxtApp) => {\n let disposed = false;\n let mounting;\n const bridgeUrl = ${JSON.stringify(`http://localhost:${i.port}`)};\n const projectId = ${JSON.stringify(i.projectId)};\n ${i.bootstrap?`window.__POPMELT_PARTICIPANTS__=${JSON.stringify(i.bootstrap)};`:""}\n const dispose = () => {\n if (disposed) return;\n disposed = true;\n void mounting?.then(handle => handle?.unmount());\n };\n nuxtApp.hook('app:mounted', () => {\n if (disposed || mounting) return;\n mounting = import('@popmelt.com/core/browser').then(({ mountPopmelt }) => {\n if (disposed) return;\n return mountPopmelt({\n enabled: true,\n bridgeUrl,\n projectId,\n navigate: (url) => nuxtApp.$router.push(url),\n });\n }).then(handle => {\n if (disposed) handle?.unmount();\n return handle;\n }).catch(error => { console.warn('[popmelt] startup failed:', error); });\n });\n nuxtApp.vueApp.onUnmount(dispose);\n import.meta.hot?.dispose(dispose);\n});`})}});export{p as default};
|
package/dist/plugin-vite.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { P as PopmeltPluginOptions, D as DevServerLike } from './dev-server-
|
|
1
|
+
import { P as PopmeltPluginOptions, D as DevServerLike } from './dev-server-C-mvGeOM.mjs';
|
|
2
2
|
import * as vite from 'vite';
|
|
3
3
|
import { createServer, ViteDevServer, Plugin as Plugin$1, UserConfig } from 'vite';
|
|
4
|
-
import { s as startParticipantLan, P as PopmeltHandle, c as createParticipantPlaneApps } from './page-planes-
|
|
5
|
-
import './participantBootstrap-
|
|
6
|
-
import './subjects-
|
|
7
|
-
import './video-adapter-
|
|
4
|
+
import { s as startParticipantLan, P as PopmeltHandle, c as createParticipantPlaneApps } from './page-planes-C5J6qgMj.mjs';
|
|
5
|
+
import './participantBootstrap-BjHfrdwL.mjs';
|
|
6
|
+
import './subjects-CGN4QTSS.mjs';
|
|
7
|
+
import './video-adapter-DtIw_QVy.mjs';
|
|
8
8
|
import 'node:http';
|
|
9
|
-
import './PopmeltProvider-
|
|
9
|
+
import './PopmeltProvider-NwqjKtGG.mjs';
|
|
10
10
|
import 'react';
|
|
11
|
-
import './protocol-
|
|
11
|
+
import './protocol-aJ3S127Q.mjs';
|
|
12
12
|
|
|
13
13
|
type Room = {
|
|
14
14
|
tunnel?: Awaited<ReturnType<typeof startParticipantLan>>;
|
|
@@ -47,6 +47,7 @@ declare function createVitePlaneSession(options: SessionOptions): {
|
|
|
47
47
|
version?: 1;
|
|
48
48
|
planeApps?: boolean;
|
|
49
49
|
guestInvites?: "lan" | "tunnel";
|
|
50
|
+
remoteAvailable?: boolean;
|
|
50
51
|
tunnelAvailable?: boolean;
|
|
51
52
|
appVersion?: string;
|
|
52
53
|
url: string;
|
package/dist/plugin-vite.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m,b as p}from"./chunk-
|
|
1
|
+
import{a as m,b as p}from"./chunk-23YWKAQM.mjs";import"./chunk-RBX7ANQX.mjs";import"./chunk-LWPNOBGS.mjs";import"./chunk-TJ25JLBL.mjs";import"./chunk-NMMTIZ6K.mjs";import"./chunk-HKHZBKAN.mjs";import"./chunk-R565ZNSP.mjs";import"./chunk-ZEIVO4X7.mjs";import"./chunk-GLF7Z5IR.mjs";import"./chunk-KD2AOPYP.mjs";import"./chunk-KF73S7MG.mjs";import"./chunk-XBA5ROC5.mjs";import"./chunk-NOHXTT24.mjs";export{m as participantPlanes,p as popmelt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){return r(t).slice(0,12)}var e=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function r(t){let r=typeof TextEncoder<"u"?Array.from((new TextEncoder).encode(t)):function(t){let e=[];for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):e.push(224|n>>12,128|n>>6&63,128|63&n)}return e}(t),o=8*r.length;for(r.push(128);r.length%64!=56;)r.push(0);for(let t=7;t>=0;t--)r.push(o/Math.pow(2,8*t)&255);let l=1779033703,u=3144134277,f=1013904242,h=2773480762,p=1359893119,a=2600822924,c=528734635,s=1541459225,i=new Array(64);for(let t=0;t<r.length;t+=64){for(let e=0;e<16;e++){let n=t+4*e;i[e]=(r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3])>>>0}for(let t=16;t<64;t++){let e=n(i[t-15],7)^n(i[t-15],18)^i[t-15]>>>3,r=n(i[t-2],17)^n(i[t-2],19)^i[t-2]>>>10;i[t]=i[t-16]+e+i[t-7]+r>>>0}let o=l,d=u,g=f,x=h,m=p,w=a,y=c,A=s;for(let t=0;t<64;t++){let r=A+(n(m,6)^n(m,11)^n(m,25))+(m&w^~m&y)+e[t]+i[t]>>>0,l=o&d^o&g^d&g;A=y,y=w,w=m,m=x+r>>>0,x=g,g=d,d=o,o=r+((n(o,2)^n(o,13)^n(o,22))+l>>>0)>>>0}l=l+o>>>0,u=u+d>>>0,f=f+g>>>0,h=h+x>>>0,p=p+m>>>0,a=a+w>>>0,c=c+y>>>0,s=s+A>>>0}return[l,u,f,h,p,a,c,s].map(t=>t.toString(16).padStart(8,"0")).join("")}function n(t,e){return t>>>e|t<<32-e}export{t as getPopmeltProjectId,r as sha256Hex};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
type Provider = 'claude' | 'codex' | 'copilot' | 'omp' | 'opencode' | 'cursor';
|
|
2
|
+
type AgentRunSettings = {
|
|
3
|
+
reasoningEffort?: string;
|
|
4
|
+
serviceTier?: string;
|
|
5
|
+
};
|
|
2
6
|
/** Client-side envelope used for persisted and streaming bridge events. */
|
|
3
7
|
type BridgeEvent = {
|
|
4
8
|
type: string;
|
|
@@ -6,4 +10,4 @@ type BridgeEvent = {
|
|
|
6
10
|
timestamp: number;
|
|
7
11
|
};
|
|
8
12
|
|
|
9
|
-
export type { BridgeEvent as B, Provider as P };
|
|
13
|
+
export type { AgentRunSettings as A, BridgeEvent as B, Provider as P };
|