@g3nomaly/core 0.3.1 → 0.3.2

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 (222) hide show
  1. package/dist/cli/commands/add.d.ts +24 -4
  2. package/dist/cli/commands/add.d.ts.map +1 -1
  3. package/dist/cli/commands/add.js +37 -14
  4. package/dist/cli/commands/add.js.map +1 -1
  5. package/dist/cli/commands/conflict.d.ts +52 -0
  6. package/dist/cli/commands/conflict.d.ts.map +1 -0
  7. package/dist/cli/commands/conflict.js +88 -0
  8. package/dist/cli/commands/conflict.js.map +1 -0
  9. package/dist/cli/commands/installFromSources.d.ts +42 -13
  10. package/dist/cli/commands/installFromSources.d.ts.map +1 -1
  11. package/dist/cli/commands/installFromSources.js +68 -19
  12. package/dist/cli/commands/installFromSources.js.map +1 -1
  13. package/dist/cli/commands/ls.d.ts +13 -3
  14. package/dist/cli/commands/ls.d.ts.map +1 -1
  15. package/dist/cli/commands/ls.js +26 -6
  16. package/dist/cli/commands/ls.js.map +1 -1
  17. package/dist/cli/commands/remove.d.ts +7 -1
  18. package/dist/cli/commands/remove.d.ts.map +1 -1
  19. package/dist/cli/commands/remove.js +15 -1
  20. package/dist/cli/commands/remove.js.map +1 -1
  21. package/dist/cli/commands/sources.d.ts +34 -10
  22. package/dist/cli/commands/sources.d.ts.map +1 -1
  23. package/dist/cli/commands/sources.js +17 -3
  24. package/dist/cli/commands/sources.js.map +1 -1
  25. package/dist/cli/commands/update.d.ts +11 -4
  26. package/dist/cli/commands/update.d.ts.map +1 -1
  27. package/dist/cli/commands/update.js +32 -14
  28. package/dist/cli/commands/update.js.map +1 -1
  29. package/dist/cli/dialogue.d.ts +65 -13
  30. package/dist/cli/dialogue.d.ts.map +1 -1
  31. package/dist/cli/dialogue.js +46 -7
  32. package/dist/cli/dialogue.js.map +1 -1
  33. package/dist/cli/index.d.ts +1 -1
  34. package/dist/cli/index.d.ts.map +1 -1
  35. package/dist/cli/index.js +1 -1
  36. package/dist/cli/index.js.map +1 -1
  37. package/dist/cli/installDialogues.d.ts +11 -3
  38. package/dist/cli/installDialogues.d.ts.map +1 -1
  39. package/dist/cli/installDialogues.js +22 -5
  40. package/dist/cli/installDialogues.js.map +1 -1
  41. package/dist/cli/pick.d.ts +11 -2
  42. package/dist/cli/pick.d.ts.map +1 -1
  43. package/dist/cli/pick.js +11 -2
  44. package/dist/cli/pick.js.map +1 -1
  45. package/dist/cli/report.d.ts +32 -8
  46. package/dist/cli/report.d.ts.map +1 -1
  47. package/dist/cli/report.js +26 -5
  48. package/dist/cli/report.js.map +1 -1
  49. package/dist/cli/theme.d.ts +4 -0
  50. package/dist/cli/theme.d.ts.map +1 -1
  51. package/dist/cli/theme.js +4 -0
  52. package/dist/cli/theme.js.map +1 -1
  53. package/dist/cli/types.d.ts +56 -5
  54. package/dist/cli/types.d.ts.map +1 -1
  55. package/dist/config/config.d.ts +32 -7
  56. package/dist/config/config.d.ts.map +1 -1
  57. package/dist/config/config.js +37 -7
  58. package/dist/config/config.js.map +1 -1
  59. package/dist/config/types.d.ts +58 -0
  60. package/dist/config/types.d.ts.map +1 -1
  61. package/dist/config/types.js +0 -10
  62. package/dist/config/types.js.map +1 -1
  63. package/dist/hash/hash.d.ts +6 -8
  64. package/dist/hash/hash.d.ts.map +1 -1
  65. package/dist/hash/hash.js +7 -8
  66. package/dist/hash/hash.js.map +1 -1
  67. package/dist/hash/index.d.ts.map +1 -1
  68. package/dist/hash/index.js +1 -0
  69. package/dist/hash/index.js.map +1 -1
  70. package/dist/index.js +1 -0
  71. package/dist/index.js.map +1 -1
  72. package/dist/installer/classify.d.ts +27 -1
  73. package/dist/installer/classify.d.ts.map +1 -1
  74. package/dist/installer/classify.js +36 -1
  75. package/dist/installer/classify.js.map +1 -1
  76. package/dist/installer/files.d.ts +10 -6
  77. package/dist/installer/files.d.ts.map +1 -1
  78. package/dist/installer/files.js +4 -3
  79. package/dist/installer/files.js.map +1 -1
  80. package/dist/installer/index.d.ts +1 -1
  81. package/dist/installer/index.d.ts.map +1 -1
  82. package/dist/installer/index.js +1 -1
  83. package/dist/installer/index.js.map +1 -1
  84. package/dist/installer/install.d.ts +18 -6
  85. package/dist/installer/install.d.ts.map +1 -1
  86. package/dist/installer/install.js +20 -7
  87. package/dist/installer/install.js.map +1 -1
  88. package/dist/installer/io.d.ts +6 -1
  89. package/dist/installer/io.d.ts.map +1 -1
  90. package/dist/installer/io.js +6 -1
  91. package/dist/installer/io.js.map +1 -1
  92. package/dist/installer/manifest.d.ts +29 -19
  93. package/dist/installer/manifest.d.ts.map +1 -1
  94. package/dist/installer/manifest.js +20 -10
  95. package/dist/installer/manifest.js.map +1 -1
  96. package/dist/installer/manifestSources.d.ts +18 -7
  97. package/dist/installer/manifestSources.d.ts.map +1 -1
  98. package/dist/installer/manifestSources.js +18 -7
  99. package/dist/installer/manifestSources.js.map +1 -1
  100. package/dist/installer/marketplace.d.ts +24 -12
  101. package/dist/installer/marketplace.d.ts.map +1 -1
  102. package/dist/installer/marketplace.js +18 -10
  103. package/dist/installer/marketplace.js.map +1 -1
  104. package/dist/installer/origin.d.ts +23 -7
  105. package/dist/installer/origin.d.ts.map +1 -1
  106. package/dist/installer/origin.js +14 -7
  107. package/dist/installer/origin.js.map +1 -1
  108. package/dist/installer/remove.d.ts +17 -5
  109. package/dist/installer/remove.d.ts.map +1 -1
  110. package/dist/installer/remove.js +17 -5
  111. package/dist/installer/remove.js.map +1 -1
  112. package/dist/installer/resolve.d.ts +80 -31
  113. package/dist/installer/resolve.d.ts.map +1 -1
  114. package/dist/installer/resolve.js +96 -29
  115. package/dist/installer/resolve.js.map +1 -1
  116. package/dist/installer/sourceRegistry.d.ts +59 -22
  117. package/dist/installer/sourceRegistry.d.ts.map +1 -1
  118. package/dist/installer/sourceRegistry.js +25 -10
  119. package/dist/installer/sourceRegistry.js.map +1 -1
  120. package/dist/installer/types.d.ts +72 -19
  121. package/dist/installer/types.d.ts.map +1 -1
  122. package/dist/installer/types.js +18 -8
  123. package/dist/installer/types.js.map +1 -1
  124. package/dist/registry/index.d.ts +0 -4
  125. package/dist/registry/index.d.ts.map +1 -1
  126. package/dist/registry/index.js +1 -4
  127. package/dist/registry/index.js.map +1 -1
  128. package/dist/registry/registry.handlers.d.ts +7 -0
  129. package/dist/registry/registry.handlers.d.ts.map +1 -1
  130. package/dist/registry/registry.handlers.js.map +1 -1
  131. package/dist/registry/registry.io.d.ts +23 -7
  132. package/dist/registry/registry.io.d.ts.map +1 -1
  133. package/dist/registry/registry.io.js +37 -14
  134. package/dist/registry/registry.io.js.map +1 -1
  135. package/dist/registry/registry.mutations.d.ts +10 -3
  136. package/dist/registry/registry.mutations.d.ts.map +1 -1
  137. package/dist/registry/registry.mutations.js +10 -3
  138. package/dist/registry/registry.mutations.js.map +1 -1
  139. package/dist/registry/registry.selectors.d.ts +41 -11
  140. package/dist/registry/registry.selectors.d.ts.map +1 -1
  141. package/dist/registry/registry.selectors.js +41 -11
  142. package/dist/registry/registry.selectors.js.map +1 -1
  143. package/dist/registry/registry.store.d.ts +22 -9
  144. package/dist/registry/registry.store.d.ts.map +1 -1
  145. package/dist/registry/registry.store.js +12 -3
  146. package/dist/registry/registry.store.js.map +1 -1
  147. package/dist/registry/registry.template.d.ts +12 -6
  148. package/dist/registry/registry.template.d.ts.map +1 -1
  149. package/dist/registry/registry.template.js +13 -6
  150. package/dist/registry/registry.template.js.map +1 -1
  151. package/dist/registry/types.d.ts +17 -3
  152. package/dist/registry/types.d.ts.map +1 -1
  153. package/dist/registry/types.js +16 -6
  154. package/dist/registry/types.js.map +1 -1
  155. package/dist/security/index.d.ts.map +1 -1
  156. package/dist/security/index.js +1 -0
  157. package/dist/security/index.js.map +1 -1
  158. package/dist/security/securityParser.d.ts +9 -8
  159. package/dist/security/securityParser.d.ts.map +1 -1
  160. package/dist/security/securityParser.js +12 -22
  161. package/dist/security/securityParser.js.map +1 -1
  162. package/dist/security/securityWorker.d.ts +11 -0
  163. package/dist/security/securityWorker.d.ts.map +1 -1
  164. package/dist/security/securityWorker.js +17 -38
  165. package/dist/security/securityWorker.js.map +1 -1
  166. package/dist/sources/checkout.d.ts +10 -4
  167. package/dist/sources/checkout.d.ts.map +1 -1
  168. package/dist/sources/checkout.js +10 -4
  169. package/dist/sources/checkout.js.map +1 -1
  170. package/dist/sources/git.d.ts +5 -3
  171. package/dist/sources/git.d.ts.map +1 -1
  172. package/dist/sources/git.js +5 -3
  173. package/dist/sources/git.js.map +1 -1
  174. package/dist/sources/local.d.ts +6 -4
  175. package/dist/sources/local.d.ts.map +1 -1
  176. package/dist/sources/local.js +6 -4
  177. package/dist/sources/local.js.map +1 -1
  178. package/dist/sources/npm.d.ts +10 -7
  179. package/dist/sources/npm.d.ts.map +1 -1
  180. package/dist/sources/npm.js +49 -15
  181. package/dist/sources/npm.js.map +1 -1
  182. package/dist/sources/parse.d.ts +24 -16
  183. package/dist/sources/parse.d.ts.map +1 -1
  184. package/dist/sources/parse.js +40 -18
  185. package/dist/sources/parse.js.map +1 -1
  186. package/dist/sources/process.d.ts +10 -7
  187. package/dist/sources/process.d.ts.map +1 -1
  188. package/dist/sources/process.js +10 -7
  189. package/dist/sources/process.js.map +1 -1
  190. package/dist/sources/register.d.ts +20 -5
  191. package/dist/sources/register.d.ts.map +1 -1
  192. package/dist/sources/register.js +20 -5
  193. package/dist/sources/register.js.map +1 -1
  194. package/dist/sources/types.d.ts +43 -8
  195. package/dist/sources/types.d.ts.map +1 -1
  196. package/dist/sources/types.js +21 -4
  197. package/dist/sources/types.js.map +1 -1
  198. package/dist/utils/errors.d.ts +6 -1
  199. package/dist/utils/errors.d.ts.map +1 -1
  200. package/dist/utils/errors.js +6 -1
  201. package/dist/utils/errors.js.map +1 -1
  202. package/dist/utils/merge.d.ts +8 -2
  203. package/dist/utils/merge.d.ts.map +1 -1
  204. package/dist/utils/merge.js +9 -2
  205. package/dist/utils/merge.js.map +1 -1
  206. package/dist/utils/packageMeta.d.ts +16 -2
  207. package/dist/utils/packageMeta.d.ts.map +1 -1
  208. package/dist/utils/packageMeta.js +6 -2
  209. package/dist/utils/packageMeta.js.map +1 -1
  210. package/dist/utils/paths.d.ts +16 -5
  211. package/dist/utils/paths.d.ts.map +1 -1
  212. package/dist/utils/paths.js +16 -5
  213. package/dist/utils/paths.js.map +1 -1
  214. package/dist/utils/prompt.d.ts +6 -1
  215. package/dist/utils/prompt.d.ts.map +1 -1
  216. package/dist/utils/prompt.js +6 -1
  217. package/dist/utils/prompt.js.map +1 -1
  218. package/dist/utils/version.d.ts +7 -2
  219. package/dist/utils/version.d.ts.map +1 -1
  220. package/dist/utils/version.js +40 -3
  221. package/dist/utils/version.js.map +1 -1
  222. package/package.json +1 -1
