Commit Graph
19 Commits
Author SHA1 Message Date
Xubin Ren 5a234e8328 fix(tools): reject special files before file mutations 2026-11-14 22:09:21 +08:00
Xubin Ren d2e03d23a0 refactor(tools): route file operations through scoped execution 2026-11-14 22:09:21 +08:00
chengyongruandxiong-wei1 8cce73465b fix(tools): validate arguments with jsonschema without coercion (#6648)
Co-authored-by: xiong-wei1 <2318942410@qq.com>
2026-11-13 13:32:12 +08:00
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
RaycarlLei 8052c3a460 fix(tools): scope recursive directory ignores to listed root 2026-10-03 20:40:37 +08:00
Shuhan Si ae6801d3eb fix(tools): preserve supplied newlines when creating files 2026-10-03 17:38:18 +08:00
chengyongru cab3a360ea fix(tools): make oversized line truncation explicit 2026-09-24 16:24:06 +08:00
FanouZeng-TT f57eba2b07 fix(tools): keep read_file progressing when a single line exceeds the output budget
ReadFileTool stops at the first numbered line that does not fit the
128 KiB budget. When that line is the first one, no line is appended and
the tool returns an empty page that reports lines 2-1 and repeats the
same offset, so the caller can never reach the rest of the file. A long
line further down has the same effect for everything after it.

Emit a bounded prefix of that line and advance the continuation offset
past it, so every read returns content and makes progress.
2026-09-24 16:24:06 +08:00
chengyongru 1c3c68262f refactor(tools): unify edit summaries with shared fast diffs
Return compact, workspace-relative summaries from edit_file and apply_patch.
Compute one RapidFuzz line alignment per file and reuse it for summary counts
and WebUI unified diffs, checking snapshots before reuse. Summarize batched
edits by their final file state.

Warn only when a recorded file version changed, without asking for a read
after an edit has already succeeded. Preserve existing edit errors.

Validate summary and activity reuse, repetitive files, diff formatting,
snapshot changes, file creation, and read-state behavior.
2026-09-15 11:25:01 +08:00
chengyongru b3b0517611 fix(files): reject no-op edits 2026-08-10 21:39:00 +08:00
chengyongru 113e8d67ad refactor: remove verified dead code 2026-08-08 21:10:34 +08:00
amplifierplus cdb2df4982 fix(files): reject oversized reads before loading 2026-07-21 15:02:27 +08:00
chengyongru 7f8c3453e1 refactor(agent): gate sustained goals behind explicit /goal
Replace the legacy long-goal skill contract with command-scoped goal tools and runtime guidance. Keep goal state durable across continuations while restricting create and replace mutations to explicit user /goal turns.
2026-07-12 00:35:17 +08:00
hamb1y 10b52cfb3a fix: resolve builtin skill reads 2026-07-06 12:11:20 +08:00
chengyongru 15f218e918 fix: enforce exact Dream memory file writes
maintainer edit: Dream write tools used file paths as directory roots, so a missing canonical memory file could be treated as a parent directory. Add exact-file allowlist support and keep skills/ as the only Dream write directory.
2026-06-18 00:03:26 +08:00
chengyongru 732992df4f Clarify filesystem workspace write policy 2026-06-18 00:03:26 +08:00
hinotoi-agent 164614ccf2 fix(message): share workspace path resolver 2026-05-15 17:19:20 +08:00
Xubin Ren 9840270f7f test(tools): cover media dir access under workspace restriction
Made-with: Cursor
2026-04-04 03:03:58 +08:00
chengyongru 72acba5d27 refactor(tests): optimize unit test structure 2026-03-24 15:12:22 +08:00