yiling
dd2f8e68d9
fix(agent): fail closed when user role cannot be resolved
...
A userId that is not a team member previously resolved to isOwner=true
(role === undefined || role === 'owner'), bypassing bash restrictions.
Treat only flows without a user context (autofill etc.) and explicit
owner memberships as unrestricted; unknown users are now restricted.
2026-08-04 16:26:16 +08:00
yiling
c938e84ccc
feat(agent): restrict bash access for non-owner users
...
Editor/reviewer users can no longer ask the agent to run arbitrary bash
commands. Bash execution for them is gated behind approved team skills:
- Add required source param (enum user/skill) to the bash tool; commands
with source=user are blocked when the user is not a team owner.
- Append a Restricted User Context instruction to the system prompt for
non-owner users: never run user-requested bash, only skill-required
commands with source=skill.
- Delay bash tool injection for editor/reviewer: it is only added after
a skill is successfully loaded via read_skill (or restored when a
skill was loaded earlier in the session). Team owners are unaffected.
2026-08-04 16:08:04 +08:00
yiling
2fee708863
feat(agent): implement DatabaseSessionStorage getSessionName and getSessionStats methods
2026-08-03 10:40:33 +08:00
yiling
dbe3420b6c
feat(agent): update pi packages to 0.82.1 and implement new SessionStorage interface methods
2026-08-03 10:25:10 +08:00
yiling
d3aef5f0c1
fix(agent): add required api field to test mock provider config
2026-08-02 14:30:28 +08:00
yiling
5946a679ea
refactor(agent): load models directly from database without pi fallback
2026-08-02 14:26:03 +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
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
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
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
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
006fb1726b
remove debug log
2026-07-28 21:46:14 +08:00
yiling
19df011dc2
fix(agent): format autofill schema property descriptions with field name and available options list
2026-07-28 21:44:56 +08:00
yiling
d6a74b8294
fix(agent): remove title property options from autofill schema for maximum provider compatibility
2026-07-28 21:42:06 +08:00
yiling
37331eae64
fix(agent): include select option labels and field name in autofill schema
2026-07-28 21:32:47 +08:00
yiling
e51d86e8f0
feat(transcode): trigger ai metadata autofill post transcode
2026-07-28 20:19:10 +08:00
yiling
d0d29b34ed
Release v0.3.0
2026-07-28 18:56:55 +08:00
yiling
bca2d26e1d
feat(agent): support ENABLE_WEAKER_NESTED_SANDBOX environment variable
2026-07-28 18:28:16 +08:00
yiling
51208d3ff0
chore(deps): update @anthropic-ai/sandbox-runtime to 0.0.66
2026-07-28 16:13:40 +08:00
yiling
ae5c58d48c
try fixing docker compose sandbox
2026-07-28 15:47:03 +08:00
yiling
3727879c19
fix(agent): resolve S3 MIME type detection and prompt parameter in image analysis
2026-07-28 14:28:41 +08:00
yiling
ff113906d7
refactor(db): strictly type PiSessionEntryData in prisma-json-types and clean up casts
2026-07-28 12:55:38 +08:00
yiling
56421cd562
feat(agent): implement dynamic in-memory thread tagging for session context entries
2026-07-28 11:51:25 +08:00
yiling
4e2694e2d9
feat(agent): refactor database session storage to normalized DAG entries and lazy thread sync
2026-07-28 11:21:31 +08:00
yiling
bb71e6bb2a
refactor(agent): remove implicit agent mention trigger in comment threads
2026-07-27 14:49:41 +08:00
yiling
cd3c7f3641
feat(agent): inject user name and role into chat context
2026-07-27 11:24:48 +08:00
yiling
c4bba31f20
fix(agent): ensure atomic appendEntry and persist leaf entries in DatabaseSessionStorage
2026-07-26 11:17:59 +08:00
yiling
72654e84b2
Release v0.2.3
2026-07-25 11:49:11 +08:00
yiling
dc8c898dae
Release v0.2.2
2026-07-23 20:35:22 +08:00
yiling
f93c8ea524
refactor(agent): invoke harness.subscribe directly without typeof check
2026-07-23 11:11:48 +08:00
yiling
1c44e5aff7
feat(ai-usage): add team and member token usage tracking and APIs
2026-07-23 11:02:54 +08:00
yiling
6ab650bc80
Release v0.2.1
2026-07-22 20:01:30 +08:00
yiling
43dd53a30d
fix(provider): preserve model ids on provider update
2026-07-22 16:27:58 +08:00
yiling
e9959bcc68
fix(agent): handle non-builtin models in getModelFromDb and upgrade pi-ai
2026-07-22 16:09:36 +08:00
yiling
bc63a95bf5
fix(agent): update agent tools to throw errors directly on failure
2026-07-22 11:05:19 +08:00
yiling
bbe1e7128d
fix(agent): throw error on read_skill failure instead of returning error content
2026-07-22 10:43:14 +08:00