@shgroup/dsh-serenity-hooks 1.137.0 → 1.137.2
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/dsh.plugin.json +1 -1
- package/lib/index.js +60 -1060
- package/lib/{observation-BWJTHStS.js → observation-BIpcL_F3.js} +2 -1
- package/lib/rebuild-zCm04DGI.js +1073 -0
- package/lib/seams/bootstrap.d.ts +24 -6
- package/lib/seams/{keeper.d.ts → cognitive-trajectory-lifecycle.d.ts} +10 -2
- package/lib/service-DF23HvHY.js +1003 -0
- package/lib/{service-CSwriijn.js → service-TiJlHI6n.js} +1 -1
- package/lib/{session-y44CGve_.js → session-BUyOHV12.js} +5 -5
- package/lib/status-8oXxyBw6.js +1309 -0
- package/lib/trajectory/assistant.d.ts +1 -1
- package/lib/trajectory/reconstruct.d.ts +11 -6
- package/package.json +1 -1
- package/lib/status-BjebXb2G.js +0 -2307
|
@@ -4,7 +4,7 @@ import { F as isoLocal, w as sessionEvents } from "./bind-file-Dy6Qmm7z.js";
|
|
|
4
4
|
import { d as WAKE_CATCH_UP_MS, l as listCroCognitiveTrajectories } from "./scheduler-DMF2hKeT.js";
|
|
5
5
|
import { n as readSimpleSettings } from "./settings-zIGSzPPG.js";
|
|
6
6
|
import { i as subscriptionStats, r as subscriptionEval } from "./subscriptions-DLLyoLSW.js";
|
|
7
|
-
import { containerClocks, containerWakes } from "./observation-
|
|
7
|
+
import { containerClocks, containerWakes } from "./observation-BIpcL_F3.js";
|
|
8
8
|
//#region src/trajectory/live.ts
|
|
9
9
|
/**
|
|
10
10
|
* trajectory/live.ts — 进程内 live 会话取数 + 精简诊断
|
|
@@ -2176,13 +2176,13 @@ function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
|
|
|
2176
2176
|
`Active session: ${active.sessionId} — ${active.dirName} (this session is the rebuildable carrier of the cognitive trajectory)`,
|
|
2177
2177
|
`SESSION.md path: ${active.mdPath} (the cognitive trajectory's persistent body — stays in place through rebuilds)`,
|
|
2178
2178
|
"",
|
|
2179
|
-
"Rules (SESSION.md is the cognitive trajectory
|
|
2179
|
+
"Rules (SESSION.md is the cognitive trajectory BODY — judgement only; keep its format & granularity fixed):",
|
|
2180
2180
|
" • Write only when a MILESTONE landed or a DECISION was made — not every round",
|
|
2181
2181
|
" • One entry = one abstraction level, at the highest one that can express it:",
|
|
2182
2182
|
" identity/anchors (rare) › decision (one line + rationale/rejected) › milestone",
|
|
2183
|
-
" (one line + an evidence pointer, e.g. a commit id).
|
|
2184
|
-
"
|
|
2185
|
-
" COMMIT MESSAGE
|
|
2183
|
+
" (one line + an evidence pointer, e.g. a commit id). Process detail — attempts,",
|
|
2184
|
+
" dead ends, raw readings, step narration — belongs in LOG/LOG.md, written as it",
|
|
2185
|
+
" happens. Only the diff-level nitty-gritty goes in the COMMIT MESSAGE. Not here.",
|
|
2186
2186
|
" • Never write a value that changes by the act of writing it (file size; the hash",
|
|
2187
2187
|
" of the commit containing this edit)",
|
|
2188
2188
|
" • Fixed sections, in this order: 身份与边界 / 权威锚点 / 工作纪律 / 决策 / 日志 /",
|
|
@@ -2204,7 +2204,7 @@ function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
|
|
|
2204
2204
|
"task=10, read/grep/glob/msm=1, +1 per minute) and reminds you with a",
|
|
2205
2205
|
"[COGNITIVE-TRAJECTORY-ASSISTANT · CHECKPOINT] message when the threshold is reached. On every such",
|
|
2206
2206
|
"reminder you MUST reply with the exact ACK code:",
|
|
2207
|
-
" [COGNITIVE-TRAJECTORY-ASSISTANT-recorded-{code}]
|
|
2207
|
+
" [COGNITIVE-TRAJECTORY-ASSISTANT-recorded-{code}] — if you recorded progress: SESSION.md for judgement, LOG/LOG.md for process",
|
|
2208
2208
|
" [COGNITIVE-TRAJECTORY-ASSISTANT-skipped-{code}] — if nothing to record this round",
|
|
2209
2209
|
"Do not ignore the reminder; do not stop ongoing work. Codes are single-use;",
|
|
2210
2210
|
"never reuse a prior code.",
|