kibi-cli 2.27.0 → 2.28.1

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 (54) hide show
  1. package/dist/commands/check.d.ts.map +1 -1
  2. package/dist/commands/check.js +17 -2
  3. package/dist/commands/sync/manifest.d.ts.map +1 -1
  4. package/dist/commands/sync/manifest.js +6 -7
  5. package/dist/extractors/manifest.d.ts.map +1 -1
  6. package/dist/extractors/manifest.js +3 -5
  7. package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
  8. package/dist/extractors/symbol-coordinates.js +3 -5
  9. package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
  10. package/dist/extractors/symbols-coordinator.js +3 -4
  11. package/dist/operations/bootstrap/conflict-review.d.ts +17 -9
  12. package/dist/operations/bootstrap/conflict-review.d.ts.map +1 -1
  13. package/dist/operations/bootstrap/conflict-review.js +59 -26
  14. package/dist/operations/bootstrap/generate.d.ts.map +1 -1
  15. package/dist/operations/bootstrap/generate.js +4 -4
  16. package/dist/operations/bootstrap/guidance-actions.d.ts.map +1 -1
  17. package/dist/operations/bootstrap/guidance-actions.js +4 -1
  18. package/dist/operations/bootstrap/intent-claims.d.ts.map +1 -1
  19. package/dist/operations/bootstrap/intent-claims.js +1 -0
  20. package/dist/operations/bootstrap/presentation.d.ts.map +1 -1
  21. package/dist/operations/bootstrap/presentation.js +6 -2
  22. package/dist/operations/bootstrap/types.d.ts +2 -0
  23. package/dist/operations/bootstrap/types.d.ts.map +1 -1
  24. package/dist/operations/mutation/symbol-granularity.d.ts +6 -0
  25. package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
  26. package/dist/operations/mutation/symbol-granularity.js +13 -5
  27. package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
  28. package/dist/operations/mutation/symbol-refresh.js +4 -3
  29. package/dist/operations/mutation/upsert.d.ts.map +1 -1
  30. package/dist/operations/mutation/upsert.js +3 -2
  31. package/dist/operations/mutation/validation.js +11 -0
  32. package/dist/plugins/approved-source-analyzers.generated.d.ts +6 -6
  33. package/dist/plugins/approved-source-analyzers.generated.js +6 -6
  34. package/dist/public/operations/migration-plan.d.ts.map +1 -1
  35. package/dist/public/operations/migration-plan.js +7 -2
  36. package/dist/public/skills/kibi-bootstrap/SKILL.md +2 -2
  37. package/dist/public/symbol-granularity.d.ts +5 -0
  38. package/dist/public/symbol-granularity.d.ts.map +1 -1
  39. package/dist/public/symbol-granularity.js +12 -3
  40. package/dist/traceability/staged-consistency.d.ts +1 -1
  41. package/dist/traceability/staged-consistency.d.ts.map +1 -1
  42. package/dist/traceability/staged-consistency.js +2 -2
  43. package/dist/traceability/staged-entity-context.d.ts +18 -0
  44. package/dist/traceability/staged-entity-context.d.ts.map +1 -0
  45. package/dist/traceability/staged-entity-context.js +66 -0
  46. package/dist/utils/repo-relative-path.d.ts +7 -0
  47. package/dist/utils/repo-relative-path.d.ts.map +1 -1
  48. package/dist/utils/repo-relative-path.js +26 -0
  49. package/package.json +4 -4
  50. package/schema/entities.pl +2 -1
  51. package/schema/validation.pl +15 -0
  52. package/src/public/operations/migration-plan.ts +12 -2
  53. package/src/public/skills/kibi-bootstrap/SKILL.md +2 -2
  54. package/src/public/symbol-granularity.ts +13 -5
@@ -107,14 +107,22 @@ export function isBehavioralSymbol(
107
107
  return getSymbolRole(candidate) === "behavioral";
108
108
  }
109
109
 
110
+ /**
111
+ * The behavioral candidates' names, the place a coarse link should move to:
112
+ * functions, methods and accessors first, then properties (behavioral in the
113
+ * schema, but usually plain fields), each group sorted by name.
114
+ */
115
+ // implements REQ-kibi-symbol-link-guidance
110
116
  export function getBehavioralSymbolNames(
111
117
  candidates: GranularSymbolCandidate[],
112
118
  ): string[] {
113
- return [
114
- ...new Set(
115
- candidates.filter(isBehavioralSymbol).map((candidate) => candidate.name),
116
- ),
117
- ].sort();
119
+ const behavioral = candidates.filter(isBehavioralSymbol);
120
+ const names = (properties: boolean) =>
121
+ behavioral
122
+ .filter((candidate) => (candidate.kind === "property") === properties)
123
+ .map((candidate) => candidate.name)
124
+ .sort();
125
+ return [...new Set([...names(false), ...names(true)])];
118
126
  }
119
127
 
120
128
  /**