@xiaolikt/ai-vault 0.9.0 → 0.10.0
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/Cargo.lock +122 -4
- package/README.md +364 -222
- package/README.zh.md +388 -0
- package/bin/ai-vault.cjs +6 -0
- package/crates/ai-vault/Cargo.toml +2 -3
- package/crates/ai-vault/src/audit.rs +4 -6
- package/crates/ai-vault/src/cli.rs +56 -41
- package/crates/ai-vault/src/crypto.rs +4 -11
- package/crates/ai-vault/src/dialog.rs +294 -9
- package/crates/ai-vault/src/i18n.rs +56 -0
- package/crates/ai-vault/src/main.rs +2 -0
- package/crates/ai-vault/src/paths.rs +30 -7
- package/crates/ai-vault/src/perms.rs +54 -0
- package/crates/ai-vault/src/sealed.rs +3 -4
- package/crates/ai-vault/src/session.rs +9 -21
- package/package.json +5 -3
- package/packages/pi-ai-vault/README.md +40 -45
- package/packages/pi-ai-vault/README.zh.md +84 -0
- package/packages/pi-ai-vault/package.json +5 -4
- package/packages/pi-ai-vault/src/bitwarden.ts +2 -1
- package/packages/pi-ai-vault/src/cli.ts +17 -7
- package/packages/pi-ai-vault/src/ente.ts +4 -3
- package/packages/pi-ai-vault/src/i18n.ts +31 -0
- package/packages/pi-ai-vault/src/index.ts +77 -76
- package/packages/pi-ai-vault/src/prompt.ts +3 -2
- package/test/cli.sh +6 -4
- package/test/npm.sh +14 -1
- package/tests/mocks/bin/zenity +7 -2
package/Cargo.lock
CHANGED
|
@@ -14,15 +14,15 @@ dependencies = [
|
|
|
14
14
|
|
|
15
15
|
[[package]]
|
|
16
16
|
name = "ai-vault"
|
|
17
|
-
version = "0.
|
|
17
|
+
version = "0.10.0"
|
|
18
18
|
dependencies = [
|
|
19
19
|
"base64",
|
|
20
20
|
"chacha20poly1305",
|
|
21
21
|
"chrono",
|
|
22
22
|
"clap",
|
|
23
|
+
"fs4",
|
|
23
24
|
"getrandom",
|
|
24
25
|
"hmac",
|
|
25
|
-
"libc",
|
|
26
26
|
"scrypt",
|
|
27
27
|
"serde",
|
|
28
28
|
"serde_json",
|
|
@@ -75,7 +75,7 @@ version = "1.1.5"
|
|
|
75
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
76
|
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
|
77
77
|
dependencies = [
|
|
78
|
-
"windows-sys",
|
|
78
|
+
"windows-sys 0.61.2",
|
|
79
79
|
]
|
|
80
80
|
|
|
81
81
|
[[package]]
|
|
@@ -86,7 +86,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
|
86
86
|
dependencies = [
|
|
87
87
|
"anstyle",
|
|
88
88
|
"once_cell_polyfill",
|
|
89
|
-
"windows-sys",
|
|
89
|
+
"windows-sys 0.61.2",
|
|
90
90
|
]
|
|
91
91
|
|
|
92
92
|
[[package]]
|
|
@@ -107,6 +107,12 @@ version = "1.8.3"
|
|
|
107
107
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
108
|
checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
|
|
109
109
|
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "bitflags"
|
|
112
|
+
version = "2.13.2"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
115
|
+
|
|
110
116
|
[[package]]
|
|
111
117
|
name = "block-buffer"
|
|
112
118
|
version = "0.10.4"
|
|
@@ -267,12 +273,32 @@ dependencies = [
|
|
|
267
273
|
"subtle",
|
|
268
274
|
]
|
|
269
275
|
|
|
276
|
+
[[package]]
|
|
277
|
+
name = "errno"
|
|
278
|
+
version = "0.3.15"
|
|
279
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
280
|
+
checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776"
|
|
281
|
+
dependencies = [
|
|
282
|
+
"libc",
|
|
283
|
+
"windows-sys 0.61.2",
|
|
284
|
+
]
|
|
285
|
+
|
|
270
286
|
[[package]]
|
|
271
287
|
name = "find-msvc-tools"
|
|
272
288
|
version = "0.1.16"
|
|
273
289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
290
|
checksum = "3e44f110d1777dc6559a51e7d45083945ded4f1bf3305494350f693b6d20b9c8"
|
|
275
291
|
|
|
292
|
+
[[package]]
|
|
293
|
+
name = "fs4"
|
|
294
|
+
version = "0.13.1"
|
|
295
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
+
checksum = "8640e34b88f7652208ce9e88b1a37a2ae95227d84abec377ccd3c5cfeb141ed4"
|
|
297
|
+
dependencies = [
|
|
298
|
+
"rustix",
|
|
299
|
+
"windows-sys 0.59.0",
|
|
300
|
+
]
|
|
301
|
+
|
|
276
302
|
[[package]]
|
|
277
303
|
name = "futures-core"
|
|
278
304
|
version = "0.3.34"
|
|
@@ -395,6 +421,12 @@ version = "0.2.191"
|
|
|
395
421
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
422
|
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
397
423
|
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "linux-raw-sys"
|
|
426
|
+
version = "0.12.1"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
429
|
+
|
|
398
430
|
[[package]]
|
|
399
431
|
name = "log"
|
|
400
432
|
version = "0.4.35"
|
|
@@ -493,6 +525,19 @@ dependencies = [
|
|
|
493
525
|
"getrandom",
|
|
494
526
|
]
|
|
495
527
|
|
|
528
|
+
[[package]]
|
|
529
|
+
name = "rustix"
|
|
530
|
+
version = "1.1.6"
|
|
531
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
532
|
+
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
|
533
|
+
dependencies = [
|
|
534
|
+
"bitflags",
|
|
535
|
+
"errno",
|
|
536
|
+
"libc",
|
|
537
|
+
"linux-raw-sys",
|
|
538
|
+
"windows-sys 0.61.2",
|
|
539
|
+
]
|
|
540
|
+
|
|
496
541
|
[[package]]
|
|
497
542
|
name = "rustversion"
|
|
498
543
|
version = "1.0.23"
|
|
@@ -763,6 +808,15 @@ dependencies = [
|
|
|
763
808
|
"windows-link",
|
|
764
809
|
]
|
|
765
810
|
|
|
811
|
+
[[package]]
|
|
812
|
+
name = "windows-sys"
|
|
813
|
+
version = "0.59.0"
|
|
814
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
815
|
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
|
816
|
+
dependencies = [
|
|
817
|
+
"windows-targets",
|
|
818
|
+
]
|
|
819
|
+
|
|
766
820
|
[[package]]
|
|
767
821
|
name = "windows-sys"
|
|
768
822
|
version = "0.61.2"
|
|
@@ -772,6 +826,70 @@ dependencies = [
|
|
|
772
826
|
"windows-link",
|
|
773
827
|
]
|
|
774
828
|
|
|
829
|
+
[[package]]
|
|
830
|
+
name = "windows-targets"
|
|
831
|
+
version = "0.52.6"
|
|
832
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
833
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
834
|
+
dependencies = [
|
|
835
|
+
"windows_aarch64_gnullvm",
|
|
836
|
+
"windows_aarch64_msvc",
|
|
837
|
+
"windows_i686_gnu",
|
|
838
|
+
"windows_i686_gnullvm",
|
|
839
|
+
"windows_i686_msvc",
|
|
840
|
+
"windows_x86_64_gnu",
|
|
841
|
+
"windows_x86_64_gnullvm",
|
|
842
|
+
"windows_x86_64_msvc",
|
|
843
|
+
]
|
|
844
|
+
|
|
845
|
+
[[package]]
|
|
846
|
+
name = "windows_aarch64_gnullvm"
|
|
847
|
+
version = "0.52.6"
|
|
848
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
849
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
850
|
+
|
|
851
|
+
[[package]]
|
|
852
|
+
name = "windows_aarch64_msvc"
|
|
853
|
+
version = "0.52.6"
|
|
854
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
855
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
856
|
+
|
|
857
|
+
[[package]]
|
|
858
|
+
name = "windows_i686_gnu"
|
|
859
|
+
version = "0.52.6"
|
|
860
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
861
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
862
|
+
|
|
863
|
+
[[package]]
|
|
864
|
+
name = "windows_i686_gnullvm"
|
|
865
|
+
version = "0.52.6"
|
|
866
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
867
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
868
|
+
|
|
869
|
+
[[package]]
|
|
870
|
+
name = "windows_i686_msvc"
|
|
871
|
+
version = "0.52.6"
|
|
872
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
873
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
874
|
+
|
|
875
|
+
[[package]]
|
|
876
|
+
name = "windows_x86_64_gnu"
|
|
877
|
+
version = "0.52.6"
|
|
878
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
879
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
880
|
+
|
|
881
|
+
[[package]]
|
|
882
|
+
name = "windows_x86_64_gnullvm"
|
|
883
|
+
version = "0.52.6"
|
|
884
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
885
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
886
|
+
|
|
887
|
+
[[package]]
|
|
888
|
+
name = "windows_x86_64_msvc"
|
|
889
|
+
version = "0.52.6"
|
|
890
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
891
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
892
|
+
|
|
775
893
|
[[package]]
|
|
776
894
|
name = "zeroize"
|
|
777
895
|
version = "1.9.2"
|