zedbee 0.1.0-beta.1 → 0.1.0-beta.3

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 (121) hide show
  1. package/THIRD_PARTY_NOTICES.md +29 -0
  2. package/dist/attribution/entities.d.ts.map +1 -1
  3. package/dist/attribution/entities.js +10 -2
  4. package/dist/attribution/entities.js.map +1 -1
  5. package/dist/cache/captured-dependencies.d.ts +5 -4
  6. package/dist/cache/captured-dependencies.d.ts.map +1 -1
  7. package/dist/cache/captured-dependencies.js +35 -8
  8. package/dist/cache/captured-dependencies.js.map +1 -1
  9. package/dist/cache/dependency-inputs.d.ts +2 -0
  10. package/dist/cache/dependency-inputs.d.ts.map +1 -1
  11. package/dist/cache/dependency-inputs.js +10 -1
  12. package/dist/cache/dependency-inputs.js.map +1 -1
  13. package/dist/cache/key.d.ts.map +1 -1
  14. package/dist/cache/key.js +10 -1
  15. package/dist/cache/key.js.map +1 -1
  16. package/dist/checks/adapter.d.ts +2 -2
  17. package/dist/checks/adapter.d.ts.map +1 -1
  18. package/dist/checks/applicability.d.ts.map +1 -1
  19. package/dist/checks/applicability.js +26 -5
  20. package/dist/checks/applicability.js.map +1 -1
  21. package/dist/checks/changed-file-paths.d.ts +5 -0
  22. package/dist/checks/changed-file-paths.d.ts.map +1 -0
  23. package/dist/checks/changed-file-paths.js +18 -0
  24. package/dist/checks/changed-file-paths.js.map +1 -0
  25. package/dist/checks/complexity/adapter.d.ts.map +1 -1
  26. package/dist/checks/complexity/adapter.js +21 -6
  27. package/dist/checks/complexity/adapter.js.map +1 -1
  28. package/dist/checks/dead-code/adapter.js +1 -1
  29. package/dist/checks/dead-code/adapter.js.map +1 -1
  30. package/dist/checks/dead-code/captured-filesystem.js +1 -1
  31. package/dist/checks/dead-code/captured-filesystem.js.map +1 -1
  32. package/dist/checks/dead-code/knip-worker.js +8 -0
  33. package/dist/checks/dead-code/knip-worker.js.map +1 -1
  34. package/dist/checks/dead-code/package-metadata.d.ts +6 -0
  35. package/dist/checks/dead-code/package-metadata.d.ts.map +1 -0
  36. package/dist/checks/dead-code/package-metadata.js +33 -0
  37. package/dist/checks/dead-code/package-metadata.js.map +1 -0
  38. package/dist/checks/dead-code/parse-report.d.ts.map +1 -1
  39. package/dist/checks/dead-code/parse-report.js +6 -0
  40. package/dist/checks/dead-code/parse-report.js.map +1 -1
  41. package/dist/checks/dispatcher.d.ts.map +1 -1
  42. package/dist/checks/dispatcher.js +35 -10
  43. package/dist/checks/dispatcher.js.map +1 -1
  44. package/dist/checks/engine-identity.js +4 -4
  45. package/dist/checks/engine-identity.js.map +1 -1
  46. package/dist/checks/prettier/supported-path.d.ts.map +1 -1
  47. package/dist/checks/prettier/supported-path.js +13 -1
  48. package/dist/checks/prettier/supported-path.js.map +1 -1
  49. package/dist/checks/structural-security/adapter.d.ts.map +1 -1
  50. package/dist/checks/structural-security/adapter.js +16 -6
  51. package/dist/checks/structural-security/adapter.js.map +1 -1
  52. package/dist/checks/structural-security/rules.d.ts.map +1 -1
  53. package/dist/checks/structural-security/rules.js +48 -6
  54. package/dist/checks/structural-security/rules.js.map +1 -1
  55. package/dist/checks/typescript/compiler-host.js +41 -13
  56. package/dist/checks/typescript/compiler-host.js.map +1 -1
  57. package/dist/cli.d.ts.map +1 -1
  58. package/dist/cli.js +16 -0
  59. package/dist/cli.js.map +1 -1
  60. package/dist/commands/init.d.ts +1 -1
  61. package/dist/commands/init.d.ts.map +1 -1
  62. package/dist/commands/init.js +59 -7
  63. package/dist/commands/init.js.map +1 -1
  64. package/dist/commands/scan.d.ts.map +1 -1
  65. package/dist/commands/scan.js +15 -4
  66. package/dist/commands/scan.js.map +1 -1
  67. package/dist/doctor/diagnostics.d.ts +3 -1
  68. package/dist/doctor/diagnostics.d.ts.map +1 -1
  69. package/dist/doctor/diagnostics.js +46 -1
  70. package/dist/doctor/diagnostics.js.map +1 -1
  71. package/dist/hooks/detect.d.ts +7 -0
  72. package/dist/hooks/detect.d.ts.map +1 -1
  73. package/dist/hooks/detect.js +140 -17
  74. package/dist/hooks/detect.js.map +1 -1
  75. package/dist/hooks/install.d.ts +13 -0
  76. package/dist/hooks/install.d.ts.map +1 -0
  77. package/dist/hooks/install.js +136 -0
  78. package/dist/hooks/install.js.map +1 -0
  79. package/dist/hooks/raw-git.d.ts.map +1 -1
  80. package/dist/hooks/raw-git.js +5 -0
  81. package/dist/hooks/raw-git.js.map +1 -1
  82. package/dist/init/recommend.d.ts.map +1 -1
  83. package/dist/init/recommend.js +9 -1
  84. package/dist/init/recommend.js.map +1 -1
  85. package/dist/init/types.d.ts +13 -2
  86. package/dist/init/types.d.ts.map +1 -1
  87. package/dist/init/types.js.map +1 -1
  88. package/dist/init/write-config.d.ts.map +1 -1
  89. package/dist/init/write-config.js +57 -2
  90. package/dist/init/write-config.js.map +1 -1
  91. package/dist/inspection/workspaces.d.ts.map +1 -1
  92. package/dist/inspection/workspaces.js +59 -8
  93. package/dist/inspection/workspaces.js.map +1 -1
  94. package/dist/service/client.d.ts +1 -0
  95. package/dist/service/client.d.ts.map +1 -1
  96. package/dist/service/client.js +14 -2
  97. package/dist/service/client.js.map +1 -1
  98. package/dist/service/large-result.d.ts +14 -0
  99. package/dist/service/large-result.d.ts.map +1 -0
  100. package/dist/service/large-result.js +74 -0
  101. package/dist/service/large-result.js.map +1 -0
  102. package/dist/service/protocol.d.ts +3 -0
  103. package/dist/service/protocol.d.ts.map +1 -1
  104. package/dist/service/protocol.js +33 -1
  105. package/dist/service/protocol.js.map +1 -1
  106. package/dist/service/server.d.ts.map +1 -1
  107. package/dist/service/server.js +16 -2
  108. package/dist/service/server.js.map +1 -1
  109. package/dist/service/transport.d.ts +10 -2
  110. package/dist/service/transport.d.ts.map +1 -1
  111. package/dist/service/transport.js +82 -12
  112. package/dist/service/transport.js.map +1 -1
  113. package/dist/ui/init-app.d.ts +3 -3
  114. package/dist/ui/init-app.d.ts.map +1 -1
  115. package/dist/ui/init-app.js +70 -15
  116. package/dist/ui/init-app.js.map +1 -1
  117. package/docs/checks.md +7 -1
  118. package/docs/cli-reference.md +47 -3
  119. package/docs/support.md +22 -0
  120. package/licenses/production-inventory.json +503 -486
  121. package/package.json +6 -1
@@ -16,6 +16,7 @@ const PROFILE_EXPLANATIONS = {
16
16
  const HOOK_METHODS = {
17
17
  none: "None",
18
18
  raw: "Git pre-commit hook",
19
+ custom: "Existing tracked hook",
19
20
  husky: "Husky",
20
21
  lefthook: "Lefthook",
21
22
  "simple-git-hooks": "simple-git-hooks",
@@ -41,14 +42,26 @@ export function initRenderOptions() {
41
42
  },
42
43
  });
43
44
  }
44
- function SetupSummary({ proposal, profile, baseProfile, focused, activeTargetRef, color, }) {
45
+ function SetupSummary({ proposal, profile, baseProfile, focused, hookFocus, activeTargetRef, color, }) {
45
46
  const installsHook = proposal.hook !== "none";
46
47
  const explanation = profile === "custom"
47
48
  ? "Custom checks based on the " + baseProfile + " profile."
48
49
  : PROFILE_EXPLANATIONS[profile];
49
50
  return (_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsxs(Box, { ref: focused ? activeTargetRef : undefined, children: [_jsxs(Text, { ...colorProp(color, ZEDBEE_THEME.yellow), children: [focused ? "➜" : " ", " "] }), _jsx(Text, { ...colorProp(color, ZEDBEE_THEME.secondary), children: "Profile: " }), PROFILE_IDS.map((option, index) => (_jsxs(Text, { bold: profile === option, ...colorProp(color, profile === option
50
51
  ? ZEDBEE_THEME.primary
51
- : ZEDBEE_THEME.secondary), children: [index === 0 ? " " : " ", option] }, option))), profile === "custom" ? (_jsxs(Text, { bold: true, ...colorProp(color, ZEDBEE_THEME.primary), children: [" ", "custom"] })) : null] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: explanation }) }), _jsx(Text, { children: " " }), _jsxs(Box, { children: [_jsxs(Text, { ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Install pre-commit hook:", " "] }), _jsx(Text, { bold: true, ...colorProp(color, installsHook ? ZEDBEE_THEME.pass : ZEDBEE_THEME.muted), children: installsHook ? "Yes" : "No" })] }), installsHook ? (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Method: ", HOOK_METHODS[proposal.hook]] })) : null, proposal.hookActivation.status === "pending" ? (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.warning), children: ["Additional activation required: ", proposal.hookActivation.message] })) : null, proposal.hookActivation.remediation === undefined ? null : (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.warning), children: ["Next step: ", proposal.hookActivation.remediation] })), _jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Detected: ", proposal.detectedEnvironments.join(", ") || "none"] })] }));
52
+ : ZEDBEE_THEME.secondary), children: [index === 0 ? " " : " ", option] }, option))), profile === "custom" ? (_jsxs(Text, { bold: true, ...colorProp(color, ZEDBEE_THEME.primary), children: [" ", "custom"] })) : null] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: explanation }) }), _jsx(Text, { children: " " }), _jsxs(Box, { ref: hookFocus === 1 ? activeTargetRef : undefined, children: [proposal.hookChoices === undefined ? null : (_jsx(Text, { children: hookFocus === 1 ? "➜ " : " " })), _jsxs(Text, { ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Install pre-commit hook:", " "] }), _jsx(Text, { bold: true, ...colorProp(color, installsHook ? ZEDBEE_THEME.pass : ZEDBEE_THEME.muted), children: proposal.hookChoices === undefined
53
+ ? installsHook
54
+ ? "Yes"
55
+ : "No"
56
+ : `${installsHook ? "[✽]" : "[ ]"} Yes ${installsHook ? "[ ]" : "[✽]"} No` })] }), installsHook &&
57
+ proposal.hookChoices?.includes("tracked") &&
58
+ proposal.hookChoices.includes("raw") ? (_jsxs(Box, { flexDirection: "column", ref: hookFocus === 2 ? activeTargetRef : undefined, children: [_jsxs(Text, { children: [hookFocus === 2 ? "➜ " : " ", "[", proposal.hookSelection === "tracked" ? "✽" : " ", "] Tracked \u2014 shared with teammates"] }), _jsxs(Text, { children: [" ", "[", proposal.hookSelection === "raw" ? "✽" : " ", "] Local \u2014 this checkout only"] })] })) : installsHook && proposal.hookChoices !== undefined ? (_jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: proposal.hookSelection === "tracked"
59
+ ? "Tracked — shared with teammates"
60
+ : proposal.hook === "raw"
61
+ ? "Local — this checkout only"
62
+ : "Reuse the existing tracked integration." })) : installsHook ? (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Method: ", HOOK_METHODS[proposal.hook]] })) : null, proposal.hookActivation.status === "pending" ? (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.warning), children: ["Additional activation required: ", proposal.hookActivation.message] })) : null, proposal.hookActivation.remediation === undefined ? null : (_jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.warning), children: ["Next step: ", proposal.hookActivation.remediation] })), proposal.limitations
63
+ .filter((message) => message.startsWith("Tracked setup is unavailable"))
64
+ .map((message) => (_jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.warning), children: message }, message))), _jsxs(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: ["Detected: ", proposal.detectedEnvironments.join(", ") || "none"] })] }));
52
65
  }
