@wlfi-agent/cli 1.4.16 → 1.4.17
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 +21 -20
- package/Cargo.toml +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/packages/cache/.turbo/turbo-build.log +53 -52
- package/packages/config/.turbo/turbo-build.log +18 -17
- package/packages/rpc/.turbo/turbo-build.log +32 -31
- package/packages/ui/.turbo/turbo-build.log +44 -43
- package/packages/ui/dist/components/badge.d.ts +1 -1
- package/packages/ui/dist/components/button.d.ts +1 -1
- package/scripts/install-rust-binaries.mjs +65 -0
package/Cargo.lock
CHANGED
|
@@ -823,9 +823,9 @@ dependencies = [
|
|
|
823
823
|
|
|
824
824
|
[[package]]
|
|
825
825
|
name = "darling"
|
|
826
|
-
version = "0.
|
|
826
|
+
version = "0.20.11"
|
|
827
827
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
828
|
-
checksum = "
|
|
828
|
+
checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
|
|
829
829
|
dependencies = [
|
|
830
830
|
"darling_core",
|
|
831
831
|
"darling_macro",
|
|
@@ -833,10 +833,11 @@ dependencies = [
|
|
|
833
833
|
|
|
834
834
|
[[package]]
|
|
835
835
|
name = "darling_core"
|
|
836
|
-
version = "0.
|
|
836
|
+
version = "0.20.11"
|
|
837
837
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
838
|
-
checksum = "
|
|
838
|
+
checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
|
|
839
839
|
dependencies = [
|
|
840
|
+
"fnv",
|
|
840
841
|
"ident_case",
|
|
841
842
|
"proc-macro2",
|
|
842
843
|
"quote",
|
|
@@ -846,9 +847,9 @@ dependencies = [
|
|
|
846
847
|
|
|
847
848
|
[[package]]
|
|
848
849
|
name = "darling_macro"
|
|
849
|
-
version = "0.
|
|
850
|
+
version = "0.20.11"
|
|
850
851
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
851
|
-
checksum = "
|
|
852
|
+
checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
|
|
852
853
|
dependencies = [
|
|
853
854
|
"darling_core",
|
|
854
855
|
"quote",
|
|
@@ -867,12 +868,12 @@ dependencies = [
|
|
|
867
868
|
|
|
868
869
|
[[package]]
|
|
869
870
|
name = "deranged"
|
|
870
|
-
version = "0.
|
|
871
|
+
version = "0.3.11"
|
|
871
872
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
872
|
-
checksum = "
|
|
873
|
+
checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
|
|
873
874
|
dependencies = [
|
|
874
875
|
"powerfmt",
|
|
875
|
-
"
|
|
876
|
+
"serde",
|
|
876
877
|
]
|
|
877
878
|
|
|
878
879
|
[[package]]
|
|
@@ -1523,9 +1524,9 @@ dependencies = [
|
|
|
1523
1524
|
|
|
1524
1525
|
[[package]]
|
|
1525
1526
|
name = "instability"
|
|
1526
|
-
version = "0.3.
|
|
1527
|
+
version = "0.3.10"
|
|
1527
1528
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1528
|
-
checksum = "
|
|
1529
|
+
checksum = "6778b0196eefee7df739db78758e5cf9b37412268bfa5650bfeed028aed20d9c"
|
|
1529
1530
|
dependencies = [
|
|
1530
1531
|
"darling",
|
|
1531
1532
|
"indoc",
|
|
@@ -1752,9 +1753,9 @@ dependencies = [
|
|
|
1752
1753
|
|
|
1753
1754
|
[[package]]
|
|
1754
1755
|
name = "num-conv"
|
|
1755
|
-
version = "0.
|
|
1756
|
+
version = "0.1.0"
|
|
1756
1757
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1757
|
-
checksum = "
|
|
1758
|
+
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
|
|
1758
1759
|
|
|
1759
1760
|
[[package]]
|
|
1760
1761
|
name = "num-integer"
|
|
@@ -2822,30 +2823,30 @@ dependencies = [
|
|
|
2822
2823
|
|
|
2823
2824
|
[[package]]
|
|
2824
2825
|
name = "time"
|
|
2825
|
-
version = "0.3.
|
|
2826
|
+
version = "0.3.36"
|
|
2826
2827
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2827
|
-
checksum = "
|
|
2828
|
+
checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
|
|
2828
2829
|
dependencies = [
|
|
2829
2830
|
"deranged",
|
|
2830
2831
|
"itoa",
|
|
2831
2832
|
"num-conv",
|
|
2832
2833
|
"powerfmt",
|
|
2833
|
-
"
|
|
2834
|
+
"serde",
|
|
2834
2835
|
"time-core",
|
|
2835
2836
|
"time-macros",
|
|
2836
2837
|
]
|
|
2837
2838
|
|
|
2838
2839
|
[[package]]
|
|
2839
2840
|
name = "time-core"
|
|
2840
|
-
version = "0.1.
|
|
2841
|
+
version = "0.1.2"
|
|
2841
2842
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2842
|
-
checksum = "
|
|
2843
|
+
checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
|
|
2843
2844
|
|
|
2844
2845
|
[[package]]
|
|
2845
2846
|
name = "time-macros"
|
|
2846
|
-
version = "0.2.
|
|
2847
|
+
version = "0.2.18"
|
|
2847
2848
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2848
|
-
checksum = "
|
|
2849
|
+
checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
|
|
2849
2850
|
dependencies = [
|
|
2850
2851
|
"num-conv",
|
|
2851
2852
|
"time-core",
|
package/Cargo.toml
CHANGED
|
@@ -43,7 +43,7 @@ serde = { version = "1", features = ["derive"] }
|
|
|
43
43
|
serde_json = "1"
|
|
44
44
|
sha2 = "0.10"
|
|
45
45
|
thiserror = "2"
|
|
46
|
-
time = { version = "0.3", features = ["macros", "serde", "formatting", "parsing"] }
|
|
46
|
+
time = { version = "=0.3.36", features = ["macros", "serde", "formatting", "parsing"] }
|
|
47
47
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "net", "io-util", "time", "signal"] }
|
|
48
48
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
49
49
|
zeroize = "1"
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ User-facing examples below avoid shell env vars on purpose. Prefer prompts, conf
|
|
|
46
46
|
### Prerequisites
|
|
47
47
|
|
|
48
48
|
- macOS
|
|
49
|
-
- Rust toolchain on `PATH` (`cargo`, `rustc`)
|
|
49
|
+
- Rust toolchain on `PATH` (`cargo`, `rustc`) with Rust `1.87.0` or newer
|
|
50
50
|
- Xcode Command Line Tools (`xcode-select --install`)
|
|
51
51
|
|
|
52
52
|
### Install from npm
|
package/package.json
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
DTS
|
|
45
|
-
DTS
|
|
46
|
-
DTS dist/
|
|
47
|
-
DTS dist/
|
|
48
|
-
DTS dist/
|
|
49
|
-
DTS dist/index.d.
|
|
50
|
-
DTS dist/
|
|
51
|
-
DTS dist/
|
|
52
|
-
DTS dist/
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @wlfi-agent/cache@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache
|
|
4
|
+
> tsup
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts, src/client/index.ts, src/errors/index.ts, src/service/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: node20
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[34mCJS[39m Build start
|
|
14
|
+
[32mESM[39m [1mdist/errors/index.js [22m[32m181.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/client/index.js [22m[32m201.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/service/index.js [22m[32m337.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/chunk-QNK6GOTI.js [22m[32m20.72 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/chunk-4U63TZTQ.js [22m[32m1.06 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.js [22m[32m566.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/chunk-VXVMPG3W.js [22m[32m1.27 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/client/index.js.map [22m[32m71.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist/errors/index.js.map [22m[32m71.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/service/index.js.map [22m[32m71.00 B[39m
|
|
24
|
+
[32mESM[39m [1mdist/chunk-QNK6GOTI.js.map [22m[32m41.66 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-4U63TZTQ.js.map [22m[32m2.10 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/chunk-VXVMPG3W.js.map [22m[32m2.50 KB[39m
|
|
27
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m71.00 B[39m
|
|
28
|
+
[32mESM[39m ⚡️ Build success in 78ms
|
|
29
|
+
[32mCJS[39m [1mdist/client/index.cjs [22m[32m360.00 B[39m
|
|
30
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m940.00 B[39m
|
|
31
|
+
[32mCJS[39m [1mdist/errors/index.cjs [22m[32m340.00 B[39m
|
|
32
|
+
[32mCJS[39m [1mdist/service/index.cjs [22m[32m527.00 B[39m
|
|
33
|
+
[32mCJS[39m [1mdist/chunk-UYNEHZHB.cjs [22m[32m2.60 KB[39m
|
|
34
|
+
[32mCJS[39m [1mdist/chunk-QF4XKEIA.cjs [22m[32m23.83 KB[39m
|
|
35
|
+
[32mCJS[39m [1mdist/chunk-2QFWMUXT.cjs [22m[32m1.16 KB[39m
|
|
36
|
+
[32mCJS[39m [1mdist/client/index.cjs.map [22m[32m286.00 B[39m
|
|
37
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m379.00 B[39m
|
|
38
|
+
[32mCJS[39m [1mdist/errors/index.cjs.map [22m[32m286.00 B[39m
|
|
39
|
+
[32mCJS[39m [1mdist/service/index.cjs.map [22m[32m324.00 B[39m
|
|
40
|
+
[32mCJS[39m [1mdist/chunk-UYNEHZHB.cjs.map [22m[32m2.61 KB[39m
|
|
41
|
+
[32mCJS[39m [1mdist/chunk-2QFWMUXT.cjs.map [22m[32m2.74 KB[39m
|
|
42
|
+
[32mCJS[39m [1mdist/chunk-QF4XKEIA.cjs.map [22m[32m48.88 KB[39m
|
|
43
|
+
[32mCJS[39m ⚡️ Build success in 88ms
|
|
44
|
+
DTS Build start
|
|
45
|
+
DTS ⚡️ Build success in 1236ms
|
|
46
|
+
DTS dist/index.d.ts 761.00 B
|
|
47
|
+
DTS dist/client/index.d.ts 527.00 B
|
|
48
|
+
DTS dist/errors/index.d.ts 833.00 B
|
|
49
|
+
DTS dist/service/index.d.ts 6.77 KB
|
|
50
|
+
DTS dist/index.d.cts 764.00 B
|
|
51
|
+
DTS dist/client/index.d.cts 527.00 B
|
|
52
|
+
DTS dist/errors/index.d.cts 833.00 B
|
|
53
|
+
DTS dist/service/index.d.cts 6.77 KB
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
DTS
|
|
17
|
-
DTS
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @wlfi-agent/config@0.1.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/config
|
|
4
|
+
> tsup src/index.ts --format esm --dts --clean
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: node20
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mESM[39m [1mdist/index.cjs [22m[32m36.27 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.cjs.map [22m[32m66.36 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 22ms
|
|
16
|
+
DTS Build start
|
|
17
|
+
DTS ⚡️ Build success in 400ms
|
|
18
|
+
DTS dist/index.d.ts 5.23 KB
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
DTS
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @wlfi-agent/rpc@0.1.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/rpc
|
|
4
|
+
> tsup src/index.ts --format esm --dts --clean
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: node20
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
DTS Build start
|
|
14
|
+
[32mESM[39m [1mdist/secp256k1-WCNM675D.cjs [22m[32m331.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/ccip-OWJLAW55.cjs [22m[32m344.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/chunk-CDO2GWRD.cjs [22m[32m11.91 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/chunk-QGTNTFJ7.cjs [22m[32m69.15 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/index.cjs [22m[32m248.00 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/_esm-BCLXDO2R.cjs [22m[32m122.75 KB[39m
|
|
20
|
+
[32mESM[39m [1mdist/chunk-TZDTAHWR.cjs [22m[32m1.89 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/chunk-APQIFZ3B.cjs [22m[32m212.06 KB[39m
|
|
22
|
+
[32mESM[39m [1mdist/ccip-OWJLAW55.cjs.map [22m[32m71.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/secp256k1-WCNM675D.cjs.map [22m[32m71.00 B[39m
|
|
24
|
+
[32mESM[39m [1mdist/chunk-CDO2GWRD.cjs.map [22m[32m42.64 KB[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-QGTNTFJ7.cjs.map [22m[32m194.07 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/chunk-TZDTAHWR.cjs.map [22m[32m71.00 B[39m
|
|
27
|
+
[32mESM[39m [1mdist/index.cjs.map [22m[32m1011.42 KB[39m
|
|
28
|
+
[32mESM[39m [1mdist/chunk-APQIFZ3B.cjs.map [22m[32m544.22 KB[39m
|
|
29
|
+
[32mESM[39m [1mdist/_esm-BCLXDO2R.cjs.map [22m[32m196.57 KB[39m
|
|
30
|
+
[32mESM[39m ⚡️ Build success in 190ms
|
|
31
|
+
DTS ⚡️ Build success in 1656ms
|
|
32
|
+
DTS dist/index.d.ts 201.02 KB
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
DTS
|
|
35
|
-
DTS
|
|
36
|
-
DTS dist/
|
|
37
|
-
DTS dist/components/
|
|
38
|
-
DTS dist/components/
|
|
39
|
-
DTS dist/components/
|
|
40
|
-
DTS dist/components/
|
|
41
|
-
DTS dist/components/
|
|
42
|
-
DTS dist/components/
|
|
43
|
-
DTS dist/
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @wlfi-agent/ui@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui
|
|
4
|
+
> tsup
|
|
5
|
+
|
|
6
|
+
[34mCLI[39m Building entry: src/tailwind.ts, src/components/badge.tsx, src/components/button.tsx, src/components/card.tsx, src/components/input.tsx, src/components/label.tsx, src/components/separator.tsx, src/components/textarea.tsx, src/utils/cn.ts
|
|
7
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
+
[34mCLI[39m tsup v8.5.1
|
|
9
|
+
[34mCLI[39m Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui/tsup.config.ts
|
|
10
|
+
[34mCLI[39m Target: es2022
|
|
11
|
+
[34mCLI[39m Cleaning output folder
|
|
12
|
+
[34mESM[39m Build start
|
|
13
|
+
[32mESM[39m [1mdist/utils/cn.js [22m[32m92.00 B[39m
|
|
14
|
+
[32mESM[39m [1mdist/components/badge.js [22m[32m971.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/tailwind.js [22m[32m1.59 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/components/button.js [22m[32m1.43 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/components/input.js [22m[32m840.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/components/label.js [22m[32m327.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/components/textarea.js [22m[32m785.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/components/card.js [22m[32m1.22 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/components/separator.js [22m[32m349.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist/chunk-MOAFBKSA.js [22m[32m209.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/tailwind.js.map [22m[32m2.39 KB[39m
|
|
24
|
+
[32mESM[39m [1mdist/utils/cn.js.map [22m[32m71.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/components/badge.js.map [22m[32m1.50 KB[39m
|
|
26
|
+
[32mESM[39m [1mdist/components/input.js.map [22m[32m1.12 KB[39m
|
|
27
|
+
[32mESM[39m [1mdist/components/button.js.map [22m[32m2.14 KB[39m
|
|
28
|
+
[32mESM[39m [1mdist/components/separator.js.map [22m[32m519.00 B[39m
|
|
29
|
+
[32mESM[39m [1mdist/components/label.js.map [22m[32m502.00 B[39m
|
|
30
|
+
[32mESM[39m [1mdist/components/textarea.js.map [22m[32m1.05 KB[39m
|
|
31
|
+
[32mESM[39m [1mdist/components/card.js.map [22m[32m2.10 KB[39m
|
|
32
|
+
[32mESM[39m [1mdist/chunk-MOAFBKSA.js.map [22m[32m368.00 B[39m
|
|
33
|
+
[32mESM[39m ⚡️ Build success in 13ms
|
|
34
|
+
DTS Build start
|
|
35
|
+
DTS ⚡️ Build success in 792ms
|
|
36
|
+
DTS dist/tailwind.d.ts 1.49 KB
|
|
37
|
+
DTS dist/components/badge.d.ts 612.00 B
|
|
38
|
+
DTS dist/components/button.d.ts 715.00 B
|
|
39
|
+
DTS dist/components/card.d.ts 791.00 B
|
|
40
|
+
DTS dist/components/input.d.ts 191.00 B
|
|
41
|
+
DTS dist/components/label.d.ts 165.00 B
|
|
42
|
+
DTS dist/components/separator.d.ts 166.00 B
|
|
43
|
+
DTS dist/components/textarea.d.ts 206.00 B
|
|
44
|
+
DTS dist/utils/cn.d.ts 106.00 B
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "secondary" | "
|
|
6
|
+
variant?: "default" | "secondary" | "destructive" | "success" | "warning" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "secondary" | "
|
|
6
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -6,6 +6,11 @@ import { pathToFileURL } from 'node:url';
|
|
|
6
6
|
|
|
7
7
|
const repoRoot = new URL('..', import.meta.url).pathname;
|
|
8
8
|
const extension = process.platform === 'win32' ? '.exe' : '';
|
|
9
|
+
const MIN_RUST_VERSION = {
|
|
10
|
+
major: 1,
|
|
11
|
+
minor: 87,
|
|
12
|
+
patch: 0,
|
|
13
|
+
};
|
|
9
14
|
const rustBins = [
|
|
10
15
|
'wlfi-agent-daemon',
|
|
11
16
|
'wlfi-agent-admin',
|
|
@@ -22,6 +27,32 @@ function decodeOutput(value) {
|
|
|
22
27
|
return value.toString().trim();
|
|
23
28
|
}
|
|
24
29
|
|
|
30
|
+
function formatMinimumRustVersion() {
|
|
31
|
+
return `${MIN_RUST_VERSION.major}.${MIN_RUST_VERSION.minor}.${MIN_RUST_VERSION.patch}`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function parseRustVersion(output) {
|
|
35
|
+
const match = output.match(/\b(\d+)\.(\d+)\.(\d+)(?:[-+][^\s]+)?\b/);
|
|
36
|
+
if (!match) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
major: Number(match[1]),
|
|
41
|
+
minor: Number(match[2]),
|
|
42
|
+
patch: Number(match[3]),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function compareVersions(left, right) {
|
|
47
|
+
if (left.major !== right.major) {
|
|
48
|
+
return left.major - right.major;
|
|
49
|
+
}
|
|
50
|
+
if (left.minor !== right.minor) {
|
|
51
|
+
return left.minor - right.minor;
|
|
52
|
+
}
|
|
53
|
+
return left.patch - right.patch;
|
|
54
|
+
}
|
|
55
|
+
|
|
25
56
|
function runCheck(spawnSyncImpl, command, args, options = {}) {
|
|
26
57
|
return spawnSyncImpl(command, args, {
|
|
27
58
|
cwd: repoRoot,
|
|
@@ -73,6 +104,38 @@ function checkCargoAvailable(spawnSyncImpl) {
|
|
|
73
104
|
throw new Error(lines.join('\n'));
|
|
74
105
|
}
|
|
75
106
|
|
|
107
|
+
function checkRustcVersion(spawnSyncImpl) {
|
|
108
|
+
const result = runCheck(spawnSyncImpl, 'rustc', ['--version']);
|
|
109
|
+
if (result.status !== 0) {
|
|
110
|
+
const detail = decodeOutput(result.stderr) || decodeOutput(result.stdout);
|
|
111
|
+
const lines = [
|
|
112
|
+
'[wlfi-agent] Rust compiler was not found on PATH.',
|
|
113
|
+
`[wlfi-agent] Install Rust ${formatMinimumRustVersion()} or newer from https://rustup.rs.`,
|
|
114
|
+
];
|
|
115
|
+
if (detail) {
|
|
116
|
+
lines.push(`[wlfi-agent] rustc check output: ${detail}`);
|
|
117
|
+
}
|
|
118
|
+
lines.push(`[wlfi-agent] ${RERUN_INSTRUCTIONS}`);
|
|
119
|
+
throw new Error(lines.join('\n'));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const versionOutput = decodeOutput(result.stdout) || decodeOutput(result.stderr);
|
|
123
|
+
const parsedVersion = parseRustVersion(versionOutput);
|
|
124
|
+
if (!parsedVersion) {
|
|
125
|
+
throw new Error(
|
|
126
|
+
`[wlfi-agent] Unable to determine the installed Rust compiler version from: ${versionOutput || '<empty output>'}`,
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (compareVersions(parsedVersion, MIN_RUST_VERSION) < 0) {
|
|
131
|
+
throw new Error(
|
|
132
|
+
`[wlfi-agent] Rust ${formatMinimumRustVersion()} or newer is required; found ${versionOutput}.\n` +
|
|
133
|
+
`[wlfi-agent] Update Rust with \`rustup update\`.\n` +
|
|
134
|
+
`[wlfi-agent] ${RERUN_INSTRUCTIONS}`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
76
139
|
function checkMacOsToolchainAvailable(spawnSyncImpl, platform) {
|
|
77
140
|
if (platform !== 'darwin') {
|
|
78
141
|
return;
|
|
@@ -100,6 +163,7 @@ export function verifyRustInstallPrerequisites({
|
|
|
100
163
|
platform = process.platform,
|
|
101
164
|
} = {}) {
|
|
102
165
|
checkCargoAvailable(spawnSyncImpl);
|
|
166
|
+
checkRustcVersion(spawnSyncImpl);
|
|
103
167
|
checkMacOsToolchainAvailable(spawnSyncImpl, platform);
|
|
104
168
|
}
|
|
105
169
|
|
|
@@ -122,6 +186,7 @@ export function installRustBinaries({
|
|
|
122
186
|
'cargo',
|
|
123
187
|
[
|
|
124
188
|
'build',
|
|
189
|
+
'--locked',
|
|
125
190
|
'--release',
|
|
126
191
|
'-p',
|
|
127
192
|
'wlfi-agent-daemon',
|