List each AI enhancement against the script it enhances
Declared in PHP rather than in each bash header, against scriptinfo's usual rule that the header next to the code is authoritative: it is authoritative about what the script does, and an enhancement is something else reading its output, gated by a flag the script has never heard of. A description of PHP inside a file that cannot enforce it would drift the first time either changed. Shown with its switch, so "there is an enhancement" and "it is running" are never the same claim. Discovery is listed even though nothing acts on its output — it takes the first accessible root folder with no regard for content, and the classification scan is what notices that night. That relationship explains where misfiled series come from and was written down nowhere.
This commit is contained in:
@@ -4450,6 +4450,29 @@ function vvShowScriptInfoMode(name, hdr, id) {
|
||||
+ '</div>';
|
||||
}
|
||||
|
||||
// Above the documentation, because it changes how the sections below should be read: a
|
||||
// script whose output is being triaged behaves the same but is no longer the last word on
|
||||
// what happens to what it reports. Stated with its switch, so "there is an enhancement" and
|
||||
// "it is running" are never the same claim — AI_ASSIST_WATCHDOG spent months looking like a
|
||||
// feature while reading nothing.
|
||||
if (info.ok && info.enhancement) {
|
||||
const e = info.enhancement;
|
||||
const col = e.enabled ? '#4caf50' : '#555';
|
||||
html += '<div class="vv-sinfo-block">'
|
||||
+ '<div class="vv-sinfo-lbl">AI enhancement</div>'
|
||||
+ '<div style="padding:6px 2px;">'
|
||||
+ '<div style="display:flex;align-items:baseline;gap:8px;margin-bottom:4px;">'
|
||||
+ '<span style="font-size:12px;color:#bbb;">' + vvEscHtml(e.name) + '</span>'
|
||||
+ '<span style="font-size:9px;color:' + col + ';border:1px solid ' + col + '44;'
|
||||
+ 'background:' + col + '14;border-radius:3px;padding:1px 6px;">'
|
||||
+ (e.enabled ? 'on' : 'off') + ' · ' + vvEscHtml(e.flag) + '</span>'
|
||||
+ '</div>'
|
||||
+ '<div style="font-size:11px;color:#666;line-height:1.5;">' + vvEscHtml(e.what) + '</div>'
|
||||
+ '<div style="font-size:10px;color:#3f3f3f;line-height:1.5;margin-top:4px;">'
|
||||
+ vvEscHtml(e.acts) + '</div>'
|
||||
+ '</div></div>';
|
||||
}
|
||||
|
||||
if (info.ok && info.sections?.length) {
|
||||
for (const sec of info.sections) {
|
||||
html += '<div class="vv-sinfo-block">'
|
||||
|
||||
Reference in New Issue
Block a user