@elonzh/fafa 0.0.0-stage → 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 elonzh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,56 @@
1
- # Temporary Holding Version
1
+ # 发发 FaFa (`@elonzh/fafa`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 本地优先的微信公众号 Markdown 排版预览、导出与草稿投递工具箱(CLI + 内置本机常驻 Web 工作台)。以 Markdown、front matter 和本地素材为权威来源,生成稳定的微信公众号 HTML、离线预览与 HTML/PDF/PNG 导出,并安全地创建或原位更新公众号草稿箱。
4
+
5
+ > FaFa 的远端终点永远是微信公众号草稿箱,没有正式发布命令;最终发布必须在公众号后台人工完成。
6
+
7
+ ## 安装 / Install
8
+
9
+ 需要 Node.js 22 或更高版本:
10
+
11
+ ```sh
12
+ npm install -g @elonzh/fafa
13
+ fafa --version
14
+ ```
15
+
16
+ 也可以免安装单次执行:
17
+
18
+ ```sh
19
+ npx @elonzh/fafa --version
20
+ ```
21
+
22
+ ## 本地常驻 Web 工作台 / Local Web Workbench
23
+
24
+ ```sh
25
+ # 一键安装开机自启常驻服务(默认监听 http://127.0.0.1:47890)
26
+ fafa service install
27
+
28
+ # 打开本地 Web 工作台(默认直连 http://127.0.0.1:47890,可传项目目录自动登记并跳转)
29
+ fafa ui
30
+ fafa ui ./my-content
31
+ ```
32
+
33
+ ## 常用命令行 / Quick Start
34
+
35
+ ```sh
36
+ fafa init ./my-content
37
+ fafa --project ./my-content articles
38
+ fafa --project ./my-content check content/hello.md
39
+ fafa --project ./my-content render content/hello.md
40
+ fafa --project ./my-content export content/hello.md --format png --width 390
41
+ fafa --project ./my-content draft push content/hello.md --account main --dry-run
42
+ ```
43
+
44
+ ## 安装 Agent Skills / Install Agent Skills
45
+
46
+ 配合 Codex、Claude Code 等 Agent 使用时,可从 GitHub 安装仓库内置的 `fafa` 与 `creating-fafa-themes` Skills:
47
+
48
+ ```sh
49
+ npx skills add elonzh/fafa --global
50
+ ```
51
+
52
+ ## 文档与仓库 / Links
53
+
54
+ - 公开文档:<https://elonzh.github.io/fafa/>
55
+ - 源码仓库:<https://github.com/elonzh/fafa>
56
+ - 许可证:MIT
package/dist/bin.js ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runCli
4
+ } from "./chunk-LKU762XJ.js";
5
+ import "./chunk-ZCVVJMRN.js";
6
+
7
+ // src/bin.ts
8
+ process.exitCode = await runCli();