feat: Enhance project memory and skills documentation; add memory-sync skill for knowledge consolidation
All checks were successful
CI — Test & Build / Test & Build (push) Successful in 1m15s

This commit is contained in:
john kevin asprec
2026-07-15 16:01:13 +08:00
parent acea99d7ad
commit c2ca659a2b
13 changed files with 123 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ jobs:
test-and-build:
name: Test & Build
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: node:22-bookworm
@@ -32,6 +33,13 @@ jobs:
run: npm ci --prefer-offline --no-audit --no-fund
working-directory: /tmp/lexai
# Generates .wxt/types (ImportMeta.env etc.) required by typecheck.
# Also runs via the postinstall hook — kept explicit so a future
# --ignore-scripts install can't silently break the typecheck step.
- name: Prepare WXT types
run: npx wxt prepare
working-directory: /tmp/lexai
- name: Type check
run: npm run typecheck
working-directory: /tmp/lexai
@@ -65,8 +73,8 @@ jobs:
"${{ gitea.server_url }}/api/packages/kibin/generic/lexai-extension/${PACKAGE_VERSION}/lexai-chrome-mv3-${PACKAGE_VERSION}.zip" \
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
-T "/tmp/lexai-chrome-mv3-${PACKAGE_VERSION}.zip")
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
BODY=$(echo "$RESPONSE" | head -1)
HTTP_CODE=$(echo "$RESPONSE" | tail -n 1)
BODY=$(echo "$RESPONSE" | sed '$d')
echo "HTTP: $HTTP_CODE | Response: $BODY"
if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then
echo "✅ Published: https://git.juankibin.space/kibin/-/packages"

View File

@@ -15,6 +15,7 @@ jobs:
deploy:
name: Build & Deploy to Chrome Web Store
runs-on: ubuntu-latest
timeout-minutes: 20
container:
image: node:22-bookworm
@@ -30,6 +31,13 @@ jobs:
- name: Install dependencies
run: npm ci
# Same gates as CI — a release must never check less than a push.
- name: Prepare WXT types
run: npx wxt prepare
- name: Type check
run: npm run typecheck
- name: Run tests
run: npm test -- --run
@@ -88,8 +96,8 @@ jobs:
-H "Authorization: Bearer ${{ env.CWS_ACCESS_TOKEN }}" \
-H "x-goog-api-version: 2" \
-H "Content-Length: 0")
HTTP_CODE=$(echo "$PUBLISH_RESPONSE" | tail -1)
BODY=$(echo "$PUBLISH_RESPONSE" | head -1)
HTTP_CODE=$(echo "$PUBLISH_RESPONSE" | tail -n 1)
BODY=$(echo "$PUBLISH_RESPONSE" | sed '$d')
echo "Publish HTTP: $HTTP_CODE"
echo "Publish Response: $BODY"
STATUS=$(echo "$BODY" | grep -o '"status":\["[^"]*"\]' | head -1)