@morehao/trendradar-contract 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
3
3
  All notable changes to `@morehao/trendradar-contract` are documented here.
4
4
  This project adheres to a `contract/vX.Y.Z` tag per release (npm + Go submodule).
5
5
 
6
+ ## 0.7.0
7
+
8
+ Language-neutral summaries. **Breaking wire bump**: `ipcSchema` 3 → 4,
9
+ `digestSchema` 2 → 3, `contractVersion` 0.6.0 → 0.7.0. A core/plugin pair must
10
+ both move to this contract line; the plugin's handshake hard-rejects the
11
+ mismatch.
12
+
13
+ ### Changed (breaking)
14
+ - `RepoDigest.summaryZh` → `summary` (string, **required**); added
15
+ `summaryLang` (BCP47 string, **required**) recording the language of `summary`.
16
+ `summarySource` (enum `model` / `original`) is unchanged and still required.
17
+ - `RepoReleases.summaryZh` → `summary` (string, optional) plus a new optional
18
+ `summaryLang`; present only when the repo-level summary is.
19
+ - `ReleaseItem.summaryZh` → `summary` (string, optional). Item-level summaries
20
+ carry no `summaryLang` (they inherit the repo-level / configured language).
21
+ - Summary text is no longer assumed to be Chinese: `summary` holds whichever
22
+ configured output language produced it, and `summaryLang` tags the language.
23
+ - Schema files renamed: `model.v2.json` → `model.v3.json`,
24
+ `digest.v2.json` → `digest.v3.json`, `releases.v2.json` → `releases.v3.json`,
25
+ `ipc.v3.json` → `ipc.v4.json`. `version-info.v2.json` / `errors.v2.json` keep
26
+ their filenames (wire constant / catalog unchanged).
27
+ - `State.stateSchema` stays 3 (state-document layout is unchanged).
28
+
29
+ ### Fixtures
30
+ - All digest/release fixtures moved to `schema: 3` with `summary` +
31
+ `summaryLang`; `contentHash` recomputed (JCS).
32
+ - Added `digest-en.json`: a `summaryLang: "en"` digest sample.
33
+
6
34
  ## 0.6.0
7
35
 
8
36
  Digest inlined in `RunResult`. **Breaking wire bump**: `ipcSchema` 2 → 3
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @morehao/trendradar-contract (0.6.0)
1
+ # @morehao/trendradar-contract (0.7.0)
2
2
 
3
3
  The single source of truth for the data shapes shared by the **trendradar Go
4
4
  core** (`github.com/morehao/trendradar`) and the **DSH plugin**
@@ -12,31 +12,31 @@ artifacts from one tag:
12
12
 
13
13
  Both are released together by the tag `contract/v0.Y.Z` (see `CHANGELOG.md`).
14
14
 
15
- > Version model: the **package** is `0.6.0`, while the
16
- > **wire format** it carries is the third generation — `ipcSchema=3`,
17
- > `digestSchema=2`. The integers distinguish this contract from the legacy
18
- > in-repo v1 and the pre-inline `ipcSchema=2`; they are intentionally decoupled
19
- > from the package semver.
15
+ > Version model: the **package** is `0.7.0`, while the
16
+ > **wire format** it carries is the fourth generation — `ipcSchema=4`,
17
+ > `digestSchema=3`. The integers distinguish this contract from the legacy
18
+ > in-repo v1, the pre-inline `ipcSchema=2`, and the pre-language `ipcSchema=3`;
19
+ > they are intentionally decoupled from the package semver.
20
20
 
21
21
  ## Install
22
22
 
23
23
  ```bash
24
- npm i @morehao/trendradar-contract@0.6.0
25
- go get github.com/morehao/trendradar/contract@v0.6.0 # resolves tag contract/v0.6.0
24
+ npm i @morehao/trendradar-contract@0.7.0
25
+ go get github.com/morehao/trendradar/contract@v0.7.0 # resolves tag contract/v0.7.0
26
26
  ```
27
27
 
28
28
  ## Layout
29
29
 
30
30
  | Path | Purpose |
31
31
  |---|---|
