Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ckokoski/authorclaw
/ functions
Functions
1,032 in github.com/Ckokoski/authorclaw
⨍
Functions
1,032
◇
Types & classes
335
↓ 1 callers
Method
sanitizeUrl
Strip whitespace + ensure URL starts with http(s).
gateway/src/services/video-research.ts:356
↓ 1 callers
Method
save
Persist overrides to disk (atomic write via temp file + rename).
gateway/src/ai/model-config.ts:64
↓ 1 callers
Function
scanCommand
(command: string, args: string[] = [])
gateway/src/services/orchestrator.ts:107
↓ 1 callers
Method
scanManuscript
* Run the full panel over every provided chapter. * The caller supplies chapters (id/number/title/text) and AI callables.
gateway/src/services/beta-reader.ts:185
↓ 1 callers
Method
scoreProject
* Score a project for priority-based selection. * Higher score = picked first.
gateway/src/services/heartbeat.ts:580
↓ 1 callers
Method
searchGoogleBooks
* Search Google Books API (free, no key required for basic search). * Returns books related to the query.
gateway/src/services/research.ts:230
↓ 1 callers
Method
searchWikipedia
* Search Wikipedia using the MediaWiki API. * Free, no API key, no CAPTCHA, returns titles + snippets.
gateway/src/services/research.ts:197
↓ 1 callers
Method
selfImprove
* Self-improvement: After a project completes, analyze the outputs * and store actionable insights for future writing.
gateway/src/services/heartbeat.ts:598
↓ 1 callers
Method
setAuditLogger
(fn: AuditFn)
gateway/src/services/confirmation-gate.ts:117
↓ 1 callers
Method
setAutonomous
* Wire up autonomous capabilities. Called after project engine and AI are ready.
gateway/src/services/heartbeat.ts:125
↓ 1 callers
Method
setDomains
* Replace the domain allowlist and persist to disk.
gateway/src/services/research.ts:46
↓ 1 callers
Method
setExistingSkillsLookup
Wire a callback that returns the names of skills already in the catalog * (so we don't generate duplicates).
gateway/src/services/auto-skill.ts:135
↓ 1 callers
Method
setGate
(gate: ConfirmationGateService)
gateway/src/services/translation-pipeline.ts:172
↓ 1 callers
Method
setLiveIndexHook
(fn: typeof this.liveIndexHook)
gateway/src/services/memory.ts:146
↓ 1 callers
Method
setMessageHandler
* Inject the gateway's message pipeline so the engine can execute project * steps through the full AI stack. Called from index.ts after the gateway
gateway/src/services/projects.ts:272
↓ 1 callers
Method
setReadingOrder
(seriesId: string, order: string[])
gateway/src/services/series-bible.ts:150
↓ 1 callers
Method
setStatus
(goalId: string, status: GoalStatus)
gateway/src/services/goals.ts:156
↓ 1 callers
Method
setStepServices
* Inject the subset of gateway services the step-execution hooks use * (quality judge, activity log, heartbeat, TTS, personas, aiRouter).
gateway/src/services/projects.ts:280
↓ 1 callers
Method
setStyleClone
(styleClone: StyleCloneService)
gateway/src/services/character-voices.ts:138
↓ 1 callers
Method
setupWebSocket
()
gateway/src/index.ts:1124
↓ 1 callers
Method
skipStep
* Skip a step
gateway/src/services/projects.ts:732
↓ 1 callers
Method
sleep
(ms: number)
gateway/src/services/heartbeat.ts:655
↓ 1 callers
Function
splitIntoChapters
* Split markdown content into chapters based on # or ## headings.
gateway/src/services/epub-export.ts:212
↓ 1 callers
Method
splitMessage
(text: string, maxLength: number)
gateway/src/bridges/telegram.ts:758
↓ 1 callers
Method
srtToPlainText
Convert SRT to plain text — strip timestamps and indices.
gateway/src/services/video-research.ts:375
↓ 1 callers
Method
startHealthCheck
(intervalMs = 30000)
gateway/src/services/orchestrator.ts:475
↓ 1 callers
Method
startScript
(id: string)
gateway/src/services/orchestrator.ts:429
↓ 1 callers
Method
stdDev
(values: number[])
gateway/src/services/style-clone.ts:383
↓ 1 callers
Method
stepNeedsFullManuscript
* Returns true if the step requires the FULL manuscript in context (not a * truncated excerpt). Revision-apply rewrites AND consistency checks must
gateway/src/services/step-executor.ts:151
↓ 1 callers
Method
stepWantsArchival
* True if this step should pull ARCHIVAL excerpts: revision / consistency * steps (by taskType or phase) or ANY step of a book-production project
gateway/src/services/projects.ts:1033
↓ 1 callers
Method
stop
()
gateway/src/services/heartbeat.ts:154
↓ 1 callers
Method
stopAll
()
gateway/src/services/orchestrator.ts:450
↓ 1 callers
Method
stopScript
(id: string)
gateway/src/services/orchestrator.ts:436
↓ 1 callers
Method
stripDisallowedTags
Remove any HTML tag that KDP doesn't accept.
gateway/src/services/kdp-exporter.ts:133
↓ 1 callers
Method
stripTags
Strip all HTML tags for the plain-text fallback.
gateway/src/services/kdp-exporter.ts:156
↓ 1 callers
Method
summarizeDealHistory
(prior: Array<{ date: string; priceUSD: number }> | undefined, warnings: string[])
gateway/src/services/bookbub-submitter.ts:137
↓ 1 callers
Method
summarizeProject
(p: ProjectLike)
gateway/src/services/manuscript-hub.ts:132
↓ 1 callers
Method
tagsForPostType
(postType: BlogPostType, genre?: string)
gateway/src/services/blog-post-drafter.ts:288
↓ 1 callers
Method
tick
()
gateway/src/services/heartbeat.ts:284
↓ 1 callers
Method
transcribeViaWhisper
Whisper API transcription. Downloads audio-only, transcribes, deletes audio.
gateway/src/services/video-research.ts:272
↓ 1 callers
Method
translateChunk
* Translate a single chunk with one retry. Never throws — on double failure * it returns { failed: true } so the caller can emit an error marker an
gateway/src/services/translation-pipeline.ts:588
↓ 1 callers
Method
unlinkProject
(siteId: string, projectId: string)
gateway/src/services/website-sites.ts:184
↓ 1 callers
Method
updateAllowedUsers
Update allowed users on a live bridge (called when dashboard saves users)
gateway/src/bridges/telegram.ts:776
↓ 1 callers
Method
updateAutonomousConfig
* Update autonomous configuration at runtime
gateway/src/services/heartbeat.ts:252
↓ 1 callers
Method
updateEvent
(id: string, patch: Partial<CalendarEvent>)
gateway/src/services/release-calendar.ts:67
↓ 1 callers
Method
updateJob
(id: string, updates: Partial<Omit<CronJob, 'id' | 'createdAt' | 'lastRunAt' | 'runCount'>>)
gateway/src/services/cron-scheduler.ts:238
↓ 1 callers
Method
updateMetadata
(launchId: string, metadata: Partial<LaunchMetadata>)
gateway/src/services/launch-orchestrator.ts:159
↓ 1 callers
Method
updatePromise
(projectId: string, promiseId: string, patch: Partial<PlotPromise>)
gateway/src/services/plot-promises.ts:302
↓ 1 callers
Method
updateTelegramUsers
(users: string[])
gateway/src/index.ts:1801
↓ 1 callers
Function
validateCronExpression
(expr: string)
gateway/src/services/cron-scheduler.ts:350
↓ 1 callers
Method
validateFrontmatter
* Lightweight frontmatter validation. Warns (once per skill) about * missing/malformed fields; never throws — the skill still loads with * whate
gateway/src/skills/loader.ts:109
↓ 1 callers
Function
validateKeyFormat
(keyName: string, value: string)
gateway/src/api/context.ts:33
↓ 1 callers
Method
walkDir
(dir: string, results: string[], maxFiles: number)
gateway/src/services/author-os.ts:539
↓ 1 callers
Method
wrapTitle
* Wrap a title into lines of roughly `maxCharsPerLine` without breaking words. * Aims for 1-3 lines. Single-word titles return as one line.
gateway/src/services/cover-typography.ts:274
Method
activityLog
()
gateway/src/index.ts:134
Method
addPart
(text: string)
gateway/src/services/context-engine.ts:562
Method
addPart
(block: string)
gateway/src/services/memory-tier.ts:144
Method
addStep
(dayOffset: number, phase: LaunchPhase, action: string, platform: string, risk: LaunchPlan['timeline'][0
gateway/src/services/launch-orchestrator.ts:194
Function
aiCompleteFn
(request: any)
gateway/src/api/routes/context-heartbeat.ts:46
Function
aiCompleteFn
(r: any)
gateway/src/api/routes/manuscript-quality.ts:71
Method
aiCompleteFn
(req: any)
gateway/src/index.ts:1361
Method
aiCompleteFn
(req: any)
gateway/src/services/step-executor.ts:559
Method
aiRouter
()
gateway/src/index.ts:136
Function
aiSelectFn
(taskType: string)
gateway/src/api/routes/context-heartbeat.ts:47
Function
aiSelectFn
(t: string)
gateway/src/api/routes/manuscript-quality.ts:72
Method
aiSelectFn
(taskType: string)
gateway/src/index.ts:1362
Method
aiSelectFn
(taskType: string)
gateway/src/services/step-executor.ts:560
Method
amsAds
()
gateway/src/index.ts:234
Method
analyze
* Analyze a sanitized review set and produce the intelligence report. * All clustering is keyword-based (no AI embeddings) so it's deterministic
gateway/src/services/reader-intel.ts:141
Method
analyze
* Run the full craft analysis on a set of chapters.
gateway/src/services/craft-critic.ts:139
Method
appearances
(name: string, aliases: string[])
gateway/src/services/sleep-consolidation.ts:440
Method
asArray
(v: any)
gateway/src/services/beta-reader.ts:136
Method
audiobookPrep
()
gateway/src/index.ts:220
Method
audit
()
gateway/src/index.ts:143
Method
audit
* Audit a project's promises against current progress. Returns a report * highlighting at-risk promises (still open near the end of the manuscript)
gateway/src/services/plot-promises.ts:421
Method
authorOS
()
gateway/src/index.ts:152
Method
autoAdvanceWordCountGoals
* Auto-advance word-count goals using current project word counts. * Call this after step completions / via heartbeat.
gateway/src/services/goals.ts:191
Method
autoExecuteLoop
* Fully autonomous mode: loop over ALL active steps of a project, executing * each through the message pipeline. Long-running — can run for many mi
gateway/src/services/step-executor.ts:325
Method
autoSkill
()
gateway/src/index.ts:174
Method
avg
(arr: ChapterMetrics[])
gateway/src/services/craft-critic.ts:418
Method
awaitDecision
Async helper: poll every `intervalMs` until a terminal state or timeout.
gateway/src/services/confirmation-gate.ts:262
Method
betaReader
()
gateway/src/index.ts:202
Method
blogPostDrafter
()
gateway/src/index.ts:190
Method
bookbub
()
gateway/src/index.ts:236
Method
broadcastTelegram
* Broadcast a message to all Telegram users. * Used by routes for conductor status updates.
gateway/src/index.ts:1748
Method
build
* Build the full static site to workspace/website/<slug>/. * Returns the output directory path plus a list of pages and warnings.
gateway/src/services/website-builder.ts:114
Method
buildContext
* Format the user model for system-prompt injection. Keeps the size small * (~300 tokens) so it doesn't dominate context.
gateway/src/services/user-model.ts:419
Method
buildContext
(maxTokens = 300)
gateway/src/services/preferences.ts:311
Method
buildPromptContext
* Build a context block for injecting into AI prompts when this persona is assigned to a project.
gateway/src/services/personas.ts:142
Method
buildStepUserMessage
* Build the user message for project step execution. * Injects uploaded manuscript DIRECTLY into the user message so the AI can't * miss it. For
gateway/src/services/projects.ts:806
Method
characterVoices
()
gateway/src/index.ts:186
Method
check
(permission: keyof PermissionSet)
gateway/src/security/permissions.ts:65
Method
checkRateLimit
(channel: string)
gateway/src/security/permissions.ts:69
Method
clampContinue
(n: any)
gateway/src/services/beta-reader.ts:135
Method
clampTension
(n: any)
gateway/src/services/beta-reader.ts:134
Method
cleanup
* Clean up old audio files (older than 24 hours).
gateway/src/services/tts.ts:451
Method
cleanup
* Clean up old images (older than 7 days)
gateway/src/services/image-gen.ts:920
Method
closeList
()
gateway/src/services/kdp-exporter.ts:65
Method
computeAllProgress
Compute progress for all active goals (dashboard convenience).
gateway/src/services/goals.ts:276
Method
config
()
gateway/src/index.ts:122
← previous
next →
701–800 of 1,032, ranked by callers