Commit graph

2195 commits

Author SHA1 Message Date
Nexus Dev
f6da67ecf4 docs: complete project research 2026-04-04 03:55:49 +00:00
Nexus Dev
5ea3f2d6b5 docs: start milestone v1.6 Voice Pipeline + Minimal Message Bridge 2026-04-04 03:55:49 +00:00
Nexus Dev
285bf585be chore: complete v1.5 Smart Onboarding + Personal AI Assistant milestone
6 phases, 13 plans, 21 requirements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
2a396ebc70 docs(phase-35): complete npx buildthis CLI phase 2026-04-04 03:55:49 +00:00
Nexus Dev
1262e4a243 feat(35-01): buildthis CLI package — hardware detection + bootstrap
Standalone npm package at packages/buildthis/. Probes running Nexus
instance, opens browser if found, guides install with hardware-aware
provider recommendations if not. 14 tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
9bbcff995d docs(35-01): complete buildthis CLI package plan 2026-04-04 03:55:49 +00:00
Nexus Dev
c65fa168e6 docs(35): create phase plan for npx buildthis CLI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
fef0b48771 docs(35): research npx buildthis CLI phase domain
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
4cd06b2623 docs(35): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
1b22667302 docs(phase-34): complete voice phase 2026-04-04 03:55:49 +00:00
Nexus Dev
c7974fa67c feat(34-02): voice onboarding step + PersonalAssistant voice wiring
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
982d75d0b3 docs(34-02): complete voice onboarding step + PersonalAssistant wire-up plan
- 34-02-SUMMARY.md: VoiceStep onboarding, 6-step wizard, PersonalAssistant with STT+TTS
- STATE.md: plan advanced to last_plan (12/12 complete), metrics recorded, decisions added
- ROADMAP.md: phase 34 marked Complete (2/2 summaries)
- REQUIREMENTS.md: VOICE-03 marked complete
2026-04-04 03:55:49 +00:00
Nexus Dev
2b568a0f5d docs(34-01): complete voice foundation plan — chatFileRoutes, usePiperTts, TtsButton, voiceEnabled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
847f316319 feat(34-01): create usePiperTts hook and TtsButton component with piper-tts-web
- Install @mintplex-labs/piper-tts-web as UI dependency
- Create usePiperTts hook with prewarm/speak/stop/status/progress (VOICE-01, VOICE-02)
- tts.stored() checks IndexedDB cache to skip re-download
- tts.download() with progress callback for visible download progress
- tts.predict() returns WAV blob URL for CPU-safe WASM synthesis
- Create TtsButton component showing download progress during prewarm
- TtsButton shows Volume2/VolumeX icons for idle/speaking states
2026-04-04 03:55:49 +00:00
Nexus Dev
36746ed17b feat(34-01): register chatFileRoutes + nexusSettingsRoutes in app.ts, add voiceEnabled to nexus-settings
- Add chatFileRoutes(db, storageService) after assistantHandoffRoutes (inside boardMutationGuard)
- Add nexusSettingsRoutes() after chatFileRoutes
- Extend nexusSettingsSchema with voiceEnabled: z.boolean().default(false)
- Update default return values in nexusSettingsService.get() to include voiceEnabled: false
- Add voiceEnabled?: boolean to NexusSettings client interface in hardware.ts
2026-04-04 03:55:49 +00:00
Nexus Dev
c0710c7100 docs(34-voice): create phase plan 2026-04-04 03:55:49 +00:00
Nexus Dev
1d8f1c5912 docs(34): research phase voice domain 2026-04-04 03:55:49 +00:00
Nexus Dev
784d09d929 docs(34): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
1c29517514 docs(phase-33): complete persistent memory phase 2026-04-04 03:55:49 +00:00
Nexus Dev
222d00c57f feat(33-03): real AI streaming with memory injection + assistant handoff
Replace streamEcho with Puter proxy AI call, inject memory facts as
system message, append memory after each turn. Assistant-to-PM handoff
creates new conversation with context summary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
2dcb24b9ce docs(33-03): complete AI streaming + handoff plan — summary, state, roadmap updated
Real AI streaming with memory injection, SSE format fix, assistant-to-PM handoff route,
wired UI button. All 24 tests pass. Phase 33 complete.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
7bb72a5a2f feat(33-01,33-02): memory service + sanitizer, personal assistant page
33-01: memory-sanitizer, assistant-memory service, REST routes, 17 tests
33-02: useNexusMode hook, PersonalAssistantPage, sidebar nav, route wiring

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
f6caca9458 docs(33-02): complete personal-assistant-page plan — summary, state, roadmap updated 2026-04-04 03:55:49 +00:00
Nexus Dev
1d222e3e8a docs(33-01): complete persistent-memory memory-service plan
- SUMMARY.md with 17 passing tests, 2 deviations documented
- STATE.md advanced to plan 2, progress 80%
- ROADMAP.md updated: Phase 33 1/3 plans complete
- REQUIREMENTS.md: ASST-01 and ASST-02 marked complete
2026-04-04 03:55:49 +00:00
Nexus Dev
664392e9eb docs(33): create phase plan — memory service, personal assistant page, AI streaming + handoff 2026-04-04 03:55:49 +00:00
Nexus Dev
2efed8797e docs(33): research phase persistent memory domain 2026-04-04 03:55:49 +00:00
Nexus Dev
9ff01aeda9 docs(33): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
b257010a87 docs(phase-32): complete multi-step onboarding wizard phase 2026-04-04 03:55:49 +00:00
Nexus Dev
dba88cd005 docs(32-01): complete multi-step-onboarding-wizard plan
- OnboardingSummaryStep component with 6 passing tests
- NexusOnboardingWizard updated: 5 steps, skip on 1/2/4, summary on step 5
- Requirements ONBD-04, ONBD-05, ONBD-06 marked complete
2026-04-04 03:55:49 +00:00
Nexus Dev
4032d4d88b feat(32-01): wire summary step, skip buttons, chat handoff in wizard
- Add OnboardingSummaryStep as step 5 of the wizard
- Add Skip buttons on step 1 (hardware) and step 2 (mode)
- Replace step 4 form submit with Review & finish -> step 5 flow
- Add Skip to summary on step 4
- Step indicator shows 'Summary' on step 5 instead of 'Step 5 of 4'
- Add deriveProviderLabel helper for provider display text
- Add handleStartChat that creates workspace then calls setChatOpen(true)
- Refactor shared workspace creation into createWorkspace() helper
2026-04-04 03:55:49 +00:00
Nexus Dev
1683e88b9f feat(32-01): create OnboardingSummaryStep component and tests
- Read-only summary card with hardware, mode, provider, root dir rows
- SummaryRow helper component with optional mono styling
- Start chatting CTA with spinner and disabled state
- 6 unit tests covering rendering, empty root dir, error, click, loading
2026-04-04 03:55:49 +00:00
Nexus Dev
bb4554b2e3 docs(32): create phase plan 2026-04-04 03:55:49 +00:00
Nexus Dev
27a5da3912 docs(32): research multi-step onboarding wizard 2026-04-04 03:55:49 +00:00
Nexus Dev
5d76713167 docs(32): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
9850e30924 docs(phase-31): complete Puter.js zero-config cloud phase 2026-04-04 03:55:49 +00:00
Nexus Dev
cdc0079767 docs(31-04): complete puter.js-zero-config-cloud verification plan
- Created 31-04-SUMMARY.md with auto-approved checkpoint status
- Updated STATE.md: plan advanced, progress at 100%, session recorded
- Updated ROADMAP.md: phase 31 marked Complete (4/4 plans)
- All CLOUD-01 through CLOUD-05 requirements confirmed complete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
af8562c818 docs(31-03): complete provider selection UI plan summary and state updates
- 2 tasks, 6 files, 4 requirements marked complete (CLOUD-01/03/04/05)
- State advanced to plan 4 of 4; progress at 83%
2026-04-04 03:55:49 +00:00
Nexus Dev
d9c6d121f3 feat(31-03): add ProviderSelectionStep and wire 4-step onboarding wizard
- ProviderSelectionStep: three provider cards (Puter/Google/API key) with adapter badges
- Cards use border-primary bg-primary/5 when selected (matches ModeSelector pattern)
- PuterAuthButton/GoogleOAuthButton/ApiKeyEntryForm wired via callbacks
- NexusOnboardingWizard: step count 3→4, provider selection at step 3
- Parallel probe for hermes_local/claude_local/openclaw_gateway on wizard open
- Credentials stored after company creation (puterToken, googleOAuthStateId, apiKeyData)
- Skip always advances to step 4; Back from step 4 goes to step 3
2026-04-04 03:55:49 +00:00
Nexus Dev
f6db1f7882 feat(31-03): add puter-proxy API client and auth/key entry components
- puterProxyApi: storeToken, getAuthUrl, claimGoogleTokens, storeApiKey
- PuterAuthButton: loads Puter CDN script, triggers signIn popup, captures token
- GoogleOAuthButton: 3-second risk warning gate, opens OAuth popup, captures stateId
- ApiKeyEntryForm: provider dropdown (OpenAI/Anthropic/Groq) + password input
2026-04-04 03:55:49 +00:00
Nexus Dev
fe65166ecd docs(31-02): complete Google OAuth PKCE plan summary and state updates 2026-04-04 03:55:49 +00:00
Nexus Dev
4068d3de08 docs(31-01): complete puter proxy service plan summary and state update
- 31-01-SUMMARY.md: documents puterProxyService, routes, and 10 tests
- STATE.md: advance plan to 2, record metrics, session stop
- ROADMAP.md: update phase 31 progress (2/4 plans complete)
- REQUIREMENTS.md: mark CLOUD-01, CLOUD-02 complete
2026-04-04 03:55:49 +00:00
Nexus Dev
d1bb30517f feat(31-01): mount puterProxyRoutes in app.ts
- Add import for puterProxyRoutes from routes/puter-proxy.js
- Mount api.use(puterProxyRoutes(db)) after costRoutes inside api Router
- Route is protected by boardMutationGuard as required
2026-04-04 03:55:49 +00:00
Nexus Dev
dbba43cb3c test(31-02): add 11 unit tests for Google OAuth service and routes
- Test 1-2: PKCE generation (verifier/challenge format, auth URL params)
- Test 3: token exchange posts correct body to Google token endpoint
- Test 4-5: storeTokens create and rotate paths
- Test 6: authorize returns {url, stateId} with no companyId in pendingPkce
- Test 7: callback exchanges code and redirects with google_oauth=success
- Test 8: callback with invalid state returns 400
- Test 9: full authorize->callback->claim flow stores tokens by companyId
- Test 10: claim with missing stateId returns 404
- Test 11: api-keys/store upserts via secretService
2026-04-04 03:55:49 +00:00
Nexus Dev
526acbe8aa feat(31-01): implement puterProxyService, puterProxyRoutes, and unit tests
- puterProxyService with storeToken (create/rotate idempotent), resolveToken, chatStream
- chatStream relays to Puter OpenAI-compat endpoint with SSE streaming
- Cost recording with provider=puter, billingType=subscription_included, costCents=0
- Cost recording skipped when agentId is null/undefined (no FK violation)
- puterProxyRoutes with POST /puter-proxy/token and POST /puter-proxy/chat
- Board auth (assertBoard + assertCompanyAccess) on all routes
- All 10 TDD tests passing
2026-04-04 03:55:49 +00:00
Nexus Dev
895b3004be feat(31-02): add googleOAuthRoutes with pendingTokens pattern and mount in app.ts
- POST /oauth/google/authorize: returns {url, stateId}, stores PKCE verifier only (no companyId)
- GET /oauth/google/callback: exchanges code, parks tokens in pendingTokens by stateId
- POST /oauth/google/claim: moves tokens from pendingTokens to secretService with real companyId
- POST /api-keys/store: upserts provider API keys (openai/anthropic/groq) via secretService
- Cleanup of entries older than 10 minutes on each request
- Mounted in app.ts via api.use(googleOAuthRoutes(db))
2026-04-04 03:55:49 +00:00
Nexus Dev
14784d47c2 feat(31-02): add googleOAuthService with PKCE generation and token management
- generatePkce() using crypto.randomBytes base64url verifier and SHA256 challenge
- generateAuthUrl() builds Google OAuth URL with PKCE params for Gemini scopes
- exchangeCode() POSTs to Google token endpoint with code_verifier
- storeTokens() upserts google_gemini_oauth_token via secretService
- resolveTokens() retrieves and parses stored tokens by companyId
2026-04-04 03:55:49 +00:00
Nexus Dev
a6a0326af7 fix(31): revise plans based on checker feedback 2026-04-04 03:55:49 +00:00
Nexus Dev
214df47bf5 docs(31): create phase plan for Puter.js Zero-Config Cloud
4 plans across 3 waves covering all 5 CLOUD requirements:
- Plan 01 (W1): Puter proxy service, routes, tests (CLOUD-01, CLOUD-02)
- Plan 02 (W1): Google OAuth PKCE + API key storage (CLOUD-03, CLOUD-05)
- Plan 03 (W2): Provider Selection UI, 4-step wizard (CLOUD-01/03/04/05)
- Plan 04 (W3): OAuth claim endpoint + human verification

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
deffc1173d docs(31): UI design contract 2026-04-04 03:55:49 +00:00
Nexus Dev
18bea82e4b docs(phase-31): add validation strategy 2026-04-04 03:55:49 +00:00