Commit Graph
15 Commits
Author SHA1 Message Date
yiling cb80822637 refactor: extract core service domain layer to @shumai/core 2026-06-01 23:16:22 +08:00
yiling a8df6b382d feat(agent): add local write filesystem constraints to agent system prompt 2026-05-30 23:27:49 +08:00
yiling 2fe66a74e3 feat(agent): update agent system prompt with platform instructions and file system constraints 2026-05-30 18:50:12 +08:00
yiling a04392da41 refactor(ai): remove generic providers and hardcode gemini-embedding-2 in embedding activity 2026-05-28 14:55:59 +08:00
yiling 904d9d7eac refactor(agent): make AgentExecutionContext 100% type-safe
- Use generated Prisma types to precisely define AgentExecutionContext properties
- Make sessionId public in DatabaseSessionStorage and use instanceof type guard
- Explicitly type getAgentChatContextActivity and getAgentAutofillContextActivity returns
- Clean up all 'as any' casts and ESLint disable comments
- Refactor agent.test.ts to cast Session with DatabaseSessionMetadata
2026-05-28 11:43:42 +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 911e369782 refactor(workflow): split database and agent activities for strict database isolation 2026-05-27 23:40:14 +08:00
yiling 13af691aa5 refactor(workflow): separate database and agent activities 2026-05-22 09:49:22 +08:00
yiling 4f2fdbcf3f feat(agent): resolve user mentions in comment history context 2026-05-22 09:36:46 +08:00
yiling 107f2e8a7a refactor(activities): always format comments as user role messages in aiChatActivity 2026-05-22 09:25:27 +08:00
yiling e50b895ed5 refactor(activities): improve type-safety and primary key generation in aiChatActivity 2026-05-22 09:20:49 +08:00
yiling 979e4711c5 feat(agent): add agent chat context session routing and thread support 2026-05-21 22:51:40 +08:00
yiling 2c106bbb77 feat(agent): add teamId foreign key to agent table and refactor service queries 2026-05-21 20:41:37 +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