UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 793 B
//#region src/agents/sandbox/github-publication.ts /** Managed workspaces prepare in place; an unbound local Docker or Podman sandbox adopts one. */ function canPrepareGitHubPullRequest(e) { return Boolean(e?.enabled && e.backend && e.workspaceAccess !== "ro" && (e.workspaceSource === "managed-worktree" || e.backendId === "docker" || e.backendId === "podman")); } function canRefreshGitHubPublicationBase(e) { return Boolean(e?.enabled && e.backend && e.workspaceSource === "managed-worktree" && e.workspaceAccess !== "ro"); } function canUploadGitHubPublicationEvidence(e) { return Boolean(e?.enabled && e.fsBridge?.readFileWithSource !== void 0); } //#endregion export { canRefreshGitHubPublicationBase as n, canUploadGitHubPublicationEvidence as r, canPrepareGitHubPullRequest as t };