UNPKG

@openai/agents-core

Version:

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.

33 lines • 965 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_REMOTE_MOUNT_COMMAND_ALLOWLIST = void 0; exports.isDefaultRemoteMountCommandAllowlist = isDefaultRemoteMountCommandAllowlist; exports.hasCustomRemoteMountCommandAllowlist = hasCustomRemoteMountCommandAllowlist; const compare_1 = require("./compare.js"); exports.DEFAULT_REMOTE_MOUNT_COMMAND_ALLOWLIST = [ 'ls', 'find', 'stat', 'cat', 'less', 'head', 'tail', 'du', 'grep', 'rg', 'wc', 'sort', 'cut', 'cp', 'tee', 'echo', 'mkdir', 'rm', ]; function isDefaultRemoteMountCommandAllowlist(allowlist) { return (0, compare_1.arraysEqual)(allowlist, exports.DEFAULT_REMOTE_MOUNT_COMMAND_ALLOWLIST); } function hasCustomRemoteMountCommandAllowlist(allowlist) { return (allowlist.length > 0 && !isDefaultRemoteMountCommandAllowlist(allowlist)); } //# sourceMappingURL=remoteMountCommandAllowlist.js.map