@remnic/plugin-openclaw 1.0.0
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/dist/calibration-KQXCC77L.js +235 -0
- package/dist/causal-chain-LA3IQNL6.js +22 -0
- package/dist/causal-consolidation-WINYJQJ4.js +205 -0
- package/dist/causal-retrieval-ITNQBUQM.js +182 -0
- package/dist/causal-trajectory-graph-7Z5DD66L.js +59 -0
- package/dist/chunk-5LE4HTVL.js +46 -0
- package/dist/chunk-BZ27H3BL.js +158 -0
- package/dist/chunk-DMGIUDBO.js +41 -0
- package/dist/chunk-GUSMRW4H.js +12 -0
- package/dist/chunk-H3SKMYPU.js +340 -0
- package/dist/chunk-HSBPDYF4.js +278 -0
- package/dist/chunk-JGEKL3WH.js +434 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-TJZ7KBCC.js +577 -0
- package/dist/chunk-WLR4WL6B.js +5893 -0
- package/dist/chunk-Y7JG2Q3V.js +4242 -0
- package/dist/engine-QHRKR53Q.js +11 -0
- package/dist/fallback-llm-2VMRPBHR.js +8 -0
- package/dist/index.js +61705 -0
- package/dist/legacy-hook-compat-XQ7FP6FV.js +35 -0
- package/dist/logger-NZE2OBVA.js +9 -0
- package/dist/storage-AGYBIME4.js +16 -0
- package/openclaw.plugin.json +3779 -0
- package/package.json +54 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
compareVersions
|
|
3
|
+
} from "./chunk-GUSMRW4H.js";
|
|
4
|
+
import "./chunk-MLKGABMK.js";
|
|
5
|
+
|
|
6
|
+
// ../remnic-core/src/legacy-hook-compat.ts
|
|
7
|
+
var FIRST_PUBLISHED_RUNTIME_WITHOUT_AGENT_HEARTBEAT = [2026, 1, 29];
|
|
8
|
+
var OPENCLAW_VERSION_PREFIX = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?/;
|
|
9
|
+
function parseOpenClawVersion(value) {
|
|
10
|
+
if (typeof value !== "string") return null;
|
|
11
|
+
const match = value.trim().match(OPENCLAW_VERSION_PREFIX);
|
|
12
|
+
if (!match) return null;
|
|
13
|
+
return {
|
|
14
|
+
triple: [
|
|
15
|
+
Number.parseInt(match[1], 10),
|
|
16
|
+
Number.parseInt(match[2], 10),
|
|
17
|
+
Number.parseInt(match[3], 10)
|
|
18
|
+
],
|
|
19
|
+
prerelease: typeof match[4] === "string" && match[4].length > 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function shouldRegisterTypedAgentHeartbeat(runtimeVersion) {
|
|
23
|
+
const parsed = parseOpenClawVersion(runtimeVersion);
|
|
24
|
+
if (!parsed) return false;
|
|
25
|
+
const comparison = compareVersions(
|
|
26
|
+
parsed.triple,
|
|
27
|
+
FIRST_PUBLISHED_RUNTIME_WITHOUT_AGENT_HEARTBEAT
|
|
28
|
+
);
|
|
29
|
+
if (comparison < 0) return true;
|
|
30
|
+
if (comparison > 0) return false;
|
|
31
|
+
return parsed.prerelease;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
shouldRegisterTypedAgentHeartbeat
|
|
35
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContentHashIndex,
|
|
3
|
+
StorageManager,
|
|
4
|
+
normalizeEntityName,
|
|
5
|
+
parseEntityFile,
|
|
6
|
+
serializeEntityFile
|
|
7
|
+
} from "./chunk-Y7JG2Q3V.js";
|
|
8
|
+
import "./chunk-DMGIUDBO.js";
|
|
9
|
+
import "./chunk-MLKGABMK.js";
|
|
10
|
+
export {
|
|
11
|
+
ContentHashIndex,
|
|
12
|
+
StorageManager,
|
|
13
|
+
normalizeEntityName,
|
|
14
|
+
parseEntityFile,
|
|
15
|
+
serializeEntityFile
|
|
16
|
+
};
|