Commit Graph

1852 Commits

Author SHA1 Message Date
Jeff Emmett 8867c7d456 Merge branch 'dev'
CI/CD / deploy (push) Failing after 19m26s Details
2026-04-14 11:49:13 -04:00
Jeff Emmett 2e43b6aadc fix(rtime): pool circle resize + remove hex port dots + auto-weave + tooltip
- Fix pool circle not resizing: clear inline canvas dimensions before
  measuring, observe pool panel via ResizeObserver, use rAF for layout
- Remove visible port dot on hexagon commitment nodes — lines connect
  directly to hex edge, invisible hit area preserved
- Auto-weave: dropping commitment on canvas auto-connects to nearest
  unfulfilled task (was showing suggestion preview requiring confirmation)
- Add SVG tooltip on proposed connections: "{name} has been notified of
  this proposed commitment, and can approve/deny for 48 hours"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-14 11:49:06 -04:00
Jeff Emmett 2d2dbd0f98 Merge branch 'dev'
CI/CD / deploy (push) Failing after 11m49s Details
2026-04-14 11:27:15 -04:00
Jeff Emmett d998409b7d fix(landing): remove (you) prefix from hero wordmark
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-14 11:27:08 -04:00
Jeff Emmett 36f6715055 Merge branch 'dev'
CI/CD / deploy (push) Failing after 15m17s Details
2026-04-14 10:43:28 -04:00
Jeff Emmett e2e9bc42fd feat(landing): full redesign — 8-section layout with tabbed app categories
Hero with animated CSS orbs + grid overlay, stats bar, flow stories with
accent borders, 9-category tabbed showcase (all 37 rApps), 3-step how-it-works
with dotted connectors, EncryptID, final CTA, categorized footer columns.
Fixes hero hiding behind 56px header. New lp-* CSS prefix, reduced-motion
support, light/dark mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-14 10:43:18 -04:00
Jeff Emmett fe7fff5278 Merge branch 'dev'
CI/CD / deploy (push) Failing after 3m35s Details
2026-04-13 23:32:43 -04:00
Jeff Emmett 70cb919541 fix(rnetwork): add auth headers to graph viewer API calls; add Blender multi-user
- Fix 401 errors on rNetwork by passing encryptid-token as Bearer auth
  on /api/info, /api/graph, /api/workspaces fetch calls
- Add blender-multiuser replication server (multi-user-server:0.5.8)
  to docker-compose with health check and resource limits
- Add Multiplayer tab to folk-blender shape with connection info,
  server status check, and setup instructions
- Add /api/blender-multiuser/status endpoint for TCP health probe

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 23:32:33 -04:00
Jeff Emmett 61106c8d9d Merge branch 'dev'
CI/CD / deploy (push) Failing after 2m23s Details
2026-04-13 13:37:57 -04:00
Jeff Emmett dc30b8f2e6 feat(rdocs): auto-scaffold "New Documents" notebook with blank note on first use
- Real spaces: if no notebooks exist after loadNotebooks(), auto-creates
  a "New Documents" notebook via API with a blank "Untitled" note inside
  it, expanded and opened for editing
- Demo mode: prepends "New Documents" notebook with blank starter note
  as the first item; auto-opens it on both fresh load and localStorage
  restore so rDocs always starts with a ready-to-edit blank document

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:37:47 -04:00
Jeff Emmett 76913cd004 Merge branch 'dev'
CI/CD / deploy (push) Successful in 2m32s Details
2026-04-13 13:31:16 -04:00
Jeff Emmett 10e70ba132 feat(security): add Traefik rate limit middleware labels
Coarse edge defense: 120 req/min average, burst 30, applied to both
rspace-main and rspace-canvas routers. Layer 1 flood cap before
Hono-level per-IP tiered limiting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:31:06 -04:00
Jeff Emmett ddbe5300b8 feat(security): harden MI endpoints — CORS, rate limiting, prompt sanitization
CI/CD / deploy (push) Successful in 2m24s Details
- Restrict CORS to known rSpace domains (no more open wildcard)
- Add tiered rate limiting per IP (anon vs authenticated, per endpoint tier)
- UA filtering blocks scrapers/scanners, allows browsers and AI agents
- Prompt injection sanitization: strip MI_ACTION markers, system tags, and
  known attack patterns from user-supplied content before LLM ingestion
