hive-lite 0.1.7 → 0.1.8
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/package.json +1 -1
- package/src/lib/context.js +3 -2
package/package.json
CHANGED
package/src/lib/context.js
CHANGED
|
@@ -1115,9 +1115,9 @@ function hasBlockingMapGapWarning(warnings = []) {
|
|
|
1115
1115
|
|
|
1116
1116
|
function contextMode(area, selectedWritableDirect, validationPlan, relevant, decomposition = [], warnings = []) {
|
|
1117
1117
|
if (!area) return 'needs_map';
|
|
1118
|
-
if (decomposition.some((item) => item.blocking)) return 'needs_decomposition';
|
|
1119
1118
|
if (selectedWritableDirect.length === 0) return 'discovery_context';
|
|
1120
1119
|
if (hasBlockingMapGapWarning(warnings)) return 'discovery_context';
|
|
1120
|
+
if (decomposition.some((item) => item.blocking)) return 'needs_decomposition';
|
|
1121
1121
|
if (relevant.length === 0 || !relevant.some((file) => file.source === 'project_map')) return 'discovery_context';
|
|
1122
1122
|
if (validationPlan.length === 0) return 'discovery_context';
|
|
1123
1123
|
return 'edit_context';
|
|
@@ -1396,7 +1396,7 @@ function createContextPacket(root, intent, options = {}) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
const reviewGated = area ? reviewGatedNotices(scope) : [];
|
|
1398
1398
|
warnings.push(...splitRoutingWarnings(originSplit, phaseStatus, originPhaseAreaId, requestedArea));
|
|
1399
|
-
const
|
|
1399
|
+
const rawDecomposition = decompositionSignals({
|
|
1400
1400
|
map,
|
|
1401
1401
|
area,
|
|
1402
1402
|
confidence,
|
|
@@ -1407,6 +1407,7 @@ function createContextPacket(root, intent, options = {}) {
|
|
|
1407
1407
|
validationPlan,
|
|
1408
1408
|
constrainedAreaId,
|
|
1409
1409
|
});
|
|
1410
|
+
const decomposition = hasBlockingMapGapWarning(warnings) ? [] : rawDecomposition;
|
|
1410
1411
|
const phaseSeeds = decomposition.length > 0 ? candidatePhaseSeeds(scored, intent) : [];
|
|
1411
1412
|
let mode = contextMode(area, writePlan.selectedWritableDirect, validationPlan, relevant, decomposition, warnings);
|
|
1412
1413
|
if (missingSplitReference(phaseStatus) && mode === 'edit_context') mode = 'discovery_context';
|