@encoredigitalgroup/opencode 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tui/index.js +12 -3
- package/package.json +1 -1
package/dist/tui/index.js
CHANGED
|
@@ -249,7 +249,17 @@ class FilePickerCommands {
|
|
|
249
249
|
} else {
|
|
250
250
|
let session;
|
|
251
251
|
try {
|
|
252
|
-
|
|
252
|
+
const model = context.ui.model.current();
|
|
253
|
+
session = await context.client.session.create({
|
|
254
|
+
location: { directory: location.directory },
|
|
255
|
+
...model === undefined ? {} : {
|
|
256
|
+
model: {
|
|
257
|
+
providerID: model.providerID,
|
|
258
|
+
id: model.modelID,
|
|
259
|
+
...model.variant === undefined ? {} : { variant: model.variant }
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
253
263
|
} catch {
|
|
254
264
|
FilePickerCommands.toast(context, "Unable to create a session for the plan request.");
|
|
255
265
|
return;
|
|
@@ -300,8 +310,7 @@ class FilePickerCommands {
|
|
|
300
310
|
group: "Plugin",
|
|
301
311
|
palette: true,
|
|
302
312
|
slash: {
|
|
303
|
-
name: command.command
|
|
304
|
-
arguments: true
|
|
313
|
+
name: command.command
|
|
305
314
|
},
|
|
306
315
|
run: () => FilePickerCommands.run(context, command)
|
|
307
316
|
}]
|