-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpackage.json
More file actions
344 lines (344 loc) · 12.8 KB
/
package.json
File metadata and controls
344 lines (344 loc) · 12.8 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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
{
"name": "joyride",
"displayName": "Joyride",
"description": "Making VS Code hackable. (A bit like Emacs with ELisp.) Powered by SCI, the Small Clojure Interpreter.",
"icon": "assets/joyride.png",
"version": "0.0.73",
"publisher": "betterthantomorrow",
"author": {
"name": "Better Than Tomorrow",
"email": "pez@pezius.com"
},
"repository": {
"type": "git",
"url": "https://github.com/BetterThanTomorrow/joyride.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/BetterThanTomorrow/joyride/issues"
},
"engines": {
"vscode": ">=1.96.2"
},
"categories": [
"Other"
],
"keywords": [
"Emacs",
"vscode",
"script",
"clojure",
"sci",
"hackable",
"scripting",
"REPL",
"automation"
],
"galleryBanner": {
"color": "#344D81",
"theme": "dark"
},
"badges": [
{
"url": "https://img.shields.io/badge/clojurians-joyride-blue.svg?logo=slack",
"href": "https://clojurians.slack.com/messages/joyride/",
"description": "Let's talk in the #joyride channel on the Clojurians Slack"
}
],
"activationEvents": [
"*",
"workspaceContains:**/.joyride",
"onStartupFinished"
],
"main": "./out/joyride.js",
"contributes": {
"configuration": [
{
"title": "Joyride",
"properties": {
"joyride.nreplHostAddress": {
"type": "string",
"default": "127.0.0.1",
"markdownDescription": "The host address to use for the nREPL server."
},
"joyride.lm.enableReplTool": {
"type": "boolean",
"default": true,
"description": "Enable Copilot Joyride REPL access"
},
"joyride.lm.evaluationResultsMaxLength": {
"type": "number",
"default": 25,
"markdownDescription": "Maximum number of items in collections returned to the agent during REPL evaluation. Use `0` to disable length limiting."
},
"joyride.lm.evaluationResultsMaxDepth": {
"type": "number",
"default": 7,
"markdownDescription": "Maximum nesting depth for evaluation results returned to the agent; deeper structures are replaced with `##`. Use `0` to disable depth limiting."
}
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "joyride",
"title": "Joyride",
"icon": "assets/j-icon-dark.svg"
}
]
},
"views": {
"joyride": [
{
"type": "webview",
"id": "joyride.flare.sidebar-1",
"name": "Flare 1",
"icon": "assets/j-icon-dark.svg",
"when": "joyride.flare.sidebar-1.isActive"
},
{
"type": "webview",
"id": "joyride.flare.sidebar-2",
"name": "Flare 2",
"icon": "assets/j-icon-dark.svg",
"when": "joyride.flare.sidebar-2.isActive"
},
{
"type": "webview",
"id": "joyride.flare.sidebar-3",
"name": "Flare 3",
"icon": "assets/j-icon-dark.svg",
"when": "joyride.flare.sidebar-3.isActive"
},
{
"type": "webview",
"id": "joyride.flare.sidebar-4",
"name": "Flare 4",
"icon": "assets/j-icon-dark.svg",
"when": "joyride.flare.sidebar-4.isActive"
},
{
"type": "webview",
"id": "joyride.flare.sidebar-5",
"name": "Flare 5",
"icon": "assets/j-icon-dark.svg",
"when": "joyride.flare.sidebar-5.isActive"
}
]
},
"commands": [
{
"command": "joyride.runCode",
"title": "Run Clojure Code...",
"category": "Joyride"
},
{
"command": "joyride.evaluateSelection",
"title": "Evaluate Selection",
"category": "Joyride"
},
{
"command": "joyride.revealOutputTerminal",
"title": "Reveal the Output Terminal",
"category": "Joyride"
},
{
"command": "joyride.runUserScript",
"title": "Run User Script...",
"category": "Joyride"
},
{
"command": "joyride.runWorkspaceScript",
"title": "Run Workspace Script...",
"category": "Joyride"
},
{
"command": "joyride.openUserScript",
"title": "Open User Script...",
"category": "Joyride"
},
{
"command": "joyride.openWorkspaceScript",
"title": "Open Workspace Script...",
"category": "Joyride"
},
{
"command": "joyride.createUserScript",
"title": "Create User Script...",
"category": "Joyride"
},
{
"command": "joyride.createUserSourceFile",
"title": "Create User Source File...",
"category": "Joyride"
},
{
"command": "joyride.openUserDirectory",
"title": "Open User Joyride Directory in New Window",
"category": "Joyride"
},
{
"command": "joyride.startNReplServer",
"title": "Start nREPL Server",
"category": "Joyride",
"enablement": "!joyride.isNReplServerRunning"
},
{
"command": "joyride.stopNReplServer",
"title": "Stop nREPL Server",
"category": "Joyride",
"enablement": "joyride.isNReplServerRunning"
},
{
"command": "joyride.enableNReplMessageLogging",
"title": "Enable nREPL message logging",
"category": "Joyride"
},
{
"command": "joyride.disableNReplMessageLogging",
"title": "Disable nREPL message logging",
"category": "Joyride"
},
{
"command": "joyride.createUserActivateScript",
"title": "Create User Activate Script",
"category": "Joyride",
"enablement": "!joyride.userActivateScriptExists"
},
{
"command": "joyride.createUserHelloScript",
"title": "Create Hello Joyride User Script",
"category": "Joyride",
"enablement": "!joyride.userHelloScriptExists"
},
{
"command": "joyride.createWorkspaceActivateScript",
"title": "Create Workspace Activate Script",
"category": "Joyride",
"enablement": "!joyride.workspaceActivateScriptExists"
},
{
"command": "joyride.createWorkspaceHelloScript",
"title": "Create Hello Joyride Workspace Script",
"category": "Joyride",
"enablement": "!joyride.workspaceHelloScriptExists"
}
],
"keybindings": [
{
"command": "joyride.runCode",
"key": "ctrl+alt+j space"
},
{
"command": "joyride.evaluateSelection",
"key": "ctrl+alt+j enter"
},
{
"command": "joyride.runUserScript",
"key": "ctrl+alt+j u"
},
{
"command": "joyride.runWorkspaceScript",
"key": "ctrl+alt+j w"
}
],
"chatInstructions": [
{
"name": "JoyrideBasicsForAgents",
"description": "Joyride agent guide: how to use Joyride's evaluation capabilities effectively",
"path": "./assets/llm-contexts/agent-joyride-eval.md"
},
{
"name": "JoyrideAssistingUsersGuide",
"description": "Joyride user guide: helping users learn and use Joyride effectively",
"path": "./assets/llm-contexts/user-assistance.md"
}
],
"languageModelTools": [
{
"name": "joyride_evaluate_code",
"when": "config.joyride.lm.enableReplTool",
"displayName": "Joyride Evaluation",
"modelDescription": "**Joyride evaluation** - Execute ClojureScript code in VS Code's Extension API environment via Joyride. Use Joyride evaluation to modify editor behavior, manipulate files, invoke VS Code APIs, and create dynamic workflows. It us a DIY tool for both the human and for you to reach and compose with VS Code features and API. Make use of it!\n\n**Important**: Runs synchronously by default - if you evaluate async code and need the unwrapped result, provide the `awaitResult` parameter as `true`.",
"userDescription": "Joyride evaluation - allows the AI agent to run code with full VS Code API access to inspect and modify your environment",
"canBeReferencedInPrompt": true,
"toolReferenceName": "joyride-eval",
"icon": "$(play)",
"inputSchema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Joyride code to evaluate. Joyride is scripted with SCI ClojureScript within the VS Code Extension Host environment. Use the `joyride-basics-for-agents` to familiarize yourself with Joyride. Patterns examples: `(require '[\"vscode\" :as vscode])`, `(vscode/window.showInformationMessage \"Hello!\")`, `(vscode/workspace.getConfiguration \"setting\")`. **Classpath**: When resolving namespaces, Joyride searches for source files in: 1. `<workspace-root>/.joyride/src` 2. `<workspace-root>/.joyride/scripts` 3. `<user-home>/.config/joyride/src` 4. `<user-home>/.config/joyride/scripts`"
},
"namespace": {
"type": "string",
"description": "Target namespace for code evaluation. Defaults to 'user'. When showing the evaluated code to the user, include the namespace first in the codeblock like so `(in-ns 'namespace)`."
},
"awaitResult": {
"type": "boolean",
"description": "Whether to wait for async operations to finish. Defaults to `false`. Use `true` when you need the result (user input, file contents, API responses, etcetera). Use `false` to avoid blocking on promises that may never resolve."
}
},
"required": [
"code"
]
}
},
{
"name": "joyride_request_human_input",
"displayName": "Human Intelligence",
"modelDescription": "**Human intelligence**: Ask the human developer for input or guidance. Give your question context in the chat, then use human intelligence to request input from the human.\n\n## When to use human intelligence\n* Need to think about a thing together with someone?\n* Would you benefit from clarification?\n* Is there some domain knowledge you need?\n* Have you encountered unexpected results?\n* Has the human requested to be kept in the loop?\n\n## Human intelligence flow\nAI Agent Working → Agent Needs Input → Agents Explains Context in Chat → Calls Human Intelligence → VS Code Input Box → Human Responds → AI Continues, better informed.",
"userDescription": "Human intelligence - allows the AI agent to request guidance and clarification from you",
"canBeReferencedInPrompt": true,
"toolReferenceName": "human-intelligence",
"icon": "$(feedback)",
"inputSchema": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "The question to ask the human. First provide context in the chat, this prompt is for framing the question."
}
},
"required": [
"prompt"
]
}
}
]
},
"scripts": {
"clean": "rimraf .cpcache .shadow-cljs/ out/",
"watch": "clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,\"1.3.1\"},cider/cider-nrepl {:mvn/version,\"0.55.4\"}}}' -M:dev -m nrepl.cmdline --middleware \"[cider.nrepl/cider-middleware shadow.cljs.devtools.server.nrepl/middleware]\"",
"watchwin": "clojure -Sdeps \"{:deps {nrepl/nrepl {:mvn/version \\\"1.3.1\\\"} cider/cider-nrepl {:mvn/version \\\"0.55.4\\\"}}}\" -M:dev -m nrepl.cmdline --middleware \"[cider.nrepl/cider-middleware shadow.cljs.devtools.server.nrepl/middleware]\"",
"prewatch": "npm run clean && npm i",
"prewatchwin": "npm run clean && npm i",
"compile": "npx shadow-cljs compile :extension",
"release": "npx shadow-cljs release :extension",
"package": "npx vsce package --allow-star-activation",
"package:prerelease": "npx vsce package --allow-star-activation --pre-release",
"vscode:prepublish": "npm run clean && npm run release",
"preintegration-test": "cd ./vscode-test-runner/workspace-1 && npm i",
"integration-test": "node ./vscode-test-runner/launch.js",
"preintegration-test:vsix": "bb ./vscode-test-runner/setup-isolated-workspace.clj > /tmp/joyride-test-runner-path.txt",
"integration-test:vsix": "cd $(cat /tmp/joyride-test-runner-path.txt) && node launch.js --test-workspace=../workspace",
"integration-test-containerized": "./vscode-test-runner/run-containerized.sh"
},
"dependencies": {
"@vscode/codicons": "^0.0.30",
"fdir": "^5.2.0",
"parinfer": "^3.13.1",
"picomatch": "^2.3.1",
"posthtml-parser": "^0.12.1"
},
"devDependencies": {
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.6.0",
"axios": "^1.1.2",
"moment": "^2.29.4",
"rimraf": "^3.0.2",
"shadow-cljs": "^2.18.0"
}
}