From 61c834930740f84288c48e46b74c93b6b4a0354b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Sat, 25 Apr 2026 06:26:14 +0000 Subject: [PATCH] fix: allow reading other workflows but not writing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 小橘 🍊(NEKO Team) --- workflows/workflow-generator/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflows/workflow-generator/index.ts b/workflows/workflow-generator/index.ts index 03f0545..5e7e97c 100644 --- a/workflows/workflow-generator/index.ts +++ b/workflows/workflow-generator/index.ts @@ -777,7 +777,7 @@ ${fixSection} Do not remove or overwrite unrelated senses, reflexes, or other workflow entries. Preserve valid YAML. ## CRITICAL constraints -- **ONLY touch files inside \`${WORKFLOWS_DIR}/${wfName}/\` and \`${NERVE_ROOT}/nerve.yaml\`.** Do NOT read, modify, or create files in any other workflow directory (e.g. \`sense-generator/\`, \`hello-world/\`). The reference code is provided inline above — you do not need to open it from disk. +- **ONLY write/modify files inside \`${WORKFLOWS_DIR}/${wfName}/\` and \`${NERVE_ROOT}/nerve.yaml\`.** You may read other workflow directories for reference, but do NOT create, modify, or delete files in them (e.g. \`sense-generator/\`, \`hello-world/\`). ## Implementation patterns (when applicable) - \`resolveDashScopeProvider\`, \`nerveAgentContext\`, \`readNerveYaml\`, \`cursorAgent\`, \`llmExtract\`, \`spawnSafe\`, \`formatSpawnFailure\` from \`@uncaged/nerve-workflow-utils\` as in sense-generator.