@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.
- package/dist/index.js +32 -10
- package/dist/index.js.map +1 -1
- package/dist/investigation/verbosity-cli.js +6 -3
- package/dist/investigation/verbosity-cli.js.map +1 -1
- package/dist/mcp/server.js +6 -3
- package/dist/mcp/server.js.map +1 -1
- package/dist/whimsy/time-bank-smoke.js +6 -3
- package/dist/whimsy/time-bank-smoke.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -13800,15 +13800,18 @@ function inferHandoffTarget(input) {
|
|
|
13800
13800
|
return "plan";
|
|
13801
13801
|
}
|
|
13802
13802
|
function isShipIntent(input) {
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
);
|
|
13803
|
+
const line = input.trim();
|
|
13804
|
+
if (/\?\s*$/.test(line) || QUESTION_LEAD_RE.test(line)) return false;
|
|
13805
|
+
return SHIP_INTENT_RE.test(line);
|
|
13806
13806
|
}
|
|
13807
|
+
var QUESTION_LEAD_RE, SHIP_INTENT_RE;
|
|
13807
13808
|
var init_handoff_draft = __esm({
|
|
13808
13809
|
"src/conversation/handoff-draft.ts"() {
|
|
13809
13810
|
"use strict";
|
|
13810
13811
|
init_profile();
|
|
13811
13812
|
init_session_analysis();
|
|
13813
|
+
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;
|
|
13814
|
+
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;
|
|
13812
13815
|
}
|
|
13813
13816
|
});
|
|
13814
13817
|
|