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 ZhengandClaude Fable 5 authored and GitHub committed 2026-07-26 15:08:09 +08:00
1 parent 14b5e6384f
commit 816a823b75
24 files changed
+423 -68

No files matched your search

+9 -1
View File
@@ -29,9 +29,17 @@ export function projectDir(root: string, projectId: string): string {
return path.join(root, projectId);
}
/**
* `<projectDir>/agents` from an already-resolved Project directory path — the single
* definition point of the agents-container layout.
*/
export function agentsDirFrom(projectDirPath: string): string {
return path.join(projectDirPath, "agents");
}
/** `<projectDir>/agents`, the container directory holding every Agent in the Project. */
export function agentsDir(root: string, projectId: string): string {
return path.join(projectDir(root, projectId), "agents");
return agentsDirFrom(projectDir(root, projectId));
}
/** `<projectDir>/agents/<agentId>`. */