14 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 12c6da4be0 fix(opencode): use Compose runtime for session inspection
Route executor-mode session inspection through the running Agent Compose service and keep TUI arguments interactive. Reject stale host-runtime fallback when Compose is unavailable and document the explicit host override.

将 executor 模式的会话检查路由到运行中的 Agent Compose 服务,保持 TUI 交互参数;Compose 不可用时拒绝回退到过期宿主 runtime,并记录显式 host 覆盖方式。
2026-08-15 17:31:08 +08:00
infstellar d1f3ad6dd2 test(db): cover PostgreSQL schema and integration contracts
Verify the migration head, pgvector dimensions, scope isolation, task finalization, and visual/collection persistence boundaries.

验证迁移 head、pgvector 维度、scope 隔离、任务收束以及视觉/合集持久化边界。
2026-08-15 15:24:18 +08:00
infstellar d9f7268e56 feat(api): integrate visual reverse-image and collection workflows
Connect PostgreSQL services to the API, add collection package import/export, and surface task activity in the workbench.

将 PostgreSQL 服务接入 API,增加合集资源包导入导出,并在工作台展示任务活动状态。
2026-08-15 15:23:51 +08:00
infstellar 3df9f7878c feat(agent): add isolated executor and result protocol
Add authenticated in-container execution, shared runtime activity summaries, strict result-file validation, and OpenCode integration tests.

引入带认证的容器内执行器、共享 runtime 活动摘要、严格结果文件校验和 OpenCode 集成测试。
2026-08-15 15:23:15 +08:00
infstellar c6eae411b5 feat(reverse-image): add task-scoped proxy and usage audit
Route reverse-image searches through the backend with cache redaction, idempotent provider accounting, and isolated Agent credentials.

将反向图片检索收敛到后端代理,加入缓存脱敏、幂等供应商用量审计和隔离的 Agent 凭据。
2026-08-15 15:22:36 +08:00
infstellar 7b5849ee96 feat(visual-search): add isolated DINOv2 embedding and scoped matching
Add the fixed DINOv2 ViT-B/14 model adapter, isolated CPU inference service, migration helper, and task-scoped local visual matching client.

引入固定的 DINOv2 ViT-B/14 模型适配器、隔离 CPU 推理服务、迁移工具和任务级本地视觉匹配客户端。
2026-08-15 15:21:39 +08:00
infstellar 6d7312a627 feat(config): centralize database visual and agent runtime settings
Expose validated database, visual model, reverse-image, executor, and runtime settings with secure token-file loading.

集中管理数据库、视觉模型、反向搜图、executor 和运行时配置,并安全读取 token 文件。
2026-08-15 15:21:14 +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