create-principles-disciple 1.142.1 → 1.142.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.
Files changed (37) hide show
  1. package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.js +54 -0
  2. package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.js.map +1 -1
  3. package/core/dist/runtime-v2/adapter/artificer-l2-adapter.d.ts.map +1 -1
  4. package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js +53 -1
  5. package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js.map +1 -1
  6. package/core/dist/runtime-v2/internalization/__tests__/scribe-intent-contract-normalization.test.d.ts +2 -0
  7. package/core/dist/runtime-v2/internalization/__tests__/scribe-intent-contract-normalization.test.d.ts.map +1 -0
  8. package/core/dist/runtime-v2/internalization/__tests__/scribe-intent-contract-normalization.test.js +78 -0
  9. package/core/dist/runtime-v2/internalization/__tests__/scribe-intent-contract-normalization.test.js.map +1 -0
  10. package/core/dist/runtime-v2/internalization/scribe-output.d.ts +13 -0
  11. package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -1
  12. package/core/dist/runtime-v2/internalization/scribe-output.js +32 -0
  13. package/core/dist/runtime-v2/internalization/scribe-output.js.map +1 -1
  14. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -1
  15. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js +1 -0
  16. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -1
  17. package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -1
  18. package/core/dist/runtime-v2/internalization/scribe-runner.js +4 -0
  19. package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -1
  20. package/core/dist/telemetry-event.d.ts +2 -2
  21. package/core/dist/telemetry-event.d.ts.map +1 -1
  22. package/core/dist/telemetry-event.js +3 -0
  23. package/core/dist/telemetry-event.js.map +1 -1
  24. package/core/package.json +1 -1
  25. package/package.json +2 -2
  26. package/pd-cli/dist/commands/runtime-internalization-run-rulehost.d.ts.map +1 -1
  27. package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +8 -0
  28. package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
  29. package/pd-cli/package.json +1 -1
  30. package/plugin/dist/bundle.js +404 -398
  31. package/plugin/dist/core/signal-collector-host.d.ts +6 -0
  32. package/plugin/dist/core/trajectory.d.ts +8 -0
  33. package/plugin/dist/governance-audit.js +3 -3
  34. package/plugin/dist/rulehost-evidence.js +8 -4
  35. package/plugin/openclaw.plugin.json +1 -1
  36. package/plugin/package.json +1 -1
  37. package/release-manager/package.json +2 -2
@@ -87,6 +87,12 @@ export declare class SignalCollectorHost {
87
87
  * 3. 按 strength 分流:STRONG → emitPainDetectedEvent;WEAK → trackFriction 累积 GFI;none → 仅记录
88
88
  */
89
89
  private detectAsyncAndRoute;
90
+ /**
91
+ * PRI-788 G1: Stage2 确认为纠正后回写 user_turns.correction_detected(G1)。
92
+ * 以 Stage1 写入返回的 rowid 精确寻址(rc-7);rowid 缺失/行已不存在均为
93
+ * 可观测降级,不阻塞路由。
94
+ */
95
+ private writeBackConfirmedCorrection;
90
96
  /**
91
97
  * Stable occurrence identity for correction dedup (ADR-0020 §11.4): the real
92
98
  * per-session turn index when the caller supplies one (parity with
@@ -41,6 +41,14 @@ export declare class TrajectoryDatabase {
41
41
  recordSession(input: TrajectorySessionInput): void;
42
42
  recordAssistantTurn(input: TrajectoryAssistantTurnInput): number;
43
43
  recordUserTurn(input: TrajectoryUserTurnInput): number;
44
+ /**
45
+ * PRI-788 G1: Stage2 LLM 确认纠正后的标志位回写。user_turns 的第一个(也是
46
+ * 唯一)更新 API:以 recordUserTurn 返回的 rowid 精确寻址(rc-7,不重扫)。
47
+ *
48
+ * @returns 是否实际更新了行。false = rowid 不存在(轮次已被清理),调用方
49
+ * 应记 SIGNAL_WRITEBACK_MISS 上浮,不得静默。
50
+ */
51
+ markUserTurnCorrection(rowid: number, cue: string | null): boolean;
44
52
  recordToolCall(input: TrajectoryToolCallInput): number;
45
53
  recordPainEvent(input: TrajectoryPainEventInput): number;
46
54
  recordGateBlock(input: TrajectoryGateBlockInput): void;