@socketsecurity/lib 3.0.1 → 3.0.3

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 (259) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/abort.js +60 -1
  3. package/dist/abort.js.map +2 -2
  4. package/dist/agent.js +289 -1
  5. package/dist/agent.js.map +2 -2
  6. package/dist/ansi.js +60 -1
  7. package/dist/ansi.js.map +2 -2
  8. package/dist/argv/flags.js +282 -1
  9. package/dist/argv/flags.js.map +2 -2
  10. package/dist/argv/parse.js +171 -1
  11. package/dist/argv/parse.js.map +2 -2
  12. package/dist/arrays.js +85 -1
  13. package/dist/arrays.js.map +2 -2
  14. package/dist/bin.js +419 -5
  15. package/dist/bin.js.map +2 -2
  16. package/dist/cacache.js +139 -1
  17. package/dist/cacache.js.map +2 -2
  18. package/dist/cache-with-ttl.js +223 -1
  19. package/dist/cache-with-ttl.js.map +2 -2
  20. package/dist/constants/agents.js +126 -1
  21. package/dist/constants/agents.js.map +2 -2
  22. package/dist/constants/core.d.ts +1 -1
  23. package/dist/constants/core.js +57 -2
  24. package/dist/constants/core.js.map +3 -3
  25. package/dist/constants/encoding.js +48 -1
  26. package/dist/constants/encoding.js.map +2 -2
  27. package/dist/constants/github.js +30 -1
  28. package/dist/constants/github.js.map +2 -2
  29. package/dist/constants/licenses.js +66 -1
  30. package/dist/constants/licenses.js.map +2 -2
  31. package/dist/constants/node.js +185 -1
  32. package/dist/constants/node.js.map +2 -2
  33. package/dist/constants/packages.js +128 -1
  34. package/dist/constants/packages.js.map +2 -2
  35. package/dist/constants/paths.js +150 -1
  36. package/dist/constants/paths.js.map +2 -2
  37. package/dist/constants/platform.js +41 -1
  38. package/dist/constants/platform.js.map +2 -2
  39. package/dist/constants/process.js +52 -1
  40. package/dist/constants/process.js.map +2 -2
  41. package/dist/constants/socket.js +102 -1
  42. package/dist/constants/socket.js.map +2 -2
  43. package/dist/constants/testing.js +36 -1
  44. package/dist/constants/testing.js.map +2 -2
  45. package/dist/constants/time.js +39 -1
  46. package/dist/constants/time.js.map +2 -2
  47. package/dist/constants/typescript.js +54 -1
  48. package/dist/constants/typescript.js.map +2 -2
  49. package/dist/cover/code.js +135 -1
  50. package/dist/cover/code.js.map +2 -2
  51. package/dist/cover/formatters.js +101 -11
  52. package/dist/cover/formatters.js.map +2 -2
  53. package/dist/cover/type.js +63 -1
  54. package/dist/cover/type.js.map +2 -2
  55. package/dist/cover/types.js +15 -1
  56. package/dist/cover/types.js.map +2 -2
  57. package/dist/debug.js +337 -2
  58. package/dist/debug.js.map +2 -2
  59. package/dist/dlx-binary.js +408 -7
  60. package/dist/dlx-binary.js.map +2 -2
  61. package/dist/dlx-package.js +278 -7
  62. package/dist/dlx-package.js.map +2 -2
  63. package/dist/dlx.js +214 -7
  64. package/dist/dlx.js.map +3 -3
  65. package/dist/effects/pulse-frames.js +64 -1
  66. package/dist/effects/pulse-frames.js.map +2 -2
  67. package/dist/effects/text-shimmer.js +174 -1
  68. package/dist/effects/text-shimmer.js.map +2 -2
  69. package/dist/effects/types.js +15 -1
  70. package/dist/effects/types.js.map +2 -2
  71. package/dist/effects/ultra.js +61 -1
  72. package/dist/effects/ultra.js.map +2 -2
  73. package/dist/env/ci.js +31 -1
  74. package/dist/env/ci.js.map +2 -2
  75. package/dist/env/debug.js +30 -1
  76. package/dist/env/debug.js.map +2 -2
  77. package/dist/env/github.js +65 -1
  78. package/dist/env/github.js.map +2 -2
  79. package/dist/env/helpers.js +47 -1
  80. package/dist/env/helpers.js.map +2 -2
  81. package/dist/env/home.js +30 -1
  82. package/dist/env/home.js.map +2 -2
  83. package/dist/env/locale.js +40 -1
  84. package/dist/env/locale.js.map +2 -2
  85. package/dist/env/node-auth-token.js +30 -1
  86. package/dist/env/node-auth-token.js.map +2 -2
  87. package/dist/env/node-env.js +30 -1
  88. package/dist/env/node-env.js.map +2 -2
  89. package/dist/env/npm.js +50 -1
  90. package/dist/env/npm.js.map +2 -2
  91. package/dist/env/package-manager.js +73 -1
  92. package/dist/env/package-manager.js.map +2 -2
  93. package/dist/env/path.js +30 -1
  94. package/dist/env/path.js.map +2 -2
  95. package/dist/env/pre-commit.js +31 -1
  96. package/dist/env/pre-commit.js.map +2 -2
  97. package/dist/env/rewire.js +72 -1
  98. package/dist/env/rewire.js.map +2 -2
  99. package/dist/env/shell.js +30 -1
  100. package/dist/env/shell.js.map +2 -2
  101. package/dist/env/socket-cli-shadow.js +51 -1
  102. package/dist/env/socket-cli-shadow.js.map +2 -2
  103. package/dist/env/socket-cli.js +86 -1
  104. package/dist/env/socket-cli.js.map +2 -2
  105. package/dist/env/socket.js +101 -1
  106. package/dist/env/socket.js.map +2 -2
  107. package/dist/env/temp-dir.js +40 -1
  108. package/dist/env/temp-dir.js.map +2 -2
  109. package/dist/env/term.js +30 -1
  110. package/dist/env/term.js.map +2 -2
  111. package/dist/env/test.js +43 -1
  112. package/dist/env/test.js.map +2 -2
  113. package/dist/env/windows.js +45 -1
  114. package/dist/env/windows.js.map +2 -2
  115. package/dist/env/xdg.js +40 -1
  116. package/dist/env/xdg.js.map +2 -2
  117. package/dist/env.js +170 -1
  118. package/dist/env.js.map +2 -2
  119. package/dist/fs.js +670 -7
  120. package/dist/fs.js.map +2 -2
  121. package/dist/functions.js +68 -1
  122. package/dist/functions.js.map +2 -2
  123. package/dist/git.js +329 -2
  124. package/dist/git.js.map +2 -2
  125. package/dist/github.js +202 -1
  126. package/dist/github.js.map +2 -2
  127. package/dist/globs.js +149 -1
  128. package/dist/globs.js.map +3 -3
  129. package/dist/http-request.js +335 -3
  130. package/dist/http-request.js.map +2 -2
  131. package/dist/index.js +69 -1
  132. package/dist/index.js.map +2 -2
  133. package/dist/ipc.js +244 -1
  134. package/dist/ipc.js.map +2 -2
  135. package/dist/json.js +73 -1
  136. package/dist/json.js.map +2 -2
  137. package/dist/links/index.js +60 -1
  138. package/dist/links/index.js.map +2 -2
  139. package/dist/logger.js +1384 -1
  140. package/dist/logger.js.map +2 -2
  141. package/dist/maintained-node-versions.js +35 -1
  142. package/dist/maintained-node-versions.js.map +2 -2
  143. package/dist/memoization.js +210 -1
  144. package/dist/memoization.js.map +2 -2
  145. package/dist/objects.js +311 -1
  146. package/dist/objects.js.map +2 -2
  147. package/dist/packages/editable.js +356 -9
  148. package/dist/packages/editable.js.map +2 -2
  149. package/dist/packages/exports.js +162 -1
  150. package/dist/packages/exports.js.map +2 -2
  151. package/dist/packages/isolation.js +187 -1
  152. package/dist/packages/isolation.js.map +2 -2
  153. package/dist/packages/licenses.js +214 -1
  154. package/dist/packages/licenses.js.map +2 -2
  155. package/dist/packages/manifest.js +190 -1
  156. package/dist/packages/manifest.js.map +2 -2
  157. package/dist/packages/normalize.js +132 -1
  158. package/dist/packages/normalize.js.map +2 -2
  159. package/dist/packages/operations.js +320 -1
  160. package/dist/packages/operations.js.map +2 -2
  161. package/dist/packages/paths.js +53 -1
  162. package/dist/packages/paths.js.map +2 -2
  163. package/dist/packages/provenance.js +178 -1
  164. package/dist/packages/provenance.js.map +2 -2
  165. package/dist/packages/specs.js +83 -1
  166. package/dist/packages/specs.js.map +2 -2
  167. package/dist/packages/validation.js +51 -1
  168. package/dist/packages/validation.js.map +2 -2
  169. package/dist/packages.js +129 -1
  170. package/dist/packages.js.map +2 -2
  171. package/dist/path.js +446 -1
  172. package/dist/path.js.map +2 -2
  173. package/dist/paths/rewire.js +79 -1
  174. package/dist/paths/rewire.js.map +2 -2
  175. package/dist/paths.js +190 -1
  176. package/dist/paths.js.map +2 -2
  177. package/dist/performance.js +216 -15
  178. package/dist/performance.js.map +2 -2
  179. package/dist/process-lock.js +287 -8
  180. package/dist/process-lock.js.map +2 -2
  181. package/dist/promise-queue.js +109 -1
  182. package/dist/promise-queue.js.map +2 -2
  183. package/dist/promises.js +267 -1
  184. package/dist/promises.js.map +2 -2
  185. package/dist/prompts/index.js +45 -1
  186. package/dist/prompts/index.js.map +2 -2
  187. package/dist/prompts.js +58 -1
  188. package/dist/prompts.js.map +2 -2
  189. package/dist/regexps.js +30 -1
  190. package/dist/regexps.js.map +2 -2
  191. package/dist/sea.js +44 -1
  192. package/dist/sea.js.map +2 -2
  193. package/dist/shadow.js +58 -1
  194. package/dist/shadow.js.map +2 -2
  195. package/dist/signal-exit.js +248 -1
  196. package/dist/signal-exit.js.map +3 -3
  197. package/dist/sorts.js +94 -1
  198. package/dist/sorts.js.map +3 -3
  199. package/dist/spawn.js +200 -1
  200. package/dist/spawn.js.map +2 -2
  201. package/dist/spinner.js +961 -1
  202. package/dist/spinner.js.map +2 -2
  203. package/dist/ssri.js +71 -1
  204. package/dist/ssri.js.map +2 -2
  205. package/dist/stdio/clear.js +82 -1
  206. package/dist/stdio/clear.js.map +2 -2
  207. package/dist/stdio/divider.js +89 -3
  208. package/dist/stdio/divider.js.map +2 -2
  209. package/dist/stdio/footer.js +94 -2
  210. package/dist/stdio/footer.js.map +2 -2
  211. package/dist/stdio/header.js +100 -2
  212. package/dist/stdio/header.js.map +2 -2
  213. package/dist/stdio/mask.js +207 -5
  214. package/dist/stdio/mask.js.map +2 -2
  215. package/dist/stdio/progress.js +209 -2
  216. package/dist/stdio/progress.js.map +2 -2
  217. package/dist/stdio/prompts.js +88 -1
  218. package/dist/stdio/prompts.js.map +2 -2
  219. package/dist/stdio/stderr.js +89 -2
  220. package/dist/stdio/stderr.js.map +2 -2
  221. package/dist/stdio/stdout.js +103 -2
  222. package/dist/stdio/stdout.js.map +2 -2
  223. package/dist/streams.js +78 -1
  224. package/dist/streams.js.map +2 -2
  225. package/dist/strings.js +251 -3
  226. package/dist/strings.js.map +2 -2
  227. package/dist/suppress-warnings.js +98 -1
  228. package/dist/suppress-warnings.js.map +2 -2
  229. package/dist/tables.js +128 -3
  230. package/dist/tables.js.map +2 -2
  231. package/dist/temporary-executor.js +53 -1
  232. package/dist/temporary-executor.js.map +2 -2
  233. package/dist/themes/context.js +71 -1
  234. package/dist/themes/context.js.map +2 -2
  235. package/dist/themes/index.js +57 -1
  236. package/dist/themes/index.js.map +2 -2
  237. package/dist/themes/themes.js +195 -1
  238. package/dist/themes/themes.js.map +2 -2
  239. package/dist/themes/types.js +15 -1
  240. package/dist/themes/types.js.map +2 -2
  241. package/dist/themes/utils.js +116 -1
  242. package/dist/themes/utils.js.map +2 -2
  243. package/dist/types.js +59 -1
  244. package/dist/types.js.map +2 -2
  245. package/dist/url.js +142 -1
  246. package/dist/url.js.map +2 -2
  247. package/dist/utils/get-ipc.js +58 -1
  248. package/dist/utils/get-ipc.js.map +2 -2
  249. package/dist/validation/json-parser.js +127 -1
  250. package/dist/validation/json-parser.js.map +2 -2
  251. package/dist/validation/types.js +15 -1
  252. package/dist/validation/types.js.map +2 -2
  253. package/dist/versions.js +154 -1
  254. package/dist/versions.js.map +2 -2
  255. package/dist/words.js +50 -1
  256. package/dist/words.js.map +2 -2
  257. package/dist/zod.js +27 -1
  258. package/dist/zod.js.map +2 -2
  259. package/package.json +1 -1
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/effects/text-shimmer.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview Text shimmer animation utilities.\n * Provides animated highlight effects for spinner text with configurable directions:\n * - LTR (left-to-right): Shimmer wave moves from left to right\n * - RTL (right-to-left): Shimmer wave moves from right to left\n * - Bidirectional: Alternates between LTR and RTL each cycle\n * - Random: Picks a random direction each cycle\n * - None: No shimmer animation\n *\n * The shimmer effect creates a bright wave that travels across the text,\n * with characters near the wave appearing nearly white and fading to the\n * base color as they get further from the wave position.\n */\n\nimport { ANSI_RESET, stripAnsi } from '../ansi'\nimport { isArray } from '../arrays'\nimport { getCI } from '#env/ci'\n\nimport type {\n ShimmerColorGradient,\n ShimmerColorRgb,\n ShimmerDirection,\n ShimmerState,\n} from './types'\n\n// Re-export types for backward compatibility.\nexport type {\n ShimmerColor,\n ShimmerColorGradient,\n ShimmerColorInherit,\n ShimmerColorRgb,\n ShimmerConfig,\n ShimmerDirection,\n ShimmerState,\n} from './types'\n\n/**\n * Detected text formatting styles from ANSI codes.\n */\ntype TextStyles = {\n bold: boolean\n dim: boolean\n italic: boolean\n strikethrough: boolean\n underline: boolean\n}\n\n/**\n * Detect all text formatting styles present in ANSI-coded text.\n * Checks for bold, dim, italic, underline, and strikethrough.\n */\nfunction detectStyles(text: string): TextStyles {\n return {\n __proto__: null,\n // biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI escape sequence detection.\n bold: /\\x1b\\[1m/.test(text),\n // biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI escape sequence detection.\n dim: /\\x1b\\[2m/.test(text),\n // biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI escape sequence detection.\n italic: /\\x1b\\[3m/.test(text),\n // biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI escape sequence detection.\n strikethrough: /\\x1b\\[9m/.test(text),\n // biome-ignore lint/suspicious/noControlCharactersInRegex: ANSI escape sequence detection.\n underline: /\\x1b\\[4m/.test(text),\n } as TextStyles\n}\n\n/**\n * Build ANSI code string from text styles.\n * Returns the concatenated ANSI codes needed to apply the styles.\n */\nfunction stylesToAnsi(styles: TextStyles): string {\n let codes = ''\n if (styles.bold) {\n codes += '\\x1b[1m'\n }\n if (styles.dim) {\n codes += '\\x1b[2m'\n }\n if (styles.italic) {\n codes += '\\x1b[3m'\n }\n if (styles.underline) {\n codes += '\\x1b[4m'\n }\n if (styles.strikethrough) {\n codes += '\\x1b[9m'\n }\n return codes\n}\n\n// Internal options for applyShimmer function.\ntype ShimmerOptions = {\n readonly color?: ShimmerColorRgb | ShimmerColorGradient | undefined\n readonly direction?: ShimmerDirection | undefined\n readonly shimmerWidth?: number | undefined\n readonly styles?: TextStyles | undefined\n}\n\nexport const COLOR_INHERIT = 'inherit'\n\nexport const DIR_LTR = 'ltr'\n\nexport const DIR_NONE = 'none'\n\nexport const DIR_RANDOM = 'random'\n\nexport const DIR_RTL = 'rtl'\n\nexport const MODE_BI = 'bi'\n\n/**\n * Calculate shimmer intensity based on distance from shimmer wave position.\n * Uses a power curve for smooth falloff - characters close to the wave\n * get high intensity (bright white), while distant characters get 0.\n */\nfunction shimmerIntensity(\n distance: number,\n shimmerWidth: number = 2.5,\n): number {\n // Characters beyond shimmer width get no effect.\n if (distance > shimmerWidth) {\n return 0\n }\n // Smooth falloff using power curve.\n const normalized = distance / shimmerWidth\n return (1 - normalized) ** 2.5\n}\n\n/**\n * Blend two RGB colors based on a blend factor (0-1).\n * factor 0 = color1, factor 1 = color2, factor 0.5 = 50/50 blend.\n */\nfunction blendColors(\n color1: readonly [number, number, number],\n color2: readonly [number, number, number],\n factor: number,\n): readonly [number, number, number] {\n const r = Math.round(color1[0] + (color2[0] - color1[0]) * factor)\n const g = Math.round(color1[1] + (color2[1] - color1[1]) * factor)\n const b = Math.round(color1[2] + (color2[2] - color1[2]) * factor)\n return [r, g, b] as const\n}\n\n/**\n * Render character with shimmer effect based on distance from shimmer position.\n * Characters closer to the shimmer position get brighter (nearly white),\n * while characters further away use the base color.\n * Creates a smooth gradient by blending base color with white based on intensity.\n * Supports both single color and per-character color gradients.\n */\nfunction renderChar(\n char: string,\n index: number,\n shimmerPos: number,\n baseColor: readonly [number, number, number] | ShimmerColorGradient,\n styles: TextStyles,\n): string {\n // Calculate how far this character is from the shimmer wave.\n const distance = Math.abs(index - shimmerPos)\n const intensity = shimmerIntensity(distance)\n\n const styleCode = stylesToAnsi(styles)\n\n // Get base color for this character (single or per-character from gradient).\n const charColor: readonly [number, number, number] = isArray(baseColor[0])\n ? ((baseColor as ShimmerColorGradient)[index % baseColor.length] ?? [\n 140, 82, 255,\n ])\n : (baseColor as readonly [number, number, number])\n\n // If no shimmer intensity, use base color as-is.\n if (intensity === 0) {\n const base = `\\x1b[38;2;${charColor[0]};${charColor[1]};${charColor[2]}m`\n return `${styleCode}${base}${char}${ANSI_RESET}`\n }\n\n // Blend base color with white based on intensity to create smooth gradient.\n // Higher intensity = more white, creating the shimmer wave effect.\n const white: readonly [number, number, number] = [255, 255, 255] as const\n const blended = blendColors(charColor, white, intensity)\n\n const color = `\\x1b[38;2;${blended[0]};${blended[1]};${blended[2]}m`\n return `${styleCode}${color}${char}${ANSI_RESET}`\n}\n\n/**\n * Calculate shimmer wave position for current animation step.\n * The shimmer wave moves across the text length, with extra space\n * for the wave to fade in/out at the edges.\n */\nfunction getShimmerPos(\n textLength: number,\n step: number,\n currentDir: 'ltr' | 'rtl',\n shimmerWidth: number = 2.5,\n): number {\n // Total steps for one complete cycle (text length + fade in/out space).\n const totalSteps = textLength + shimmerWidth + 2\n\n // RTL: Shimmer moves from right to left.\n if (currentDir === DIR_RTL) {\n return textLength - (step % totalSteps)\n }\n\n // LTR: Shimmer moves from left to right.\n return step % totalSteps\n}\n\n/**\n * Resolve shimmer direction to a concrete 'ltr' or 'rtl' value.\n * Used for initializing shimmer state and picking random directions.\n */\nfunction pickDirection(direction: ShimmerDirection): 'ltr' | 'rtl' {\n // Random mode: 50/50 chance of LTR or RTL.\n if (direction === DIR_RANDOM) {\n return Math.random() < 0.5 ? DIR_LTR : DIR_RTL\n }\n // RTL mode: Use RTL direction.\n if (direction === DIR_RTL) {\n return DIR_RTL\n }\n // LTR mode (or any other): Default to LTR.\n return DIR_LTR\n}\n\n/**\n * Apply shimmer animation effect to text.\n * This is the main entry point for shimmer animations. It:\n * 1. Strips ANSI codes to get plain text for character positioning\n * 2. Detects any styling (bold, italic, underline, etc.) to preserve\n * 3. Calculates the current shimmer wave position based on animation step\n * 4. Renders each character with appropriate brightness based on distance from wave\n * 5. Updates the animation state for the next frame\n * 6. Handles direction changes for bidirectional and random modes\n */\nexport function applyShimmer(\n text: string,\n state: ShimmerState,\n options?: ShimmerOptions | undefined,\n): string {\n const opts = { __proto__: null, ...options } as ShimmerOptions\n const direction = opts.direction ?? DIR_NONE\n const shimmerWidth = opts.shimmerWidth ?? 2.5\n // Socket purple.\n const color = opts.color ?? ([140, 82, 255] as const)\n\n // Detect text formatting styles from original text.\n const styles = opts.styles ?? detectStyles(text)\n\n // Strip ANSI codes to get plain text.\n const plainText = stripAnsi(text)\n\n // No shimmer effect in CI or when direction is 'none'.\n if (getCI() || !plainText || direction === DIR_NONE) {\n const styleCode = stylesToAnsi(styles)\n\n // Support gradient colors (array of colors, one per character).\n const isGradient = isArray(color[0])\n\n return plainText\n .split('')\n .map((char, i) => {\n const charColor: readonly [number, number, number] = isGradient\n ? ((color as ShimmerColorGradient)[i % color.length] ?? [\n 140, 82, 255,\n ])\n : (color as readonly [number, number, number])\n const base = `\\x1b[38;2;${charColor[0]};${charColor[1]};${charColor[2]}m`\n return `${styleCode}${base}${char}${ANSI_RESET}`\n })\n .join('')\n }\n\n // Calculate shimmer position.\n const shimmerPos = getShimmerPos(\n plainText.length,\n state.step,\n state.currentDir,\n shimmerWidth,\n )\n\n // Render text with shimmer.\n const result = plainText\n .split('')\n .map((char, i) => renderChar(char, i, shimmerPos, color, styles))\n .join('')\n\n // Advance shimmer position by speed amount each frame.\n // Speed represents steps per frame (e.g., 0.33 = advance 0.33 steps per frame).\n // This creates smooth animation by moving in small increments every frame\n // instead of jumping larger distances every N frames.\n state.step += state.speed\n\n // Handle bidirectional direction changes.\n const totalSteps = plainText.length + shimmerWidth + 2\n if (state.mode === MODE_BI) {\n if (state.step >= totalSteps) {\n state.step = 0\n // Toggle direction every cycle.\n state.currentDir = state.currentDir === DIR_LTR ? DIR_RTL : DIR_LTR\n }\n } else if (state.mode === DIR_RANDOM) {\n // Change direction randomly at end of each cycle.\n if (state.step >= totalSteps) {\n state.step = 0\n state.currentDir = pickDirection(DIR_RANDOM)\n }\n } else {\n // Reset for continuous loops.\n if (state.step >= totalSteps) {\n state.step = 0\n }\n }\n\n return result\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,YAAAC,EAAA,aAAAC,EAAA,eAAAC,EAAA,YAAAC,EAAA,YAAAC,EAAA,iBAAAC,IAAA,eAAAC,EAAAT,GAcA,IAAAU,EAAsC,mBACtCC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AM,MAAM,GAAK,CACpD,IAAK,GAAI,GACX,EACCA,EACCF,EAAO,aAAaD,EAAU,CAAC,CAAC,IAAIA,EAAU,CAAC,CAAC,IAAIA,EAAU,CAAC,CAAC,IACtE,MAAO,GAAGD,CAAS,GAAGE,CAAI,GAAGP,CAAI,GAAG,YAAU,EAChD,CAAC,EACA,KAAK,EAAE,CACZ,CAGA,MAAME,EAAaQ,EACjBU,EAAU,OACVH,EAAM,KACNA,EAAM,WACN1B,CACF,EAGMgC,EAASH,EACZ,MAAM,EAAE,EACR,IAAI,CAACpB,EAAMsB,IAAMvB,EAAWC,EAAMsB,EAAGpB,EAAYO,EAAOtB,CAAM,CAAC,EAC/D,KAAK,EAAE,EAMV8B,EAAM,MAAQA,EAAM,MAGpB,MAAMH,EAAaM,EAAU,OAAS7B,EAAe,EACrD,OAAI0B,EAAM,OAASvC,EACbuC,EAAM,MAAQH,IAChBG,EAAM,KAAO,EAEbA,EAAM,WAAaA,EAAM,aAAe3C,EAAUG,EAAUH,GAErD2C,EAAM,OAASzC,EAEpByC,EAAM,MAAQH,IAChBG,EAAM,KAAO,EACbA,EAAM,WAAaF,EAAcvC,CAAU,GAIzCyC,EAAM,MAAQH,IAChBG,EAAM,KAAO,GAIVM,CACT",
6
- "names": ["text_shimmer_exports", "__export", "COLOR_INHERIT", "DIR_LTR", "DIR_NONE", "DIR_RANDOM", "DIR_RTL", "MODE_BI", "applyShimmer", "__toCommonJS", "import_ansi", "import_arrays", "import_ci", "detectStyles", "text", "stylesToAnsi", "styles", "codes", "shimmerIntensity", "distance", "shimmerWidth", "blendColors", "color1", "color2", "factor", "r", "g", "b", "renderChar", "char", "index", "shimmerPos", "baseColor", "intensity", "styleCode", "charColor", "base", "blended", "color", "getShimmerPos", "textLength", "step", "currentDir", "totalSteps", "pickDirection", "direction", "state", "options", "opts", "plainText", "isGradient", "i", "result"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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AA,IACf;AAAA,EACF;AAEA,SAAO;AACT;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,17 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var i=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var h=(r,e,n,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!d.call(r,o)&&o!==n&&i(r,o,{get:()=>e[o],enumerable:!(m=t(e,o))||m.enumerable});return r};var p=r=>h(i({},"__esModule",{value:!0}),r);var S={};module.exports=p(S);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var types_exports = {};
16
+ module.exports = __toCommonJS(types_exports);
3
17
  //# sourceMappingURL=types.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/effects/types.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview Shared types for effects (shimmer, pulse, ultra, etc.).\n * Common type definitions used across multiple effect modules.\n */\n\nexport type ShimmerColorInherit = 'inherit'\n\nexport type ShimmerColorRgb = readonly [number, number, number]\n\nexport type ShimmerColor = ShimmerColorInherit | ShimmerColorRgb\n\nexport type ShimmerColorGradient = readonly ShimmerColorRgb[]\n\nexport type ShimmerDirection = 'ltr' | 'rtl' | 'bi' | 'random' | 'none'\n\n/**\n * Shimmer animation configuration.\n */\nexport type ShimmerConfig = {\n readonly color?: ShimmerColor | ShimmerColorGradient | undefined\n readonly dir?: ShimmerDirection | undefined\n /**\n * Animation speed in steps per frame.\n * Lower values = slower shimmer (e.g., 0.33 = ~150ms per step).\n * Higher values = faster shimmer (e.g., 1.0 = 50ms per step).\n * Default: 1/3 (~0.33).\n */\n readonly speed?: number | undefined\n}\n\n/**\n * Internal shimmer animation state.\n * Tracks current animation position and direction.\n */\nexport type ShimmerState = {\n currentDir: 'ltr' | 'rtl'\n mode: ShimmerDirection\n /**\n * Animation speed in steps per frame.\n * The shimmer position advances by this amount every frame.\n */\n speed: number\n /**\n * Current shimmer position.\n * Can be fractional for smooth sub-character movement.\n */\n step: number\n}\n"],
5
- "mappings": ";kWAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
- "names": ["types_exports", "__toCommonJS"]
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,63 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var h=(r,o)=>{for(var e in o)i(r,e,{get:o[e],enumerable:!0})},s=(r,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of a(o))!c.call(r,t)&&t!==e&&i(r,t,{get:()=>o[t],enumerable:!(n=l(o,t))||n.enumerable});return r};var d=r=>s(i({},"__esModule",{value:!0}),r);var C={};h(C,{RAINBOW_GRADIENT:()=>m,generateRainbowGradient:()=>p});module.exports=d(C);const m=[[255,100,120],[255,140,80],[255,180,60],[220,200,80],[120,200,100],[80,200,180],[80,160,220],[140,120,220],[200,100,200],[255,100,140]];function p(r){const o=[];for(let e=0;e<r;e+=1){const n=e%m.length,t=m[n];t&&o.push(t)}return o}0&&(module.exports={RAINBOW_GRADIENT,generateRainbowGradient});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var ultra_exports = {};
20
+ __export(ultra_exports, {
21
+ RAINBOW_GRADIENT: () => RAINBOW_GRADIENT,
22
+ generateRainbowGradient: () => generateRainbowGradient
23
+ });
24
+ module.exports = __toCommonJS(ultra_exports);
25
+ const RAINBOW_GRADIENT = [
26
+ // Red/pink.
27
+ [255, 100, 120],
28
+ // Orange.
29
+ [255, 140, 80],
30
+ // Yellow/gold.
31
+ [255, 180, 60],
32
+ // Yellow/green.
33
+ [220, 200, 80],
34
+ // Green.
35
+ [120, 200, 100],
36
+ // Cyan/turquoise.
37
+ [80, 200, 180],
38
+ // Blue.
39
+ [80, 160, 220],
40
+ // Purple/violet.
41
+ [140, 120, 220],
42
+ // Pink/magenta.
43
+ [200, 100, 200],
44
+ // Red/pink.
45
+ [255, 100, 140]
46
+ ];
47
+ function generateRainbowGradient(textLength) {
48
+ const colors = [];
49
+ for (let i = 0; i < textLength; i += 1) {
50
+ const colorIndex = i % RAINBOW_GRADIENT.length;
51
+ const color = RAINBOW_GRADIENT[colorIndex];
52
+ if (color) {
53
+ colors.push(color);
54
+ }
55
+ }
56
+ return colors;
57
+ }
58
+ // Annotate the CommonJS export names for ESM import in node:
59
+ 0 && (module.exports = {
60
+ RAINBOW_GRADIENT,
61
+ generateRainbowGradient
62
+ });
3
63
  //# sourceMappingURL=ultra.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/effects/ultra.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview Ultrathink rainbow gradient effect.\n * Provides rainbow gradient color generation for shimmer animations.\n * \"Ultrathink\" is Claude's intensive thinking mode for deep analysis.\n */\n\nimport type { ShimmerColorGradient, ShimmerColorRgb } from './types'\n\n/**\n * Rainbow gradient colors used for ultrathink effect.\n * This gradient cycles through the full color spectrum with smooth transitions.\n */\nexport const RAINBOW_GRADIENT: ShimmerColorGradient = [\n // Red/pink.\n [255, 100, 120],\n // Orange.\n [255, 140, 80],\n // Yellow/gold.\n [255, 180, 60],\n // Yellow/green.\n [220, 200, 80],\n // Green.\n [120, 200, 100],\n // Cyan/turquoise.\n [80, 200, 180],\n // Blue.\n [80, 160, 220],\n // Purple/violet.\n [140, 120, 220],\n // Pink/magenta.\n [200, 100, 200],\n // Red/pink.\n [255, 100, 140],\n]\n\n/**\n * Generate rainbow gradient colors for any text length.\n * Colors are distributed evenly across the text by cycling through the gradient.\n */\nexport function generateRainbowGradient(\n textLength: number,\n): ShimmerColorGradient {\n const colors: ShimmerColorRgb[] = []\n\n for (let i = 0; i < textLength; i += 1) {\n const colorIndex = i % RAINBOW_GRADIENT.length\n const color = RAINBOW_GRADIENT[colorIndex]\n if (color) {\n colors.push(color)\n }\n }\n\n return colors as ShimmerColorGradient\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,4BAAAC,IAAA,eAAAC,EAAAJ,GAYO,MAAME,EAAyC,CAEpD,CAAC,IAAK,IAAK,GAAG,EAEd,CAAC,IAAK,IAAK,EAAE,EAEb,CAAC,IAAK,IAAK,EAAE,EAEb,CAAC,IAAK,IAAK,EAAE,EAEb,CAAC,IAAK,IAAK,GAAG,EAEd,CAAC,GAAI,IAAK,GAAG,EAEb,CAAC,GAAI,IAAK,GAAG,EAEb,CAAC,IAAK,IAAK,GAAG,EAEd,CAAC,IAAK,IAAK,GAAG,EAEd,CAAC,IAAK,IAAK,GAAG,CAChB,EAMO,SAASC,EACdE,EACsB,CACtB,MAAMC,EAA4B,CAAC,EAEnC,QAASC,EAAI,EAAGA,EAAIF,EAAYE,GAAK,EAAG,CACtC,MAAMC,EAAaD,EAAIL,EAAiB,OAClCO,EAAQP,EAAiBM,CAAU,EACrCC,GACFH,EAAO,KAAKG,CAAK,CAErB,CAEA,OAAOH,CACT",
6
- "names": ["ultra_exports", "__export", "RAINBOW_GRADIENT", "generateRainbowGradient", "__toCommonJS", "textLength", "colors", "i", "colorIndex", "color"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,mBAAyC;AAAA;AAAA,EAEpD,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAEd,CAAC,KAAK,KAAK,EAAE;AAAA;AAAA,EAEb,CAAC,KAAK,KAAK,EAAE;AAAA;AAAA,EAEb,CAAC,KAAK,KAAK,EAAE;AAAA;AAAA,EAEb,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAEd,CAAC,IAAI,KAAK,GAAG;AAAA;AAAA,EAEb,CAAC,IAAI,KAAK,GAAG;AAAA;AAAA,EAEb,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAEd,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAEd,CAAC,KAAK,KAAK,GAAG;AAChB;AAMO,SAAS,wBACd,YACsB;AACtB,QAAM,SAA4B,CAAC;AAEnC,WAAS,IAAI,GAAG,IAAI,YAAY,KAAK,GAAG;AACtC,UAAM,aAAa,IAAI,iBAAiB;AACxC,UAAM,QAAQ,iBAAiB,UAAU;AACzC,QAAI,OAAO;AACT,aAAO,KAAK,KAAK;AAAA,IACnB;AAAA,EACF;AAEA,SAAO;AACT;",
6
+ "names": []
7
7
  }
