Skip to content

CRUX (Context Reactive User Experience) Interface#106

Merged
deepsaia merged 36 commits into
mainfrom
DS-cruse
Dec 19, 2025
Merged

CRUX (Context Reactive User Experience) Interface#106
deepsaia merged 36 commits into
mainfrom
DS-cruse

Conversation

@deepsaia
Copy link
Copy Markdown
Collaborator

@deepsaia deepsaia commented Dec 4, 2025

Description

This PR introduces CRUX (Context Reactive User Experience) - a next-generation conversational interface for nsflow that provides dynamic, context-aware interactions with AI agents through an adaptive themed environment.

Key Features

  1. Widget + Message Integration
  • Task-specific widget generation via cruse_widget_agent
  • Users can now submit widget form data alongside typed messages in a single action
  • Combined messages automatically format widget fields with user text
  • Empty fields are automatically excluded
  • Preserves standalone widget Submit button functionality
  1. Intelligent Theme System
  • Agent-specific background generation via cruse_theme_agent
  • Dynamic patterns (css-doodle) and static css based gradients with customized user-prompt
  • Fallback schemas ensure graceful degradation when theme generation fails
  • Theme persistence per agent
  1. Enhanced UI Controls
  • Compact settings panel with theme toggle (Cruse/MUI), background type selector (Static/Dynamic)
  • Refresh button with optional user prompt for theme customization
  • Fine-grained opacity control (1% steps, 0-100%)
  • Blur adjustment (0.1px steps, 0-10px) for glass-morphism effect
  • Thread management with collapsible sidebar

Side Notes:

  • Entire Cruse interface is gated behind NSFLOW_PLUGIN_CRUSE flag for controlled rollout
  • Backend
    • New cruse_endpoints.py with threads and theme persistence APIs
    • Relies on cruse_widget_agent and cruse_theme_agent with css-doodle and gradient template providers
  • Frontend
    • New pages: Cruse.tsx with chat interface
    • New components: CruseChatPanel, ThreadList, AgentSelector, DynamicWidgetCard, BackgroundEngine

Fixes #104 #109

Screenshots / Logs / Examples (optional)

Screenshot 2025-12-18 at 12 46 59 PM

Type of Change

  • Bug fix
  • New feature
  • Dependency upgrade
  • Refactoring / Improvement
  • Documentation
  • New agent / tool

Checklist

  • Tested locally
  • Added/updated tests
  • Updated relevant documentation
  • Added dependencies to appropriate requirements.txt (tool-specific preferred; main only for core functionality)

@deepsaia deepsaia linked an issue Dec 4, 2025 that may be closed by this pull request
@deepsaia deepsaia self-assigned this Dec 11, 2025
@deepsaia deepsaia linked an issue Dec 17, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@ofrancon ofrancon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't NSFLOW_PLUGIN_CRUSE be False by default?

Comment thread nsflow/backend/api/v1/app_configs.py Outdated
@deepsaia deepsaia requested a review from ofrancon December 19, 2025 02:39
Copy link
Copy Markdown
Contributor

@ofrancon ofrancon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it being the feature flag for now. Thanks!

@deepsaia deepsaia merged commit 2abc24f into main Dec 19, 2025
4 checks passed
@deepsaia deepsaia deleted the DS-cruse branch December 19, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sample Queries on the Editor Page Cruise Agent as a launcher for generated agents

2 participants