@rilaptra/digester 17.7.0-ai → 17.7.1-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
  ░███████
16
16
  ```
17
17
 
18
- ![Version](https://img.shields.io/badge/Version-17.7.0--ai-blue?style=for-the-badge&logo=git)
18
+ ![Version](https://img.shields.io/badge/Version-17.7.1--ai-blue?style=for-the-badge&logo=git)
19
19
  ![Runtime](https://img.shields.io/badge/Runtime-Bun_v1.2+-black?logo=bun&style=for-the-badge)
20
20
  ![Security](https://img.shields.io/badge/Security-Secret_Scan-red?style=for-the-badge&logo=shield)
21
21
  ![Build](https://img.shields.io/badge/Build-Native_Binary-green?style=for-the-badge)
package/dist/index.js CHANGED
@@ -1144,7 +1144,7 @@ var require_colors = __commonJS((exports, module) => {
1144
1144
  colors.stripColors = colors.strip = function(str) {
1145
1145
  return ("" + str).replace(/\x1B\[\d+m/g, "");
1146
1146
  };
1147
- var stylize = colors.stylize = function stylize(str, style) {
1147
+ var stylize = colors.stylize = function stylize2(str, style) {
1148
1148
  if (!colors.enabled) {
1149
1149
  return str + "";
1150
1150
  }
@@ -1162,8 +1162,8 @@ var require_colors = __commonJS((exports, module) => {
1162
1162
  return str.replace(matchOperatorsRe, "\\$&");
1163
1163
  };
1164
1164
  function build(_styles) {
1165
- var builder = function builder() {
1166
- return applyStyle2.apply(builder, arguments);
1165
+ var builder = function builder2() {
1166
+ return applyStyle2.apply(builder2, arguments);
1167
1167
  };
1168
1168
  builder._styles = _styles;
1169
1169
  builder.__proto__ = proto2;
@@ -1182,7 +1182,7 @@ var require_colors = __commonJS((exports, module) => {
1182
1182
  });
1183
1183
  return ret;
1184
1184
  }();
1185
- var proto2 = defineProps(function colors() {}, styles4);
1185
+ var proto2 = defineProps(function colors2() {}, styles4);
1186
1186
  function applyStyle2() {
1187
1187
  var args = Array.prototype.slice.call(arguments);
1188
1188
  var str = args.map(function(arg) {
@@ -1241,7 +1241,7 @@ var require_colors = __commonJS((exports, module) => {
1241
1241
  });
1242
1242
  return ret;
1243
1243
  }
1244
- var sequencer = function sequencer(map2, str) {
1244
+ var sequencer = function sequencer2(map2, str) {
1245
1245
  var exploded = str.split("");
1246
1246
  exploded = exploded.map(map2);
1247
1247
  return exploded.join("");
@@ -5905,7 +5905,7 @@ function formatSize(bytes) {
5905
5905
  return `${(bytes / 1024 ** i).toFixed(2)} ${["B", "KB", "MB", "GB"][i]}`;
5906
5906
  }
5907
5907
  function estimateTokens(bytes) {
5908
- const tokens = Math.ceil(bytes / 2);
5908
+ const tokens = Math.ceil(bytes / 2.853283767038414);
5909
5909
  if (tokens > 1e6)
5910
5910
  return `${(tokens / 1e6).toFixed(1)}M`;
5911
5911
  return tokens > 1000 ? `${(tokens / 1000).toFixed(1)}k` : tokens.toString();
@@ -7201,7 +7201,7 @@ import { fileURLToPath } from "url";
7201
7201
  // package.json
7202
7202
  var package_default = {
7203
7203
  name: "@rilaptra/digester",
7204
- version: "17.7.0-ai",
7204
+ version: "17.7.1-ai",
7205
7205
  description: "High-performance codebase context generator and AI operations toolkit optimized for Bun.",
7206
7206
  module: "dist/index.js",
7207
7207
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rilaptra/digester",
3
- "version": "17.7.0-ai",
3
+ "version": "17.7.1-ai",
4
4
  "description": "High-performance codebase context generator and AI operations toolkit optimized for Bun.",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",