18 Commits

Author SHA1 Message Date
5e3067a92a fix(settings): resolve undefined security variable in settings.ui
- Added jinja2 set statement to fetch settings data from /hermes-web-cli/settings/ API
- Updated Form fields to use value/checked properties with proper fallbacks
- Implemented settings API endpoint to return current configuration
- Removed incorrect load event binding and template variable references
2026-04-22 21:51:04 +08:00
14ed67907a Fix settings.ui: Correct TabPanel structure using items instead of tabs, and use Form toolbar actions with proper uitype in fields 2026-04-22 17:40:35 +08:00
701aedfa5a Fix settings.ui: Replace non-existent Tabs控件 with TabPanel控件 and ensure Form控件 uses correct options.fields structure 2026-04-22 17:17:34 +08:00
02b2cdaeec Fix template variable references: Use quoted syntax '{{ 'widget-id'.data }}' to avoid Jinja2 UndefinedError with hyphenated widget IDs 2026-04-22 17:11:48 +08:00
30eae89807 Fix Form控件结构: ensure all Form controls use options.fields instead of subwidgets 2026-04-22 16:39:31 +08:00
3edfa140e9 Fix bricks framework API usage and file structure
- Move all JS files from wwwroot/scripts/ to wwwroot/ root directory to comply with ahserver requirements
- Fix component registration: use bricks.Factory.register() instead of bricks.register()
- Fix function registration: use bricks.RF.register() instead of bricks.registerFunction()
- Update UI files to use item_template_url with external templates for List components
- Add proper list item template files (session-list-item.ui, service-list-item.ui, model-list-item.ui)
- Ensure all custom components and functions use correct bricks framework API
2026-04-22 15:49:36 +08:00
34949ea16c Fix bricks-framework component usage: replace invalid List with custom implementation, replace Input/Checkbox/Select/Textarea with proper UiStr/UiInt/UiCheck/UiCode/UiText components with required name attributes 2026-04-22 14:59:53 +08:00
bc3e94b64a Fix Jinja2 template errors: use 'item' for List components and correct form field access 2026-04-22 14:48:50 +08:00
e846804ec8 Fix UI bindings and implement proper .dspy endpoints according to bricks-framework规范 2026-04-22 14:41:42 +08:00
6c28e4f6a9 fix: resolve Jinja2 template errors and undefined item variables
- Replace JavaScript ternary operator with Jinja2 if-else syntax in services.ui
- Change all 'item' references to 'data' in List component templates
- Add proper script bindings with data passing for List component actions
- Update main.dspy functions to use correct parameter names from form data
- Add missing update_model and remove_model functions for AI model management
- Ensure all List component interactions properly pass current item data
2026-04-22 14:25:08 +08:00
c158573a39 fix: replace backgroundColor with bgcolor in all UI files and add missing scripts
- Replace all 'backgroundColor' properties with 'bgcolor' to comply with bricks-framework specification
- Add missing UI files: new_session.ui, sessions.ui, services.ui, settings.ui
- Create scripts/main.dspy with all required functions for UI interactions
- Fix layout using css: 'filler' for main-content to properly fill remaining width
- Ensure all referenced links have corresponding script implementations
2026-04-22 14:15:54 +08:00
930ed6dea7 feat(hermes-web-cli): update UI files to use CRUD auto-generated endpoints
- Refactor index.ui to use Menu widget for navigation following proper CRUD pattern
- Create session_messages.json CRUD definition for session messages management
- Update all UI files to reference correct CRUD auto-generated endpoints:
  * index.ui: /hermes-web-cli/hermes_service_sessions/
  * sessions.ui: /hermes-web-cli/active_sessions/
  * services.ui: /hermes-web-cli/hermes_services/
  * settings.ui, new_session.ui, edit_service.ui: updated service references
  * session_detail.ui, chat.ui, session_chat.ui: updated to use session_messages CRUD
- Remove manual .dspy endpoint references in favor of standardized CRUD mechanism
- Follow module-development-spec and CRUD usage best practices
2026-04-22 11:55:16 +08:00
09ec855576 fix: correct Button控件属性和样式规范
- 将Button控件的'text'属性改为'label'(符合bricks-framework规范)
- 移除所有嵌套的'style'对象,将样式属性直接放在options顶层
- 确保所有UI文件符合bricks-framework最佳实践
2026-04-22 11:43:08 +08:00
5d4e70da8e feat: complete missing UI files and API endpoints for hermes-web-cli
- Added all missing .ui files referenced in index.ui:
  * new_session.ui
  * sessions.ui
  * services.ui
  * settings.ui
  * session_detail.ui
  * add_service.ui
  * edit_service.ui

- Created corresponding .dspy API endpoints with proper directory structure:
  * /hermes-web-cli/services → services/index.dspy
  * /hermes-web-cli/services/list → services/list/index.dspy
  * /hermes-web-cli/services/{id} → services/id/index.dspy
  * /hermes-web-cli/services/test?id={id} → services/test/index.dspy
  * /hermes-web-cli/sessions (POST) → sessions/index.dspy
  * /hermes-web-cli/sessions/messages?session_id={id} → sessions/messages/index.dspy
  * /hermes-web-cli/settings → settings/index.dspy
  * /hermes-web-cli/settings/reset → settings/reset/index.dspy

- Fixed UI styling to comply with bricks-framework (removed nested style objects)
- Updated URL references to use query parameters instead of path parameters for dynamic routes
- All files follow production-ready module development specifications
2026-04-22 11:22:44 +08:00
526151b901 feat(hermes-web-cli): redesign index.ui with complete user interaction features
- Replace service-only management interface with full AI agent dashboard
- Implement modern dark theme UI using UI/UX Pro Max design principles
- Add comprehensive navigation with sidebar and main content area
- Create complete page suite: new_session, sessions, services, session_chat, settings
- Integrate all user interaction functions into unified interface
- Follow bricks-framework best practices and production-ready standards
2026-04-21 17:16:13 +08:00
d229138adc fix: Complete hermes-web-cli module with all required fixes
- Add load_hermes_web_cli function to fix ImportError
- Update data_url paths to use /hermes-web-cli/... instead of /api/...
- Add missing renew.dspy file with complete business logic
- Update all .ui files with correct endpoint references
- Ensure module is fully functional for Sage integration
2026-04-21 15:37:20 +08:00
8836aee98d fix: Correct bricks-framework component usage and add comprehensive examples
- Replace invalid 'Page' and 'Card' components with valid bricks components (VBox, HBox, Filler, etc.)
- Add comprehensive examples for all major bricks components in examples/ directory
- Update hermes-web-cli UI files to use correct component hierarchy
- Include examples for: VBox, HBox, Filler, ResponsableBox, Form, Button, Text, Modal, TabPanel, DataViewer, Tree, Image, VideoPlayer, Input, LLMOut
- Follow proper bricks-framework JSON structure with widgettype, options, subwidgets
- Ensure all examples are production-ready and follow module development specifications
2026-04-21 13:45:12 +08:00
21a735548e feat: Initial implementation of hermes-web-cli with multi-service support
- Complete module following all four development specifications
- Multi-Hermes Service instance management for enterprise deployments
- Database tables: hermes_services, hermes_service_sessions
- CRUD operations for service and session management
- bricks-framework UI components: index.ui, service-detail.ui, chat.ui, settings.ui
- Support for enterprises to deploy their own hermes-service instances
- Unified interface to manage multiple service endpoints
- Security features: API key storage, HTTPS enforcement, connection testing
2026-04-21 13:33:42 +08:00