@koalaauto/agentchannel 3.36.0 → 3.36.1
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/dist/src/cli.js +7 -2
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -2043,11 +2043,16 @@ async function codexSandboxSetup(env, out) {
|
|
|
2043
2043
|
const codexHome = env.CODEX_HOME || (home ? join(home, '.codex') : undefined);
|
|
2044
2044
|
const overrides = codexSandboxOverrides({ perm: 'workdir', mode: 'work', cwd: process.cwd(), hub }).flatMap((c) => ['-c', c]);
|
|
2045
2045
|
const args = [...codex.slice(1), ...overrides, 'sandbox', 'setup', '--elevated', '--current-user', ...(codexHome ? ['--codex-home', codexHome] : [])];
|
|
2046
|
+
let failed = '';
|
|
2046
2047
|
const code = await new Promise((res) => {
|
|
2047
2048
|
const p = spawn(codex[0], args, { env, stdio: 'inherit', windowsHide: false });
|
|
2048
|
-
p.on('error', () =>
|
|
2049
|
+
p.on('error', (e) => {
|
|
2050
|
+
failed = e.message; // Codex did not start at all (a codex.cmd from PATH cannot be started without a shell)
|
|
2051
|
+
res(1);
|
|
2052
|
+
});
|
|
2049
2053
|
p.on('exit', (c) => res(c ?? 1));
|
|
2050
2054
|
});
|
|
2051
|
-
|
|
2055
|
+
const why = failed ? `${codex[0]}: ${failed}` : zh ? `退出码 ${code}` : `exit ${code}`;
|
|
2056
|
+
out(code === 0 ? (zh ? '设置完成:重启 runner。' : 'Done: restart the runner.') : zh ? `设置没有完成(${why})。` : `The setup did not finish (${why}).`);
|
|
2052
2057
|
return code === 0 ? 0 : 1;
|
|
2053
2058
|
}
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalaauto/agentchannel",
|
|
3
|
-
"version": "3.36.
|
|
3
|
+
"version": "3.36.1",
|
|
4
4
|
"description": "Hand work between your team's agents (Claude Code, Codex) and follow it in one panel: the ach CLI, MCP server and runner for AgentChannel v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentchannel",
|