Prune stale docs and update .hermes content
Delete a large set of outdated documentation (many files under docs/ and .hermes/plans/, including audits, design, prd, technical, planning, assets, and todos). Update and consolidate .hermes content: refresh shared-memory pages (decision-log, development-workflow, document-map, pitfalls, project-overview, team-conventions) and several skills/references under .hermes/skills. Also modify AGENTS.md, README.md, UI_CODING_STANDARD.md, docs/README.md and .encoding-check-ignore. Purpose: clean up stale planning/audit material and keep current hermes documentation and related top-level docs in sync.
This commit is contained in:
@@ -180,6 +180,28 @@ fn seed_creation_entry_config_if_missing(ctx: &ReducerContext) {
|
||||
}
|
||||
|
||||
migrate_visual_novel_entry_from_old_visible_default(ctx, now);
|
||||
migrate_coming_soon_entry_from_old_open_default(
|
||||
ctx,
|
||||
now,
|
||||
ComingSoonEntryDefault {
|
||||
id: "bark-battle",
|
||||
title: "汪汪声浪",
|
||||
subtitle: "声控对战挑战",
|
||||
image_src: "/creation-type-references/creative-agent.webp",
|
||||
sort_order: 85,
|
||||
},
|
||||
);
|
||||
migrate_coming_soon_entry_from_old_open_default(
|
||||
ctx,
|
||||
now,
|
||||
ComingSoonEntryDefault {
|
||||
id: "baby-object-match",
|
||||
title: "宝贝识物",
|
||||
subtitle: "亲子识物分类",
|
||||
image_src: "/child-motion-demo/picture-book-grass-stage.png",
|
||||
sort_order: 90,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
fn migrate_visual_novel_entry_from_old_visible_default(ctx: &ReducerContext, now: Timestamp) {
|
||||
@@ -212,6 +234,47 @@ fn migrate_visual_novel_entry_from_old_visible_default(ctx: &ReducerContext, now
|
||||
});
|
||||
}
|
||||
|
||||
struct ComingSoonEntryDefault {
|
||||
id: &'static str,
|
||||
title: &'static str,
|
||||
subtitle: &'static str,
|
||||
image_src: &'static str,
|
||||
sort_order: i32,
|
||||
}
|
||||
|
||||
fn migrate_coming_soon_entry_from_old_open_default(
|
||||
ctx: &ReducerContext,
|
||||
now: Timestamp,
|
||||
target: ComingSoonEntryDefault,
|
||||
) {
|
||||
let id = target.id.to_string();
|
||||
let Some(row) = ctx.db.creation_entry_type_config().id().find(&id) else {
|
||||
return;
|
||||
};
|
||||
|
||||
// 中文注释:只把旧默认开放种子纠偏为敬请期待,不覆盖后台手动维护过的入口配置。
|
||||
let still_old_open_default = row.title == target.title
|
||||
&& row.subtitle == target.subtitle
|
||||
&& row.badge == "可创建"
|
||||
&& row.image_src == target.image_src
|
||||
&& row.visible
|
||||
&& row.open
|
||||
&& row.sort_order == target.sort_order;
|
||||
if !still_old_open_default {
|
||||
return;
|
||||
}
|
||||
|
||||
ctx.db
|
||||
.creation_entry_type_config()
|
||||
.id()
|
||||
.update(CreationEntryTypeConfig {
|
||||
badge: "敬请期待".to_string(),
|
||||
open: false,
|
||||
updated_at: now,
|
||||
..row
|
||||
});
|
||||
}
|
||||
|
||||
fn default_creation_entry_type_configs(now: Timestamp) -> Vec<CreationEntryTypeConfig> {
|
||||
module_runtime::default_creation_entry_type_snapshots(now.to_micros_since_unix_epoch())
|
||||
.into_iter()
|
||||
|
||||
Reference in New Issue
Block a user