microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f05b8e46d3d44209c8ca5a56fdb7e58f47aee348

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.devcontainer/vnc/devcontainer.json

74lines · modecode

1{
2 "name": "TypeAgent Development (VNC Desktop)",
3
4 // Use this configuration when you need GUI support in Codespaces
5 // or environments without WSLg. Access via http://localhost:6080
6
7 "image": "mcr.microsoft.com/devcontainers/universal:2",
8
9 // Fix stale yarn GPG key in base image
10 "onCreateCommand": "sudo rm -f /etc/apt/sources.list.d/yarn.list || true",
11
12 "features": {
13 // VNC desktop for Electron shell support
14 "ghcr.io/devcontainers/features/desktop-lite:1": {
15 "password": "typeagent",
16 "webPort": "6080",
17 "vncPort": "5901"
18 },
19 "ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {},
20 "ghcr.io/devcontainers/features/node:1": {
21 "version": "22",
22 "nodeGypDependencies": true
23 },
24 "ghcr.io/devcontainers/features/python:1": {
25 "version": "3.12",
26 "installTools": true
27 },
28 "ghcr.io/devcontainers/features/azure-cli:1": {},
29 "ghcr.io/devcontainers/features/github-cli:1": {}
30 },
31
32 "forwardPorts": [6080, 5901, 8999, 8081, 8082, 3000],
33 "portsAttributes": {
34 "6080": { "label": "noVNC Web Desktop", "onAutoForward": "openBrowser" },
35 "5901": { "label": "VNC Client" },
36 "8999": { "label": "Agent Server (WebSocket)", "onAutoForward": "notify" },
37 "8081": { "label": "Browser Agent (WebSocket)", "onAutoForward": "notify" },
38 "8082": { "label": "Code Agent (WebSocket)", "onAutoForward": "notify" },
39 "3000": { "label": "API Server (HTTP)", "onAutoForward": "notify" }
40 },
41
42 "mounts": [
43 "source=pnpm-global-store,target=/home/codespace/.local/share/pnpm/store,type=volume",
44 "source=typeagent-node_modules-${devcontainerId},target=${containerWorkspaceFolder}/ts/node_modules,type=volume",
45 "source=claude-code-config-${devcontainerId},target=/home/codespace/.claude,type=volume"
46 ],
47
48 "containerEnv": {
49 "PNPM_HOME": "/home/codespace/.local/share/pnpm"
50 },
51
52 "postCreateCommand": "cat .devcontainer/scripts/post-create.sh | tr -d '\\r' | bash && cat .devcontainer/scripts/install-electron-deps.sh | tr -d '\\r' | bash",
53 "postStartCommand": "cat .devcontainer/scripts/post-start.sh | tr -d '\\r' | bash",
54
55 "customizations": {
56 "vscode": {
57 "extensions": [
58 "dbaeumer.vscode-eslint",
59 "esbenp.prettier-vscode",
60 "ms-python.python",
61 "github.copilot"
62 ]
63 }
64 },
65
66 "remoteUser": "codespace",
67
68 // VNC requires more resources
69 "hostRequirements": {
70 "cpus": 4,
71 "memory": "16gb",
72 "storage": "32gb"
73 }
74}
75