package/dist/env/ci.js CHANGED
@@ -1,3 +1,33 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var r in o)t(e,r,{get:o[r],enumerable:!0})},g=(e,o,r,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of l(o))!p.call(e,n)&&n!==r&&t(e,n,{get:()=>o[n],enumerable:!(m=i(o,n))||m.enumerable});return e};var v=e=>g(t({},"__esModule",{value:!0}),e);var I={};u(I,{getCI:()=>C});module.exports=v(I);var a=require("#env/helpers"),f=require("#env/rewire");function C(){return(0,a.envAsBoolean)((0,f.getEnvValue)("CI"))}0&&(module.exports={getCI});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var ci_exports = {};
20
+ __export(ci_exports, {
21
+ getCI: () => getCI
22
+ });
23
+ module.exports = __toCommonJS(ci_exports);
24
+ var import_helpers = require("#env/helpers");
25
+ var import_rewire = require("#env/rewire");
26
+ function getCI() {
27
+ return (0, import_helpers.envAsBoolean)((0, import_rewire.getEnvValue)("CI"));
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ getCI
32
+ });
3
33
  //# sourceMappingURL=ci.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/ci.ts"],
4
4
  "sourcesContent": ["/**\n * CI environment variable getter.\n * Determines if code is running in a Continuous Integration environment.\n */\n\nimport { envAsBoolean } from '#env/helpers'\nimport { getEnvValue } from '#env/rewire'\n\nexport function getCI(): boolean {\n return envAsBoolean(getEnvValue('CI'))\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,IAAA,eAAAC,EAAAH,GAKA,IAAAI,EAA6B,wBAC7BC,EAA4B,uBAErB,SAASH,GAAiB,CAC/B,SAAO,mBAAa,eAAY,IAAI,CAAC,CACvC",
6
- "names": ["ci_exports", "__export", "getCI", "__toCommonJS", "import_helpers", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,qBAA6B;AAC7B,oBAA4B;AAErB,SAAS,QAAiB;AAC/B,aAAO,iCAAa,2BAAY,IAAI,CAAC;AACvC;",
6
+ "names": []
7
7
  }
package/dist/env/debug.js CHANGED
@@ -1,3 +1,32 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var u=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(n,e)=>{for(var r in e)u(n,r,{get:e[r],enumerable:!0})},p=(n,e,r,g)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of f(e))!d.call(n,t)&&t!==r&&u(n,t,{get:()=>e[t],enumerable:!(g=o(e,t))||g.enumerable});return n};var D=n=>p(u({},"__esModule",{value:!0}),n);var a={};m(a,{getDebug:()=>E});module.exports=D(a);var i=require("#env/rewire");function E(){return(0,i.getEnvValue)("DEBUG")}0&&(module.exports={getDebug});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var debug_exports = {};
20
+ __export(debug_exports, {
21
+ getDebug: () => getDebug
22
+ });
23
+ module.exports = __toCommonJS(debug_exports);
24
+ var import_rewire = require("#env/rewire");
25
+ function getDebug() {
26
+ return (0, import_rewire.getEnvValue)("DEBUG");
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getDebug
31
+ });
3
32
  //# sourceMappingURL=debug.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/debug.ts"],
