10 Commits

Author SHA1 Message Date
infstellar 5ecda39843 Add unit tests for image processing worker, operation policy, reverse image provider, and scope handling
- Implement tests for the ImageProcessingWorker to validate task deduplication and policy interactions.
- Create tests for operation policy to ensure proper grant handling and error responses.
- Add tests for reverse image provider response structure to validate empty and malformed results.
- Develop comprehensive tests for scope resolution and service validation to ensure correct behavior in various scenarios.
2026-08-17 12:50:29 +08:00
infstellar a428636700 docs: document PostgreSQL Compose and collection workflows
Update product, deployment, API, task, visual, and collection documentation for the new runtime architecture.

更新产品、部署、API、任务、视觉和合集文档以匹配新的运行时架构。
2026-08-15 15:24:28 +08:00
infstellar e88513e0e7 feat(collections): add scope-bound meme collections
Add the 0004 PostgreSQL collection schema, scope-bound ORM repository, and CRUD/member API. Extend the Vue workbench with collection navigation, selection, creation, renaming, deletion, and member removal while keeping stable meme IDs and image storage untouched.\n\n新增 0004 PostgreSQL 合集 schema、scope-bound ORM repository 及 CRUD/成员 API;扩展 Vue 工作台支持合集导航、选择、创建、重命名、删除和移除成员,并保持稳定 meme_id 与图片存储不变。
2026-08-14 14:31:32 +08:00
infstellar 2257f39300 refactor(images)!: remove directory-based organization
Replace directory-scoped image APIs with flat PostgreSQL-backed storage and stable meme_id resource contracts. Remove directory endpoints, sidecar assumptions, and path-based media access while preserving task, upload, rename, delete, repair, and search workflows. Archive the image ingestion and library OpenSpec change with migration and contract coverage.

将按目录组织的图片接口替换为基于 PostgreSQL 的扁平存储和稳定 meme_id 资源契约。删除目录接口、sidecar 假设和路径媒体访问,同时保留任务、上传、重命名、删除、修复与检索流程。归档图片摄取与图片库 OpenSpec,并补充迁移和契约测试。

BREAKING CHANGE: image and context APIs now require stable meme_id values; directory-based endpoints and path media URLs are removed.

破坏性变更:图片和语境接口现在要求稳定 meme_id,目录接口与路径媒体 URL 已移除。
2026-08-14 14:09:38 +08:00
infstellar 6b38d44e8c feat: add parallel OpenCode agents and backend settings 2026-08-12 17:42:02 +08:00
infstellar 15183e55d6 feat: add SerpApi Google Lens integration for meme context retrieval
- Introduced output schema for meme retrieval records in JSON format.
- Created documentation for using SerpApi Google Lens for image retrieval.
- Implemented a script for persistent caching of Google Lens results, reducing redundant API calls.
- Added tests for OpenCode candidate extraction, validation, and persistent task handling.
2026-08-11 19:45:38 +08:00
infstellar cee92bfe10 feat: Implement image sidecar metadata management
- Introduced a new sidecar JSON structure for each image to maintain a versioned, evidence-bound meme context.
- Established a schema for the sidecar JSON, including fields for image metadata and meme context.
- Updated image ingestion processes to create and manage sidecar JSON files during upload and renaming.
- Enhanced visual labeling to persist structured descriptions and prevent overwriting confirmed fields.
- Developed a semantic search index that utilizes the structured fields from the sidecar while excluding non-relevant data.
- Implemented repair mechanisms for missing or corrupted sidecar files, ensuring data integrity.
- Added comprehensive tests for metadata service, image processing, and caching mechanisms.
2026-08-11 11:10:20 +08:00
infstellar c300ab3f2c refactor: Refactor code structure for improved readability and maintainability 2026-08-10 15:38:25 +08:00
fQwQf 44fa4d5254 docs(api): 更新 API 文档,精简接口列表并新增配置文件说明 2025-03-11 12:00:00 +08:00
fQwQf ee6e5463dd docs(api): 添加 API 文档 2025-03-11 11:44:42 +08:00