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.
Files changed (56) hide show
  1. package/_release/product-identity.json +5 -0
  2. package/codex-adapter/package.json +1 -1
  3. package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.d.ts +2 -0
  4. package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.d.ts.map +1 -0
  5. package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.js +37 -0
  6. package/core/dist/runtime-v2/__tests__/pain-correction-evidence.test.js.map +1 -0
  7. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +61 -0
  8. package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -1
  9. package/core/dist/runtime-v2/context-payload.d.ts +77 -0
  10. package/core/dist/runtime-v2/context-payload.d.ts.map +1 -1
  11. package/core/dist/runtime-v2/context-payload.js +31 -0
  12. package/core/dist/runtime-v2/context-payload.js.map +1 -1
  13. package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js +88 -0
  14. package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js.map +1 -1
  15. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts +10 -0
  16. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
  17. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js +46 -1
  18. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +1 -1
  19. package/core/dist/runtime-v2/evidence-sanitizer.d.ts +6 -0
  20. package/core/dist/runtime-v2/evidence-sanitizer.d.ts.map +1 -1
  21. package/core/dist/runtime-v2/evidence-sanitizer.js +1 -1
  22. package/core/dist/runtime-v2/evidence-sanitizer.js.map +1 -1
  23. package/core/dist/runtime-v2/evolution/evolution-types.d.ts +7 -0
  24. package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -1
  25. package/core/dist/runtime-v2/evolution/evolution-types.js.map +1 -1
  26. package/core/dist/runtime-v2/pain-signal-bridge.d.ts +24 -0
  27. package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -1
  28. package/core/dist/runtime-v2/pain-signal-bridge.js +28 -0
  29. package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -1
  30. package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -1
  31. package/core/dist/runtime-v2/pain-signal-observability.js +9 -1
  32. package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
  33. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +9 -0
  34. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -1
  35. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js +35 -0
  36. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -1
  37. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +99 -0
  38. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -1
  39. package/core/dist/runtime-v2/task-status.d.ts +7 -0
  40. package/core/dist/runtime-v2/task-status.d.ts.map +1 -1
  41. package/core/dist/runtime-v2/task-status.js +4 -0
  42. package/core/dist/runtime-v2/task-status.js.map +1 -1
  43. package/core/package.json +1 -1
  44. package/dist/index.js +0 -0
  45. package/host-runtime/package.json +1 -1
  46. package/install-layout/package.json +1 -1
  47. package/package.json +2 -2
  48. package/pd-cli/package.json +1 -1
  49. package/plugin/dist/bundle.js +420 -398
  50. package/plugin/dist/core/trajectory.d.ts +30 -0
  51. package/plugin/dist/governance-audit.js +156 -156
  52. package/plugin/dist/openclaw.plugin.json +1 -1
  53. package/plugin/dist/rulehost-evidence.js +176 -166
  54. package/plugin/openclaw.plugin.json +1 -1
  55. package/plugin/package.json +1 -1
  56. 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
  *