centy 0.2.6 → 0.2.8

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.
Files changed (69) hide show
  1. package/bin/dev.js +0 -0
  2. package/dist/commands/show.d.ts +16 -0
  3. package/dist/commands/show.d.ts.map +1 -0
  4. package/dist/commands/show.js +109 -0
  5. package/dist/commands/show.js.map +1 -0
  6. package/dist/commands/start.d.ts.map +1 -1
  7. package/dist/commands/start.js +4 -3
  8. package/dist/commands/start.js.map +1 -1
  9. package/dist/hooks/prerun.d.ts.map +1 -1
  10. package/dist/hooks/prerun.js +0 -2
  11. package/dist/hooks/prerun.js.map +1 -1
  12. package/oclif.manifest.json +203 -291
  13. package/package.json +27 -19
  14. package/dist/commands/install/all.d.ts +0 -11
  15. package/dist/commands/install/all.d.ts.map +0 -1
  16. package/dist/commands/install/all.js +0 -40
  17. package/dist/commands/install/all.js.map +0 -1
  18. package/dist/commands/install/daemon.d.ts +0 -11
  19. package/dist/commands/install/daemon.d.ts.map +0 -1
  20. package/dist/commands/install/daemon.js +0 -47
  21. package/dist/commands/install/daemon.js.map +0 -1
  22. package/dist/commands/install/tui.d.ts +0 -11
  23. package/dist/commands/install/tui.d.ts.map +0 -1
  24. package/dist/commands/install/tui.js +0 -41
  25. package/dist/commands/install/tui.js.map +0 -1
  26. package/dist/lib/install-binary/download.d.ts +0 -12
  27. package/dist/lib/install-binary/download.d.ts.map +0 -1
  28. package/dist/lib/install-binary/download.js +0 -181
  29. package/dist/lib/install-binary/download.js.map +0 -1
  30. package/dist/lib/install-binary/get-install-dir.d.ts +0 -2
  31. package/dist/lib/install-binary/get-install-dir.d.ts.map +0 -1
  32. package/dist/lib/install-binary/get-install-dir.js +0 -7
  33. package/dist/lib/install-binary/get-install-dir.js.map +0 -1
  34. package/dist/lib/install-binary/get-installed-version.d.ts +0 -2
  35. package/dist/lib/install-binary/get-installed-version.d.ts.map +0 -1
  36. package/dist/lib/install-binary/get-installed-version.js +0 -27
  37. package/dist/lib/install-binary/get-installed-version.js.map +0 -1
  38. package/dist/lib/install-binary/github-release.d.ts +0 -22
  39. package/dist/lib/install-binary/github-release.d.ts.map +0 -1
  40. package/dist/lib/install-binary/github-release.js +0 -70
  41. package/dist/lib/install-binary/github-release.js.map +0 -1
  42. package/dist/lib/install-binary/index.d.ts +0 -5
  43. package/dist/lib/install-binary/index.d.ts.map +0 -1
  44. package/dist/lib/install-binary/index.js +0 -4
  45. package/dist/lib/install-binary/index.js.map +0 -1
  46. package/dist/lib/install-binary/install-all.d.ts +0 -3
  47. package/dist/lib/install-binary/install-all.d.ts.map +0 -1
  48. package/dist/lib/install-binary/install-all.js +0 -21
  49. package/dist/lib/install-binary/install-all.js.map +0 -1
  50. package/dist/lib/install-binary/install-daemon.d.ts +0 -3
  51. package/dist/lib/install-binary/install-daemon.d.ts.map +0 -1
  52. package/dist/lib/install-binary/install-daemon.js +0 -71
  53. package/dist/lib/install-binary/install-daemon.js.map +0 -1
  54. package/dist/lib/install-binary/install-tui.d.ts +0 -3
  55. package/dist/lib/install-binary/install-tui.d.ts.map +0 -1
  56. package/dist/lib/install-binary/install-tui.js +0 -31
  57. package/dist/lib/install-binary/install-tui.js.map +0 -1
  58. package/dist/lib/install-binary/platform.d.ts +0 -5
  59. package/dist/lib/install-binary/platform.d.ts.map +0 -1
  60. package/dist/lib/install-binary/platform.js +0 -66
  61. package/dist/lib/install-binary/platform.js.map +0 -1
  62. package/dist/lib/install-binary/prerelease.d.ts +0 -22
  63. package/dist/lib/install-binary/prerelease.d.ts.map +0 -1
  64. package/dist/lib/install-binary/prerelease.js +0 -82
  65. package/dist/lib/install-binary/prerelease.js.map +0 -1
  66. package/dist/lib/install-binary/types.d.ts +0 -11
  67. package/dist/lib/install-binary/types.d.ts.map +0 -1
  68. package/dist/lib/install-binary/types.js +0 -2
  69. package/dist/lib/install-binary/types.js.map +0 -1
