extension-develop 0.0.0-next-20250827161129 → 0.0.0-next-20250827162326
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/dist/module.js +71 -71
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -3167,28 +3167,28 @@ var __webpack_modules__ = {
|
|
|
3167
3167
|
yz: ()=>portManagerErrorAllocatingPorts,
|
|
3168
3168
|
zd: ()=>instanceManagerHealthMonitoringOrphaned
|
|
3169
3169
|
});
|
|
3170
|
-
var
|
|
3171
|
-
var
|
|
3172
|
-
var
|
|
3170
|
+
var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("path");
|
|
3171
|
+
var pintor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("pintor");
|
|
3172
|
+
var pintor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(pintor__WEBPACK_IMPORTED_MODULE_0__);
|
|
3173
3173
|
var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./webpack/webpack-lib/constants.ts");
|
|
3174
3174
|
function getLoggingPrefix(feature, type) {
|
|
3175
|
-
if ('error' === type) return `${
|
|
3176
|
-
if ('warn' === type) return `${
|
|
3177
|
-
const arrow = 'info' === type ?
|
|
3175
|
+
if ('error' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().red('ERROR')} ${feature}`;
|
|
3176
|
+
if ('warn' === type) return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightYellow("\u25BA\u25BA\u25BA")} ${feature}`;
|
|
3177
|
+
const arrow = 'info' === type ? pintor__WEBPACK_IMPORTED_MODULE_0___default().blue("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_0___default().green("\u25BA\u25BA\u25BA");
|
|
3178
3178
|
return `${arrow} ${feature}`;
|
|
3179
3179
|
}
|
|
3180
3180
|
function boring(manifestName, duration, stats) {
|
|
3181
3181
|
let didShow = false;
|
|
3182
3182
|
if (!didShow) {
|
|
3183
|
-
const arrow = stats.hasErrors() ?
|
|
3184
|
-
return `${arrow} ${manifestName} compiled ${stats.hasErrors() ?
|
|
3183
|
+
const arrow = stats.hasErrors() ? pintor__WEBPACK_IMPORTED_MODULE_0___default().red("\u25BA\u25BA\u25BA") : pintor__WEBPACK_IMPORTED_MODULE_0___default().green("\u25BA\u25BA\u25BA");
|
|
3184
|
+
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.`;
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
3187
|
function integrationNotInstalled(integration, packageManager) {
|
|
3188
|
-
return `${getLoggingPrefix(integration, 'info')} Using ${integration}. Installing required dependencies via ${
|
|
3188
|
+
return `${getLoggingPrefix(integration, 'info')} Using ${integration}. Installing required dependencies via ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(packageManager)}...`;
|
|
3189
3189
|
}
|
|
3190
3190
|
function isUsingIntegration(integration) {
|
|
3191
|
-
return `${
|
|
3191
|
+
return `${pintor__WEBPACK_IMPORTED_MODULE_0___default().blue("\u25BA\u25BA\u25BA")} Using ${pintor__WEBPACK_IMPORTED_MODULE_0___default().brightBlue(integration)}...`;
|
|
3192
3192
|
}
|
|
3193
3193
|
function youAreAllSet(integration) {
|
|
3194
3194
|
return `${getLoggingPrefix(integration, 'success')} installation completed. Run the program again and happy hacking.`;
|
|
@@ -3197,14 +3197,14 @@ var __webpack_modules__ = {
|
|
|
3197
3197
|
return `${getLoggingPrefix(integration, 'info')} dependencies are being installed. This only happens for core contributors...`;
|
|
3198
3198
|
}
|
|
3199
3199
|
function integrationInstalledSuccessfully(integration) {
|
|
3200
|
-
return `${getLoggingPrefix(integration, 'success')} dependencies installed ${
|
|
3200
|
+
return `${getLoggingPrefix(integration, 'success')} dependencies installed ${pintor__WEBPACK_IMPORTED_MODULE_0___default().green('successfully')}.`;
|
|
3201
3201
|
}
|
|
3202
3202
|
function failedToInstallIntegration(integration, error) {
|
|
3203
|
-
return `${getLoggingPrefix('Integration', 'error')} ${
|
|
3203
|
+
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 ?? ''))}`;
|
|
3204
3204
|
}
|
|
3205
3205
|
function fileNotFound(errorSourcePath, missingFilePath) {
|
|
3206
3206
|
if (!errorSourcePath) throw new Error('This operation is impossible. Please report a bug.');
|
|
3207
|
-
switch(
|
|
3207
|
+
switch(path__WEBPACK_IMPORTED_MODULE_1__.extname(missingFilePath)){
|
|
3208
3208
|
case '.js':
|
|
3209
3209
|
case '.ts':
|
|
3210
3210
|
case '.jsx':
|
|
@@ -3224,99 +3224,99 @@ var __webpack_modules__ = {
|
|
|
3224
3224
|
const contentIndex = manifestField.split('-')[1];
|
|
3225
3225
|
const isPage = manifestField.startsWith('pages');
|
|
3226
3226
|
const field = manifestName.includes("content_scripts") ? `(index ${contentIndex})\n\n` : manifestFieldName;
|
|
3227
|
-
return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\n\n${isPage ? `Check the ${
|
|
3227
|
+
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)}`;
|
|
3228
3228
|
}
|
|
3229
3229
|
function entryNotFoundWarn(manifestField, filePath) {
|
|
3230
|
-
return `File Not Found\n\nCheck the ${
|
|
3230
|
+
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)}`;
|
|
3231
3231
|
}
|
|
3232
3232
|
function manifestInvalidError(error) {
|
|
3233
|
-
return `${getLoggingPrefix('manifest.json', 'error')} Invalid Manifest\n\nUpdate your ${
|
|
3233
|
+
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());
|
|
3234
3234
|
}
|
|
3235
3235
|
function serverRestartRequiredFromManifestError(fileAdded, fileRemoved) {
|
|
3236
|
-
const fileRemovedText = fileRemoved ? `${
|
|
3237
|
-
const fileAddedText = fileAdded ? `${
|
|
3236
|
+
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` : '';
|
|
3237
|
+
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)}` : '';
|
|
3238
3238
|
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;
|
|
3239
3239
|
}
|
|
3240
3240
|
function serverRestartRequiredFromSpecialFolderError(addingOrRemoving, folder, typeOfAsset, pathRelative) {
|
|
3241
|
-
return `${getLoggingPrefix('manifest.json', 'error')} Manifest Entry Point Modification\n${
|
|
3241
|
+
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.`;
|
|
3242
3242
|
}
|
|
3243
3243
|
function manifestNotFoundError(manifestName, manifestPath) {
|
|
3244
|
-
return `${getLoggingPrefix('manifest.json', 'error')} Manifest Not Found\n\nEnsure you have a ${
|
|
3244
|
+
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)}`;
|
|
3245
3245
|
}
|
|
3246
3246
|
function creatingTSConfig() {
|
|
3247
|
-
return `${getLoggingPrefix('TypeScript', 'info')} is being used but no config file was found. Creating ${
|
|
3247
|
+
return `${getLoggingPrefix('TypeScript', 'info')} is being used but no config file was found. Creating ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow('tsconfig.json')}...`;
|
|
3248
3248
|
}
|
|
3249
3249
|
function backgroundIsRequired(backgroundChunkName, filePath) {
|
|
3250
|
-
return `${getLoggingPrefix('manifest.json', 'error')} File Not Found\nCheck the ${
|
|
3250
|
+
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)}`;
|
|
3251
3251
|
}
|
|
3252
3252
|
function serverRestartRequiredFromHtml(filePath) {
|
|
3253
|
-
return `${getLoggingPrefix('HTML', 'warn')} Entrypoint Change\nDetected changes to ${
|
|
3253
|
+
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)}`;
|
|
3254
3254
|
}
|
|
3255
3255
|
function javaScriptError(errorSourcePath, missingFilePath) {
|
|
3256
|
-
return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${
|
|
3256
|
+
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)}`;
|
|
3257
3257
|
}
|
|
3258
3258
|
function cssError(errorSourcePath, missingFilePath) {
|
|
3259
|
-
return `${getLoggingPrefix('HTML', 'error')} File Not Found\nCheck your ${
|
|
3259
|
+
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)}`;
|
|
3260
3260
|
}
|
|
3261
3261
|
function staticAssetError(errorSourcePath, missingFilePath) {
|
|
3262
|
-
const extname =
|
|
3263
|
-
return `${getLoggingPrefix('HTML', 'warn')} File Not Found\nCheck your ${
|
|
3262
|
+
const extname = path__WEBPACK_IMPORTED_MODULE_1__.extname(missingFilePath);
|
|
3263
|
+
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)}`;
|
|
3264
3264
|
}
|
|
3265
3265
|
function certRequired() {
|
|
3266
|
-
return `${
|
|
3266
|
+
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')}`;
|
|
3267
3267
|
}
|
|
3268
3268
|
function defaultPortInUse(port) {
|
|
3269
|
-
return `${getLoggingPrefix('Port', 'error')} Selected port ${
|
|
3269
|
+
return `${getLoggingPrefix('Port', 'error')} Selected port ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())} in use. Choose a new port. `;
|
|
3270
3270
|
}
|
|
3271
3271
|
function portInUse(requestedPort, newPort) {
|
|
3272
|
-
return `${getLoggingPrefix('Port', 'warn')} Requested port ${
|
|
3272
|
+
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.`;
|
|
3273
3273
|
}
|
|
3274
3274
|
function noExtensionIdError() {
|
|
3275
|
-
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 ${
|
|
3275
|
+
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.`;
|
|
3276
3276
|
}
|
|
3277
3277
|
function isUsingCustomLoader(file) {
|
|
3278
3278
|
const loaderName = file.split('.').shift() || 'custom';
|
|
3279
3279
|
const capitalizedLoaderName = loaderName.charAt(0).toUpperCase() + loaderName.slice(1);
|
|
3280
|
-
return `${getLoggingPrefix(capitalizedLoaderName, 'info')} Using custom loader configuration from ${
|
|
3280
|
+
return `${getLoggingPrefix(capitalizedLoaderName, 'info')} Using custom loader configuration from ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(file)}`;
|
|
3281
3281
|
}
|
|
3282
3282
|
function webextensionPolyfillNotFound() {
|
|
3283
|
-
return `${getLoggingPrefix('Warning', 'warn')} ${
|
|
3283
|
+
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')}`;
|
|
3284
3284
|
}
|
|
3285
3285
|
function registrySaved(registryPath) {
|
|
3286
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} registry saved to: ${
|
|
3286
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} registry saved to: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(registryPath)}`;
|
|
3287
3287
|
}
|
|
3288
3288
|
function registrySaveError(error) {
|
|
3289
|
-
return `${getLoggingPrefix('Instance Manager', 'error')} error saving registry:\n${
|
|
3289
|
+
return `${getLoggingPrefix('Instance Manager', 'error')} error saving registry:\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
|
|
3290
3290
|
}
|
|
3291
3291
|
function smartPortAllocationExistingPorts(usedPorts) {
|
|
3292
|
-
return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing ports: ${
|
|
3292
|
+
return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing ports: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(usedPorts))}`;
|
|
3293
3293
|
}
|
|
3294
3294
|
function smartPortAllocationExistingWebSocketPorts(usedWebSocketPorts) {
|
|
3295
|
-
return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing WebSocket ports: ${
|
|
3295
|
+
return `${getLoggingPrefix('Smart Port Allocation', 'info')} existing WebSocket ports: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(usedWebSocketPorts))}`;
|
|
3296
3296
|
}
|
|
3297
3297
|
function smartPortAllocationUsingRequestedPort(port, webSocketPort) {
|
|
3298
|
-
return `${getLoggingPrefix('Smart Port Allocation', 'info')} using requested port ${
|
|
3298
|
+
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())}`;
|
|
3299
3299
|
}
|
|
3300
3300
|
function smartPortAllocationRequestedPortUnavailable(port) {
|
|
3301
|
-
return `${getLoggingPrefix('Smart Port Allocation', 'warn')} requested port is unavailable: ${
|
|
3301
|
+
return `${getLoggingPrefix('Smart Port Allocation', 'warn')} requested port is unavailable: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(port.toString())}`;
|
|
3302
3302
|
}
|
|
3303
3303
|
function smartPortAllocationAllocatedPorts(port, webSocketPort) {
|
|
3304
|
-
return `${getLoggingPrefix('Smart Port Allocation', 'success')} allocated ports ${
|
|
3304
|
+
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)')}`;
|
|
3305
3305
|
}
|
|
3306
3306
|
function instanceManagerCreateInstanceCalled(params) {
|
|
3307
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} createInstance called ${
|
|
3307
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} createInstance called ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(params))}`;
|
|
3308
3308
|
}
|
|
3309
3309
|
function instanceManagerRegistryAfterCreateInstance(registry) {
|
|
3310
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} registry after createInstance: ${
|
|
3310
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} registry after createInstance: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(JSON.stringify(registry))}`;
|
|
3311
3311
|
}
|
|
3312
3312
|
function extensionManagerCopyFilesWarning(error) {
|
|
3313
|
-
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not copy extension files: ${
|
|
3313
|
+
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not copy extension files: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(String(error))}`;
|
|
3314
3314
|
}
|
|
3315
3315
|
function extensionManagerInstanceNotFoundWarning(instanceId) {
|
|
3316
|
-
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} instance ${
|
|
3316
|
+
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(instanceId)} not found for cleanup`;
|
|
3317
3317
|
}
|
|
3318
3318
|
function extensionManagerCleanupWarning(error) {
|
|
3319
|
-
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not cleanup temp extensions: ${
|
|
3319
|
+
return `${getLoggingPrefix('Extension.js DevTools', 'warn')} could not cleanup temp extensions: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().yellow(String(error))}`;
|
|
3320
3320
|
}
|
|
3321
3321
|
function firefoxDetectedFlatpak() {
|
|
3322
3322
|
return `${getLoggingPrefix('Firefox Detector', 'info')} detected a Flatpak Firefox installation`;
|
|
@@ -3325,16 +3325,16 @@ var __webpack_modules__ = {
|
|
|
3325
3325
|
return `${getLoggingPrefix('Firefox Detector', 'info')} detected a Snap Firefox installation`;
|
|
3326
3326
|
}
|
|
3327
3327
|
function firefoxDetectedTraditional(firefoxPath) {
|
|
3328
|
-
return `${getLoggingPrefix('Firefox Detector', 'info')} detected traditional Firefox at: ${
|
|
3328
|
+
return `${getLoggingPrefix('Firefox Detector', 'info')} detected traditional Firefox at: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(firefoxPath)}`;
|
|
3329
3329
|
}
|
|
3330
3330
|
function firefoxDetectedCustom(firefoxPath) {
|
|
3331
|
-
return `${getLoggingPrefix('Firefox Detector', 'info')} detected custom Firefox build at: ${
|
|
3331
|
+
return `${getLoggingPrefix('Firefox Detector', 'info')} detected custom Firefox build at: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(firefoxPath)}`;
|
|
3332
3332
|
}
|
|
3333
3333
|
function firefoxUsingFlatpakWithSandbox() {
|
|
3334
3334
|
return `${getLoggingPrefix('Firefox Detector', 'info')} using Flatpak Firefox with sandbox permissions`;
|
|
3335
3335
|
}
|
|
3336
3336
|
function firefoxVersion(version) {
|
|
3337
|
-
return `${getLoggingPrefix('Firefox Detector', 'info')} Firefox version is: ${
|
|
3337
|
+
return `${getLoggingPrefix('Firefox Detector', 'info')} Firefox version is: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(version)}`;
|
|
3338
3338
|
}
|
|
3339
3339
|
function portManagerErrorAllocatingPorts(error) {
|
|
3340
3340
|
let errorMessage = String(error);
|
|
@@ -3346,76 +3346,76 @@ var __webpack_modules__ = {
|
|
|
3346
3346
|
errorMessage += '\n3. Manually delete: ~/Library/Application Support/extension-js (macOS)';
|
|
3347
3347
|
errorMessage += '\n4. Restart your terminal and try again';
|
|
3348
3348
|
}
|
|
3349
|
-
return `${getLoggingPrefix('Port Manager', 'error')} Failed to allocate ports.\n${
|
|
3349
|
+
return `${getLoggingPrefix('Port Manager', 'error')} Failed to allocate ports.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(errorMessage)}`;
|
|
3350
3350
|
}
|
|
3351
3351
|
function browserPluginFailedToLoad(browser, error) {
|
|
3352
|
-
return `${getLoggingPrefix('Browser Plugin', 'error')} Failed to load the ${
|
|
3352
|
+
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))}`;
|
|
3353
3353
|
}
|
|
3354
3354
|
function extensionJsRunnerError(error) {
|
|
3355
|
-
return `${getLoggingPrefix('Extension.js Runner', 'error')} Error in the Extension.js runner.\n${
|
|
3355
|
+
return `${getLoggingPrefix('Extension.js Runner', 'error')} Error in the Extension.js runner.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
|
|
3356
3356
|
}
|
|
3357
3357
|
function extensionJsRunnerCleanupError(error) {
|
|
3358
|
-
return `${getLoggingPrefix('Extension.js Runner', 'error')} Error during cleanup.\n${
|
|
3358
|
+
return `${getLoggingPrefix('Extension.js Runner', 'error')} Error during cleanup.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
|
|
3359
3359
|
}
|
|
3360
3360
|
function extensionJsRunnerUncaughtException(error) {
|
|
3361
|
-
return `${getLoggingPrefix('Extension.js Runner', 'error')} Uncaught exception.\n${
|
|
3361
|
+
return `${getLoggingPrefix('Extension.js Runner', 'error')} Uncaught exception.\n${pintor__WEBPACK_IMPORTED_MODULE_0___default().red(String(error))}`;
|
|
3362
3362
|
}
|
|
3363
3363
|
function extensionJsRunnerUnhandledRejection(promise, reason) {
|
|
3364
|
-
return `${getLoggingPrefix('Extension.js Runner', 'error')} unhandled rejection at: ${
|
|
3364
|
+
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))}`;
|
|
3365
3365
|
}
|
|
3366
3366
|
function autoExitModeEnabled(ms) {
|
|
3367
|
-
return `${getLoggingPrefix('Auto Mode', 'info')} is enabled. The program will exit automatically after ${
|
|
3367
|
+
return `${getLoggingPrefix('Auto Mode', 'info')} is enabled. The program will exit automatically after ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}.`;
|
|
3368
3368
|
}
|
|
3369
3369
|
function autoExitTriggered(ms) {
|
|
3370
|
-
return `${getLoggingPrefix('Auto Mode', 'warn')} timer has elapsed ${
|
|
3370
|
+
return `${getLoggingPrefix('Auto Mode', 'warn')} timer has elapsed ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}. Cleaning up\u{2026}`;
|
|
3371
3371
|
}
|
|
3372
3372
|
function autoExitForceKill(ms) {
|
|
3373
|
-
return `${getLoggingPrefix('Auto Mode', 'error')} is force-killing the process after the fallback ${
|
|
3373
|
+
return `${getLoggingPrefix('Auto Mode', 'error')} is force-killing the process after the fallback ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray('(' + ms.toString() + 'ms)')}.`;
|
|
3374
3374
|
}
|
|
3375
3375
|
function instanceManagerHealthMonitoringStart(instanceId) {
|
|
3376
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} starting health monitoring for instance ${
|
|
3376
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} starting health monitoring for instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}`;
|
|
3377
3377
|
}
|
|
3378
3378
|
function instanceManagerHealthMonitoringPassed(instanceId) {
|
|
3379
|
-
return `${getLoggingPrefix('Instance Manager', 'success')} instance ${
|
|
3379
|
+
return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} health check passed`;
|
|
3380
3380
|
}
|
|
3381
3381
|
function instanceManagerHealthMonitoringOrphaned(instanceId) {
|
|
3382
|
-
return `${getLoggingPrefix('Instance Manager', 'warn')} instance ${
|
|
3382
|
+
return `${getLoggingPrefix('Instance Manager', 'warn')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} appears orphaned, cleaning up`;
|
|
3383
3383
|
}
|
|
3384
3384
|
function instanceManagerHealthMonitoringFailed(instanceId, error) {
|
|
3385
|
-
return `${getLoggingPrefix('Instance Manager', 'error')} health check failed for instance ${
|
|
3385
|
+
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))}`;
|
|
3386
3386
|
}
|
|
3387
3387
|
function instanceManagerForceCleanupProject(projectPath) {
|
|
3388
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} force cleaning up all processes for project: ${
|
|
3388
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} force cleaning up all processes for project: ${pintor__WEBPACK_IMPORTED_MODULE_0___default().underline(projectPath)}`;
|
|
3389
3389
|
}
|
|
3390
3390
|
function instanceManagerForceCleanupFound(instanceCount) {
|
|
3391
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} found ${
|
|
3391
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} found ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceCount.toString())} instances to clean up`;
|
|
3392
3392
|
}
|
|
3393
3393
|
function instanceManagerForceCleanupInstance(instanceId) {
|
|
3394
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} cleaning up instance ${
|
|
3394
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} cleaning up instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))}`;
|
|
3395
3395
|
}
|
|
3396
3396
|
function instanceManagerForceCleanupTerminating(processId) {
|
|
3397
|
-
return `${getLoggingPrefix('Instance Manager', 'info')} terminating process ${
|
|
3397
|
+
return `${getLoggingPrefix('Instance Manager', 'info')} terminating process ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(processId.toString())}`;
|
|
3398
3398
|
}
|
|
3399
3399
|
function instanceManagerForceCleanupForceKilled(processId) {
|
|
3400
|
-
return `${getLoggingPrefix('Instance Manager', 'error')} force killed process ${
|
|
3400
|
+
return `${getLoggingPrefix('Instance Manager', 'error')} force killed process ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(processId.toString())}`;
|
|
3401
3401
|
}
|
|
3402
3402
|
function instanceManagerForceCleanupInstanceTerminated(instanceId) {
|
|
3403
|
-
return `${getLoggingPrefix('Instance Manager', 'success')} instance ${
|
|
3403
|
+
return `${getLoggingPrefix('Instance Manager', 'success')} instance ${pintor__WEBPACK_IMPORTED_MODULE_0___default().gray(instanceId.slice(0, 8))} marked as terminated`;
|
|
3404
3404
|
}
|
|
3405
3405
|
function instanceManagerForceCleanupError(instanceId, error) {
|
|
3406
|
-
return `${getLoggingPrefix('Instance Manager', 'error')} error terminating instance ${
|
|
3406
|
+
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))}`;
|
|
3407
3407
|
}
|
|
3408
3408
|
function instanceManagerForceCleanupComplete() {
|
|
3409
3409
|
return `${getLoggingPrefix('Instance Manager', 'success')} project cleanup completed`;
|
|
3410
3410
|
}
|
|
3411
3411
|
function instanceManagerProcessNoLongerRunning(instanceId, processId) {
|
|
3412
|
-
return `${
|
|
3412
|
+
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`;
|
|
3413
3413
|
}
|
|
3414
3414
|
function instanceManagerPortsNotInUse(instanceId, port, webSocketPort) {
|
|
3415
|
-
return `${
|
|
3415
|
+
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`;
|
|
3416
3416
|
}
|
|
3417
3417
|
function instanceManagerCleanedUpOrphanedInstance(instanceId) {
|
|
3418
|
-
return `${
|
|
3418
|
+
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))}`;
|
|
3419
3419
|
}
|
|
3420
3420
|
},
|
|
3421
3421
|
child_process: function(module) {
|