@11agents/cli 0.1.10 → 0.1.11

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/README.md CHANGED
@@ -102,7 +102,7 @@ On startup, and every 30 minutes after that, the daemon syncs project metadata a
102
102
 
103
103
  Codex runs from `~/.11agents/<project>/` by default. Treat that directory as read-only project context. Task code may write temporary files only under `./tmp/<taskId>/`; the daemon removes that task scratch directory after the task finishes. Agent environment variables from the control plane are injected into the Codex child process and are not written to disk.
104
104
 
105
- The built-in Codex worker starts task executions with `codex --yolo exec` by default so remote runtime tasks can run without approval prompts or sandbox restrictions. To opt a daemon back into a Codex sandbox, start it with `--codex-sandbox read-only`, `--codex-sandbox workspace-write`, or `--codex-sandbox danger-full-access`.
105
+ The built-in Codex worker starts task executions with `codex --ask-for-approval never --yolo exec` and prefixes the task prompt with `/goal ` by default so remote runtime tasks can run without approval prompts or sandbox restrictions. To opt a daemon back into a Codex sandbox, start it with `--codex-sandbox read-only`, `--codex-sandbox workspace-write`, or `--codex-sandbox danger-full-access`.
106
106
 
107
107
  The built-in task runner currently supports Codex tasks. A custom handler may export:
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@11agents/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "11agents local runtime and telemetry CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -815,6 +815,8 @@ async function runCodex({ task, prompt, flags = {}, deps }) {
815
815
  '-',
816
816
  ]
817
817
  : [
818
+ '--ask-for-approval',
819
+ 'never',
818
820
  '--yolo',
819
821
  'exec',
820
822
  '--skip-git-repo-check',
@@ -830,7 +832,7 @@ async function runCodex({ task, prompt, flags = {}, deps }) {
830
832
 
831
833
  const commandLine = [codexBin, ...args].map(value => JSON.stringify(String(value))).join(' ')
832
834
  deps.log(JSON.stringify({ running: 'codex exec', command: commandLine, workdir }, null, 2))
833
- const result = await deps.runProcess(codexBin, args, { input: prompt, cwd: workdir, env: task.execution_context?.env || process.env })
835
+ const result = await deps.runProcess(codexBin, args, { input: `/goal ${prompt}`, cwd: workdir, env: task.execution_context?.env || process.env })
834
836
  const output = String(result.stdout || '').trim()
835
837
  const error = String(result.stderr || '').trim()
836
838
  if (result.code !== 0) {