@storm-software/workspace-tools 1.73.2 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/index.js +97355 -1159
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +97021 -825
- package/src/executors/rolldown/executor.js +140 -150
- package/src/executors/tsup/executor.js +140 -150
- package/src/executors/tsup-browser/executor.js +140 -150
- package/src/executors/tsup-browser/schema.json +1 -1
- package/src/executors/tsup-neutral/executor.js +140 -150
- package/src/executors/tsup-node/executor.js +140 -150
- package/src/executors/typia/executor.js +142 -152
- package/src/executors/unbuild/executor.js +140 -150
- package/src/generators/browser-library/generator.js +97021 -825
- package/src/generators/config-schema/generator.js +140 -150
- package/src/generators/neutral-library/generator.js +97021 -825
- package/src/generators/node-library/generator.js +97021 -825
- package/src/generators/preset/generator.js +140 -150
- package/src/generators/release-version/generator.js +157 -167
- package/src/utils/index.js +142 -152
|
@@ -6569,7 +6569,7 @@ var require_jiti = __commonJS({
|
|
|
6569
6569
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
6570
6570
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
6571
6571
|
});
|
|
6572
|
-
const
|
|
6572
|
+
const packageJsonReader = { read: function(jsonPath) {
|
|
6573
6573
|
try {
|
|
6574
6574
|
return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
|
|
6575
6575
|
} catch (error) {
|
|
@@ -6584,7 +6584,7 @@ var require_jiti = __commonJS({
|
|
|
6584
6584
|
const existing = packageJsonCache.get(path5);
|
|
6585
6585
|
if (void 0 !== existing)
|
|
6586
6586
|
return existing;
|
|
6587
|
-
const source =
|
|
6587
|
+
const source = packageJsonReader.read(path5).string;
|
|
6588
6588
|
if (void 0 === source) {
|
|
6589
6589
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
6590
6590
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -6647,7 +6647,7 @@ var require_jiti = __commonJS({
|
|
|
6647
6647
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
6648
6648
|
function getHttpProtocolModuleFormat2() {
|
|
6649
6649
|
}
|
|
6650
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
6650
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
6651
6651
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
6652
6652
|
const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
6653
6653
|
external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -6934,7 +6934,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
6934
6934
|
else
|
|
6935
6935
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
6936
6936
|
return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
6937
|
-
if (null !==
|
|
6937
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
6938
6938
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
|
|
6939
6939
|
const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
6940
6940
|
if (stats.isDirectory()) {
|
|
@@ -12540,7 +12540,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
12540
12540
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
12541
12541
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
12542
12542
|
});
|
|
12543
|
-
var
|
|
12543
|
+
var packageJsonReader = { read: function(jsonPath) {
|
|
12544
12544
|
try {
|
|
12545
12545
|
return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
|
|
12546
12546
|
} catch (error) {
|
|
@@ -12555,7 +12555,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
12555
12555
|
const existing = packageJsonCache.get(path5);
|
|
12556
12556
|
if (void 0 !== existing)
|
|
12557
12557
|
return existing;
|
|
12558
|
-
const source =
|
|
12558
|
+
const source = packageJsonReader.read(path5).string;
|
|
12559
12559
|
if (void 0 === source) {
|
|
12560
12560
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
12561
12561
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -12622,7 +12622,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
12622
12622
|
return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
|
|
12623
12623
|
}
|
|
12624
12624
|
const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
|
|
12625
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
12625
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
12626
12626
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
12627
12627
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
12628
12628
|
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -12907,7 +12907,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
12907
12907
|
else
|
|
12908
12908
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
12909
12909
|
return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
12910
|
-
if (null !==
|
|
12910
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
12911
12911
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
|
|
12912
12912
|
const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
12913
12913
|
if (stats.isDirectory()) {
|
|
@@ -42218,27 +42218,27 @@ var init_dist5 = __esm({
|
|
|
42218
42218
|
}
|
|
42219
42219
|
});
|
|
42220
42220
|
|
|
42221
|
-
// node_modules/.pnpm/mlly@1.
|
|
42221
|
+
// node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
|
|
42222
42222
|
function normalizeSlash(path5) {
|
|
42223
42223
|
return path5.replace(/\\/g, "/");
|
|
42224
42224
|
}
|
|
42225
42225
|
function formatList(array, type = "and") {
|
|
42226
42226
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
42227
42227
|
}
|
|
42228
|
-
function createError(sym, value2,
|
|
42228
|
+
function createError(sym, value2, constructor) {
|
|
42229
42229
|
messages.set(sym, value2);
|
|
42230
|
-
return makeNodeErrorWithCode(
|
|
42230
|
+
return makeNodeErrorWithCode(constructor, sym);
|
|
42231
42231
|
}
|
|
42232
42232
|
function makeNodeErrorWithCode(Base, key) {
|
|
42233
42233
|
return NodeError;
|
|
42234
|
-
function NodeError(...
|
|
42234
|
+
function NodeError(...parameters) {
|
|
42235
42235
|
const limit = Error.stackTraceLimit;
|
|
42236
42236
|
if (isErrorStackTraceLimitWritable())
|
|
42237
42237
|
Error.stackTraceLimit = 0;
|
|
42238
42238
|
const error = new Base();
|
|
42239
42239
|
if (isErrorStackTraceLimitWritable())
|
|
42240
42240
|
Error.stackTraceLimit = limit;
|
|
42241
|
-
const message = getMessage(key,
|
|
42241
|
+
const message = getMessage(key, parameters, error);
|
|
42242
42242
|
Object.defineProperties(error, {
|
|
42243
42243
|
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
42244
42244
|
// probably.
|
|
@@ -42276,34 +42276,34 @@ function isErrorStackTraceLimitWritable() {
|
|
|
42276
42276
|
}
|
|
42277
42277
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
42278
42278
|
}
|
|
42279
|
-
function hideStackFrames(
|
|
42280
|
-
const hidden = nodeInternalPrefix +
|
|
42281
|
-
Object.defineProperty(
|
|
42282
|
-
return
|
|
42279
|
+
function hideStackFrames(wrappedFunction) {
|
|
42280
|
+
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
42281
|
+
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
42282
|
+
return wrappedFunction;
|
|
42283
42283
|
}
|
|
42284
|
-
function getMessage(key,
|
|
42284
|
+
function getMessage(key, parameters, self2) {
|
|
42285
42285
|
const message = messages.get(key);
|
|
42286
42286
|
(0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
|
|
42287
42287
|
if (typeof message === "function") {
|
|
42288
42288
|
(0, import_node_assert.default)(
|
|
42289
|
-
message.length <=
|
|
42289
|
+
message.length <= parameters.length,
|
|
42290
42290
|
// Default options do not count.
|
|
42291
|
-
`Code: ${key}; The provided arguments length (${
|
|
42291
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
42292
42292
|
);
|
|
42293
|
-
return Reflect.apply(message, self2,
|
|
42293
|
+
return Reflect.apply(message, self2, parameters);
|
|
42294
42294
|
}
|
|
42295
42295
|
const regex = /%[dfijoOs]/g;
|
|
42296
42296
|
let expectedLength = 0;
|
|
42297
42297
|
while (regex.exec(message) !== null)
|
|
42298
42298
|
expectedLength++;
|
|
42299
42299
|
(0, import_node_assert.default)(
|
|
42300
|
-
expectedLength ===
|
|
42301
|
-
`Code: ${key}; The provided arguments length (${
|
|
42300
|
+
expectedLength === parameters.length,
|
|
42301
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
42302
42302
|
);
|
|
42303
|
-
if (
|
|
42303
|
+
if (parameters.length === 0)
|
|
42304
42304
|
return message;
|
|
42305
|
-
|
|
42306
|
-
return Reflect.apply(import_node_util.format, null,
|
|
42305
|
+
parameters.unshift(message);
|
|
42306
|
+
return Reflect.apply(import_node_util.format, null, parameters);
|
|
42307
42307
|
}
|
|
42308
42308
|
function determineSpecificType(value2) {
|
|
42309
42309
|
if (value2 === null || value2 === void 0) {
|
|
@@ -42389,21 +42389,20 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
42389
42389
|
return result;
|
|
42390
42390
|
}
|
|
42391
42391
|
function getPackageScopeConfig(resolved) {
|
|
42392
|
-
let packageJSONUrl = new
|
|
42392
|
+
let packageJSONUrl = new URL("package.json", resolved);
|
|
42393
42393
|
while (true) {
|
|
42394
42394
|
const packageJSONPath2 = packageJSONUrl.pathname;
|
|
42395
42395
|
if (packageJSONPath2.endsWith("node_modules/package.json")) {
|
|
42396
42396
|
break;
|
|
42397
42397
|
}
|
|
42398
|
-
const packageConfig =
|
|
42399
|
-
|
|
42400
|
-
|
|
42401
|
-
);
|
|
42398
|
+
const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
|
|
42399
|
+
specifier: resolved
|
|
42400
|
+
});
|
|
42402
42401
|
if (packageConfig.exists) {
|
|
42403
42402
|
return packageConfig;
|
|
42404
42403
|
}
|
|
42405
42404
|
const lastPackageJSONUrl = packageJSONUrl;
|
|
42406
|
-
packageJSONUrl = new
|
|
42405
|
+
packageJSONUrl = new URL("../package.json", packageJSONUrl);
|
|
42407
42406
|
if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
|
|
42408
42407
|
break;
|
|
42409
42408
|
}
|
|
@@ -42412,16 +42411,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
42412
42411
|
return {
|
|
42413
42412
|
pjsonPath: packageJSONPath,
|
|
42414
42413
|
exists: false,
|
|
42415
|
-
|
|
42416
|
-
name: void 0,
|
|
42417
|
-
type: "none",
|
|
42418
|
-
exports: void 0,
|
|
42419
|
-
imports: void 0
|
|
42414
|
+
type: "none"
|
|
42420
42415
|
};
|
|
42421
42416
|
}
|
|
42422
42417
|
function getPackageType(url) {
|
|
42423
|
-
|
|
42424
|
-
return packageConfig.type;
|
|
42418
|
+
return getPackageScopeConfig(url).type;
|
|
42425
42419
|
}
|
|
42426
42420
|
function mimeToFormat(mime) {
|
|
42427
42421
|
if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime))
|
|
@@ -42451,29 +42445,29 @@ function extname2(url) {
|
|
|
42451
42445
|
return "";
|
|
42452
42446
|
}
|
|
42453
42447
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
42454
|
-
const
|
|
42455
|
-
if (
|
|
42448
|
+
const value2 = extname2(url);
|
|
42449
|
+
if (value2 === ".js") {
|
|
42456
42450
|
const packageType = getPackageType(url);
|
|
42457
42451
|
if (packageType !== "none") {
|
|
42458
42452
|
return packageType;
|
|
42459
42453
|
}
|
|
42460
42454
|
return "commonjs";
|
|
42461
42455
|
}
|
|
42462
|
-
if (
|
|
42456
|
+
if (value2 === "") {
|
|
42463
42457
|
const packageType = getPackageType(url);
|
|
42464
42458
|
if (packageType === "none" || packageType === "commonjs") {
|
|
42465
42459
|
return "commonjs";
|
|
42466
42460
|
}
|
|
42467
42461
|
return "module";
|
|
42468
42462
|
}
|
|
42469
|
-
const format3 = extensionFormatMap[
|
|
42463
|
+
const format3 = extensionFormatMap[value2];
|
|
42470
42464
|
if (format3)
|
|
42471
42465
|
return format3;
|
|
42472
42466
|
if (ignoreErrors) {
|
|
42473
42467
|
return void 0;
|
|
42474
42468
|
}
|
|
42475
42469
|
const filepath = (0, import_node_url.fileURLToPath)(url);
|
|
42476
|
-
throw new ERR_UNKNOWN_FILE_EXTENSION(
|
|
42470
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
|
|
42477
42471
|
}
|
|
42478
42472
|
function getHttpProtocolModuleFormat() {
|
|
42479
42473
|
}
|
|
@@ -42504,21 +42498,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
42504
42498
|
if (format3 !== "module")
|
|
42505
42499
|
return;
|
|
42506
42500
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
42507
|
-
const
|
|
42501
|
+
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
42508
42502
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
42509
42503
|
if (!main) {
|
|
42510
42504
|
import_node_process.default.emitWarning(
|
|
42511
|
-
`No "main" or "exports" field defined in the package.json for ${
|
|
42512
|
-
|
|
42505
|
+
`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
|
|
42506
|
+
packagePath.length
|
|
42513
42507
|
)}", imported from ${basePath}.
|
|
42514
42508
|
Default "index" lookups for the main are deprecated for ES modules.`,
|
|
42515
42509
|
"DeprecationWarning",
|
|
42516
42510
|
"DEP0151"
|
|
42517
42511
|
);
|
|
42518
|
-
} else if (import_node_path3.default.resolve(
|
|
42512
|
+
} else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
|
|
42519
42513
|
import_node_process.default.emitWarning(
|
|
42520
|
-
`Package ${
|
|
42521
|
-
|
|
42514
|
+
`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
42515
|
+
packagePath.length
|
|
42522
42516
|
)}", imported from ${basePath}.
|
|
42523
42517
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,
|
|
42524
42518
|
"DeprecationWarning",
|
|
@@ -42530,7 +42524,6 @@ function tryStatSync(path5) {
|
|
|
42530
42524
|
try {
|
|
42531
42525
|
return (0, import_node_fs3.statSync)(path5);
|
|
42532
42526
|
} catch {
|
|
42533
|
-
return new import_node_fs3.Stats();
|
|
42534
42527
|
}
|
|
42535
42528
|
}
|
|
42536
42529
|
function fileExists(url) {
|
|
@@ -42587,7 +42580,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
42587
42580
|
);
|
|
42588
42581
|
}
|
|
42589
42582
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
42590
|
-
if (
|
|
42583
|
+
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
42591
42584
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
42592
42585
|
resolved.pathname,
|
|
42593
42586
|
'must not include encoded "/" or "\\" characters',
|
|
@@ -42609,12 +42602,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
42609
42602
|
const stats = tryStatSync(
|
|
42610
42603
|
filePath.endsWith("/") ? filePath.slice(-1) : filePath
|
|
42611
42604
|
);
|
|
42612
|
-
if (stats.isDirectory()) {
|
|
42605
|
+
if (stats && stats.isDirectory()) {
|
|
42613
42606
|
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
|
|
42614
42607
|
error.url = String(resolved);
|
|
42615
42608
|
throw error;
|
|
42616
42609
|
}
|
|
42617
|
-
if (!stats.isFile()) {
|
|
42610
|
+
if (!stats || !stats.isFile()) {
|
|
42618
42611
|
const error = new ERR_MODULE_NOT_FOUND(
|
|
42619
42612
|
filePath || resolved.pathname,
|
|
42620
42613
|
base && (0, import_node_url.fileURLToPath)(base),
|
|
@@ -42872,13 +42865,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
|
|
|
42872
42865
|
const keys = Object.getOwnPropertyNames(exports2);
|
|
42873
42866
|
let isConditionalSugar = false;
|
|
42874
42867
|
let i2 = 0;
|
|
42875
|
-
let
|
|
42876
|
-
while (++
|
|
42877
|
-
const key = keys[
|
|
42878
|
-
const
|
|
42868
|
+
let keyIndex = -1;
|
|
42869
|
+
while (++keyIndex < keys.length) {
|
|
42870
|
+
const key = keys[keyIndex];
|
|
42871
|
+
const currentIsConditionalSugar = key === "" || key[0] !== ".";
|
|
42879
42872
|
if (i2++ === 0) {
|
|
42880
|
-
isConditionalSugar =
|
|
42881
|
-
} else if (isConditionalSugar !==
|
|
42873
|
+
isConditionalSugar = currentIsConditionalSugar;
|
|
42874
|
+
} else if (isConditionalSugar !== currentIsConditionalSugar) {
|
|
42882
42875
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
42883
42876
|
(0, import_node_url.fileURLToPath)(packageJsonUrl),
|
|
42884
42877
|
base,
|
|
@@ -43114,7 +43107,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
43114
43107
|
let lastPath;
|
|
43115
43108
|
do {
|
|
43116
43109
|
const stat = tryStatSync(packageJsonPath.slice(0, -13));
|
|
43117
|
-
if (!stat.isDirectory()) {
|
|
43110
|
+
if (!stat || !stat.isDirectory()) {
|
|
43118
43111
|
lastPath = packageJsonPath;
|
|
43119
43112
|
packageJsonUrl = new import_node_url.URL(
|
|
43120
43113
|
(isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
|
|
@@ -43123,10 +43116,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
43123
43116
|
packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
|
|
43124
43117
|
continue;
|
|
43125
43118
|
}
|
|
43126
|
-
const packageConfig2 =
|
|
43127
|
-
base,
|
|
43128
|
-
specifier
|
|
43129
|
-
});
|
|
43119
|
+
const packageConfig2 = read2(packageJsonPath, { base, specifier });
|
|
43130
43120
|
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
43131
43121
|
return packageExportsResolve(
|
|
43132
43122
|
packageJsonUrl,
|
|
@@ -43162,19 +43152,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
|
43162
43152
|
}
|
|
43163
43153
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
43164
43154
|
const protocol = base.protocol;
|
|
43165
|
-
const
|
|
43155
|
+
const isData = protocol === "data:";
|
|
43156
|
+
const isRemote = isData || protocol === "http:" || protocol === "https:";
|
|
43166
43157
|
let resolved;
|
|
43167
43158
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
43168
|
-
|
|
43169
|
-
|
|
43159
|
+
try {
|
|
43160
|
+
resolved = new import_node_url.URL(specifier, base);
|
|
43161
|
+
} catch (error_) {
|
|
43162
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
43163
|
+
error.cause = error_;
|
|
43164
|
+
throw error;
|
|
43165
|
+
}
|
|
43166
|
+
} else if (protocol === "file:" && specifier[0] === "#") {
|
|
43170
43167
|
resolved = packageImportsResolve(specifier, base, conditions);
|
|
43171
43168
|
} else {
|
|
43172
43169
|
try {
|
|
43173
43170
|
resolved = new import_node_url.URL(specifier);
|
|
43174
|
-
} catch {
|
|
43175
|
-
if (!
|
|
43176
|
-
|
|
43171
|
+
} catch (error_) {
|
|
43172
|
+
if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
|
|
43173
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
43174
|
+
error.cause = error_;
|
|
43175
|
+
throw error;
|
|
43177
43176
|
}
|
|
43177
|
+
resolved = packageResolve(specifier, base, conditions);
|
|
43178
43178
|
}
|
|
43179
43179
|
}
|
|
43180
43180
|
(0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
|
|
@@ -43306,9 +43306,9 @@ function resolvePath(id, options) {
|
|
|
43306
43306
|
return Promise.reject(error);
|
|
43307
43307
|
}
|
|
43308
43308
|
}
|
|
43309
|
-
var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache,
|
|
43309
|
+
var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
43310
43310
|
var init_dist6 = __esm({
|
|
43311
|
-
"node_modules/.pnpm/mlly@1.
|
|
43311
|
+
"node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs"() {
|
|
43312
43312
|
init_acorn();
|
|
43313
43313
|
import_node_module = require("node:module");
|
|
43314
43314
|
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
@@ -43439,21 +43439,21 @@ var init_dist6 = __esm({
|
|
|
43439
43439
|
codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
43440
43440
|
"ERR_INVALID_PACKAGE_TARGET",
|
|
43441
43441
|
/**
|
|
43442
|
-
* @param {string}
|
|
43442
|
+
* @param {string} packagePath
|
|
43443
43443
|
* @param {string} key
|
|
43444
43444
|
* @param {unknown} target
|
|
43445
43445
|
* @param {boolean} [isImport=false]
|
|
43446
43446
|
* @param {string} [base]
|
|
43447
43447
|
*/
|
|
43448
|
-
(
|
|
43449
|
-
const
|
|
43448
|
+
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
43449
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
43450
43450
|
if (key === ".") {
|
|
43451
43451
|
(0, import_node_assert.default)(isImport === false);
|
|
43452
|
-
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${
|
|
43452
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
43453
43453
|
}
|
|
43454
43454
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
|
|
43455
43455
|
target
|
|
43456
|
-
)} defined for '${key}' in the package config ${
|
|
43456
|
+
)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
43457
43457
|
},
|
|
43458
43458
|
Error
|
|
43459
43459
|
);
|
|
@@ -43489,14 +43489,14 @@ var init_dist6 = __esm({
|
|
|
43489
43489
|
codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
43490
43490
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
43491
43491
|
/**
|
|
43492
|
-
* @param {string}
|
|
43492
|
+
* @param {string} packagePath
|
|
43493
43493
|
* @param {string} subpath
|
|
43494
43494
|
* @param {string} [base]
|
|
43495
43495
|
*/
|
|
43496
|
-
(
|
|
43496
|
+
(packagePath, subpath, base = void 0) => {
|
|
43497
43497
|
if (subpath === ".")
|
|
43498
|
-
return `No "exports" main defined in ${
|
|
43499
|
-
return `Package subpath '${subpath}' is not defined by "exports" in ${
|
|
43498
|
+
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
43499
|
+
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
43500
43500
|
},
|
|
43501
43501
|
Error
|
|
43502
43502
|
);
|
|
@@ -43505,14 +43505,19 @@ var init_dist6 = __esm({
|
|
|
43505
43505
|
"Directory import '%s' is not supported resolving ES modules imported from %s",
|
|
43506
43506
|
Error
|
|
43507
43507
|
);
|
|
43508
|
+
codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
|
|
43509
|
+
"ERR_UNSUPPORTED_RESOLVE_REQUEST",
|
|
43510
|
+
'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
|
|
43511
|
+
TypeError
|
|
43512
|
+
);
|
|
43508
43513
|
codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
43509
43514
|
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
43510
43515
|
/**
|
|
43511
|
-
* @param {string}
|
|
43516
|
+
* @param {string} extension
|
|
43512
43517
|
* @param {string} path
|
|
43513
43518
|
*/
|
|
43514
|
-
(
|
|
43515
|
-
return `Unknown file extension "${
|
|
43519
|
+
(extension, path5) => {
|
|
43520
|
+
return `Unknown file extension "${extension}" for ${path5}`;
|
|
43516
43521
|
},
|
|
43517
43522
|
TypeError
|
|
43518
43523
|
);
|
|
@@ -43556,8 +43561,6 @@ var init_dist6 = __esm({
|
|
|
43556
43561
|
hasOwnProperty$1 = {}.hasOwnProperty;
|
|
43557
43562
|
({ ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes);
|
|
43558
43563
|
cache = /* @__PURE__ */ new Map();
|
|
43559
|
-
reader = { read: read2 };
|
|
43560
|
-
packageJsonReader = reader;
|
|
43561
43564
|
({ ERR_UNKNOWN_FILE_EXTENSION } = codes);
|
|
43562
43565
|
hasOwnProperty2 = {}.hasOwnProperty;
|
|
43563
43566
|
extensionFormatMap = {
|
|
@@ -43588,14 +43591,15 @@ var init_dist6 = __esm({
|
|
|
43588
43591
|
ERR_MODULE_NOT_FOUND,
|
|
43589
43592
|
ERR_PACKAGE_IMPORT_NOT_DEFINED,
|
|
43590
43593
|
ERR_PACKAGE_PATH_NOT_EXPORTED,
|
|
43591
|
-
ERR_UNSUPPORTED_DIR_IMPORT
|
|
43594
|
+
ERR_UNSUPPORTED_DIR_IMPORT,
|
|
43595
|
+
ERR_UNSUPPORTED_RESOLVE_REQUEST
|
|
43592
43596
|
} = codes);
|
|
43593
43597
|
own = {}.hasOwnProperty;
|
|
43594
43598
|
invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
|
|
43595
43599
|
deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
|
|
43596
43600
|
invalidPackageNameRegEx = /^\.|%|\\/;
|
|
43597
43601
|
patternRegEx = /\*/g;
|
|
43598
|
-
|
|
43602
|
+
encodedSeparatorRegEx = /%2f|%5c/i;
|
|
43599
43603
|
emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
43600
43604
|
doubleSlashRegEx = /[/\\]{2}/;
|
|
43601
43605
|
DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
@@ -72940,28 +72944,26 @@ var init_lib = __esm({
|
|
|
72940
72944
|
});
|
|
72941
72945
|
|
|
72942
72946
|
// packages/config/src/schema.ts
|
|
72943
|
-
var DarkColorSchema, LightColorSchema,
|
|
72947
|
+
var DarkColorSchema, LightColorSchema, Brand1ColorSchema, Brand2ColorSchema, Brand3ColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
72944
72948
|
var init_schema = __esm({
|
|
72945
72949
|
"packages/config/src/schema.ts"() {
|
|
72946
72950
|
init_lib();
|
|
72947
|
-
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72951
|
+
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
72948
72952
|
LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
72949
|
-
|
|
72950
|
-
|
|
72951
|
-
|
|
72952
|
-
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
|
|
72953
|
+
Brand1ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
72954
|
+
Brand2ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
72955
|
+
Brand3ColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The third brand specific color of the workspace");
|
|
72953
72956
|
SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
72954
|
-
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72957
|
+
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
72955
72958
|
WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
72956
|
-
ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
72957
|
-
FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).
|
|
72959
|
+
ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
|
|
72960
|
+
FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
72958
72961
|
DarkThemeColorConfigSchema = z2.object({
|
|
72959
72962
|
foreground: LightColorSchema,
|
|
72960
72963
|
background: DarkColorSchema,
|
|
72961
|
-
|
|
72962
|
-
|
|
72963
|
-
|
|
72964
|
-
accent: AccentColorSchema,
|
|
72964
|
+
brand1: Brand1ColorSchema,
|
|
72965
|
+
brand2: Brand2ColorSchema,
|
|
72966
|
+
brand3: Brand3ColorSchema,
|
|
72965
72967
|
success: SuccessColorSchema,
|
|
72966
72968
|
info: InfoColorSchema,
|
|
72967
72969
|
warning: WarningColorSchema,
|
|
@@ -72971,10 +72973,9 @@ var init_schema = __esm({
|
|
|
72971
72973
|
LightThemeColorConfigSchema = z2.object({
|
|
72972
72974
|
foreground: DarkColorSchema,
|
|
72973
72975
|
background: LightColorSchema,
|
|
72974
|
-
|
|
72975
|
-
|
|
72976
|
-
|
|
72977
|
-
accent: AccentColorSchema,
|
|
72976
|
+
brand1: Brand1ColorSchema,
|
|
72977
|
+
brand2: Brand2ColorSchema,
|
|
72978
|
+
brand3: Brand3ColorSchema,
|
|
72978
72979
|
success: SuccessColorSchema,
|
|
72979
72980
|
info: InfoColorSchema,
|
|
72980
72981
|
warning: WarningColorSchema,
|
|
@@ -72988,10 +72989,9 @@ var init_schema = __esm({
|
|
|
72988
72989
|
SingleThemeColorConfigSchema = z2.object({
|
|
72989
72990
|
dark: DarkColorSchema,
|
|
72990
72991
|
light: LightColorSchema,
|
|
72991
|
-
|
|
72992
|
-
|
|
72993
|
-
|
|
72994
|
-
accent: AccentColorSchema,
|
|
72992
|
+
brand1: Brand1ColorSchema,
|
|
72993
|
+
brand2: Brand2ColorSchema,
|
|
72994
|
+
brand3: Brand3ColorSchema,
|
|
72995
72995
|
success: SuccessColorSchema,
|
|
72996
72996
|
info: InfoColorSchema,
|
|
72997
72997
|
warning: WarningColorSchema,
|
|
@@ -73072,10 +73072,9 @@ var init_types = __esm({
|
|
|
73072
73072
|
COLOR_KEYS = [
|
|
73073
73073
|
"dark",
|
|
73074
73074
|
"light",
|
|
73075
|
-
"
|
|
73076
|
-
"
|
|
73077
|
-
"
|
|
73078
|
-
"accent",
|
|
73075
|
+
"brand1",
|
|
73076
|
+
"brand2",
|
|
73077
|
+
"brand3",
|
|
73079
73078
|
"success",
|
|
73080
73079
|
"info",
|
|
73081
73080
|
"warning",
|
|
@@ -73111,10 +73110,9 @@ var init_get_default_config = __esm({
|
|
|
73111
73110
|
DEFAULT_COLOR_CONFIG = {
|
|
73112
73111
|
dark: "#1d232a",
|
|
73113
73112
|
light: "#f4f4f5",
|
|
73114
|
-
|
|
73115
|
-
|
|
73116
|
-
|
|
73117
|
-
accent: "#6366f1",
|
|
73113
|
+
brand1: "#1fb2a6",
|
|
73114
|
+
brand2: "#6366f1",
|
|
73115
|
+
brand3: "#ec5990",
|
|
73118
73116
|
success: "#087f5b",
|
|
73119
73117
|
info: "#0ea5e9",
|
|
73120
73118
|
warning: "#fcc419",
|
|
@@ -74934,9 +74932,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
74934
74932
|
return (message) => {
|
|
74935
74933
|
console.debug(
|
|
74936
74934
|
`
|
|
74937
|
-
${_chalk.bold.hex(colors.
|
|
74935
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
74938
74936
|
" \u{1F6E0} Debug "
|
|
74939
|
-
)} ${_chalk.hex(colors.
|
|
74937
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
74940
74938
|
`
|
|
74941
74939
|
);
|
|
74942
74940
|
};
|
|
@@ -74944,9 +74942,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
74944
74942
|
return (message) => {
|
|
74945
74943
|
console.log(
|
|
74946
74944
|
`
|
|
74947
|
-
${_chalk.bold.hex(colors.
|
|
74945
|
+
${_chalk.bold.hex(colors.brand1 ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand1 ?? "#1fb2a6").whiteBright(
|
|
74948
74946
|
" \u2709 System "
|
|
74949
|
-
)} ${_chalk.hex(colors.
|
|
74947
|
+
)} ${_chalk.hex(colors.brand1 ?? "#1fb2a6")(formatLogMessage(message))}
|
|
74950
74948
|
`
|
|
74951
74949
|
);
|
|
74952
74950
|
};
|
|
@@ -75331,16 +75329,15 @@ var init_get_env = __esm({
|
|
|
75331
75329
|
};
|
|
75332
75330
|
getThemeColorConfigEnv = (prefix, theme) => {
|
|
75333
75331
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
75334
|
-
return process.env[`${prefix}${themeName}
|
|
75332
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND1`] || process.env[`${prefix}${themeName}DARK_BRAND1`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
75335
75333
|
};
|
|
75336
75334
|
getSingleThemeColorConfigEnv = (prefix) => {
|
|
75337
75335
|
return {
|
|
75338
75336
|
dark: process.env[`${prefix}DARK`],
|
|
75339
75337
|
light: process.env[`${prefix}LIGHT`],
|
|
75340
|
-
|
|
75341
|
-
|
|
75342
|
-
|
|
75343
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
75338
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
75339
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
75340
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
75344
75341
|
success: process.env[`${prefix}SUCCESS`],
|
|
75345
75342
|
info: process.env[`${prefix}INFO`],
|
|
75346
75343
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -75360,10 +75357,9 @@ var init_get_env = __esm({
|
|
|
75360
75357
|
return {
|
|
75361
75358
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
75362
75359
|
background: process.env[`${prefix}BACKGROUND`],
|
|
75363
|
-
|
|
75364
|
-
|
|
75365
|
-
|
|
75366
|
-
accent: process.env[`${prefix}ACCENT`],
|
|
75360
|
+
brand1: process.env[`${prefix}BRAND1`],
|
|
75361
|
+
brand2: process.env[`${prefix}BRAND2`],
|
|
75362
|
+
brand3: process.env[`${prefix}BRAND3`],
|
|
75367
75363
|
success: process.env[`${prefix}SUCCESS`],
|
|
75368
75364
|
info: process.env[`${prefix}INFO`],
|
|
75369
75365
|
warning: process.env[`${prefix}WARNING`],
|
|
@@ -75529,7 +75525,7 @@ var init_set_env = __esm({
|
|
|
75529
75525
|
}
|
|
75530
75526
|
};
|
|
75531
75527
|
setThemeColorConfigEnv = (prefix, config) => {
|
|
75532
|
-
return config?.light?.
|
|
75528
|
+
return config?.light?.brand1 || config?.dark?.brand1 ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
75533
75529
|
};
|
|
75534
75530
|
setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
75535
75531
|
if (config.dark) {
|
|
@@ -75538,17 +75534,14 @@ var init_set_env = __esm({
|
|
|
75538
75534
|
if (config.light) {
|
|
75539
75535
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
75540
75536
|
}
|
|
75541
|
-
if (config.
|
|
75542
|
-
process.env[`${prefix}
|
|
75537
|
+
if (config.brand1) {
|
|
75538
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
75543
75539
|
}
|
|
75544
|
-
if (config.
|
|
75545
|
-
process.env[`${prefix}
|
|
75540
|
+
if (config.brand2) {
|
|
75541
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
75546
75542
|
}
|
|
75547
|
-
if (config.
|
|
75548
|
-
process.env[`${prefix}
|
|
75549
|
-
}
|
|
75550
|
-
if (config.accent) {
|
|
75551
|
-
process.env[`${prefix}ACCENT`] = config.accent;
|
|
75543
|
+
if (config.brand3) {
|
|
75544
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
75552
75545
|
}
|
|
75553
75546
|
if (config.success) {
|
|
75554
75547
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -75579,17 +75572,14 @@ var init_set_env = __esm({
|
|
|
75579
75572
|
if (config.background) {
|
|
75580
75573
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
75581
75574
|
}
|
|
75582
|
-
if (config.
|
|
75583
|
-
process.env[`${prefix}
|
|
75584
|
-
}
|
|
75585
|
-
if (config.secondary) {
|
|
75586
|
-
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
75575
|
+
if (config.brand1) {
|
|
75576
|
+
process.env[`${prefix}BRAND1`] = config.brand1;
|
|
75587
75577
|
}
|
|
75588
|
-
if (config.
|
|
75589
|
-
process.env[`${prefix}
|
|
75578
|
+
if (config.brand2) {
|
|
75579
|
+
process.env[`${prefix}BRAND2`] = config.brand2;
|
|
75590
75580
|
}
|
|
75591
|
-
if (config.
|
|
75592
|
-
process.env[`${prefix}
|
|
75581
|
+
if (config.brand3) {
|
|
75582
|
+
process.env[`${prefix}BRAND3`] = config.brand3;
|
|
75593
75583
|
}
|
|
75594
75584
|
if (config.success) {
|
|
75595
75585
|
process.env[`${prefix}SUCCESS`] = config.success;
|
|
@@ -302519,7 +302509,7 @@ var require_ProtobufDecodeProgrammer = __commonJS({
|
|
|
302519
302509
|
}).map(function(obj) {
|
|
302520
302510
|
return StatementFactory_1.StatementFactory.constant("".concat(PREFIX, "o").concat(obj.index), write_object_function(project)(importer)(obj));
|
|
302521
302511
|
});
|
|
302522
|
-
var
|
|
302512
|
+
var reader = StatementFactory_1.StatementFactory.constant("reader", typescript_1.default.factory.createNewExpression(importer.use("Reader"), void 0, [
|
|
302523
302513
|
typescript_1.default.factory.createIdentifier("input")
|
|
302524
302514
|
]));
|
|
302525
302515
|
return typescript_1.default.factory.createArrowFunction(void 0, void 0, [
|
|
@@ -302527,7 +302517,7 @@ var require_ProtobufDecodeProgrammer = __commonJS({
|
|
|
302527
302517
|
], typescript_1.default.factory.createImportTypeNode(typescript_1.default.factory.createLiteralTypeNode(typescript_1.default.factory.createStringLiteral("typia")), void 0, typescript_1.default.factory.createIdentifier("Resolved"), [
|
|
302528
302518
|
typescript_1.default.factory.createTypeReferenceNode(name !== null && name !== void 0 ? name : TypeFactory_1.TypeFactory.getFullName(project.checker)(type))
|
|
302529
302519
|
], false), void 0, typescript_1.default.factory.createBlock(__spreadArray(__spreadArray(__spreadArray([], __read(importer.declare(modulo)), false), __read(functors), false), [
|
|
302530
|
-
|
|
302520
|
+
reader,
|
|
302531
302521
|
typescript_1.default.factory.createReturnStatement(decode_regular_object(true)(meta.objects[0]))
|
|
302532
302522
|
], false), true));
|
|
302533
302523
|
};
|