@cloud411716/fancy-webnovel 1.0.25 → 1.0.27

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.
@@ -221,21 +221,13 @@ export function apply(ctx) {
221
221
 
222
222
  // ---------- output results ----------
223
223
  if (lastReceipt && totalFiles > 0) {
224
- notify(session, 'success', scan.notify({
224
+ return notify(session, 'success', scan.notify({
225
225
  type: 'handover',
226
226
  platform,
227
227
  files: lastReceipt.scan_files,
228
228
  topicFile: lastReceipt.topic_decision || '',
229
229
  projectRoot,
230
230
  }));
231
- const prompt = scan.llmAnalysisPrompt({
232
- platform,
233
- date: lastReceipt.date || '',
234
- files: lastReceipt.scan_files,
235
- topicFile: lastReceipt.topic_decision || '',
236
- projectRoot,
237
- });
238
- llmFollowup(invocation, prompt);
239
231
  }
240
232
 
241
233
  if (failedRanks.length > 0) {
@@ -123,8 +123,6 @@ export async function scrapeRank(rankId, ctx, signal) {
123
123
  } catch (_) { /* exhausted */ }
124
124
 
125
125
  return { ok: false, books: [], error: 'all strategies exhausted' };
126
-
127
- return { ok: false, books: [], error: 'all strategies exhausted' };
128
126
  }
129
127
 
130
128
  function parseMobileData(data) {
package/infra.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * infra.js — DSH Plugin Core Infrastructure
3
3
  *
4
4
  * Provides:
5
- * notify(session, text) — return error result shown as TUI toast + Web left-panel
5
+ * notify(session, kind, text) — return success/error result for TUI toast + Web left-panel
6
6
  * llmFollowup(invocation,prompt) — hand a prompt to the LLM as a user message
7
7
  * StatusLine(session) — in-place updatable status bar via surfaceOp replace
8
8
  * scanProgress(ctx, phase, data) — emit structured scan progress events
@@ -138,7 +138,7 @@ export function scanProgress(ctx, phase, data) {
138
138
  }
139
139
 
140
140
  // --------------------------------------------------------------------------
141
- // writeFile / mkdir — Node.js fs, used for project dirs outside workspace
141
+ // writeFile — Node.js fs, used for project dirs outside workspace
142
142
  // --------------------------------------------------------------------------
143
143
 
144
144
  /**
@@ -157,11 +157,4 @@ export async function writeFile(filepath, content, encoding = 'utf-8') {
157
157
  writeFileSync(filepath, content, encoding);
158
158
  }
159
159
 
160
- /**
161
- * Create a directory, creating parents as needed.
162
- * @param {string} dirpath
163
- */
164
- export async function mkdirp(dirpath) {
165
- const { mkdirSync } = await import('fs');
166
- mkdirSync(dirpath, { recursive: true });
167
- }
160
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {