openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
37 lines (36 loc) • 3.16 kB
JavaScript
import { i as resolveProjectedMcpCodexToolApprovalMode, r as requiresMcpCodexToolApproval, t as formatMcpCodexApprovalRemedy } from "../mcp-codex-tool-approval-UMdM31mU.js";
import { r as getPluginToolMeta } from "../tool-metadata-B5aqo73s.js";
import { l as pinExecToolTarget } from "../agent-tool-metadata-CZvIgxro.js";
import { o as resolveAgentHarnessScheduledToolProjectionCapability, s as resolveAgentHarnessTtsProvenanceTransferCapability } from "../host-private-capabilities-DSGdSEaS.js";
import { o as resolveBootstrapFilesForPreparation } from "../bootstrap-files-DbaSu-Uk.js";
import { o as runWithCronCreatorAuthorityCapabilityResolver, s as runWithCronCreatorAuthorityResolver } from "../cron-creator-authority-context-CkDgGats.js";
import { r as loadCodexBundleMcpApprovalConfig } from "../codex-mcp-config-DulQr1QH.js";
import { a as resolveCodexMcpToolOverridesForAgent, n as buildCodexUserMcpServersThreadConfigPatchForRun, r as buildCodexUserMcpServersThreadConfigPatchForRuntime, t as buildCodexUserMcpServersThreadConfigPatch } from "../bundle-mcp-codex-Cy9fxv2n.js";
//#region src/plugin-sdk/codex-mcp-projection.ts
const CODEX_NATIVE_CRON_CREATOR_AUTHORITY = ["read", "exec"];
/** Resolve the private scheduled-tool projection issuer for the Codex harness owner. */
function resolveCodexScheduledToolProjectionFactory(hostCapabilities) {
return resolveAgentHarnessScheduledToolProjectionCapability({
hostCapabilities,
ownerPluginId: "codex"
});
}
/** Resolve private TTS delivery transfer for the bundled Codex harness owner. */
function resolveCodexTtsProvenanceTransfer(hostCapabilities) {
return resolveAgentHarnessTtsProvenanceTransferCapability({
hostCapabilities,
ownerPluginId: "codex"
});
}
/** Materialize static configured MCP under the Codex harness authority envelope. */
async function materializeStaticMcpToolsForHarnessRun(params) {
const { materializeStaticMcpToolsForHarnessRunCore: materialize } = await import("../agent-bundle-mcp-harness-C295I9Pj.js");
return materialize(params);
}
/** Capture the final Codex dynamic-tool surface for cron creator authority. */
async function captureFinalCodexCronCreatorToolAllowlist(target, captureRef, tools, options = {}) {
const { captureFinalEffectiveCronCreatorToolAllowlist: capture } = await import("../cron-tool-BuK1irKN.js");
return capture(target, captureRef, tools, (tool) => getPluginToolMeta(tool), { canonicalToolNames: options.nativeToolSurfaceEnabled ? CODEX_NATIVE_CRON_CREATOR_AUTHORITY : void 0 });
}
//#endregion
export { buildCodexUserMcpServersThreadConfigPatch, buildCodexUserMcpServersThreadConfigPatchForRun, buildCodexUserMcpServersThreadConfigPatchForRuntime, captureFinalCodexCronCreatorToolAllowlist, formatMcpCodexApprovalRemedy, loadCodexBundleMcpApprovalConfig, materializeStaticMcpToolsForHarnessRun, pinExecToolTarget, requiresMcpCodexToolApproval, resolveBootstrapFilesForPreparation, resolveCodexMcpToolOverridesForAgent, resolveCodexScheduledToolProjectionFactory, resolveCodexTtsProvenanceTransfer, resolveProjectedMcpCodexToolApprovalMode, runWithCronCreatorAuthorityCapabilityResolver, runWithCronCreatorAuthorityResolver };