@signetai/signet-memory-openclaw 0.97.0 → 0.98.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/index.js +13 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -25,8 +25,8 @@ import { createRequire as createRequire2 } from "node:module";
|
|
|
25
25
|
import { join, dirname } from "path";
|
|
26
26
|
import { fileURLToPath } from "url";
|
|
27
27
|
import { createRequire as createRequire22 } from "node:module";
|
|
28
|
-
import { existsSync as
|
|
29
|
-
import { dirname as dirname3, join as
|
|
28
|
+
import { existsSync as existsSync6, readFileSync as readFileSync4, readdirSync as readdirSync4, realpathSync, statSync as statSync3 } from "node:fs";
|
|
29
|
+
import { dirname as dirname3, join as join7 } from "node:path";
|
|
30
30
|
import { homedir as homedir5 } from "node:os";
|
|
31
31
|
var __create = Object.create;
|
|
32
32
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -9499,6 +9499,14 @@ try {
|
|
|
9499
9499
|
const esmRequire = createRequire22(import.meta.url);
|
|
9500
9500
|
native = esmRequire("@signet/native");
|
|
9501
9501
|
} catch {}
|
|
9502
|
+
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
9503
|
+
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
9504
|
+
"memory/memories.db",
|
|
9505
|
+
"memory/memories.db-wal",
|
|
9506
|
+
"memory/memories.db-shm",
|
|
9507
|
+
"memory/memories.db-journal",
|
|
9508
|
+
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}/`
|
|
9509
|
+
];
|
|
9502
9510
|
var IDENTITY_FILES = {
|
|
9503
9511
|
agents: {
|
|
9504
9512
|
path: "AGENTS.md",
|
|
@@ -9563,12 +9571,12 @@ function resolveSessionStartTimeoutMs(raw) {
|
|
|
9563
9571
|
return ms;
|
|
9564
9572
|
}
|
|
9565
9573
|
function readStaticIdentity(agentsDir, status = STATIC_IDENTITY_OFFLINE_STATUS) {
|
|
9566
|
-
if (!
|
|
9574
|
+
if (!existsSync6(agentsDir))
|
|
9567
9575
|
return null;
|
|
9568
9576
|
const parts = [];
|
|
9569
9577
|
for (const { file, header, budget } of STATIC_BUDGETS) {
|
|
9570
|
-
const path =
|
|
9571
|
-
if (!
|
|
9578
|
+
const path = join7(agentsDir, file);
|
|
9579
|
+
if (!existsSync6(path))
|
|
9572
9580
|
continue;
|
|
9573
9581
|
try {
|
|
9574
9582
|
const raw = readFileSync4(path, "utf-8").trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/signet-memory-openclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.98.0",
|
|
4
4
|
"description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@sinclair/typebox": "0.34.47"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@signet/core": "0.
|
|
39
|
+
"@signet/core": "0.98.0",
|
|
40
40
|
"@types/node": "^22.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|