53
66
  function CheckChoices({ cursor, selected, activeTargetRef, color, }) {
54
67
  return (_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsx(Text, { bold: true, ...colorProp(color, ZEDBEE_THEME.primary), children: "CHECKS" }), CHECK_IDS.map((check, index) => (_jsx(Box, { ref: index === cursor ? activeTargetRef : undefined, children: _jsxs(Text, { ...colorProp(color, index === cursor ? ZEDBEE_THEME.yellow : ZEDBEE_THEME.secondary), children: [index === cursor ? "➜" : " ", " [", selected.has(check) ? "✽" : " ", "]", " ", check] }) }, check)))] }));
@@ -82,6 +95,15 @@ function wordWrappedLineCount(value, width) {
82
95
  function setupReviewFocusIndex(vulnerabilityScanningAvailable) {
83
96
  return CHECK_IDS.length + (vulnerabilityScanningAvailable ? 3 : 1);
84
97
  }
98
+ function hookFocusCount(proposal) {
99
+ if (proposal.hookChoices === undefined)
100
+ return 0;
101
+ return proposal.hook !== "none" &&
102
+ proposal.hookChoices.includes("tracked") &&
103
+ proposal.hookChoices.includes("raw")
104
+ ? 2
105
+ : 1;
106
+ }
85
107
  function InitActionButton({ label, focused, activeTargetRef, color, }) {
86
108
  return (_jsx(Box, { ref: focused ? activeTargetRef : undefined, justifyContent: "center", paddingX: 2, children: _jsx(Box, { borderStyle: "single", paddingX: 2, ...(color
87
109
  ? {
@@ -98,28 +120,35 @@ function InitActionButton({ label, focused, activeTargetRef, color, }) {
98
120
  }
99
121
  function initFileDescription(file) {
100
122
  const action = file.before === null ? "Create" : "Update";
123
+ if (file.relativePath.startsWith(".husky/_/"))
124
+ return `${action} the local, ignored dispatcher used to activate Git hooks.`;
101
125
  switch (file.relativePath) {
102
126
  case ".zedbeerc.jsonc":
103
127
  return `${action} Zedbee's repository configuration with the selected profile, checks, and reporting settings.`;
104
128
  case ".git/hooks/pre-commit":
105
129
  return `${action} the Git pre-commit hook so Zedbee runs before each commit.`;
106
130
  case ".husky/pre-commit":
107
- return `${action} the Husky pre-commit hook so Zedbee runs before each commit.`;
131
+ return `${action} the tracked pre-commit hook so Zedbee runs before each commit.`;
108
132
  case "lefthook.yml":
109
133
  case "lefthook.yaml":
110
134
  return `${action} the Lefthook configuration so Zedbee runs before each commit.`;
111
135
  case "package.json":
112
- return `${action} package.json so simple-git-hooks runs Zedbee before each commit.`;
136
+ return `${action} package.json to configure hook setup while preserving existing scripts.`;
137
+ case ".husky/install.mjs":
138
+ return `${action} the tracked installer used by prepare; it skips CI and installs without Zedbee.`;
113
139
  default:
114
140
  return `${action} this file as part of Zedbee initialization.`;
115
141
  }
116
142
  }
117
143
  function SetupPanel({ proposal, focus, profile, baseProfile, selected, osvUnavailable, width, activeTargetRef, color, }) {
118
- return (_jsxs(BrandedCommandPanel, { title: "SETUP", width: width, color: color, children: [_jsx(SetupSummary, { proposal: proposal, profile: profile, baseProfile: baseProfile, focused: focus === 0, activeTargetRef: activeTargetRef, color: color }), _jsx(BrandedCommandPanelRule, { width: width, color: color }), _jsx(CheckChoices, { cursor: focus - 1, selected: selected, activeTargetRef: activeTargetRef, color: color }), _jsx(NetworkDisclosures, { proposal: proposal, width: width, color: color }), proposal.vulnerabilityScanningAvailable ? (_jsxs(_Fragment, { children: [_jsx(BrandedCommandPanelRule, { width: width, color: color }), _jsx(VulnerabilityOutageChoice, { value: osvUnavailable, cursor: focus - CHECK_IDS.length - 1, activeTargetRef: activeTargetRef, color: color })] })) : null, _jsx(Text, { children: " " }), _jsx(InitActionButton, { label: "REVIEW CHANGES", focused: focus ===
119
- setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable), activeTargetRef: activeTargetRef, color: color }), _jsx(Text, { children: " " }), _jsx(Box, { paddingX: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.muted), children: "\u2191\u2193 Move \u00B7 \u2190\u2192 Change profile \u00B7 Space Select \u00B7 Enter Review \u00B7 Esc Cancel" }) }), _jsx(Text, { children: " " })] }));
144
+ const hookRows = hookFocusCount(proposal);
145
+ return (_jsxs(BrandedCommandPanel, { title: "SETUP", width: width, color: color, children: [_jsx(SetupSummary, { proposal: proposal, profile: profile, baseProfile: baseProfile, focused: focus === 0, hookFocus: focus, activeTargetRef: activeTargetRef, color: color }), _jsx(BrandedCommandPanelRule, { width: width, color: color }), _jsx(CheckChoices, { cursor: focus - 1 - hookRows, selected: selected, activeTargetRef: activeTargetRef, color: color }), _jsx(NetworkDisclosures, { proposal: proposal, width: width, color: color }), proposal.vulnerabilityScanningAvailable ? (_jsxs(_Fragment, { children: [_jsx(BrandedCommandPanelRule, { width: width, color: color }), _jsx(VulnerabilityOutageChoice, { value: osvUnavailable, cursor: focus - CHECK_IDS.length - 1 - hookRows, activeTargetRef: activeTargetRef, color: color })] })) : null, _jsx(Text, { children: " " }), _jsx(InitActionButton, { label: "REVIEW CHANGES", focused: focus ===
146
+ setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) +
147
+ hookRows, activeTargetRef: activeTargetRef, color: color }), _jsx(Text, { children: " " }), _jsx(Box, { paddingX: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.muted), children: "\u2191\u2193 Move \u00B7 \u2190\u2192 Change profile/choice \u00B7 Space Select \u00B7 Enter Review \u00B7 Esc Cancel" }) }), _jsx(Text, { children: " " })] }));
120
148
  }
121
149
  function ReviewPanel({ proposal, width, color, }) {
122
- return (_jsxs(BrandedCommandPanel, { title: "REVIEW CHANGES", width: width, color: color, children: [_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: "Review these changes before Zedbee saves them to your repository." }), _jsx(Text, { children: " " })] }), _jsx(BrandedCommandPanelRule, { width: width, color: color }), proposal.files.map((file, index) => (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsx(Text, { bold: true, ...colorProp(color, ZEDBEE_THEME.primary), children: file.relativePath }), _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: initFileDescription(file) }), _jsx(Text, { children: " " })] }), index < proposal.files.length - 1 ? (_jsx(BrandedCommandPanelRule, { width: width, color: color })) : null] }, file.relativePath))), _jsx(InitActionButton, { label: "APPLY CHANGES", focused: true, color: color }), _jsx(Text, { children: " " }), _jsx(Box, { paddingX: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.muted), children: "Space/Enter/Y Apply \u00B7 Esc/B Back \u00B7 N Cancel" }) }), _jsx(Text, { children: " " })] }));
150
+ return (_jsxs(BrandedCommandPanel, { title: "REVIEW CHANGES", width: width, color: color, children: [_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: "Review these changes before Zedbee saves them to your repository." }), _jsx(Text, { children: " " })] }), _jsx(BrandedCommandPanelRule, { width: width, color: color }), proposal.files.map((file, index) => (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "column", paddingX: 2, children: [_jsx(Text, { bold: true, ...colorProp(color, ZEDBEE_THEME.primary), children: file.relativePath }), _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.secondary), children: initFileDescription(file) }), _jsx(Text, { children: " " }), proposal.hooksPathChange !== undefined &&
151
+ !file.relativePath.startsWith(".husky/_/") ? (_jsx(Text, { wrap: "wrap", children: file.diff })) : null] }), index < proposal.files.length - 1 ? (_jsx(BrandedCommandPanelRule, { width: width, color: color })) : null] }, file.relativePath))), _jsx(InitActionButton, { label: "APPLY CHANGES", focused: true, color: color }), proposal.hooksPathChange === undefined ? null : (_jsx(Box, { paddingX: 2, children: _jsxs(Text, { wrap: "wrap", children: ["Activate Git hooks: core.hooksPath \u2192", " ", proposal.hooksPathChange.after, ". Commit the tracked hook and installer files to share them with teammates."] }) })), _jsx(Text, { children: " " }), _jsx(Box, { paddingX: 2, children: _jsx(Text, { wrap: "wrap", ...colorProp(color, ZEDBEE_THEME.muted), children: "Space/Enter/Y Apply \u00B7 Esc/B Back \u00B7 N Cancel" }) }), _jsx(Text, { children: " " })] }));
123
152
  }
