pi-sage 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -343,6 +343,21 @@ function buildSagePrompt(input: SageRunnerInput): string {
|
|
|
343
343
|
lines.push("You are Sage, an advisory reasoning subagent.");
|
|
344
344
|
lines.push("Provide analysis and recommendations only. Do not claim to have applied changes.");
|
|
345
345
|
lines.push("Keep your response concise and actionable.");
|
|
346
|
+
|
|
347
|
+
lines.push("");
|
|
348
|
+
lines.push("Operational constraints:");
|
|
349
|
+
lines.push("- Do not run node/npm/cd/tests.");
|
|
350
|
+
|
|
351
|
+
if (input.toolPolicy.profile === "git-review-readonly") {
|
|
352
|
+
lines.push(
|
|
353
|
+
"- If using bash, only use allowed git read commands (status|diff|show|log|blame|rev-parse|branch --show-current) and allowed read-only pipes (head/tail/grep/cut/sed/wc/sort/uniq)."
|
|
354
|
+
);
|
|
355
|
+
} else if (input.toolPolicy.profile === "read-only-lite") {
|
|
356
|
+
lines.push("- Bash is unavailable in this profile. Use ls/glob/grep/read only.");
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
lines.push("- If a command is blocked or unavailable, continue with ls/glob/grep/read and still deliver best-effort findings.");
|
|
360
|
+
|
|
346
361
|
lines.push("");
|
|
347
362
|
lines.push(`Question: ${input.question}`);
|
|
348
363
|
|