@agentcred-ai/cli 0.1.1 → 0.1.2
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 +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -157,7 +157,8 @@ async function verifyCommand(args) {
|
|
|
157
157
|
throw new Error("Invalid key: --key flag must be provided with a file path");
|
|
158
158
|
}
|
|
159
159
|
const keyData = await fs2.readFile(values.key, "utf-8");
|
|
160
|
-
const
|
|
160
|
+
const jwkData = JSON.parse(keyData);
|
|
161
|
+
const { d: _privateKey, ...publicJWK } = jwkData;
|
|
161
162
|
const publicKey = await importJWK(publicJWK, "EdDSA");
|
|
162
163
|
const result = await verifyOffline(envelope, publicKey);
|
|
163
164
|
if (result.verified) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentcred-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI tool for AgentCred developer workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"jose": "^6.1.3",
|
|
22
|
-
"@agentcred-ai/sdk": "0.1.
|
|
22
|
+
"@agentcred-ai/sdk": "0.1.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^25.1.0",
|