@loomhelix/deptrail 0.1.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 (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +421 -0
  3. package/dist/actions/action-error.js +11 -0
  4. package/dist/actions/action-jobs.js +199 -0
  5. package/dist/actions/action-service.js +268 -0
  6. package/dist/actions/apply.js +120 -0
  7. package/dist/actions/availability.js +79 -0
  8. package/dist/actions/change-sets.js +117 -0
  9. package/dist/actions/dry-run.js +287 -0
  10. package/dist/actions/edge-moves.js +108 -0
  11. package/dist/actions/edit-plan.js +179 -0
  12. package/dist/actions/file-scope.js +118 -0
  13. package/dist/actions/fix-options.js +141 -0
  14. package/dist/actions/goal-check.js +80 -0
  15. package/dist/actions/install.js +27 -0
  16. package/dist/actions/job-registry.js +104 -0
  17. package/dist/actions/json-edit.js +189 -0
  18. package/dist/actions/labels.js +35 -0
  19. package/dist/actions/node-actions.js +102 -0
  20. package/dist/actions/overrides-location.js +59 -0
  21. package/dist/actions/parent-chain.js +210 -0
  22. package/dist/actions/range-style.js +38 -0
  23. package/dist/actions/recipes.js +31 -0
  24. package/dist/actions/root-files.js +30 -0
  25. package/dist/actions/sandbox.js +175 -0
  26. package/dist/actions/set-range.js +59 -0
  27. package/dist/actions/shared-packages.js +50 -0
  28. package/dist/actions/text-diff.js +203 -0
  29. package/dist/actions/types.js +1 -0
  30. package/dist/actions/update-options.js +232 -0
  31. package/dist/actions/workspace-edit.js +33 -0
  32. package/dist/adapters/command-runner.js +127 -0
  33. package/dist/adapters/manifest-only.js +20 -0
  34. package/dist/adapters/node-modules.js +148 -0
  35. package/dist/adapters/npm-lock.js +149 -0
  36. package/dist/adapters/package-manifest.js +57 -0
  37. package/dist/adapters/pnpm-lock.js +177 -0
  38. package/dist/adapters/resolve-today.js +93 -0
  39. package/dist/cli/cli.js +227 -0
  40. package/dist/cli/open-browser.js +14 -0
  41. package/dist/cli/package-version.js +6 -0
  42. package/dist/cli/usage-text.js +27 -0
  43. package/dist/config/glob.js +119 -0
  44. package/dist/config/npmrc.js +116 -0
  45. package/dist/config/root-config.js +103 -0
  46. package/dist/config/secrets.js +18 -0
  47. package/dist/discovery/find-roots.js +107 -0
  48. package/dist/enrich/credentials.js +143 -0
  49. package/dist/enrich/enrichment-cache.js +42 -0
  50. package/dist/enrich/enrichment-keys.js +71 -0
  51. package/dist/enrich/enrichment-service.js +399 -0
  52. package/dist/enrich/enrichment-status.js +86 -0
  53. package/dist/enrich/enrichment-store.js +143 -0
  54. package/dist/enrich/http.js +201 -0
  55. package/dist/enrich/on-demand.js +220 -0
  56. package/dist/enrich/osv-client.js +260 -0
  57. package/dist/enrich/registry-client.js +123 -0
  58. package/dist/enrich/types.js +1 -0
  59. package/dist/git/blob-reader.js +180 -0
  60. package/dist/git/git-commands.js +32 -0
  61. package/dist/git/git-process.js +71 -0
  62. package/dist/git/git-repository.js +136 -0
  63. package/dist/git/ref-list.js +78 -0
  64. package/dist/git/tree-index.js +87 -0
  65. package/dist/graph/global-index.js +19 -0
  66. package/dist/graph/root-graph-builder.js +114 -0
  67. package/dist/graph/serialize.js +19 -0
  68. package/dist/model.js +2 -0
  69. package/dist/query/children.js +38 -0
  70. package/dist/query/compare-shape.js +13 -0
  71. package/dist/query/compare.js +245 -0
  72. package/dist/query/decorations.js +121 -0
  73. package/dist/query/dependents.js +135 -0
  74. package/dist/query/duplicates.js +23 -0
  75. package/dist/query/enrichment-lookup.js +78 -0
  76. package/dist/query/fixes.js +60 -0
  77. package/dist/query/graph-diff.js +42 -0
  78. package/dist/query/issues.js +235 -0
  79. package/dist/query/lookup.js +49 -0
  80. package/dist/query/node-fix.js +46 -0
  81. package/dist/query/package-insight.js +112 -0
  82. package/dist/query/search.js +61 -0
  83. package/dist/query/subgraph.js +107 -0
  84. package/dist/query/versions.js +103 -0
  85. package/dist/scan/build-root.js +137 -0
  86. package/dist/scan/cache-shape.js +52 -0
  87. package/dist/scan/scan-cache.js +32 -0
  88. package/dist/scan/scan-session.js +127 -0
  89. package/dist/scan/source-registry.js +55 -0
  90. package/dist/server/auth.js +45 -0
  91. package/dist/server/branches.js +105 -0
  92. package/dist/server/error-log.js +9 -0
  93. package/dist/server/root-segment.js +13 -0
  94. package/dist/server/router.js +474 -0
  95. package/dist/server/server.js +166 -0
  96. package/dist/server/source-key.js +1 -0
  97. package/dist/server/static.js +59 -0
  98. package/dist/sources/file-reader.js +55 -0
  99. package/dist/sources/git-reader.js +45 -0
  100. package/dist/ui/assets/index-C4uyB5v3.css +1 -0
  101. package/dist/ui/assets/index-DYAG2LM-.js +51 -0
  102. package/dist/ui/index.html +15 -0
  103. package/package.json +72 -0
@@ -0,0 +1,15 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="color-scheme" content="light dark" />
7
+ <link rel="icon" href="data:," />
8
+ <title>deptrail</title>
9
+ <script type="module" crossorigin src="/assets/index-DYAG2LM-.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-C4uyB5v3.css">
11
+ </head>
12
+ <body>
13
+ <div id="app"></div>
14
+ </body>
15
+ </html>
package/package.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "@loomhelix/deptrail",
3
+ "version": "0.1.0",
4
+ "description": "Explore the dependency trees of every JavaScript root in a repository: issues, dependents and fixes in a local web viewer",
5
+ "keywords": [
6
+ "dependencies",
7
+ "dependency-tree",
8
+ "monorepo",
9
+ "pnpm",
10
+ "npm",
11
+ "lockfile",
12
+ "vulnerabilities",
13
+ "osv",
14
+ "audit",
15
+ "cli"
16
+ ],
17
+ "license": "MIT",
18
+ "author": "loomhelix",
19
+ "homepage": "https://github.com/loomhelix/deptrail#readme",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/loomhelix/deptrail.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/loomhelix/deptrail/issues"
26
+ },
27
+ "private": false,
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "type": "module",
32
+ "packageManager": "pnpm@10.34.3",
33
+ "engines": {
34
+ "node": ">=22"
35
+ },
36
+ "bin": {
37
+ "deptrail": "dist/cli/cli.js"
38
+ },
39
+ "files": [
40
+ "dist"
41
+ ],
42
+ "scripts": {
43
+ "test": "node --import tsx --test test/*.test.ts",
44
+ "test:perf": "node --import tsx --test test/perf/perf.test.ts",
45
+ "test:integration": "node --import tsx --test test/integration/*.test.ts",
46
+ "build:cli": "tsc -p tsconfig.build.json",
47
+ "build:ui": "vite build ui --outDir ../dist/ui",
48
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
49
+ "build": "pnpm clean && pnpm build:cli && pnpm build:ui",
50
+ "prepack": "pnpm build",
51
+ "e2e": "playwright test -c e2e/playwright.config.ts",
52
+ "playground": "pnpm build && node --import tsx scripts/playground.ts",
53
+ "typecheck": "tsc --noEmit",
54
+ "typecheck:ui": "vue-tsc -p ui/tsconfig.json --noEmit"
55
+ },
56
+ "dependencies": {
57
+ "semver": "^7.8.5",
58
+ "yaml": "^2.9.1"
59
+ },
60
+ "devDependencies": {
61
+ "@axe-core/playwright": "4.13.0",
62
+ "@playwright/test": "^1.64.1",
63
+ "@types/node": "^22.20.5",
64
+ "@types/semver": "^7.8.0",
65
+ "@vitejs/plugin-vue": "^5.2.4",
66
+ "tsx": "^4.23.15",
67
+ "typescript": "^5.9.3",
68
+ "vite": "^6.4.5",
69
+ "vue": "^3.5.44",
70
+ "vue-tsc": "^3.3.14"
71
+ }
72
+ }