principles-disciple 1.177.0 → 1.178.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.
|
@@ -201,14 +201,18 @@ export class SignalCollectorHost {
|
|
|
201
201
|
* 不用 strongPainScore(70),因为 WEAK 单条不该直接顶满 GFI。
|
|
202
202
|
*/
|
|
203
203
|
routeWeak(output, sessionId) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
204
|
+
try {
|
|
205
|
+
const hash = createHash('sha256')
|
|
206
|
+
.update(`${output.evidence.detectedAt}:${sessionId}`)
|
|
207
|
+
.digest('hex')
|
|
208
|
+
.slice(0, 32);
|
|
209
|
+
trackFriction(sessionId, 20, hash, this.wctx.workspaceDir, {
|
|
210
|
+
source: 'user_empathy',
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
catch (e) {
|
|
214
|
+
SystemLogger.log(this.wctx.workspaceDir, 'SIGNAL_TRACK_FRICTION_FAIL', `trackFriction threw: ${String(e)}`);
|
|
215
|
+
}
|
|
212
216
|
}
|
|
213
217
|
/**
|
|
214
218
|
* STRONG rate limit 门控:成功消耗一个名额返回 true;超限返回 false。
|
package/dist/utils/hashing.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createHash } from 'crypto';
|
|
|
4
4
|
* to allow for consistent loop detection even if the raw text varies slightly.
|
|
5
5
|
*/
|
|
6
6
|
export function denoiseError(text) {
|
|
7
|
-
if (!text)
|
|
7
|
+
if (!text || typeof text !== 'string')
|
|
8
8
|
return '';
|
|
9
9
|
return text
|
|
10
10
|
// Strip ISO timestamps and common date formats
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Evolutionary programming agent framework with strategic guardrails and reflection loops.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.178.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|