Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EBWi11/AgentSmith-HUB
/ functions
Functions
2,165 in github.com/EBWi11/AgentSmith-HUB
⨍
Functions
2,165
◇
Types & classes
243
↓ 1 callers
Function
isSupportedType
(t string)
src/local_plugin/get_config/get_config.go:65
↓ 1 callers
Function
isUserAllowed
(claims map[string]interface{})
src/api/auth.go:77
↓ 1 callers
Method
listenHeartbeats
listenHeartbeats listens for heartbeats and handles version sync (leader only)
src/cluster/heartbeat_simple.go:203
↓ 1 callers
Method
listenSyncCommands
listenSyncCommands listens for sync commands from leader
src/cluster/sync_listener.go:186
↓ 1 callers
Function
loadHubConfig
loadHubConfig loads config.yaml inside given root directory into common.Config.
src/main.go:649
↓ 1 callers
Function
loadLocalComponents
()
src/main.go:330
↓ 1 callers
Function
loadLocalProjects
()
src/main.go:549
↓ 1 callers
Function
loadRulesEngineTPSScenarios
(b *testing.B)
src/rules_engine/engine_tps_bench_test.go:90
↓ 1 callers
Function
loadRuntimeConfig
* Load runtime configuration from external file * This allows configuration changes without recompilation
web/src/config/index.js:42
↓ 1 callers
Function
main
()
docs/kafka_producer_perf_test.py:210
↓ 1 callers
Function
mapDeepCopyWithExtraCapacity
mapDeepCopyWithExtraCapacity performs a deep copy with additional capacity for rule operations extraCap: additional capacity for fields that will be a
src/rules_engine/engine_core.go:2493
↓ 1 callers
Function
markProjectAutoStopInFlight
(projectID string)
src/project/project.go:426
↓ 1 callers
Function
matchedEventIDsForStageExpr
(expr ExprAST, matchMap map[string]bool)
src/rules_engine/cep_condition.go:544
↓ 1 callers
Function
matchesOperationFilter
matchesOperationFilter checks if an operation record matches the filter criteria
src/common/operations.go:502
↓ 1 callers
Function
min
(a, b int)
src/api/sample_data_intelligent.go:333
↓ 1 callers
Method
neonBatchCompare
neonBatchCompare processes multiple patterns using NEON concepts
src/rules_engine/simd_arm64.go:255
↓ 1 callers
Method
neonCompareAtPosition
neonCompareAtPosition performs optimized string comparison using NEON concepts
src/rules_engine/simd_arm64.go:103
↓ 1 callers
Method
neonVectorCompare
neonVectorCompare performs 16-byte aligned comparison using NEON concepts
src/rules_engine/simd_arm64.go:134
↓ 1 callers
Function
newCEPParser
(tokens []CEPToken)
src/rules_engine/cep_condition.go:209
↓ 1 callers
Function
newKnowledgeSkill
(id, description, content string)
src/skill/skill_knowledge.go:14
↓ 1 callers
Function
newLLMTraceStep
(round int, model string, input []Message, resp *ChatResult, callErr error)
src/agent/agent_loop.go:86
↓ 1 callers
Function
newSkillAdapter
(impl skill.SkillImplementation)
src/agent/skill.go:12
↓ 1 callers
Method
nextHost
nextHost returns the next host in round-robin fashion
src/common/clickhouse.go:143
↓ 1 callers
Function
normalizeMemoryLines
(lines []string)
src/agent/memory_notes.go:51
↓ 1 callers
Function
normalizeParams
(params = {})
web/src/api/index.js:171
↓ 1 callers
Function
normalizeRawContent
(raw)
web/src/api/index.js:129
↓ 1 callers
Method
parseBinOpRHS
(execPrev int, lhs ExprAST)
src/rules_engine/engine_condition.go:152
↓ 1 callers
Function
parseDel
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:1042
↓ 1 callers
Function
parseExpiresNsFromRef
parseExpiresNsFromRef extracts expiresAtNs encoded in the ref string. Ref format: "<expiresAtNs>|<ts>-<counter>".
src/rules_engine/cep_value_store.go:366
↓ 1 callers
Function
parseIterator
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:329
↓ 1 callers
Function
parseJSONArgs
(raw string)
src/agent/agent_tools.go:151
↓ 1 callers
Function
parseModify
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:938
↓ 1 callers
Function
parseOutputMessage
(content string)
src/agent/agent_loop.go:464
↓ 1 callers
Function
parsePlugin
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:999
↓ 1 callers
Method
parsePrimary
parsePrimary handles: primary := '(' sequence_expr ')' | literal
src/rules_engine/cep_condition.go:322
↓ 1 callers
Function
parseProjectComponentsDirect
parseProjectComponentsDirect parses project configuration and extracts component information without creating a project instance
src/api/testing.go:1675
↓ 1 callers
Function
parseProjectInputsDirect
(projectContent string)
src/api/testing.go:1284
↓ 1 callers
Function
parseProjectSequencesDirect
parseProjectSequencesDirect parses project configuration and extracts sequences without creating a project instance
src/api/testing.go:2051
↓ 1 callers
Function
parseSequence
parseSequence parses a <sequence> element and its nested <event> and <condition> children.
src/rules_engine/engine_parser.go:484
↓ 1 callers
Function
parseSequenceEvent
parseSequenceEvent parses an <event> element within a <sequence>.
src/rules_engine/engine_parser.go:587
↓ 1 callers
Method
parserKey
(key string)
src/common/daily_stats_manager.go:169
↓ 1 callers
Method
persistenceLoop
persistenceLoop periodically collects data from all components and saves to Redis Improved to handle high concurrency scenarios with better error hand
src/common/daily_stats_manager.go:243
↓ 1 callers
Method
platformOptimizedBatchCompare
ARM64-optimized batch string comparison
src/rules_engine/simd_arm64.go:213
↓ 1 callers
Method
pluginIdentifier
()
src/plugin/plugin.go:253
↓ 1 callers
Method
print_stats
Print performance statistics
docs/kafka_producer_perf_test.py:187
↓ 1 callers
Method
processAndForward
(msg map[string]interface{})
src/agent/agent_loop.go:159
↓ 1 callers
Method
processMessage
(msg map[string]interface{})
src/agent/agent_loop.go:334
↓ 1 callers
Function
projectTestTimeoutWarning
(timeout time.Duration)
src/api/testing.go:956
↓ 1 callers
Function
pushMessage
pushMessage sends a message to a Feishu chat. msgType is "interactive" (card) or "text"; content is the pre-built content string.
config/plugin/pushUrentAlertByLark.go:187
↓ 1 callers
Function
pushMessageAndPhone
(msgType string, content string, appid string, appsk string, receive_id string, phonetimeleft int, phonetimeri
config/plugin/pushUrentAlertByLark.go:272
↓ 1 callers
Function
queryShodanAPIWithKey
queryShodanAPIWithKey queries the Shodan API for IP information
src/local_plugin/shodan/shodan.go:166
↓ 1 callers
Function
queryThreatBookAPIWithKey
queryThreatBookAPIWithKey queries the ThreatBook API
src/local_plugin/threatbook/threatbook.go:270
↓ 1 callers
Function
queryVirusTotalAPIWithKey
queryVirusTotalAPIWithKey queries the VirusTotal API for file hash information
src/local_plugin/virustotal/virustotal.go:160
↓ 1 callers
Function
readFile
(path string)
src/agent/agent.go:421
↓ 1 callers
Function
readLocalPluginSource
readLocalPluginSource reads the source code of a built-in plugin
src/api/components.go:2198
↓ 1 callers
Function
readToken
readToken reads token from environment variable first, then from .token file, or creates one when create==true.
src/main.go:627
↓ 1 callers
Function
recommendFieldsForPurpose
(availableFields []string, rulePurpose string)
src/api/sample_data_intelligent.go:654
↓ 1 callers
Method
reconcileBeforeStart
()
src/output/output.go:436
↓ 1 callers
Method
reconcileBeforeStart
()
src/input/input.go:324
↓ 1 callers
Method
reconcileBeforeStart
()
src/agent/agent.go:324
↓ 1 callers
Method
reconcileBeforeStart
()
src/rules_engine/engine_core.go:287
↓ 1 callers
Method
redisSymbols
()
src/plugin/plugin.go:318
↓ 1 callers
Method
refreshLock
()
src/cluster/leader_locker.go:64
↓ 1 callers
Function
removeRuleFromXML
Helper functions for XML manipulation removeRuleFromXML removes a rule with the specified ID from the XML
src/api/components.go:2703
↓ 1 callers
Function
replaceTimePatterns
replaceTimePatterns replaces time patterns in index name with actual values
src/common/elasticsearch.go:45
↓ 1 callers
Function
reportTPS
(b *testing.B)
src/rules_engine/engine_tps_bench_test.go:44
↓ 1 callers
Function
resetErrorCount
()
web/src/composables/useSmartRefresh.js:49
↓ 1 callers
Method
resetLoadState
()
src/plugin/plugin.go:263
↓ 1 callers
Function
resolveHubAccess
resolveHubAccess returns the leader base URL and auth token, or an error if unavailable.
src/local_plugin/add_rule/add_rule.go:111
↓ 1 callers
Function
ruleExistsInXML
ruleExistsInXML checks if a rule with the specified ID exists in the XML
src/api/components.go:2884
↓ 1 callers
Function
rulesetUsesPlugin
(ruleset *rules_engine.Ruleset, pluginID string)
src/project/project.go:58
↓ 1 callers
Method
run
()
src/common/elasticsearch.go:331
↓ 1 callers
Method
run
run processes messages from the input channel and sends them to Kafka It handles message serialization and error reporting
src/common/kafka.go:177
↓ 1 callers
Method
run
run continuously polls for messages from Kafka and forwards them to the message channel It handles message deserialization and error reporting
src/common/kafka.go:441
↓ 1 callers
Method
run
()
src/common/aliyun_sls.go:183
↓ 1 callers
Method
run
()
src/common/clickhouse.go:185
↓ 1 callers
Method
run
Run the performance test
docs/kafka_producer_perf_test.py:147
↓ 1 callers
Method
runComponents
()
src/project/project.go:2739
↓ 1 callers
Method
runOne
()
src/rules_engine/engine_tps_bench_test.go:38
↓ 1 callers
Method
samplingController
samplingController runs in a separate goroutine to control sampling flags
src/common/sampler.go:70
↓ 1 callers
Function
searchInContent
searchInContent searches for query within content and returns matches
src/api/components.go:2468
↓ 1 callers
Method
sendBatch
sendBatch sends a batch of documents to Elasticsearch with retry logic
src/common/elasticsearch.go:388
↓ 1 callers
Method
sendBatch
sendBatch sends a batch of documents to ClickHouse via HTTP with retry logic
src/common/clickhouse.go:234
↓ 1 callers
Method
setRedisAbsenceTracker
setRedisAbsenceTracker stores an absence tracking key in Redis.
src/rules_engine/cep_state.go:490
↓ 1 callers
Function
setupProjectTestOutputChannels
(tempProject *project.Project, testProjectId string)
src/api/testing.go:849
↓ 1 callers
Method
shardFor
(pattern string)
src/rules_engine/regex_cache.go:60
↓ 1 callers
Function
shouldEnableKimiThinking
shouldEnableKimiThinking determines whether to attach Kimi-style "thinking" params. This is intentionally conservative and only triggers when explicit
src/agent/llm.go:230
↓ 1 callers
Function
shouldQueueProjectRefresh
(instruction Instruction)
src/cluster/sync_listener.go:538
↓ 1 callers
Function
shouldUseSIMD
shouldUseSIMD determines whether to use SIMD optimization based on operation type and data characteristics
src/rules_engine/engine_core.go:2683
↓ 1 callers
Method
simdExecuteANDLogic
simdExecuteANDLogic uses SIMD to process AND logic efficiently
src/rules_engine/simd_integration.go:175
↓ 1 callers
Method
simdExecuteORLogic
simdExecuteORLogic uses SIMD to process OR logic efficiently
src/rules_engine/simd_integration.go:117
↓ 1 callers
Method
snapshotEventData
snapshotEventData creates a deep copy snapshot of event data for cross-event reference. Deep copy is essential because the original data may be modifi
src/rules_engine/engine_core.go:1882
↓ 1 callers
Function
sortCheckNodes
Legacy ParseRulesetFromByte has been removed - use ParseRuleset + RulesetBuild instead
src/rules_engine/engine_struct.go:3136
↓ 1 callers
Method
sse42BatchCompare
(data string, patterns []string, operation CompareOperation)
src/rules_engine/simd_amd64.go:164
↓ 1 callers
Function
stableKeyPart
(v interface{})
src/local_plugin/suppress/suppress.go:61
↓ 1 callers
Method
startBatchProcessor
startBatchProcessor processes samples in batches to improve Redis performance
src/common/redis_sample_manager.go:330
↓ 1 callers
Method
startCleanup
startCleanup starts the cleanup routine
src/common/redis_sample_manager.go:287
↓ 1 callers
Method
startFollowerHeartbeat
startFollowerHeartbeat starts follower heartbeat services
src/cluster/heartbeat_simple.go:109
↓ 1 callers
Method
startLeaderHeartbeat
startLeaderHeartbeat starts leader heartbeat services
src/cluster/heartbeat_simple.go:69
↓ 1 callers
Function
startPprofServer
startPprofServer starts the pprof HTTP server if enabled in configuration
src/main.go:776
← previous
next →
901–1,000 of 2,165, ranked by callers