@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.
Files changed (36) hide show
  1. package/dist/code-intelligence-doctor.d.ts +34 -0
  2. package/dist/code-intelligence-doctor.d.ts.map +1 -1
  3. package/dist/code-intelligence-doctor.js +68 -9
  4. package/dist/doc-references.d.ts +59 -0
  5. package/dist/doc-references.d.ts.map +1 -0
  6. package/dist/doc-references.js +190 -0
  7. package/dist/fuzzy-impact.d.ts.map +1 -1
  8. package/dist/fuzzy-impact.js +11 -20
  9. package/dist/index.d.ts +4 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +4 -0
  12. package/dist/knowledge-stale.d.ts.map +1 -1
  13. package/dist/knowledge-stale.js +18 -37
  14. package/dist/nearest-id.d.ts +30 -0
  15. package/dist/nearest-id.d.ts.map +1 -0
  16. package/dist/nearest-id.js +62 -0
  17. package/dist/policy-registry.d.ts +15 -0
  18. package/dist/policy-registry.d.ts.map +1 -0
  19. package/dist/policy-registry.js +64 -0
  20. package/dist/query-resolver.d.ts.map +1 -1
  21. package/dist/query-resolver.js +8 -8
  22. package/dist/reference-registry.d.ts +112 -0
  23. package/dist/reference-registry.d.ts.map +1 -0
  24. package/dist/reference-registry.js +239 -0
  25. package/dist/resolve-project-config.d.ts.map +1 -1
  26. package/dist/resolve-project-config.js +24 -6
  27. package/dist/self-config-doctor-v2.d.ts.map +1 -1
  28. package/dist/self-config-doctor-v2.js +37 -86
  29. package/dist/self-config-doctor.d.ts.map +1 -1
  30. package/dist/self-config-doctor.js +20 -37
  31. package/dist/sharkcraft-inspector.d.ts +13 -1
  32. package/dist/sharkcraft-inspector.d.ts.map +1 -1
  33. package/dist/sharkcraft-inspector.js +5 -3
  34. package/dist/test-runner.d.ts.map +1 -1
  35. package/dist/test-runner.js +10 -20
  36. package/package.json +17 -17
@@ -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(reg.list().map((p) => p.id));
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
- const checks = inspection.policyChecks ?? [];
429
- return new Set(checks.map((c) => c.id));
427
+ return new Set(listPolicyIds(inspection));
430
428
  }
431
429
  function listConstructIdsQuietly(inspection) {
432
- const direct = inspection.constructs;
433
- if (direct && direct.length > 0)
434
- return new Set(direct.map((c) => c.id));
435
- const reg = inspection
436
- .constructRegistry;
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.28",
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.28",
46
- "@shrkcrft/config": "^0.1.0-alpha.28",
47
- "@shrkcrft/workspace": "^0.1.0-alpha.28",
48
- "@shrkcrft/knowledge": "^0.1.0-alpha.28",
49
- "@shrkcrft/rules": "^0.1.0-alpha.28",
50
- "@shrkcrft/paths": "^0.1.0-alpha.28",
51
- "@shrkcrft/templates": "^0.1.0-alpha.28",
52
- "@shrkcrft/context": "^0.1.0-alpha.28",
53
- "@shrkcrft/pipelines": "^0.1.0-alpha.28",
54
- "@shrkcrft/packs": "^0.1.0-alpha.28",
55
- "@shrkcrft/presets": "^0.1.0-alpha.28",
56
- "@shrkcrft/boundaries": "^0.1.0-alpha.28",
57
- "@shrkcrft/generator": "^0.1.0-alpha.28",
58
- "@shrkcrft/importer": "^0.1.0-alpha.28",
59
- "@shrkcrft/plugin-api": "^0.1.0-alpha.28",
60
- "@shrkcrft/dashboard-api": "^0.1.0-alpha.28",
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": {