Commit Graph

4826 Commits

Author SHA1 Message Date
rcourtman
b6bd9fd2d4 feat(ai): add RegisterTool method for runtime tool registration 2026-02-02 11:14:55 +00:00
rcourtman
fa1b74792e docs: add comprehensive deep-dive documentation for AI subsystems
Adds detailed architecture documentation for Pulse Patrol and Pulse Assistant. Updates AI.md and PULSE_PRO.md. Also includes additional tests.
2026-02-02 10:29:07 +00:00
rcourtman
df43f08cf2 fix: address linting issues and test adjustments
cmd/eval/main.go:
- Fix fmt.Errorf format string lint warning (use %s instead of bare string)

internal/logging/logging_test.go:
- Update tests to account for LogBroadcaster wrapper in baseWriter
- Use string representation checks instead of direct pointer comparison
- Verify both the underlying writer and broadcaster are present
2026-02-01 23:27:11 +00:00
rcourtman
3d44a9e517 feat(frontend): improve AI settings UX and update defaults
AI Settings:
- Add info box with link to configure patrol schedule & autonomy
- Import useNavigate for navigation to /ai page

Network Settings:
- Improve auto-discovery mode descriptions for clarity
- Better explain that auto mode scans all host interfaces

Settings:
- Default allowedOrigins to empty string instead of '*'

RunHistoryEntry:
- Add eslint-disable comment for intentional innerHTML usage

AI Types:
- Update default models: claude-haiku-4-5, deepseek-chat
2026-02-01 23:27:02 +00:00
rcourtman
7926524a29 fix(build): use indexed arrays for POSIX shell compatibility
Replace bash associative arrays with parallel indexed arrays to ensure
the build script works on systems with older bash versions or when run
under /bin/sh.

Changes:
- Replace host_agent_builds associative array with host_agent_envs indexed array
- Replace builds associative array with build_envs indexed array
- Add array length validation to catch config mismatches early
- Use index-based iteration instead of key-based lookup
2026-02-01 23:26:51 +00:00
rcourtman
6753727a04 docs: update API documentation and config file references
Comprehensive documentation updates:

API.md:
- Add /api/security/change-password endpoint
- Add AI provider test endpoints
- Add assistant chat & session management endpoints
- Add legacy chat sessions endpoints
- Add alert investigation and patrol autonomy endpoints
- Add findings & investigations endpoints
- Add approvals & command execution endpoints
- Add remediation plans endpoints
- Add intelligence & forecasting endpoints
- Add knowledge base endpoints
- Add debug endpoint
- Add Socket.IO compatibility endpoint

Config files:
- Document sso.enc, ai_chat_sessions.json
- Document profile-versions.json, profile-changelog.json, profile-deployments.json
2026-02-01 23:26:42 +00:00
rcourtman
4af5fc4246 refactor(config): rename BackendHost/BackendPort to BindAddress
Simplify server config by consolidating BackendHost and BackendPort into
a single BindAddress field. The port is now solely controlled by FrontendPort.

Changes:
- Replace BackendHost/BackendPort with BindAddress in Config struct
- Add deprecation warning for BACKEND_HOST env var (use BIND_ADDRESS)
- Update connection timeout default from 45s to 60s
- Remove backendPort from SystemSettings and frontend types
- Update server.go to use cfg.BindAddress
- Update all tests to use new config field names
2026-02-01 23:26:32 +00:00
rcourtman
b0aaca863d refactor(ai): extract shared Finding type to eliminate duplicate structs
Move the Finding type that was duplicated between patrol and investigation
packages into a new internal/ai/finding package. Both packages now use
type aliases for backwards compatibility.

