create-principles-disciple 1.143.2 → 1.143.3
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/_release/product-identity.json +5 -0
- package/codex-adapter/package.json +1 -1
- package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.js +37 -0
- package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +61 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -1
- package/core/dist/runtime-v2/context-payload.d.ts +77 -0
- package/core/dist/runtime-v2/context-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/context-payload.js +31 -0
- package/core/dist/runtime-v2/context-payload.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js +88 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts +10 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js +46 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/evidence-sanitizer.d.ts +6 -0
- package/core/dist/runtime-v2/evidence-sanitizer.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-sanitizer.js +1 -1
- package/core/dist/runtime-v2/evidence-sanitizer.js.map +1 -1
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts +7 -0
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/evolution/evolution-types.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts +24 -0
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.js +28 -0
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.js +9 -1
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +9 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js +35 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +99 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -1
- package/core/dist/runtime-v2/task-status.d.ts +7 -0
- package/core/dist/runtime-v2/task-status.d.ts.map +1 -1
- package/core/dist/runtime-v2/task-status.js +4 -0
- package/core/dist/runtime-v2/task-status.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/index.js +0 -0
- package/host-runtime/package.json +1 -1
- package/install-layout/package.json +1 -1
- package/package.json +2 -2
- package/pd-cli/package.json +1 -1
- package/plugin/dist/bundle.js +420 -398
- package/plugin/dist/core/trajectory.d.ts +30 -0
- package/plugin/dist/governance-audit.js +156 -156
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/rulehost-evidence.js +176 -166
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/release-manager/package.json +2 -2
|
@@ -211,6 +211,36 @@ export declare class TrajectoryDatabase {
|
|
|
211
211
|
correctionCue: string | null;
|
|
212
212
|
createdAt: string;
|
|
213
213
|
}[];
|
|
214
|
+
/**
|
|
215
|
+
* PRI-844: the most recent correction-flagged user turn of a session, with
|
|
216
|
+
* the Owner's verbatim words (full raw_text when it was persisted inline;
|
|
217
|
+
* falls back to the ≤200-char excerpt when the text was offloaded to a
|
|
218
|
+
* blob). Used by pain producers that only hold a session id (e.g. the
|
|
219
|
+
* llm_output hook) to attach first-class correction evidence instead of a
|
|
220
|
+
* trigger excerpt. `maxAgeMs` bounds staleness — a correction from long
|
|
221
|
+
* before the pain must not be attributed to it.
|
|
222
|
+
*/
|
|
223
|
+
getLatestCorrectionTurn(sessionId: string, opts?: {
|
|
224
|
+
maxAgeMs?: number;
|
|
225
|
+
nowMs?: number;
|
|
226
|
+
}): {
|
|
227
|
+
turnIndex: number;
|
|
228
|
+
text: string;
|
|
229
|
+
referencesAssistantTurnId: number | null;
|
|
230
|
+
occurredAt: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* PRI-844: fetch one user turn by rowid for correction-evidence recovery on
|
|
234
|
+
* the async confirmation path (the persisted queue stores only a 400-char
|
|
235
|
+
* excerpt; the full text stays here). Returns undefined when the row is
|
|
236
|
+
* gone or carries no recoverable text.
|
|
237
|
+
*/
|
|
238
|
+
getCorrectionTurnByRowid(rowid: number): {
|
|
239
|
+
turnIndex: number;
|
|
240
|
+
text: string;
|
|
241
|
+
referencesAssistantTurnId: number | null;
|
|
242
|
+
occurredAt: string;
|
|
243
|
+
} | undefined;
|
|
214
244
|
/**
|
|
215
245
|
* List correction samples with optional review status filter.
|
|
216
246
|
*
|