extension-develop 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/module.js +121 -102
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -32,9 +32,10 @@ var __webpack_modules__ = {
32
32
  f: ()=>DynamicExtensionManager
33
33
  });
34
34
  var fs_promises__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs/promises");
35
- var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("path");
36
- var crypto__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("crypto");
37
- var _webpack_lib_messages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./webpack/webpack-lib/messages.ts");
35
+ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("fs");
36
+ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("path");
37
+ var crypto__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("crypto");
38
+ var _webpack_lib_messages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./webpack/webpack-lib/messages.ts");
38
39
  function _define_property(obj, key, value) {
39
40
  if (key in obj) Object.defineProperty(obj, key, {
40
41
  value: value,
@@ -47,7 +48,7 @@ var __webpack_modules__ = {
47
48
  }
48
49
  class DynamicExtensionManager {
49
50
  generateExtensionKey() {
50
- const keyData = crypto__WEBPACK_IMPORTED_MODULE_2__.randomBytes(128);
51
+ const keyData = crypto__WEBPACK_IMPORTED_MODULE_3__.randomBytes(128);
51
52
  return keyData.toString('base64');
52
53
  }
53
54
  getBaseExtensionPath(browser) {
@@ -59,17 +60,17 @@ var __webpack_modules__ = {
59
60
  'gecko-based': 'gecko-based-manager-extension'
60
61
  };
61
62
  const extensionName = browserMap[browser] || 'chrome-manager-extension';
62
- return path__WEBPACK_IMPORTED_MODULE_1__.join(this.baseExtensionPath, extensionName);
63
+ return path__WEBPACK_IMPORTED_MODULE_2__.join(this.baseExtensionPath, extensionName);
63
64
  }
64
65
  async readBaseManifest(browser) {
65
66
  const basePath = this.getBaseExtensionPath(browser);
66
- const manifestPath = path__WEBPACK_IMPORTED_MODULE_1__.join(basePath, 'manifest.json');
67
+ const manifestPath = path__WEBPACK_IMPORTED_MODULE_2__.join(basePath, 'manifest.json');
67
68
  const manifestContent = await fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(manifestPath, 'utf-8');
68
69
  return JSON.parse(manifestContent);
69
70
  }
70
71
  async readBaseServiceWorker(browser) {
71
72
  const basePath = this.getBaseExtensionPath(browser);
72
- const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_1__.join(basePath, 'reload-service.js');
73
+ const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_2__.join(basePath, 'reload-service.js');
73
74
  return await fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(serviceWorkerPath, 'utf-8');
74
75
  }
75
76
  async generateExtension(instance) {
@@ -87,14 +88,14 @@ var __webpack_modules__ = {
87
88
  };
88
89
  const serviceWorkerContent = baseServiceWorker.replace(/const\s+port\s*=\s*['"](__RELOAD_PORT__|\d+)['"]/, `const port = '${instance.webSocketPort}'`).replace(/const\s+instanceId\s*=\s*['"](__INSTANCE_ID__|\w+)['"]/, `const instanceId = '${instance.instanceId}'`);
89
90
  const enhancedServiceWorker = `// Instance: ${instanceId}\n// Generated: ${new Date().toISOString()}\n// Cache-buster: ${Date.now()}\n\n${serviceWorkerContent}\n\n// Instance-specific logging\n${'development' === process.env.EXTENSION_ENV ? `console.log('[Extension.js DevTools] Instance ${instanceId} initialized on port ${instance.webSocketPort}');` : ''}\n`;
90
- const extensionPath = path__WEBPACK_IMPORTED_MODULE_1__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
91
+ const extensionPath = path__WEBPACK_IMPORTED_MODULE_2__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
91
92
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.mkdir(extensionPath, {
92
93
  recursive: true
93
94
  });
94
- const manifestPath = path__WEBPACK_IMPORTED_MODULE_1__.join(extensionPath, 'manifest.json');
95
+ const manifestPath = path__WEBPACK_IMPORTED_MODULE_2__.join(extensionPath, 'manifest.json');
95
96
  const manifestContent = JSON.stringify(manifest, null, 2).replace(/__INSTANCE_ID__/g, instance.instanceId);
96
97
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(manifestPath, manifestContent);
97
- const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_1__.join(extensionPath, 'reload-service.js');
98
+ const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_2__.join(extensionPath, 'reload-service.js');
98
99
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(serviceWorkerPath, enhancedServiceWorker);
99
100
  await this.copyExtensionFiles(instance.browser, extensionPath);
100
101
  return {
@@ -111,8 +112,8 @@ var __webpack_modules__ = {
111
112
  withFileTypes: true
112
113
  });
113
114
  for (const entry of entries)if (entry.isDirectory() && 'images' === entry.name) {
114
- const sourceImagesPath = path__WEBPACK_IMPORTED_MODULE_1__.join(basePath, 'images');
115
- const targetImagesPath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetPath, 'images');
115
+ const sourceImagesPath = path__WEBPACK_IMPORTED_MODULE_2__.join(basePath, 'images');
116
+ const targetImagesPath = path__WEBPACK_IMPORTED_MODULE_2__.join(targetPath, 'images');
116
117
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.mkdir(targetImagesPath, {
117
118
  recursive: true
118
119
  });
@@ -120,13 +121,13 @@ var __webpack_modules__ = {
120
121
  withFileTypes: true
121
122
  });
122
123
  for (const imageEntry of imageEntries)if (imageEntry.isFile()) {
123
- const sourceImagePath = path__WEBPACK_IMPORTED_MODULE_1__.join(sourceImagesPath, imageEntry.name);
124
- const targetImagePath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetImagesPath, imageEntry.name);
124
+ const sourceImagePath = path__WEBPACK_IMPORTED_MODULE_2__.join(sourceImagesPath, imageEntry.name);
125
+ const targetImagePath = path__WEBPACK_IMPORTED_MODULE_2__.join(targetImagesPath, imageEntry.name);
125
126
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.copyFile(sourceImagePath, targetImagePath);
126
127
  }
127
128
  } else if (entry.isDirectory() && 'pages' === entry.name) {
128
- const sourcePagesPath = path__WEBPACK_IMPORTED_MODULE_1__.join(basePath, 'pages');
129
- const targetPagesPath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetPath, 'pages');
129
+ const sourcePagesPath = path__WEBPACK_IMPORTED_MODULE_2__.join(basePath, 'pages');
130
+ const targetPagesPath = path__WEBPACK_IMPORTED_MODULE_2__.join(targetPath, 'pages');
130
131
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.mkdir(targetPagesPath, {
131
132
  recursive: true
132
133
  });
@@ -134,17 +135,17 @@ var __webpack_modules__ = {
134
135
  withFileTypes: true
135
136
  });
136
137
  for (const pageEntry of pageEntries)if (pageEntry.isFile()) {
137
- const sourcePagePath = path__WEBPACK_IMPORTED_MODULE_1__.join(sourcePagesPath, pageEntry.name);
138
- const targetPagePath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetPagesPath, pageEntry.name);
138
+ const sourcePagePath = path__WEBPACK_IMPORTED_MODULE_2__.join(sourcePagesPath, pageEntry.name);
139
+ const targetPagePath = path__WEBPACK_IMPORTED_MODULE_2__.join(targetPagesPath, pageEntry.name);
139
140
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.copyFile(sourcePagePath, targetPagePath);
140
141
  }
141
142
  } else if (entry.isFile() && 'manifest.json' !== entry.name && 'reload-service.js' !== entry.name) {
142
- const sourceFilePath = path__WEBPACK_IMPORTED_MODULE_1__.join(basePath, entry.name);
143
- const targetFilePath = path__WEBPACK_IMPORTED_MODULE_1__.join(targetPath, entry.name);
143
+ const sourceFilePath = path__WEBPACK_IMPORTED_MODULE_2__.join(basePath, entry.name);
144
+ const targetFilePath = path__WEBPACK_IMPORTED_MODULE_2__.join(targetPath, entry.name);
144
145
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.copyFile(sourceFilePath, targetFilePath);
145
146
  }
146
147
  } catch (error) {
147
- if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_3__.O3(error));
148
+ if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_4__.O3(error));
148
149
  }