4
4
  "sourcesContent": ["/**\n * DEBUG environment variable getter.\n * Controls debug output for the debug package.\n */\n\nimport { getEnvValue } from '#env/rewire'\n\nexport function getDebug(): string | undefined {\n return getEnvValue('DEBUG')\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAKA,IAAAI,EAA4B,uBAErB,SAASF,GAA+B,CAC7C,SAAO,eAAY,OAAO,CAC5B",
6
- "names": ["debug_exports", "__export", "getDebug", "__toCommonJS", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA4B;AAErB,SAAS,WAA+B;AAC7C,aAAO,2BAAY,OAAO;AAC5B;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,67 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var G=(t,e)=>{for(var i in e)u(t,i,{get:e[i],enumerable:!0})},T=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of g(e))!d.call(t,r)&&r!==i&&u(t,r,{get:()=>e[r],enumerable:!(o=f(e,r))||o.enumerable});return t};var R=t=>T(u({},"__esModule",{value:!0}),t);var h={};G(h,{getGhToken:()=>c,getGithubApiUrl:()=>_,getGithubBaseRef:()=>p,getGithubRefName:()=>E,getGithubRefType:()=>U,getGithubRepository:()=>s,getGithubServerUrl:()=>B,getGithubToken:()=>I});module.exports=R(h);var n=require("#env/rewire");function _(){return(0,n.getEnvValue)("GITHUB_API_URL")}function p(){return(0,n.getEnvValue)("GITHUB_BASE_REF")}function E(){return(0,n.getEnvValue)("GITHUB_REF_NAME")}function U(){return(0,n.getEnvValue)("GITHUB_REF_TYPE")}function s(){return(0,n.getEnvValue)("GITHUB_REPOSITORY")}function B(){return(0,n.getEnvValue)("GITHUB_SERVER_URL")}function I(){return(0,n.getEnvValue)("GITHUB_TOKEN")}function c(){return(0,n.getEnvValue)("GH_TOKEN")}0&&(module.exports={getGhToken,getGithubApiUrl,getGithubBaseRef,getGithubRefName,getGithubRefType,getGithubRepository,getGithubServerUrl,getGithubToken});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var github_exports = {};
20
+ __export(github_exports, {
21
+ getGhToken: () => getGhToken,
22
+ getGithubApiUrl: () => getGithubApiUrl,
23
+ getGithubBaseRef: () => getGithubBaseRef,
24
+ getGithubRefName: () => getGithubRefName,
25
+ getGithubRefType: () => getGithubRefType,
26
+ getGithubRepository: () => getGithubRepository,
27
+ getGithubServerUrl: () => getGithubServerUrl,
28
+ getGithubToken: () => getGithubToken
29
+ });
30
+ module.exports = __toCommonJS(github_exports);
31
+ var import_rewire = require("#env/rewire");
32
+ function getGithubApiUrl() {
33
+ return (0, import_rewire.getEnvValue)("GITHUB_API_URL");
34
+ }
35
+ function getGithubBaseRef() {
36
+ return (0, import_rewire.getEnvValue)("GITHUB_BASE_REF");
37
+ }
38
+ function getGithubRefName() {
39
+ return (0, import_rewire.getEnvValue)("GITHUB_REF_NAME");
40
+ }
41
+ function getGithubRefType() {
42
+ return (0, import_rewire.getEnvValue)("GITHUB_REF_TYPE");
43
+ }
44
+ function getGithubRepository() {
45
+ return (0, import_rewire.getEnvValue)("GITHUB_REPOSITORY");
46
+ }
47
+ function getGithubServerUrl() {
48
+ return (0, import_rewire.getEnvValue)("GITHUB_SERVER_URL");
49
+ }
50
+ function getGithubToken() {
51
+ return (0, import_rewire.getEnvValue)("GITHUB_TOKEN");
52
+ }
53
+ function getGhToken() {
54
+ return (0, import_rewire.getEnvValue)("GH_TOKEN");
55
+ }
56
+ // Annotate the CommonJS export names for ESM import in node:
57
+ 0 && (module.exports = {
58
+ getGhToken,
59
+ getGithubApiUrl,
60
+ getGithubBaseRef,
61
+ getGithubRefName,
62
+ getGithubRefType,
63
+ getGithubRepository,
64
+ getGithubServerUrl,
65
+ getGithubToken
66
+ });
3
67
  //# sourceMappingURL=github.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/github.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview GitHub Actions environment variable getters.\n * Provides access to GitHub Actions CI/CD environment variables.\n */\n\nimport { getEnvValue } from '#env/rewire'\n\n/**\n * GITHUB_API_URL environment variable.\n * GitHub API URL (e.g., https://api.github.com).\n */\nexport function getGithubApiUrl(): string | undefined {\n return getEnvValue('GITHUB_API_URL')\n}\n\n/**\n * GITHUB_BASE_REF environment variable.\n * GitHub pull request base branch.\n */\nexport function getGithubBaseRef(): string | undefined {\n return getEnvValue('GITHUB_BASE_REF')\n}\n\n/**\n * GITHUB_REF_NAME environment variable.\n * GitHub branch or tag name.\n */\nexport function getGithubRefName(): string | undefined {\n return getEnvValue('GITHUB_REF_NAME')\n}\n\n/**\n * GITHUB_REF_TYPE environment variable.\n * GitHub ref type (branch or tag).\n */\nexport function getGithubRefType(): string | undefined {\n return getEnvValue('GITHUB_REF_TYPE')\n}\n\n/**\n * GITHUB_REPOSITORY environment variable.\n * GitHub repository name in owner/repo format.\n */\nexport function getGithubRepository(): string | undefined {\n return getEnvValue('GITHUB_REPOSITORY')\n}\n\n/**\n * GITHUB_SERVER_URL environment variable.\n * GitHub server URL (e.g., https://github.com).\n */\nexport function getGithubServerUrl(): string | undefined {\n return getEnvValue('GITHUB_SERVER_URL')\n}\n\n/**\n * GITHUB_TOKEN environment variable.\n * GitHub authentication token for API access.\n */\nexport function getGithubToken(): string | undefined {\n return getEnvValue('GITHUB_TOKEN')\n}\n\n/**\n * GH_TOKEN environment variable.\n * Alternative GitHub authentication token for API access (used by GitHub CLI).\n */\nexport function getGhToken(): string | undefined {\n return getEnvValue('GH_TOKEN')\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,EAAA,oBAAAC,EAAA,qBAAAC,EAAA,qBAAAC,EAAA,qBAAAC,EAAA,wBAAAC,EAAA,uBAAAC,EAAA,mBAAAC,IAAA,eAAAC,EAAAV,GAKA,IAAAW,EAA4B,uBAMrB,SAASR,GAAsC,CACpD,SAAO,eAAY,gBAAgB,CACrC,CAMO,SAASC,GAAuC,CACrD,SAAO,eAAY,iBAAiB,CACtC,CAMO,SAASC,GAAuC,CACrD,SAAO,eAAY,iBAAiB,CACtC,CAMO,SAASC,GAAuC,CACrD,SAAO,eAAY,iBAAiB,CACtC,CAMO,SAASC,GAA0C,CACxD,SAAO,eAAY,mBAAmB,CACxC,CAMO,SAASC,GAAyC,CACvD,SAAO,eAAY,mBAAmB,CACxC,CAMO,SAASC,GAAqC,CACnD,SAAO,eAAY,cAAc,CACnC,CAMO,SAASP,GAAiC,CAC/C,SAAO,eAAY,UAAU,CAC/B",
6
- "names": ["github_exports", "__export", "getGhToken", "getGithubApiUrl", "getGithubBaseRef", "getGithubRefName", "getGithubRefType", "getGithubRepository", "getGithubServerUrl", "getGithubToken", "__toCommonJS", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA4B;AAMrB,SAAS,kBAAsC;AACpD,aAAO,2BAAY,gBAAgB;AACrC;AAMO,SAAS,mBAAuC;AACrD,aAAO,2BAAY,iBAAiB;AACtC;AAMO,SAAS,mBAAuC;AACrD,aAAO,2BAAY,iBAAiB;AACtC;AAMO,SAAS,mBAAuC;AACrD,aAAO,2BAAY,iBAAiB;AACtC;AAMO,SAAS,sBAA0C;AACxD,aAAO,2BAAY,mBAAmB;AACxC;AAMO,SAAS,qBAAyC;AACvD,aAAO,2BAAY,mBAAmB;AACxC;AAMO,SAAS,iBAAqC;AACnD,aAAO,2BAAY,cAAc;AACnC;AAMO,SAAS,aAAiC;AAC/C,aAAO,2BAAY,UAAU;AAC/B;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,49 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var d=(e,n)=>{for(var t in n)o(e,t,{get:n[t],enumerable:!0})},b=(e,n,t,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of s(n))!f.call(e,r)&&r!==t&&o(e,r,{get:()=>n[r],enumerable:!(u=i(n,r))||u.enumerable});return e};var c=e=>b(o({},"__esModule",{value:!0}),e);var a={};d(a,{envAsBoolean:()=>g,envAsNumber:()=>m,envAsString:()=>N});module.exports=c(a);function g(e){if(!e)return!1;const n=e.toLowerCase();return n==="true"||n==="1"||n==="yes"}function m(e){if(!e)return 0;const n=Number(e);return Number.isNaN(n)?0:n}function N(e){return e||""}0&&(module.exports={envAsBoolean,envAsNumber,envAsString});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var helpers_exports = {};
20
+ __export(helpers_exports, {
21
+ envAsBoolean: () => envAsBoolean,
22
+ envAsNumber: () => envAsNumber,
23
+ envAsString: () => envAsString
24
+ });
25
+ module.exports = __toCommonJS(helpers_exports);
26
+ function envAsBoolean(value) {
27
+ if (!value) {
28
+ return false;
29
+ }
30
+ const lower = value.toLowerCase();
31
+ return lower === "true" || lower === "1" || lower === "yes";
32
+ }
33
+ function envAsNumber(value) {
34
+ if (!value) {
35
+ return 0;
36
+ }
37
+ const num = Number(value);
38
+ return Number.isNaN(num) ? 0 : num;
39
+ }
40
+ function envAsString(value) {
41
+ return value || "";
42
+ }
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ envAsBoolean,
46
+ envAsNumber,
47
+ envAsString
48
+ });
3
49
  //# sourceMappingURL=helpers.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/helpers.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview Environment variable type conversion helpers.\n */\n\nexport function envAsBoolean(value: string | undefined): boolean {\n if (!value) {\n return false\n }\n const lower = value.toLowerCase()\n return lower === 'true' || lower === '1' || lower === 'yes'\n}\n\nexport function envAsNumber(value: string | undefined): number {\n if (!value) {\n return 0\n }\n const num = Number(value)\n return Number.isNaN(num) ? 0 : num\n}\n\nexport function envAsString(value: string | undefined): string {\n return value || ''\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,kBAAAE,EAAA,gBAAAC,EAAA,gBAAAC,IAAA,eAAAC,EAAAL,GAIO,SAASE,EAAaI,EAAoC,CAC/D,GAAI,CAACA,EACH,MAAO,GAET,MAAMC,EAAQD,EAAM,YAAY,EAChC,OAAOC,IAAU,QAAUA,IAAU,KAAOA,IAAU,KACxD,CAEO,SAASJ,EAAYG,EAAmC,CAC7D,GAAI,CAACA,EACH,MAAO,GAET,MAAME,EAAM,OAAOF,CAAK,EACxB,OAAO,OAAO,MAAME,CAAG,EAAI,EAAIA,CACjC,CAEO,SAASJ,EAAYE,EAAmC,CAC7D,OAAOA,GAAS,EAClB",
