Compare commits

...

6 Commits

Author SHA1 Message Date
0f794f76e8 v5.10.3
Some checks failed
Default (tags) / security (push) Failing after 0s
Default (tags) / test (push) Failing after 0s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-03-24 15:06:39 +00:00
ec57cc7c42 fix(config): replace npmextra with smartconfig for daemon key-value storage and release settings 2026-03-24 15:06:39 +00:00
f1d685b819 5.10.2
Some checks failed
Default (tags) / security (push) Failing after 12m9s
Default (tags) / test (push) Has been cancelled
Default (tags) / release (push) Has been cancelled
Default (tags) / metadata (push) Has been cancelled
2025-09-03 11:47:06 +00:00
61c4aabba3 fix(processmonitor): Bump smartdaemon and stop aggressive pidusage cache clearing in ProcessMonitor 2025-09-03 11:47:06 +00:00
f10a7847c2 5.10.1
Some checks failed
Default (tags) / security (push) Failing after 12m11s
Default (tags) / test (push) Has been cancelled
Default (tags) / release (push) Has been cancelled
Default (tags) / metadata (push) Has been cancelled
2025-09-03 08:27:06 +00:00
3a39fbd65f fix(processmonitor): Skip null pidusage entries when aggregating process-group memory/CPU to avoid errors 2025-09-03 08:27:06 +00:00
8 changed files with 138 additions and 95 deletions

View File

@@ -1,5 +1,25 @@
# Changelog
## 2026-03-24 - 5.10.3 - fix(config)
replace npmextra with smartconfig for daemon key-value storage and release settings
- swap the configuration storage dependency from @push.rocks/npmextra to @push.rocks/smartconfig
- update daemon config accessors to use the smartconfig KeyValueStore implementation
- add @git.zone/cli release registry and access configuration to npmextra.json
## 2025-09-03 - 5.10.2 - fix(processmonitor)
Bump smartdaemon and stop aggressive pidusage cache clearing in ProcessMonitor
- Update dependency @push.rocks/smartdaemon from ^2.0.9 to ^2.1.0 in package.json.
- Remove per-PID pidusage.clear calls in ts/daemon/processmonitor.ts (getProcessGroupStats) to avoid potential errors or unexpected behavior from manually clearing pidusage cache.
## 2025-09-03 - 5.10.1 - fix(processmonitor)
Skip null pidusage entries when aggregating process-group memory/CPU to avoid errors
- Add defensive check for null/undefined entries returned by pidusage before accessing memory/cpu fields
- Log a debug message when an individual process stat is null (process may have exited)
- Improve robustness of ProcessMonitor.getProcessGroupStats to prevent runtime exceptions during aggregation
## 2025-09-01 - 5.10.0 - feat(daemon)
Add crash log manager with rotation and integrate crash logging; improve IPC & process listener cleanup

View File