32
- | `schema/model.v2.json` | `RepoSnapshot`; `RepoDigest` composes it via `allOf` |
33
- | `schema/ipc.v3.json` | `RunRequest` (strict), `RunResult` (incl. inlined `DigestArtifact`), `ErrorInfo`, `State`, `FileArtifact` |
34
- | `schema/digest.v2.json` | rendered digest document, incl. `contentHashAlgo` |
35
- | `schema/releases.v2.json` | release-subscription document + `ReleasesReport` (run cost) |
32
+ | `schema/model.v3.json` | `RepoSnapshot`; `RepoDigest` composes it via `allOf` |
33
+ | `schema/ipc.v4.json` | `RunRequest` (strict), `RunResult` (incl. inlined `DigestArtifact`), `ErrorInfo`, `State`, `FileArtifact` |
34
+ | `schema/digest.v3.json` | rendered digest document, incl. `contentHashAlgo` |
35
+ | `schema/releases.v3.json` | release-subscription document + `ReleasesReport` (run cost) |
36
36
  | `schema/errors.v2.json` | 17 error codes with `retriable`/`description` (single source of truth) |
37
37
  | `schema/version-info.v2.json` | `trendradar version --json` handshake |
38
38
  | `schema/api.v2.yaml` | `trendradar serve` OpenAPI (`/api/v2`, incl. releases) |
39
- | `fixtures/*.json` | golden v2 digests + release documents |
39
+ | `fixtures/*.json` | golden v3 digests + release documents |
40
40
  | `version-map.json` | schema file → version carrier → propagation |
41
41
  | `contract.gen.go` | generated Go structs + `ErrorCode` + `ErrorCatalog` + `SchemaFS` |
42
42
  | `gen/ts/index.{js,d.ts}` | generated TS types + runtime (`validators`, `errorCatalog`, `fixtures`, `rawSchema`) |
@@ -62,8 +62,8 @@ contract.SchemaFS // embedded schema/* files
62
62
 
63
63
  ## Versioning & compatibility
64
64
 
65
- - `ipcSchema` (const 2) and `digestSchema` (const 2) are the wire integers;
66
- `contractVersion` (`"0.4.0"`) is the package handshake.
65
+ - `ipcSchema` (const 4) and `digestSchema` (const 3) are the wire integers;
66
+ `contractVersion` (`"0.7.0"`) is the package handshake.
67
67
  - Adding an **optional** field is a minor change. Removing/renaming a field,
68
68
  changing a type, or tightening validation is **breaking**: bump the affected
69
69
  wire integer and/or the package version, declared in `version-map.json`.
@@ -73,10 +73,13 @@ contract.SchemaFS // embedded schema/* files
73
73
  `list` takes no `repo`/`volume`, `add`/`remove` require a `repo` and no
74
74
  `volume`, `releases` requires a `repo` and may name a `volume`; other commands
75
75
  must not carry any of them. `stages` is run-only.
76
- - `ReleaseDigest.schema` is `2`: the summary moved from per-tag
77
- (`ReleaseItem.summaryZh`, now optional and no longer written) to one per repo
78
- per week (`RepoReleases.summaryZh` + `periodStart`/`periodEnd`). Old documents
79
- still parse; new writers leave the per-item field empty.
76
+ - `ReleaseDigest.schema` is `3`: summaries are language-neutral — each entry
77
+ carries `summary` in the configured output language (plus `summaryLang` at the
78
+ repo level). Per-tag summaries live in `releases[].summary`; a repo-level
79
+ `summary`/`summaryLang` remains optional for older documents. Old v2 documents
80
+ still parse (both summary fields stay optional).
81
+ - `RepoDigest` (trending) now requires `summary` + `summaryLang` (the language of
82
+ `summary`); `summarySource` (`model`/`original`) is unchanged.
80
83
  - `ReleasesReport.checked` / `changed` are **required** so `0` ("checked nothing")
81
84
  is distinguishable from "not reported".
82
85
  - Token cost for releases lives in `ReleasesReport.usage` (always present) and
@@ -1,5 +1,5 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-30",
4
4
  "period": "daily",
