MCPcopy Create free account

hub / github.com/Ckokoski/authorclaw / functions

Functions1,032 in github.com/Ckokoski/authorclaw

↓ 3 callersMethodgetEntities
* Returns the full entity list for a project.
gateway/src/services/context-engine.ts:875
↓ 3 callersMethodgetPremiumSkillCount
()
gateway/src/skills/loader.ts:251
↓ 3 callersMethodgetProject
(id: string)
gateway/src/services/sleep-consolidation.ts:70
↓ 3 callersMethodgetProviderModelInfo
* Describe every known provider's model config for the settings UI: * current active model, hardcoded default, tier, known-model list, and the *
gateway/src/ai/router.ts:416
↓ 3 callersMethodgetSkillsByCategory
* Get skills grouped by category for dashboard display.
gateway/src/skills/loader.ts:285
↓ 3 callersMethodisAllowed
(url: string)
gateway/src/services/research.ts:60
↓ 3 callersMethodisCloudSyncedPath
* Returns true if the given path appears to live inside a cloud-sync folder * (OneDrive / Dropbox / Google Drive). Used to warn loudly when the key
gateway/src/security/vault.ts:99
↓ 3 callersMethodisExpired
(req: ConfirmationRequest)
gateway/src/services/confirmation-gate.ts:319
↓ 3 callersMethodisOverBudget
()
gateway/src/services/costs.ts:88
↓ 3 callersMethodisQuietHours
(hour: number)
gateway/src/services/heartbeat.ts:630
↓ 3 callersMethodkeyFilePath
Absolute path to the out-of-repo key file.
gateway/src/security/vault.ts:85
↓ 3 callersMethodlistHandlers
()
gateway/src/services/cron-scheduler.ts:182
↓ 3 callersMethodlistSeries
()
gateway/src/services/series-bible.ts:164
↓ 3 callersMethodllmJudge
Run the LLM judge — one AI call, structured JSON output. * @param kind Which lens to apply: 'craft' (developmental editor) or * 'm
gateway/src/services/writing-judge.ts:440
↓ 3 callersMethodload
(projectId: string)
gateway/src/services/character-voices.ts:153
↓ 3 callersMethodmaybeConsolidate
* Run the periodic LLM consolidation. Updates snapshot.narrative. * Returns null if consolidation didn't run (no AI wired, or budget cap).
gateway/src/services/user-model.ts:314
↓ 3 callersMethodpctWhere
(values: number[], pred: (v: number) => boolean)
gateway/src/services/style-clone.ts:394
↓ 3 callersMethodpersist
()
gateway/src/services/auto-skill.ts:322
↓ 3 callersMethodpersist
()
gateway/src/services/preferences.ts:361
↓ 3 callersMethodpersist
()
gateway/src/services/release-calendar.ts:193
↓ 3 callersMethodrecord
* Record a cost directly from the router response. Prefer passing the * router-supplied `estimatedCost` so we don't disagree with the per-provider
gateway/src/services/costs.ts:71
↓ 3 callersMethodrecordOutcome
* Called by the worker after executing an approved request. * Transitions the request to 'completed' or 'failed'.
gateway/src/services/confirmation-gate.ts:236
↓ 3 callersMethodreject
Reject a draft → deletes the SKILL.md file + marks rejected.
gateway/src/services/auto-skill.ts:299
↓ 3 callersMethodrunContinuityCheck
* Run a multi-phase continuity check across the entire project.
gateway/src/services/context-engine.ts:694
↓ 3 callersMethodsaveCachedGeminiImageModel
Persist the discovered slug + timestamp so future process starts skip the probe call.
gateway/src/services/image-gen.ts:233
↓ 3 callersFunctionseedSummaries
Seed a ContextEngine cache with two chapter summaries for `projectId`.
gateway/src/services/projects-tiered.test.ts:45
↓ 3 callersMethodsendReminder
* Send a reminder via the broadcast channel (WebSocket + Telegram)
gateway/src/services/heartbeat.ts:393
↓ 3 callersMethodsetActivePersona
* Switch the active persona. All subsequent conversation turns will be * tagged with this personaId so memory search can filter by pen name. * P
gateway/src/services/memory.ts:75
↓ 3 callersMethodsetDependencies
(vault: Vault, aiRouter: AIRouter)
gateway/src/services/video-research.ts:112
↓ 3 callersMethodsetMemoryTier
* Inject the tiered-memory service (Chunk B1). Follows the setContextEngine * pattern. When never called, memoryTier stays undefined and every CORE
gateway/src/services/projects.ts:263
↓ 3 callersMethodstart
()
gateway/src/index.ts:2369
↓ 3 callersMethodstartAndRunProject
* Start (or continue) a project and run ONE step through the AI. * Returns a short summary for Telegram + accurate word count.
gateway/src/index.ts:1857
↓ 3 callersMethodstartAutonomous
()
gateway/src/services/heartbeat.ts:401
↓ 3 callersMethodstartProject
* Start executing a project — marks it active and returns the first step
gateway/src/services/projects.ts:575
↓ 3 callersMethodstopAutonomous
()
gateway/src/services/heartbeat.ts:417
↓ 3 callersMethodstorePath
(projectId: string)
gateway/src/services/character-voices.ts:148
↓ 3 callersMethodstorePath
(projectId: string)
gateway/src/services/plot-promises.ts:180
↓ 3 callersMethodupsert
* Add or update a memory entry. Returns the row id. * Idempotent on (source, sourceRef) — re-indexing the same conversation * line / step output
gateway/src/services/memory-search.ts:189
↓ 3 callersMethodwriteKeyFile
Persist the key to the out-of-repo key file with restrictive perms.
gateway/src/security/vault.ts:104
↓ 2 callersMethodaddBlogPost
(siteId: string, post: WebsiteBlogPost)
gateway/src/services/website-sites.ts:235
↓ 2 callersMethodaddWords
Add words to today's count (called by goal engine after each step)
gateway/src/services/heartbeat.ts:699
↓ 2 callersFunctionarchivalSentinelHits
()
gateway/src/services/message-pipeline-tiered.test.ts:291
↓ 2 callersMethodautoAddBook
* Auto-add a book to a site when a linked project completes. Idempotent * on (siteId, book.slug). Called from the project-completion hook. *
gateway/src/services/website-sites.ts:203
↓ 2 callersMethodautonomousWake
* The autonomous wake cycle with priority-based project selection. * Runs on schedule, scores projects by priority, and executes steps.
gateway/src/services/heartbeat.ts:428
↓ 2 callersMethodbroadcastToAllowed
* Broadcast a message to all known allowed users. * Used by autonomous heartbeat to send status updates.
gateway/src/bridges/telegram.ts:784
↓ 2 callersMethodbuildCoverPrompt
* Build a detailed book cover prompt from context. Optional rich fields * (subgenre, mood, era, setting, keyImagery, palette, avoidImagery) are
gateway/src/services/image-gen.ts:842
↓ 2 callersFunctionbuildExplicitTagRegex
(options: SpeakerTagOptions = {})
gateway/src/services/dialogue-parser.ts:69
↓ 2 callersMethodbuildPlan
* Build the full 90-day launch plan. Pure function — doesn't create * confirmations yet, just shows the user what's coming.
gateway/src/services/launch-orchestrator.ts:189
↓ 2 callersMethodbuildPronunciationDictionary
* Pass 2: Build a pronunciation dictionary template from the entity list. * Only includes entities whose names look "uncommon" (not in a basic word
gateway/src/services/audiobook-prep.ts:182
↓ 2 callersMethodbuildReport
* Build the unified bible by pulling every project's ContextEngine data * and merging entities + timeline. Does NOT mutate the individual project
gateway/src/services/series-bible.ts:180
↓ 2 callersFunctionbuildReverseTagRegex
(options: SpeakerTagOptions = {})
gateway/src/services/dialogue-parser.ts:78
↓ 2 callersMethodbuildStepUserMessage
* 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/step-executor.ts:185
↓ 2 callersMethodcallOpenAIImages
( apiKey: string, model: string, prompt: string, width: number, height: number, qualit
gateway/src/services/image-gen.ts:608
↓ 2 callersMethodcanonicalize
( name: string, characterNames: string[], aliases: Record<string, string[]>, )
gateway/src/services/character-voices.ts:499
↓ 2 callersMethodcheckBinary
(name: string)
gateway/src/services/video-research.ts:153
↓ 2 callersMethodcheckCompliance
* Hard-gate check. Returns passed=false if: * - Any required disclosure is missing from acknowledgedScopes * - Any applicable rule is a 'banne
gateway/src/services/disclosures.ts:202
↓ 2 callersMethodcheckOutline
* Check an outline against a chosen structure. Returns SUGGESTIONS, not * hard failures. Author can override anything they call deliberate. *
gateway/src/services/story-structures.ts:448
↓ 2 callersMethodclassifyTask
* Classify what type of writing task this is for tiered routing.
gateway/src/services/message-pipeline.ts:441
↓ 2 callersMethodcleanupScript
* Pass 1: Normalize manuscript text for narration.
gateway/src/services/audiobook-prep.ts:113
↓ 2 callersMethodcomputeMetrics
* Compute the deterministic metrics from raw observations. No AI needed. * Cheap — runs in O(n) where n is bounded at MAX_OBSERVATIONS.
gateway/src/services/user-model.ts:203
↓ 2 callersMethodcomputePersonaBreakdown
Compute the per-persona breakdown. Same observations, grouped.
gateway/src/services/user-model.ts:294
↓ 2 callersMethodcontextPath
(projectId: string)
gateway/src/services/context-engine.ts:317
↓ 2 callersMethodcoreDigestPath
(projectId: string)
gateway/src/services/memory-tier.ts:446
↓ 2 callersMethodcreateBookProduction
* Create a Book Production project with dynamic chapter steps.
gateway/src/services/projects.ts:1462
↓ 2 callersMethodcreateEvent
(input: Omit<CalendarEvent, 'id' | 'status'> & { status?: CalendarEvent['status'] })
gateway/src/services/release-calendar.ts:56
↓ 2 callersMethodcreateJob
(input: { name: string; schedule: string; handler: string; payload?: Record<string, any>;
gateway/src/services/cron-scheduler.ts:205
↓ 2 callersMethodcreateRequest
* Create a new confirmation request. The calling service MUST await a * subsequent 'approved' status via polling / awaitDecision() before * exec
gateway/src/services/confirmation-gate.ts:142
↓ 2 callersMethoddebouncedPersist
* Debounced write — coalesces rapid updates into a single disk write.
gateway/src/services/context-engine.ts:367
↓ 2 callersMethoddebouncedPersist
()
gateway/src/services/orchestrator.ts:508
↓ 2 callersMethoddeploy
* Deploy a rendered site directory using the configured target. * Returns DeployResult; never throws — failures come back as * { success: false,
gateway/src/services/website-deploy.ts:114
↓ 2 callersMethoddetectDrift
* Score a single chapter for character-voice drift. For each character * with a fingerprint, compare their dialogue in this chapter to their * h
gateway/src/services/character-voices.ts:288
↓ 2 callersMethoddiscoverGeminiImageModel
* Probe each candidate model with a tiny "ping" generateContent call. * Returns the first slug that does NOT 404. Cached per ImageGenService * i
gateway/src/services/image-gen.ts:751
↓ 2 callersMethoddomainFromBaseUrl
(baseUrl: string)
gateway/src/services/website-builder.ts:500
↓ 2 callersMethoddraftFromProject
* User-triggered version (via /api or skill-acquisition skill). * Same drafter, different `source` label.
gateway/src/services/auto-skill.ts:176
↓ 2 callersMethodenhanceWithAuthorOS
(steps: ProjectStep[])
gateway/src/services/projects.ts:1565
↓ 2 callersMethodentropyPreFilter
* Flag high-entropy paragraph spans that are the most likely to hide a * contradiction, so the expensive whole-chapter detect() call can be * pr
gateway/src/services/contradiction-detector.ts:541
↓ 2 callersMethodescapeICS
(s: string)
gateway/src/services/release-calendar.ts:185
↓ 2 callersMethodexecuteJob
(job: CronJob)
gateway/src/services/cron-scheduler.ts:308
↓ 2 callersMethodexportBlurb
* Convert a markdown-ish blurb into KDP-compliant HTML plus variants.
gateway/src/services/kdp-exporter.ts:34
↓ 2 callersMethodextract
* Main entry point: download → transcribe → extract notes. * @param url Video URL (yt-dlp handles YouTube/TikTok/Vimeo/etc.) * @param topic Auth
gateway/src/services/video-research.ts:168
↓ 2 callersMethodextractCitations
Pull a "Sources:" / "References:" list out of free text.
gateway/src/services/research-lookup.ts:250
↓ 2 callersMethodextractDialogue
* Pull dialogue lines from a chapter and attribute speakers using the * standard quote conventions + optional dialogue tags. Same heuristic as *
gateway/src/services/character-voices.ts:436
↓ 2 callersMethodextractParagraphText
Plain text of a paragraph (strips all tags).
gateway/src/services/track-changes.ts:261
↓ 2 callersMethodextractProperNoun
Pull the first capitalized word (simple proper-noun heuristic).
gateway/src/services/dialogue-auditor.ts:159
↓ 2 callersFunctionfakeProjects
Fake project port exposing our single seeded project.
gateway/src/services/sleep-consolidation.test.ts:75
↓ 2 callersMethodfetchAndExtract
* Fetch a URL and extract clean text content from the HTML. * Strips scripts, styles, nav, headers, footers, then HTML tags.
gateway/src/services/research.ts:117
↓ 2 callersMethodfindChangeIndex
Find the nth change of a given type at a paragraph.
gateway/src/services/track-changes.ts:221
↓ 2 callersMethodfindSiblingProject
Locate a sibling project by name, returning its root dir or null.
gateway/src/services/external-tools.ts:61
↓ 2 callersMethodformatForConfirmation
* Convenience: return a single-string summary suitable for pasting into * a confirmation card's "disclosures" section.
gateway/src/services/disclosures.ts:231
↓ 2 callersMethodgenerate
* Generate an image from a text prompt. * Tries Together AI first (cheaper), falls back to OpenAI.
gateway/src/services/image-gen.ts:278
↓ 2 callersMethodgenerateAndSendVoice
Generate TTS audio and send as voice message (used by voice mode + one-off requests)
gateway/src/bridges/telegram.ts:728
↓ 2 callersMethodgenerateBookCover
* Generate a book cover image with smart prompting.
gateway/src/services/image-gen.ts:349
↓ 2 callersMethodgenerateCoverSet
* Generate the full set of standard cover sizes an author needs: * ebook (vertical 2:3) — Amazon Kindle / KDP * print (vertical 2:3) — Print
gateway/src/services/image-gen.ts:394
↓ 2 callersMethodgenerateSummary
* Generate an AI summary of a chapter and store it in the context.
gateway/src/services/context-engine.ts:385
↓ 2 callersMethodget
(id: string)
gateway/src/services/personas.ts:125
↓ 2 callersMethodgetAllWithMetadata
()
gateway/src/services/preferences.ts:302
↓ 2 callersMethodgetAllowedDomainCount
()
gateway/src/services/research.ts:35
↓ 2 callersMethodgetAllowedDomains
()
gateway/src/services/research.ts:39
↓ 2 callersMethodgetArchetypes
()
gateway/src/services/beta-reader.ts:108
↓ 2 callersMethodgetAvailableProviders
* Check which image providers are available (have API keys). * Returned in PREFERENCE order so the dashboard can show the active fallback chain.
gateway/src/services/image-gen.ts:263
← previousnext →201–300 of 1,032, ranked by callers