-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
179 lines (179 loc) · 5.93 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
{
"name": "slidaiv",
"displayName": "Slidaiv",
"description": "Slidaiv extension leverages AI/LLM to automatically generate content for Slidev presentations, making it easier for users to write a Slidev presentation.",
"publisher": "kaakaa",
"version": "0.0.12",
"repository": {
"type": "git",
"url": "git+https://github.com/kaakaa/slidaiv.git"
},
"bugs": {
"url": "https://github.com/kaakaa/slidaiv/issues"
},
"homepage": "https://github.com/kaakaa/slidaiv#readme",
"packageManager": "pnpm@9.1.2",
"engines": {
"vscode": "^1.89.0",
"node": ">=18.0.0"
},
"bin": {
"slidaiv": "dist/slidaiv-cli.js"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "slidaiv.command.generateContents",
"title": "Generate Slidev contents",
"category": "Slidaiv"
},
{
"command": "slidaiv.command.decorateContents",
"title": "Decorate contents (Experimental)",
"category": "Slidaiv"
},
{
"command": "slidaiv.command.setApiKey",
"title": "Set API Key",
"category": "Slidaiv"
}
],
"submenus": [
{
"id": "slidaiv.submenu",
"label": "Slidaiv"
}
],
"menus": {
"editor/context": [
{
"submenu": "slidaiv.submenu",
"when": "editorLangId == markdown",
"group": "1_modification@99"
}
],
"slidaiv.submenu": [
{
"command": "slidaiv.command.generateContents",
"group": "slidaiv@1"
},
{
"command": "slidaiv.command.decorateContents",
"group": "slidaiv@2"
}
]
},
"configuration": {
"title": "Slidaiv",
"properties": {
"slidaiv.llmService": {
"type": "string",
"order": 1,
"default": "openai",
"enum": [
"openai",
"azure-ai-inference"
],
"description": "Select LLM service to generate Slidev contents. (default: openai)"
},
"slidaiv.baseUrl": {
"type": "string",
"order": 2,
"default": "https://api.openai.com/v1",
"markdownDescription": "Specify LLM service's base URL (default: `https://api.openai.com/v1`). If you select `azure-ai-inference` in `#slidaiv.llmService#`, you cannot configure this setting, and `https://models.inference.ai.azure.com` will be used."
},
"slidaiv.apiKey": {
"type": "null",
"order": 3,
"default": null,
"markdownDescription": "API Key must be set from [here](command:slidaiv.command.setApiKey). API Key will be used to authorize requests to selected LLM Service (`#slidaiv.llmService#`)."
},
"slidaiv.model": {
"type": "string",
"order": 4,
"default": "gpt-4o",
"description": "Enter the LLM model name. (default: gpt-4o)"
},
"slidaiv.prompt.generate": {
"type": "string",
"order": 10,
"editPresentation": "multilineText",
"default": "",
"markdownDescription": "System Prompt for `Generate Slidev contents` command. \nYou can use variable `${locale}` in your prompt, which will be replaced with locale setting in runtime.\n\nIf empty, [the default prompt](https://github.com/kaakaa/slidaiv/blob/master/src/client/prompts.ts) will be used. (Default is empty)"
},
"slidaiv.prompt.decorate": {
"type": "string",
"order": 11,
"editPresentation": "multilineText",
"default": "",
"markdownDescription": "System Prompt for `Decorate contents (Experimental)` command.\n\nIf empty, [the default prompt](https://github.com/kaakaa/slidaiv/blob/master/src/client/prompts.ts) will be used. (Default is empty)"
},
"slidaiv.debug": {
"type": "boolean",
"order": 90,
"default": false,
"description": "Enable debug log"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"vscode:package": "vsce package --no-dependencies",
"compile": "webpack --mode development",
"watch": "webpack --mode development --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"deploy": "vsce publish --no-dependencies",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"cli:compile": "esbuild src/cli/main.ts --bundle --platform=node --format=cjs --outfile=dist/slidaiv-cli.js --banner:js='#!/usr/bin/env node'",
"mock-server": "prism mock -d ./e2e/mock-openai.yaml"
},
"devDependencies": {
"@babel/cli": "^7.24.7",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/register": "^7.24.6",
"@stoplight/prism-cli": "^5.8.1",
"@types/cli-progress": "^3.11.6",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.89.0",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.29.0",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-unused-imports": "^4.1.3",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@azure-rest/ai-inference": "1.0.0-beta.2",
"@azure/core-auth": "^1.7.2",
"@azure/core-sse": "^2.1.3",
"@slidev/parser": "^0.49.27",
"@slidev/types": "^0.49.27",
"cli-progress": "^3.12.0",
"commander": "^12.1.0",
"js-yaml": "^4.1.0",
"openai": "^4.47.1",
"yaml": "^2.5.0"
}
}