@karowanorg/orc-harness-codex 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/harness.js +6 -0
  2. package/package.json +2 -2
package/dist/harness.js CHANGED
@@ -512,6 +512,9 @@ export function createCodexHarness(options = {}) {
512
512
  ...(runtimeWorkspaceRoots ? { runtimeWorkspaceRoots } : {}),
513
513
  approvalPolicy,
514
514
  ...(sandbox !== undefined ? { sandbox } : {}), // omit -> inherit user's config default
515
+ ...(req.sandbox && req.networkAccess
516
+ ? { config: { sandbox_workspace_write: { network_access: true } } }
517
+ : {}),
515
518
  ...(developerInstructions ? { developerInstructions } : {}),
516
519
  });
517
520
  threadId = resumed.thread?.id ?? req.sessionId;
@@ -522,6 +525,9 @@ export function createCodexHarness(options = {}) {
522
525
  ...(runtimeWorkspaceRoots ? { runtimeWorkspaceRoots } : {}),
523
526
  approvalPolicy,
524
527
  ...(sandbox !== undefined ? { sandbox } : {}), // omit -> inherit user's config default
528
+ ...(req.sandbox && req.networkAccess
529
+ ? { config: { sandbox_workspace_write: { network_access: true } } }
530
+ : {}),
525
531
  ...(developerInstructions ? { developerInstructions } : {}),
526
532
  });
527
533
  threadId = started.thread?.id;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@karowanorg/orc-harness-codex",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "license": "0BSD",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "dependencies": {
8
- "@karowanorg/orc-core": "^0.1.1",
8
+ "@karowanorg/orc-core": "^0.1.2",
9
9
  "@karowanorg/orc-executors": "^0.1.1"
10
10
  },
11
11
  "description": "Codex harness for orc: codex app-server JSON-RPC through the executor.",