@signetai/connector-openclaw 0.147.19 → 0.147.22
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/README.md +12 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,8 @@ Signet connector for OpenClaw (and its earlier names: clawdbot, moltbot).
|
|
|
6
6
|
|
|
7
7
|
Unlike other harnesses, OpenClaw reads `~/.agents/AGENTS.md` directly, so no
|
|
8
8
|
generated output file is needed. Instead, this connector patches the JSON
|
|
9
|
-
config to point OpenClaw at the Signet workspace and
|
|
9
|
+
config to point OpenClaw at the Signet workspace and configures the Signet
|
|
10
|
+
memory plugin.
|
|
10
11
|
|
|
11
12
|
## Installation
|
|
12
13
|
|
|
@@ -40,16 +41,22 @@ await connector.install('~/.agents');
|
|
|
40
41
|
`OPENCLAW_HOME`, `CLAWDBOT_HOME`, `MOLDBOT_HOME`, `MOLTBOT_HOME`,
|
|
41
42
|
`OPENCLAW_STATE_HOME`
|
|
42
43
|
- Sets `agents.defaults.workspace` to point at `~/.agents`
|
|
43
|
-
-
|
|
44
|
+
- Selects `signet-memory-openclaw` as the memory plugin and adds it to
|
|
45
|
+
`plugins.allow`
|
|
46
|
+
- Grants the plugin the explicit `hooks.allowConversationAccess` permission
|
|
47
|
+
required for `agent_end` transcript capture
|
|
48
|
+
- Disables OpenClaw's built-in memory search and the legacy `signet-memory`
|
|
49
|
+
internal hook to prevent duplicate memory paths
|
|
44
50
|
- Creates hook handler files in `~/.agents/hooks/agent-memory/` for
|
|
45
|
-
`/remember`, `/recall`, and `/context`
|
|
51
|
+
legacy `/remember`, `/recall`, and `/context` command compatibility
|
|
46
52
|
|
|
47
53
|
## API
|
|
48
54
|
|
|
49
|
-
### `install(basePath: string): Promise<InstallResult>`
|
|
55
|
+
### `install(basePath: string, options?: OpenClawInstallOptions): Promise<InstallResult>`
|
|
50
56
|
|
|
51
57
|
Install the connector. Patches all found OpenClaw config files and installs
|
|
52
|
-
hook handler files.
|
|
58
|
+
hook handler files. The plugin runtime is the default; pass
|
|
59
|
+
`{ runtimePath: "legacy" }` only for an older OpenClaw runtime.
|
|
53
60
|
|
|
54
61
|
### `uninstall(basePath?: string): Promise<UninstallResult>`
|
|
55
62
|
|
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare class OpenClawConnector extends BaseConnector {
|
|
|
106
106
|
private getConfigCandidates;
|
|
107
107
|
/**
|
|
108
108
|
* Patch configs with plugin entry using the object format:
|
|
109
|
-
* plugins.entries["signet-memory-openclaw"] = { enabled, config }
|
|
109
|
+
* plugins.entries["signet-memory-openclaw"] = { enabled, hooks, config }
|
|
110
110
|
*
|
|
111
111
|
* Migrates:
|
|
112
112
|
* - Legacy array-style plugins (["signet-memory"] -> { entries: {...} })
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAmB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAmB,MAAM,wBAAwB,CAAC;AAqDlH,MAAM,WAAW,sBAAsB;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAClC;AAED,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,G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OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE;IAkF7E;;;;;OAKG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IAsJ5C,0DAA0D;IAC1D,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,UAAU;CAIlB;AAMD,6CAA6C;AAC7C,wBAAgB,eAAe,IAAI,iBAAiB,CAEnD;AAED,eAAe,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1151,7 +1151,7 @@ import { delimiter, join as join4, resolve as resolve2 } from "node:path";
|
|
|
1151
1151
|
|
|
1152
1152
|
// ../../../libs/connector-base/dist/index.js
|
|
1153
1153
|
import { randomBytes } from "node:crypto";
|
|
1154
|
-
import { existsSync, readFileSync, renameSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
1154
|
+
import { existsSync, readFileSync, renameSync, statSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
1155
1155
|
import { dirname as dirname2, join as join3, resolve } from "node:path";
|
|
1156
1156
|
import { createRequire } from "node:module";
|
|
1157
1157
|
import { dirname, join } from "node:path";
|
|
@@ -12140,12 +12140,16 @@ ${content}`);
|
|
|
12140
12140
|
`);
|
|
12141
12141
|
}
|
|
12142
12142
|
}
|
|
12143
|
-
function
|
|
12144
|
-
const content = `${JSON.stringify(data, null, indent)}
|
|
12145
|
-
`;
|
|
12143
|
+
function atomicWriteText(path, content, mode) {
|
|
12146
12144
|
const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
|
|
12145
|
+
let writeMode = mode;
|
|
12146
|
+
if (writeMode === undefined) {
|
|
12147
|
+
try {
|
|
12148
|
+
writeMode = statSync(path).mode & 511;
|
|
12149
|
+
} catch {}
|
|
12150
|
+
}
|
|
12147
12151
|
try {
|
|
12148
|
-
writeFileSync(tmp, content, "utf-8");
|
|
12152
|
+
writeFileSync(tmp, content, { encoding: "utf-8", mode: writeMode });
|
|
12149
12153
|
renameSync(tmp, path);
|
|
12150
12154
|
} catch (err) {
|
|
12151
12155
|
try {
|
|
@@ -12154,6 +12158,10 @@ function atomicWriteJson(path, data, indent = 2) {
|
|
|
12154
12158
|
throw err;
|
|
12155
12159
|
}
|
|
12156
12160
|
}
|
|
12161
|
+
function atomicWriteJson(path, data, indent = 2) {
|
|
12162
|
+
atomicWriteText(path, `${JSON.stringify(data, null, indent)}
|
|
12163
|
+
`);
|
|
12164
|
+
}
|
|
12157
12165
|
|
|
12158
12166
|
// ../../../platform/core/dist/index.js
|
|
12159
12167
|
import { createRequire as createRequire3 } from "node:module";
|
|
@@ -23241,6 +23249,9 @@ class OpenClawConnector extends BaseConnector {
|
|
|
23241
23249
|
entries: {
|
|
23242
23250
|
"signet-memory-openclaw": {
|
|
23243
23251
|
enabled: true,
|
|
23252
|
+
hooks: {
|
|
23253
|
+
allowConversationAccess: true
|
|
23254
|
+
},
|
|
23244
23255
|
config: {
|
|
23245
23256
|
daemonUrl: "http://localhost:3850"
|
|
23246
23257
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-openclaw",
|
|
3
|
-
"version": "0.147.
|
|
3
|
+
"version": "0.147.22",
|
|
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.147.
|
|
29
|
-
"@signetai/core": "0.147.
|
|
28
|
+
"@signetai/connector-base": "0.147.22",
|
|
29
|
+
"@signetai/core": "0.147.22",
|
|
30
30
|
"json5": "^2.2.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|