@powerlines/deepkit 0.7.8 → 0.8.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.
Files changed (64) hide show
  1. package/dist/{capnp-C8UENZHc.cjs → capnp-CkbeQ2uR.cjs} +8 -0
  2. package/dist/{capnp-BYEUkMpr.mjs → capnp-D0NNeu5y.mjs} +9 -1
  3. package/dist/capnp.cjs +1 -1
  4. package/dist/capnp.d.cts +3 -1
  5. package/dist/capnp.d.mts +3 -1
  6. package/dist/capnp.mjs +1 -1
  7. package/dist/config-ClUYu_c-.d.mts +40 -0
  8. package/dist/config-u7zg69VP.d.cts +40 -0
  9. package/dist/esbuild-plugin.d.cts +7 -8
  10. package/dist/esbuild-plugin.d.mts +7 -8
  11. package/dist/index.cjs +2 -2
  12. package/dist/index.mjs +2 -2
  13. package/dist/reflect-type.cjs +1 -1
  14. package/dist/reflect-type.mjs +1 -1
  15. package/dist/{reflection-DGOuMF8F.d.cts → reflection-8fgblw1P.d.cts} +3 -1
  16. package/dist/{reflection-DaLz4ZT5.d.mts → reflection-l3nKKCgX.d.mts} +3 -1
  17. package/dist/{transformer-BiefehPu.mjs → transformer-BseLGhId.mjs} +6 -6
  18. package/dist/{transformer-DS0zKU7l.cjs → transformer-Ct9lYNRY.cjs} +5 -5
  19. package/dist/transformer.cjs +1 -1
  20. package/dist/transformer.d.cts +1 -1
  21. package/dist/transformer.d.mts +1 -1
  22. package/dist/transformer.mjs +1 -1
  23. package/dist/transpile.cjs +2 -2
  24. package/dist/transpile.d.cts +1 -1
  25. package/dist/transpile.d.mts +1 -1
  26. package/dist/transpile.mjs +2 -2
  27. package/dist/types.d.cts +1 -1
  28. package/dist/types.d.mts +1 -1
  29. package/dist/vendor/{compiler-CqkzeoNX.mjs → compiler-Ba99lbTF.mjs} +11 -12
  30. package/dist/vendor/{compiler-Dz2b4nOM.d.cts → compiler-CZ0k-pTB.d.cts} +6 -6
  31. package/dist/vendor/{compiler-BYhFaVxE.d.mts → compiler-DIcnaeXC.d.mts} +6 -6
  32. package/dist/vendor/{compiler-Ci5aO9pY.cjs → compiler-DYfCGCv5.cjs} +10 -11
  33. package/dist/vendor/{config-eSNKiBGB.mjs → config-BFH3ETeQ.mjs} +16 -15
  34. package/dist/vendor/{config-BTErH18l.d.mts → config-BQtfsjwX.d.mts} +32 -18
  35. package/dist/vendor/{config-BbFVGRVh.cjs → config-Cadu6Rkt.cjs} +18 -17
  36. package/dist/vendor/{config-Cc2qE8fH.d.cts → config-D0jKbRFV.d.cts} +32 -18
  37. package/dist/vendor/core.cjs +97 -120
  38. package/dist/vendor/core.mjs +1 -24
  39. package/dist/vendor/type-compiler/compiler.cjs +1 -1
  40. package/dist/vendor/type-compiler/compiler.d.cts +1 -1
  41. package/dist/vendor/type-compiler/compiler.d.mts +1 -1
  42. package/dist/vendor/type-compiler/compiler.mjs +1 -1
  43. package/dist/vendor/type-compiler/config.cjs +2 -2
  44. package/dist/vendor/type-compiler/config.d.cts +2 -2
  45. package/dist/vendor/type-compiler/config.d.mts +2 -2
  46. package/dist/vendor/type-compiler/config.mjs +2 -2
  47. package/dist/vendor/type-compiler/index.cjs +5 -5
  48. package/dist/vendor/type-compiler/index.d.cts +4 -4
  49. package/dist/vendor/type-compiler/index.d.mts +4 -4
  50. package/dist/vendor/type-compiler/index.mjs +5 -5
  51. package/dist/vendor/type.cjs +11015 -4928
  52. package/dist/vendor/type.d.cts +220 -24
  53. package/dist/vendor/type.d.mts +220 -24
  54. package/dist/vendor/type.mjs +11521 -5630
  55. package/dist/vendor/{string-DoT35ViA.mjs → types--t65boB8.mjs} +25 -2
  56. package/dist/vendor/{string-LTCnMzW_.cjs → types-BzOSMMf1.cjs} +41 -0
  57. package/package.json +4 -4
  58. package/schemas/reflection.capnp +3 -2
  59. package/schemas/reflection.cjs +6 -0
  60. package/schemas/reflection.d.cts +2 -0
  61. package/schemas/reflection.d.mts +2 -0
  62. package/schemas/reflection.mjs +6 -0
  63. package/dist/config-B6lMYoYG.d.mts +0 -32
  64. package/dist/config-C8svu6th.d.cts +0 -32