@@ -14,5 +14,14 @@
"npmci": {
"npmGlobalTools": [],
"npmAccessLevel": "public"
},
"@git.zone/cli": {
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
}
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@git.zone/tspm",
"version": "5.10.0",
"version": "5.10.3",
"private": false,
"description": "a no fuzz process manager",
"main": "dist_ts/index.js",
@@ -32,10 +32,10 @@
"@types/node": "^22.13.10"
},
"dependencies": {
"@push.rocks/npmextra": "^5.3.3",
"@push.rocks/smartconfig": "^6.0.0",
"@push.rocks/projectinfo": "^5.0.2",
"@push.rocks/smartcli": "^4.0.11",
"@push.rocks/smartdaemon": "^2.0.9",
"@push.rocks/smartdaemon": "^2.1.0",
"@push.rocks/smartfile": "^11.2.7",
"@push.rocks/smartinteract": "^2.0.16",
"@push.rocks/smartipc": "^2.3.0",

166
pnpm-lock.yaml generated
View File

@@ -8,18 +8,18 @@ importers:
.:
dependencies:
'@push.rocks/npmextra':
specifier: ^5.3.3
version: 5.3.3
'@push.rocks/projectinfo':
specifier: ^5.0.2
version: 5.0.2
'@push.rocks/smartcli':
specifier: ^4.0.11
version: 4.0.11
'@push.rocks/smartconfig':
specifier: ^6.0.0
version: 6.0.0
'@push.rocks/smartdaemon':
specifier: ^2.0.9
version: 2.0.9
specifier: ^2.1.0
version: 2.1.0
'@push.rocks/smartfile':
specifier: ^11.2.7
version: 11.2.7
@@ -787,9 +787,6 @@ packages:
'@push.rocks/mongodump@1.1.0':
resolution: {integrity: sha512-kW0ZUGyf1e4nwloVwBQjNId+MzgTcNS834C+RxH21i1NqyOubbpWZtJtPP+K+s35nSJRyCTy3ICfBMdDBTAm2w==}
'@push.rocks/npmextra@5.3.3':
resolution: {integrity: sha512-snLpSHwaQ5OXlZzF1KX/FY71W5LwajjBzor82Vue0smjEPnSeUPY5/JcVdMwtdprdJe13pc/EQQuIiL/zw4/yg==}
'@push.rocks/projectinfo@5.0.2':
resolution: {integrity: sha512-zzieCal6jwR++o+fDl8gMpWkNV2cGEsbT96vCNZu/H9kr0iqRmapOiA4DFadkhOnhlDqvRr6TPaXESu2YUbI8Q==}
@@ -823,11 +820,14 @@ packages:
'@push.rocks/smartclickhouse@2.0.17':
resolution: {integrity: sha512-IYO8Obor/Ruam2KQ2B/+5uQ+rL0exU5KZoSgOc3jkkrfjn+zZenN2xoV8lVqavAtxZVfG7MfxFrcv6I7I9ZMmA==}
'@push.rocks/smartconfig@6.0.0':
resolution: {integrity: sha512-ohXwJdbDXV2budErnZKWBOz01YkjP6gJsZ7QM9+6Wsh+r7O1CVT3JpV+mD8xJWy5tZRHI+3B9L8z0+WkIDtKzw==}
'@push.rocks/smartcrypto@2.0.4':
resolution: {integrity: sha512-1+/5bsjyataf5uUkUNnnVXGRAt+gHVk1KDzozjTqgqJxHvQk1d9fVDohL6CxUhUucTPtu5VR5xNBiV8YCDuGyw==}
'@push.rocks/smartdaemon@2.0.9':
resolution: {integrity: sha512-TJd2N/vMAY3qpuy7ub0btNsSqdy7oU/hF/D+BbmfJVAiTKpvlgtCXKE5POwfuee03SONyh8LuH5Ey1ycIpsEHA==}
'@push.rocks/smartdaemon@2.1.0':
resolution: {integrity: sha512-cxc05jvA/frb3rJ5EdQkkfbJXiFC33u57LmOaBye6Hynj4w/ZZjph7WLAkp6Yx8+75Ldajm6LXIRxn91+RbDeQ==}
'@push.rocks/smartdata@5.16.4':
resolution: {integrity: sha512-COiKw8yk9iAcLN44WmZHG8Gi0v+HGkgM8Osoq7Cns+UsOA+grPepqbN2r0XPG1fm5vOdJcaydi2ZU0xrnbGVvQ==}
@@ -898,6 +898,9 @@ packages:
'@push.rocks/smartlog@3.1.8':
resolution: {integrity: sha512-j4H5x4/hEmiIO7q+/LKyX3N+AhRIOj1jDE4TvZDvujZkbT/9wEWfpO1bqeMe/EQbg1eOQMlAuyrcLXUcDICpQg==}
'@push.rocks/smartlog@3.1.9':
resolution: {integrity: sha512-Lix1pazMhvnSUyj4Bt+pO+SvImw3l0dm5A0LTTx/QaSlWP8bpAQNQ+8z7wfQy3pIKFHkApxvGM6WprgCCS2itQ==}
'@push.rocks/smartmanifest@2.0.2':
resolution: {integrity: sha512-QGc5C9vunjfUbYsPGz5bynV/mVmPHkrQDkWp8ZO8VJtK1GZe+njgbrNyxn2SUHR0IhSAbSXl1j4JvBqYf5eTVg==}
@@ -1270,8 +1273,8 @@ packages:
resolution: {integrity: sha512-EYqsIYJmkR1VhVE9pccnk353xhs+lB6btdutJEtsp7R055haMJp2yE16eSxw8fv+G0WUY6vqxyYOP8kOqawxYQ==}
engines: {node: '>=18.0.0'}
'@smithy/core@3.9.0':
resolution: {integrity: sha512-B/GknvCfS3llXd/b++hcrwIuqnEozQDnRL4sBmOac5/z/dr0/yG1PURNPOyU4Lsiy1IyTj8scPxVqRs5dYWf6A==}
'@smithy/core@3.9.1':
resolution: {integrity: sha512-E3erEn1SjPq8P9w2fPlp1+slaq6FlrRKlsaLCo0aPMY2j94lwZlwz1yqY4yDeX3+ViG+sOEPPRBZGfdciMtABA==}
engines: {node: '>=18.0.0'}
'@smithy/credential-provider-imds@4.0.7':
@@ -1338,16 +1341,16 @@ packages:
resolution: {integrity: sha512-ZhvqcVRPZxnZlokcPaTwb+r+h4yOIOCJmx0v2d1bpVlmP465g3qpVSf7wxcq5zZdu4jb0H4yIMxuPwDJSQc3MQ==}
engines: {node: '>=18.0.0'}
'@smithy/middleware-endpoint@4.1.19':
resolution: {integrity: sha512-EAlEPncqo03siNZJ9Tm6adKCQ+sw5fNU8ncxWwaH0zTCwMPsgmERTi6CEKaermZdgJb+4Yvh0NFm36HeO4PGgQ==}
'@smithy/middleware-endpoint@4.1.20':
resolution: {integrity: sha512-6jwjI4l9LkpEN/77ylyWsA6o81nKSIj8itRjtPpVqYSf+q8b12uda0Upls5CMSDXoL/jY2gPsNj+/Tg3gbYYew==}
engines: {node: '>=18.0.0'}
'@smithy/middleware-retry@4.1.19':
resolution: {integrity: sha512-X58zx/NVECjeuUB6A8HBu4bhx72EoUz+T5jTMIyeNKx2lf+Gs9TmWPNNkH+5QF0COjpInP/xSpJGJ7xEnAklQQ==}
engines: {node: '>=18.0.0'}
'@smithy/middleware-retry@4.1.20':
resolution: {integrity: sha512-T3maNEm3Masae99eFdx1Q7PIqBBEVOvRd5hralqKZNeIivnoGNx5OFtI3DiZ5gCjUkl0mNondlzSXeVxkinh7Q==}
'@smithy/middleware-retry@4.1.21':
resolution: {integrity: sha512-oFpp+4JfNef0Mp2Jw8wIl1jVxjhUU3jFZkk3UTqBtU5Xp6/ahTu6yo1EadWNPAnCjKTo8QB6Q+SObX97xfMUtA==}
engines: {node: '>=18.0.0'}
'@smithy/middleware-serde@4.0.9':
@@ -1398,8 +1401,8 @@ packages:
resolution: {integrity: sha512-iW6HjXqN0oPtRS0NK/zzZ4zZeGESIFcxj2FkWed3mcK8jdSdHzvnCKXSjvewESKAgGKAbJRA+OsaqKhkdYRbQQ==}
engines: {node: '>=18.0.0'}
'@smithy/smithy-client@4.5.0':
resolution: {integrity: sha512-ZSdE3vl0MuVbEwJBxSftm0J5nL/gw76xp5WF13zW9cN18MFuFXD5/LV0QD8P+sCU5bSWGyy6CTgUupE1HhOo1A==}
'@smithy/smithy-client@4.5.1':
resolution: {integrity: sha512-PuvtnQgwpy3bb56YvHAP7eRwp862yJxtQno40UX9kTjjkgTlo//ov+e1IVCFTiELcAOiqF2++Y0e7eH/Zgv5Vw==}
engines: {node: '>=18.0.0'}
'@smithy/types@4.3.2':
@@ -1438,16 +1441,16 @@ packages:
resolution: {integrity: sha512-xgl75aHIS/3rrGp7iTxQAOELYeyiwBu+eEgAk4xfKwJJ0L8VUjhO2shsDpeil54BOFsqmk5xfdesiewbUY5tKQ==}
engines: {node: '>=18.0.0'}
'@smithy/util-defaults-mode-browser@4.0.27':
resolution: {integrity: sha512-i/Fu6AFT5014VJNgWxKomBJP/GB5uuOsM4iHdcmplLm8B1eAqnRItw4lT2qpdO+mf+6TFmf6dGcggGLAVMZJsQ==}
'@smithy/util-defaults-mode-browser@4.0.28':
resolution: {integrity: sha512-83Iqb9c443d8S/9PD6Bb770Q3ZvCenfgJDoR98iveI+zKpu6d4mOVS2RKBU9Z4VQPbRcrRj71SY0kZePGh+wZg==}
engines: {node: '>=18.0.0'}
'@smithy/util-defaults-mode-node@4.0.26':
resolution: {integrity: sha512-z81yyIkGiLLYVDetKTUeCZQ8x20EEzvQjrqJtb/mXnevLq2+w3XCEWTJ2pMp401b6BkEkHVfXb/cROBpVauLMQ==}
engines: {node: '>=18.0.0'}
'@smithy/util-defaults-mode-node@4.0.27':
resolution: {integrity: sha512-3W0qClMyxl/ELqTA39aNw1N+pN0IjpXT7lPFvZ8zTxqVFP7XCpACB9QufmN4FQtd39xbgS7/Lekn7LmDa63I5w==}
'@smithy/util-defaults-mode-node@4.0.28':
resolution: {integrity: sha512-LzklW4HepBM198vH0C3v+WSkMHOkxu7axCEqGoKdICz3RHLq+mDs2AkDDXVtB61+SHWoiEsc6HOObzVQbNLO0Q==}
engines: {node: '>=18.0.0'}
'@smithy/util-endpoints@3.0.7':
@@ -4681,26 +4684,26 @@ snapshots:
'@aws-sdk/util-user-agent-browser': 3.734.0
'@aws-sdk/util-user-agent-node': 3.758.0
'@smithy/config-resolver': 4.1.5
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/fetch-http-handler': 5.1.1
'@smithy/hash-node': 4.0.5
'@smithy/invalid-dependency': 4.0.5
'@smithy/middleware-content-length': 4.0.5
'@smithy/middleware-endpoint': 4.1.19
'@smithy/middleware-retry': 4.1.20
'@smithy/middleware-endpoint': 4.1.20
'@smithy/middleware-retry': 4.1.21
'@smithy/middleware-serde': 4.0.9
'@smithy/middleware-stack': 4.0.5
'@smithy/node-config-provider': 4.1.4
'@smithy/node-http-handler': 4.1.1
'@smithy/protocol-http': 5.1.3
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/url-parser': 4.0.5
'@smithy/util-base64': 4.0.0
'@smithy/util-body-length-browser': 4.0.0
'@smithy/util-body-length-node': 4.0.0
'@smithy/util-defaults-mode-browser': 4.0.27
'@smithy/util-defaults-mode-node': 4.0.27
'@smithy/util-defaults-mode-browser': 4.0.28
'@smithy/util-defaults-mode-node': 4.0.28
'@smithy/util-endpoints': 3.0.7
'@smithy/util-middleware': 4.0.5
'@smithy/util-retry': 4.0.7
@@ -4788,26 +4791,26 @@ snapshots:
'@aws-sdk/util-user-agent-browser': 3.734.0
'@aws-sdk/util-user-agent-node': 3.758.0
'@smithy/config-resolver': 4.1.5
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/fetch-http-handler': 5.1.1
'@smithy/hash-node': 4.0.5
'@smithy/invalid-dependency': 4.0.5
'@smithy/middleware-content-length': 4.0.5
'@smithy/middleware-endpoint': 4.1.19
'@smithy/middleware-retry': 4.1.20
'@smithy/middleware-endpoint': 4.1.20
'@smithy/middleware-retry': 4.1.21
'@smithy/middleware-serde': 4.0.9
'@smithy/middleware-stack': 4.0.5
'@smithy/node-config-provider': 4.1.4
'@smithy/node-http-handler': 4.1.1
'@smithy/protocol-http': 5.1.3
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/url-parser': 4.0.5
'@smithy/util-base64': 4.0.0
'@smithy/util-body-length-browser': 4.0.0
'@smithy/util-body-length-node': 4.0.0
'@smithy/util-defaults-mode-browser': 4.0.27
'@smithy/util-defaults-mode-node': 4.0.27
'@smithy/util-defaults-mode-browser': 4.0.28
'@smithy/util-defaults-mode-node': 4.0.28
'@smithy/util-endpoints': 3.0.7
'@smithy/util-middleware': 4.0.5
'@smithy/util-retry': 4.0.7
@@ -4863,12 +4866,12 @@ snapshots:
'@aws-sdk/core@3.758.0':
dependencies:
'@aws-sdk/types': 3.734.0
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/node-config-provider': 4.1.4
'@smithy/property-provider': 4.0.5
'@smithy/protocol-http': 5.1.3
'@smithy/signature-v4': 5.1.3
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/util-middleware': 4.0.5
fast-xml-parser: 4.4.1
@@ -4929,7 +4932,7 @@ snapshots:
'@smithy/node-http-handler': 4.1.1
'@smithy/property-provider': 4.0.5
'@smithy/protocol-http': 5.1.3
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/util-stream': 4.2.4
tslib: 2.8.1
@@ -5103,7 +5106,7 @@ snapshots:
'@aws-sdk/credential-provider-web-identity': 3.758.0
'@aws-sdk/nested-clients': 3.758.0
'@aws-sdk/types': 3.734.0
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/credential-provider-imds': 4.0.7
'@smithy/property-provider': 4.0.5
'@smithy/types': 4.3.2
@@ -5222,7 +5225,7 @@ snapshots:
'@aws-sdk/core': 3.758.0
'@aws-sdk/types': 3.734.0
'@aws-sdk/util-endpoints': 3.743.0
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/protocol-http': 5.1.3
'@smithy/types': 4.3.2
tslib: 2.8.1
@@ -5253,26 +5256,26 @@ snapshots:
'@aws-sdk/util-user-agent-browser': 3.734.0
'@aws-sdk/util-user-agent-node': 3.758.0
'@smithy/config-resolver': 4.1.5
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/fetch-http-handler': 5.1.1
'@smithy/hash-node': 4.0.5
'@smithy/invalid-dependency': 4.0.5
'@smithy/middleware-content-length': 4.0.5
'@smithy/middleware-endpoint': 4.1.19
'@smithy/middleware-retry': 4.1.20
'@smithy/middleware-endpoint': 4.1.20
'@smithy/middleware-retry': 4.1.21
'@smithy/middleware-serde': 4.0.9
'@smithy/middleware-stack': 4.0.5
'@smithy/node-config-provider': 4.1.4
'@smithy/node-http-handler': 4.1.1
'@smithy/protocol-http': 5.1.3
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/url-parser': 4.0.5
'@smithy/util-base64': 4.0.0
'@smithy/util-body-length-browser': 4.0.0
'@smithy/util-body-length-node': 4.0.0
'@smithy/util-defaults-mode-browser': 4.0.27
'@smithy/util-defaults-mode-node': 4.0.27
'@smithy/util-defaults-mode-browser': 4.0.28
'@smithy/util-defaults-mode-node': 4.0.28
'@smithy/util-endpoints': 3.0.7
'@smithy/util-middleware': 4.0.5
'@smithy/util-retry': 4.0.7
@@ -5662,7 +5665,7 @@ snapshots:
'@push.rocks/smartcli': 4.0.11
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartfile': 11.2.7
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartnpm': 2.0.6
'@push.rocks/smartpath': 6.0.0
'@push.rocks/smartrequest': 4.3.1
@@ -6094,18 +6097,6 @@ snapshots:
- snappy
- socks
'@push.rocks/npmextra@5.3.3':
dependencies:
'@push.rocks/qenv': 6.1.3
'@push.rocks/smartfile': 11.2.7
'@push.rocks/smartjson': 5.0.20
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartpath': 6.0.0
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smartrx': 3.0.10
'@push.rocks/taskbuffer': 3.1.7
'@tsclass/tsclass': 9.2.0
'@push.rocks/projectinfo@5.0.2':
dependencies:
'@push.rocks/smartfile': 10.0.41
@@ -6213,18 +6204,30 @@ snapshots:
'@push.rocks/smarturl': 3.1.0
'@push.rocks/webrequest': 3.0.37
'@push.rocks/smartconfig@6.0.0':
dependencies:
'@push.rocks/qenv': 6.1.3
'@push.rocks/smartfile': 11.2.7
'@push.rocks/smartjson': 5.0.20
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartpath': 6.0.0
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smartrx': 3.0.10
'@push.rocks/taskbuffer': 3.1.10
'@tsclass/tsclass': 9.2.0
'@push.rocks/smartcrypto@2.0.4':
dependencies:
'@push.rocks/smartpromise': 4.2.3
'@types/node-forge': 1.3.14
node-forge: 1.3.1
'@push.rocks/smartdaemon@2.0.9':
'@push.rocks/smartdaemon@2.1.0':
dependencies:
'@push.rocks/lik': 6.2.2
'@push.rocks/smartfile': 11.2.7
'@push.rocks/smartfm': 2.2.2
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartlog-destination-local': 9.0.2
'@push.rocks/smartpath': 6.0.0
'@push.rocks/smartshell': 3.3.0
@@ -6405,6 +6408,19 @@ snapshots:
'@push.rocks/webrequest': 3.0.37
'@tsclass/tsclass': 9.2.0
'@push.rocks/smartlog@3.1.9':
dependencies:
'@api.global/typedrequest-interfaces': 3.0.19
'@push.rocks/consolecolor': 2.0.3
'@push.rocks/isounique': 1.0.5
'@push.rocks/smartclickhouse': 2.0.17
'@push.rocks/smartfile': 11.2.7
'@push.rocks/smarthash': 3.2.3
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smarttime': 4.1.1
'@push.rocks/webrequest': 3.0.37
'@tsclass/tsclass': 9.2.0
'@push.rocks/smartmanifest@2.0.2': {}
'@push.rocks/smartmarkdown@3.0.3':
@@ -6645,7 +6661,7 @@ snapshots:
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartenv': 5.0.13
'@push.rocks/smartjson': 5.0.20
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smartrx': 3.0.10
'@push.rocks/smarttime': 4.1.1
@@ -6783,7 +6799,7 @@ snapshots:
dependencies:
'@push.rocks/lik': 6.2.2
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smartrx': 3.0.10
'@push.rocks/smarttime': 4.1.1
@@ -6793,7 +6809,7 @@ snapshots:
dependencies:
'@push.rocks/lik': 6.2.2
'@push.rocks/smartdelay': 3.0.5
'@push.rocks/smartlog': 3.1.8
'@push.rocks/smartlog': 3.1.9
'@push.rocks/smartpromise': 4.2.3
'@push.rocks/smartrx': 3.0.10
'@push.rocks/smarttime': 4.1.1
@@ -7055,7 +7071,7 @@ snapshots:
tslib: 2.8.1
uuid: 9.0.1
'@smithy/core@3.9.0':
'@smithy/core@3.9.1':
dependencies:
'@smithy/middleware-serde': 4.0.9
'@smithy/protocol-http': 5.1.3
@@ -7172,9 +7188,9 @@ snapshots:
'@smithy/util-middleware': 4.0.5
tslib: 2.8.1
'@smithy/middleware-endpoint@4.1.19':
'@smithy/middleware-endpoint@4.1.20':
dependencies:
'@smithy/core': 3.9.0
'@smithy/core': 3.9.1
'@smithy/middleware-serde': 4.0.9
'@smithy/node-config-provider': 4.1.4
'@smithy/shared-ini-file-loader': 4.0.5
@@ -7197,12 +7213,12 @@ snapshots:
tslib: 2.8.1
uuid: 9.0.1
'@smithy/middleware-retry@4.1.20':
'@smithy/middleware-retry@4.1.21':
dependencies:
'@smithy/node-config-provider': 4.1.4
'@smithy/protocol-http': 5.1.3
'@smithy/service-error-classification': 4.0.7
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
'@smithy/util-middleware': 4.0.5
'@smithy/util-retry': 4.0.7
@@ -7288,10 +7304,10 @@ snapshots:
'@smithy/util-stream': 4.2.4
tslib: 2.8.1
'@smithy/smithy-client@4.5.0':
'@smithy/smithy-client@4.5.1':
dependencies:
'@smithy/core': 3.9.0
'@smithy/middleware-endpoint': 4.1.19
'@smithy/core': 3.9.1
'@smithy/middleware-endpoint': 4.1.20
'@smithy/middleware-stack': 4.0.5
'@smithy/protocol-http': 5.1.3
'@smithy/types': 4.3.2
@@ -7345,10 +7361,10 @@ snapshots:
bowser: 2.12.1
tslib: 2.8.1
'@smithy/util-defaults-mode-browser@4.0.27':
'@smithy/util-defaults-mode-browser@4.0.28':
dependencies:
'@smithy/property-provider': 4.0.5
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
bowser: 2.12.1
tslib: 2.8.1
@@ -7364,13 +7380,13 @@ snapshots:
'@smithy/types': 4.3.2
tslib: 2.8.1
'@smithy/util-defaults-mode-node@4.0.27':
'@smithy/util-defaults-mode-node@4.0.28':
dependencies:
'@smithy/config-resolver': 4.1.5
'@smithy/credential-provider-imds': 4.0.7
'@smithy/node-config-provider': 4.1.4
'@smithy/property-provider': 4.0.5
'@smithy/smithy-client': 4.5.0
'@smithy/smithy-client': 4.5.1
'@smithy/types': 4.3.2
tslib: 2.8.1
optional: true

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tspm',
version: '5.10.0',
version: '5.10.3',
description: 'a no fuzz process manager'
}

View File

@@ -435,21 +435,19 @@ export class ProcessMonitor extends EventEmitter {
let totalMemory = 0;
let totalCpu = 0;
for (const key in stats) {
totalMemory += stats[key].memory;
totalCpu += Number.isFinite(stats[key].cpu) ? stats[key].cpu : 0;
// Check if stats[key] exists and is not null (process may have exited)
if (stats[key]) {
totalMemory += stats[key].memory || 0;
totalCpu += Number.isFinite(stats[key].cpu) ? stats[key].cpu : 0;
} else {
this.logger.debug(`Process ${key} stats are null (process may have exited)`);
}
}
this.logger.debug(
`Total memory for process group: ${this.humanReadableBytes(totalMemory)}`,
);
// Clear pidusage cache for all PIDs to prevent memory leaks
for (const pid of pids) {
try {
(plugins.pidusage as any)?.clear?.(pid);
} catch {}
}
resolve({ memory: totalMemory, cpu: totalCpu });
},
);

