UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 3.47 kB
import{i as getPluginToolMeta,t as classifyAgentToolSource}from"../tool-metadata-Cb5nBZYD.mjs";import{x as pinExecToolTarget}from"../agent-tool-metadata-D7ctyGhj.mjs";import{E as resolveAgentHarnessTtsProvenanceTransferCapability,T as resolveAgentHarnessScheduledToolProjectionCapability}from"../host-private-capabilities-B_SEzbNU.mjs";import{n as captureMcpClientElicitation}from"../mcp-client-elicitation-gnhPSETv.mjs";import{h as runWithCronCreatorAuthorityResolver,m as runWithCronCreatorAuthorityCapabilityResolver}from"../cron-creator-authority-context-C9CHxQOU.mjs";import{o as resolveBootstrapFilesForPreparation}from"../bootstrap-files-S_tG2cje.mjs";import{i as resolveProjectedMcpCodexToolApprovalMode,n as normalizeMcpCodexToolAnnotations,r as requiresMcpCodexToolApproval,t as formatMcpCodexApprovalRemedy}from"../mcp-codex-tool-approval-BEHr8MWJ.mjs";import{r as loadCodexBundleMcpApprovalConfig}from"../codex-mcp-config-D6ZmYmgm.mjs";import{i as resolveCodexMcpToolOverridesForAgent,n as buildCodexUserMcpServersThreadConfigPatchForRuntime,t as buildCodexUserMcpServersThreadConfigPatchForRun}from"../bundle-mcp-codex-B_GVSedY.mjs";import{i as readMcpAppToolExtensions,r as readMcpAppSettingsCapability,t as readMcpAppIcons}from"../mcp-app-extension-metadata-CiD9piiz.mjs"; //!src/plugin-sdk/codex-mcp-projection.ts const CODEX_NATIVE_CRON_CREATOR_AUTHORITY=[`read`,`exec`];function resolveCodexScheduledToolProjectionFactory(e){return resolveAgentHarnessScheduledToolProjectionCapability({hostCapabilities:e,ownerPluginId:`codex`})}function resolveCodexTtsProvenanceTransfer(e){return resolveAgentHarnessTtsProvenanceTransferCapability({hostCapabilities:e,ownerPluginId:`codex`})}async function materializeStaticMcpToolsForHarnessRun(e){const{materializeStaticMcpToolsForHarnessRunCore:t}=await import(`../agent-bundle-mcp-harness-DF5zqdwr.mjs`);return t(e)}async function captureFinalCodexCronCreatorToolAllowlist(e,t,n,r={}){const{captureFinalEffectiveCronCreatorToolAllowlist:i}=await import(`../cron-tool-k9KwapQ8.mjs`);return i(e,t,n,e=>getPluginToolMeta(e),{canonicalToolNames:r.nativeToolSurfaceEnabled?CODEX_NATIVE_CRON_CREATOR_AUTHORITY:void 0})}async function createHarnessMcpFormResourceContext(e){const{createMcpAppFormResourceContext:t}=await import(`../mcp-app-form-resources-DQz6jYUU.mjs`);e.origin.assertCurrent();const{prepareMcpAppFormUpload:n}=await import(`../mcp-form-resource-upload-ByQAfv5W.mjs`);const r=e.origin.prepareToolCall;const i={...e.origin,prepareToolCall:r?async({toolName:e,input:t,assertCurrent:n,signal:i})=>r({toolName:e,input:t,assertCurrent:n,signal:i}):void 0};return await t({origin:i,snapshot:e.snapshot,signal:e.signal,uploadResources:await n(i)})}export{buildCodexUserMcpServersThreadConfigPatchForRun,buildCodexUserMcpServersThreadConfigPatchForRuntime,captureFinalCodexCronCreatorToolAllowlist,captureMcpClientElicitation,classifyAgentToolSource,createHarnessMcpFormResourceContext,formatMcpCodexApprovalRemedy,loadCodexBundleMcpApprovalConfig,materializeStaticMcpToolsForHarnessRun,normalizeMcpCodexToolAnnotations,pinExecToolTarget,readMcpAppIcons,readMcpAppSettingsCapability,readMcpAppToolExtensions,requiresMcpCodexToolApproval,resolveBootstrapFilesForPreparation,resolveCodexMcpToolOverridesForAgent,resolveCodexScheduledToolProjectionFactory,resolveCodexTtsProvenanceTransfer,resolveProjectedMcpCodexToolApprovalMode,runWithCronCreatorAuthorityCapabilityResolver,runWithCronCreatorAuthorityResolver};