@@ -374,6 +374,43 @@
374
374
  "restart.js"
375
375
  ]
376
376
  },
377
+ "show": {
378
+ "aliases": [],
379
+ "args": {
380
+ "uuid": {
381
+ "description": "Entity UUID to look up",
382
+ "name": "uuid",
383
+ "required": true
384
+ }
385
+ },
386
+ "description": "Show an entity by UUID, searching across all tracked projects",
387
+ "examples": [
388
+ "<%= config.bin %> show 9f38fb44-55df-424d-a61f-a3432cfa83d2",
389
+ "<%= config.bin %> show 9f38fb44-55df-424d-a61f-a3432cfa83d2 --json"
390
+ ],
391
+ "flags": {
392
+ "json": {
393
+ "description": "Output as JSON",
394
+ "name": "json",
395
+ "allowNo": false,
396
+ "type": "boolean"
397
+ }
398
+ },
399
+ "hasDynamicHelp": false,
400
+ "hiddenAliases": [],
401
+ "id": "show",
402
+ "pluginAlias": "centy",
403
+ "pluginName": "centy",
404
+ "pluginType": "core",
405
+ "strict": true,
406
+ "enableJsonFlag": false,
407
+ "isESM": true,
408
+ "relativePath": [
409
+ "dist",
410
+ "commands",
411
+ "show.js"
412
+ ]
413
+ },
377
414
  "shutdown": {
378
415
  "aliases": [],
379
416
  "args": {},
@@ -563,6 +600,51 @@
563
600
  "issue.js"
564
601
  ]
565
602
  },
603
+ "daemon:autostart": {
604
+ "aliases": [],
605
+ "args": {},
606
+ "description": "Configure daemon to start automatically on boot",
607
+ "examples": [
608
+ "<%= config.bin %> daemon autostart",
609
+ "<%= config.bin %> daemon autostart --enable",
610
+ "<%= config.bin %> daemon autostart --disable"
611
+ ],
612
+ "flags": {
613
+ "enable": {
614
+ "description": "Enable autostart on boot",
615
+ "exclusive": [
616
+ "disable"
617
+ ],
618
+ "name": "enable",
619
+ "allowNo": false,
620
+ "type": "boolean"
621
+ },
622
+ "disable": {
623
+ "description": "Disable autostart on boot",
624
+ "exclusive": [
625
+ "enable"
626
+ ],
627
+ "name": "disable",
628
+ "allowNo": false,
629
+ "type": "boolean"
630
+ }
631
+ },
632
+ "hasDynamicHelp": false,
633
+ "hiddenAliases": [],
634
+ "id": "daemon:autostart",
635
+ "pluginAlias": "centy",
636
+ "pluginName": "centy",
637
+ "pluginType": "core",
638
+ "strict": true,
639
+ "enableJsonFlag": false,
640
+ "isESM": true,
641
+ "relativePath": [
642
+ "dist",
643
+ "commands",
644
+ "daemon",
645
+ "autostart.js"
646
+ ]
647
+ },
566
648
  "create:doc": {
567
649
  "aliases": [],
568
650
  "args": {},
@@ -949,6 +1031,126 @@
949
1031
  "user.js"
950
1032
  ]
951
1033
  },