View File

@@ -1,20 +1,20 @@
import * as plugins from '../plugins.js';
export class TspmConfig {
public npmextraInstance = new plugins.npmextra.KeyValueStore({
public smartconfigInstance = new plugins.smartconfig.KeyValueStore({
identityArg: '@git.zone__tspm',
typeArg: 'userHomeDir',
});
public async readKey(keyArg: string): Promise<string> {
return await this.npmextraInstance.readKey(keyArg);
return await this.smartconfigInstance.readKey(keyArg);
}
public async writeKey(keyArg: string, value: string): Promise<void> {
return await this.npmextraInstance.writeKey(keyArg, value);
return await this.smartconfigInstance.writeKey(keyArg, value);
}
public async deleteKey(keyArg: string): Promise<void> {
return await this.npmextraInstance.deleteKey(keyArg);
return await this.smartconfigInstance.deleteKey(keyArg);
}
}

View File

@@ -6,7 +6,7 @@ import * as path from 'node:path';
export { childProcess, path };
// @push.rocks scope
import * as npmextra from '@push.rocks/npmextra';
import * as smartconfig from '@push.rocks/smartconfig';
import * as projectinfo from '@push.rocks/projectinfo';
import * as smartcli from '@push.rocks/smartcli';
import * as smartdaemon from '@push.rocks/smartdaemon';
@@ -16,7 +16,7 @@ import * as smartpath from '@push.rocks/smartpath';
import * as smartinteract from '@push.rocks/smartinteract';
// Export with explicit module types
export { npmextra, projectinfo, smartcli, smartdaemon, smartfile, smartipc, smartpath, smartinteract };
export { smartconfig, projectinfo, smartcli, smartdaemon, smartfile, smartipc, smartpath, smartinteract };
// third-party scope
import psTree from 'ps-tree';