Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
1bd8a56
package.json fix
proffesor-for-testing Dec 5, 2025
0aeb95b
Merge branch 'main' into hackathon-work
proffesor-for-testing Dec 5, 2025
f7f0270
Merge branch 'main' into hackathon-work
proffesor-for-testing Dec 5, 2025
997133b
feat(emotistream): complete SPARC Phase 1-2 specifications and pseudo…
proffesor-for-testing Dec 5, 2025
13228cf
feat(sparc): Complete Phase 3 - Architecture for EmotiStream MVP
proffesor-for-testing Dec 5, 2025
7956ae7
feat(sparc): Complete Phase 4 - TDD Implementation for EmotiStream MVP
proffesor-for-testing Dec 6, 2025
8617f13
docs: Add user guide and QA testing documentation
proffesor-for-testing Dec 6, 2025
d35953f
docs: Add brutal honesty review and alpha implementation plan
proffesor-for-testing Dec 6, 2025
2223b69
feat(emotistream): Wire real RL endpoints and add Q-table persistence
proffesor-for-testing Dec 6, 2025
8174cb3
EmotiStream Frontend Implementation Plan
proffesor-for-testing Dec 6, 2025
6b06926
feat(emotistream): Complete frontend implementation with progress tra…
proffesor-for-testing Dec 6, 2025
16a0e58
feat(emotistream): Add TMDB integration, PostgreSQL persistence, and …
proffesor-for-testing Dec 6, 2025
bde13e6
feat(db): Switch to ruvector-postgres for SIMD-optimized vector opera…
proffesor-for-testing Dec 6, 2025
3f8d555
feat(emotistream): Add structured logging, history endpoints, and qua…
proffesor-for-testing Dec 7, 2025
fb59e3d
fix(deploy): Cloud Run deployment configuration and optimizations
proffesor-for-testing Dec 7, 2025
508038b
feat(db): Add cloud PostgreSQL support with pgvector schema
proffesor-for-testing Dec 7, 2025
f58dcf4
feat(deploy): Add Cloud Build config for frontend with API URL build arg
proffesor-for-testing Dec 7, 2025
2dace58
fix(frontend): Set default API URL for Cloud Run deployment
proffesor-for-testing Dec 7, 2025
e48766d
fix(api): Add Cloud Run frontend URL to CORS allowed origins
proffesor-for-testing Dec 7, 2025
9fc6454
fix(auth): Use PostgreSQL for user storage when USE_POSTGRES=true
proffesor-for-testing Dec 7, 2025
f6033c7
fix(cors): Add new Cloud Run frontend URL to allowed origins
proffesor-for-testing Dec 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
71 changes: 68 additions & 3 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true"
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
"AGENTDB_PATH": ".agentic-qe/agentdb.db",
"AGENTDB_LEARNING_ENABLED": "true",
"AGENTDB_REASONING_ENABLED": "true",
"AGENTDB_AUTO_TRAIN": "true",
"AQE_MEMORY_ENABLED": "true"
},
"permissions": {
"allow": [
Expand All @@ -28,7 +33,9 @@
"Bash(node:*)",
"Bash(which:*)",
"Bash(pwd)",
"Bash(ls:*)"
"Bash(ls:*)",
"Bash(npx agentdb:*)",
"Bash(npx aqe:*)"
],
"deny": [
"Bash(rm -rf /)"
Expand All @@ -53,6 +60,26 @@
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
}
]
},
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"description": "AgentDB Edit Intelligence - Query both success patterns and failure warnings",
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | jq -R '@sh' | xargs -I {} bash -c 'export AGENTDB_PATH=.agentic-qe/agentdb.db; FILE={}; { npx agentdb@latest query --domain \"failed-edits\" --query \"file:$FILE\" --k 3 --min-confidence 0.7 --format json 2>/dev/null | jq -r \".memories[]? | \\\"🚨 Warning: Similar edit failed - \\(.pattern.reason // \\\"unknown\\\")\\\" \" 2>/dev/null & npx agentdb@latest query --domain \"successful-edits\" --query \"file:$FILE\" --k 5 --min-confidence 0.8 --format json 2>/dev/null | jq -r \".memories[]? | \\\"πŸ’‘ Past Success: \\(.pattern.summary // \\\"No similar patterns found\\\")\\\" \" 2>/dev/null & wait; } || true'"
}
]
},
{
"matcher": "Task",
"hooks": [
{
"type": "command",
"description": "Trajectory Prediction - Predict optimal task sequence",
"command": "cat | jq -r '.tool_input.prompt // .tool_input.task // empty' | jq -R '@sh' | xargs -I {} bash -c 'export AGENTDB_PATH=.agentic-qe/agentdb.db; TASK={}; npx agentdb@latest query --domain \"task-trajectories\" --query \"task:$TASK\" --k 3 --min-confidence 0.75 --format json 2>/dev/null | jq -r \".memories[]? | \\\"πŸ“‹ Predicted Steps: \\(.pattern.trajectory // \\\"No trajectory data\\\") (Success Rate: \\(.confidence // 0))\\\" \" 2>/dev/null || true'"
}
]
}
],
"PostToolUse": [
Expand All @@ -73,6 +100,31 @@
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
}
]
},
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"description": "Experience Replay - Capture edit as RL experience",
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | jq -R '@sh' | xargs -I {} bash -c 'export AGENTDB_PATH=.agentic-qe/agentdb.db; FILE={}; TIMESTAMP=$(date +%s); npx agentdb@latest store-pattern --type \"experience\" --domain \"code-edits\" --pattern \"{\\\"file\\\":$FILE,\\\"timestamp\\\":$TIMESTAMP,\\\"action\\\":\\\"edit\\\",\\\"state\\\":\\\"pre-test\\\"}\" --confidence 0.5 2>/dev/null || true'"
},
{
"type": "command",
"description": "Verdict-Based Quality - Async verdict assignment after tests",
"command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | jq -R '@sh' | xargs -I {} bash -c 'export AGENTDB_PATH=.agentic-qe/agentdb.db; FILE={}; (sleep 2; TEST_RESULT=$(npm test --silent 2>&1 | grep -q \"pass\" && echo \"ACCEPT\" || echo \"REJECT\"); REWARD=$([ \"$TEST_RESULT\" = \"ACCEPT\" ] && echo \"1.0\" || echo \"-1.0\"); npx agentdb@latest store-pattern --type \"verdict\" --domain \"code-quality\" --pattern \"{\\\"file\\\":$FILE,\\\"verdict\\\":\\\"$TEST_RESULT\\\",\\\"reward\\\":$REWARD}\" --confidence $([ \"$TEST_RESULT\" = \"ACCEPT\" ] && echo \"0.95\" || echo \"0.3\") 2>/dev/null; if [ \"$TEST_RESULT\" = \"ACCEPT\" ]; then npx agentdb@latest store-pattern --type \"success\" --domain \"successful-edits\" --pattern \"{\\\"file\\\":$FILE,\\\"summary\\\":\\\"Edit passed tests\\\"}\" --confidence 0.9 2>/dev/null; else npx agentdb@latest store-pattern --type \"failure\" --domain \"failed-edits\" --pattern \"{\\\"file\\\":$FILE,\\\"reason\\\":\\\"Tests failed\\\"}\" --confidence 0.8 2>/dev/null; fi) &'"
}
]
},
{
"matcher": "Task",
"hooks": [
{
"type": "command",
"description": "Trajectory Storage - Record task trajectory for learning",
"command": "cat | jq -r '.tool_input.prompt // .tool_input.task // empty, .result.success // \"unknown\"' | paste -d'\\n' - - | jq -Rs 'split(\"\\n\") | {task: (.[0] | @sh), success: .[1]}' | jq -r 'CONFIDENCE=(if .success == \"true\" then \"0.95\" else \"0.5\" end); \"export AGENTDB_PATH=.agentic-qe/agentdb.db; TASK=\\(.task); SUCCESS=\\(.success); npx agentdb@latest store-pattern --type trajectory --domain task-trajectories --pattern \\(\"{\\\\\\\"task\\\\\\\":\\\" + .task + \",\\\\\\\"success\\\\\\\":\\(.success),\\\\\\\"trajectory\\\\\\\":\\\\\\\"search→scaffold→test→refine\\\\\\\"}\" | @sh) --confidence \\(CONFIDENCE) 2>/dev/null || true\"' | bash"
}
]
}
],
"PreCompact": [
Expand Down Expand Up @@ -103,11 +155,24 @@
"command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
}
]
},
{
"hooks": [
{
"type": "command",
"description": "Session end - Train models and compress learnings",
"command": "bash -c 'export AGENTDB_PATH=.agentic-qe/agentdb.db; npx agentdb@latest train --domain \"code-edits\" --epochs 10 --batch-size 32 2>/dev/null || true; npx agentdb@latest optimize-memory --compress true --consolidate-patterns true 2>/dev/null || true'"
}
]
}
]
},
"includeCoAuthoredBy": true,
"enabledMcpjsonServers": ["claude-flow", "ruv-swarm"],
"enabledMcpjsonServers": [
"claude-flow",
"ruv-swarm",
"agentic-qe"
],
"statusLine": {
"type": "command",
"command": ".claude/statusline-command.sh"
Expand Down
1 change: 1 addition & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"image":"mcr.microsoft.com/devcontainers/javascript-node"}
26 changes: 26 additions & 0 deletions .hackathon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"projectName": "hackathon-tv5",
"track": "multi-agent-systems",
"tools": {
"claudeCode": true,
"geminiCli": false,
"claudeFlow": false,
"agenticFlow": false,
"flowNexus": false,
"adk": false,
"googleCloudCli": false,
"vertexAi": false,
"ruvector": true,
"agentDb": true,
"agenticSynth": false,
"strangeLoops": false,
"sparc": true,
"lionpride": false,
"agenticFramework": false,
"openaiAgents": false
},
"mcpEnabled": true,
"discordLinked": true,
"initialized": true,
"createdAt": "2025-12-05T16:53:23.282Z"
}
64 changes: 64 additions & 0 deletions apps/emotistream-web/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Dependencies
node_modules
npm-debug.log
yarn-debug.log
yarn-error.log

# Build outputs (we build in container)
.next
out
coverage

# Development files
.env
.env.local
.env.*.local

# Documentation
*.md
docs/

# Tests
e2e/
test-results/
playwright-report/
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx
playwright.config.ts

# IDE and editor
.vscode/
.idea/
*.swp
*.swo

# Git
.git/
.gitignore

# Docker
Dockerfile
docker-compose*.yml
.dockerignore

# OS files
.DS_Store
Thumbs.db

# Logs
logs/
*.log

# Temp files
tmp/
temp/
.cache/

# Claude/AI files
.claude-flow/
.agentic-qe/

# TypeScript build info
tsconfig.tsbuildinfo
3 changes: 3 additions & 0 deletions apps/emotistream-web/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
38 changes: 38 additions & 0 deletions apps/emotistream-web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
Loading
Loading