-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
235 lines (235 loc) · 7.11 KB
/
package.json
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
{
"name": "algokit-avm-vscode-debugger",
"displayName": "AlgoKit AVM Debugger",
"version": "0.1.0",
"private": false,
"description": "An extension for debugging AVM transactions and smart contract programs.",
"author": "Algorand Foundation",
"publisher": "AlgorandFoundation",
"license": "MIT",
"keywords": [
"algokit",
"algorand",
"avm",
"algorand debugger",
"avm debugger",
"algokit avm debugger",
"smart contract debugger"
],
"engines": {
"vscode": "^1.80.0"
},
"icon": "./images/icon.png",
"categories": [
"Debuggers"
],
"repository": {
"type": "git",
"url": "https://github.com/algorandfoundation/algokit-avm-vscode-debugger.git"
},
"bugs": {
"url": "https://github.com/algorandfoundation/algokit-avm-vscode-debugger/issues"
},
"scripts": {
"build": "run-s build:*",
"build:clean": "rimraf dist",
"build:check-types": "tsc --noEmit",
"build:build": "esbuild ./src/extension.ts --bundle --tsconfig=./tsconfig.json --external:vscode --format=cjs --platform=node --outfile=dist/extension.js",
"build-dev": "npm run build:build -- --sourcemap --sources-content=false",
"format": "prettier --write .",
"lint": "eslint \"src/**/*.ts\"",
"lint:fix": "eslint \"src/**/*.ts\" --fix",
"test": "run-s test:*",
"test:build-app": "npm run build",
"test:run": "wdio run ./test/wdio.conf.ts",
"audit": "npm audit --audit-level=critical",
"pre-commit": "run-s build lint:fix audit format test",
"package": "vsce package"
},
"dependencies": {
"algosdk": "^2.9.0",
"avm-debug-adapter": "^0.3.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@makerx/eslint-config": "3.1.1",
"@makerx/prettier-config": "2.0.1",
"@makerx/ts-config": "^1.0.1",
"@types/json-bigint": "^1.0.4",
"@types/lodash": "^4.17.7",
"@types/mocha": "^10.0.7",
"@types/node": "^18.18.11",
"@types/vscode": "^1.80.0",
"@vscode/vsce": "^2.22.0",
"@wdio/cli": "^8.33.1",
"@wdio/local-runner": "^8.33.1",
"@wdio/mocha-framework": "^8.33.1",
"@wdio/spec-reporter": "^8.32.4",
"conventional-changelog-conventionalcommits": "^7.0.2",
"esbuild": "^0.23.1",
"eslint": "8.22.0",
"mocha": "^10.7.3",
"npm-run-all": "^4.1.5",
"prettier": "3.3.3",
"rimraf": "^5.0.5",
"semantic-release": "^22.0.10",
"semantic-release-vsce": "^5.7.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"wdio-vscode-service": "^6.0.3"
},
"main": "./dist/extension.js",
"activationEvents": [
"workspaceContains:**/*.trace.avm.json",
"onDebug",
"onDebugResolve:avm",
"onDebugDynamicConfigurations:avm",
"onCommand:extension.avmDebugger.getSimulateTraceFile",
"onCommand:extension.avmDebugger.getProgramSourcesDescriptionFile"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"languages": [
{
"id": "teal",
"extensions": [
".teal"
],
"configuration": "teal-language-configuration.json"
}
],
"grammars": [
{
"language": "teal",
"scopeName": "source.teal",
"path": "syntaxes/teal.tmLanguage.json"
}
],
"breakpoints": [
{
"language": "python"
},
{
"language": "typescript"
},
{
"language": "teal"
}
],
"debuggers": [
{
"type": "avm",
"languages": [
"teal"
],
"label": "AVM Debug",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"simulateTraceFile"
],
"properties": {
"simulateTraceFile": {
"type": "string",
"description": "Transaction group simulation response with execution trace.",
"default": "${workspaceFolder}/${command:PickSimulateTraceFile}"
},
"programSourcesDescriptionFile": {
"type": "string",
"description": "Description file for sources of programs appearing in transaction group."
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "avm",
"request": "launch",
"name": "Debug AVM Transactions",
"simulateTraceFile": "${workspaceFolder}/${command:PickSimulateTraceFile}",
"stopOnEntry": true
}
],
"configurationSnippets": [
{
"label": "AVM Debug",
"description": "A new configuration for replaying and debugging Algorand transactions.",
"body": {
"type": "avm",
"request": "launch",
"name": "Debug AVM Transactions",
"simulateTraceFile": "^\"\\${workspaceFolder}/\\${command:PickSimulateTraceFile}\"",
"stopOnEntry": true
}
}
],
"variables": {
"PickSimulateTraceFile": "extension.avmDebugger.getSimulateTraceFile",
"PickProgramSourcesDescriptionFile": "extension.avmDebugger.getProgramSourcesDescriptionFile"
}
}
],
"menus": {
"editor/title/run": [
{
"command": "extension.avmDebugger.debugOpenTraceFile",
"when": "resourceFilename =~ /.trace.avm.json$/",
"group": "navigation"
}
]
},
"commandPalette": [
{
"command": "extension.avmDebugger.debugOpenTraceFile",
"when": "resourceFilename =~ /.trace.avm.json$/"
}
],
"commands": [
{
"command": "extension.avmDebugger.debugOpenTraceFile",
"title": "Debug AVM Trace File",
"category": "AlgoKit AVM Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.avmDebugger.clearAvmDebugRegistry",
"title": "Clear AVM Debug Registry",
"category": "AlgoKit AVM Debug"
},
{
"command": "extension.avmDebugger.editAvmDebugRegistry",
"title": "Edit AVM Debug Registry",
"category": "AlgoKit AVM Debug"
}
],
"configuration": {
"title": "AlgoKit AVM Debugger",
"properties": {
"avmDebugger.debugAdapter.port": {
"type": [
"number",
"null"
],
"default": null,
"description": "If specified, the extension will connect to a debug adapter server running on the supplied port. By default the debug adapter will be run inline automatically. This setting should only be used in advanced scenarios."
},
"avmDebugger.defaultSourcemapRegistryFile": {
"type": "string",
"default": "",
"description": "The default path for the sourcemap registry file. If not set, defaults to '.algokit/sources/sources.avm.json' in the workspace root."
}
}
}
}
}