@opencode/plugin 0.0.0-dev-554 → 0.0.0-dev-555

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.
@@ -839,6 +839,26 @@ export interface Layout {
839
839
  * ```
840
840
  */
841
841
  menu(): readonly SessionPanelMenuItem[];
842
+ /**
843
+ * The side region width the user dragged to, or `resize` stored, while one of your panel's tabs shows; undefined
844
+ * when none is stored, as before the app interface mounts. Reactive.
845
+ *
846
+ * @param panel - Your `Panel`'s id.
847
+ */
848
+ width(panel: string): number | undefined;
849
+ /**
850
+ * Stores the side region width for your panel, as a drag on one of its tabs does; it applies while the side pane
851
+ * shows one of the panel's tabs, and the user's next drag replaces it. Waits until the app interface mounts.
852
+ *
853
+ * @param panel - Your `Panel`'s id.
854
+ * @param width - CSS pixels. The host keeps the conversation at its minimum width and the region at its own.
855
+ *
856
+ * @example
857
+ * ```ts
858
+ * ctx.layout.side.resize("quota", 360)
859
+ * ```
860
+ */
861
+ resize(panel: string, width: number): void;
842
862
  };
843
863
  /**
844
864
  * The inner sidebar preference every side panel shares, which `usePanel().sidebar` also reads inside a panel render.
@@ -254,6 +254,16 @@ export interface Panel {
254
254
  readonly region: "side";
255
255
  /** Asks for the wider session minimum while the side region is open. Reactive. */
256
256
  readonly wide?: boolean;
257
+ /**
258
+ * Gives the panel a side region width of its own, for content that wants less room or more than other tabs. While the
259
+ * side pane shows one of the panel's tabs, the region takes the width the user last dragged it to on this panel,
260
+ * app-wide, else this one; other tabs keep the conversation's width. The host keeps the conversation at its minimum
261
+ * width and the region at least `narrow`. Omit it to share the conversation's width, unless `Layout.side.resize`
262
+ * stored one for the panel.
263
+ * - A number: CSS pixels.
264
+ * - `narrow`: the narrowest the region goes.
265
+ */
266
+ readonly width?: number | "narrow";
257
267
  /** Tabs are not restored: stored keys this panel stops listing leave the strip. See also `PanelTab.transient`. */
258
268
  readonly transient?: boolean;
259
269
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/plugin",
4
- "version": "0.0.0-dev-554",
4
+ "version": "0.0.0-dev-555",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -78,15 +78,15 @@
78
78
  ],
79
79
  "dependencies": {
80
80
  "@ai-sdk/provider": "3.0.8",
81
- "@opencode/ai": "0.0.0-dev-554",
82
- "@opencode/client": "0.0.0-dev-554",
83
- "@opencode/protocol": "0.0.0-dev-554",
84
- "@opencode/schema": "0.0.0-dev-554",
85
- "@opencode/util": "0.0.0-dev-554",
81
+ "@opencode/ai": "0.0.0-dev-555",
82
+ "@opencode/client": "0.0.0-dev-555",
83
+ "@opencode/protocol": "0.0.0-dev-555",
84
+ "@opencode/schema": "0.0.0-dev-555",
85
+ "@opencode/util": "0.0.0-dev-555",
86
86
  "effect": "4.1.0"
87
87
  },
88
88
  "peerDependencies": {
89
- "@opencode/theme": "0.0.0-dev-554",
89
+ "@opencode/theme": "0.0.0-dev-555",
90
90
  "@opentui/core": ">=0.8.1",
91
91
  "@opentui/solid": ">=0.8.1",
92
92
  "electron": "*",
@@ -118,7 +118,7 @@
118
118
  }
119
119
  },
120
120
  "devDependencies": {
121
- "@opencode/theme": "0.0.0-dev-554",
121
+ "@opencode/theme": "0.0.0-dev-555",
122
122
  "@opentui/core": "0.8.1",
123
123
  "@opentui/solid": "0.8.1",
124
124
  "@tsconfig/bun": "1.0.9",