Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e7d416048 | |||
| 23f41cc152 | |||
| ad7e9b0b46 | |||
| 8cf016f0d8 |
13
changelog.md
13
changelog.md
@@ -1,5 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-10-28 - 1.4.2 - fix(scriptindex)
|
||||
Handle missing script metadata fields in ScriptIndex.search to prevent crashes
|
||||
|
||||
- Add null/undefined checks for name, slug, and description in ScriptIndex.search to avoid runtime exceptions when script metadata is incomplete
|
||||
- Improves robustness of scripts search against partially populated or malformed cached metadata
|
||||
|
||||
## 2025-10-28 - 1.4.1 - fix(cli)
|
||||
Fallback to 'unknown' when script.slug is missing in scripts list
|
||||
|
||||
- Fixes a potential runtime error when listing scripts if a script entry lacks a slug
|
||||
- Uses a safe fallback ('unknown') before calling padEnd to ensure stable output
|
||||
- Modified file: ts/moxytool.cli.ts
|
||||
|
||||
## 2025-10-28 - 1.4.0 - feat(cli)
|
||||
Improve CLI output and logging with colored header, grouped script listings, and ANSI-styled logger
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@serve.zone/moxytool",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"exports": "./mod.ts",
|
||||
"nodeModulesDir": "auto",
|
||||
"tasks": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@serve.zone/moxytool",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"description": "Proxmox administration tool for vGPU setup, VM management, and cluster configuration",
|
||||
"keywords": [
|
||||
"proxmox",
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/moxytool',
|
||||
version: '1.4.0',
|
||||
version: '1.4.2',
|
||||
description: 'Proxmox administration tool for vGPU setup, VM management, and cluster configuration'
|
||||
}
|
||||
|
||||
@@ -263,9 +263,9 @@ export class ScriptIndex {
|
||||
return this.cache.scripts.filter((script) => {
|
||||
// Search in name, description, and slug
|
||||
return (
|
||||
script.name.toLowerCase().includes(lowerQuery) ||
|
||||
script.slug.toLowerCase().includes(lowerQuery) ||
|
||||
script.description.toLowerCase().includes(lowerQuery)
|
||||
(script.name && script.name.toLowerCase().includes(lowerQuery)) ||
|
||||
(script.slug && script.slug.toLowerCase().includes(lowerQuery)) ||
|
||||
(script.description && script.description.toLowerCase().includes(lowerQuery))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -273,7 +273,8 @@ export const runCli = async () => {
|
||||
if (otherScripts.length > 0) {
|
||||
logger.log('info', 'Other:');
|
||||
otherScripts.forEach(script => {
|
||||
logger.log('info', ` • ${script.slug.padEnd(25)} - ${script.name} (${script.type})`);
|
||||
const slug = script.slug || 'unknown';
|
||||
logger.log('info', ` • ${slug.padEnd(25)} - ${script.name} (${script.type})`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user