finch-file-browser 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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "对话文件",
3
+ "description": "在这个对话绑定的文件夹里浏览、预览和修改文件,不用离开会话。",
4
+ "composerActions": {
5
+ "open-file-browser": {
6
+ "tooltip": "打开会话文件"
7
+ }
8
+ }
9
+ }
package/icon.png ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "finch-file-browser",
3
+ "version": "0.1.0",
4
+ "description": "Browse, preview and edit the files in the current Finch conversation's folder, right inside the session panel.",
5
+ "author": {
6
+ "name": "zhaobaizhou",
7
+ "url": "https://github.com/zhaobaizhou"
8
+ },
9
+ "license": "MIT",
10
+ "type": "module",
11
+ "main": "dist/index.js",
12
+ "keywords": [
13
+ "finch",
14
+ "finch-minitool",
15
+ "files",
16
+ "browser",
17
+ "markdown",
18
+ "editor",
19
+ "panel"
20
+ ],
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/zhaobaizhou/finch-file-browser.git"
24
+ },
25
+ "homepage": "https://github.com/zhaobaizhou/finch-file-browser#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/zhaobaizhou/finch-file-browser/issues"
28
+ },
29
+ "scripts": {
30
+ "build": "npm run build:host && npm run build:page && npm run copy:assets",
31
+ "build:host": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js",
32
+ "build:page": "esbuild src/panel.js --bundle --format=iife --target=chrome120 --outfile=dist/panel.js",
33
+ "copy:assets": "node scripts/copy-assets.mjs",
34
+ "typecheck": "tsc --noEmit",
35
+ "doctor": "npx @finchtoys/minitools doctor .",
36
+ "icon": "rsvg-convert -w 256 -h 256 -o icon.png docs/icon.svg",
37
+ "prepublishOnly": "npm run typecheck && npm run build && npx @finchtoys/minitools doctor ."
38
+ },
39
+ "devDependencies": {
40
+ "@finchtoys/minitool-api": "^0.3.2",
41
+ "@types/node": "^26.1.0",
42
+ "dompurify": "^3.2.4",
43
+ "esbuild": "^0.28.1",
44
+ "highlight.js": "^11.11.1",
45
+ "marked": "^15.0.6",
46
+ "typescript": "^6.0.3"
47
+ },
48
+ "dependencies": {},
49
+ "files": [
50
+ "dist/",
51
+ "i18n/",
52
+ "icon.png",
53
+ "README.md"
54
+ ],
55
+ "finch": {
56
+ "manifestVersion": 1,
57
+ "name": "Session Files",
58
+ "description": "Browse, preview and edit the files in this conversation's folder, without leaving the session.",
59
+ "main": "dist/index.js",
60
+ "activationEvents": [
61
+ "onStartup"
62
+ ],
63
+ "miniToolType": "local",
64
+ "categories": [
65
+ "productivity",
66
+ "developer"
67
+ ],
68
+ "contributes": {
69
+ "iconPacks": [
70
+ {
71
+ "id": "file-browser-icons",
72
+ "label": "File Browser Icons"
73
+ }
74
+ ],
75
+ "appPanel": {
76
+ "icon": "file-text",
77
+ "viewType": "sessionFiles.browser",
78
+ "instanceMode": "single",
79
+ "showInLauncher": true,
80
+ "source": {
81
+ "type": "local",
82
+ "path": "dist/panel.html"
83
+ }
84
+ },
85
+ "composerActions": [
86
+ {
87
+ "id": "open-file-browser",
88
+ "icon": "file-text",
89
+ "tooltip": "Open session files"
90
+ }
91
+ ]
92
+ },
93
+ "permissions": {
94
+ "filesystem": "readwrite",
95
+ "network": false
96
+ }
97
+ }
98
+ }