@encoredigitalgroup/opencode 0.2.2 → 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 +11 -1
  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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@encoredigitalgroup/opencode",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "description": "OpenCode file-picker commands for planning skills.",
6
6
  "publishConfig": {
7
7
  "access": "public"