fix(core): present the project dir to the model as the App Data Dir in the default system prompt (#61)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei Zheng
2026-07-26 15:08:09 +08:00
committed by GitHub
parent 14b5e6384f
commit 816a823b75
24 changed files with 423 additions and 68 deletions
+7
View File
@@ -179,6 +179,13 @@ export const putAgentConfig = (
{ method: "PUT", body },
);
/** Overwrite system_config.yaml with the current defaults (keeps only name/description/version). */
export const resetAgentConfig = (projectId: string, agentId: string) =>
apiFetch<AgentConfigResponse>(
`/api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentId)}/config/reset`,
{ method: "POST" },
);
export const getAgentTraces = (projectId: string, agentId: string) =>
apiFetch<AgentTracesResponse>(
`/api/projects/${encodeURIComponent(projectId)}/agents/${encodeURIComponent(agentId)}/traces`,