@ahqstore/cli 0.15.0 → 0.16.0-alpha.21

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/.build ADDED
@@ -0,0 +1 @@
1
+ 2026-02-20 17:12:00
package/Cargo.toml CHANGED
@@ -1,8 +1,8 @@
1
1
  [package]
2
2
  edition = "2021"
3
3
  name = "ahqstore_cli_rs"
4
- version = "0.15.0"
5
- description = "AHQ Store CLI"
4
+ version = "0.16.0-alpha.21"
5
+ description = "AHQ Store Developers' CLI"
6
6
  repository = "https://github.com/ahqstore/cli"
7
7
  homepage = "https://github.com/ahqstore/cli"
8
8
  license = "MIT"
@@ -10,8 +10,9 @@ readme = "README.md"
10
10
 
11
11
  [lib]
12
12
  name = "ahqstore_cli_rs"
13
- crate-type = ["cdylib"]
13
+ crate-type = ["rlib", "cdylib"]
14
14
  path = "src/lib.rs"
15
+ doc = false
15
16
 
16
17
  [[bin]]
17
18
  name = "ahqstore"
@@ -21,25 +22,43 @@ path = "src/main.rs"
21
22
  pkg-url = "{ repo }/releases/download/{ version }/{ name }-{ target }.zip"
22
23
  pkg-fmt = "zip"
23
24
 
25
+ [workspace.metadata.cross.build]
26
+ pre-build = ["apt-get update && apt-get --assume-yes install nasm clang"]
27
+
24
28
  [dependencies]
