@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 CHANGED
@@ -823,9 +823,9 @@ dependencies = [
823
823
 
824
824
  [[package]]
825
825
  name = "darling"
826
- version = "0.23.0"
826
+ version = "0.20.11"
827
827
  source = "registry+https://github.com/rust-lang/crates.io-index"
828
- checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
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.23.0"
836
+ version = "0.20.11"
837
837
  source = "registry+https://github.com/rust-lang/crates.io-index"
838
- checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
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.23.0"
850
+ version = "0.20.11"
850
851
  source = "registry+https://github.com/rust-lang/crates.io-index"
851
- checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
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.5.8"
871
+ version = "0.3.11"
871
872
  source = "registry+https://github.com/rust-lang/crates.io-index"
872
- checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
873
+ checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
873
874
  dependencies = [
874
875
  "powerfmt",
875
- "serde_core",
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.11"
1527
+ version = "0.3.10"
1527
1528
  source = "registry+https://github.com/rust-lang/crates.io-index"
1528
- checksum = "357b7205c6cd18dd2c86ed312d1e70add149aea98e7ef72b9fdf0270e555c11d"
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.2.0"
1756
+ version = "0.1.0"
1756
1757
  source = "registry+https://github.com/rust-lang/crates.io-index"
1757
- checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050"
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.47"
2826
+ version = "0.3.36"
2826
2827
  source = "registry+https://github.com/rust-lang/crates.io-index"
2827
- checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"
2828
+ checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
2828
2829
  dependencies = [
2829
2830
  "deranged",
2830
2831
  "itoa",
2831
2832
  "num-conv",
2832
2833
  "powerfmt",
2833
- "serde_core",
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.8"
2841
+ version = "0.1.2"
2841
2842
  source = "registry+https://github.com/rust-lang/crates.io-index"
2842
- checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"
2843
+ checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
2843
2844
 
2844
2845
  [[package]]
2845
2846
  name = "time-macros"
2846
- version = "0.2.27"
2847
+ version = "0.2.18"
2847
2848
  source = "registry+https://github.com/rust-lang/crates.io-index"
2848
- checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@wlfi-agent/cli",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "description": "Single-entrypoint WLFI agent CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,52 +1,53 @@
1
-
2
- > @wlfi-agent/cache@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache
3
- > tsup
4
-
5
- CLI Building entry: src/index.ts, src/client/index.ts, src/errors/index.ts, src/service/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache/tsup.config.ts
9
- CLI Target: node20
10
- CLI Cleaning output folder
11
- ESM Build start
12
- CJS Build start
13
- ESM dist/index.js 566.00 B
14
- ESM dist/errors/index.js 181.00 B
15
- ESM dist/chunk-4U63TZTQ.js 1.06 KB
16
- ESM dist/service/index.js 337.00 B
17
- ESM dist/chunk-QNK6GOTI.js 20.72 KB
18
- ESM dist/chunk-VXVMPG3W.js 1.27 KB
19
- ESM dist/client/index.js 201.00 B
20
- ESM dist/index.js.map 71.00 B
21
- ESM dist/service/index.js.map 71.00 B
22
- ESM dist/errors/index.js.map 71.00 B
23
- ESM dist/chunk-QNK6GOTI.js.map 41.66 KB
24
- ESM dist/chunk-4U63TZTQ.js.map 2.10 KB
25
- ESM dist/chunk-VXVMPG3W.js.map 2.50 KB
26
- ESM dist/client/index.js.map 71.00 B
27
- ESM ⚡️ Build success in 78ms
28
- CJS dist/errors/index.cjs 340.00 B
29
- CJS dist/client/index.cjs 360.00 B
30
- CJS dist/service/index.cjs 527.00 B
31
- CJS dist/index.cjs 940.00 B
32
- CJS dist/chunk-UYNEHZHB.cjs 2.60 KB
33
- CJS dist/chunk-2QFWMUXT.cjs 1.16 KB
34
- CJS dist/chunk-QF4XKEIA.cjs 23.83 KB
35
- CJS dist/service/index.cjs.map 324.00 B
36
- CJS dist/index.cjs.map 379.00 B
37
- CJS dist/errors/index.cjs.map 286.00 B
38
- CJS dist/client/index.cjs.map 286.00 B
39
- CJS dist/chunk-UYNEHZHB.cjs.map 2.61 KB
40
- CJS dist/chunk-2QFWMUXT.cjs.map 2.74 KB
41
- CJS dist/chunk-QF4XKEIA.cjs.map 48.88 KB
42
- CJS ⚡️ Build success in 78ms
43
- DTS Build start
44
- DTS ⚡️ Build success in 1228ms
45
- DTS dist/index.d.ts 761.00 B
46
- DTS dist/client/index.d.ts 527.00 B
47
- DTS dist/errors/index.d.ts 833.00 B
48
- DTS dist/service/index.d.ts 6.77 KB
49
- DTS dist/index.d.cts 764.00 B
50
- DTS dist/client/index.d.cts 527.00 B
51
- DTS dist/errors/index.d.cts 833.00 B
52
- DTS dist/service/index.d.cts 6.77 KB
1
+
2
+ 
3
+ > @wlfi-agent/cache@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache
4
+ > tsup
5
+
6
+ CLI Building entry: src/index.ts, src/client/index.ts, src/errors/index.ts, src/service/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/cache/tsup.config.ts
10
+ CLI Target: node20
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ CJS Build start
14
+ ESM dist/errors/index.js 181.00 B
15
+ ESM dist/client/index.js 201.00 B
16
+ ESM dist/service/index.js 337.00 B
17
+ ESM dist/chunk-QNK6GOTI.js 20.72 KB
18
+ ESM dist/chunk-4U63TZTQ.js 1.06 KB
19
+ ESM dist/index.js 566.00 B
20
+ ESM dist/chunk-VXVMPG3W.js 1.27 KB
21
+ ESM dist/client/index.js.map 71.00 B
22
+ ESM dist/errors/index.js.map 71.00 B
23
+ ESM dist/service/index.js.map 71.00 B
24
+ ESM dist/chunk-QNK6GOTI.js.map 41.66 KB
25
+ ESM dist/chunk-4U63TZTQ.js.map 2.10 KB
26
+ ESM dist/chunk-VXVMPG3W.js.map 2.50 KB
27
+ ESM dist/index.js.map 71.00 B
28
+ ESM ⚡️ Build success in 78ms
29
+ CJS dist/client/index.cjs 360.00 B
30
+ CJS dist/index.cjs 940.00 B
31
+ CJS dist/errors/index.cjs 340.00 B
32
+ CJS dist/service/index.cjs 527.00 B
33
+ CJS dist/chunk-UYNEHZHB.cjs 2.60 KB
34
+ CJS dist/chunk-QF4XKEIA.cjs 23.83 KB
35
+ CJS dist/chunk-2QFWMUXT.cjs 1.16 KB
36
+ CJS dist/client/index.cjs.map 286.00 B
37
+ CJS dist/index.cjs.map 379.00 B
38
+ CJS dist/errors/index.cjs.map 286.00 B
39
+ CJS dist/service/index.cjs.map 324.00 B
40
+ CJS dist/chunk-UYNEHZHB.cjs.map 2.61 KB
41
+ CJS dist/chunk-2QFWMUXT.cjs.map 2.74 KB
42
+ CJS dist/chunk-QF4XKEIA.cjs.map 48.88 KB
43
+ CJS ⚡️ 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
- > @wlfi-agent/config@0.1.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/config
3
- > tsup src/index.ts --format esm --dts --clean
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
9
- CLI Target: node20
10
- CLI Cleaning output folder
11
- ESM Build start
12
- ESM dist/index.cjs 36.27 KB
13
- ESM dist/index.cjs.map 66.36 KB
14
- ESM ⚡️ Build success in 10ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 437ms
17
- DTS dist/index.d.ts 5.23 KB
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
+ CLI Building entry: src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
10
+ CLI Target: node20
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ ESM dist/index.cjs 36.27 KB
14
+ ESM dist/index.cjs.map 66.36 KB
15
+ ESM ⚡️ 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
- > @wlfi-agent/rpc@0.1.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/rpc
3
- > tsup src/index.ts --format esm --dts --clean
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
9
- CLI Target: node20
10
- CLI Cleaning output folder
11
- ESM Build start
12
- ESM dist/ccip-OWJLAW55.cjs 344.00 B
13
- ESM dist/secp256k1-WCNM675D.cjs 331.00 B
14
- ESM dist/index.cjs 248.00 KB
15
- ESM dist/chunk-CDO2GWRD.cjs 11.91 KB
16
- ESM dist/_esm-BCLXDO2R.cjs 122.75 KB
17
- ESM dist/chunk-QGTNTFJ7.cjs 69.15 KB
18
- ESM dist/chunk-TZDTAHWR.cjs 1.89 KB
19
- ESM dist/chunk-APQIFZ3B.cjs 212.06 KB
20
- ESM dist/ccip-OWJLAW55.cjs.map 71.00 B
21
- ESM dist/secp256k1-WCNM675D.cjs.map 71.00 B
22
- ESM dist/chunk-CDO2GWRD.cjs.map 42.64 KB
23
- ESM dist/chunk-TZDTAHWR.cjs.map 71.00 B
24
- ESM dist/chunk-QGTNTFJ7.cjs.map 194.07 KB
25
- ESM dist/_esm-BCLXDO2R.cjs.map 196.57 KB
26
- ESM dist/chunk-APQIFZ3B.cjs.map 544.22 KB
27
- ESM dist/index.cjs.map 1011.42 KB
28
- ESM ⚡️ Build success in 116ms
29
- DTS Build start
30
- DTS ⚡️ Build success in 1668ms
31
- DTS dist/index.d.ts 201.02 KB
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
+ CLI Building entry: src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/tsup.config.ts
10
+ CLI Target: node20
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ DTS Build start
14
+ ESM dist/secp256k1-WCNM675D.cjs 331.00 B
15
+ ESM dist/ccip-OWJLAW55.cjs 344.00 B
16
+ ESM dist/chunk-CDO2GWRD.cjs 11.91 KB
17
+ ESM dist/chunk-QGTNTFJ7.cjs 69.15 KB
18
+ ESM dist/index.cjs 248.00 KB
19
+ ESM dist/_esm-BCLXDO2R.cjs 122.75 KB
20
+ ESM dist/chunk-TZDTAHWR.cjs 1.89 KB
21
+ ESM dist/chunk-APQIFZ3B.cjs 212.06 KB
22
+ ESM dist/ccip-OWJLAW55.cjs.map 71.00 B
23
+ ESM dist/secp256k1-WCNM675D.cjs.map 71.00 B
24
+ ESM dist/chunk-CDO2GWRD.cjs.map 42.64 KB
25
+ ESM dist/chunk-QGTNTFJ7.cjs.map 194.07 KB
26
+ ESM dist/chunk-TZDTAHWR.cjs.map 71.00 B
27
+ ESM dist/index.cjs.map 1011.42 KB
28
+ ESM dist/chunk-APQIFZ3B.cjs.map 544.22 KB
29
+ ESM dist/_esm-BCLXDO2R.cjs.map 196.57 KB
30
+ ESM ⚡️ 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
- > @wlfi-agent/ui@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui
3
- > tsup
4
-
5
- CLI 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
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.1
8
- CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui/tsup.config.ts
9
- CLI Target: es2022
10
- CLI Cleaning output folder
11
- ESM Build start
12
- ESM dist/tailwind.js 1.59 KB
13
- ESM dist/utils/cn.js 92.00 B
14
- ESM dist/components/label.js 327.00 B
15
- ESM dist/components/card.js 1.22 KB
16
- ESM dist/components/button.js 1.43 KB
17
- ESM dist/components/input.js 840.00 B
18
- ESM dist/components/badge.js 971.00 B
19
- ESM dist/components/textarea.js 785.00 B
20
- ESM dist/components/separator.js 349.00 B
21
- ESM dist/chunk-MOAFBKSA.js 209.00 B
22
- ESM dist/utils/cn.js.map 71.00 B
23
- ESM dist/tailwind.js.map 2.39 KB
24
- ESM dist/components/label.js.map 502.00 B
25
- ESM dist/components/card.js.map 2.10 KB
26
- ESM dist/components/input.js.map 1.12 KB
27
- ESM dist/components/button.js.map 2.14 KB
28
- ESM dist/components/textarea.js.map 1.05 KB
29
- ESM dist/components/badge.js.map 1.50 KB
30
- ESM dist/chunk-MOAFBKSA.js.map 368.00 B
31
- ESM dist/components/separator.js.map 519.00 B
32
- ESM ⚡️ Build success in 31ms
33
- DTS Build start
34
- DTS ⚡️ Build success in 688ms
35
- DTS dist/tailwind.d.ts 1.49 KB
36
- DTS dist/components/badge.d.ts 612.00 B
37
- DTS dist/components/button.d.ts 715.00 B
38
- DTS dist/components/card.d.ts 791.00 B
39
- DTS dist/components/input.d.ts 191.00 B
40
- DTS dist/components/label.d.ts 165.00 B
41
- DTS dist/components/separator.d.ts 166.00 B
42
- DTS dist/components/textarea.d.ts 206.00 B
43
- DTS dist/utils/cn.d.ts 106.00 B
1
+
2
+ 
3
+ > @wlfi-agent/ui@0.0.0 build /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui
4
+ > tsup
5
+
6
+ CLI 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
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.5.1
9
+ CLI Using tsup config: /Users/hanzhi/Documents/WLFI/wlfi-agent-sdk/packages/ui/tsup.config.ts
10
+ CLI Target: es2022
11
+ CLI Cleaning output folder
12
+ ESM Build start
13
+ ESM dist/utils/cn.js 92.00 B
14
+ ESM dist/components/badge.js 971.00 B
15
+ ESM dist/tailwind.js 1.59 KB
16
+ ESM dist/components/button.js 1.43 KB
17
+ ESM dist/components/input.js 840.00 B
18
+ ESM dist/components/label.js 327.00 B
19
+ ESM dist/components/textarea.js 785.00 B
20
+ ESM dist/components/card.js 1.22 KB
21
+ ESM dist/components/separator.js 349.00 B
22
+ ESM dist/chunk-MOAFBKSA.js 209.00 B
23
+ ESM dist/tailwind.js.map 2.39 KB
24
+ ESM dist/utils/cn.js.map 71.00 B
25
+ ESM dist/components/badge.js.map 1.50 KB
26
+ ESM dist/components/input.js.map 1.12 KB
27
+ ESM dist/components/button.js.map 2.14 KB
28
+ ESM dist/components/separator.js.map 519.00 B
29
+ ESM dist/components/label.js.map 502.00 B
30
+ ESM dist/components/textarea.js.map 1.05 KB
31
+ ESM dist/components/card.js.map 2.10 KB
32
+ ESM dist/chunk-MOAFBKSA.js.map 368.00 B
33
+ ESM ⚡️ 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" | "success" | "warning" | "destructive" | null | undefined;
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" | "destructive" | "outline" | "ghost" | null | undefined;
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',