@@ -64,6 +64,12 @@ var TagsReflection = class extends _stryke_capnp.Struct {
64
64
  set internal(value) {
65
65
  _stryke_capnp.utils.setBit(3, value, this);
66
66
  }
67
+ get runtime() {
68
+ return _stryke_capnp.utils.getBit(4, this);
69
+ }
70
+ set runtime(value) {
71
+ _stryke_capnp.utils.setBit(4, value, this);
72
+ }
67
73
  _adoptPermission(value) {
68
74
  _stryke_capnp.utils.adopt(value, _stryke_capnp.utils.getPointer(2, this));
69
75
  }
@@ -4043,6 +4049,7 @@ function convertToCapnpTagsReflection(result, serializedType) {
4043
4049
  result.hidden = serializedType?.hidden ?? false;
4044
4050
  result.ignore = serializedType?.ignore ?? false;
4045
4051
  result.internal = serializedType?.internal ?? false;
4052
+ result.runtime = serializedType?.runtime ?? false;
4046
4053
  result.readonly = serializedType?.readonly ?? false;
4047
4054
  if (serializedType?.title) result.title = serializedType?.title;
4048
4055
  if (serializedType?.domain) result.domain = serializedType?.domain;
@@ -4062,6 +4069,7 @@ function convertFromCapnpTagsReflection(serializedType) {
4062
4069
  title: serializedType.tags?.title ? serializedType.tags.title : void 0,
4063
4070
  ignore: serializedType.tags?.ignore,
4064
4071
  internal: serializedType.tags?.internal,
4072
+ runtime: serializedType.tags?.runtime,
4065
4073
  readonly: serializedType.tags?.readonly,
4066
4074
  permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
4067
4075
  } : void 0;
@@ -62,6 +62,12 @@ var TagsReflection$1 = class extends $.Struct {
62
62
  set internal(value) {
63
63
  $.utils.setBit(3, value, this);
64
64
  }
65
+ get runtime() {
66
+ return $.utils.getBit(4, this);
67
+ }
68
+ set runtime(value) {
69
+ $.utils.setBit(4, value, this);
70
+ }
65
71
  _adoptPermission(value) {
66
72
  $.utils.adopt(value, $.utils.getPointer(2, this));
67
73
  }
@@ -4041,6 +4047,7 @@ function convertToCapnpTagsReflection(result, serializedType) {
4041
4047
  result.hidden = serializedType?.hidden ?? false;
4042
4048
  result.ignore = serializedType?.ignore ?? false;
4043
4049
  result.internal = serializedType?.internal ?? false;
4050
+ result.runtime = serializedType?.runtime ?? false;
4044
4051
  result.readonly = serializedType?.readonly ?? false;
4045
4052
  if (serializedType?.title) result.title = serializedType?.title;
4046
4053
  if (serializedType?.domain) result.domain = serializedType?.domain;
@@ -4060,6 +4067,7 @@ function convertFromCapnpTagsReflection(serializedType) {
4060
4067
  title: serializedType.tags?.title ? serializedType.tags.title : void 0,
4061
4068
  ignore: serializedType.tags?.ignore,
4062
4069
  internal: serializedType.tags?.internal,
4070
+ runtime: serializedType.tags?.runtime,
4063
4071
  readonly: serializedType.tags?.readonly,
4064
4072
  permission: serializedType.tags?.permission?.length ? serializedType.tags?.permission?.map((value) => value) : void 0
4065
4073
  } : void 0;
@@ -4902,4 +4910,4 @@ function convertFromCapnpParameter(serializedType) {
4902
4910
 
4903
4911
  //#endregion
4904
4912
  export { convertToCapnpIndexAccessOrigin as A, convertToCapnpPropertySignature as B, convertToCapnp as C, convertToCapnpDefault as D, convertToCapnpClassType as E, convertToCapnpMethodSignature as F, convertToCapnpUnion as G, convertToCapnpTagsReflection as H, convertToCapnpObjectLiteral as I, convertToCapnpOther as L, convertToCapnpIntersection as M, convertToCapnpLiteral as N, convertToCapnpEnum as O, convertToCapnpMethod as P, convertToCapnpParameter as R, convertFromCapnpUnion as S, convertToCapnpBase as T, convertToCapnpTuple as U, convertToCapnpSimple as V, convertToCapnpTupleMember as W, convertFromCapnpPropertySignature as _, convertFromCapnpDefault as a, convertFromCapnpTuple as b, convertFromCapnpIndexAccessOrigin as c, convertFromCapnpLiteral as d, convertFromCapnpMethodSignature as f, convertFromCapnpProperty as g, convertFromCapnpParameter as h, convertFromCapnpClassType as i, convertToCapnpInfer as j, convertToCapnpFunction as k, convertFromCapnpInfer as l, convertFromCapnpOther as m, convertFromCapnpArray as n, convertFromCapnpEnum as o, convertFromCapnpObjectLiteral as p, convertFromCapnpBase as r, convertFromCapnpFunction as s, convertFromCapnp as t, convertFromCapnpIntersection as u, convertFromCapnpSimple as v, convertToCapnpArray as w, convertFromCapnpTupleMember as x, convertFromCapnpTagsReflection as y, convertToCapnpProperty as z };
4905
- //# sourceMappingURL=capnp-BYEUkMpr.mjs.map
4913
+ //# sourceMappingURL=capnp-D0NNeu5y.mjs.map
package/dist/capnp.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_capnp = require('./capnp-C8UENZHc.cjs');
2
+ const require_capnp = require('./capnp-CkbeQ2uR.cjs');
3
3
 
4
4
  exports.convertFromCapnp = require_capnp.convertFromCapnp;
5
5
  exports.convertFromCapnpArray = require_capnp.convertFromCapnpArray;
package/dist/capnp.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-DGOuMF8F.cjs";
1
+ import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-8fgblw1P.cjs";
2
2
  import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
3
3
  import { List } from "@stryke/capnp";
4
4
 
@@ -33,6 +33,7 @@ interface WithTagsReflection {
33
33
  title: string;
34
34
  ignore: boolean;
35
35
  internal: boolean;
36
+ runtime: boolean;
36
37
  readonly: boolean;
37
38
  permission: string[];
38
39
  };
@@ -44,6 +45,7 @@ declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflecti
44
45
  title: string | undefined;
45
46
  ignore: boolean | undefined;
46
47
  internal: boolean | undefined;
48
+ runtime: boolean | undefined;
47
49
  readonly: boolean | undefined;
48
50
  permission: string[] | undefined;
49
51
  } | undefined;
package/dist/capnp.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-DaLz4ZT5.mjs";
1
+ import { C as SimpleSerializedType$1, _ as SerializedTypePropertySignature$1, a as SerializedTypeClassType$1, b as SerializedTypeUnion$1, c as SerializedTypeInfer$1, d as SerializedTypeMethod$1, f as SerializedTypeMethodSignature$1, g as SerializedTypeProperty$1, h as SerializedTypeParameter$1, i as SerializedTypeArray$1, l as SerializedTypeIntersection$1, m as SerializedTypeOther, n as IndexAccessOrigin, o as SerializedTypeEnum$1, p as SerializedTypeObjectLiteral$1, r as SerializedType$1, s as SerializedTypeFunction$1, t as DefaultValueReflection, u as SerializedTypeLiteral$1, v as SerializedTypeTuple$1, w as TagsReflection$1, x as SerializedType_Type, y as SerializedTypeTupleMember$1 } from "./reflection-l3nKKCgX.mjs";
2
2
  import { ReflectionKind, SerializedType, SerializedTypeArray, SerializedTypeClassType, SerializedTypeEnum, SerializedTypeFunction, SerializedTypeInfer, SerializedTypeIntersection, SerializedTypeLiteral, SerializedTypeMethod, SerializedTypeMethodSignature, SerializedTypeObjectLiteral, SerializedTypeParameter, SerializedTypeProperty, SerializedTypePropertySignature, SerializedTypeReference, SerializedTypeTuple, SerializedTypeTupleMember, SerializedTypeUnion, SerializedTypes, SimpleSerializedType, TagsReflection } from "@powerlines/deepkit/vendor/type";
3
3
  import { List } from "@stryke/capnp";
4
4
 
@@ -33,6 +33,7 @@ interface WithTagsReflection {
33
33
  title: string;
34
34
  ignore: boolean;
35
35
  internal: boolean;
36
+ runtime: boolean;
36
37
  readonly: boolean;
37
38
  permission: string[];
38
39
  };
@@ -44,6 +45,7 @@ declare function convertFromCapnpTagsReflection(serializedType: WithTagsReflecti
44
45
  title: string | undefined;
45
46
  ignore: boolean | undefined;
46
47
  internal: boolean | undefined;
48
+ runtime: boolean | undefined;
47
49
  readonly: boolean | undefined;
48
50
  permission: string[] | undefined;
49
51
  } | undefined;
package/dist/capnp.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BYEUkMpr.mjs";
1
+ import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-D0NNeu5y.mjs";
2
2
 
3
3
  export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion };
@@ -0,0 +1,40 @@
1
+ import ts from "typescript";
2
+
3
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
4
+ /**
5
+ * Default means reflection is enabled for this file.
6
+ * Never means the whole reflection is disabled for this file.
7
+ * Explicit means that reflection is per default disabled for this file, but each symbol/type
8
+ * in it is allowed to enable it using jsdoc `@reflection`.
9
+ */
10
+ declare const reflectionModes: readonly ["default", "explicit", "never"];
11
+ type Mode = (typeof reflectionModes)[number];
12
+ declare const level: string[];
13
+ type Level = (typeof level)[number];
14
+ interface ReflectionConfig {
15
+ /**
16
+ * Allows to exclude type definitions/TS files from being included in the type compilation step.
17
+ * When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
18
+ */
19
+ exclude?: string[];
20
+ /**
21
+ * Either true to activate reflection for all files compiled using this tsconfig,
22
+ * or a list of globs/file paths relative to this tsconfig.json.
23
+ * Globs/file paths can be prefixed with a ! to exclude them.
24
+ */
25
+ reflection?: string[] | Mode;
26
+ /**
27
+ * Defines the level of reflection to be used during the transpilation process.
28
+ *
29
+ * @remarks
30
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
31
+ * - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
32
+ * - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
33
+ * - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
34
+ * - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
35
+ */
36
+ level?: Level;
37
+ }
38
+ //#endregion
39
+ export { Mode as n, ReflectionConfig as r, Level as t };
40
+ //# sourceMappingURL=config-ClUYu_c-.d.mts.map
@@ -0,0 +1,40 @@
1
+ import ts from "typescript";
2
+
3
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/cjs/src/config.d.ts
4
+ /**
5
+ * Default means reflection is enabled for this file.
6
+ * Never means the whole reflection is disabled for this file.
7
+ * Explicit means that reflection is per default disabled for this file, but each symbol/type
8
+ * in it is allowed to enable it using jsdoc `@reflection`.
9
+ */
10
+ declare const reflectionModes: readonly ["default", "explicit", "never"];
11
+ type Mode = (typeof reflectionModes)[number];
12
+ declare const level: string[];
13
+ type Level = (typeof level)[number];
14
+ interface ReflectionConfig {
15
+ /**
16
+ * Allows to exclude type definitions/TS files from being included in the type compilation step.
17
+ * When a global .d.ts is matched, their types won't be embedded (useful to exclude DOM for example)
18
+ */
19
+ exclude?: string[];
20
+ /**
21
+ * Either true to activate reflection for all files compiled using this tsconfig,
22
+ * or a list of globs/file paths relative to this tsconfig.json.
23
+ * Globs/file paths can be prefixed with a ! to exclude them.
24
+ */
25
+ reflection?: string[] | Mode;
26
+ /**
27
+ * Defines the level of reflection to be used during the transpilation process.
28
+ *
29
+ * @remarks
30
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
31
+ * - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
32
+ * - `normal` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
33
+ * - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
34
+ * - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
35
+ */
36
+ level?: Level;
37
+ }
38
+ //#endregion
39
+ export { Mode as n, ReflectionConfig as r, Level as t };
40
+ //# sourceMappingURL=config-u7zg69VP.d.cts.map
@@ -1,4 +1,4 @@
1
- import { n as Mode, t as Level } from "./config-C8svu6th.cjs";
1
+ import { n as Mode, t as Level } from "./config-u7zg69VP.cjs";
2
2
  import { PluginContext } from "@powerlines/core";
3
3
  import { OnLoadOptions, Plugin } from "esbuild";
4
4
 
@@ -24,14 +24,13 @@ interface ReflectionConfig {
24
24
  * Defines the level of reflection to be used during the transpilation process.
25
25
  *
26
26
  * @remarks
27
- * - `minimal`: Only essential type information is included in the reflection output, resulting in a smaller output size but less detailed type metadata.
28
- * - `normal`: A balanced level of type information is included, providing a good trade-off between output size and type metadata detail.
29
- * - `extended`: More comprehensive type information is included, which may increase the output size but provides richer type metadata for advanced use cases.
30
- * - `verbose`: Detailed type information is included, resulting in a larger output size but more comprehensive type metadata.
31
- *
32
- * @defaultValue "normal"
27
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
28
+ * - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
29
+ * - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
30
+ * - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
31
+ * - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
33
32
  */
34
- reflectionLevel?: Level;
33
+ level?: Level;
35
34
  }
36
35
  interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
37
36
  onLoad?: Partial<OnLoadOptions>;
@@ -1,4 +1,4 @@
1
- import { n as Mode, t as Level } from "./config-B6lMYoYG.mjs";
1
+ import { n as Mode, t as Level } from "./config-ClUYu_c-.mjs";
2
2
  import { PluginContext } from "@powerlines/core";
3
3
  import { OnLoadOptions, Plugin } from "esbuild";
4
4
 
@@ -24,14 +24,13 @@ interface ReflectionConfig {
24
24
  * Defines the level of reflection to be used during the transpilation process.
25
25
  *
26
26
  * @remarks
27
- * - `minimal`: Only essential type information is included in the reflection output, resulting in a smaller output size but less detailed type metadata.
28
- * - `normal`: A balanced level of type information is included, providing a good trade-off between output size and type metadata detail.
29
- * - `extended`: More comprehensive type information is included, which may increase the output size but provides richer type metadata for advanced use cases.
30
- * - `verbose`: Detailed type information is included, resulting in a larger output size but more comprehensive type metadata.
31
- *
32
- * @defaultValue "normal"
27
+ * The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
28
+ * - `minimal` - Only the essential type information is captured. (only "hidden", "ignore" and "internal", "readonly")
29
+ * - `default` - Additional type information is captured, including some contextual data. (adds "alias" and "runtime")
30
+ * - `extended` - Even more detailed type information is captured, including extended contextual data. (adds "permissions" and "domain")
31
+ * - `all` - All available type information is captured, including detailed contextual data. (adds "title" and "description")
33
32
  */
34
- reflectionLevel?: Level;
33
+ level?: Level;
35
34
  }
36
35
  interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
37
36
  onLoad?: Partial<OnLoadOptions>;
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_capnp = require('./capnp-C8UENZHc.cjs');
3
- const require_transformer = require('./transformer-DS0zKU7l.cjs');
2
+ const require_capnp = require('./capnp-CkbeQ2uR.cjs');
3
+ const require_transformer = require('./transformer-Ct9lYNRY.cjs');
4
4
  const require_transpile = require('./transpile.cjs');
5
5
  const require_esbuild_plugin = require('./esbuild-plugin.cjs');
6
6
  const require_reflect_type = require('./reflect-type.cjs');
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
2
- import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-BYEUkMpr.mjs";
1
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BseLGhId.mjs";
2
+ import { A as convertToCapnpIndexAccessOrigin, B as convertToCapnpPropertySignature, C as convertToCapnp, D as convertToCapnpDefault, E as convertToCapnpClassType, F as convertToCapnpMethodSignature, G as convertToCapnpUnion, H as convertToCapnpTagsReflection, I as convertToCapnpObjectLiteral, L as convertToCapnpOther, M as convertToCapnpIntersection, N as convertToCapnpLiteral, O as convertToCapnpEnum, P as convertToCapnpMethod, R as convertToCapnpParameter, S as convertFromCapnpUnion, T as convertToCapnpBase, U as convertToCapnpTuple, V as convertToCapnpSimple, W as convertToCapnpTupleMember, _ as convertFromCapnpPropertySignature, a as convertFromCapnpDefault, b as convertFromCapnpTuple, c as convertFromCapnpIndexAccessOrigin, d as convertFromCapnpLiteral, f as convertFromCapnpMethodSignature, g as convertFromCapnpProperty, h as convertFromCapnpParameter, i as convertFromCapnpClassType, j as convertToCapnpInfer, k as convertToCapnpFunction, l as convertFromCapnpInfer, m as convertFromCapnpOther, n as convertFromCapnpArray, o as convertFromCapnpEnum, p as convertFromCapnpObjectLiteral, r as convertFromCapnpBase, s as convertFromCapnpFunction, t as convertFromCapnp, u as convertFromCapnpIntersection, v as convertFromCapnpSimple, w as convertToCapnpArray, x as convertFromCapnpTupleMember, y as convertFromCapnpTagsReflection, z as convertToCapnpProperty } from "./capnp-D0NNeu5y.mjs";
3
3
  import { transpile } from "./transpile.mjs";
4
4
  import { esbuildPlugin } from "./esbuild-plugin.mjs";
5
5
  import { reflectType } from "./reflect-type.mjs";
@@ -18,7 +18,7 @@ let _powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esb
18
18
  async function reflectType(context, type, overrides = {}) {
19
19
  return (0, _powerlines_deepkit_vendor_type.reflect)(await (0, _powerlines_plugin_esbuild_helpers_resolve.resolve)(context, type, (0, defu.default)(overrides, { plugins: [require_esbuild_plugin.esbuildPlugin(context, {
20
20
  reflection: "default",
21
- reflectionLevel: "verbose"
21
+ level: "all"
22
22
  })] })));
23
23
  }
24
24
 
@@ -15,7 +15,7 @@ import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
15
15
  async function reflectType(context, type, overrides = {}) {
16
16
  return reflect(await resolve(context, type, defu(overrides, { plugins: [esbuildPlugin(context, {
17
17
  reflection: "default",
18
- reflectionLevel: "verbose"
18
+ level: "all"
19
19
  })] })));
20
20
  }
21
21
 
@@ -68,6 +68,8 @@ declare class TagsReflection extends $.Struct {
68
68
  set ignore(value: boolean);
69
69
  get internal(): boolean;
70
70
  set internal(value: boolean);
71
+ get runtime(): boolean;
72
+ set runtime(value: boolean);
71
73
  _adoptPermission(value: $.Orphan<$.List<string>>): void;
72
74
  _disownPermission(): $.Orphan<$.List<string>>;
73
75
  get permission(): $.List<string>;
@@ -1558,4 +1560,4 @@ declare class SerializedTypes extends $.Struct {
1558
1560
  } //#endregion
1559
1561
  //#endregion
1560
1562
  export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
1561
- //# sourceMappingURL=reflection-DGOuMF8F.d.cts.map
1563
+ //# sourceMappingURL=reflection-8fgblw1P.d.cts.map
@@ -68,6 +68,8 @@ declare class TagsReflection extends $.Struct {
68
68
  set ignore(value: boolean);
69
69
  get internal(): boolean;
70
70
  set internal(value: boolean);
71
+ get runtime(): boolean;
72
+ set runtime(value: boolean);
71
73
  _adoptPermission(value: $.Orphan<$.List<string>>): void;
72
74
  _disownPermission(): $.Orphan<$.List<string>>;
73
75
  get permission(): $.List<string>;
@@ -1558,4 +1560,4 @@ declare class SerializedTypes extends $.Struct {
1558
1560
  } //#endregion
1559
1561
  //#endregion
1560
1562
  export { SimpleSerializedType as C, SerializedTypes as S, SerializedTypePropertySignature as _, SerializedTypeClassType as a, SerializedTypeUnion as b, SerializedTypeInfer as c, SerializedTypeMethod as d, SerializedTypeMethodSignature as f, SerializedTypeProperty as g, SerializedTypeParameter as h, SerializedTypeArray as i, SerializedTypeIntersection as l, SerializedTypeOther as m, IndexAccessOrigin as n, SerializedTypeEnum as o, SerializedTypeObjectLiteral as p, SerializedType as r, SerializedTypeFunction as s, DefaultValueReflection as t, SerializedTypeLiteral as u, SerializedTypeTuple as v, TagsReflection as w, SerializedType_Type as x, SerializedTypeTupleMember as y };
1561
- //# sourceMappingURL=reflection-DaLz4ZT5.d.mts.map
1563
+ //# sourceMappingURL=reflection-l3nKKCgX.d.mts.map
@@ -1257,7 +1257,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1257
1257
  }));
1258
1258
 
1259
1259
  //#endregion
1260
- //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
1260
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
1261
1261
  var import_dist = require_dist();
1262
1262
  const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind } = ts;
1263
1263
  const packSizeByte = 6;
@@ -1327,11 +1327,11 @@ function createTransformer(context, options = {}) {
1327
1327
  cache.tick();
1328
1328
  return new ReflectionTransformer(ctx, cache).withReflection(defu(options, {
1329
1329
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
1330
- reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
1330
+ level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
1331
1331
  }, {
1332
1332
  exclude: [],
1333
1333
  reflection: "default",
1334
- reflectionLevel: "normal"
1334
+ level: "default"
1335
1335
  }));
1336
1336
  };
1337
1337
  }