124
153
  export function InitApp({ proposal, proposalForSelection, width, terminalSize, color, onDecision, onMouseCleanupReady, }) {
125
154
  const { exit } = useApp();
@@ -137,6 +166,7 @@ export function InitApp({ proposal, proposalForSelection, width, terminalSize, c
137
166
  });
138
167
  const [baseProfile, setBaseProfile] = useState(proposal.profile);
139
168
  const [customized, setCustomized] = useState(false);
169
+ const [hookSelection, setHookSelection] = useState(proposal.hookSelection ?? proposal.hook);
140
170
  const [selected, setSelected] = useState(() => new Set(proposal.recommendedChecks));
141
171
  const [osvUnavailable, setOsvUnavailable] = useState(proposal.osvUnavailable);
142
172
  const activeTargetRef = useRef(null);
@@ -145,7 +175,14 @@ export function InitApp({ proposal, proposalForSelection, width, terminalSize, c
145
175
  const lastSetupRevealRef = useRef(undefined);
146
176
  const pendingSetupGeometryRef = useRef(false);
147
177
  setupOffsetRef.current = setupOffset;
148
- const reviewedProposal = useMemo(() => proposalForSelection(baseProfile, Object.freeze(CHECK_IDS.filter((check) => selected.has(check))), osvUnavailable), [baseProfile, osvUnavailable, proposalForSelection, selected]);
178
+ const reviewedProposal = useMemo(() => proposalForSelection(baseProfile, Object.freeze(CHECK_IDS.filter((check) => selected.has(check))), osvUnavailable, hookSelection), [
179
+ baseProfile,
180
+ osvUnavailable,
181
+ hookSelection,
182
+ proposalForSelection,
183
+ selected,
184
+ ]);
185
+ const hookRows = hookFocusCount(reviewedProposal);
149
186
  useEffect(() => {
150
187
  const cleanup = enableTerminalMouse(stdout);
151
188
  onMouseCleanupReady?.(cleanup);
@@ -225,38 +262,56 @@ export function InitApp({ proposal, proposalForSelection, width, terminalSize, c
225
262
  exit();
226
263
  }
227
264
  else if (key.upArrow) {
228
- const focusCount = setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) + 1;
265
+ const focusCount = setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) +
266
+ hookRows +
267
+ 1;
229
268
  setFocus((value) => (value - 1 + focusCount) % focusCount);
230
269
  }
231
270
  else if (key.downArrow) {
232
- const focusCount = setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) + 1;
271
+ const focusCount = setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) +
272
+ hookRows +
273
+ 1;
233
274
  setFocus((value) => (value + 1) % focusCount);
234
275
  }
276
+ else if (hookRows > 0 &&
277
+ focus === 1 &&
278
+ (input === " " || key.leftArrow || key.rightArrow)) {
279
+ setHookSelection((value) => value === "none"
280
+ ? proposal.hookChoices.find((choice) => choice !== "none")
281
+ : "none");
282
+ }
283
+ else if (hookRows === 2 &&
284
+ focus === 2 &&
285
+ (input === " " || key.leftArrow || key.rightArrow)) {
286
+ setHookSelection((value) => (value === "tracked" ? "raw" : "tracked"));
287
+ }
235
288
  else if (focus === 0 && (key.leftArrow || key.rightArrow)) {
236
289
  const currentIndex = PROFILE_IDS.indexOf(baseProfile);
237
290
  const offset = key.rightArrow ? 1 : -1;
238
291
  const nextProfile = PROFILE_IDS[(currentIndex + offset + PROFILE_IDS.length) % PROFILE_IDS.length];
239
- const nextProposal = proposalForSelection(nextProfile, undefined, osvUnavailable);
292
+ const nextProposal = proposalForSelection(nextProfile, undefined, osvUnavailable, hookSelection);
240
293
  setBaseProfile(nextProfile);
241
294
  setCustomized(false);
242
295
  setSelected(new Set(nextProposal.recommendedChecks));
243
296
  }
244
297
  else if (input === " ") {
245
298
  if (proposal.vulnerabilityScanningAvailable &&
246
- focus === CHECK_IDS.length + 1) {
299
+ focus === CHECK_IDS.length + 1 + hookRows) {
247
300
  setOsvUnavailable("block");
248
301
  return;
249
302
  }
250
303
  if (proposal.vulnerabilityScanningAvailable &&
251
- focus === CHECK_IDS.length + 2) {
304
+ focus === CHECK_IDS.length + 2 + hookRows) {
252
305
  setOsvUnavailable("warn");
253
306
  return;
254
307
  }
255
- if (focus === setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable)) {
308
+ if (focus ===
309
+ setupReviewFocusIndex(proposal.vulnerabilityScanningAvailable) +
310
+ hookRows) {
256
311
  setPhase("review");
257
312
  return;
258
313
  }
259
- const check = CHECK_IDS[focus - 1];
314
+ const check = CHECK_IDS[focus - 1 - hookRows];
260
315
  if (check !== undefined) {
261
316
  setSelected((current) => {
262
317
  const next = new Set(current);
@@ -1 +1 @@
1
- {"version":3,"file":"init-app.js","sourceRoot":"","sources":["../../src/ui/init-app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAA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,OAAO,EAAE,EAAE;gBAC/B,YAAY,GAAG,OAAO,CAAC;YACzB,CAAC,GACD,EACF,iBAAiB,EAAE,CACpB,CAAC;QACF,MAAM,GAAG,CAAC,aAAa,EAAE,CAAC;QAC1B,OAAO,QAAQ,CAAC;IAClB,CAAC;YAAS,CAAC;QACT,YAAY,EAAE,CAAC;IACjB,CAAC;AACH,CAAC"}
package/docs/checks.md CHANGED
@@ -22,7 +22,7 @@ Zedbee owns the analyzer versions and inert configuration used by every v1 check
22
22
  | `secrets` | Secretlint 13.0.5 recommended preset | Compares redacted baseline/target locations; an ephemeral keyed source-range digest detects same-location replacement | Scans changed regular UTF-8 files up to 1 MiB, not Git history; pattern matches can need review |
23
23
  | `duplication` | jscpd clone detection and repository duplication percentage | Compares whole workspaces and attributes new clone regions/project regressions | Large source lists can exceed an operating-system argument limit |
24
24
  | `dependencyArchitecture` | Dependency Cruiser cycles and invalid dependency edges | Compares the workspace module graph | Uses managed rules, not a project's executable dependency-cruiser config |
25
- | `deadCode` | Knip unused files, exports, and dependency hygiene | Compares each workspace as a project; saved findings require validated snapshot inputs and package-absence guards | Framework plugins are disabled; dynamic conventions and TS path aliases can require future managed profiles |
25
+ | `deadCode` | Knip unused files, exports, and dependency hygiene | Compares each workspace as a project; saved findings require validated snapshot inputs and package-absence guards | Framework plugins are disabled; dynamic conventions and TS path aliases can require future managed profiles |
26
26
  | `reactCorrectness` | React, Hooks, and JSX correctness | Runs only in discovered React/Ink/Next/Remix workspaces; calibrates each baseline/target workspace from staged dependency data | Uses the staged manifest, an unambiguous supported lockfile when available, then the managed React 19.2 fallback |
27
27
  | `reactAccessibility` | React DOM JSX accessibility | Runs only for React DOM, Next.js, and Remix—not Ink terminal UI | Static JSX rules cannot prove runtime accessibility |
28
28
  | `vulnerabilities` | Zedbee's bounded OSV API v1 client | Compares advisory/package/dependency-path state when supported lockfiles change or timing is `always` | Online only; discloses package name, exact version, and npm ecosystem identifier to `api.osv.dev` |
@@ -74,6 +74,12 @@ A target-only score above `max` and a staged score that crosses `max` are blocki
74
74
 
75
75
  ### Prettier settings
76
76
 
77
+ Formatting scans and fixes leave generated package-manager lockfiles alone:
78
+ `package-lock.json`, `npm-shrinkwrap.json`, `pnpm-lock.yaml`, `yarn.lock`,
79
+ `bun.lock`, and `bun.lockb`, including copies in subdirectories. Other JSON
80
+ and YAML files are still checked. This does not exclude lockfiles from secrets
81
+ or supported vulnerability checks.
82
+
77
83
  Formatting comparisons have a two-second limit per file. If a comparison takes longer, Zedbee reports `FORMATTING_DIFF_TIMEOUT` and marks the check incomplete. It does not guess which staged lines changed or treat the file as passing. Format the affected file with Prettier directly or manually, using the intended formatting settings, then review, stage, and scan again. A persistently incomplete formatting check cannot produce a managed `zedbee fix formatting` action.
78
84
 
79
85
  The formatting check accepts all and only these fourteen Prettier fields. Values not listed here, including `parser` and plugin settings, are rejected.
@@ -64,7 +64,8 @@ Nothing is written until the interactive confirmation. Automation can apply the
64
64
 
65
65
  | Command | Purpose |
66
66
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
67
- | `zedbee init` | Recommend checks and safely add `.zedbeerc.jsonc` plus a Husky, Lefthook, simple-git-hooks, or raw Git pre-commit integration |
67
+ | `zedbee init` | Recommend checks and safely add `.zedbeerc.jsonc` plus an optional tracked or local pre-commit hook |
68
+ | `zedbee hooks install` | Activate the tracked hook files in this checkout after installation |
68
69
  | `zedbee scan` | Scan the exact index target, or a committed target with `--base`, and return pass, blocked, or incomplete |
69
70
  | `zedbee fix` | Rescan current staged code, preview managed formatting/lint/React fixes, and apply approved changes to working files only |
70
71
  | `zedbee checks` | Explain every configured check, applicability, targets, engine/license, network use, and limitation without running analysis |
@@ -74,7 +75,7 @@ Nothing is written until the interactive confirmation. Automation can apply the
74
75
 
75
76
  `scan --no-service` and `fix --no-service` use a local executor that closes with the command. Ordinary commands acquire the service only when analysis is needed; empty-index scans and help do not start it. The service stops after five minutes with no active sessions. `service status` and `service stop` support `--format json` for machine-readable state. A service failure makes analysis incomplete; it is never silently retried through another executor.
76
77
 
77
- `init` supports `--profile fast|recommended|thorough`, `--hook auto|husky|lefthook|simple-git-hooks|raw|none`, `--checks <comma-separated IDs>`, `--osv-unavailable block|warn`, `--yes`, and text/JSON output. Interactive setup exposes the same check toggles and OSV outage choice without requiring documentation lookup. `scan`, `checks`, and `doctor` accept `--config <path>`.
78
+ `init` supports `--profile fast|recommended|thorough`, `--hook auto|tracked|husky|lefthook|simple-git-hooks|raw|none`, `--checks <comma-separated IDs>`, `--osv-unavailable block|warn`, `--yes`, and text/JSON output. Interactive setup exposes check toggles, the OSV outage choice, and whether to install a hook. If no tracked hook setup is detected, choosing to install a hook also offers **Tracked—shared with teammates** or **Local—this checkout only**. Existing tracked setups are reused without that extra question. `scan`, `checks`, and `doctor` accept `--config <path>`.
78
79
 
79
80
  Bare `zedbee fix` selects `formatting`, `lint`, and `reactCorrectness`; a named
80
81
  selector limits the plan to that supported check. Interactive terminals preview
@@ -88,6 +89,8 @@ remain manual. Review, stage, and rescan after applying; see the
88
89
 
89
90
  `zedbee doctor` defaults to responsive automatic output. Doctor uses the yellow Zedbee frame with one full-width `DOCTOR` panel in a wide interactive terminal. A narrow terminal, redirected output, CI environment, or `TERM=dumb` receives compact plain text instead. `zedbee doctor --format text` always forces the plain view, while `zedbee doctor --format json` is deterministic and ANSI-free. `--no-color` keeps an eligible framed layout but removes semantic status colors.
90
91
 
92
+ Doctor checks snapshot filesystem creation and cleanup separately from background-service execution. The service check starts or reuses the local service, opens a session, formats a small built-in JavaScript string, validates the result, then closes its session and connection. It does not send repository source to the service and leaves the reusable service running. Passing these checks does not establish that a full repository scan will succeed, including large analyzer results. If the service check fails, inspect `zedbee service status` and retry; `zedbee scan --no-service` bypasses the service.
93
+
91
94
  `zedbee checks` uses the same responsive behavior. Checks uses the yellow Zedbee frame with one full-width `CHECKS` panel in a wide interactive terminal, showing each check's severity, applicability, engine, targets, execution details, network use, and limitations. `zedbee checks --format text` forces the complete plain view, while `zedbee checks --format json` keeps the existing deterministic, ANSI-free machine output. Narrow terminals, redirected output, CI, and `TERM=dumb` use plain text; `--no-color` keeps an eligible framed layout without semantic colors.
92
95
 
93
96
  ## Experimental programmatic API
@@ -134,6 +137,12 @@ In index mode, an intent-to-add entry (`git add --intent-to-add`) supplies no st
134
137
 
135
138
  An analyzer may inspect a whole file or project when correctness requires it. Zedbee separately attributes the result and reports only issues introduced or worsened by the selected target changes.
136
139
 
140
+ Independent projects can live in subdirectories without a root `package.json`.
141
+ Zedbee discovers them from the selected snapshot; running from `web/` is not
142
+ required. Complexity and structural-security checks normally read only changed
143
+ files and their baseline counterparts. Other checks may need surrounding project
144
+ code. See [nested projects and scan scope](support.md#nested-projects-and-scan-scope).
145
+
137
146
  ## Configuration
138
147
 
139
148
  The optional root configuration is `.zedbeerc.jsonc`. It is data, not executable project code.
@@ -214,7 +223,20 @@ The versioned editor schema ships at `node_modules/zedbee/schema/zedbee.schema.j
214
223
 
215
224
  Zedbee ships and pins Prettier 3.9.6, ESLint 9.39.5, typescript-eslint 8.67.0, TypeScript 6.0.3, Secretlint 13.0.5, eslint-plugin-react 7.37.5, eslint-plugin-react-hooks 7.1.1, eslint-plugin-jsx-a11y 6.10.2, ast-grep 0.45.1, jscpd 5.0.15, Dependency Cruiser 18.2.0, and Knip 6.32.2. It supplies its own inert analyzer configuration and never loads project ESLint, Prettier, Secretlint, Babel, parser, plugin, or executable analyzer configuration. Rule options follow the analyzer and plugin versions pinned by the installed Zedbee release. Only bundled rules can be configured; custom plugins cannot be loaded. TypeScript configuration is parsed as selected snapshot data, not executed; installed declaration packages may be resolved through the constrained project `node_modules` boundary. Typed lint loads every contained `tsconfig*.json` in an inspected workspace and uses each project for the files it covers. By default, a TypeScript file outside every loaded project makes typed lint incomplete. This avoids validating changed target code under unrelated compiler settings.
216
225
 
217
- Zedbee does not load any native analyzer config files, including native Prettier and ESLint configs. Adoption therefore has a deliberate tradeoff: teams with native configs may see different Zedbee results because those files are not loaded. Re-express the supported policy in `.zedbeerc.jsonc`, within Zedbee's bounded managed settings, rather than expecting native configuration parity.
226
+ Zedbee does not load any native analyzer config files, including native Prettier and ESLint configs. Adoption therefore has a deliberate tradeoff: teams with native configs may see different Zedbee results because those files are not loaded. Re-express the supported policy in `.zedbeerc.jsonc`, within Zedbee's bounded managed settings, rather than expecting native configuration parity. Generated package-manager lockfiles are excluded from formatting scans and fixes, but remain eligible for other supported checks; see [formatting settings](checks.md#prettier-settings).
227
+
228
+ For commands used in package scripts, Knip reads the installed dependency's
229
+ `package.json` command names as data. This lets it connect commands such as
230
+ `project-check` to the dependency that provides them, including workspace-local
231
+ and root installations. It does not execute those commands, install packages,
232
+ or load their code or plugins. Missing installed metadata can limit command
233
+ recognition. Changes to this metadata invalidate saved dead-code results.
234
+
235
+ Zedbee treats its own entry in `dependencies` or `devDependencies` as intentional
236
+ use, including in workspace packages. You can run it directly from the terminal;
237
+ no hook, package-script alias, or source import is required. This exception applies
238
+ only to unused-dependency findings for the package named `zedbee`. Other unused
239
+ dependencies, undeclared imports, vulnerabilities, and other checks are unchanged.
218
240
 
219
241
  Project checks inspect a workspace as a whole, then compare the isolated selected baseline and target snapshots so existing debt remains non-blocking. This roughly doubles analyzer work. Zedbee runs Knip in a fresh internal worker for each snapshot side, using a captured filesystem shared by Knip and its pinned Oxc WebAssembly resolver. Framework plugins and executable project configs remain disabled. Dynamic imports, framework conventions, wildcard package exports, and TypeScript path aliases may need future managed profiles. Package import aliases (`#name`) in the selected `package.json` are supported, including exact mappings, wildcard mappings, conditions, and fallback arrays. They use the nearest package manifest and the same scan boundary as other imports: an alias cannot bypass checks against installed packages outside the snapshot inventory. Missing aliases remain normal Knip findings; unsafe targets make the dead-code check incomplete. Knip findings can be cached when complete input metadata is available, including the absence checks that protect package resolution. jscpd runs as a subprocess and receives an exact source-file list; exceptionally large workspaces can exceed the operating system argument limit and fail incomplete. Dependency Cruiser runs through its public API.
220
242
 
@@ -286,6 +308,28 @@ Interrupted scans wait for execution cleanup before removing temporary snapshots
286
308
 
287
309
  ## Hooks
288
310
 
311
+ Interactive setup asks whether to install a pre-commit hook. With no existing
312
+ tracked setup, you can choose a tracked hook for the team or a local hook for
313
+ this checkout. A new tracked setup adds hook files and an installer under
314
+ `.husky/`, plus a `prepare` step in `package.json`. Existing `prepare` commands
315
+ are preserved. Review and commit those changes; normal dependency installation
316
+ then activates the hook for teammates. Installation with scripts disabled does
317
+ not activate hooks; run `npx --no-install zedbee hooks install` afterward if needed.
318
+ The installer skips CI, `HUSKY=0`, and directories without Git metadata; the
319
+ tracked prepare script also skips when Zedbee is absent in a production-only
320
+ install. Setup itself does not download dependencies or run project scripts.
321
+
322
+ New tracked setup requires a root `package.json` and refuses to replace custom
323
+ local hooks whose execution cannot be preserved. Interactive setup keeps Local
324
+ and No available when tracked setup is unavailable. Automatic edits of non-shell
325
+ pre-commit scripts are refused; integrate Zedbee through their existing tooling.
326
+ Noninteractive `--hook auto --yes` retains the detected integration or uses a
327
+ local hook. Use `--hook tracked --yes` to explicitly request tracked setup.
328
+
329
+ A local hook stays in Git's private checkout files. It is not shared by a
330
+ commit, push, or clone, so each teammate must opt in separately. Either kind
331
+ can be bypassed by Git options; neither makes checks mandatory on a server.
332
+
289
333
  `zedbee init --hook auto` detects Husky, Lefthook, simple-git-hooks, or raw Git hooks. It preserves unrelated commands, shows exact before/after hashes and diffs, refuses symlink targets, writes atomically, and rolls back earlier writes if a later write fails. Linked worktrees resolve the real Git hook path instead of assuming `.git` is a directory.
290
334
 
291
335
  Generated hooks run `npx --no-install zedbee scan`. This prevents an unexpected network download during a commit, but it means Zedbee must remain installed in the project. Run `zedbee init` again to preview an idempotent update; an existing Zedbee invocation is not duplicated.
package/docs/support.md CHANGED
@@ -15,6 +15,28 @@ This document distinguishes implemented coverage from unsupported or deferred be
15
15
 
16
16
  On Windows, snapshots containing Git symbolic links require permission to create symbolic links. If Windows denies link creation, snapshot construction fails and the scan is incomplete. Zedbee does not elevate the account, change system settings, or substitute regular files for those links.
17
17
 
18
+ ## Nested projects and scan scope
19
+
20
+ A repository can contain independent JavaScript projects in folders such as
21
+ `web/` and `extension/`, without a root `package.json`. Zedbee discovers their
22
+ manifests from the selected Git snapshot and assigns source files to the nearest
23
+ discovered project. Explicit workspace patterns still control workspace discovery.
24
+ Dependency, generated, and vendor directories remain excluded.
25
+ Within an existing project, a nested manifest containing only module-resolution
26
+ settings stays part of that project unless workspace patterns select it separately.
27
+
28
+ Each project has its own analysis target. An uncovered TypeScript file in an
29
+ unrelated project does not stop lint for the project being changed. Within an
30
+ affected project, typed lint still requires the configured TypeScript coverage;
31
+ it does not silently skip an uncovered file and claim a complete result.
32
+
33
+ Complexity and structural-security checks normally analyze changed files and
34
+ their baseline versions, including previous paths after a rename. They do not
35
+ parse unrelated unchanged files. Files explicitly configured with
36
+ `when: "always"` are also analyzed. Checks that need project context, such as typed lint
37
+ and TypeScript, still inspect surrounding code. Reported findings remain tied to
38
+ the changes under review in both staged and `--base` modes.
39
+
18
40
  ## Dependency vulnerability inventories
19
41
 
20
42
  | Package manager | Supported lockfile | Status |