@signetai/signet-memory-openclaw 0.219.4 → 0.219.6
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 +80 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,8 +24,15 @@ import { join as join3 } from "node:path";
|
|
|
24
24
|
import { createRequire as createRequire2 } from "node:module";
|
|
25
25
|
import { dirname, join } from "node:path";
|
|
26
26
|
import { fileURLToPath } from "node:url";
|
|
27
|
+
import {
|
|
28
|
+
execFile as nodeExecFile,
|
|
29
|
+
execFileSync as nodeExecFileSync,
|
|
30
|
+
execSync as nodeExecSync,
|
|
31
|
+
spawn as nodeSpawn,
|
|
32
|
+
spawnSync as nodeSpawnSync
|
|
33
|
+
} from "node:child_process";
|
|
34
|
+
import { promisify } from "node:util";
|
|
27
35
|
import { createHash } from "node:crypto";
|
|
28
|
-
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
29
36
|
import { createHash as createHash2 } from "node:crypto";
|
|
30
37
|
import { createRequire as createRequire22 } from "node:module";
|
|
31
38
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -11424,6 +11431,37 @@ function buildRememberRequestBody(content, options = {}) {
|
|
|
11424
11431
|
source: options.source
|
|
11425
11432
|
});
|
|
11426
11433
|
}
|
|
11434
|
+
function withWindowsHide(options) {
|
|
11435
|
+
return {
|
|
11436
|
+
...options ?? {},
|
|
11437
|
+
windowsHide: options?.windowsHide ?? true
|
|
11438
|
+
};
|
|
11439
|
+
}
|
|
11440
|
+
function isOptions(value) {
|
|
11441
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11442
|
+
}
|
|
11443
|
+
function withWindowsHideArgument(args, firstOptionIndex) {
|
|
11444
|
+
const normalized = [...args];
|
|
11445
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions(value));
|
|
11446
|
+
if (optionIndex >= 0) {
|
|
11447
|
+
normalized[optionIndex] = withWindowsHide(normalized[optionIndex]);
|
|
11448
|
+
return normalized;
|
|
11449
|
+
}
|
|
11450
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
11451
|
+
if (placeholderIndex >= 0) {
|
|
11452
|
+
normalized[placeholderIndex] = withWindowsHide(undefined);
|
|
11453
|
+
return normalized;
|
|
11454
|
+
}
|
|
11455
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
11456
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
11457
|
+
return normalized;
|
|
11458
|
+
}
|
|
11459
|
+
var nodeExecFileAsync = promisify(nodeExecFile);
|
|
11460
|
+
var execFileHiddenImpl = (...args) => Reflect.apply(nodeExecFile, undefined, withWindowsHideArgument(args, 1));
|
|
11461
|
+
Object.defineProperty(execFileHiddenImpl, promisify.custom, {
|
|
11462
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync, undefined, withWindowsHideArgument(args, 1))
|
|
11463
|
+
});
|
|
11464
|
+
var execFileSyncHidden = (...args) => Reflect.apply(nodeExecFileSync, undefined, withWindowsHideArgument(args, 1));
|
|
11427
11465
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION = "memory-content-safety-v1";
|
|
11428
11466
|
var MEMORY_CONTENT_SAFETY_REASONS = [
|
|
11429
11467
|
"prompt_injection",
|
|
@@ -17939,7 +17977,7 @@ function linuxKeyringAvailable() {
|
|
|
17939
17977
|
};
|
|
17940
17978
|
}
|
|
17941
17979
|
try {
|
|
17942
|
-
|
|
17980
|
+
execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
17943
17981
|
stdio: "ignore",
|
|
17944
17982
|
timeout: 1000
|
|
17945
17983
|
});
|
|
@@ -18461,8 +18499,15 @@ var home = homedir10();
|
|
|
18461
18499
|
import { createRequire as createRequire23 } from "node:module";
|
|
18462
18500
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
18463
18501
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
18502
|
+
import {
|
|
18503
|
+
execFile as nodeExecFile2,
|
|
18504
|
+
execFileSync as nodeExecFileSync2,
|
|
18505
|
+
execSync as nodeExecSync2,
|
|
18506
|
+
spawn as nodeSpawn2,
|
|
18507
|
+
spawnSync as nodeSpawnSync2
|
|
18508
|
+
} from "node:child_process";
|
|
18509
|
+
import { promisify as promisify2 } from "node:util";
|
|
18464
18510
|
import { createHash as createHash3 } from "node:crypto";
|
|
18465
|
-
import { execFileSync as execFileSync32 } from "node:child_process";
|
|
18466
18511
|
import { createHash as createHash22 } from "node:crypto";
|
|
18467
18512
|
import { createRequire as createRequire222 } from "node:module";
|
|
18468
18513
|
import { createRequire as createRequire32 } from "node:module";
|
|
@@ -29613,6 +29658,37 @@ var PIPELINE_PROVIDER_CHOICES2 = [
|
|
|
29613
29658
|
var SYNTHESIS_PROVIDER_CHOICES2 = PIPELINE_PROVIDER_CHOICES2.filter((provider) => provider !== "command");
|
|
29614
29659
|
var PIPELINE_PROVIDER_SET2 = new Set(PIPELINE_PROVIDER_CHOICES2);
|
|
29615
29660
|
var SYNTHESIS_PROVIDER_SET2 = new Set(SYNTHESIS_PROVIDER_CHOICES2);
|
|
29661
|
+
function withWindowsHide2(options) {
|
|
29662
|
+
return {
|
|
29663
|
+
...options ?? {},
|
|
29664
|
+
windowsHide: options?.windowsHide ?? true
|
|
29665
|
+
};
|
|
29666
|
+
}
|
|
29667
|
+
function isOptions2(value) {
|
|
29668
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
29669
|
+
}
|
|
29670
|
+
function withWindowsHideArgument2(args, firstOptionIndex) {
|
|
29671
|
+
const normalized = [...args];
|
|
29672
|
+
const optionIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && isOptions2(value));
|
|
29673
|
+
if (optionIndex >= 0) {
|
|
29674
|
+
normalized[optionIndex] = withWindowsHide2(normalized[optionIndex]);
|
|
29675
|
+
return normalized;
|
|
29676
|
+
}
|
|
29677
|
+
const placeholderIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && (value === undefined || value === null));
|
|
29678
|
+
if (placeholderIndex >= 0) {
|
|
29679
|
+
normalized[placeholderIndex] = withWindowsHide2(undefined);
|
|
29680
|
+
return normalized;
|
|
29681
|
+
}
|
|
29682
|
+
const callbackIndex = normalized.findIndex((value, index) => index >= firstOptionIndex && typeof value === "function");
|
|
29683
|
+
normalized.splice(callbackIndex >= 0 ? callbackIndex : normalized.length, 0, { windowsHide: true });
|
|
29684
|
+
return normalized;
|
|
29685
|
+
}
|
|
29686
|
+
var nodeExecFileAsync2 = promisify2(nodeExecFile2);
|
|
29687
|
+
var execFileHiddenImpl2 = (...args) => Reflect.apply(nodeExecFile2, undefined, withWindowsHideArgument2(args, 1));
|
|
29688
|
+
Object.defineProperty(execFileHiddenImpl2, promisify2.custom, {
|
|
29689
|
+
value: (...args) => Reflect.apply(nodeExecFileAsync2, undefined, withWindowsHideArgument2(args, 1))
|
|
29690
|
+
});
|
|
29691
|
+
var execFileSyncHidden2 = (...args) => Reflect.apply(nodeExecFileSync2, undefined, withWindowsHideArgument2(args, 1));
|
|
29616
29692
|
var MEMORY_CONTENT_SAFETY_POLICY_VERSION2 = "memory-content-safety-v1";
|
|
29617
29693
|
var MEMORY_CONTENT_SAFETY_REASONS2 = [
|
|
29618
29694
|
"prompt_injection",
|
|
@@ -36128,7 +36204,7 @@ function linuxKeyringAvailable2() {
|
|
|
36128
36204
|
};
|
|
36129
36205
|
}
|
|
36130
36206
|
try {
|
|
36131
|
-
|
|
36207
|
+
execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
|
|
36132
36208
|
stdio: "ignore",
|
|
36133
36209
|
timeout: 1000
|
|
36134
36210
|
});
|