5
5
  "languages": [
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "count": 2,
10
10
  "degraded": true,
11
- "contentHash": "sha256:a21dfa56cbd2fe611c9e7b9844d672b3608922156bf8e998f49f4293ab5ce3e3",
11
+ "contentHash": "sha256:67501a6f9b03d663dfa379c005d146d912ba2aa32a40f5ba0800b2cf62588701",
12
12
  "contentHashAlgo": "jcs-sha256-v1",
13
13
  "coreVersion": "0.1.0",
14
14
  "generatedAt": "2026-10-30T00:05:00Z",
@@ -23,8 +23,9 @@
23
23
  "forks": 17800,
24
24
  "rank": 1,
25
25
  "source": "search-api",
26
- "summaryZh": "[原文] The Go programming language",
27
- "summarySource": "original"
26
+ "summarySource": "original",
27
+ "summary": "[原文] The Go programming language",
28
+ "summaryLang": "zh"
28
29
  },
29
30
  {
30
31
  "fullName": "gin-gonic/gin",
@@ -36,8 +37,9 @@
36
37
  "forks": 8100,
37
38
  "rank": 2,
38
39
  "source": "search-api",
39
- "summaryZh": "[原文] HTTP web framework written in Go",
40
- "summarySource": "original"
40
+ "summarySource": "original",
41
+ "summary": "[原文] HTTP web framework written in Go",
42
+ "summaryLang": "zh"
41
43
  }
42
44
  ]
43
45
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-30",
4
4
  "period": "daily",
5
5
  "languages": [
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "count": 2,
10
10
  "degraded": false,
11
- "contentHash": "sha256:84a5ef479995ae104544dfc0869227442f3d8968c0d27b5f76410040d4c8b2e4",
11
+ "contentHash": "sha256:202e26aa26c1b1463e1d24274880a22a4d7c0531793cc4f6644e8e9d18a2383e",
12
12
  "contentHashAlgo": "jcs-sha256-v1",
13
13
  "coreVersion": "0.1.0",
14
14
  "generatedAt": "2026-10-30T00:05:00Z",
@@ -23,8 +23,9 @@
23
23
  "forks": 30,
24
24
  "rank": 1,
25
25
  "source": "trending-html",
26
- "summaryZh": "语言未知的仓库,热度进入榜单。",
27
- "summarySource": "model"
26
+ "summarySource": "model",
27
+ "summary": "语言未知的仓库,热度进入榜单。",
28
+ "summaryLang": "zh"
28
29
  },
29
30
  {
30
31
  "fullName": "someorg/aggregate-only",
@@ -36,8 +37,9 @@
36
37
  "forks": 12,
37
38
  "rank": 2,
38
39
  "source": "trending-html",
39
- "summaryZh": "仅在全局榜单出现的仓库。",
40
- "summarySource": "model"
40
+ "summarySource": "model",
41
+ "summary": "仅在全局榜单出现的仓库。",
42
+ "summaryLang": "zh"
41
43
  }
42
44
  ]
43
45
  }
