@morehao/trendradar-contract 0.5.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 +42 -2
- package/README.md +22 -18
- package/fixtures/digest-degraded.json +8 -6
- package/fixtures/digest-empty-lang.json +8 -6
- package/fixtures/digest-en.json +103 -0
- package/fixtures/digest-missing-optional.json +8 -6
- package/fixtures/digest-normal.json +20 -14
- package/fixtures/release-degraded.json +6 -5
- package/fixtures/release-empty.json +2 -2
- package/fixtures/release-normal.json +10 -8
- package/fixtures/release-weekly.json +5 -4
- package/gen/ts/index.d.ts +23 -11
- package/gen/ts/index.js +245 -86
- package/package.json +1 -1
- package/schema/api.v2.yaml +1 -1
- package/schema/{digest.v2.json → digest.v3.json} +4 -4
- package/schema/errors.v2.json +1 -1
- package/schema/{ipc.v2.json → ipc.v4.json} +42 -10
- package/schema/{model.v2.json → model.v3.json} +5 -4
- package/schema/{releases.v2.json → releases.v3.json} +15 -11
- package/schema/version-info.v2.json +3 -3
- package/version-map.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,49 @@
|
|
|
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
|
-
##
|
|
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
|
+
|
|
34
|
+
## 0.6.0
|
|
35
|
+
|
|
36
|
+
Digest inlined in `RunResult`. **Breaking wire bump**: `ipcSchema` 2 → 3
|
|
37
|
+
(`digestSchema` stays 2). A core/plugin pair must both move to this contract
|
|
38
|
+
line; the plugin's handshake hard-rejects the mismatch.
|
|
7
39
|
|
|
8
|
-
|
|
40
|
+
### Added
|
|
41
|
+
- `RunResult.digest` (optional): the digest document this run rendered —
|
|
42
|
+
`{ path, bytes, sha256, text }`. `bytes`/`sha256` describe `text`'s UTF-8 bytes
|
|
43
|
+
exactly as written to `path`; `text` is capped at 1 MiB.
|
|
44
|
+
Present whenever the digest stage rendered a document (including
|
|
45
|
+
`skipped=unchanged` and the `merged` / `pr-closed` early exits, which render
|
|
46
|
+
before the PR pre-check); absent for dry runs, release-only runs, and failures
|
|
47
|
+
before rendering. Consumers no longer need to read the output repository to
|
|
48
|
+
display the digest.
|
|
9
49
|
|
|
10
50
|
## 0.5.0
|
|
11
51
|
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @morehao/trendradar-contract (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,30 +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.
|
|
16
|
-
> **wire format** it carries is the
|
|
17
|
-
> `digestSchema=
|
|
18
|
-
> in-repo v1
|
|
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.
|
|
19
20
|
|
|
20
21
|
## Install
|
|
21
22
|
|
|
22
23
|
```bash
|
|
23
|
-
npm i @morehao/trendradar-contract@0.
|
|
24
|
-
go get github.com/morehao/trendradar/contract@v0.
|
|
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
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
## Layout
|
|
28
29
|
|
|
29
30
|
| Path | Purpose |
|
|
30
31
|
|---|---|
|
|
31
|
-
| `schema/model.
|
|
32
|
-
| `schema/ipc.
|
|
33
|
-
| `schema/digest.
|
|
34
|
-
| `schema/releases.
|
|
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) |
|
|
35
36
|
| `schema/errors.v2.json` | 17 error codes with `retriable`/`description` (single source of truth) |
|
|
36
37
|
| `schema/version-info.v2.json` | `trendradar version --json` handshake |
|
|
37
38
|
| `schema/api.v2.yaml` | `trendradar serve` OpenAPI (`/api/v2`, incl. releases) |
|
|
38
|
-
| `fixtures/*.json` | golden
|
|
39
|
+
| `fixtures/*.json` | golden v3 digests + release documents |
|
|
39
40
|
| `version-map.json` | schema file → version carrier → propagation |
|
|
40
41
|
| `contract.gen.go` | generated Go structs + `ErrorCode` + `ErrorCatalog` + `SchemaFS` |
|
|
41
42
|
| `gen/ts/index.{js,d.ts}` | generated TS types + runtime (`validators`, `errorCatalog`, `fixtures`, `rawSchema`) |
|
|
@@ -61,8 +62,8 @@ contract.SchemaFS // embedded schema/* files
|
|
|
61
62
|
|
|
62
63
|
## Versioning & compatibility
|
|
63
64
|
|
|
64
|
-
- `ipcSchema` (const
|
|
65
|
-
`contractVersion` (`"0.
|
|
65
|
+
- `ipcSchema` (const 4) and `digestSchema` (const 3) are the wire integers;
|
|
66
|
+
`contractVersion` (`"0.7.0"`) is the package handshake.
|
|
66
67
|
- Adding an **optional** field is a minor change. Removing/renaming a field,
|
|
67
68
|
changing a type, or tightening validation is **breaking**: bump the affected
|
|
68
69
|
wire integer and/or the package version, declared in `version-map.json`.
|
|
@@ -72,10 +73,13 @@ contract.SchemaFS // embedded schema/* files
|
|
|
72
73
|
`list` takes no `repo`/`volume`, `add`/`remove` require a `repo` and no
|
|
73
74
|
`volume`, `releases` requires a `repo` and may name a `volume`; other commands
|
|
74
75
|
must not carry any of them. `stages` is run-only.
|
|
75
|
-
- `ReleaseDigest.schema` is `
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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.
|
|
79
83
|
- `ReleasesReport.checked` / `changed` are **required** so `0` ("checked nothing")
|
|
80
84
|
is distinguishable from "not reported".
|
|
81
85
|
- Token cost for releases lives in `ReleasesReport.usage` (always present) and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schema":
|
|
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:
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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
|
-
"
|
|
40
|
-
"
|
|
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
|
+
"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:
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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
|
-
"
|
|
40
|
-
"
|
|
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
|
+
"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:
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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
|
-
"
|
|
38
|
-
"
|
|
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
|
+
"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:
|
|
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
|
-
"
|
|
29
|
-
"
|
|
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
|
-
"
|
|
42
|
-
"
|
|
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
|
-
"
|
|
55
|
-
"
|
|
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
|
-
"
|
|
68
|
-
"
|
|
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
|
-
"
|
|
81
|
-
"
|
|
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
|
-
"
|
|
94
|
-
"
|
|
98
|
+
"summarySource": "model",
|
|
99
|
+
"summary": "Rust 异步运行时,性能方向关注度高。",
|
|
100
|
+
"summaryLang": "zh"
|
|
95
101
|
}
|
|
96
102
|
]
|
|
97
103
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schema":
|
|
2
|
+
"schema": 3,
|
|
3
3
|
"date": "2026-10-31",
|
|
4
4
|
"period": "weekly",
|
|
5
|
-
"contentHash": "sha256:
|
|
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
|
-
"
|
|
25
|
-
"
|
|
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
|
-
"
|
|
30
|
+
"summary": "本周 1 个版本:v2.0.0。",
|
|
31
|
+
"summaryLang": "zh"
|
|
31
32
|
}
|
|
32
33
|
]
|
|
33
34
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schema":
|
|
2
|
+
"schema": 3,
|
|
3
3
|
"date": "2026-10-31",
|
|
4
4
|
"period": "weekly",
|
|
5
|
-
"contentHash": "sha256:
|
|
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
|
+
"schema": 3,
|
|
3
3
|
"date": "2026-10-31",
|
|
4
4
|
"period": "weekly",
|
|
5
|
-
"contentHash": "sha256:
|
|
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
|
-
"
|
|
29
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
51
|
-
"
|
|
51
|
+
"summarySource": "model",
|
|
52
|
+
"summary": "发布说明缺失,已回退到 commit 信息。"
|
|
52
53
|
}
|
|
53
54
|
],
|
|
54
55
|
"periodStart": "2026-10-26",
|
|
55
56
|
"periodEnd": "2026-11-01",
|
|
56
|
-
"
|
|
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
|
+
"schema": 3,
|
|
3
3
|
"date": "2026-11-01",
|
|
4
4
|
"period": "weekly",
|
|
5
|
-
"contentHash": "sha256:
|
|
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
|
-
"
|
|
17
|
+
"summary": string;
|
|
18
|
+
"summaryLang": string;
|
|
18
19
|
"summarySource": "model" | "original";
|
|
19
20
|
[k: string]: unknown;
|
|
20
21
|
};
|
|
@@ -36,8 +37,16 @@ export interface FileArtifact {
|
|
|
36
37
|
[k: string]: unknown;
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
export interface DigestArtifact {
|
|
41
|
+
"path": string;
|
|
42
|
+
"bytes": number;
|
|
43
|
+
"sha256": string;
|
|
44
|
+
"text": string;
|
|
45
|
+
[k: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
|
|
39
48
|
export interface RunRequest {
|
|
40
|
-
"ipcSchema":
|
|
49
|
+
"ipcSchema": 4;
|
|
41
50
|
"command": "run" | "serve" | "config" | "version" | "subscribe";
|
|
42
51
|
"configPath"?: string;
|
|
43
52
|
"date"?: string;
|
|
@@ -50,13 +59,14 @@ export interface RunRequest {
|
|
|
50
59
|
}
|
|
51
60
|
|
|
52
61
|
export interface RunResult {
|
|
53
|
-
"ipcSchema":
|
|
62
|
+
"ipcSchema": 4;
|
|
54
63
|
"ok": boolean;
|
|
55
64
|
"command": "run" | "serve" | "config" | "version" | "subscribe";
|
|
56
65
|
"startedAt": string;
|
|
57
66
|
"finishedAt": string;
|
|
58
67
|
"skipped": boolean;
|
|
59
68
|
"files": Array<FileArtifact>;
|
|
69
|
+
"digest"?: DigestArtifact;
|
|
60
70
|
"branch"?: string;
|
|
61
71
|
"commit"?: string;
|
|
62
72
|
"prUrl"?: string;
|
|
@@ -92,8 +102,8 @@ export interface StateRun {
|
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
export interface State {
|
|
95
|
-
"ipcSchema":
|
|
96
|
-
"stateSchema":
|
|
105
|
+
"ipcSchema": 4;
|
|
106
|
+
"stateSchema": 3;
|
|
97
107
|
"lastRun"?: StateRun;
|
|
98
108
|
[k: string]: unknown;
|
|
99
109
|
}
|
|
@@ -108,7 +118,7 @@ export interface ReleaseItem {
|
|
|
108
118
|
"prerelease": boolean;
|
|
109
119
|
"draft": boolean;
|
|
110
120
|
"bodyExcerpt"?: string;
|
|
111
|
-
"
|
|
121
|
+
"summary"?: string;
|
|
112
122
|
"summarySource": "model" | "original";
|
|
113
123
|
[k: string]: unknown;
|
|
114
124
|
}
|
|
@@ -120,7 +130,8 @@ export interface RepoReleases {
|
|
|
120
130
|
"newCount": number;
|
|
121
131
|
"periodStart"?: string;
|
|
122
132
|
"periodEnd"?: string;
|
|
123
|
-
"
|
|
133
|
+
"summary"?: string;
|
|
134
|
+
"summaryLang"?: string;
|
|
124
135
|
"releases": Array<ReleaseItem>;
|
|
125
136
|
[k: string]: unknown;
|
|
126
137
|
}
|
|
@@ -194,7 +205,7 @@ export interface ErrorMeta {
|
|
|
194
205
|
}
|
|
195
206
|
|
|
196
207
|
export interface Digest {
|
|
197
|
-
"schema":
|
|
208
|
+
"schema": 3;
|
|
198
209
|
"date": string;
|
|
199
210
|
"period": "daily" | "weekly" | "monthly";
|
|
200
211
|
"languages": Array<string>;
|
|
@@ -209,7 +220,7 @@ export interface Digest {
|
|
|
209
220
|
}
|
|
210
221
|
|
|
211
222
|
export interface ReleaseDigest {
|
|
212
|
-
"schema":
|
|
223
|
+
"schema": 3;
|
|
213
224
|
"date": string;
|
|
214
225
|
"period": "daily" | "weekly" | "monthly";
|
|
215
226
|
"contentHash": string;
|
|
@@ -225,8 +236,8 @@ export interface ReleaseDigest {
|
|
|
225
236
|
export interface VersionInfo {
|
|
226
237
|
"version": string;
|
|
227
238
|
"commit": string;
|
|
228
|
-
"ipcSchema":
|
|
229
|
-
"digestSchema":
|
|
239
|
+
"ipcSchema": 4;
|
|
240
|
+
"digestSchema": 3;
|
|
230
241
|
"contractVersion": string;
|
|
231
242
|
"supportedProviders": Array<string>;
|
|
232
243
|
[k: string]: unknown;
|
|
@@ -239,6 +250,7 @@ export declare const fixtures: {
|
|
|
239
250
|
degraded: Digest;
|
|
240
251
|
emptyLang: Digest;
|
|
241
252
|
missingOptional: Digest;
|
|
253
|
+
en: Digest;
|
|
242
254
|
releaseNormal: ReleaseDigest;
|
|
243
255
|
releaseDegraded: ReleaseDigest;
|
|
244
256
|
releaseEmpty: ReleaseDigest;
|