@remnic/plugin-openclaw 1.0.3 → 1.0.5
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/LICENSE +21 -0
- package/README.md +211 -4
- package/dist/{calibration-WZXRJMVP.js → calibration-3JHF25QT.js} +2 -2
- package/dist/{causal-chain-LA3IQNL6.js → causal-chain-OKDZSDEB.js} +3 -3
- package/dist/{causal-consolidation-YZLBOC7J.js → causal-consolidation-Z3PHIFTL.js} +20 -5
- package/dist/{causal-retrieval-ITNQBUQM.js → causal-retrieval-5UPIKZ4I.js} +4 -4
- package/dist/{causal-trajectory-graph-7Z5DD66L.js → causal-trajectory-graph-RQIT37DN.js} +1 -1
- package/dist/{chunk-BIBYVWVY.js → chunk-3SA5F4WT.js} +1 -1
- package/dist/{chunk-Y7JG2Q3V.js → chunk-5VTGFKKU.js} +2001 -275
- package/dist/{chunk-HSBPDYF4.js → chunk-BXTMZDRT.js} +2 -2
- package/dist/chunk-J2FCINY7.js +960 -0
- package/dist/{chunk-BZ27H3BL.js → chunk-RMFPW4VK.js} +1 -1
- package/dist/{chunk-DMGIUDBO.js → chunk-UFU5GGGA.js} +8 -2
- package/dist/{chunk-L46G4NGI.js → chunk-Y65XJVI3.js} +15 -4
- package/dist/{chunk-JGEKL3WH.js → chunk-YHH3SXKD.js} +1 -1
- package/dist/{chunk-H3SKMYPU.js → chunk-Z7GRLVK3.js} +2 -2
- package/dist/{engine-GPDZXAXN.js → engine-2TLD4YSC.js} +3 -3
- package/dist/{fallback-llm-7UTWU27F.js → fallback-llm-HJRCHKSA.js} +2 -2
- package/dist/index.js +12172 -12061
- package/dist/{logger-NZE2OBVA.js → logger-TNOKCH7X.js} +1 -1
- package/dist/storage-HW6SRQCK.js +24 -0
- package/openclaw.plugin.json +807 -10
- package/package.json +8 -9
- package/dist/storage-AGYBIME4.js +0 -16
|
@@ -11,9 +11,15 @@ var NOOP_LOGGER = {
|
|
|
11
11
|
};
|
|
12
12
|
var _backend = NOOP_LOGGER;
|
|
13
13
|
var _debug = false;
|
|
14
|
+
var CONSOLE_LOGGER = {
|
|
15
|
+
info: console.info.bind(console),
|
|
16
|
+
warn: console.warn.bind(console),
|
|
17
|
+
error: console.error.bind(console),
|
|
18
|
+
debug: console.debug.bind(console)
|
|
19
|
+
};
|
|
14
20
|
function initLogger(backend, debug) {
|
|
15
|
-
_backend = backend;
|
|
16
|
-
_debug = debug;
|
|
21
|
+
_backend = backend ?? CONSOLE_LOGGER;
|
|
22
|
+
_debug = debug ?? false;
|
|
17
23
|
}
|
|
18
24
|
var log = {
|
|
19
25
|
info(msg, ...args) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
parseContinuityImprovementLoops,
|
|
4
4
|
parseContinuityIncident,
|
|
5
5
|
sanitizeMemoryContent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5VTGFKKU.js";
|
|
7
7
|
import {
|
|
8
8
|
log
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
4884
|
+
const { deriveCausalPromotionCandidates, materializeAfterCausalConsolidation } = await import("./causal-consolidation-Z3PHIFTL.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-
|
|
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,
|
|
@@ -228,7 +228,7 @@ var GraphIndex = class _GraphIndex {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
} catch (err) {
|
|
231
|
-
const { log } = await import("./logger-
|
|
231
|
+
const { log } = await import("./logger-TNOKCH7X.js");
|
|
232
232
|
log.warn(`[graph] onMemoryWritten error: ${err}`);
|
|
233
233
|
} finally {
|
|
234
234
|
this.edgeCache = null;
|
|
@@ -309,7 +309,7 @@ var GraphIndex = class _GraphIndex {
|
|
|
309
309
|
graphType: provenance.get(p)?.graphType ?? "entity"
|
|
310
310
|
})).sort((a, b) => b.score - a.score);
|
|
311
311
|
} catch (err) {
|
|
312
|
-
const { log } = await import("./logger-
|
|
312
|
+
const { log } = await import("./logger-TNOKCH7X.js");
|
|
313
313
|
log.warn(`[graph] spreadingActivation error: ${err}`);
|
|
314
314
|
return [];
|
|
315
315
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompoundingEngine,
|
|
3
3
|
defaultTierMigrationCycleBudget
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-Y65XJVI3.js";
|
|
5
|
+
import "./chunk-5VTGFKKU.js";
|
|
6
|
+
import "./chunk-UFU5GGGA.js";
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
CompoundingEngine,
|