Skip to content
Merged
52 changes: 52 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI/CD Pipeline

on:
push:
branches:
- production-release
pull_request:
branches:
- production-release

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build the extension
run: npm run build

- name: Package the extension
run: npm run package

deploy:
runs-on: ubuntu-latest
needs: build

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

- name: Upload VSIX file
uses: actions/upload-artifact@v2
with:
name: vscode-extension
path: path/to/your/package.vsix

- name: Deploy to Marketplace
run: |
echo "Deploying to the marketplace..."
# Add your deployment script or command here
# For example, using vsce to publish the extension
npx vsce publish --pat ${{ secrets.VSCE_PAT }}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm: compile",
}
]
}
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VS Code Extension Change Log

All notable changes to the "prompts-sync-extension" extension will be documented in this file.
All notable changes to the "prompt-vault-extension" extension will be documented in this file.

## [1.1.0] - 2025-09-01

Expand Down Expand Up @@ -51,16 +51,16 @@ All notable changes to the "prompts-sync-extension" extension will be documented

### Configuration Options

- `promptsSync.enabled` - Enable/disable automatic syncing
- `promptsSync.frequency` - Sync frequency (startup, hourly, daily, weekly, manual)
- `promptsSync.customPath` - Custom prompts directory path
- `promptsSync.repository` - Repository URL to sync from
- `promptsSync.branch` - Repository branch to sync
- `promptsSync.syncOnStartup` - Sync when VS Code starts
- `promptsSync.showNotifications` - Show sync status notifications
- `promptsSync.debug` - Enable debug logging
- `promptVault.enabled` - Enable/disable automatic syncing
- `promptVault.frequency` - Sync frequency (startup, hourly, daily, weekly, manual)
- `promptVault.customPath` - Custom prompts directory path
- `promptVault.repository` - Repository URL to sync from
- `promptVault.branch` - Repository branch to sync
- `promptVault.syncOnStartup` - Sync when VS Code starts
- `promptVault.showNotifications` - Show sync status notifications
- `promptVault.debug` - Enable debug logging

### Commands

- `promptsSync.syncNow` - Manually trigger sync
- `promptsSync.showStatus` - Show extension status and configuration
- `promptVault.syncNow` - Manually trigger sync
- `promptVault.showStatus` - Show extension status and configuration
28 changes: 12 additions & 16 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,18 @@
1. **Install the extension:**

```bash
code --install-extension prompts-sync-extension-1.0.0.vsix
code --install-extension prompt-vault-extension-1.0.0.vsix
```

2. **Or install via VS Code UI:**
- Open VS Code
- Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS)
- Type "Extensions: Install from VSIX"
- Select the `prompts-sync-extension-1.0.0.vsix` file
- Select the `prompt-vault-extension.vsix` file

### Option 2: Development Mode

1. **Open in VS Code:**

```bash
code /Users/mounir.abdous/Projects/prompts-logient-nventive/tools/vscode-extension
```

2. **Press F5 to launch Extension Development Host**

## Testing the Extension
Expand All @@ -37,28 +32,29 @@

2. **Configure Extension (Optional):**
- Go to Settings (`Ctrl+,`)
- Search for "Prompts Sync"
- Search for "Prompt Vault"
- Add a git repository to sync prompts from.
- Adjust settings as needed

### 2. Test Manual Sync

1. **Open Command Palette** (`Ctrl+Shift+P`)
2. **Type:** "Prompts Sync: Sync Now"
2. **Type:** "Prompt Vault: Sync Now"
3. **Check status bar** for sync progress indicators
4. **Verify prompts directory** was created and populated

### 3. Test Status Display

1. **Open Command Palette** (`Ctrl+Shift+P`)
2. **Type:** "Prompts Sync: Show Status"
2. **Type:** "Prompt Vault: Show Status"
3. **Review configuration** and status information

### 4. Check Debug Logs

1. **Enable debug mode:**
- Settings → Search "promptsSync.debug" → Enable
- Settings → Search "promptVault.debug" → Enable
2. **View logs:**
- View → Output → Select "Prompts Sync" channel
- View → Output → Select "Prompt Vault" channel

## Expected Behavior

Expand Down Expand Up @@ -107,10 +103,10 @@

```bash
# Check if extension is loaded
code --list-extensions | grep prompts-sync
code --list-extensions | grep prompt-vault

# View extension logs
# Open VS Code → View → Output → Select "Prompts Sync"
# Open VS Code → View → Output → Select "Prompt Vault"

# Reset extension data
# Close VS Code, delete prompts directory, restart VS Code
Expand All @@ -129,10 +125,10 @@ npm run watch
npx @vscode/vsce package

# Install locally
code --install-extension prompts-sync-extension-1.0.0.vsix
code --install-extension prompt-vault-extension-<version>.vsix

# Uninstall
code --uninstall-extension logient-nventive.prompts-sync-extension
code --uninstall-extension logient-nventive.prompt-vault-extension
```

## Extension Structure Verification
Expand Down
Loading