- Space access control: private/permissioned spaces gate MI data to members
- Auth required on /triage, /execute-server-action, data-driven /suggestions
- MCP guard: require auth or agent UA for /api/mcp/*
- Anonymous WebSocket cap: max 3 per IP with proper cleanup on close
- Knowledge index + conversation memory gated to members+ (viewers get
  public canvas data only)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:27:16 -04:00
Jeff Emmett 4d5c394e9e fix(rdocs): persist demo notebook state in localStorage
Demo mode edits were lost on page reload — now debounce-saved to
localStorage and restored on next visit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:27:16 -04:00
Jeff Emmett e78b768f04 feat(security): harden MI endpoints — CORS, rate limiting, prompt sanitization
- Restrict CORS to known rSpace domains (no more open wildcard)
- Add tiered rate limiting per IP (anon vs authenticated, per endpoint tier)
- UA filtering blocks scrapers/scanners, allows browsers and AI agents
- Prompt injection sanitization: strip MI_ACTION markers, system tags, and
  known attack patterns from user-supplied content before LLM ingestion
- Space access control: private/permissioned spaces gate MI data to members
- Auth required on /triage, /execute-server-action, data-driven /suggestions
- MCP guard: require auth or agent UA for /api/mcp/*
- Anonymous WebSocket cap: max 3 per IP with proper cleanup on close
- Knowledge index + conversation memory gated to members+ (viewers get
  public canvas data only)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:26:53 -04:00
Jeff Emmett 6e9de87074 fix(rdocs): persist demo notebook state in localStorage
Demo mode edits were lost on page reload — now debounce-saved to
localStorage and restored on next visit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 13:26:11 -04:00
Jeff Emmett 432a3597de Merge branch 'dev'
CI/CD / deploy (push) Successful in 2m16s Details
2026-04-13 15:51:56 +00:00
Jeff Emmett 93d75aba81 fix(rtime): split pool and weaving as interactive 50/50 on mobile
Replace scrollable stacked layout with flex: 1 split so both
visualizations are visible and interactive simultaneously without
scrolling. Sidebar capped at 80px to save vertical space.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 15:51:47 +00:00
Jeff Emmett c4bc26359c Merge branch 'dev'
CI/CD / deploy (push) Has been cancelled Details
2026-04-13 15:51:29 +00:00
Jeff Emmett 18a688bade feat(rauctions): add rAuctions module with hub page and external app embed
Registers rauctions as an embedded rSpace module that proxies the
standalone rauctions.online Next.js app. Includes hub page with active
auction listings, landing page, and MODULE_META entry for canvas display.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 15:51:10 +00:00
Jeff Emmett b877f28abc Merge branch 'dev'
CI/CD / deploy (push) Successful in 3m0s Details
2026-04-13 11:23:17 -04:00
Jeff Emmett cede2232b5 fix(encryptid): unified device list with names, confirmation, and rename/delete
- Add detectDeviceName() JS helper to all 6 registration pages (parses
  UA → "Chrome on Windows", "Safari on iPhone", etc.)
- Accept deviceName in /api/register/complete, /api/account/device/complete,
  and /api/device-link/:token/complete; store as credential label at creation
- Add optional label param to storeCredential() in db.ts
- Replace separate "Your Passkeys" section with unified device list in
  "Linked Devices" showing name, status, created/last-used dates, and
  inline rename (PATCH) and delete (DELETE) actions
- Make checklist "Second device" confirmation-aware: only marks done when
  a second device has actually been used to sign in (has lastUsed set)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 11:23:05 -04:00
Jeff Emmett 513096a32e Merge branch 'dev'
CI/CD / deploy (push) Successful in 2m25s Details
2026-04-13 11:17:39 -04:00
Jeff Emmett 195b42eb3b feat(collab): scope SVG cursors by active sub-document view
Remote cursor arrows and focus rings from peers viewing a different
note in rDocs are now suppressed. A generic viewId concept on the
collab overlay lets any rApp with sub-views opt in via a
rspace-view-change CustomEvent. Peers on a different view appear
dimmed in the people panel with a document icon hint.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 11:17:29 -04:00
Jeff Emmett 15a1b726d1 Merge branch 'dev'
CI/CD / deploy (push) Successful in 3m0s Details
2026-04-13 11:00:12 -04:00
Jeff Emmett 97bf0504cb fix(encryptid): detect missing WebAuthn in QR scanner WebViews
When scanning a device-link QR code, many phone apps open the URL in
an embedded WebView that lacks PublicKeyCredential support, causing
"user agent does not support public key credentials". Now the /link
page checks for WebAuthn early and shows a helpful fallback with a
Copy Link button so the user can open it in Safari/Chrome instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 10:59:36 -04:00
Jeff Emmett 57c4bf455d Merge branch 'dev'
CI/CD / deploy (push) Failing after 4m36s Details
2026-04-13 10:26:56 -04:00
Jeff Emmett efbd0f040c fix(canvas): plug memory leaks causing OOM on long sessions
- Store shape listener refs in Map, remove in unregisterShape() (critical leak)
- Compact Automerge history every 500 changes via clone() to cap WASM heap
- Clean shapeLastPos entries on shape removal
- Store outside-click handler ref, clean up in disconnectedCallback()
- Cap MI messages at 50 and prompt messages at 30 to prevent unbounded growth
- Store keep-alive interval handle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 10:26:43 -04:00
Jeff Emmett 8cd0187036 Merge branch 'dev'
CI/CD / deploy (push) Has been cancelled Details
2026-04-13 10:26:22 -04:00
Jeff Emmett f3d68b2ef5 fix(docker): install markitdown directly in production stage
The venv approach caused a Python version mismatch (3.11 in builder vs 3.13
in oven/bun:1-slim). Install markitdown with pip directly in the production
stage using the runtime Python, then purge pip to keep image lean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 10:26:15 -04:00
Jeff Emmett 9a857c7bc2 Merge branch 'dev'
CI/CD / deploy (push) Successful in 6m3s Details
2026-04-13 10:17:59 -04:00
Jeff Emmett 698a630b8b feat(rdocs+mi): add MarkItDown integration for PDF/DOCX/PPTX/XLSX conversion
Office documents dropped onto canvas or imported via rDocs are now converted
to Markdown using Microsoft's markitdown CLI. Canvas drops trigger triage;
rDocs imports create rich notes with the original file kept as an attachment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 10:17:49 -04:00
Jeff Emmett 8e69a34d35 Merge branch 'dev'
CI/CD / deploy (push) Successful in 2m23s Details
2026-04-13 09:15:31 -04:00
Jeff Emmett 6e36b87a45 fix(sync): prune stale DOM shapes + make tab reconciliation user-authoritative
community-sync: remove DOM shapes that are deleted/forgotten from doc.
shell: treat user's saved tabs as authoritative over Automerge, pass
fromUserAction flag to reconcileRemoteLayers to allow intentional close-all.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 09:15:22 -04:00
Jeff Emmett 1e5f04398b feat(identity): add notification dot on My Account + remove postal address
Show red alert dot on "My Account" dropdown item when email, multi-device,
or social recovery tasks are incomplete. Remove postal address section
from the account modal (render, state, loader, listeners).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 09:15:17 -04:00
Jeff Emmett 95585a7f58 Merge branch 'dev'
CI/CD / deploy (push) Failing after 2m37s Details
2026-04-13 09:03:36 -04:00
Jeff Emmett c91921592b feat(mi): unify voice into single mic toggle with succinct TTS responses
Replace three separate mic controls (bar dictation, bar miC, panel miC)
with a single 🎤 toggle in the bar that activates the full voice loop:
speech-to-text → auto-submit after 1.5s silence → TTS response.

- Remove standalone dictation mode (#dictation, #interimText)
- Remove panel header miC button
- Single mic button uses voice mode state animations (pulse red = listening,
  spin amber = thinking, pulse cyan = speaking)
- Tighten TTS output to ~2 sentences for succinct responses
- Voice strip still shows in panel with waveform, status, and stop button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 09:03:29 -04:00
Jeff Emmett fa08c00d38 Merge branch 'dev'
CI/CD / deploy (push) Successful in 3m25s Details
2026-04-13 08:50:00 -04:00
Jeff Emmett 48c7f15de4 feat(app-switcher): add badges for all rApps, sort toggle, and pin favorites
- Add r<emoji> badges for rDocs, rDesign, rSheets, rTime, rGov, rAgents,
  rExchange to both MODULE_BADGES and FAVICON_BADGE_MAP
- Add MODULE_CATEGORIES entries for all new modules
- Add "Govern" category for rGov
- Sort modules alphabetically within each function category
- Add sort toggle (By Function / A-Z) at bottom of sidebar, persisted
  in localStorage
- Add star/pin button on each rApp — pinned items appear in a "Pinned"
  section above "Recent", persisted in localStorage
- Fix rAuctions module ID: 'auctions' → 'rauctions' for consistency,
  with alias in MODULE_ALIASES for backward compat
- Change rAuctions emoji from 🏛 to 🎭

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 08:49:52 -04:00
Jeff Emmett e3ef126eab Merge branch 'dev'
CI/CD / deploy (push) Successful in 3m41s Details
2026-04-12 22:19:19 -04:00
Jeff Emmett 75fd5cf4be feat(mi): per-space knowledge index with ranked context injection
Replace the 265-line data dump (35 modules × 3 items) in MI system prompts
with a trigram-ranked knowledge index that surfaces only the top-18 most
relevant entries per query. Adds per-space conversation memory persisted
to disk for cross-session context.

New files:
- server/mi-trigrams.ts — trigram + Jaccard similarity utilities
- server/space-knowledge.ts — SpaceKnowledgeIndex with 5-min TTL cache
- server/space-memory.ts — SpaceMemory with debounced disk persistence

Changes:
- mi-routes.ts: ~280 lines removed, replaced with ranked index call
- sync-instance.ts: cache invalidation on doc changes
- rauctions/mod.ts: fix ModuleScoping type (defaultScope, userConfigurable)
- mcp-tools/ragents.ts: fix AccessResult property access (claims.username, claims.sub)

~80% token reduction per MI request (~6,300 → ~1,320 tokens).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 22:19:07 -04:00
Jeff Emmett e9818c064b Merge branch 'dev'
CI/CD / deploy (push) Failing after 2m27s Details
2026-04-12 22:09:35 -04:00
Jeff Emmett 04cb381e3c chore(rnotes): bump folk-notes-app.js cache version to v=10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 22:09:32 -04:00
Jeff Emmett 6c1c7a94b4 Merge branch 'dev'
CI/CD / deploy (push) Successful in 2m52s Details
2026-04-12 22:06:30 -04:00
Jeff Emmett 79d24a327e fix(rnotes): fix vault upload — field name mismatch and missing auth header
The upload form sent the file as "vault" but the server expected "file",
causing all uploads to fail with 400. Also added the encryptid JWT token
to the upload request so authenticated routes don't return 401.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 22:06:22 -04:00
Jeff Emmett 38f11d5598 Merge branch 'dev'
CI/CD / deploy (push) Successful in 3m37s Details
2026-04-12 20:28:04 -04:00
Jeff Emmett 0b1e33e1d2 fix(video-gen): use fal.ai status_url from submit response + add logging
Use the status_url returned by fal.ai submit instead of constructing
it manually. Add logging for submit success and poll HTTP errors to
debug Seedance queue status polling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 20:27:59 -04:00
Jeff Emmett 1e23facded fix: add rAuctions module stub to fix missing import crash
CI/CD / deploy (push) Successful in 2m50s Details
The server imported rauctions/mod but the module was never committed,
causing a crash loop on startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 20:14:37 -04:00
Jeff Emmett d4877abff9 fix: add rAuctions module stub to fix missing import crash
The server imported rauctions/mod but the module was never committed,
causing a crash loop on startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 20:14:22 -04:00
Jeff Emmett fde81a0f80 merge: rAgents module — agent-to-agent exchange
CI/CD / deploy (push) Successful in 1m57s Details
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 23:27:37 +00:00