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.
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +17 -2
- package/dist/commands/sync/manifest.d.ts.map +1 -1
- package/dist/commands/sync/manifest.js +6 -7
- package/dist/extractors/manifest.d.ts.map +1 -1
- package/dist/extractors/manifest.js +3 -5
- package/dist/extractors/symbol-coordinates.d.ts.map +1 -1
- package/dist/extractors/symbol-coordinates.js +3 -5
- package/dist/extractors/symbols-coordinator.d.ts.map +1 -1
- package/dist/extractors/symbols-coordinator.js +3 -4
- package/dist/operations/bootstrap/conflict-review.d.ts +17 -9
- package/dist/operations/bootstrap/conflict-review.d.ts.map +1 -1
- package/dist/operations/bootstrap/conflict-review.js +59 -26
- package/dist/operations/bootstrap/generate.d.ts.map +1 -1
- package/dist/operations/bootstrap/generate.js +4 -4
- package/dist/operations/bootstrap/guidance-actions.d.ts.map +1 -1
- package/dist/operations/bootstrap/guidance-actions.js +4 -1
- package/dist/operations/bootstrap/intent-claims.d.ts.map +1 -1
- package/dist/operations/bootstrap/intent-claims.js +1 -0
- package/dist/operations/bootstrap/presentation.d.ts.map +1 -1
- package/dist/operations/bootstrap/presentation.js +6 -2
- package/dist/operations/bootstrap/types.d.ts +2 -0
- package/dist/operations/bootstrap/types.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.d.ts +6 -0
- package/dist/operations/mutation/symbol-granularity.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-granularity.js +13 -5
- package/dist/operations/mutation/symbol-refresh.d.ts.map +1 -1
- package/dist/operations/mutation/symbol-refresh.js +4 -3
- package/dist/operations/mutation/upsert.d.ts.map +1 -1
- package/dist/operations/mutation/upsert.js +3 -2
- package/dist/operations/mutation/validation.js +11 -0
- package/dist/plugins/approved-source-analyzers.generated.d.ts +6 -6
- package/dist/plugins/approved-source-analyzers.generated.js +6 -6
- package/dist/public/operations/migration-plan.d.ts.map +1 -1
- package/dist/public/operations/migration-plan.js +7 -2
- package/dist/public/skills/kibi-bootstrap/SKILL.md +2 -2
- package/dist/public/symbol-granularity.d.ts +5 -0
- package/dist/public/symbol-granularity.d.ts.map +1 -1
- package/dist/public/symbol-granularity.js +12 -3
- package/dist/traceability/staged-consistency.d.ts +1 -1
- package/dist/traceability/staged-consistency.d.ts.map +1 -1
- package/dist/traceability/staged-consistency.js +2 -2
- package/dist/traceability/staged-entity-context.d.ts +18 -0
- package/dist/traceability/staged-entity-context.d.ts.map +1 -0
- package/dist/traceability/staged-entity-context.js +66 -0
- package/dist/utils/repo-relative-path.d.ts +7 -0
- package/dist/utils/repo-relative-path.d.ts.map +1 -1
- package/dist/utils/repo-relative-path.js +26 -0
- package/package.json +4 -4
- package/schema/entities.pl +2 -1
- package/schema/validation.pl +15 -0
- package/src/public/operations/migration-plan.ts +12 -2
- package/src/public/skills/kibi-bootstrap/SKILL.md +2 -2
- 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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
/**
|