@cloud411716/fancy-webnovel 0.1.73 → 0.1.74
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
|
@@ -109,15 +109,9 @@ export async function apply(ctx) {
|
|
|
109
109
|
|
|
110
110
|
notify(session, scan.notify({ type: 'collecting', platform, length }));
|
|
111
111
|
|
|
112
|
-
//
|
|
113
|
-
let step = 0;
|
|
112
|
+
// 采集过程中更新 status bar
|
|
114
113
|
const tick = setInterval(() => {
|
|
115
|
-
|
|
116
|
-
session.append('tool/call', {
|
|
117
|
-
callId: `progress-${step}`,
|
|
118
|
-
name: 'fancy-scan/progress',
|
|
119
|
-
arguments: JSON.stringify({ platform, length, step }),
|
|
120
|
-
});
|
|
114
|
+
session.append('turn/start', { source: 'fancy-scan' });
|
|
121
115
|
}, 2000);
|
|
122
116
|
|
|
123
117
|
const scriptResult = await spawnScript(
|