Skip to content

Commit aeff511

Browse files
[intent:O1.6] feat: 清理旧文件,扩展构建系统支持 plain/node 模式,迁移 Obsidian 和 hexo 项目
- 删除已迁移的旧版根目录 JS 文件和 betterIwara/ - 删除旧版 Obsidian/ 和 hexo-image-redirect/ 目录 - ScriptConfig 扩展为 discriminated union:userscript | plain | node - build.ts 按 mode 分发到不同构建函数 - 新增 src/obsidian-cardview/(mode: plain,IIFE 无 header) - 新增 src/hexo-image-redirect/(mode: node,CJS + external cheerio) - 现有 7 个油猴脚本无需任何修改(向后兼容)
1 parent 4850447 commit aeff511

21 files changed

Lines changed: 553 additions & 1913 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ─── roo-code ────────────────────────────────
2+
.roo/
3+
!.roo/intent-tree.json
4+
15
# ─── 构建产物 ───────────────────────────────
26
dist/
37
*.meta.tmp.mjs

.roo/intent-tree.json

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"d4dc577a-4604-4dbb-b024-27342f8c09e2",
1313
"9a0c8983-d975-4868-b59c-65a38eaa6779",
1414
"58d75c26-af08-4171-bce4-f2a2da01765c",
15-
"44570a55-355b-45dd-90e8-2e4b92ad9246"
15+
"44570a55-355b-45dd-90e8-2e4b92ad9246",
16+
"94fde7ec-d937-44f9-9176-3327b82f874f",
17+
"a401200a-d3d3-4609-97fe-e7ce0af87404"
1618
],
1719
"codeBindings": [],
1820
"createdBy": {
@@ -22,7 +24,7 @@
2224
},
2325
"modifiedBy": [],
2426
"assumption": "用户明确要求统一仓库模式:每个脚本一个文件夹,TS 源码,构建输出单一 JS 文件。这是一个全新的目标。",
25-
"maxChildIndex": 4
27+
"maxChildIndex": 6
2628
},
2729
"d4dc577a-4604-4dbb-b024-27342f8c09e2": {
2830
"id": "d4dc577a-4604-4dbb-b024-27342f8c09e2",
@@ -203,6 +205,84 @@
203205
"action": "updated: status→done"
204206
}
205207
]
208+
},
209+
"94fde7ec-d937-44f9-9176-3327b82f874f": {
210+
"id": "94fde7ec-d937-44f9-9176-3327b82f874f",
211+
"shortId": "I1.5",
212+
"type": "impl",
213+
"content": "chore: 完善 .gitignore,移除不应跟踪的文件\n\n- 添加 .DS_Store、IDE、二进制/压缩包等忽略规则\n- 从 git 索引移除 hexo-image-redirect/node_modules/\n- 从 git 索引移除 .exe、.zip、package-lock.json",
214+
"status": "done",
215+
"parentId": "9fcfb892-37ae-477e-a133-530b729caefd",
216+
"childrenIds": [],
217+
"codeBindings": [
218+
{
219+
"commitHash": "4850447f1758f4073adaebc793fc0d9f742571e2",
220+
"commitMessage": "[intent:G1] chore: 完善 .gitignore,移除不应跟踪的文件\n\n- 添加 .DS_Store、IDE、二进制/压缩包等忽略规则\n- 从 git 索引移除 hexo-image-redirect/node_modules/\n- 从 git 索引移除 .exe、.zip、package-lock.json",
221+
"files": [
222+
".gitignore",
223+
".roo/intent-tree.json",
224+
"\"ASMR/\\346\\227\\245\\346\\226\\207\\344\\271\\261\\347\\240\\201\\345\\244\\204\\347\\220\\206\\350\\275\\257\\344\\273\\266.exe\"",
225+
"hexo-image-redirect.zip",
226+
"hexo-image-redirect/node_modules/entities/.travis.yml",
227+
"hexo-image-redirect/node_modules/entities/LICENSE",
228+
"hexo-image-redirect/node_modules/entities/index.js",
229+
"hexo-image-redirect/node_modules/entities/lib/decode.js",
230+
"hexo-image-redirect/node_modules/entities/lib/decode_codepoint.js",
231+
"hexo-image-redirect/node_modules/entities/lib/encode.js",
232+
"hexo-image-redirect/node_modules/entities/maps/decode.json",
233+
"hexo-image-redirect/node_modules/entities/maps/entities.json",
234+
"hexo-image-redirect/node_modules/entities/maps/legacy.json",
235+
"hexo-image-redirect/node_modules/entities/maps/xml.json",
236+
"hexo-image-redirect/node_modules/entities/package.json",
237+
"hexo-image-redirect/node_modules/entities/readme.md",
238+
"hexo-image-redirect/node_modules/entities/test/mocha.opts",
239+
"hexo-image-redirect/node_modules/entities/test/test.js",
240+
"package-lock.json"
241+
],
242+
"diffSummary": "19 file(s), +76 -1572",
243+
"timestamp": "2026-02-17T13:43:54.947Z"
244+
}
245+
],
246+
"createdBy": {
247+
"taskId": "019c6bba-5c99-727e-937e-1531e1cf673e",
248+
"timestamp": "2026-02-17T13:43:54.947Z",
249+
"action": "created"
250+
},
251+
"modifiedBy": [
252+
{
253+
"taskId": "019c6bba-5c99-727e-937e-1531e1cf673e",
254+
"timestamp": "2026-02-17T13:43:54.948Z",
255+
"action": "bound commit 4850447"
256+
},
257+
{
258+
"taskId": "019c6bba-5c99-727e-937e-1531e1cf673e",
259+
"timestamp": "2026-02-17T13:43:54.948Z",
260+
"action": "updated: status→done"
261+
}
262+
]
263+
},
264+
"a401200a-d3d3-4609-97fe-e7ce0af87404": {
265+
"id": "a401200a-d3d3-4609-97fe-e7ce0af87404",
266+
"shortId": "O1.6",
267+
"type": "objective",
268+
"content": "清理旧版根目录 JS 文件,扩展构建系统支持 plain/node 模式,迁移 Obsidian 和 hexo 项目",
269+
"status": "in_progress",
270+
"parentId": "9fcfb892-37ae-477e-a133-530b729caefd",
271+
"childrenIds": [],
272+
"codeBindings": [],
273+
"createdBy": {
274+
"taskId": "019c6bba-5c99-727e-937e-1531e1cf673e",
275+
"timestamp": "2026-02-17T13:55:04.755Z",
276+
"action": "created"
277+
},
278+
"modifiedBy": [
279+
{
280+
"taskId": "019c6bba-5c99-727e-937e-1531e1cf673e",
281+
"timestamp": "2026-02-17T13:55:13.476Z",
282+
"action": "updated: content, status→in_progress"
283+
}
284+
],
285+
"assumption": "用户要求清理旧脚本和扩展构建系统支持非 Greasyfork 模式,属于 G1 的延续。"
206286
}
207287
},
208288
"rootIds": [
@@ -214,7 +294,9 @@
214294
"O1.2": "9a0c8983-d975-4868-b59c-65a38eaa6779",
215295
"A1.1.1": "de7a9a8d-4e2f-4df3-9bf1-d10222509096",
216296
"I1.3": "58d75c26-af08-4171-bce4-f2a2da01765c",
217-
"I1.4": "44570a55-355b-45dd-90e8-2e4b92ad9246"
297+
"I1.4": "44570a55-355b-45dd-90e8-2e4b92ad9246",
298+
"I1.5": "94fde7ec-d937-44f9-9176-3327b82f874f",
299+
"O1.6": "a401200a-d3d3-4609-97fe-e7ce0af87404"
218300
},
219301
"rootMaxChildIndex": 1
220302
}

AutoTool_DownloadASMR.user.js

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)