Commit graph

2167 commits

Author SHA1 Message Date
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
Nexus Dev
b453fe5a01 docs(31): research phase — Puter.js zero-config cloud provider integration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
2a00f7a340 docs(31): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
fd79080056 docs(phase-30): complete phase execution 2026-04-04 03:55:49 +00:00
Nexus Dev
49610c5058 docs(30-02): mark human-verify approved, update state to complete
- 30-02-SUMMARY.md: checkpoint section updated to reflect visual verification approved
- STATE.md: status changed from verifying to complete, session updated
2026-04-04 03:55:49 +00:00
Nexus Dev
3886756e03 docs(30-02): complete hardware detection UI + 3-step wizard plan
- SUMMARY.md for 30-02 (hardware API client, ModeSelector, HardwareSummaryStep, wizard refactor)
- STATE.md updated with position, decisions, and session info
- ROADMAP.md updated with phase 30 plan progress
- REQUIREMENTS.md: ONBD-07 marked complete
2026-04-04 03:55:49 +00:00
Nexus Dev
28a1d1aa5e feat(30-02): wire multi-step wizard in NexusOnboardingWizard
- Refactor to 3-step flow: hardware detection, mode selection, root directory
- Add step indicator 'Step N of 3'
- Add HardwareSummaryStep on step 1 with dynamic heading
- Add ModeSelector on step 2 with 'both' pre-selected
- Add Back buttons on steps 2 and 3
- Persist selected mode via updateNexusSettings on wizard completion
- Reset step and mode on wizard close
2026-04-04 03:55:49 +00:00
Nexus Dev
2a47c60057 feat(30-02): API client, hook, ModeSelector, and HardwareSummaryStep
- Add ui/src/api/hardware.ts with fetchHardwareInfo, fetchNexusSettings, updateNexusSettings
- Add ui/src/hooks/useHardwareInfo.ts with useQuery wrapper
- Add queryKeys.hardware.info to ui/src/lib/queryKeys.ts
- Add ModeSelector with three-card layout and selected state styling
- Add HardwareSummaryStep with skeleton loading, tier-appropriate labels, privacy frame
2026-04-04 03:55:49 +00:00
Nexus Dev
949f09ac54 docs(30-01): complete hardware detection + nexus settings plan
- Add 30-01-SUMMARY.md with execution record and deviation docs
- Update STATE.md: plan advanced to 2/2, progress 50%, decisions logged
- Update ROADMAP.md: phase 30 progress updated (1/2 plans complete)
- Update REQUIREMENTS.md: ONBD-01, ONBD-02, ONBD-03 marked complete
2026-04-04 03:55:49 +00:00
Nexus Dev
59bf5dd8ba feat(30-01): hardware and nexus-settings routes, app.ts mounting
- Add hardwareRoutes with unauthenticated GET /system/providers
- Add hardwareRoutes with GET /system/providers/recommendation
- Add nexusSettingsRoutes with board-auth GET/PATCH /nexus/settings
- Mount hardwareRoutes on app before boardMutationGuard (unauthenticated)
- Mount nexusSettingsRoutes on api router (board-auth gated)
2026-04-04 03:55:49 +00:00
Nexus Dev
a9817a9659 feat(30-01): hardware detection, nexus-settings, extended model catalog
- Add hardwareService with Apple Silicon / GPU / cpu_only tier detection
- Add 3s Promise.race timeout for si.graphics() with cpu_only fallback
- Add nexusSettingsService with Zod validation and file-backed persistence
- Extend ollama-model-catalog.json with tier arrays on every variant
- Add qwen3:8b family to catalog
- Update getRecommendedModel to accept optional hardwareTier parameter
- All 13 unit tests pass (TDD green)
2026-04-04 03:55:49 +00:00
Nexus Dev
3cd988f211 docs(30): create phase plan 2026-04-04 03:55:49 +00:00
Nexus Dev
7c71e66f09 docs(30): UI design contract 2026-04-04 03:55:49 +00:00
Nexus Dev
6e7206d27d docs(30): UI design contract for hardware detection + mode selection
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
ba8fd0b5d4 docs(phase-30): add validation strategy 2026-04-04 03:55:49 +00:00
Nexus Dev
69517b373e [nexus] docs(30): research phase 30 — hardware detection + mode selection
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
006a4cf896 docs(30): auto-generated context (discuss skipped) 2026-04-04 03:55:49 +00:00
Nexus Dev
5b00379f2c docs: create milestone v1.5 roadmap (6 phases) 2026-04-04 03:55:49 +00:00
Nexus Dev
ed14004ceb docs: define milestone v1.5 requirements 2026-04-04 03:55:49 +00:00
Nexus Dev
c53e419c66 docs: complete project research 2026-04-04 03:55:49 +00:00
Nexus Dev
9caedf895e docs: start milestone v1.5 Smart Onboarding + Personal AI Assistant 2026-04-04 03:55:49 +00:00
Nexus Dev
8ae8e526d9 chore: complete v1.4 Hermes Default Provider milestone
3 phases, 6 plans, 16 requirements. Archives copied to milestones/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
02eb01a93e docs(phase-29): complete default provider phase 2026-04-04 03:55:49 +00:00
Nexus Dev
0fc748d2d4 feat(29-02): Hermes skill injection + default provider integration tests
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
2325c90abb docs(29-02): complete default-provider plan 02 — Hermes skill injection and integration tests 2026-04-04 03:55:49 +00:00
Nexus Dev
1ff3953c97 feat(29-01): adapter probe route, Hermes onboarding fallback, neutral templates
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 03:55:49 +00:00
Nexus Dev
372df3919a docs(29-01): complete default-provider plan 01 — hermes probe route and adapter-neutral templates 2026-04-04 03:55:49 +00:00
Nexus Dev
fb4a2066c3 docs(29): create phase plan — adapter probe, onboarding fallback, skill injection 2026-04-04 03:55:49 +00:00
Nexus Dev
d386f52b25 docs(29): research phase default-provider 2026-04-04 03:55:49 +00:00