@hone-ai/cli 1.12.1 → 1.12.2
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/hone-cli.js +24 -0
- package/package.json +1 -1
package/hone-cli.js
CHANGED
|
@@ -1035,6 +1035,11 @@ program
|
|
|
1035
1035
|
docUrls,
|
|
1036
1036
|
isRefresh,
|
|
1037
1037
|
existingSkills,
|
|
1038
|
+
// HC-019z-followup-2: derive is always batch from the CLI —
|
|
1039
|
+
// there's no channel to relay user answers to the LLM mid-job.
|
|
1040
|
+
// The server's prompt Step 0c uses this to emit STEP_0C_SKIPPED
|
|
1041
|
+
// instead of stopping to ask, when no team docs are configured.
|
|
1042
|
+
interactive: false,
|
|
1038
1043
|
});
|
|
1039
1044
|
jobId = r.data.jobId;
|
|
1040
1045
|
console.log(`Job queued: ${jobId}`);
|
|
@@ -1084,6 +1089,25 @@ program
|
|
|
1084
1089
|
fs.writeFileSync(reportPath, result.changeReport || '');
|
|
1085
1090
|
console.log(`\nChange report saved to: .github/skill-refresh-report.md`);
|
|
1086
1091
|
} else {
|
|
1092
|
+
// HC-019z-followup-2: surface the non-interactive skip notice if
|
|
1093
|
+
// the prompt emitted STEP_0C_SKIPPED. The marker appears in the
|
|
1094
|
+
// server's rawOutputTail when the LLM honored the non-interactive
|
|
1095
|
+
// guard. Without this message, the user is mystified by an empty
|
|
1096
|
+
// skill set.
|
|
1097
|
+
const rawOutput = result.rawOutputTail || result.rawOutput || '';
|
|
1098
|
+
if (rawOutput.includes('STEP_0C_SKIPPED')) {
|
|
1099
|
+
console.log('');
|
|
1100
|
+
console.log('⚠ Phase 0c (team documentation URLs) skipped — derive is non-interactive.');
|
|
1101
|
+
console.log(' To include team docs (Confluence, wiki, runbooks, etc.) in derivation,');
|
|
1102
|
+
console.log(' add them to .github/.pipeline-config.yml under documentation.external_urls:');
|
|
1103
|
+
console.log(' documentation:');
|
|
1104
|
+
console.log(' external_urls:');
|
|
1105
|
+
console.log(' - https://yourwiki.example/architecture');
|
|
1106
|
+
console.log(' - https://yourwiki.example/conventions');
|
|
1107
|
+
console.log(' Then re-run `hone derive`. (HC-019z-followup-2)');
|
|
1108
|
+
console.log('');
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1087
1111
|
// Write generated skills to disk
|
|
1088
1112
|
console.log('Writing generated skills...');
|
|
1089
1113
|
if (result.skills) {
|