@signetai/connector-base 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/agent-dir.js +24 -25
- package/dist/index.js +24 -25
- package/package.json +2 -2
package/dist/agent-dir.js
CHANGED
|
@@ -18,29 +18,28 @@ import { promisify } from "node:util";
|
|
|
18
18
|
import { createHash } from "node:crypto";
|
|
19
19
|
import { homedir as homedir2 } from "node:os";
|
|
20
20
|
import { join as join2, resolve as resolve2 } from "node:path";
|
|
21
|
-
import { constants as fsConstants, fstatSync, statfsSync as statfsSync2 } from "node:fs";
|
|
22
21
|
import {
|
|
23
|
-
closeSync as
|
|
22
|
+
closeSync as closeSync4,
|
|
24
23
|
existsSync as existsSync12,
|
|
25
|
-
fsyncSync as
|
|
24
|
+
fsyncSync as fsyncSync3,
|
|
26
25
|
mkdirSync as mkdirSync6,
|
|
27
|
-
openSync as
|
|
26
|
+
openSync as openSync4,
|
|
28
27
|
readFileSync as readFileSync9,
|
|
29
28
|
renameSync as renameSync3,
|
|
30
29
|
rmSync as rmSync4,
|
|
31
30
|
statSync as statSync5,
|
|
32
|
-
writeSync
|
|
31
|
+
writeSync as writeSync2
|
|
33
32
|
} from "node:fs";
|
|
34
33
|
import { homedir as homedir4 } from "node:os";
|
|
35
|
-
import { dirname as dirname5, join as join13, resolve as
|
|
34
|
+
import { dirname as dirname5, join as join13, resolve as resolve6 } from "node:path";
|
|
36
35
|
import { createRequire as createRequire2 } from "node:module";
|
|
37
36
|
import { homedir as homedir5 } from "node:os";
|
|
38
|
-
import { dirname as dirname6, join as
|
|
37
|
+
import { dirname as dirname6, join as join15, resolve as resolve7 } from "node:path";
|
|
39
38
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
40
|
-
import { basename, dirname as dirname7, resolve as
|
|
39
|
+
import { basename, dirname as dirname7, resolve as resolve8 } from "node:path";
|
|
41
40
|
import { homedir as homedir8 } from "node:os";
|
|
42
41
|
import { existsSync as existsSync18, lstatSync as lstatSync3, mkdirSync as mkdirSync10, readdirSync as readdirSync9, symlinkSync as symlinkSync2, unlinkSync as unlinkSync2 } from "node:fs";
|
|
43
|
-
import { join as
|
|
42
|
+
import { join as join19 } from "node:path";
|
|
44
43
|
var __defProp = Object.defineProperty;
|
|
45
44
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
46
45
|
var __esm = (fn, res, err) => () => {
|
|
@@ -17371,6 +17370,8 @@ function expandHome(p, home = homedir2()) {
|
|
|
17371
17370
|
return join2(home, p.slice(2));
|
|
17372
17371
|
return p;
|
|
17373
17372
|
}
|
|
17373
|
+
var PRIVATE_SEGMENTS = new Set([".daemon", ".secrets", "memory"]);
|
|
17374
|
+
var PRIVATE_ROOT_DIRS = new Set(["runtime", "data", "transcripts", "cache"]);
|
|
17374
17375
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
17375
17376
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
17376
17377
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -17382,6 +17383,7 @@ var SIGNET_GIT_PROTECTED_PATHS = [
|
|
|
17382
17383
|
"files",
|
|
17383
17384
|
"runtime",
|
|
17384
17385
|
"workspace-layout.json",
|
|
17386
|
+
".workspace-layout-upgrade.json",
|
|
17385
17387
|
"node_modules",
|
|
17386
17388
|
":(glob)**/node_modules/**",
|
|
17387
17389
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}`,
|
|
@@ -17422,11 +17424,12 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17422
17424
|
".daemon/",
|
|
17423
17425
|
".secrets/",
|
|
17424
17426
|
".shadow/",
|
|
17425
|
-
"cache/",
|
|
17426
|
-
"data/",
|
|
17427
|
-
"files/",
|
|
17428
|
-
"runtime/",
|
|
17427
|
+
"/cache/",
|
|
17428
|
+
"/data/",
|
|
17429
|
+
"/files/",
|
|
17430
|
+
"/runtime/",
|
|
17429
17431
|
"workspace-layout.json",
|
|
17432
|
+
".workspace-layout-upgrade.json",
|
|
17430
17433
|
"node_modules/",
|
|
17431
17434
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}/`,
|
|
17432
17435
|
"memory/memories.db*",
|
|
@@ -17446,10 +17449,6 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17446
17449
|
"*.sqlite",
|
|
17447
17450
|
"*.sqlite3"
|
|
17448
17451
|
];
|
|
17449
|
-
var DESCRIPTOR_ROOT = process.platform === "linux" ? "/proc/self/fd" : process.platform === "darwin" ? "/dev/fd" : undefined;
|
|
17450
|
-
var DIRECTORY_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_DIRECTORY ?? 0) | (fsConstants.O_NOFOLLOW ?? 0);
|
|
17451
|
-
var FILE_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_NOFOLLOW ?? 0) | (fsConstants.O_NONBLOCK ?? 0);
|
|
17452
|
-
var NOFOLLOW = fsConstants.O_NOFOLLOW ?? 0;
|
|
17453
17452
|
var PROTECTION_COMPONENT_IDS = [
|
|
17454
17453
|
"root-authored",
|
|
17455
17454
|
"skills",
|
|
@@ -17577,7 +17576,7 @@ function resolveSignetDaemonUrl(opts = {}) {
|
|
|
17577
17576
|
var WORKSPACE_ENV_KEYS = ["SIGNET_PATH", "SIGNET_WORKSPACE"];
|
|
17578
17577
|
var DEFAULT_AGENTS_DIRNAME = ".agents";
|
|
17579
17578
|
function normalizeWorkspacePath(pathValue, home = homedir4()) {
|
|
17580
|
-
return
|
|
17579
|
+
return resolve6(expandHome(pathValue.trim(), home));
|
|
17581
17580
|
}
|
|
17582
17581
|
function readTrimmedEnv(env, name) {
|
|
17583
17582
|
const value = env[name];
|
|
@@ -17681,18 +17680,18 @@ try {
|
|
|
17681
17680
|
const esmRequire = createRequire2(import.meta.url);
|
|
17682
17681
|
native = esmRequire("@signet/native");
|
|
17683
17682
|
} catch {}
|
|
17684
|
-
var GRAPHIQ_DEFAULT_INSTALL_DIR =
|
|
17683
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join15(homedir5(), ".local", "bin");
|
|
17685
17684
|
var DEFAULT_DISCORD_DESKTOP_CACHE_PATH = defaultDiscordDesktopCachePath();
|
|
17686
17685
|
var DEFAULT_GITHUB_RESOURCE_TYPES = ["issues", "pulls", "discussions", "docs"];
|
|
17687
17686
|
var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
|
|
17688
17687
|
function defaultDiscordDesktopCachePath() {
|
|
17689
17688
|
switch (platform2()) {
|
|
17690
17689
|
case "darwin":
|
|
17691
|
-
return
|
|
17690
|
+
return resolve8(homedir6(), "Library", "Application Support", "discord");
|
|
17692
17691
|
case "win32":
|
|
17693
|
-
return
|
|
17692
|
+
return resolve8(process.env.APPDATA || resolve8(homedir6(), "AppData", "Roaming"), "discord");
|
|
17694
17693
|
default:
|
|
17695
|
-
return
|
|
17694
|
+
return resolve8(process.env.XDG_CONFIG_HOME || resolve8(homedir6(), ".config"), "discord");
|
|
17696
17695
|
}
|
|
17697
17696
|
}
|
|
17698
17697
|
var IDENTITY_FILES = {
|
|
@@ -17763,7 +17762,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17763
17762
|
if (!existsSync18(sourceDir)) {
|
|
17764
17763
|
return result;
|
|
17765
17764
|
}
|
|
17766
|
-
const targetParent =
|
|
17765
|
+
const targetParent = join19(targetDir, "..");
|
|
17767
17766
|
if (!existsSync18(targetParent)) {
|
|
17768
17767
|
mkdirSync10(targetParent, { recursive: true });
|
|
17769
17768
|
}
|
|
@@ -17781,8 +17780,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17781
17780
|
return result;
|
|
17782
17781
|
}
|
|
17783
17782
|
for (const entry of entries) {
|
|
17784
|
-
const srcPath =
|
|
17785
|
-
const destPath =
|
|
17783
|
+
const srcPath = join19(sourceDir, entry);
|
|
17784
|
+
const destPath = join19(targetDir, entry);
|
|
17786
17785
|
try {
|
|
17787
17786
|
const src = lstatSync3(srcPath);
|
|
17788
17787
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|
package/dist/index.js
CHANGED
|
@@ -19,29 +19,28 @@ import { promisify } from "node:util";
|
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
import { homedir as homedir2 } from "node:os";
|
|
21
21
|
import { join as join2, resolve as resolve2 } from "node:path";
|
|
22
|
-
import { constants as fsConstants, fstatSync, statfsSync as statfsSync2 } from "node:fs";
|
|
23
22
|
import {
|
|
24
|
-
closeSync as
|
|
23
|
+
closeSync as closeSync4,
|
|
25
24
|
existsSync as existsSync12,
|
|
26
|
-
fsyncSync as
|
|
25
|
+
fsyncSync as fsyncSync3,
|
|
27
26
|
mkdirSync as mkdirSync6,
|
|
28
|
-
openSync as
|
|
27
|
+
openSync as openSync4,
|
|
29
28
|
readFileSync as readFileSync9,
|
|
30
29
|
renameSync as renameSync3,
|
|
31
30
|
rmSync as rmSync4,
|
|
32
31
|
statSync as statSync5,
|
|
33
|
-
writeSync
|
|
32
|
+
writeSync as writeSync2
|
|
34
33
|
} from "node:fs";
|
|
35
34
|
import { homedir as homedir4 } from "node:os";
|
|
36
|
-
import { dirname as dirname5, join as join13, resolve as
|
|
35
|
+
import { dirname as dirname5, join as join13, resolve as resolve6 } from "node:path";
|
|
37
36
|
import { createRequire as createRequire2 } from "node:module";
|
|
38
37
|
import { homedir as homedir5 } from "node:os";
|
|
39
|
-
import { dirname as dirname6, join as
|
|
38
|
+
import { dirname as dirname6, join as join15, resolve as resolve7 } from "node:path";
|
|
40
39
|
import { homedir as homedir6, platform as platform2 } from "node:os";
|
|
41
|
-
import { basename, dirname as dirname7, resolve as
|
|
40
|
+
import { basename, dirname as dirname7, resolve as resolve8 } from "node:path";
|
|
42
41
|
import { homedir as homedir8 } from "node:os";
|
|
43
42
|
import { existsSync as existsSync18, lstatSync as lstatSync3, mkdirSync as mkdirSync10, readdirSync as readdirSync9, symlinkSync as symlinkSync2, unlinkSync as unlinkSync2 } from "node:fs";
|
|
44
|
-
import { join as
|
|
43
|
+
import { join as join19 } from "node:path";
|
|
45
44
|
var __defProp = Object.defineProperty;
|
|
46
45
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
47
46
|
var __esm = (fn, res, err) => () => {
|
|
@@ -17372,6 +17371,8 @@ function expandHome(p, home = homedir2()) {
|
|
|
17372
17371
|
return join2(home, p.slice(2));
|
|
17373
17372
|
return p;
|
|
17374
17373
|
}
|
|
17374
|
+
var PRIVATE_SEGMENTS = new Set([".daemon", ".secrets", "memory"]);
|
|
17375
|
+
var PRIVATE_ROOT_DIRS = new Set(["runtime", "data", "transcripts", "cache"]);
|
|
17375
17376
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
17376
17377
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
17377
17378
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -17383,6 +17384,7 @@ var SIGNET_GIT_PROTECTED_PATHS = [
|
|
|
17383
17384
|
"files",
|
|
17384
17385
|
"runtime",
|
|
17385
17386
|
"workspace-layout.json",
|
|
17387
|
+
".workspace-layout-upgrade.json",
|
|
17386
17388
|
"node_modules",
|
|
17387
17389
|
":(glob)**/node_modules/**",
|
|
17388
17390
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}`,
|
|
@@ -17423,11 +17425,12 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17423
17425
|
".daemon/",
|
|
17424
17426
|
".secrets/",
|
|
17425
17427
|
".shadow/",
|
|
17426
|
-
"cache/",
|
|
17427
|
-
"data/",
|
|
17428
|
-
"files/",
|
|
17429
|
-
"runtime/",
|
|
17428
|
+
"/cache/",
|
|
17429
|
+
"/data/",
|
|
17430
|
+
"/files/",
|
|
17431
|
+
"/runtime/",
|
|
17430
17432
|
"workspace-layout.json",
|
|
17433
|
+
".workspace-layout-upgrade.json",
|
|
17431
17434
|
"node_modules/",
|
|
17432
17435
|
`${SIGNET_SOURCE_CHECKOUT_DIRNAME}/`,
|
|
17433
17436
|
"memory/memories.db*",
|
|
@@ -17447,10 +17450,6 @@ var SIGNET_GITIGNORE_PROTECTED_PATTERNS = [
|
|
|
17447
17450
|
"*.sqlite",
|
|
17448
17451
|
"*.sqlite3"
|
|
17449
17452
|
];
|
|
17450
|
-
var DESCRIPTOR_ROOT = process.platform === "linux" ? "/proc/self/fd" : process.platform === "darwin" ? "/dev/fd" : undefined;
|
|
17451
|
-
var DIRECTORY_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_DIRECTORY ?? 0) | (fsConstants.O_NOFOLLOW ?? 0);
|
|
17452
|
-
var FILE_FLAGS = fsConstants.O_RDONLY | (fsConstants.O_NOFOLLOW ?? 0) | (fsConstants.O_NONBLOCK ?? 0);
|
|
17453
|
-
var NOFOLLOW = fsConstants.O_NOFOLLOW ?? 0;
|
|
17454
17453
|
var PROTECTION_COMPONENT_IDS = [
|
|
17455
17454
|
"root-authored",
|
|
17456
17455
|
"skills",
|
|
@@ -17578,7 +17577,7 @@ function resolveSignetDaemonUrl(opts = {}) {
|
|
|
17578
17577
|
var WORKSPACE_ENV_KEYS = ["SIGNET_PATH", "SIGNET_WORKSPACE"];
|
|
17579
17578
|
var DEFAULT_AGENTS_DIRNAME = ".agents";
|
|
17580
17579
|
function normalizeWorkspacePath(pathValue, home = homedir4()) {
|
|
17581
|
-
return
|
|
17580
|
+
return resolve6(expandHome(pathValue.trim(), home));
|
|
17582
17581
|
}
|
|
17583
17582
|
function readTrimmedEnv(env, name) {
|
|
17584
17583
|
const value = env[name];
|
|
@@ -17682,18 +17681,18 @@ try {
|
|
|
17682
17681
|
const esmRequire = createRequire2(import.meta.url);
|
|
17683
17682
|
native = esmRequire("@signet/native");
|
|
17684
17683
|
} catch {}
|
|
17685
|
-
var GRAPHIQ_DEFAULT_INSTALL_DIR =
|
|
17684
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join15(homedir5(), ".local", "bin");
|
|
17686
17685
|
var DEFAULT_DISCORD_DESKTOP_CACHE_PATH = defaultDiscordDesktopCachePath();
|
|
17687
17686
|
var DEFAULT_GITHUB_RESOURCE_TYPES = ["issues", "pulls", "discussions", "docs"];
|
|
17688
17687
|
var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
|
|
17689
17688
|
function defaultDiscordDesktopCachePath() {
|
|
17690
17689
|
switch (platform2()) {
|
|
17691
17690
|
case "darwin":
|
|
17692
|
-
return
|
|
17691
|
+
return resolve8(homedir6(), "Library", "Application Support", "discord");
|
|
17693
17692
|
case "win32":
|
|
17694
|
-
return
|
|
17693
|
+
return resolve8(process.env.APPDATA || resolve8(homedir6(), "AppData", "Roaming"), "discord");
|
|
17695
17694
|
default:
|
|
17696
|
-
return
|
|
17695
|
+
return resolve8(process.env.XDG_CONFIG_HOME || resolve8(homedir6(), ".config"), "discord");
|
|
17697
17696
|
}
|
|
17698
17697
|
}
|
|
17699
17698
|
var IDENTITY_FILES = {
|
|
@@ -17764,7 +17763,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17764
17763
|
if (!existsSync18(sourceDir)) {
|
|
17765
17764
|
return result;
|
|
17766
17765
|
}
|
|
17767
|
-
const targetParent =
|
|
17766
|
+
const targetParent = join19(targetDir, "..");
|
|
17768
17767
|
if (!existsSync18(targetParent)) {
|
|
17769
17768
|
mkdirSync10(targetParent, { recursive: true });
|
|
17770
17769
|
}
|
|
@@ -17782,8 +17781,8 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
17782
17781
|
return result;
|
|
17783
17782
|
}
|
|
17784
17783
|
for (const entry of entries) {
|
|
17785
|
-
const srcPath =
|
|
17786
|
-
const destPath =
|
|
17784
|
+
const srcPath = join19(sourceDir, entry);
|
|
17785
|
+
const destPath = join19(targetDir, entry);
|
|
17787
17786
|
try {
|
|
17788
17787
|
const src = lstatSync3(srcPath);
|
|
17789
17788
|
if (src.isSymbolicLink() || !src.isDirectory()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.232.0",
|
|
4
4
|
"description": "Base class for Signet harness connectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@signetai/core": "0.
|
|
33
|
+
"@signetai/core": "0.232.0",
|
|
34
34
|
"json5": "^2.2.3",
|
|
35
35
|
"jsonc-parser": "3.3.1"
|
|
36
36
|
},
|