@@ -0,0 +1,103 @@
1
+ {
2
+ "schema": 3,
3
+ "date": "2026-10-30",
4
+ "period": "daily",
5
+ "languages": [
6
+ "all",
7
+ "go",
8
+ "python",
9
+ "rust"
10
+ ],
11
+ "count": 6,
12
+ "degraded": false,
13
+ "contentHash": "sha256:6ac1eb001cba7559551d5884e4164ad6eeb52a7865fd96048dcc1153e17d3bc3",
14
+ "contentHashAlgo": "jcs-sha256-v1",
15
+ "coreVersion": "0.1.0",
16
+ "generatedAt": "2026-10-30T00:05:00Z",
17
+ "repos": [
18
+ {
19
+ "fullName": "golang/go",
20
+ "url": "https://github.com/golang/go",
21
+ "description": "The Go programming language",
22
+ "language": "go",
23
+ "stars": 126000,
24
+ "starsInPeriod": 320,
25
+ "forks": 17800,
26
+ "rank": 1,
27
+ "source": "trending-html",
28
+ "summarySource": "model",
29
+ "summary": "The official Go repository, among the top gainers today.",
30
+ "summaryLang": "en"
31
+ },
32
+ {
33
+ "fullName": "gin-gonic/gin",
34
+ "url": "https://github.com/gin-gonic/gin",
35
+ "description": "HTTP web framework written in Go",
36
+ "language": "go",
37
+ "stars": 80200,
38
+ "starsInPeriod": 210,
39
+ "forks": 8100,
40
+ "rank": 2,
41
+ "source": "trending-html",
42
+ "summarySource": "model",
43
+ "summary": "A popular Go web framework that keeps trending.",
44
+ "summaryLang": "en"
45
+ },
46
+ {
47
+ "fullName": "python/cpython",
48
+ "url": "https://github.com/python/cpython",
49
+ "description": "The Python programming language",
50
+ "language": "python",
51
+ "stars": 64500,
52
+ "starsInPeriod": 180,
53
+ "forks": 30500,
54
+ "rank": 3,
55
+ "source": "trending-html",
56
+ "summarySource": "model",
57
+ "summary": "The official CPython implementation, drawing more attention today.",
58
+ "summaryLang": "en"
59
+ },
60
+ {
61
+ "fullName": "psf/requests",
62
+ "url": "https://github.com/psf/requests",
63
+ "description": "A simple, yet elegant HTTP library",
64
+ "language": "python",
65
+ "stars": 52500,
66
+ "starsInPeriod": 95,
67
+ "forks": 9400,
68
+ "rank": 4,
69
+ "source": "trending-html",
70
+ "summarySource": "model",
71
+ "summary": "The classic Python HTTP library, a steady fixture on the charts.",
72
+ "summaryLang": "en"
73
+ },
74
+ {
75
+ "fullName": "rust-lang/rust",
76
+ "url": "https://github.com/rust-lang/rust",
77
+ "description": "Empowering everyone to build reliable and efficient software",
78
+ "language": "rust",
79
+ "stars": 102000,
80
+ "starsInPeriod": 260,
81
+ "forks": 13200,
82
+ "rank": 5,
83
+ "source": "trending-html",
84
+ "summarySource": "model",
85
+ "summary": "The main Rust repository, with an active community.",
86
+ "summaryLang": "en"
87
+ },
88
+ {
89
+ "fullName": "tokio-rs/tokio",
90
+ "url": "https://github.com/tokio-rs/tokio",
91
+ "description": "A runtime for writing reliable asynchronous applications with Rust",
92
+ "language": "rust",
93
+ "stars": 28600,
94
+ "starsInPeriod": 120,
95
+ "forks": 2650,
96
+ "rank": 6,
97
+ "source": "trending-html",
98
+ "summarySource": "model",
99
+ "summary": "The Rust async runtime, drawing strong interest for performance.",
100
+ "summaryLang": "en"
101
+ }
102
+ ]
103
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-30",
4
4
  "period": "daily",
5
5
  "languages": [
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "count": 2,
12
12
  "degraded": false,
13
- "contentHash": "sha256:38c38188602424014a7fdd8a3bfd0408690ce8a5db21be9c8559ac3ca85b2b4c",
13
+ "contentHash": "sha256:e4fd1d2d84cfaf9e6d97e4fe68297a7eac6f5e749fae50583050d1949b4bd80b",
14
14
  "contentHashAlgo": "jcs-sha256-v1",
15
15
  "coreVersion": "0.1.0",
16
16
  "generatedAt": "2026-10-30T00:05:00Z",
@@ -23,8 +23,9 @@
23
23
  "starsInPeriod": 320,
24
24
  "rank": 1,
25
25
  "source": "trending-html",
26
- "summaryZh": "Go 官方仓库,今日新增 star 位居榜单前列。",
27
- "summarySource": "model"
26
+ "summarySource": "model",
27
+ "summary": "Go 官方仓库,今日新增 star 位居榜单前列。",
28
+ "summaryLang": "zh"
28
29
  },
29
30
  {
30
31
  "fullName": "gin-gonic/gin",
@@ -34,8 +35,9 @@
34
35
  "starsInPeriod": 210,
35
36
  "rank": 2,
36
37
  "source": "trending-html",
37
- "summaryZh": "流行的 Go Web 框架,热度持续。",
38
- "summarySource": "model"
38
+ "summarySource": "model",
39
+ "summary": "流行的 Go Web 框架,热度持续。",
40
+ "summaryLang": "zh"
39
41
  }
40
42
  ]
41
43
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-30",
4
4
  "period": "daily",
