chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:10 +08:00
commit b7e7f5f487
178 changed files with 39171 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
name: CI
on:
push:
branches: [master, main, claude_context]
pull_request:
branches: [master, main, claude_context]
jobs:
lint_and_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Configure Windows line endings
if: matrix.os == 'windows-latest'
run: git config --global core.autocrlf false
- name: Install dependencies
run: pnpm install --frozen-lockfile
# - name: Lint code
# run: pnpm lint
- name: Build packages
run: pnpm build
- name: Test clean command (Windows validation)
if: matrix.os == 'windows-latest'
run: |
pnpm clean
echo "Clean command executed successfully on Windows"
- name: Verify build outputs (Unix)
if: matrix.os != 'windows-latest'
run: |
ls -la packages/core/dist || echo "packages/core/dist not found"
ls -la packages/mcp/dist || echo "packages/mcp/dist not found"
- name: Verify build outputs (Windows)
if: matrix.os == 'windows-latest'
run: |
Get-ChildItem packages/core/dist -ErrorAction SilentlyContinue | Format-Table -AutoSize || Write-Host "packages/core/dist not found"
Get-ChildItem packages/mcp/dist -ErrorAction SilentlyContinue | Format-Table -AutoSize || Write-Host "packages/mcp/dist not found"
+49
View File
@@ -0,0 +1,49 @@
name: Release
on:
push:
tags:
- 'v*'
- 'c*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Setup npm auth
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: Build packages
run: pnpm build
- name: Publish core package to npm
run: pnpm --filter @zilliz/claude-context-core publish --access public --no-git-checks
- name: Publish mcp package to npm
run: pnpm --filter @zilliz/claude-context-mcp publish --access public --no-git-checks
- name: Publish vscode extension
run: pnpm release:vscode
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}