@cloud411716/fancy-webnovel 1.0.24 → 1.0.26
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/commands/bootstrap/index.js +1 -1
- package/commands/scan/platforms/fanqie.js +0 -2
- package/infra.js +3 -10
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ export function apply(ctx) {
|
|
|
91
91
|
|
|
92
92
|
if (projectRoot === '.') {
|
|
93
93
|
projectRoot = session.header?.cwd ?? process.cwd();
|
|
94
|
-
|
|
94
|
+
notify(session, 'success', bootstrap.notify({ type: 'using_cwd', projectRoot }));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
if (!isValidPath(projectRoot)) {
|
|
@@ -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)
|
|
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
|
|
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
|
+
|