mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-21 18:23:28 +00:00
fix(core): clarify temporary directory guidance (#43095)
This commit is contained in:
parent
45a49ae32a
commit
c53f4cfb09
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ const layer = Layer.effect(
|
|||
` Workspace root folder: ${location.project.directory}`,
|
||||
` Is directory a git repo: ${location.vcs?.type === "git" ? "yes" : "no"}`,
|
||||
` Platform: ${process.platform}`,
|
||||
` Use ${global.tmp} for temporary work outside the workspace; it already exists and is pre-approved for external directory access.`,
|
||||
` Prefer ${global.tmp} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`,
|
||||
"</env>",
|
||||
].join("\n"),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ describe("InstructionBuiltIns", () => {
|
|||
` Workspace root folder: ${projectDirectory}`,
|
||||
" Is directory a git repo: yes",
|
||||
` Platform: ${process.platform}`,
|
||||
` Use ${temporary} for temporary work outside the workspace; it already exists and is pre-approved for external directory access.`,
|
||||
` Prefer ${temporary} over generic system temporary directories such as /tmp; it is pre-created and approved for external access.`,
|
||||
"</env>",
|
||||
"",
|
||||
`Today's date: ${localDate(timestamp)}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue