@c4t4/heyamigo 0.8.8 → 0.8.9
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/config/config.example.json +4 -0
- package/dist/ai/codex.js +4 -4
- package/package.json +1 -1
package/dist/ai/codex.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// What's wired:
|
|
7
7
|
// - exec mode with --json (NDJSON event stream on stdout)
|
|
8
8
|
// - --add-dir for extra writable roots
|
|
9
|
-
// - --sandbox
|
|
9
|
+
// - --sandbox for tier (read-only / workspace-write / danger-full-access)
|
|
10
10
|
// - --resume <id> for session continuation
|
|
11
11
|
// - prompt passed on stdin (matches the spawn plumbing that already
|
|
12
12
|
// pipes input to child.stdin)
|
|
@@ -41,8 +41,8 @@ function systemPrompt() {
|
|
|
41
41
|
function reloadSystemPrompt() {
|
|
42
42
|
cachedSystemPrompt = null;
|
|
43
43
|
}
|
|
44
|
-
// Codex sandbox vocabulary.
|
|
45
|
-
//
|
|
44
|
+
// Codex sandbox vocabulary. CLI flag is --sandbox; values are: read-only,
|
|
45
|
+
// workspace-write, danger-full-access.
|
|
46
46
|
function sandboxFor(mode) {
|
|
47
47
|
switch (mode) {
|
|
48
48
|
case 'read-only':
|
|
@@ -58,7 +58,7 @@ function laneTimeoutMs(lane) {
|
|
|
58
58
|
}
|
|
59
59
|
function buildExecArgs(params) {
|
|
60
60
|
const args = ['exec', '--json'];
|
|
61
|
-
args.push('--sandbox
|
|
61
|
+
args.push('--sandbox', sandboxFor(params.mode));
|
|
62
62
|
if (params.sessionId) {
|
|
63
63
|
// Resume keeps the prior conversation; system prompt and add-dirs
|
|
64
64
|
// were baked in on the original turn.
|