dsh-ops-kit 0.4.3 → 0.4.4
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/client.js +2 -2
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -2507,7 +2507,7 @@ window.__ModuleLoader__.load({
|
|
|
2507
2507
|
|
|
2508
2508
|
/** 主机详情:健康分、服务、监控、证书、维护;由 Panel 注入上下文。 */
|
|
2509
2509
|
function HostDetailTab(p) {
|
|
2510
|
-
const {
|
|
2510
|
+
const { adding, aiBusy, aiDraft, aiIntent, aiMode, aiModels, aiResult, alerts, askAi, askBusy, askHost, askLog, askQuestion, audit, backupBusy, busy, cHost, certs, chBusy, channelForm, channels, chatNotice, cleanBackupFile, cleanBusyHost, cleanPreview, cleanRunBusy, cleanSel, cleanupHost, closeTerm, config, confirmDialog, conns, consoleCmd, consoleHistory, consoleOut, copyText, countOf, detailHost, detailTab, diag, doAction, editName, error, fileState, focusTerm, form, generateCommand, health, histDiff, histList, histPath, info, installKeyOn, inv, loadBase, loadInv, loadingMap, logRequest, logUsageData, maintenanceUntil, markLoading, metricBox, monBusy, monEditId, monForm, monitors, notice, opBusy, opOut, openFile, openTerm, output, overview, p2Busy, quickText, refreshTick, removeHost, runConsole, runGenerated, runNeedsConfirm, saveConfig, saveFile, sendKey, services, setAdding, setAiDraft, setAiIntent, setAiMode, setAiModels, setAlerts, setAskQuestion, setBackupBusy, setCHost, setCerts, setChBusy, setChannelForm, setChannels, setChatNotice, setCleanBackupFile, setCleanBusyHost, setCleanPreview, setCleanRunBusy, setCleanSel, setConfig, setConsoleCmd, setDetailHost, setDetailTab, setDiag, setEditName, setError, setFileState, setForm, setHealth, setHistDiff, setHistList, setHistPath, setLogRequest, setLogUsageData, setMaintenanceUntil, setMonBusy, setMonDialog, setMonEditId, setMonForm, setMonitors, setNotice, setOpBusy, setOpOut, setP2Busy, setQuickText, setServices, setSimpleCtx, setSimpleMonitors, setSimpleNotice, setTab, setTemplateId, setTemplates, setTerm, setUiMode, simpleCtx, simpleMonitors, simpleNotice, startEdit, statusOf, tab, templateId, templates, term, testHost, timeoutFor, trackJob, uiMode, ackMonitorUi, applyTemplateUi, createServiceUi, dhost, editMonitor, hosts, loadHealth, removeMonitor, removeServiceUi, removeTemplateUi, renewCertsNow, saveAsTemplate, saveMonitor, setMaintenanceUi, testMonitor } = p
|
|
2511
2511
|
const healthIssues = Array.isArray(health?.issues) ? health.issues : []
|
|
2512
2512
|
const healthScore = typeof health?.score === 'number' ? health.score : null
|
|
2513
2513
|
const healthLevel = health?.level || (healthScore === null ? '' : healthScore >= 90 ? 'ok' : healthScore >= 70 ? 'warn' : 'bad')
|
|
@@ -3755,7 +3755,7 @@ window.__ModuleLoader__.load({
|
|
|
3755
3755
|
}
|
|
3756
3756
|
|
|
3757
3757
|
const subBody = detailHost
|
|
3758
|
-
? ({
|
|
3758
|
+
? ({ monitor: h(MonitorTab, { hosts, detailHost, detailTab, loadingMap, markLoading, setError }), config: h(ConfigTab, { busy, cHost, detailHost, histDiff, histList, histPath, hosts, inv, loadHistory, loadInv, monitorSuggestions, monitors, opBusy, restoreVersion, sectionList, services, setCHost, setHistPath, showDiff }), apps: h(AppsTab, { addSuggestions, busy, cHost, config, detailHost, doAction, fileState, hosts, inv, loadInv, monBusy, monitorSuggestions, openFile, output, saveFile, setCHost, setDetailTab, setFileState, setLogRequest }), logs: h(LogsTab, { host: cHost || hosts[0]?.name, notice, logRequest, picker: detailHost ? null : hostPicker(hosts, cHost, setCHost), setError, setNotice, timeoutFor, onInventoryRefresh: loadInv, config, logUsageData, loadLogUsage, openCleanPreview, cleanBusyHost, cleanRunBusy, backupBusy }), files: h(FilesTab, { host: cHost || hosts[0]?.name, picker: detailHost ? null : hostPicker(hosts, cHost, setCHost), setError, setNotice, confirmDialog }), terminal: h(TerminalTab, { host: cHost || hosts[0]?.name, picker: detailHost ? null : hostPicker(hosts, cHost, setCHost), term, setTerm, openTerm, closeTerm, busy, aiMode, aiDraft, quickCommands, termKey, sendKey, focusTerm, generateCommand, runGenerated, aiResult, aiIntent, setAiIntent, aiBusy, setAiMode, setAiDraft, askLog, error, output, consoleCmd, setConsoleCmd, consoleOut, consoleHistory, runConsole }), backups: h(BackupsTab, { host: dhost(), confirmDialog, trackJob, setError, refreshTick }), cron: h(CronTab, { host: dhost(), setError, loadingMap, markLoading, refreshTick }), deploy: h(DeployTab, { host: dhost(), trackJob, setError, loadingMap, refreshTick }) }[detailTab] || h(HostDetailTab, { ackAlert: ackAlert, ackMonitorUi: ackMonitorUi, addHost: addHost, addSuggestions: addSuggestions, adding: adding, aiBusy: aiBusy, aiDraft: aiDraft, aiIntent: aiIntent, aiMode: aiMode, aiModels: aiModels, aiResult: aiResult, alerts: alerts, applyTemplateUi: applyTemplateUi, askAi: askAi, askBusy: askBusy, askHost: askHost, askLog: askLog, askQuestion: askQuestion, audit: audit, backupBusy: backupBusy, backupSelected: backupSelected, busy: busy, cHost: cHost, certs: certs, chBusy: chBusy, channelForm: channelForm, channels: channels, chatNotice: chatNotice, cleanBackupFile: cleanBackupFile, cleanBusyHost: cleanBusyHost, cleanPreview: cleanPreview, cleanRunBusy: cleanRunBusy, cleanSel: cleanSel, cleanupHost: cleanupHost, closeTerm: closeTerm, config: config, confirmClean: confirmClean, confirmDialog: confirmDialog, conns: conns, consoleCmd: consoleCmd, consoleHistory: consoleHistory, consoleOut: consoleOut, copyDiagnostics: copyDiagnostics, copyReport: copyReport, copyText: copyText, countOf: countOf, createServiceUi: createServiceUi, detailHost: detailHost, detailTab: detailTab, dhost: dhost, diag: diag, diagnoseMonitorUi: diagnoseMonitorUi, diagnosticsText: diagnosticsText, doAction: doAction, downloadBackup: downloadBackup, editMonitor: editMonitor, editName: editName, error: error, fileState: fileState, focusTerm: focusTerm, form: form, generateCommand: generateCommand, health: health, histDiff: histDiff, histList: histList, histPath: histPath, hosts: hosts, info: info, installKeyOn: installKeyOn, inv: inv, loadBase: loadBase, loadCerts: loadCerts, loadChannels: loadChannels, loadHealth: loadHealth, loadHistory: loadHistory, loadInv: loadInv, loadLogUsage: loadLogUsage, loadMaintenance: loadMaintenance, loadMonitors: loadMonitors, loadServicesUi: loadServicesUi, loadTemplatesUi: loadTemplatesUi, loadingMap: loadingMap, logRequest: logRequest, logUsageData: logUsageData, maintenanceUntil: maintenanceUntil, markLoading: markLoading, metricBox: metricBox, monBusy: monBusy, monEditId: monEditId, monForm: monForm, monitorSuggestions: monitorSuggestions, monitors: monitors, notice: notice, opBusy: opBusy, opOut: opOut, openCleanPreview: openCleanPreview, openFile: openFile, openHost: openHost, openTerm: openTerm, output: output, overview: overview, p2Busy: p2Busy, quickText: quickText, recheckHost: recheckHost, recheckOne: recheckOne, refreshTick: refreshTick, removeChannelUi: removeChannelUi, removeHost: removeHost, removeMonitor: removeMonitor, removeServiceUi: removeServiceUi, removeTemplateUi: removeTemplateUi, renewCertsNow: renewCertsNow, restartWebFor: restartWebFor, restoreVersion: restoreVersion, runConsole: runConsole, runGenerated: runGenerated, runNeedsConfirm: runNeedsConfirm, saveAsTemplate: saveAsTemplate, saveChannel: saveChannel, saveConfig: saveConfig, saveFile: saveFile, saveMonitor: saveMonitor, sectionList: sectionList, selectedLogPaths: selectedLogPaths, sendKey: sendKey, services: services, setAdding: setAdding, setAiDraft: setAiDraft, setAiIntent: setAiIntent, setAiMode: setAiMode, setAiModels: setAiModels, setAlerts: setAlerts, setAskQuestion: setAskQuestion, setBackupBusy: setBackupBusy, setCHost: setCHost, setCerts: setCerts, setChBusy: setChBusy, setChannelForm: setChannelForm, setChannels: setChannels, setChatNotice: setChatNotice, setCleanBackupFile: setCleanBackupFile, setCleanBusyHost: setCleanBusyHost, setCleanPreview: setCleanPreview, setCleanRunBusy: setCleanRunBusy, setCleanSel: setCleanSel, setConfig: setConfig, setConsoleCmd: setConsoleCmd, setDetailHost: setDetailHost, setDetailTab: setDetailTab, setDiag: setDiag, setEditName: setEditName, setError: setError, setFileState: setFileState, setForm: setForm, setHealth: setHealth, setHistDiff: setHistDiff, setHistList: setHistList, setHistPath: setHistPath, setHostCtx: setHostCtx, setLogRequest: setLogRequest, setLogUsageData: setLogUsageData, setMaintenanceUi: setMaintenanceUi, setMaintenanceUntil: setMaintenanceUntil, setMonBusy: setMonBusy, setMonDialog: setMonDialog, setMonEditId: setMonEditId, setMonForm: setMonForm, setMonitors: setMonitors, setNotice: setNotice, setOpBusy: setOpBusy, setOpOut: setOpOut, setP2Busy: setP2Busy, setQuickText: setQuickText, setServices: setServices, setSimpleCtx: setSimpleCtx, setSimpleMonitors: setSimpleMonitors, setSimpleNotice: setSimpleNotice, setTab: setTab, setTemplateId: setTemplateId, setTemplates: setTemplates, setTerm: setTerm, setUiMode: setUiMode, showDiff: showDiff, simpleCtx: simpleCtx, simpleHostState: simpleHostState, simpleMonitors: simpleMonitors, simpleNotice: simpleNotice, startEdit: startEdit, statusOf: statusOf, suggestionFor: suggestionFor, switchMode: switchMode, tab: tab, templateId: templateId, templates: templates, term: term, testChannelUi: testChannelUi, testHost: testHost, testMonitor: testMonitor, timeoutFor: timeoutFor, trackJob: trackJob, uiMode: uiMode }))
|
|
3759
3759
|
: null
|
|
3760
3760
|
|
|
3761
3761
|
const topTabs = [[0, T.tabs[0]], [1, T.tabs[8]], [2, T.tabs[9]]]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-ops-kit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "OPC-运维工作台 (dsh-ops-kit) — Server operations kit for DeepSeek Harness: server cards, health charts, config browser, app manager and plain-language AI diagnosis — over SSH, no agent install.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|