@signetai/signet-memory-openclaw 0.219.5 → 0.220.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.
Files changed (2) hide show
  1. package/dist/index.js +96 -20
  2. 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";
@@ -33,9 +40,9 @@ import { homedir as homedir5 } from "node:os";
33
40
  import { dirname as dirname4, join as join8, resolve as resolve3 } from "node:path";
34
41
  import { homedir as homedir6, platform as platform2 } from "node:os";
35
42
  import { basename, dirname as dirname5, resolve as resolve5 } from "node:path";
36
- import { existsSync as existsSync13, readFileSync as readFileSync11, readdirSync as readdirSync5, realpathSync, statSync as statSync7 } from "node:fs";
37
- import { dirname as dirname8, join as join13 } from "node:path";
38
- import { homedir as homedir10 } from "node:os";
43
+ import { existsSync as existsSync11, readFileSync as readFileSync9, realpathSync, statSync as statSync7 } from "node:fs";
44
+ import { dirname as dirname6, join as join11 } from "node:path";
45
+ import { homedir as homedir8 } from "node:os";
39
46
  var __create = Object.create;
40
47
  var __getProtoOf = Object.getPrototypeOf;
41
48
  var __defProp2 = Object.defineProperty;
@@ -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
- execFileSync3("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17980
+ execFileSyncHidden("busctl", ["--user", "status", "org.freedesktop.secrets"], {
17943
17981
  stdio: "ignore",
17944
17982
  timeout: 1000
17945
17983
  });
@@ -18357,11 +18395,11 @@ function resolveIdentityModeFromConfig(config) {
18357
18395
  return "managed";
18358
18396
  }
18359
18397
  function loadIdentityMode(agentsDir) {
18360
- const agentYaml = join13(agentsDir, "agent.yaml");
18361
- if (!existsSync13(agentYaml))
18398
+ const agentYaml = join11(agentsDir, "agent.yaml");
18399
+ if (!existsSync11(agentYaml))
18362
18400
  return "managed";
18363
18401
  try {
18364
- return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync11(agentYaml, "utf-8")));
18402
+ return resolveIdentityModeFromConfig(parseSimpleYaml(readFileSync9(agentYaml, "utf-8")));
18365
18403
  } catch {
18366
18404
  return "managed";
18367
18405
  }
@@ -18394,11 +18432,11 @@ function identityHeaderFor(path, role) {
18394
18432
  return STATIC_HEADER_BY_FILE[filename] ?? role ?? filename.replace(/\.md$/i, "");
18395
18433
  }
18396
18434
  function resolveStartupIdentityFiles(agentsDir) {
18397
- const agentYaml = join13(agentsDir, "agent.yaml");
18398
- if (!existsSync13(agentYaml))
18435
+ const agentYaml = join11(agentsDir, "agent.yaml");
18436
+ if (!existsSync11(agentYaml))
18399
18437
  return STATIC_BUDGETS.map(({ file, budget }) => ({ path: file, budget }));
18400
18438
  try {
18401
- const config = parseSimpleYaml(readFileSync11(agentYaml, "utf-8"));
18439
+ const config = parseSimpleYaml(readFileSync9(agentYaml, "utf-8"));
18402
18440
  if (!identityModeReadsFiles(resolveIdentityModeFromConfig(config)))
18403
18441
  return [];
18404
18442
  const identity = readRecord(config.identity);
@@ -18426,17 +18464,17 @@ function resolveSessionStartTimeoutMs(raw) {
18426
18464
  return ms;
18427
18465
  }
18428
18466
  function readStaticIdentity(agentsDir, status = STATIC_IDENTITY_OFFLINE_STATUS) {
18429
- if (!existsSync13(agentsDir))
18467
+ if (!existsSync11(agentsDir))
18430
18468
  return null;
18431
18469
  if (!identityModeReadsFiles(loadIdentityMode(agentsDir)))
18432
18470
  return null;
18433
18471
  const parts = [];
18434
18472
  for (const entry of resolveStartupIdentityFiles(agentsDir)) {
18435
- const path = join13(agentsDir, entry.path);
18436
- if (!existsSync13(path))
18473
+ const path = join11(agentsDir, entry.path);
18474
+ if (!existsSync11(path))
18437
18475
  continue;
18438
18476
  try {
18439
- const raw = readFileSync11(path, "utf-8").trim();
18477
+ const raw = readFileSync9(path, "utf-8").trim();
18440
18478
  if (!raw)
18441
18479
  continue;
18442
18480
  const budget = entry.budget ?? STATIC_BUDGETS.find((candidate) => candidate.file === entry.path)?.budget ?? 4000;
@@ -18455,14 +18493,21 @@ ${parts.join(`
18455
18493
 
18456
18494
  `)}`;
18457
18495
  }
18458
- var home = homedir10();
18496
+ var home = homedir8();
18459
18497
 
18460
18498
  // ../../../libs/sdk/dist/index.js
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";
@@ -18470,7 +18515,7 @@ import { homedir as homedir52 } from "node:os";
18470
18515
  import { dirname as dirname42, join as join82, resolve as resolve32 } from "node:path";
18471
18516
  import { homedir as homedir62, platform as platform22 } from "node:os";
18472
18517
  import { basename as basename2, dirname as dirname52, resolve as resolve52 } from "node:path";
18473
- import { homedir as homedir102 } from "node:os";
18518
+ import { homedir as homedir82 } from "node:os";
18474
18519
  var __create2 = Object.create;
18475
18520
  var __getProtoOf2 = Object.getPrototypeOf;
18476
18521
  var __defProp3 = Object.defineProperty;
@@ -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
- execFileSync32("busctl", ["--user", "status", "org.freedesktop.secrets"], {
36207
+ execFileSyncHidden2("busctl", ["--user", "status", "org.freedesktop.secrets"], {
36132
36208
  stdio: "ignore",
36133
36209
  timeout: 1000
36134
36210
  });
@@ -36418,7 +36494,7 @@ var IDENTITY_FILES2 = {
36418
36494
  };
36419
36495
  var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
36420
36496
  var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
36421
- var home2 = homedir102();
36497
+ var home2 = homedir82();
36422
36498
  function isRecord2(value) {
36423
36499
  return typeof value === "object" && value !== null && !Array.isArray(value);
36424
36500
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/signet-memory-openclaw",
3
- "version": "0.219.5",
3
+ "version": "0.220.0",
4
4
  "description": "Signet adapter for OpenClaw — runtime plugin for AI agent memory",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",