@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.
Files changed (2) hide show
  1. package/dist/tui/index.js +12 -3
  2. 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
- session = await context.client.session.create({ location: { directory: location.directory } });
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
  }]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@encoredigitalgroup/opencode",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.2.3",
5
5
  "description": "OpenCode file-picker commands for planning skills.",
6
6
  "publishConfig": {
7
7
  "access": "public"