extension-develop 2.1.3 → 3.0.0-next.7
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/README.md +53 -25
- package/dist/930.js +44 -0
- package/dist/add-centralized-logger-script-background.js +220 -0
- package/dist/add-centralized-logger-script-content.js +172 -0
- package/dist/add-centralized-logger-script.js +332 -0
- package/dist/add-hmr-accept-code.js +5 -11
- package/dist/content-script-wrapper.js +166 -0
- package/dist/ensure-hmr-for-scripts.js +30 -11
- package/dist/minimum-chromium-file.js +6 -20
- package/dist/minimum-firefox-file.js +6 -12
- package/dist/module.js +12030 -9529
- package/dist/resolve-paths-loader.js +1391 -0
- package/dist/warn-no-default-export.js +121 -0
- package/package.json +21 -35
- package/dist/add-content-script-wrapper.js +0 -1789
- package/dist/build.d.ts +0 -2
- package/dist/cleanup.d.ts +0 -1
- package/dist/deprecated-shadow-root.js +0 -135
- package/dist/dev.d.ts +0 -2
- package/dist/develop-lib/config-types.d.ts +0 -86
- package/dist/develop-lib/extract-from-zip.d.ts +0 -1
- package/dist/develop-lib/find-nearest-package.d.ts +0 -2
- package/dist/develop-lib/generate-extension-types.d.ts +0 -1
- package/dist/develop-lib/generate-zip.d.ts +0 -2
- package/dist/develop-lib/get-extension-config.d.ts +0 -6
- package/dist/develop-lib/get-project-path.d.ts +0 -6
- package/dist/develop-lib/install-dependencies.d.ts +0 -2
- package/dist/develop-lib/messages.d.ts +0 -36
- package/dist/develop-lib/validate-user-dependencies.d.ts +0 -1
- package/dist/extensions/chrome-manager-extension/background.js +0 -84
- package/dist/extensions/chrome-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chrome-manager-extension/manifest.json +0 -17
- package/dist/extensions/chrome-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chrome-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chrome-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chrome-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chrome-manager-extension/reload-service.js +0 -319
- package/dist/extensions/chromium-based-manager-extension/background.js +0 -84
- package/dist/extensions/chromium-based-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chromium-based-manager-extension/manifest.json +0 -17
- package/dist/extensions/chromium-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chromium-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chromium-based-manager-extension/reload-service.js +0 -324
- package/dist/extensions/edge-manager-extension/background.js +0 -82
- package/dist/extensions/edge-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
- package/dist/extensions/edge-manager-extension/manifest.json +0 -17
- package/dist/extensions/edge-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/edge-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/edge-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/edge-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/edge-manager-extension/reload-service.js +0 -321
- package/dist/extensions/firefox-manager-extension/background.js +0 -85
- package/dist/extensions/firefox-manager-extension/define-initial-tab.js +0 -64
- package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
- package/dist/extensions/firefox-manager-extension/manifest.json +0 -15
- package/dist/extensions/firefox-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/firefox-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/firefox-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/firefox-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/firefox-manager-extension/reload-service.js +0 -178
- package/dist/extensions/gecko-based-manager-extension/background.js +0 -67
- package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +0 -69
- package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/gecko-based-manager-extension/manifest.json +0 -16
- package/dist/extensions/gecko-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/gecko-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/gecko-based-manager-extension/reload-service.js +0 -171
- package/dist/inject-chromium-client-loader.js +0 -176
- package/dist/inject-firefox-client-loader.js +0 -169
- package/dist/minimum-content-file.js +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/preview.d.ts +0 -2
- package/dist/rslib.config.d.ts +0 -3
- package/dist/start.d.ts +0 -2
- package/dist/types.d.ts +0 -11
- package/dist/vitest.config.d.mts +0 -2
- package/dist/webpack/dev-server.d.ts +0 -3
- package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +0 -5
- package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +0 -35
- package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +0 -74
- package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +0 -164
- package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +0 -7
- package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +0 -16
- package/dist/webpack/plugin-browsers/browsers-types.d.ts +0 -131
- package/dist/webpack/plugin-browsers/index.d.ts +0 -41
- package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +0 -3
- package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +0 -10
- package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +0 -28
- package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +0 -161
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +0 -29
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +0 -25
- package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +0 -15
- package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +0 -7
- package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +0 -95
- package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +0 -26
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +0 -2
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +0 -42
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +0 -31
- package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +0 -9
- package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +0 -12
- package/dist/webpack/plugin-compatibility/index.d.ts +0 -13
- package/dist/webpack/plugin-compilation/clean-dist.d.ts +0 -8
- package/dist/webpack/plugin-compilation/env.d.ts +0 -9
- package/dist/webpack/plugin-compilation/index.d.ts +0 -12
- package/dist/webpack/plugin-css/common-style-loaders.d.ts +0 -8
- package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +0 -11
- package/dist/webpack/plugin-css/css-in-html-loader.d.ts +0 -8
- package/dist/webpack/plugin-css/css-tools/less.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/postcss.d.ts +0 -3
- package/dist/webpack/plugin-css/css-tools/sass.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +0 -2
- package/dist/webpack/plugin-css/index.d.ts +0 -9
- package/dist/webpack/plugin-css/is-content-script.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +0 -6
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +0 -10
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +0 -4
- package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/index.d.ts +0 -37
- package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-icons/index.d.ts +0 -25
- package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-json/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-locales/index.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +0 -23
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +0 -16
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +0 -24
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +0 -17
- package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +0 -27
- package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +0 -3
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts +0 -0
- package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +0 -14
- package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/index.d.ts +0 -10
- package/dist/webpack/plugin-js-frameworks/index.d.ts +0 -13
- package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +0 -16
- package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +0 -36
- package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +0 -1
- package/dist/webpack/plugin-reload/index.d.ts +0 -13
- package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +0 -106
- package/dist/webpack/plugin-reload/reload-types.d.ts +0 -14
- package/dist/webpack/plugin-reload/start-server.d.ts +0 -4
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +0 -14
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +0 -5
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +0 -13
- package/dist/webpack/plugin-static-assets/index.d.ts +0 -12
- package/dist/webpack/webpack-config.d.ts +0 -14
- package/dist/webpack/webpack-lib/auto-exit.d.ts +0 -1
- package/dist/webpack/webpack-lib/constants.d.ts +0 -4
- package/dist/webpack/webpack-lib/messages.d.ts +0 -121
- package/dist/webpack/webpack-lib/port-manager.d.ts +0 -27
- package/dist/webpack/webpack-lib/utils.d.ts +0 -23
- package/dist/webpack/webpack-types.d.ts +0 -49
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
default: ()=>inject_firefox_client_loader
|
|
28
|
-
});
|
|
29
|
-
const external_path_namespaceObject = require("path");
|
|
30
|
-
const external_fs_namespaceObject = require("fs");
|
|
31
|
-
const external_loader_utils_namespaceObject = require("loader-utils");
|
|
32
|
-
const external_schema_utils_namespaceObject = require("schema-utils");
|
|
33
|
-
require("os");
|
|
34
|
-
require("crypto");
|
|
35
|
-
require("child_process");
|
|
36
|
-
require("package-manager-detector");
|
|
37
|
-
require("pintor");
|
|
38
|
-
external_path_namespaceObject.join(process.cwd(), 'node_modules/extension-develop/dist/certs');
|
|
39
|
-
const CHROMIUM_BASED_BROWSERS = [
|
|
40
|
-
'chrome',
|
|
41
|
-
'edge'
|
|
42
|
-
];
|
|
43
|
-
const GECKO_BASED_BROWSERS = [
|
|
44
|
-
'firefox'
|
|
45
|
-
];
|
|
46
|
-
[
|
|
47
|
-
...CHROMIUM_BASED_BROWSERS,
|
|
48
|
-
...GECKO_BASED_BROWSERS
|
|
49
|
-
];
|
|
50
|
-
function filterKeysForThisBrowser(manifest, browser) {
|
|
51
|
-
const patchedManifest = JSON.parse(JSON.stringify(manifest), function(key, value) {
|
|
52
|
-
const indexOfColon = key.indexOf(':');
|
|
53
|
-
if (-1 === indexOfColon) return value;
|
|
54
|
-
const prefix = key.substring(0, indexOfColon);
|
|
55
|
-
if (prefix === browser || 'chromium' === prefix && CHROMIUM_BASED_BROWSERS.includes(browser) || 'chromium' === prefix && browser.includes('chromium') || 'gecko' === prefix && browser.includes('gecko')) this[key.substring(indexOfColon + 1)] = value;
|
|
56
|
-
});
|
|
57
|
-
return patchedManifest;
|
|
58
|
-
}
|
|
59
|
-
const schema = {
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
test: {
|
|
63
|
-
type: 'string'
|
|
64
|
-
},
|
|
65
|
-
manifestPath: {
|
|
66
|
-
type: 'string'
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
function inject_firefox_client_loader(source) {
|
|
71
|
-
const options = this.getOptions();
|
|
72
|
-
const manifestPath = options.manifestPath;
|
|
73
|
-
const browser = options.browser;
|
|
74
|
-
const projectPath = external_path_namespaceObject.dirname(manifestPath);
|
|
75
|
-
const manifest = JSON.parse(external_fs_namespaceObject.readFileSync(manifestPath, 'utf-8'));
|
|
76
|
-
const patchedManifest = filterKeysForThisBrowser(manifest, browser);
|
|
77
|
-
(0, external_schema_utils_namespaceObject.validate)(schema, options, {
|
|
78
|
-
name: 'reload:inject-firefox-client',
|
|
79
|
-
baseDataPath: 'options'
|
|
80
|
-
});
|
|
81
|
-
const url = (0, external_loader_utils_namespaceObject.urlToRequest)(this.resourcePath);
|
|
82
|
-
const firefoxReloadCode = `
|
|
83
|
-
// Firefox-specific reload handler
|
|
84
|
-
;browser.runtime.onMessageExternal.addListener(
|
|
85
|
-
async (request, _sender, sendResponse) => {
|
|
86
|
-
const managementInfo = await new Promise((resolve) => {
|
|
87
|
-
browser.management.getSelf().then(resolve);
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
// Handle initial load data
|
|
91
|
-
if (request.initialLoadData) {
|
|
92
|
-
sendResponse({
|
|
93
|
-
id: browser.runtime.id,
|
|
94
|
-
manifest: browser.runtime.getManifest(),
|
|
95
|
-
management: managementInfo,
|
|
96
|
-
})
|
|
97
|
-
return true
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Enhanced reload logic for critical files in Firefox
|
|
101
|
-
if (
|
|
102
|
-
request.changedFile === 'manifest.json' ||
|
|
103
|
-
request.changedFile === 'service_worker' ||
|
|
104
|
-
request.changedFile === '_locales'
|
|
105
|
-
) {
|
|
106
|
-
console.log('Firefox: Reloading extension due to critical file change:', request.changedFile);
|
|
107
|
-
|
|
108
|
-
try {
|
|
109
|
-
// Firefox-specific cache clearing
|
|
110
|
-
if (browser.storage && browser.storage.local) {
|
|
111
|
-
await browser.storage.local.clear();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const timestamp = Date.now();
|
|
115
|
-
console.log('Firefox: Forcing extension reload at:', timestamp);
|
|
116
|
-
|
|
117
|
-
sendResponse({reloaded: true, timestamp: timestamp})
|
|
118
|
-
browser.runtime.reload()
|
|
119
|
-
} catch (error) {
|
|
120
|
-
console.error('Firefox: Failed to reload extension:', error);
|
|
121
|
-
sendResponse({error: error.message})
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return true
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
|
|
129
|
-
// Firefox-specific cache-busting mechanism
|
|
130
|
-
;(function() {
|
|
131
|
-
const cacheBuster = Date.now();
|
|
132
|
-
console.log('Firefox background script loaded with cache buster:', cacheBuster);
|
|
133
|
-
|
|
134
|
-
// Force reload if this script is older than 1 second (optimized for faster manifest reloads)
|
|
135
|
-
const scriptAge = Date.now() - cacheBuster;
|
|
136
|
-
if (scriptAge > 1000) {
|
|
137
|
-
console.log('Firefox background script is stale, forcing reload');
|
|
138
|
-
browser.runtime.reload();
|
|
139
|
-
}
|
|
140
|
-
})();
|
|
141
|
-
`;
|
|
142
|
-
let manifestBg = patchedManifest.background;
|
|
143
|
-
if (manifestBg) {
|
|
144
|
-
const backgroundScripts = null == manifestBg ? void 0 : manifestBg.scripts;
|
|
145
|
-
if (backgroundScripts) {
|
|
146
|
-
if (2 === patchedManifest.manifest_version) for (const bgScript of [
|
|
147
|
-
backgroundScripts[0]
|
|
148
|
-
]){
|
|
149
|
-
const absoluteUrl = external_path_namespaceObject.resolve(projectPath, bgScript);
|
|
150
|
-
if (url.includes(absoluteUrl)) return `${firefoxReloadCode}${source}`;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
const serviceWorker = null == manifestBg ? void 0 : manifestBg.service_worker;
|
|
154
|
-
if (serviceWorker) {
|
|
155
|
-
if (3 === patchedManifest.manifest_version) {
|
|
156
|
-
const absoluteUrl = external_path_namespaceObject.resolve(projectPath, serviceWorker);
|
|
157
|
-
if (url.includes(absoluteUrl)) return `${firefoxReloadCode}${source}`;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return source;
|
|
162
|
-
}
|
|
163
|
-
exports["default"] = __webpack_exports__["default"];
|
|
164
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
165
|
-
"default"
|
|
166
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
167
|
-
Object.defineProperty(exports, '__esModule', {
|
|
168
|
-
value: true
|
|
169
|
-
});
|
package/dist/module.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { extensionBuild } from './build';
|
|
2
|
-
import { extensionDev } from './dev';
|
|
3
|
-
import { extensionPreview } from './preview';
|
|
4
|
-
import { extensionStart } from './start';
|
|
5
|
-
import { cleanupCommand } from './cleanup';
|
|
6
|
-
import { type FileConfig, type BuildOptions, type DevOptions, type PreviewOptions, type StartOptions } from './develop-lib/config-types';
|
|
7
|
-
import { type Manifest } from './webpack/webpack-types';
|
|
8
|
-
export { extensionBuild, BuildOptions, extensionDev, DevOptions, extensionStart, StartOptions, extensionPreview, PreviewOptions, cleanupCommand, FileConfig, Manifest };
|
package/dist/preview.d.ts
DELETED
package/dist/rslib.config.d.ts
DELETED
package/dist/start.d.ts
DELETED
package/dist/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type ChromeManifest = Partial<chrome.runtime.ManifestV2> & Partial<chrome.runtime.ManifestV3> & {
|
|
2
|
-
browser_action?: {
|
|
3
|
-
theme_icons?: ThemeIcon[];
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export type Manifest = ChromeManifest;
|
|
7
|
-
export interface ThemeIcon {
|
|
8
|
-
light: string;
|
|
9
|
-
dark: string;
|
|
10
|
-
size?: number;
|
|
11
|
-
}
|
package/dist/vitest.config.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function addProgressBar(text: string, completionCallback: () => void): void;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { InstanceInfo } from './instance-manager';
|
|
2
|
-
export type ExtensionManifest = (chrome.runtime.ManifestV2 & {
|
|
3
|
-
background?: {
|
|
4
|
-
scripts?: string[];
|
|
5
|
-
type?: string;
|
|
6
|
-
};
|
|
7
|
-
}) | (chrome.runtime.ManifestV3 & {
|
|
8
|
-
background?: {
|
|
9
|
-
service_worker?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
export interface GeneratedExtension {
|
|
14
|
-
extensionId: string;
|
|
15
|
-
manifest: ExtensionManifest;
|
|
16
|
-
serviceWorkerPath: string;
|
|
17
|
-
extensionPath: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class DynamicExtensionManager {
|
|
20
|
-
private readonly baseExtensionPath;
|
|
21
|
-
private readonly projectPath;
|
|
22
|
-
private readonly userExtensionsPath;
|
|
23
|
-
constructor(projectPath?: string);
|
|
24
|
-
private generateExtensionKey;
|
|
25
|
-
private getBaseExtensionPath;
|
|
26
|
-
private readBaseManifest;
|
|
27
|
-
private readBaseServiceWorker;
|
|
28
|
-
generateExtension(instance: InstanceInfo): Promise<GeneratedExtension>;
|
|
29
|
-
private copyExtensionFiles;
|
|
30
|
-
cleanupExtension(instanceId: string): Promise<void>;
|
|
31
|
-
cleanupAllExtensions(): Promise<void>;
|
|
32
|
-
getExtensionPath(instanceId: string): string;
|
|
33
|
-
extensionExists(instanceId: string): Promise<boolean>;
|
|
34
|
-
regenerateExtensionIfNeeded(instance: InstanceInfo): Promise<GeneratedExtension>;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function mergeShadowIntoDocument(mainHTML: string, shadowContent: string): string;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../../develop-lib/config-types';
|
|
2
|
-
export interface InstanceInfo {
|
|
3
|
-
instanceId: string;
|
|
4
|
-
processId: number;
|
|
5
|
-
port: number;
|
|
6
|
-
webSocketPort: number;
|
|
7
|
-
browser: DevOptions['browser'];
|
|
8
|
-
extensionId?: string;
|
|
9
|
-
managerExtensionId: string;
|
|
10
|
-
profilePath: string;
|
|
11
|
-
debugPort?: number;
|
|
12
|
-
effectiveProfilePath?: string;
|
|
13
|
-
projectPath: string;
|
|
14
|
-
startTime: number;
|
|
15
|
-
status: 'running' | 'terminated' | 'error';
|
|
16
|
-
}
|
|
17
|
-
export interface InstanceRegistry {
|
|
18
|
-
instances: Record<string, InstanceInfo>;
|
|
19
|
-
lastCleanup: number;
|
|
20
|
-
}
|
|
21
|
-
export declare class InstanceManager {
|
|
22
|
-
private readonly registryPath;
|
|
23
|
-
private readonly basePort;
|
|
24
|
-
private readonly baseWebSocketPort;
|
|
25
|
-
private readonly cleanupInterval;
|
|
26
|
-
private healthChecks;
|
|
27
|
-
constructor(projectPath: string, basePort?: number, baseWebSocketPort?: number);
|
|
28
|
-
private getDataDirectory;
|
|
29
|
-
private generateInstanceId;
|
|
30
|
-
private generateManagerExtensionId;
|
|
31
|
-
private ensureRegistryDir;
|
|
32
|
-
ensureDataDirectory(): Promise<void>;
|
|
33
|
-
private loadRegistry;
|
|
34
|
-
private saveRegistry;
|
|
35
|
-
private isPortAvailable;
|
|
36
|
-
/**
|
|
37
|
-
* Smart port allocation that considers existing instances
|
|
38
|
-
*/
|
|
39
|
-
private allocateSmartPorts;
|
|
40
|
-
private findAvailableWebSocketPort;
|
|
41
|
-
private cleanupTerminatedInstances;
|
|
42
|
-
/**
|
|
43
|
-
* Check if a process is still running
|
|
44
|
-
*/
|
|
45
|
-
private isProcessRunning;
|
|
46
|
-
/**
|
|
47
|
-
* Enhanced process monitoring for AI usage
|
|
48
|
-
*/
|
|
49
|
-
private monitorProcessHealth;
|
|
50
|
-
private arePortsInUse;
|
|
51
|
-
/**
|
|
52
|
-
* Force cleanup all processes for this project
|
|
53
|
-
*/
|
|
54
|
-
forceCleanupProjectProcesses(projectPath: string): Promise<void>;
|
|
55
|
-
createInstance(browser: DevOptions['browser'], projectPath: string, requestedPort?: number): Promise<InstanceInfo>;
|
|
56
|
-
updateInstance(instanceId: string, updates: Partial<InstanceInfo>): Promise<void>;
|
|
57
|
-
terminateInstance(instanceId: string): Promise<void>;
|
|
58
|
-
getRunningInstances(): Promise<InstanceInfo[]>;
|
|
59
|
-
getInstance(instanceId: string): Promise<InstanceInfo | null>;
|
|
60
|
-
isInstanceRunning(instanceId: string): Promise<boolean>;
|
|
61
|
-
getInstanceByPort(port: number): Promise<InstanceInfo | null>;
|
|
62
|
-
getInstanceByWebSocketPort(webSocketPort: number): Promise<InstanceInfo | null>;
|
|
63
|
-
cleanupAllInstances(): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Force cleanup of all orphaned instances
|
|
66
|
-
*/
|
|
67
|
-
forceCleanupOrphanedInstances(): Promise<void>;
|
|
68
|
-
getStats(): Promise<{
|
|
69
|
-
total: number;
|
|
70
|
-
running: number;
|
|
71
|
-
terminated: number;
|
|
72
|
-
error: number;
|
|
73
|
-
}>;
|
|
74
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import type { DevOptions } from '../../../develop-lib/config-types';
|
|
2
|
-
type Browser = NonNullable<DevOptions['browser']>;
|
|
3
|
-
type Mode = DevOptions['mode'];
|
|
4
|
-
export declare function capitalizedBrowserName(browser: Browser): string;
|
|
5
|
-
export declare function creatingUserProfile(browser: Browser): string;
|
|
6
|
-
export declare function browserInstanceAlreadyRunning(browser: Browser): string;
|
|
7
|
-
export declare function browserInstanceExited(browser: Browser): string;
|
|
8
|
-
export declare function stdoutData(browser: Browser, mode: Mode): string;
|
|
9
|
-
export declare function browserNotInstalledError(browser: Browser, browserBinaryLocation: string): string;
|
|
10
|
-
export declare function injectingAddOnsError(browser: Browser, error: unknown): string;
|
|
11
|
-
export declare function firefoxServiceWorkerError(browser: Browser): string;
|
|
12
|
-
export declare function browserLaunchError(browser: Browser, error: unknown): string;
|
|
13
|
-
export declare function enhancedProcessManagementStarting(browser: Browser): string;
|
|
14
|
-
export declare function enhancedProcessManagementCleanup(browser: Browser): string;
|
|
15
|
-
export declare function enhancedProcessManagementTerminating(browser: Browser): string;
|
|
16
|
-
export declare function enhancedProcessManagementForceKill(browser: Browser): string;
|
|
17
|
-
export declare function enhancedProcessManagementCleanupError(browser: Browser, error: unknown): string;
|
|
18
|
-
export declare function enhancedProcessManagementInstanceCleanup(browser: Browser): string;
|
|
19
|
-
export declare function enhancedProcessManagementInstanceCleanupComplete(browser: Browser): string;
|
|
20
|
-
export declare function enhancedProcessManagementSignalHandling(browser: Browser): string;
|
|
21
|
-
export declare function enhancedProcessManagementUncaughtException(browser: Browser, error: unknown): string;
|
|
22
|
-
export declare function enhancedProcessManagementUnhandledRejection(browser: Browser, reason: unknown): string;
|
|
23
|
-
export declare function generalBrowserError(browser: Browser, error: unknown): string;
|
|
24
|
-
export declare function errorConnectingToBrowser(browser: Browser): string;
|
|
25
|
-
export declare function addonInstallError(browser: Browser, message: string): string;
|
|
26
|
-
export declare function pathIsNotDirectoryError(browser: Browser, profilePath: string): string;
|
|
27
|
-
export declare function messagingClientClosedError(browser: Browser): string;
|
|
28
|
-
export declare function requestWithoutTargetActorError(browser: Browser, requestType: string): string;
|
|
29
|
-
export declare function connectionClosedError(browser: Browser): string;
|
|
30
|
-
export declare function targetActorHasActiveRequestError(browser: Browser, targetActor: string): string;
|
|
31
|
-
export declare function parsingPacketError(browser: Browser, error: unknown): string;
|
|
32
|
-
export declare function messageWithoutSenderError(browser: Browser, message: {
|
|
33
|
-
from?: string;
|
|
34
|
-
type?: string;
|
|
35
|
-
error?: unknown;
|
|
36
|
-
}): string;
|
|
37
|
-
export declare function unexpectedMessageReceivedError(browser: Browser, message: string): string;
|
|
38
|
-
export declare function isUsingStartingUrl(browser: Browser, value: unknown): string;
|
|
39
|
-
export declare function isUsingBrowserBinary(binary: string, binaryPath: unknown): string;
|
|
40
|
-
export declare function isUsingProfile(browser: Browser, profilePath: unknown): string;
|
|
41
|
-
export declare function isUsingPreferences(browser: Browser): string;
|
|
42
|
-
export declare function isUsingBrowserFlags(browser: Browser): string;
|
|
43
|
-
export declare function isBrowserLauncherOpen(browser: Browser, isOpen: boolean): string;
|
|
44
|
-
export declare function pathDoesNotExistError(browser: Browser, profilePath: string): string;
|
|
45
|
-
export declare function pathPermissionError(browser: Browser, profilePath: string): string;
|
|
46
|
-
export declare function profileCreationError(browser: Browser, error: unknown): string;
|
|
47
|
-
export declare function chromeProcessExited(code: number): string;
|
|
48
|
-
export declare function chromeProcessError(error: unknown): string;
|
|
49
|
-
export declare function chromeFailedToSpawn(error: unknown): string;
|
|
50
|
-
export declare function chromeInitializingEnhancedReload(): string;
|
|
51
|
-
export declare function firefoxLaunchCalled(): string;
|
|
52
|
-
export declare function firefoxDetectionFailed(error: unknown): string;
|
|
53
|
-
export declare function firefoxBinaryArgsExtracted(args: string): string;
|
|
54
|
-
export declare function firefoxNoBinaryArgsFound(): string;
|
|
55
|
-
export declare function firefoxFailedToExtractProfilePath(): string;
|
|
56
|
-
export declare function firefoxFailedToStart(error: unknown): string;
|
|
57
|
-
export declare function instanceManagerHealthMonitoringStart(instanceId: string): string;
|
|
58
|
-
export declare function instanceManagerHealthMonitoringPassed(instanceId: string): string;
|
|
59
|
-
export declare function instanceManagerHealthMonitoringOrphaned(instanceId: string): string;
|
|
60
|
-
export declare function instanceManagerHealthMonitoringFailed(instanceId: string, error: unknown): string;
|
|
61
|
-
export declare function instanceManagerForceCleanupProject(projectPath: string): string;
|
|
62
|
-
export declare function instanceManagerForceCleanupFound(instanceCount: number): string;
|
|
63
|
-
export declare function instanceManagerForceCleanupInstance(instanceId: string): string;
|
|
64
|
-
export declare function instanceManagerForceCleanupTerminating(processId: number): string;
|
|
65
|
-
export declare function instanceManagerForceCleanupForceKilled(processId: number): string;
|
|
66
|
-
export declare function instanceManagerForceCleanupInstanceTerminated(instanceId: string): string;
|
|
67
|
-
export declare function instanceManagerForceCleanupError(instanceId: string, error: unknown): string;
|
|
68
|
-
export declare function instanceManagerForceCleanupComplete(): string;
|
|
69
|
-
export declare function sourceInspectorInitialized(): string;
|
|
70
|
-
export declare function sourceInspectorInitializationFailed(error: string): string;
|
|
71
|
-
export declare function sourceInspectorChromeDebuggingRequired(port: number): string;
|
|
72
|
-
export declare function sourceInspectorFirefoxDebuggingRequired(port: number): string;
|
|
73
|
-
export declare function sourceInspectorWaitingForFirefox(): string;
|
|
74
|
-
export declare function firefoxRemoteDebuggingReady(): string;
|
|
75
|
-
export declare function sourceInspectorFirefoxNotReadyYet(retries: number, maxRetries: number): string;
|
|
76
|
-
export declare function sourceInspectorWaitingForChrome(): string;
|
|
77
|
-
export declare function chromeRemoteDebuggingReady(): string;
|
|
78
|
-
export declare function sourceInspectorChromeNotReadyYet(retries: number, maxRetries: number): string;
|
|
79
|
-
export declare function sourceInspectorOpeningUrl(url: string): string;
|
|
80
|
-
export declare function sourceInspectorWaitingForPageLoad(): string;
|
|
81
|
-
export declare function sourceInspectorCreatingTarget(): string;
|
|
82
|
-
export declare function sourceInspectorFindingExistingTarget(): string;
|
|
83
|
-
export declare function sourceInspectorUsingExistingTarget(targetId: string): string;
|
|
84
|
-
export declare function sourceInspectorTargetCreated(targetId: string): string;
|
|
85
|
-
export declare function sourceInspectorAttachingToTarget(): string;
|
|
86
|
-
export declare function sourceInspectorAttachedToTarget(sessionId: string): string;
|
|
87
|
-
export declare function sourceInspectorExtractingHTML(): string;
|
|
88
|
-
export declare function sourceInspectorHTMLExtractionComplete(): string;
|
|
89
|
-
export declare function sourceInspectorInspectionFailed(error: string): string;
|
|
90
|
-
export declare function sourceInspectorStartingWatchMode(): string;
|
|
91
|
-
export declare function sourceInspectorWatchModeActive(): string;
|
|
92
|
-
export declare function sourceInspectorWatchModeStopped(): string;
|
|
93
|
-
export declare function sourceInspectorCDPConnectionMaintained(): string;
|
|
94
|
-
export declare function sourceInspectorNoActiveSession(): string;
|
|
95
|
-
export declare function sourceInspectorReExtractingHTML(): string;
|
|
96
|
-
export declare function sourceInspectorAttemptingReconnection(): string;
|
|
97
|
-
export declare function sourceInspectorCannotReconnect(): string;
|
|
98
|
-
export declare function sourceInspectorReconnectingToTarget(): string;
|
|
99
|
-
export declare function sourceInspectorReconnectedToTarget(sessionId: string): string;
|
|
100
|
-
export declare function sourceInspectorReconnectionFailed(error: string): string;
|
|
101
|
-
export declare function sourceInspectorEnsuringNavigation(): string;
|
|
102
|
-
export declare function sourceInspectorEnablingPageDomain(): string;
|
|
103
|
-
export declare function sourceInspectorWaitingForContentScripts(): string;
|
|
104
|
-
export declare function sourceInspectorWaitingForContentScriptReinjection(): string;
|
|
105
|
-
export declare function sourceInspectorFileChanged(): string;
|
|
106
|
-
export declare function sourceInspectorHTMLUpdateFailed(error: string): string;
|
|
107
|
-
export declare function sourceInspectorCleanupComplete(): string;
|
|
108
|
-
export declare function sourceInspectorCleanupError(error: string): string;
|
|
109
|
-
export declare function sourceInspectorNotInitialized(): string;
|
|
110
|
-
export declare function sourceInspectorInvalidWebSocketServer(): string;
|
|
111
|
-
export declare function sourceInspectorUrlRequired(): string;
|
|
112
|
-
export declare function sourceInspectorWillInspect(url: string): string;
|
|
113
|
-
export declare function sourceInspectorSetupFailed(error: string): string;
|
|
114
|
-
export declare function sourceInspectorHTMLOutputHeader(): string;
|
|
115
|
-
export declare function sourceInspectorHTMLOutputTitle(title: string): string;
|
|
116
|
-
export declare function sourceInspectorHTMLOutputFooter(): string;
|
|
117
|
-
export declare function sourceInspectorClientNotInitialized(): string;
|
|
118
|
-
export declare function sourceInspectorNoTabActorAvailable(): string;
|
|
119
|
-
export declare function sourceInspectorNoTabTargetFound(): string;
|
|
120
|
-
export declare function sourceInspectorHtmlExtractFailed(): string;
|
|
121
|
-
export declare function cdpClientFoundTargets(count: number): string;
|
|
122
|
-
export declare function cdpClientTargetWebSocketUrlStored(): string;
|
|
123
|
-
export declare function cdpClientConnected(host: string, port: number): string;
|
|
124
|
-
export declare function cdpClientConnectionError(error: string): string;
|
|
125
|
-
export declare function cdpClientBrowserConnectionEstablished(): string;
|
|
126
|
-
export declare function cdpClientConnectionClosed(): string;
|
|
127
|
-
export declare function cdpClientMessageParseError(error: string): string;
|
|
128
|
-
export declare function cdpClientPageLoadEventFired(): string;
|
|
129
|
-
export declare function cdpClientLoadEventTimeout(): string;
|
|
130
|
-
export declare function cdpClientTestingEvaluation(): string;
|
|
131
|
-
export declare function cdpClientDocumentTitle(title: string): string;
|
|
132
|
-
export declare function cdpClientGettingMainHTML(): string;
|
|
133
|
-
export declare function cdpClientMainHTMLLength(length: number): string;
|
|
134
|
-
export declare function cdpClientFailedToGetMainHTML(): string;
|
|
135
|
-
export declare function cdpClientCheckingShadowDOM(): string;
|
|
136
|
-
export declare function cdpClientShadowDOMContentFound(found: boolean): string;
|
|
137
|
-
export declare function cdpClientShadowDOMContentLength(length: number): string;
|
|
138
|
-
export declare function cdpClientProcessingShadowDOM(): string;
|
|
139
|
-
export declare function cdpClientFinalHTMLWithShadowDOMLength(length: number): string;
|
|
140
|
-
export declare function cdpClientReturningMainHTML(): string;
|
|
141
|
-
export declare function cdpClientExtensionReloadFailed(extensionId: string, error: string): string;
|
|
142
|
-
export declare function cdpClientExtensionUnloadFailed(extensionId: string, error: string): string;
|
|
143
|
-
export declare function cdpClientExtensionInfoFailed(extensionId: string, error: string): string;
|
|
144
|
-
export declare function cdpClientExtensionLoadFailed(path: string, error: string): string;
|
|
145
|
-
export declare function firefoxRdpClientFoundTargets(count: number): string;
|
|
146
|
-
export declare function firefoxRdpClientUsingTarget(title: string, url: string): string;
|
|
147
|
-
export declare function firefoxRdpClientConnected(host: string, port: number): string;
|
|
148
|
-
export declare function firefoxRdpClientConnectionError(error: string): string;
|
|
149
|
-
export declare function firefoxRdpClientConnectionClosed(): string;
|
|
150
|
-
export declare function firefoxRdpClientNoSuitableTargets(): string;
|
|
151
|
-
export declare function firefoxRdpClientPageLoadEventFired(): string;
|
|
152
|
-
export declare function firefoxRdpClientLoadEventTimeout(): string;
|
|
153
|
-
export declare function firefoxRdpClientTestingEvaluation(): string;
|
|
154
|
-
export declare function firefoxRdpClientDocumentTitle(title: string): string;
|
|
155
|
-
export declare function firefoxRdpClientFailedToGetMainHTML(): string;
|
|
156
|
-
export declare function firefoxRdpClientFinalHTMLLength(length: number): string;
|
|
157
|
-
export declare function runningInDevelopment(manifest: any, browser: any, message: {
|
|
158
|
-
data?: any;
|
|
159
|
-
}): string;
|
|
160
|
-
export declare function emptyLine(): string;
|
|
161
|
-
export declare function devChromiumDebugPort(finalPort: number, requestedPort: number): string;
|
|
162
|
-
export declare function devFirefoxDebugPort(finalPort: number, requestedPort: number): string;
|
|
163
|
-
export declare function devFirefoxProfilePath(profilePath: string): string;
|
|
164
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Compilation } from '@rspack/core';
|
|
2
|
-
import { DevOptions } from '../../../develop-lib/config-types';
|
|
3
|
-
export declare function shortInstanceId(instanceId?: string): string;
|
|
4
|
-
export declare function instanceOffsetFromId(instanceId?: string): number;
|
|
5
|
-
export declare function deriveDebugPortWithInstance(optionPort?: number | string, instanceId?: string): number;
|
|
6
|
-
export declare function validateProfilePath(browser: DevOptions['browser'], profilePath: string): void;
|
|
7
|
-
export declare function getDefaultProfilePath(compilationOrPath: Compilation | string | undefined, browser: DevOptions['browser']): string;
|
|
8
|
-
export declare function createProfileDirectory(browser: DevOptions['browser'], profilePath: string, createFn: (tempPath: string) => void): void;
|
|
9
|
-
export declare function isChromiumProfileLocked(baseProfilePath: string): boolean;
|
|
10
|
-
export declare function isFirefoxProfileLocked(baseProfilePath: string): boolean;
|
|
11
|
-
export declare function chooseEffectiveInstanceId(reuseRequested: boolean | undefined, _concurrent: boolean, lockPresent: boolean, instanceId?: string): string | undefined;
|
|
12
|
-
export declare function calculateDebugPort(portFromConfig?: number | string, devServerPort?: number, defaultPort?: number): number;
|
|
13
|
-
export declare function filterBrowserFlags(defaultFlags: string[], excludeFlags?: string[]): string[];
|
|
14
|
-
export declare function mergePreferences(basePrefs: Record<string, any>, userPrefs?: Record<string, any>, customPrefs?: Record<string, any>): Record<string, any>;
|
|
15
|
-
export declare function applyPreferences(profile: any, preferences: Record<string, any>): void;
|
|
16
|
-
export declare function findAvailablePortNear(startPort: number, maxAttempts?: number, host?: string): Promise<number>;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
2
|
-
/**
|
|
3
|
-
* Default browser flags used by extension.js
|
|
4
|
-
* These can be excluded using the excludeBrowserFlags option
|
|
5
|
-
*/
|
|
6
|
-
export type DefaultBrowserFlags =
|
|
7
|
-
/**
|
|
8
|
-
* Disable Chrome's native first run experience
|
|
9
|
-
*/
|
|
10
|
-
'--no-first-run'
|
|
11
|
-
/**
|
|
12
|
-
* Disables client-side phishing detection
|
|
13
|
-
*/
|
|
14
|
-
| '--disable-client-side-phishing-detection'
|
|
15
|
-
/**
|
|
16
|
-
* Disable some built-in extensions that aren't affected by '--disable-extensions'
|
|
17
|
-
*/
|
|
18
|
-
| '--disable-component-extensions-with-background-pages'
|
|
19
|
-
/**
|
|
20
|
-
* Disable installation of default apps
|
|
21
|
-
*/
|
|
22
|
-
| '--disable-default-apps'
|
|
23
|
-
/**
|
|
24
|
-
* Disables the Discover feed on NTP
|
|
25
|
-
*/
|
|
26
|
-
| '--disable-features=InterestFeedContentSuggestions'
|
|
27
|
-
/**
|
|
28
|
-
* Disables Chrome translation
|
|
29
|
-
*/
|
|
30
|
-
| '--disable-features=Translate'
|
|
31
|
-
/**
|
|
32
|
-
* Hide scrollbars from screenshots
|
|
33
|
-
*/
|
|
34
|
-
| '--hide-scrollbars'
|
|
35
|
-
/**
|
|
36
|
-
* Mute all audio in the browser
|
|
37
|
-
*/
|
|
38
|
-
| '--mute-audio'
|
|
39
|
-
/**
|
|
40
|
-
* Disable the default browser check
|
|
41
|
-
*/
|
|
42
|
-
| '--no-default-browser-check'
|
|
43
|
-
/**
|
|
44
|
-
* Avoids blue bubble "user education" nudges
|
|
45
|
-
*/
|
|
46
|
-
| '--ash-no-nudges'
|
|
47
|
-
/**
|
|
48
|
-
* Disable the 2023+ search engine choice screen
|
|
49
|
-
*/
|
|
50
|
-
| '--disable-search-engine-choice-screen'
|
|
51
|
-
/**
|
|
52
|
-
* Disable Chrome Media Router
|
|
53
|
-
*/
|
|
54
|
-
| '--disable-features=MediaRoute'
|
|
55
|
-
/**
|
|
56
|
-
* Use mock keychain on Mac to prevent permissions dialog
|
|
57
|
-
*/
|
|
58
|
-
| '--use-mock-keychain'
|
|
59
|
-
/**
|
|
60
|
-
* Disable various background network services
|
|
61
|
-
*/
|
|
62
|
-
| '--disable-background-networking'
|
|
63
|
-
/**
|
|
64
|
-
* Disable crashdump collection
|
|
65
|
-
*/
|
|
66
|
-
| '--disable-breakpad'
|
|
67
|
-
/**
|
|
68
|
-
* Don't update browser components
|
|
69
|
-
*/
|
|
70
|
-
| '--disable-component-update'
|
|
71
|
-
/**
|
|
72
|
-
* Disable Domain Reliability Monitoring
|
|
73
|
-
*/
|
|
74
|
-
| '--disable-domain-reliability'
|
|
75
|
-
/**
|
|
76
|
-
* Disable autofill server communication
|
|
77
|
-
*/
|
|
78
|
-
| '--disable-features=AutofillServerCommunicatio'
|
|
79
|
-
/**
|
|
80
|
-
* Disable certificate transparency component updates
|
|
81
|
-
*/
|
|
82
|
-
| '--disable-features=CertificateTransparencyComponentUpdate'
|
|
83
|
-
/**
|
|
84
|
-
* Disable syncing to a Google account
|
|
85
|
-
*/
|
|
86
|
-
| '--disable-sync'
|
|
87
|
-
/**
|
|
88
|
-
* Disable the Chrome Optimization Guide
|
|
89
|
-
*/
|
|
90
|
-
| '--disable-features=OptimizationHints'
|
|
91
|
-
/**
|
|
92
|
-
* Disable the MediaRouter feature (lighter version)
|
|
93
|
-
*/
|
|
94
|
-
| '--disable-features=DialMediaRouteProvider'
|
|
95
|
-
/**
|
|
96
|
-
* Don't send hyperlink auditing pings
|
|
97
|
-
*/
|
|
98
|
-
| '--no-pings'
|
|
99
|
-
/**
|
|
100
|
-
* Ensure the side panel is visible for testing
|
|
101
|
-
*/
|
|
102
|
-
| '--enable-features=SidePanelUpdates';
|
|
103
|
-
export interface PluginInterface extends PluginOptions {
|
|
104
|
-
browser: DevOptions['browser'];
|
|
105
|
-
extension: string | string[];
|
|
106
|
-
port?: string | number;
|
|
107
|
-
instanceId?: string;
|
|
108
|
-
source?: string;
|
|
109
|
-
watchSource?: boolean;
|
|
110
|
-
}
|
|
111
|
-
export interface PluginOptions {
|
|
112
|
-
open?: boolean;
|
|
113
|
-
browserFlags?: string[];
|
|
114
|
-
/**
|
|
115
|
-
* Array of browser flags to exclude from the default set
|
|
116
|
-
* @example ['--hide-scrollbars', '--mute-audio']
|
|
117
|
-
*/
|
|
118
|
-
excludeBrowserFlags?: Array<DefaultBrowserFlags | string>;
|
|
119
|
-
profile?: string | false;
|
|
120
|
-
preferences?: Record<string, any>;
|
|
121
|
-
startingUrl?: string;
|
|
122
|
-
browserConsole?: boolean;
|
|
123
|
-
devtools?: boolean;
|
|
124
|
-
chromiumBinary?: string;
|
|
125
|
-
geckoBinary?: string;
|
|
126
|
-
/**
|
|
127
|
-
* When true, reuse a stable profile directory across runs when safe.
|
|
128
|
-
* If another run is detected for the same project+browser, fallback to per-instance profile.
|
|
129
|
-
*/
|
|
130
|
-
reuseProfile?: boolean;
|
|
131
|
-
}
|