vigthoria-cli 1.8.14 → 1.8.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.
- package/dist/commands/chat.js +18 -7
- package/package.json +1 -1
package/dist/commands/chat.js
CHANGED
|
@@ -458,13 +458,20 @@ class ChatCommand {
|
|
|
458
458
|
const plan = event.plan || {};
|
|
459
459
|
const planKind = plan.task_kind || event.task_kind || '';
|
|
460
460
|
const quality = plan.quality_profile || '';
|
|
461
|
+
const status = typeof plan.status === 'string' ? plan.status : '';
|
|
462
|
+
const summary = typeof plan.summary === 'string' ? plan.summary : '';
|
|
461
463
|
if (spinner.isSpinning)
|
|
462
464
|
spinner.stop();
|
|
463
465
|
process.stderr.write(chalk_1.default.cyan(` [Plan] `) + `Task: ${planKind || 'analyzing'}`);
|
|
464
466
|
if (quality)
|
|
465
467
|
process.stderr.write(chalk_1.default.gray(` (${quality})`));
|
|
466
468
|
process.stderr.write('\n');
|
|
467
|
-
|
|
469
|
+
if (summary) {
|
|
470
|
+
process.stderr.write(chalk_1.default.gray(` ${summary}\n`));
|
|
471
|
+
}
|
|
472
|
+
if (status === 'planning' && Number.isFinite(Number(plan.elapsed_seconds))) {
|
|
473
|
+
process.stderr.write(chalk_1.default.gray(` elapsed: ${plan.elapsed_seconds}s\n`));
|
|
474
|
+
}
|
|
468
475
|
if (Array.isArray(plan.tasks) && plan.tasks.length > 0) {
|
|
469
476
|
process.stderr.write(chalk_1.default.gray(` ${plan.total_tasks || plan.tasks.length} tasks:\n`));
|
|
470
477
|
for (const t of plan.tasks.slice(0, 10)) {
|
|
@@ -475,12 +482,16 @@ class ChatCommand {
|
|
|
475
482
|
process.stderr.write(chalk_1.default.gray(` ... and ${plan.tasks.length - 10} more\n`));
|
|
476
483
|
}
|
|
477
484
|
}
|
|
478
|
-
|
|
485
|
+
if (Array.isArray(plan.notes) && plan.notes.length > 0) {
|
|
486
|
+
for (const note of plan.notes.slice(0, 3)) {
|
|
487
|
+
process.stderr.write(chalk_1.default.gray(` note: ${note}\n`));
|
|
488
|
+
}
|
|
489
|
+
}
|
|
479
490
|
if (Array.isArray(plan.target_files) && plan.target_files.length > 0) {
|
|
480
491
|
process.stderr.write(chalk_1.default.gray(` Files: ${plan.target_files.join(', ')}\n`));
|
|
481
492
|
}
|
|
482
493
|
spinner.start();
|
|
483
|
-
spinner.text = 'Planning...';
|
|
494
|
+
spinner.text = status === 'planning' ? 'Planning...' : 'Executing plan...';
|
|
484
495
|
return;
|
|
485
496
|
}
|
|
486
497
|
if (event.type === 'file_mutation') {
|
|
@@ -1719,18 +1730,18 @@ class ChatCommand {
|
|
|
1719
1730
|
else if (this.v3StreamingStarted) {
|
|
1720
1731
|
// Content was already streamed to stdout in real-time; skip duplicate print.
|
|
1721
1732
|
if (!this.directPromptMode) {
|
|
1722
|
-
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}
|
|
1733
|
+
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}`));
|
|
1723
1734
|
}
|
|
1724
1735
|
}
|
|
1725
1736
|
else if (response.content) {
|
|
1726
1737
|
if (!this.directPromptMode) {
|
|
1727
|
-
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}
|
|
1738
|
+
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}`));
|
|
1728
1739
|
}
|
|
1729
1740
|
console.log(response.content);
|
|
1730
1741
|
}
|
|
1731
1742
|
else {
|
|
1732
1743
|
if (!this.directPromptMode) {
|
|
1733
|
-
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}
|
|
1744
|
+
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}`));
|
|
1734
1745
|
}
|
|
1735
1746
|
console.log('V3 agent workflow completed.');
|
|
1736
1747
|
}
|
|
@@ -1841,7 +1852,7 @@ class ChatCommand {
|
|
|
1841
1852
|
}, null, 2));
|
|
1842
1853
|
}
|
|
1843
1854
|
else {
|
|
1844
|
-
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}
|
|
1855
|
+
console.log(chalk_1.default.gray(`Agent routing: ${routingPolicy.cloudSelected ? 'Vigthoria Cloud' : 'V3 Agent'}`));
|
|
1845
1856
|
console.log(rescueMessage);
|
|
1846
1857
|
if (previewGate.required) {
|
|
1847
1858
|
if (previewGate.passed) {
|