playlist-admin 2.15.92 → 2.15.98

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.
Files changed (2) hide show
  1. package/cli/index.js +20 -2
  2. package/package.json +1 -1
package/cli/index.js CHANGED
@@ -19,7 +19,7 @@ Usage:
19
19
  playlist-admin update| upgrade 更新 CLI(npm)並提示 GUI 更新方式
20
20
  playlist-admin where 顯示根目錄 / exe / 資料夾位置
21
21
  playlist-admin doctor [--fast] [--verbose] [--no-stt]
22
- 音訊庫健康檢查(覆蓋率/損毀/品質/語言/額度)
22
+ 音訊庫健康檢查(覆蓋率/損毀/品質/語言/額度)
23
23
 
24
24
  playlist-admin pipeline [--step N] Run full pipeline (or from step N)
25
25
  playlist-admin podcast Run podcast pipeline
@@ -38,6 +38,7 @@ Usage:
38
38
  playlist-admin skill list List bundled opencode skills
39
39
  playlist-admin skill install [name] [--dir X] Install skill(s) to opencode (~/.config/opencode/skills)
40
40
  playlist-admin skill path [name] Print installed path of a skill
41
+ playlist-admin tui Launch interactive TUI (Text User Interface)
41
42
  `;
42
43
 
43
44
  function projectRoot() {
@@ -383,6 +384,23 @@ async function main() {
383
384
  console.log(`資料 : ${path.join(root || '?', 'data')}`);
384
385
  return;
385
386
  }
387
+ if (args[0] === 'tui') {
388
+ // Launch TUI mode
389
+ const root = projectRoot();
390
+ if (!root) {
391
+ console.error('找不到專案根目錄(pubspec.yaml)。請在專案內執行,或設定 PA_ROOT');
392
+ process.exit(1);
393
+ }
394
+ const exe = exePath(root);
395
+ if (!exe) {
396
+ console.error(`找不到 build 好的 exe。
397
+ 請先在專案內執行: flutter build windows --release
398
+ 或設定 PA_ROOT=<專案根目錄>`);
399
+ process.exit(1);
400
+ }
401
+ forward(exe, ['tui']);
402
+ return;
403
+ }
386
404
 
387
405
  const root = projectRoot();
388
406
  if (!root) {
@@ -420,4 +438,4 @@ function cmdUpdate() {
420
438
  main().catch((e) => {
421
439
  console.error(e);
422
440
  process.exit(1);
423
- });
441
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playlist-admin",
3
- "version": "2.15.92",
3
+ "version": "2.15.98",
4
4
  "description": "playlist-admin CLI - pipeline, podcast, music + podcast RAG + study RAG (PDF 試題/課本)",
5
5
  "type": "module",
6
6
  "bin": {