@signetai/signet-memory-openclaw 0.231.2 → 0.232.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 +38 -40
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,28 +35,27 @@ import { promisify } from "node:util";
|
|
|
35
35
|
import { createHash } from "node:crypto";
|
|
36
36
|
import { homedir as homedir2 } from "node:os";
|
|
37
37
|
import { join as join2, resolve as resolve2 } from "node:path";
|
|
38
|
-
import { constants as fsConstants, fstatSync, statfsSync as statfsSync2 } from "node:fs";
|
|
39
38
|
import {
|
|
40
|
-
closeSync as
|
|
39
|
+
closeSync as closeSync4,
|
|
41
40
|
existsSync as existsSync12,
|
|
42
|
-
fsyncSync as
|
|
41
|
+
fsyncSync as fsyncSync3,
|
|
43
42
|
mkdirSync as mkdirSync6,
|
|
44
|
-
openSync as
|
|
43
|
+
openSync as openSync4,
|
|
45
44
|
readFileSync as readFileSync9,
|
|
46
45
|
renameSync as renameSync3,
|
|
47
46
|
rmSync as rmSync4,
|
|
48
47
|
statSync as statSync5,
|
|
49
|
-
writeSync
|
|
48
|
+
writeSync as writeSync2
|
|
50
49
|
} from "node:fs";
|
|
51
50
|
import { homedir as homedir4 } from "node:os";
|
|
52
|
-
import { dirname as dirname5, join as join13, resolve as
|
|
51
|
+
import { dirname as dirname5, join as join13, resolve as resolve6 } from "node:path";
|
|
53
52
|
import { createRequire as createRequire22 } from "node:module";
|
|
54
53
|
import { homedir as homedir5 } from "node:os";
|
|
55
|
-
import { dirname as dirname6, join as
|
|
54
|
+
import { dirname as dirname6, join as join15, resolve as resolve7 } from "node:path";
|
|
56
55
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
57
|
-
import { basename, dirname as dirname7, resolve as
|
|
56
|
+
import { basename, dirname as dirname7, resolve as resolve8 } from "node:path";
|
|
58
57
|
import { existsSync as existsSync16, readFileSync as readFileSync13, realpathSync, statSync as statSync8 } from "node:fs";
|
|
59
|
-
import { dirname as dirname8, join as
|
|
58
|
+
import { dirname as dirname8, join as join17 } from "node:path";
|
|
60
59
|
import { homedir as homedir8 } from "node:os";
|
|
61
60
|
var __defProp2 = Object.defineProperty;
|
|
62
61
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -17388,6 +17387,8 @@ function expandHome(p, home = homedir2()) {
|
|
|
17388
17387
|
return join2(home, p.slice(2));
|
|
17389
17388
|
return p;
|
|
17390
17389
|
}
|
|
17390
|
+
var PRIVATE_SEGMENTS = new Set([".daemon", ".secrets", "memory"]);
|
|
17391
|
+
var PRIVATE_ROOT_DIRS = new Set(["runtime", "data", "transcripts", "cache"]);
|
|
17391
17392
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
17392
17393
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
17393
17394
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -17399,6 +17400,7 @@ var SIGNET_GIT_PROTECTED_PATHS = [
|
|
|
17399
17400
|
"files",
|
|
17400
17401
|
"runtime",
|
|
17401
17402
|
"workspace-layout.json",
|
|
17403
|
+
".workspace-layout-upgrade.json",
|
|
17402
17404
|
"node_modules",
|
|
17403
17405
|
":(glob)**/node_modules/**",
|
|
17404
17406
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}`,
|
|
@@ -17439,11 +17441,12 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17439
17441
|
".daemon/",
|
|
17440
17442
|
".secrets/",
|
|
17441
17443
|
".shadow/",
|
|
17442
|
-
"cache/",
|
|
17443
|
-
"data/",
|
|
17444
|
-
"files/",
|
|
17445
|
-
"runtime/",
|
|
17444
|
+
"/cache/",
|
|
17445
|
+
"/data/",
|
|
17446
|
+
"/files/",
|
|
17447
|
+
"/runtime/",
|
|
17446
17448
|
"workspace-layout.json",
|
|
17449
|
+
".workspace-layout-upgrade.json",
|
|
17447
17450
|
"node_modules/",
|
|
17448
17451
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}/`,
|
|
17449
17452
|
"memory/memories.db*",
|
|
@@ -17463,10 +17466,6 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17463
17466
|
"*.sqlite",
|
|
17464
17467
|
"*.sqlite3"
|
|
17465
17468
|
];
|
|
17466
|
-
var DESCRIPTOR_ROOT = process.platform === "linux" ? "/proc/self/fd" : process.platform === "darwin" ? "/dev/fd" : undefined;
|
|
17467
|
-
var DIRECTORY_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_DIRECTORY ?? 0) | (fsConstants.O_NOFOLLOW ?? 0);
|
|
17468
|
-
var FILE_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_NOFOLLOW ?? 0) | (fsConstants.O_NONBLOCK ?? 0);
|
|
17469
|
-
var NOFOLLOW = fsConstants.O_NOFOLLOW ?? 0;
|
|
17470
17469
|
var PROTECTION_COMPONENT_IDS = [
|
|
17471
17470
|
"root-authored",
|
|
17472
17471
|
"skills",
|
|
@@ -17637,7 +17636,7 @@ ${clean}
|
|
|
17637
17636
|
var WORKSPACE_ENV_KEYS = ["SIGNET_PATH", "SIGNET_WORKSPACE"];
|
|
17638
17637
|
var DEFAULT_AGENTS_DIRNAME = ".agents";
|
|
17639
17638
|
function normalizeWorkspacePath(pathValue, home = homedir4()) {
|
|
17640
|
-
return
|
|
17639
|
+
return resolve6(expandHome(pathValue.trim(), home));
|
|
17641
17640
|
}
|
|
17642
17641
|
function readTrimmedEnv(env, name) {
|
|
17643
17642
|
const value = env[name];
|
|
@@ -17987,18 +17986,18 @@ function buildRememberRequestBody(content, options = {}) {
|
|
|
17987
17986
|
source: options.source
|
|
17988
17987
|
});
|
|
17989
17988
|
}
|
|
17990
|
-
var GRAPHIQ_DEFAULT_INSTALL_DIR =
|
|
17989
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join15(homedir5(), ".local", "bin");
|
|
17991
17990
|
var DEFAULT_DISCORD_DESKTOP_CACHE_PATH = defaultDiscordDesktopCachePath();
|
|
17992
17991
|
var DEFAULT_GITHUB_RESOURCE_TYPES = ["issues", "pulls", "discussions", "docs"];
|
|
17993
17992
|
var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
|
|
17994
17993
|
function defaultDiscordDesktopCachePath() {
|
|
17995
17994
|
switch (platform2()) {
|
|
17996
17995
|
case "darwin":
|
|
17997
|
-
return
|
|
17996
|
+
return resolve8(homedir6(), "Library", "Application Support", "discord");
|
|
17998
17997
|
case "win32":
|
|
17999
|
-
return
|
|
17998
|
+
return resolve8(process.env.APPDATA || resolve8(homedir6(), "AppData", "Roaming"), "discord");
|
|
18000
17999
|
default:
|
|
18001
|
-
return
|
|
18000
|
+
return resolve8(process.env.XDG_CONFIG_HOME || resolve8(homedir6(), ".config"), "discord");
|
|
18002
18001
|
}
|
|
18003
18002
|
}
|
|
18004
18003
|
var IDENTITY_MODES = ["managed", "off"];
|
|
@@ -18141,7 +18140,7 @@ function resolveIdentityModeFromConfig(config) {
|
|
|
18141
18140
|
return "managed";
|
|
18142
18141
|
}
|
|
18143
18142
|
function loadIdentityMode(agentsDir) {
|
|
18144
|
-
const agentYaml =
|
|
18143
|
+
const agentYaml = join17(agentsDir, "agent.yaml");
|
|
18145
18144
|
if (!existsSync16(agentYaml))
|
|
18146
18145
|
return "managed";
|
|
18147
18146
|
try {
|
|
@@ -18178,7 +18177,7 @@ function identityHeaderFor(path, role) {
|
|
|
18178
18177
|
return STATIC_HEADER_BY_FILE[filename] ?? role ?? filename.replace(/\.md$/i, "");
|
|
18179
18178
|
}
|
|
18180
18179
|
function resolveStartupIdentityFiles(agentsDir) {
|
|
18181
|
-
const agentYaml =
|
|
18180
|
+
const agentYaml = join17(agentsDir, "agent.yaml");
|
|
18182
18181
|
if (!existsSync16(agentYaml))
|
|
18183
18182
|
return STATIC_BUDGETS.map(({ file, budget }) => ({ path: file, budget }));
|
|
18184
18183
|
try {
|
|
@@ -18216,7 +18215,7 @@ function readStaticIdentity(agentsDir, status = STATIC_IDENTITY_OFFLINE_STATUS)
|
|
|
18216
18215
|
return null;
|
|
18217
18216
|
const parts = [];
|
|
18218
18217
|
for (const entry of resolveStartupIdentityFiles(agentsDir)) {
|
|
18219
|
-
const path =
|
|
18218
|
+
const path = join17(agentsDir, entry.path);
|
|
18220
18219
|
if (!existsSync16(path))
|
|
18221
18220
|
continue;
|
|
18222
18221
|
try {
|
|
@@ -18254,12 +18253,11 @@ import {
|
|
|
18254
18253
|
} from "node:child_process";
|
|
18255
18254
|
import { promisify as promisify2 } from "node:util";
|
|
18256
18255
|
import { createHash as createHash2 } from "node:crypto";
|
|
18257
|
-
import { constants as fsConstants2, fstatSync as fstatSync2, statfsSync as statfsSync22 } from "node:fs";
|
|
18258
18256
|
import { createRequire as createRequire23 } from "node:module";
|
|
18259
18257
|
import { homedir as homedir52 } from "node:os";
|
|
18260
|
-
import { dirname as dirname62, join as
|
|
18258
|
+
import { dirname as dirname62, join as join152, resolve as resolve72 } from "node:path";
|
|
18261
18259
|
import { homedir as homedir62, platform as platform22 } from "node:os";
|
|
18262
|
-
import { basename as basename2, dirname as dirname72, resolve as
|
|
18260
|
+
import { basename as basename2, dirname as dirname72, resolve as resolve82 } from "node:path";
|
|
18263
18261
|
import { homedir as homedir82 } from "node:os";
|
|
18264
18262
|
var __defProp3 = Object.defineProperty;
|
|
18265
18263
|
var __commonJS2 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
@@ -35584,6 +35582,8 @@ var $parseDocument2 = publicApi2.parseDocument;
|
|
|
35584
35582
|
var $stringify2 = publicApi2.stringify;
|
|
35585
35583
|
var $visit2 = visit2.visit;
|
|
35586
35584
|
var $visitAsync2 = visit2.visitAsync;
|
|
35585
|
+
var PRIVATE_SEGMENTS2 = new Set([".daemon", ".secrets", "memory"]);
|
|
35586
|
+
var PRIVATE_ROOT_DIRS2 = new Set(["runtime", "data", "transcripts", "cache"]);
|
|
35587
35587
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME2 = "signetai";
|
|
35588
35588
|
var SIGNET_GIT_ALLOWED_DIRECTORIES2 = ["skills", "tools", "dreaming"];
|
|
35589
35589
|
var SIGNET_GIT_PROTECTED_PATHS2 = [
|
|
@@ -35595,6 +35595,7 @@ var SIGNET_GIT_PROTECTED_PATHS2 = [
|
|
|
35595
35595
|
"files",
|
|
35596
35596
|
"runtime",
|
|
35597
35597
|
"workspace-layout.json",
|
|
35598
|
+
".workspace-layout-upgrade.json",
|
|
35598
35599
|
"node_modules",
|
|
35599
35600
|
":(glob)**/node_modules/**",
|
|
35600
35601
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME2}`,
|
|
@@ -35635,11 +35636,12 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS2 = [
|
|
|
35635
35636
|
".daemon/",
|
|
35636
35637
|
".secrets/",
|
|
35637
35638
|
".shadow/",
|
|
35638
|
-
"cache/",
|
|
35639
|
-
"data/",
|
|
35640
|
-
"files/",
|
|
35641
|
-
"runtime/",
|
|
35639
|
+
"/cache/",
|
|
35640
|
+
"/data/",
|
|
35641
|
+
"/files/",
|
|
35642
|
+
"/runtime/",
|
|
35642
35643
|
"workspace-layout.json",
|
|
35644
|
+
".workspace-layout-upgrade.json",
|
|
35643
35645
|
"node_modules/",
|
|
35644
35646
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME2}/`,
|
|
35645
35647
|
"memory/memories.db*",
|
|
@@ -35659,10 +35661,6 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS2 = [
|
|
|
35659
35661
|
"*.sqlite",
|
|
35660
35662
|
"*.sqlite3"
|
|
35661
35663
|
];
|
|
35662
|
-
var DESCRIPTOR_ROOT2 = process.platform === "linux" ? "/proc/self/fd" : process.platform === "darwin" ? "/dev/fd" : undefined;
|
|
35663
|
-
var DIRECTORY_FLAGS2 = fsConstants2.O_RDONLY | (fsConstants2.O_DIRECTORY ?? 0) | (fsConstants2.O_NOFOLLOW ?? 0);
|
|
35664
|
-
var FILE_FLAGS2 = fsConstants2.O_RDONLY | (fsConstants2.O_NOFOLLOW ?? 0) | (fsConstants2.O_NONBLOCK ?? 0);
|
|
35665
|
-
var NOFOLLOW2 = fsConstants2.O_NOFOLLOW ?? 0;
|
|
35666
35664
|
var PROTECTION_COMPONENT_IDS2 = [
|
|
35667
35665
|
"root-authored",
|
|
35668
35666
|
"skills",
|
|
@@ -35792,18 +35790,18 @@ try {
|
|
|
35792
35790
|
const esmRequire = createRequire23(import.meta.url);
|
|
35793
35791
|
native2 = esmRequire("@signet/native");
|
|
35794
35792
|
} catch {}
|
|
35795
|
-
var GRAPHIQ_DEFAULT_INSTALL_DIR2 =
|
|
35793
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR2 = join152(homedir52(), ".local", "bin");
|
|
35796
35794
|
var DEFAULT_DISCORD_DESKTOP_CACHE_PATH2 = defaultDiscordDesktopCachePath2();
|
|
35797
35795
|
var DEFAULT_GITHUB_RESOURCE_TYPES2 = ["issues", "pulls", "discussions", "docs"];
|
|
35798
35796
|
var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
|
|
35799
35797
|
function defaultDiscordDesktopCachePath2() {
|
|
35800
35798
|
switch (platform22()) {
|
|
35801
35799
|
case "darwin":
|
|
35802
|
-
return
|
|
35800
|
+
return resolve82(homedir62(), "Library", "Application Support", "discord");
|
|
35803
35801
|
case "win32":
|
|
35804
|
-
return
|
|
35802
|
+
return resolve82(process.env.APPDATA || resolve82(homedir62(), "AppData", "Roaming"), "discord");
|
|
35805
35803
|
default:
|
|
35806
|
-
return
|
|
35804
|
+
return resolve82(process.env.XDG_CONFIG_HOME || resolve82(homedir62(), ".config"), "discord");
|
|
35807
35805
|
}
|
|
35808
35806
|
}
|
|
35809
35807
|
var IDENTITY_FILES2 = {
|