6
- "names": ["helpers_exports", "__export", "envAsBoolean", "envAsNumber", "envAsString", "__toCommonJS", "value", "lower", "num"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,SAAS,aAAa,OAAoC;AAC/D,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AACA,QAAM,QAAQ,MAAM,YAAY;AAChC,SAAO,UAAU,UAAU,UAAU,OAAO,UAAU;AACxD;AAEO,SAAS,YAAY,OAAmC;AAC7D,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AACA,QAAM,MAAM,OAAO,KAAK;AACxB,SAAO,OAAO,MAAM,GAAG,IAAI,IAAI;AACjC;AAEO,SAAS,YAAY,OAAmC;AAC7D,SAAO,SAAS;AAClB;",
6
+ "names": []
7
7
  }
package/dist/env/home.js CHANGED
@@ -1,3 +1,32 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var o=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var d=(n,e)=>{for(var r in e)o(n,r,{get:e[r],enumerable:!0})},p=(n,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of g(e))!m.call(n,t)&&t!==r&&o(n,t,{get:()=>e[t],enumerable:!(i=f(e,t))||i.enumerable});return n};var E=n=>p(o({},"__esModule",{value:!0}),n);var a={};d(a,{getHome:()=>H});module.exports=E(a);var u=require("#env/rewire");function H(){return(0,u.getEnvValue)("HOME")}0&&(module.exports={getHome});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var home_exports = {};
20
+ __export(home_exports, {
21
+ getHome: () => getHome
22
+ });
23
+ module.exports = __toCommonJS(home_exports);
24
+ var import_rewire = require("#env/rewire");
25
+ function getHome() {
26
+ return (0, import_rewire.getEnvValue)("HOME");
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getHome
31
+ });
3
32
  //# sourceMappingURL=home.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/home.ts"],
