@wenaixi/searchfuse 0.0.0-stage → 0.1.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/LICENSE +21 -0
  3. package/README.md +169 -2
  4. package/README.zh-CN.md +170 -0
  5. package/SECURITY.md +20 -0
  6. package/claude/.claude-plugin/plugin.json +17 -0
  7. package/claude/SKILL.md +53 -0
  8. package/claude/hooks/hooks.json +3 -0
  9. package/claude/hooks/register.ts +552 -0
  10. package/cordis.patch.yml +16 -0
  11. package/dist/config-schema.js +40 -0
  12. package/dist/errorCause-BY0A0XKN.js +17 -0
  13. package/dist/kernel.js +62 -0
  14. package/dist/main.js +1371 -0
  15. package/dist/mcp-protocol.js +1 -0
  16. package/dist/mcp-registry.js +155 -0
  17. package/dist/protocol-ClnjMnGV.js +259 -0
  18. package/dist/proxy-DodOSGiI.js +50 -0
  19. package/dist/search-BIW13Csk.js +4061 -0
  20. package/dist/serve-Bfqz-nCB.js +279 -0
  21. package/dist/serve-ensure.js +140 -0
  22. package/docs/commit.md +77 -0
  23. package/docs/dsh.md +205 -0
  24. package/docs/harness-setup.md +78 -0
  25. package/docs/parity-matrix.md +61 -0
  26. package/docs/searxng-setup.md +117 -0
  27. package/docs/security.md +59 -0
  28. package/docs/settings-redesign-decisions.md +407 -0
  29. package/docs/superpowers/plans/2026-11-24-serve-lifecycle.md +880 -0
  30. package/docs/superpowers/reports/2026-11-24-serve-lifecycle-ledger.md +211 -0
  31. package/docs/superpowers/specs/2026-11-20-searchfuse-dual-host-design.md +172 -0
  32. package/docs/superpowers/specs/2026-11-21-searchfuse-tri-host-design.md +659 -0
  33. package/docs/superpowers/specs/2026-11-21-tri-host-takeover-design.md +363 -0
  34. package/docs/superpowers/specs/2026-11-22-settings-card-refactor-design.md +117 -0
  35. package/docs/superpowers/specs/2026-11-24-serve-lifecycle-design.md +155 -0
  36. package/docs/testing.md +92 -0
  37. package/docs/troubleshooting.md +258 -0
  38. package/dsh/client.js +2917 -0
  39. package/dsh/fetch-schema.json +1 -0
  40. package/dsh/index.js +2640 -0
  41. package/dsh/search-schema.json +65 -0
  42. package/dsh/spawnHidden.d.ts +7 -0
  43. package/dsh/spawnHidden.js +8 -0
  44. package/omp/extension.ts +331 -0
  45. package/package.json +95 -4
  46. package/skills/searchfuse/SKILL.md +139 -0
  47. package/skills/searchfuse/references/cli.md +78 -0
  48. package/skills/searchfuse/references/configure.md +405 -0
  49. package/skills/searchfuse/references/output-schema.md +182 -0
  50. package/skills/searchfuse/references/runtime.md +58 -0
  51. package/skills/searchfuse/scripts/run.ps1 +279 -0
  52. package/skills/searchfuse/scripts/run.sh +315 -0
