@remnic/plugin-openclaw 1.0.3 → 1.0.4

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.
@@ -3,10 +3,10 @@ import {
3
3
  parseContinuityImprovementLoops,
4
4
  parseContinuityIncident,
5
5
  sanitizeMemoryContent
6
- } from "./chunk-Y7JG2Q3V.js";
6
+ } from "./chunk-5VTGFKKU.js";
7
7
  import {
8
8
  log
9
- } from "./chunk-DMGIUDBO.js";
9
+ } from "./chunk-UFU5GGGA.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-MLKGABMK.js";
@@ -4881,12 +4881,13 @@ var CompoundingEngine = class {
4881
4881
  let promotionCandidates = this.config.compoundingSemanticEnabled ? this.derivePromotionCandidates(outcomeSummary, mistakes.registry, rubrics) : [];
4882
4882
  if (this.config.cmcConsolidationEnabled) {
4883
4883
  try {
4884
- const { deriveCausalPromotionCandidates } = await import("./causal-consolidation-YZLBOC7J.js");
4884
+ const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-62IFBWHC.js");
4885
4885
  const causalCandidates = await deriveCausalPromotionCandidates({
4886
4886
  memoryDir: this.config.memoryDir,
4887
4887
  causalTrajectoryStoreDir: this.config.causalTrajectoryStoreDir,
4888
4888
  gatewayConfig: this.config.gatewayConfig,
4889
4889
  gatewayAgentId: this.config.modelSource === "gateway" ? this.config.gatewayAgentId || void 0 : void 0,
4890
+ pluginConfig: this.config,
4890
4891
  config: {
4891
4892
  minRecurrence: this.config.cmcConsolidationMinRecurrence,
4892
4893
  minSessions: this.config.cmcConsolidationMinSessions,
@@ -4896,13 +4897,23 @@ var CompoundingEngine = class {
4896
4897
  if (causalCandidates.length > 0) {
4897
4898
  promotionCandidates = [...promotionCandidates, ...causalCandidates];
4898
4899
  }
4900
+ try {
4901
+ await materializeAfterCausalConsolidation({
4902
+ config: this.config,
4903
+ memoryDir: this.config.memoryDir
4904
+ });
4905
+ } catch (materializeError) {
4906
+ log.warn(
4907
+ `[cmc] Codex materialize post-hook failed (non-fatal): ${materializeError instanceof Error ? materializeError.message : String(materializeError)}`
4908
+ );
4909
+ }
4899
4910
  } catch (error) {
4900
4911
  log.warn(`[cmc] causal consolidation in synthesizeWeekly failed (non-fatal): ${error instanceof Error ? error.message : String(error)}`);
4901
4912
  }
4902
4913
  }
4903
4914
  if (this.config.calibrationEnabled) {
4904
4915
  try {
4905
- const { runCalibrationConsolidation } = await import("./calibration-WZXRJMVP.js");
4916
+ const { runCalibrationConsolidation } = await import("./calibration-3JHF25QT.js");
4906
4917
  const calRules = await runCalibrationConsolidation({
4907
4918
  memoryDir: this.config.memoryDir,
4908
4919
  gatewayConfig: this.config.gatewayConfig,