@@ -33,7 +33,7 @@ const sandbox = await Sandbox.create('codex', {
3333})
3434
3535const result = await sandbox .commands .run (
36- ` codex exec --full-auto "Create a hello world HTTP server in Go" `
36+ ` codex exec --full-auto --skip-git-repo-check "Create a hello world HTTP server in Go" `
3737)
3838
3939console .log (result .stdout )
@@ -48,7 +48,7 @@ sandbox = Sandbox.create("codex", envs={
4848})
4949
5050result = sandbox.commands.run(
51- ' codex exec --full-auto "Create a hello world HTTP server in Go"' ,
51+ ' codex exec --full-auto --skip-git-repo-check "Create a hello world HTTP server in Go"' ,
5252)
5353
5454print (result.stdout)
@@ -77,7 +77,7 @@ await sandbox.git.clone('https://github.com/your-org/your-repo.git', {
7777})
7878
7979const result = await sandbox .commands .run (
80- ` codex exec --full-auto -C /home/user/repo "Add error handling to all API endpoints" ` ,
80+ ` codex exec --full-auto --skip-git-repo-check - C /home/user/repo "Add error handling to all API endpoints" ` ,
8181 { onStdout : (data ) => process .stdout .write (data ) }
8282)
8383
@@ -102,7 +102,7 @@ sandbox.git.clone("https://github.com/your-org/your-repo.git",
102102)
103103
104104result = sandbox.commands.run(
105- ' codex exec --full-auto -C /home/user/repo "Add error handling to all API endpoints"' ,
105+ ' codex exec --full-auto --skip-git-repo-check - C /home/user/repo "Add error handling to all API endpoints"' ,
106106 on_stdout = lambda data : print (data, end = " " ),
107107)
108108
@@ -146,7 +146,7 @@ await sandbox.files.write('/home/user/schema.json', JSON.stringify({
146146}))
147147
148148const result = await sandbox .commands .run (
149- ` codex exec --full-auto --output-schema /home/user/schema.json -C /home/user/repo "Review this codebase for security issues" `
149+ ` codex exec --full-auto --skip-git-repo-check -- output-schema /home/user/schema.json -C /home/user/repo "Review this codebase for security issues" `
150150)
151151
152152const response = JSON .parse (result .stdout )
@@ -184,7 +184,7 @@ sandbox.files.write("/home/user/schema.json", json.dumps({
184184}))
185185
186186result = sandbox.commands.run(
187- ' codex exec --full-auto --output-schema /home/user/schema.json -C /home/user/repo "Review this codebase for security issues"' ,
187+ ' codex exec --full-auto --skip-git-repo-check -- output-schema /home/user/schema.json -C /home/user/repo "Review this codebase for security issues"' ,
188188)
189189
190190response = json.loads(result.stdout)
@@ -207,7 +207,7 @@ const sandbox = await Sandbox.create('codex', {
207207})
208208
209209const result = await sandbox .commands .run (
210- ` codex exec --full-auto --json -C /home/user/repo "Refactor the utils module into separate files" ` ,
210+ ` codex exec --full-auto --skip-git-repo-check -- json -C /home/user/repo "Refactor the utils module into separate files" ` ,
211211 {
212212 onStdout : (data ) => {
213213 for (const line of data .split (' \n ' ).filter (Boolean )) {
@@ -236,7 +236,7 @@ def handle_event(data):
236236 print (f " [ { event[' type' ]} ] " , event)
237237
238238result = sandbox.commands.run(
239- ' codex exec --full-auto --json -C /home/user/repo "Refactor the utils module into separate files"' ,
239+ ' codex exec --full-auto --skip-git-repo-check -- json -C /home/user/repo "Refactor the utils module into separate files"' ,
240240 on_stdout = handle_event,
241241)
242242
@@ -265,7 +265,7 @@ await sandbox.files.write(
265265)
266266
267267const result = await sandbox .commands .run (
268- ` codex exec --full-auto --image /home/user/mockup.png -C /home/user/repo "Implement this UI design as a React component" ` ,
268+ ` codex exec --full-auto --skip-git-repo-check -- image /home/user/mockup.png -C /home/user/repo "Implement this UI design as a React component" ` ,
269269 { onStdout : (data ) => process .stdout .write (data ) }
270270)
271271
@@ -284,7 +284,7 @@ with open("./mockup.png", "rb") as f:
284284 sandbox.files.write(" /home/user/mockup.png" , f)
285285
286286result = sandbox.commands.run(
287- ' codex exec --full-auto --image /home/user/mockup.png -C /home/user/repo "Implement this UI design as a React component"' ,
287+ ' codex exec --full-auto --skip-git-repo-check -- image /home/user/mockup.png -C /home/user/repo "Implement this UI design as a React component"' ,
288288 on_stdout = lambda data : print (data, end = " " ),
289289)
290290
0 commit comments