216 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 e9f3afd109 refactor(frontend): split workbench into typed Vue components
Split the monolithic workbench into typed workspace components, shared composables, and presentation utilities. Add type-checking and browser regression coverage for the new UI.

将单体工作台拆分为类型化工作区组件、共享组合式函数和展示工具,并补充类型检查与新的浏览器回归覆盖。
2026-08-15 17:30:47 +08:00
infstellar 96579b6fe0 chore(openspec): mark superseded JSON embedding change
Record the historical relationship between the JSON-only embedding proposal and the PostgreSQL runtime contract.

记录 JSON-only embedding 提案与 PostgreSQL 运行时契约之间的历史替代关系。
2026-08-15 15:24:35 +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 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 1e4727cf2b chore(compose): containerize services and lifecycle management
Run the API, visual backend, and authenticated Agent executor through Compose with persistent volumes and safe start/stop diagnostics.

通过 Compose 运行 API、视觉后端和带认证的 Agent executor,提供持久卷及安全启停诊断。
2026-08-15 15:24:02 +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 d544e0dcff feat(db): add PostgreSQL schema and migration lifecycle
Add the scoped PostgreSQL schema, pgvector tables, Alembic migration lifecycle, and safe database bootstrap scripts.

引入 scope 隔离的 PostgreSQL schema、pgvector 表、Alembic 迁移生命周期和安全数据库初始化脚本。
2026-08-15 15:20:44 +08:00
infstellar 60ac45ca65 chore(openspec): archive completed changes
Archive eight completed changes and merge their final requirements into the main specifications. Resolve superseded sidecar, flat-library, runtime dependency, and PostgreSQL terminology conflicts.

归档八个已完成的变更,并将最终需求合并到主规格。解决已被替代的 sidecar、扁平图片库、运行时依赖和 PostgreSQL 术语冲突。
2026-08-15 00:32:30 +08:00
infstellar ff04a87f90 rm 2026-08-14 15:25:17 +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 368edb0d7a feat(frontend): redesign MemeMeow workbench 2026-08-12 16:49:06 +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
infstellar 4ad226573c feat: Add OpenSpec skills for exploring, proposing, syncing, and updating changes
- Introduced `openspec-explore` skill for deep exploration of ideas and problem investigation without implementation.
- Added `openspec-propose` skill to facilitate quick change proposals with all necessary artifacts generated in one step.
- Implemented `openspec-sync-specs` skill to intelligently sync delta specs from changes to main specs, allowing for selective updates.
- Created `openspec-update-change` skill to revise existing planning artifacts while maintaining coherence, without editing code.
- Established a new `openspec/config.yaml` file to define project schema, context, artifact rules, and operational guidance.
2026-08-09 14:11:33 +08:00
Infstellar ee51d6eb7f Merge pull request #55 from MemeMeow-Studio/api
Api
2025-05-30 20:28:16 +08:00
infstellar 27561e8632 fix: os path error 2025-05-29 13:19:34 +00:00
infstellar 27e1100e3b fix 2025-05-28 10:18:13 +00:00
infstellar e6c2a691c7 fix: auth 2025-05-28 10:00:58 +00:00
infstellar fab85a1adc add: docker 2025-05-28 09:26:41 +00:00
Infstellar ab8d01af4b Merge pull request #54 from MemeMeow-Studio/dev
community support
2025-05-27 20:41:58 +08:00
Infstellar b34670b616 docs 2025-05-27 20:32:52 +08:00
Infstellar fb00658fa1 fix: url compose 2025-05-25 20:28:43 +08:00
Infstellar 51557491a0 some fixes and update 2025-05-25 20:27:47 +08:00
Infstellar 25c3c16571 feat: hash impl 2025-05-24 23:15:23 +08:00
Infstellar cfceb32d41 feat: api update 2025-05-22 23:27:45 +08:00
Infstellar 3dc2c15e6e feat: community support 2025-05-22 19:02:56 +08:00
Infstellar 93f2840b69 !refactor: rename pages 2025-05-21 22:32:56 +08:00
Infstellar cb204fb879 !refactor: remove local model 2025-05-21 22:22:22 +08:00
Infstellar 1436dc1bce Merge pull request #52 from MemeMeow-Studio/dev
Dev -> Main
2025-05-16 23:15:52 +08:00
xy0v0 274c4b8cac Merge pull request #53 from TomyJan/main 2025-05-16 22:24:10 +08:00
TomyJan d709480441 添加 Yunzai-Bot 插件 2025-04-03 23:37:13 +08:00
Infstellar b43e343094 fix: encoding 2025-03-11 16:43:36 +08:00
Infstellar 3113a029f3 fix req: uvicorn 2025-03-11 16:43:23 +08:00
Infstellar b16f8f406d some fixes 2025-03-11 16:20:02 +08:00
Infstellar a898681f63 Merge pull request #49 from fQwQf/dev
feat: API
2025-03-11 16:18:22 +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
fQwQf 589dec3420 refactor(api): 根据运行模式完善搜索引擎服务的初始化配置 2025-03-11 11:28:33 +08:00
fQwQf 9360e71b8c refactor(middleware): 优化速率限制中间件,改进过期记录清理逻辑 2025-03-11 11:15:06 +08:00
fQwQf e66030babb refactor(api): 更新 API 配置示例文件,调整保护模式、请求限制等设置并新增相关配置项 2025-03-11 11:03:22 +08:00
fQwQf 54f843163c refactor(api): 更新配置获取与更新逻辑,统一通过搜索引擎服务管理 2025-03-11 11:01:58 +08:00