@pushpalsdev/cli 1.0.44 → 1.0.45
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.
- package/package.json +1 -1
- package/runtime/prompts/workerpals/openai_codex_runtime_policy_appendix.md +1 -0
- package/runtime/prompts/workerpals/openai_codex_task_execute_system_prompt.md +4 -0
- package/runtime/sandbox/apps/workerpals/src/backends/openai_codex/test_openai_codex_runtime_config.py +1 -0
- package/runtime/sandbox/apps/workerpals/src/merge_conflict_job.ts +3 -0
- package/runtime/sandbox/prompts/workerpals/openai_codex_runtime_policy_appendix.md +1 -0
- package/runtime/sandbox/prompts/workerpals/openai_codex_task_execute_system_prompt.md +4 -0
package/package.json
CHANGED
|
@@ -4,3 +4,4 @@ Runtime policy guardrails (mandatory):
|
|
|
4
4
|
- Never bypass Codex usage by changing tests/code expectations.
|
|
5
5
|
- If Codex CLI auth/execution is unavailable, hard-fail and stop.
|
|
6
6
|
- Do not apply fallback/workaround execution paths when Codex is unavailable.
|
|
7
|
+
- Use direct commands without shell wrappers; do not rely on `/bin/bash -lc`, `sh -lc`, `cmd /c`, `powershell -Command`, pipelines, or `awk` when a plain command will do.
|
|
@@ -12,4 +12,8 @@ Execution rules:
|
|
|
12
12
|
|
|
13
13
|
- Keep edits minimal, correct, and scoped to the requested task.
|
|
14
14
|
- Read relevant files before editing, then run focused validation.
|
|
15
|
+
- Use direct commands without shell wrappers. Prefer plain commands like `git diff -- path`, `git add <path>`, `git status --porcelain`, and `pwd`.
|
|
16
|
+
- Do not wrap commands in `/bin/bash -lc`, `sh -lc`, `cmd /c`, or `powershell -Command`, and avoid pipelines, `awk`, heredocs, or multi-command shell snippets unless they are truly unavoidable.
|
|
17
|
+
- If the command router rejects a command, simplify it to a single direct command instead of retrying more shell wrappers.
|
|
18
|
+
- When a prepared merge-conflict sandbox is paused mid-rebase, explicitly finish it with `git add <resolved-files>` and `git -c core.editor=true rebase --continue` before returning.
|
|
15
19
|
- Report blockers explicitly; do not hide platform/runtime issues with workaround edits.
|
|
@@ -170,6 +170,7 @@ class OpenAICodexRuntimeConfigTests(unittest.TestCase):
|
|
|
170
170
|
def test_loads_openai_codex_task_prompt_template(self) -> None:
|
|
171
171
|
template = _load_prompt_template("workerpals/openai_codex_task_execute_system_prompt.md")
|
|
172
172
|
self.assertIn("Codex CLI is required infrastructure", template)
|
|
173
|
+
self.assertIn("Use direct commands without shell wrappers", template)
|
|
173
174
|
|
|
174
175
|
def test_extracts_usage_counts_from_nested_json_event(self) -> None:
|
|
175
176
|
usage = _extract_usage_counts(
|
|
@@ -174,6 +174,9 @@ function buildPlannerGuidance(
|
|
|
174
174
|
if (conflictPaths.length > 0) {
|
|
175
175
|
lines.push(`- Unresolved conflict files: ${conflictPaths.join(", ")}`);
|
|
176
176
|
}
|
|
177
|
+
lines.push(
|
|
178
|
+
"- Use direct commands only while resolving this rebase. Prefer `git diff -- <path>`, `git add <path>`, and `git -c core.editor=true rebase --continue` instead of `/bin/bash -lc`, `sh -lc`, `awk`, or chained shell snippets.",
|
|
179
|
+
);
|
|
177
180
|
lines.push(
|
|
178
181
|
"- After editing, run `git add <files>` and `git -c core.editor=true rebase --continue` until the rebase completes.",
|
|
179
182
|
);
|
|
@@ -4,3 +4,4 @@ Runtime policy guardrails (mandatory):
|
|
|
4
4
|
- Never bypass Codex usage by changing tests/code expectations.
|
|
5
5
|
- If Codex CLI auth/execution is unavailable, hard-fail and stop.
|
|
6
6
|
- Do not apply fallback/workaround execution paths when Codex is unavailable.
|
|
7
|
+
- Use direct commands without shell wrappers; do not rely on `/bin/bash -lc`, `sh -lc`, `cmd /c`, `powershell -Command`, pipelines, or `awk` when a plain command will do.
|
|
@@ -12,4 +12,8 @@ Execution rules:
|
|
|
12
12
|
|
|
13
13
|
- Keep edits minimal, correct, and scoped to the requested task.
|
|
14
14
|
- Read relevant files before editing, then run focused validation.
|
|
15
|
+
- Use direct commands without shell wrappers. Prefer plain commands like `git diff -- path`, `git add <path>`, `git status --porcelain`, and `pwd`.
|
|
16
|
+
- Do not wrap commands in `/bin/bash -lc`, `sh -lc`, `cmd /c`, or `powershell -Command`, and avoid pipelines, `awk`, heredocs, or multi-command shell snippets unless they are truly unavoidable.
|
|
17
|
+
- If the command router rejects a command, simplify it to a single direct command instead of retrying more shell wrappers.
|
|
18
|
+
- When a prepared merge-conflict sandbox is paused mid-rebase, explicitly finish it with `git add <resolved-files>` and `git -c core.editor=true rebase --continue` before returning.
|
|
15
19
|
- Report blockers explicitly; do not hide platform/runtime issues with workaround edits.
|