@mediaproc/cli 0.3.0 → 0.4.0
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MediaProc
|
|
2
2
|
|
|
3
|
-
> ✨ **v0.
|
|
3
|
+
> ✨ **v0.3.0 Released!** - Config System + Auto-Init + Enhanced Plugin Management
|
|
4
4
|
|
|
5
5
|
Universal media processing CLI with an extensible plugin architecture. One tool to process all your media - images, videos, audio, documents, and more.
|
|
6
6
|
|
|
@@ -12,6 +12,41 @@ Universal media processing CLI with an extensible plugin architecture. One tool
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## 🎉 What's New in v0.3.0
|
|
16
|
+
|
|
17
|
+
**Major improvements to configuration and plugin management:**
|
|
18
|
+
|
|
19
|
+
### 🏗️ Configuration System
|
|
20
|
+
- **Global Config**: Configuration now lives in `~/.mediaproc/config.json` (not project-specific)
|
|
21
|
+
- **Auto-initialization**: Config is automatically created on first run
|
|
22
|
+
- **Plugin Tracking**: System now tracks installed and loaded plugins separately
|
|
23
|
+
- **Better State Management**: No more manual package.json scanning
|
|
24
|
+
|
|
25
|
+
### 🔧 Enhanced Commands
|
|
26
|
+
- **`mediaproc init`**: Initialize or reset configuration with `--reset` flag
|
|
27
|
+
- **`mediaproc config show`**: Beautiful display of config with plugin status
|
|
28
|
+
- **`mediaproc config path`**: Quickly find your config file location
|
|
29
|
+
- **`mediaproc config get <key>`**: Get specific config values
|
|
30
|
+
|
|
31
|
+
### 🎯 Improved Plugin Management
|
|
32
|
+
- **Smart Detection**: System automatically detects plugin installation/loading status
|
|
33
|
+
- **Config Integration**: Add/remove commands update config state automatically
|
|
34
|
+
- **Status Indicators**: Universal commands show plugin status (loaded/installed/not installed)
|
|
35
|
+
- **Cleaner Architecture**: Removed redundant plugin discovery logic
|
|
36
|
+
|
|
37
|
+
### 🐛 Bug Fixes
|
|
38
|
+
- Fixed unused variable warnings in plugin-manager
|
|
39
|
+
- Improved plugin prefix detection
|
|
40
|
+
- Better error handling in config operations
|
|
41
|
+
- Cleaner import statements
|
|
42
|
+
|
|
43
|
+
### 📝 Breaking Changes
|
|
44
|
+
- Config file moved from `./mediaproc.config.json` to `~/.mediaproc/config.json`
|
|
45
|
+
- Run `mediaproc init` to create new config structure
|
|
46
|
+
- Old project-level configs need manual migration (or just reinstall plugins)
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
15
50
|
## 📋 Table of Contents
|
|
16
51
|
|
|
17
52
|
- [The Problem](#-the-problem)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/plugin-manager.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.test.js","sourceRoot":"","sources":["../../src/__tests__/plugin-manager.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,IAAI,CAAC,kBAAkB,EAAE,GAAG,EAAE;QAC5B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediaproc/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Universal media processing CLI with plugin architecture",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"clean": "rm -rf dist",
|
|
20
20
|
"clean:all": "pnpm clean && pnpm --filter '@mediaproc/*' clean",
|
|
21
21
|
"dev": "tsc --watch",
|
|
22
|
-
"test": "
|
|
22
|
+
"test": "jest",
|
|
23
|
+
"test:watch": "jest --watch",
|
|
24
|
+
"test:coverage": "jest --coverage",
|
|
25
|
+
"test:all": "pnpm test && pnpm --filter '@mediaproc/*' test",
|
|
23
26
|
"prepublishOnly": "pnpm clean && pnpm build",
|
|
24
27
|
"prepare": "pnpm build"
|
|
25
28
|
},
|
|
@@ -66,7 +69,12 @@
|
|
|
66
69
|
"tesseract.js": "^7.0.0"
|
|
67
70
|
},
|
|
68
71
|
"devDependencies": {
|
|
72
|
+
"@jest/globals": "^30.2.0",
|
|
73
|
+
"@types/jest": "^30.0.0",
|
|
69
74
|
"@types/node": "^25.0.3",
|
|
75
|
+
"jest": "^30.2.0",
|
|
76
|
+
"ts-jest": "^29.4.6",
|
|
77
|
+
"ts-node": "^10.9.2",
|
|
70
78
|
"typescript": "^5.3.3"
|
|
71
79
|
}
|
|
72
80
|
}
|