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:
1 parent
14b5e6384f
commit
816a823b75
24 files changed
+423
-68
No files matched your search
@@ -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>`. */
|
||||
|
||||
Reference in new issue
Block a user