@@ -1346,15 +1346,15 @@ function createDeclarationTransformer(context, options = {}) {
1346
1346
  return function declarationTransformer(ctx) {
1347
1347
  return new DeclarationTransformer(ctx, cache).withReflection(defu(options, {
1348
1348
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
1349
- reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
1349
+ level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
1350
1350
  }, {
1351
1351
  exclude: [],
1352
1352
  reflection: "default",
1353
- reflectionLevel: "normal"
1353
+ level: "default"
1354
1354
  }));
1355
1355
  };
1356
1356
  }
1357
1357
 
1358
1358
  //#endregion
1359
1359
  export { createTransformer as n, createDeclarationTransformer as t };
1360
- //# sourceMappingURL=transformer-BiefehPu.mjs.map
1360
+ //# sourceMappingURL=transformer-BseLGhId.mjs.map
@@ -1254,7 +1254,7 @@ var require_dist = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module
1254
1254
  }));
1255
1255
 
1256
1256
  //#endregion
1257
- //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
1257
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
1258
1258
  var import_dist = require_dist();
1259
1259
  const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind } = typescript.default;
1260
1260
  const packSizeByte = 6;
@@ -1324,11 +1324,11 @@ function createTransformer(context, options = {}) {
1324
1324
  cache.tick();
1325
1325
  return new _powerlines_deepkit_vendor_type_compiler.ReflectionTransformer(ctx, cache).withReflection((0, defu.default)(options, {
1326
1326
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
1327
- reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
1327
+ level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
1328
1328
  }, {
1329
1329
  exclude: [],
1330
1330
  reflection: "default",
1331
- reflectionLevel: "normal"
1331
+ level: "default"
1332
1332
  }));
1333
1333
  };
