@commonlyai/cli 0.1.261 → 0.1.262
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/package.json
CHANGED
|
@@ -900,7 +900,7 @@ const CODEX_PROVIDER_KEY_ENVS = [
|
|
|
900
900
|
// `ownGroup`: see runClaude in claude.js.
|
|
901
901
|
const runCodex = ({
|
|
902
902
|
args, cwd, env, timeoutMs, credentials = [], spawnImpl = childSpawn, onSpawn, controls = {}, ownGroup = false,
|
|
903
|
-
turnReap = turnReapEnabled(), commandResolution = {},
|
|
903
|
+
turnReap = turnReapEnabled(), commandResolution = {}, confined = false,
|
|
904
904
|
}) => new Promise((resolve, reject) => { // stdio: ['ignore', 'pipe', 'pipe'] — without this, child_process.spawn
|
|
905
905
|
// defaults stdin to a fresh pipe. Codex 0.125.0's `exec` then blocks on
|
|
906
906
|
// `Reading additional input from stdin...` because it sees an open pipe
|
|
@@ -909,7 +909,8 @@ const runCodex = ({
|
|
|
909
909
|
// `'ignore'` gives codex /dev/null → immediate EOF → it falls back to the
|
|
910
910
|
// argv prompt as intended. Surfaced live during ADR-005 Phase 2 smoke.
|
|
911
911
|
// What the turn leaves running is stopped once it has closed (see claude.js).
|
|
912
|
-
|
|
912
|
+
// A confined turn's leftovers are stopped whatever the keep setting says.
|
|
913
|
+
const turn = markTurn(env ?? process.env, { enabled: turnReap, confined });
|
|
913
914
|
// On Windows `npm i -g @openai/codex` leaves a `codex.cmd`; it is read and
|
|
914
915
|
// its target spawned directly, never through cmd.exe, because the prompt is
|
|
915
916
|
// the last argv element and is pod content (#2141). Identity elsewhere.
|
|
@@ -1120,6 +1121,10 @@ export default {
|
|
|
1120
1121
|
spawnImpl: ctx._spawnImpl, onSpawn: ctx.onSpawn, controls: controlsFromArguments(args.slice(args.indexOf('exec') + (args[args.indexOf('exec') + 1] === 'resume' ? 3 : 1), -1), { modelFlag: '--model', valueFlags: ['-c', '-o', '--permission-profile'], codex: true }), // test seam only — do not use in production
|
|
1121
1122
|
ownGroup: wantsOwnProcessGroup(ctx),
|
|
1122
1123
|
turnReap: ctx._turnReap,
|
|
1124
|
+
// A public seat keeps nothing a turn leaves running, whatever the turn
|
|
1125
|
+
// set (F201, as claude.js does for F197). `publicSandboxMode` is set
|
|
1126
|
+
// exactly when trust is `public`; workspace trust is refused above.
|
|
1127
|
+
confined: publicSandboxMode !== null,
|
|
1123
1128
|
commandResolution: ctx._commandResolution, // test seam only
|
|
1124
1129
|
});
|
|
1125
1130
|
|