5
5
  "languages": [
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "count": 6,
12
12
  "degraded": false,
13
- "contentHash": "sha256:a4769ff29cd41f2f85703c20faf9104a7f8b34500295d991f0b87786719544b2",
13
+ "contentHash": "sha256:23a470aa53d1e26ec722d3bbef3d33e7fcd330ba71b331afd8f2d9e433cb22c2",
14
14
  "contentHashAlgo": "jcs-sha256-v1",
15
15
  "coreVersion": "0.1.0",
16
16
  "generatedAt": "2026-10-30T00:05:00Z",
@@ -25,8 +25,9 @@
25
25
  "forks": 17800,
26
26
  "rank": 1,
27
27
  "source": "trending-html",
28
- "summaryZh": "Go 官方仓库,今日新增 star 位居榜单前列。",
29
- "summarySource": "model"
28
+ "summarySource": "model",
29
+ "summary": "Go 官方仓库,今日新增 star 位居榜单前列。",
30
+ "summaryLang": "zh"
30
31
  },
31
32
  {
32
33
  "fullName": "gin-gonic/gin",
@@ -38,8 +39,9 @@
38
39
  "forks": 8100,
39
40
  "rank": 2,
40
41
  "source": "trending-html",
41
- "summaryZh": "流行的 Go Web 框架,热度持续。",
42
- "summarySource": "model"
42
+ "summarySource": "model",
43
+ "summary": "流行的 Go Web 框架,热度持续。",
44
+ "summaryLang": "zh"
43
45
  },
44
46
  {
45
47
  "fullName": "python/cpython",
@@ -51,8 +53,9 @@
51
53
  "forks": 30500,
52
54
  "rank": 3,
53
55
  "source": "trending-html",
54
- "summaryZh": "CPython 官方实现,今日关注度上升。",
55
- "summarySource": "model"
56
+ "summarySource": "model",
57
+ "summary": "CPython 官方实现,今日关注度上升。",
58
+ "summaryLang": "zh"
56
59
  },
57
60
  {
58
61
  "fullName": "psf/requests",
@@ -64,8 +67,9 @@
64
67
  "forks": 9400,
65
68
  "rank": 4,
66
69
  "source": "trending-html",
67
- "summaryZh": "经典 Python HTTP 库,稳居热榜。",
68
- "summarySource": "model"
70
+ "summarySource": "model",
71
+ "summary": "经典 Python HTTP 库,稳居热榜。",
72
+ "summaryLang": "zh"
69
73
  },
70
74
  {
71
75
  "fullName": "rust-lang/rust",
@@ -77,8 +81,9 @@
77
81
  "forks": 13200,
78
82
  "rank": 5,
79
83
  "source": "trending-html",
80
- "summaryZh": "Rust 语言主仓库,社区活跃。",
81
- "summarySource": "model"
84
+ "summarySource": "model",
85
+ "summary": "Rust 语言主仓库,社区活跃。",
86
+ "summaryLang": "zh"
82
87
  },
83
88
  {
84
89
  "fullName": "tokio-rs/tokio",
@@ -90,8 +95,9 @@
90
95
  "forks": 2650,
91
96
  "rank": 6,
92
97
  "source": "trending-html",
93
- "summaryZh": "Rust 异步运行时,性能方向关注度高。",
94
- "summarySource": "model"
98
+ "summarySource": "model",
99
+ "summary": "Rust 异步运行时,性能方向关注度高。",
100
+ "summaryLang": "zh"
95
101
  }
96
102
  ]
97
103
  }
@@ -1,8 +1,8 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-31",
4
4
  "period": "weekly",
5
- "contentHash": "sha256:5f34a40370d022ed06a995e32917a0299a121973ef13eee0e2f1a747a0a6aecb",
5
+ "contentHash": "sha256:8a2789f6f865e03bf4a1423d12e88bf99e992d9672f796bcebd874282ca8740d",
6
6
  "contentHashAlgo": "jcs-sha256-v1",
7
7
  "count": 1,
8
8
  "degraded": true,
@@ -21,13 +21,14 @@
21
21
  "url": "https://github.com/acme/widget/releases/tag/v2.0.0",
22
22
  "prerelease": false,
23
23
  "draft": false,
24
- "summaryZh": "版本 v2.0.0(未获取到变更说明)",
25
- "summarySource": "original"
24
+ "summarySource": "original",
25
+ "summary": "版本 v2.0.0(未获取到变更说明)"
26
26
  }
27
27
  ],
28
28
  "periodStart": "2026-10-26",
