Skip to content

Commit e0f87ea

Browse files
authored
Merge pull request #16 from devakone/develop
Release: develop → main
2 parents 07f4b28 + 24fd7dc commit e0f87ea

66 files changed

Lines changed: 5093 additions & 3010 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/security.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Security checks
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
pull_request:
9+
branches:
10+
- develop
11+
- main
12+
13+
jobs:
14+
audit-and-secret-scan:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 22.13.0
27+
cache: npm
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: NPM audit (moderate)
33+
run: npm audit --audit-level=moderate
34+
35+
- name: Trufflehog git history scan
36+
uses: trufflesecurity/trufflehog@main
37+
with:
38+
extra_args: --only-verified

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Dependencies
22
node_modules/
3+
.npm-cache/
34
/.pnp
45
.pnp.*
56
.yarn/*
@@ -36,6 +37,13 @@ supabase/.temp/
3637
*~
3738
.cursor-memory
3839

40+
# Claude Code
41+
CLAUDE.local.md
42+
.claude/settings.local.json
43+
44+
# Personal workflow
45+
docs/WorkflowJournal.md
46+
3947
# OS
4048
.DS_Store
4149
Thumbs.db
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
".": "0.1.0-alpha.4",
3-
"apps/web": "0.1.0-alpha.4",
4-
"apps/worker": "0.1.0-alpha.2"
2+
".": "0.1.0-alpha.6",
3+
"apps/web": "0.1.0-alpha.6",
4+
"apps/worker": "0.1.0-alpha.3"
55
}

Agents.md

Lines changed: 41 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ npm run dev
6363
Copy the example env file and fill in values:
6464

6565
```bash
66-
cp .env.example .env.local
66+
cp .env.example apps/web/.env.local
6767
```
6868

6969
Required variables:
@@ -108,45 +108,21 @@ psql "postgresql://postgres:postgres@127.0.0.1:XXXXX/postgres" -c "YOUR SQL HERE
108108
- Always use `psql` with the local DB URL from `npm run supabase:status`
109109
- The MCP Supabase tools are for remote database operations only
110110

111-
### Supabase Project References
112-
113-
| Environment | Project Ref | Dashboard URL | Branch |
114-
|-------------|-------------|---------------|--------|
115-
| Local | N/A | `npm run supabase:start`http://127.0.0.1:54423 | - |
116-
| Development | `ljxvzqjkwwwsgdnvgpgm` | https://supabase.com/dashboard/project/ljxvzqjkwwwsgdnvgpgm | `develop` |
117-
| Production | `idjewtwnfrufbxoxulmq` | https://supabase.com/dashboard/project/idjewtwnfrufbxoxulmq | `main` |
118-
119-
**Default remote:** Development (`ljxvzqjkwwwsgdnvgpgm`)
120-
121111
### Switching Between Environments
122112

123-
By default, the Supabase CLI points to the **development** remote. You only need to explicitly link when switching to production.
113+
The project may have multiple remote environments (development, staging, production). Use the Supabase CLI to switch:
124114

125115
```bash
126116
# Check which environment is currently linked
127-
npm run supabase:which
128-
129-
# Link to production (CAUTION: only for production deployments)
130-
npm run supabase:link:prod
131-
132-
# Link back to development (restore default)
133-
npm run supabase:link:dev
134-
```
117+
npx supabase projects list
135118

136-
Add these scripts to `package.json`:
137-
```json
138-
{
139-
"scripts": {
140-
"supabase:which": "npx supabase projects list",
141-
"supabase:link:dev": "npx supabase link --project-ref <DEV_PROJECT_REF>",
142-
"supabase:link:prod": "npx supabase link --project-ref <PROD_PROJECT_REF>"
143-
}
144-
}
119+
# Link to a specific project
120+
npx supabase link --project-ref <PROJECT_REF>
145121
```
146122

147123
**When to use each:**
148124
- **Local:** Default for all development work
149-
- **Development remote (default):** Testing against shared dev data, deploying previews, pushing migrations
125+
- **Development remote:** Testing against shared dev data, deploying previews, pushing migrations
150126
- **Production remote:** Only for production deployments or critical debugging
151127

152128
---
@@ -232,26 +208,21 @@ npx supabase migration list --linked
232208

233209
### Local Dev Test User
234210

235-
For testing authenticated flows locally, create this test user:
236-
237-
| Field | Value |
238-
|-------|-------|
239-
| Email | `testuser@vibed.coding` |
240-
| Password | `TestPass123!` |
211+
For testing authenticated flows locally, you can create a test user in the local Supabase instance.
241212

242-
**To create the test user:**
213+
**To create a test user:**
243214

244215
1. Start local Supabase: `npm run supabase:start`
245216
2. Go to local Supabase Studio: `http://127.0.0.1:54323`
246217
3. Navigate to Authentication → Users
247-
4. Click "Add User" and enter the credentials above
218+
4. Click "Add User" and enter test credentials
248219

249220
**Alternative via SQL:**
250221
```bash
251222
# Get DB URL first
252223
npm run supabase:status
253224

254-
# Create user (replace XXXXX with actual port)
225+
# Create user (replace XXXXX with actual port, EMAIL and PASSWORD with your values)
255226
psql "postgresql://postgres:postgres@127.0.0.1:XXXXX/postgres" -c "
256227
INSERT INTO auth.users (
257228
id,
@@ -262,8 +233,8 @@ INSERT INTO auth.users (
262233
updated_at
263234
) VALUES (
264235
gen_random_uuid(),
265-
'testuser@vibed.coding',
266-
crypt('TestPass123!', gen_salt('bf')),
236+
'YOUR_TEST_EMAIL',
237+
crypt('YOUR_TEST_PASSWORD', gen_salt('bf')),
267238
now(),
268239
now(),
269240
now()
@@ -275,8 +246,8 @@ INSERT INTO auth.users (
275246

276247
For GitHub OAuth testing locally:
277248
1. Create a GitHub OAuth App at https://github.com/settings/developers
278-
2. Set callback URL to `http://localhost:54421/auth/v1/callback`
279-
3. Add credentials to `.env.local`
249+
2. Set callback URL to `http://localhost:54321/auth/v1/callback`
250+
3. Add credentials to `apps/web/.env.local`
280251

281252
---
282253

@@ -498,9 +469,9 @@ npx supabase migration repair --status applied <version>
498469

499470
1. **Most common cause:** Supabase was started without env vars. Restart with `npm run supabase:stop && npm run supabase:start`
500471
2. **Stale browser state:** Clear cookies and site data for `localhost` in your browser, then try again
501-
3. Check callback URL in GitHub OAuth App matches: `http://localhost:54421/auth/v1/callback`
472+
3. Check callback URL in GitHub OAuth App matches: `http://localhost:54321/auth/v1/callback`
502473
4. Verify `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` are set in `apps/web/.env.local`
503-
5. Check Supabase Auth settings in local Studio: `http://127.0.0.1:54423`
474+
5. Check Supabase Auth settings in local Studio: `http://127.0.0.1:54323`
504475
6. Use `localhost:8108` consistently (not `127.0.0.1:8108`) to avoid OAuth state mismatches
505476

506477
### MCP Tools Not Connecting
@@ -535,71 +506,37 @@ MCP Supabase tools connect to remote projects, not local. For local development:
535506
- **Keep PRD.md current** if requirements change
536507
- **This file (Agents.md)** is the source of truth for agent behavior
537508

538-
---
539-
540-
## Workflow Capture
541-
542-
**IMPORTANT:** This project is also a learning tool for improving the development process.
543509

544-
### When to Log
510+
## Code Review Protocol
545511

546-
Add entries to `docs/WorkflowJournal.md` when you observe:
512+
When reviewing code or PRs, apply deep analysis ("ultrathink") to validate reasonableness:
547513

548-
| Tag | When to Use |
549-
|-----|-------------|
550-
| `[MANUAL]` | User or agent did something by hand that could be scripted |
551-
| `[REPETITIVE]` | Did something that's been done in other projects |
552-
| `[FRICTION]` | Hit a snag, needed a workaround, or found unexpected complexity |
553-
| `[INSIGHT]` | Learned something worth remembering for future projects |
554-
| `[DECISION]` | Made a choice between alternatives (capture the reasoning) |
555-
556-
### Entry Format
557-
558-
```markdown
559-
### YYYY-MM-DD HH:MM - [TAG] Short title
560-
**Context:** What were you trying to do?
561-
**Action:** What did you actually do?
562-
**Time spent:** Estimate
563-
**Automation opportunity:** None | Low | Medium | High
564-
**Notes:** Any additional context
565-
```
566-
567-
### Examples of What to Capture
568-
569-
**Do log:**
570-
- Creating a new file that follows a pattern from other projects
571-
- Running a manual command that could be in a script
572-
- Discovering a gotcha or workaround
573-
- Choosing between libraries, approaches, or patterns
574-
- Anything that took longer than expected
575-
576-
**Don't log:**
577-
- Routine code edits
578-
- Standard git operations
579-
- Things already documented elsewhere
580-
581-
### Proactive Capture
582-
583-
When completing a task, briefly consider:
584-
1. Was any part of this manual when it could be automated?
585-
2. Have I done this exact thing in another project?
586-
3. Did I learn something that would help next time?
587-
588-
If yes to any, add a journal entry before moving on.
589-
590-
---
514+
### 1. Plan/PRD Validation
515+
- **Check alignment**: Does the code match the plan or PRD?
516+
- **Identify gaps**: What will NOT work? What will break?
517+
- **Surface oversights**: What was overlooked or not considered?
518+
- **Edge cases**: Are all edge cases handled?
591519

592-
## Related Workflow Documents
520+
### 2. Simplification Analysis
521+
- **Reduce complexity**: Is there a simpler approach that achieves the same outcome?
522+
- **Remove redundancy**: Are there unnecessary abstractions or indirections?
523+
- **Question scope**: Is the change doing more than required?
593524

594-
| Document | Purpose |
595-
|----------|---------|
596-
| `docs/Workflow.md` | The playbook—how projects are started (template for future) |
597-
| `docs/WorkflowJournal.md` | Real-time capture during this project |
598-
| `docs/PRD.md` | Product requirements |
599-
| `docs/Agents.md` | This file—agent instructions |
525+
### 3. Regression Risk Assessment
526+
- **Existing functionality**: Will this break current behavior?
527+
- **Dependent code**: What other code relies on the modified paths?
528+
- **Test coverage**: Are existing tests still valid? Do they need updates?
529+
- **Backward compatibility**: Are APIs/interfaces preserved or properly versioned?
600530

601-
The journal feeds insights back into the playbook. Over time, high-automation-opportunity items become scripts or templates.
531+
### Review Checklist
532+
- [ ] Code matches PRD/plan intent
533+
- [ ] No obvious failure modes overlooked
534+
- [ ] Simplest reasonable approach used
535+
- [ ] No unnecessary scope creep
536+
- [ ] Existing tests still pass
537+
- [ ] New tests cover changed behavior
538+
- [ ] No breaking changes to existing functionality (or documented if intentional)
602539

603540
---
604541

605-
*Last updated: Phase 0 initialization*
542+
*Last updated: 2026-01-22*

CHANGELOG-DEVELOP.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Changelog
22

3+
## [0.1.0-alpha.6](https://github.com/devakone/vibe-coding-profiler/compare/vibed-coding-v0.1.0-alpha.5...vibed-coding-v0.1.0-alpha.6) (2026-01-29)
4+
5+
6+
### Features
7+
8+
* Add a new section outlining the code review protocol and checklist. ([069337c](https://github.com/devakone/vibe-coding-profiler/commit/069337c486c97d08a1f031a442c67851453ed712))
9+
* **settings/repos:** improve UX with platform filtering and simplified view ([61db163](https://github.com/devakone/vibe-coding-profiler/commit/61db163a2006046a0fe99d9a3b57fa66b6eec480))
10+
* **supabase:** enable GitLab and Bitbucket OAuth providers locally ([36229c8](https://github.com/devakone/vibe-coding-profiler/commit/36229c8ac875c28d87eebc9d33396ad0be5e1055))
11+
12+
13+
### Bug Fixes
14+
15+
* address code review observations for multi-platform integration ([3d67b0f](https://github.com/devakone/vibe-coding-profiler/commit/3d67b0f93dbddeab5c4ca176401d0f4b3a5d0f38))
16+
* handle object format for narrative highlights in UnifiedInsightSection ([bc9686a](https://github.com/devakone/vibe-coding-profiler/commit/bc9686aac4ae5b7adca1b725d63e227549fef4d0))
17+
* resolve hydration mismatch in NotificationDropdown ([f987526](https://github.com/devakone/vibe-coding-profiler/commit/f98752674e1e81f9f5a43e173a01d4b42ff67017))
18+
19+
## [0.1.0-alpha.5](https://github.com/devakone/vibe-coding-profiler/compare/vibed-coding-v0.1.0-alpha.4...vibed-coding-v0.1.0-alpha.5) (2026-01-23)
20+
21+
22+
### ⚠ BREAKING CHANGES
23+
24+
* The `github_accounts` table has been renamed to `platform_connections`. All queries referencing `github_accounts` must be updated to use `platform_connections` with the additional `platform` column filter.
25+
26+
### Features
27+
28+
* add foundational documentation and security measures ([d10c5c4](https://github.com/devakone/vibe-coding-profiler/commit/d10c5c4ca46a36bf006deee23776ae9b5a8ad7c6))
29+
* add GitHub Actions workflow for security checks ([686ea44](https://github.com/devakone/vibe-coding-profiler/commit/686ea445bb53cce8e95f1e2c8ee3edeb08b2d6b0))
30+
* add multi-platform support for repositories and connections ([266a717](https://github.com/devakone/vibe-coding-profiler/commit/266a71713c6ab96865d170fd70bbdc9dee87ef27))
31+
* **core:** add platform client abstraction for multi-platform support ([1b8c152](https://github.com/devakone/vibe-coding-profiler/commit/1b8c15274ab5316dd1fce21a64b6472984124519))
32+
* **db:** add platform support and LLM usage tracking ([a82acb7](https://github.com/devakone/vibe-coding-profiler/commit/a82acb7ed4e4abb925d8d8fa7de8b065669c7cdb))
33+
* multi-platform repository integration ([ff0a993](https://github.com/devakone/vibe-coding-profiler/commit/ff0a99388238d02e246553559e96bb655324a939))
34+
* **oauth:** add GitLab and Bitbucket OAuth support ([75a5009](https://github.com/devakone/vibe-coding-profiler/commit/75a500931dafcd5780acf9b4376a471d4e5d7c2e))
35+
* **platforms:** add API endpoints and UI for managing platform connections ([b8a2948](https://github.com/devakone/vibe-coding-profiler/commit/b8a294825156a7954f815408cf297ce530f54007))
36+
* **platforms:** implement Bitbucket and GitLab API clients ([0692731](https://github.com/devakone/vibe-coding-profiler/commit/06927315459b77397b11acffc4d6d2f3f1a6a7a5))
37+
* **settings:** add platforms page and extract settings tabs component ([29f9082](https://github.com/devakone/vibe-coding-profiler/commit/29f9082110f790e84d6995c7d1781f5fc63797cb))
38+
* unify repo management for multiple platforms ([d22dd27](https://github.com/devakone/vibe-coding-profiler/commit/d22dd279be5011deb00aaf6126dbe8ea01f9c14c))
39+
* **worker:** support multiple git platforms in fallback worker ([7fc5b95](https://github.com/devakone/vibe-coding-profiler/commit/7fc5b951a2f337e33376ee8ae5b1b4cf0585b7e5))
40+
341
## [0.1.0-alpha.4](https://github.com/devakone/vibe-coding-profiler/compare/vibed-coding-v0.1.0-alpha.3...vibed-coding-v0.1.0-alpha.4) (2026-01-22)
442

543

CLAUDE.local.example.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Personal Claude Configuration (Template)
2+
3+
Copy this file to `CLAUDE.local.md` and fill in your personal configuration.
4+
The `CLAUDE.local.md` file is gitignored and will not be committed.
5+
6+
---
7+
8+
## Supabase Project References
9+
10+
| Environment | Project Ref | Dashboard URL | Branch |
11+
|-------------|-------------|---------------|--------|
12+
| Local | N/A | `npm run supabase:start`http://127.0.0.1:54323 | - |
13+
| Development | `<YOUR_DEV_PROJECT_REF>` | https://supabase.com/dashboard/project/<YOUR_DEV_PROJECT_REF> | `develop` |
14+
| Production | `<YOUR_PROD_PROJECT_REF>` | https://supabase.com/dashboard/project/<YOUR_PROD_PROJECT_REF> | `main` |
15+
16+
### Quick Link Commands
17+
18+
```bash
19+
# Link to development
20+
npx supabase link --project-ref <YOUR_DEV_PROJECT_REF>
21+
22+
# Link to production
23+
npx supabase link --project-ref <YOUR_PROD_PROJECT_REF>
24+
```
25+
26+
---
27+
28+
## Test Credentials
29+
30+
### Local Dev Test User
31+
32+
| Field | Value |
33+
|-------|-------|
34+
| Email | `your-test-email@example.com` |
35+
| Password | `YourTestPassword123!` |
36+
37+
---
38+
39+
## Personal Workflow Preferences
40+
41+
Add any personal workflow preferences here, such as:
42+
- Preferred editor settings
43+
- Custom scripts you use
44+
- Personal reminders or notes
45+
46+
---
47+
48+
## MCP Tool Configurations
49+
50+
If you have specific MCP tools configured, document them here for reference.

0 commit comments

Comments
 (0)