Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
08f38b4
update
webmaster-vadf Sep 9, 2025
86dfa0d
up
webmaster-vadf Sep 9, 2025
da3522f
update
webmaster-vadf Sep 9, 2025
eb61f0f
Merge branch 'main' of https://github.com/webmaster-vadf/shop-chat-agent
webmaster-vadf Sep 10, 2025
048861c
Update work
webmaster-vadf Sep 10, 2025
c360725
fly
webmaster-vadf Sep 15, 2025
cdad7da
uddate fr
webmaster-vadf Sep 15, 2025
6d58b91
update Booléen fly
webmaster-vadf Sep 15, 2025
7915877
update VADF
webmaster-vadf Sep 29, 2025
f24a601
date1
webmaster-vadf Sep 29, 2025
2847621
dockerfile
webmaster-vadf Sep 29, 2025
222183b
da
webmaster-vadf Sep 29, 2025
7216582
texte
webmaster-vadf Sep 29, 2025
c5b7242
date
webmaster-vadf Oct 1, 2025
6b88c99
update
webmaster-vadf Oct 2, 2025
abe1861
test
webmaster-vadf Oct 3, 2025
bd844ce
test claude MCP
webmaster-vadf Oct 3, 2025
a15dfa3
mcp claude
webmaster-vadf Oct 3, 2025
a789004
Fix: Import vadf_reponses.json directly instead of fs.readFile
webmaster-vadf Oct 6, 2025
c40583b
Update: Optimize VADF chatbot tone and responses
webmaster-vadf Oct 6, 2025
afc0f4d
Add: Creation compte intent and FAQ redirection
webmaster-vadf Oct 6, 2025
8aeb1e0
texte
webmaster-vadf Oct 31, 2025
8c6658a
update log
webmaster-vadf Nov 6, 2025
0d2a1e0
logs
webmaster-vadf Nov 6, 2025
369cb5e
max-height
webmaster-vadf Nov 7, 2025
9516005
clean log
webmaster-vadf Nov 7, 2025
9e1b19e
clean test
webmaster-vadf Nov 7, 2025
f70f046
Add: Comprehensive logging for VADF flow debugging and improve docume…
webmaster-vadf Nov 7, 2025
df3ff1d
sans log work
webmaster-vadf Nov 7, 2025
7c2a1fd
Fix: Add missing FAQ intents to keyword mapping and improve activatio…
webmaster-vadf Nov 7, 2025
5e1262d
test
webmaster-vadf Nov 7, 2025
5c3d773
Fix: Improve activation_compte intent handling and add comprehensive …
webmaster-vadf Nov 7, 2025
0744066
work
webmaster-vadf Nov 10, 2025
1806f9c
Add: Auto-detect local vs production environment for API URL
webmaster-vadf Nov 10, 2025
11d25e1
Update: Improve welcome message and UI adjustments
webmaster-vadf Nov 10, 2025
1e92ee1
Fix: Restore default filter for welcome message
webmaster-vadf Nov 10, 2025
ac239f3
Update: mise_a_jour_infos_entreprise intent with complete instructions
webmaster-vadf Nov 10, 2025
d2d9e75
Add: Comprehensive FAQ-based intents and responses
webmaster-vadf Nov 10, 2025
1a11aa9
Update: mot_de_passe_oublie intent with self-service instructions
webmaster-vadf Nov 10, 2025
5e53bd2
Update: mot_de_passe_oublie with step-by-step password reset instruct…
webmaster-vadf Nov 10, 2025
0e4a972
Update: decouvrir_produits intent with simplified response
webmaster-vadf Nov 10, 2025
b3c9e51
Refactor: Remove obsolete vadf-intent-matcher.js file
webmaster-vadf Nov 10, 2025
1639612
Add: Comprehensive logging for chat response flow debugging
webmaster-vadf Nov 10, 2025
1bb0f4a
Update: CLAUDE.md documentation with latest changes
webmaster-vadf Nov 10, 2025
5bd2e5f
Fix: Update VADF intent detection with all 22 intents and fix priority
webmaster-vadf Nov 10, 2025
e0327c5
Add: Enhanced MCP fallback logging and shop data search verification
webmaster-vadf Nov 12, 2025
d5939c1
Update: Document MCP fallback and tool logging in CLAUDE.md
webmaster-vadf Nov 12, 2025
be3e30d
Add: Frontend console logging for chat events and debugging
webmaster-vadf Nov 12, 2025
d124b13
Update: Shorten system prompts for concise responses
webmaster-vadf Nov 12, 2025
51beb2d
Update: Add FAQ sources and replace contact email with support email
webmaster-vadf Nov 12, 2025
7b3bdd2
Improve: Typing indicator timing and add comprehensive logging
webmaster-vadf Nov 12, 2025
0d89d2f
Change: Typing indicator removed at end_turn instead of first content
webmaster-vadf Nov 12, 2025
6754b1b
clean console
webmaster-vadf Nov 12, 2025
42dbfae
Parfait
webmaster-vadf Nov 12, 2025
36db050
Update css
webmaster-vadf Nov 12, 2025
2e0c274
update question & hauter UI
webmaster-vadf Nov 21, 2025
c0f7ac5
update
webmaster-vadf Nov 21, 2025
d58acd5
Refactor dashboard: improve code organization and add chatbot responses
webmaster-vadf Nov 24, 2025
1b519d1
Added conversationContext parameter, enriches system prompt with cust…
webmaster-vadf Feb 3, 2026
9065b92
Architecture de routing
webmaster-vadf Feb 3, 2026
86ce9a8
Ticket 1 — ContextManager centralisé
webmaster-vadf Feb 4, 2026
24d117e
Ticket 2 — Mémoire long-terme (facts + résumé)
webmaster-vadf Feb 4, 2026
4be61b1
Ticket 4 — Log routage + confiance
webmaster-vadf Feb 4, 2026
a046e96
Ticket 5 — Routage hybride avec score
webmaster-vadf Feb 4, 2026
9992ac4
Ticket 6 - Feedback utilisateur
webmaster-vadf Feb 4, 2026
97e943d
Ticket 7 - A/B Testing is complete
webmaster-vadf Feb 4, 2026
57e1b5c
Ticket 8 - Reporting de patterns
webmaster-vadf Feb 4, 2026
eb990c3
Prediction conversion (heuristique)
webmaster-vadf Feb 4, 2026
9e832c2
10- Dashboard enrichi (A/B + feedback + agents)
webmaster-vadf Feb 4, 2026
6888e11
Prisma improvements
webmaster-vadf Feb 4, 2026
c7ac4f7
Update md
webmaster-vadf Feb 4, 2026
5ff1fc5
ok
webmaster-vadf Mar 25, 2026
2ae2f58
ok
webmaster-vadf Mar 25, 2026
85837ee
docs: add .env.example template
webmaster-vadf Mar 25, 2026
d22f80a
fix: add missing CLAUDE_API_KEY to .env.example
webmaster-vadf Mar 25, 2026
d8deccd
fix: correct CORS configuration to prevent wildcard+credentials viola…
webmaster-vadf Mar 25, 2026
fe3bb80
fix: document NODE_ENV requirement and startup-only CORS config evalu…
webmaster-vadf Mar 25, 2026
4c860db
fix: add message length validation to prevent oversized payloads
webmaster-vadf Mar 25, 2026
3f195ef
fix: add in-memory rate limiting (20 req/min per IP) on chat endpoint
webmaster-vadf Mar 25, 2026
1773e7b
fix: sliding window rate limiting, globalThis map persistence, correc…
webmaster-vadf Mar 25, 2026
b7db2c5
fix: use ApiVersion.July25 instead of Unstable to match shopify.app.toml
webmaster-vadf Mar 25, 2026
8fcbfc7
ok
webmaster-vadf Mar 25, 2026
d987fcd
chore: update app config with production URL, webhooks and scopes
webmaster-vadf Mar 25, 2026
f471877
docs: add CLAUDE.md and ROADMAP.md
webmaster-vadf Mar 25, 2026
263e7ec
merge: integrate v5 full architecture (agents, analytics, A/B testing…
webmaster-vadf Mar 25, 2026
918a48a
fix: remove duplicate inline rate limiter, use v5 rate-limiter service
webmaster-vadf Mar 25, 2026
6fc47ab
fix: log background sentiment errors instead of silently swallowing them
webmaster-vadf Mar 25, 2026
cfeed32
feat: gate verbose debug logging behind DEBUG env var
webmaster-vadf Mar 25, 2026
852ccd3
perf: limit conversation history to 100 most recent messages
webmaster-vadf Mar 25, 2026
cf3c6c9
perf: reduce rate limiter cleanup interval from 5min to 1min
webmaster-vadf Mar 25, 2026
cea0dff
fix: update stale JSDoc comment for rate limiter cleanup interval
webmaster-vadf Mar 25, 2026
0a1d133
perf: add index on Session.email for faster lookups
webmaster-vadf Mar 25, 2026
7ed64d8
fix: use djb2 hash for intent cache keys to prevent collision
webmaster-vadf Mar 25, 2026
168d3cb
fix: validate MCP tool name before calling to prevent unknown tool er…
webmaster-vadf Mar 25, 2026
3355475
feat: make agent MAX_TURNS and SESSION_TIMEOUT configurable via env vars
webmaster-vadf Mar 25, 2026
441ca57
fix: wire maxConversationHistory config, fix SSE event type, gate str…
webmaster-vadf Mar 25, 2026
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
33 changes: 31 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
CLAUDE_API_KEY=YOUR_CLAUDE_API_KEY
# API Keys - Anthropic/Claude
ANTHROPIC_API_KEY=sk-ant-api03-XXXXX
CLAUDE_API_KEY=sk-ant-api03-XXXXX

# OAuth et Redirects
REDIRECT_URL=https://localhost:3458/auth/callback
SHOPIFY_API_KEY=YOUR_APP_CLIENT_ID

# Configuration Shopify App
SHOPIFY_API_KEY=your_shopify_api_key_here
SHOPIFY_CLIENT_ID=your_shopify_client_id_here
SHOPIFY_STORE_DOMAIN=your-store.myshopify.com
SHOPIFY_API_SECRET=your_api_secret_here

# Tokens d'accès Shopify
SHOPIFY_STOREFRONT_ACCESS_TOKEN=your_storefront_token_here
SHOPIFY_ACCESS_TOKEN=your_admin_access_token_here

# Scopes
SHOPIFY_SCOPES=customer_read_customers,customer_read_orders,customer_read_store_credit_account_transactions,customer_read_store_credit_accounts,unauthenticated_read_product_listings
SHOPIFY_CHAT_BUBBLE_ID=your_chat_bubble_extension_id

# CORS - liste des origines autorisées (séparées par des virgules)
# Laisser vide en dev (avec NODE_ENV=development) pour autoriser toutes les origines
# En production, doit être configuré — sinon toutes les requêtes CORS sont bloquées
ALLOWED_ORIGINS=https://your-store.myshopify.com

# Logging verbeux — mettre à true pour activer les logs de débogage (false en production)
DEBUG=false

# Agent conversation limits
MAX_AGENT_TURNS=5
AGENT_SESSION_TIMEOUT_MS=30000
18 changes: 18 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ database.sqlite

/extensions/*/dist

# Generated reports
/reports

# Ignore shopify files created during app dev
.shopify/*
.shopify.lock
14 changes: 14 additions & 0 deletions .vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"servers": {
"my-mcp-server-b50f43c8": {
"type": "stdio",
"command": "npx",
"args": [
"@shopify/dev-mcp@latest",
"-s",
"project"
]
}
},
"inputs": []
}
543 changes: 543 additions & 0 deletions CLAUDE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:18-alpine
RUN apk add --no-cache openssl

EXPOSE 3000
EXPOSE 8080

WORKDIR /app

Expand Down
Loading