@openfort/cli 0.1.15 → 0.1.16
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/cli.js +12 -7
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1008,7 +1008,7 @@ var contractItem = z3.object({
|
|
|
1008
1008
|
chainId: z3.number(),
|
|
1009
1009
|
address: z3.string(),
|
|
1010
1010
|
deleted: z3.boolean(),
|
|
1011
|
-
abi: z3.array(z3.
|
|
1011
|
+
abi: z3.array(z3.unknown()),
|
|
1012
1012
|
publicVerification: z3.boolean()
|
|
1013
1013
|
});
|
|
1014
1014
|
var contracts = Cli3.create("contracts", {
|
|
@@ -1421,7 +1421,7 @@ policies.command("get", {
|
|
|
1421
1421
|
accountId: z5.string().nullable(),
|
|
1422
1422
|
enabled: z5.boolean(),
|
|
1423
1423
|
priority: z5.number(),
|
|
1424
|
-
rules: z5.array(z5.
|
|
1424
|
+
rules: z5.array(z5.unknown())
|
|
1425
1425
|
}),
|
|
1426
1426
|
async run(c) {
|
|
1427
1427
|
const p = await getOpenfort().policies.get(c.args.id);
|
|
@@ -2026,7 +2026,7 @@ var sessionItem = z8.object({
|
|
|
2026
2026
|
isActive: z8.boolean(),
|
|
2027
2027
|
nextAction: z8.object({
|
|
2028
2028
|
type: z8.string(),
|
|
2029
|
-
payload: z8.
|
|
2029
|
+
payload: z8.unknown().optional()
|
|
2030
2030
|
}).optional()
|
|
2031
2031
|
});
|
|
2032
2032
|
var sessions = Cli8.create("sessions", {
|
|
@@ -2235,7 +2235,7 @@ var transactionIntentItem = z9.object({
|
|
|
2235
2235
|
gasFee: z9.string().optional(),
|
|
2236
2236
|
status: z9.number().optional(),
|
|
2237
2237
|
to: z9.string().optional(),
|
|
2238
|
-
error: z9.
|
|
2238
|
+
error: z9.unknown().optional()
|
|
2239
2239
|
}).optional(),
|
|
2240
2240
|
interactions: z9.array(z9.object({
|
|
2241
2241
|
to: z9.string().optional(),
|
|
@@ -2244,7 +2244,7 @@ var transactionIntentItem = z9.object({
|
|
|
2244
2244
|
})).optional(),
|
|
2245
2245
|
nextAction: z9.object({
|
|
2246
2246
|
type: z9.string(),
|
|
2247
|
-
payload: z9.
|
|
2247
|
+
payload: z9.unknown().optional()
|
|
2248
2248
|
}).optional()
|
|
2249
2249
|
});
|
|
2250
2250
|
var transactions = Cli9.create("transactions", {
|
|
@@ -2702,8 +2702,13 @@ function arrayBufferToBase64(buffer) {
|
|
|
2702
2702
|
function arrayBufferToBase64Url(buffer) {
|
|
2703
2703
|
return Buffer.from(buffer).toString("base64url");
|
|
2704
2704
|
}
|
|
2705
|
+
function toArrayBuffer(bytes) {
|
|
2706
|
+
const buffer = new ArrayBuffer(bytes.byteLength);
|
|
2707
|
+
new Uint8Array(buffer).set(bytes);
|
|
2708
|
+
return buffer;
|
|
2709
|
+
}
|
|
2705
2710
|
function stringToArrayBuffer(str) {
|
|
2706
|
-
return new TextEncoder().encode(str);
|
|
2711
|
+
return toArrayBuffer(new TextEncoder().encode(str));
|
|
2707
2712
|
}
|
|
2708
2713
|
function formatPEMBody(base64) {
|
|
2709
2714
|
return base64.match(/.{1,64}/g)?.join("\n") || base64;
|
|
@@ -2719,7 +2724,7 @@ function sortObjectKeys(obj) {
|
|
|
2719
2724
|
return sorted;
|
|
2720
2725
|
}
|
|
2721
2726
|
async function importPrivateKey(base64) {
|
|
2722
|
-
const binaryDer = Buffer.from(base64, "base64");
|
|
2727
|
+
const binaryDer = toArrayBuffer(Buffer.from(base64, "base64"));
|
|
2723
2728
|
return subtle.importKey(
|
|
2724
2729
|
"pkcs8",
|
|
2725
2730
|
binaryDer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfort/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Openfort CLI — manage wallets, policies, and transactions from the terminal.",
|
|
5
5
|
"author": "Openfort (https://www.openfort.io)",
|
|
6
6
|
"bugs": "https://github.com/openfort-xyz/cli/issues",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"main": "./dist/cli.js",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@openfort/openfort-node": "^0.10.
|
|
23
|
-
"incur": "^0.
|
|
22
|
+
"@openfort/openfort-node": "^0.10.5",
|
|
23
|
+
"incur": "^0.4.10",
|
|
24
24
|
"open": "^11.0.0",
|
|
25
|
-
"viem": "^2.
|
|
25
|
+
"viem": "^2.53.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@changesets/changelog-github": "^0.5.1",
|