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
buildCSS
(config: WebsiteSiteConfig)
gateway/src/services/website-builder.ts:386
↓ 1 callers
Method
buildCharacterSheetsBlock
P2 — promoted character sheets, whole-item-or-skip within the p2 budget.
gateway/src/services/memory-tier.ts:210
↓ 1 callers
Method
buildClusters
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:179
↓ 1 callers
Method
buildContactPage
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:294
↓ 1 callers
Method
buildDefaultVoiceMap
* Build a default voice map from a character list. Distributes the * available preset voices across characters in a deterministic order so * the
gateway/src/services/audiobook-prep.ts:453
↓ 1 callers
Method
buildDeployReadme
(config: WebsiteSiteConfig, outputDir: string)
gateway/src/services/website-builder.ts:432
↓ 1 callers
Method
buildDisagreementNote
Plain-English read of a craft↔market disagreement, when meaningful.
gateway/src/services/writing-judge.ts:646
↓ 1 callers
Method
buildDraft
* Build a full submission draft. * The caller provides the basic info; this assembles the complete * BookBub-style blurb + rationale structure.
gateway/src/services/bookbub-submitter.ts:43
↓ 1 callers
Method
buildDriftNote
(name: string, marker: string, expected: number, actual: number)
gateway/src/services/character-voices.ts:507
↓ 1 callers
Method
buildEntityFacts
* Serialize the entity DB into a compact facts block the model diffs against. * Includes attributes AND the change-log so the model can tell an int
gateway/src/services/contradiction-detector.ts:257
↓ 1 callers
Method
buildFingerprints
* Build per-character voice fingerprints from a set of extracted lines. * Requires at least 3 lines per character to produce a fingerprint.
gateway/src/services/dialogue-auditor.ts:172
↓ 1 callers
Method
buildIndex
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:181
↓ 1 callers
Method
buildNovelPipelineContext
* Build phase-aware context for novel pipeline steps. * Each phase gets relevant prior outputs without overwhelming the context window.
gateway/src/services/projects.ts:1198
↓ 1 callers
Function
buildNovelPipelineSteps
( id: string, title: string, description: string, config: NovelPipelineConfig = {} )
gateway/src/services/project-templates.ts:1062
↓ 1 callers
Method
buildPlotThreadsBlock
* P3 — open plot threads. Prefers the sleep-job digest's openThreads (which * has already excluded resolved threads); falls back to the live union
gateway/src/services/memory-tier.ts:245
↓ 1 callers
Method
buildPricePulsePlan
* Generate a standard price-pulse plan for a title. * Default: $0.99 launch → $2.99 day 7 → $3.99 day 30 → $4.99 day 60.
gateway/src/services/release-calendar.ts:98
↓ 1 callers
Method
buildPriorContext
* Serialize the prior chapter summaries into a compact narrative-so-far block.
gateway/src/services/contradiction-detector.ts:281
↓ 1 callers
Method
buildProjectContext
* Build the system prompt addition for a project step. * This tells the AI what context it's operating in.
gateway/src/services/projects.ts:863
↓ 1 callers
Method
buildPrompt
(archetype: BetaReaderArchetype)
gateway/src/services/beta-reader.ts:157
↓ 1 callers
Method
buildRSS
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:301
↓ 1 callers
Method
buildReport
(input: DetectInput, contradictions: Contradiction[])
gateway/src/services/contradiction-detector.ts:294
↓ 1 callers
Method
buildSSML
* Pass 3: Build SSML for a set of cleaned chapters. * * @param aiNarrationDisclosed - Must be true for AI narration. Gates SSML * suitable
gateway/src/services/audiobook-prep.ts:232
↓ 1 callers
Function
buildSafeEnv
Build a safe environment that doesn't leak sensitive vars
gateway/src/services/orchestrator.ts:52
↓ 1 callers
Method
buildSignature
1-line summary used in Persona context and audit log.
gateway/src/services/style-clone.ts:362
↓ 1 callers
Method
buildSitemap
(input: WebsiteBuildInput, pages: string[])
gateway/src/services/website-builder.ts:325
↓ 1 callers
Method
buildSlugMap
* Build a map of project SLUG → { projectId, personaId } for FTS ownership * backfill. Only slugs that map to EXACTLY one project are included — wh
gateway/src/services/sleep-consolidation.ts:599
↓ 1 callers
Method
buildStepPreview
(step: LaunchPlan['timeline'][0], state: LaunchState)
gateway/src/services/launch-orchestrator.ts:337
↓ 1 callers
Method
buildStyleDigestBlock
* P4 — style digest. Precedence: digest.styleDigest, else first 600 chars of * workspace/soul/STYLE-GUIDE.md if it exists, else nothing.
gateway/src/services/memory-tier.ts:275
↓ 1 callers
Method
buildSystemPrompt
* Build the complete system prompt with soul, memory, skills, and project context
gateway/src/services/message-pipeline.ts:478
↓ 1 callers
Method
buildSystemPrompt
* Build an AI system-prompt block describing the voice profile in plain * English so the LLM can match it when writing new prose.
gateway/src/services/style-clone.ts:303
↓ 1 callers
Method
buildTimeline
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:253
↓ 1 callers
Method
buildTranslationSystem
Build the strict translation system instruction, including the glossary.
gateway/src/services/translation-pipeline.ts:549
↓ 1 callers
Method
buildUserMessage
( request: BlogDraftRequest, project: { title: string; description: string; genre?:
gateway/src/services/blog-post-drafter.ts:217
↓ 1 callers
Method
buildWorldRulesBlock
P5 — active world rules (rule-type entities), whole-item-or-skip within budget.
gateway/src/services/memory-tier.ts:302
↓ 1 callers
Function
calcSize
(dir: string)
gateway/src/api/routes/backup.ts:60
↓ 1 callers
Method
checkDecision
* Synchronous polling helper for workers. Checks if approved/rejected. * Call periodically, respecting the user's pace.
gateway/src/services/confirmation-gate.ts:256
↓ 1 callers
Method
checkOllama
(endpoint: string)
gateway/src/ai/router.ts:453
↓ 1 callers
Method
checkReminders
* Reminder engine — sends motivational nudges via WebSocket + Telegram. * Max 1 reminder per hour to avoid spam. * * Three reminder types:
gateway/src/services/heartbeat.ts:325
↓ 1 callers
Method
checkTimelineMonotonic
Check that timeline markers in the same chapter don't jump backwards illogically.
gateway/src/services/series-bible.ts:320
↓ 1 callers
Method
chunkManuscript
* Split a manuscript into translation chunks on paragraph boundaries, * packing paragraphs greedily up to CHUNK_CHAR_BUDGET. Preserves the blank
gateway/src/services/translation-pipeline.ts:527
↓ 1 callers
Method
clampSentences
Clamp free text to at most N sentences.
gateway/src/services/sleep-consolidation.ts:645
↓ 1 callers
Method
classifyStoryShape
(metrics: ChapterMetrics[])
gateway/src/services/craft-critic.ts:414
↓ 1 callers
Method
close
Close the DB cleanly on shutdown.
gateway/src/services/memory-search.ts:493
↓ 1 callers
Method
completeClaude
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:741
↓ 1 callers
Method
completeGemini
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:672
↓ 1 callers
Method
completeOllama
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:602
↓ 1 callers
Method
completeStep
* Complete the current step and advance to the next. * Returns the next step, or null if the project is complete.
gateway/src/services/projects.ts:595
↓ 1 callers
Method
composeRationale
(input: { title: string; authorName: string; genre: string; suggestedPriceUSD?: number }, _warnings: string[])
gateway/src/services/bookbub-submitter.ts:148
↓ 1 callers
Method
computeAggregate
Aggregate stats across all feedback.
gateway/src/services/beta-reader.ts:251
↓ 1 callers
Method
computePromotedBaseline
Baseline top recurring characters, for the digest's promotedBaseline.
gateway/src/services/sleep-consolidation.ts:616
↓ 1 callers
Method
computeRecentVelocity
* Bucket the last N days of activity by day, summing wordCount from * file_saved metadata and counting step_completed events.
gateway/src/services/manuscript-hub.ts:171
↓ 1 callers
Method
computeRepetitionIndex
(words: string[])
gateway/src/services/style-clone.ts:414
↓ 1 callers
Method
computeStreak
* Count consecutive days meeting the word goal, ending today. * If today is below goal but yesterday is hit, return 0 (broken streak).
gateway/src/services/manuscript-hub.ts:208
↓ 1 callers
Method
computeVariance
(values: number[])
gateway/src/services/craft-critic.ts:431
↓ 1 callers
Method
connectTelegram
()
gateway/src/index.ts:1754
↓ 1 callers
Method
consolidateProject
( target: { id: string; title: string; personaId?: string }, )
gateway/src/services/sleep-consolidation.ts:205
↓ 1 callers
Method
countAppearances
Total appearances across summary character lists + change-log entries.
gateway/src/services/memory-tier.ts:424
↓ 1 callers
Function
createAPIRoutes
(app: Application, gateway: any, rootDir?: string)
gateway/src/api/routes.ts:48
↓ 1 callers
Function
createApiContext
(app: Application, gateway: any, rootDir?: string)
gateway/src/api/context.ts:182
↓ 1 callers
Method
createGoal
(input: { type: GoalType; title: string; description?: string; target: number; unit: strin
gateway/src/services/goals.ts:93
↓ 1 callers
Method
createLaunch
(input: { projectId: string; bookTitle: string; authorName: string; targetReleaseDate: string;
gateway/src/services/launch-orchestrator.ts:125
↓ 1 callers
Method
createPipeline
* Create a full pipeline: chains all 6 project phases from a single idea. * Each phase is a separate sub-project linked by pipelineId.
gateway/src/services/projects.ts:1422
↓ 1 callers
Method
createSeries
(input: { title: string; description?: string; projectIds?: string[]; readingOrder?: string[];
gateway/src/services/series-bible.ts:104
↓ 1 callers
Method
decideInjectionAction
* Decide whether an injection detection should hard-block or downgrade to a * warning, using channel + task context. Called from handleMessage.
gateway/src/services/message-pipeline.ts:390
↓ 1 callers
Method
dedupe
* De-duplicate findings. Two findings are duplicates when they share the * same category + location AND have a "similar" description (normalized:
gateway/src/services/revision-orchestrator.ts:434
↓ 1 callers
Method
deepMerge
(target: any, source: any)
gateway/src/services/config.ts:85
↓ 1 callers
Function
defaultHits
()
gateway/src/services/message-pipeline-tiered.test.ts:95
↓ 1 callers
Method
defaultTitle
(postType: BlogPostType, bookTitle: string)
gateway/src/services/blog-post-drafter.ts:279
↓ 1 callers
Method
deleteJob
(id: string)
gateway/src/services/cron-scheduler.ts:253
↓ 1 callers
Method
deleteLaunch
(launchId: string)
gateway/src/services/launch-orchestrator.ts:179
↓ 1 callers
Method
deleteProject
* Delete a project
gateway/src/services/projects.ts:779
↓ 1 callers
Method
deletePromise
(projectId: string, promiseId: string)
gateway/src/services/plot-promises.ts:322
↓ 1 callers
Method
deleteSeries
(seriesId: string)
gateway/src/services/series-bible.ts:169
↓ 1 callers
Method
deployCloudflarePages
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:188
↓ 1 callers
Method
deployGithubPages
* github-pages: init a scratch git repo *inside the rendered output dir*, * commit everything, and force-push it to the configured remote branch
gateway/src/services/website-deploy.ts:212
↓ 1 callers
Method
deployManualZip
(input: { siteId: string; siteDir: string; workspaceDir: string; })
gateway/src/services/website-deploy.ts:336
↓ 1 callers
Method
deployNetlify
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:174
↓ 1 callers
Method
deployRsync
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:321
↓ 1 callers
Method
deployVercel
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:182
↓ 1 callers
Method
detect
* Rich detection: returns ALL matched patterns and a severity hint. The call * site combines `hasHardPattern` with channel/task context to pick the
gateway/src/security/injection.ts:95
↓ 1 callers
Method
detectBeats
(chapters: Array<{ id: string; number: number; title: string; text: string }>)
gateway/src/services/craft-critic.ts:366
↓ 1 callers
Method
detectFlags
( metrics: ChapterMetrics[], chapters: Array<{ id: string; number: number; title: string; text: string
gateway/src/services/craft-critic.ts:252
↓ 1 callers
Method
detectFromMessage
(message: string)
gateway/src/services/preferences.ts:335
↓ 1 callers
Method
detectProviderForVoice
* Detect which provider a given voice ID belongs to. * - Edge voices look like 'en-US-AriaNeural' (lang-region-name pattern) * - ElevenLabs voic
gateway/src/services/tts.ts:212
↓ 1 callers
Method
detectTropes
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:223
↓ 1 callers
Method
disableAutonomous
* Disable autonomous mode
gateway/src/services/heartbeat.ts:181
↓ 1 callers
Method
disconnectTelegram
()
gateway/src/index.ts:1791
↓ 1 callers
Method
draft
* Draft a blog post from project artifacts. Caller passes the project + * optional supplemental fields (excerpt text, author angle), this service
gateway/src/services/blog-post-drafter.ts:139
↓ 1 callers
Method
enableAutonomous
* Enable autonomous mode at runtime (e.g., from dashboard or Telegram)
gateway/src/services/heartbeat.ts:167
↓ 1 callers
Method
enforceCap
Keep the store bounded — drop oldest completed/rejected/expired.
gateway/src/services/confirmation-gate.ts:337
↓ 1 callers
Method
enrichWithPriorResults
(prompt: string, project: Project)
gateway/src/services/projects.ts:1579
↓ 1 callers
Method
entityKey
Key used to merge entities across books — canonical name lowercase.
gateway/src/services/series-bible.ts:269
↓ 1 callers
Method
escapeBasicHTML
Escape HTML chars in a string. Used by the website-sites hook so we * don't pass user-supplied project descriptions raw into a book blurb.
gateway/src/index.ts:1218
↓ 1 callers
Method
escapeXml
(s: string)
gateway/src/services/audiobook-prep.ts:481
↓ 1 callers
Method
estimateParallelism
(sentences: string[])
gateway/src/services/style-clone.ts:425
↓ 1 callers
Method
estimatedCostFor
* Estimate the cost of a launch step, sourced from the central pricing * table (pricing.ts). Every step returns SOME estimate — even if it's an
gateway/src/services/launch-orchestrator.ts:372
↓ 1 callers
Method
executeApprovedTranslation
* Gate-aware wrapper: given an APPROVED translation ConfirmationRequest id, * verify it's actually approved, run executeTranslation, and record the
gateway/src/services/translation-pipeline.ts:481
↓ 1 callers
Method
executePythonTool
* Execute a Python tool with sandboxed output. * Cross-platform: tries python3 first, falls back to python.
gateway/src/services/author-os.ts:568
↓ 1 callers
Method
executeStepWithRetry
* Execute the project's currently-active step through the injected message * handler, with a single short-response retry that falls back to free-ti
gateway/src/services/projects.ts:823
↓ 1 callers
Method
executeTranslation
* EXECUTE a translation. This is what runs *after* a translation * ConfirmationRequest has been APPROVED — it is the side effect behind the * ga
gateway/src/services/translation-pipeline.ts:396
← previous
next →
401–500 of 1,032, ranked by callers