@shrkcrft/inspector 0.1.0-alpha.28 → 0.1.0-alpha.30
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/code-intelligence-doctor.d.ts +34 -0
- package/dist/code-intelligence-doctor.d.ts.map +1 -1
- package/dist/code-intelligence-doctor.js +68 -9
- package/dist/doc-references.d.ts +59 -0
- package/dist/doc-references.d.ts.map +1 -0
- package/dist/doc-references.js +190 -0
- package/dist/fuzzy-impact.d.ts.map +1 -1
- package/dist/fuzzy-impact.js +11 -20
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/knowledge-stale.d.ts.map +1 -1
- package/dist/knowledge-stale.js +18 -37
- package/dist/nearest-id.d.ts +30 -0
- package/dist/nearest-id.d.ts.map +1 -0
- package/dist/nearest-id.js +62 -0
- package/dist/policy-registry.d.ts +15 -0
- package/dist/policy-registry.d.ts.map +1 -0
- package/dist/policy-registry.js +64 -0
- package/dist/query-resolver.d.ts.map +1 -1
- package/dist/query-resolver.js +8 -8
- package/dist/reference-registry.d.ts +112 -0
- package/dist/reference-registry.d.ts.map +1 -0
- package/dist/reference-registry.js +239 -0
- package/dist/resolve-project-config.d.ts.map +1 -1
- package/dist/resolve-project-config.js +24 -6
- package/dist/self-config-doctor-v2.d.ts.map +1 -1
- package/dist/self-config-doctor-v2.js +37 -86
- package/dist/self-config-doctor.d.ts.map +1 -1
- package/dist/self-config-doctor.js +20 -37
- package/dist/sharkcraft-inspector.d.ts +13 -1
- package/dist/sharkcraft-inspector.d.ts.map +1 -1
- package/dist/sharkcraft-inspector.js +5 -3
- package/dist/test-runner.d.ts.map +1 -1
- package/dist/test-runner.js +10 -20
- package/package.json +17 -17
package/dist/test-runner.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import * as nodePath from 'node:path';
|
|
3
3
|
import { buildContext } from '@shrkcrft/context';
|
|
4
|
+
import { listConstructs } from "./construct-registry.js";
|
|
5
|
+
import { listPolicyIds } from "./policy-registry.js";
|
|
6
|
+
import { listPlaybooks } from "./playbook-registry.js";
|
|
4
7
|
import { buildTaskPacket } from "./task-packet.js";
|
|
5
8
|
import { rankKnowledgeEntries } from "./task-ranker.js";
|
|
6
9
|
import { contextTuningBoostFor } from "./context-tuning.js";
|
|
@@ -413,36 +416,23 @@ function loadHelperRegistryQuietly() {
|
|
|
413
416
|
}
|
|
414
417
|
}
|
|
415
418
|
function listPlaybookIdsQuietly(inspection) {
|
|
416
|
-
const reg = inspection
|
|
417
|
-
.playbookRegistry;
|
|
418
|
-
if (!reg || typeof reg.list !== 'function')
|
|
419
|
-
return new Set();
|
|
420
419
|
try {
|
|
421
|
-
return new Set(
|
|
420
|
+
return new Set(listPlaybooks(inspection).map((p) => p.id));
|
|
422
421
|
}
|
|
423
422
|
catch {
|
|
424
423
|
return new Set();
|
|
425
424
|
}
|
|
426
425
|
}
|
|
427
426
|
function listPolicyIdsQuietly(inspection) {
|
|
428
|
-
|
|
429
|
-
return new Set(checks.map((c) => c.id));
|
|
427
|
+
return new Set(listPolicyIds(inspection));
|
|
430
428
|
}
|
|
431
429
|
function listConstructIdsQuietly(inspection) {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
if (reg && typeof reg.list === 'function') {
|
|
438
|
-
try {
|
|
439
|
-
return new Set(reg.list().map((c) => c.id));
|
|
440
|
-
}
|
|
441
|
-
catch {
|
|
442
|
-
return new Set();
|
|
443
|
-
}
|
|
430
|
+
try {
|
|
431
|
+
return new Set(listConstructs(inspection).map((c) => c.id));
|
|
432
|
+
}
|
|
433
|
+
catch {
|
|
434
|
+
return new Set();
|
|
444
435
|
}
|
|
445
|
-
return new Set();
|
|
446
436
|
}
|
|
447
437
|
function listCommandIdsQuietly(inspection) {
|
|
448
438
|
const cat = inspection.commandCatalog ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shrkcrft/inspector",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.30",
|
|
4
4
|
"description": "SharkCraft inspector: project overview, doctor checks, AI-agent instructions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SharkCraft contributors",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@shrkcrft/core": "^0.1.0-alpha.
|
|
46
|
-
"@shrkcrft/config": "^0.1.0-alpha.
|
|
47
|
-
"@shrkcrft/workspace": "^0.1.0-alpha.
|
|
48
|
-
"@shrkcrft/knowledge": "^0.1.0-alpha.
|
|
49
|
-
"@shrkcrft/rules": "^0.1.0-alpha.
|
|
50
|
-
"@shrkcrft/paths": "^0.1.0-alpha.
|
|
51
|
-
"@shrkcrft/templates": "^0.1.0-alpha.
|
|
52
|
-
"@shrkcrft/context": "^0.1.0-alpha.
|
|
53
|
-
"@shrkcrft/pipelines": "^0.1.0-alpha.
|
|
54
|
-
"@shrkcrft/packs": "^0.1.0-alpha.
|
|
55
|
-
"@shrkcrft/presets": "^0.1.0-alpha.
|
|
56
|
-
"@shrkcrft/boundaries": "^0.1.0-alpha.
|
|
57
|
-
"@shrkcrft/generator": "^0.1.0-alpha.
|
|
58
|
-
"@shrkcrft/importer": "^0.1.0-alpha.
|
|
59
|
-
"@shrkcrft/plugin-api": "^0.1.0-alpha.
|
|
60
|
-
"@shrkcrft/dashboard-api": "^0.1.0-alpha.
|
|
45
|
+
"@shrkcrft/core": "^0.1.0-alpha.30",
|
|
46
|
+
"@shrkcrft/config": "^0.1.0-alpha.30",
|
|
47
|
+
"@shrkcrft/workspace": "^0.1.0-alpha.30",
|
|
48
|
+
"@shrkcrft/knowledge": "^0.1.0-alpha.30",
|
|
49
|
+
"@shrkcrft/rules": "^0.1.0-alpha.30",
|
|
50
|
+
"@shrkcrft/paths": "^0.1.0-alpha.30",
|
|
51
|
+
"@shrkcrft/templates": "^0.1.0-alpha.30",
|
|
52
|
+
"@shrkcrft/context": "^0.1.0-alpha.30",
|
|
53
|
+
"@shrkcrft/pipelines": "^0.1.0-alpha.30",
|
|
54
|
+
"@shrkcrft/packs": "^0.1.0-alpha.30",
|
|
55
|
+
"@shrkcrft/presets": "^0.1.0-alpha.30",
|
|
56
|
+
"@shrkcrft/boundaries": "^0.1.0-alpha.30",
|
|
57
|
+
"@shrkcrft/generator": "^0.1.0-alpha.30",
|
|
58
|
+
"@shrkcrft/importer": "^0.1.0-alpha.30",
|
|
59
|
+
"@shrkcrft/plugin-api": "^0.1.0-alpha.30",
|
|
60
|
+
"@shrkcrft/dashboard-api": "^0.1.0-alpha.30",
|
|
61
61
|
"typescript": "^5.6.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|