Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hormold/tiktok-warmup
/ functions
Functions
126 in github.com/Hormold/tiktok-warmup
⨍
Functions
126
◇
Types & classes
26
↓ 91 callers
Method
info
(message: string, ...args: any[])
src/tools/utils.ts:63
↓ 64 callers
Method
error
(message: string, ...args: any[])
src/tools/utils.ts:71
↓ 31 callers
Method
debug
(message: string, ...args: any[])
src/tools/utils.ts:59
↓ 20 callers
Method
warn
(message: string, ...args: any[])
src/tools/utils.ts:67
↓ 11 callers
Method
wait
* Wait for specified duration
src/stages/working.ts:140
↓ 6 callers
Method
log
(level: LogLevel, message: string, ...args: any[])
src/tools/utils.ts:39
↓ 6 callers
Method
tapScreen
* Tap screen at specified coordinates
src/core/DeviceManager.ts:484
↓ 5 callers
Method
getProperty
* Get device property via ADB
src/core/DeviceManager.ts:363
↓ 5 callers
Method
pressKey
* Press key using Android keycode
src/core/DeviceManager.ts:540
↓ 5 callers
Method
shutdown
* Graceful shutdown of all components
src/index.ts:285
↓ 4 callers
Method
getScreenSize
* Get screen size/dimensions of device
src/core/DeviceManager.ts:437
↓ 4 callers
Method
inputText
* Input text at current focus * Note: Complex characters may need special handling
src/core/DeviceManager.ts:584
↓ 4 callers
Method
loadStorageData
* Load all stored UI data
src/core/UIDataPersistence.ts:56
↓ 3 callers
Method
isDataValid
* Check if stored data is still valid (not older than MAX_AGE_DAYS)
src/core/UIDataPersistence.ts:79
↓ 3 callers
Method
saveStorageData
* Save all storage data
src/core/UIDataPersistence.ts:70
↓ 3 callers
Method
swipeScreen
* Perform swipe gesture on screen
src/core/DeviceManager.ts:514
↓ 2 callers
Method
createWorkers
* Create Worker instance for each device
src/index.ts:99
↓ 2 callers
Method
getAdaptiveDelay
* Adaptive delays based on time of day and activity
src/stages/working.ts:651
↓ 2 callers
Method
getConnectedDevices
* Get all connected Android devices
src/core/DeviceManager.ts:108
↓ 2 callers
Method
getDataPath
* Get full path to data file
src/core/UIDataPersistence.ts:36
↓ 2 callers
Method
getDeviceById
* Get specific device by ID
src/core/DeviceManager.ts:155
↓ 2 callers
Method
getDeviceCapabilities
(deviceId: string)
src/core/DeviceManager.ts:172
↓ 2 callers
Method
getStage
* Get current worker stage
src/core/Worker.ts:290
↓ 2 callers
Method
hasFeature
* Check if device has specific feature
src/core/DeviceManager.ts:377
↓ 2 callers
Method
initialize
* Initialize worker
src/core/Worker.ts:92
↓ 2 callers
Method
launchApp
* Launch application by package name
src/core/DeviceManager.ts:624
↓ 2 callers
Method
mapWorkerStageToAgentStage
* Map worker stage to agent stage
src/core/AgentManager.ts:157
↓ 2 callers
Method
performHealthCheck
* Perform health check every 10th video to ensure we're still on normal TikTok
src/stages/working.ts:467
↓ 2 callers
Function
sanitizeTextForADB
* Sanitize text for ADB input - remove emojis and problematic characters
src/stages/working.ts:44
↓ 2 callers
Method
startAgentManagers
* Start AgentManager for each worker
src/index.ts:130
↓ 2 callers
Method
stop
* Stop the agent
src/core/AgentManager.ts:62
↓ 2 callers
Method
takeScreenshot
* Take screenshot and return as base64 PNG data
src/core/DeviceManager.ts:54
↓ 1 callers
Function
analyzeScreenshot
(taskId: string, screenshot: string, query: string)
src/tools/interaction.ts:29
↓ 1 callers
Method
checkWorkerHealth
* Check health of all workers and restart if needed
src/index.ts:180
↓ 1 callers
Method
cleanup
* Cleanup and disconnect
src/stages/learning.ts:130
↓ 1 callers
Method
cleanup
* Cleanup and disconnect
src/stages/working.ts:759
↓ 1 callers
Function
convertToPixelCoordinates
(normalizedCoords: { y1: number, x1: number, y2: number, x2: number }, screenWidth: number, screenHeight: numb
src/tools/interaction.ts:16
↓ 1 callers
Method
decideAction
* Decide what action(s) to take based on presets and AI analysis
src/stages/working.ts:148
↓ 1 callers
Method
detectShadowBan
* Check for potential shadow ban by analyzing engagement patterns
src/stages/working.ts:602
↓ 1 callers
Method
discoverDevices
* Discover and filter available devices
src/index.ts:76
↓ 1 callers
Method
enrichDeviceInfo
* Enrich basic device info with detailed properties
src/core/DeviceManager.ts:316
↓ 1 callers
Method
ensureDataDir
* Ensure data directory exists
src/core/UIDataPersistence.ts:43
↓ 1 callers
Method
ensureTikTokReady
* Ensure TikTok is ready using the same pattern as learning stage
src/stages/working.ts:548
↓ 1 callers
Method
execute
* Execute learning stage with AI agent
src/stages/learning.ts:121
↓ 1 callers
Method
execute
* Execute working stage with automation loop
src/stages/working.ts:670
↓ 1 callers
Method
executeComment
* Execute comment action
src/stages/working.ts:266
↓ 1 callers
Method
executeLike
* Execute like action
src/stages/working.ts:239
↓ 1 callers
Function
findObject
(taskId: string, deviceId: string, deviceManager: DeviceManager, screenshot: string, query: string)
src/tools/interaction.ts:63
↓ 1 callers
Method
getAsAiTools
(deviceId: string)
src/core/DeviceManager.ts:916
↓ 1 callers
Method
getDeviceCapabilitiesFromCache
* Get device capabilities and technical info
src/core/DeviceManager.ts:163
↓ 1 callers
Method
getHealthStatus
* Get worker health status (MVP: basic implementation)
src/core/Worker.ts:210
↓ 1 callers
Method
getScreenResolution
* Get screen resolution
src/core/DeviceManager.ts:391
↓ 1 callers
Method
getStats
* Get worker statistics
src/core/Worker.ts:233
↓ 1 callers
Method
hasLearnedUI
* Check if worker has completed learning stage
src/core/Worker.ts:304
↓ 1 callers
Method
inputTextAdvanced
* Enhanced text input with better emoji/special character support
src/core/DeviceManager.ts:890
↓ 1 callers
Method
isReady
* Check if worker is ready for automation
src/core/Worker.ts:283
↓ 1 callers
Method
loadDeviceUIData
* Load learned UI data for specific device
src/core/UIDataPersistence.ts:88
↓ 1 callers
Method
logPerformanceStats
* Log performance statistics
src/index.ts:202
↓ 1 callers
Method
longPress
* Long press at specified coordinates
src/core/DeviceManager.ts:670
↓ 1 callers
Function
main
* CLI entry point
src/index.ts:314
↓ 1 callers
Method
monitorWorkers
* Monitor worker health and performance
src/index.ts:156
↓ 1 callers
Method
navigateBack
* Navigation shortcuts
src/core/DeviceManager.ts:811
↓ 1 callers
Method
navigateHome
(deviceId: string)
src/core/DeviceManager.ts:815
↓ 1 callers
Method
openRecents
(deviceId: string)
src/core/DeviceManager.ts:819
↓ 1 callers
Method
openUrl
* Open URL in default browser
src/core/DeviceManager.ts:649
↓ 1 callers
Method
processVideo
* Execute single video automation cycle
src/stages/working.ts:379
↓ 1 callers
Method
restartWorker
* Restart specific worker
src/index.ts:227
↓ 1 callers
Method
runInitiatingStage
* Run Initiating Stage - Launch TikTok and ensure readiness
src/core/Worker.ts:359
↓ 1 callers
Function
runLearningStage
(deviceId: string, deviceManager: DeviceManager)
src/stages/learning.ts:142
↓ 1 callers
Method
runLearningStage
* Run Learning Stage - Let AI learn TikTok UI
src/core/Worker.ts:123
↓ 1 callers
Function
runWorkingStage
( deviceId: string, deviceManager: DeviceManager, presets: AutomationPresets, learnedUI: LearnedUIEle
src/stages/working.ts:772
↓ 1 callers
Method
runWorkingStage
* Run working stage
src/core/Worker.ts:323
↓ 1 callers
Method
saveDeviceUIData
* Save learned UI data for specific device
src/core/UIDataPersistence.ts:119
↓ 1 callers
Method
scanAdbDevices
* Get raw device list from ADB
src/core/DeviceManager.ts:267
↓ 1 callers
Method
scrollScreen
* Scroll screen in specified direction
src/core/DeviceManager.ts:686
↓ 1 callers
Method
scrollToNextVideo
* Scroll to next video
src/stages/working.ts:334
↓ 1 callers
Method
setClipboard
* Clipboard operations
src/core/DeviceManager.ts:826
↓ 1 callers
Method
setOrientation
* Set device orientation
src/core/DeviceManager.ts:744
↓ 1 callers
Method
setVolume
* Control device volume
src/core/DeviceManager.ts:776
↓ 1 callers
Method
setupSignalHandlers
* Setup signal handlers for graceful shutdown
src/index.ts:258
↓ 1 callers
Function
sleep
(ms: number)
src/tools/utils.ts:92
↓ 1 callers
Method
start
* Main startup sequence
src/index.ts:41
↓ 1 callers
Method
start
* Start the agent automation (MVP: just logging)
src/core/AgentManager.ts:28
↓ 1 callers
Method
startAutomation
* Start full automation pipeline: Initialize → Learn → Work
src/core/Worker.ts:378
↓ 1 callers
Method
startRealAutomation
* Real automation pipeline using Worker methods
src/core/AgentManager.ts:110
↓ 1 callers
Method
startStageMonitoring
* Monitor worker stage changes and sync with agent stage
src/core/AgentManager.ts:134
↓ 1 callers
Method
takeAndAnalyzeScreenshot
* AI-powered screenshot analysis with proper LLM integration
src/stages/working.ts:98
↓ 1 callers
Method
terminateApp
* Terminate/force stop an application
src/core/DeviceManager.ts:730
↓ 1 callers
Function
uuidv4
()
src/tools/utils.ts:208
↓ 1 callers
Method
verifyAdbInstalled
* Verify ADB is installed and accessible
src/core/DeviceManager.ts:235
↓ 1 callers
Method
wait
* Wait/delay helper
src/core/DeviceManager.ts:881
↓ 1 callers
Method
watchVideo
* Watch current video for configured duration
src/stages/working.ts:360
Method
cleanupExpiredData
* Clean up expired data for all devices
src/core/UIDataPersistence.ts:147
Method
clearCache
* Clear device cache (force refresh on next scan)
src/core/DeviceManager.ts:419
Method
constructor
(private config: TikTokBotConfig = {})
src/index.ts:32
Method
constructor
()
src/tools/utils.ts:26
Method
constructor
(worker: Worker)
src/core/AgentManager.ts:20
Method
constructor
(config: WorkerConfig)
src/core/Worker.ts:73
Method
constructor
()
src/core/DeviceManager.ts:47
Method
constructor
(deviceId: string, deviceManager: DeviceManager)
src/stages/learning.ts:113
next →
1–100 of 126, ranked by callers