MCPcopy Create free account

hub / github.com/Ckokoski/authorclaw / functions

Functions1,032 in github.com/Ckokoski/authorclaw

↓ 1 callersMethodbuildCSS
(config: WebsiteSiteConfig)
gateway/src/services/website-builder.ts:386
↓ 1 callersMethodbuildCharacterSheetsBlock
P2 — promoted character sheets, whole-item-or-skip within the p2 budget.
gateway/src/services/memory-tier.ts:210
↓ 1 callersMethodbuildClusters
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:179
↓ 1 callersMethodbuildContactPage
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:294
↓ 1 callersMethodbuildDefaultVoiceMap
* 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 callersMethodbuildDeployReadme
(config: WebsiteSiteConfig, outputDir: string)
gateway/src/services/website-builder.ts:432
↓ 1 callersMethodbuildDisagreementNote
Plain-English read of a craft↔market disagreement, when meaningful.
gateway/src/services/writing-judge.ts:646
↓ 1 callersMethodbuildDraft
* 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 callersMethodbuildDriftNote
(name: string, marker: string, expected: number, actual: number)
gateway/src/services/character-voices.ts:507
↓ 1 callersMethodbuildEntityFacts
* 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 callersMethodbuildFingerprints
* 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 callersMethodbuildIndex
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:181
↓ 1 callersMethodbuildNovelPipelineContext
* 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 callersFunctionbuildNovelPipelineSteps
( id: string, title: string, description: string, config: NovelPipelineConfig = {} )
gateway/src/services/project-templates.ts:1062
↓ 1 callersMethodbuildPlotThreadsBlock
* 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 callersMethodbuildPricePulsePlan
* 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 callersMethodbuildPriorContext
* Serialize the prior chapter summaries into a compact narrative-so-far block.
gateway/src/services/contradiction-detector.ts:281
↓ 1 callersMethodbuildProjectContext
* 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 callersMethodbuildPrompt
(archetype: BetaReaderArchetype)
gateway/src/services/beta-reader.ts:157
↓ 1 callersMethodbuildRSS
(input: WebsiteBuildInput)
gateway/src/services/website-builder.ts:301
↓ 1 callersMethodbuildReport
(input: DetectInput, contradictions: Contradiction[])
gateway/src/services/contradiction-detector.ts:294
↓ 1 callersMethodbuildSSML
* 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 callersFunctionbuildSafeEnv
Build a safe environment that doesn't leak sensitive vars
gateway/src/services/orchestrator.ts:52
↓ 1 callersMethodbuildSignature
1-line summary used in Persona context and audit log.
gateway/src/services/style-clone.ts:362
↓ 1 callersMethodbuildSitemap
(input: WebsiteBuildInput, pages: string[])
gateway/src/services/website-builder.ts:325
↓ 1 callersMethodbuildSlugMap
* 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 callersMethodbuildStepPreview
(step: LaunchPlan['timeline'][0], state: LaunchState)
gateway/src/services/launch-orchestrator.ts:337
↓ 1 callersMethodbuildStyleDigestBlock
* 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 callersMethodbuildSystemPrompt
* Build the complete system prompt with soul, memory, skills, and project context
gateway/src/services/message-pipeline.ts:478
↓ 1 callersMethodbuildSystemPrompt
* 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 callersMethodbuildTimeline
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:253
↓ 1 callersMethodbuildTranslationSystem
Build the strict translation system instruction, including the glossary.
gateway/src/services/translation-pipeline.ts:549
↓ 1 callersMethodbuildUserMessage
( request: BlogDraftRequest, project: { title: string; description: string; genre?:
gateway/src/services/blog-post-drafter.ts:217
↓ 1 callersMethodbuildWorldRulesBlock
P5 — active world rules (rule-type entities), whole-item-or-skip within budget.
gateway/src/services/memory-tier.ts:302
↓ 1 callersFunctioncalcSize
(dir: string)
gateway/src/api/routes/backup.ts:60
↓ 1 callersMethodcheckDecision
* Synchronous polling helper for workers. Checks if approved/rejected. * Call periodically, respecting the user's pace.
gateway/src/services/confirmation-gate.ts:256
↓ 1 callersMethodcheckOllama
(endpoint: string)
gateway/src/ai/router.ts:453
↓ 1 callersMethodcheckReminders
* 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 callersMethodcheckTimelineMonotonic
Check that timeline markers in the same chapter don't jump backwards illogically.
gateway/src/services/series-bible.ts:320
↓ 1 callersMethodchunkManuscript
* 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 callersMethodclampSentences
Clamp free text to at most N sentences.
gateway/src/services/sleep-consolidation.ts:645
↓ 1 callersMethodclassifyStoryShape
(metrics: ChapterMetrics[])
gateway/src/services/craft-critic.ts:414
↓ 1 callersMethodclose
Close the DB cleanly on shutdown.
gateway/src/services/memory-search.ts:493
↓ 1 callersMethodcompleteClaude
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:741
↓ 1 callersMethodcompleteGemini
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:672
↓ 1 callersMethodcompleteOllama
( provider: AIProvider, request: CompletionRequest )
gateway/src/ai/router.ts:602
↓ 1 callersMethodcompleteStep
* 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 callersMethodcomposeRationale
(input: { title: string; authorName: string; genre: string; suggestedPriceUSD?: number }, _warnings: string[])
gateway/src/services/bookbub-submitter.ts:148
↓ 1 callersMethodcomputeAggregate
Aggregate stats across all feedback.
gateway/src/services/beta-reader.ts:251
↓ 1 callersMethodcomputePromotedBaseline
Baseline top recurring characters, for the digest's promotedBaseline.
gateway/src/services/sleep-consolidation.ts:616
↓ 1 callersMethodcomputeRecentVelocity
* 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 callersMethodcomputeRepetitionIndex
(words: string[])
gateway/src/services/style-clone.ts:414
↓ 1 callersMethodcomputeStreak
* 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 callersMethodcomputeVariance
(values: number[])
gateway/src/services/craft-critic.ts:431
↓ 1 callersMethodconnectTelegram
()
gateway/src/index.ts:1754
↓ 1 callersMethodconsolidateProject
( target: { id: string; title: string; personaId?: string }, )
gateway/src/services/sleep-consolidation.ts:205
↓ 1 callersMethodcountAppearances
Total appearances across summary character lists + change-log entries.
gateway/src/services/memory-tier.ts:424
↓ 1 callersFunctioncreateAPIRoutes
(app: Application, gateway: any, rootDir?: string)
gateway/src/api/routes.ts:48
↓ 1 callersFunctioncreateApiContext
(app: Application, gateway: any, rootDir?: string)
gateway/src/api/context.ts:182
↓ 1 callersMethodcreateGoal
(input: { type: GoalType; title: string; description?: string; target: number; unit: strin
gateway/src/services/goals.ts:93
↓ 1 callersMethodcreateLaunch
(input: { projectId: string; bookTitle: string; authorName: string; targetReleaseDate: string;
gateway/src/services/launch-orchestrator.ts:125
↓ 1 callersMethodcreatePipeline
* 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 callersMethodcreateSeries
(input: { title: string; description?: string; projectIds?: string[]; readingOrder?: string[];
gateway/src/services/series-bible.ts:104
↓ 1 callersMethoddecideInjectionAction
* 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 callersMethoddedupe
* 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 callersMethoddeepMerge
(target: any, source: any)
gateway/src/services/config.ts:85
↓ 1 callersFunctiondefaultHits
()
gateway/src/services/message-pipeline-tiered.test.ts:95
↓ 1 callersMethoddefaultTitle
(postType: BlogPostType, bookTitle: string)
gateway/src/services/blog-post-drafter.ts:279
↓ 1 callersMethoddeleteJob
(id: string)
gateway/src/services/cron-scheduler.ts:253
↓ 1 callersMethoddeleteLaunch
(launchId: string)
gateway/src/services/launch-orchestrator.ts:179
↓ 1 callersMethoddeleteProject
* Delete a project
gateway/src/services/projects.ts:779
↓ 1 callersMethoddeletePromise
(projectId: string, promiseId: string)
gateway/src/services/plot-promises.ts:322
↓ 1 callersMethoddeleteSeries
(seriesId: string)
gateway/src/services/series-bible.ts:169
↓ 1 callersMethoddeployCloudflarePages
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:188
↓ 1 callersMethoddeployGithubPages
* 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 callersMethoddeployManualZip
(input: { siteId: string; siteDir: string; workspaceDir: string; })
gateway/src/services/website-deploy.ts:336
↓ 1 callersMethoddeployNetlify
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:174
↓ 1 callersMethoddeployRsync
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:321
↓ 1 callersMethoddeployVercel
(input: { siteDir: string; deployConfig: DeployConfig })
gateway/src/services/website-deploy.ts:182
↓ 1 callersMethoddetect
* 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 callersMethoddetectBeats
(chapters: Array<{ id: string; number: number; title: string; text: string }>)
gateway/src/services/craft-critic.ts:366
↓ 1 callersMethoddetectFlags
( metrics: ChapterMetrics[], chapters: Array<{ id: string; number: number; title: string; text: string
gateway/src/services/craft-critic.ts:252
↓ 1 callersMethoddetectFromMessage
(message: string)
gateway/src/services/preferences.ts:335
↓ 1 callersMethoddetectProviderForVoice
* 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 callersMethoddetectTropes
(reviews: SanitizedReview[])
gateway/src/services/reader-intel.ts:223
↓ 1 callersMethoddisableAutonomous
* Disable autonomous mode
gateway/src/services/heartbeat.ts:181
↓ 1 callersMethoddisconnectTelegram
()
gateway/src/index.ts:1791
↓ 1 callersMethoddraft
* 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 callersMethodenableAutonomous
* Enable autonomous mode at runtime (e.g., from dashboard or Telegram)
gateway/src/services/heartbeat.ts:167
↓ 1 callersMethodenforceCap
Keep the store bounded — drop oldest completed/rejected/expired.
gateway/src/services/confirmation-gate.ts:337
↓ 1 callersMethodenrichWithPriorResults
(prompt: string, project: Project)
gateway/src/services/projects.ts:1579
↓ 1 callersMethodentityKey
Key used to merge entities across books — canonical name lowercase.
gateway/src/services/series-bible.ts:269
↓ 1 callersMethodescapeBasicHTML
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 callersMethodescapeXml
(s: string)
gateway/src/services/audiobook-prep.ts:481
↓ 1 callersMethodestimateParallelism
(sentences: string[])
gateway/src/services/style-clone.ts:425
↓ 1 callersMethodestimatedCostFor
* 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 callersMethodexecuteApprovedTranslation
* 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 callersMethodexecutePythonTool
* Execute a Python tool with sandboxed output. * Cross-platform: tries python3 first, falls back to python.
gateway/src/services/author-os.ts:568
↓ 1 callersMethodexecuteStepWithRetry
* 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 callersMethodexecuteTranslation
* 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
← previousnext →401–500 of 1,032, ranked by callers