@karowanorg/orc-core 0.1.1 → 0.1.2

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.
@@ -92,6 +92,8 @@ export interface LeafRequest {
92
92
  */
93
93
  sandbox?: boolean;
94
94
  sandboxDirs?: string[];
95
+ /** Permit outbound network while retaining the requested filesystem sandbox. */
96
+ networkAccess?: boolean;
95
97
  }
96
98
  export type HarnessEvent = {
97
99
  kind: "tool-call-open";
@@ -320,6 +322,7 @@ export interface RunManifest {
320
322
  approvalMode: ApprovalMode;
321
323
  sandbox: boolean;
322
324
  sandboxDirs: string[];
325
+ networkAccess: boolean;
323
326
  maxParallel: number;
324
327
  idleTimeoutMs: number | false;
325
328
  /** Reactive USD cap: the run fails once observed estimated cost exceeds this. */
@@ -14,6 +14,7 @@ export interface LaunchOptions {
14
14
  approvalMode?: RunManifest["approvalMode"];
15
15
  sandbox?: boolean;
16
16
  sandboxDirs?: string[];
17
+ networkAccess?: boolean;
17
18
  maxParallel?: number;
18
19
  idleTimeout?: number | false;
19
20
  budgetUsd?: number;
@@ -42,6 +42,7 @@ export async function prepareRun(opts, registry) {
42
42
  approvalMode: opts.approvalMode ?? "auto",
43
43
  sandbox: opts.sandbox ?? false,
44
44
  sandboxDirs: opts.sandboxDirs ?? [],
45
+ networkAccess: opts.networkAccess ?? false,
45
46
  maxParallel: Math.min(opts.maxParallel ?? DEFAULT_POLICY.maxParallel, 64),
46
47
  idleTimeoutMs: opts.idleTimeout ?? 15 * 60_000,
47
48
  budgetUsd: opts.budgetUsd,
@@ -696,6 +697,7 @@ class Supervisor {
696
697
  idleTimeoutMs: leaf.idleTimeoutMs,
697
698
  sandbox: this.manifest.sandbox,
698
699
  sandboxDirs: this.manifest.sandboxDirs,
700
+ networkAccess: this.manifest.networkAccess,
699
701
  };
700
702
  let result;
701
703
  let errorMsg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karowanorg/orc-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "0BSD",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",