feat: jsc-wiki 新增 book-search、book-import,領域技能可直接使用
- 新增 /jsc-wiki:book-search:上網蒐集主題並依頁面格式整理成草稿
- 新增 /jsc-wiki:book-import:判斷領域與章節,主題存在則修改、否則新增,
重建目錄與上下頁導覽,lint 後經確認再推送到 wiki
- 寫入工具以 TypeScript 實作(scripts/book.ts,入口 book.sh)
- 領域技能補上 allowed-tools,並改用 ${CLAUDE_PLUGIN_ROOT},修正需手動核准而無法載入的問題
- 頁面格式新增兩條規則:簡化技術中文(STE100)、繁體中文無亂碼且盡量用圖表
- 版本升至 0.0.2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
2c853c0e16
commit
65bc192fae
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# JSC 知識庫寫入工具的入口。實作在 book.ts(TypeScript)。
|
||||
# Node 內建支援 TypeScript(22.18 以上且編入 amaro)時直接執行,否則用 npx 啟動固定版本的 tsx。
|
||||
set -u
|
||||
command -v node >/dev/null || { echo "找不到 node,請安裝 Node 20 以上。" >&2; exit 127; }
|
||||
ts="$(dirname "$(readlink -f "$0")")/book.ts"
|
||||
if [ "$(node -p 'process.config.variables.node_use_amaro' 2>/dev/null)" = true ] \
|
||||
&& node -e 'process.exit(+process.versions.node.split(".")[0] >= 23 || /^22\.(1[89]|[2-9][0-9])\./.test(process.versions.node) ? 0 : 1)'; then
|
||||
exec node --disable-warning=ExperimentalWarning "$ts" "$@"
|
||||
fi
|
||||
command -v npx >/dev/null || { echo "找不到 npx,無法啟動 tsx。" >&2; exit 127; }
|
||||
exec npx --yes tsx@4.20.5 "$ts" "$@"
|
||||
Reference in New Issue
Block a user