@peac/adapter-openclaw 0.10.12 → 0.10.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/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/keygen-cli.cjs.map +1 -1
- package/dist/keygen-cli.mjs.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,8 @@ function _interopNamespace(e) {
|
|
|
24
24
|
return Object.freeze(n);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
var crypto__namespace = /*#__PURE__*/_interopNamespace(crypto);
|
|
28
|
+
var captureCore__namespace = /*#__PURE__*/_interopNamespace(captureCore);
|
|
27
29
|
var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
|
28
30
|
var fs2__namespace = /*#__PURE__*/_interopNamespace(fs2);
|
|
29
31
|
|
|
@@ -509,10 +511,10 @@ function createJwkSigner(jwk, issuer, audience) {
|
|
|
509
511
|
if (!jwk.d) {
|
|
510
512
|
throw new Error("JWK must include private key (d parameter)");
|
|
511
513
|
}
|
|
512
|
-
const privateKeyBytes =
|
|
514
|
+
const privateKeyBytes = crypto__namespace.base64urlDecode(jwk.d);
|
|
513
515
|
return {
|
|
514
516
|
async sign(payload) {
|
|
515
|
-
return
|
|
517
|
+
return crypto__namespace.sign(payload, privateKeyBytes, kid);
|
|
516
518
|
},
|
|
517
519
|
getKeyId() {
|
|
518
520
|
return kid;
|
|
@@ -617,8 +619,8 @@ async function createPluginInstance(options) {
|
|
|
617
619
|
batchSize = 100,
|
|
618
620
|
onError
|
|
619
621
|
} = options;
|
|
620
|
-
const hasher = await
|
|
621
|
-
const session =
|
|
622
|
+
const hasher = await captureCore__namespace.createHasher();
|
|
623
|
+
const session = captureCore__namespace.createCaptureSession({
|
|
622
624
|
store,
|
|
623
625
|
dedupe,
|
|
624
626
|
hasher
|