149
150
  }
150
151
  async cleanupExtension(instanceId) {
@@ -152,10 +153,10 @@ var __webpack_modules__ = {
152
153
  const instanceManager = new InstanceManager(this.projectPath);
153
154
  const instance = await instanceManager.getInstance(instanceId);
154
155
  if (!instance) {
155
- if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_3__.ej(instanceId));
156
+ if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_4__.ej(instanceId));
156
157
  return;
157
158
  }
158
- const extensionPath = path__WEBPACK_IMPORTED_MODULE_1__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
159
+ const extensionPath = path__WEBPACK_IMPORTED_MODULE_2__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
159
160
  try {
160
161
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.rm(extensionPath, {
161
162
  recursive: true,
@@ -172,18 +173,18 @@ var __webpack_modules__ = {
172
173
  force: true
173
174
  });
174
175
  } catch (error) {
175
- if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_3__.rH(error));
176
+ if ('development' === process.env.EXTENSION_ENV) console.warn(_webpack_lib_messages__WEBPACK_IMPORTED_MODULE_4__.rH(error));
176
177
  }
177
178
  }
178
179
  getExtensionPath(instanceId) {
179
- return path__WEBPACK_IMPORTED_MODULE_1__.join(this.userExtensionsPath, `manager-port-${instanceId}`);
180
+ return path__WEBPACK_IMPORTED_MODULE_2__.join(this.userExtensionsPath, `manager-port-${instanceId}`);
180
181
  }
181
182
  async extensionExists(instanceId) {
182
183
  const { InstanceManager } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./webpack/plugin-browsers/browsers-lib/instance-manager.ts"));
183
184
  const instanceManager = new InstanceManager(this.projectPath);
184
185
  const instance = await instanceManager.getInstance(instanceId);
185
186
  if (!instance) return false;
186
- const extensionPath = path__WEBPACK_IMPORTED_MODULE_1__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
187
+ const extensionPath = path__WEBPACK_IMPORTED_MODULE_2__.join(this.userExtensionsPath, `${instance.browser}-manager-${instance.port}`);
187
188
  try {
188
189
  await fs_promises__WEBPACK_IMPORTED_MODULE_0__.access(extensionPath);
189
190
  return true;
@@ -195,7 +196,7 @@ var __webpack_modules__ = {
195
196
  const exists = await this.extensionExists(instance.instanceId);
196
197
  if (!exists) return await this.generateExtension(instance);
197
198
  const extensionPath = this.getExtensionPath(instance.instanceId);
198
- const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_1__.join(extensionPath, 'reload-service.js');
199
+ const serviceWorkerPath = path__WEBPACK_IMPORTED_MODULE_2__.join(extensionPath, 'reload-service.js');
199
200
  try {
200
201
  const content = await fs_promises__WEBPACK_IMPORTED_MODULE_0__.readFile(serviceWorkerPath, 'utf-8');
201
202
  const portMatch = content.match(/const\s+port\s*=\s*['"](\d+)['"]/);
@@ -211,7 +212,7 @@ var __webpack_modules__ = {
211
212
  return {
212
213
  extensionId: instance.managerExtensionId,
213
214
  manifest,
214
- serviceWorkerPath: path__WEBPACK_IMPORTED_MODULE_1__.join(extensionPath, 'reload-service.js'),
215
+ serviceWorkerPath: path__WEBPACK_IMPORTED_MODULE_2__.join(extensionPath, 'reload-service.js'),
215
216
  extensionPath
216
217
  };
217
218
  }
@@ -219,9 +220,27 @@ var __webpack_modules__ = {
219
220
  _define_property(this, "baseExtensionPath", void 0);
220
221
  _define_property(this, "projectPath", void 0);
221
222
  _define_property(this, "userExtensionsPath", void 0);
222
- this.baseExtensionPath = path__WEBPACK_IMPORTED_MODULE_1__.join(__dirname, '../webpack/plugin-reload/extensions');
223
+ const candidateBasePaths = [];
224
+ try {
225
+ const entryPath = require.resolve('extension-develop');
226
+ const distDir = path__WEBPACK_IMPORTED_MODULE_2__.dirname(entryPath);
227
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(distDir, 'extensions'));
228
+ } catch {}
229
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(__dirname, 'extensions'));
230
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(__dirname, 'dist', 'extensions'));
231
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(__dirname, 'programs', 'develop', 'dist', 'extensions'));
232
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(process.cwd(), 'node_modules', 'extension-develop', 'dist', 'extensions'));
233
+ candidateBasePaths.push(path__WEBPACK_IMPORTED_MODULE_2__.join(__dirname, '..', '..', 'plugin-reload', 'extensions'));
234
+ let resolvedBasePath = candidateBasePaths[0];
235
+ for (const candidate of candidateBasePaths)try {
236
+ if (fs__WEBPACK_IMPORTED_MODULE_1__.existsSync(candidate)) {
237
+ resolvedBasePath = candidate;
238
+ break;
239
+ }
240
+ } catch {}
241
+ this.baseExtensionPath = resolvedBasePath;
223
242
  this.projectPath = projectPath || process.cwd();
224
- this.userExtensionsPath = path__WEBPACK_IMPORTED_MODULE_1__.join(this.projectPath, 'dist', 'extension-js', 'extensions');
243
+ this.userExtensionsPath = path__WEBPACK_IMPORTED_MODULE_2__.join(this.projectPath, 'dist', 'extension-js', 'extensions');
225
244
  }
226
245
  }
227
246
  },
@@ -3055,28 +3074,28 @@ var __webpack_modules__ = {
3055
3074
  yz: ()=>portManagerErrorAllocatingPorts,
3056
3075
  zd: ()=>instanceManagerHealthMonitoringOrphaned
3057
3076
  });
3058
- var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("path");
3059
- var pintor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("pintor");
3060
- var pintor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(pintor__WEBPACK_IMPORTED_MODULE_1__);
3077
+ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("path");
3078
+ var pintor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("pintor");
3079
+ var pintor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(pintor__WEBPACK_IMPORTED_MODULE_0__);
3061
3080
  var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./webpack/webpack-lib/constants.ts");
3062
3081
  function getLoggingPrefix(feature, type) {
3063
- if ('error' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('ERROR')} ${feature}`;
3064
- if ('warn' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightYellow("\u25BA\u25BA\u25BA")} ${feature}`;
3065
- const arrow = 'info' === type ? pintor__WEBPACK_IMPORTED_MODULE_1___default().blue("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_1___default().green("\u25BA\u25BA\u25BA");
3082
+ if ('error' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('ERROR')} ${feature}`;
3083
+ if ('warn' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightYellow("\u25BA\u25BA\u25BA")} ${feature}`;
3084
+ const arrow = 'info' === type ? pintor__WEBPACK_IMPORTED_MODULE_0___default().blue("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_0___default().green("\u25BA\u25BA\u25BA");
3066
3085
  return `${arrow} ${feature}`;
3067
3086
  }
3068
3087
  function boring(manifestName, duration, stats) {
3069
3088
  let didShow = false;
3070
3089
  if (!didShow) {
3071
- const arrow = stats.hasErrors() ? pintor__WEBPACK_IMPORTED_MODULE_1___default().red("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_1___default().blue("\u25BA\u25BA\u25BA");
3072
- return `${arrow} ${manifestName} compiled ${stats.hasErrors() ? pintor__WEBPACK_IMPORTED_MODULE_1___default().red('with errors') : pintor__WEBPACK_IMPORTED_MODULE_1___default().green('successfully')} in ${duration} ms.`;
3090
+ const arrow = stats.hasErrors() ? pintor__WEBPACK_IMPORTED_MODULE_0___default().red("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_0___default().blue("\u25BA\u25BA\u25BA");
3091
+ return `${arrow} ${manifestName} compiled ${stats.hasErrors() ? pintor__WEBPACK_IMPORTED_MODULE_0___default().red('with errors') : pintor__WEBPACK_IMPORTED_MODULE_0___default().green('successfully')} in ${duration} ms.`;
3073
3092
  }
3074
3093
  }
3075
3094
  function integrationNotInstalled(integration, packageManager) {
3076
- return `${getLoggingPrefix(integration, 'info')} Using ${integration}. Installing required dependencies via ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(packageManager)}...`;
3095
+ return `${getLoggingPrefix(integration, 'info')} Using ${integration}. Installing required dependencies via ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(packageManager)}...`;
3077
3096
  }
3078
3097
  function isUsingIntegration(integration) {
3079
- return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().blue("\u25BA\u25BA\u25BA")} Using ${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightBlue(integration)}...`;
3098
+ return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue("\u25BA\u25BA\u25BA")} Using ${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightBlue(integration)}...`;
3080
3099
  }
3081
3100
  function youAreAllSet(integration) {
3082
3101
  return `${getLoggingPrefix(integration, 'success')} installation completed. Run the program again and happy hacking.`;
@@ -3085,14 +3104,14 @@ var __webpack_modules__ = {
3085
3104
  return `${getLoggingPrefix(integration, 'info')} dependencies are being installed. This only happens for core contributors...`;
3086
3105
  }
3087
3106
  function integrationInstalledSuccessfully(integration) {
3088
- return `${getLoggingPrefix(integration, 'success')} dependencies installed ${pintor__WEBPACK_IMPORTED_MODULE_1___default().green('successfully')}.`;
3107
+ return `${getLoggingPrefix(integration, 'success')} dependencies installed ${pintor__WEBPACK_IMPORTED_MODULE_0___default().green('successfully')}.`;
3089
3108
  }
3090
3109
  function failedToInstallIntegration(integration, error) {
3091
- return `${getLoggingPrefix('Integration', 'error')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(integration)} Installation Error\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('Failed to detect package manager or install dependencies.')}\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error ?? ''))}`;
3110
+ return `${getLoggingPrefix('Integration', 'error')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(integration)} Installation Error\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('Failed to detect package manager or install dependencies.')}\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error ?? ''))}`;
3092
3111
  }
3093
3112
  function fileNotFound(errorSourcePath, missingFilePath) {
3094
3113
  if (!errorSourcePath) throw new Error('This operation is impossible. Please report a bug.');
3095
- switch(path__WEBPACK_IMPORTED_MODULE_0__.extname(missingFilePath)){
3114
+ switch(path__WEBPACK_IMPORTED_MODULE_1__.extname(missingFilePath)){
3096
3115
  case '.js':
3097
3116
  case '.ts':
3098
3117
  case '.jsx':
@@ -3112,99 +3131,99 @@ var __webpack_modules__ = {
3112
3131
  const contentIndex = manifestField.split('-')[1];
3113
3132
  const isPage = manifestField.startsWith('pages');
3114
3133
  const field = manifestName.includes("content_scripts") ? `(index ${contentIndex})\n\n` : manifestFieldName;
3115
- return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\n\n${isPage ? `Check the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('pages')} folder in your project root directory.\n\n` : `Check the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(field)} field in your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file.\n\n`}${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(filePath)}`;
3134
+ return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\n\n${isPage ? `Check the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('pages')} folder in your project root directory.\n\n` : `Check the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(field)} field in your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file.\n\n`}${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(filePath)}`;
3116
3135
  }
3117
3136
  function entryNotFoundWarn(manifestField, filePath) {
3118
- return `File Not Found\n\nCheck the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(manifestField)} field in your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file.\n\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(filePath)}`;
3137
+ return `File Not Found\n\nCheck the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(manifestField)} field in your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file.\n\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(filePath)}`;
3119
3138
  }
3120
3139
  function manifestInvalidError(error) {
3121
- return `${getLoggingPrefix('manifest.json', 'error')} Invalid Manifest\n\nUpdate your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file and try again.\n\n` + pintor__WEBPACK_IMPORTED_MODULE_1___default().red(error.toString());
3140
+ return `${getLoggingPrefix('manifest.json', 'error')} Invalid Manifest\n\nUpdate your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file and try again.\n\n` + pintor__WEBPACK_IMPORTED_MODULE_0___default().red(error.toString());
3122
3141
  }
3123
3142
  function serverRestartRequiredFromManifestError(fileAdded, fileRemoved) {
3124
- const fileRemovedText = fileRemoved ? `${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('REMOVED')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(fileRemoved)}\n` : '';
3125
- const fileAddedText = fileAdded ? `${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().green('ADDED')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(fileAdded)}` : '';
3143
+ const fileRemovedText = fileRemoved ? `${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('REMOVED')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(fileRemoved)}\n` : '';
3144
+ const fileAddedText = fileAdded ? `${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().green('ADDED')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(fileAdded)}` : '';
3126
3145
  return `${getLoggingPrefix('manifest.json', 'error')} Manifest Entry Point Modification\nChanging the path of HTML or script files in manifest.json after compilation requires a server restart.\n` + fileRemovedText + fileAddedText;
3127
3146
  }
3128
3147
  function serverRestartRequiredFromSpecialFolderError(addingOrRemoving, folder, typeOfAsset, pathRelative) {
3129
- return `${getLoggingPrefix('manifest.json', 'error')} Manifest Entry Point Modification\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(pathRelative)} in the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(folder + '/')} folder after compilation requires a server restart.`;
3148
+ return `${getLoggingPrefix('manifest.json', 'error')} Manifest Entry Point Modification\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(pathRelative)} in the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(folder + '/')} folder after compilation requires a server restart.`;
3130
3149
  }
3131
3150
  function manifestNotFoundError(manifestName, manifestPath) {
3132
- return `${getLoggingPrefix('manifest.json', 'error')} Manifest Not Found\n\nEnsure you have a ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file at the root directory of your project.\n\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(manifestPath)}`;
3151
+ return `${getLoggingPrefix('manifest.json', 'error')} Manifest Not Found\n\nEnsure you have a ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file at the root directory of your project.\n\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(manifestPath)}`;
3133
3152
  }
3134
3153
  function creatingTSConfig() {
3135
- return `${getLoggingPrefix('TypeScript', 'info')} is being used but no config file was found. Creating ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('tsconfig.json')}...`;
3154
+ return `${getLoggingPrefix('TypeScript', 'info')} is being used but no config file was found. Creating ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('tsconfig.json')}...`;
3136
3155
  }
3137
3156
  function backgroundIsRequired(backgroundChunkName, filePath) {
3138
- return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\nCheck the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(backgroundChunkName.replace('/', '.'))} field in your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(filePath)}`;
3157
+ return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\nCheck the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(backgroundChunkName.replace('/', '.'))} field in your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(filePath)}`;
3139
3158
  }
3140
3159
  function serverRestartRequiredFromHtml(filePath) {
3141
- return `${getLoggingPrefix('HTML', 'warn')} Entrypoint Change\nDetected changes to ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow("<script>")} or ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('<link rel="stylesheet">')} references in HTML. The extension will undergo a full recompilation and a reload.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(filePath)}`;
3160
+ return `${getLoggingPrefix('HTML', 'warn')} Entrypoint Change\nDetected changes to ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow("<script>")} or ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('<link rel="stylesheet">')} references in HTML. The extension will undergo a full recompilation and a reload.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('PATH')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(filePath)}`;
3142
3161
  }
3143
3162
  function javaScriptError(errorSourcePath, missingFilePath) {
3144
- return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow("<script>")} tags in ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(missingFilePath)}`;
3163
+ return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow("<script>")} tags in ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(missingFilePath)}`;
3145
3164
  }
3146
3165
  function cssError(errorSourcePath, missingFilePath) {
3147
- return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('<link>')} tags in ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(missingFilePath)}`;
3166
+ return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('<link>')} tags in ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(missingFilePath)}`;
3148
3167
  }
3149
3168
  function staticAssetError(errorSourcePath, missingFilePath) {
3150
- const extname = path__WEBPACK_IMPORTED_MODULE_0__.extname(missingFilePath);
3151
- return `${getLoggingPrefix('HTML', 'warn')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('*' + extname)} assets in ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(missingFilePath)}`;
3169
+ const extname = path__WEBPACK_IMPORTED_MODULE_1__.extname(missingFilePath);
3170
+ return `${getLoggingPrefix('HTML', 'warn')} File Not Found\nCheck your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('*' + extname)} assets in ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(errorSourcePath)}.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('NOT FOUND')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(missingFilePath)}`;
3152
3171
  }
3153
3172
  function certRequired() {
3154
- return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('Note')}: Firefox requires a secure certificate for localhost connections, needed for the reloader to work.\nBy default, your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('manifest.json')} file is not being watched. To enable this feature, run:\n\n npx -y ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('mkcert-cli')} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_1___default().blue('--outDir')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(_constants__WEBPACK_IMPORTED_MODULE_2__.KI)} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_1___default().blue('--cert')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('localhost.cert')} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_1___default().blue('--key')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('localhost.key')}\n\nThis will enable the secure certificate needed for Firefox via ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('mkcert')}.\n\nLearn more about ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('mkcert')}: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline('https://github.com/FiloSottile/mkcert')}`;
3173
+ return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('Note')}: Firefox requires a secure certificate for localhost connections, needed for the reloader to work.\nBy default, your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('manifest.json')} file is not being watched. To enable this feature, run:\n\n npx -y ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('mkcert-cli')} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue('--outDir')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(_constants__WEBPACK_IMPORTED_MODULE_2__.KI)} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue('--cert')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('localhost.cert')} \\\n ${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue('--key')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('localhost.key')}\n\nThis will enable the secure certificate needed for Firefox via ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('mkcert')}.\n\nLearn more about ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('mkcert')}: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline('https://github.com/FiloSottile/mkcert')}`;
3155
3174
  }
3156
3175
  function defaultPortInUse(port) {
3157
- return `${getLoggingPrefix('Port', 'error')} Selected port ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(port.toString())} in use. Choose a new port. `;
3176
+ return `${getLoggingPrefix('Port', 'error')} Selected port ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())} in use. Choose a new port. `;
3158
3177
  }
3159
3178
  function portInUse(requestedPort, newPort) {
3160
- return `${getLoggingPrefix('Port', 'warn')} Requested port ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(requestedPort.toString())} is in use; using ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(newPort.toString())} instead.`;
3179
+ return `${getLoggingPrefix('Port', 'warn')} Requested port ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(requestedPort.toString())} is in use; using ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(newPort.toString())} instead.`;
3161
3180
  }
3162
3181
  function noExtensionIdError() {
3163
- return `${getLoggingPrefix('manifest.json', 'error')} Extension ID Not Defined\nFor MAIN world content_scripts, the extension ID must be specified.\nEnsure your extension have a fixed ID and that the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('publicPath')}\nof your ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow('extension.config.js')} is defined as your extension URL.`;
3182
+ return `${getLoggingPrefix('manifest.json', 'error')} Extension ID Not Defined\nFor MAIN world content_scripts, the extension ID must be specified.\nEnsure your extension have a fixed ID and that the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('publicPath')}\nof your ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('extension.config.js')} is defined as your extension URL.`;
3164
3183
  }
3165
3184
  function isUsingCustomLoader(file) {
3166
3185
  const loaderName = file.split('.').shift() || 'custom';
3167
3186
  const capitalizedLoaderName = loaderName.charAt(0).toUpperCase() + loaderName.slice(1);
3168
- return `${getLoggingPrefix(capitalizedLoaderName, 'info')} Using custom loader configuration from ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(file)}`;
3187
+ return `${getLoggingPrefix(capitalizedLoaderName, 'info')} Using custom loader configuration from ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(file)}`;
3169
3188
  }
3170
3189
  function webextensionPolyfillNotFound() {
3171
- return `${getLoggingPrefix('Warning', 'warn')} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('webextension-polyfill')} not found. Browser API polyfill will not be available.\nTo fix this, install ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('webextension-polyfill')}: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().blue('npm install webextension-polyfill')}`;
3190
+ return `${getLoggingPrefix('Warning', 'warn')} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('webextension-polyfill')} not found. Browser API polyfill will not be available.\nTo fix this, install ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('webextension-polyfill')}: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue('npm install webextension-polyfill')}`;
3172
3191
  }