1034
+ "duplicate:doc": {
1035
+ "aliases": [],
1036
+ "args": {
1037
+ "slug": {
1038
+ "description": "Doc slug",
1039
+ "name": "slug",
1040
+ "required": true
1041
+ }
1042
+ },
1043
+ "description": "Duplicate a doc (same project or different project)",
1044
+ "examples": [
1045
+ "<%= config.bin %> duplicate doc my-doc",
1046
+ "<%= config.bin %> duplicate doc readme --new-slug readme-v2",
1047
+ "<%= config.bin %> duplicate doc api-guide --to /path/to/other/project",
1048
+ "<%= config.bin %> duplicate doc spec --to ../other --new-slug spec-copy --title \"Spec Copy\""
1049
+ ],
1050
+ "flags": {
1051
+ "to": {
1052
+ "char": "t",
1053
+ "description": "Target project path (defaults to same project if not specified)",
1054
+ "name": "to",
1055
+ "hasDynamicHelp": false,
1056
+ "multiple": false,
1057
+ "type": "option"
1058
+ },
1059
+ "new-slug": {
1060
+ "char": "s",
1061
+ "description": "Slug for the duplicate (defaults to \"{slug}-copy\")",
1062
+ "name": "new-slug",
1063
+ "hasDynamicHelp": false,
1064
+ "multiple": false,
1065
+ "type": "option"
1066
+ },
1067
+ "title": {
1068
+ "description": "Title for the duplicate (defaults to \"Copy of {original}\")",
1069
+ "name": "title",
1070
+ "hasDynamicHelp": false,
1071
+ "multiple": false,
1072
+ "type": "option"
1073
+ },
1074
+ "project": {
1075
+ "description": "Project name or path (defaults to current directory)",
1076
+ "name": "project",
1077
+ "hasDynamicHelp": false,
1078
+ "multiple": false,
1079
+ "type": "option"
1080
+ }
1081
+ },
1082
+ "hasDynamicHelp": false,
1083
+ "hiddenAliases": [],
1084
+ "id": "duplicate:doc",
1085
+ "pluginAlias": "centy",
1086
+ "pluginName": "centy",
1087
+ "pluginType": "core",
1088
+ "strict": true,
1089
+ "enableJsonFlag": false,
1090
+ "isESM": true,
1091
+ "relativePath": [
1092
+ "dist",
1093
+ "commands",
1094
+ "duplicate",
1095
+ "doc.js"
1096
+ ]
1097
+ },
1098
+ "duplicate:issue": {
1099
+ "aliases": [],
1100
+ "args": {
1101
+ "id": {
1102
+ "description": "Issue ID (UUID) or display number",
1103
+ "name": "id",
1104
+ "required": true
1105
+ }
1106
+ },
1107
+ "description": "Duplicate an issue (same project or different project)",
1108
+ "examples": [
1109
+ "<%= config.bin %> duplicate issue 1",
1110
+ "<%= config.bin %> duplicate issue 1 --title \"New feature branch\"",
1111
+ "<%= config.bin %> duplicate issue abc123-uuid --to /path/to/other/project",
1112
+ "<%= config.bin %> duplicate issue 5 --to ../other --title \"Copy for testing\""
1113
+ ],
1114
+ "flags": {
1115
+ "to": {
1116
+ "char": "t",
1117
+ "description": "Target project path (defaults to same project if not specified)",
1118
+ "name": "to",
1119
+ "hasDynamicHelp": false,
1120
+ "multiple": false,
1121
+ "type": "option"
1122
+ },
1123
+ "title": {
1124
+ "description": "Title for the duplicate (defaults to \"Copy of {original}\")",
1125
+ "name": "title",
1126
+ "hasDynamicHelp": false,
1127
+ "multiple": false,
1128
+ "type": "option"
1129
+ },
1130
+ "project": {
1131
+ "description": "Project name or path (defaults to current directory)",
1132
+ "name": "project",
1133
+ "hasDynamicHelp": false,
1134
+ "multiple": false,
1135
+ "type": "option"
1136
+ }
1137
+ },
1138
+ "hasDynamicHelp": false,
1139
+ "hiddenAliases": [],
1140
+ "id": "duplicate:issue",
1141
+ "pluginAlias": "centy",
1142
+ "pluginName": "centy",
1143
+ "pluginType": "core",
1144
+ "strict": true,
1145
+ "enableJsonFlag": false,
1146
+ "isESM": true,
1147
+ "relativePath": [
1148
+ "dist",
1149
+ "commands",
1150
+ "duplicate",
1151
+ "issue.js"
1152
+ ]
1153
+ },
952
1154
  "delete:asset": {
953
1155
  "aliases": [],
954
1156
  "args": {
@@ -1243,171 +1445,6 @@
1243
1445
  "user.js"
1244
1446
  ]
1245
1447
  },
