@staff0rd/assist 0.901.0 → 0.903.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.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.901.0",
9
+ version: "0.903.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -879,6 +879,17 @@ var adviceFragmentNames = [
879
879
  "verify"
880
880
  ];
881
881
 
882
+ // src/shared/defaultCriticalPaths.ts
883
+ var defaultCriticalPaths = [
884
+ "**/.github/workflows/**",
885
+ "**/.github/actions/**",
886
+ "**/package.json",
887
+ "**/Dockerfile",
888
+ "**/Dockerfile.*",
889
+ "**/*.Dockerfile",
890
+ "**/CLAUDE.md"
891
+ ];
892
+
882
893
  // src/shared/hotkeys/hotkeysSchema.ts
883
894
  import { z } from "zod";
884
895
 
@@ -1163,7 +1174,7 @@ var assistConfigShape = {
1163
1174
  review: z5.strictObject({
1164
1175
  codexModel: z5.string().optional(),
1165
1176
  highLevel: z5.strictObject({
1166
- criticalPaths: z5.array(z5.string()).default([]),
1177
+ criticalPaths: z5.array(z5.string()).default(defaultCriticalPaths),
1167
1178
  uiPaths: z5.array(z5.string()).default([]),
1168
1179
  descriptionWordCap: z5.number().int().positive().default(300),
1169
1180
  testPaths: z5.array(z5.string()).default(["**/*.{test,spec}.{ts,tsx,js,jsx}"]),
@@ -6217,7 +6228,7 @@ var reviewConfigHelp = [
6217
6228
  {
6218
6229
  key: "review.highLevel.criticalPaths",
6219
6230
  setter: 'assist config set review.highLevel.criticalPaths "**/*.graphql,en-AU/translation.json"',
6220
- note: "comma-separated globs whose full diffs the high-level review shows; unset shows none"
6231
+ note: `comma-separated globs whose full diffs the high-level review shows; a value replaces the default (${defaultCriticalPaths.join(",")})`
6221
6232
  },
6222
6233
  {
6223
6234
  key: "review.highLevel.uiPaths",
@@ -35715,7 +35726,7 @@ var DEFAULT_COLLAPSED_PATHS = ["**/*.test.*", "**/generated/**"];
35715
35726
  function resolveHighLevelConfig(config) {
35716
35727
  const highLevel = config.review?.highLevel;
35717
35728
  return {
35718
- criticalPaths: highLevel?.criticalPaths ?? [],
35729
+ criticalPaths: highLevel?.criticalPaths ?? defaultCriticalPaths,
35719
35730
  uiPaths: highLevel?.uiPaths ?? [],
35720
35731
  descriptionWordCap: highLevel?.descriptionWordCap ?? DEFAULT_DESCRIPTION_WORD_CAP,
35721
35732
  testPaths: highLevel?.testPaths ?? DEFAULT_TEST_PATHS,
@@ -36887,7 +36898,7 @@ function formatDiff(diff3) {
36887
36898
  function formatCriticalDiffs(diffs, criticalPaths) {
36888
36899
  if (criticalPaths.length === 0)
36889
36900
  return `${chalk237.bold.underline("Critical diffs")}
36890
- ${chalk237.dim("review.highLevel.criticalPaths is unset, so no diffs are shown")}`;
36901
+ ${chalk237.dim("review.highLevel.criticalPaths is empty, so no diffs are shown")}`;
36891
36902
  if (diffs.length === 0)
36892
36903
  return `${chalk237.bold.underline("Critical diffs")}
36893
36904
  ${chalk237.dim(`no changed file matches ${criticalPaths.join(", ")}`)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.901.0",
3
+ "version": "0.903.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {