careervivid 1.12.23 ā 1.12.25
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,CA+bf"}
|
|
@@ -196,9 +196,43 @@ export async function askLoop(engine, options, selectedProvider, selectedModel,
|
|
|
196
196
|
let currentSpinner = null;
|
|
197
197
|
let trustAllCommands = false;
|
|
198
198
|
let trustAllWrites = false;
|
|
199
|
+
// Map internal tool names to user-friendly labels
|
|
200
|
+
const TOOL_LABELS = {
|
|
201
|
+
list_directory: "š Scanning workspace...",
|
|
202
|
+
read_file: "š Reading file...",
|
|
203
|
+
run_command: "āļø Running command...",
|
|
204
|
+
write_file: "āļø Writing file...",
|
|
205
|
+
patch_file: "āļø Patching file...",
|
|
206
|
+
list_local_jobs: "š Checking job pipeline...",
|
|
207
|
+
add_local_job: "ā Adding job to pipeline...",
|
|
208
|
+
update_local_job: "š Updating job record...",
|
|
209
|
+
score_pipeline: "š Scoring pipeline...",
|
|
210
|
+
get_pipeline_metrics: "š Fetching pipeline metrics...",
|
|
211
|
+
flag_stale_jobs: "š© Checking stale jobs...",
|
|
212
|
+
list_cover_letters: "š Loading cover letters...",
|
|
213
|
+
get_cover_letter: "š Reading cover letter...",
|
|
214
|
+
save_cover_letter: "š¾ Saving cover letter...",
|
|
215
|
+
delete_cover_letter: "šļø Deleting cover letter...",
|
|
216
|
+
browser_navigate: "š Navigating to page...",
|
|
217
|
+
browser_click: "š±ļø Clicking element...",
|
|
218
|
+
browser_type: "āØļø Typing input...",
|
|
219
|
+
browser_state: "š Reading browser state...",
|
|
220
|
+
browser_screenshot: "šø Taking screenshot...",
|
|
221
|
+
browser_scroll: "š Scrolling page...",
|
|
222
|
+
browser_wait: "ā³ Waiting...",
|
|
223
|
+
browser_close: "š Closing browser...",
|
|
224
|
+
browser_select: "š±ļø Selecting option...",
|
|
225
|
+
search_jobs: "š Searching jobs...",
|
|
226
|
+
get_resume: "š Loading resume...",
|
|
227
|
+
list_resumes: "š Loading resumes...",
|
|
228
|
+
get_profile: "š¤ Loading profile...",
|
|
229
|
+
};
|
|
199
230
|
const handleToolCall = async (name, args) => {
|
|
200
|
-
|
|
201
|
-
|
|
231
|
+
// Show a clean, user-friendly label ā never show raw args
|
|
232
|
+
const label = TOOL_LABELS[name] ?? `āļø Working...`;
|
|
233
|
+
process.stdout.write(chalk.dim(`
|
|
234
|
+
${label}
|
|
235
|
+
`));
|
|
202
236
|
if (name === "run_command") {
|
|
203
237
|
if (trustAllCommands || isSafeCommand(args.command)) {
|
|
204
238
|
return true;
|
|
@@ -265,11 +299,10 @@ export async function askLoop(engine, options, selectedProvider, selectedModel,
|
|
|
265
299
|
};
|
|
266
300
|
const handleToolResult = (name, result) => {
|
|
267
301
|
if (currentSpinner) {
|
|
268
|
-
currentSpinner.succeed(
|
|
302
|
+
currentSpinner.succeed(chalk.dim(`Done`));
|
|
269
303
|
currentSpinner = null;
|
|
270
304
|
}
|
|
271
|
-
|
|
272
|
-
console.log(chalk.dim(` ā
${name}: ${preview}${preview.length >= 120 ? "ā¦" : ""}\n`));
|
|
305
|
+
// Suppress raw output ā the agent will summarize it in natural language
|
|
273
306
|
};
|
|
274
307
|
if (engine) {
|
|
275
308
|
sessionTurns++;
|
package/dist/index.js
CHANGED
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
* cv update [files...] Update existing content on CareerVivid
|
|
20
20
|
* cv --help / cv --version
|
|
21
21
|
*/
|
|
22
|
+
// āā Node version guard (must be before ESM imports) āāāāāāāāāāāāāāāāāāāāāāāāā
|
|
23
|
+
// Uses only Node built-ins so it works on ANY Node version.
|
|
24
|
+
const [nodeMajor] = process.versions.node.split(".").map(Number);
|
|
25
|
+
if (nodeMajor < 18) {
|
|
26
|
+
process.stderr.write(`\nā ļø CareerVivid CLI requires Node.js v18 or higher.\n` +
|
|
27
|
+
` You are running Node ${process.versions.node}.\n\n` +
|
|
28
|
+
` Upgrade at: https://nodejs.org (download the LTS release)\n` +
|
|
29
|
+
` or: nvm install --lts && nvm use --lts\n\n`);
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
22
32
|
import { Command } from "commander";
|
|
23
33
|
import { readFileSync, existsSync } from "fs";
|
|
24
34
|
import chalk from "chalk";
|
package/dist/postinstall.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CareerVivid CLI ā Post-install hook
|
|
3
3
|
*
|
|
4
4
|
* This script runs after 'npm install -g careervivid'.
|
|
5
|
-
* It prints a
|
|
5
|
+
* It checks Node version compatibility and prints a welcome message.
|
|
6
6
|
*/
|
|
7
7
|
export declare function printPostInstall(): void;
|
|
8
8
|
//# sourceMappingURL=postinstall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiCH,wBAAgB,gBAAgB,SA4C/B"}
|
package/dist/postinstall.js
CHANGED
|
@@ -2,13 +2,33 @@
|
|
|
2
2
|
* CareerVivid CLI ā Post-install hook
|
|
3
3
|
*
|
|
4
4
|
* This script runs after 'npm install -g careervivid'.
|
|
5
|
-
* It prints a
|
|
5
|
+
* It checks Node version compatibility and prints a welcome message.
|
|
6
6
|
*/
|
|
7
7
|
import chalk from "chalk";
|
|
8
8
|
import boxen from "boxen";
|
|
9
9
|
import { getHelpHeader } from "./branding.js";
|
|
10
10
|
const VERSION = "1.1.14";
|
|
11
|
+
const MIN_NODE_MAJOR = 18;
|
|
12
|
+
function checkNodeVersion() {
|
|
13
|
+
const [major] = process.versions.node.split(".").map(Number);
|
|
14
|
+
if (major < MIN_NODE_MAJOR) {
|
|
15
|
+
console.error(boxen(`${chalk.bold.red("ā ļø Node.js version too old")}\n\n` +
|
|
16
|
+
`You have Node ${chalk.bold(process.versions.node)}, but CareerVivid CLI requires ${chalk.bold(`v${MIN_NODE_MAJOR}+`)}\n\n` +
|
|
17
|
+
`${chalk.bold("To upgrade Node.js:")}\n` +
|
|
18
|
+
` ${chalk.cyan("https://nodejs.org")} (download the LTS release)\n` +
|
|
19
|
+
` ${chalk.dim("or")} ${chalk.cyan("nvm install --lts && nvm use --lts")}\n\n` +
|
|
20
|
+
`${chalk.dim("The CLI may not work correctly until you upgrade.")}`, {
|
|
21
|
+
padding: 1,
|
|
22
|
+
borderStyle: "round",
|
|
23
|
+
borderColor: "red",
|
|
24
|
+
title: "Version Warning",
|
|
25
|
+
titleAlignment: "center",
|
|
26
|
+
}));
|
|
27
|
+
// Don't exit ā let them at least see the welcome message
|
|
28
|
+
}
|
|
29
|
+
}
|
|
11
30
|
export function printPostInstall() {
|
|
31
|
+
checkNodeVersion();
|
|
12
32
|
console.log();
|
|
13
33
|
console.log(getHelpHeader());
|
|
14
34
|
// āā Onboarding box āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "careervivid",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.25",
|
|
4
4
|
"description": "Official CLI for CareerVivid ā publish articles, diagrams, and portfolio updates from your terminal or AI agent",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.4.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"overrides": {
|
|
49
49
|
"braces": "3.0.3",
|