copy(contracts): 设置校验、事件说明与 API 摘要统一术语
恢复水位 / 硬阈值 → 恢复线 / 暂停线;库根、哨兵、Feed、快照、建档、纳管等按术语表改。 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
0ba947dce3
commit
b752ce26f7
13 files changed
+44
-44
No files matched your search
@@ -346,12 +346,12 @@ export const TypedEventEnvelope = z.discriminatedUnion(
|
||||
* 已有的 release.resolved 也算一条(资源识别完成)。emittedBy 是发出的模块,说明写在什么时候发。
|
||||
*/
|
||||
export const LIFECYCLE_EVENTS: readonly { type: EventType; label: string; emittedBy: string; when: string }[] = [
|
||||
{ type: "release.resolved", label: "资源识别完成", emittedBy: "sources-identity", when: "来源资源认到本地作品" },
|
||||
{ type: "release.resolved", label: "资源识别完成", emittedBy: "sources-identity", when: "资源识别到本地作品" },
|
||||
{
|
||||
type: "subscription.created",
|
||||
label: "订阅已建",
|
||||
emittedBy: "acquisition-organize",
|
||||
when: "新建订阅(含策略自动建)",
|
||||
when: "新建订阅(包括按策略自动建的)",
|
||||
},
|
||||
{
|
||||
type: "subscription.updated",
|
||||
@@ -367,8 +367,8 @@ export const LIFECYCLE_EVENTS: readonly { type: EventType; label: string; emitte
|
||||
},
|
||||
{ type: "subscription.cancelled", label: "订阅已取消", emittedBy: "acquisition-organize", when: "删除订阅" },
|
||||
{ type: "download.submitted", label: "下载已提交", emittedBy: "acquisition-organize", when: "种子交给下载器" },
|
||||
{ type: "download.completed", label: "下载已完成", emittedBy: "acquisition-organize", when: "下载器报告下完" },
|
||||
{ type: "download.failed", label: "下载失败", emittedBy: "acquisition-organize", when: "下载任务进入失败" },
|
||||
{ type: "download.completed", label: "下载已完成", emittedBy: "acquisition-organize", when: "下载器报告已下完" },
|
||||
{ type: "download.failed", label: "下载失败", emittedBy: "acquisition-organize", when: "下载任务进入失败状态" },
|
||||
{
|
||||
type: "download.removed",
|
||||
label: "下载已移除",
|
||||
@@ -393,7 +393,7 @@ export const LIFECYCLE_EVENTS: readonly { type: EventType; label: string; emitte
|
||||
type: "media.watched",
|
||||
label: "作品进入关注",
|
||||
emittedBy: "sources-identity / acquisition-organize",
|
||||
when: "建订阅、开始下载、搜索认定作品",
|
||||
when: "新建订阅、开始下载或搜索时确认了作品",
|
||||
},
|
||||
{
|
||||
type: "media.metadata_refreshed",
|
||||
@@ -405,7 +405,7 @@ export const LIFECYCLE_EVENTS: readonly { type: EventType; label: string; emitte
|
||||
type: "media.episode_structure_changed",
|
||||
label: "季集结构已切换",
|
||||
emittedBy: "sources-identity",
|
||||
when: "作品切换剧集组",
|
||||
when: "作品换了季集结构",
|
||||
},
|
||||
{
|
||||
type: "site.unreachable",
|
||||
|
||||
Reference in new issue
Block a user