@mycompbox/compbox-mcp 1.10.1 → 1.11.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/index.js +24 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -397,7 +397,7 @@ function interviewFieldKeys() {
|
|
|
397
397
|
}
|
|
398
398
|
return out;
|
|
399
399
|
}
|
|
400
|
-
function buildInterviewSystemPrompt(definition = INTERVIEW_DEFINITION) {
|
|
400
|
+
function buildInterviewSystemPrompt(definition = INTERVIEW_DEFINITION, seedContext) {
|
|
401
401
|
const requiredSections = definition.filter((s) => s.required);
|
|
402
402
|
const optionalSections = definition.filter((s) => !s.required);
|
|
403
403
|
const renderSection = (s) => {
|
|
@@ -413,7 +413,7 @@ ${followUps}`;
|
|
|
413
413
|
"description"
|
|
414
414
|
];
|
|
415
415
|
const completionShape = completionKeys.map((k) => `"${k}": "..."`).join(", ");
|
|
416
|
-
|
|
416
|
+
const base = `You are the CompBox request-formulator, interviewing an employee to turn their idea into a well-formed Epic Request. Ask exactly ONE short, focused question at a time \u2014 never multiple questions in one message, never preamble or explanation.
|
|
417
417
|
|
|
418
418
|
Work through these interview sections in order. Cover EVERY required section; for optional sections, ask about them too, but if the employee has nothing to add or declines, move on and leave that field out (never invent or pad it):
|
|
419
419
|
|
|
@@ -435,6 +435,27 @@ Once you have gathered the required sections (and covered the optional ones), re
|
|
|
435
435
|
\`\`\`
|
|
436
436
|
|
|
437
437
|
Until then, respond with ONLY your next question as plain text \u2014 no JSON, no labels, no numbering.`;
|
|
438
|
+
if (!seedContext || seedContext.priorTranscript.length === 0) {
|
|
439
|
+
return base;
|
|
440
|
+
}
|
|
441
|
+
return `${renderContinuationHeader(seedContext.priorTranscript)}
|
|
442
|
+
|
|
443
|
+
${base}`;
|
|
444
|
+
}
|
|
445
|
+
function renderContinuationHeader(priorTranscript) {
|
|
446
|
+
const transcript = priorTranscript.map((t) => `${t.role === "agent" ? "You" : "Employee"}: ${t.content}`).join("\n");
|
|
447
|
+
return `\u26A0\uFE0F CONTINUATION \u2014 this is NOT a fresh interview. You already interviewed this employee; below is that prior conversation, and an Epic Request already exists from it. Your job now is to ENRICH that same request, not restart it.
|
|
448
|
+
|
|
449
|
+
Prior conversation:
|
|
450
|
+
${transcript}
|
|
451
|
+
|
|
452
|
+
How to continue:
|
|
453
|
+
- Read the prior conversation first. Do NOT re-ask anything already answered there.
|
|
454
|
+
- Use the section list below only as a checklist of what a complete request needs. Identify which sections are MISSING or THIN, and ask focused questions to fill ONLY those gaps \u2014 still one short question at a time.
|
|
455
|
+
- If the prior conversation already covers everything well, go straight to the completion JSON.
|
|
456
|
+
- When you emit the final completion JSON, MERGE the prior answers with whatever new detail you gathered \u2014 restate and expand every field using the WHOLE conversation (old + new). Never drop or shorten content that was already captured; the goal is a richer request than before, meeting the same length minimums.
|
|
457
|
+
|
|
458
|
+
`;
|
|
438
459
|
}
|
|
439
460
|
function interviewFieldKeysFor(definition) {
|
|
440
461
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -10743,7 +10764,7 @@ function withLegacyToolCallRewrite(transport) {
|
|
|
10743
10764
|
var SERVER_NAME = "compbox-mcp";
|
|
10744
10765
|
function resolveServerVersion() {
|
|
10745
10766
|
if (true) {
|
|
10746
|
-
return "1.
|
|
10767
|
+
return "1.11.1";
|
|
10747
10768
|
}
|
|
10748
10769
|
const require2 = createRequire(import.meta.url);
|
|
10749
10770
|
for (const candidate of ["../package.json", "./package.json"]) {
|