25
- inquire = { version = "0", features = ["editor"] }
26
- chalk_rs = "1"
27
- lazy_static = "1"
28
- serde = { version = "1", features = ["derive"] }
29
- serde_json = "1"
30
- ahqstore-types = { version = "3", features = ["apps_repo"] }
31
- reqwest = { version = "0.12", features = ["json", "blocking"] }
32
- sha2 = "0.10"
33
- image = { version = "0.25", default-features = false, features = [
34
- "rayon",
35
- "png",
29
+ serde = { version = "^1", features = ["derive"] }
30
+ serde_json = "^1"
31
+ ahqstore-types = { version = "^4", features = ["apps_repo"] }
32
+ image = { version = "^0.25", default-features = false, features = ["png"] }
33
+ rand = "^0.10"
34
+ semver = "^1"
35
+ sigstore = { version = "^0.13", default-features = false, features = [
36
+ "rekor",
37
+ "fulcio",
38
+ "rustls-tls",
39
+ "bundle",
40
+ ] }
41
+ aws-lc-rs = { version = "^1", features = ["prebuilt-nasm"] }
42
+ dialoguer = "^0.12"
43
+ indicatif = "^0.18"
44
+ console = "^0.16"
45
+ rustls = { version = "^0.23", default-features = false, features = [
46
+ "aws_lc_rs",
36
47
  ] }
37
- rand = "0.9"
38
- semver = "1.0.26"
48
+ reqwest = "^0.13"
49
+ tokio = { version = "^1", features = ["rt", "time", "macros"] }
50
+ strsim = "^0.11"
51
+ schemars = { version = "^1.2", optional = true }
39
52
 
40
- [target.'cfg(unix)'.dependencies]
41
- openssl-sys = { version = "0.9", features = ["vendored"] }
53
+ [target.'cfg(target_env="musl")'.dependencies]
54
+ mimalloc = "^0.1"
42
55
 
43
56
  [profile.release]
44
- lto = true
45
- strip = "symbols"
57
+ lto = "fat"
58
+ strip = true
59
+ opt-level = "z"
60
+ codegen-units = 1
61
+
62
+ [features]
63
+ schemars = ["dep:schemars"]
64
+ debug = []
package/README.md CHANGED
@@ -78,7 +78,7 @@ deno install -g npm:@ahqstore/cli
78
78
  ### Using JSR
79
79
 
80
80
  ```sh
81
- deno install -A -f -g -n ahqstore https://jsr.io/@ahqstore/cli/0.15.0/js/cli.js
81
+ deno install -A -f -g -n ahqstore https://jsr.io/@ahqstore/cli/0.16.0-alpha.21/js/cli.js
82
82
  ```
83
83
 
84
84
  ## Bun
@@ -111,4 +111,4 @@ dart pub global activate ahqstore_cli
111
111
 
112
112
  ```sh
113
113
  dotnet tool install --global AHQStoreCLI
114
- ```
114
+ ```
@@ -4,7 +4,9 @@ import 'dart:io';
4
4
  import 'package:ffi/ffi.dart';
5
5
  import 'package:http/http.dart';
6
6
 
7
- const String version = "0.15.0";
7
+ // IMP
8
+ const String version = "0.16.0-alpha.21";
9
+ // ENDIMP
8
10
 
9
11
  String getUserHomeDirectory() {
10
12
  if (Platform.isLinux || Platform.isMacOS) {
@@ -70,7 +72,7 @@ String getTargetTuple() {
70
72
  throw UnsupportedError("Unsupported ABI");
71
73
  }
72
74
 
73
- String getDylib() {
75
+ Future<String> getDylib() async {
74
76
  var (prefix, suffix) = getPrefixSuffix();
75
77
  String home = getUserHomeDirectory();
76
78
 
@@ -85,7 +87,7 @@ String getDylib() {
85
87
  File dylib = File(dlibPath);
86
88
 
87
89
  if (!dylib.existsSync()) {
88
- download(dlibPath);
90
+ await download(dlibPath);
89
91
  }
90
92
 
91
93
  return dlibPath;
@@ -119,7 +121,7 @@ typedef AddArg = Void Function(Pointer<Utf8> ptr);
119
121
  typedef Entrypoint = Void Function(Bool ci);
120
122
 
121
123
  Future<void> main(List<String> arguments) async {
122
- String dylib = getDylib();
124
+ String dylib = await getDylib();
123
125
 
124
126
  DynamicLibrary? library;
125
127
 
@@ -137,7 +139,7 @@ Future<void> main(List<String> arguments) async {
137
139
  throw Error();
138
140
  }
139
141
  } catch (e) {
140
- download(dylib);
142
+ await download(dylib);
141
143
  library = DynamicLibrary.open(dylib);
142
144
  }
143
145
 
@@ -163,4 +165,4 @@ Future<void> main(List<String> arguments) async {
163
165
  .asFunction<void Function(bool)>();
164
166
 
165
167
  start(String.fromEnvironment("CI", defaultValue: "false") == "true");
166
- }
168
+ }
package/dart/pubspec.lock CHANGED
@@ -1,30 +1,6 @@
1
1
  # Generated by pub
2
2
  # See https://dart.dev/tools/pub/glossary#lockfile
3
3
  packages:
4
- _fe_analyzer_shared:
5
- dependency: transitive
6
- description:
7
- name: _fe_analyzer_shared
8
- sha256: f0bb5d1648339c8308cc0b9838d8456b3cfe5c91f9dc1a735b4d003269e5da9a
9
- url: "https://pub.dev"
10
- source: hosted
11
- version: "88.0.0"
12
- analyzer:
13
- dependency: transitive
14
- description:
15
- name: analyzer
16
- sha256: "0b7b9c329d2879f8f05d6c05b32ee9ec025f39b077864bdb5ac9a7b63418a98f"
17
- url: "https://pub.dev"
18
- source: hosted
19
- version: "8.1.1"
20
- args:
21
- dependency: transitive
22
- description:
23
- name: args
24
- sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
25
- url: "https://pub.dev"
26
- source: hosted
27
- version: "2.7.0"
28
4
  async:
29
5
  dependency: transitive
30
6
  description:
@@ -33,22 +9,6 @@ packages:
33
9
  url: "https://pub.dev"
34
10
  source: hosted
35
11
  version: "2.13.0"
36
- boolean_selector:
37
- dependency: transitive
38
- description:
39
- name: boolean_selector
40
- sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
41
- url: "https://pub.dev"
42
- source: hosted
43
- version: "2.1.2"
44
- cli_config:
45
- dependency: transitive
46
- description:
47
- name: cli_config
48
- sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec
49
- url: "https://pub.dev"
50
- source: hosted
51
- version: "0.2.0"
52
12
  collection:
53
13
  dependency: transitive
54
14
  description:
@@ -57,78 +17,22 @@ packages:
57
17
  url: "https://pub.dev"
58
18
  source: hosted
59
19
  version: "1.19.1"
60
- convert:
61
- dependency: transitive
62
- description:
63
- name: convert
64
- sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
65
- url: "https://pub.dev"
66
- source: hosted
67
- version: "3.1.2"
68
- coverage:
69
- dependency: transitive
70
- description:
71
- name: coverage
72
- sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d"
73
- url: "https://pub.dev"
74
- source: hosted
75
- version: "1.15.0"
76
- crypto:
77
- dependency: transitive
78
- description:
79
- name: crypto
80
- sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
81
- url: "https://pub.dev"
82
- source: hosted
83
- version: "3.0.6"
84
20
  ffi:
85
21
  dependency: "direct main"
86
22
  description:
87
23
  name: ffi
88
- sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
89
- url: "https://pub.dev"
90
- source: hosted
91
- version: "2.1.4"
92
- file:
93
- dependency: transitive
94
- description:
95
- name: file
96
- sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
97
- url: "https://pub.dev"
98
- source: hosted
99
- version: "7.0.1"
100
- frontend_server_client:
101
- dependency: transitive
102
- description:
103
- name: frontend_server_client
104
- sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
24
+ sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"
105
25
  url: "https://pub.dev"
106
26
  source: hosted
107
- version: "4.0.0"
108
- glob:
109
- dependency: transitive
110
- description:
111
- name: glob
112
- sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
113
- url: "https://pub.dev"
114
- source: hosted
115
- version: "2.1.3"
27
+ version: "2.2.0"
116
28
  http:
117
29
  dependency: "direct main"
118
30
  description:
119
31
  name: http
120
- sha256: bb2ce4590bc2667c96f318d68cac1b5a7987ec819351d32b1c987239a815e007
32
+ sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"
121
33
  url: "https://pub.dev"
122
34
  source: hosted
123
- version: "1.5.0"
124
- http_multi_server:
125
- dependency: transitive
126
- description:
127
- name: http_multi_server
128
- sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8
129
- url: "https://pub.dev"
130
- source: hosted
131
- version: "3.2.2"
35
+ version: "1.6.0"
132
36
  http_parser:
133
37
  dependency: transitive
134
38
  description:
@@ -137,46 +41,6 @@ packages:
137
41
  url: "https://pub.dev"
138
42
  source: hosted
139
43
  version: "4.1.2"
140
- io:
141
- dependency: transitive
142
- description:
143
- name: io
144
- sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
145
- url: "https://pub.dev"
146
- source: hosted
147
- version: "1.0.5"
148
- js:
149
- dependency: transitive
150
- description:
151
- name: js
152
- sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
153
- url: "https://pub.dev"
154
- source: hosted
155
- version: "0.7.2"
156
- lints:
157
- dependency: "direct dev"
158
- description:
159
- name: lints
160
- sha256: a5e2b223cb7c9c8efdc663ef484fdd95bb243bff242ef5b13e26883547fce9a0
161
- url: "https://pub.dev"
162
- source: hosted
163
- version: "6.0.0"
164
- logging:
165
- dependency: transitive
166
- description:
167
- name: logging
168
- sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
169
- url: "https://pub.dev"
170
- source: hosted
171
- version: "1.3.0"
172
- matcher:
173
- dependency: transitive
174
- description:
175
- name: matcher
176
- sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
177
- url: "https://pub.dev"
178
- source: hosted
179
- version: "0.12.17"
180
44
  meta:
181
45
  dependency: transitive
182
46
  description:
@@ -185,30 +49,6 @@ packages:
185
49
  url: "https://pub.dev"
186
50
  source: hosted
187
51
  version: "1.16.0"
188
- mime:
189
- dependency: transitive
190
- description:
191
- name: mime
192
- sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
193
- url: "https://pub.dev"
194
- source: hosted
195
- version: "2.0.0"
196
- node_preamble:
197
- dependency: transitive
198
- description:
199
- name: node_preamble
200
- sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db"
201
- url: "https://pub.dev"
202
- source: hosted
203
- version: "2.0.2"
204
- package_config:
205
- dependency: transitive
206
- description:
207
- name: package_config
208
- sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc
209
- url: "https://pub.dev"
210
- source: hosted
211
- version: "2.2.0"
212
52
  path:
213
53
  dependency: transitive
214
54
  description:
@@ -217,70 +57,6 @@ packages:
217
57
  url: "https://pub.dev"
218
58
  source: hosted
219
59
  version: "1.9.1"
220
- pool:
221
- dependency: transitive
222
- description:
223
- name: pool
224
- sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a"
225
- url: "https://pub.dev"
226
- source: hosted
227
- version: "1.5.1"
228
- pub_semver:
229
- dependency: transitive
230
- description:
231
- name: pub_semver
232
- sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
233
- url: "https://pub.dev"
234
- source: hosted
235
- version: "2.2.0"
236
- shelf:
237
- dependency: transitive
238
- description:
239
- name: shelf
240
- sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12
241
- url: "https://pub.dev"
242
- source: hosted
243
- version: "1.4.2"
244
- shelf_packages_handler:
245
- dependency: transitive
246
- description:
247
- name: shelf_packages_handler
248
- sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e"
249
- url: "https://pub.dev"
250
- source: hosted
251
- version: "3.0.2"
252
- shelf_static:
253
- dependency: transitive
254
- description:
255
- name: shelf_static
256
- sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3
257
- url: "https://pub.dev"
258
- source: hosted
259
- version: "1.1.3"
260
- shelf_web_socket:
261
- dependency: transitive
262
- description:
263
- name: shelf_web_socket
264
- sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925"
265
- url: "https://pub.dev"
266
- source: hosted
267
- version: "3.0.0"
268
- source_map_stack_trace:
269
- dependency: transitive
270
- description:
271
- name: source_map_stack_trace
272
- sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b
273
- url: "https://pub.dev"
274
- source: hosted
275
- version: "2.1.2"
276
- source_maps:
277
- dependency: transitive
278
- description:
279
- name: source_maps
280
- sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812"
281
- url: "https://pub.dev"
282
- source: hosted
283
- version: "0.10.13"
284
60
  source_span:
285
61
  dependency: transitive
286
62
  description:
@@ -289,22 +65,6 @@ packages:
289
65
  url: "https://pub.dev"
290
66
  source: hosted
291
67
  version: "1.10.1"
292
- stack_trace:
293
- dependency: transitive
294
- description:
295
- name: stack_trace
296
- sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
297
- url: "https://pub.dev"
298
- source: hosted
299
- version: "1.12.1"
300
- stream_channel:
301
- dependency: transitive
302
- description:
303
- name: stream_channel
304
- sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
305
- url: "https://pub.dev"
306
- source: hosted
307
- version: "2.1.4"
308
68
  string_scanner:
309
69
  dependency: transitive
310
70
  description:
@@ -321,30 +81,6 @@ packages:
321
81
  url: "https://pub.dev"
322
82
  source: hosted
323
83
  version: "1.2.2"
324
- test:
325
- dependency: "direct dev"
326
- description:
327
- name: test
328
- sha256: "75906bf273541b676716d1ca7627a17e4c4070a3a16272b7a3dc7da3b9f3f6b7"
329
- url: "https://pub.dev"
330
- source: hosted
331
- version: "1.26.3"
332
- test_api:
333
- dependency: transitive
334
- description:
335
- name: test_api
336
- sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
337
- url: "https://pub.dev"
338
- source: hosted
339
- version: "0.7.7"
340
- test_core:
341
- dependency: transitive
342
- description:
343
- name: test_core
344
- sha256: "0cc24b5ff94b38d2ae73e1eb43cc302b77964fbf67abad1e296025b78deb53d0"
345
- url: "https://pub.dev"
346
- source: hosted
347
- version: "0.6.12"
348
84
  typed_data:
349
85
  dependency: transitive
350
86
  description:
@@ -353,22 +89,6 @@ packages:
353
89
  url: "https://pub.dev"
354
90
  source: hosted
355
91
  version: "1.4.0"
356
- vm_service:
357
- dependency: transitive
358
- description:
359
- name: vm_service
360
- sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
361
- url: "https://pub.dev"
362
- source: hosted
363
- version: "15.0.2"
364
- watcher:
365
- dependency: transitive
366
- description:
367
- name: watcher
368
- sha256: "5bf046f41320ac97a469d506261797f35254fa61c641741ef32dacda98b7d39c"
369
- url: "https://pub.dev"
370
- source: hosted
371
- version: "1.1.3"
372
92
  web:
373
93
  dependency: transitive
374
94
  description:
@@ -377,37 +97,5 @@ packages:
377
97
  url: "https://pub.dev"
378
98
  source: hosted
379
99
  version: "1.1.1"
380
- web_socket:
381
- dependency: transitive
382
- description:
383
- name: web_socket
384
- sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c"
385
- url: "https://pub.dev"
386
- source: hosted
387
- version: "1.0.1"
388
- web_socket_channel:
389
- dependency: transitive
390
- description:
391
- name: web_socket_channel
392
- sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8
393
- url: "https://pub.dev"
394
- source: hosted
395
- version: "3.0.3"
396
- webkit_inspection_protocol:
397
- dependency: transitive
398
- description:
399
- name: webkit_inspection_protocol
400
- sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572"
401
- url: "https://pub.dev"
402
- source: hosted
403
- version: "1.2.1"
404
- yaml:
405
- dependency: transitive
406
- description:
407
- name: yaml
408
- sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
409
- url: "https://pub.dev"
410
- source: hosted
411
- version: "3.1.3"
412
100
  sdks:
413
101
  dart: ">=3.9.2 <4.0.0"
package/dart/pubspec.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  name: ahqstore_cli
2
2
  description: An Official port of the original AHQ Store Rust CLI
3
- version: 0.15.0
3
+ version: 0.16.0-alpha.21
4
4
  repository: https://github.com/ahqstore/cli
5
5
  executables:
6
6
  ahqstore:
@@ -17,9 +17,5 @@ environment:
17
17
 
18
18
  # Add regular dependencies here.
19
19
  dependencies:
20
- ffi: ^2.1.4
21
- http: ^1.5.0
22
-
23
- dev_dependencies:
24
- lints: ^6.0.0
25
- test: ^1.25.6
20
+ ffi: ^2.2.0
21
+ http: ^1.6.0
package/jsr.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://jsr.io/schema/config-file.v1.json",
3
3
  "name": "@ahqstore/cli",
4
- "version": "0.15.0",
4
+ "version": "0.16.0-alpha.21",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": "./js/cli.js"
@@ -9,4 +9,4 @@
9
9
  "publish": {
10
10
  "include": ["./js/**/**", "package.json", "README.md"]
11
11
  }
12
- }
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahqstore/cli",
3
- "version": "0.15.0",
3
+ "version": "0.16.0-alpha.21",
4
4
  "description": "AHQ Store Official CLI, A port of the rust version to NodeJS",
5
5
  "keywords": [
6
6
  "cli",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "ansi-colors": "^4.1.3",
30
30
  "cli-progress": "^3.12.0",
31
- "koffi": "^2.14.0"
31
+ "koffi": "^2.15.1"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=22"
35
35
  },
36
36
  "devDependencies": {
37
- "jsr": "^0.13.5"
37
+ "jsr": "^0.14.3"
38
38
  }
39
- }
39
+ }
@@ -0,0 +1,23 @@
1
+ $newVersion = cargo metadata --no-deps --format-version 1 |
2
+ ConvertFrom-Json |
3
+ Select-Object -ExpandProperty packages |
4
+ Select-Object -First 1 -ExpandProperty version
5
+
6
+ $env:CARGO_VERSION = $newVersion
7
+
8
+ $ErrorActionPreference = "Stop"
9
+
10
+ ./zscripts/updateGolang.ps1
11
+
12
+ pwsh "./zscripts/updateJs.ps1"
13
+ pwsh "./zscripts/updatePyPi.ps1"
14
+ pwsh "./zscripts/updateDart.ps1"
15
+ pwsh "./zscripts/updateNuget.ps1"
16
+
17
+ (Get-Date).ToString('yyyy-MM-dd HH:mm:ss') > ".build"
18
+
19
+ # README Patch
20
+ $readme = Get-Content "./README.md" -Raw
21
+
22
+ $out = $readme -replace "https://jsr.io/@ahqstore/cli/([^/\s<]+)/js/cli.js", "https://jsr.io/@ahqstore/cli/$newVersion/js/cli.js"
23
+ $out > "./README.md"
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env -S cargo +nightly -Zscript
2
+ ---cargo
3
+ [package]
4
+ edition = "2024"
5
+
6
+ [dependencies]
7
+ ahqstore_cli_rs = { path = "..", features = ["schemars"] }
8
+ ---
9
+
10
+ fn main() {
11
+ println!("Hello World!");
12
+ }
@@ -0,0 +1,17 @@
1
+ $version = $env:CARGO_VERSION
2
+
3
+ # Update pubspec
4
+ $pubspec = Get-Content "./dart/pubspec.yaml" -Raw
5
+
6
+ $output = $pubspec -replace "version: ([^`"\s<]+)", "version: $version"
7
+
8
+ $pubspec > "./dart/pubspec.bak.yaml"
9
+ $output > "./dart/pubspec.yaml"
10
+
11
+ # Update the dart file
12
+ $dartbin = Get-Content "./dart/bin/ahqstore.dart" -Raw
13
+
14
+ $output = $dartbin -replace "const String version = `"([^`"\s<]+)`";", "const String version = `"$version`";"
15
+
16
+ $dartbin > "./dart/bin/ahqstore.bak.dart"
17
+ $output > "./dart/bin/ahqstore.dart"
@@ -0,0 +1,18 @@
1
+ # const version = "0.15.0"
2
+
3
+ $version = $env:CARGO_VERSION
4
+ $golang = Get-Content "./go/ahqstore.go" -Raw
5
+
6
+ $output = $golang -replace "const version = `"([^`"\s<]+)`"", "const version = `"$version`""
7
+
8
+ # if ($golang -ne $output) {
9
+ # $err = $PSStyle.Foreground.Red;
10
+
11
+ # Write-Error -Message "$err`ERROR$($PSStyle.Reset): Golang output is inconsistent";
12
+ # throw "Golang output is inconsistent"
13
+
14
+ # exit 1;
15
+ # }
16
+
17
+ $output > "./go/ahqstore.go"
18
+ $golang > "./go/ahqstore.bak.go"
@@ -0,0 +1,15 @@
1
+ $version = $env:CARGO_VERSION
2
+ $npmjs = Get-Content "./package.json" -Raw
3
+
4
+ $output = $npmjs -replace "`"version`": `"([^`"\s<]+)`"", "`"version`": `"$version`""
5
+
6
+ $npmjs > "package.bak.json"
7
+ $output > "package.json"
8
+
9
+ # JSR
10
+ $jsr = Get-Content "./jsr.json" -Raw
11
+
12
+ $output = $jsr -replace "`"version`": `"([^`"\s<]+)`"", "`"version`": `"$version`""
13
+
14
+ $jsr > "jsr.bak.json"
15
+ $output > "jsr.json"
@@ -0,0 +1,7 @@
1
+ $version = $env:CARGO_VERSION
2
+ $pypi = Get-Content "./dotnet/dotnet.csproj" -Raw
3
+
4
+ $output = $pypi -replace "<Version>([^`"\s<]+)</Version>", "<Version>$version</Version>"
5
+
6
+ $pypi > "./dotnet/dotnet.bak.csproj"
7
+ $output > "./dotnet/dotnet.csproj"
@@ -0,0 +1,7 @@
1
+ $version = $env:CARGO_VERSION
2
+ $pypi = Get-Content "./python/pyproject.toml" -Raw
3
+
4
+ $output = $pypi -replace "version = `"([^`"\s<]+)`"", "version = `"$version`""
5
+
6
+ $pypi > "./python/pyproject.bak.toml"
7
+ $output > "./python/pyproject.toml"
package/bundle DELETED
@@ -1,4 +0,0 @@
1
- mkdir dist
2
- cp ./target/release/ahqstore ./dist/ahqstore
3
- cp ./target/release/ahqstore ./dist/ahqstore_cli_rs
4
- zip -r ahqstore_cli_rs-$TARGET ./dist