Repository navigation
Releases
Releases · Grong/tinyiothub
v0.4.1
What's Changed
- refactor: shared agent prompt base with two-tier loading (#71)
- feat(device): redesign edit modal with driver, property editing, and CI fix (#70)
- feat: improve UX for tag creation, file upload, and toast theming (#69)
- fix: improve A2UI JSONL resilience against LLM-generated malformed JSON (#68)
- fix: guard against stale scene after async GLB load (#67)
Upgrade Notes
No breaking changes. Prompt files now load from shared base data/agents/_default/ — existing workspace overrides are preserved.
v0.4.0 — Scene3D A2UI & Workspace Resource Management
Added — Workspace Resource Management
- Workspace resources CRUD: SQLite-backed storage with
workspace_resourcestable, composite indexes, and full-text search - Resource types: scene, device_model, image, document — with metadata, tags, and file path tracking
- REST API:
POST/GET/PUT/DELETE /workspaces/{id}/resourceswith tenant isolation, plusGET /workspaces/{id}/resources/searchwith relevance-scored keyword search - Semantic search: multi-keyword search across name, description, and JSON tags with
UNION ALL+SUM(relevance)deduplication
Added — Scene3D A2UI Component
- Scene3D LitElement: Three.js-powered 3D building visualization with GLTF/GLB model loading, OrbitControls, and auto-fit camera
- Device markers: overlay markers with status colors (online/offline/warning/error), click-to-select, and floor-based filtering
- Floor management: configurable floor buttons with clipping-plane-based floor cut visualization
- A2UI catalog registration: Scene3D registered as
scene3dcomponent kind with full canvas tool description
Added — A2UI Catalog Expansion
- 10 new catalog components: CheckBox, ChoicePicker, DateTimeInput, Icon, Image, List, Modal, Slider, Tabs, TextField
- DeviceCard enhancements: device type-to-icon mapping, signal strength bars, relative time formatting ("刚刚", "N 分钟前")
- ProgressIndicator: improved styling and animation
Added — Agent Tooling
search_workspace_resourcestool: natural language search for workspace multimedia resources, registered with dependency injection viaArc<WorkspaceService>- Canvas tool catalog: expanded to 27 component kinds with complete Scene3D parameter schema
Fixed
- Search relevance: fixed
UNION ALLduplicate rows by wrapping withGROUP BY idandSUM(relevance) - Database indexing: added composite
idx_resources_workspace_typeindex for efficient type-filtered queries - ResizeObserver leak: cleared observer reference on Scene3D dispose to prevent stale references on retry
Changed — Workspace UI Redesign
- Process log panel: collapsible sections with message-card layout — user bubbles vs AI cards, visually distinct roles
- Collapsible thinking: thinking/reasoning content folded by default with expand/collapse toggle and chevron animation
- Collapsible tool execution: tool calls show name + status indicator (spinner for in-progress, checkmark for done), expandable to reveal args/results
- Event-driven updates: replaced 100ms polling with
onChangecallback on ChatState, reducing CPU usage - Glass panel refinement:
color-mix()backgrounds withbackdrop-filter, highlight border, depth shadows for floating panels - Empty state redesign: SVG icons with title, hint text, and clickable example prompt chips for both stage and insight panels
- Title redesign: uppercase 13px with accent dot glow and letter-spacing
- Responsive insight panel: width uses
clamp(320px, 28vw, 420px)for viewport-aware sizing - Compose bar: centered single-line glass input with send/abort buttons
- Scene3D color alignment: status marker colors now read from CSS variables (
--ok,--muted,--warn,--danger)
v0.3.0 - AI Agent v0.3 & Reflection Engine
Highlights
- AI Agent v0.3: 能力化架构重构 — AgentPool、ConfigService、ToolService、ChatService
- Reflection Engine: Agent 自进化系统,3 个分析器(Memory/Skill/Security)
- Memory Dashboard: Agent 记忆可视化前端页面
- 工程化: Justfile、Git Hooks、CI 优化、AGENTS.md
What's Changed
AI Agent v0.3
- AgentRuntimeConfig 强类型配置,DB 存储,支持热重载
- 工具 Denylist 模式,默认禁用危险工具
- SessionKey 统一格式
agent:<workspace_id>:<agent_id>/<session_uuid> - 移除 persona_preset/system_prompt 复杂性,简化为 SOUL.md + IDENTITY.md
- Agent idle cleanup (30min 超时)
Reflection Engine
tinyiothub-memorycrate: MemoryStore trait + AgentMemory 类型- Reflection Pipeline: 并行 Analyzer 执行(JoinSet)
- MemoryAnalyzer + SkillAnalyzer + SecurityAnalyzer
- SSE 通知推送 + 速率限制
Frontend
- Memory Dashboard 页面
- Workspace 配置 Tab 替代 Agent 文件管理 Tab
- Agent 配置简化
Engineering
- Justfile 标准化构建流程
- Pre-commit / Pre-push Git Hooks
- CI concurrency 控制
- 7,000+ 行 dead code 清理
- MQTT 默认凭据更新
Migration Notes
- 启动时自动执行数据库迁移(幂等)
- 需要在
app_settings.toml中添加[minimax]配置段 - 建议升级前备份 SQLite 数据库
Full Changelog: https://github.com/Grong/tinyiothub/blob/main/CHANGELOG.md
v0.2.1 — Device Ecosystem v0.2 Frontend + Review Follow-ups
What's New
Frontend
- Full marketplace UI: templates/drivers tabs, search, pagination, install flow
- Tabbed template detail modal (basic / properties / commands / device info)
- Driver health dashboard with real-time active/idle status
- Device export-as-template and clone actions
- Unified card design across marketplace, devices, and templates
Backend
- Driver health status now reflects real
ref_count(active when >0, idle otherwise) - Path traversal prevention in marketplace driver/template installation
- URL query parameter encoding in marketplace proxy handlers
- Configurable marketplace API URL
Tests
- 85+ new integration tests for marketplace and driver-health handlers
- Driver registry workspace isolation tests updated
Full Changelog: CHANGELOG.md
v0.1.5
v0.1.5 — 集中式迁移管理 + Schema 自动修复
核心改进
-
集中式迁移模块 (
cloud/src/shared/persistence/migrations.rs)- 统一生产、测试、Docker 的迁移逻辑
- 编译时嵌入
sqlx::migrate!("./migrations"),Docker 运行时无需文件系统访问 - 单一的
SKIP_MIGRATIONS列表,只包含已删除文件的版本
-
三步安全管道
- 清理孤立记录: 删除
_sqlx_migrations中已不存在的版本 → 防止VersionMissingpanic - 执行迁移: 正常 SQLx 迁移流程
- Schema 一致性修复:
PRAGMA table_info()检查 +ALTER TABLE ADD COLUMN自动补全缺失列
- 清理孤立记录: 删除
-
重写
20260429000001迁移CREATE TABLE IF NOT EXISTS→ALTER TABLE ADD COLUMN- 修复在已有表上
CREATE TABLE为 no-op 导致后续CREATE INDEX失败的问题
测试
- 632/632 测试通过
🤖 Generated with Claude Code
v0.1.4
What's Changed
Fixed
- Docker migrations: Switch from runtime filesystem migration loading to compile-time embedding via
sqlx::migrate!("./migrations"). Fixes the issue whereenv!("CARGO_MANIFEST_DIR")resolves to a build-time path that doesn't exist in the Docker runtime image. - VersionMissing panic: Restore 13 missing migration files from git history that were causing runtime panics when the database
_sqlx_migrationstable referenced deleted versions.
Changed
- Bump workspace version to
0.1.4 - Add
"migrate"feature to sqlx workspace dependency
Full Changelog: v0.1.3...v0.1.4