Skip to content

perf(prompts): compress system + worker prompts — 53% input token red… #95

perf(prompts): compress system + worker prompts — 53% input token red…

perf(prompts): compress system + worker prompts — 53% input token red… #95

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [main, develop, 'feature/**']
pull_request:
branches: [main, develop]
workflow_dispatch:
env:
NODE_VERSION: '22'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- run: npm ci
- run: npm run lint
typecheck:
name: Type Check
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- run: npm ci
- run: npm run typecheck
build:
name: Build
runs-on: ubuntu-latest
needs: [lint, typecheck]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 7
test:
name: Tests
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- run: npm ci
- run: npm test
continue-on-error: true
loc-gate:
name: LOC Gate (Max 800 lines)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check file sizes
run: |
EXIT_CODE=0
for file in $(find src -name "*.ts" -type f); do
lines=$(wc -l < "$file")
if [ "$lines" -gt 800 ]; then
echo "::error file=$file::File exceeds 800 lines ($lines)"
EXIT_CODE=1
fi
done
exit $EXIT_CODE