4
4
  "sourcesContent": ["/**\n * HOME environment variable getter.\n * Points to the user's home directory.\n */\n\nimport { getEnvValue } from '#env/rewire'\n\nexport function getHome(): string | undefined {\n return getEnvValue('HOME')\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAKA,IAAAI,EAA4B,uBAErB,SAASF,GAA8B,CAC5C,SAAO,eAAY,MAAM,CAC3B",
6
- "names": ["home_exports", "__export", "getHome", "__toCommonJS", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA4B;AAErB,SAAS,UAA8B;AAC5C,aAAO,2BAAY,MAAM;AAC3B;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,42 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var u=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var d=(e,n)=>{for(var r in n)u(e,r,{get:n[r],enumerable:!0})},s=(e,n,r,g)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of L(n))!f.call(e,t)&&t!==r&&u(e,t,{get:()=>n[t],enumerable:!(g=o(n,t))||g.enumerable});return e};var c=e=>s(u({},"__esModule",{value:!0}),e);var l={};d(l,{getLang:()=>p,getLcAll:()=>A,getLcMessages:()=>a});module.exports=c(l);var i=require("#env/rewire");function p(){return(0,i.getEnvValue)("LANG")}function A(){return(0,i.getEnvValue)("LC_ALL")}function a(){return(0,i.getEnvValue)("LC_MESSAGES")}0&&(module.exports={getLang,getLcAll,getLcMessages});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var locale_exports = {};
20
+ __export(locale_exports, {
21
+ getLang: () => getLang,
22
+ getLcAll: () => getLcAll,
23
+ getLcMessages: () => getLcMessages
24
+ });
25
+ module.exports = __toCommonJS(locale_exports);
26
+ var import_rewire = require("#env/rewire");
27
+ function getLang() {
28
+ return (0, import_rewire.getEnvValue)("LANG");
29
+ }
30
+ function getLcAll() {
31
+ return (0, import_rewire.getEnvValue)("LC_ALL");
32
+ }
33
+ function getLcMessages() {
34
+ return (0, import_rewire.getEnvValue)("LC_MESSAGES");
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ getLang,
39
+ getLcAll,
40
+ getLcMessages
41
+ });
3
42
  //# sourceMappingURL=locale.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/locale.ts"],
