Spaces:
Sleeping
Sleeping
Commit History
-
Add 6 new agent tools, mock demo mode, and skill progression
New tools: suggest_next_skill, repeat_last_step, adjust_vocabulary_level, save_note_for_user, get_user_notes, restart_conversation Mock mode: when ANTHROPIC_API_KEY is not set or MOCK_MODE=true, the app returns pre-written responses that exercise visual guides, step sequences, and skill tracking — full demo without API access. Also: UserNote model, skill progression chains, Anthropic SDK tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>5647c24 -
Ai-genertaed-project-layout
f527e03 -
Fix Task 2 code review issues across core modules and Conversation model
- safetyMonitor: wrap SafetyEvent.create() in try/catch so safety response is always returned even on DB failure; replace overly broad "help me" keyword with "someone help me", "please help", "I need help now" to eliminate false positives on normal IT requests - taskClassifier: warn at module load when anthropicApiKey is missing - conversationState: delegate abandonStale() to Conversation.abandonStale() instead of executing raw SQL directly; validate role is 'user' or 'assistant' in addMessage() - Conversation model: add abandonStale(cutoffMinutes) method containing the stale-session query previously inlined in conversationState - userProfileManager: guard getOrCreateUser() against undefined/falsy id - vocabularyFilter: warn on unexpected vocab levels; remove dead first lastIndex assignment and its misleading comment in enforceReadability() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c3c7877 -
Task 2: Implement 5 core backend modules for PC Pal
Add server/core/ processing modules that the agent orchestrator will depend on: - userProfileManager.js: getOrCreateUser, updateProfile, getProfileForPrompt - vocabularyFilter.js: filterResponse (whole-word jargon substitution by vocab level), enforceReadability (20-word sentence splitting) - safetyMonitor.js: checkMessage with emergency keyword and scam pattern detection, logs to SafetyEvent - taskClassifier.js: classifyMessage via Claude API (claude-sonnet-4-20250514), returns taskType/topic/urgency - conversationState.js: session management with getOrCreateSession, closeSession, abandonStale, getSessionMessages, addMessage - server/assets/vocabulary/basicSubstitutions.json: 20 jargon-to-plain-English substitutions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>5b7f9b4