MCPcopy Create free account

hub / github.com/91zgaoge/StoryForge / functions

Functions2,870 in github.com/91zgaoge/StoryForge

↓ 4 callersMethodupdate_heartbeat
(&self, id: &str)
src-tauri/src/task_system/repository.rs:310
↓ 4 callersMethodupdate_sequence
(&self, id: &str, new_sequence: i32)
src-tauri/src/db/repositories_v3.rs:308
↓ 4 callersFunctionuseCharacters
(storyId: string | null)
src-frontend/src/hooks/useCharacters.ts:15
↓ 4 callersFunctionuseScenes
(storyId: string | null)
src-frontend/src/hooks/useScenes.ts:9
↓ 4 callersMethodwith_error
(mut self, error: impl Into<String>)
src-tauri/src/utils/validation.rs:26
↓ 3 callersMethodadd_character
(mut self, character: CharacterElement)
src-tauri/src/narrative/elements.rs:274
↓ 3 callersMethodadd_document
添加文档到索引
src-tauri/src/memory/hybrid_search.rs:82
↓ 3 callersMethodapp_handle
获取 AppHandle 引用(用于上下文构建等场景)
src-tauri/src/agents/service.rs:121
↓ 3 callersFunctionapplyColorTheme
(themeId: ColorThemeId)
src-frontend/src/frontstage/config/colorThemes.ts:150
↓ 3 callersMethodbroadcast
(&self, message: CollabMessage, exclude_user: Option<&str>)
src-tauri/src/collab/websocket.rs:66
↓ 3 callersMethodbroadcast_participants
(&self)
src-tauri/src/collab/websocket.rs:76
↓ 3 callersMethodbuild_quick
快速构建(用于 intent 执行等场景)
src-tauri/src/creative_engine/context_builder.rs:162
↓ 3 callersMethodcalculate_temperature
(&self, strategy: &GenerationStrategy)
src-tauri/src/creative_engine/adaptive/generator.rs:311
↓ 3 callersMethodcall_tool
( &mut self, tool_name: &str, arguments: serde_json::Value, )
src-tauri/src/mcp/client.rs:106
↓ 3 callersMethodcheck
对文本进行启发式质量评估 当前为基于规则的快速评估,未来可调用 LLM 进行深度分析。
src-tauri/src/creative_engine/workflow/quality.rs:63
↓ 3 callersFunctioncheckStatus
()
src-frontend/src/frontstage/FrontstageApp.tsx:1330
↓ 3 callersMethodclone
(&self)
src-tauri/src/task_system/heartbeat.rs:22
↓ 3 callersFunctioncosine_similarity
计算余弦相似度
src-tauri/src/embeddings/embedding.rs:339
↓ 3 callersFunctioncount_interior_monologue
估算内心独白数量
src-tauri/src/creative_engine/adaptive/miner.rs:371
↓ 3 callersMethodcreate_adapter
创建适配器
src-tauri/src/llm/service.rs:119
↓ 3 callersFunctioncreate_test_blend
()
src-tauri/src/creative_engine/style/drift_checker.rs:290
↓ 3 callersMethodemit_status_changed
(&self, status: &str, progress: i32, message: Option<String>)
src-tauri/src/task_system/executor.rs:146
↓ 3 callersMethodexecute_writer_raw
原始 Writer 生成 — 只生成内容,不进入闭环 v5.3.1: 提取为独立方法,供 AgentOrchestrator 和 Bootstrap 直接调用,防止递归
src-tauri/src/agents/service.rs:322
↓ 3 callersMethodextract_story_id
(&self, event: &TriggerEvent)
src-tauri/src/automation/triggers.rs:172
↓ 3 callersMethodfail
标记失败
src-tauri/src/task_system/executor.rs:129
↓ 3 callersMethodfind_executor
(&self, task_type: &TaskType)
src-tauri/src/task_system/executor.rs:38
↓ 3 callersFunctionformatDate
(dateString: string)
src-frontend/src/utils/format.ts:1
↓ 3 callersMethodformat_characters
构建角色描述字符串
src-tauri/src/agents/mod.rs:116
↓ 3 callersFunctiongetConfidenceColor
(score?: number)
src-frontend/src/components/ConfidenceIndicator.tsx:13
↓ 3 callersFunctiongetConfidenceLabel
(score?: number)
src-frontend/src/components/ConfidenceIndicator.tsx:22
↓ 3 callersFunctiongetConflictTypeColor
(type: ConflictType)
src-frontend/src/hooks/useScenes.ts:154
↓ 3 callersMethodget_by_hash
根据文件哈希获取(去重检查)
src-tauri/src/book_deconstruction/repository.rs:85
↓ 3 callersMethodget_by_id
根据ID获取
src-tauri/src/book_deconstruction/repository.rs:49
↓ 3 callersMethodget_config_for_entity
(&self, entity: &Entity)
src-tauri/src/memory/retention.rs:314
↓ 3 callersMethodget_quota_detail
获取 V2 配额详情
src-tauri/src/subscription/mod.rs:177
↓ 3 callersMethodget_version
获取特定版本
public/src/versions/mod.rs:93
↓ 3 callersMethodget_version
获取特定版本
src/versions/mod.rs:93
↓ 3 callersFunctionhtmlToText
将 HTML 内容转为纯文本
src-frontend/src/frontstage/ai-perception/textAnalyzer.ts:20
↓ 3 callersMethodinfer_runtime_from_manifest
( &self, manifest: &SkillManifest, )
src-tauri/src/skills/loader.rs:170
↓ 3 callersFunctioninvoke
()
public/src/main.js:18
↓ 3 callersFunctionisStepAvailable
(step: WizardStep)
src-frontend/src/pages/CreationWizard.tsx:148
↓ 3 callersFunctionisStepCompleted
(step: WizardStep)
src-frontend/src/pages/CreationWizard.tsx:147
↓ 3 callersFunctionloadStoryScenes
(storyId: string)
src-frontend/src/frontstage/FrontstageApp.tsx:738
↓ 3 callersMethodload_from_directory
从目录加载所有工作流文件
src-tauri/src/workflow/loader.rs:64
↓ 3 callersMethodmine
挖掘故事的所有偏好
src-tauri/src/creative_engine/adaptive/miner.rs:38
↓ 3 callersFunctionnavigate
(view)
src/main.js:437
↓ 3 callersMethodnormalize
归一化权重(总和为 1.0)
src-tauri/src/creative_engine/style/blend.rs:72
↓ 3 callersFunctionnormalizeQuotes
直引号 → 中文弯引号(common 规范:「」『』)
src-frontend/src/utils/format.ts:32
↓ 3 callersFunctionparse_source
(s: &str)
src-tauri/src/db/repositories_narrative.rs:232
↓ 3 callersMethodregister_scheduled_task
注册定时任务到调度器
src-tauri/src/task_system/service.rs:231
↓ 3 callersMethodregister_tool
( &self, tool: McpTool, handler: Box<dyn McpToolHandler>, )
src-tauri/src/mcp/server.rs:188
↓ 3 callersMethodreset_retry
(&self, id: &str)
src-tauri/src/task_system/repository.rs:351
↓ 3 callersMethodsample_text
(&self, max_chars: usize)
src-tauri/src/narrative/analysis.rs:92
↓ 3 callersMethodsave_custom_templates
保存自定义模板
public/src/prompts/mod.rs:119
↓ 3 callersMethodsave_custom_templates
保存自定义模板
src/prompts/mod.rs:119
↓ 3 callersFunctionsetIsRevisionMode
(v: boolean)
src-frontend/src/frontstage/components/RichTextEditor.tsx:154
↓ 3 callersFunctionsetup
()
src-frontend/src/hooks/useBookDeconstruction.ts:44
↓ 3 callersMethodtext_search
基于关键词的文本搜索(LanceDB filter fallback)
src-tauri/src/vector/lancedb_store.rs:258
↓ 3 callersMethodto_prompt_extension
将 StyleDNA 转换为可用于注入 Writer prompt 的文本
src-tauri/src/creative_engine/style/dna.rs:143
↓ 3 callersMethodtokenize
对文本进行分词 返回二元组token列表
src-tauri/src/memory/tokenizer.rs:16
↓ 3 callersFunctiontopological_sort
对计划步骤进行拓扑排序,返回可按批次并行执行的顺序
src-tauri/src/planner/swarm.rs:15
↓ 3 callersFunctionunregister_pipeline_cancel
清理已完成的 Pipeline 取消标志
src-tauri/src/narrative/pipeline.rs:43
↓ 3 callersMethodupdate_node_status
Update node execution status
src-tauri/src/workflow/scheduler.rs:561
↓ 3 callersMethodupdate_state
(&self, story_id: &str, updater: impl FnOnce(&mut StoryState))
src-tauri/src/state/manager.rs:189
↓ 3 callersMethodupdate_status
(&self, id: &str, status: ChangeStatus)
src-tauri/src/db/repositories_v3.rs:2007
↓ 3 callersMethodupsert
( &self, story_id: &str, preference_type: &str, preference_key: &str,
src-tauri/src/db/repositories_v3.rs:2633
↓ 3 callersFunctionuseForeshadowings
(storyId: string | null)
src-frontend/src/hooks/useForeshadowings.ts:63
↓ 3 callersFunctionuseSettings
()
src-frontend/src/hooks/useSettings.ts:34
↓ 3 callersFunctionuseSyncStore
(options: SyncStoreOptions = {})
src-frontend/src/hooks/useSyncStore.ts:84
↓ 3 callersMethodwith_cancel_flag
设置取消标志
src-tauri/src/narrative/pipeline.rs:125
↓ 3 callersMethodwith_story_meta
(mut self, meta: StoryMetaElement)
src-tauri/src/narrative/elements.rs:259
↓ 3 callersFunctionwrap_text
(text: &str, width: usize)
src-tauri/src/export/pdf.rs:184
↓ 2 callersMethodadd_embedding_profile
添加嵌入模型配置
src-tauri/src/config/settings.rs:486
↓ 2 callersMethodadd_scene
(mut self, scene: SceneElement)
src-tauri/src/narrative/elements.rs:279
↓ 2 callersMethodagent_id
(&self)
src-tauri/src/agents/service.rs:44
↓ 2 callersFunctionanalyzeStyleSample
(text: string, name?: string)
src-frontend/src/services/tauri.ts:153
↓ 2 callersFunctionanalyzeText
(htmlContent: string)
src-frontend/src/frontstage/ai-perception/textAnalyzer.ts:410
↓ 2 callersFunctionauto_ingest_chapter
章节保存后自动触发 IngestPipeline,将内容分析并更新知识图谱 内置 5 分钟冷却期 + 内容哈希去重,防止频繁保存导致重复 LLM 调用
src-tauri/src/lib.rs:1046
↓ 2 callersMethodbuild_context
构建 AgentContext(使用 StoryContextBuilder)
src-tauri/src/creative_engine/workflow/engine.rs:283
↓ 2 callersFunctionbuild_default_registry
()
src-tauri/src/capabilities/mod.rs:123
↓ 2 callersMethodbuild_messages
(&self, prompt: String)
src-tauri/src/llm/openai.rs:104
↓ 2 callersMethodbuild_strategy
为故事构建生成策略 `base_temperature`: 用户模型配置中的 temperature,作为策略基础值
src-tauri/src/creative_engine/adaptive/generator.rs:63
↓ 2 callersMethodbuild_strategy_with_context
Phase 5: 带上下文感知的生成策略构建 `story_progress`: 故事整体进度 (just_started/developing/midpoint/climax/resolution) `scene_stage`: 当前场景执行阶段 (planning/outline/drafti
src-tauri/src/creative_engine/adaptive/generator.rs:71
↓ 2 callersMethodcall_llm_with_semaphore
( &self, prompt: String, max_tokens: Option<i32>, temperature: Option<f32>,
src-tauri/src/book_deconstruction/analyzer.rs:516
↓ 2 callersMethodcancel_task
取消任务
src-tauri/src/task_system/service.rs:203
↓ 2 callersFunctioncharacter_prompt
(mode: PromptMode, story_title: &str, genre: &str, world_concept: &str, context: &str)
src-tauri/src/narrative/prompts.rs:137
↓ 2 callersMethodcheckModelStatus
()
src-frontend/src/services/modelService.ts:86
↓ 2 callersMethodcheck_auto_revise_quota
检查自动修改配额
src-tauri/src/subscription/mod.rs:249
↓ 2 callersMethodcheck_auto_write_quota
检查自动续写配额
src-tauri/src/subscription/mod.rs:212
↓ 2 callersFunctioncheck_auto_write_quota_sync
检查自动续写配额
src-tauri/src/agents/commands.rs:59
↓ 2 callersMethodcheck_scene_continuity
检查场景的连续性
src-tauri/src/creative_engine/continuity.rs:68
↓ 2 callersMethodcheck_with_llm
使用 LLM 进行深度质量评估 优先使用 LLM 评估,当 LLM 不可用时回退到规则评估。
src-tauri/src/creative_engine/workflow/quality.rs:275
↓ 2 callersMethodclear
清除缓存
src-tauri/src/embeddings/embedding.rs:110
↓ 2 callersMethodcomment_on_text
批量评点多个段落
src-tauri/src/agents/commentator.rs:108
↓ 2 callersFunctioncomputeRole
(weight: number)
src-frontend/src/components/style/StyleBlendPanel.tsx:14
↓ 2 callersMethodcompute_text_diff
( &self, old: Option<&str>, new: Option<&str>, )
src-tauri/src/versions/service.rs:332
↓ 2 callersFunctioncreateFloatingHint
(delay: number)
src-frontend/src/frontstage/components/AiSuggestionBubble.tsx:270
↓ 2 callersFunctioncreateStoryWithWizard
(params: { title: string; description?: string; genre?: string; world_building: WorldBuildingOption;
src-frontend/src/services/tauri.ts:281
↓ 2 callersMethodcreate_annotation
( &self, scene_id: &str, story_id: &str, content: &str, annotation_typ
src-tauri/src/db/repositories_v3.rs:1416
↓ 2 callersFunctioncreate_chunks
创建文本分块
src-tauri/src/book_deconstruction/chunker.rs:35
← previousnext →201–300 of 2,870, ranked by callers