Max Avatar can now call Max API's /sessions endpoints: session.ts keeps
the access token in memory after login (never persisted, cleared on
logout, same lifecycle as the existing email/keys state), a new
sessionsClient.ts wraps the 4 endpoints with the Bearer header, and
index.ts exposes them as sessions:create/get/send-objective-message/
confirm-objective IPC handlers (input-validated, requireLoggedIn()
gated) surfaced to the renderer as window.api.sessions.*.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add docs/Max_Design_System.md as the mandatory source of truth for
every Max Avatar component (existing and future): CSS custom properties
(tokens.css), the documented component library for the upcoming coach
pipeline UI (chat bubble, module panel, exercise card, stepper, input
bar, badge, code block — components.css), and bespoke app-level
components that follow the same tokens where the doc has no direct
equivalent (thinking indicator, banners, login panel — app.css).
Rewrite LoginView, ThinkingIndicator, UpdateBanner and VoiceErrorBanner
to use these classes instead of ad-hoc inline styles with hardcoded
hex colors. Self-host Inter and JetBrains Mono via @fontsource (the
only two fonts the design system allows) since the renderer's CSP has
no external font-src. Drop base.css's unused electron-vite boilerplate
palette (--ev-c-*) in favor of the design tokens.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
pdf-parse itself was already uninstalled when extractText.ts (document
drag-and-drop) was removed; this type-only package was left behind.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Remove the feature that let a user drop a .txt/.md/.csv/.docx/.pdf file
onto the avatar to feed its text into the chat: the dropped-files IPC
handler and extractText() in main, and getPathForFile/sendDroppedFiles
in the preload API and renderer App.tsx. This fed documents into the
general-purpose chat loop, which is being phased out in favor of the
server-side coach pipeline. Uninstall mammoth and pdf-parse, now unused.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Remove search_web and uninstall the now-unused cheerio dependency it
was the only consumer of. The skill's shared test file also covered
document extraction (extractText), so it is removed here; extractText
itself is removed in the following document drag-and-drop cleanup.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Removes the system-action skills that were only ever available in the now
-retired Basic/Assistant modes (play_music, open/close_app, open_notepad,
create_document, create_powerpoint, control_volume, control_media_playback,
take_screenshot, clipboard, search_file, set_reminder, lock_screen,
empty_recycle_bin, show_notification, print_file, create_folder,
create_file, delete_file, fill_browser_field) along with their
windows/lib helpers (appRegistry, fileSearch, locations, sendVirtualKey)
and the fillField browser-window helper. Keeps the read-only, side-effect
-free transversal skills (search_web, navigate_browser and friends,
check_system_memory/storage/battery/internet). Drops the now-unused
docx/pptxgenjs dependencies and the stale coachStore/meetingStore entries
from the coverage exclude list.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The entire local-SQLite Coach teaching pipeline (objective/level/plan/module
agents, course-build stepper, written-exercise and drawing windows, review
scheduler, screen/camera vision capture for blockage detection, and their
renderer views) is retired: it will be replaced by a brand new 7-agent
pipeline living server-side in Max API/Postgres, built in a later step.
Removes src/main/coach/, the coach and vision skill definitions, the coach
renderer views and CourseBuildStepper, drawRoughShapes, useCameraCapture,
the camera-frame IPC bridge, and the shared coach/courseBuild/drawing
types. Strips the corresponding pipeline guard-rails, system-prompt
instructions and IPC handlers from openrouter.ts/index.ts/preload. Drops
the now-unused mermaid/roughjs dependencies.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Step 1 of adding a backend proxy server (API keys held server-side instead
of shipped in the installer). Moves everything app-specific into
"Max Avatar/" via git mv (preserves history): src/, tests/, scripts/,
assets/, build/, resources/, package.json/-lock.json, electron-builder.yml,
electron.vite.config.ts, eslint.config.mjs, playwright.config.ts,
vitest.config.mts, sonar-project.properties, tsconfig*.json, Dockerfile,
.editorconfig/.env*/.gitignore/.prettier*.
CLAUDE.md, README.md, docs/, .claude/, .gitea/, .husky/, .vscode/, and the
docker-compose files stay at the repo root, since they'll apply to both the
app and the future backend.
No application code needed changes (all its internal paths are relative to
its own tree). Adjusted what referenced the old root from outside:
- .husky/pre-commit: cd into "Max Avatar" before lint-staged
- .gitea/workflows/*.yml: working-directory + cache-dependency-path +
artifact paths + SonarQube projectBaseDir
- docker-compose.yml: build context -> ./Max Avatar
- Max Avatar/Dockerfile: node:20-alpine -> node:24-alpine (same node:sqlite
issue already fixed elsewhere, never applied here before)
- .vscode/launch.json, README.md: updated paths/instructions
Verified from Max Avatar/ after the move: npm ci, typecheck, lint,
test:coverage (473/473, same coverage numbers), build, and dev all work
unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>