yiling
3b86d9b6d8
test(core): add missing tests for methods introduced in 97069042
...
Add comprehensive test coverage for 5 core service methods that were
added in the layered architecture refactor but lacked tests:
- AgentService.getAgent: found/not-found cases
- ProjectService.getUserProjects: team scope, project scope,
multi-team aggregation, limit, and empty result cases
- SkillService.getSkill: full field mapping and not-found cases
- TeamService.hasWritableRoleInAnyTeam: owner, editor, reviewer,
and no-membership cases
- UserService (new file): getUserById and createGuestUser
2026-08-01 20:44:34 +08:00
yiling
2f5b968935
fix(api): fix eslint any type assertion in file.test.ts
2026-08-01 16:35:57 +08:00
yiling
97069042b2
refactor(api): enforce layered architecture by moving db queries to core services
2026-08-01 16:25:01 +08:00
yiling
fb66166b49
feat(core): wrap audit log creation in try catch to prevent blocking APIs
2026-08-01 15:50:35 +08:00
yiling
b0d8ecb589
refactor(dtos): define AuditAction enum in dtos package to decouple from db
2026-08-01 15:28:23 +08:00
yiling
2d61fae699
refactor(db): consolidate audit log migration into single add_audit_log migration
2026-08-01 15:19:53 +08:00
yiling
5ef7716c9c
feat(audit): change audit log action to string at db level and split file/folder actions
2026-08-01 14:49:08 +08:00
yiling
6d80f06c22
refactor(core): update getAssetContext to throw error on missing asset
2026-08-01 11:21:56 +08:00
yiling
0324b95c7e
feat(api): add missing audit log calls to API endpoints
2026-08-01 11:03:50 +08:00
yiling
7dfb2c7f2f
refactor(dtos): use @shumai/db/enums across DTO definitions
2026-08-01 10:47:41 +08:00
yiling
11fc76e56b
refactor(dtos): import AuditAction from @shumai/db/enums subpath
2026-08-01 10:45:10 +08:00
yiling
52f85fcd15
fix(dtos): decouple AuditAction from @shumai/db to prevent leaking DB dependencies to WebUI
2026-08-01 10:41:57 +08:00
yiling
118107ebc9
feat(audit): add audit log support for APIs and WebUI dashboard
2026-08-01 10:39:31 +08:00
yiling
c2d25bd2f1
feat(agent): enable LLM API call retries in AgentHarness
2026-08-01 09:49:43 +08:00
yiling
8e223da8e3
Release v0.3.2
2026-07-30 20:54:48 +08:00
yiling
87ccbe5330
feat(agent): instruct agent to check if folder exists with list_assets before calling create_folder
2026-07-30 17:08:29 +08:00
yiling
04f0a39300
fix(webui): persist chatbot sidebar input text across route navigation
2026-07-30 17:01:03 +08:00
yiling
79ea3c3ffd
fix(agent): include os.tmpdir() in sandbox allowWrite filesystem configuration
2026-07-30 16:35:36 +08:00
yiling
18780a9117
feat(agent): add output truncation and streaming limits to sandboxed bash tool
2026-07-30 16:21:01 +08:00
yiling
1bf22231ec
fix(agent): download original document asset instead of pdf proxy
2026-07-30 15:00:53 +08:00
yiling
361e4f32be
Release v0.3.1
2026-07-30 11:12:32 +08:00
Yiling-J
5bb546bd8c
Merge pull request #246 from shumaiOne/fix/s3-service-property-syntax-and-stream-support
...
fix(s3): enforce property syntax in S3Service interface and fix ReadableStream handling in S3StorageService
2026-07-30 09:37:39 +08:00
yiling
e802469a70
refactor(s3): remove unnecessary type cast on payload in S3StorageService.putObject
2026-07-30 08:36:57 +08:00
yiling
31894bfb59
fix(s3): enforce property syntax in S3Service interface and wrap ReadableStream in Response for S3StorageService
2026-07-30 08:29:18 +08:00
yiling
a64ed2aa13
fix(webui): update file size formatting to SI decimal standard
2026-07-29 22:43:30 +08:00
yiling
668871b730
fix(workflow): map sizeByte BigInt to Number in getAssetActivity for Temporal serialization
2026-07-29 22:31:25 +08:00
yiling
cd8a9e58fd
test(transcode): assert body is expect.any(ReadableStream) in S3 upload tests
2026-07-29 21:42:54 +08:00
yiling
69c57b16ab
test(transcode): update statSync mock for streaming proxy upload assertions
2026-07-29 21:40:25 +08:00
yiling
8837b03b3c
refactor(s3): remove unnecessary any cast in LocalStorageProvider putObject
2026-07-29 21:32:53 +08:00
yiling
36ae27fdd5
refactor(s3): add await to writer.write for stream chunk writes
2026-07-29 21:31:05 +08:00
yiling
9a4f8d67c3
feat(transcode): stream uploads and transcode output to prevent memory crashes on large files
2026-07-29 21:22:49 +08:00
yiling
f161437797
feat(db): update Asset.sizeByte and AiUsage token fields to BigInt
2026-07-29 20:14:23 +08:00
yiling
9ba61b3d3e
refactor(agent): simplify download_asset prompt instruction in prompt builder
2026-07-29 17:15:12 +08:00
yiling
db04df88f1
feat(agent): add download_asset tool and prompt instructions
2026-07-29 16:56:06 +08:00
yiling
f1c0f4e50d
fix(agent): disable tools for session naming and make naming non-blocking
2026-07-29 16:31:24 +08:00
yiling
cdc344ab7a
feat(db): preserve agent sessions on asset deletion by setting onDelete to SetNull
2026-07-29 15:42:45 +08:00
yiling
bb789a9557
feat(agent): inject reply count alongside Thread ID tag in getPathToRoot
2026-07-29 15:24:55 +08:00
yiling
d267c7de98
fix(agent): prevent passing asset IDs to read_thread and improve tool error messages
2026-07-29 15:18:30 +08:00
yiling
1c7a87488b
refactor(agent): optimize ULID id sorting and exclude __CHAT__ placeholder comments
2026-07-29 14:59:48 +08:00
yiling
a756f7dc2a
feat(webui): display session entry ID in Agent Session Logs dialog
2026-07-29 12:05:46 +08:00
yiling
41622f45b4
fix(agent): use upsert in DatabaseSessionStorage appendEntry to handle existing entry IDs
2026-07-29 11:56:11 +08:00
yiling
952323deca
fix(agent): include top-level comment entries in Main Session DAG timeline
2026-07-29 11:52:18 +08:00
yiling
acb64f44bb
fix(agent): prevent userComment entry duplication by passing userCommentId as active prompt entry ID
2026-07-29 11:33:26 +08:00
yiling
343750e178
fix(agent): implement shared DAG tree entries across comment sessions without entry duplication
2026-07-29 11:21:55 +08:00
yiling
b75e0c7fdc
fix(agent): scope agent comment sessions to thread sessions anchored at root comments
2026-07-29 11:07:47 +08:00
Yiling-J
d8c3f46a8d
Merge pull request #237 from shumaiOne/feat/agent-sessions-dashboard
...
feat(dashboard): add agent sessions view for team owners
2026-07-29 10:22:28 +08:00
yiling
48c71efc6c
style(dashboard): remove session count from Sessions card title
2026-07-29 10:15:10 +08:00
yiling
35f6206e63
fix(dashboard): resolve creator avatar URLs using getAvatarUrl
2026-07-29 10:13:51 +08:00
yiling
03f8ad90d2
feat(dashboard): add agent sessions view for team owners
2026-07-29 10:10:07 +08:00
yiling
006fb1726b
remove debug log
2026-07-28 21:46:14 +08:00