Changes:
- Add internal/ai/finding/finding.go as the canonical Finding definition
- Update investigation.Finding to be a type alias for finding.Finding
- Update InvestigationFinding in patrol.go to be a type alias
- Add ToCoreFinding() method to ai.Finding for type conversion
- Simplify investigation_adapter.go (no more field-by-field copies)
- Add e2e integration test for patrol investigation flow
2026-02-01 23:26:20 +00:00
rcourtman
017073a065 Document WebSocket endpoints and mock-mode PUT method
- Add /ws and /api/agent/ws WebSocket endpoint documentation
- Add PUT method to mock-mode endpoint
2026-02-01 22:26:17 +00:00
rcourtman
80cdfab536 Update metrics docs with canonical resourceType values
- Use canonical types (vm, container, dockerContainer) instead of
  aliases (guest, docker) in examples
- Document that guest/docker aliases are accepted by the API
- Clarify persistent store type mapping in data flow doc
2026-02-01 22:26:04 +00:00
rcourtman
487fcf76d4 Expand API documentation with additional endpoints
Document previously undocumented endpoints:

- Resource metadata endpoints (hosts, guests, docker containers)
- Public config endpoint
- Node test/update/delete/refresh endpoints
- Service discovery endpoints
- Alert management endpoints (config, history, bulk actions)
- Security apply-restart endpoint
- System settings and SSH config endpoints
- Logs streaming and download endpoints
- Server info endpoint

Also clarify resourceType aliases for metrics history.
2026-02-01 22:25:48 +00:00
rcourtman
3c3b041368 Improve patrol autonomy error messages for clarity
- Update license_required error to mention 'Auto-fix' instead of
  'Assisted and Full autonomy' for clearer user messaging
- Update full_mode_locked error to reference the UI toggle label
  'Auto-fix critical issues' instead of internal field name
2026-02-01 22:25:32 +00:00
rcourtman
0e72011cd1 Split Agents and Docker into separate settings tabs
- Add new Docker tab under Platforms with Container icon
- Move Docker-specific settings (update actions toggle) to Docker tab
- Keep UnifiedAgents and AgentProfilesPanel in Agents tab
- Fix path routing for /settings/docker to navigate to docker tab
2026-02-01 22:25:23 +00:00
rcourtman
a04db92b90 Refactor AIIntelligence page to use extracted components
- Replace inline run history rendering with RunHistoryPanel component
- Use formatting functions from patrolFormat utility
- Remove unused icon imports (cleaned up after component extraction)
- Fix alert-triggered analysis default to respect license status
- Simplify autonomy change to send 'full' when auto-fix unlocked
2026-02-01 22:25:15 +00:00
rcourtman
452a24a9f7 Add RunHistoryEntry and RunHistoryPanel components
New components to display patrol run history with expandable entries:

- RunHistoryEntry: Individual run card showing status, timing, findings
  count, and expandable analysis with tool call trace
- RunHistoryPanel: Container with run list, loading/empty states, and
  filter controls for selecting runs to view findings snapshot

Export both components from patrol index.
2026-02-01 22:25:06 +00:00
rcourtman
df7b3c5bfa Extract patrol formatting utilities to shared module
Move pure formatting functions out of AIIntelligence.tsx into a
dedicated utility file for reuse across patrol components:

- formatRelativeTime: Human-readable time differences
- formatDurationMs: Duration formatting (ms → s → m)
- formatTriggerReason: Patrol run trigger labels
- formatScope: Resource scope summary
- sanitizeAnalysis: Strip leaked DSML markup
- groupModelsByProvider: Group models for select dropdowns
2026-02-01 22:24:58 +00:00
rcourtman
ec802c4864 Update documentation with configuration and deployment details
- CONFIGURATION.md: Add comprehensive system.json keys table with
  descriptions for all polling, discovery, and UI settings
- DEPLOYMENT_MODELS.md: Document audit signing key, agent profile files,
  org metadata, and multi-tenant storage layout
- METRICS_HISTORY.md: Update resourceType values, add maxPoints param,
  document Pro license requirement for ranges beyond 7d
- MULTI_TENANT.md: Add storage layout and migration section, remove
  completed TODO items from backlog
