@staff0rd/assist 0.821.0 → 0.822.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.
|
|
9
|
+
version: "0.822.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -938,7 +938,8 @@ var assistConfigShape = {
|
|
|
938
938
|
criticalPaths: z5.array(z5.string()).default([]),
|
|
939
939
|
uiPaths: z5.array(z5.string()).default([]),
|
|
940
940
|
descriptionWordCap: z5.number().int().positive().default(300),
|
|
941
|
-
testPaths: z5.array(z5.string()).default(["**/*.{test,spec}.{ts,tsx,js,jsx}"])
|
|
941
|
+
testPaths: z5.array(z5.string()).default(["**/*.{test,spec}.{ts,tsx,js,jsx}"]),
|
|
942
|
+
collapsedPaths: z5.array(z5.string()).default(["**/*.test.*", "**/generated/**"])
|
|
942
943
|
}).optional()
|
|
943
944
|
}).optional(),
|
|
944
945
|
readTime: z5.strictObject({
|
|
@@ -13376,6 +13377,11 @@ var reviewConfigHelp = [
|
|
|
13376
13377
|
key: "review.highLevel.testPaths",
|
|
13377
13378
|
setter: 'assist config set review.highLevel.testPaths "**/*.test.ts,e2e/**/*.spec.ts"',
|
|
13378
13379
|
note: "comma-separated globs of test files whose describe/it hierarchy backs the tests item (default **/*.{test,spec}.{ts,tsx,js,jsx})"
|
|
13380
|
+
},
|
|
13381
|
+
{
|
|
13382
|
+
key: "review.highLevel.collapsedPaths",
|
|
13383
|
+
setter: 'assist config set review.highLevel.collapsedPaths "**/*.test.*,**/generated/**"',
|
|
13384
|
+
note: "comma-separated globs whose files start collapsed in the high-level changed-files tree; every other file starts expanded (default **/*.test.*,**/generated/**)"
|
|
13379
13385
|
}
|
|
13380
13386
|
];
|
|
13381
13387
|
|
|
@@ -34975,7 +34981,8 @@ async function configureConfigKeys(questions, options2 = {}) {
|
|
|
34975
34981
|
var highLevelConfigKeys = {
|
|
34976
34982
|
criticalPaths: "review.highLevel.criticalPaths",
|
|
34977
34983
|
uiPaths: "review.highLevel.uiPaths",
|
|
34978
|
-
descriptionWordCap: "review.highLevel.descriptionWordCap"
|
|
34984
|
+
descriptionWordCap: "review.highLevel.descriptionWordCap",
|
|
34985
|
+
collapsedPaths: "review.highLevel.collapsedPaths"
|
|
34979
34986
|
};
|
|
34980
34987
|
|
|
34981
34988
|
// src/commands/review/highLevel/buildHighLevelQuestions.ts
|
|
@@ -34995,6 +35002,11 @@ function buildHighLevelQuestions(current, proposed) {
|
|
|
34995
35002
|
key: highLevelConfigKeys.descriptionWordCap,
|
|
34996
35003
|
question: "Description word cap (blank to leave unset)",
|
|
34997
35004
|
suggest: String(current.descriptionWordCap)
|
|
35005
|
+
},
|
|
35006
|
+
{
|
|
35007
|
+
key: highLevelConfigKeys.collapsedPaths,
|
|
35008
|
+
question: "Collapsed paths \u2014 comma-separated globs whose files start collapsed in the changed-files tree (blank to leave unset)",
|
|
35009
|
+
suggest: suggestGlobs(current.collapsedPaths, [])
|
|
34998
35010
|
}
|
|
34999
35011
|
];
|
|
35000
35012
|
}
|
|
@@ -35150,13 +35162,15 @@ function askClaude(prompt, cwd) {
|
|
|
35150
35162
|
// src/commands/review/highLevel/resolveHighLevelConfig.ts
|
|
35151
35163
|
var DEFAULT_DESCRIPTION_WORD_CAP = 300;
|
|
35152
35164
|
var DEFAULT_TEST_PATHS = ["**/*.{test,spec}.{ts,tsx,js,jsx}"];
|
|
35165
|
+
var DEFAULT_COLLAPSED_PATHS = ["**/*.test.*", "**/generated/**"];
|
|
35153
35166
|
function resolveHighLevelConfig(config) {
|
|
35154
35167
|
const highLevel = config.review?.highLevel;
|
|
35155
35168
|
return {
|
|
35156
35169
|
criticalPaths: highLevel?.criticalPaths ?? [],
|
|
35157
35170
|
uiPaths: highLevel?.uiPaths ?? [],
|
|
35158
35171
|
descriptionWordCap: highLevel?.descriptionWordCap ?? DEFAULT_DESCRIPTION_WORD_CAP,
|
|
35159
|
-
testPaths: highLevel?.testPaths ?? DEFAULT_TEST_PATHS
|
|
35172
|
+
testPaths: highLevel?.testPaths ?? DEFAULT_TEST_PATHS,
|
|
35173
|
+
collapsedPaths: highLevel?.collapsedPaths ?? DEFAULT_COLLAPSED_PATHS
|
|
35160
35174
|
};
|
|
35161
35175
|
}
|
|
35162
35176
|
|
|
@@ -35807,6 +35821,7 @@ function gatherHighLevelSubject(prNumber, force) {
|
|
|
35807
35821
|
)
|
|
35808
35822
|
),
|
|
35809
35823
|
testPaths: config.testPaths,
|
|
35824
|
+
collapsedPaths: config.collapsedPaths,
|
|
35810
35825
|
...saved ? { saved } : {}
|
|
35811
35826
|
};
|
|
35812
35827
|
}
|
|
@@ -35910,6 +35925,7 @@ function highLevelPreviewPayload(subject) {
|
|
|
35910
35925
|
criticalPaths,
|
|
35911
35926
|
tests,
|
|
35912
35927
|
testPaths,
|
|
35928
|
+
collapsedPaths,
|
|
35913
35929
|
saved
|
|
35914
35930
|
} = subject;
|
|
35915
35931
|
return {
|
|
@@ -35921,6 +35937,7 @@ function highLevelPreviewPayload(subject) {
|
|
|
35921
35937
|
criticalPaths,
|
|
35922
35938
|
tests,
|
|
35923
35939
|
testPaths,
|
|
35940
|
+
collapsedPaths,
|
|
35924
35941
|
...saved ? { saved } : {}
|
|
35925
35942
|
};
|
|
35926
35943
|
}
|