@lpm-registry/cli 0.2.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE +15 -0
  3. package/README.md +406 -0
  4. package/bin/lpm.js +334 -0
  5. package/index.d.ts +131 -0
  6. package/index.js +31 -0
  7. package/lib/api.js +324 -0
  8. package/lib/commands/add.js +1217 -0
  9. package/lib/commands/audit.js +283 -0
  10. package/lib/commands/cache.js +209 -0
  11. package/lib/commands/check-name.js +112 -0
  12. package/lib/commands/config.js +174 -0
  13. package/lib/commands/doctor.js +142 -0
  14. package/lib/commands/info.js +215 -0
  15. package/lib/commands/init.js +146 -0
  16. package/lib/commands/install.js +217 -0
  17. package/lib/commands/login.js +547 -0
  18. package/lib/commands/logout.js +94 -0
  19. package/lib/commands/marketplace-compare.js +164 -0
  20. package/lib/commands/marketplace-earnings.js +89 -0
  21. package/lib/commands/mcp-setup.js +363 -0
  22. package/lib/commands/open.js +82 -0
  23. package/lib/commands/outdated.js +291 -0
  24. package/lib/commands/pool-stats.js +100 -0
  25. package/lib/commands/publish.js +707 -0
  26. package/lib/commands/quality.js +211 -0
  27. package/lib/commands/remove.js +82 -0
  28. package/lib/commands/run.js +14 -0
  29. package/lib/commands/search.js +143 -0
  30. package/lib/commands/setup.js +92 -0
  31. package/lib/commands/skills.js +863 -0
  32. package/lib/commands/token-rotate.js +25 -0
  33. package/lib/commands/whoami.js +129 -0
  34. package/lib/config.js +240 -0
  35. package/lib/constants.js +190 -0
  36. package/lib/ecosystem.js +501 -0
  37. package/lib/editors.js +215 -0
  38. package/lib/import-rewriter.js +364 -0
  39. package/lib/install-targets/mcp-server.js +245 -0
  40. package/lib/install-targets/vscode-extension.js +178 -0
  41. package/lib/install-targets.js +82 -0
  42. package/lib/integrity.js +179 -0
  43. package/lib/lpm-config-prompts.js +102 -0
  44. package/lib/lpm-config.js +408 -0
  45. package/lib/project-utils.js +152 -0
  46. package/lib/quality/checks.js +654 -0
  47. package/lib/quality/display.js +139 -0
  48. package/lib/quality/score.js +115 -0
  49. package/lib/quality/swift-checks.js +447 -0
  50. package/lib/safe-path.js +180 -0
  51. package/lib/secure-store.js +288 -0
  52. package/lib/swift-project.js +637 -0
  53. package/lib/ui.js +40 -0
  54. package/package.json +74 -0
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@lpm-registry/cli",
3
+ "version": "0.2.0",
4
+ "description": "CLI for Licensed Package Manager",
5
+ "author": "LPM <hello@lpm.dev> (https://lpm.dev)",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/lpm-dev/cli"
9
+ },
10
+ "homepage": "https://lpm.dev",
11
+ "license": "ISC",
12
+ "keywords": [
13
+ "lpm",
14
+ "package-manager",
15
+ "registry",
16
+ "npm",
17
+ "private-packages"
18
+ ],
19
+ "main": "index.js",
20
+ "bin": {
21
+ "lpm": "./bin/lpm.js"
22
+ },
23
+ "exports": {
24
+ ".": "./index.js",
25
+ "./lib/*": "./lib/*"
26
+ },
27
+ "types": "./index.d.ts",
28
+ "sideEffects": false,
29
+ "files": [
30
+ "bin",
31
+ "lib",
32
+ "!lib/__tests__",
33
+ "index.js",
34
+ "index.d.ts",
35
+ "README.md",
36
+ "CHANGELOG.md",
37
+ "LICENSE"
38
+ ],
39
+ "scripts": {
40
+ "prepare": "husky",
41
+ "test": "vitest run",
42
+ "test:watch": "vitest",
43
+ "lint": "biome check .",
44
+ "lint:fix": "biome check --write ."
45
+ },
46
+ "dependencies": {
47
+ "@clack/prompts": "^0.11.0",
48
+ "boxen": "^8.0.1",
49
+ "chalk": "^5.6.2",
50
+ "commander": "^11.1.0",
51
+ "conf": "^12.0.0",
52
+ "diff": "^8.0.2",
53
+ "inquirer": "^9.2.12",
54
+ "open": "^11.0.0",
55
+ "ora": "^8.2.0",
56
+ "semver": "^7.7.3",
57
+ "tar": "^7.5.2",
58
+ "update-notifier": "^7.3.1",
59
+ "xcode": "^3.0.1"
60
+ },
61
+ "optionalDependencies": {
62
+ "keytar": "^7.9.0"
63
+ },
64
+ "type": "module",
65
+ "engines": {
66
+ "node": ">=18.0.0"
67
+ },
68
+ "devDependencies": {
69
+ "@biomejs/biome": "^2.3.10",
70
+ "@types/node": "^22.0.0",
71
+ "husky": "^9.1.7",
72
+ "vitest": "^4.0.18"
73
+ }
74
+ }