3173
3192
  function registrySaved(registryPath) {
3174
- return `${getLoggingPrefix('Instance Manager', 'info')} registry saved to: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(registryPath)}`;
3193
+ return `${getLoggingPrefix('Instance Manager', 'info')} registry saved to: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(registryPath)}`;
3175
3194
  }
3176
3195
  function registrySaveError(error) {
3177
- return `${getLoggingPrefix('Instance Manager', 'error')} error saving registry:\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3196
+ return `${getLoggingPrefix('Instance Manager', 'error')} error saving registry:\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3178
3197
  }
3179
3198
  function smartPortAllocationExistingPorts(usedPorts) {
3180
- return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing ports: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(JSON.stringify(usedPorts))}`;
3199
+ return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing ports: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(usedPorts))}`;
3181
3200
  }
3182
3201
  function smartPortAllocationExistingWebSocketPorts(usedWebSocketPorts) {
3183
- return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing WebSocket ports: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(JSON.stringify(usedWebSocketPorts))}`;
3202
+ return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing WebSocket ports: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(usedWebSocketPorts))}`;
3184
3203
  }
3185
3204
  function smartPortAllocationUsingRequestedPort(port, webSocketPort) {
3186
- return `${getLoggingPrefix('Smart Port Allocation', 'info')} using requested port ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(port.toString())}; WebSocket ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(webSocketPort.toString())}`;
3205
+ return `${getLoggingPrefix('Smart Port Allocation', 'info')} using requested port ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())}; WebSocket ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(webSocketPort.toString())}`;
3187
3206
  }
3188
3207
  function smartPortAllocationRequestedPortUnavailable(port) {
3189
- return `${getLoggingPrefix('Smart Port Allocation', 'warn')} requested port is unavailable: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(port.toString())}`;
3208
+ return `${getLoggingPrefix('Smart Port Allocation', 'warn')} requested port is unavailable: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())}`;
3190
3209
  }
3191
3210
  function smartPortAllocationAllocatedPorts(port, webSocketPort) {
3192
- return `${getLoggingPrefix('Smart Port Allocation', 'success')} allocated ports ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(port.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(port)')} and ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(webSocketPort.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(WebSocket)')}`;
3211
+ return `${getLoggingPrefix('Smart Port Allocation', 'success')} allocated ports ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(port)')} and ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(webSocketPort.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(WebSocket)')}`;
3193
3212
  }
3194
3213
  function instanceManagerCreateInstanceCalled(params) {
3195
- return `${getLoggingPrefix('Instance Manager', 'info')} createInstance called ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(JSON.stringify(params))}`;
3214
+ return `${getLoggingPrefix('Instance Manager', 'info')} createInstance called ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(params))}`;
3196
3215
  }
3197
3216
  function instanceManagerRegistryAfterCreateInstance(registry) {
3198
- return `${getLoggingPrefix('Instance Manager', 'info')} registry after createInstance: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(JSON.stringify(registry))}`;
3217
+ return `${getLoggingPrefix('Instance Manager', 'info')} registry after createInstance: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(registry))}`;
3199
3218
  }
3200
3219
  function extensionManagerCopyFilesWarning(error) {
3201
- return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not copy extension files: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(String(error))}`;
3220
+ return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not copy extension files: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(String(error))}`;
3202
3221
  }
3203
3222
  function extensionManagerInstanceNotFoundWarning(instanceId) {
3204
- return `${getLoggingPrefix('Extension.js DevTools', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(instanceId)} not found for cleanup`;
3223
+ return `${getLoggingPrefix('Extension.js DevTools', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(instanceId)} not found for cleanup`;
3205
3224
  }
3206
3225
  function extensionManagerCleanupWarning(error) {
3207
- return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not cleanup temp extensions: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().yellow(String(error))}`;
3226
+ return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not cleanup temp extensions: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(String(error))}`;
3208
3227
  }
3209
3228
  function firefoxDetectedFlatpak() {
3210
3229
  return `${getLoggingPrefix('Firefox Detector', 'info')} detected a Flatpak Firefox installation`;
@@ -3213,88 +3232,88 @@ var __webpack_modules__ = {
3213
3232
  return `${getLoggingPrefix('Firefox Detector', 'info')} detected a Snap Firefox installation`;
3214
3233
  }
3215
3234
  function firefoxDetectedTraditional(firefoxPath) {
3216
- return `${getLoggingPrefix('Firefox Detector', 'info')} detected traditional Firefox at: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(firefoxPath)}`;
3235
+ return `${getLoggingPrefix('Firefox Detector', 'info')} detected traditional Firefox at: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(firefoxPath)}`;
3217
3236
  }
3218
3237
  function firefoxDetectedCustom(firefoxPath) {
3219
- return `${getLoggingPrefix('Firefox Detector', 'info')} detected custom Firefox build at: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(firefoxPath)}`;
3238
+ return `${getLoggingPrefix('Firefox Detector', 'info')} detected custom Firefox build at: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(firefoxPath)}`;
3220
3239
  }
3221
3240
  function firefoxUsingFlatpakWithSandbox() {
3222
3241
  return `${getLoggingPrefix('Firefox Detector', 'info')} using Flatpak Firefox with sandbox permissions`;
3223
3242
  }
3224
3243
  function firefoxVersion(version) {
3225
- return `${getLoggingPrefix('Firefox Detector', 'info')} Firefox version is: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(version)}`;
3244
+ return `${getLoggingPrefix('Firefox Detector', 'info')} Firefox version is: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(version)}`;
3226
3245
  }
3227
3246
  function portManagerErrorAllocatingPorts(error) {
3228
- return `${getLoggingPrefix('Port Manager', 'error')} Failed to allocate ports.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3247
+ return `${getLoggingPrefix('Port Manager', 'error')} Failed to allocate ports.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3229
3248
  }
3230
3249
  function browserPluginFailedToLoad(browser, error) {
3231
- return `${getLoggingPrefix('Browser Plugin', 'error')} Failed to load the ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(browser)} plugin.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3250
+ return `${getLoggingPrefix('Browser Plugin', 'error')} Failed to load the ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(browser)} plugin.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3232
3251
  }