- CENTRALIZED_MANAGEMENT.md: Update links and clarify architecture
- API.md: Update endpoint documentation
- UNIFIED_AGENT.md: Document --version and --self-test flags
2026-02-01 22:24:48 +00:00
rcourtman
6d33733c56 Fix prose max-width in AI Intelligence analysis view
Add max-w-none to prose container to prevent markdown content from
being constrained to prose's default max-width.
2026-02-01 21:32:18 +00:00
rcourtman
b75783397c Simplify settings panel gradients to solid colors
Replace gradient backgrounds with solid colors in remaining settings
panels for visual consistency:

- APIAccessPanel, APITokenManager, AuditLogPanel
- OIDCPanel, SSOProvidersPanel
- ProxmoxAgentNodesPanel
- RolesPanel, UserAssignmentsPanel
- SecurityOverviewPanel, SecurityPostureSummary
2026-02-01 21:32:11 +00:00
rcourtman
f0aca773eb Remove unused animate-gradient-x CSS animation
The gradient-x animation was no longer used after simplifying
gradients to solid colors throughout the application.
2026-02-01 21:31:52 +00:00
rcourtman
4c1e4ab3ed Simplify shared component gradients to solid colors
- Toast: Replace gradient background with solid semi-transparent white
- ScrollableTable: Replace gradient fades with solid backgrounds
2026-02-01 21:31:45 +00:00
rcourtman
d07f964353 Simplify dashboard component gradients to solid colors
Replace gradient backgrounds with solid colors in:

- GuestDrawer Pro lock overlay
- UnifiedBackups PBS enhancement banner
- KubernetesClusters AI promo card and Pro button
- EnhancedStorageBar scrubbing animation (use pulse animation)

Also update KubernetesClusters to reference 'Settings → AI'
2026-02-01 21:31:38 +00:00
rcourtman
0a483bc612 Simplify AI component gradients to solid colors
Replace gradient backgrounds and buttons with solid colors in:

- AICostDashboard header
- ApprovalCard header and approve button
- QuestionCard header and submit button
- FindingsPanel header
- InvestigateAlertButton all variants
2026-02-01 21:31:30 +00:00
rcourtman
bc9a250e58 Simplify login and setup wizard styling
Replace gradient backgrounds and buttons with solid colors for a
cleaner, more consistent appearance:

- Login page backgrounds and buttons
- FirstRunSetup background
- SetupWizard backgrounds and all step buttons
- Also update FeaturesStep to reference 'Settings → AI' instead of
  'Settings → Pulse Assistant'
2026-02-01 21:31:22 +00:00
rcourtman
48026e4911 Optimize chart rendering with solid fills
Replace gradient fills with solid color fills for better rendering
performance. Gradients are recreated on every frame which is
computationally expensive; solid fills achieve similar visual effect
with less overhead.
2026-02-01 21:31:10 +00:00
rcourtman
67110cf357 Update Settings sidebar labels and icons
- Rename 'Pulse Assistant' to 'AI' for brevity
- Use PulseLogoIcon for Pulse Pro menu item
- Change Agents icon from Monitor to Bot
- Change Roles icon from Shield to ShieldCheck
- Simplify gradient usage in Pro badge and server discovery cards
2026-02-01 21:31:02 +00:00
rcourtman
a8f61147b7 Adopt SettingsPanel with icons across settings pages
Refactor remaining settings panels to use the enhanced SettingsPanel
component with header icons. This provides a consistent visual style
with blue headers and iconography across:

- GeneralSettingsPanel
- NetworkSettingsPanel
- BackupsSettingsPanel
- AgentProfilesPanel
- UpdatesSettingsPanel
- ReportingPanel
- SystemLogsPanel
- DiagnosticsPanel

