Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/91zgaoge/StoryForge
/ functions
Functions
2,870 in github.com/91zgaoge/StoryForge
⨍
Functions
2,870
◇
Types & classes
1,128
↓ 4 callers
Method
update_heartbeat
(&self, id: &str)
src-tauri/src/task_system/repository.rs:310
↓ 4 callers
Method
update_sequence
(&self, id: &str, new_sequence: i32)
src-tauri/src/db/repositories_v3.rs:308
↓ 4 callers
Function
useCharacters
(storyId: string | null)
src-frontend/src/hooks/useCharacters.ts:15
↓ 4 callers
Function
useScenes
(storyId: string | null)
src-frontend/src/hooks/useScenes.ts:9
↓ 4 callers
Method
with_error
(mut self, error: impl Into<String>)
src-tauri/src/utils/validation.rs:26
↓ 3 callers
Method
add_character
(mut self, character: CharacterElement)
src-tauri/src/narrative/elements.rs:274
↓ 3 callers
Method
add_document
添加文档到索引
src-tauri/src/memory/hybrid_search.rs:82
↓ 3 callers
Method
app_handle
获取 AppHandle 引用(用于上下文构建等场景)
src-tauri/src/agents/service.rs:121
↓ 3 callers
Function
applyColorTheme
(themeId: ColorThemeId)
src-frontend/src/frontstage/config/colorThemes.ts:150
↓ 3 callers
Method
broadcast
(&self, message: CollabMessage, exclude_user: Option<&str>)
src-tauri/src/collab/websocket.rs:66
↓ 3 callers
Method
broadcast_participants
(&self)
src-tauri/src/collab/websocket.rs:76
↓ 3 callers
Method
build_quick
快速构建(用于 intent 执行等场景)
src-tauri/src/creative_engine/context_builder.rs:162
↓ 3 callers
Method
calculate_temperature
(&self, strategy: &GenerationStrategy)
src-tauri/src/creative_engine/adaptive/generator.rs:311
↓ 3 callers
Method
call_tool
( &mut self, tool_name: &str, arguments: serde_json::Value, )
src-tauri/src/mcp/client.rs:106
↓ 3 callers
Method
check
对文本进行启发式质量评估 当前为基于规则的快速评估,未来可调用 LLM 进行深度分析。
src-tauri/src/creative_engine/workflow/quality.rs:63
↓ 3 callers
Function
checkStatus
()
src-frontend/src/frontstage/FrontstageApp.tsx:1330
↓ 3 callers
Method
clone
(&self)
src-tauri/src/task_system/heartbeat.rs:22
↓ 3 callers
Function
cosine_similarity
计算余弦相似度
src-tauri/src/embeddings/embedding.rs:339
↓ 3 callers
Function
count_interior_monologue
估算内心独白数量
src-tauri/src/creative_engine/adaptive/miner.rs:371
↓ 3 callers
Method
create_adapter
创建适配器
src-tauri/src/llm/service.rs:119
↓ 3 callers
Function
create_test_blend
()
src-tauri/src/creative_engine/style/drift_checker.rs:290
↓ 3 callers
Method
emit_status_changed
(&self, status: &str, progress: i32, message: Option<String>)
src-tauri/src/task_system/executor.rs:146
↓ 3 callers
Method
execute_writer_raw
原始 Writer 生成 — 只生成内容,不进入闭环 v5.3.1: 提取为独立方法,供 AgentOrchestrator 和 Bootstrap 直接调用,防止递归
src-tauri/src/agents/service.rs:322
↓ 3 callers
Method
extract_story_id
(&self, event: &TriggerEvent)
src-tauri/src/automation/triggers.rs:172
↓ 3 callers
Method
fail
标记失败
src-tauri/src/task_system/executor.rs:129
↓ 3 callers
Method
find_executor
(&self, task_type: &TaskType)
src-tauri/src/task_system/executor.rs:38
↓ 3 callers
Function
formatDate
(dateString: string)
src-frontend/src/utils/format.ts:1
↓ 3 callers
Method
format_characters
构建角色描述字符串
src-tauri/src/agents/mod.rs:116
↓ 3 callers
Function
getConfidenceColor
(score?: number)
src-frontend/src/components/ConfidenceIndicator.tsx:13
↓ 3 callers
Function
getConfidenceLabel
(score?: number)
src-frontend/src/components/ConfidenceIndicator.tsx:22
↓ 3 callers
Function
getConflictTypeColor
(type: ConflictType)
src-frontend/src/hooks/useScenes.ts:154
↓ 3 callers
Method
get_by_hash
根据文件哈希获取(去重检查)
src-tauri/src/book_deconstruction/repository.rs:85
↓ 3 callers
Method
get_by_id
根据ID获取
src-tauri/src/book_deconstruction/repository.rs:49
↓ 3 callers
Method
get_config_for_entity
(&self, entity: &Entity)
src-tauri/src/memory/retention.rs:314
↓ 3 callers
Method
get_quota_detail
获取 V2 配额详情
src-tauri/src/subscription/mod.rs:177
↓ 3 callers
Method
get_version
获取特定版本
public/src/versions/mod.rs:93
↓ 3 callers
Method
get_version
获取特定版本
src/versions/mod.rs:93
↓ 3 callers
Function
htmlToText
将 HTML 内容转为纯文本
src-frontend/src/frontstage/ai-perception/textAnalyzer.ts:20
↓ 3 callers
Method
infer_runtime_from_manifest
( &self, manifest: &SkillManifest, )
src-tauri/src/skills/loader.rs:170
↓ 3 callers
Function
invoke
()
public/src/main.js:18
↓ 3 callers
Function
isStepAvailable
(step: WizardStep)
src-frontend/src/pages/CreationWizard.tsx:148
↓ 3 callers
Function
isStepCompleted
(step: WizardStep)
src-frontend/src/pages/CreationWizard.tsx:147
↓ 3 callers
Function
loadStoryScenes
(storyId: string)
src-frontend/src/frontstage/FrontstageApp.tsx:738
↓ 3 callers
Method
load_from_directory
从目录加载所有工作流文件
src-tauri/src/workflow/loader.rs:64
↓ 3 callers
Method
mine
挖掘故事的所有偏好
src-tauri/src/creative_engine/adaptive/miner.rs:38
↓ 3 callers
Function
navigate
(view)
src/main.js:437
↓ 3 callers
Method
normalize
归一化权重(总和为 1.0)
src-tauri/src/creative_engine/style/blend.rs:72
↓ 3 callers
Function
normalizeQuotes
直引号 → 中文弯引号(common 规范:「」『』)
src-frontend/src/utils/format.ts:32
↓ 3 callers
Function
parse_source
(s: &str)
src-tauri/src/db/repositories_narrative.rs:232
↓ 3 callers
Method
register_scheduled_task
注册定时任务到调度器
src-tauri/src/task_system/service.rs:231
↓ 3 callers
Method
register_tool
( &self, tool: McpTool, handler: Box<dyn McpToolHandler>, )
src-tauri/src/mcp/server.rs:188
↓ 3 callers
Method
reset_retry
(&self, id: &str)
src-tauri/src/task_system/repository.rs:351
↓ 3 callers
Method
sample_text
(&self, max_chars: usize)
src-tauri/src/narrative/analysis.rs:92
↓ 3 callers
Method
save_custom_templates
保存自定义模板
public/src/prompts/mod.rs:119
↓ 3 callers
Method
save_custom_templates
保存自定义模板
src/prompts/mod.rs:119
↓ 3 callers
Function
setIsRevisionMode
(v: boolean)
src-frontend/src/frontstage/components/RichTextEditor.tsx:154
↓ 3 callers
Function
setup
()
src-frontend/src/hooks/useBookDeconstruction.ts:44
↓ 3 callers
Method
text_search
基于关键词的文本搜索(LanceDB filter fallback)
src-tauri/src/vector/lancedb_store.rs:258
↓ 3 callers
Method
to_prompt_extension
将 StyleDNA 转换为可用于注入 Writer prompt 的文本
src-tauri/src/creative_engine/style/dna.rs:143
↓ 3 callers
Method
tokenize
对文本进行分词 返回二元组token列表
src-tauri/src/memory/tokenizer.rs:16
↓ 3 callers
Function
topological_sort
对计划步骤进行拓扑排序,返回可按批次并行执行的顺序
src-tauri/src/planner/swarm.rs:15
↓ 3 callers
Function
unregister_pipeline_cancel
清理已完成的 Pipeline 取消标志
src-tauri/src/narrative/pipeline.rs:43
↓ 3 callers
Method
update_node_status
Update node execution status
src-tauri/src/workflow/scheduler.rs:561
↓ 3 callers
Method
update_state
(&self, story_id: &str, updater: impl FnOnce(&mut StoryState))
src-tauri/src/state/manager.rs:189
↓ 3 callers
Method
update_status
(&self, id: &str, status: ChangeStatus)
src-tauri/src/db/repositories_v3.rs:2007
↓ 3 callers
Method
upsert
( &self, story_id: &str, preference_type: &str, preference_key: &str,
src-tauri/src/db/repositories_v3.rs:2633
↓ 3 callers
Function
useForeshadowings
(storyId: string | null)
src-frontend/src/hooks/useForeshadowings.ts:63
↓ 3 callers
Function
useSettings
()
src-frontend/src/hooks/useSettings.ts:34
↓ 3 callers
Function
useSyncStore
(options: SyncStoreOptions = {})
src-frontend/src/hooks/useSyncStore.ts:84
↓ 3 callers
Method
with_cancel_flag
设置取消标志
src-tauri/src/narrative/pipeline.rs:125
↓ 3 callers
Method
with_story_meta
(mut self, meta: StoryMetaElement)
src-tauri/src/narrative/elements.rs:259
↓ 3 callers
Function
wrap_text
(text: &str, width: usize)
src-tauri/src/export/pdf.rs:184
↓ 2 callers
Method
add_embedding_profile
添加嵌入模型配置
src-tauri/src/config/settings.rs:486
↓ 2 callers
Method
add_scene
(mut self, scene: SceneElement)
src-tauri/src/narrative/elements.rs:279
↓ 2 callers
Method
agent_id
(&self)
src-tauri/src/agents/service.rs:44
↓ 2 callers
Function
analyzeStyleSample
(text: string, name?: string)
src-frontend/src/services/tauri.ts:153
↓ 2 callers
Function
analyzeText
(htmlContent: string)
src-frontend/src/frontstage/ai-perception/textAnalyzer.ts:410
↓ 2 callers
Function
auto_ingest_chapter
章节保存后自动触发 IngestPipeline,将内容分析并更新知识图谱 内置 5 分钟冷却期 + 内容哈希去重,防止频繁保存导致重复 LLM 调用
src-tauri/src/lib.rs:1046
↓ 2 callers
Method
build_context
构建 AgentContext(使用 StoryContextBuilder)
src-tauri/src/creative_engine/workflow/engine.rs:283
↓ 2 callers
Function
build_default_registry
()
src-tauri/src/capabilities/mod.rs:123
↓ 2 callers
Method
build_messages
(&self, prompt: String)
src-tauri/src/llm/openai.rs:104
↓ 2 callers
Method
build_strategy
为故事构建生成策略 `base_temperature`: 用户模型配置中的 temperature,作为策略基础值
src-tauri/src/creative_engine/adaptive/generator.rs:63
↓ 2 callers
Method
build_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 callers
Method
call_llm_with_semaphore
( &self, prompt: String, max_tokens: Option<i32>, temperature: Option<f32>,
src-tauri/src/book_deconstruction/analyzer.rs:516
↓ 2 callers
Method
cancel_task
取消任务
src-tauri/src/task_system/service.rs:203
↓ 2 callers
Function
character_prompt
(mode: PromptMode, story_title: &str, genre: &str, world_concept: &str, context: &str)
src-tauri/src/narrative/prompts.rs:137
↓ 2 callers
Method
checkModelStatus
()
src-frontend/src/services/modelService.ts:86
↓ 2 callers
Method
check_auto_revise_quota
检查自动修改配额
src-tauri/src/subscription/mod.rs:249
↓ 2 callers
Method
check_auto_write_quota
检查自动续写配额
src-tauri/src/subscription/mod.rs:212
↓ 2 callers
Function
check_auto_write_quota_sync
检查自动续写配额
src-tauri/src/agents/commands.rs:59
↓ 2 callers
Method
check_scene_continuity
检查场景的连续性
src-tauri/src/creative_engine/continuity.rs:68
↓ 2 callers
Method
check_with_llm
使用 LLM 进行深度质量评估 优先使用 LLM 评估,当 LLM 不可用时回退到规则评估。
src-tauri/src/creative_engine/workflow/quality.rs:275
↓ 2 callers
Method
clear
清除缓存
src-tauri/src/embeddings/embedding.rs:110
↓ 2 callers
Method
comment_on_text
批量评点多个段落
src-tauri/src/agents/commentator.rs:108
↓ 2 callers
Function
computeRole
(weight: number)
src-frontend/src/components/style/StyleBlendPanel.tsx:14
↓ 2 callers
Method
compute_text_diff
( &self, old: Option<&str>, new: Option<&str>, )
src-tauri/src/versions/service.rs:332
↓ 2 callers
Function
createFloatingHint
(delay: number)
src-frontend/src/frontstage/components/AiSuggestionBubble.tsx:270
↓ 2 callers
Function
createStoryWithWizard
(params: { title: string; description?: string; genre?: string; world_building: WorldBuildingOption;
src-frontend/src/services/tauri.ts:281
↓ 2 callers
Method
create_annotation
( &self, scene_id: &str, story_id: &str, content: &str, annotation_typ
src-tauri/src/db/repositories_v3.rs:1416
↓ 2 callers
Function
create_chunks
创建文本分块
src-tauri/src/book_deconstruction/chunker.rs:35
← previous
next →
201–300 of 2,870, ranked by callers