@principles/host-runtime 4.1.0 → 4.1.1
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.
|
@@ -66,6 +66,7 @@ export async function readPromptActivationCandidates(input) {
|
|
|
66
66
|
artifact_kind: artifact.artifactKind,
|
|
67
67
|
content_json: artifact.contentJson,
|
|
68
68
|
validation_status: artifact.validationStatus,
|
|
69
|
+
source_principle_id: artifact.sourcePrincipleId,
|
|
69
70
|
}, activation);
|
|
70
71
|
if (!resolved.ok) {
|
|
71
72
|
warnings.push(resolved.warning);
|
|
@@ -85,6 +85,18 @@ export const HIGH_PRECISION_CORRECTION_OVERLAY = [
|
|
|
85
85
|
export const AMBIGUOUS_CORRECTION_OVERLAY = [
|
|
86
86
|
['我说的是', 0.9],
|
|
87
87
|
['都说了', 0.8],
|
|
88
|
+
// 2026-11-13 真实宿主回归(P1-1):Owner「这种没有数据支撑的激进改动我不
|
|
89
|
+
// 接受。以后改配置参数前,先说明依据和影响,等我确认后再动手。」在零命中
|
|
90
|
+
// 预算下被漏检。以下只作候选(precision=ambiguous),必须经 Stage2 LLM 确认,
|
|
91
|
+
// 不得直达 STRONG;普通否定句仍可能被 LLM 判为 none。
|
|
92
|
+
['不接受', 0.6],
|
|
93
|
+
['我不同意', 0.6],
|
|
94
|
+
['我没让你', 0.6],
|
|
95
|
+
['没有让你', 0.6],
|
|
96
|
+
['未经确认', 0.5],
|
|
97
|
+
['先别执行', 0.6],
|
|
98
|
+
['没有依据', 0.5],
|
|
99
|
+
['这不是我要求的', 0.7],
|
|
88
100
|
];
|
|
89
101
|
function isValidLearnedKeyword(v) {
|
|
90
102
|
if (typeof v !== 'object' || v === null)
|
|
@@ -19,6 +19,8 @@ export interface PromptDeliverabilityCandidateArtifact {
|
|
|
19
19
|
artifactKind: string;
|
|
20
20
|
contentJson: string;
|
|
21
21
|
validationStatus: string;
|
|
22
|
+
/** Formal ledger identity column; identity never comes from content titles. */
|
|
23
|
+
sourcePrincipleId?: string;
|
|
22
24
|
}
|
|
23
25
|
export type PromptArtifactDeliverability = {
|
|
24
26
|
status: 'deliverable';
|
|
@@ -24,6 +24,7 @@ export function resolvePromptCandidatePrinciple(artifact) {
|
|
|
24
24
|
artifact_kind: artifact.artifactKind,
|
|
25
25
|
content_json: artifact.contentJson,
|
|
26
26
|
validation_status: artifact.validationStatus,
|
|
27
|
+
source_principle_id: artifact.sourcePrincipleId,
|
|
27
28
|
}, syntheticPendingActivation(artifact.artifactId));
|
|
28
29
|
}
|
|
29
30
|
function selfReportEnabledFor(workspaceDir) {
|
|
@@ -195,6 +196,7 @@ export async function loadPromptArtifactById(workspaceDir, artifactId) {
|
|
|
195
196
|
artifactKind: record.artifactKind,
|
|
196
197
|
contentJson: record.contentJson,
|
|
197
198
|
validationStatus: record.validationStatus,
|
|
199
|
+
sourcePrincipleId: record.sourcePrincipleId,
|
|
198
200
|
},
|
|
199
201
|
};
|
|
200
202
|
}
|
|
@@ -56,6 +56,7 @@ export async function readPromptActivationInjectionStatuses(input) {
|
|
|
56
56
|
artifact_kind: artifact.artifactKind,
|
|
57
57
|
content_json: artifact.contentJson,
|
|
58
58
|
validation_status: artifact.validationStatus,
|
|
59
|
+
source_principle_id: artifact.sourcePrincipleId,
|
|
59
60
|
}, activation);
|
|
60
61
|
if (!resolved.ok) {
|
|
61
62
|
rows.push({ activationId: activation.activationId, failure: resolved.warning });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/host-runtime",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Shared host-neutral orchestration for Principles Disciple MVP-Core hook paths.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"lint": "eslint \"src/**/*.ts\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@principles/core": "^7.6.
|
|
35
|
-
"@principles/install-layout": "^0.8.
|
|
34
|
+
"@principles/core": "^7.6.1",
|
|
35
|
+
"@principles/install-layout": "^0.8.1",
|
|
36
36
|
"better-sqlite3": "^13.0.3",
|
|
37
37
|
"js-yaml": "^5.4.3"
|
|
38
38
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"url": "git+https://github.com/csuzngjh/principles.git"
|
|
50
50
|
},
|
|
51
51
|
"license": "Apache-2.0",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8582e5dde27a582c63f3ad6804675a84c0d0c11e"
|
|
53
53
|
}
|