MCPcopy Create free account

hub / github.com/FIND-Lab/AgentWard / functions

Functions94 in github.com/FIND-Lab/AgentWard

↓ 69 callersFunctiongetLogger
()
util/logger.ts:45
↓ 12 callersFunctionformatBasic
(error: Warning | Warning[], header = "⚠️System Warning:")
core/warnings.ts:41
↓ 10 callersFunctionlog
(level: 'info' | 'warn' | 'error', message: string)
worker/model-worker.ts:45
↓ 7 callersFunctiongetRecord
(value: unknown)
layers/foundation-scan.ts:666
↓ 7 callersFunctionmatchesAnyPattern
(text: string, patterns: RegExp[])
layers/exec-control.ts:260
↓ 7 callersFunctionsend_message
(state: SessionState, content: string)
index.ts:30
↓ 6 callersFunctionformatMessageSendingWarning
(error: Warning | Warning[], suspend_demo: string | null = null)
core/warnings.ts:91
↓ 6 callersMethodreadString
(value: unknown)
core/state.ts:65
↓ 6 callersFunctionshortText
(value: unknown, maxLen = MAX_TEXT_LEN)
layers/decision-alignment.ts:16
↓ 5 callersFunctiondetectBlock
(warning: Warning)
core/warnings.ts:14
↓ 4 callersFunctionfinishProcessing
( responseFile: string, requestId: string, success: boolean, data?: any, error?: string, callback?
worker/model-worker.ts:69
↓ 4 callersFunctiongetConfigAtPath
Get a value from a nested object by dot-path.
core/commands.ts:26
↓ 4 callersFunctiongetString
(value: unknown)
layers/foundation-scan.ts:673
↓ 4 callersFunctiongetWorker
()
worker/model-worker-manager.ts:209
↓ 4 callersFunctionsetWorker
(worker: PersistentWorker | null)
worker/model-worker-manager.ts:213
↓ 3 callersFunctioncreateMaliciousWarning
(details: string)
layers/foundation-scan.ts:255
↓ 3 callersFunctiondetectApprove
( warning: Warning, opts?: { timeoutMs?: number; timeoutBehavior?: "allow" | "deny" }, )
core/warnings.ts:18
↓ 3 callersFunctionformatToolCallWarning
(error: Warning | Warning[], level: number)
core/warnings.ts:65
↓ 3 callersFunctionisValidConfigPath
Check if a config path is allowed to be modified at runtime.
core/commands.ts:67
↓ 3 callersFunctionwriteToFile
(level: string, msg: string)
util/logger.ts:16
↓ 2 callersFunctioncalculateContentHash
(content: string)
layers/foundation-scan.ts:271
↓ 2 callersFunctioncallSemanticDetectionApi
( systemPrompt: string, userPrompt: string, llmContext: LlmCallContext, logger?: LoggerLike, maxCont
layers/foundation-scan.ts:280
↓ 2 callersFunctionclampText
(text: string, maxChars: number)
index.ts:43
↓ 2 callersMethodclear_tags
()
core/state.ts:38
↓ 2 callersFunctioncomputeOperationKey
(toolName: string, params: Record<string, unknown>)
index.ts:60
↓ 2 callersFunctioncreateMisConfigurationWarning
(details: string)
layers/foundation-scan.ts:263
↓ 2 callersFunctiondecrypt
(buffer: Uint8Array, key: AesKey)
util/crypto-util.ts:26
↓ 2 callersFunctiondetectPoisoning
(text: string)
layers/cognition-protection.ts:9
↓ 2 callersFunctionencrypt
(data: string, key: AesKey)
util/crypto-util.ts:13
↓ 2 callersMethodfromPluginConfig
(raw: unknown)
config.ts:128
↓ 2 callersMethodisRunning
()
worker/model-worker-manager.ts:201
↓ 2 callersFunctionlistAllKeys
Recursively list all leaf keys of an object with dot-notation paths.
core/commands.ts:11
↓ 2 callersFunctionsetConfigAtPath
Set a value in a nested object by dot-path (mutates).
core/commands.ts:37
↓ 2 callersMethodsetLLMContext
(api: OpenClawPluginApi)
core/state.ts:109
↓ 2 callersMethodshutdown
()
worker/model-worker-manager.ts:182
↓ 2 callersFunctionsummarizeMessage
(message: Record<string, unknown>)
layers/decision-alignment.ts:39
↓ 2 callersFunctiontranspileTsFile
(srcPath, destPath)
scripts/build.mjs:17
↓ 1 callersFunctionasMessage
(value: unknown)
layers/decision-alignment.ts:30
↓ 1 callersFunctionbuildJudgeInput
(state: SessionState, assistantMessage: unknown)
layers/decision-alignment.ts:68
↓ 1 callersMethodcall
(request: WorkerRequest)
worker/model-worker-manager.ts:123
↓ 1 callersFunctioncallLLM
(request: syncLLMRequest<any>)
worker/model-worker.ts:15
↓ 1 callersFunctioncallLLMSimple
( model: Model<any>, systemPrompt: string, conversation: Array<{ role: 'user' | 'assistant'; content: st
worker/model-worker-manager.ts:262
↓ 1 callersFunctioncallLLMSync
( request: syncLLMRequest<any> )
worker/model-worker-manager.ts:237
↓ 1 callersFunctiondecisionAlignmentDetect
( state: SessionState, assistantMessage: unknown, )
layers/decision-alignment.ts:109
↓ 1 callersFunctiondetectAccessControlMisconfiguration
(config: OpenClawConfig)
layers/foundation-scan.ts:734
↓ 1 callersFunctiondetectByRules
(content: string)
layers/foundation-scan.ts:208
↓ 1 callersFunctiondetectCognitionProtectionAnomaly
( toolName: string, params: Record<string, unknown> )
layers/cognition-protection.ts:45
↓ 1 callersFunctiondetectFoundationScan
( workspaceDir: string, logger: LoggerLike, state: SessionState, config: OpenClawConfig, options: Fo
layers/foundation-scan.ts:900
↓ 1 callersFunctiondetectGatewayExposureMisconfiguration
(config: OpenClawConfig)
layers/foundation-scan.ts:698
↓ 1 callersFunctiondetectMaliciousSkills
( workspaceDir: string, logger: LoggerLike, state: SessionState, openclawConfig: OpenClawConfig, con
layers/foundation-scan.ts:817
↓ 1 callersFunctiondetectMisConfiguration
( workspaceDir: string, logger: LoggerLike, config: OpenClawConfig, )
layers/foundation-scan.ts:873
↓ 1 callersFunctiondetectSkillContentRisk
( skill: Skill, capabilitySummary: string, filePath: string, fileContent: string, llmContext: LlmCal
layers/foundation-scan.ts:463
↓ 1 callersFunctiondetectSkillMetadataRisk
( skill: Skill, llmContext: LlmCallContext, logger?: LoggerLike, )
layers/foundation-scan.ts:348
↓ 1 callersFunctionextractJsonObject
(text: string)
layers/foundation-scan.ts:328
↓ 1 callersFunctionextractToolResultId
Inline implementation of extractToolResultId — reads toolCallId or toolUseId * from a message object. Mirrors src/agents/tool-call-id.ts:71-83.
index.ts:26
↓ 1 callersFunctionformatConfigTree
Format the entire config as a readable tree (leaf values only).
core/commands.ts:82
↓ 1 callersFunctionformatCoverAssistantWarning
(error: Warning | Warning[])
core/warnings.ts:55
↓ 1 callersFunctionformatToolResultWarning
(error: Warning | Warning[], blockHarmfulInput: boolean)
core/warnings.ts:59
↓ 1 callersFunctionformatUserPrependWarning
(error: Warning | Warning[], blockToolCall: boolean)
core/warnings.ts:85
↓ 1 callersFunctiongenerateKey
()
util/crypto-util.ts:9
↓ 1 callersFunctiongenerateRequestId
()
worker/model-worker-manager.ts:217
↓ 1 callersFunctiongetStringArray
(value: unknown)
layers/foundation-scan.ts:681
↓ 1 callersFunctionhandleAgentWardCommand
( ctx: CommandContext, config: PluginConfig, startupConfig: PluginConfig, setConfig: ConfigSetter, )
core/commands.ts:92
↓ 1 callersFunctioninitFileLog
()
util/logger.ts:26
↓ 1 callersFunctioninitLogger
(api: OpenClawPluginApi)
util/logger.ts:36
↓ 1 callersFunctioninputDetect
(content: unknown)
layers/input-sanitization.ts:16
↓ 1 callersFunctionisLikelyTextFile
(filePath: string)
layers/foundation-scan.ts:157
↓ 1 callersFunctionisSafeGatewayBind
(bind: string | null)
layers/foundation-scan.ts:689
↓ 1 callersFunctionisTypeCompatible
Check that the parsed value matches the runtime type of the existing config field.
core/commands.ts:59
↓ 1 callersFunctionlistTextFilesRecursively
(rootDir: string)
layers/foundation-scan.ts:162
↓ 1 callersFunctionnormalizeJudgeResponse
(response: string)
layers/decision-alignment.ts:100
↓ 1 callersFunctionnormalizeText
(input: string)
layers/foundation-scan.ts:135
↓ 1 callersFunctionparseValue
Parse a raw string value into the appropriate type.
core/commands.ts:50
↓ 1 callersFunctionprocessRequestAsync
()
worker/model-worker.ts:107
↓ 1 callersFunctionresolveApprovalTimeoutMs
(config: PluginConfig)
index.ts:68
↓ 1 callersFunctionrestartWorker
( options: { tmpDir: string; config: { timeout: number; debug: boolean; logLevel: string }; } )
worker/model-worker-manager.ts:221
↓ 1 callersFunctionrewriteRelativeImports
(code)
scripts/build.mjs:10
↓ 1 callersFunctionrunWorker
()
worker/model-worker.ts:172
↓ 1 callersFunctionscanSkillDirectory
( skill: Skill, llmContext: LlmCallContext | null, logger: LoggerLike, options: Required<FoundationSca
layers/foundation-scan.ts:782
↓ 1 callersFunctionscanSkillFile
( skill: Skill, filePath: string, metadataSummary: string, llmContext: LlmCallContext, logger: Logge
layers/foundation-scan.ts:583
↓ 1 callersFunctionscanSkillMetadata
( skill: Skill, llmContext: LlmCallContext, logger?: LoggerLike, )
layers/foundation-scan.ts:554
↓ 1 callersFunctionstableStringify
(value: unknown)
index.ts:51
↓ 1 callersFunctiontoolCallDetect
( toolName: string, params: Record<string, unknown> )
layers/exec-control.ts:270
↓ 1 callersFunctiontruncateForSemanticDetection
(text: string, maxLength: number)
layers/foundation-scan.ts:275
↓ 1 callersMethodtrySetLLMContextFromPluginConfig
(api: OpenClawPluginApi)
core/state.ts:69
↓ 1 callersFunctionwalkTsFiles
(dirPath)
scripts/build.mjs:28
Methodconstructor
()
config.ts:65
Methodconstructor
(type: string, description: string, details: string = "")
core/warnings.ts:34
Methodconstructor
(api: OpenClawPluginApi,event, ctx )
core/state.ts:48
Methodconstructor
( options: { tmpDir: string; config: { timeout: number; debug: boolean;
worker/model-worker-manager.ts:67
FunctiondetectPass
()
core/warnings.ts:10
FunctiongetApi
()
util/logger.ts:52
Functionparse
(value: unknown)
config.ts:276
Functionregister
(api: OpenClawPluginApi)
index.ts:90