1334
1334
  }
@@ -1343,11 +1343,11 @@ function createDeclarationTransformer(context, options = {}) {
1343
1343
  return function declarationTransformer(ctx) {
1344
1344
  return new _powerlines_deepkit_vendor_type_compiler.DeclarationTransformer(ctx, cache).withReflection((0, defu.default)(options, {
1345
1345
  reflection: context.tsconfig.tsconfigJson.compilerOptions?.reflection || context.tsconfig.tsconfigJson.reflection,
1346
- reflectionLevel: context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || context.tsconfig.tsconfigJson.reflectionLevel
1346
+ level: context.tsconfig.tsconfigJson.compilerOptions?.level || context.tsconfig.tsconfigJson.level
1347
1347
  }, {
1348
1348
  exclude: [],
1349
1349
  reflection: "default",
1350
- reflectionLevel: "normal"
1350
+ level: "default"
1351
1351
  }));
1352
1352
  };
1353
1353
  }
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_transformer = require('./transformer-DS0zKU7l.cjs');
2
+ const require_transformer = require('./transformer-Ct9lYNRY.cjs');
3
3
 
4
4
  exports.createDeclarationTransformer = require_transformer.createDeclarationTransformer;
5
5
  exports.createTransformer = require_transformer.createTransformer;
