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
↓ 7 callers
Method
shell
(config: WebsiteSiteConfig, pageTitle: string, content: string, hasAffiliateLinks: boolean)
gateway/src/services/website-builder.ts:338
↓ 7 callers
Function
splitParagraphs
(chapterText: string)
gateway/src/services/dialogue-parser.ts:41
↓ 7 callers
Function
startsWithQuote
(trimmedParagraph: string)
gateway/src/services/dialogue-parser.ts:49
↓ 7 callers
Method
stepIsFullRewrite
* Narrower signal: the step actually REWRITES the whole manuscript (macro / * scene / line revision-apply). This is the original stepNeedsFullManus
gateway/src/services/step-executor.ts:169
↓ 6 callers
Function
aiSelectProvider
(taskType)
gateway/src/services/sleep-consolidation.test.ts:123
↓ 6 callers
Method
getImageGen
()
gateway/src/index.ts:1236
↓ 6 callers
Method
getSkillByName
* Get a specific skill by name (returns full content for injection into prompt).
gateway/src/skills/loader.ts:278
↓ 6 callers
Method
getSkillCatalog
* Return a lightweight catalog of all loaded skills (for AI task planning). * Includes name, description, triggers, category — but NOT the full con
gateway/src/skills/loader.ts:265
↓ 6 callers
Method
getStatus
()
gateway/src/services/orchestrator.ts:317
↓ 6 callers
Method
lookup
* Look up research on a topic. Tries (in order): * 1. Direct Perplexity API if PERPLEXITY_API_KEY is in the vault * 2. OpenRouter routing to
gateway/src/services/research-lookup.ts:80
↓ 6 callers
Method
persist
()
gateway/src/services/launch-orchestrator.ts:391
↓ 6 callers
Method
priceFor
* Build model-aware pricing for a provider's active model. Uses the * per-model LLM_PRICING table, falling back to the provider's historical * h
gateway/src/ai/router.ts:232
↓ 6 callers
Function
scanDir
(name: string, dirPath: string, listItems = true)
gateway/src/api/routes/documents.ts:361
↓ 6 callers
Function
seedSummaries
Seed a ContextEngine cache (on disk + loaded) with two chapter summaries.
gateway/src/services/message-pipeline-tiered.test.ts:53
↓ 6 callers
Method
setContextEngine
(engine: ContextEngine)
gateway/src/services/projects.ts:254
↓ 6 callers
Method
setGlobalPreferredProvider
* Set or clear the global preferred provider. * When set, this provider is tried first for ALL tasks before tier routing.
gateway/src/ai/router.ts:468
↓ 6 callers
Method
shellQuote
Shell-quote a string for both POSIX and Windows.
gateway/src/services/video-research.ts:365
↓ 5 callers
Method
audit
(category: string, action: string, meta: Record<string, any>)
gateway/src/services/confirmation-gate.ts:360
↓ 5 callers
Function
char
( name: string, overrides: Partial<EntityEntry> = {}, )
gateway/src/services/memory-tier.test.ts:16
↓ 5 callers
Method
checkReset
()
gateway/src/services/costs.ts:119
↓ 5 callers
Method
disconnect
()
gateway/src/bridges/discord.ts:12
↓ 5 callers
Method
generate
* Generate audio from text. Dispatches to the right provider based on * options.provider, options.voice fingerprint, or the configured default.
gateway/src/services/tts.ts:227
↓ 5 callers
Function
generateDocxBuffer
(options: DocxExportOptions)
gateway/src/services/docx-export.ts:38
↓ 5 callers
Method
get
(id: string)
gateway/src/services/confirmation-gate.ts:188
↓ 5 callers
Method
getAvailableTools
Return the keys of every tool whose directory exists
gateway/src/services/author-os.ts:76
↓ 5 callers
Method
getFallbackProvider
* Get fallback provider if primary fails. * Respects the budget cap — skips paid providers when the user is over budget, * preferring free provi
gateway/src/ai/router.ts:526
↓ 5 callers
Function
makeCharacterVoices
(opts: { flags?: any[]; throws?: boolean } = {})
gateway/src/services/revision-orchestrator.test.ts:62
↓ 5 callers
Function
makeCraftCritic
(opts: { flags?: any[]; throws?: boolean } = {})
gateway/src/services/revision-orchestrator.test.ts:85
↓ 5 callers
Function
makeDialogueAuditor
(opts: { flags?: any[] } = {})
gateway/src/services/revision-orchestrator.test.ts:102
↓ 5 callers
Function
makeEntities
()
gateway/src/services/contradiction-detector.test.ts:12
↓ 5 callers
Method
parseAIJson
(text: string)
gateway/src/services/context-engine.ts:170
↓ 5 callers
Method
persist
()
gateway/src/services/series-bible.ts:357
↓ 5 callers
Method
persist
(projectId: string)
gateway/src/services/plot-promises.ts:206
↓ 5 callers
Method
persist
()
gateway/src/services/confirmation-gate.ts:348
↓ 5 callers
Method
registerSynthetic
* Register synthetic skills generated at runtime — e.g., from Author OS tools. * No SKILL.md file is required; the data is provided directly. *
gateway/src/skills/loader.ts:77
↓ 5 callers
Method
reinitialize
* Re-scan the vault for API keys and rebuild the provider list. * Called after storing a new API key so the router picks it up * without requiri
gateway/src/ai/router.ts:382
↓ 5 callers
Method
runCommand
( cmd: string, target: DeployTarget, startMs: number, urlRegex?: RegExp, )
gateway/src/services/website-deploy.ts:374
↓ 5 callers
Function
runMarketingPreset
* Marketing-research presets. Each route maps to a structured preset * on ResearchLookupService that builds a tightly-scoped Perplexity * query
gateway/src/api/routes/research-lookup.ts:35
↓ 5 callers
Method
safeReadFile
Safely read a file, returning null on any error
gateway/src/services/author-os.ts:485
↓ 5 callers
Function
safeResolveWithin
(baseDir: string, ...segments: string[])
gateway/src/security/paths.ts:77
↓ 5 callers
Method
search
* Search for research content using multiple free APIs. * Primary: Wikipedia API (always works, no CAPTCHA, great for author research). * Also s
gateway/src/services/research.ts:131
↓ 5 callers
Method
setAndPersist
Set a value and persist it to config/user.json so it survives restarts.
gateway/src/services/config.ts:68
↓ 5 callers
Method
stepNeedsFullManuscript
* Returns true if the step requires the FULL manuscript in context (not a * truncated excerpt). Revision-apply steps must see the whole book to rew
gateway/src/services/projects.ts:796
↓ 4 callers
Function
applyProjectOptions
(project: any)
gateway/src/api/routes/projects.ts:87
↓ 4 callers
Method
autoRunProject
* AUTONOMOUS AUTO-RUN: Execute ALL remaining steps of a project in sequence. * Sends Telegram status updates via the callback after each step.
gateway/src/index.ts:2142
↓ 4 callers
Method
build
* Build the hub report from the live project engine + activity log state. * No disk reads — all data comes from in-memory services.
gateway/src/services/manuscript-hub.ts:81
↓ 4 callers
Method
contextDir
()
gateway/src/services/context-engine.ts:313
↓ 4 callers
Method
doctor
Probe binary availability + key config. Used by /api/video/doctor.
gateway/src/services/video-research.ts:118
↓ 4 callers
Method
enabled
(level: LogLevel)
gateway/src/services/logger.ts:51
↓ 4 callers
Function
fakeSearch
A fake MemorySearchService returning a fixed manuscript hit for any query.
gateway/src/services/message-pipeline-tiered.test.ts:89
↓ 4 callers
Method
findFilesByExtension
Recursively collect all files with a given extension
gateway/src/services/author-os.ts:514
↓ 4 callers
Method
format
(message: string)
gateway/src/services/logger.ts:55
↓ 4 callers
Method
getActiveProvider
()
gateway/src/services/tts.ts:178
↓ 4 callers
Method
getAll
Return a copy of all overrides.
gateway/src/ai/model-config.ts:77
↓ 4 callers
Method
getOpenPlotThreads
* Returns the deduped union of open plot threads across all chapter summaries. * Pure in-memory read over cached ProjectContext — never AI-calls, n
gateway/src/services/context-engine.ts:887
↓ 4 callers
Method
getSnapshot
Read the current snapshot — does not trigger consolidation.
gateway/src/services/user-model.ts:395
↓ 4 callers
Method
getStatus
()
gateway/src/services/costs.ts:99
↓ 4 callers
Method
isConfigured
Whether we have enough to attempt a live call. Does not guarantee the * key is valid — just that it's worth trying.
gateway/src/services/bestseller-trends.ts:142
↓ 4 callers
Function
makeAiSelect
A recording aiSelectProvider — captures the task types each pass requests.
gateway/src/services/revision-orchestrator.test.ts:128
↓ 4 callers
Method
mean
(values: number[])
gateway/src/services/style-clone.ts:380
↓ 4 callers
Function
novelProject
A novel-pipeline project with two completed writing chapters + a revision step.
gateway/src/services/projects-tiered.test.ts:91
↓ 4 callers
Method
pauseProject
* Pause a project
gateway/src/services/projects.ts:763
↓ 4 callers
Method
persist
()
gateway/src/services/personas.ts:67
↓ 4 callers
Method
recomputeNextRun
(job: CronJob)
gateway/src/services/cron-scheduler.ts:278
↓ 4 callers
Method
registerHandler
Register a named handler. Cron jobs reference handlers by name only.
gateway/src/services/cron-scheduler.ts:178
↓ 4 callers
Method
reindexAll
* Index every JSONL conversation file + every project step output file * found on disk. Idempotent — re-running picks up only new entries. * Use
gateway/src/services/memory-search.ts:284
↓ 4 callers
Method
reset
Manual reset — used by dashboard "reset budget" button.
gateway/src/services/costs.ts:111
↓ 4 callers
Method
saveImage
(buffer: Buffer, provider: string, model: string, width: number, height: number)
gateway/src/services/image-gen.ts:813
↓ 4 callers
Method
schedulePersist
()
gateway/src/services/goals.ts:284
↓ 4 callers
Method
schedulePersist
()
gateway/src/services/cron-scheduler.ts:329
↓ 4 callers
Method
setAI
* Wire up AI capabilities so ProjectEngine can call the AI for dynamic planning. * Called after the router is initialized in index.ts.
gateway/src/services/projects.ts:249
↓ 4 callers
Method
setVoice
(voice: string)
gateway/src/services/tts.ts:156
↓ 4 callers
Method
start
()
gateway/src/services/orchestrator.ts:173
↓ 4 callers
Method
stop
()
gateway/src/services/orchestrator.ts:273
↓ 4 callers
Method
titleFromUrl
(url: string)
gateway/src/services/research-lookup.ts:269
↓ 3 callers
Method
audit
End-to-end: extract → fingerprint → flag.
gateway/src/services/dialogue-auditor.ts:309
↓ 3 callers
Method
buildContext
(maxTokens = 500)
gateway/src/services/lessons.ts:143
↓ 3 callers
Method
buildTelegramCommandHandlers
* Build command handlers for the Telegram bridge. * These let Telegram commands directly interact with GoalEngine, * file system, and AI — witho
gateway/src/index.ts:1812
↓ 3 callers
Method
buildUserPrompt
(query: string, maxWords: number)
gateway/src/services/research-lookup.ts:204
↓ 3 callers
Method
checkRateLimit
()
gateway/src/services/research.ts:81
↓ 3 callers
Method
child
Returns a child logger that prepends `tag` (e.g. "[skills]") to every * message. Useful for tagging output from a specific component without *
gateway/src/services/logger.ts:86
↓ 3 callers
Method
collectReadableFiles
Recursively collect all readable files (up to 500 to prevent runaway)
gateway/src/services/author-os.ts:533
↓ 3 callers
Method
completeOpenAICompatible
( provider: AIProvider, request: CompletionRequest, vaultKey: string )
gateway/src/ai/router.ts:805
↓ 3 callers
Method
completeStep
(projectId: string, stepId: string, result: string)
gateway/src/services/step-executor.ts:78
↓ 3 callers
Method
computeProgress
* Compute derived progress metrics: pace, projected completion, at-risk flag.
gateway/src/services/goals.ts:212
↓ 3 callers
Method
connect
()
gateway/src/bridges/discord.ts:8
↓ 3 callers
Method
create
(input: Partial<AuthorPersona> & { penName: string })
gateway/src/services/personas.ts:81
↓ 3 callers
Method
createNovelPipeline
* Create a full novel pipeline project with 30+ steps covering all phases: * premise → book bible → outline → writing → revision → assembly
gateway/src/services/projects.ts:290
↓ 3 callers
Method
createProject
* Create a project using DYNAMIC AI PLANNING. * The AI figures out the steps, skills, and tools needed. * Falls back to template-based p
gateway/src/index.ts:1822
↓ 3 callers
Method
envPath
Repo .env path (two levels up from config/.vault).
gateway/src/security/vault.ts:90
↓ 3 callers
Function
escapeRegex
(s: string)
gateway/src/services/dialogue-parser.ts:126
↓ 3 callers
Method
expireOne
(req: ConfirmationRequest)
gateway/src/services/confirmation-gate.ts:323
↓ 3 callers
Method
extractEntities
* Extract entities from a chapter and merge with existing entity index.
gateway/src/services/context-engine.ts:448
↓ 3 callers
Method
extractRunsText
Extract run text (<w:t>) from any XML fragment.
gateway/src/services/track-changes.ts:239
↓ 3 callers
Method
fetch
(url: string)
gateway/src/services/research.ts:89
↓ 3 callers
Method
freeComplete
* Select a FREE-tier provider for `taskType` and run a completion, counting * it against the per-project budget. Throws (caught by the pass guard)
gateway/src/services/sleep-consolidation.ts:308
↓ 3 callers
Method
getActiveProjectId
Get the project currently tagging new conversation turns.
gateway/src/services/memory.ts:66
↓ 3 callers
Method
getActivityLog
()
gateway/src/index.ts:1240
↓ 3 callers
Method
getAuthorSkillCount
()
gateway/src/skills/loader.ts:247
↓ 3 callers
Method
getCacheStats
* Returns prompt cache statistics for the dashboard
gateway/src/ai/router.ts:586
← previous
next →
101–200 of 1,032, ranked by callers