@cloud411716/fancy-webnovel 0.1.24 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "main": "plugins/fancy-bootstrap/index.js",
6
6
  "exports": {
@@ -11,7 +11,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
11
11
  // ---------------------------------------------------------------------------
12
12
  // fancy-bootstrap
13
13
  // ---------------------------------------------------------------------------
14
- const BOOTSTRAP_DIR = join(__dirname, 'fancy-bootstrap');
14
+ const BOOTSTRAP_DIR = __dirname; // registry.js is inside plugins/fancy-bootstrap/
15
15
  const BOOTSTRAP_SCRIPTS_DIR = join(BOOTSTRAP_DIR, 'scripts');
16
16
 
17
17
  function notifyBootstrap(session, text) {
@@ -114,7 +114,7 @@ async function applyBootstrap(ctx) {
114
114
  const result = await runBootstrapScript(projectRoot);
115
115
 
116
116
  if (result.ok) {
117
- notifyBootstrap(session, '✅ 项目初始化完成!\n\n📁 生成的目录结构:\n - 备份/\n - 图片/\n - 发布/\n - .快照/\n - RAG索引/\n - 调试/\n\n下一步:运行 /fancy-scan 扫榜,或 /fancy-topic 做选题决策');
117
+ notifyBootstrap(session, '✅ 项目初始化完成!\n下一步:运行 /fancy-scan 扫榜');
118
118
  } else {
119
119
  const errMsg = (typeof result.error === 'object' && result.error !== null)
120
120
  ? (result.error.message || JSON.stringify(result.error))
@@ -130,7 +130,7 @@ async function applyBootstrap(ctx) {
130
130
  // ---------------------------------------------------------------------------
131
131
  // fancy-scan
132
132
  // ---------------------------------------------------------------------------
133
- const SCAN_DIR = join(__dirname, 'fancy-scan');
133
+ const SCAN_DIR = join(dirname(__dirname), 'fancy-scan'); // from plugins/fancy-bootstrap/ up to plugins/, then fancy-scan
134
134
  const SCAN_SCRIPTS_DIR = join(SCAN_DIR, 'scripts');
135
135
 
136
136
  const PLATFORM_TABLE = [