1246
- "daemon:autostart": {
1247
- "aliases": [],
1248
- "args": {},
1249
- "description": "Configure daemon to start automatically on boot",
1250
- "examples": [
1251
- "<%= config.bin %> daemon autostart",
1252
- "<%= config.bin %> daemon autostart --enable",
1253
- "<%= config.bin %> daemon autostart --disable"
1254
- ],
1255
- "flags": {
1256
- "enable": {
1257
- "description": "Enable autostart on boot",
1258
- "exclusive": [
1259
- "disable"
1260
- ],
1261
- "name": "enable",
1262
- "allowNo": false,
1263
- "type": "boolean"
1264
- },
1265
- "disable": {
1266
- "description": "Disable autostart on boot",
1267
- "exclusive": [
1268
- "enable"
1269
- ],
1270
- "name": "disable",
1271
- "allowNo": false,
1272
- "type": "boolean"
1273
- }
1274
- },
1275
- "hasDynamicHelp": false,
1276
- "hiddenAliases": [],
1277
- "id": "daemon:autostart",
1278
- "pluginAlias": "centy",
1279
- "pluginName": "centy",
1280
- "pluginType": "core",
1281
- "strict": true,
1282
- "enableJsonFlag": false,
1283
- "isESM": true,
1284
- "relativePath": [
1285
- "dist",
1286
- "commands",
1287
- "daemon",
1288
- "autostart.js"
1289
- ]
1290
- },
1291
- "duplicate:doc": {
1292
- "aliases": [],
1293
- "args": {
1294
- "slug": {
1295
- "description": "Doc slug",
1296
- "name": "slug",
1297
- "required": true
1298
- }
1299
- },
1300
- "description": "Duplicate a doc (same project or different project)",
1301
- "examples": [
1302
- "<%= config.bin %> duplicate doc my-doc",
1303
- "<%= config.bin %> duplicate doc readme --new-slug readme-v2",
1304
- "<%= config.bin %> duplicate doc api-guide --to /path/to/other/project",
1305
- "<%= config.bin %> duplicate doc spec --to ../other --new-slug spec-copy --title \"Spec Copy\""
1306
- ],
1307
- "flags": {
1308
- "to": {
1309
- "char": "t",
1310
- "description": "Target project path (defaults to same project if not specified)",
1311
- "name": "to",
1312
- "hasDynamicHelp": false,
1313
- "multiple": false,
1314
- "type": "option"
1315
- },
1316
- "new-slug": {
1317
- "char": "s",
1318
- "description": "Slug for the duplicate (defaults to \"{slug}-copy\")",
1319
- "name": "new-slug",
1320
- "hasDynamicHelp": false,
1321
- "multiple": false,
1322
- "type": "option"
1323
- },
1324
- "title": {
1325
- "description": "Title for the duplicate (defaults to \"Copy of {original}\")",
1326
- "name": "title",
1327
- "hasDynamicHelp": false,
1328
- "multiple": false,
1329
- "type": "option"
1330
- },
1331
- "project": {
1332
- "description": "Project name or path (defaults to current directory)",
1333
- "name": "project",
1334
- "hasDynamicHelp": false,
1335
- "multiple": false,
1336
- "type": "option"
1337
- }
1338
- },
1339
- "hasDynamicHelp": false,
1340
- "hiddenAliases": [],
1341
- "id": "duplicate:doc",
1342
- "pluginAlias": "centy",
1343
- "pluginName": "centy",
1344
- "pluginType": "core",
1345
- "strict": true,
1346
- "enableJsonFlag": false,
1347
- "isESM": true,
1348
- "relativePath": [
1349
- "dist",
1350
- "commands",
1351
- "duplicate",
1352
- "doc.js"
1353
- ]
1354
- },
1355
- "duplicate:issue": {
1356
- "aliases": [],
1357
- "args": {
1358
- "id": {
1359
- "description": "Issue ID (UUID) or display number",
1360
- "name": "id",
1361
- "required": true
1362
- }
1363
- },
1364
- "description": "Duplicate an issue (same project or different project)",
1365
- "examples": [
1366
- "<%= config.bin %> duplicate issue 1",
1367
- "<%= config.bin %> duplicate issue 1 --title \"New feature branch\"",
1368
- "<%= config.bin %> duplicate issue abc123-uuid --to /path/to/other/project",
1369
- "<%= config.bin %> duplicate issue 5 --to ../other --title \"Copy for testing\""
1370
- ],
1371
- "flags": {
1372
- "to": {
1373
- "char": "t",
1374
- "description": "Target project path (defaults to same project if not specified)",
1375
- "name": "to",
1376
- "hasDynamicHelp": false,
1377
- "multiple": false,
1378
- "type": "option"
1379
- },
1380
- "title": {
1381
- "description": "Title for the duplicate (defaults to \"Copy of {original}\")",
1382
- "name": "title",
1383
- "hasDynamicHelp": false,
1384
- "multiple": false,
1385
- "type": "option"
1386
- },
1387
- "project": {
1388
- "description": "Project name or path (defaults to current directory)",
1389
- "name": "project",
1390
- "hasDynamicHelp": false,
1391
- "multiple": false,
1392
- "type": "option"
1393
- }
1394
- },
1395
- "hasDynamicHelp": false,
1396
- "hiddenAliases": [],
1397
- "id": "duplicate:issue",
1398
- "pluginAlias": "centy",
1399
- "pluginName": "centy",
1400
- "pluginType": "core",
1401
- "strict": true,
1402
- "enableJsonFlag": false,
1403
- "isESM": true,
1404
- "relativePath": [
1405
- "dist",
1406
- "commands",
1407
- "duplicate",
1408
- "issue.js"
1409
- ]
1410
- },
1411
1448
  "get:asset": {
1412
1449
  "aliases": [
1413
1450
  "show:asset"
@@ -2285,131 +2322,6 @@
2285
2322
  "issue.js"
2286
2323
  ]
2287
2324
  },
