mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-03 03:11:57 +00:00
Align runtime adapters with installed CLIs
This commit is contained in:
1 parent
2e0f9dc9ff
commit
d8ab841e5b
6 files changed
+73
-33
No files matched your search
@@ -113,8 +113,9 @@ export class CodexRuntimeAdapter {
|
||||
const id = text(areaId, 'areaId');
|
||||
const cwd = text(worktree, 'worktree');
|
||||
const args = [
|
||||
'exec', '--json', '--cd', cwd, '--sandbox', 'workspace-write', '--approve-for-me',
|
||||
'--cd', cwd, '--approve-for-me',
|
||||
...mcpArgs(mcp),
|
||||
'exec', '--json',
|
||||
...optionalModelArgs(model),
|
||||
`${text(firstMessage, 'firstMessage')}\n\nRead and follow the TORCH domain prompt at ${text(promptFile, 'promptFile')}.`,
|
||||
];
|
||||
@@ -133,9 +134,10 @@ export class CodexRuntimeAdapter {
|
||||
const sessionId = text(runtimeSessionId, 'runtimeSessionId');
|
||||
const cwd = text(worktree, 'worktree');
|
||||
const args = [
|
||||
'exec', '--json', '--cd', cwd, '--sandbox', 'workspace-write', '--approve-for-me',
|
||||
'--cd', cwd, '--approve-for-me',
|
||||
...mcpArgs(mcp),
|
||||
...optionalModelArgs(model), 'resume', sessionId, text(message, 'message'),
|
||||
'exec', 'resume', '--json',
|
||||
...optionalModelArgs(model), sessionId, text(message, 'message'),
|
||||
];
|
||||
return {
|
||||
adapter: this.name,
|
||||
|
||||
Reference in new issue
Block a user