@cloud411716/fancy-webnovel 0.1.55 → 0.1.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -92,6 +92,9 @@ export async function apply(ctx) {
92
92
 
93
93
  notify(session, scan.notify({ type: 'collecting', platform, length }));
94
94
 
95
+ // 显示状态栏,运行时实时可见
96
+ ctx.tuiStatus?.set(`📊 采集中: ${platformLabel(platform)}(${length === 'long' ? '长篇' : '短篇'})`);
97
+
95
98
  const scriptResult = await spawnScript(
96
99
  'node',
97
100
  [join(SCAN_SCRIPTS_DIR, 'run-scan.js'),
@@ -99,6 +102,8 @@ export async function apply(ctx) {
99
102
  { timeout: 120000 }
100
103
  );
101
104
 
105
+ ctx.tuiStatus?.set('');
106
+
102
107
  if (!scriptResult.ok) {
103
108
  const err = (typeof scriptResult.error === 'object' && scriptResult.error !== null)
104
109
  ? (scriptResult.error.message || JSON.stringify(scriptResult.error))