WeKnora/internal/agent
养乐多 13abc41b0d fix(skill): 解析 stringified JSON 数组形式的 args
部分模型供应商把 execute_skill_script 的 args(schema 为 []string)
emit 成 JSON 字符串,内容本身是个 JSON 数组("[\"--project-name\",\"X\"]")。
原 UnmarshalJSON 兜底用 strings.Fields 拆这种字符串,把方括号/引号拆成
垃圾 token,脚本 argv 全是乱码,argparse 永远报参数缺失,模型无论如何
调整格式都失败。改为先把字符串内容当 JSON 数组解析,成功即用;否则再
退回 strings.Fields。补 UnmarshalJSON 各形态单测。

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-02 15:37:14 +08:00
..
approval refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
memory feat(llm): add prompt-cache observability and wiki cache-friendly prompts 2026-07-23 19:17:30 +08:00
skills refactor(skills): improve skill bundle size management and nginx configuration 2026-09-02 15:08:05 +08:00
token feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
tools fix(skill): 解析 stringified JSON 数组形式的 args 2026-09-02 15:37:14 +08:00
act.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
const.go feat(agent): keep max completion tokens as default or a custom cap 2026-08-30 10:52:17 +08:00
const_test.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
engine.go feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00
engine_image_test.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
engine_memory_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
engine_test.go feat(agent): keep max completion tokens as default or a custom cap 2026-08-30 10:52:17 +08:00
finalize.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
finalize_image_requirement_test.go fix(chat): enforce retrieved image output in answers 2026-07-15 18:10:31 +08:00
image_requirement.go fix(chat): enforce retrieved image output in answers 2026-07-15 18:10:31 +08:00
langfuse_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
observe.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
observe_test.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
prompts.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
prompts_shell_test.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
prompts_wiki.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
prompts_wiki_test.go refactor(agent): introduce modelcontext registry and fix handle-codec bugs 2026-07-27 11:05:43 +08:00
think.go feat(agent): write workspace scripts and run them with installed skills 2026-08-29 22:45:18 +08:00
turn_usage_test.go feat(agent): report and attribute per-turn LLM token usage 2026-08-24 10:36:19 +08:00