@sonnechasser/ntrp 0.2.0 → 0.2.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.
@@ -13949,15 +13949,18 @@ function inferHandoffTarget(input) {
13949
13949
  return "plan";
13950
13950
  }
13951
13951
  function isShipIntent(input) {
13952
- return /\b(handoff|ship|deliver|board memo|export|turn this into|write.?up|action plan)\b/i.test(
13953
- input.trim()
13954
- );
13952
+ const line = input.trim();
13953
+ if (/\?\s*$/.test(line) || QUESTION_LEAD_RE.test(line)) return false;
13954
+ return SHIP_INTENT_RE.test(line);
13955
13955
  }
13956
+ var QUESTION_LEAD_RE, SHIP_INTENT_RE;
13956
13957
  var init_handoff_draft = __esm({
13957
13958
  "src/conversation/handoff-draft.ts"() {
13958
13959
  "use strict";
13959
13960
  init_profile();
13960
13961
  init_session_analysis();
13962
+ QUESTION_LEAD_RE = /^\s*(what|why|how|when|where|who|which|is|are|was|were|do|does|did|explain|tell me|help me understand)\b/i;
13963
+ SHIP_INTENT_RE = /\b(ship|export|deliver|write[- ]?up|board memo|action plan|turn (this|it|that) into|(draft|create|make|build|prepare|generate|send)\s+(me\s+)?(a\s+|the\s+)?hand[- ]?off|hand[- ]?off\s+(prompt|doc|document|plan))\b/i;
13961
13964
  }
13962
13965
  });
13963
13966