@@ -1,4 +1,4 @@
1
- import { r as ReflectionConfig } from "./config-C8svu6th.cjs";
1
+ import { r as ReflectionConfig } from "./config-u7zg69VP.cjs";
2
2
  import { Context } from "@powerlines/core";
3
3
  import ts from "typescript";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as ReflectionConfig } from "./config-B6lMYoYG.mjs";
1
+ import { r as ReflectionConfig } from "./config-ClUYu_c-.mjs";
2
2
  import ts from "typescript";
3
3
  import { Context } from "@powerlines/core";
4
4
 
@@ -1,3 +1,3 @@
1
- import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
1
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BseLGhId.mjs";
2
2
 
3
3
  export { createDeclarationTransformer, createTransformer };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_chunk = require('./chunk-BmvPcxpV.cjs');
3
- const require_transformer = require('./transformer-DS0zKU7l.cjs');
3
+ const require_transformer = require('./transformer-Ct9lYNRY.cjs');
4
4
  let typescript = require("typescript");
5
5
  typescript = require_chunk.__toESM(typescript);
6
6
 
@@ -21,7 +21,7 @@ function transpile(context, code, id, options = {}) {
21
21
  compilerOptions: {
22
22
  ...context.tsconfig.options,
23
23
  reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
24
- reflectionLevel: options.reflectionLevel ?? context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ?? context.tsconfig.tsconfigJson.reflectionLevel
24
+ level: options.level ?? context.tsconfig.tsconfigJson.compilerOptions?.level ?? context.tsconfig.tsconfigJson.level
25
25
  },
26
26
  fileName: id,
27
27
  transformers: {
@@ -1,4 +1,4 @@
1
- import { r as ReflectionConfig } from "./config-C8svu6th.cjs";
1
+ import { r as ReflectionConfig } from "./config-u7zg69VP.cjs";
2
2
  import { Context } from "@powerlines/core";
3
3
  import ts from "typescript";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as ReflectionConfig } from "./config-B6lMYoYG.mjs";
1
+ import { r as ReflectionConfig } from "./config-ClUYu_c-.mjs";
2
2
  import ts from "typescript";
3
3
  import { Context } from "@powerlines/core";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BiefehPu.mjs";
1
+ import { n as createTransformer, t as createDeclarationTransformer } from "./transformer-BseLGhId.mjs";
2
2
  import ts from "typescript";
3
3
 
4
4
  //#region src/transpile.ts
@@ -18,7 +18,7 @@ function transpile(context, code, id, options = {}) {
18
18
  compilerOptions: {
19
19
  ...context.tsconfig.options,
20
20
  reflection: options.reflection ?? context.tsconfig.tsconfigJson.compilerOptions?.reflection ?? context.tsconfig.tsconfigJson.reflection,
21
- reflectionLevel: options.reflectionLevel ?? context.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ?? context.tsconfig.tsconfigJson.reflectionLevel
21
+ level: options.level ?? context.tsconfig.tsconfigJson.compilerOptions?.level ?? context.tsconfig.tsconfigJson.level
22
22
  },
23
23
  fileName: id,
24
24
  transformers: {
package/dist/types.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SerializedTypes$1 } from "./reflection-DGOuMF8F.cjs";
1
+ import { S as SerializedTypes$1 } from "./reflection-8fgblw1P.cjs";
2
2
  import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
3
 
4
4
  //#region src/types.d.ts
package/dist/types.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as SerializedTypes$1 } from "./reflection-DaLz4ZT5.mjs";
1
+ import { S as SerializedTypes$1 } from "./reflection-l3nKKCgX.mjs";
2
2
  import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
3
 
4
4
  //#region src/types.d.ts
@@ -1,6 +1,6 @@
1
1
  import { n as __require, t as __commonJSMin } from "./chunk-CgI6uo-e.mjs";
2
2
  import { n as TypeNumberBrand, t as ReflectionOp } from "./type-wscUl8NW.mjs";
3
- import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-eSNKiBGB.mjs";
3
+ import { c as Resolver, l as debug, n as getConfigResolver, o as reflectionModeMatcher, u as debug2 } from "./config-BFH3ETeQ.mjs";
4
4
  import ts, { isBigIntLiteral } from "typescript";
5
5
 
6
6
  //#region ../../node_modules/.pnpm/@typescript+vfs@1.6.4_typescript@5.9.3/node_modules/@typescript/vfs/dist/vfs.cjs.production.min.js
@@ -4579,7 +4579,7 @@ function executeCloneNode(node, options) {
4579
4579
  }
4580
4580
 
4581
4581
  //#endregion
4582
- //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
4582
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/reflection-ast.js
4583
4583
  const { isArrowFunction: isArrowFunction$1, isComputedPropertyName, isIdentifier: isIdentifier$1, isNamedImports, isNumericLiteral, isPrivateIdentifier, isStringLiteral: isStringLiteral$1, isStringLiteralLike, setOriginalNode, getLeadingCommentRanges, isNoSubstitutionTemplateLiteral, NodeFlags: NodeFlags$1, SyntaxKind: SyntaxKind$1 } = ts;
4584
4584
  function is__String(value) {
4585
4585
  return typeof value === "string";
@@ -4815,7 +4815,7 @@ function finish(oldNode, newNode) {
4815
4815
  }
4816
4816
 
4817
4817
  //#endregion
4818
- //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=439aa6e683a9a48c3ebbf3529be5811680c45c22d6a265d_be73b50bc43bac944747b8ca0498113a/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
4818
+ //#region ../../node_modules/.pnpm/@deepkit+type-compiler@1.0.5_patch_hash=dd6d56137776e5089b3a2f545719c7d42a3b04dedd75fad_4f8e122618c94154bbee3222c9c62f04/node_modules/@deepkit/type-compiler/dist/esm/src/compiler.js
4819
4819
  var import_dist = require_dist();
4820
4820
  const { visitEachChild, visitNode, isPropertyAssignment, isArrayTypeNode, isArrowFunction, isBlock, isCallExpression, isCallSignatureDeclaration, isClassDeclaration, isClassExpression, isConstructorDeclaration, isConstructorTypeNode, isConstructSignatureDeclaration, isEnumDeclaration, isExportDeclaration, isExpression, isExpressionWithTypeArguments, isFunctionDeclaration, isFunctionExpression, isFunctionLike, isIdentifier, isImportClause, isImportDeclaration, isImportSpecifier, isInferTypeNode, isInterfaceDeclaration, isMethodDeclaration, isMethodSignature, isModuleDeclaration, isNamedExports, isNamedTupleMember, isNewExpression, isObjectLiteralExpression, isOptionalTypeNode, isParameter, isParenthesizedExpression, isParenthesizedTypeNode, isPropertyAccessExpression, isQualifiedName, isSourceFile, isStringLiteral, isTypeAliasDeclaration, isTypeLiteralNode, isTypeParameterDeclaration, isTypeQueryNode, isTypeReferenceNode, isUnionTypeNode, isExpressionStatement, isVariableDeclaration, getEffectiveConstraintOfTypeParameter, addSyntheticLeadingComment, createCompilerHost, createPrinter, escapeLeadingUnderscores, EmitHint, NodeFlags, SyntaxKind, ScriptTarget, ModifierFlags, ScriptKind: ScriptKind$1 } = ts;
4821
4821
  function encodeOps(ops) {
@@ -5124,7 +5124,7 @@ var ReflectionTransformer = class {
5124
5124
  }
5125
5125
  withReflection(config) {
5126
5126
  const configResolver = {
5127
- reflectionLevel: "normal",
5127
+ level: "default",
5128
5128
  ...config,
5129
5129
  path: "",
5130
5130
  mergeStrategy: "replace",
@@ -5134,7 +5134,7 @@ var ReflectionTransformer = class {
5134
5134
  return {
5135
5135
  mode: reflectionModeMatcher(config, path),
5136
5136
  tsConfigPath: "",
5137
- level: configResolver.reflectionLevel
5137
+ level: configResolver.level
5138
5138
  };
5139
5139
  };
5140
5140
  this.overriddenConfigResolver = {
@@ -5482,13 +5482,12 @@ var ReflectionTransformer = class {
5482
5482
  tags.hidden = extractJSDocBoolean(this.sourceFile, node, "hidden");
5483
5483
  tags.ignore = extractJSDocBoolean(this.sourceFile, node, "ignore");
5484
5484
  tags.internal = extractJSDocBoolean(this.sourceFile, node, "internal");
5485
- if (this.getReflectionConfig(this.sourceFile).level === "normal") {
5486
- tags.alias = extractJSDocArray(this.sourceFile, node, "alias");
5487
- tags.runtime = extractJSDocBoolean(this.sourceFile, node, "runtime");
5488
- } else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
5485
+ tags.runtime = extractJSDocBoolean(this.sourceFile, node, "runtime");
5486
+ if (this.getReflectionConfig(this.sourceFile).level === "default") tags.alias = extractJSDocArray(this.sourceFile, node, "alias");
5487
+ else if (this.getReflectionConfig(this.sourceFile).level === "extended") {
5489
5488
  tags.permission = extractJSDocArray(this.sourceFile, node, "permission");
5490
5489
  tags.domain = extractJSDocAttribute(this.sourceFile, node, "domain");
5491
- } else if (this.getReflectionConfig(this.sourceFile).level === "verbose") tags.title = extractJSDocAttribute(this.sourceFile, node, "title");
5490
+ } else if (this.getReflectionConfig(this.sourceFile).level === "all") tags.title = extractJSDocAttribute(this.sourceFile, node, "title");
5492
5491
  return tags;
5493
5492
  }
5494
5493
  extractTagReflections(program, node) {
@@ -5505,7 +5504,7 @@ var ReflectionTransformer = class {
5505
5504
  if (defaultValue) program.pushOp(ReflectionOp.defaultValue, program.findOrAddStackEntry(this.parseDefaultValue((node.kind === SyntaxKind.ClassDeclaration || node.kind === SyntaxKind.ClassExpression ? node?.name?.parent?.kind : node.kind === SyntaxKind.PropertySignature || node.kind === SyntaxKind.PropertyDeclaration ? node.type?.kind : node.kind) || SyntaxKind.StringKeyword, defaultValue.trim().replace(/^"/gm, "").replace(/"$/gm, ""))));
5506
5505
  }
5507
5506
  extractDescriptionReflection(program, node) {
5508
- if (!node || this.getReflectionConfig(this.sourceFile).level !== "verbose") return;
5507
+ if (!node || this.getReflectionConfig(this.sourceFile).level !== "all") return;
5509
5508
  const description = extractJSDocAttribute(this.sourceFile, node, "description");
5510
5509
  if (description) program.pushOp(ReflectionOp.description, program.findOrAddStackEntry(description.trim().replace(/^"/gm, "").replace(/"$/gm, "")));
5511
5510
  }
@@ -6549,4 +6548,4 @@ const declarationTransformer = function deepkitDeclarationTransformer(context) {
6549
6548
 
6550
6549
  //#endregion
6551
6550
  export { declarationTransformer as a, packSizeByte as c, debugPackStruct as i, transformer as l, DeclarationTransformer as n, encodeOps as o, ReflectionTransformer as r, packSize as s, Cache as t };
6552
- //# sourceMappingURL=compiler-CqkzeoNX.mjs.map
6551
+ //# sourceMappingURL=compiler-Ba99lbTF.mjs.map