add-coder 0.3.13 → 0.3.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "add-coder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "[codein2027](https://github.com/xiaomingming92/codein2027) - A complete scaffolding for building the ADD programming paradigm, the implementation layer for AI code governance. Core principle: Audit as Infrastructure. Breaks the black-box programming process and cross-session amnesia, evolving programming paradigms into an auditable, traceable, and convergent new era. npx-ready.\n\n[codein2027](https://github.com/xiaomingming92/codein2027) 快速构建 ADD 编程范式的完整脚手架——AI 代码治理的落地方案。以「审计即基础设施」为核心,彻底打破编程过程黑盒与跨轮失忆,让编程范式进化为可审计、可追溯、可收敛的新时代。npx 即用,人人可体验。",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"email": "wujixmm@gmail.com",
|
|
41
41
|
"license": "AGPL-3.0-only",
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"@huggingface/transformers": "^3.8.1",
|
|
43
44
|
"@modelcontextprotocol/server": "2.0.0",
|
|
44
|
-
"@xenova/transformers": "^2.17.2",
|
|
45
45
|
"commander": "^13.1.0",
|
|
46
46
|
"smol-toml": "^1.7.0",
|
|
47
47
|
"vector-cosine-similarity": "^1.8.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"prisma": "^7.0.0",
|
|
55
55
|
"tsx": ">=4",
|
|
56
56
|
"vector-cosine-similarity": "^1.8.0",
|
|
57
|
-
"@
|
|
57
|
+
"@huggingface/transformers": "^3.8.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"@prisma/client": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@prisma/adapter-pg": {
|
|
73
73
|
"optional": false
|
|
74
74
|
},
|
|
75
|
-
"@
|
|
75
|
+
"@huggingface/transformers": {
|
|
76
76
|
"optional": false
|
|
77
77
|
}
|
|
78
78
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_version": "0.3.
|
|
2
|
+
"_version": "0.3.14",
|
|
3
3
|
"adapters/claude/hooks/doc-format-guard.sh": "ec59ad3f",
|
|
4
4
|
"adapters/claude/hooks/lib/common.sh": "4f3e64ad",
|
|
5
5
|
"adapters/claude/hooks/lib/context-inject.sh": "cfc8c65e",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"core/plans/2026-07/08/add-coder-npm-package-add-route-v1.md": "b05fce99",
|
|
167
167
|
"core/plans/2026-07/08/add-coder-npm-package-handoff-v1.md": "1bd40a4a",
|
|
168
168
|
"core/plans/2026-07/08/add-coder-npm-package-plan-v1.md": "a678d98e",
|
|
169
|
-
"core/prisma/add.prisma": "
|
|
169
|
+
"core/prisma/add.prisma": "fa818acf",
|
|
170
170
|
"core/reports/REPORT-WORKFLOW.md": "03d39b21",
|
|
171
171
|
"core/reports/boundary-runtime-report.md": "6fd8053f",
|
|
172
172
|
"core/reports/code-review-combined-report.md": "195d52aa",
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
"core/scripts/mcp-server/tools/gateway/check_dps.ts": "cea4cb8b",
|
|
212
212
|
"core/scripts/mcp-server/tools/gateway/check_rahs.ts": "c37f6810",
|
|
213
213
|
"core/scripts/mcp-server/tools/gateway/check_spec_sync.ts": "a683697f",
|
|
214
|
-
"core/scripts/mcp-server/tools/gateway/helpers.ts": "
|
|
214
|
+
"core/scripts/mcp-server/tools/gateway/helpers.ts": "690d7891",
|
|
215
215
|
"core/scripts/mcp-server/tools/gateway/index.ts": "5a9fd5ed",
|
|
216
216
|
"core/scripts/mcp-server/tools/gateway.backup": "65eae393",
|
|
217
217
|
"core/scripts/mcp-server/tools/hitl.ts": "80093743",
|
|
@@ -94,6 +94,12 @@ model PlanRecord {
|
|
|
94
94
|
checklistTDone Int @default(0)
|
|
95
95
|
checklistR Int @default(0)
|
|
96
96
|
planKeyword String?
|
|
97
|
+
// DPS 四维评分历史(check_dps 调用后回写,供 FFT 自适应权重消费)
|
|
98
|
+
dpsSemScore Int? // 语义相关性 0-100
|
|
99
|
+
dpsEntropyScore Int? // 信息熵匹配 0-100
|
|
100
|
+
dpsCpmScore Int? // CPM 关键路径 0-100
|
|
101
|
+
dpsStructScore Int? // 结构完整度 0-100
|
|
102
|
+
dpsComposite Int? // 加权 DPS 总分 0-100
|
|
97
103
|
hitls HitlRecord[]
|
|
98
104
|
reviews ReviewRecord[]
|
|
99
105
|
createdAt DateTime @default(now())
|
|
@@ -105,7 +105,7 @@ let _embedPipeline: { embed: (texts: string[]) => Promise<number[][]> } | null =
|
|
|
105
105
|
|
|
106
106
|
export async function getEmbeddings(texts: string[]): Promise<number[][]> {
|
|
107
107
|
if (!_embedPipeline) {
|
|
108
|
-
const { pipeline, env } = await import("@
|
|
108
|
+
const { pipeline, env } = await import("@huggingface/transformers");
|
|
109
109
|
env.remoteHost = "https://hf-mirror.com";
|
|
110
110
|
env.remotePathTemplate = "{model}/resolve/{revision}/";
|
|
111
111
|
const extractor = await pipeline("feature-extraction", CFG.EMBEDDING_MODEL);
|