3233
3252
  function extensionJsRunnerError(error) {
3234
- return `${getLoggingPrefix('Extension.js Runner', 'error')} Error in the Extension.js runner.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3253
+ return `${getLoggingPrefix('Extension.js Runner', 'error')} Error in the Extension.js runner.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3235
3254
  }
3236
3255
  function extensionJsRunnerCleanupError(error) {
3237
- return `${getLoggingPrefix('Extension.js Runner', 'error')} Error during cleanup.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3256
+ return `${getLoggingPrefix('Extension.js Runner', 'error')} Error during cleanup.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3238
3257
  }
3239
3258
  function extensionJsRunnerUncaughtException(error) {
3240
- return `${getLoggingPrefix('Extension.js Runner', 'error')} Uncaught exception.\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3259
+ return `${getLoggingPrefix('Extension.js Runner', 'error')} Uncaught exception.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3241
3260
  }
3242
3261
  function extensionJsRunnerUnhandledRejection(promise, reason) {
3243
- return `${getLoggingPrefix('Extension.js Runner', 'error')} unhandled rejection at: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(promise.toString())} reason: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(reason))}`;
3262
+ return `${getLoggingPrefix('Extension.js Runner', 'error')} unhandled rejection at: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(promise.toString())} reason: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(reason))}`;
3244
3263
  }
3245
3264
  function autoExitModeEnabled(ms) {
3246
- return `${getLoggingPrefix('Auto Mode', 'info')} is enabled. The program will exit automatically after ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(' + ms.toString() + 'ms)')}.`;
3265
+ return `${getLoggingPrefix('Auto Mode', 'info')} is enabled. The program will exit automatically after ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}.`;
3247
3266
  }
3248
3267
  function autoExitTriggered(ms) {
3249
- return `${getLoggingPrefix('Auto Mode', 'warn')} timer has elapsed ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(' + ms.toString() + 'ms)')}. Cleaning up\u{2026}`;
3268
+ return `${getLoggingPrefix('Auto Mode', 'warn')} timer has elapsed ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}. Cleaning up\u{2026}`;
3250
3269
  }
3251
3270
  function autoExitForceKill(ms) {
3252
- return `${getLoggingPrefix('Auto Mode', 'error')} is force-killing the process after the fallback ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(' + ms.toString() + 'ms)')}.`;
3271
+ return `${getLoggingPrefix('Auto Mode', 'error')} is force-killing the process after the fallback ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}.`;
3253
3272
  }
3254
3273
  function instanceManagerHealthMonitoringStart(instanceId) {
3255
- return `${getLoggingPrefix('Instance Manager', 'info')} starting health monitoring for instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))}`;
3274
+ return `${getLoggingPrefix('Instance Manager', 'info')} starting health monitoring for instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}`;
3256
3275
  }
3257
3276
  function instanceManagerHealthMonitoringPassed(instanceId) {
3258
- return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))} health check passed`;
3277
+ return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} health check passed`;
3259
3278
  }
3260
3279
  function instanceManagerHealthMonitoringOrphaned(instanceId) {
3261
- return `${getLoggingPrefix('Instance Manager', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))} appears orphaned, cleaning up`;
3280
+ return `${getLoggingPrefix('Instance Manager', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} appears orphaned, cleaning up`;
3262
3281
  }
3263
3282
  function instanceManagerHealthMonitoringFailed(instanceId, error) {
3264
- return `${getLoggingPrefix('Instance Manager', 'error')} health check failed for instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))}:\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3283
+ return `${getLoggingPrefix('Instance Manager', 'error')} health check failed for instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}:\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3265
3284
  }
3266
3285
  function instanceManagerForceCleanupProject(projectPath) {
3267
- return `${getLoggingPrefix('Instance Manager', 'info')} force cleaning up all processes for project: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().underline(projectPath)}`;
3286
+ return `${getLoggingPrefix('Instance Manager', 'info')} force cleaning up all processes for project: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(projectPath)}`;
3268
3287
  }
3269
3288
  function instanceManagerForceCleanupFound(instanceCount) {
3270
- return `${getLoggingPrefix('Instance Manager', 'info')} found ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceCount.toString())} instances to clean up`;
3289
+ return `${getLoggingPrefix('Instance Manager', 'info')} found ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceCount.toString())} instances to clean up`;
3271
3290
  }
3272
3291
  function instanceManagerForceCleanupInstance(instanceId) {
3273
- return `${getLoggingPrefix('Instance Manager', 'info')} cleaning up instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))}`;
3292
+ return `${getLoggingPrefix('Instance Manager', 'info')} cleaning up instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}`;
3274
3293
  }
3275
3294
  function instanceManagerForceCleanupTerminating(processId) {
3276
- return `${getLoggingPrefix('Instance Manager', 'info')} terminating process ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(processId.toString())}`;
3295
+ return `${getLoggingPrefix('Instance Manager', 'info')} terminating process ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(processId.toString())}`;
3277
3296
  }
