@proletariat/cli 0.3.49 → 0.3.50
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.
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
* | Permission | Context | Supported | Notes |
|
|
22
22
|
* |------------|---------------|-----------|------------------------------------------|
|
|
23
|
-
* | danger | interactive | Yes | `codex --yolo
|
|
24
|
-
* | danger | background | Yes | `codex --yolo
|
|
25
|
-
* | danger | non-tty | Yes | `codex --yolo
|
|
26
|
-
* | safe | interactive | Yes | `codex
|
|
23
|
+
* | danger | interactive | Yes | `codex --yolo "..."` |
|
|
24
|
+
* | danger | background | Yes | `codex --yolo "..."` |
|
|
25
|
+
* | danger | non-tty | Yes | `codex --yolo "..."` |
|
|
26
|
+
* | safe | interactive | Yes | `codex "..."` (user can approve) |
|
|
27
27
|
* | safe | background | No | Cannot prompt for approval in background |
|
|
28
28
|
* | safe | non-tty | No | Cannot prompt for approval without TTY |
|
|
29
29
|
*/
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
* | Permission | Context | Supported | Notes |
|
|
22
22
|
* |------------|---------------|-----------|------------------------------------------|
|
|
23
|
-
* | danger | interactive | Yes | `codex --yolo
|
|
24
|
-
* | danger | background | Yes | `codex --yolo
|
|
25
|
-
* | danger | non-tty | Yes | `codex --yolo
|
|
26
|
-
* | safe | interactive | Yes | `codex
|
|
23
|
+
* | danger | interactive | Yes | `codex --yolo "..."` |
|
|
24
|
+
* | danger | background | Yes | `codex --yolo "..."` |
|
|
25
|
+
* | danger | non-tty | Yes | `codex --yolo "..."` |
|
|
26
|
+
* | safe | interactive | Yes | `codex "..."` (user can approve) |
|
|
27
27
|
* | safe | background | No | Cannot prompt for approval in background |
|
|
28
28
|
* | safe | non-tty | No | Cannot prompt for approval without TTY |
|
|
29
29
|
*/
|
|
@@ -121,7 +121,8 @@ export function getCodexCommand(prompt, permissionMode, executionContext) {
|
|
|
121
121
|
if (yolo) {
|
|
122
122
|
args.push('--yolo');
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
// Codex CLI expects the initial prompt as a positional argument.
|
|
125
|
+
args.push(prompt);
|
|
125
126
|
return {
|
|
126
127
|
cmd: 'codex',
|
|
127
128
|
args,
|