-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 5.76 KB
/
Copy pathpackage.json
File metadata and controls
175 lines (175 loc) · 5.76 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "opencode-for-devcontainers",
"displayName": "OpenCode for Dev Containers",
"description": "Run OpenCode locally but execute commands within a devcontainer",
"version": "0.1.4",
"publisher": "marchingphoenix",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/marchingphoenix/opencode-for-devcontainers"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"keywords": [
"opencode",
"devcontainer",
"dev containers",
"docker",
"ai",
"coding assistant"
],
"activationEvents": [
"workspaceContains:.devcontainer/devcontainer.json",
"workspaceContains:.devcontainer.json",
"onChatParticipant:opencode-devcontainer.opencode"
],
"main": "./dist/extension.js",
"contributes": {
"chatParticipants": [
{
"id": "opencode-devcontainer.opencode",
"name": "opencode",
"fullName": "OpenCode",
"description": "AI coding agent running in your dev container",
"isSticky": true,
"commands": [
{ "name": "ask", "description": "Ask OpenCode a question" },
{ "name": "exec", "description": "Execute a command in the dev container" },
{ "name": "status", "description": "Show agent and container status" },
{ "name": "agents", "description": "List and switch between configured agents" },
{ "name": "config", "description": "Show or change configuration" }
]
}
],
"views": {
"explorer": [
{
"id": "opencode-devcontainer.subagentActivity",
"name": "OpenCode Agents",
"when": "opencode-devcontainer.chatActive"
}
]
},
"commands": [
{
"command": "opencode-devcontainer.startDevcontainer",
"title": "OpenCode: Start Dev Container"
},
{
"command": "opencode-devcontainer.stopDevcontainer",
"title": "OpenCode: Stop Dev Container"
},
{
"command": "opencode-devcontainer.launchOpenCode",
"title": "OpenCode: Launch in Dev Container Mode"
},
{
"command": "opencode-devcontainer.launchOpenCodeInContainer",
"title": "OpenCode: Launch Inside Dev Container"
},
{
"command": "opencode-devcontainer.showStatus",
"title": "OpenCode: Show Dev Container Status"
}
],
"configuration": {
"title": "OpenCode for Dev Containers",
"properties": {
"opencode-devcontainer.opencodePath": {
"type": "string",
"default": "opencode",
"description": "Path to the OpenCode binary on the host machine"
},
"opencode-devcontainer.devcontainerPath": {
"type": "string",
"default": "",
"description": "Path to the devcontainer configuration directory (defaults to .devcontainer in the workspace root)"
},
"opencode-devcontainer.dockerPath": {
"type": "string",
"default": "docker",
"description": "Path to the Docker CLI binary"
},
"opencode-devcontainer.devcontainerCliPath": {
"type": "string",
"default": "devcontainer",
"description": "Path to the devcontainer CLI binary"
},
"opencode-devcontainer.opencodeConfigPath": {
"type": "string",
"default": "",
"description": "Path to the OpenCode configuration file (opencode.json or opencode.jsonc). When empty, searches the workspace root and ~/.config/opencode/ automatically."
},
"opencode-devcontainer.executionMode": {
"type": "string",
"enum": [
"local-with-remote-exec",
"in-container"
],
"default": "local-with-remote-exec",
"enumDescriptions": [
"Run OpenCode locally, execute shell commands in the devcontainer (recommended)",
"Run OpenCode entirely inside the devcontainer"
],
"description": "How to run OpenCode with devcontainer integration"
},
"opencode-devcontainer.containerWorkspaceFolder": {
"type": "string",
"default": "",
"description": "Workspace folder path inside the container (auto-detected from devcontainer.json if empty)"
},
"opencode-devcontainer.additionalEnvVars": {
"type": "object",
"default": {},
"description": "Additional environment variables to pass to OpenCode"
},
"opencode-devcontainer.forwardEnvVars": {
"type": "array",
"default": [
"OPENAI_API_KEY",
"ANTHROPIC_API_KEY",
"OPENCODE_*"
],
"items": {
"type": "string"
},
"description": "Environment variable names (or patterns with *) to forward from the host to the container"
},
"opencode-devcontainer.chat.showToolCalls": {
"type": "boolean",
"default": true,
"description": "Show individual tool call details in chat responses"
},
"opencode-devcontainer.chat.showSubagentTree": {
"type": "boolean",
"default": true,
"description": "Show the subagent activity tree view"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "node esbuild.js --production",
"watch": "node esbuild.js --watch",
"lint": "eslint src --ext ts",
"test": "vitest run",
"test:watch": "vitest",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"esbuild": "^0.27.3",
"eslint": "^8.56.0",
"typescript": "^5.3.0",
"vitest": "^4.0.18"
}
}