@songsid/agend 2.4.0-beta.28 → 2.4.0-beta.29
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/build-provenance.json +1 -1
- package/dist/channel/adapters/discord.d.ts +13 -1
- package/dist/channel/adapters/discord.js +51 -21
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/host-memory.d.ts +21 -1
- package/dist/host-memory.js +30 -4
- package/dist/host-memory.js.map +1 -1
- package/dist/host-monitoring/linux/interpretation.js +1 -1
- package/dist/host-monitoring/linux/interpretation.js.map +1 -1
- package/dist/host-monitoring/wsl/interpretation.js +1 -1
- package/dist/host-monitoring/wsl/interpretation.js.map +1 -1
- package/dist/host-monitoring.d.ts +3 -1
- package/dist/hub/compose/server.js +1 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.js +100 -56
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.d.ts +2 -0
- package/dist/hub/http/core.js +17 -7
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/policy.js +56 -27
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/roles/clock.js +5 -4
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/cutover-clock-facts.d.ts +13 -0
- package/dist/hub/roles/cutover-clock-facts.js +25 -0
- package/dist/hub/roles/cutover-clock-facts.js.map +1 -0
- package/dist/hub/rooms.d.ts +8 -4
- package/dist/hub/rooms.js +18 -5
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/send-timing.d.ts +6 -0
- package/dist/hub/send-timing.js +39 -0
- package/dist/hub/send-timing.js.map +1 -0
- package/dist/locale.js +2 -0
- package/dist/locale.js.map +1 -1
- package/dist/memory-pressure.js +8 -1
- package/dist/memory-pressure.js.map +1 -1
- package/dist/ui/host-health.js +3 -3
- package/dist/ui/host-monitoring-linux.js +2 -2
- package/dist/ui/host-monitoring-wsl.js +2 -2
- package/package.json +1 -1
package/dist/ui/host-health.js
CHANGED
|
@@ -11,8 +11,8 @@ import {sectionPath} from '/assets/app-route.js';
|
|
|
11
11
|
import {HOST_RANGES,numberOrNull,metricState,displayBytes as formatBytes,storageRows,historySeries,chartData,sampleCoverage} from './host-health-model.js';
|
|
12
12
|
|
|
13
13
|
register('hostHealth',{
|
|
14
|
-
en:{title:'Host health',computer:'This computer',lead:'CPU, memory and storage from the latest recorded samples.',settings:'Monitoring settings',refresh:'Refresh',refreshing:'Refreshing…',unsupported:'Host monitoring is not available on this computer.',off:'Host monitoring is off',offHint:'Turn it on in Settings to collect samples and keep bounded local history.',admin:'Administrator sign-in required',adminHint:'Sign in as a Fleet administrator to see host metrics.',starting:'Waiting for the first samples',stopping:'Stopping monitoring',failedHint:'Monitoring could not complete. Check its settings and local storage permissions; history cleanup may still need attention.',failed:'Monitoring needs attention',unavailable:'Not available',stale:'Stale',lastLabel:'Last successful sample:',last:'Last successful sample: {0}',none:'No successful sample yet',wsl:'WSL 2',linux:'Linux',darwin:'macOS',wslNote:'CPU and memory describe WSL, not the physical Windows computer. The Windows backing drive is shown separately.',macNote:'APFS volumes may share free space. Do not add their free space together. Available memory is an estimate; pressure is shown separately.',linuxNote:'Local Linux filesystems and available memory. Unavailable fields are not treated as zero.',runtimeNote:'Paired Windows Runtimes are separate computers and are not included in these totals.',storage:'Storage',root:'Linux filesystem',state:'Fleet state',backing:'Windows backing drive',volume:'Local volume',drive:' ({0}:)',shared:'Shared APFS capacity',sharedHint:'Do not add free space across volumes.',free:'{0} available',used:'{0}% used',unknownDrive:'Windows drive not identified',chooseDrive:'Choose drive in Settings',unknownHint:'Linux free space alone does not show whether the Windows drive holding WSL has room.',cpu:'CPU',wslCpu:'WSL CPU',wslMemory:'WSL memory',cpuUsed:'{0}% used',cores:'{0} logical CPUs',loadLabel:'Load average:',load:'Load average: {0}',memory:'Memory',available:'{0} available of {1}',pressureLabel:'Memory pressure:',pressure:'Memory pressure: {0}',normal:'Normal',elevated:'Elevated',critical:'Critical',unknown:'Unknown',swap:'Swap free: {0}',history:'History',range:'History range',coverageSummary:'{0} of {1} readings have fresh data',collecting:'Collecting history…',noHistory:'No recorded samples in this range',historyUnavailable:'Recorded history is temporarily unavailable. Refresh to try again.',historyLoading:'Loading recorded history…',historyWaiting:'History has not started recording yet.',historyPaused:'History recording is paused.',historyFailed:'History could not be recorded. Current samples remain available.',lowSpace:'Low storage: keeping current samples in memory only.',recovering:'Waiting for both storage volumes to stay above 4 GiB for ten minutes.',diskUnavailable:'Storage data is unavailable; history is paused.',backingUnknown:'Identify the Windows backing drive before history can be recorded.',clockChanged:'The computer clock moved backwards; recording is waiting for it to catch up.',historyBusy:'History storage is busy; no additional write is queued.',minimum:'Minimum: {0}',maximum:'Peak: {0}',coverage:'{0} of {1} chart buckets contain recorded samples',gaps:'Gaps mean no sample was recorded; they are not zero.',retention:'History is capped at 64 MiB, with up to 24 hours of raw samples and 30 days of rollups. Older samples may be pruned earlier.',snapshotOnly:'Refresh reads saved snapshots. It does not start a new probe.',samples:'Host every 30 s · storage every 60 s',chart:'{0} history',usedHistory:'Storage used',freeHistory:'Available space trend',notMeasured:'Not measured'},
|
|
15
|
-
'zh-TW':{title:'主機狀態',computer:'這台電腦',lead:'依最新記錄的取樣查看 CPU、記憶體與儲存空間。',settings:'監測設定',refresh:'重新整理',refreshing:'重新整理中…',unsupported:'這台電腦尚未提供主機監測。',off:'主機監測已關閉',offHint:'請在設定中開啟,開始取樣並保留容量受限的本機歷史。',admin:'需要管理員登入',adminHint:'請以 Fleet 管理員身分登入,才能查看主機資料。',starting:'等待第一筆取樣',stopping:'正在停止監測',failedHint:'主機監測未能完成操作,請檢查設定與本機儲存空間權限;歷史資料可能仍需清理。',failed:'主機監測需要處理',unavailable:'無法取得',stale:'資料已過期',lastLabel:'最後成功取樣:',last:'最後成功取樣:{0}',none:'尚無成功的取樣',wsl:'WSL 2',linux:'Linux',darwin:'macOS',wslNote:'CPU 與記憶體代表 WSL,不是實體 Windows 電腦。存放 WSL 的 Windows 磁碟會另外列出。',macNote:'APFS 磁碟區可能共用空間,請勿把可用空間相加。可用記憶體是估算值,記憶體壓力會另外顯示。',linuxNote:'本機 Linux 檔案系統與可用記憶體。無法取得的欄位不會當作零。',runtimeNote:'配對的 Windows 電腦是另一台,不算在這裡的數字裡。',storage:'儲存空間',root:'Linux 檔案系統',state:'Fleet 狀態資料',backing:'存放 WSL 的 Windows 磁碟',volume:'本機磁碟區',drive:'({0}:)',shared:'共用 APFS 容量',sharedHint:'請勿把各磁碟區的可用空間相加。',free:'可用 {0}',used:'已使用 {0}%',unknownDrive:'尚未確認 Windows 磁碟',chooseDrive:'到設定選擇磁碟',unknownHint:'只有 Linux 的可用空間,無法判斷存放 WSL 的 Windows 磁碟是否還有空間。',cpu:'CPU',wslCpu:'WSL CPU',wslMemory:'WSL 記憶體',cpuUsed:'使用率 {0}%',cores:'{0} 個邏輯 CPU',loadLabel:'平均負載:',load:'平均負載:{0}',memory:'記憶體',available:'可用 {0},共 {1}',pressureLabel:'記憶體壓力:',pressure:'記憶體壓力:{0}',normal:'正常',elevated:'偏高',critical:'嚴重',unknown:'未知',swap:'Swap 可用:{0}',history:'歷史紀錄',range:'歷史期間',coverageSummary:'{1} 項讀數中,{0} 項有最新資料',collecting:'正在累積歷史紀錄…',noHistory:'這段期間尚無記錄的取樣',historyUnavailable:'暫時無法取得歷史紀錄,請重新整理再試。',historyLoading:'正在載入歷史紀錄…',historyWaiting:'歷史紀錄尚未開始取樣。',historyPaused:'歷史紀錄已暫停。',historyFailed:'無法記錄歷史,目前的取樣仍可查看。',lowSpace:'儲存空間不足:目前取樣只保留在記憶體中。',recovering:'等待兩個儲存空間持續十分鐘都超過 4 GiB。',diskUnavailable:'無法取得儲存空間資料,歷史紀錄已暫停。',backingUnknown:'請先確認存放 WSL 的 Windows 磁碟,再記錄歷史。',clockChanged:'電腦時間往回調整,正在等待時間追上後再記錄。',historyBusy:'歷史儲存空間忙碌中,不會排入額外的寫入。',minimum:'最低:{0}',maximum:'最高:{0}',coverage:'{1} 個圖表區間中,{0} 個有記錄取樣',gaps:'缺口代表沒有記錄取樣,不是零。',retention:'歷史資料最多 64 MiB;原始取樣最多保留 24 小時,彙整最多 30 天。較舊的取樣可能提早清除。',snapshotOnly:'重新整理只讀取已保存的取樣,不會啟動新的探測。',samples:'主機每 30 秒 · 儲存空間每 60 秒',chart:'{0} 歷史',usedHistory:'儲存空間使用率',freeHistory:'可用空間趨勢',notMeasured:'未量測'}
|
|
14
|
+
en:{title:'Host health',computer:'This computer',lead:'CPU, memory and storage from the latest recorded samples.',settings:'Monitoring settings',refresh:'Refresh',refreshing:'Refreshing…',unsupported:'Host monitoring is not available on this computer.',off:'Host monitoring is off',offHint:'Turn it on in Settings to collect samples and keep bounded local history.',admin:'Administrator sign-in required',adminHint:'Sign in as a Fleet administrator to see host metrics.',starting:'Waiting for the first samples',stopping:'Stopping monitoring',failedHint:'Monitoring could not complete. Check its settings and local storage permissions; history cleanup may still need attention.',failed:'Monitoring needs attention',unavailable:'Not available',stale:'Stale',lastLabel:'Last successful sample:',last:'Last successful sample: {0}',none:'No successful sample yet',wsl:'WSL 2',linux:'Linux',darwin:'macOS',wslNote:'CPU and memory describe WSL, not the physical Windows computer. The Windows backing drive is shown separately.',macNote:'APFS volumes may share free space. Do not add their free space together. Available memory is an estimate; pressure is shown separately.',linuxNote:'Local Linux filesystems and available memory. Unavailable fields are not treated as zero.',runtimeNote:'Paired Windows Runtimes are separate computers and are not included in these totals.',storage:'Storage',root:'Linux filesystem',state:'Fleet state',backing:'Windows backing drive',volume:'Local volume',drive:' ({0}:)',shared:'Shared APFS capacity',sharedHint:'Do not add free space across volumes.',free:'{0} available',used:'{0}% used',unknownDrive:'Windows drive not identified',chooseDrive:'Choose drive in Settings',unknownHint:'Linux free space alone does not show whether the Windows drive holding WSL has room.',cpu:'CPU',wslCpu:'WSL CPU',wslMemory:'WSL memory',cpuUsed:'{0}% used',cores:'{0} logical CPUs',loadLabel:'Load average:',load:'Load average: {0}',memory:'Memory',available:'{0} available of {1}',pressureLabel:'Memory pressure:',pressure:'Memory pressure: {0}',normal:'Normal',elevated:'Elevated',critical:'Critical',unknown:'Unknown',swap:'Swap free: {0}',history:'History',range:'History range',coverageSummary:'{0} of {1} readings have fresh data',collecting:'Collecting history…',noHistory:'No recorded samples in this range',historyUnavailable:'Recorded history is temporarily unavailable. Refresh to try again.',historyLoading:'Loading recorded history…',historyWaiting:'History has not started recording yet.',historyPaused:'History recording is paused.',historyFailed:'History could not be recorded. Current samples remain available.',lowSpace:'Low storage: keeping current samples in memory only.',recovering:'Waiting for both storage volumes to stay above 4 GiB for ten minutes.',diskUnavailable:'Storage data is unavailable; history is paused.',backingUnknown:'Identify the Windows backing drive before history can be recorded.',clockChanged:'The computer clock moved backwards; recording is waiting for it to catch up.',historyBusy:'History storage is busy; no additional write is queued.',minimum:'Minimum: {0}',maximum:'Peak: {0}',coverage:'{0} of {1} chart buckets contain recorded samples',gaps:'Gaps mean no sample was recorded; they are not zero.',retention:'History is capped at 64 MiB, with up to 24 hours of raw samples and 30 days of rollups. Older samples may be pruned earlier.',snapshotOnly:'Refresh reads saved snapshots. It does not start a new probe.',samples:'Host every 30 s · storage every 60 s',chart:'{0} history',usedHistory:'Storage used',freeHistory:'Available space trend',notMeasured:'Not measured',psiHostLinux:'Whole machine, for reference only (other programs and containers included): some {0}% (60 s) · full {1}% (10 s)',psiHostWsl:'Whole WSL, for reference only (all distros and Docker containers included): some {0}% (60 s) · full {1}% (10 s)'},
|
|
15
|
+
'zh-TW':{title:'主機狀態',computer:'這台電腦',lead:'依最新記錄的取樣查看 CPU、記憶體與儲存空間。',settings:'監測設定',refresh:'重新整理',refreshing:'重新整理中…',unsupported:'這台電腦尚未提供主機監測。',off:'主機監測已關閉',offHint:'請在設定中開啟,開始取樣並保留容量受限的本機歷史。',admin:'需要管理員登入',adminHint:'請以 Fleet 管理員身分登入,才能查看主機資料。',starting:'等待第一筆取樣',stopping:'正在停止監測',failedHint:'主機監測未能完成操作,請檢查設定與本機儲存空間權限;歷史資料可能仍需清理。',failed:'主機監測需要處理',unavailable:'無法取得',stale:'資料已過期',lastLabel:'最後成功取樣:',last:'最後成功取樣:{0}',none:'尚無成功的取樣',wsl:'WSL 2',linux:'Linux',darwin:'macOS',wslNote:'CPU 與記憶體代表 WSL,不是實體 Windows 電腦。存放 WSL 的 Windows 磁碟會另外列出。',macNote:'APFS 磁碟區可能共用空間,請勿把可用空間相加。可用記憶體是估算值,記憶體壓力會另外顯示。',linuxNote:'本機 Linux 檔案系統與可用記憶體。無法取得的欄位不會當作零。',runtimeNote:'配對的 Windows 電腦是另一台,不算在這裡的數字裡。',storage:'儲存空間',root:'Linux 檔案系統',state:'Fleet 狀態資料',backing:'存放 WSL 的 Windows 磁碟',volume:'本機磁碟區',drive:'({0}:)',shared:'共用 APFS 容量',sharedHint:'請勿把各磁碟區的可用空間相加。',free:'可用 {0}',used:'已使用 {0}%',unknownDrive:'尚未確認 Windows 磁碟',chooseDrive:'到設定選擇磁碟',unknownHint:'只有 Linux 的可用空間,無法判斷存放 WSL 的 Windows 磁碟是否還有空間。',cpu:'CPU',wslCpu:'WSL CPU',wslMemory:'WSL 記憶體',cpuUsed:'使用率 {0}%',cores:'{0} 個邏輯 CPU',loadLabel:'平均負載:',load:'平均負載:{0}',memory:'記憶體',available:'可用 {0},共 {1}',pressureLabel:'記憶體壓力:',pressure:'記憶體壓力:{0}',normal:'正常',elevated:'偏高',critical:'嚴重',unknown:'未知',swap:'Swap 可用:{0}',history:'歷史紀錄',range:'歷史期間',coverageSummary:'{1} 項讀數中,{0} 項有最新資料',collecting:'正在累積歷史紀錄…',noHistory:'這段期間尚無記錄的取樣',historyUnavailable:'暫時無法取得歷史紀錄,請重新整理再試。',historyLoading:'正在載入歷史紀錄…',historyWaiting:'歷史紀錄尚未開始取樣。',historyPaused:'歷史紀錄已暫停。',historyFailed:'無法記錄歷史,目前的取樣仍可查看。',lowSpace:'儲存空間不足:目前取樣只保留在記憶體中。',recovering:'等待兩個儲存空間持續十分鐘都超過 4 GiB。',diskUnavailable:'無法取得儲存空間資料,歷史紀錄已暫停。',backingUnknown:'請先確認存放 WSL 的 Windows 磁碟,再記錄歷史。',clockChanged:'電腦時間往回調整,正在等待時間追上後再記錄。',historyBusy:'歷史儲存空間忙碌中,不會排入額外的寫入。',minimum:'最低:{0}',maximum:'最高:{0}',coverage:'{1} 個圖表區間中,{0} 個有記錄取樣',gaps:'缺口代表沒有記錄取樣,不是零。',retention:'歷史資料最多 64 MiB;原始取樣最多保留 24 小時,彙整最多 30 天。較舊的取樣可能提早清除。',snapshotOnly:'重新整理只讀取已保存的取樣,不會啟動新的探測。',samples:'主機每 30 秒 · 儲存空間每 60 秒',chart:'{0} 歷史',usedHistory:'儲存空間使用率',freeHistory:'可用空間趨勢',notMeasured:'未量測',psiHostLinux:'整台主機(含其他程式與容器,僅供參考):部分 {0}%(60 秒)· 全部 {1}%(10 秒)',psiHostWsl:'整個 WSL(含所有發行版與 Docker 容器,僅供參考):部分 {0}%(60 秒)· 全部 {1}%(10 秒)'}
|
|
16
16
|
});
|
|
17
17
|
const text=(key,...values)=>t(`hostHealth.${key}`,...values);
|
|
18
18
|
const displayBytes=value=>formatBytes(value)?.replace(/ /g,'\u00a0')??null;
|
|
@@ -51,7 +51,7 @@ export function HostHealthView({health,history,busy,range,onRange,onRefresh,agen
|
|
|
51
51
|
<${HostAlerts} alerts=${health.alerts} onChange=${onRefresh}/>
|
|
52
52
|
<div class="host-range" role="group" aria-label=${text('range')}>${HOST_RANGES.map(r=>html`<button type="button" class=${`btn btn-sm${range===r?' active':''}`} aria-pressed=${range===r} onClick=${()=>onRange(r)}>${r}</button>`)}</div>
|
|
53
53
|
<div class="host-grid"><div class="host-compute"><section class="card"><div class="host-row"><h3>${text(health.platform==='wsl'?'wslCpu':'cpu')}</h3><${ValueState} metric=${health.cpu} interval=${30000}/></div><p class="host-value">${numberOrNull(cpu?.usedPercent,100)===null?text('unavailable'):text('cpuUsed',cpu.usedPercent.toFixed(1))}</p><p class="note">${numberOrNull(cpu?.logicalCpus)!==null?text('cores',cpu.logicalCpus):text('unavailable')}</p>${Array.isArray(cpu?.loadAverage)?html`<p class="note">${text('loadLabel')}${lang()==='zh-TW'?'':' '}<span class="host-load-value">${cpu.loadAverage.slice(0,3).map(n=>numberOrNull(n)===null?'—':n.toFixed(2)).join(' / ')}</span></p>`:null}<p class="note">${sampleTime(health.cpu?.sampledAt)}</p><${HistoryChart} answer=${history} id="cpu.used" label=${text('cpu')}/></section>
|
|
54
|
-
<section class="card"><div class="host-row"><h3>${text(health.platform==='wsl'?'wslMemory':'memory')}</h3><${ValueState} metric=${health.memory} interval=${30000}/></div><p class="host-value">${text('pressureLabel')}${lang()==='zh-TW'?'':' '}<span class="host-pressure-value">${text(metricState(health.memory,30000)==='ok'&&['normal','elevated','critical'].includes(memory?.pressure)?memory.pressure:'unknown')}</span></p><p class="note">${numberOrNull(memory?.availableBytes)===null?text('unavailable'):monitoringHelp(health.platform,memory.availableKind==='free'?'availableFallback':'available',displayBytes(memory.availableBytes),displayBytes(memory.totalBytes)||text('unavailable'))}</p><p class="note" data-platform-memory-help>${monitoringHelp(health.platform,'memory')}</p><p class="note">${health.platform==='darwin'?monitoringHelp('darwin','swap',displayBytes(memory?.details?.kind==='darwin'?memory.details.swapUsedBytes:null)||text('unavailable'),displayBytes(memory?.swapTotalBytes)||text('unavailable')):monitoringHelp(health.platform,'swap',displayBytes(memory?.swapFreeBytes)||text('unavailable'))}</p>${health.platform==='darwin'?html`<p class="note" data-memory-compression>${monitoringHelp('darwin','compression',displayBytes(memory?.details?.kind==='darwin'?memory.details.compressedBytes:null)||text('unavailable'),displayBytes(memory?.details?.kind==='darwin'?memory.details.storedBytes:null)||text('unavailable'))}</p>`:html`<p class="note" data-memory-psi>${monitoringHelp(health.platform,'psi',numberOrNull(memory?.details?.psiSomeAvg60,100)===null?text('unavailable'):memory.details.psiSomeAvg60.toFixed(1),numberOrNull(memory?.details?.psiFullAvg10,100)===null?text('unavailable'):memory.details.psiFullAvg10.toFixed(1))}</p
|
|
54
|
+
<section class="card"><div class="host-row"><h3>${text(health.platform==='wsl'?'wslMemory':'memory')}</h3><${ValueState} metric=${health.memory} interval=${30000}/></div><p class="host-value">${text('pressureLabel')}${lang()==='zh-TW'?'':' '}<span class="host-pressure-value">${text(metricState(health.memory,30000)==='ok'&&['normal','elevated','critical'].includes(memory?.pressure)?memory.pressure:'unknown')}</span></p><p class="note">${numberOrNull(memory?.availableBytes)===null?text('unavailable'):monitoringHelp(health.platform,memory.availableKind==='free'?'availableFallback':'available',displayBytes(memory.availableBytes),displayBytes(memory.totalBytes)||text('unavailable'))}</p><p class="note" data-platform-memory-help>${monitoringHelp(health.platform,'memory')}</p><p class="note">${health.platform==='darwin'?monitoringHelp('darwin','swap',displayBytes(memory?.details?.kind==='darwin'?memory.details.swapUsedBytes:null)||text('unavailable'),displayBytes(memory?.swapTotalBytes)||text('unavailable')):monitoringHelp(health.platform,'swap',displayBytes(memory?.swapFreeBytes)||text('unavailable'))}</p>${health.platform==='darwin'?html`<p class="note" data-memory-compression>${monitoringHelp('darwin','compression',displayBytes(memory?.details?.kind==='darwin'?memory.details.compressedBytes:null)||text('unavailable'),displayBytes(memory?.details?.kind==='darwin'?memory.details.storedBytes:null)||text('unavailable'))}</p>`:html`<p class="note" data-memory-psi>${monitoringHelp(health.platform,'psi',numberOrNull(memory?.details?.psiSomeAvg60,100)===null?text('unavailable'):memory.details.psiSomeAvg60.toFixed(1),numberOrNull(memory?.details?.psiFullAvg10,100)===null?text('unavailable'):memory.details.psiFullAvg10.toFixed(1))}</p>${numberOrNull(memory?.details?.hostPsiSomeAvg60,100)!==null&&numberOrNull(memory?.details?.hostPsiFullAvg10,100)!==null?html`<p class="note" data-memory-host-psi>${text(health.platform==='wsl'?'psiHostWsl':'psiHostLinux',memory.details.hostPsiSomeAvg60.toFixed(1),memory.details.hostPsiFullAvg10.toFixed(1))}</p>`:null}`}<p class="note">${sampleTime(health.memory?.sampledAt)}</p><${HistoryChart} answer=${history} id="memory.available" label=${monitoringHelp(health.platform,'chart')} unit="bytes" /></section></div>
|
|
55
55
|
<${Storage} health=${health} history=${history}/></div><p class="note">${monitoringHelp(health.platform,'overall')}</p><p class="note">${keepWords(text('samples'))} · ${keepWords(text('snapshotOnly'))}</p><p class="note">${text('runtimeNote')}</p><p class="note">${text('gaps')}</p><p class="note">${text('retention')}</p><${HostFootprintView} snapshot=${health.footprint} offset=${agentOffset} onOffset=${onAgentOffset} onSelect=${onSelectedAgent} selected=${selectedAgent} charts=${selectedAgent&&health.footprint?.enabled?html`<${HistoryChart} answer=${history} id=${`agent.${selectedAgent}.cpu`} label=${footprintText('agentCpu')}/><${HistoryChart} answer=${history} id=${`agent.${selectedAgent}.rss`} label=${footprintText('agentMemory')} unit="bytes"/>`:null}/>`}
|
|
56
56
|
</section>`;
|
|
57
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {register,t} from '/assets/app-i18n.js';
|
|
2
2
|
register('hostLinux',{
|
|
3
|
-
en:{settings:'Linux pressure uses MemAvailable, memory-stall information (PSI) when available, and swap. Missing PSI uses the existing RAM/swap policy.',memory:'Pressure follows the Linux policy for available RAM, swap and PSI stalls.',available:'MemAvailable: {0} of {1}',availableFallback:'Free RAM fallback (MemAvailable unavailable): {0} of {1}',swap:'Swap free: {0}',compression:'',psi:'
|
|
4
|
-
'zh-TW':{settings:'Linux 依 MemAvailable
|
|
3
|
+
en:{settings:'Linux pressure uses MemAvailable, AgEnD\'s own memory-stall information (PSI, its own processes only) when available, and swap. Missing PSI uses the existing RAM/swap policy.',memory:'Pressure follows the Linux policy for available RAM, swap and PSI stalls.',available:'MemAvailable: {0} of {1}',availableFallback:'Free RAM fallback (MemAvailable unavailable): {0} of {1}',swap:'Swap free: {0}',compression:'',psi:'AgEnD\'s memory stalls (its own processes): some {0}% (60 s) · full {1}% (10 s)',alertHint:'Default: warn at Elevated and alert urgently at Critical. Your saved memory rule takes precedence.',overall:'Linux reports estimated available memory, PSI stalls and swap separately. Missing signals remain unavailable; local filesystem space is shown for the relevant storage pool.',chart:'Available memory'},
|
|
4
|
+
'zh-TW':{settings:'Linux 依 MemAvailable、可取得時 AgEnD 自身行程的記憶體停滯資料(PSI)及交換空間判斷壓力。沒有 PSI 時沿用 RAM 與交換空間規則。',memory:'壓力標籤依 Linux 的可用 RAM、交換空間與 PSI 停滯規則判斷。',available:'可用記憶體:{0}/{1}',availableFallback:'可用記憶體備用讀數:{0}/{1}',swap:'可用交換空間:{0}',compression:'',psi:'AgEnD 的記憶體停滯(只算它自己的行程):部分 {0}%(60 秒)· 全部 {1}%(10 秒)',alertHint:'預設偏高時發出注意警示、嚴重時發出緊急警示;你已儲存的記憶體規則優先。',overall:'Linux 分別呈現估算的可用記憶體、PSI 停滯與交換空間。缺少的訊號維持無法取得;本機檔案系統依相關儲存空間顯示。',chart:'可用記憶體'}
|
|
5
5
|
});
|
|
6
6
|
export const help=(key,...args)=>t('hostLinux.'+key,...args);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {register,t} from '/assets/app-i18n.js';
|
|
2
2
|
register('hostWsl',{
|
|
3
|
-
en:{settings:'WSL pressure uses its Linux MemAvailable, PSI and swap. These are WSL figures; the Windows drive holding the virtual disk is monitored separately.',memory:'Memory and swap belong to the WSL environment, not all Windows RAM. Pressure follows the Linux RAM/swap and PSI policy.',available:'WSL MemAvailable: {0} of {1}',availableFallback:'WSL free RAM fallback (MemAvailable unavailable): {0} of {1}',swap:'WSL swap free: {0}',compression:'',psi:'
|
|
4
|
-
'zh-TW':{settings:'WSL 依自身 Linux 的 MemAvailable、PSI 與交換空間判斷壓力。這些是 WSL 的數字;存放虛擬磁碟的 Windows 磁碟另行監測。',memory:'記憶體與交換空間屬於 WSL 環境,不是整台 Windows 電腦的 RAM。壓力依 Linux 的 RAM、交換空間與 PSI 規則判斷。',available:'WSL 可用記憶體:{0}/{1}',availableFallback:'WSL 可用記憶體備用讀數:{0}/{1}',swap:'WSL 可用交換空間:{0}',compression:'',psi:'
|
|
3
|
+
en:{settings:'WSL pressure uses its Linux MemAvailable, AgEnD\'s own PSI (its own processes only) and swap. These are WSL figures; the Windows drive holding the virtual disk is monitored separately.',memory:'Memory and swap belong to the WSL environment, not all Windows RAM. Pressure follows the Linux RAM/swap and PSI policy.',available:'WSL MemAvailable: {0} of {1}',availableFallback:'WSL free RAM fallback (MemAvailable unavailable): {0} of {1}',swap:'WSL swap free: {0}',compression:'',psi:'AgEnD\'s memory stalls (its own processes): some {0}% (60 s) · full {1}% (10 s)',alertHint:'Default: warn at Elevated and alert urgently at Critical. Your saved memory rule takes precedence.',overall:'WSL memory/swap are separate from Windows host memory. The Windows drive holding the virtual disk has its own free-space reading; an unknown drive is never guessed.',chart:'WSL available memory'},
|
|
4
|
+
'zh-TW':{settings:'WSL 依自身 Linux 的 MemAvailable、AgEnD 自身行程的 PSI 與交換空間判斷壓力。這些是 WSL 的數字;存放虛擬磁碟的 Windows 磁碟另行監測。',memory:'記憶體與交換空間屬於 WSL 環境,不是整台 Windows 電腦的 RAM。壓力依 Linux 的 RAM、交換空間與 PSI 規則判斷。',available:'WSL 可用記憶體:{0}/{1}',availableFallback:'WSL 可用記憶體備用讀數:{0}/{1}',swap:'WSL 可用交換空間:{0}',compression:'',psi:'AgEnD 的記憶體停滯(只算它自己的行程):部分 {0}%(60 秒)· 全部 {1}%(10 秒)',alertHint:'預設偏高時發出注意警示、嚴重時發出緊急警示;你已儲存的記憶體規則優先。',overall:'WSL 的記憶體與交換空間不代表 Windows 主機的全部用量。存放虛擬磁碟的 Windows 磁碟另有可用空間讀數;無法辨識時不會猜測。',chart:'WSL 可用記憶體'}
|
|
5
5
|
});
|
|
6
6
|
export const help=(key,...args)=>t('hostWsl.'+key,...args);
|
package/package.json
CHANGED