@koalaauto/agentchannel 3.36.6 → 3.36.7
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.
|
@@ -122,8 +122,11 @@ export declare function probeSandbox(tool: SandboxTool, o?: ProbeOptions): Promi
|
|
|
122
122
|
*/
|
|
123
123
|
export declare const NET_SCRIPT: string;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
126
|
-
* Exit 0
|
|
125
|
+
* How `ach` leaves a sandbox (netproxy.ts): through the proxy Codex starts there, CONNECT to `host:port`; with no proxy set, a
|
|
126
|
+
* direct connection (NET_SCRIPT). Exit 0 it got through, 5 the name does not resolve, 6 refused or failed, 7 a malformed proxy.
|
|
127
|
+
* No proxy is not itself a failure: on Windows `codex sandbox` starts none and runs the command as Codex's sandbox user with
|
|
128
|
+
* network (windows-check, 2026-11-13: no proxy variables, a direct connection worked), and `ach` then connects directly. On
|
|
129
|
+
* Linux a sandbox without the proxy has no network at all, so the direct connection fails and the verdict is the same as before.
|
|
127
130
|
*/
|
|
128
131
|
export declare const NET_PROXY_SCRIPT: string;
|
|
129
132
|
/** Lets the system bubblewrap (only that path) create user namespaces under Ubuntu's AppArmor rule; never machine-wide. */
|
package/dist/src/sandboxcheck.js
CHANGED
|
@@ -302,12 +302,16 @@ function codexProbeConfig(dir, home, hub, platform = process.platform) {
|
|
|
302
302
|
export const NET_SCRIPT = "const[h,p]=process.argv.slice(1);require('dns').lookup(h,(e)=>{if(e)process.exit(5);" +
|
|
303
303
|
"const s=require('net').connect(+p,h,()=>process.exit(0));s.on('error',()=>process.exit(6));setTimeout(()=>process.exit(6),8000)})";
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
306
|
-
* Exit 0
|
|
305
|
+
* How `ach` leaves a sandbox (netproxy.ts): through the proxy Codex starts there, CONNECT to `host:port`; with no proxy set, a
|
|
306
|
+
* direct connection (NET_SCRIPT). Exit 0 it got through, 5 the name does not resolve, 6 refused or failed, 7 a malformed proxy.
|
|
307
|
+
* No proxy is not itself a failure: on Windows `codex sandbox` starts none and runs the command as Codex's sandbox user with
|
|
308
|
+
* network (windows-check, 2026-11-13: no proxy variables, a direct connection worked), and `ach` then connects directly. On
|
|
309
|
+
* Linux a sandbox without the proxy has no network at all, so the direct connection fails and the verdict is the same as before.
|
|
307
310
|
*/
|
|
308
|
-
export const NET_PROXY_SCRIPT = "const[h,p]=process.argv.slice(1);const e=process.env;const v=e.HTTPS_PROXY||e.https_proxy||e.ALL_PROXY||e.all_proxy;
|
|
311
|
+
export const NET_PROXY_SCRIPT = "const[h,p]=process.argv.slice(1);const e=process.env;const v=e.HTTPS_PROXY||e.https_proxy||e.ALL_PROXY||e.all_proxy;" +
|
|
312
|
+
"if(!v){require('dns').lookup(h,(x)=>{if(x)process.exit(5);const d=require('net').connect(+p,h,()=>process.exit(0));d.on('error',()=>process.exit(6));setTimeout(()=>process.exit(6),8000)})}else{" +
|
|
309
313
|
"let u;try{u=new URL(v)}catch{process.exit(7)}const s=require('net').connect(+u.port||80,u.hostname,()=>s.write('CONNECT '+h+':'+p+' HTTP/1.1\\r\\nHost: '+h+':'+p+'\\r\\n\\r\\n'));" +
|
|
310
|
-
"let b='';s.on('data',d=>{b+=d;if(b.includes('\\r\\n'))process.exit(/^HTTP\\/1\\.[01] 200/.test(b)?0:6)});s.on('error',()=>process.exit(6));setTimeout(()=>process.exit(6),8000)";
|
|
314
|
+
"let b='';s.on('data',d=>{b+=d;if(b.includes('\\r\\n'))process.exit(/^HTTP\\/1\\.[01] 200/.test(b)?0:6)});s.on('error',()=>process.exit(6));setTimeout(()=>process.exit(6),8000)}";
|
|
311
315
|
const PROXY_VARS = ['HTTPS_PROXY', 'https_proxy', 'HTTP_PROXY', 'http_proxy', 'ALL_PROXY', 'all_proxy'];
|
|
312
316
|
/**
|
|
313
317
|
* Work runs reach the hub through Codex's network proxy (codexSandboxOverrides) because the agent reports through `ach`.
|
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.7",
|
|
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",
|