-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
179 lines (179 loc) · 5.12 KB
/
package.json
File metadata and controls
179 lines (179 loc) · 5.12 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
176
177
178
179
{
"name": "mdlab",
"displayName": "Markdown Lab",
"publisher": "jackos",
"version": "0.7.4",
"description": "Run markdown code blocks interactively in a notebook with any programming language, and generate code blocks with LLMs.",
"main": "./out/extension.js",
"icon": "mdlab.png",
"categories": [
"Notebooks",
"Machine Learning",
"Programming Languages"
],
"keywords": [
"markdown",
"lab",
"md",
"notebook",
"jupyter"
],
"activationEvents": [
"onNotebook:mdlab",
"onCommand:mdlab.preview"
],
"engines": {
"vscode": "^1.96.0"
},
"repository": {
"url": "https://github.com/jackos/mdlab"
},
"author": "Jack Clayton",
"license": "ISC",
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"contributes": {
"configuration": {
"type": "object",
"title": "mdlab configuration",
"properties": {
"mdlab.basePath": {
"description": "Path where searchable notes will be stored",
"type": "string",
"scope": "window"
},
"mdlab.openaiOrgID": {
"type": "string",
"default": "",
"description": "Leave blank if not part of an org, get your org id at https://platform.openai.com/account/org-settings"
},
"mdlab.openaiKey": {
"type": "string",
"default": "",
"description": "Set up an API key at: https://platform.openai.com/account/api-keys"
},
"mdlab.groqKey": {
"type": "string",
"default": "",
"description": "Set up an API key at: https://console.groq.com/keys"
},
"mdlab.groqModel": {
"type": "string",
"default": "llama3-8b-8192",
"description": "Groq model to use. Available models: llama3-8b-8192, llama3-70b-8192, llama-3.1-8b-instant, llama-3.3-70b-versatile, gemma2-9b-it, qwen-qwq-32b, deepseek-r1-distill-llama-70b, mistral-saba-24b, and more. Check https://console.groq.com/docs/models for the full list."
},
"mdlab.openaiModel": {
"type": "string",
"default": "gpt-4-turbo",
"description": "Check out available models here: https://platform.openai.com/docs/models/overview"
},
"mdlab.jaiPath": {
"type": "string",
"default": "",
"description": "Set the path to your Jai compiler executable, e.g. /home/user/jai"
}
}
},
"commands": [
{
"command": "mdlab.search",
"title": "mdlab: Search notes",
"description": "Adds notes base path to workspace and opens `find in files`"
},
{
"command": "mdlab.openMain",
"title": "mdlab: Open generated code",
"description": "Opens the code being generated, by adding the folder to the workspace"
},
{
"command": "mdlab.deleteTemp",
"title": "mdlab: Delete Tempory Folder",
"description": "Delete the temporary folder with all the generated code files"
},
{
"command": "mdlab.setMetatag",
"title": "mdlab: Set Cell Metatag",
"description": "Set a metatag for the current cell (e.g., :restart, :global, :skip)",
"icon": "$(tag)"
}
],
"keybindings": [
{
"key": "alt+f",
"command": "mdlab.search"
},
{
"key": "alt+o",
"command": "mdlab.openMain"
}
],
"menus": {
"notebook/cell/title": [
{
"command": "mdlab.setMetatag",
"when": "notebookType == mdlab && notebookCellType == code",
"group": "inline@1"
}
]
},
"languages": [
{
"id": "openai",
"aliases": [
"OpenAI",
"openai"
],
"extensions": [],
"firstLine": "^#!.*\\b(openai)\\b"
},
{
"id": "groq",
"aliases": [
"Groq",
"groq"
],
"extensions": [],
"firstLine": "^#!.*\\b(groq)\\b"
}
],
"notebooks": [
{
"type": "mdlab",
"displayName": "Markdown Lab",
"priority": "default",
"selector": [
{
"filenamePattern": "*.{md,mdx,markdown}"
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "vsce package",
"install-extension": "code --install-extension $(ls mdlab-*) --force",
"i": "npm run package && npm run install-extension",
"test": "npm run compile && node ./out/kernel-e2e.test.js",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json}\""
},
"devDependencies": {
"@types/node": "^22.19.0",
"@types/vscode": "^1.96.2",
"@typescript-eslint/eslint-plugin": "^8.33.0",
"@typescript-eslint/parser": "^8.33.0",
"@vscode/vsce": "^3.4.2",
"eslint": "^9.27.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3"
}
}