-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
130 lines (130 loc) · 3.3 KB
/
Copy pathpackage.json
File metadata and controls
130 lines (130 loc) · 3.3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "oc-sessions",
"displayName": "OpenCode Sessions",
"description": "Browse, search, and export OpenCode session history. Chat with AI, summarize sessions, view full conversation content including user messages, AI reasoning, tool calls, and file diffs.",
"version": "0.9.1",
"publisher": "zhaoxiuwei",
"license": "MIT",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"keywords": [
"opencode",
"session",
"history",
"ai",
"conversation",
"export"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "oc-sessions",
"title": "OpenCode Sessions",
"icon": "media/icon.svg"
}
]
},
"views": {
"oc-sessions": [
{
"type": "webview",
"id": "ocSessionsPanel",
"name": "Sessions"
}
]
},
"commands": [
{
"command": "ocSessions.refresh",
"title": "Refresh",
"icon": "$(refresh)",
"category": "OpenCode Sessions"
},
{
"command": "ocSessions.showStats",
"title": "Show Statistics",
"icon": "$(graph)",
"category": "OpenCode Sessions"
}
],
"menus": {
"view/title": [
{
"command": "ocSessions.refresh",
"when": "view == ocSessionsPanel",
"group": "navigation@1"
},
{
"command": "ocSessions.showStats",
"when": "view == ocSessionsPanel",
"group": "navigation@2"
}
]
},
"configuration": {
"title": "OpenCode Sessions",
"properties": {
"ocSessions.pollIntervalHours": {
"type": "number",
"default": 1,
"minimum": 1,
"description": "Auto-refresh interval in hours (minimum 1 hour)"
},
"ocSessions.sessionsPerPage": {
"type": "number",
"default": 10,
"enum": [
5,
10
],
"description": "Number of sessions per page (5 or 10)"
},
"ocSessions.messagesPerPage": {
"type": "number",
"default": 10,
"enum": [
5,
10,
20
],
"description": "Number of messages per page in session detail"
},
"ocSessions.dbPath": {
"type": "string",
"default": "",
"description": "Custom path to opencode.db (leave empty for default ~/.local/share/opencode/opencode.db)"
},
"ocSessions.exportPath": {
"type": "string",
"default": "",
"description": "Default export directory (leave empty to prompt each time)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack --mode production",
"watch": "webpack --mode development --watch",
"package": "npx @vscode/vsce package --no-dependencies --allow-missing-repository --no-yarn"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/vscode": "^1.80.0",
"@vscode/vsce": "^2.22.0",
"ts-loader": "^9.5.0",
"typescript": "^5.3.0",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@opencode-ai/sdk": "^1.14.19"
}
}