@c4t4/heyamigo 0.8.14 → 0.8.15
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/dist/ai/codex.js +11 -10
- package/dist/config.js +5 -5
- package/package.json +1 -1
package/dist/ai/codex.js
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
//
|
|
13
13
|
// Configurable via config.codex:
|
|
14
14
|
// - model: optional `-m <model>` override. Default = Codex's default.
|
|
15
|
-
// - yolo (default true): emits --
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
// mode-driven sandbox.
|
|
15
|
+
// - yolo (default true): emits --yolo, which bundles no-approvals +
|
|
16
|
+
// full sandbox + skip-trust-check. The narrower verbose flag
|
|
17
|
+
// (--dangerously-bypass-approvals-and-sandbox) does NOT skip the
|
|
18
|
+
// trust check on all versions and can hang the process — use --yolo.
|
|
19
|
+
// Set false to honor runTask's mode-driven sandbox.
|
|
20
20
|
// - skipGitRepoCheck (default true): adds --skip-git-repo-check when
|
|
21
21
|
// yolo is off. Codex refuses to run in untrusted cwds without it.
|
|
22
22
|
// - extraArgs: appended verbatim. Escape hatch for version drift.
|
|
@@ -75,11 +75,12 @@ function buildExecArgs(params) {
|
|
|
75
75
|
args.push('-m', cfg.model);
|
|
76
76
|
}
|
|
77
77
|
if (cfg.yolo) {
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
|
|
78
|
+
// --yolo bundles all three bypasses: no approvals, full sandbox,
|
|
79
|
+
// and skip-trust-check. Empirically the right switch — the more
|
|
80
|
+
// narrowly-scoped --dangerously-bypass-approvals-and-sandbox does
|
|
81
|
+
// NOT subsume the trust-directory gate on some Codex versions and
|
|
82
|
+
// causes the process to hang waiting for stdin.
|
|
83
|
+
args.push('--yolo');
|
|
83
84
|
}
|
|
84
85
|
else {
|
|
85
86
|
if (cfg.skipGitRepoCheck)
|
package/dist/config.js
CHANGED
|
@@ -41,11 +41,11 @@ const ConfigSchema = z.object({
|
|
|
41
41
|
// Optional model override. If unset, Codex uses its default. Passed
|
|
42
42
|
// as `-m <model>` to `codex exec`.
|
|
43
43
|
model: z.string().optional(),
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
44
|
+
// Emits --yolo, which bundles no-approvals + full sandbox + skip-
|
|
45
|
+
// trust-check. The narrower verbose flag does not subsume the trust
|
|
46
|
+
// gate on all versions and hangs the process, so --yolo is the safe
|
|
47
|
+
// default. Right setting for a headless owner-bot. Set to false to
|
|
48
|
+
// honor runTask's mode-driven sandbox.
|
|
49
49
|
yolo: z.boolean().default(true),
|
|
50
50
|
// When yolo=false, still bypass the trust-directory prompt. Codex
|
|
51
51
|
// refuses to run in an "untrusted" cwd otherwise.
|