@geonosis/doctor 2.7.0 → 2.8.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/CHANGELOG.md +6 -0
- package/bin/geonosis-doctor.mjs +2 -2
- package/dist/{chunk-WUFVAO7G.js → chunk-2ZVCJG5R.js} +2 -10
- package/dist/doctor-cli.js +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/bin/geonosis-doctor.mjs
CHANGED
|
@@ -34,13 +34,13 @@ if (existsSync(src)) {
|
|
|
34
34
|
const built = newest(dist)
|
|
35
35
|
if (built === 0) {
|
|
36
36
|
process.stderr.write(
|
|
37
|
-
'geonosis-doctor: this tree has never been built — run pnpm build. No dist here at all, which is what a fresh clone or a linked git worktree starts with; nothing is stale.\n'
|
|
37
|
+
'geonosis-doctor: this tree has never been built — run pnpm build. No dist here at all, which is what a fresh clone or a linked git worktree starts with; nothing is stale.\n'
|
|
38
38
|
)
|
|
39
39
|
process.exit(2)
|
|
40
40
|
}
|
|
41
41
|
if (newest(src, NOT_SOURCE) > built) {
|
|
42
42
|
process.stderr.write(
|
|
43
|
-
'geonosis-doctor: dist is older than src — run pnpm build before trusting this bin.\n'
|
|
43
|
+
'geonosis-doctor: dist is older than src — run pnpm build before trusting this bin.\n'
|
|
44
44
|
)
|
|
45
45
|
process.exit(2)
|
|
46
46
|
}
|
|
@@ -957,11 +957,7 @@ var linkedBins = (root, workspaces) => {
|
|
|
957
957
|
);
|
|
958
958
|
if (missing.length === 0) {
|
|
959
959
|
return [
|
|
960
|
-
finding4(
|
|
961
|
-
"workspace bins",
|
|
962
|
-
"OK",
|
|
963
|
-
"every workspace bin a script names is linked under the root"
|
|
964
|
-
)
|
|
960
|
+
finding4("workspace bins", "OK", "every workspace bin a script names is linked under the root")
|
|
965
961
|
];
|
|
966
962
|
}
|
|
967
963
|
return missing.map(
|
|
@@ -2059,11 +2055,7 @@ var checkExams = ({
|
|
|
2059
2055
|
`${name} \u2192 ${exam}`,
|
|
2060
2056
|
"WARN",
|
|
2061
2057
|
`this tree declares ${name} and no test file imports ${exam}. A floor bump that broke it would read exactly like a green tier: the exam is the only thing that asks.`
|
|
2062
|
-
) : finding7(
|
|
2063
|
-
`${name} \u2192 ${exam}`,
|
|
2064
|
-
"OK",
|
|
2065
|
-
`${relativePath(root, importing.path)} runs ${exam}`
|
|
2066
|
-
)
|
|
2058
|
+
) : finding7(`${name} \u2192 ${exam}`, "OK", `${relativePath(root, importing.path)} runs ${exam}`)
|
|
2067
2059
|
);
|
|
2068
2060
|
}
|
|
2069
2061
|
}
|
package/dist/doctor-cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare const discoverConfigs: (root: string) => DiscoveredConfig[];
|
|
|
140
140
|
declare const discoverWorkspaces: (root: string) => Workspace[];
|
|
141
141
|
declare const readRatchet: (root: string) => RatchetConfig | undefined;
|
|
142
142
|
|
|
143
|
-
declare const runDoctor: ({ baseline, home, only, oxlint, root, strict
|
|
143
|
+
declare const runDoctor: ({ baseline, home, only, oxlint, root, strict }: DoctorOptions) => Promise<DoctorReport>;
|
|
144
144
|
|
|
145
145
|
/** The file `create-geonosis --domains` writes, held against the scaffold's own name by a test. */
|
|
146
146
|
declare const COMPOSITION_ROOT = "src/platform.ts";
|
|
@@ -160,7 +160,7 @@ declare const READERS: Record<string, string>;
|
|
|
160
160
|
* block nothing reads. The other four checks ask whether a gate measures what it names; this one
|
|
161
161
|
* asks whether it is still there at all.
|
|
162
162
|
*/
|
|
163
|
-
declare const checkDrift: ({ readers, root, userSettings, workspaces
|
|
163
|
+
declare const checkDrift: ({ readers, root, userSettings, workspaces }: {
|
|
164
164
|
/**
|
|
165
165
|
* Which package reads which block. It is a parameter so a test can name one that can NEVER be
|
|
166
166
|
* installed: a fixture that turns on whether some real package happens to be present on the base
|
|
@@ -211,7 +211,7 @@ declare const enabledRulesOf: (rules: Record<string, unknown>, plugin: string) =
|
|
|
211
211
|
* place where the difference is visible, so the question is asked there, under THIS config's
|
|
212
212
|
* options, because the options are usually where the reach went.
|
|
213
213
|
*/
|
|
214
|
-
declare const checkExercised: ({ config, corpus, entry, oxlint, repoCorpus, root
|
|
214
|
+
declare const checkExercised: ({ config, corpus, entry, oxlint, repoCorpus, root }: {
|
|
215
215
|
config: DiscoveredConfig;
|
|
216
216
|
corpus: string;
|
|
217
217
|
/** The plugin module oxlint loads from this config's directory — where the probes are read. */
|
|
@@ -261,7 +261,7 @@ declare const declaredGroupsOf: (root: string) => HeldTogether[] | undefined;
|
|
|
261
261
|
* pnpm the store keeps every version ever installed, so a count of directories answers nonsense on
|
|
262
262
|
* a correct tree.
|
|
263
263
|
*/
|
|
264
|
-
declare const checkGroup: ({ groups, root, workspaces
|
|
264
|
+
declare const checkGroup: ({ groups, root, workspaces }: {
|
|
265
265
|
groups?: readonly HeldTogether[];
|
|
266
266
|
root: string;
|
|
267
267
|
workspaces: Workspace[];
|
|
@@ -293,7 +293,7 @@ declare const installedPluginVersions: (home: string, name: string) => string[];
|
|
|
293
293
|
* runs the hooks of the one before, and a refusal added this release cannot fire. That is the
|
|
294
294
|
* declared-versus-loaded question one surface out, and it is this check's to ask.
|
|
295
295
|
*/
|
|
296
|
-
declare const checkClaudePlugin: ({ candidate, home, name, train
|
|
296
|
+
declare const checkClaudePlugin: ({ candidate, home, name, train }: {
|
|
297
297
|
/**
|
|
298
298
|
* Whether the packages here are a RELEASE CANDIDATE the registry has never seen — installed from
|
|
299
299
|
* tarballs or a `file:` override. `claude plugin update` reads the marketplace, so it cannot
|
|
@@ -320,7 +320,7 @@ declare const satisfies: (version: string, spec: string) => boolean | undefined;
|
|
|
320
320
|
* config, that names the package in any dependency block — ending at the root's. A workspace that
|
|
321
321
|
* declares nothing inherits the root's pin, which is what a hoisted install actually installed.
|
|
322
322
|
*/
|
|
323
|
-
declare const declaredFor: ({ dir, specifier, workspaces
|
|
323
|
+
declare const declaredFor: ({ dir, specifier, workspaces }: {
|
|
324
324
|
dir: string;
|
|
325
325
|
specifier: string;
|
|
326
326
|
workspaces: Workspace[];
|
|
@@ -328,7 +328,7 @@ declare const declaredFor: ({ dir, specifier, workspaces, }: {
|
|
|
328
328
|
at: string;
|
|
329
329
|
spec: string;
|
|
330
330
|
} | undefined;
|
|
331
|
-
declare const checkLoaded: ({ configs, home, root, workspaces
|
|
331
|
+
declare const checkLoaded: ({ configs, home, root, workspaces }: {
|
|
332
332
|
configs: DiscoveredConfig[];
|
|
333
333
|
home?: string;
|
|
334
334
|
root: string;
|
|
@@ -354,7 +354,7 @@ type ObservabilityConfig = {
|
|
|
354
354
|
/** What kind of sink this repo runs: `posthog`, `otlp`, `memory`, … */
|
|
355
355
|
sink?: string;
|
|
356
356
|
};
|
|
357
|
-
declare const checkObservability: ({ now, root
|
|
357
|
+
declare const checkObservability: ({ now, root }: {
|
|
358
358
|
now: number;
|
|
359
359
|
root: string;
|
|
360
360
|
}) => Promise<Finding[]>;
|
|
@@ -413,7 +413,7 @@ declare const relativeToRoot: (root: string, path: string) => string;
|
|
|
413
413
|
* somebody deleted, and a FAIL on every fresh install is the shape that teaches a reader to skim
|
|
414
414
|
* the section — the lesson the `runner` check already learned about warning the wrong runner.
|
|
415
415
|
*/
|
|
416
|
-
declare const checkExams: ({ root, workspaces
|
|
416
|
+
declare const checkExams: ({ root, workspaces }: {
|
|
417
417
|
root: string;
|
|
418
418
|
workspaces: Workspace[];
|
|
419
419
|
}) => Finding[];
|
|
@@ -429,7 +429,7 @@ declare const checkExams: ({ root, workspaces, }: {
|
|
|
429
429
|
* a WARN that names the wrong runner's sin is a line a reader learns to skip, and the lines it
|
|
430
430
|
* teaches them to skip are the true ones next to it.
|
|
431
431
|
*/
|
|
432
|
-
declare const checkRunner: ({ ratchet, root, workspaces
|
|
432
|
+
declare const checkRunner: ({ ratchet, root, workspaces }: {
|
|
433
433
|
ratchet?: RatchetConfig;
|
|
434
434
|
root: string;
|
|
435
435
|
workspaces: Workspace[];
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/doctor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "The adoption doctor — declared ≠ loaded, enabled ≠ exercised, a baseline that grew, a runner whose exit code is the only verdict.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@geonosis/lint-parity": "2.
|
|
39
|
+
"@geonosis/lint-parity": "2.8.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@geonosis/ratchet": "2.
|
|
42
|
+
"@geonosis/ratchet": "2.8.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"oxlint": ">=1.77"
|