2288
- "install:all": {
2289
- "aliases": [],
2290
- "args": {},
2291
- "description": "Download and install all centy binaries (daemon and tui)",
2292
- "examples": [
2293
- "<%= config.bin %> install all",
2294
- "<%= config.bin %> install all --prerelease"
2295
- ],
2296
- "flags": {
2297
- "version": {
2298
- "char": "v",
2299
- "description": "Specific version to install (default: latest)",
2300
- "name": "version",
2301
- "hasDynamicHelp": false,
2302
- "multiple": false,
2303
- "type": "option"
2304
- },
2305
- "prerelease": {
2306
- "char": "p",
2307
- "description": "Include prerelease versions when fetching latest",
2308
- "name": "prerelease",
2309
- "allowNo": false,
2310
- "type": "boolean"
2311
- }
2312
- },
2313
- "hasDynamicHelp": false,
2314
- "hiddenAliases": [],
2315
- "id": "install:all",
2316
- "pluginAlias": "centy",
2317
- "pluginName": "centy",
2318
- "pluginType": "core",
2319
- "strict": true,
2320
- "enableJsonFlag": false,
2321
- "isESM": true,
2322
- "relativePath": [
2323
- "dist",
2324
- "commands",
2325
- "install",
2326
- "all.js"
2327
- ]
2328
- },
2329
- "install:daemon": {
2330
- "aliases": [],
2331
- "args": {},
2332
- "description": "Download and install the centy daemon binary",
2333
- "examples": [
2334
- "<%= config.bin %> install daemon",
2335
- "<%= config.bin %> install daemon --prerelease",
2336
- "<%= config.bin %> install daemon --version 0.2.0-alpha.9"
2337
- ],
2338
- "flags": {
2339
- "version": {
2340
- "char": "v",
2341
- "description": "Specific version to install (default: latest)",
2342
- "name": "version",
2343
- "hasDynamicHelp": false,
2344
- "multiple": false,
2345
- "type": "option"
2346
- },
2347
- "prerelease": {
2348
- "char": "p",
2349
- "description": "Include prerelease versions when fetching latest",
2350
- "name": "prerelease",
2351
- "allowNo": false,
2352
- "type": "boolean"
2353
- }
2354
- },
2355
- "hasDynamicHelp": false,
2356
- "hiddenAliases": [],
2357
- "id": "install:daemon",
2358
- "pluginAlias": "centy",
2359
- "pluginName": "centy",
2360
- "pluginType": "core",
2361
- "strict": true,
2362
- "enableJsonFlag": false,
2363
- "isESM": true,
2364
- "relativePath": [
2365
- "dist",
2366
- "commands",
2367
- "install",
2368
- "daemon.js"
2369
- ]
2370
- },
2371
- "install:tui": {
2372
- "aliases": [],
2373
- "args": {},
2374
- "description": "Download and install the centy TUI binary",
2375
- "examples": [
2376
- "<%= config.bin %> install tui",
2377
- "<%= config.bin %> install tui --prerelease",
2378
- "<%= config.bin %> install tui --version 0.1.0"
2379
- ],
2380
- "flags": {
2381
- "version": {
2382
- "char": "v",
2383
- "description": "Specific version to install (default: latest)",
2384
- "name": "version",
2385
- "hasDynamicHelp": false,
2386
- "multiple": false,
2387
- "type": "option"
2388
- },
2389
- "prerelease": {
2390
- "char": "p",
2391
- "description": "Include prerelease versions when fetching latest",
2392
- "name": "prerelease",
2393
- "allowNo": false,
2394
- "type": "boolean"
2395
- }
2396
- },
2397
- "hasDynamicHelp": false,
2398
- "hiddenAliases": [],
2399
- "id": "install:tui",
2400
- "pluginAlias": "centy",
2401
- "pluginName": "centy",
2402
- "pluginType": "core",
2403
- "strict": true,
2404
- "enableJsonFlag": false,
2405
- "isESM": true,
2406
- "relativePath": [
2407
- "dist",
2408
- "commands",
2409
- "install",
2410
- "tui.js"
2411
- ]
2412
- },
2413
2325
  "project:archive": {
2414
2326
  "aliases": [],
2415
2327
  "args": {
@@ -3291,5 +3203,5 @@
3291
3203
  ]
3292
3204
  }
3293
3205
  },
3294
- "version": "0.2.6"
3206
+ "version": "0.2.8"
3295
3207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centy",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "CLI for managing project issues and docs via code in the .centy folder",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,6 +20,26 @@
20
20
  "proto",
21
21
  "oclif.manifest.json"
22
22
  ],
23
+ "scripts": {
24
+ "build": "pnpm run build:tsc && pnpm run manifest",
25
+ "build:tsc": "tsc",
26
+ "dev": "tsc --watch",
27
+ "manifest": "oclif manifest",
28
+ "test": "vitest",
29
+ "test:watch": "vitest --watch",
30
+ "test:coverage": "vitest --coverage",
31
+ "lint": "eslint src --ext .ts",
32
+ "lint:fix": "eslint src --ext .ts --fix",
33
+ "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
34
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
35
+ "spell": "cspell lint '**/*.{ts,js,md,json}' --gitignore",
36
+ "spell:check": "cspell lint '**/*.{ts,js,md,json}' --gitignore",
37
+ "knip": "knip",
38
+ "prepare": "husky",
39
+ "release": "release-it",
40
+ "postpack": "rm -f oclif.manifest.json",
41
+ "prepack": "pnpm run build"
42
+ },
23
43
  "keywords": [
24
44
  "cli",
25
45
  "project-management",
@@ -30,9 +50,14 @@
30
50
  ],
31
51
  "author": "",
32
52
  "license": "MIT",
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/centy-io/centy-cli"
56
+ },
33
57
  "engines": {
34
58
  "node": ">=20.0.0"
35
59
  },
60
+ "packageManager": "pnpm@10.24.0",
36
61
  "publishConfig": {
37
62
  "access": "public"
38
63
  },
@@ -84,22 +109,5 @@
84
109
  "@oclif/plugin-help": "^6.2.36",
85
110
  "update-notifier": "^7.3.1",
86
111
  "uuid": "^13.0.0"
87
- },
88
- "scripts": {
89
- "build": "pnpm run build:tsc && pnpm run manifest",
90
- "build:tsc": "tsc",
91
- "dev": "tsc --watch",
92
- "manifest": "oclif manifest",
93
- "test": "vitest",
94
- "test:watch": "vitest --watch",
95
- "test:coverage": "vitest --coverage",
96
- "lint": "eslint src --ext .ts",
97
- "lint:fix": "eslint src --ext .ts --fix",
98
- "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
99
- "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
100
- "spell": "cspell lint '**/*.{ts,js,md,json}' --gitignore",
101
- "spell:check": "cspell lint '**/*.{ts,js,md,json}' --gitignore",
102
- "knip": "knip",
103
- "release": "release-it"
104
112
  }
