Merged
Conversation
# Vercel Web Analytics Integration Successfully installed and configured Vercel Web Analytics for the Astro project. ## Changes Made ### 1. Package Installation - Installed `@vercel/analytics@1.6.1` using npm - Version 1.6.1 meets the requirement of v1.4.0 or later ### 2. Layout Configuration **Modified: `src/layouts/MainLayout.astro`** - Added import statement in the frontmatter: `import Analytics from '@vercel/analytics/astro'` - Added `<Analytics />` component in the `<head>` section, right before the closing `</head>` tag - The component is placed after font preload links to ensure optimal loading ### 3. Dependencies Updated **Modified: `package.json`** - Added `@vercel/analytics` to dependencies **Modified: `package-lock.json`** - Updated lock file with the new package and its dependencies (391 packages added) ## Implementation Notes - Used default import syntax (`import Analytics from '@vercel/analytics/astro'`) as the package exports the component as a default export - The Analytics component automatically tracks page views with route support - The component is placed in the `<head>` section as recommended by Vercel's documentation - Preserved all existing code structure and styling ## Verification ✅ Build completed successfully with no errors ✅ All 28 tests passed (12 test files) ✅ No linting errors introduced ✅ Lock file properly updated The Vercel Web Analytics is now ready to collect analytics data when the site is deployed to Vercel. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Contributor
Author
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
thedavidweng
pushed a commit
that referenced
this pull request
Mar 30, 2026
#8 Pipeline mergeResults: Gemini/VLM results now merged with existing local analysis (step 2f) instead of overwriting, preventing data loss when remote returns empty fields. Added AnalysisResult.fromClip(). #1 SyncEngine N+1 query: Build video ID mapping dict before clip sync loop. Reduces per-clip SELECT from O(N) to O(1). SQL construction also moved outside the batch loop. #4 RateLimiter race: Changed `if` to `while` loop after sleep in waitForPermission(), ensuring window capacity is rechecked after actor re-entry from concurrent Tasks. #7 Embedding tags duplication: Removed tags from composeClipText() since their content is already covered by the vision fields they were composed from. Avoids diluting embedding semantic focus.
thedavidweng
pushed a commit
that referenced
this pull request
Mar 30, 2026
MCP Server 精简为只读模式(移除 4 个写 tools),同时采纳 PR #1 中的 多项搜索增强: Core 层: - SearchResult 新增 5 个 vision 字段 (subjects/actions/objects/lighting/colors) - FTS5 索引从 4 列扩展到 10 列 + bm25 加权排名 - 新增迁移 v9_expandFTS5Index MCP Server: - 移除 add_tags/remove_tags/set_rating/set_color_label (10→7 tools) - 新增 BrowseAllClipsTool (全量浏览 + 分页 + 过滤 + 排序) - SearchTool: 激活向量搜索 (DatabaseContext 懒初始化 EmbeddingProvider + VectorStore),新增 offset 分页 + folder 过滤,输出补全 vision 字段 - GetVideoDetailTool: ClipSummary 补全 vision 字段 - 新增 TagParsingHelpers 兼容空格分隔和 JSON 数组两种 tags 格式 - limit/offset 输入防护 (clamp 防负数 crash) 测试: 784 tests, 0 failures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
thedavidweng
pushed a commit
that referenced
this pull request
Mar 30, 2026
- #1 USearch TOCTOU: ensureCapacity + index.add 合并为同一个 lock 临界区 - #2 SigLIP2 EOS: 先 truncate 到 maxLen-1 再 append EOS,保证 EOS 始终存在 - #3 NLEmbedding 512d 回退: 移除 IndexingManager/SearchState 的 NLEmbeddingProvider 回退 - #4+#6 代码去重: l2Normalize 提取到 EmbeddingUtils,CLI cosineSimilarity 调用共享方法 - #7 融合路径统一: hybridSearch 委托 threeWaySearch,删除 fusionSearch (~90 行) - #8 normalizeScores: range=0 时返回 1.0 而非 0.0,单一命中不被清零 - #12 全局库 clip_vectors 加 created_at 列 (v11 迁移) - #9 VectorStore 注释修正 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vercel Web Analytics Integration
Successfully installed and configured Vercel Web Analytics for the Astro project.
Changes Made
1. Package Installation
@vercel/analytics@1.6.1using npm2. Layout Configuration
Modified:
src/layouts/MainLayout.astroimport Analytics from '@vercel/analytics/astro'<Analytics />component in the<head>section, right before the closing</head>tag3. Dependencies Updated
Modified:
package.json@vercel/analyticsto dependenciesModified:
package-lock.jsonImplementation Notes
import Analytics from '@vercel/analytics/astro') as the package exports the component as a default export<head>section as recommended by Vercel's documentationVerification
✅ Build completed successfully with no errors
✅ All 28 tests passed (12 test files)
✅ No linting errors introduced
✅ Lock file properly updated
The Vercel Web Analytics is now ready to collect analytics data when the site is deployed to Vercel.
View Project · Web Analytics
Created by FinDIT Studio (findit-studio) with Vercel Agent