agentram 0.1.43 → 0.1.44
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/agentram/orchestration.py +9 -6
- package/package.json +1 -1
- package/pyproject.toml +1 -1
|
@@ -275,7 +275,7 @@ class MultiModelCodingOrchestrator:
|
|
|
275
275
|
raise ValueError("codex command is required")
|
|
276
276
|
if len(args) == 1:
|
|
277
277
|
args.append("exec")
|
|
278
|
-
args =
|
|
278
|
+
args = ensure_codex_exec_defaults(args)
|
|
279
279
|
codex_prompt = "\n".join(
|
|
280
280
|
[
|
|
281
281
|
f"You are AgentRAM {endpoint.role} agent running through Codex CLI.",
|
|
@@ -322,12 +322,15 @@ class MultiModelCodingOrchestrator:
|
|
|
322
322
|
return output or error
|
|
323
323
|
|
|
324
324
|
|
|
325
|
-
def
|
|
326
|
-
if
|
|
325
|
+
def ensure_codex_exec_defaults(args: list[str]) -> list[str]:
|
|
326
|
+
if len(args) < 2 or args[1] != "exec":
|
|
327
327
|
return args
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
defaults: list[str] = []
|
|
329
|
+
if "--skip-git-repo-check" not in args:
|
|
330
|
+
defaults.append("--skip-git-repo-check")
|
|
331
|
+
if "--sandbox" not in args and "-s" not in args:
|
|
332
|
+
defaults.extend(["--sandbox", "workspace-write"])
|
|
333
|
+
return [args[0], args[1], *defaults, *args[2:]]
|
|
331
334
|
|
|
332
335
|
|
|
333
336
|
def parse_openai_sse(raw: str) -> str:
|
package/package.json
CHANGED