@threadbase-sh/scanner 0.25.0 → 0.25.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 (45) hide show
  1. package/dist/cli.js +10 -3
  2. package/dist/cli.js.map +1 -1
  3. package/dist/filters.d.ts +1 -1
  4. package/dist/index.cjs +9 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.ts +26 -26
  7. package/dist/index.js +9 -2
  8. package/dist/index.js.map +1 -1
  9. package/dist/indexer.d.ts +1 -1
  10. package/dist/name-stores.d.ts +2 -2
  11. package/dist/parse-helpers.d.ts +1 -1
  12. package/dist/parse-helpers.d.ts.map +1 -1
  13. package/dist/parse.cjs +9 -2
  14. package/dist/parse.cjs.map +1 -1
  15. package/dist/parse.d.ts +4 -4
  16. package/dist/parse.js +9 -2
  17. package/dist/parse.js.map +1 -1
  18. package/dist/parser.d.ts +2 -2
  19. package/dist/persistent/claude-name-slots.d.ts +1 -1
  20. package/dist/persistent/conversation-reducer.d.ts +2 -2
  21. package/dist/persistent/conversation-stream.d.ts +2 -2
  22. package/dist/persistent/cursor.d.ts +1 -1
  23. package/dist/persistent/dir-watermark.d.ts +3 -3
  24. package/dist/persistent/index-engine.d.ts +9 -9
  25. package/dist/persistent/jsonl-tail-reader.d.ts +2 -2
  26. package/dist/persistent/metadata-reducer.d.ts +2 -2
  27. package/dist/persistent/paged-reader.d.ts +3 -3
  28. package/dist/persistent/repositories/checkpoints.repo.d.ts +1 -1
  29. package/dist/persistent/repositories/conversations.repo.d.ts +1 -1
  30. package/dist/persistent/repositories/fts.repo.d.ts +2 -2
  31. package/dist/persistent/sidecar.d.ts +1 -1
  32. package/dist/profiles.d.ts +1 -1
  33. package/dist/providers/codex-cli.d.ts +3 -3
  34. package/dist/providers/copilot.d.ts +3 -3
  35. package/dist/providers/cursor.d.ts +3 -3
  36. package/dist/providers/parse.d.ts +2 -2
  37. package/dist/providers/provider.d.ts +1 -1
  38. package/dist/providers/threadbase.d.ts +3 -3
  39. package/dist/scanner.d.ts +2 -2
  40. package/dist/search-matches.d.ts +1 -1
  41. package/dist/session-name.d.ts +1 -1
  42. package/dist/tiers.d.ts +1 -1
  43. package/dist/types.d.ts +1 -1
  44. package/dist/watcher/file-watcher.d.ts +1 -1
  45. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { ContentTier, ConversationMeta } from "../types";
1
+ import type { ContentTier, ConversationMeta } from "../types.js";
2
2
  export interface ScannerProvider<Acc = unknown> {
3
3
  name: ScannerProviderName;
4
4
  discover(roots: string[]): Promise<DiscoveredConversationFile[]>;
@@ -1,6 +1,6 @@
1
- import { type ReducerState } from "../persistent/metadata-reducer";
2
- import type { ContentTier, ConversationMeta } from "../types";
3
- import { type DiscoveredConversationFile, type ScannerProvider } from "./provider";
1
+ import { type ReducerState } from "../persistent/metadata-reducer.js";
2
+ import type { ContentTier, ConversationMeta } from "../types.js";
3
+ import { type DiscoveredConversationFile, type ScannerProvider } from "./provider.js";
4
4
  export declare class ThreadbaseProvider implements ScannerProvider<ReducerState> {
5
5
  readonly name: "claude-code";
6
6
  discover(roots: string[]): Promise<DiscoveredConversationFile[]>;
package/dist/scanner.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Conversation, ConversationMeta, ConversationPageWithMeta, GetConversationOptions, GetConversationPageOptions, Profile, ScanOptions, ScanResult, SearchOptions, SearchResult, SingleFilePage } from "./types";
2
- import { type IndexJob } from "./watcher/index-queue";
1
+ import type { Conversation, ConversationMeta, ConversationPageWithMeta, GetConversationOptions, GetConversationPageOptions, Profile, ScanOptions, ScanResult, SearchOptions, SearchResult, SingleFilePage } from "./types.js";
2
+ import { type IndexJob } from "./watcher/index-queue.js";
3
3
  export interface PersistentConfig {
4
4
  dbPath?: string;
5
5
  sidecar?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ConversationMeta, SearchHighlight, SearchMatch } from "./types";
1
+ import type { ConversationMeta, SearchHighlight, SearchMatch } from "./types.js";
2
2
  export declare const FTS_HIT_OPEN = "\u0002";
3
3
  export declare const FTS_HIT_CLOSE = "\u0003";
4
4
  export declare const FTS_SNIPPET_TOKENS = 16;
@@ -1,4 +1,4 @@
1
- import type { ScannerProviderName } from "./providers/provider";
1
+ import type { ScannerProviderName } from "./providers/provider.js";
2
2
  export type NameSlot = "userTitle" | "toolTitle" | "lastPrompt" | "firstUserMessage" | "slug";
3
3
  export declare const NAME_PRECEDENCE: readonly NameSlot[];
4
4
  export interface NameSlots {
package/dist/tiers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ContentTier } from "./types";
1
+ import type { ContentTier } from "./types.js";
2
2
  export declare const DEFAULT_TIERS: Record<string, ContentTier>;
3
3
  export declare function resolveTier(tierName: string, customTiers?: Record<string, ContentTier>): ContentTier;
4
4
  //# sourceMappingURL=tiers.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { NameSlots } from "./session-name";
1
+ import type { NameSlots } from "./session-name.js";
2
2
  export type MessageSender = "user" | "assistant";
3
3
  export type Include = "all" | "conversations" | "subagents" | "teammates";
4
4
  export type View = "flat" | "tree" | "grouped";
@@ -1,4 +1,4 @@
1
- import type { Profile } from "../types";
1
+ import type { Profile } from "../types.js";
2
2
  export interface WatchEvent {
3
3
  filePath: string;
4
4
  account: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadbase-sh/scanner",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "description": "Unified Claude Code conversation history scanner",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -53,7 +53,7 @@
53
53
  "node": ">=22"
54
54
  },
55
55
  "scripts": {
56
- "build": "tsup && tsc -p tsconfig.build.json && node scripts/check-parse-entry.mjs",
56
+ "build": "tsup && tsc -p tsconfig.build.json && node scripts/fix-dts-specifiers.mjs && node scripts/check-parse-entry.mjs",
57
57
  "prepare": "npm run build",
58
58
  "dev": "tsup --watch",
59
59
  "test": "vitest run",