@@ -16,8 +16,12 @@ export declare const c: {
16
16
  target: import("chalk").ChalkInstance;
17
17
  header: import("chalk").ChalkInstance;
18
18
  };
19
+ /** Formats a message as a success line, with a green check. */
19
20
  export declare function lineSuccess(msg: string): string;
21
+ /** Formats a message as a warning line, in yellow. */
20
22
  export declare function lineWarn(msg: string): string;
23
+ /** Formats a message as a dim info line. */
21
24
  export declare function lineInfo(msg: string): string;
25
+ /** Formats a message as an error line, in red. */
22
26
  export declare function lineError(msg: string): string;
23
27
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/cli/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;IACd,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,MAAM;CACP,CAAC;AAEF,eAAO,MAAM,CAAC;IACZ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,MAAM;CACP,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAqC;AACrF,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAmD;AAChG,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAgD;AAC7F,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAgD"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/cli/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;IACd,OAAO;IACP,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,MAAM;CACP,CAAC;AAEF,eAAO,MAAM,CAAC;IACZ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,MAAM;CACP,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAqC;AACrF,sDAAsD;AACtD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAmD;AAChG,4CAA4C;AAC5C,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAgD;AAC7F,kDAAkD;AAClD,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAgD"}
package/dist/cli/theme.js CHANGED
@@ -18,8 +18,12 @@ export const c = {
18
18
  target: chalk.green,
19
19
  header: chalk.bold.underline,
20
20
  };
