@apprun/shiqu 0.4.0 → 0.5.0
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/README.md +6 -5
- package/data/library/catalog.json +2 -1
- package/data/library/source-notices.md +3 -1
- package/dist/client/assets/{es-DQeW3BPI.js → es-CzuDB78F.js} +1 -1
- package/dist/client/assets/index-BPa--qC6.js +10 -0
- package/dist/client/assets/index-Bg7bpj-l.css +1 -0
- package/dist/client/assets/{reader-pdf-DxTtUF7c.js → reader-pdf-BAHQhgz5.js} +3 -3
- package/dist/client/assets/{reader-png-DlLgczKB.js → reader-png-hv2goeMA.js} +1 -1
- package/dist/client/assets/{reader-zip-BuoS903Y.js → reader-zip-4TLnMPSg.js} +3 -2
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +713 -308
- package/drizzle/0007_original_story_label.sql +11 -0
- package/drizzle/0008_search_pool.sql +2 -0
- package/package.json +1 -1
- package/dist/client/assets/index-BKroSs0X.css +0 -1
- package/dist/client/assets/index-D62So-7c.js +0 -10
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@ Turn Chinese classics into your own illustrated storybooks. Read in your browser
|
|
|
13
13
|
| You want generation and reading access to continue after closing the control window | Desktop app: stays in the system tray until you stop the service or quit the app |
|
|
14
14
|
| You need startup parameters, environment overrides, or non-interactive operation | CLI: prepare provider configuration and a library path in advance |
|
|
15
15
|
| You use Linux, an Intel Mac, or Windows ARM64 | CLI: install Node 24 yourself; no desktop installer is provided for these platforms. Windows supports API providers or read-only mode |
|
|
16
|
-
| You want
|
|
16
|
+
| You want phone access on the same Wi-Fi | Both entries: CLI prints phone QR codes on startup; desktop shows them in its control window |
|
|
17
|
+
| You need built-in internet tunnel controls | Desktop app: requires a separate cloudflared installation. CLI has no built-in internet tunnel |
|
|
17
18
|
|
|
18
19
|
**Shared features:** Both entry points provide the same browser interface for story creation, generation queues, pause/resume, reading, library organization, and PDF / PNG export. The desktop window adds library, queue, settings, and service controls; full reading and story creation happen in the browser. Both support OpenAI API, Gemini, and read-only mode. Codex generation is supported on macOS / Linux and requires a separately installed, logged-in Codex CLI; the Shiqu CLI and Codex CLI are different tools.
|
|
19
20
|
|
|
@@ -35,7 +36,7 @@ Requires **Node 24** (recommended: 24.22.1) and its bundled npm / npx. No separa
|
|
|
35
36
|
npx @apprun/shiqu
|
|
36
37
|
```
|
|
37
38
|
|
|
38
|
-
On first use, npx may ask to download the package; confirm to continue. Open the printed URL, normally `http://127.0.0.1:3000
|
|
39
|
+
On first use, npx may ask to download the package; confirm to continue. Open the printed URL, normally `http://127.0.0.1:3000`, or scan a terminal QR code from a phone on the same trusted Wi-Fi. LAN access is enabled by default. Keep the terminal running; stop with Ctrl+C. No checkout, build, Docker, or desktop app is needed.
|
|
39
40
|
|
|
40
41
|
If you already use pnpm, `pnpm dlx @apprun/shiqu` starts the same app. You can also install it globally with pnpm for a permanent `shiqu` command:
|
|
41
42
|
|
|
@@ -83,14 +84,14 @@ No `.env` is loaded automatically. Existing shell variables beat the selected fi
|
|
|
83
84
|
|
|
84
85
|
```bash
|
|
85
86
|
npx @apprun/shiqu --port 3100 --data-dir ./my-library
|
|
86
|
-
|
|
87
|
+
pnpm dlx @apprun/shiqu --host 127.0.0.1
|
|
87
88
|
npx @apprun/shiqu --version
|
|
88
89
|
```
|
|
89
90
|
|
|
90
91
|
| Option | Environment | Default |
|
|
91
92
|
| --- | --- | --- |
|
|
92
93
|
| `--port` | `PORT` | `3000` |
|
|
93
|
-
| `--host` | `SHIQU_BIND_IP` | `
|
|
94
|
+
| `--host` | `SHIQU_BIND_IP` | `0.0.0.0` (LAN access) |
|
|
94
95
|
| `--data-dir` | `SHIQU_DATA_DIR` | Saved desktop library; otherwise find or ask below |
|
|
95
96
|
| `--config` | — | No env file |
|
|
96
97
|
|
|
@@ -112,7 +113,7 @@ Relative paths resolve from the launch directory. Both entries use the same SQLi
|
|
|
112
113
|
|
|
113
114
|
Older CLI releases used `shiqu/library` rather than `com.shiqu.desktop/library` (Windows used LOCALAPPDATA, falling back to APPDATA). Existing data is never moved or merged automatically; pass the old directory with `--data-dir` to continue using it. CLI and desktop now share saved credentials; explicit invocation overrides remain separate and are not saved.
|
|
114
115
|
|
|
115
|
-
|
|
116
|
+
The CLI listens on `0.0.0.0` by default and prints LAN URLs and phone QR codes when a network interface is available. Every connected device shares the library and generation permissions; use a trusted LAN. Use `--host 127.0.0.1` (or `SHIQU_BIND_IP=127.0.0.1`) for local-only access without phone QR codes. Keep the computer awake while reading from a phone. This CLI does not provide the desktop app's internet tunnel or native control window.
|
|
116
117
|
|
|
117
118
|
## Sources and license
|
|
118
119
|
|
|
@@ -377,7 +377,8 @@
|
|
|
377
377
|
},
|
|
378
378
|
"knownIssues": [
|
|
379
379
|
"原始件含 1 个私用区字形字符;该则不用于生成。",
|
|
380
|
-
"原始件含序跋;运行时只输入 36 门正文,保留繁体原字。"
|
|
380
|
+
"原始件含序跋;运行时只输入 36 门正文,保留繁体原字。",
|
|
381
|
+
"捷悟第3则原件两次漏齏;原件字节保留,运行时据维基文库 revision 1500322 仅补两处齏字,派生版号与原件哈希分开。详见source-notices.md。"
|
|
381
382
|
],
|
|
382
383
|
"supplements": [],
|
|
383
384
|
"localGeneration": true
|
|
@@ -52,7 +52,9 @@
|
|
|
52
52
|
|
|
53
53
|
## Project Gutenberg:2部
|
|
54
54
|
|
|
55
|
-
《世说新语》:[ebook24047](https://www.gutenberg.org/ebooks/24047);《子不语》:[ebook25245](https://www.gutenberg.org/ebooks/25245)。保留原TXT
|
|
55
|
+
《世说新语》:[ebook24047](https://www.gutenberg.org/ebooks/24047);《子不语》:[ebook25245](https://www.gutenberg.org/ebooks/25245)。保留原TXT全文,包括制作人员、版权、许可和使用说明;本次未改动原件。运行时移除电子书包装及正文之外的序跋/收尾;除下述明确校记外,不改变正文用字。
|
|
56
|
+
|
|
57
|
+
2026-11-01校记:《世说新语·捷悟》第3则(shishuo-11-003)原件作“外孫臼”及“臼,受辛也”,谜面虽称八字却仅七字。依据[维基文库《世說新語/捷悟》固定revision 1500322](https://zh.wikisource.org/w/index.php?title=世說新語/捷悟&oldid=1500322),在内存中分别补为“外孫齏臼”及“齏臼,受辛也”,共补两字;其余异体字、标点和全书其他单元保持Gutenberg底本。校订依据署名刘义庆及维基文库贡献者,电子转录贡献按CC BY-SA 4.0使用,许可全文见上文。原件SHA不变;派生版edition包含原件哈希、段落编号、校订后全文和固定出处URL,避免旧发现缓存混用。仅本则原文展示校订来源,其余各则不改署名。历史已保存原文不批量改写;未保存原文的旧选题需要重新选择后使用新版。
|
|
56
58
|
|
|
57
59
|
上游标示美国公有领域;美国之外应按适用法核对。Project Gutenberg名称、商标和附带电子书包装仍适用其[许可说明](https://www.gutenberg.org/policy/license.html);不重新标为Apache-2.0。
|
|
58
60
|
|