ontrackd 0.0.1 → 0.11.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/LICENSE +14 -0
- package/README.md +126 -2
- package/dist/cli/build.d.ts +1 -0
- package/dist/cli/build.js +172 -0
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/cloud.d.ts +20 -0
- package/dist/cli/cloud.js +395 -0
- package/dist/cli/cloud.js.map +1 -0
- package/dist/cli/feedback.d.ts +4 -0
- package/dist/cli/feedback.js +90 -0
- package/dist/cli/feedback.js.map +1 -0
- package/dist/cli/hugo.d.ts +1 -0
- package/dist/cli/hugo.js +396 -0
- package/dist/cli/hugo.js.map +1 -0
- package/dist/cli/init.d.ts +8 -0
- package/dist/cli/init.js +346 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/invite.d.ts +2 -0
- package/dist/cli/invite.js +65 -0
- package/dist/cli/invite.js.map +1 -0
- package/dist/cli/link.d.ts +20 -0
- package/dist/cli/link.js +287 -0
- package/dist/cli/link.js.map +1 -0
- package/dist/cli/pull.d.ts +31 -0
- package/dist/cli/pull.js +273 -0
- package/dist/cli/pull.js.map +1 -0
- package/dist/cli/push.d.ts +9 -0
- package/dist/cli/push.js +57 -0
- package/dist/cli/push.js.map +1 -0
- package/dist/cli/remote.d.ts +1 -0
- package/dist/cli/remote.js +114 -0
- package/dist/cli/remote.js.map +1 -0
- package/dist/cli/serve.d.ts +1 -0
- package/dist/cli/serve.js +178 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/sidecar.d.ts +9 -0
- package/dist/cli/sidecar.js +23 -0
- package/dist/cli/sidecar.js.map +1 -0
- package/dist/core/anchorId.d.ts +42 -0
- package/dist/core/anchorId.js +50 -0
- package/dist/core/anchorId.js.map +1 -0
- package/dist/core/apiKind.d.ts +42 -0
- package/dist/core/apiKind.js +83 -0
- package/dist/core/apiKind.js.map +1 -0
- package/dist/core/astroAnchors.d.ts +39 -0
- package/dist/core/astroAnchors.js +217 -0
- package/dist/core/astroAnchors.js.map +1 -0
- package/dist/core/attachmentTypes.d.ts +74 -0
- package/dist/core/attachmentTypes.js +199 -0
- package/dist/core/attachmentTypes.js.map +1 -0
- package/dist/core/elementHints.d.ts +40 -0
- package/dist/core/elementHints.js +116 -0
- package/dist/core/elementHints.js.map +1 -0
- package/dist/core/exportTaskDoc.d.ts +81 -0
- package/dist/core/exportTaskDoc.js +828 -0
- package/dist/core/exportTaskDoc.js.map +1 -0
- package/dist/core/feedbackTypes.d.ts +241 -0
- package/dist/core/feedbackTypes.js +2 -0
- package/dist/core/feedbackTypes.js.map +1 -0
- package/dist/core/fingerprint.d.ts +12 -0
- package/dist/core/fingerprint.js +24 -0
- package/dist/core/fingerprint.js.map +1 -0
- package/dist/core/htmlAnchors.d.ts +18 -0
- package/dist/core/htmlAnchors.js +157 -0
- package/dist/core/htmlAnchors.js.map +1 -0
- package/dist/core/imageSniff.d.ts +7 -0
- package/dist/core/imageSniff.js +12 -0
- package/dist/core/imageSniff.js.map +1 -0
- package/dist/core/ordering.d.ts +16 -0
- package/dist/core/ordering.js +10 -0
- package/dist/core/ordering.js.map +1 -0
- package/dist/core/oxcAst.d.ts +39 -0
- package/dist/core/oxcAst.js +147 -0
- package/dist/core/oxcAst.js.map +1 -0
- package/dist/core/pageUrl.d.ts +10 -0
- package/dist/core/pageUrl.js +27 -0
- package/dist/core/pageUrl.js.map +1 -0
- package/dist/core/participants.d.ts +14 -0
- package/dist/core/participants.js +38 -0
- package/dist/core/participants.js.map +1 -0
- package/dist/core/ports.d.ts +86 -0
- package/dist/core/ports.js +2 -0
- package/dist/core/ports.js.map +1 -0
- package/dist/core/projectSecret.d.ts +9 -0
- package/dist/core/projectSecret.js +57 -0
- package/dist/core/projectSecret.js.map +1 -0
- package/dist/core/recipe.d.ts +117 -0
- package/dist/core/recipe.js +181 -0
- package/dist/core/recipe.js.map +1 -0
- package/dist/core/recordingSummary.d.ts +12 -0
- package/dist/core/recordingSummary.js +150 -0
- package/dist/core/recordingSummary.js.map +1 -0
- package/dist/core/resolveAnchors.d.ts +70 -0
- package/dist/core/resolveAnchors.js +101 -0
- package/dist/core/resolveAnchors.js.map +1 -0
- package/dist/core/scriptImport.d.ts +10 -0
- package/dist/core/scriptImport.js +18 -0
- package/dist/core/scriptImport.js.map +1 -0
- package/dist/core/sourceAnchors.d.ts +62 -0
- package/dist/core/sourceAnchors.js +82 -0
- package/dist/core/sourceAnchors.js.map +1 -0
- package/dist/core/sourceContext.d.ts +62 -0
- package/dist/core/sourceContext.js +182 -0
- package/dist/core/sourceContext.js.map +1 -0
- package/dist/core/sourcePath.d.ts +2 -0
- package/dist/core/sourcePath.js +11 -0
- package/dist/core/sourcePath.js.map +1 -0
- package/dist/core/staleness.d.ts +118 -0
- package/dist/core/staleness.js +155 -0
- package/dist/core/staleness.js.map +1 -0
- package/dist/core/styleOrigin.d.ts +98 -0
- package/dist/core/styleOrigin.js +142 -0
- package/dist/core/styleOrigin.js.map +1 -0
- package/dist/core/svelteAnchors.d.ts +18 -0
- package/dist/core/svelteAnchors.js +125 -0
- package/dist/core/svelteAnchors.js.map +1 -0
- package/dist/core/taskFiles.d.ts +31 -0
- package/dist/core/taskFiles.js +55 -0
- package/dist/core/taskFiles.js.map +1 -0
- package/dist/core/untrusted.d.ts +57 -0
- package/dist/core/untrusted.js +268 -0
- package/dist/core/untrusted.js.map +1 -0
- package/dist/core/vueAnchors.d.ts +21 -0
- package/dist/core/vueAnchors.js +130 -0
- package/dist/core/vueAnchors.js.map +1 -0
- package/dist/expo/app/Avatar.d.ts +6 -0
- package/dist/expo/app/Avatar.js +12 -0
- package/dist/expo/app/Avatar.js.map +1 -0
- package/dist/expo/app/Bars.d.ts +9 -0
- package/dist/expo/app/Bars.js +38 -0
- package/dist/expo/app/Bars.js.map +1 -0
- package/dist/expo/app/CommentThreadSheet.d.ts +35 -0
- package/dist/expo/app/CommentThreadSheet.js +200 -0
- package/dist/expo/app/CommentThreadSheet.js.map +1 -0
- package/dist/expo/app/CommentsSheet.d.ts +22 -0
- package/dist/expo/app/CommentsSheet.js +76 -0
- package/dist/expo/app/CommentsSheet.js.map +1 -0
- package/dist/expo/app/Files.d.ts +16 -0
- package/dist/expo/app/Files.js +62 -0
- package/dist/expo/app/Files.js.map +1 -0
- package/dist/expo/app/Highlight.d.ts +5 -0
- package/dist/expo/app/Highlight.js +12 -0
- package/dist/expo/app/Highlight.js.map +1 -0
- package/dist/expo/app/Icon.d.ts +9 -0
- package/dist/expo/app/Icon.js +22 -0
- package/dist/expo/app/Icon.js.map +1 -0
- package/dist/expo/app/MarkerPins.d.ts +10 -0
- package/dist/expo/app/MarkerPins.js +70 -0
- package/dist/expo/app/MarkerPins.js.map +1 -0
- package/dist/expo/app/Provider.d.ts +13 -0
- package/dist/expo/app/Provider.js +597 -0
- package/dist/expo/app/Provider.js.map +1 -0
- package/dist/expo/app/Sheet.d.ts +53 -0
- package/dist/expo/app/Sheet.js +106 -0
- package/dist/expo/app/Sheet.js.map +1 -0
- package/dist/expo/app/Toolbar.d.ts +26 -0
- package/dist/expo/app/Toolbar.js +71 -0
- package/dist/expo/app/Toolbar.js.map +1 -0
- package/dist/expo/app/adapter.d.ts +55 -0
- package/dist/expo/app/adapter.js +145 -0
- package/dist/expo/app/adapter.js.map +1 -0
- package/dist/expo/app/api.d.ts +68 -0
- package/dist/expo/app/api.js +86 -0
- package/dist/expo/app/api.js.map +1 -0
- package/dist/expo/app/assets/attach.png +0 -0
- package/dist/expo/app/assets/close.png +0 -0
- package/dist/expo/app/assets/comment.png +0 -0
- package/dist/expo/app/assets/edit.png +0 -0
- package/dist/expo/app/assets/file.png +0 -0
- package/dist/expo/app/assets/narrow.png +0 -0
- package/dist/expo/app/assets/panel.png +0 -0
- package/dist/expo/app/assets/pins.png +0 -0
- package/dist/expo/app/assets/pinsOff.png +0 -0
- package/dist/expo/app/assets/remove.png +0 -0
- package/dist/expo/app/assets/reopen.png +0 -0
- package/dist/expo/app/assets/resolve.png +0 -0
- package/dist/expo/app/assets/send.png +0 -0
- package/dist/expo/app/assets/widen.png +0 -0
- package/dist/expo/app/attachments.d.ts +93 -0
- package/dist/expo/app/attachments.js +181 -0
- package/dist/expo/app/attachments.js.map +1 -0
- package/dist/expo/app/cloudApi.d.ts +63 -0
- package/dist/expo/app/cloudApi.js +330 -0
- package/dist/expo/app/cloudApi.js.map +1 -0
- package/dist/expo/app/cloudAuth.d.ts +20 -0
- package/dist/expo/app/cloudAuth.js +71 -0
- package/dist/expo/app/cloudAuth.js.map +1 -0
- package/dist/expo/app/cloudHttp.d.ts +20 -0
- package/dist/expo/app/cloudHttp.js +46 -0
- package/dist/expo/app/cloudHttp.js.map +1 -0
- package/dist/expo/app/cloudSession.d.ts +30 -0
- package/dist/expo/app/cloudSession.js +72 -0
- package/dist/expo/app/cloudSession.js.map +1 -0
- package/dist/expo/app/comments.d.ts +20 -0
- package/dist/expo/app/comments.js +131 -0
- package/dist/expo/app/comments.js.map +1 -0
- package/dist/expo/app/devMenuNone.d.ts +5 -0
- package/dist/expo/app/devMenuNone.js +3 -0
- package/dist/expo/app/devMenuNone.js.map +1 -0
- package/dist/expo/app/devServerNone.d.ts +4 -0
- package/dist/expo/app/devServerNone.js +4 -0
- package/dist/expo/app/devServerNone.js.map +1 -0
- package/dist/expo/app/embeddedConfig.d.ts +1 -0
- package/dist/expo/app/embeddedConfig.js +12 -0
- package/dist/expo/app/embeddedConfig.js.map +1 -0
- package/dist/expo/app/embeddedConfigCloud.d.ts +2 -0
- package/dist/expo/app/embeddedConfigCloud.js +8 -0
- package/dist/expo/app/embeddedConfigCloud.js.map +1 -0
- package/dist/expo/app/embeddedConfigNone.d.ts +2 -0
- package/dist/expo/app/embeddedConfigNone.js +3 -0
- package/dist/expo/app/embeddedConfigNone.js.map +1 -0
- package/dist/expo/app/expo.d.ts +4 -0
- package/dist/expo/app/expo.js +35 -0
- package/dist/expo/app/expo.js.map +1 -0
- package/dist/expo/app/expoGo.d.ts +4 -0
- package/dist/expo/app/expoGo.js +33 -0
- package/dist/expo/app/expoGo.js.map +1 -0
- package/dist/expo/app/expoPickers.d.ts +11 -0
- package/dist/expo/app/expoPickers.js +91 -0
- package/dist/expo/app/expoPickers.js.map +1 -0
- package/dist/expo/app/expoRandom.d.ts +6 -0
- package/dist/expo/app/expoRandom.js +21 -0
- package/dist/expo/app/expoRandom.js.map +1 -0
- package/dist/expo/app/idle.d.ts +4 -0
- package/dist/expo/app/idle.js +7 -0
- package/dist/expo/app/idle.js.map +1 -0
- package/dist/expo/app/index.d.ts +3 -0
- package/dist/expo/app/index.js +3 -0
- package/dist/expo/app/index.js.map +1 -0
- package/dist/expo/app/interactions.d.ts +38 -0
- package/dist/expo/app/interactions.js +40 -0
- package/dist/expo/app/interactions.js.map +1 -0
- package/dist/expo/app/markers.d.ts +28 -0
- package/dist/expo/app/markers.js +187 -0
- package/dist/expo/app/markers.js.map +1 -0
- package/dist/expo/app/movedAnchors.d.ts +46 -0
- package/dist/expo/app/movedAnchors.js +39 -0
- package/dist/expo/app/movedAnchors.js.map +1 -0
- package/dist/expo/app/native.d.ts +12 -0
- package/dist/expo/app/native.js +78 -0
- package/dist/expo/app/native.js.map +1 -0
- package/dist/expo/app/panel.d.ts +27 -0
- package/dist/expo/app/panel.js +37 -0
- package/dist/expo/app/panel.js.map +1 -0
- package/dist/expo/app/payload.d.ts +43 -0
- package/dist/expo/app/payload.js +22 -0
- package/dist/expo/app/payload.js.map +1 -0
- package/dist/expo/app/pick.d.ts +14 -0
- package/dist/expo/app/pick.js +124 -0
- package/dist/expo/app/pick.js.map +1 -0
- package/dist/expo/app/pickerNone.d.ts +1 -0
- package/dist/expo/app/pickerNone.js +2 -0
- package/dist/expo/app/pickerNone.js.map +1 -0
- package/dist/expo/app/placement.d.ts +53 -0
- package/dist/expo/app/placement.js +100 -0
- package/dist/expo/app/placement.js.map +1 -0
- package/dist/expo/app/random.d.ts +13 -0
- package/dist/expo/app/random.js +56 -0
- package/dist/expo/app/random.js.map +1 -0
- package/dist/expo/app/reactNative.d.ts +2 -0
- package/dist/expo/app/reactNative.js +3 -0
- package/dist/expo/app/reactNative.js.map +1 -0
- package/dist/expo/app/runtimeConfig.d.ts +30 -0
- package/dist/expo/app/runtimeConfig.js +104 -0
- package/dist/expo/app/runtimeConfig.js.map +1 -0
- package/dist/expo/app/sheetMotion.d.ts +22 -0
- package/dist/expo/app/sheetMotion.js +39 -0
- package/dist/expo/app/sheetMotion.js.map +1 -0
- package/dist/expo/app/signIn.d.ts +32 -0
- package/dist/expo/app/signIn.js +28 -0
- package/dist/expo/app/signIn.js.map +1 -0
- package/dist/expo/app/state.d.ts +45 -0
- package/dist/expo/app/state.js +32 -0
- package/dist/expo/app/state.js.map +1 -0
- package/dist/expo/app/theme.d.ts +15 -0
- package/dist/expo/app/theme.js +9 -0
- package/dist/expo/app/theme.js.map +1 -0
- package/dist/expo/app/types.d.ts +87 -0
- package/dist/expo/app/types.js +2 -0
- package/dist/expo/app/types.js.map +1 -0
- package/dist/expo/app/useCloudReviewer.d.ts +75 -0
- package/dist/expo/app/useCloudReviewer.js +211 -0
- package/dist/expo/app/useCloudReviewer.js.map +1 -0
- package/dist/expo/app/useComments.d.ts +64 -0
- package/dist/expo/app/useComments.js +156 -0
- package/dist/expo/app/useComments.js.map +1 -0
- package/dist/expo/app/useUploads.d.ts +32 -0
- package/dist/expo/app/useUploads.js +106 -0
- package/dist/expo/app/useUploads.js.map +1 -0
- package/dist/expo/expoGoMetro.cjs +83 -0
- package/dist/expo/expoMetro.cjs +86 -0
- package/dist/expo/metro.cjs +304 -0
- package/dist/expo/metroBuild.d.ts +22 -0
- package/dist/expo/metroBuild.js +169 -0
- package/dist/expo/metroBuild.js.map +1 -0
- package/dist/expo/middleware.d.ts +11 -0
- package/dist/expo/middleware.js +26 -0
- package/dist/expo/middleware.js.map +1 -0
- package/dist/expo/mode.d.ts +20 -0
- package/dist/expo/mode.js +37 -0
- package/dist/expo/mode.js.map +1 -0
- package/dist/expo/publicConfig.d.ts +37 -0
- package/dist/expo/publicConfig.js +87 -0
- package/dist/expo/publicConfig.js.map +1 -0
- package/dist/expo/transform.d.ts +22 -0
- package/dist/expo/transform.js +38 -0
- package/dist/expo/transform.js.map +1 -0
- package/dist/expo/transformer.cjs +73 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/integration/apiRoutes.d.ts +2 -0
- package/dist/integration/apiRoutes.js +3 -0
- package/dist/integration/apiRoutes.js.map +1 -0
- package/dist/integration/buildCredentials.d.ts +12 -0
- package/dist/integration/buildCredentials.js +97 -0
- package/dist/integration/buildCredentials.js.map +1 -0
- package/dist/integration/buildSession.d.ts +8 -0
- package/dist/integration/buildSession.js +96 -0
- package/dist/integration/buildSession.js.map +1 -0
- package/dist/integration/bundleCheck.d.ts +43 -0
- package/dist/integration/bundleCheck.js +111 -0
- package/dist/integration/bundleCheck.js.map +1 -0
- package/dist/integration/commentPull.d.ts +134 -0
- package/dist/integration/commentPull.js +260 -0
- package/dist/integration/commentPull.js.map +1 -0
- package/dist/integration/configuredApi.d.ts +7 -0
- package/dist/integration/configuredApi.js +24 -0
- package/dist/integration/configuredApi.js.map +1 -0
- package/dist/integration/devCloud.d.ts +27 -0
- package/dist/integration/devCloud.js +56 -0
- package/dist/integration/devCloud.js.map +1 -0
- package/dist/integration/devReviewLinks.d.ts +2 -0
- package/dist/integration/devReviewLinks.js +10 -0
- package/dist/integration/devReviewLinks.js.map +1 -0
- package/dist/integration/gitBranch.d.ts +19 -0
- package/dist/integration/gitBranch.js +56 -0
- package/dist/integration/gitBranch.js.map +1 -0
- package/dist/integration/importPlan.d.ts +19 -0
- package/dist/integration/importPlan.js +90 -0
- package/dist/integration/importPlan.js.map +1 -0
- package/dist/integration/index.d.ts +14 -0
- package/dist/integration/index.js +13 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/manifest.d.ts +120 -0
- package/dist/integration/manifest.js +147 -0
- package/dist/integration/manifest.js.map +1 -0
- package/dist/integration/manifestParts.d.ts +29 -0
- package/dist/integration/manifestParts.js +65 -0
- package/dist/integration/manifestParts.js.map +1 -0
- package/dist/integration/manifestSink.d.ts +75 -0
- package/dist/integration/manifestSink.js +157 -0
- package/dist/integration/manifestSink.js.map +1 -0
- package/dist/integration/manifestUpload.d.ts +64 -0
- package/dist/integration/manifestUpload.js +177 -0
- package/dist/integration/manifestUpload.js.map +1 -0
- package/dist/integration/middleware.d.ts +55 -0
- package/dist/integration/middleware.js +379 -0
- package/dist/integration/middleware.js.map +1 -0
- package/dist/integration/nextStyles.d.ts +4 -0
- package/dist/integration/nextStyles.js +121 -0
- package/dist/integration/nextStyles.js.map +1 -0
- package/dist/integration/requestGuards.d.ts +71 -0
- package/dist/integration/requestGuards.js +255 -0
- package/dist/integration/requestGuards.js.map +1 -0
- package/dist/integration/sharedBuild.d.ts +71 -0
- package/dist/integration/sharedBuild.js +105 -0
- package/dist/integration/sharedBuild.js.map +1 -0
- package/dist/integration/sharedInject.d.ts +88 -0
- package/dist/integration/sharedInject.js +164 -0
- package/dist/integration/sharedInject.js.map +1 -0
- package/dist/integration/sidecarProcess.d.ts +26 -0
- package/dist/integration/sidecarProcess.js +137 -0
- package/dist/integration/sidecarProcess.js.map +1 -0
- package/dist/integration/styleCollector.d.ts +49 -0
- package/dist/integration/styleCollector.js +220 -0
- package/dist/integration/styleCollector.js.map +1 -0
- package/dist/integration/transform.d.ts +24 -0
- package/dist/integration/transform.js +36 -0
- package/dist/integration/transform.js.map +1 -0
- package/dist/integration/tunnelClient.d.ts +44 -0
- package/dist/integration/tunnelClient.js +148 -0
- package/dist/integration/tunnelClient.js.map +1 -0
- package/dist/integration/tunnelProtocol.d.ts +152 -0
- package/dist/integration/tunnelProtocol.js +110 -0
- package/dist/integration/tunnelProtocol.js.map +1 -0
- package/dist/mcp/cli.d.ts +2 -0
- package/dist/mcp/cli.js +327 -0
- package/dist/mcp/cli.js.map +1 -0
- package/dist/mcp/cloudRefresh.d.ts +36 -0
- package/dist/mcp/cloudRefresh.js +52 -0
- package/dist/mcp/cloudRefresh.js.map +1 -0
- package/dist/mcp/context.d.ts +7 -0
- package/dist/mcp/context.js +18 -0
- package/dist/mcp/context.js.map +1 -0
- package/dist/mcp/files.d.ts +66 -0
- package/dist/mcp/files.js +157 -0
- package/dist/mcp/files.js.map +1 -0
- package/dist/mcp/search.d.ts +3 -0
- package/dist/mcp/search.js +9 -0
- package/dist/mcp/search.js.map +1 -0
- package/dist/mcp/server.d.ts +50 -0
- package/dist/mcp/server.js +555 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/overlay/anchors.d.ts +130 -0
- package/dist/overlay/anchors.js +365 -0
- package/dist/overlay/anchors.js.map +1 -0
- package/dist/overlay/api.d.ts +150 -0
- package/dist/overlay/api.js +259 -0
- package/dist/overlay/api.js.map +1 -0
- package/dist/overlay/attachments.d.ts +60 -0
- package/dist/overlay/attachments.js +163 -0
- package/dist/overlay/attachments.js.map +1 -0
- package/dist/overlay/browser.d.ts +1 -0
- package/dist/overlay/browser.js +203 -0
- package/dist/overlay/browser.js.map +1 -0
- package/dist/overlay/chip.d.ts +27 -0
- package/dist/overlay/chip.js +31 -0
- package/dist/overlay/chip.js.map +1 -0
- package/dist/overlay/compact.d.ts +11 -0
- package/dist/overlay/compact.js +21 -0
- package/dist/overlay/compact.js.map +1 -0
- package/dist/overlay/cssScope.d.ts +46 -0
- package/dist/overlay/cssScope.js +180 -0
- package/dist/overlay/cssScope.js.map +1 -0
- package/dist/overlay/cursor.d.ts +2 -0
- package/dist/overlay/cursor.js +68 -0
- package/dist/overlay/cursor.js.map +1 -0
- package/dist/overlay/devBrowser.d.ts +1 -0
- package/dist/overlay/devBrowser.js +18 -0
- package/dist/overlay/devBrowser.js.map +1 -0
- package/dist/overlay/devReview.d.ts +4 -0
- package/dist/overlay/devReview.js +18 -0
- package/dist/overlay/devReview.js.map +1 -0
- package/dist/overlay/directReviewer.d.ts +149 -0
- package/dist/overlay/directReviewer.js +448 -0
- package/dist/overlay/directReviewer.js.map +1 -0
- package/dist/overlay/elementDescription.d.ts +10 -0
- package/dist/overlay/elementDescription.js +251 -0
- package/dist/overlay/elementDescription.js.map +1 -0
- package/dist/overlay/icons.d.ts +8 -0
- package/dist/overlay/icons.js +36 -0
- package/dist/overlay/icons.js.map +1 -0
- package/dist/overlay/identity.d.ts +48 -0
- package/dist/overlay/identity.js +125 -0
- package/dist/overlay/identity.js.map +1 -0
- package/dist/overlay/localMachine.d.ts +23 -0
- package/dist/overlay/localMachine.js +40 -0
- package/dist/overlay/localMachine.js.map +1 -0
- package/dist/overlay/magicLink.d.ts +10 -0
- package/dist/overlay/magicLink.js +87 -0
- package/dist/overlay/magicLink.js.map +1 -0
- package/dist/overlay/modern-screenshot.js +1676 -0
- package/dist/overlay/movedAnchors.d.ts +30 -0
- package/dist/overlay/movedAnchors.js +128 -0
- package/dist/overlay/movedAnchors.js.map +1 -0
- package/dist/overlay/notificationGroups.d.ts +2 -0
- package/dist/overlay/notificationGroups.js +41 -0
- package/dist/overlay/notificationGroups.js.map +1 -0
- package/dist/overlay/permissions.d.ts +10 -0
- package/dist/overlay/permissions.js +9 -0
- package/dist/overlay/permissions.js.map +1 -0
- package/dist/overlay/pinGroups.d.ts +16 -0
- package/dist/overlay/pinGroups.js +17 -0
- package/dist/overlay/pinGroups.js.map +1 -0
- package/dist/overlay/presence.d.ts +50 -0
- package/dist/overlay/presence.js +258 -0
- package/dist/overlay/presence.js.map +1 -0
- package/dist/overlay/projectChannel.d.ts +11 -0
- package/dist/overlay/projectChannel.js +111 -0
- package/dist/overlay/projectChannel.js.map +1 -0
- package/dist/overlay/recorder.d.ts +56 -0
- package/dist/overlay/recorder.js +130 -0
- package/dist/overlay/recorder.js.map +1 -0
- package/dist/overlay/reviewMode.d.ts +21 -0
- package/dist/overlay/reviewMode.js +59 -0
- package/dist/overlay/reviewMode.js.map +1 -0
- package/dist/overlay/reviewerAuth.d.ts +131 -0
- package/dist/overlay/reviewerAuth.js +279 -0
- package/dist/overlay/reviewerAuth.js.map +1 -0
- package/dist/overlay/route.d.ts +18 -0
- package/dist/overlay/route.js +56 -0
- package/dist/overlay/route.js.map +1 -0
- package/dist/overlay/rrweb-record.js +63 -0
- package/dist/overlay/runtime.d.ts +1 -0
- package/dist/overlay/runtime.js +4857 -0
- package/dist/overlay/runtime.js.map +1 -0
- package/dist/overlay/session.d.ts +32 -0
- package/dist/overlay/session.js +76 -0
- package/dist/overlay/session.js.map +1 -0
- package/dist/overlay/sharedMode.d.ts +38 -0
- package/dist/overlay/sharedMode.js +37 -0
- package/dist/overlay/sharedMode.js.map +1 -0
- package/dist/overlay/sheet.d.ts +73 -0
- package/dist/overlay/sheet.js +278 -0
- package/dist/overlay/sheet.js.map +1 -0
- package/dist/overlay/snapshot.d.ts +26 -0
- package/dist/overlay/snapshot.js +185 -0
- package/dist/overlay/snapshot.js.map +1 -0
- package/dist/overlay/state.d.ts +63 -0
- package/dist/overlay/state.js +241 -0
- package/dist/overlay/state.js.map +1 -0
- package/dist/overlay/steps.d.ts +22 -0
- package/dist/overlay/steps.js +34 -0
- package/dist/overlay/steps.js.map +1 -0
- package/dist/overlay/styles.d.ts +7 -0
- package/dist/overlay/styles.js +1449 -0
- package/dist/overlay/styles.js.map +1 -0
- package/dist/overlay/trace.d.ts +19 -0
- package/dist/overlay/trace.js +29 -0
- package/dist/overlay/trace.js.map +1 -0
- package/dist/overlay/upload.d.ts +35 -0
- package/dist/overlay/upload.js +99 -0
- package/dist/overlay/upload.js.map +1 -0
- package/dist/plugin/astro.d.ts +31 -0
- package/dist/plugin/astro.js +22 -0
- package/dist/plugin/astro.js.map +1 -0
- package/dist/plugin/eleventy.d.ts +44 -0
- package/dist/plugin/eleventy.js +186 -0
- package/dist/plugin/eleventy.js.map +1 -0
- package/dist/plugin/next-loader.cjs +11 -0
- package/dist/plugin/next.d.ts +29 -0
- package/dist/plugin/next.js +176 -0
- package/dist/plugin/next.js.map +1 -0
- package/dist/plugin/nextOverlay.d.ts +2 -0
- package/dist/plugin/nextOverlay.js +22 -0
- package/dist/plugin/nextOverlay.js.map +1 -0
- package/dist/plugin/nextTransform.d.ts +19 -0
- package/dist/plugin/nextTransform.js +29 -0
- package/dist/plugin/nextTransform.js.map +1 -0
- package/dist/plugin/rsbuild.d.ts +25 -0
- package/dist/plugin/rsbuild.js +56 -0
- package/dist/plugin/rsbuild.js.map +1 -0
- package/dist/plugin/vite.d.ts +39 -0
- package/dist/plugin/vite.js +582 -0
- package/dist/plugin/vite.js.map +1 -0
- package/dist/plugin/webpack.d.ts +69 -0
- package/dist/plugin/webpack.js +192 -0
- package/dist/plugin/webpack.js.map +1 -0
- package/dist/remote/account.d.ts +41 -0
- package/dist/remote/account.js +177 -0
- package/dist/remote/account.js.map +1 -0
- package/dist/remote/base64url.d.ts +14 -0
- package/dist/remote/base64url.js +71 -0
- package/dist/remote/base64url.js.map +1 -0
- package/dist/remote/branchLabel.d.ts +12 -0
- package/dist/remote/branchLabel.js +20 -0
- package/dist/remote/branchLabel.js.map +1 -0
- package/dist/remote/client.d.ts +340 -0
- package/dist/remote/client.js +424 -0
- package/dist/remote/client.js.map +1 -0
- package/dist/remote/cloudApi.d.ts +72 -0
- package/dist/remote/cloudApi.js +72 -0
- package/dist/remote/cloudApi.js.map +1 -0
- package/dist/remote/codec.d.ts +54 -0
- package/dist/remote/codec.js +62 -0
- package/dist/remote/codec.js.map +1 -0
- package/dist/remote/config.d.ts +30 -0
- package/dist/remote/config.js +112 -0
- package/dist/remote/config.js.map +1 -0
- package/dist/remote/content-schema.d.ts +428 -0
- package/dist/remote/content-schema.js +209 -0
- package/dist/remote/content-schema.js.map +1 -0
- package/dist/remote/content.d.ts +44 -0
- package/dist/remote/content.js +75 -0
- package/dist/remote/content.js.map +1 -0
- package/dist/remote/envelope.d.ts +76 -0
- package/dist/remote/envelope.js +109 -0
- package/dist/remote/envelope.js.map +1 -0
- package/dist/remote/errors.d.ts +55 -0
- package/dist/remote/errors.js +63 -0
- package/dist/remote/errors.js.map +1 -0
- package/dist/remote/ids.d.ts +8 -0
- package/dist/remote/ids.js +25 -0
- package/dist/remote/ids.js.map +1 -0
- package/dist/remote/index.d.ts +7 -0
- package/dist/remote/index.js +8 -0
- package/dist/remote/index.js.map +1 -0
- package/dist/remote/keys.d.ts +62 -0
- package/dist/remote/keys.js +162 -0
- package/dist/remote/keys.js.map +1 -0
- package/dist/remote/localAnchors.d.ts +4 -0
- package/dist/remote/localAnchors.js +23 -0
- package/dist/remote/localAnchors.js.map +1 -0
- package/dist/remote/mapping.d.ts +11 -0
- package/dist/remote/mapping.js +22 -0
- package/dist/remote/mapping.js.map +1 -0
- package/dist/remote/presence.d.ts +63 -0
- package/dist/remote/presence.js +143 -0
- package/dist/remote/presence.js.map +1 -0
- package/dist/remote/realtime.d.ts +142 -0
- package/dist/remote/realtime.js +326 -0
- package/dist/remote/realtime.js.map +1 -0
- package/dist/remote/store.d.ts +183 -0
- package/dist/remote/store.js +907 -0
- package/dist/remote/store.js.map +1 -0
- package/dist/remote/sync.d.ts +113 -0
- package/dist/remote/sync.js +370 -0
- package/dist/remote/sync.js.map +1 -0
- package/dist/remote/types.d.ts +99 -0
- package/dist/remote/types.js +6 -0
- package/dist/remote/types.js.map +1 -0
- package/dist/setup/agents.d.ts +23 -0
- package/dist/setup/agents.js +80 -0
- package/dist/setup/agents.js.map +1 -0
- package/dist/setup/configure.d.ts +27 -0
- package/dist/setup/configure.js +201 -0
- package/dist/setup/configure.js.map +1 -0
- package/dist/setup/connect.d.ts +60 -0
- package/dist/setup/connect.js +244 -0
- package/dist/setup/connect.js.map +1 -0
- package/dist/setup/detect.d.ts +67 -0
- package/dist/setup/detect.js +168 -0
- package/dist/setup/detect.js.map +1 -0
- package/dist/setup/frameworks.d.ts +41 -0
- package/dist/setup/frameworks.js +81 -0
- package/dist/setup/frameworks.js.map +1 -0
- package/dist/sidecar/cli.d.ts +1 -0
- package/dist/sidecar/cli.js +70 -0
- package/dist/sidecar/cli.js.map +1 -0
- package/dist/sidecar/cloudSync.d.ts +33 -0
- package/dist/sidecar/cloudSync.js +139 -0
- package/dist/sidecar/cloudSync.js.map +1 -0
- package/dist/sidecar/commentFiles.d.ts +59 -0
- package/dist/sidecar/commentFiles.js +217 -0
- package/dist/sidecar/commentFiles.js.map +1 -0
- package/dist/sidecar/cssAttribution.d.ts +26 -0
- package/dist/sidecar/cssAttribution.js +114 -0
- package/dist/sidecar/cssAttribution.js.map +1 -0
- package/dist/sidecar/exportTasks.d.ts +38 -0
- package/dist/sidecar/exportTasks.js +249 -0
- package/dist/sidecar/exportTasks.js.map +1 -0
- package/dist/sidecar/http.d.ts +20 -0
- package/dist/sidecar/http.js +904 -0
- package/dist/sidecar/http.js.map +1 -0
- package/dist/sidecar/inviteTarget.d.ts +4 -0
- package/dist/sidecar/inviteTarget.js +32 -0
- package/dist/sidecar/inviteTarget.js.map +1 -0
- package/dist/sidecar/presence.d.ts +4 -0
- package/dist/sidecar/presence.js +92 -0
- package/dist/sidecar/presence.js.map +1 -0
- package/dist/storage/cliSession.d.ts +8 -0
- package/dist/storage/cliSession.js +41 -0
- package/dist/storage/cliSession.js.map +1 -0
- package/dist/storage/devStyleMap.d.ts +12 -0
- package/dist/storage/devStyleMap.js +31 -0
- package/dist/storage/devStyleMap.js.map +1 -0
- package/dist/storage/fileCache.d.ts +34 -0
- package/dist/storage/fileCache.js +122 -0
- package/dist/storage/fileCache.js.map +1 -0
- package/dist/storage/localAttachments.d.ts +82 -0
- package/dist/storage/localAttachments.js +276 -0
- package/dist/storage/localAttachments.js.map +1 -0
- package/dist/storage/localComments.d.ts +31 -0
- package/dist/storage/localComments.js +159 -0
- package/dist/storage/localComments.js.map +1 -0
- package/dist/storage/localCredentials.d.ts +74 -0
- package/dist/storage/localCredentials.js +210 -0
- package/dist/storage/localCredentials.js.map +1 -0
- package/dist/storage/localParticipants.d.ts +33 -0
- package/dist/storage/localParticipants.js +110 -0
- package/dist/storage/localParticipants.js.map +1 -0
- package/dist/storage/localRecipe.d.ts +22 -0
- package/dist/storage/localRecipe.js +46 -0
- package/dist/storage/localRecipe.js.map +1 -0
- package/dist/storage/localScreenshots.d.ts +23 -0
- package/dist/storage/localScreenshots.js +55 -0
- package/dist/storage/localScreenshots.js.map +1 -0
- package/dist/storage/localSource.d.ts +31 -0
- package/dist/storage/localSource.js +175 -0
- package/dist/storage/localSource.js.map +1 -0
- package/dist/storage/pulledComments.d.ts +81 -0
- package/dist/storage/pulledComments.js +107 -0
- package/dist/storage/pulledComments.js.map +1 -0
- package/dist/storage/remoteRecipe.d.ts +7 -0
- package/dist/storage/remoteRecipe.js +85 -0
- package/dist/storage/remoteRecipe.js.map +1 -0
- package/dist/storage/savedRemote.d.ts +2 -0
- package/dist/storage/savedRemote.js +22 -0
- package/dist/storage/savedRemote.js.map +1 -0
- package/dist/storage/sidecarAccess.d.ts +7 -0
- package/dist/storage/sidecarAccess.js +68 -0
- package/dist/storage/sidecarAccess.js.map +1 -0
- package/package.json +306 -4
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { selectorsIn } from '../core/styleOrigin.js';
|
|
3
|
+
const styleFile = /\.(?:s[ac]ss|css)$/;
|
|
4
|
+
const skipDirectories = new Set(['node_modules', 'dist', 'build', '.git', '.next', 'coverage', '.feedback']);
|
|
5
|
+
async function collectStyleFiles(source, relative = '', depth = 0) {
|
|
6
|
+
if (depth > 12)
|
|
7
|
+
return [];
|
|
8
|
+
// Workspace-scoped: a monorepo app's stylesheets commonly live in a sibling package. This
|
|
9
|
+
// runs locally at export and is never behind an HTTP route.
|
|
10
|
+
const entries = await source.listWorkspaceDirectory(relative);
|
|
11
|
+
const out = [];
|
|
12
|
+
for (const entry of entries) {
|
|
13
|
+
if (entry.name.startsWith('.'))
|
|
14
|
+
continue;
|
|
15
|
+
const next = relative ? `${relative}/${entry.name}` : entry.name;
|
|
16
|
+
if (entry.isDirectory) {
|
|
17
|
+
if (skipDirectories.has(entry.name))
|
|
18
|
+
continue;
|
|
19
|
+
out.push(...(await collectStyleFiles(source, next, depth + 1)));
|
|
20
|
+
}
|
|
21
|
+
else if (styleFile.test(entry.name)) {
|
|
22
|
+
out.push(next);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return out;
|
|
26
|
+
}
|
|
27
|
+
/** What a file pulls in, so a partial's rules are not credited to every importer. */
|
|
28
|
+
async function usesGraph(source, files) {
|
|
29
|
+
const graph = new Map();
|
|
30
|
+
for (const file of files) {
|
|
31
|
+
const text = await source.readWorkspaceFile(file);
|
|
32
|
+
if (!text) {
|
|
33
|
+
graph.set(file, []);
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const deps = [];
|
|
37
|
+
for (const match of text.matchAll(/@(?:use|forward|import)\s+["']([^"']+)["']/g)) {
|
|
38
|
+
let target = match[1];
|
|
39
|
+
if (!styleFile.test(target))
|
|
40
|
+
target += '.scss';
|
|
41
|
+
const resolved = path.posix.normalize(path.posix.join(path.posix.dirname(file), target));
|
|
42
|
+
const partial = path.posix.join(path.posix.dirname(resolved), `_${path.posix.basename(resolved)}`);
|
|
43
|
+
if (files.includes(resolved))
|
|
44
|
+
deps.push(resolved);
|
|
45
|
+
else if (files.includes(partial))
|
|
46
|
+
deps.push(partial);
|
|
47
|
+
}
|
|
48
|
+
graph.set(file, deps);
|
|
49
|
+
}
|
|
50
|
+
return graph;
|
|
51
|
+
}
|
|
52
|
+
function pullsIn(graph, from, target, seen = new Set()) {
|
|
53
|
+
if (seen.has(from))
|
|
54
|
+
return false;
|
|
55
|
+
seen.add(from);
|
|
56
|
+
for (const dep of graph.get(from) ?? []) {
|
|
57
|
+
if (dep === target || pullsIn(graph, dep, target, seen))
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
/** One parser for both indexes. See core/styleOrigin.ts for what it had been getting wrong. */
|
|
63
|
+
export { selectorsIn };
|
|
64
|
+
export async function buildSelectorIndex(source, appOrigin) {
|
|
65
|
+
const empty = (unavailable) => ({ lookup: () => null, size: 0, stylesheets: 0, unavailable });
|
|
66
|
+
if (!appOrigin)
|
|
67
|
+
return empty('no-app-origin');
|
|
68
|
+
const files = await collectStyleFiles(source);
|
|
69
|
+
if (files.length === 0)
|
|
70
|
+
return empty('no-style-files');
|
|
71
|
+
const graph = await usesGraph(source, files);
|
|
72
|
+
const raw = new Map();
|
|
73
|
+
let stylesheets = 0;
|
|
74
|
+
for (const file of files) {
|
|
75
|
+
let css;
|
|
76
|
+
try {
|
|
77
|
+
const response = await fetch(`${appOrigin}/@fs${source.workspaceRoot}/${file}?direct`);
|
|
78
|
+
if (!response.ok)
|
|
79
|
+
continue;
|
|
80
|
+
css = await response.text();
|
|
81
|
+
if (css.startsWith('import '))
|
|
82
|
+
continue; // served as a JS module, not as CSS
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
stylesheets += 1;
|
|
88
|
+
for (const selector of selectorsIn(css)) {
|
|
89
|
+
const set = raw.get(selector) ?? new Set();
|
|
90
|
+
set.add(file);
|
|
91
|
+
raw.set(selector, set);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const index = new Map();
|
|
95
|
+
for (const [selector, candidates] of raw) {
|
|
96
|
+
const list = [...candidates];
|
|
97
|
+
const definers = list.filter((file) => !list.some((other) => other !== file && pullsIn(graph, file, other)));
|
|
98
|
+
const winners = definers.length ? definers : list;
|
|
99
|
+
// More than one definer is a root or theme selector many components contribute to.
|
|
100
|
+
// Unresolvable is the honest answer; the agent declines rather than guessing.
|
|
101
|
+
index.set(selector, winners.length === 1 ? winners[0] : null);
|
|
102
|
+
}
|
|
103
|
+
// Every fetch failed, which is not the same as every selector being ambiguous. Reported as
|
|
104
|
+
// its own state rather than as an index that answers null to everything.
|
|
105
|
+
if (stylesheets === 0)
|
|
106
|
+
return empty('no-stylesheets-reachable');
|
|
107
|
+
return {
|
|
108
|
+
lookup: (selector) => index.get(selector) ?? null,
|
|
109
|
+
size: index.size,
|
|
110
|
+
stylesheets,
|
|
111
|
+
unavailable: null,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=cssAttribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssAttribution.js","sourceRoot":"","sources":["../../src/sidecar/cssAttribution.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAwBrD,MAAM,SAAS,GAAG,oBAAoB,CAAC;AACvC,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAE7G,KAAK,UAAU,iBAAiB,CAAC,MAAoB,EAAE,QAAQ,GAAG,EAAE,EAAE,KAAK,GAAG,CAAC;IAC7E,IAAI,KAAK,GAAG,EAAE;QAAE,OAAO,EAAE,CAAC;IAC1B,0FAA0F;IAC1F,4DAA4D;IAC5D,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IAC9D,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YAAE,SAAS;QACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QACjE,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;gBAAE,SAAS;YAC9C,GAAG,CAAC,IAAI,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AAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7G,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;QAClD,mFAAmF;QACnF,8EAA8E;QAC9E,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,2FAA2F;IAC3F,yEAAyE;IACzE,IAAI,WAAW,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAEhE,OAAO;QACL,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,IAAI;QACjD,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW;QACX,WAAW,EAAE,IAAI;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Comment } from '../core/feedbackTypes.js';
|
|
2
|
+
import type { SourceReader } from '../core/ports.js';
|
|
3
|
+
import type { CommentFreshness } from '../core/staleness.js';
|
|
4
|
+
import type { TaskFile } from '../core/taskFiles.js';
|
|
5
|
+
export type ExportRequest = {
|
|
6
|
+
/** Explicit selection. When omitted, every open comment is exported. */
|
|
7
|
+
commentIds?: string[];
|
|
8
|
+
/**
|
|
9
|
+
* Where this app sits relative to wherever the agent is working, when that is not here.
|
|
10
|
+
*
|
|
11
|
+
* In a monorepo the agent runs from the repository root while every path in the work order
|
|
12
|
+
* is relative to the app - `src/Hero.tsx`, where the file is `apps/web/src/Hero.tsx`. The
|
|
13
|
+
* document tells the agent to open those ranges directly and not to search, so a path that
|
|
14
|
+
* does not resolve from where it stands is an instruction it cannot follow.
|
|
15
|
+
*/
|
|
16
|
+
appDirectory?: string | null;
|
|
17
|
+
route?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Whether each comment's anchors still match the working tree, keyed by comment id.
|
|
20
|
+
*
|
|
21
|
+
* Only pulled comments have an entry: a comment left in the running dev server was made
|
|
22
|
+
* against the file on disk, so there is nothing to have drifted. An absent entry means
|
|
23
|
+
* unchecked, never checked-and-fresh.
|
|
24
|
+
*/
|
|
25
|
+
freshness?: Record<string, CommentFreshness>;
|
|
26
|
+
/**
|
|
27
|
+
* Each selected task's files, by comment id (`filesForTasks` in commentFiles.ts). Absent: the work
|
|
28
|
+
* order lists none.
|
|
29
|
+
*/
|
|
30
|
+
filesFor?: (commentIds: string[]) => Promise<Record<string, TaskFile[]>>;
|
|
31
|
+
};
|
|
32
|
+
export type ExportResult = {
|
|
33
|
+
markdown: string;
|
|
34
|
+
path: string;
|
|
35
|
+
count: number;
|
|
36
|
+
files: Record<string, TaskFile[]>;
|
|
37
|
+
};
|
|
38
|
+
export declare function generateAndWriteTaskDoc(source: SourceReader, allComments: Comment[], request: ExportRequest, now?: Date): Promise<ExportResult>;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { exportTaskDoc } from '../core/exportTaskDoc.js';
|
|
3
|
+
import { buildSelectorIndex } from './cssAttribution.js';
|
|
4
|
+
import { knownAppOrigin } from './http.js';
|
|
5
|
+
import { countLines, readExportedComponentSpan, readSourceContext } from '../core/sourceContext.js';
|
|
6
|
+
import { loadRecipe } from '../storage/localRecipe.js';
|
|
7
|
+
import { readDevStyleMap } from '../storage/devStyleMap.js';
|
|
8
|
+
import { nextDevStyleMap } from '../integration/nextStyles.js';
|
|
9
|
+
import { withStyleOrigins } from '../core/styleOrigin.js';
|
|
10
|
+
import { confineAnchors, sourceGate } from '../integration/requestGuards.js';
|
|
11
|
+
import { untrustedComments } from '../core/untrusted.js';
|
|
12
|
+
export async function generateAndWriteTaskDoc(source, allComments, request, now = new Date()) {
|
|
13
|
+
// Reviewer-written records: malformed ones dropped and unsafe names cleared (`untrusted.ts`),
|
|
14
|
+
// then comment-chosen paths refused exactly where /__fb/source refuses them, by real path:
|
|
15
|
+
// a work order is returned to whoever asked for it, so it must not quote .env or
|
|
16
|
+
// .feedback either.
|
|
17
|
+
const servable = sourceGate(source.projectRoot);
|
|
18
|
+
const selected = await Promise.all(selectComments(untrustedComments(allComments), request).map((comment) => confineAnchors(comment, servable)));
|
|
19
|
+
/*
|
|
20
|
+
* Where each CSS rule comes from, from the best source that can answer, in order:
|
|
21
|
+
*
|
|
22
|
+
* 1. the map the preview's build recorded, applied at pull - the code the reviewer saw;
|
|
23
|
+
* 2. the reviewer's browser, which knows a rule was injected by CSS-in-JS;
|
|
24
|
+
* 3. the map a dev server on this machine has been writing as it compiles;
|
|
25
|
+
* 4. reading each stylesheet back through a running dev server, which predates the maps
|
|
26
|
+
* and still answers "which project file" for a project whose dev server has not written one.
|
|
27
|
+
*
|
|
28
|
+
* The last is only attempted when something is still unanswered, and only then can
|
|
29
|
+
* attribution be "unavailable": a comment whose rules the build already placed is not missing
|
|
30
|
+
* anything because no dev server happens to be running.
|
|
31
|
+
*/
|
|
32
|
+
// Vite and Astro write this as they compile; a Next app has it read from its dev build's CSS.
|
|
33
|
+
const devStyles = (await readDevStyleMap(source.projectRoot)) ?? (await nextDevStyleMap(source.projectRoot));
|
|
34
|
+
const mapped = selected.map((comment) => withStyleOrigins(comment, devStyles));
|
|
35
|
+
const open = (rule) => !rule.origin && !rule.runtime;
|
|
36
|
+
const needsIndex = mapped.some((comment) => comment.cssScope?.rules.some(open));
|
|
37
|
+
const selectorIndex = needsIndex ? await buildSelectorIndex(source, knownAppOrigin()) : null;
|
|
38
|
+
const withStyles = mapped.map((comment) => comment.cssScope
|
|
39
|
+
? {
|
|
40
|
+
...comment,
|
|
41
|
+
cssScope: {
|
|
42
|
+
...comment.cssScope,
|
|
43
|
+
rules: comment.cssScope.rules.map((rule) => {
|
|
44
|
+
let origin = rule.origin ?? (rule.runtime ? { kind: 'runtime' } : null);
|
|
45
|
+
if (!origin && selectorIndex) {
|
|
46
|
+
const file = selectorIndex.lookup(rule.selector);
|
|
47
|
+
if (file)
|
|
48
|
+
origin = { kind: 'stylesheet', file };
|
|
49
|
+
}
|
|
50
|
+
return { ...rule, origin, file: origin?.kind === 'stylesheet' ? origin.file : null };
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
: comment);
|
|
55
|
+
const stillOpen = withStyles.some((comment) => comment.cssScope?.rules.some((rule) => !rule.origin));
|
|
56
|
+
// No resolution step for the anchor. The anchor on the comment is the element the reviewer
|
|
57
|
+
// selected with the picker, so export renders what they chose rather than second-guessing.
|
|
58
|
+
// The wording, from whatever the last pull cached, or the version this package shipped with.
|
|
59
|
+
const { recipe } = await loadRecipe(source.projectRoot);
|
|
60
|
+
// Each task's files, from wherever its comment lives: what the reviewer saw and attached.
|
|
61
|
+
const files = request.filesFor ? await request.filesFor(selected.map((comment) => comment.id)) : {};
|
|
62
|
+
const markdown = await exportTaskDoc({
|
|
63
|
+
files,
|
|
64
|
+
comments: withStyles,
|
|
65
|
+
generatedAt: now,
|
|
66
|
+
route: resolveRoute(selected, request.route),
|
|
67
|
+
repository: { ...await detectRepositoryContext(source), appDirectory: request.appDirectory ?? null },
|
|
68
|
+
readExcerpt: async (file, line) => (await servable(file)) ? readExcerpt(source, file, line, anchorColumn(selected, file, line)) : null,
|
|
69
|
+
readContext: async (anchor) => (await servable(anchor.file)) ? readContext(source, anchor, servable) : null,
|
|
70
|
+
styleConfig: await detectStyleConfig(source),
|
|
71
|
+
cssAttribution: { unavailable: stillOpen ? selectorIndex?.unavailable ?? null : null },
|
|
72
|
+
freshness: request.freshness,
|
|
73
|
+
recipe,
|
|
74
|
+
});
|
|
75
|
+
// A local artefact of local resolution, so it goes through the source side rather
|
|
76
|
+
// than the comment store: it stays on this machine even once comments live in a cloud.
|
|
77
|
+
const relativePath = path.posix.join('.feedback', 'tasks', `feedback-${fileTimestamp(now)}.md`);
|
|
78
|
+
await source.writeArtefact(relativePath, `${markdown}\n`);
|
|
79
|
+
return { markdown, path: relativePath, count: selected.length, files };
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Export never follows the chip filter (SPEC 7.6). An explicit selection wins; otherwise
|
|
83
|
+
* only open comments are exported, so nobody ships already-resolved tasks by accident.
|
|
84
|
+
*/
|
|
85
|
+
function selectComments(allComments, request) {
|
|
86
|
+
if (request.commentIds && request.commentIds.length > 0) {
|
|
87
|
+
const wanted = new Set(request.commentIds);
|
|
88
|
+
return allComments.filter((comment) => wanted.has(comment.id));
|
|
89
|
+
}
|
|
90
|
+
return allComments.filter((comment) => comment.status === 'open');
|
|
91
|
+
}
|
|
92
|
+
/** The column recorded for this anchor, so the excerpt can match the exact element. */
|
|
93
|
+
function anchorColumn(comments, file, line) {
|
|
94
|
+
for (const comment of comments) {
|
|
95
|
+
for (const anchor of [comment.anchor, ...comment.replies.map((reply) => reply.anchor)]) {
|
|
96
|
+
if (anchor.file === file && anchor.line === line) {
|
|
97
|
+
return anchor.column;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
function resolveRoute(comments, requested) {
|
|
104
|
+
if (typeof requested === 'string') {
|
|
105
|
+
return requested;
|
|
106
|
+
}
|
|
107
|
+
const routes = new Set(comments.map((comment) => comment.context?.route).filter(Boolean));
|
|
108
|
+
return routes.size === 1 ? [...routes][0] : null;
|
|
109
|
+
}
|
|
110
|
+
async function readExcerpt(source, file, line, column, radius = 6) {
|
|
111
|
+
const code = await source.readFile(file);
|
|
112
|
+
if (code === null) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
try {
|
|
116
|
+
const lines = code.split(/\r?\n/);
|
|
117
|
+
// Prefer the anchored element's real span over a fixed window: it is the unit the
|
|
118
|
+
// reviewer pointed at, and it never cuts a tag in half.
|
|
119
|
+
const context = await readSourceContext(code, file, line, column ?? 0);
|
|
120
|
+
const span = context.element;
|
|
121
|
+
const start = span ? span.startLine : Math.max(1, line - 2);
|
|
122
|
+
const end = span
|
|
123
|
+
? Math.min(lines.length, Math.min(span.endLine, span.startLine + 40))
|
|
124
|
+
: Math.min(lines.length, line + radius);
|
|
125
|
+
return {
|
|
126
|
+
file,
|
|
127
|
+
start,
|
|
128
|
+
end,
|
|
129
|
+
lines: lines.slice(start - 1, end).map((text, index) => ({ line: start + index, text })),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async function readContext(source, anchor, servable) {
|
|
137
|
+
const code = await source.readFile(anchor.file);
|
|
138
|
+
if (code === null) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
return readSourceContext(code, anchor.file, anchor.line, anchor.column, (specifier, fromFile) => resolveLocalImport(source, specifier, fromFile, servable));
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Resolves a relative import to a real project file, so the work order can name where a
|
|
145
|
+
* child component lives instead of leaving the agent to grep for it. Bare specifiers
|
|
146
|
+
* (`react`, `clsx`) resolve to null and are omitted: they are not the reviewer's concern.
|
|
147
|
+
*/
|
|
148
|
+
async function resolveLocalImport(source, specifier, fromFile, servable) {
|
|
149
|
+
if (!specifier.startsWith('.')) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
const base = path.posix.join(path.posix.dirname(fromFile), specifier);
|
|
153
|
+
const candidates = [
|
|
154
|
+
base,
|
|
155
|
+
...['.tsx', '.ts', '.jsx', '.js'].map((extension) => `${base}${extension}`),
|
|
156
|
+
...['.tsx', '.ts', '.jsx', '.js'].map((extension) => path.posix.join(base, `index${extension}`)),
|
|
157
|
+
];
|
|
158
|
+
for (const candidate of candidates) {
|
|
159
|
+
if (!(await servable(candidate)))
|
|
160
|
+
continue;
|
|
161
|
+
const code = await source.readFile(candidate);
|
|
162
|
+
if (code === null) {
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
const exported = await readExportedComponentSpan(code, candidate);
|
|
166
|
+
const fileLineCount = countLines(code);
|
|
167
|
+
return {
|
|
168
|
+
file: candidate,
|
|
169
|
+
span: exported ? { ...referenceSpan(exported, fileLineCount), name: exported.name, fileLineCount } : null,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The useful range for a referenced component starts at line 1, not at the export.
|
|
176
|
+
*
|
|
177
|
+
* Blind testing caught this: quoting only the exported function hid the module-level
|
|
178
|
+
* variant map sitting above it, and an agent that obeyed the range had no idea what
|
|
179
|
+
* `intent="secondary"` actually looked like. Imports and style constants live above the
|
|
180
|
+
* component, so they belong in the range. Very large files fall back to the export alone,
|
|
181
|
+
* with the gap made explicit rather than silently dropped.
|
|
182
|
+
*/
|
|
183
|
+
const referenceSpanCap = 120;
|
|
184
|
+
function referenceSpan(exported, fileLineCount) {
|
|
185
|
+
if (exported.endLine <= referenceSpanCap) {
|
|
186
|
+
return { startLine: 1, endLine: Math.min(exported.endLine, fileLineCount) };
|
|
187
|
+
}
|
|
188
|
+
return { startLine: exported.startLine, endLine: Math.min(exported.endLine, fileLineCount) };
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Design tokens are the other thing agents reliably go looking for: without them they
|
|
192
|
+
* either grep for a custom utility like `shadow-lift` or invent a value. Detected by
|
|
193
|
+
* filename only, so nothing is guessed.
|
|
194
|
+
*/
|
|
195
|
+
async function detectStyleConfig(source) {
|
|
196
|
+
const candidates = [
|
|
197
|
+
'tailwind.config.ts', 'tailwind.config.js', 'tailwind.config.cjs', 'tailwind.config.mjs',
|
|
198
|
+
'theme.config.ts', 'theme.config.js',
|
|
199
|
+
];
|
|
200
|
+
for (const candidate of candidates) {
|
|
201
|
+
const code = await source.readFile(candidate);
|
|
202
|
+
if (code !== null) {
|
|
203
|
+
return { file: candidate, lineCount: countLines(code) };
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* SPEC 9.1: include repository conventions only if detectable reliably. Everything here is
|
|
210
|
+
* read from package.json. Nothing is inferred from file contents.
|
|
211
|
+
*/
|
|
212
|
+
async function detectRepositoryContext(source) {
|
|
213
|
+
try {
|
|
214
|
+
const raw = await source.readFile('package.json');
|
|
215
|
+
if (raw === null) {
|
|
216
|
+
return { appDirectory: null, stack: [] };
|
|
217
|
+
}
|
|
218
|
+
const manifest = JSON.parse(raw);
|
|
219
|
+
const dependencies = { ...manifest.dependencies, ...manifest.devDependencies };
|
|
220
|
+
const stack = [];
|
|
221
|
+
if (dependencies.vite)
|
|
222
|
+
stack.push('Vite');
|
|
223
|
+
if (dependencies.next)
|
|
224
|
+
stack.push('Next.js');
|
|
225
|
+
if (dependencies.react)
|
|
226
|
+
stack.push('React');
|
|
227
|
+
if (dependencies.vue)
|
|
228
|
+
stack.push('Vue');
|
|
229
|
+
if (dependencies.tailwindcss)
|
|
230
|
+
stack.push('Tailwind');
|
|
231
|
+
return { appDirectory: null, stack };
|
|
232
|
+
}
|
|
233
|
+
catch {
|
|
234
|
+
return { appDirectory: null, stack: [] };
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function fileTimestamp(date) {
|
|
238
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
239
|
+
return [
|
|
240
|
+
date.getFullYear(),
|
|
241
|
+
pad(date.getMonth() + 1),
|
|
242
|
+
pad(date.getDate()),
|
|
243
|
+
'-',
|
|
244
|
+
pad(date.getHours()),
|
|
245
|
+
pad(date.getMinutes()),
|
|
246
|
+
pad(date.getSeconds()),
|
|
247
|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C,UAAU,CAAC,CAAC;QAErD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IAC3C,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,IAAU;IAC/B,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC9D,OAAO;QACL,IAAI,CAAC,WAAW,EAAE;QAClB,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;QACxB,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACnB,GAAG;QACH,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpB,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QACtB,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;KACvB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type IncomingMessage, type ServerResponse } from 'node:http';
|
|
2
|
+
import type { CommentStore, ParticipantStore, SourceReader } from '../core/ports.js';
|
|
3
|
+
import { type DevCloudAnswer } from '../integration/devCloud.js';
|
|
4
|
+
export declare const knownAppOrigin: () => string | null;
|
|
5
|
+
export type SidecarOptions = {
|
|
6
|
+
projectRoot: string;
|
|
7
|
+
port: number;
|
|
8
|
+
/** Identifies the package build this process is running. */
|
|
9
|
+
buildId: string;
|
|
10
|
+
/** Feedback storage. Local today, swappable for a cloud implementation later. */
|
|
11
|
+
comments: CommentStore;
|
|
12
|
+
participants: ParticipantStore;
|
|
13
|
+
/** The customer's code. Local only, never swappable. */
|
|
14
|
+
source: SourceReader;
|
|
15
|
+
/** Optional discovery boundary for deterministic hosts and endpoint tests. */
|
|
16
|
+
loadDevCloud?: () => Promise<DevCloudAnswer>;
|
|
17
|
+
};
|
|
18
|
+
/** Header naming the project a request belongs to, so it cannot land in the wrong store. */
|
|
19
|
+
export declare const projectRootHeader = "x-feedback-project-root";
|
|
20
|
+
export declare function startSidecar({ projectRoot, port, buildId, comments: store, participants, source, loadDevCloud, }: SidecarOptions): Promise<import("http").Server<typeof IncomingMessage, typeof ServerResponse>>;
|