@remnic/plugin-openclaw 1.0.11 → 1.0.13
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/capsule-cli-GBM3WPAM.js +33 -0
- package/dist/capsule-export-IXVERCQG.js +17 -0
- package/dist/{capsule-import-CFX7BY5W.js → capsule-import-IA6VIOPQ.js} +3 -3
- package/dist/{capsule-merge-7RVOHJK3.js → capsule-merge-IWOQ34KL.js} +2 -2
- package/dist/{causal-consolidation-JD6KJJH6.js → causal-consolidation-YI53C2AO.js} +3 -3
- package/dist/{chunk-K7EUBNDD.js → chunk-4LYQ4ONL.js} +1 -1
- package/dist/{chunk-N7EOZY6F.js → chunk-6F6EKSVP.js} +54 -1
- package/dist/{chunk-TNH24SF6.js → chunk-7UZNLMW5.js} +301 -125
- package/dist/{chunk-TVKKIS53.js → chunk-CDAZGIGT.js} +1 -1
- package/dist/{chunk-XMSDA5WA.js → chunk-EXDYWXMB.js} +1 -0
- package/dist/{capsule-export-CVA3CKUQ.js → chunk-FGTYFLL5.js} +21 -12
- package/dist/{chunk-ETJZRIAM.js → chunk-L6I4MQKO.js} +1 -1
- package/dist/{capsule-cli-TFKLAG3S.js → chunk-LLUROTZJ.js} +11 -12
- package/dist/{chunk-L4PRBB2A.js → chunk-OAE7AQ6R.js} +63 -91
- package/dist/{chunk-3I7RHWYT.js → chunk-RKR6PTPA.js} +105 -11
- package/dist/{chunk-P3DIW2SD.js → chunk-TILAJIJR.js} +1 -1
- package/dist/{engine-VMTFKFGO.js → engine-BIYI3P4J.js} +6 -4
- package/dist/index.js +1864 -381
- package/dist/{memory-governance-DWGFV4FX.js → memory-governance-SJ5DGRB3.js} +3 -3
- package/dist/{secure-store-FWJ7LBPH.js → secure-store-A4NGCNXV.js} +8 -2
- package/dist/{storage-T2OGFUF4.js → storage-PTQ2H2YJ.js} +2 -2
- package/dist/{types-H5R5D3WF.js → types-R4DO7AKM.js} +2 -2
- package/openclaw.plugin.json +10 -0
- package/package.json +2 -2
- package/dist/chunk-YGXXBRV7.js +0 -10
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultCapsulesDir,
|
|
3
|
+
parseCapsuleConflictMode,
|
|
4
|
+
parseCapsuleExportOptions,
|
|
5
|
+
parseCapsuleImportMode,
|
|
6
|
+
parseCapsuleImportOptions,
|
|
7
|
+
parseCapsuleIncludeKinds,
|
|
8
|
+
parseCapsuleInspectOptions,
|
|
9
|
+
parseCapsuleListOptions,
|
|
10
|
+
parseCapsuleMergeOptions,
|
|
11
|
+
parseCapsuleOutputFormat,
|
|
12
|
+
parseCapsulePeers,
|
|
13
|
+
parseCapsuleSince,
|
|
14
|
+
renderCapsuleInspect,
|
|
15
|
+
renderCapsuleList
|
|
16
|
+
} from "./chunk-LLUROTZJ.js";
|
|
17
|
+
import "./chunk-MLKGABMK.js";
|
|
18
|
+
export {
|
|
19
|
+
defaultCapsulesDir,
|
|
20
|
+
parseCapsuleConflictMode,
|
|
21
|
+
parseCapsuleExportOptions,
|
|
22
|
+
parseCapsuleImportMode,
|
|
23
|
+
parseCapsuleImportOptions,
|
|
24
|
+
parseCapsuleIncludeKinds,
|
|
25
|
+
parseCapsuleInspectOptions,
|
|
26
|
+
parseCapsuleListOptions,
|
|
27
|
+
parseCapsuleMergeOptions,
|
|
28
|
+
parseCapsuleOutputFormat,
|
|
29
|
+
parseCapsulePeers,
|
|
30
|
+
parseCapsuleSince,
|
|
31
|
+
renderCapsuleInspect,
|
|
32
|
+
renderCapsuleList
|
|
33
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exportCapsule,
|
|
3
|
+
isValidCapsuleSince
|
|
4
|
+
} from "./chunk-FGTYFLL5.js";
|
|
5
|
+
import "./chunk-4LYQ4ONL.js";
|
|
6
|
+
import "./chunk-NKVIN6RD.js";
|
|
7
|
+
import "./chunk-SSFTU6LP.js";
|
|
8
|
+
import "./chunk-EXDYWXMB.js";
|
|
9
|
+
import "./chunk-CXM7EBAO.js";
|
|
10
|
+
import "./chunk-JZBOXOUC.js";
|
|
11
|
+
import "./chunk-6IWEAUN6.js";
|
|
12
|
+
import "./chunk-YGGGUTG3.js";
|
|
13
|
+
import "./chunk-MLKGABMK.js";
|
|
14
|
+
export {
|
|
15
|
+
exportCapsule,
|
|
16
|
+
isValidCapsuleSince
|
|
17
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
importCapsule
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-L6I4MQKO.js";
|
|
4
|
+
import "./chunk-4LYQ4ONL.js";
|
|
5
5
|
import "./chunk-NKVIN6RD.js";
|
|
6
6
|
import "./chunk-SSFTU6LP.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-EXDYWXMB.js";
|
|
8
8
|
import "./chunk-CXM7EBAO.js";
|
|
9
9
|
import "./chunk-JZBOXOUC.js";
|
|
10
10
|
import "./chunk-6IWEAUN6.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseExportBundle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4LYQ4ONL.js";
|
|
4
4
|
import {
|
|
5
5
|
assertIsDirectoryNotSymlink,
|
|
6
6
|
assertRealpathInsideRoot,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isPathInsideRoot,
|
|
9
9
|
sha256String
|
|
10
10
|
} from "./chunk-NKVIN6RD.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-EXDYWXMB.js";
|
|
12
12
|
import {
|
|
13
13
|
createVersion
|
|
14
14
|
} from "./chunk-6OJAU466.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
buildExtensionsBlockForConsolidation,
|
|
7
7
|
runPostConsolidationMaterialize
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TILAJIJR.js";
|
|
9
9
|
import "./chunk-WPINX4MF.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
FallbackLlmClient
|
|
19
19
|
} from "./chunk-RQCTMECT.js";
|
|
20
20
|
import "./chunk-3A5ELHTT.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-7UZNLMW5.js";
|
|
22
22
|
import "./chunk-6OJAU466.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-RKR6PTPA.js";
|
|
24
24
|
import {
|
|
25
25
|
log
|
|
26
26
|
} from "./chunk-UFU5GGGA.js";
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
KDF_SALT_LENGTH
|
|
18
18
|
} from "./chunk-6IWEAUN6.js";
|
|
19
19
|
import {
|
|
20
|
+
decryptMemoryDirToPlaintext,
|
|
20
21
|
migrateMemoryDirToEncrypted
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RKR6PTPA.js";
|
|
22
23
|
import {
|
|
23
24
|
generateSalt
|
|
24
25
|
} from "./chunk-YGGGUTG3.js";
|
|
@@ -117,6 +118,35 @@ async function runSecureStoreMigrate(options) {
|
|
|
117
118
|
}
|
|
118
119
|
return { ok: true, ...result };
|
|
119
120
|
}
|
|
121
|
+
async function runSecureStoreDisable(options) {
|
|
122
|
+
const { memoryDir } = options;
|
|
123
|
+
const header = await readHeader(memoryDir);
|
|
124
|
+
if (!header) {
|
|
125
|
+
return {
|
|
126
|
+
ok: false,
|
|
127
|
+
reason: "not-initialized",
|
|
128
|
+
decrypted: 0,
|
|
129
|
+
skipped: 0,
|
|
130
|
+
errors: []
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
const id = options.keyringId ?? secureStoreDir(memoryDir);
|
|
134
|
+
const key = getKey(id);
|
|
135
|
+
if (key === null) {
|
|
136
|
+
return {
|
|
137
|
+
ok: false,
|
|
138
|
+
reason: "locked",
|
|
139
|
+
decrypted: 0,
|
|
140
|
+
skipped: 0,
|
|
141
|
+
errors: []
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
const result = await decryptMemoryDirToPlaintext(memoryDir, key);
|
|
145
|
+
if (result.errors.length > 0) {
|
|
146
|
+
return { ok: false, reason: "file-errors", ...result };
|
|
147
|
+
}
|
|
148
|
+
return { ok: true, ...result };
|
|
149
|
+
}
|
|
120
150
|
async function runSecureStoreStatus(options) {
|
|
121
151
|
const { memoryDir } = options;
|
|
122
152
|
const id = options.keyringId ?? secureStoreDir(memoryDir);
|
|
@@ -209,6 +239,27 @@ function renderMigrateReport(report) {
|
|
|
209
239
|
}
|
|
210
240
|
return lines.join("\n");
|
|
211
241
|
}
|
|
242
|
+
function renderDisableReport(report) {
|
|
243
|
+
if (!report.ok && report.reason === "not-initialized") {
|
|
244
|
+
return "ERR \u2014 secure-store is not initialized. Run 'remnic engram secure-store init' first.";
|
|
245
|
+
}
|
|
246
|
+
if (!report.ok && report.reason === "locked") {
|
|
247
|
+
return "ERR \u2014 secure-store is locked. Run 'remnic engram secure-store unlock' before disable.";
|
|
248
|
+
}
|
|
249
|
+
const lines = [];
|
|
250
|
+
lines.push(report.ok ? "OK \u2014 secure-store disable complete." : "ERR \u2014 secure-store disable completed with file errors.");
|
|
251
|
+
lines.push(`decrypted: ${report.decrypted}`);
|
|
252
|
+
lines.push(`skipped: ${report.skipped}`);
|
|
253
|
+
lines.push(`errors: ${report.errors.length}`);
|
|
254
|
+
for (const entry of report.errors.slice(0, 10)) {
|
|
255
|
+
lines.push(`- ${entry.filePath}: ${entry.error}`);
|
|
256
|
+
}
|
|
257
|
+
if (report.errors.length > 10) {
|
|
258
|
+
lines.push(`- ... ${report.errors.length - 10} more error(s)`);
|
|
259
|
+
}
|
|
260
|
+
lines.push("header: kept");
|
|
261
|
+
return lines.join("\n");
|
|
262
|
+
}
|
|
212
263
|
function renderStatusReport(report) {
|
|
213
264
|
const lines = [];
|
|
214
265
|
lines.push("=== Remnic secure-store status ===");
|
|
@@ -389,12 +440,14 @@ export {
|
|
|
389
440
|
runSecureStoreUnlock,
|
|
390
441
|
runSecureStoreLock,
|
|
391
442
|
runSecureStoreMigrate,
|
|
443
|
+
runSecureStoreDisable,
|
|
392
444
|
runSecureStoreStatus,
|
|
393
445
|
MIN_PASSPHRASE_LENGTH,
|
|
394
446
|
renderInitReport,
|
|
395
447
|
renderUnlockReport,
|
|
396
448
|
renderLockReport,
|
|
397
449
|
renderMigrateReport,
|
|
450
|
+
renderDisableReport,
|
|
398
451
|
renderStatusReport,
|
|
399
452
|
createPassphraseReader
|
|
400
453
|
};
|