Skip to content

v2.4.0

Latest

Choose a tag to compare

@yangyang0507 yangyang0507 released this 01 Dec 15:18

Added

  • starepo info <owner/repo> --json for machine-readable repository details
  • Inline lang: and topic: filter tokens in starepo browse (honored by both instant keyword filtering and semantic search)
  • starepo status reports LanceDB disk size and local embedding model cache status/size without opening LanceDB when no database exists
  • Automated GitHub Actions npm publishing workflow via OIDC Trusted Publishing (publish.yml)

Changed

  • CLI commands are lazy-loaded on demand, cutting cold-start time for lightweight invocations (--version, --help) from ~188ms to ~39ms
  • starepo sync fetches multi-page star lists with bounded concurrency (5 workers) once page 1 advertises rel="last", and deduplicates across page boundaries
  • listRepos, getRepoByName, FTS fallback, and updateEmbeddingsBatch prune the 1024-dim vector column during reads to cut memory usage and startup latency
  • sync and embed compact LanceDB fragments and clean up old table versions via table.optimize() after writes or deletions

Fixed

  • ensureFTSIndex now inspects table.listIndices() and creates only missing FTS indexes (replace: false) instead of rebuilding all 5 indexes on every CLI search
  • search with non-relevance sorting (--sort stars|forks|starred|updated) bounds vector candidates by distance (NON_RELEVANCE_MAX_VECTOR_DISTANCE = 1.2) so unrelated high-star repos no longer dominate sorted results
  • upsertRepos invalidates cached embeddings when semantic fields (name, description, language, topics) change, while preserving vectors when only counts or timestamps update
  • sync --incremental updates last_sync even when no new stars are found, preventing repeated stale-sync warnings
  • Replaced ineffective Octokit throttle config with a native octokit.hook.wrap('request', ...) rate-limit retry handler
  • starepo browse guards async callbacks and timers after exit and disables semantic retries if model warm-up fails
  • npm run build marks dist/index.js executable, so npx starepo inside a checkout and npm link keep working after a rebuild