29
29
  "periodEnd": "2026-11-01",
30
- "summaryZh": "本周 1 个版本:v2.0.0。"
30
+ "summary": "本周 1 个版本:v2.0.0。",
31
+ "summaryLang": "zh"
31
32
  }
32
33
  ]
33
34
  }
@@ -1,8 +1,8 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-31",
4
4
  "period": "weekly",
5
- "contentHash": "sha256:e9cd2c19bcaf079d832114be1dff9ce81351d1643c5c6e8efd5da781ef18d5e4",
5
+ "contentHash": "sha256:73ca07a4b446a21356ebcbc1cb31281494b36c4bab1f9285106e37eddb71571b",
6
6
  "contentHashAlgo": "jcs-sha256-v1",
7
7
  "count": 0,
8
8
  "degraded": false,
@@ -1,8 +1,8 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-10-31",
4
4
  "period": "weekly",
5
- "contentHash": "sha256:87fe3cf94463a7011dbebfbeae9d77544a613751fdd0ba194a6e4534c1bb02ba",
5
+ "contentHash": "sha256:bfbcf9cb9ff94b3452f79b2950ff6b84ae05b054247eeb4d116f6d0dbc8e5c7f",
6
6
  "contentHashAlgo": "jcs-sha256-v1",
7
7
  "coreVersion": "0.5.0",
8
8
  "generatedAt": "2026-10-31T13:04:00Z",
@@ -25,13 +25,14 @@
25
25
  "prerelease": false,
26
26
  "draft": false,
27
27
  "bodyExcerpt": "1.0.0-rc3 fixes several issues found in rc2.",
28
- "summaryZh": "新增证据充分性决策模型与 Categorize 组件,兼容 rc2 schema,可直接升级。",
29
- "summarySource": "model"
28
+ "summarySource": "model",
29
+ "summary": "新增证据充分性决策模型与 Categorize 组件,兼容 rc2 schema,可直接升级。"
30
30
  }
31
31
  ],
32
32
  "periodStart": "2026-10-26",
33
33
  "periodEnd": "2026-11-01",
34
- "summaryZh": "本周 1 个版本:v1.0.0-rc3。"
34
+ "summary": "本周 1 个版本:v1.0.0-rc3。",
35
+ "summaryLang": "zh"
35
36
  },
36
37
  {
37
38
  "fullName": "deepseek-ai/deepseek-harness",
@@ -47,13 +48,14 @@
47
48
  "url": "https://github.com/deepseek-ai/deepseek-harness/tree/dsh-v0.2.2-alpha.2",
48
49
  "prerelease": false,
49
50
  "draft": false,
50
- "summaryZh": "发布说明缺失,已回退到 commit 信息。",
51
- "summarySource": "model"
51
+ "summarySource": "model",
52
+ "summary": "发布说明缺失,已回退到 commit 信息。"
52
53
  }
53
54
  ],
54
55
  "periodStart": "2026-10-26",
55
56
  "periodEnd": "2026-11-01",
56
- "summaryZh": "本周 1 个版本:dsh-v0.2.2-alpha.2。"
57
+ "summary": "本周 1 个版本:dsh-v0.2.2-alpha.2。",
58
+ "summaryLang": "zh"
57
59
  }
58
60
  ]
59
61
  }
@@ -1,8 +1,8 @@
1
1
  {
2
- "schema": 2,
2
+ "schema": 3,
3
3
  "date": "2026-11-01",
4
4
  "period": "weekly",
5
- "contentHash": "sha256:0e93b38ea1e36f475161528332375d6e48a7fef1bad6125f96b27358d79b838e",
5
+ "contentHash": "sha256:f3cf704e70c6e869200778198226db50c9f7827d6f1371a3bf436b3e11ac0c2e",
6
6
  "contentHashAlgo": "jcs-sha256-v1",
7
7
  "coreVersion": "0.7.0",
8
8
  "generatedAt": "2026-11-01T00:30:00Z",
@@ -16,7 +16,6 @@
16
16
  "newCount": 2,
17
17
  "periodStart": "2026-10-26",
18
18
  "periodEnd": "2026-11-01",
19
- "summaryZh": "本周发布 v15.2.0 与 v15.1.9:构建缓存命中率提升,修复 App Router 下动态段预渲染的回归。",
20
19
  "releases": [
21
20
  {
22
21
  "id": 428974490,
@@ -41,7 +40,9 @@
41
40
  "draft": false,
42
41
  "summarySource": "model"
43
42
  }
44
- ]
43
+ ],
44
+ "summary": "本周发布 v15.2.0 与 v15.1.9:构建缓存命中率提升,修复 App Router 下动态段预渲染的回归。",
45
+ "summaryLang": "zh"
45
46
  }