3278
3297
  function instanceManagerForceCleanupForceKilled(processId) {
3279
- return `${getLoggingPrefix('Instance Manager', 'error')} force killed process ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(processId.toString())}`;
3298
+ return `${getLoggingPrefix('Instance Manager', 'error')} force killed process ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(processId.toString())}`;
3280
3299
  }
3281
3300
  function instanceManagerForceCleanupInstanceTerminated(instanceId) {
3282
- return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))} marked as terminated`;
3301
+ return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} marked as terminated`;
3283
3302
  }
3284
3303
  function instanceManagerForceCleanupError(instanceId, error) {
3285
- return `${getLoggingPrefix('Instance Manager', 'error')} error terminating instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId)}:\n${pintor__WEBPACK_IMPORTED_MODULE_1___default().red(String(error))}`;
3304
+ return `${getLoggingPrefix('Instance Manager', 'error')} error terminating instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId)}:\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
3286
3305
  }
3287
3306
  function instanceManagerForceCleanupComplete() {
3288
3307
  return `${getLoggingPrefix('Instance Manager', 'success')} project cleanup completed`;
3289
3308
  }
3290
3309
  function instanceManagerProcessNoLongerRunning(instanceId, processId) {
3291
- return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta('Instance Manager')} process ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(processId.toString())} for instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))} is no longer running`;
3310
+ return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta('Instance Manager')} process ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(processId.toString())} for instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} is no longer running`;
3292
3311
  }
3293
3312
  function instanceManagerPortsNotInUse(instanceId, port, webSocketPort) {
3294
- return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta('Instance Manager')} ports ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(port.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(')}${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('port')}${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(')')}/${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(webSocketPort.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('(')}${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray('WebSocket')}${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(')')} for instance ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))} are not in use`;
3313
+ return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta('Instance Manager')} ports ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(')}${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('port')}${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(')')}/${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(webSocketPort.toString())} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(')}${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('WebSocket')}${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(')')} for instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} are not in use`;
3295
3314
  }
3296
3315
  function instanceManagerCleanedUpOrphanedInstance(instanceId) {
3297
- return `${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_1___default().brightMagenta('Instance Manager')} cleaned up orphaned instance: ${pintor__WEBPACK_IMPORTED_MODULE_1___default().gray(instanceId.slice(0, 8))}`;
3316
+ return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta("\u25BA\u25BA\u25BA")} ${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightMagenta('Instance Manager')} cleaned up orphaned instance: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}`;
3298
3317
  }
3299
3318
  },
3300
3319
  child_process: function(module) {
@@ -3325,7 +3344,7 @@ var __webpack_modules__ = {
3325
3344
  module.exports = require("util");
3326
3345
  },
3327
3346
  "./package.json": function(module) {
3328
- module.exports = JSON.parse('{"i8":"2.0.3","HO":{"@rspack/core":"^1.4.8","@rspack/dev-server":"^1.1.3","@swc/helpers":"^0.5.15","@types/webextension-polyfill":"0.12.3","@vue/compiler-sfc":"^3.5.13","adm-zip":"^0.5.16","axios":"^1.9.0","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","dotenv-webpack":"^8.1.0","edge-location":"^1.1.1","firefox-location2":"1.0.0","firefox-profile":"^4.7.0","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","locate-path":"^7.2.0","micromatch":"^4.0.8","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","postcss":"^8.4.49","preact":"^10.22.0","progress":"^2.0.3","schema-utils":"^4.2.0","slugify":"^1.6.6","tiny-glob":"^0.2.9","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.18.0"},"Lq":{"@prefresh/core":"^1.5.2","@prefresh/utils":"^1.2.0","@prefresh/webpack":"^4.0.1","@rspack/plugin-preact-refresh":"^1.1.2","@rspack/plugin-react-refresh":"^1.0.1","babel-loader":"^9.2.1","less-loader":"^12.2.0","postcss-loader":"^8.1.1","postcss-preset-env":"^10.1.1","react-refresh":"^0.14.2","sass-loader":"^16.0.4","svelte-loader":"^3.2.4","vue-loader":"^17.4.2","vue-style-loader":"^4.1.3"}}');
3347
+ module.exports = JSON.parse('{"i8":"2.0.4","HO":{"@rspack/core":"^1.4.8","@rspack/dev-server":"^1.1.3","@swc/helpers":"^0.5.15","@types/webextension-polyfill":"0.12.3","@vue/compiler-sfc":"^3.5.13","adm-zip":"^0.5.16","axios":"^1.9.0","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","dotenv-webpack":"^8.1.0","edge-location":"^1.1.1","firefox-location2":"1.0.0","firefox-profile":"^4.7.0","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","locate-path":"^7.2.0","micromatch":"^4.0.8","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","postcss":"^8.4.49","preact":"^10.22.0","progress":"^2.0.3","schema-utils":"^4.2.0","slugify":"^1.6.6","tiny-glob":"^0.2.9","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.18.0"},"Lq":{"@prefresh/core":"^1.5.2","@prefresh/utils":"^1.2.0","@prefresh/webpack":"^4.0.1","@rspack/plugin-preact-refresh":"^1.1.2","@rspack/plugin-react-refresh":"^1.0.1","babel-loader":"^9.2.1","less-loader":"^12.2.0","postcss-loader":"^8.1.1","postcss-preset-env":"^10.1.1","react-refresh":"^0.14.2","sass-loader":"^16.0.4","svelte-loader":"^3.2.4","vue-loader":"^17.4.2","vue-style-loader":"^4.1.3"}}');
3329
3348
  }
3330
3349
  };
3331
3350
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "name": "extension-develop",
24
- "version": "2.0.3",
24
+ "version": "2.0.4",
25
25
  "description": "The develop step of Extension.js",
26
26
  "author": {
27
27
  "name": "Cezar Augusto",