careervivid 1.12.14 → 1.12.15
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/repl.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI7E,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,GAAE,MAAM,GAAG,IAAW,QAwBtF;AAED,wBAAsB,OAAO,CAC3B,MAAM,EAAE,WAAW,GAAG,sBAAsB,GAAG,IAAI,EACnD,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,EAC9K,gBAAgB,EAAE,WAAW,EAC7B,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG,EAAE,GACX,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/repl.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI7E,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,GAAE,MAAM,GAAG,IAAW,QAwBtF;AAED,wBAAsB,OAAO,CAC3B,MAAM,EAAE,WAAW,GAAG,sBAAsB,GAAG,IAAI,EACnD,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,EAC9K,gBAAgB,EAAE,WAAW,EAC7B,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG,EAAE,GACX,OAAO,CAAC,IAAI,CAAC,CA6Wf"}
|
|
@@ -41,8 +41,33 @@ export async function askLoop(engine, options, selectedProvider, selectedModel,
|
|
|
41
41
|
});
|
|
42
42
|
const duration = Date.now() - promptStartTime;
|
|
43
43
|
let userInput = response.query;
|
|
44
|
-
//
|
|
45
|
-
|
|
44
|
+
// ── Multi-line paste mode: user typed <<< (or <<<paste) ─────────────
|
|
45
|
+
// Allows pasting arbitrarily long content (e.g. full JD) without truncation.
|
|
46
|
+
if (userInput.trim() === "<<<" || userInput.trim().toLowerCase().startsWith("<<<")) {
|
|
47
|
+
const prefix = userInput.trim().slice(3).trim(); // text after <<<
|
|
48
|
+
console.log(chalk.dim(" 📋 Multi-line mode: paste your text, then press Enter twice to submit.\n"));
|
|
49
|
+
const lines = prefix ? [prefix] : [];
|
|
50
|
+
let emptyCount = 0;
|
|
51
|
+
while (emptyCount < 1) {
|
|
52
|
+
const lineResp = await prompt({
|
|
53
|
+
type: "input",
|
|
54
|
+
name: "line",
|
|
55
|
+
message: chalk.dim(" │"),
|
|
56
|
+
});
|
|
57
|
+
if (lineResp.line === "") {
|
|
58
|
+
emptyCount++;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
emptyCount = 0;
|
|
62
|
+
lines.push(lineResp.line);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
userInput = lines.join("\n").trim();
|
|
66
|
+
pasteBuffer = [];
|
|
67
|
+
}
|
|
68
|
+
else if (duration < 150) {
|
|
69
|
+
// Handle multiline copy & paste: prompt resolves extremely fast if stdin is buffered.
|
|
70
|
+
// 150ms threshold gives enough headroom for large pastes (long JDs, cover letters).
|
|
46
71
|
pasteBuffer.push(userInput);
|
|
47
72
|
return ask();
|
|
48
73
|
}
|
|
@@ -67,7 +92,10 @@ export async function askLoop(engine, options, selectedProvider, selectedModel,
|
|
|
67
92
|
console.log(chalk.dim(" /model <name> — Switch to a different model mid-session"));
|
|
68
93
|
console.log(chalk.dim(" /models — List all available CareerVivid models"));
|
|
69
94
|
console.log(chalk.dim(" /help — Show this help message"));
|
|
70
|
-
console.log(chalk.dim(" exit — End the session
|
|
95
|
+
console.log(chalk.dim(" exit — End the session"));
|
|
96
|
+
console.log(chalk.cyan("\n Paste long content (job descriptions, cover letters):"));
|
|
97
|
+
console.log(chalk.dim(" <<< — Open multi-line paste mode; press Enter twice when done"));
|
|
98
|
+
console.log(chalk.dim(" <<<your text — Start with text directly after <<<\n"));
|
|
71
99
|
return ask();
|
|
72
100
|
}
|
|
73
101
|
if (cmd === "models") {
|