mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-10 17:43:40 +08:00
任务完成(status === SUCCESS)后,侧边栏顶部出现 Markdown / 思维导图 / AI 问答 三个 tab: - 思维导图:用 markmap-lib + markmap-view 把 markdown 转成可缩放思维导图 - AI 问答: · 进入 tab 自动调 /api/chat/index 触发后台索引,按 2s 间隔轮询 /api/chat/status · 索引完成后开放输入框;调 /api/chat/ask 时带上 settings 里的默认 provider/model + 完整 history · Cmd/Ctrl + Enter 发送 · 回答用 markdown-it 渲染,user 气泡用纯文本 - 切换任务时清空对话历史并重新检查索引 logic/api.ts 补 indexChatTask / getChatStatus / askChat 三件套。 依赖新增:markmap-lib, markmap-view(生产依赖) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
78 lines
2.9 KiB
JSON
78 lines
2.9 KiB
JSON
{
|
||
"name": "bilinote-extension",
|
||
"displayName": "BiliNote",
|
||
"version": "0.1.0",
|
||
"private": true,
|
||
"packageManager": "pnpm@9.7.1",
|
||
"description": "在浏览器里把视频链接一键变成 Markdown 笔记(Bilibili / YouTube / Douyin / Kuaishou)",
|
||
"scripts": {
|
||
"dev": "npm run clear && cross-env NODE_ENV=development run-p dev:*",
|
||
"dev-firefox": "npm run clear && cross-env NODE_ENV=development EXTENSION=firefox run-p dev:*",
|
||
"dev:prepare": "esno scripts/prepare.ts",
|
||
"dev:background": "npm run build:background -- --mode development",
|
||
"dev:web": "vite",
|
||
"dev:js": "npm run build:js -- --mode development",
|
||
"build": "cross-env NODE_ENV=production run-s clear build:web build:prepare build:background build:js",
|
||
"build:prepare": "esno scripts/prepare.ts",
|
||
"build:background": "vite build --config vite.config.background.mts",
|
||
"build:web": "vite build",
|
||
"build:js": "vite build --config vite.config.content.mts",
|
||
"pack": "cross-env NODE_ENV=production run-p pack:*",
|
||
"pack:zip": "rimraf extension.zip && jszip-cli add extension/* -o ./extension.zip",
|
||
"pack:crx": "crx pack extension -o ./extension.crx",
|
||
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest",
|
||
"start:chromium": "web-ext run --source-dir ./extension --target=chromium",
|
||
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
|
||
"clear": "rimraf --glob extension/dist extension/manifest.json extension.*",
|
||
"lint": "eslint --cache .",
|
||
"test": "vitest test",
|
||
"test:e2e": "playwright test",
|
||
"typecheck": "tsc --noEmit"
|
||
},
|
||
"devDependencies": {
|
||
"@antfu/eslint-config": "^2.27.0",
|
||
"@ffflorian/jszip-cli": "^3.8.5",
|
||
"@iconify/json": "^2.2.239",
|
||
"@playwright/test": "^1.46.1",
|
||
"@types/fs-extra": "^11.0.4",
|
||
"@types/markdown-it": "^14.1.2",
|
||
"@types/node": "^22.5.0",
|
||
"@types/webextension-polyfill": "^0.12.0",
|
||
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
||
"@unocss/reset": "^0.62.2",
|
||
"@vitejs/plugin-vue": "^5.1.2",
|
||
"@vue/compiler-sfc": "^3.4.38",
|
||
"@vue/test-utils": "^2.4.6",
|
||
"@vueuse/core": "^11.0.1",
|
||
"chokidar": "^3.6.0",
|
||
"cross-env": "^7.0.3",
|
||
"crx": "^5.0.1",
|
||
"eslint": "^9.9.0",
|
||
"esno": "^4.7.0",
|
||
"fs-extra": "^11.2.0",
|
||
"jsdom": "^24.1.1",
|
||
"kolorist": "^1.8.0",
|
||
"lint-staged": "^15.2.9",
|
||
"npm-run-all": "^4.1.5",
|
||
"rimraf": "^6.0.1",
|
||
"simple-git-hooks": "^2.11.1",
|
||
"typescript": "^5.5.4",
|
||
"unocss": "^0.62.2",
|
||
"unplugin-auto-import": "^0.18.2",
|
||
"unplugin-icons": "^0.19.2",
|
||
"unplugin-vue-components": "^0.27.4",
|
||
"vite": "^5.4.2",
|
||
"vitest": "^2.0.5",
|
||
"vue": "^3.4.38",
|
||
"vue-demi": "^0.14.10",
|
||
"web-ext": "^8.2.0",
|
||
"webext-bridge": "^6.0.1",
|
||
"webextension-polyfill": "^0.12.0"
|
||
},
|
||
"dependencies": {
|
||
"markdown-it": "^14.1.0",
|
||
"markmap-lib": "^0.18.12",
|
||
"markmap-view": "^0.18.12"
|
||
}
|
||
}
|