@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.
- package/dist/contracts.d.ts +3 -0
- package/dist/supervisor.d.ts +1 -0
- package/dist/supervisor.js +2 -0
- package/package.json +1 -1
package/dist/contracts.d.ts
CHANGED
|
@@ -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. */
|
package/dist/supervisor.d.ts
CHANGED
package/dist/supervisor.js
CHANGED
|
@@ -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;
|