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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-lite",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Local Project Map + Change Control for coding agents.",
5
5
  "keywords": [
6
6
  "codex",
@@ -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 decomposition = decompositionSignals({
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';