21
+ /** Formats a message as a success line, with a green check. */
21
22
  export function lineSuccess(msg) { return `${sym.success} ${msg}`; }
23
+ /** Formats a message as a warning line, in yellow. */
22
24
  export function lineWarn(msg) { return `${sym.warn} ${chalk.yellow(msg)}`; }
25
+ /** Formats a message as a dim info line. */
23
26
  export function lineInfo(msg) { return `${sym.info} ${chalk.dim(msg)}`; }
27
+ /** Formats a message as an error line, in red. */
24
28
  export function lineError(msg) { return `${sym.error} ${chalk.red(msg)}`; }
25
29
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/cli/theme.ts"],"names":[],"mapp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,MAAM,UAAU,QAAQ,CAAC,GAAW,IAAe,OAAO,GAAG,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7F,kDAAkD;AAClD,MAAM,UAAU,SAAS,CAAC,GAAW,IAAc,OAAO,GAAG,GAAG,CAAC,KAAK,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -2,25 +2,56 @@ import type { BaseRegistryEntry } from "../registry/types";
2
2
  import type { RegistryStore } from "../registry/registry.store";
3
3
  import type { FileSource } from "../installer/types";
4
4
  import type { Dialogue, DialogueAnswers, StepChoice } from "./dialogue";
5
- /** Options the install-shaped commands (add, update, remove) read. */
5
+ /**
6
+ * @brief Options the install-shaped commands (add, update, remove) read.
7
+ *
8
+ * @property force - Overwrite local changes without asking.
9
+ * @property dryRun - Report what would change and write nothing.
10
+ * @property answers - Preset dialogue answers by step id; skips the terminal prompt.
11
+ */
6
12
  export interface InstallOptions {
7
13
  force?: boolean;
8
14
  dryRun?: boolean;
9
- /** Preset dialogue answers by step id; skips the terminal prompt. */
10
15
  answers?: DialogueAnswers;
11
16
  }