Also simplifies gradient usage to solid colors throughout.
2026-02-01 21:30:53 +00:00
rcourtman
439aba2c1e Refactor SecurityAuthPanel to use SettingsPanel component
- Replace manual Card/header markup with SettingsPanel
- Use Lock icon in Authentication panel header
- Simplify content structure and reduce nesting
2026-02-01 21:30:41 +00:00
rcourtman
19f3637962 Adopt SettingsPanel with icons in UnifiedAgents and ProLicensePanel
- UnifiedAgents: Use SettingsPanel with Server/Users icons
- ProLicensePanel: Add ShieldCheck and BadgeCheck icons to panels
2026-02-01 21:30:34 +00:00
rcourtman
003c572902 Refactor AISettings to use SettingsPanel component
- Replace Card with SettingsPanel using the chemistry flask icon
- Move enabled toggle to panel action area
- Add descriptive tooltips for Chat and Patrol model selectors
- Fix indentation in permission level badge classes
2026-02-01 21:30:27 +00:00
rcourtman
089d589cf1 Improve AI Chat UX with dismissable autonomous banner
- Add dismiss button to autonomous mode warning banner
- Reset banner visibility when switching to autonomous mode
- Streamline input area by removing @ mention button (still accessible via typing)
- Update footer hint styling for cleaner appearance
- Align send/stop buttons vertically
2026-02-01 21:30:19 +00:00
rcourtman
feabb3ec1e Enhance SettingsPanel with icon prop and header redesign
- Add optional icon prop to display in the panel header
- Redesign header with blue background and consistent styling
- Remove padding from Card and handle it internally for better control
- Update bodyClass defaults
2026-02-01 21:30:11 +00:00
rcourtman
9e15ecd6aa Add PulseLogoIcon component
New monochrome SVG icon representing the Pulse logo (three concentric
circles). Uses a mask technique for clean rendering at small sizes.
2026-02-01 21:30:03 +00:00
rcourtman
cee7ce3133 Remove AIStatusIndicator from app header
The Patrol status is now accessible through the AI Intelligence page
rather than cluttering the main header navigation.
2026-02-01 21:29:56 +00:00
rcourtman
f6e1b92c8b feat(patrol): enhance patrol UI with licensing checks and auto-fix controls 2026-02-01 20:40:44 +00:00
rcourtman
9e2bb573fe refactor(frontend): organize dashboard filter toolbar layout 2026-02-01 20:40:24 +00:00
rcourtman
f16a43845a feat(patrol): simplify settings UI and update logo 2026-02-01 20:07:29 +00:00
rcourtman
34ca21d677 feat(chat): polish assistant UI and empty state 2026-02-01 20:07:20 +00:00
rcourtman
c07fd47576 feat(dashboard): streamline drawer details and discovery 2026-02-01 20:07:08 +00:00
rcourtman
cfd9648d2d feat(charts): add downsampling and smoother rendering 2026-02-01 20:06:55 +00:00
rcourtman
ba7fd5c797 feat(ui): enhance patrol stream reliability and approval banner UX 2026-02-01 18:08:12 +00:00
rcourtman
e780a78725 test(ai): update tests for license gate removals and DeepSeek cleanup 2026-02-01 18:08:02 +00:00
rcourtman
e4f4889915 fix(patrol): improve stream subscriber safety and detect stuck runs 2026-02-01 18:07:51 +00:00
rcourtman
71e00ee7df fix(ai): filter DeepSeek DSML internal function-call format from responses 2026-02-01 18:07:41 +00:00
rcourtman
78cd64338a fix(ai): pass autonomous mode per-request instead of mutating shared state 2026-02-01 18:07:28 +00:00
rcourtman
d9370d88d8 perf(ai): debounce approval store writes to reduce disk I/O 2026-02-01 18:07:17 +00:00
rcourtman
70169f087f feat(ui): update patrol interface with new tiering and status indicators 2026-02-01 16:29:07 +00:00
rcourtman
9279358cec imp(api): remove remaining license gates for intelligence features 2026-02-01 16:28:49 +00:00
rcourtman
9d83e4e1d1 fix(ai): fix ollama streaming timeouts and ensure consistent tool call responses 2026-02-01 16:28:24 +00:00
rcourtman
1edf5f20be fix(ai): improve context store thread-safety and avoid recursive locking 2026-02-01 16:28:04 +00:00