@signetai/connector-openclaw 0.177.0 → 0.179.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 +75 -23
- 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;
|
|
@@ -10386,6 +10388,18 @@ function up110(db) {
|
|
|
10386
10388
|
ON memory_entity_mentions(entity_id, memory_id);
|
|
10387
10389
|
`);
|
|
10388
10390
|
}
|
|
10391
|
+
function hasColumn19(db, table, column) {
|
|
10392
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
10393
|
+
return rows.some((row) => row.name === column);
|
|
10394
|
+
}
|
|
10395
|
+
var COLUMNS2 = ["first_remember_at", "first_recall_at"];
|
|
10396
|
+
function up111(db) {
|
|
10397
|
+
for (const column of COLUMNS2) {
|
|
10398
|
+
if (!hasColumn19(db, "telemetry_install", column)) {
|
|
10399
|
+
db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
|
|
10400
|
+
}
|
|
10401
|
+
}
|
|
10402
|
+
}
|
|
10389
10403
|
var MIGRATIONS = [
|
|
10390
10404
|
{
|
|
10391
10405
|
version: 1,
|
|
@@ -11261,6 +11275,17 @@ var MIGRATIONS = [
|
|
|
11261
11275
|
version: 110,
|
|
11262
11276
|
name: "memory-mention-join-index",
|
|
11263
11277
|
up: up110
|
|
11278
|
+
},
|
|
11279
|
+
{
|
|
11280
|
+
version: 111,
|
|
11281
|
+
name: "telemetry-first-use",
|
|
11282
|
+
up: up111,
|
|
11283
|
+
artifacts: {
|
|
11284
|
+
columns: [
|
|
11285
|
+
{ table: "telemetry_install", column: "first_remember_at" },
|
|
11286
|
+
{ table: "telemetry_install", column: "first_recall_at" }
|
|
11287
|
+
]
|
|
11288
|
+
}
|
|
11264
11289
|
}
|
|
11265
11290
|
];
|
|
11266
11291
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -11274,6 +11299,7 @@ try {
|
|
|
11274
11299
|
const esmRequire = createRequire2(import.meta.url);
|
|
11275
11300
|
native = esmRequire("@signet/native");
|
|
11276
11301
|
} catch {}
|
|
11302
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR = join6(homedir4(), ".local", "bin");
|
|
11277
11303
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME = "signetai";
|
|
11278
11304
|
var SIGNET_GIT_ALLOWED_DIRECTORIES = ["skills", "tools", "dreaming"];
|
|
11279
11305
|
var SIGNET_GIT_PROTECTED_PATHS = [
|
|
@@ -11343,11 +11369,11 @@ var VALID_GITHUB_RESOURCE_TYPES = new Set(DEFAULT_GITHUB_RESOURCE_TYPES);
|
|
|
11343
11369
|
function defaultDiscordDesktopCachePath() {
|
|
11344
11370
|
switch (platform2()) {
|
|
11345
11371
|
case "darwin":
|
|
11346
|
-
return resolve4(
|
|
11372
|
+
return resolve4(homedir5(), "Library", "Application Support", "discord");
|
|
11347
11373
|
case "win32":
|
|
11348
|
-
return resolve4(process.env.APPDATA || resolve4(
|
|
11374
|
+
return resolve4(process.env.APPDATA || resolve4(homedir5(), "AppData", "Roaming"), "discord");
|
|
11349
11375
|
default:
|
|
11350
|
-
return resolve4(process.env.XDG_CONFIG_HOME || resolve4(
|
|
11376
|
+
return resolve4(process.env.XDG_CONFIG_HOME || resolve4(homedir5(), ".config"), "discord");
|
|
11351
11377
|
}
|
|
11352
11378
|
}
|
|
11353
11379
|
var IDENTITY_FILES = {
|
|
@@ -11478,7 +11504,7 @@ function symlinkSkills(sourceDir, targetDir, options = {}) {
|
|
|
11478
11504
|
}
|
|
11479
11505
|
return result;
|
|
11480
11506
|
}
|
|
11481
|
-
var home =
|
|
11507
|
+
var home = homedir9();
|
|
11482
11508
|
var SIGNET_BLOCK_START = "<!-- SIGNET:START -->";
|
|
11483
11509
|
var SIGNET_BLOCK_END = "<!-- SIGNET:END -->";
|
|
11484
11510
|
function stripSignetBlock(content) {
|
|
@@ -11519,7 +11545,7 @@ class BaseConnector {
|
|
|
11519
11545
|
generateHeader(sourcePath, targetName) {
|
|
11520
11546
|
const name = targetName || this.name;
|
|
11521
11547
|
const safe = (p) => p.replace(/[\n\r]/g, "");
|
|
11522
|
-
const root =
|
|
11548
|
+
const root = dirname5(sourcePath);
|
|
11523
11549
|
return `# Auto-generated from ${safe(sourcePath)}
|
|
11524
11550
|
# Source: ${safe(sourcePath)}
|
|
11525
11551
|
# Generated: ${new Date().toISOString()}
|
|
@@ -11551,7 +11577,7 @@ ${content}`);
|
|
|
11551
11577
|
}
|
|
11552
11578
|
}
|
|
11553
11579
|
function atomicWriteText(path, content, mode) {
|
|
11554
|
-
const tmp = join3(
|
|
11580
|
+
const tmp = join3(dirname5(path), `.${randomBytes(6).toString("hex")}.tmp`);
|
|
11555
11581
|
let writeMode = mode;
|
|
11556
11582
|
if (writeMode === undefined) {
|
|
11557
11583
|
try {
|
|
@@ -13574,9 +13600,11 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
13574
13600
|
import { homedir as homedir2 } from "os";
|
|
13575
13601
|
import { join as join22 } from "path";
|
|
13576
13602
|
import { createRequire as createRequire22 } from "node:module";
|
|
13577
|
-
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";
|
|
13578
13606
|
import { basename as basename2, dirname as dirname42, resolve as resolve42 } from "node:path";
|
|
13579
|
-
import { homedir as
|
|
13607
|
+
import { homedir as homedir92 } from "node:os";
|
|
13580
13608
|
var __create3 = Object.create;
|
|
13581
13609
|
var __getProtoOf3 = Object.getPrototypeOf;
|
|
13582
13610
|
var __defProp3 = Object.defineProperty;
|
|
@@ -20524,7 +20552,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
20524
20552
|
return true;
|
|
20525
20553
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
20526
20554
|
}
|
|
20527
|
-
function
|
|
20555
|
+
function up112(db) {
|
|
20528
20556
|
db.exec(`
|
|
20529
20557
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
20530
20558
|
version INTEGER PRIMARY KEY,
|
|
@@ -20613,12 +20641,12 @@ function up111(db) {
|
|
|
20613
20641
|
} catch {}
|
|
20614
20642
|
createMemoriesFts2(db);
|
|
20615
20643
|
}
|
|
20616
|
-
function
|
|
20644
|
+
function hasColumn20(db, table, column) {
|
|
20617
20645
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20618
20646
|
return rows.some((r) => r.name === column);
|
|
20619
20647
|
}
|
|
20620
20648
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
20621
|
-
if (!
|
|
20649
|
+
if (!hasColumn20(db, table, column)) {
|
|
20622
20650
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
20623
20651
|
}
|
|
20624
20652
|
}
|
|
@@ -20947,7 +20975,7 @@ function up1010(db) {
|
|
|
20947
20975
|
)
|
|
20948
20976
|
`);
|
|
20949
20977
|
}
|
|
20950
|
-
function
|
|
20978
|
+
function up113(db) {
|
|
20951
20979
|
db.exec(`
|
|
20952
20980
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
20953
20981
|
id TEXT PRIMARY KEY,
|
|
@@ -23193,9 +23221,9 @@ function hasColumn112(db, table, column) {
|
|
|
23193
23221
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
23194
23222
|
return rows.some((row) => row.name === column);
|
|
23195
23223
|
}
|
|
23196
|
-
var
|
|
23224
|
+
var COLUMNS3 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
23197
23225
|
function up822(db) {
|
|
23198
|
-
for (const column of
|
|
23226
|
+
for (const column of COLUMNS3) {
|
|
23199
23227
|
if (!hasColumn112(db, "skill_invocations", column)) {
|
|
23200
23228
|
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
23201
23229
|
}
|
|
@@ -23947,11 +23975,23 @@ function up1102(db) {
|
|
|
23947
23975
|
ON memory_entity_mentions(entity_id, memory_id);
|
|
23948
23976
|
`);
|
|
23949
23977
|
}
|
|
23978
|
+
function hasColumn192(db, table, column) {
|
|
23979
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
23980
|
+
return rows.some((row) => row.name === column);
|
|
23981
|
+
}
|
|
23982
|
+
var COLUMNS22 = ["first_remember_at", "first_recall_at"];
|
|
23983
|
+
function up1112(db) {
|
|
23984
|
+
for (const column of COLUMNS22) {
|
|
23985
|
+
if (!hasColumn192(db, "telemetry_install", column)) {
|
|
23986
|
+
db.exec(`ALTER TABLE telemetry_install ADD COLUMN ${column} TEXT`);
|
|
23987
|
+
}
|
|
23988
|
+
}
|
|
23989
|
+
}
|
|
23950
23990
|
var MIGRATIONS2 = [
|
|
23951
23991
|
{
|
|
23952
23992
|
version: 1,
|
|
23953
23993
|
name: "baseline",
|
|
23954
|
-
up:
|
|
23994
|
+
up: up112,
|
|
23955
23995
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23956
23996
|
},
|
|
23957
23997
|
{
|
|
@@ -24017,7 +24057,7 @@ var MIGRATIONS2 = [
|
|
|
24017
24057
|
{
|
|
24018
24058
|
version: 11,
|
|
24019
24059
|
name: "session-scores",
|
|
24020
|
-
up:
|
|
24060
|
+
up: up113,
|
|
24021
24061
|
artifacts: { tables: ["session_scores"] }
|
|
24022
24062
|
},
|
|
24023
24063
|
{
|
|
@@ -24822,6 +24862,17 @@ var MIGRATIONS2 = [
|
|
|
24822
24862
|
version: 110,
|
|
24823
24863
|
name: "memory-mention-join-index",
|
|
24824
24864
|
up: up1102
|
|
24865
|
+
},
|
|
24866
|
+
{
|
|
24867
|
+
version: 111,
|
|
24868
|
+
name: "telemetry-first-use",
|
|
24869
|
+
up: up1112,
|
|
24870
|
+
artifacts: {
|
|
24871
|
+
columns: [
|
|
24872
|
+
{ table: "telemetry_install", column: "first_remember_at" },
|
|
24873
|
+
{ table: "telemetry_install", column: "first_recall_at" }
|
|
24874
|
+
]
|
|
24875
|
+
}
|
|
24825
24876
|
}
|
|
24826
24877
|
];
|
|
24827
24878
|
var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
|
|
@@ -24842,6 +24893,7 @@ try {
|
|
|
24842
24893
|
const esmRequire = createRequire22(import.meta.url);
|
|
24843
24894
|
native2 = esmRequire("@signet/native");
|
|
24844
24895
|
} catch {}
|
|
24896
|
+
var GRAPHIQ_DEFAULT_INSTALL_DIR2 = join62(homedir42(), ".local", "bin");
|
|
24845
24897
|
var SIGNET_SOURCE_CHECKOUT_DIRNAME2 = "signetai";
|
|
24846
24898
|
var SIGNET_GIT_ALLOWED_DIRECTORIES2 = ["skills", "tools", "dreaming"];
|
|
24847
24899
|
var SIGNET_GIT_PROTECTED_PATHS2 = [
|
|
@@ -24911,11 +24963,11 @@ var VALID_GITHUB_RESOURCE_TYPES2 = new Set(DEFAULT_GITHUB_RESOURCE_TYPES2);
|
|
|
24911
24963
|
function defaultDiscordDesktopCachePath2() {
|
|
24912
24964
|
switch (platform22()) {
|
|
24913
24965
|
case "darwin":
|
|
24914
|
-
return resolve42(
|
|
24966
|
+
return resolve42(homedir52(), "Library", "Application Support", "discord");
|
|
24915
24967
|
case "win32":
|
|
24916
|
-
return resolve42(process.env.APPDATA || resolve42(
|
|
24968
|
+
return resolve42(process.env.APPDATA || resolve42(homedir52(), "AppData", "Roaming"), "discord");
|
|
24917
24969
|
default:
|
|
24918
|
-
return resolve42(process.env.XDG_CONFIG_HOME || resolve42(
|
|
24970
|
+
return resolve42(process.env.XDG_CONFIG_HOME || resolve42(homedir52(), ".config"), "discord");
|
|
24919
24971
|
}
|
|
24920
24972
|
}
|
|
24921
24973
|
var IDENTITY_FILES2 = {
|
|
@@ -24973,7 +25025,7 @@ var IDENTITY_FILES2 = {
|
|
|
24973
25025
|
};
|
|
24974
25026
|
var REQUIRED_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => !spec.optional).map(([key]) => key);
|
|
24975
25027
|
var OPTIONAL_IDENTITY_KEYS2 = Object.entries(IDENTITY_FILES2).filter(([, spec]) => spec.optional).map(([key]) => key);
|
|
24976
|
-
var home2 =
|
|
25028
|
+
var home2 = homedir92();
|
|
24977
25029
|
|
|
24978
25030
|
// src/index.ts
|
|
24979
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.0",
|
|
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.0",
|
|
29
|
+
"@signetai/core": "0.179.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|