Commit Graph
17 Commits
Author SHA1 Message Date
yiling 39d45a1dc7 feat(agent): implement secure database-backed agent tools and comments context 2026-05-30 17:09:18 +08:00
yiling 9da3d6e1ce fix(workflow): remove direct prisma database calls from query-embedding-for-search workflow
- Refactor queryEmbeddingForSearch workflow to use activities for DB updates

- Add generic updateWorkflowTaskActivity database activity to decouple workflows from prisma runtime

- Resolves webpack bundler scheme errors during docker build
2026-05-29 12:31:53 +08:00
yiling 2eb6ff6c0e feat(search): add semantic search with embeddings and search mode toggle 2026-05-28 20:14:11 +08:00
yiling 5173bb2a01 feat: remove all ai transcription related code and schema 2026-05-28 14:23:02 +08:00
yiling 89916a2950 refactor(metadata): rename field_id to field_key in AssetMetadataValue
Rename the database column from field_id to field_key and the Prisma
property from fieldId to fieldKey to better reflect that the column
stores human-readable metadata field keys, not internal database IDs.

This fixes a bug where AI autofill wrote internal DB IDs instead of
field keys, causing metadata values to not display in the UI.

- Add SQL migration to rename the column
- Update metadata, search, and asset services
- Fix agent-autofill workflow to map fields by key
- Update all related test suites
2026-05-28 12:38:07 +08:00
yiling 023f256e00 refactor(error): refactor standard throws to non-retryable ApplicationFailure in workflows and activities 2026-05-28 10:43:54 +08:00
yiling 3b08ade55d refactor(workflow): throw non-retryable ApplicationFailure for validation errors 2026-05-28 09:57:30 +08:00
yiling 11d2e89a48 refactor(workflow): enforce strict nested type safety for WorkflowTaskPayload 2026-05-28 09:48:05 +08:00
yiling 911e369782 refactor(workflow): split database and agent activities for strict database isolation 2026-05-27 23:40:14 +08:00
yiling 5dc3bdb38e feat(asset): decouple logical assets from physical storage with StorageKey and implement O(1) copy 2026-05-25 00:52:45 +08:00
yiling 96d05083fa fix(ui): preprocess markdown in session logs to resolve display bugs 2026-05-22 10:34:58 +08:00
yiling 13af691aa5 refactor(workflow): separate database and agent activities 2026-05-22 09:49:22 +08:00
yiling 979e4711c5 feat(agent): add agent chat context session routing and thread support 2026-05-21 22:51:40 +08:00
yiling 161ba3a466 feat(agent): replace isAi with sessionId & implement admin logs UI 2026-05-21 14:58:31 +08:00
yiling 6b946d3d5c refactor(agent): decouple agent orchestration and relocate workflows
Decoupled high-level agent orchestration (chat, chatWithAgent, autofill) from sandbox execution in `src/agent` to `src/services/agent/agent.ts`. Relocated all related workflows and activities to `src/workflow`.
2026-05-20 22:43:31 +08:00
yiling 53594194cc feat(agent): integrate sandboxed bash tool and sandbox settings 2026-05-20 10:36:47 +08:00
yiling 9cad96210c initial commit 2026-05-19 16:05:09 +08:00