-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
107 lines (107 loc) · 3.32 KB
/
Copy pathpackage.json
File metadata and controls
107 lines (107 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "opencode-log-viewer",
"displayName": "OpenCode Log Viewer",
"description": "在 VS Code 侧边栏浏览并查看 opencode 会话记录,自动按当前项目过滤,直接读取 opencode 数据库,无需任何额外配置。",
"version": "0.2.0",
"publisher": "haofeisong",
"license": "MIT",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/eeeric-code/opencode-log-viewer.git"
},
"homepage": "https://github.com/eeeric-code/opencode-log-viewer#readme",
"bugs": {
"url": "https://github.com/eeeric-code/opencode-log-viewer/issues"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": ["Other", "Visualization"],
"keywords": ["opencode", "log", "conversation", "history", "ai"],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "opencodeLogs",
"title": "OpenCode 会话",
"icon": "media/icon.svg"
}
]
},
"views": {
"opencodeLogs": [
{
"id": "opencodeLogViewer",
"name": "会话记录"
}
]
},
"viewsWelcome": [
{
"view": "opencodeLogViewer",
"contents": "未找到 opencode 会话数据库。\n扩展会自动搜索默认位置;若未找到,请在设置中指定数据库路径。\n[打开设置](command:opencodeLogViewer.openSettings)"
}
],
"commands": [
{
"command": "opencodeLogViewer.refresh",
"title": "刷新",
"icon": "$(refresh)"
},
{
"command": "opencodeLogViewer.toggleScope",
"title": "切换:当前项目 / 全部",
"icon": "$(filter)"
},
{
"command": "opencodeLogViewer.open",
"title": "查看会话"
},
{
"command": "opencodeLogViewer.openSettings",
"title": "打开设置"
}
],
"menus": {
"view/title": [
{
"command": "opencodeLogViewer.toggleScope",
"when": "view == opencodeLogViewer",
"group": "navigation@1"
},
{
"command": "opencodeLogViewer.refresh",
"when": "view == opencodeLogViewer",
"group": "navigation@2"
}
]
},
"configuration": {
"title": "OpenCode Log Viewer",
"properties": {
"opencodeLogViewer.databasePath": {
"type": "string",
"default": "",
"markdownDescription": "opencode 数据库文件路径(opencode.db)。留空则自动搜索默认位置(`~/.local/share/opencode/opencode.db` 等),或使用环境变量 `OPENCODE_DB_PATH`。"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile && npm run copy-wasm",
"compile": "tsc -p ./",
"copy-wasm": "node -e \"const fs=require('fs');fs.copyFileSync(require.resolve('sql.js/dist/sql-wasm.wasm'),'media/sql-wasm.wasm');fs.copyFileSync(require.resolve('sql.js/dist/sql-wasm.js'),'media/sql-wasm.js')\"",
"watch": "tsc -watch -p ./",
"package": "npm run compile && npm run copy-wasm && vsce package --allow-missing-repository --skip-license"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/sql.js": "^1.4.9",
"@types/vscode": "^1.80.0",
"sql.js": "^1.10.3",
"typescript": "^5.4.0"
}
}