17
+ /**
18
+ * @brief Options the `ls` commands read.
19
+ *
20
+ * @property json - Print the listing as JSON instead of text.
21
+ */
12
22
  export interface LSOptions {
13
23
  json?: boolean;
14
24
  }
15
- /** One install destination: where files land and the manifest tracking them. */
25
+ /**
26
+ * @brief One install destination: where files land and the manifest tracking them.
27
+ *
28
+ * @property label - Heading printed above the target's output when several targets are installed to.
29
+ * @property installDir - Directory the entries' files are written into.
30
+ * @property store - Store of the entries installed there.
31
+ */
16
32
  export interface InstallTarget {
17
33
  label: string;
18
34
  installDir: string;
19
35
  store: RegistryStore<BaseRegistryEntry>;
20
36
  }
21
- /** Where an entry's file contents come from — disk copy, remote fetch, generated. */
37
+ /**
38
+ * @brief Where an entry's file contents come from: disk copy, remote fetch or generated.
39
+ *
40
+ * @param entry - Entry whose files are wanted.
41
+ * @returns The files' source, possibly after an async fetch.
42
+ */
22
43
  export type EntrySource = (entry: BaseRegistryEntry) => FileSource | Promise<FileSource>;
23
- /** Input the install dialogues resolve against: picker choices and `{placeholder}` values. */
44
+ /**
45
+ * @brief Input the install dialogues resolve against: picker choices and `{placeholder}` values.
46
+ *
47
+ * @property keyChoices - Choices the picker step offers.
48
+ * @property key - Key of the entry, filling `{key}`.
49
+ * @property target - Label of the install target, filling `{target}`.
50
+ * @property dependents - Dependents to offer for removal, filling `{dependents}`.
51
+ * @property missing - Files missing on disk, filling `{missing}`.
52
+ * @property unknown - Names no source offers, filling `{unknown}`.
53
+ * @property forkName - Suggested key for a fork, e.g. `button-local`.
54
+ */
24
55
  export interface InstallInput {
25
56
  keyChoices?: StepChoice<string>[];
26
57
  key?: string;
@@ -28,14 +59,34 @@ export interface InstallInput {
28
59
  dependents?: string;
29
60
  missing?: string;
30
61
  unknown?: string;
62
+ forkName?: string;
31
63
  }
64
+ /**
65
+ * @brief Dialogues `addEntries` takes through its named slots.
66
+ *
67
+ * @property onNoValue - Picker shown when no keys are given.
68
+ * @property onCollision - Asked when an entry has local changes.
69
+ */
32
70
  export interface AddDialogues {
33
71
  onNoValue?: Dialogue<InstallInput>;
34
72
  onCollision?: Dialogue<InstallInput>;
35
73
  }
74
+ /**
75
+ * @brief Dialogues `updateEntries` takes through its named slots.
76
+ *
77
+ * @property onCollision - Asked when an entry has local changes.
78
+ */
36
79
  export interface UpdateDialogues {
37
80
  onCollision?: Dialogue<InstallInput>;
38
81
  }
82
+ /**
83
+ * @brief Dialogues `removeEntries` takes through its named slots.
84
+ *
85
+ * @property onNoValue - Picker shown when no keys are given, over what is installed.
86
+ * @property onCascade - Asked whether to remove installed dependents too.
87
+ * @property onCollision - Asked when an entry has local changes.
88
+ * @property onIncomplete - Asked when an entry has files missing on disk.
89
+ */
39
90
  export interface RemoveDialogues {
40
91
  onNoValue?: Dialogue<InstallInput>;
41
92
  onCascade?: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;AAEzF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;IAClC,GAAG,CAAC,EAAS,MAAM,CAAC;IACpB,MAAM,CAAC,EAAM,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAK,MAAM,CAAC;IACpB,OAAO,CAAC,EAAK,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAI,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;IACrC,SAAS,CAAC,EAAI,QAAQ,CAAC,YAAY,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IACrC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CACvC"}
@@ -1,15 +1,20 @@
1
1
  import { type G3nConfig, type G3nConfigFile, type G3nuiConfig, type G3nerateConfig, type SkillsConfig } from "./types";
2
+ /** Returns the path of `.g3n.config.json` inside a project root. */
2
3
  export declare function getConfigPath(projectRoot: string): string;
3
4
  /**
4
- * Directory that owns the project's `.g3n.config.json`: the nearest ancestor
5
- * of `fromDir` holding the config file, else the root of the git repository
6
- * containing `fromDir`. Returns null outside a git repository when no config
7
- * exists on the way up — g3n projects are always anchored to a git repo.
5
+ * @brief Finds the directory that owns the project's `.g3n.config.json`: the nearest ancestor
6
+ * of `fromDir` holding the config file, else the root of the git repository containing `fromDir`.
7
+ *
8
+ * @param fromDir - Directory to search up from, the working directory by default.
9
+ * @returns The project root, or `null` outside a git repository when no config exists on the way up.
8
10
  */
9
11
  export declare function resolveProjectRoot(fromDir?: string): string | null;
10
12
  /**
11
- * Loads `.g3n.config.json` from the project root as a fully-defaulted view:
12
- * sections missing on disk read as their defaults.
13
+ * @brief Loads `.g3n.config.json` from the project root as a fully-defaulted view.
14
+ *
15
+ * Sections missing on disk read as their defaults.
16
+ *
17
+ * @returns The config with every section defaulted.
13
18
  */
14
19
  export declare function loadConfig(projectRoot: string): Promise<G3nConfig>;
15
20
  /** Every key optional at every depth, so a caller can name one setting alone. */
@@ -17,14 +22,34 @@ type DeepPartial<T> = T extends readonly unknown[] ? T : T extends object ? {
17
22
  [K in keyof T]?: DeepPartial<T[K]>;
18
23
  } : T;
19
24
  /**
20
- * Deep-merges updates into the existing config file and writes back to disk.
25
+ * @brief Deep-merges updates into the existing config file and writes back to disk.
26
+ *
21
27
  * Only sections already on disk or named in `updates` are written — a
22
28
  * package's init never materializes another package's section.
29
+ *
30
+ * @param updates - Partial config to merge, with every key optional at every depth.
31
+ * @returns The saved config with every section defaulted.
23
32
  */
24
33
  export declare function saveConfig(projectRoot: string, updates: DeepPartial<G3nConfigFile>): Promise<G3nConfig>;
34
+ /**
35
+ * @brief Loads the `g3nui` section with its defaults applied.
36
+ *
37
+ * @returns The section, defaulted where missing on disk.
38
+ */
25
39
  export declare function loadG3nuiConfig(projectRoot: string): Promise<G3nuiConfig>;
40
+ /**
41
+ * @brief Loads the `g3nerate` section with its defaults applied.
42
+ *
43
+ * @returns The section, defaulted where missing on disk.
44
+ */
26
45
  export declare function loadG3nerateConfig(projectRoot: string): Promise<G3nerateConfig>;
46
+ /**
47
+ * @brief Loads the `skills` section with its defaults applied.
48
+ *
49
+ * @returns The section, defaulted where missing on disk.
50
+ */
27
51
  export declare function loadSkillsConfig(projectRoot: string): Promise<SkillsConfig>;
52
+ /** Tells whether `.g3n.config.json` exists in a project root. */
28
53
  export declare function configExists(projectRoot: string): Promise<boolean>;
29
54
  export {};
30
55
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,SAAS,CAAC;AAYjB,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,MAAsB,GAAG,MAAM,GAAG,IAAI,CASjF;AAYD;;;GAGG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAExE;AAMD,iFAAiF;AACjF,KAAK,WAAW,CAAC,CAAC,IAChB,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,CAAC,GAC9B,CAAC,SAAS,MAAM,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACzD,CAAC,CAAC;AAEN;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,CAAC,aAAa,CAAC,GAClC,OAAO,CAAC,SAAS,CAAC,CAOpB;AAMD,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAE/E;AAED,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAErF;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAEjF;AAED,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG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AG,OAAO,CAAC,OAAO,CAAC,CAExE"}
@@ -10,14 +10,16 @@ if ("window" in globalThis) {
10
10
  // Path helper
11
11
  // ---------------------------------------------------------------------------
12
12
  const CONFIG_FILE = ".g3n.config.json";
13
+ /** Returns the path of `.g3n.config.json` inside a project root. */
13
14
  export function getConfigPath(projectRoot) {
14
15
  return join(projectRoot, CONFIG_FILE);
15
16
  }
16
17
  /**
17
- * Directory that owns the project's `.g3n.config.json`: the nearest ancestor
18
- * of `fromDir` holding the config file, else the root of the git repository
19
- * containing `fromDir`. Returns null outside a git repository when no config
20
- * exists on the way up — g3n projects are always anchored to a git repo.
18
+ * @brief Finds the directory that owns the project's `.g3n.config.json`: the nearest ancestor
19
+ * of `fromDir` holding the config file, else the root of the git repository containing `fromDir`.
20
+ *
21
+ * @param fromDir - Directory to search up from, the working directory by default.
22
+ * @returns The project root, or `null` outside a git repository when no config exists on the way up.
21
23
  */
22
24
  export function resolveProjectRoot(fromDir = process.cwd()) {
23
25
  let dir = fromDir;
@@ -35,6 +37,11 @@ export function resolveProjectRoot(fromDir = process.cwd()) {
35
37
  // ---------------------------------------------------------------------------
36
38
  // Read
37
39
  // ---------------------------------------------------------------------------
40
+ /**
41
+ * @brief Reads and validates `.g3n.config.json`, or returns an empty file view when it is missing.
42
+ *
43
+ * @returns The sections present on disk, none when the file is missing.
44
+ */
38
45
  async function readConfigFile(projectRoot) {
39
46
  const file = Bun.file(getConfigPath(projectRoot));
40
47
  if (!(await file.exists()))
@@ -42,16 +49,23 @@ async function readConfigFile(projectRoot) {
42
49
  return G3nConfigFileSchema.parse(await file.json());
43
50
  }
44
51
  /**
45
- * Loads `.g3n.config.json` from the project root as a fully-defaulted view:
46
- * sections missing on disk read as their defaults.
52
+ * @brief Loads `.g3n.config.json` from the project root as a fully-defaulted view.
53
+ *
54
+ * Sections missing on disk read as their defaults.
55
+ *
56
+ * @returns The config with every section defaulted.
47
57
  */
48
58
  export async function loadConfig(projectRoot) {
49
59
  return G3nConfigSchema.parse(await readConfigFile(projectRoot));
50
60
  }
51
61
  /**
52
- * Deep-merges updates into the existing config file and writes back to disk.
62
+ * @brief Deep-merges updates into the existing config file and writes back to disk.
63
+ *
53
64
  * Only sections already on disk or named in `updates` are written — a
54
65
  * package's init never materializes another package's section.
66
+ *
67
+ * @param updates - Partial config to merge, with every key optional at every depth.
68
+ * @returns The saved config with every section defaulted.
55
69
  */
56
70
  export async function saveConfig(projectRoot, updates) {
57
71
  const existing = await readConfigFile(projectRoot);
@@ -62,15 +76,31 @@ export async function saveConfig(projectRoot, updates) {
62
76
  // ---------------------------------------------------------------------------
63
77
  // Section accessors
64
78
  // ---------------------------------------------------------------------------
79
+ /**
80
+ * @brief Loads the `g3nui` section with its defaults applied.
81
+ *
82
+ * @returns The section, defaulted where missing on disk.
83
+ */
65
84
  export async function loadG3nuiConfig(projectRoot) {
66
85
  return (await loadConfig(projectRoot)).g3nui;
67
86
  }
87
+ /**
88
+ * @brief Loads the `g3nerate` section with its defaults applied.
89
+ *
90
+ * @returns The section, defaulted where missing on disk.
91
+ */
68
92
  export async function loadG3nerateConfig(projectRoot) {
69
93
  return (await loadConfig(projectRoot)).g3nerate;
70
94
  }
95
+ /**
96
+ * @brief Loads the `skills` section with its defaults applied.
97
+ *
98
+ * @returns The section, defaulted where missing on disk.
99
+ */
71
100
  export async function loadSkillsConfig(projectRoot) {
72
101
  return (await loadConfig(projectRoot)).skills;
73
102
  }
103
+ /** Tells whether `.g3n.config.json` exists in a project root. */
74
104
  export async function configExists(projectRoot) {
75
105
  return Bun.file(getConfigPath(projectRoot)).exists();
76
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAA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AC,CAAC,MAAM,CAAC;AAChD,CAAC;AAED,iEAAiE;AACjE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,WAAmB;IACpD,OAAO,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AACvD,CAAC"}
@@ -111,14 +111,72 @@ export declare const G3nConfigSchema: z.ZodObject<{
111
111
  }, z.core.$strip>>;
112
112
  }, z.core.$strip>>;
113
113
  }, z.core.$strip>;
114
+ /**
115
+ * @brief Settings of the `g3nui` section.
116
+ *
117
+ * @property componentsDir - Where components are installed in the user's project.
118
+ * @property includeDebugFiles - Whether to copy `.debug.ts` files alongside components.
119
+ * @property includeMetaFiles - Whether to copy `.meta.ts` files alongside components.
120
+ * @property registeredPackages - External package adapters to load, e.g. `["shadcn"]`.
121
+ */
114
122
  export type G3nuiSettings = z.infer<typeof G3nuiSettingsSchema>;
123
+ /**
124
+ * @brief Config of the `g3nui` section.
125
+ *
126
+ * @property settings - Settings of the section, defaulted where missing on disk.
127
+ */
115
128
  export type G3nuiConfig = z.infer<typeof G3nuiConfigSchema>;
129
+ /**
130
+ * @brief Settings of the `g3nerate` section.
131
+ *
132
+ * @property outputDir - Output directory for generated files.
133
+ */
116
134
  export type G3nerateSettings = z.infer<typeof G3nerateSettingsSchema>;
135
+ /**
136
+ * @brief Config of the `g3nerate` section.
137
+ *
138
+ * @property settings - Settings of the section, defaulted where missing on disk.
139
+ */
117
140
  export type G3nerateConfig = z.infer<typeof G3nerateConfigSchema>;
141
+ /**
142
+ * @brief Agent harness that skills are installed for: `claude` or `codex`.
143
+ */
118
144
  export type SkillTarget = z.infer<typeof SkillTargetSchema>;
145
+ /**
146
+ * @brief Skill install directory per harness.
147
+ *
148
+ * @property claude - Skill install directory for Claude Code, relative to the project root.
149
+ * @property codex - Skill install directory for Codex, relative to the project root.
150
+ */
119
151
  export type SkillsInstallDirs = z.infer<typeof SkillsInstallDirsSchema>;
152
+ /**
153
+ * @brief Settings of the `skills` section.
154
+ *
155
+ * @property filetreeRoot - Where the plan, phase and task tree lives, relative to the project root.
156
+ * @property targets - Agent harnesses skills are installed for.
157
+ * @property installDirs - Install directory per target; the skills.json registry sits next to each.
158
+ */
120
159
  export type SkillsSettings = z.infer<typeof SkillsSettingsSchema>;
160
+ /**
161
+ * @brief Config of the `skills` section.
162
+ *
163
+ * @property settings - Settings of the section, defaulted where missing on disk.
164
+ */
121
165
  export type SkillsConfig = z.infer<typeof SkillsConfigSchema>;
166
+ /**
167
+ * @brief Shape of `.g3n.config.json` on disk: only the sections a package's init has written.
168
+ *
169
+ * @property g3nui - The `g3nui` section, when written.
170
+ * @property g3nerate - The `g3nerate` section, when written.
171
+ * @property skills - The `skills` section, when written.
172
+ */
122
173
  export type G3nConfigFile = z.infer<typeof G3nConfigFileSchema>;
174
+ /**
175
+ * @brief The fully-defaulted config every consumer reads through `loadConfig`.
176
+ *
177
+ * @property g3nui - The `g3nui` section.
178
+ * @property g3nerate - The `g3nerate` section.
179
+ * @property skills - The `skills` section.
180
+ */
123
181
  export type G3nConfig = z.infer<typeof G3nConfigSchema>;
124
182
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB;;;;;iBAS9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;iBAE5B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAGjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;iBAE/B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;EAA8B,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAO/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAE7B,CAA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Aa,GAAS,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAa,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -6,20 +6,15 @@ import { z } from "zod";
6
6
  // runtime via `readPackageMeta`, never persisted here.
7
7
  // ---------------------------------------------------------------------------
8
8
  export const G3nuiSettingsSchema = z.object({
9
- /** Where components are installed in the user's project */
10
9
  componentsDir: z.string().default("src/components/ui"),
11
- /** Whether to copy .debug.ts files alongside components */
12
10
  includeDebugFiles: z.boolean().default(false),
13
- /** Whether to copy .meta.ts files alongside components */
14
11
  includeMetaFiles: z.boolean().default(false),
15
- /** External package adapters to load (e.g. ["shadcn"]) */
16
12
  registeredPackages: z.array(z.string()).default([]),
17
13
  });
18
14
  export const G3nuiConfigSchema = z.object({
19
15
  settings: G3nuiSettingsSchema.default(() => G3nuiSettingsSchema.parse({})),
20
16
  });
21
17
  export const G3nerateSettingsSchema = z.object({
22
- /** Output directory for generated files */
23
18
  outputDir: z.string().default("src/generated"),
24
19
  });
25
20
  export const G3nerateConfigSchema = z.object({
@@ -27,17 +22,12 @@ export const G3nerateConfigSchema = z.object({
27
22
  });
28
23
  export const SkillTargetSchema = z.enum(["claude", "codex"]);
29
24
  export const SkillsInstallDirsSchema = z.object({
30
- /** Skill install directory for Claude Code, relative to the project root */
31
25
  claude: z.string().default(".claude/skills"),
32
- /** Skill install directory for Codex (`.agents/skills`), relative to the project root */
33
26
  codex: z.string().default(".agents/skills"),
34
27
  });
35
28
  export const SkillsSettingsSchema = z.object({
36
- /** Where the plan, phase and task tree lives, relative to the project root */
37
29
  filetreeRoot: z.string().default("docs/task-manager"),
38
- /** Which agent harnesses skills are installed for */
39
30
  targets: z.array(SkillTargetSchema).min(1).default(["claude"]),
40
- /** Install directory per target; the skills.json registry sits next to each */
41
31
  installDirs: SkillsInstallDirsSchema.default(() => SkillsInstallDirsSchema.parse({})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,CAAC;IACzC,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,8EAA8E;AAC9E,sBAAsB;AACtB,8EAA8E;AAE9E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAK,iBAAiB,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,MAAM,EAAI,kBAAkB,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAK,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACtE,QAAQ,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5E,MAAM,EAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;CACzE,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Hashes a file's contents using SHA-256.
2
+ * @brief Hashes a file's contents using SHA-256.
3
+ *
3
4
  * Uses Bun's native file API + Web Crypto — no external dependencies.
4
5
  *
5
6
  * @param filePath - Absolute or relative path to the file
@@ -7,19 +8,16 @@
7
8
  */
8
9
  export declare function hashFile(filePath: string): Promise<string>;
9
10
  /**
10
- * Hashes an arbitrary string using SHA-256.
11
+ * @brief Hashes an arbitrary string using SHA-256.
12
+ *
11
13
  * Useful for hashing in-memory content before writing to disk.
12
14
  *
13
15
  * @param content - String to hash
14
16
  * @returns Lowercase hex SHA-256 digest
15
17
  */
16
18
  export declare function hashString(content: string): Promise<string>;
17
- /**
18
- * Short (first 12 chars) SHA-256 hash of a file — for display purposes.
19
- */
19
+ /** Short (first 12 chars) SHA-256 hash of a file — for display purposes. */
20
20
  export declare function hashFileShort(filePath: string): Promise<string>;
21
- /**
22
- * Short (first 12 chars) SHA-256 hash of a string — for display purposes.
23
- */
21
+ /** Short (first 12 chars) SHA-256 hash of a string — for display purposes. */
24
22
  export declare function hashStringShort(content: string): Promise<string>;
25
23
  //# sourceMappingURL=hash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMhE;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtE"}
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMhE;AAED;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE;AAED,4EAA4E;AAC5E,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE;AAED,8EAA8E;AAC9E,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEtE"}
package/dist/hash/hash.js CHANGED
@@ -1,8 +1,10 @@
1
+ // packages/core/src/hash/hash.ts
1
2
  if ("window" in globalThis) {
2
3
  throw new Error("@g3nomaly/core hash utilities are CLI-only");
3
4
  }
4
5
  /**
5
- * Hashes a file's contents using SHA-256.
6
+ * @brief Hashes a file's contents using SHA-256.
7
+ *
6
8
  * Uses Bun's native file API + Web Crypto — no external dependencies.
7
9
  *
8
10
  * @param filePath - Absolute or relative path to the file
@@ -16,7 +18,8 @@ export async function hashFile(filePath) {
16
18
  return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
17
19
  }
18
20
  /**
19
- * Hashes an arbitrary string using SHA-256.
21
+ * @brief Hashes an arbitrary string using SHA-256.
22
+ *
20
23
  * Useful for hashing in-memory content before writing to disk.
21
24
  *
22
25
  * @param content - String to hash
@@ -29,15 +32,11 @@ export async function hashString(content) {
29
32
  const hashArray = Array.from(new Uint8Array(hashBuffer));
30
33
  return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
31
34
  }
32
- /**
33
- * Short (first 12 chars) SHA-256 hash of a file — for display purposes.
34
- */
35
+ /** Short (first 12 chars) SHA-256 hash of a file — for display purposes. */
35
36
  export async function hashFileShort(filePath) {
36
37
  return (await hashFile(filePath)).substring(0, 12);
37
38
  }
38
- /**
39
- * Short (first 12 chars) SHA-256 hash of a string — for display purposes.
40
- */
39
+ /** Short (first 12 chars) SHA-256 hash of a string — for display purposes. */
41
40
  export async function hashStringShort(content) {
42
41
  return (await hashString(content)).substring(0, 12);
43
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hash.js","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAAA,IAAI,QAAQ,IAAI,UAAU,EAAE,CAAC;IAC3B,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CA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C,SAAS,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;IACzD,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxE,CAAC;AAED,4EAA4E;AAC5E,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAgB;IAClD,OAAO,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,8EAA8E;AAC9E,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,OAAe;IACnD,OAAO,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,2 +1,3 @@
1
+ // packages/core/src/hash/index.ts
1
2
  export { hashFile, hashString, hashFileShort, hashStringShort } from "./hash";
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hash/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // packages/core/src/index.ts
2
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,6BAA6B"}
@@ -1,7 +1,33 @@
1
1
  import type { BaseFileEntry, BaseRegistryEntry } from "../registry/types";
2
2
  import type { FileClassification, InstallerIO } from "./types";
3
- /** `path → hash` map of a manifest entry's files; empty when never installed. */
3
+ /**
4
+ * @brief Maps each file path of a manifest entry to the hash it was installed with.
5
+ *
6
+ * @param entry - Manifest entry to read. `undefined` when the package was never installed.
7
+ * @returns `path → hash` map, e.g. `{ "SKILL.md": "a1b2" }`. Empty when no file has a hash.
8
+ */
4
9
  export declare function recordedHashes(entry: Pick<BaseRegistryEntry, "files"> | undefined): Record<string, string>;
10
+ /**
11
+ * @brief Classifies one file against its copy on disk and the install-time record.
12
+ *
13
+ * @param file - Registry entry of the file. Its `hash` is the package's current hash, or `undefined` to resolve it.
14
+ * @param installDir - Absolute folder the package is installed into.
15
+ * @param recordedHash - Hash recorded in the user manifest at install time. `undefined` when never installed.
16
+ * @param io - Filesystem boundary used to test for the file and hash it.
17
+ * @param resolveLatestHash - Looks up the package hash when `file.hash` is not set.
18
+ * @returns Classification that `applyClassifications` consumes.
19
+ * @throws {Error} When `file` has no hash and no `resolveLatestHash` is given.
20
+ */
5
21
  export declare function classifyFile<F extends BaseFileEntry>(file: F, installDir: string, recordedHash: string | undefined, io: InstallerIO, resolveLatestHash?: (file: F) => Promise<string>): Promise<FileClassification<F>>;
22
+ /**
23
+ * @brief Classifies every file in a registry entry, in the order given.
24
+ *
25
+ * @param files - Registry entries to classify.
26
+ * @param installDir - Absolute folder the package is installed into.
27
+ * @param recorded - Install-time hashes by file path, e.g. `{ "SKILL.md": "a1b2" }`. Missing paths were never installed.
28
+ * @param io - Filesystem boundary used to test for each file and hash it.
29
+ * @param resolveLatestHash - Looks up the package hash for files whose `hash` is not set.
30
+ * @returns One classification per file, in the same order.
31
+ */
6
32
  export declare function classifyFiles<F extends BaseFileEntry>(files: readonly F[], installDir: string, recorded: Record<string, string | undefined>, io: InstallerIO, resolveLatestHash?: (file: F) => Promise<string>): Promise<FileClassification<F>[]>;
7
33
  //# sourceMappingURL=classify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/installer/classify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9D,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM1G;AAoBD,wBAAsB,YAAY,CAAC,CAAC,SAAS,aAAa,EACxD,IAAI,EAAE,CAAC,EACP,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,EAAE,EAAE,WAAW,EACf,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,GAC/C,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAUhC;AAED,wBAAsB,aAAa,CAAC,CAA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