46
47
  ]
47
48
  }
package/gen/ts/index.d.ts CHANGED
@@ -14,7 +14,8 @@ export interface RepoSnapshot {
14
14
  }
15
15
 
16
16
  export type RepoDigest = RepoSnapshot & {
17
- "summaryZh": string;
17
+ "summary": string;
18
+ "summaryLang": string;
18
19
  "summarySource": "model" | "original";
19
20
  [k: string]: unknown;
20
21
  };
@@ -45,7 +46,7 @@ export interface DigestArtifact {
45
46
  }
46
47
 
47
48
  export interface RunRequest {
48
- "ipcSchema": 3;
49
+ "ipcSchema": 4;
49
50
  "command": "run" | "serve" | "config" | "version" | "subscribe";
50
51
  "configPath"?: string;
51
52
  "date"?: string;
@@ -58,7 +59,7 @@ export interface RunRequest {
58
59
  }
59
60
 
60
61
  export interface RunResult {
61
- "ipcSchema": 3;
62
+ "ipcSchema": 4;
62
63
  "ok": boolean;
63
64
  "command": "run" | "serve" | "config" | "version" | "subscribe";
64
65
  "startedAt": string;
@@ -101,7 +102,7 @@ export interface StateRun {
101
102
  }
102
103
 
103
104
  export interface State {
104
- "ipcSchema": 3;
105
+ "ipcSchema": 4;
105
106
  "stateSchema": 3;
106
107
  "lastRun"?: StateRun;
107
108
  [k: string]: unknown;
@@ -117,7 +118,7 @@ export interface ReleaseItem {
117
118
  "prerelease": boolean;
118
119
  "draft": boolean;
119
120
  "bodyExcerpt"?: string;
120
- "summaryZh"?: string;
121
+ "summary"?: string;
121
122
  "summarySource": "model" | "original";
122
123
  [k: string]: unknown;
123
124
  }
@@ -129,7 +130,8 @@ export interface RepoReleases {
129
130
  "newCount": number;
130
131
  "periodStart"?: string;
131
132
  "periodEnd"?: string;
132
- "summaryZh"?: string;
133
+ "summary"?: string;
134
+ "summaryLang"?: string;
133
135
  "releases": Array<ReleaseItem>;
134
136
  [k: string]: unknown;
135
137
  }
@@ -203,7 +205,7 @@ export interface ErrorMeta {
203
205
  }
204
206
 
205
207
  export interface Digest {
206
- "schema": 2;
208
+ "schema": 3;
207
209
  "date": string;
208
210
  "period": "daily" | "weekly" | "monthly";
209
211
  "languages": Array<string>;
@@ -218,7 +220,7 @@ export interface Digest {
218
220
  }
219
221
 
220
222
  export interface ReleaseDigest {
221
- "schema": 2;
223
+ "schema": 3;
222
224
  "date": string;
223
225
  "period": "daily" | "weekly" | "monthly";
224
226
  "contentHash": string;
@@ -234,8 +236,8 @@ export interface ReleaseDigest {
234
236
  export interface VersionInfo {
235
237
  "version": string;
236
238
  "commit": string;
237
- "ipcSchema": 3;
238
- "digestSchema": 2;
239
+ "ipcSchema": 4;
240
+ "digestSchema": 3;
239
241
  "contractVersion": string;
240
242
  "supportedProviders": Array<string>;
241
243
  [k: string]: unknown;
@@ -248,6 +250,7 @@ export declare const fixtures: {
248
250
  degraded: Digest;
249
251
  emptyLang: Digest;
250
252
  missingOptional: Digest;
253
+ en: Digest;
251
254
  releaseNormal: ReleaseDigest;
252
255
  releaseDegraded: ReleaseDigest;
253
256
  releaseEmpty: ReleaseDigest;