105
- }
113
+ }
@@ -1,11 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class InstallAll extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static flags: {
6
- version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
- prerelease: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
- };
9
- run(): Promise<void>;
10
- }
11
- //# sourceMappingURL=all.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../src/commands/install/all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAA;AAI5C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,OAAO;IAE7C,OAAgB,WAAW,SACiC;IAG5D,OAAgB,QAAQ,WAGvB;IAGD,OAAgB,KAAK;;;MAUpB;IAEY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgBlC"}
@@ -1,40 +0,0 @@
1
- import { Command, Flags } from '@oclif/core';
2
- import { installAll } from '../../lib/install-binary/index.js';
3
- // eslint-disable-next-line custom/no-default-class-export, class-export/class-export
4
- export default class InstallAll extends Command {
5
- // eslint-disable-next-line no-restricted-syntax
6
- static description = 'Download and install all centy binaries (daemon and tui)';
7
- // eslint-disable-next-line no-restricted-syntax
8
- static examples = [
9
- '<%= config.bin %> install all',
10
- '<%= config.bin %> install all --prerelease',
11
- ];
12
- // eslint-disable-next-line no-restricted-syntax
13
- static flags = {
14
- version: Flags.string({
15
- char: 'v',
16
- description: 'Specific version to install (default: latest)',
17
- }),
18
- prerelease: Flags.boolean({
19
- char: 'p',
20
- description: 'Include prerelease versions when fetching latest',
21
- default: false,
22
- }),
23
- };
24
- async run() {
25
- const { flags } = await this.parse(InstallAll);
26
- try {
27
- await installAll({
28
- version: flags.version,
29
- prerelease: flags.prerelease,
30
- onProgress: message => this.log(message),
31
- });
32
- this.log('All centy binaries installed successfully');
33
- }
34
- catch (error) {
35
- const message = error instanceof Error ? error.message : String(error);
36
- this.error(`Failed to install centy binaries: ${message}`);
37
- }
38
- }
39
- }
40
- //# sourceMappingURL=all.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all.js","sourceRoot":"","sources":["../../../src/commands/install/all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAE9D,qFAAqF;AACrF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,OAAO;IAC7C,gDAAgD;IAChD,MAAM,CAAU,WAAW,GACzB,0DAA0D,CAAA;IAE5D,gDAAgD;IAChD,MAAM,CAAU,QAAQ,GAAG;QACzB,+BAA+B;QAC/B,4CAA4C;KAC7C,CAAA;IAED,gDAAgD;IAChD,MAAM,CAAU,KAAK,GAAG;QACtB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;YACpB,IAAI,EAAE,GAAG;YACT,WAAW,EAAE,+CAA+C;SAC7D,CAAC;QACF,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,GAAG;YACT,WAAW,EAAE,kDAAkD;YAC/D,OAAO,EAAE,KAAK;SACf,CAAC;KACH,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAE9C,IAAI,CAAC;YACH,MAAM,UAAU,CAAC;gBACf,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,UAAU,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;aACzC,CAAC,CAAA;YAEF,IAAI,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;YACtE,IAAI,CAAC,KAAK,CAAC,qCAAqC,OAAO,EAAE,CAAC,CAAA;QAC5D,CAAC;IACH,CAAC"}
@@ -1,11 +0,0 @@
1
- import { Command } from '@oclif/core';
2
- export default class InstallDaemon extends Command {
3
- static description: string;
4
- static examples: string[];
5
- static flags: {
6
- version: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
7
- prerelease: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
- };
9
- run(): Promise<void>;
10
- }
11
- //# sourceMappingURL=daemon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/commands/install/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,MAAM,aAAa,CAAA;AAI5C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,OAAO;IAEhD,OAAgB,WAAW,SAAiD;IAG5E,OAAgB,QAAQ,WAIvB;IAGD,OAAgB,KAAK;;;MAUpB;IAEY,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAyBlC"}