Skip to content

Commit 6f90f7b

Browse files
committed
chore(rust): 删产物命令整模块与连带死代码
1 parent f74ff55 commit 6f90f7b

20 files changed

Lines changed: 35 additions & 1600 deletions

‎app/src-tauri/src/app_commands.rs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,6 @@ pub fn handle() -> impl Fn(tauri::ipc::Invoke<tauri::Wry>) -> bool + Send + Sync
349349
// 数据备份/恢复(REQ-107,v0.7.0 M1:TRUST-1——备份/恢复入口)
350350
crate::commands_backup::backup_create,
351351
crate::commands_backup::backup_restore,
352-
// 会话产物(REQ-052/053,v0.5.0 M7:模板构建/读取/落笔记)
353-
crate::commands_artifacts::build_session_artifact,
354-
crate::commands_artifacts::get_session_artifact,
355-
crate::commands_artifacts::artifact_to_note,
356352
// 补缝式 AI 前置(REQ-055,v0.5.0 M8:判定器/协议/mock/护栏骨架)
357353
crate::commands_ai::scan_ai_candidates,
358354
crate::commands_ai::ai_enhance_mock,

‎app/src-tauri/src/artifact.rs‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
//! @ai-context: 一种原料,五种模板——ArtifactBlock 为产物体系最小单元:
44
//! 块**引用**原料不复制(refs 携带 segment/ocr_block 标识 + 时间戳),
55
//! 原料可回看、可重算(G1 派生视图地基)。
6-
//! @ai-context: 纯数据定义 + JSON 序列化(serde),无副作用;
7-
//! 五档案模板函数在 artifact_templates.rs(独立文件保持 ≤300 行)。
6+
//! @ai-context: 纯数据定义 + JSON 序列化(serde),无副作用。
87
//! @ai-context: source 标记来源:local(本地规则)/ ai_enhanced(V1.0 AI 补缝)/
98
//! placeholder(占位:AI 增强待 V1.0 或诚实降级标记)。
109
@@ -128,13 +127,6 @@ pub struct ArtifactBlock {
128127
pub source: BlockSource,
129128
}
130129

131-
impl ArtifactBlock {
132-
/// 构建块辅助(id 由落库回填)。
133-
pub fn new(kind: ArtifactKind, order: u32, payload: BlockPayload) -> Self {
134-
Self { id: 0, kind, refs: BlockRefs::default(), payload, order, source: BlockSource::Local }
135-
}
136-
}
137-
138130
/// 会话产物(1:1 会话;块有序)。
139131
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
140132
pub struct SessionArtifact {

‎app/src-tauri/src/artifact_templates.rs‎

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)