@ff-labs/fff-bun 0.6.2-nightly.a677d64 → 0.6.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.
@@ -53,14 +53,6 @@ function formatGitStatus(status: string): string {
53
53
  }
54
54
  }
55
55
 
56
- function formatScore(score: number): string {
57
- const s = String(score);
58
- if (score >= 100) return `${GREEN}${s}${RESET}`;
59
- if (score >= 50) return `${YELLOW}${s}${RESET}`;
60
- if (score > 0) return `${DIM}${s}${RESET}`;
61
- return `${DIM}0${RESET}`;
62
- }
63
-
64
56
  /** Pad a plain string first, then wrap with ANSI color. */
65
57
  function padColor(
66
58
  value: string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ff-labs/fff-bun",
3
- "version": "0.6.2-nightly.a677d64",
3
+ "version": "0.6.2",
4
4
  "private": false,
5
5
  "description": "High-performance fuzzy file finder for Bun - perfect for LLM agent tools",
6
6
  "type": "module",
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "homepage": "https://github.com/dmtrKovalenko/fff.nvim#readme",
64
64
  "optionalDependencies": {
65
- "@ff-labs/fff-bin-darwin-arm64": "0.6.2-nightly.a677d64",
66
- "@ff-labs/fff-bin-darwin-x64": "0.6.2-nightly.a677d64",
67
- "@ff-labs/fff-bin-linux-x64-gnu": "0.6.2-nightly.a677d64",
68
- "@ff-labs/fff-bin-linux-arm64-gnu": "0.6.2-nightly.a677d64",
69
- "@ff-labs/fff-bin-linux-x64-musl": "0.6.2-nightly.a677d64",
70
- "@ff-labs/fff-bin-linux-arm64-musl": "0.6.2-nightly.a677d64",
71
- "@ff-labs/fff-bin-win32-x64": "0.6.2-nightly.a677d64",
72
- "@ff-labs/fff-bin-win32-arm64": "0.6.2-nightly.a677d64"
65
+ "@ff-labs/fff-bin-darwin-arm64": "0.6.2",
66
+ "@ff-labs/fff-bin-darwin-x64": "0.6.2",
67
+ "@ff-labs/fff-bin-linux-x64-gnu": "0.6.2",
68
+ "@ff-labs/fff-bin-linux-arm64-gnu": "0.6.2",
69
+ "@ff-labs/fff-bin-linux-x64-musl": "0.6.2",
70
+ "@ff-labs/fff-bin-linux-arm64-musl": "0.6.2",
71
+ "@ff-labs/fff-bin-win32-x64": "0.6.2",
72
+ "@ff-labs/fff-bin-win32-arm64": "0.6.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/bun": "^1.3.8",
package/src/ffi.ts CHANGED
@@ -496,7 +496,6 @@ const FI_MODIFIED = 32; // u64 (8)
496
496
  const FI_ACCESS = 40; // i64 (8)
497
497
  const FI_MODFR = 48; // i64 (8)
498
498
  const FI_TOTAL_FR = 56; // i64 (8)
499
- const _FI_BINARY = 64; // bool (1 + 7 pad)
500
499
  const FI_SIZE_OF = 72;
501
500
 
502
501
  // FffScore (48 bytes)
@@ -620,8 +619,6 @@ function parseSearchResult(resultPtr: Pointer | null): Result<SearchResult> {
620
619
  // FffDirSearchResult byte offsets (must match #[repr(C)] layout on 64-bit)
621
620
  // { items: *mut, scores: *mut, count: u32, total_matched: u32, total_dirs: u32 }
622
621
  // ---------------------------------------------------------------------------
623
- const DSR_ITEMS = 0; // *mut FffDirItem (8)
624
- const DSR_SCORES = 8; // *mut FffScore (8)
625
622
  const DSR_COUNT = 16; // u32 (4)
626
623
  const DSR_MATCHED = 20; // u32 (4)
627
624
  const DSR_TOTAL_DIRS = 24; // u32 (4)
@@ -689,8 +686,6 @@ function parseDirSearchResult(resultPtr: Pointer | null): Result<DirSearchResult
689
686
  // FffMixedSearchResult byte offsets (must match #[repr(C)] layout on 64-bit)
690
687
  // { items: *mut, scores: *mut, count: u32, total_matched: u32, total_files: u32, total_dirs: u32, location: FffLocation }
691
688
  // ---------------------------------------------------------------------------
692
- const MSR_ITEMS = 0; // *mut FffMixedItem (8)
693
- const MSR_SCORES = 8; // *mut FffScore (8)
694
689
  const MSR_COUNT = 16; // u32 (4)
695
690
  const MSR_MATCHED = 20; // u32 (4)
696
691
  const MSR_TOTAL_FILES = 24; // u32 (4)
@@ -712,7 +707,6 @@ const MI_MODIFIED = 40; // u64 (8)
712
707
  const MI_ACCESS = 48; // i64 (8)
713
708
  const MI_MODFR = 56; // i64 (8)
714
709
  const MI_TOTAL_FR = 64; // i64 (8)
715
- const MI_BINARY = 72; // bool (1 + 7 pad)
716
710
 
717
711
  /**
718
712
  * Read an FffMixedItem struct at the given raw address and return a MixedItem.
@@ -857,7 +851,6 @@ const GM_FUZZY_SCORE = 128;
857
851
  // 1-byte
858
852
  const GM_HAS_FUZZY = 130;
859
853
  const GM_IS_BINARY = 131;
860
- const _GM_IS_DEF = 132;
861
854
 
862
855
  // struct size: pad to 8-byte alignment → 136
863
856
  const GM_SIZE_OF = 136;