@@ -0,0 +1,279 @@
1
+ import { C as loadConfigFile, _ as currentConfigPath, m as allowsPrivateNetwork, t as runSearch } from "./search-BIW13Csk.js";
2
+ import * as os from "node:os";
3
+ import * as path from "node:path";
4
+ import * as fs from "node:fs";
5
+ import * as http from "node:http";
6
+ // src/serve.ts
7
+ /** token 文件位置。与配置分离:配置会被复制备份,秘密不该跟着走。 */
8
+ function serveTokenPath() {
9
+ return path.join(os.homedir(), ".searchfuse", "serve-token");
10
+ }
11
+ /** 运行时文件:谁在跑、什么时候起的。不含端口(固定端口)。 */
12
+ function runtimePath() {
13
+ return path.join(os.homedir(), ".searchfuse", "runtime.json");
14
+ }
15
+ /** 读 token;没有就生成一个并写盘(POSIX 上用 0600)。 */
16
+ function ensureServeToken() {
17
+ const file = serveTokenPath();
18
+ try {
19
+ const existing = fs.readFileSync(file, "utf-8").trim();
20
+ if (existing !== "") return existing;
21
+ } catch {}
22
+ const token = randomToken();
23
+ fs.mkdirSync(path.dirname(file), {
24
+ recursive: true,
25
+ mode: 448
26
+ });
27
+ fs.writeFileSync(file, `${token}\n`, { mode: 384 });
28
+ try {
29
+ fs.chmodSync(file, 384);
30
+ } catch {}
31
+ return token;
32
+ }
33
+ /** 32 字节随机 token 的十六进制形式。 */
34
+ function randomToken() {
35
+ const bytes = /* @__PURE__ */ new Uint8Array(32);
36
+ crypto.getRandomValues(bytes);
37
+ return [...bytes].map((b) => b.toString(16).padStart(2, "0")).join("");
38
+ }
39
+ /**
40
+ * 把一次聚合结果翻译成 SearXNG 的形状。
41
+ *
42
+ * 三条规则:
43
+ * - `title` / `url` / `content` 直对,缺 `url` 的条目丢弃(omp 需要它)
44
+ * - `engine` 填作答的引擎名,不是 `searxng`——它本来就是别的东西
45
+ * - **`unresponsive_engines` 必须带上**:omp 靠它在结果为空时保真上游原因,
46
+ * 缺了它只会退化成一句泛化错误
47
+ */
48
+ function toSearxngShape(raw, query) {
49
+ const root = typeof raw === "object" && raw !== null ? raw : {};
50
+ const results = Array.isArray(root.results) ? root.results : [];
51
+ const entry = typeof results[0] === "object" && results[0] !== null ? results[0] : {};
52
+ const items = Array.isArray(entry.items) ? entry.items : [];
53
+ const mapped = [];
54
+ for (const item of items) {
55
+ if (typeof item !== "object" || item === null) continue;
56
+ const record = item;
57
+ const url = typeof record.url === "string" ? record.url : void 0;
58
+ if (!url) continue;
59
+ const title = typeof record.title === "string" ? record.title : url;
60
+ const content = typeof record.snippet === "string" ? record.snippet : typeof record.summary === "string" ? record.summary : "";
61
+ mapped.push({
62
+ title,
63
+ url,
64
+ content,
65
+ engine: typeof entry.engine === "string" ? entry.engine : "searchfuse"
66
+ });
67
+ }
68
+ const failures = [];
69
+ const attempts = Array.isArray(entry.attempts) ? entry.attempts : [];
70
+ for (const attempt of attempts) {
71
+ if (typeof attempt !== "object" || attempt === null) continue;
72
+ const record = attempt;
73
+ if (typeof record.error !== "string") continue;
74
+ failures.push([typeof record.engine === "string" ? record.engine : "unknown", record.error]);
75
+ }
76
+ if (failures.length === 0) {
77
+ const uncertainty = Array.isArray(entry.uncertainty) ? entry.uncertainty : [];
78
+ for (const line of uncertainty) {
79
+ if (typeof line !== "string" || line === "") continue;
80
+ const colon = line.indexOf(":");
81
+ if (colon > 0 && colon < 40) failures.push([line.slice(0, colon).trim(), line.slice(colon + 1).trim()]);
82
+ else failures.push(["searchfuse", line]);
83
+ }
84
+ }
85
+ const answer = typeof entry.summary === "string" && entry.summary !== "" ? [entry.summary] : [];
86
+ return {
87
+ query,
88
+ number_of_results: mapped.length,
89
+ results: mapped,
90
+ answers: answer,
91
+ unresponsive_engines: failures
92
+ };
93
+ }
94
+ /** `config.engines` 里启用中的引擎名,供 `/config` 的壳使用。 */
95
+ function enabledEngines() {
96
+ const engines = loadConfigFile(currentConfigPath()).engines ?? {};
97
+ return Object.entries(engines).filter(([, settings]) => settings.enabled !== false).map(([name]) => ({ name }));
98
+ }
99
+ /** 常量的响应头。`no-store`:这是搜索,不该被任何中间层缓存。 */
100
+ var JSON_HEADERS = {
101
+ "content-type": "application/json; charset=utf-8",
102
+ "cache-control": "no-store"
103
+ };
104
+ /** 从请求里取 bearer token,大小写不敏感。 */
105
+ function bearerOf(header) {
106
+ if (header === void 0) return void 0;
107
+ return /^Bearer\s+(.+)$/i.exec(header.trim())?.[1];
108
+ }
109
+ /**
110
+ * 起服务。固定端口——被占用就报错,不漂移。
111
+ *
112
+ * 为什么不漂移:omp 的 `searxng.endpoint` 是配置文件里的静态字符串,
113
+ * 端口变了它不会跟着变,于是每次重启都要用户手动跑一次 `hosts sync`。
114
+ * 固定端口把这条高频故障变成一次性配置。
115
+ */
116
+ function startServe(options) {
117
+ const search = options.search ?? runSearch;
118
+ let hits = 0;
119
+ let inFlight = 0;
120
+ let idleTimer;
121
+ const server = http.createServer((req, res) => {
122
+ const url = new URL(req.url ?? "/", `http://127.0.0.1:${options.port}`);
123
+ if (url.pathname === "/healthz") {
124
+ res.writeHead(200, {
125
+ "content-type": "text/plain; charset=utf-8",
126
+ "cache-control": "no-store"
127
+ });
128
+ res.end("OK");
129
+ return;
130
+ }
131
+ if (bearerOf(req.headers.authorization) !== options.token) {
132
+ res.writeHead(401, JSON_HEADERS);
133
+ res.end(JSON.stringify({ error: "unauthorized" }));
134
+ return;
135
+ }
136
+ if (url.pathname === "/__stats") {
137
+ res.writeHead(200, JSON_HEADERS);
138
+ res.end(JSON.stringify({ localHits: hits }));
139
+ return;
140
+ }
141
+ if (url.pathname === "/config") {
142
+ res.writeHead(200, JSON_HEADERS);
143
+ res.end(JSON.stringify({ engines: enabledEngines() }));
144
+ return;
145
+ }
146
+ if (url.pathname === "/v1/search" || url.pathname === "/v1/read-page") {
147
+ inFlight += 1;
148
+ scheduleIdleExit();
149
+ const config = loadConfigFile(currentConfigPath());
150
+ const isReadPage = url.pathname === "/v1/read-page";
151
+ const query = url.searchParams.get("q") ?? "";
152
+ const targetUrl = url.searchParams.get("url") ?? "";
153
+ if (isReadPage && targetUrl === "") {
154
+ inFlight -= 1;
155
+ res.writeHead(400, JSON_HEADERS);
156
+ res.end(JSON.stringify({ error: "missing url" }));
157
+ return;
158
+ }
159
+ if (!isReadPage && query === "") {
160
+ inFlight -= 1;
161
+ res.writeHead(400, JSON_HEADERS);
162
+ res.end(JSON.stringify({ error: "missing q" }));
163
+ return;
164
+ }
165
+ const options = isReadPage ? {
166
+ url: targetUrl,
167
+ allowPrivateNetwork: allowsPrivateNetwork(config),
168
+ config
169
+ } : {
170
+ query,
171
+ sources: url.searchParams.get("source") ?? "web",
172
+ maxResults: Number(url.searchParams.get("max") ?? "") || void 0,
173
+ timeoutMs: Number(url.searchParams.get("timeout") ?? "") || void 0,
174
+ deadlineMs: Number(url.searchParams.get("deadline") ?? "") || void 0,
175
+ allowPrivateNetwork: allowsPrivateNetwork(config),
176
+ config
177
+ };
178
+ search(options).then((result) => {
179
+ if (result.results.some((entry) => entry.status !== "unavailable")) hits += 1;
180
+ res.writeHead(200, JSON_HEADERS);
181
+ res.end(JSON.stringify(result));
182
+ }).catch((error) => {
183
+ const message = error instanceof Error ? error.message : String(error);
184
+ res.writeHead(500, JSON_HEADERS);
185
+ res.end(JSON.stringify({ error: message }));
186
+ }).finally(() => {
187
+ inFlight -= 1;
188
+ scheduleIdleExit();
189
+ });
190
+ return;
191
+ }
192
+ if (url.pathname === "/search") {
193
+ const query = url.searchParams.get("q") ?? "";
194
+ inFlight += 1;
195
+ scheduleIdleExit();
196
+ const config = loadConfigFile(currentConfigPath());
197
+ search({
198
+ query,
199
+ sources: "web",
200
+ allowPrivateNetwork: allowsPrivateNetwork(config),
201
+ config
202
+ }).then((result) => {
203
+ const payload = toSearxngShape(result, query);
204
+ if (payload.results.length > 0) hits += 1;
205
+ res.writeHead(200, JSON_HEADERS);
206
+ res.end(JSON.stringify(payload));
207
+ }).catch((error) => {
208
+ const message = error instanceof Error ? error.message : String(error);
209
+ res.writeHead(500, JSON_HEADERS);
210
+ res.end(JSON.stringify({
211
+ error: message,
212
+ results: [],
213
+ answers: [],
214
+ unresponsive_engines: []
215
+ }));
216
+ }).finally(() => {
217
+ inFlight -= 1;
218
+ scheduleIdleExit();
219
+ });
220
+ return;
221
+ }
222
+ res.writeHead(404, JSON_HEADERS);
223
+ res.end(JSON.stringify({ error: "not found" }));
224
+ });
225
+ /** 空闲退出:**只统计空闲**,在途请求期间绝不退出。 */
226
+ function scheduleIdleExit() {
227
+ if (options.idleExitSeconds <= 0) return;
228
+ clearTimeout(idleTimer);
229
+ if (inFlight > 0) return;
230
+ idleTimer = setTimeout(() => {
231
+ if (inFlight > 0) return;
232
+ close();
233
+ }, options.idleExitSeconds * 1e3 + 2e3);
234
+ idleTimer.unref();
235
+ }
236
+ async function close() {
237
+ clearTimeout(idleTimer);
238
+ try {
239
+ fs.rmSync(runtimePath(), { force: true });
240
+ } catch {}
241
+ const closed = Promise.withResolvers();
242
+ server.close(() => closed.resolve());
243
+ await closed.promise;
244
+ }
245
+ const ready = Promise.withResolvers();
246
+ server.once("error", (error) => {
247
+ if (error.code === "EADDRINUSE") {
248
+ ready.reject(/* @__PURE__ */ new Error(`Port ${options.port} is already in use. Set serve.port to 0 (or omit it) to let the system pick a free port, or choose a different number. Hosts read the actual port from runtime.json, so a picked port needs no host reconfiguration.`));
249
+ return;
250
+ }
251
+ ready.reject(error);
252
+ });
253
+ server.listen(options.port, "127.0.0.1", () => {
254
+ const address = server.address();
255
+ const boundPort = typeof address === "object" && address !== null ? address.port : options.port;
256
+ try {
257
+ fs.mkdirSync(path.dirname(runtimePath()), {
258
+ recursive: true,
259
+ mode: 448
260
+ });
261
+ fs.writeFileSync(runtimePath(), `${JSON.stringify({
262
+ port: boundPort,
263
+ pid: process.pid,
264
+ startedAt: (/* @__PURE__ */ new Date()).toISOString(),
265
+ version: "0.1.0",
266
+ token: options.token
267
+ }, null, 2)}\n`);
268
+ } catch {}
269
+ scheduleIdleExit();
270
+ ready.resolve({
271
+ server,
272
+ port: boundPort,
273
+ localHits: () => hits,
274
+ close
275
+ });
276
+ });
277
+ return ready.promise;
278
+ }
279
+ export { runtimePath as n, startServe as r, ensureServeToken as t };
@@ -0,0 +1,140 @@
1
+ import { n as runtimePath } from "./serve-Bfqz-nCB.js";
2
+ import { r as spawnHidden } from "./search-BIW13Csk.js";
3
+ import * as path from "node:path";
4
+ import * as fs from "node:fs";
5
+ import * as http from "node:http";
6
+ import { fileURLToPath } from "node:url";
7
+ // src/serveEnsure.ts
8
+ var DEFAULT_TIMEOUT_MS = 2e4;
9
+ /** 探 /healthz 的上限。服务是本机回环,超过就算不通。 */
10
+ var HEALTH_TIMEOUT_MS = 2e3;
11
+ /** spawn 之后轮询就绪状态的间隔。 */
12
+ var POLL_INTERVAL_MS = 500;
13
+ /** 睡一会儿。轮询用,为这点事引入依赖不值得。 */
14
+ function sleep(ms) {
15
+ return new Promise((resolve) => setTimeout(resolve, ms));
16
+ }
17
+ /** 把 spawn 失败整理成一行可读的原因。 */
18
+ function describeSpawnFailure(error) {
19
+ return `serve --ensure failed to start: ${error instanceof Error ? error.message : String(error)}`;
20
+ }
21
+ /**
22
+ * 读 `~/.searchfuse/runtime.json`。
23
+ *
24
+ * 文件可能被 `serve --ensure` 写入、被 `serve` 的 close() 删除,也可能
25
+ * 上一次进程被杀后残留成「指向死端口」。所以形状检查必须严格:
26
+ * 端口不是数字就直接当没有,宁可多拉起一次,也不要拿一个坏端口去连。
27
+ */
28
+ function readServeRuntimeFile(file = runtimePath()) {
29
+ try {
30
+ const raw = fs.readFileSync(file, "utf-8");
31
+ const parsed = JSON.parse(raw);
32
+ if (typeof parsed.port !== "number" || !Number.isInteger(parsed.port)) return void 0;
33
+ if (typeof parsed.token !== "string" || parsed.token === "") return void 0;
34
+ return {
35
+ port: parsed.port,
36
+ token: parsed.token
37
+ };
38
+ } catch {
39
+ return;
40
+ }
41
+ }
42
+ /** 探一次 /healthz。返回是否 200。 */
43
+ function healthOnce(port) {
44
+ return new Promise((resolve) => {
45
+ const req = http.request({
46
+ host: "127.0.0.1",
47
+ port,
48
+ path: "/healthz",
49
+ method: "GET",
50
+ timeout: HEALTH_TIMEOUT_MS,
51
+ headers: { Connection: "close" }
52
+ }, (res) => {
53
+ res.resume();
54
+ resolve(res.statusCode === 200);
55
+ });
56
+ req.on("error", () => resolve(false));
57
+ req.on("timeout", () => {
58
+ req.destroy();
59
+ resolve(false);
60
+ });
61
+ req.end();
62
+ });
63
+ }
64
+ /**
65
+ * 确保本地服务在跑。已在跑就什么都不做。
66
+ *
67
+ * 顺序是「先探文件、再探 /healthz、最后才 spawn」:文件在但服务已死是最阴的
68
+ * 状态(服务不能用、文件却指向它),直接 spawn 会撞上仍被占用的端口。
69
+ *
70
+ * 拉起复用 `serve --ensure` 而不是自己起服务:它已经处理了「端口 0 由内核
71
+ * 分配」「已在跑就 exit 0」两个边界。在插件里重写一遍必然漂移。
72
+ *
73
+ * 就绪的判据是 `/healthz` 通过,不是子进程退出码。`serve --ensure` 只在
74
+ * 「已经在跑」时以 0 退出;真正需要起服务时它会把服务拉起来并**常驻**,
75
+ * 永远等不到 close 事件。等退出码会一路等到超时,然后用 child.kill() 杀掉
76
+ * 刚刚起来的那个服务——这正是本设计要避免的事。所以 spawn 之后就把子进程
77
+ * 交出去(detached + unref),改为轮询健康检查。
78
+ */
79
+ async function ensureServeRunning(options = {}) {
80
+ const file = runtimePath();
81
+ const existing = readServeRuntimeFile(file);
82
+ if (existing !== void 0 && await healthOnce(existing.port)) return {
83
+ started: false,
84
+ port: existing.port
85
+ };
86
+ const cliPath = options.cliPath ?? path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "dist", "main.js");
87
+ const nodeBinary = options.nodeBinary ?? "node";
88
+ const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
89
+ let spawnError;
90
+ let exitedEarly;
91
+ try {
92
+ const child = spawnHidden(nodeBinary, [
93
+ cliPath,
94
+ "serve",
95
+ "--ensure"
96
+ ], {
97
+ stdio: "ignore",
98
+ detached: true
99
+ });
100
+ child.unref();
101
+ child.on("error", (error) => {
102
+ spawnError = error;
103
+ });
104
+ child.on("close", (code) => {
105
+ exitedEarly = code === null ? void 0 : code;
106
+ });
107
+ } catch (error) {
108
+ return {
109
+ started: false,
110
+ reason: describeSpawnFailure(error)
111
+ };
112
+ }
113
+ const deadline = Date.now() + timeoutMs;
114
+ for (;;) {
115
+ if (spawnError !== void 0) return {
116
+ started: false,
117
+ reason: describeSpawnFailure(spawnError)
118
+ };
119
+ if (exitedEarly !== void 0 && exitedEarly !== 0) return {
120
+ started: false,
121
+ reason: `serve --ensure exited ${exitedEarly}`
122
+ };
123
+ const runtime = readServeRuntimeFile(file);
124
+ if (runtime !== void 0) {
125
+ if (await healthOnce(runtime.port)) return {
126
+ started: true,
127
+ port: runtime.port
128
+ };
129
+ } else if (exitedEarly === 0) return {
130
+ started: false,
131
+ reason: "runtime.json not written"
132
+ };
133
+ if (Date.now() >= deadline) return {
134
+ started: false,
135
+ reason: `serve did not become healthy within ${timeoutMs} ms`
136
+ };
137
+ await sleep(POLL_INTERVAL_MS);
138
+ }
139
+ }
140
+ export { ensureServeRunning, readServeRuntimeFile };
package/docs/commit.md ADDED
@@ -0,0 +1,77 @@
1
+ ---
2
+ summary: 'Git 提交规范:Conventional Commits 格式、原子提交、HEREDOC 用法'
3
+ read_when:
4
+ - 准备提交代码
5
+ - 写提交信息
6
+ - 需要了解提交规范
7
+ ---
8
+
9
+ # Git 提交规范
10
+
11
+ ## 提交信息格式
12
+
13
+ ```
14
+ <类型>[可选范围]: <祈使句摘要>
15
+
16
+ [可选正文]
17
+
18
+ [可选脚注]
19
+ ```
20
+
21
+ - 摘要用祈使句,不超过 72 个字符
22
+ - 结尾不加句号
23
+ - 只在能增加清晰度时使用范围(例如 `auth`、`api`、`ui`)
24
+ - 破坏性变更用 `!` 标记(例如 `feat!:`),或写一行 `BREAKING CHANGE:` 脚注
25
+
26
+ ## 可用类型
27
+
28
+ | 类型 | 说明 |
29
+ |------|------|
30
+ | `feat` | 新功能 |
31
+ | `fix` | 缺陷修复 |
32
+ | `docs` | 文档更新 |
33
+ | `style` | 格式调整(不改逻辑) |
34
+ | `refactor` | 代码重构(不改行为) |
35
+ | `perf` | 性能优化 |
36
+ | `test` | 测试相关 |
37
+ | `build` | 构建系统或依赖变更 |
38
+ | `ci` | CI/CD 变更 |
39
+ | `chore` | 杂务 |
40
+ | `revert` | 回退一次提交 |
41
+
42
+ ## 原子提交原则
43
+
44
+ 1. 一次提交只做一件事
45
+ 2. 每次提交之后仓库都应当仍可构建、仍可运行
46
+ 3. 每次提交都应当能被独立回退,只影响它对应的那一处改动
47
+ 4. 行为有变化时,把相关测试放在同一次提交里
48
+ 5. 不要把重构、格式化与行为变更混在一次提交里
49
+
50
+ ## 提交流程
51
+
52
+ ```bash
53
+ # 1. 查看改动
54
+ git status --short
55
+ git diff --staged --stat
56
+
57
+ # 2. 选择性暂存(避免 git add -A)
58
+ git add <具体文件>
59
+
60
+ # 3. 复核将要提交的内容
61
+ git diff --staged
62
+
63
+ # 4. 提交(HEREDOC 格式,正文里说清「为什么」而不是「改了什么」)
64
+ git commit -F- <<'EOF'
65
+ <类型>[范围]: <摘要>
66
+
67
+ <正文:问题是什么、为什么这样改、验证过什么>
68
+ EOF
69
+ ```
70
+
71
+ 不要加 `Co-Authored-By` 之类的署名尾巴:这个仓库的提交历史里没有,作者的署名由 git 配置决定。
72
+
73
+ ## 注意事项
74
+
75
+ - 不要提交 `.env`、凭据之类敏感文件
76
+ - 提交钩子失败后,修好问题再建一次**新提交**(不要用 `--amend`)
77
+ - 不要自动推送;等用户的指示