, name: 'stdout' | 'stderr') {
const url = URL.createObjectURL(new Blob([raw], { type: 'application/octet-stream' }));
diff --git a/web/src/main.tsx b/web/src/main.tsx
index 901a08b..d2ff000 100644
--- a/web/src/main.tsx
+++ b/web/src/main.tsx
@@ -14,7 +14,7 @@ import './style.css';
import { AdminControl, Catalog, TenantControls } from './management';
import { allowed, availableActions, parseStrictJson, powerShellApprovalBlockers, powerShellPlanJobs, rootWarning, systemWarning, systemPlanJobs, validateSensitiveInput, verifyPlanIntegrity, queryLogsApprovalBlockers, queryLogsPlanJobs, windowsMsiApprovalBlockers, windowsMsiPlanJobs, verifyWindowsMsiManifest, fullMaintenanceWarning } from './safety';
import { Login } from './login';
-import { ConsoleOutput, outputText } from './console-output';
+import { ConsoleOutput, visibleControls } from './console-output';
import { scriptApprovalBlockers, scriptPlanJobs, verifyScriptPlan } from './script-console';
import { agentUpdateWarning, agentUpdatePlanJobs, agentUpdateApprovalBlockers, verifyAgentUpdatePlan, verifyReleaseMetadata, releaseEnvelope, uploadAgentUpdateArtifact } from './agent-updates';
@@ -56,7 +56,7 @@ export function ScriptPlanNotice({ plan }: { plan: RecordValue }) {
{job.privilegedProfile === fullMaintenanceScriptProfile && {fullMaintenanceWarning}
}
{job.identity === 'root' && job.privilegedProfile !== fullMaintenanceScriptProfile && {rootWarning}
}
{job.interpreter === 'powershell' && Windows PowerShell 5.1 · {job.windowsProfile === windowsPowerShellRemoteSignedProfile ? 'RemoteSigned für diesen Prozess' : 'Richtlinie des Geräts'}
}
- {outputText(new TextEncoder().encode(job.script)).text}
+ {visibleControls(job.script)}
{job.arguments.length > 0 && Argumente {JSON.stringify(job.arguments)}
}
{job.expectedStdout !== null && Erwartete Ausgabe {JSON.stringify(job.expectedStdout)}
}
Ausführungsdetails und Prüfsummen
@@ -499,7 +499,7 @@ function OrderScript({ tenantId, operation, names }: { tenantId: string; operati
return target ? deviceName(target) : job.assetId;
}).join(', ')}}
{script.revision ? 'Version ' + script.revision.version : 'Einmaliges Skript'} · {script.interpreter}
- {outputText(new TextEncoder().encode(script.script.replace(/\r\n/g, '\n'))).text}
+ {visibleControls(script.script.replace(/\r\n/g, '\n'))}
;
})}
;