@uapkg/diagnostics 1.3.0 → 1.3.1
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/base/Diagnostic.d.ts +22 -19
- package/dist/base/Diagnostic.d.ts.map +1 -1
- package/dist/base/Diagnostic.js +23 -24
- package/dist/base/Diagnostic.js.map +1 -1
- package/dist/base/DiagnosticBag.d.ts +32 -29
- package/dist/base/DiagnosticBag.d.ts.map +1 -1
- package/dist/base/DiagnosticBag.js +75 -76
- package/dist/base/DiagnosticBag.js.map +1 -1
- package/dist/base/DiagnosticFingerprint.d.ts +10 -8
- package/dist/base/DiagnosticFingerprint.d.ts.map +1 -1
- package/dist/base/DiagnosticFingerprint.js +18 -19
- package/dist/base/DiagnosticFingerprint.js.map +1 -1
- package/dist/base/DiagnosticLevel.d.ts +4 -1
- package/dist/base/DiagnosticLevel.d.ts.map +1 -1
- package/dist/base/DiagnosticLevel.js +1 -2
- package/dist/base/Result.d.ts +15 -12
- package/dist/base/Result.d.ts.map +1 -1
- package/dist/base/Result.js +28 -16
- package/dist/base/Result.js.map +1 -1
- package/dist/config/ConfigDiagnostics.d.ts +36 -33
- package/dist/config/ConfigDiagnostics.d.ts.map +1 -1
- package/dist/config/ConfigDiagnostics.js +51 -41
- package/dist/config/ConfigDiagnostics.js.map +1 -1
- package/dist/controlPlane/ControlPlaneDiagnostics.d.ts +22 -19
- package/dist/controlPlane/ControlPlaneDiagnostics.d.ts.map +1 -1
- package/dist/controlPlane/ControlPlaneDiagnostics.js +11 -7
- package/dist/controlPlane/ControlPlaneDiagnostics.js.map +1 -1
- package/dist/general/GeneralDiagnostics.d.ts +16 -13
- package/dist/general/GeneralDiagnostics.d.ts.map +1 -1
- package/dist/general/GeneralDiagnostics.js +34 -27
- package/dist/general/GeneralDiagnostics.js.map +1 -1
- package/dist/index.d.ts +20 -33
- package/dist/index.js +19 -20
- package/dist/installer/InstallerDiagnostics.d.ts +41 -38
- package/dist/installer/InstallerDiagnostics.d.ts.map +1 -1
- package/dist/installer/InstallerDiagnostics.js +86 -56
- package/dist/installer/InstallerDiagnostics.js.map +1 -1
- package/dist/manifest/ManifestDiagnostics.d.ts +50 -47
- package/dist/manifest/ManifestDiagnostics.d.ts.map +1 -1
- package/dist/manifest/ManifestDiagnostics.js +99 -80
- package/dist/manifest/ManifestDiagnostics.js.map +1 -1
- package/dist/pack/PackDiagnostics.d.ts +31 -28
- package/dist/pack/PackDiagnostics.d.ts.map +1 -1
- package/dist/pack/PackDiagnostics.js +70 -64
- package/dist/pack/PackDiagnostics.js.map +1 -1
- package/dist/postinstall/PostinstallDiagnostics.d.ts +35 -32
- package/dist/postinstall/PostinstallDiagnostics.d.ts.map +1 -1
- package/dist/postinstall/PostinstallDiagnostics.js +75 -52
- package/dist/postinstall/PostinstallDiagnostics.js.map +1 -1
- package/dist/publishing/PublishingDiagnostics.d.ts +78 -0
- package/dist/publishing/PublishingDiagnostics.d.ts.map +1 -0
- package/dist/publishing/PublishingDiagnostics.js +14 -0
- package/dist/publishing/PublishingDiagnostics.js.map +1 -0
- package/dist/registry/RegistryDiagnostics.d.ts +51 -48
- package/dist/registry/RegistryDiagnostics.d.ts.map +1 -1
- package/dist/registry/RegistryDiagnostics.js +106 -82
- package/dist/registry/RegistryDiagnostics.js.map +1 -1
- package/dist/registryTools/RegistryToolsDiagnostics.d.ts +97 -94
- package/dist/registryTools/RegistryToolsDiagnostics.d.ts.map +1 -1
- package/dist/registryTools/RegistryToolsDiagnostics.js +91 -40
- package/dist/registryTools/RegistryToolsDiagnostics.js.map +1 -1
- package/dist/resolver/ResolverDiagnostics.d.ts +27 -24
- package/dist/resolver/ResolverDiagnostics.d.ts.map +1 -1
- package/dist/resolver/ResolverDiagnostics.js +59 -43
- package/dist/resolver/ResolverDiagnostics.js.map +1 -1
- package/dist/safety/SafetyDiagnostics.d.ts +19 -16
- package/dist/safety/SafetyDiagnostics.d.ts.map +1 -1
- package/dist/safety/SafetyDiagnostics.js +38 -26
- package/dist/safety/SafetyDiagnostics.js.map +1 -1
- package/dist/spec/SpecDiagnostics.d.ts +17 -14
- package/dist/spec/SpecDiagnostics.d.ts.map +1 -1
- package/dist/spec/SpecDiagnostics.js +37 -27
- package/dist/spec/SpecDiagnostics.js.map +1 -1
- package/dist/types.d.ts +20 -16
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -2
- package/package.json +14 -16
- package/dist/base/DiagnosticLevel.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.js.map +0 -1
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DiagnosticBase } from "../base/Diagnostic.js";
|
|
2
|
+
//#region src/config/ConfigDiagnostics.d.ts
|
|
2
3
|
/** A config file contains invalid JSON and could not be parsed. */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ConfigInvalidJsonDiagnostic = DiagnosticBase<'CONFIG_INVALID_JSON', {
|
|
5
|
+
readonly filePath: string;
|
|
6
|
+
readonly reason: string;
|
|
6
7
|
}>;
|
|
7
8
|
/** Config value type is incompatible with expected merge shape. */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
type ConfigTypeMismatchDiagnostic = DiagnosticBase<'CONFIG_TYPE_MISMATCH', {
|
|
10
|
+
readonly path: string;
|
|
11
|
+
readonly expectedType: string;
|
|
12
|
+
readonly actualType: string;
|
|
13
|
+
readonly source: string;
|
|
14
|
+
readonly filePath?: string;
|
|
14
15
|
}>;
|
|
15
16
|
/** Unknown config key encountered in a config layer. */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
type ConfigUnknownKeyDiagnostic = DiagnosticBase<'CONFIG_UNKNOWN_KEY', {
|
|
18
|
+
readonly path: string;
|
|
19
|
+
readonly source: string;
|
|
20
|
+
readonly filePath?: string;
|
|
20
21
|
}>;
|
|
21
22
|
/** Cross-field semantic mismatch: default registry not defined in registries map. */
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
type ConfigUnresolvedDefaultRegistryDiagnostic = DiagnosticBase<'CONFIG_UNRESOLVED_DEFAULT_REGISTRY', {
|
|
24
|
+
readonly registryName: string;
|
|
24
25
|
}>;
|
|
25
26
|
/** Value failed a narrower semantic validation rule. */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
type ConfigInvalidValueDiagnostic = DiagnosticBase<'CONFIG_INVALID_VALUE', {
|
|
28
|
+
readonly path: string;
|
|
29
|
+
readonly rule: string;
|
|
29
30
|
}>;
|
|
30
31
|
/** Union of all config diagnostics. */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
type ConfigDiagnostic = ConfigInvalidJsonDiagnostic | ConfigTypeMismatchDiagnostic | ConfigUnknownKeyDiagnostic | ConfigUnresolvedDefaultRegistryDiagnostic | ConfigInvalidValueDiagnostic;
|
|
33
|
+
declare function createConfigInvalidJsonDiagnostic(filePath: string, reason: string): ConfigInvalidJsonDiagnostic;
|
|
34
|
+
declare function createConfigTypeMismatchDiagnostic(input: {
|
|
35
|
+
readonly path: string;
|
|
36
|
+
readonly expectedType: string;
|
|
37
|
+
readonly actualType: string;
|
|
38
|
+
readonly source: string;
|
|
39
|
+
readonly filePath?: string;
|
|
39
40
|
}): ConfigTypeMismatchDiagnostic;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
declare function createConfigUnknownKeyDiagnostic(input: {
|
|
42
|
+
readonly path: string;
|
|
43
|
+
readonly source: string;
|
|
44
|
+
readonly filePath?: string;
|
|
44
45
|
}): ConfigUnknownKeyDiagnostic;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
declare function createConfigUnresolvedDefaultRegistryDiagnostic(registryName: string): ConfigUnresolvedDefaultRegistryDiagnostic;
|
|
47
|
+
declare function createConfigInvalidValueDiagnostic(path: string, rule: string): ConfigInvalidValueDiagnostic;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { ConfigDiagnostic, ConfigInvalidJsonDiagnostic, ConfigInvalidValueDiagnostic, ConfigTypeMismatchDiagnostic, ConfigUnknownKeyDiagnostic, ConfigUnresolvedDefaultRegistryDiagnostic, createConfigInvalidJsonDiagnostic, createConfigInvalidValueDiagnostic, createConfigTypeMismatchDiagnostic, createConfigUnknownKeyDiagnostic, createConfigUnresolvedDefaultRegistryDiagnostic };
|
|
47
50
|
//# sourceMappingURL=ConfigDiagnostics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigDiagnostics.d.ts","
|
|
1
|
+
{"version":3,"file":"ConfigDiagnostics.d.ts","names":[],"sources":["../../src/config/ConfigDiagnostics.ts"],"mappings":";;;KAGY,8BAA8B;WAG7B;WACA;;;KAKD,+BAA+B;WAG9B;WACA;WACA;WACA;WACA;;;KAKD,6BAA6B;WAG5B;WACA;WACA;;;KAKD,4CAA4C;WAG3C;;;KAKD,+BAA+B;WAG9B;WACA;;;KAKD,mBACR,8BACA,+BACA,6BACA,4CACA;iBAEY,kCAAkC,kBAAkB,iBAAiB;iBAUrE,mCAAmC;WACxC;WACA;WACA;WACA;WACA;IACP;iBAUY,iCAAiC;WACtC;WACA;WACA;IACP;iBAUY,gDACd,uBACC;iBAWa,mCAAmC,cAAc,eAAe"}
|
|
@@ -1,47 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
//#region src/config/ConfigDiagnostics.ts
|
|
2
|
+
function createConfigInvalidJsonDiagnostic(filePath, reason) {
|
|
3
|
+
return {
|
|
4
|
+
level: "warning",
|
|
5
|
+
code: "CONFIG_INVALID_JSON",
|
|
6
|
+
message: `Ignoring invalid JSON in config file "${filePath}".`,
|
|
7
|
+
hint: "Fix JSON syntax in this file to restore those settings.",
|
|
8
|
+
data: {
|
|
9
|
+
filePath,
|
|
10
|
+
reason
|
|
11
|
+
}
|
|
12
|
+
};
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
function createConfigTypeMismatchDiagnostic(input) {
|
|
15
|
+
return {
|
|
16
|
+
level: "warning",
|
|
17
|
+
code: "CONFIG_TYPE_MISMATCH",
|
|
18
|
+
message: `Ignoring config value at "${input.path}" because it is ${input.actualType}, expected ${input.expectedType}.`,
|
|
19
|
+
hint: "Use a value type compatible with this config key.",
|
|
20
|
+
data: input
|
|
21
|
+
};
|
|
18
22
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
function createConfigUnknownKeyDiagnostic(input) {
|
|
24
|
+
return {
|
|
25
|
+
level: "warning",
|
|
26
|
+
code: "CONFIG_UNKNOWN_KEY",
|
|
27
|
+
message: `Ignoring unknown config key "${input.path}".`,
|
|
28
|
+
hint: "Remove or rename this key to a supported configuration path.",
|
|
29
|
+
data: input
|
|
30
|
+
};
|
|
27
31
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
function createConfigUnresolvedDefaultRegistryDiagnostic(registryName) {
|
|
33
|
+
return {
|
|
34
|
+
level: "warning",
|
|
35
|
+
code: "CONFIG_UNRESOLVED_DEFAULT_REGISTRY",
|
|
36
|
+
message: `Default registry "${registryName}" is not defined under "registries".`,
|
|
37
|
+
emitPolicy: "once",
|
|
38
|
+
hint: `Add "registries.${registryName}" or set a different default with 'uapkg registry use <name>'.`,
|
|
39
|
+
data: { registryName }
|
|
40
|
+
};
|
|
37
41
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
function createConfigInvalidValueDiagnostic(path, rule) {
|
|
43
|
+
return {
|
|
44
|
+
level: "warning",
|
|
45
|
+
code: "CONFIG_INVALID_VALUE",
|
|
46
|
+
message: `Config value at "${path}" may be invalid: ${rule}.`,
|
|
47
|
+
hint: "Update this value to match the expected format for this key.",
|
|
48
|
+
data: {
|
|
49
|
+
path,
|
|
50
|
+
rule
|
|
51
|
+
}
|
|
52
|
+
};
|
|
46
53
|
}
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
export { createConfigInvalidJsonDiagnostic, createConfigInvalidValueDiagnostic, createConfigTypeMismatchDiagnostic, createConfigUnknownKeyDiagnostic, createConfigUnresolvedDefaultRegistryDiagnostic };
|
|
47
57
|
//# sourceMappingURL=ConfigDiagnostics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigDiagnostics.js","
|
|
1
|
+
{"version":3,"file":"ConfigDiagnostics.js","names":[],"sources":["../../src/config/ConfigDiagnostics.ts"],"sourcesContent":["import type { DiagnosticBase } from '../base/Diagnostic.js';\n\n/** A config file contains invalid JSON and could not be parsed. */\nexport type ConfigInvalidJsonDiagnostic = DiagnosticBase<\n 'CONFIG_INVALID_JSON',\n {\n readonly filePath: string;\n readonly reason: string;\n }\n>;\n\n/** Config value type is incompatible with expected merge shape. */\nexport type ConfigTypeMismatchDiagnostic = DiagnosticBase<\n 'CONFIG_TYPE_MISMATCH',\n {\n readonly path: string;\n readonly expectedType: string;\n readonly actualType: string;\n readonly source: string;\n readonly filePath?: string;\n }\n>;\n\n/** Unknown config key encountered in a config layer. */\nexport type ConfigUnknownKeyDiagnostic = DiagnosticBase<\n 'CONFIG_UNKNOWN_KEY',\n {\n readonly path: string;\n readonly source: string;\n readonly filePath?: string;\n }\n>;\n\n/** Cross-field semantic mismatch: default registry not defined in registries map. */\nexport type ConfigUnresolvedDefaultRegistryDiagnostic = DiagnosticBase<\n 'CONFIG_UNRESOLVED_DEFAULT_REGISTRY',\n {\n readonly registryName: string;\n }\n>;\n\n/** Value failed a narrower semantic validation rule. */\nexport type ConfigInvalidValueDiagnostic = DiagnosticBase<\n 'CONFIG_INVALID_VALUE',\n {\n readonly path: string;\n readonly rule: string;\n }\n>;\n\n/** Union of all config diagnostics. */\nexport type ConfigDiagnostic =\n | ConfigInvalidJsonDiagnostic\n | ConfigTypeMismatchDiagnostic\n | ConfigUnknownKeyDiagnostic\n | ConfigUnresolvedDefaultRegistryDiagnostic\n | ConfigInvalidValueDiagnostic;\n\nexport function createConfigInvalidJsonDiagnostic(filePath: string, reason: string): ConfigInvalidJsonDiagnostic {\n return {\n level: 'warning',\n code: 'CONFIG_INVALID_JSON',\n message: `Ignoring invalid JSON in config file \"${filePath}\".`,\n hint: 'Fix JSON syntax in this file to restore those settings.',\n data: { filePath, reason },\n };\n}\n\nexport function createConfigTypeMismatchDiagnostic(input: {\n readonly path: string;\n readonly expectedType: string;\n readonly actualType: string;\n readonly source: string;\n readonly filePath?: string;\n}): ConfigTypeMismatchDiagnostic {\n return {\n level: 'warning',\n code: 'CONFIG_TYPE_MISMATCH',\n message: `Ignoring config value at \"${input.path}\" because it is ${input.actualType}, expected ${input.expectedType}.`,\n hint: 'Use a value type compatible with this config key.',\n data: input,\n };\n}\n\nexport function createConfigUnknownKeyDiagnostic(input: {\n readonly path: string;\n readonly source: string;\n readonly filePath?: string;\n}): ConfigUnknownKeyDiagnostic {\n return {\n level: 'warning',\n code: 'CONFIG_UNKNOWN_KEY',\n message: `Ignoring unknown config key \"${input.path}\".`,\n hint: 'Remove or rename this key to a supported configuration path.',\n data: input,\n };\n}\n\nexport function createConfigUnresolvedDefaultRegistryDiagnostic(\n registryName: string,\n): ConfigUnresolvedDefaultRegistryDiagnostic {\n return {\n level: 'warning',\n code: 'CONFIG_UNRESOLVED_DEFAULT_REGISTRY',\n message: `Default registry \"${registryName}\" is not defined under \"registries\".`,\n emitPolicy: 'once',\n hint: `Add \"registries.${registryName}\" or set a different default with 'uapkg registry use <name>'.`,\n data: { registryName },\n };\n}\n\nexport function createConfigInvalidValueDiagnostic(path: string, rule: string): ConfigInvalidValueDiagnostic {\n return {\n level: 'warning',\n code: 'CONFIG_INVALID_VALUE',\n message: `Config value at \"${path}\" may be invalid: ${rule}.`,\n hint: 'Update this value to match the expected format for this key.',\n data: { path, rule },\n };\n}\n"],"mappings":";AA0DA,SAAgB,kCAAkC,UAAkB,QAA6C;CAC/G,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,yCAAyC,SAAS;EAC3D,MAAM;EACN,MAAM;GAAE;GAAU;EAAO;CAC3B;AACF;AAEA,SAAgB,mCAAmC,OAMlB;CAC/B,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,6BAA6B,MAAM,KAAK,kBAAkB,MAAM,WAAW,aAAa,MAAM,aAAa;EACpH,MAAM;EACN,MAAM;CACR;AACF;AAEA,SAAgB,iCAAiC,OAIlB;CAC7B,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,gCAAgC,MAAM,KAAK;EACpD,MAAM;EACN,MAAM;CACR;AACF;AAEA,SAAgB,gDACd,cAC2C;CAC3C,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,qBAAqB,aAAa;EAC3C,YAAY;EACZ,MAAM,mBAAmB,aAAa;EACtC,MAAM,EAAE,aAAa;CACvB;AACF;AAEA,SAAgB,mCAAmC,MAAc,MAA4C;CAC3G,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,oBAAoB,KAAK,oBAAoB,KAAK;EAC3D,MAAM;EACN,MAAM;GAAE;GAAM;EAAK;CACrB;AACF"}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { DiagnosticBase } from "../base/Diagnostic.js";
|
|
2
|
+
//#region src/controlPlane/ControlPlaneDiagnostics.d.ts
|
|
3
|
+
type LoginDiagnosticCode = 'LOGIN_ACCESS_DENIED' | 'LOGIN_AUTHORIZATION_TIMEOUT' | 'LOGIN_AUTHORIZATION_RESPONSE_INVALID' | 'LOGIN_REAUTHORIZATION_CONFLICT' | 'LOGIN_OAUTH_ERROR' | 'LOGIN_FAILED';
|
|
4
|
+
interface LoginDiagnosticData {
|
|
5
|
+
readonly oauthError?: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
interface ControlPlaneCommandFailedDiagnosticData {
|
|
8
|
+
readonly operation: string;
|
|
9
|
+
readonly serverCode?: string;
|
|
10
|
+
readonly status?: number;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
type LoginAccessDeniedDiagnostic = DiagnosticBase<'LOGIN_ACCESS_DENIED', LoginDiagnosticData>;
|
|
13
|
+
type LoginAuthorizationTimeoutDiagnostic = DiagnosticBase<'LOGIN_AUTHORIZATION_TIMEOUT', LoginDiagnosticData>;
|
|
14
|
+
type LoginAuthorizationResponseInvalidDiagnostic = DiagnosticBase<'LOGIN_AUTHORIZATION_RESPONSE_INVALID', LoginDiagnosticData>;
|
|
15
|
+
type LoginReauthorizationConflictDiagnostic = DiagnosticBase<'LOGIN_REAUTHORIZATION_CONFLICT', LoginDiagnosticData>;
|
|
16
|
+
type LoginOAuthErrorDiagnostic = DiagnosticBase<'LOGIN_OAUTH_ERROR', LoginDiagnosticData>;
|
|
17
|
+
type LoginFailedDiagnostic = DiagnosticBase<'LOGIN_FAILED', LoginDiagnosticData>;
|
|
18
|
+
type ControlPlaneCommandFailedDiagnostic = DiagnosticBase<'CONTROL_PLANE_COMMAND_FAILED', ControlPlaneCommandFailedDiagnosticData>;
|
|
19
|
+
type ControlPlaneDiagnostic = LoginAccessDeniedDiagnostic | LoginAuthorizationTimeoutDiagnostic | LoginAuthorizationResponseInvalidDiagnostic | LoginReauthorizationConflictDiagnostic | LoginOAuthErrorDiagnostic | LoginFailedDiagnostic | ControlPlaneCommandFailedDiagnostic;
|
|
20
|
+
type LoginDiagnosticByCode<C extends LoginDiagnosticCode> = Extract<ControlPlaneDiagnostic, {
|
|
21
|
+
code: C;
|
|
21
22
|
}>;
|
|
22
|
-
|
|
23
|
+
declare function createControlPlaneCommandFailedDiagnostic(message: string, data: ControlPlaneCommandFailedDiagnosticData): ControlPlaneCommandFailedDiagnostic;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ControlPlaneCommandFailedDiagnostic, ControlPlaneCommandFailedDiagnosticData, ControlPlaneDiagnostic, LoginAccessDeniedDiagnostic, LoginAuthorizationResponseInvalidDiagnostic, LoginAuthorizationTimeoutDiagnostic, LoginDiagnosticByCode, LoginDiagnosticCode, LoginDiagnosticData, LoginFailedDiagnostic, LoginOAuthErrorDiagnostic, LoginReauthorizationConflictDiagnostic, createControlPlaneCommandFailedDiagnostic };
|
|
23
26
|
//# sourceMappingURL=ControlPlaneDiagnostics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlPlaneDiagnostics.d.ts","
|
|
1
|
+
{"version":3,"file":"ControlPlaneDiagnostics.d.ts","names":[],"sources":["../../src/controlPlane/ControlPlaneDiagnostics.ts"],"mappings":";;KAEY;UAQK;WACN;;UAGM;WACN;WACA;WACA;;KAGC,8BAA8B,sCAAsC;KACpE,sCAAsC,8CAA8C;KACpF,8CAA8C,uDAExD;KAEU,yCAAyC,iDAEnD;KAEU,4BAA4B,oCAAoC;KAChE,wBAAwB,+BAA+B;KACvD,sCAAsC,+CAEhD;KAGU,yBACR,8BACA,sCACA,8CACA,yCACA,4BACA,wBACA;KAEQ,sBAAsB,UAAU,uBAAuB,QAAQ;EAA0B,MAAM;;iBAE3F,0CACd,iBACA,MAAM,0CACL"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/controlPlane/ControlPlaneDiagnostics.ts
|
|
2
|
+
function createControlPlaneCommandFailedDiagnostic(message, data) {
|
|
3
|
+
return {
|
|
4
|
+
level: "error",
|
|
5
|
+
code: "CONTROL_PLANE_COMMAND_FAILED",
|
|
6
|
+
message,
|
|
7
|
+
data
|
|
8
|
+
};
|
|
8
9
|
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { createControlPlaneCommandFailedDiagnostic };
|
|
9
13
|
//# sourceMappingURL=ControlPlaneDiagnostics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlPlaneDiagnostics.js","
|
|
1
|
+
{"version":3,"file":"ControlPlaneDiagnostics.js","names":[],"sources":["../../src/controlPlane/ControlPlaneDiagnostics.ts"],"sourcesContent":["import type { DiagnosticBase } from '../base/Diagnostic.js';\n\nexport type LoginDiagnosticCode =\n | 'LOGIN_ACCESS_DENIED'\n | 'LOGIN_AUTHORIZATION_TIMEOUT'\n | 'LOGIN_AUTHORIZATION_RESPONSE_INVALID'\n | 'LOGIN_REAUTHORIZATION_CONFLICT'\n | 'LOGIN_OAUTH_ERROR'\n | 'LOGIN_FAILED';\n\nexport interface LoginDiagnosticData {\n readonly oauthError?: string;\n}\n\nexport interface ControlPlaneCommandFailedDiagnosticData {\n readonly operation: string;\n readonly serverCode?: string;\n readonly status?: number;\n}\n\nexport type LoginAccessDeniedDiagnostic = DiagnosticBase<'LOGIN_ACCESS_DENIED', LoginDiagnosticData>;\nexport type LoginAuthorizationTimeoutDiagnostic = DiagnosticBase<'LOGIN_AUTHORIZATION_TIMEOUT', LoginDiagnosticData>;\nexport type LoginAuthorizationResponseInvalidDiagnostic = DiagnosticBase<\n 'LOGIN_AUTHORIZATION_RESPONSE_INVALID',\n LoginDiagnosticData\n>;\nexport type LoginReauthorizationConflictDiagnostic = DiagnosticBase<\n 'LOGIN_REAUTHORIZATION_CONFLICT',\n LoginDiagnosticData\n>;\nexport type LoginOAuthErrorDiagnostic = DiagnosticBase<'LOGIN_OAUTH_ERROR', LoginDiagnosticData>;\nexport type LoginFailedDiagnostic = DiagnosticBase<'LOGIN_FAILED', LoginDiagnosticData>;\nexport type ControlPlaneCommandFailedDiagnostic = DiagnosticBase<\n 'CONTROL_PLANE_COMMAND_FAILED',\n ControlPlaneCommandFailedDiagnosticData\n>;\n\nexport type ControlPlaneDiagnostic =\n | LoginAccessDeniedDiagnostic\n | LoginAuthorizationTimeoutDiagnostic\n | LoginAuthorizationResponseInvalidDiagnostic\n | LoginReauthorizationConflictDiagnostic\n | LoginOAuthErrorDiagnostic\n | LoginFailedDiagnostic\n | ControlPlaneCommandFailedDiagnostic;\n\nexport type LoginDiagnosticByCode<C extends LoginDiagnosticCode> = Extract<ControlPlaneDiagnostic, { code: C }>;\n\nexport function createControlPlaneCommandFailedDiagnostic(\n message: string,\n data: ControlPlaneCommandFailedDiagnosticData,\n): ControlPlaneCommandFailedDiagnostic {\n return {\n level: 'error',\n code: 'CONTROL_PLANE_COMMAND_FAILED',\n message,\n data,\n };\n}\n"],"mappings":";AAgDA,SAAgB,0CACd,SACA,MACqC;CACrC,OAAO;EACL,OAAO;EACP,MAAM;EACN;EACA;CACF;AACF"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DiagnosticBase } from "../base/Diagnostic.js";
|
|
2
|
+
//#region src/general/GeneralDiagnostics.d.ts
|
|
2
3
|
/** Generic JSON or data parse error. */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type ParseErrorDiagnostic = DiagnosticBase<'PARSE_ERROR', {
|
|
5
|
+
readonly filePath?: string;
|
|
6
|
+
readonly reason: string;
|
|
6
7
|
}>;
|
|
7
8
|
/** File system I/O error. */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type IoErrorDiagnostic = DiagnosticBase<'IO_ERROR', {
|
|
10
|
+
readonly path: string;
|
|
11
|
+
readonly reason: string;
|
|
11
12
|
}>;
|
|
12
13
|
/** Catch-all for truly unexpected situations (should be rare). */
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
type UnknownErrorDiagnostic = DiagnosticBase<'UNKNOWN_ERROR', {
|
|
15
|
+
readonly reason: string;
|
|
15
16
|
}>;
|
|
16
17
|
/** Union of all general diagnostics. */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
type GeneralDiagnostic = ParseErrorDiagnostic | IoErrorDiagnostic | UnknownErrorDiagnostic;
|
|
19
|
+
declare function createParseErrorDiagnostic(reason: string, filePath?: string): ParseErrorDiagnostic;
|
|
20
|
+
declare function createIoErrorDiagnostic(path: string, reason: string): IoErrorDiagnostic;
|
|
21
|
+
declare function createUnknownErrorDiagnostic(reason: string): UnknownErrorDiagnostic;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { GeneralDiagnostic, IoErrorDiagnostic, ParseErrorDiagnostic, UnknownErrorDiagnostic, createIoErrorDiagnostic, createParseErrorDiagnostic, createUnknownErrorDiagnostic };
|
|
21
24
|
//# sourceMappingURL=GeneralDiagnostics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralDiagnostics.d.ts","
|
|
1
|
+
{"version":3,"file":"GeneralDiagnostics.d.ts","names":[],"sources":["../../src/general/GeneralDiagnostics.ts"],"mappings":";;;KAOY,uBAAuB;WAGtB;WACA;;;KAKD,oBAAoB;WAGnB;WACA;;;KAKD,yBAAyB;WAGxB;;;KAKD,oBAAoB,uBAAuB,oBAAoB;iBAM3D,2BAA2B,gBAAgB,oBAAoB;iBAU/D,wBAAwB,cAAc,iBAAiB;iBAUvD,6BAA6B,iBAAiB"}
|
|
@@ -1,31 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
//#region src/general/GeneralDiagnostics.ts
|
|
2
|
+
function createParseErrorDiagnostic(reason, filePath) {
|
|
3
|
+
return {
|
|
4
|
+
level: "error",
|
|
5
|
+
code: "PARSE_ERROR",
|
|
6
|
+
message: filePath ? `Parse error in "${filePath}": ${reason}.` : `Parse error: ${reason}.`,
|
|
7
|
+
hint: "Ensure the input is well-formed.",
|
|
8
|
+
data: {
|
|
9
|
+
filePath,
|
|
10
|
+
reason
|
|
11
|
+
}
|
|
12
|
+
};
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
function createIoErrorDiagnostic(path, reason) {
|
|
15
|
+
return {
|
|
16
|
+
level: "error",
|
|
17
|
+
code: "IO_ERROR",
|
|
18
|
+
message: `I/O error at "${path}": ${reason}.`,
|
|
19
|
+
hint: "Check file permissions and that the path exists.",
|
|
20
|
+
data: {
|
|
21
|
+
path,
|
|
22
|
+
reason
|
|
23
|
+
}
|
|
24
|
+
};
|
|
21
25
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
function createUnknownErrorDiagnostic(reason) {
|
|
27
|
+
return {
|
|
28
|
+
level: "error",
|
|
29
|
+
code: "UNKNOWN_ERROR",
|
|
30
|
+
message: `An unexpected error occurred: ${reason}.`,
|
|
31
|
+
hint: "If this persists, please report a bug.",
|
|
32
|
+
data: { reason }
|
|
33
|
+
};
|
|
30
34
|
}
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { createIoErrorDiagnostic, createParseErrorDiagnostic, createUnknownErrorDiagnostic };
|
|
31
38
|
//# sourceMappingURL=GeneralDiagnostics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralDiagnostics.js","
|
|
1
|
+
{"version":3,"file":"GeneralDiagnostics.js","names":[],"sources":["../../src/general/GeneralDiagnostics.ts"],"sourcesContent":["import type { DiagnosticBase } from '../base/Diagnostic.js';\n\n// ---------------------------------------------------------------------------\n// General-purpose diagnostic codes\n// ---------------------------------------------------------------------------\n\n/** Generic JSON or data parse error. */\nexport type ParseErrorDiagnostic = DiagnosticBase<\n 'PARSE_ERROR',\n {\n readonly filePath?: string;\n readonly reason: string;\n }\n>;\n\n/** File system I/O error. */\nexport type IoErrorDiagnostic = DiagnosticBase<\n 'IO_ERROR',\n {\n readonly path: string;\n readonly reason: string;\n }\n>;\n\n/** Catch-all for truly unexpected situations (should be rare). */\nexport type UnknownErrorDiagnostic = DiagnosticBase<\n 'UNKNOWN_ERROR',\n {\n readonly reason: string;\n }\n>;\n\n/** Union of all general diagnostics. */\nexport type GeneralDiagnostic = ParseErrorDiagnostic | IoErrorDiagnostic | UnknownErrorDiagnostic;\n\n// ---------------------------------------------------------------------------\n// Factory helpers\n// ---------------------------------------------------------------------------\n\nexport function createParseErrorDiagnostic(reason: string, filePath?: string): ParseErrorDiagnostic {\n return {\n level: 'error',\n code: 'PARSE_ERROR',\n message: filePath ? `Parse error in \"${filePath}\": ${reason}.` : `Parse error: ${reason}.`,\n hint: 'Ensure the input is well-formed.',\n data: { filePath, reason },\n };\n}\n\nexport function createIoErrorDiagnostic(path: string, reason: string): IoErrorDiagnostic {\n return {\n level: 'error',\n code: 'IO_ERROR',\n message: `I/O error at \"${path}\": ${reason}.`,\n hint: 'Check file permissions and that the path exists.',\n data: { path, reason },\n };\n}\n\nexport function createUnknownErrorDiagnostic(reason: string): UnknownErrorDiagnostic {\n return {\n level: 'error',\n code: 'UNKNOWN_ERROR',\n message: `An unexpected error occurred: ${reason}.`,\n hint: 'If this persists, please report a bug.',\n data: { reason },\n };\n}\n"],"mappings":";AAuCA,SAAgB,2BAA2B,QAAgB,UAAyC;CAClG,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,WAAW,mBAAmB,SAAS,KAAK,OAAO,KAAK,gBAAgB,OAAO;EACxF,MAAM;EACN,MAAM;GAAE;GAAU;EAAO;CAC3B;AACF;AAEA,SAAgB,wBAAwB,MAAc,QAAmC;CACvF,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,iBAAiB,KAAK,KAAK,OAAO;EAC3C,MAAM;EACN,MAAM;GAAE;GAAM;EAAO;CACvB;AACF;AAEA,SAAgB,6BAA6B,QAAwC;CACnF,OAAO;EACL,OAAO;EACP,MAAM;EACN,SAAS,iCAAiC,OAAO;EACjD,MAAM;EACN,MAAM,EAAE,OAAO;CACjB;AACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export type
|
|
21
|
-
export { createPostinstallDuplicateEntryDiagnostic, createPostinstallEsbuildErrorDiagnostic, createPostinstallInvalidExportDiagnostic, createPostinstallLoadFailedDiagnostic, createPostinstallMarkerCorruptDiagnostic, createPostinstallPolicyDeniedDiagnostic, } from './postinstall/PostinstallDiagnostics.js';
|
|
22
|
-
export type { CacheCorruptDiagnostic, CacheIdentifierCollisionDiagnostic, CacheReadErrorDiagnostic, GitErrorDiagnostic, LockAcquisitionFailedDiagnostic, NetworkErrorDiagnostic, RegistryDiagnostic, RegistryNotFoundDiagnostic, RegistryUnreachableDiagnostic, SchemaInvalidDiagnostic, } from './registry/RegistryDiagnostics.js';
|
|
23
|
-
export { createCacheCorruptDiagnostic, createCacheIdentifierCollisionDiagnostic, createCacheReadErrorDiagnostic, createGitErrorDiagnostic, createLockAcquisitionFailedDiagnostic, createNetworkErrorDiagnostic, createRegistryNotFoundDiagnostic, createRegistryUnreachableDiagnostic, createSchemaInvalidDiagnostic, } from './registry/RegistryDiagnostics.js';
|
|
24
|
-
export type { RegistryToolsDependencyNotInRegistryDiagnostic, RegistryToolsDependencyRangeUnreachableDiagnostic, RegistryToolsDiagnostic, RegistryToolsExternalRegistryDeniedDiagnostic, RegistryToolsExternalRegistryNotAllowedDiagnostic, RegistryToolsIntegrityMismatchDiagnostic, RegistryToolsOfficialPolicyViolationDiagnostic, RegistryToolsPackageMissingDiagnostic, RegistryToolsPackageSourceMismatchDiagnostic, RegistryToolsPathMismatchDiagnostic, RegistryToolsReleaseFileNameInvalidDiagnostic, RegistryToolsRemovalDeniedDiagnostic, RegistryToolsUnknownKeyDiagnostic, RegistryToolsVersionExistsDiagnostic, RegistryToolsVersionNotFoundDiagnostic, RegistryToolsVersionsUnsortedDiagnostic, } from './registryTools/RegistryToolsDiagnostics.js';
|
|
25
|
-
export { createRegistryToolsDependencyNotInRegistryDiagnostic, createRegistryToolsDependencyRangeUnreachableDiagnostic, createRegistryToolsExternalRegistryDeniedDiagnostic, createRegistryToolsExternalRegistryNotAllowedDiagnostic, createRegistryToolsIntegrityMismatchDiagnostic, createRegistryToolsOfficialPolicyViolationDiagnostic, createRegistryToolsPackageMissingDiagnostic, createRegistryToolsPackageSourceMismatchDiagnostic, createRegistryToolsPathMismatchDiagnostic, createRegistryToolsReleaseFileNameInvalidDiagnostic, createRegistryToolsRemovalDeniedDiagnostic, createRegistryToolsUnknownKeyDiagnostic, createRegistryToolsVersionExistsDiagnostic, createRegistryToolsVersionNotFoundDiagnostic, createRegistryToolsVersionsUnsortedDiagnostic, } from './registryTools/RegistryToolsDiagnostics.js';
|
|
26
|
-
export type { CircularDepDiagnostic, PackageNotFoundDiagnostic, RegistryNameCollisionDiagnostic, ResolverDiagnostic, VersionConflictDiagnostic, VersionNotFoundDiagnostic, } from './resolver/ResolverDiagnostics.js';
|
|
27
|
-
export { createCircularDepDiagnostic, createPackageNotFoundDiagnostic, createRegistryNameCollisionDiagnostic, createVersionConflictDiagnostic, createVersionNotFoundDiagnostic, } from './resolver/ResolverDiagnostics.js';
|
|
28
|
-
export type { SafetyDiagnostic, SafetyOverriddenByForceDiagnostic, SafetyPathNotProjectManifestDiagnostic, SafetyTargetExistsNoManifestDiagnostic, } from './safety/SafetyDiagnostics.js';
|
|
29
|
-
export { createSafetyOverriddenByForceDiagnostic, createSafetyPathNotProjectManifestDiagnostic, createSafetyTargetExistsNoManifestDiagnostic, } from './safety/SafetyDiagnostics.js';
|
|
30
|
-
export type { InvalidOrgNameDiagnostic, InvalidPackageSpecDiagnostic, InvalidVersionRangeDiagnostic, SpecParseDiagnostic, } from './spec/SpecDiagnostics.js';
|
|
31
|
-
export { createInvalidOrgNameDiagnostic, createInvalidPackageSpecDiagnostic, createInvalidVersionRangeDiagnostic, } from './spec/SpecDiagnostics.js';
|
|
32
|
-
export type { Diagnostic, DiagnosticByCode, DiagnosticCode } from './types.js';
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { DiagnosticLevel } from "./base/DiagnosticLevel.js";
|
|
2
|
+
import { DiagnosticBase, DiagnosticEmitPolicy, createDiagnostic } from "./base/Diagnostic.js";
|
|
3
|
+
import { ConfigDiagnostic, ConfigInvalidJsonDiagnostic, ConfigInvalidValueDiagnostic, ConfigTypeMismatchDiagnostic, ConfigUnknownKeyDiagnostic, ConfigUnresolvedDefaultRegistryDiagnostic, createConfigInvalidJsonDiagnostic, createConfigInvalidValueDiagnostic, createConfigTypeMismatchDiagnostic, createConfigUnknownKeyDiagnostic, createConfigUnresolvedDefaultRegistryDiagnostic } from "./config/ConfigDiagnostics.js";
|
|
4
|
+
import { ControlPlaneCommandFailedDiagnostic, ControlPlaneCommandFailedDiagnosticData, ControlPlaneDiagnostic, LoginAccessDeniedDiagnostic, LoginAuthorizationResponseInvalidDiagnostic, LoginAuthorizationTimeoutDiagnostic, LoginDiagnosticByCode, LoginDiagnosticCode, LoginDiagnosticData, LoginFailedDiagnostic, LoginOAuthErrorDiagnostic, LoginReauthorizationConflictDiagnostic, createControlPlaneCommandFailedDiagnostic } from "./controlPlane/ControlPlaneDiagnostics.js";
|
|
5
|
+
import { GeneralDiagnostic, IoErrorDiagnostic, ParseErrorDiagnostic, UnknownErrorDiagnostic, createIoErrorDiagnostic, createParseErrorDiagnostic, createUnknownErrorDiagnostic } from "./general/GeneralDiagnostics.js";
|
|
6
|
+
import { DiskRemoveFailedDiagnostic, DownloadFailedDiagnostic, DownloadHttpStatusDiagnostic, ExtractionFailedDiagnostic, InstallerDiagnostic, IntegrityMismatchDiagnostic, NetworkRetriesExhaustedDiagnostic, NetworkTimeoutDiagnostic, createDiskRemoveFailedDiagnostic, createDownloadFailedDiagnostic, createDownloadHttpStatusDiagnostic, createExtractionFailedDiagnostic, createIntegrityMismatchDiagnostic, createNetworkRetriesExhaustedDiagnostic, createNetworkTimeoutDiagnostic } from "./installer/InstallerDiagnostics.js";
|
|
7
|
+
import { DependencyNotFoundDiagnostic, ForbiddenOverridesDiagnostic, LockfileInvalidDiagnostic, LockfileMissingDiagnostic, LockfileOutOfSyncDiagnostic, ManifestDiagnostic, ManifestInvalidDiagnostic, ManifestReadErrorDiagnostic, ManifestWriteErrorDiagnostic, UnresolvedRegistryDiagnostic, createDependencyNotFoundDiagnostic, createForbiddenOverridesDiagnostic, createLockfileInvalidDiagnostic, createLockfileMissingDiagnostic, createLockfileOutOfSyncDiagnostic, createManifestInvalidDiagnostic, createManifestReadErrorDiagnostic, createManifestWriteErrorDiagnostic, createUnresolvedRegistryDiagnostic } from "./manifest/ManifestDiagnostics.js";
|
|
8
|
+
import { CyclicSymlinkDiagnostic, InvalidPathDiagnostic, LfsSkippedDiagnostic, NoFilesSelectedDiagnostic, OutFileIsDirectoryDiagnostic, PackDiagnostic, PluginRootNotFoundDiagnostic, SymlinkOutsideRootDiagnostic, UnresolvedLfsDiagnostic, UpluginMissingDiagnostic, createCyclicSymlinkDiagnostic, createInvalidPathDiagnostic, createLfsSkippedDiagnostic, createNoFilesSelectedDiagnostic, createOutFileIsDirectoryDiagnostic, createPluginRootNotFoundDiagnostic, createSymlinkOutsideRootDiagnostic, createUnresolvedLfsDiagnostic, createUpluginMissingDiagnostic } from "./pack/PackDiagnostics.js";
|
|
9
|
+
import { PostinstallDiagnostic, PostinstallDuplicateEntryDiagnostic, PostinstallEsbuildErrorDiagnostic, PostinstallInvalidExportDiagnostic, PostinstallLoadFailedDiagnostic, PostinstallMarkerCorruptDiagnostic, PostinstallPolicyDeniedDiagnostic, createPostinstallDuplicateEntryDiagnostic, createPostinstallEsbuildErrorDiagnostic, createPostinstallInvalidExportDiagnostic, createPostinstallLoadFailedDiagnostic, createPostinstallMarkerCorruptDiagnostic, createPostinstallPolicyDeniedDiagnostic } from "./postinstall/PostinstallDiagnostics.js";
|
|
10
|
+
import { PublishDiagnosticFact, PublishDiagnosticResource, PublishRequestFailedDiagnostic, PublishRequestFailedDiagnosticData, PublishingDiagnostic, createPublishRequestFailedDiagnostic } from "./publishing/PublishingDiagnostics.js";
|
|
11
|
+
import { CacheCorruptDiagnostic, CacheIdentifierCollisionDiagnostic, CacheReadErrorDiagnostic, GitErrorDiagnostic, LockAcquisitionFailedDiagnostic, NetworkErrorDiagnostic, RegistryDiagnostic, RegistryNotFoundDiagnostic, RegistryUnreachableDiagnostic, SchemaInvalidDiagnostic, createCacheCorruptDiagnostic, createCacheIdentifierCollisionDiagnostic, createCacheReadErrorDiagnostic, createGitErrorDiagnostic, createLockAcquisitionFailedDiagnostic, createNetworkErrorDiagnostic, createRegistryNotFoundDiagnostic, createRegistryUnreachableDiagnostic, createSchemaInvalidDiagnostic } from "./registry/RegistryDiagnostics.js";
|
|
12
|
+
import { RegistryToolsDependencyNotInRegistryDiagnostic, RegistryToolsDependencyRangeUnreachableDiagnostic, RegistryToolsDiagnostic, RegistryToolsExternalRegistryDeniedDiagnostic, RegistryToolsExternalRegistryNotAllowedDiagnostic, RegistryToolsIntegrityMismatchDiagnostic, RegistryToolsOfficialPolicyViolationDiagnostic, RegistryToolsPackageMissingDiagnostic, RegistryToolsPackageSourceMismatchDiagnostic, RegistryToolsPathMismatchDiagnostic, RegistryToolsReleaseFileNameInvalidDiagnostic, RegistryToolsRemovalDeniedDiagnostic, RegistryToolsUnknownKeyDiagnostic, RegistryToolsVersionExistsDiagnostic, RegistryToolsVersionNotFoundDiagnostic, RegistryToolsVersionsUnsortedDiagnostic, createRegistryToolsDependencyNotInRegistryDiagnostic, createRegistryToolsDependencyRangeUnreachableDiagnostic, createRegistryToolsExternalRegistryDeniedDiagnostic, createRegistryToolsExternalRegistryNotAllowedDiagnostic, createRegistryToolsIntegrityMismatchDiagnostic, createRegistryToolsOfficialPolicyViolationDiagnostic, createRegistryToolsPackageMissingDiagnostic, createRegistryToolsPackageSourceMismatchDiagnostic, createRegistryToolsPathMismatchDiagnostic, createRegistryToolsReleaseFileNameInvalidDiagnostic, createRegistryToolsRemovalDeniedDiagnostic, createRegistryToolsUnknownKeyDiagnostic, createRegistryToolsVersionExistsDiagnostic, createRegistryToolsVersionNotFoundDiagnostic, createRegistryToolsVersionsUnsortedDiagnostic } from "./registryTools/RegistryToolsDiagnostics.js";
|
|
13
|
+
import { CircularDepDiagnostic, PackageNotFoundDiagnostic, RegistryNameCollisionDiagnostic, ResolverDiagnostic, VersionConflictDiagnostic, VersionNotFoundDiagnostic, createCircularDepDiagnostic, createPackageNotFoundDiagnostic, createRegistryNameCollisionDiagnostic, createVersionConflictDiagnostic, createVersionNotFoundDiagnostic } from "./resolver/ResolverDiagnostics.js";
|
|
14
|
+
import { SafetyDiagnostic, SafetyOverriddenByForceDiagnostic, SafetyPathNotProjectManifestDiagnostic, SafetyTargetExistsNoManifestDiagnostic, createSafetyOverriddenByForceDiagnostic, createSafetyPathNotProjectManifestDiagnostic, createSafetyTargetExistsNoManifestDiagnostic } from "./safety/SafetyDiagnostics.js";
|
|
15
|
+
import { InvalidOrgNameDiagnostic, InvalidPackageSpecDiagnostic, InvalidVersionRangeDiagnostic, SpecParseDiagnostic, createInvalidOrgNameDiagnostic, createInvalidPackageSpecDiagnostic, createInvalidVersionRangeDiagnostic } from "./spec/SpecDiagnostics.js";
|
|
16
|
+
import { Diagnostic, DiagnosticByCode, DiagnosticCode } from "./types.js";
|
|
17
|
+
import { Result, ResultFail, ResultOk, fail, fromDiagnostics, ok } from "./base/Result.js";
|
|
18
|
+
import { DiagnosticBag } from "./base/DiagnosticBag.js";
|
|
19
|
+
import { createDiagnosticFingerprint } from "./base/DiagnosticFingerprint.js";
|
|
20
|
+
export { type CacheCorruptDiagnostic, type CacheIdentifierCollisionDiagnostic, type CacheReadErrorDiagnostic, type CircularDepDiagnostic, type ConfigDiagnostic, type ConfigInvalidJsonDiagnostic, type ConfigInvalidValueDiagnostic, type ConfigTypeMismatchDiagnostic, type ConfigUnknownKeyDiagnostic, type ConfigUnresolvedDefaultRegistryDiagnostic, type ControlPlaneCommandFailedDiagnostic, type ControlPlaneCommandFailedDiagnosticData, type ControlPlaneDiagnostic, type CyclicSymlinkDiagnostic, type DependencyNotFoundDiagnostic, type Diagnostic, DiagnosticBag, type DiagnosticBase, type DiagnosticByCode, type DiagnosticCode, type DiagnosticEmitPolicy, type DiagnosticLevel, type DiskRemoveFailedDiagnostic, type DownloadFailedDiagnostic, type DownloadHttpStatusDiagnostic, type ExtractionFailedDiagnostic, type ForbiddenOverridesDiagnostic, type GeneralDiagnostic, type GitErrorDiagnostic, type InstallerDiagnostic, type IntegrityMismatchDiagnostic, type InvalidOrgNameDiagnostic, type InvalidPackageSpecDiagnostic, type InvalidPathDiagnostic, type InvalidVersionRangeDiagnostic, type IoErrorDiagnostic, type LfsSkippedDiagnostic, type LockAcquisitionFailedDiagnostic, type LockfileInvalidDiagnostic, type LockfileMissingDiagnostic, type LockfileOutOfSyncDiagnostic, type LoginAccessDeniedDiagnostic, type LoginAuthorizationResponseInvalidDiagnostic, type LoginAuthorizationTimeoutDiagnostic, type LoginDiagnosticByCode, type LoginDiagnosticCode, type LoginDiagnosticData, type LoginFailedDiagnostic, type LoginOAuthErrorDiagnostic, type LoginReauthorizationConflictDiagnostic, type ManifestDiagnostic, type ManifestInvalidDiagnostic, type ManifestReadErrorDiagnostic, type ManifestWriteErrorDiagnostic, type NetworkErrorDiagnostic, type NetworkRetriesExhaustedDiagnostic, type NetworkTimeoutDiagnostic, type NoFilesSelectedDiagnostic, type OutFileIsDirectoryDiagnostic, type PackDiagnostic, type PackageNotFoundDiagnostic, type ParseErrorDiagnostic, type PluginRootNotFoundDiagnostic, type PostinstallDiagnostic, type PostinstallDuplicateEntryDiagnostic, type PostinstallEsbuildErrorDiagnostic, type PostinstallInvalidExportDiagnostic, type PostinstallLoadFailedDiagnostic, type PostinstallMarkerCorruptDiagnostic, type PostinstallPolicyDeniedDiagnostic, type PublishDiagnosticFact, type PublishDiagnosticResource, type PublishRequestFailedDiagnostic, type PublishRequestFailedDiagnosticData, type PublishingDiagnostic, type RegistryDiagnostic, type RegistryNameCollisionDiagnostic, type RegistryNotFoundDiagnostic, type RegistryToolsDependencyNotInRegistryDiagnostic, type RegistryToolsDependencyRangeUnreachableDiagnostic, type RegistryToolsDiagnostic, type RegistryToolsExternalRegistryDeniedDiagnostic, type RegistryToolsExternalRegistryNotAllowedDiagnostic, type RegistryToolsIntegrityMismatchDiagnostic, type RegistryToolsOfficialPolicyViolationDiagnostic, type RegistryToolsPackageMissingDiagnostic, type RegistryToolsPackageSourceMismatchDiagnostic, type RegistryToolsPathMismatchDiagnostic, type RegistryToolsReleaseFileNameInvalidDiagnostic, type RegistryToolsRemovalDeniedDiagnostic, type RegistryToolsUnknownKeyDiagnostic, type RegistryToolsVersionExistsDiagnostic, type RegistryToolsVersionNotFoundDiagnostic, type RegistryToolsVersionsUnsortedDiagnostic, type RegistryUnreachableDiagnostic, type ResolverDiagnostic, type Result, type ResultFail, type ResultOk, type SafetyDiagnostic, type SafetyOverriddenByForceDiagnostic, type SafetyPathNotProjectManifestDiagnostic, type SafetyTargetExistsNoManifestDiagnostic, type SchemaInvalidDiagnostic, type SpecParseDiagnostic, type SymlinkOutsideRootDiagnostic, type UnknownErrorDiagnostic, type UnresolvedLfsDiagnostic, type UnresolvedRegistryDiagnostic, type UpluginMissingDiagnostic, type VersionConflictDiagnostic, type VersionNotFoundDiagnostic, createCacheCorruptDiagnostic, createCacheIdentifierCollisionDiagnostic, createCacheReadErrorDiagnostic, createCircularDepDiagnostic, createConfigInvalidJsonDiagnostic, createConfigInvalidValueDiagnostic, createConfigTypeMismatchDiagnostic, createConfigUnknownKeyDiagnostic, createConfigUnresolvedDefaultRegistryDiagnostic, createControlPlaneCommandFailedDiagnostic, createCyclicSymlinkDiagnostic, createDependencyNotFoundDiagnostic, createDiagnostic, createDiagnosticFingerprint, createDiskRemoveFailedDiagnostic, createDownloadFailedDiagnostic, createDownloadHttpStatusDiagnostic, createExtractionFailedDiagnostic, createForbiddenOverridesDiagnostic, createGitErrorDiagnostic, createIntegrityMismatchDiagnostic, createInvalidOrgNameDiagnostic, createInvalidPackageSpecDiagnostic, createInvalidPathDiagnostic, createInvalidVersionRangeDiagnostic, createIoErrorDiagnostic, createLfsSkippedDiagnostic, createLockAcquisitionFailedDiagnostic, createLockfileInvalidDiagnostic, createLockfileMissingDiagnostic, createLockfileOutOfSyncDiagnostic, createManifestInvalidDiagnostic, createManifestReadErrorDiagnostic, createManifestWriteErrorDiagnostic, createNetworkErrorDiagnostic, createNetworkRetriesExhaustedDiagnostic, createNetworkTimeoutDiagnostic, createNoFilesSelectedDiagnostic, createOutFileIsDirectoryDiagnostic, createPackageNotFoundDiagnostic, createParseErrorDiagnostic, createPluginRootNotFoundDiagnostic, createPostinstallDuplicateEntryDiagnostic, createPostinstallEsbuildErrorDiagnostic, createPostinstallInvalidExportDiagnostic, createPostinstallLoadFailedDiagnostic, createPostinstallMarkerCorruptDiagnostic, createPostinstallPolicyDeniedDiagnostic, createPublishRequestFailedDiagnostic, createRegistryNameCollisionDiagnostic, createRegistryNotFoundDiagnostic, createRegistryToolsDependencyNotInRegistryDiagnostic, createRegistryToolsDependencyRangeUnreachableDiagnostic, createRegistryToolsExternalRegistryDeniedDiagnostic, createRegistryToolsExternalRegistryNotAllowedDiagnostic, createRegistryToolsIntegrityMismatchDiagnostic, createRegistryToolsOfficialPolicyViolationDiagnostic, createRegistryToolsPackageMissingDiagnostic, createRegistryToolsPackageSourceMismatchDiagnostic, createRegistryToolsPathMismatchDiagnostic, createRegistryToolsReleaseFileNameInvalidDiagnostic, createRegistryToolsRemovalDeniedDiagnostic, createRegistryToolsUnknownKeyDiagnostic, createRegistryToolsVersionExistsDiagnostic, createRegistryToolsVersionNotFoundDiagnostic, createRegistryToolsVersionsUnsortedDiagnostic, createRegistryUnreachableDiagnostic, createSafetyOverriddenByForceDiagnostic, createSafetyPathNotProjectManifestDiagnostic, createSafetyTargetExistsNoManifestDiagnostic, createSchemaInvalidDiagnostic, createSymlinkOutsideRootDiagnostic, createUnknownErrorDiagnostic, createUnresolvedLfsDiagnostic, createUnresolvedRegistryDiagnostic, createUpluginMissingDiagnostic, createVersionConflictDiagnostic, createVersionNotFoundDiagnostic, fail, fromDiagnostics, ok };
|