@signetai/connector-openclaw 0.178.0 → 0.179.1
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 +21 -15
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6,14 +6,16 @@ import { delimiter, join as join4, resolve } from "node:path";
|
|
|
6
6
|
// ../../../libs/connector-base/dist/index.js
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
8
8
|
import { existsSync, readFileSync, renameSync, statSync as statSync2, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
9
|
-
import { dirname as
|
|
9
|
+
import { dirname as dirname5, isAbsolute, join as join3, relative, sep } from "node:path";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { fileURLToPath } from "node:url";
|
|
13
13
|
import { createRequire as createRequire2 } from "node:module";
|
|
14
|
-
import { homedir as homedir4
|
|
14
|
+
import { homedir as homedir4 } from "node:os";
|
|
15
|
+
import { dirname as dirname3, join as join6, resolve as resolve2 } from "node:path";
|
|
16
|
+
import { homedir as homedir5, platform as platform2 } from "node:os";
|
|
15
17
|
import { basename, dirname as dirname4, resolve as resolve4 } from "node:path";
|
|
16
|
-
import { homedir as
|
|
18
|
+
import { homedir as homedir9 } from "node:os";
|
|
17
19
|
import { existsSync as existsSync13, lstatSync, mkdirSync as mkdirSync9, readdirSync as readdirSync6, symlinkSync, unlinkSync } from "node:fs";
|
|
18
20
|
import { join as join13 } from "node:path";
|
|
19
21
|
var __create2 = Object.create;
|
|
@@ -11297,6 +11299,7 @@ try {
|
|
|
11297
11299
|
const esmRequire = createRequire2(import.meta.url);
|
|
11298
11300
|
native = esmRequire("@signet/native");
|
|
11299
11301
|
} catch {}
|
|
11302
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join6(homedir4(), ".local", "bin");
|
|
11300
11303
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
11301
11304
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
11302
11305
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -11366,11 +11369,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
|
|
|
11366
11369
|
function defaultDiscordDesktopCachePath() {
|
|
11367
11370
|
switch (platform2()) {
|
|
11368
11371
|
case "darwin":
|
|
11369
|
-
return resolve4(
|
|
11372
|
+
return resolve4(homedir5(), "Library", "Application Support", "discord");
|
|
11370
11373
|
case "win32":
|
|
11371
|
-
return resolve4(process.env.APPDATA || resolve4(
|
|
11374
|
+
return resolve4(process.env.APPDATA || resolve4(homedir5(), "AppData", "Roaming"), "discord");
|
|
11372
11375
|
default:
|
|
11373
|
-
return resolve4(process.env.XDG_CONFIG_HOME || resolve4(
|
|
11376
|
+
return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir5(), ".config"), "discord");
|
|
11374
11377
|
}
|
|
11375
11378
|
}
|
|
11376
11379
|
var IDENTITY_FILES = {
|
|
@@ -11501,7 +11504,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
11501
11504
|
}
|
|
11502
11505
|
return result;
|
|
11503
11506
|
}
|
|
11504
|
-
var home =
|
|
11507
|
+
var home = homedir9();
|
|
11505
11508
|
var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
11506
11509
|
var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
11507
11510
|
function stripSignetBlock(content) {
|
|
@@ -11542,7 +11545,7 @@ class BaseConnector {
|
|
|
11542
11545
|
generateHeader(sourcePath, targetName) {
|
|
11543
11546
|
const name = targetName || this.name;
|
|
11544
11547
|
const safe = (p) => p.replace(/[\n\r]/g, "");
|
|
11545
|
-
const root =
|
|
11548
|
+
const root = dirname5(sourcePath);
|
|
11546
11549
|
return `# Auto-generated from ${safe(sourcePath)}
|
|
11547
11550
|
# Source: ${safe(sourcePath)}
|
|
11548
11551
|
# Generated: ${new Date().toISOString()}
|
|
@@ -11574,7 +11577,7 @@ ${content}`);
|
|
|
11574
11577
|
}
|
|
11575
11578
|
}
|
|
11576
11579
|
function atomicWriteText(path, content, mode) {
|
|
11577
|
-
const tmp = join3(
|
|
11580
|
+
const tmp = join3(dirname5(path), `.${randomBytes(6).toString("hex")}.tmp`);
|
|
11578
11581
|
let writeMode = mode;
|
|
11579
11582
|
if (writeMode === undefined) {
|
|
11580
11583
|
try {
|
|
@@ -13597,9 +13600,11 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
13597
13600
|
import { homedir as homedir2 } from "os";
|
|
13598
13601
|
import { join as join22 } from "path";
|
|
13599
13602
|
import { createRequire as createRequire22 } from "node:module";
|
|
13600
|
-
import { homedir as homedir42
|
|
13603
|
+
import { homedir as homedir42 } from "node:os";
|
|
13604
|
+
import { dirname as dirname32, join as join62, resolve as resolve22 } from "node:path";
|
|
13605
|
+
import { homedir as homedir52, platform as platform22 } from "node:os";
|
|
13601
13606
|
import { basename as basename2, dirname as dirname42, resolve as resolve42 } from "node:path";
|
|
13602
|
-
import { homedir as
|
|
13607
|
+
import { homedir as homedir92 } from "node:os";
|
|
13603
13608
|
var __create3 = Object.create;
|
|
13604
13609
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
13605
13610
|
var __defProp3 = Object.defineProperty;
|
|
@@ -24888,6 +24893,7 @@ try {
|
|
|
24888
24893
|
const esmRequire = createRequire22(import.meta.url);
|
|
24889
24894
|
native2 = esmRequire("@signet/native");
|
|
24890
24895
|
} catch {}
|
|
24896
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR2 = join62(homedir42(), ".local", "bin");
|
|
24891
24897
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME2 = "signetai";
|
|
24892
24898
|
var SIGNET_GIT_ALLOWED_DIRECTORIES2 = ["skills", "tools", "dreaming"];
|
|
24893
24899
|
var SIGNET_GIT_PROTECTED_PATHS2 = [
|
|
@@ -24957,11 +24963,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
|
|
|
24957
24963
|
function defaultDiscordDesktopCachePath2() {
|
|
24958
24964
|
switch (platform22()) {
|
|
24959
24965
|
case "darwin":
|
|
24960
|
-
return resolve42(
|
|
24966
|
+
return resolve42(homedir52(), "Library", "Application Support", "discord");
|
|
24961
24967
|
case "win32":
|
|
24962
|
-
return resolve42(process.env.APPDATA || resolve42(
|
|
24968
|
+
return resolve42(process.env.APPDATA || resolve42(homedir52(), "AppData", "Roaming"), "discord");
|
|
24963
24969
|
default:
|
|
24964
|
-
return resolve42(process.env.XDG_CONFIG_HOME || resolve42(
|
|
24970
|
+
return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir52(), ".config"), "discord");
|
|
24965
24971
|
}
|
|
24966
24972
|
}
|
|
24967
24973
|
var IDENTITY_FILES2 = {
|
|
@@ -25019,7 +25025,7 @@ var IDENTITY_FILES2 = {
|
|
|
25019
25025
|
};
|
|
25020
25026
|
var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
|
|
25021
25027
|
var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
|
|
25022
|
-
var home2 =
|
|
25028
|
+
var home2 = homedir92();
|
|
25023
25029
|
|
|
25024
25030
|
// src/index.ts
|
|
25025
25031
|
var OPENCLAW_PARSE_OPTIONS = { label: "OpenClaw config" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-openclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.179.1",
|
|
4
4
|
"description": "Signet connector for OpenClaw - configures workspace and memory hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"test": "bun test"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.
|
|
29
|
-
"@signetai/core": "0.
|
|
28
|
+
"@signetai/connector-base": "0.179.1",
|
|
29
|
+
"@signetai/core": "0.179.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|