openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
37 lines (36 loc) • 3.08 kB
JavaScript
import { i as resolveProjectedMcpCodexToolApprovalMode, r as requiresMcpCodexToolApproval, t as formatMcpCodexApprovalRemedy } from "../mcp-codex-tool-approval-DolGbU_U.mjs";
import { r as getPluginToolMeta } from "../tool-metadata--ndgGyn8.mjs";
import { r as pinExecToolTarget } from "../exec-tool-target-pinning-CTUpUcAa.mjs";
import { c as resolveAgentHarnessTtsProvenanceTransferCapability, s as resolveAgentHarnessScheduledToolProjectionCapability } from "../host-private-capabilities-D8EEgJHq.mjs";
import { m as runWithCronCreatorAuthorityResolver, p as runWithCronCreatorAuthorityCapabilityResolver } from "../cron-creator-authority-context-C3oD224u.mjs";
import { s as resolveBootstrapFilesForPreparation } from "../bootstrap-files-Dv5-lWCI.mjs";
import { r as loadCodexBundleMcpApprovalConfig } from "../codex-mcp-config-CG9Y8A7t.mjs";
import { i as resolveCodexMcpToolOverridesForAgent, n as buildCodexUserMcpServersThreadConfigPatchForRuntime, t as buildCodexUserMcpServersThreadConfigPatchForRun } from "../bundle-mcp-codex-BJhcxyrW.mjs";
//#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-Cb8ISSCe.mjs");
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-BraCTotG.mjs");
return capture(target, captureRef, tools, (tool) => getPluginToolMeta(tool), { canonicalToolNames: options.nativeToolSurfaceEnabled ? CODEX_NATIVE_CRON_CREATOR_AUTHORITY : void 0 });
}
//#endregion
export { buildCodexUserMcpServersThreadConfigPatchForRun, buildCodexUserMcpServersThreadConfigPatchForRuntime, captureFinalCodexCronCreatorToolAllowlist, formatMcpCodexApprovalRemedy, loadCodexBundleMcpApprovalConfig, materializeStaticMcpToolsForHarnessRun, pinExecToolTarget, requiresMcpCodexToolApproval, resolveBootstrapFilesForPreparation, resolveCodexMcpToolOverridesForAgent, resolveCodexScheduledToolProjectionFactory, resolveCodexTtsProvenanceTransfer, resolveProjectedMcpCodexToolApprovalMode, runWithCronCreatorAuthorityCapabilityResolver, runWithCronCreatorAuthorityResolver };