Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
8b515d6
refactor: update Node.js setup in CI configuration and adjust web pac…
Aug 5, 2025
4ff26be
feat: Add DevLog CLI for automation and development environment manag…
Aug 5, 2025
658b67e
refactor: reorder package definitions in publish-dev-packages.sh for …
Aug 5, 2025
8ee94a8
feat: Enhance real-time event handling and update event types across …
Aug 5, 2025
7878b10
feat: Update realtime configuration handling and improve event subscr…
Aug 5, 2025
4193126
refactor: remove security scan phase from CI/CD pipeline
Aug 5, 2025
8fc848e
Refactor CopilotParser to extend BaseParser and update message handling
Aug 5, 2025
e7a9af5
fix: update import statement for BaseParser to include file extension
Aug 5, 2025
adc04a5
feat: Implement AI chat history models and parsers for GitHub Copilot
Aug 5, 2025
a2add2f
feat: Refactor AI chat processing models and types for improved struc…
Aug 5, 2025
4d23e96
refactor: remove security scan phase from VSCode automation pipeline …
tikazyq Aug 5, 2025
2ef2405
Refactor AI and Devlog Types, Update Note Handling
tikazyq Aug 5, 2025
6efad2b
refactor: update note handling in MCPAdapter to use note category
tikazyq Aug 5, 2025
aa090e9
feat: add listDevlogNotes method and schema for retrieving devlog notes
tikazyq Aug 5, 2025
7893652
feat: add listDevlogNotes method and schema for retrieving devlog notes
tikazyq Aug 5, 2025
309d752
feat: implement project settings page and update project store with d…
Aug 6, 2025
820aff1
feat: refactor project initialization and create ProjectListPage comp…
Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
- **Temp files**: Use `tmp/` folder for experiments (gitignored)
- **Build packages**: Use `pnpm build` (builds all packages)
- **Containers**: `docker compose -f docker-compose.dev.yml up web-dev -d --wait`
- **Validating**: Use `pnpm validate`
- **Testing**: Use `pnpm test`

### Task Tracking
- **Always start by checking**: Search related devlogs before starting ANY new work
- **Must create devlogs**: For features, refactoring, or multistep work (>30min)
- **Required progress updates**: Add notes after successful builds, major changes, or blockers
- **Always complete**: Document learnings and close devlogs when work is finished
- **Required details**: Include necessary information in devlogs for comprehensive context

## 🎯 Essential Patterns

Expand Down
3 changes: 0 additions & 3 deletions .github/instructions/all.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,6 @@ export class ProjectService {
if (!this.database.isInitialized) {
await this.database.initialize();
}

// Create default project if it doesn't exist
await this.createDefaultProject();
}

async list(): Promise<ProjectMetadata[]> {
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/publish-dev-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ echo "📦 Publishing packages to NPM with dev tag..."

# Define all publishable packages (as regular arrays for better compatibility)
PACKAGES=(
"core:packages/core"
"mcp:packages/mcp"
"core:packages/core"
"ai:packages/ai"
"cli:packages/cli"
)
Expand Down
5 changes: 0 additions & 5 deletions .github/scripts/setup-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# Setup Node.js, pnpm, and dependencies with caching
set -euo pipefail

NODE_VERSION=${1:-"20"}
PNPM_VERSION=${2:-"10.13.1"}

echo "🔧 Setting up Node.js $NODE_VERSION and pnpm $PNPM_VERSION..."

# pnpm store path is already set by pnpm/action-setup
echo "📦 Installing dependencies..."
pnpm install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/verify-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ else
FAILED=1
fi

# Check web package (uses .next-build for standalone builds)
if [ -d "packages/web/.next-build" ]; then
# Check web package
if [ -d "packages/web/.next" ]; then
echo "✅ Web package build artifacts verified"
else
echo "❌ Web package build artifacts missing"
Expand Down
52 changes: 11 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
NODE_VERSION: 22
PNPM_VERSION: 10.13.1

jobs:
# Phase 1: Build and Test
Expand All @@ -29,26 +31,22 @@ jobs:
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-key.outputs.key }}

strategy:
matrix:
node-version: [ 20, 22 ]


steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.13.1
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Generate cache key
Expand All @@ -68,7 +66,7 @@ jobs:
- name: Install dependencies
run: ./.github/scripts/setup-node.sh

- name: Build packages (dependency order)
- name: Build packages
run: ./.github/scripts/build-packages.sh

- name: Run tests
Expand Down Expand Up @@ -145,34 +143,6 @@ jobs:
IMAGE_TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n1)
./.github/scripts/test-docker.sh "$IMAGE_TAG"

# Phase 3: Security Scan (depends on docker-build)
security-scan:
name: Security Scan
runs-on: ubuntu-latest
needs: docker-build
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'

# Phase 4a: NPM Publish Stable (main branch)
npm-publish-stable:
name: Publish to NPM (Stable)
Expand All @@ -196,13 +166,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.13.1
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Restore pnpm cache
Expand Down Expand Up @@ -280,13 +250,13 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.13.1
version: ${{ env.PNPM_VERSION }}
run_install: false

- name: Restore pnpm cache
Expand Down
37 changes: 1 addition & 36 deletions .github/workflows/vscode-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,39 +156,4 @@ jobs:
platforms: linux/amd64,linux/arm64
build-args: |
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VCS_REF=${{ github.sha }}

# Phase 3: Security Scan
security-scan:
name: Security Scan VSCode Automation
runs-on: ubuntu-latest
needs: build-vscode-automation
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
format: 'sarif'
output: 'trivy-results-vscode-automation.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results-vscode-automation.sarif'
VCS_REF=${{ github.sha }}
5 changes: 4 additions & 1 deletion .vscode/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"command": "npx",
"args": [
"@codervisor/devlog-mcp@dev"
]
],
"env": {
// "DEVLOG_BASE_URL": "http://localhost:3200"
}
},
"sequential-thinking": {
"command": "npx",
Expand Down
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
"chat.agent.maxRequests": 100,
"github.copilot.chat.languageContext.typescript.enabled": true,
"github.copilot.chat.codesearch.enabled": true,
"github.copilot.chat.scopeSelection": true
"github.copilot.chat.scopeSelection": true,
"chat.mcp.serverSampling": {
"devlog/.vscode/mcp.json: devlog": {
"allowedModels": [
"copilot/claude-sonnet-4"
]
}
}
}
1 change: 1 addition & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apk add --no-cache libc6-compat python3 make g++ curl
# Enable pnpm
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm install -g pnpm

# Set working directory
WORKDIR /app
Expand Down
3 changes: 0 additions & 3 deletions GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ export class ProjectService {
if (!this.database.isInitialized) {
await this.database.initialize();
}

// Create default project if it doesn't exist
await this.createDefaultProject();
}

async list(): Promise<ProjectMetadata[]> {
Expand Down
1 change: 0 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
- .:/app
- /app/node_modules
- /app/packages/web/.next
- /app/packages/web/.next-build
- './scripts:/app/scripts'
env_file:
- .env
3 changes: 0 additions & 3 deletions packages/ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ import {
const parser = new CopilotParser();
const data = await parser.discoverChatData();

// Get statistics
const stats = parser.getChatStatistics(data);

// Search content
const results = parser.searchChatContent(data, 'async function');

Expand Down
93 changes: 0 additions & 93 deletions packages/ai/scripts/test-docker-setup.sh

This file was deleted.

Loading
Loading