4
4
  "sourcesContent": ["/**\n * @fileoverview Locale and language environment variable getters.\n * Provides access to system locale settings.\n */\n\nimport { getEnvValue } from '#env/rewire'\n\n/**\n * LANG environment variable.\n * System locale and language settings.\n */\nexport function getLang(): string | undefined {\n return getEnvValue('LANG')\n}\n\n/**\n * LC_ALL environment variable.\n * Override for all locale settings.\n */\nexport function getLcAll(): string | undefined {\n return getEnvValue('LC_ALL')\n}\n\n/**\n * LC_MESSAGES environment variable.\n * Locale setting for message translations.\n */\nexport function getLcMessages(): string | undefined {\n return getEnvValue('LC_MESSAGES')\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,aAAAC,EAAA,kBAAAC,IAAA,eAAAC,EAAAL,GAKA,IAAAM,EAA4B,uBAMrB,SAASJ,GAA8B,CAC5C,SAAO,eAAY,MAAM,CAC3B,CAMO,SAASC,GAA+B,CAC7C,SAAO,eAAY,QAAQ,CAC7B,CAMO,SAASC,GAAoC,CAClD,SAAO,eAAY,aAAa,CAClC",
6
- "names": ["locale_exports", "__export", "getLang", "getLcAll", "getLcMessages", "__toCommonJS", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA4B;AAMrB,SAAS,UAA8B;AAC5C,aAAO,2BAAY,MAAM;AAC3B;AAMO,SAAS,WAA+B;AAC7C,aAAO,2BAAY,QAAQ;AAC7B;AAMO,SAAS,gBAAoC;AAClD,aAAO,2BAAY,aAAa;AAClC;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,32 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var r=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var E=(n,e)=>{for(var o in e)r(n,o,{get:e[o],enumerable:!0})},N=(n,e,o,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of f(e))!g.call(n,t)&&t!==o&&r(n,t,{get:()=>e[t],enumerable:!(u=d(e,t))||u.enumerable});return n};var T=n=>N(r({},"__esModule",{value:!0}),n);var p={};E(p,{getNodeAuthToken:()=>m});module.exports=T(p);var i=require("#env/rewire");function m(){return(0,i.getEnvValue)("NODE_AUTH_TOKEN")}0&&(module.exports={getNodeAuthToken});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var node_auth_token_exports = {};
20
+ __export(node_auth_token_exports, {
21
+ getNodeAuthToken: () => getNodeAuthToken
22
+ });
23
+ module.exports = __toCommonJS(node_auth_token_exports);
24
+ var import_rewire = require("#env/rewire");
25
+ function getNodeAuthToken() {
26
+ return (0, import_rewire.getEnvValue)("NODE_AUTH_TOKEN");
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getNodeAuthToken
31
+ });
3
32
  //# sourceMappingURL=node-auth-token.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/env/node-auth-token.ts"],
4
4
  "sourcesContent": ["/**\n * NODE_AUTH_TOKEN environment variable getter.\n * Authentication token for Node.js package registry access.\n */\n\nimport { getEnvValue } from '#env/rewire'\n\nexport function getNodeAuthToken(): string | undefined {\n return getEnvValue('NODE_AUTH_TOKEN')\n}\n"],
5
- "mappings": ";4ZAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAKA,IAAAI,EAA4B,uBAErB,SAASF,GAAuC,CACrD,SAAO,eAAY,iBAAiB,CACtC",
6
- "names": ["node_auth_token_exports", "__export", "getNodeAuthToken", "__toCommonJS", "import_rewire"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA4B;AAErB,SAAS,mBAAuC;AACrD,aAAO,2BAAY,iBAAiB;AACtC;",
6
+ "names": []
7
7
  }
@@ -1,3 +1,32 @@
1
1
  /* Socket Lib - Built with esbuild */
2
- var o=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var g=(n,e)=>{for(var r in e)o(n,r,{get:e[r],enumerable:!0})},N=(n,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of d(e))!f.call(n,t)&&t!==r&&o(n,t,{get:()=>e[t],enumerable:!(i=E(e,t))||i.enumerable});return n};var m=n=>N(o({},"__esModule",{value:!0}),n);var v={};g(v,{getNodeEnv:()=>p});module.exports=m(v);var u=require("#env/rewire");function p(){return(0,u.getEnvValue)("NODE_ENV")}0&&(module.exports={getNodeEnv});
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var node_env_exports = {};
20
+ __export(node_env_exports, {
21
+ getNodeEnv: () => getNodeEnv
22
+ });
23
+ module.exports = __toCommonJS(node_env_exports);
24
+ var import_rewire = require("#env/rewire");
25
+ function getNodeEnv() {
26
+ return (0, import_rewire.getEnvValue)("NODE_ENV");
27
+ }
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ getNodeEnv
31
+ });
3
32
  //# sourceMappingURL=node-env.js.map