MCPcopy Create free account
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / scheduleParseWarning

Function scheduleParseWarning

lib/config.ts:954–967  ·  view source on GitHub ↗
(ctx: PluginInput, title: string, message: string)

Source from the content-addressed store, hash-verified

952}
953
954function scheduleParseWarning(ctx: PluginInput, title: string, message: string): void {
955 setTimeout(() => {
956 try {
957 ctx.client.tui.showToast({
958 body: {
959 title,
960 message,
961 variant: "warning",
962 duration: 7000,
963 },
964 })
965 } catch {}
966 }, 7000)
967}
968
969export function getConfig(ctx: PluginInput): PluginConfig {
970 let config = deepCloneConfig(defaultConfig)

Callers 1

getConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected