@opencode/plugin 0.0.0-dev-1310 → 0.0.0-dev-1311

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.
@@ -1,5 +1,5 @@
1
1
  import type { Accessor } from "solid-js";
2
- import type { BaseContext, App, Cleanup, Contract, DeclaredStores, Ipc, IpcClient, IpcSpec, Live, Persisted, StoreDeclaration, Token, TokenValue } from "./core.js";
2
+ import type { BaseContext, App, Cleanup, Contract, DeclaredIcons, DeclaredStores, Ipc, IpcClient, IpcSpec, Live, Persisted, PluginIconName, StoreDeclaration, Token, TokenValue } from "./core.js";
3
3
  import type { Appearance, Attention, Commands, Desktop, Dialogs, Embeds, Keybinds, Layout, Links, Locale, Router, Screen, Servers, SessionRef, Sessions, Storage, System, Tabs, Toasts, Ui, Workspaces } from "./host-apis.js";
4
4
  /**
5
5
  * What every window entry gets. Contracts are provided and read at runtime: `ctx.provide` for your own, `ctx.use` for
@@ -252,7 +252,10 @@ export interface Context extends BaseContext {
252
252
  readonly workspaces: Workspaces;
253
253
  }
254
254
  type Handle<S> = S extends StoreDeclaration<infer Schema, infer Scope> ? Scope extends "global" ? Persisted<Schema["Type"], Schema["Type"]> : (session: SessionRef) => Persisted<Schema["Type"]> : never;
255
- /** The context `Plugin.Setup<typeof definition>` receives: the host's members, and the definition's declared stores. */
255
+ /**
256
+ * The context `Plugin.Setup<typeof definition>` receives: the host's members, and the definition's declared stores and
257
+ * icons.
258
+ */
256
259
  export interface SetupContext<D> extends Context {
257
260
  /**
258
261
  * Each declared store, by its name in `stores`. A global store is a `Persisted` that has loaded before setup; a
@@ -267,5 +270,18 @@ export interface SetupContext<D> extends Context {
267
270
  readonly stores: {
268
271
  readonly [K in keyof DeclaredStores<D>]: Handle<DeclaredStores<D>[K]>;
269
272
  };
273
+ /**
274
+ * The name of each declared icon, by its name in `icons`, for every SDK icon field and for `ctx.ui.Icon`. A name the
275
+ * definition does not declare fails to compile. See `PluginIconName`.
276
+ *
277
+ * @example
278
+ * ```tsx
279
+ * ctx.add(TitlebarItem, () => ({ id: "sync", label: ctx.t("sync"), icon: ctx.icons.logo, run: sync }))
280
+ * const mark = <ctx.ui.Icon name={ctx.icons.logo} size="small" />
281
+ * ```
282
+ */
283
+ readonly icons: {
284
+ readonly [K in keyof DeclaredIcons<D>]: PluginIconName;
285
+ };
270
286
  }
271
287
  export {};
@@ -509,6 +509,27 @@ export type Mutable<T> = T extends object ? {
509
509
  export type DeclaredStores<D> = D extends {
510
510
  readonly stores?: infer M;
511
511
  } ? M extends Readonly<Record<string, StoreDeclaration>> ? M : {} : {};
512
+ declare const pluginIcon: unique symbol;
513
+ /**
514
+ * The name of an icon a plugin declared in `Plugin.define({ icons })`, from that plugin's `ctx.icons`. Every SDK icon
515
+ * field and `ctx.ui.Icon` takes it, as they take the name of one of the app's own icons. It is a string,
516
+ * `<plugin id>:<name>`, so the host stores and sends it like any name: a composer note keeps it with the draft and the
517
+ * sent message. Read it from `ctx.icons` where you use it; do not write it by hand. While the plugin that declared the
518
+ * icon is not active, the icon draws nothing and keeps its size.
519
+ *
520
+ * @example
521
+ * ```ts
522
+ * const icon: PluginIconName = ctx.icons.logo
523
+ * ```
524
+ */
525
+ export type PluginIconName = string & {
526
+ /** Marks a name that came from `ctx.icons` at compile time only; never set. */
527
+ readonly [pluginIcon]: true;
528
+ };
529
+ /** The icons a definition declares; `{}` when it declares none. */
530
+ export type DeclaredIcons<D> = D extends {
531
+ readonly icons?: infer M;
532
+ } ? M extends Readonly<Record<string, string>> ? M : {} : {};
512
533
  /**
513
534
  * Defines registries.
514
535
  *
@@ -1,14 +1,16 @@
1
1
  import type { Catalog, OS, StoreDeclaration } from "./core.js";
2
2
  /** The stores a plugin's GUI may declare. */
3
3
  export type Stores = Readonly<Record<string, StoreDeclaration>>;
4
+ /** The icons a plugin's GUI may declare: each icon's SVG document, by the icon's name. */
5
+ export type Icons = Readonly<Record<string, string>>;
4
6
  /**
5
- * What a plugin's GUI declares: its window state, its copy and the systems it runs on. `Plugin.define` returns this
6
- * for a definition without setups, so setups in other files are typed from it (`Plugin.Setup<typeof definition>`).
7
- * The host reads it before any setup runs. The plugin's id is not declared here: the host assigns it (`ctx.id`), from
8
- * the server plugin for a `./gui-experimental` bundle. Contracts are provided and read at runtime, with `ctx.provide`,
9
- * `ctx.use` and `ctx.main`.
7
+ * What a plugin's GUI declares: its window state, its icons, its copy and the systems it runs on. `Plugin.define`
8
+ * returns this for a definition without setups, so setups in other files are typed from it
9
+ * (`Plugin.Setup<typeof definition>`). The host reads it before any setup runs. The plugin's id is not declared here:
10
+ * the host assigns it (`ctx.id`), from the server plugin for a `./gui-experimental` bundle. Contracts are provided and
11
+ * read at runtime, with `ctx.provide`, `ctx.use` and `ctx.main`.
10
12
  */
11
- export interface Declarations<S extends Stores = Stores> {
13
+ export interface Declarations<S extends Stores = Stores, I extends Icons = Icons> {
12
14
  /**
13
15
  * The operating systems the plugin runs on. Omit it to run on every OS. A plugin from the config runs only in the
14
16
  * desktop app; a built-in that lists any OS does not run on the web, where no OS is known.
@@ -21,4 +23,25 @@ export interface Declarations<S extends Stores = Stores> {
21
23
  * at runtime, and every main-process value, go through `ctx.storage.store`.
22
24
  */
23
25
  readonly stores?: S;
26
+ /**
27
+ * The plugin's own icons, by name, for artwork the app's icon catalog does not have. Each value is an SVG document
28
+ * as text, as a design tool exports it; a bundle built with `gui()` imports the file with `?raw`. The host registers
29
+ * them before setup, and `ctx.icons` gives each one's name for every SDK icon field and for `ctx.ui.Icon`. A value
30
+ * that is not an SVG document fails the plugin when it starts.
31
+ * - The document's `viewBox` frames the drawing, else its `width` and `height`. The host scales the drawing to the
32
+ * place that shows it, so draw on the app's 16px grid.
33
+ * - Draw with `currentColor`: the icon takes the color of the place that shows it, such as a pill's `tone`.
34
+ * - A drawing may move with SVG animation elements (`animate`, `animateTransform`). Every place that shows the icon
35
+ * moves in step, and the animation goes on while the host renders that place again. Under the user's reduced
36
+ * motion setting the host holds the icon on its first frame, so make that frame the resting drawing.
37
+ * - An `id` in the drawing is the whole window's; keep it unique, or leave it out.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * import logo from "./logo.svg?raw"
42
+ *
43
+ * export default Plugin.define({ icons: { logo }, setup })
44
+ * ```
45
+ */
46
+ readonly icons?: I;
24
47
  }
@@ -453,7 +453,10 @@ export interface ComposerNote {
453
453
  title?: string;
454
454
  /** Plain-text footer with or without a comment, e.g. `Browser annotation`. Defaults to `label` when omitted. */
455
455
  subtitle?: string;
456
- /** Chip icon. */
456
+ /**
457
+ * Chip icon. The name stays with the draft and the sent message; one of the plugin's own icons draws while the
458
+ * plugin is active.
459
+ */
457
460
  icon: IconName;
458
461
  /** What the comment is about, for the model. Quote untrusted text such as page content. */
459
462
  subject: string;
@@ -490,7 +493,7 @@ export interface ComposerQuote {
490
493
  source: {
491
494
  /** Chip text while the quote has no comment, e.g. `Terminal`. */
492
495
  readonly label: string;
493
- /** Chip icon. */
496
+ /** Chip icon; one of the plugin's own icons draws while the plugin is active. */
494
497
  readonly icon: IconName;
495
498
  /** Where the text came from, for the model, e.g. `the terminal`. Not localized. */
496
499
  readonly subject: string;
@@ -1569,7 +1572,7 @@ export interface Embeds {
1569
1572
  }
1570
1573
  /** Props of `Ui.Icon`. */
1571
1574
  export interface UiIconProps {
1572
- /** The artwork, by its name in the app's icon catalog. */
1575
+ /** The artwork: one of the app's icons by name, or one of the plugin's own from `ctx.icons`. */
1573
1576
  readonly name: IconName;
1574
1577
  /**
1575
1578
  * The icon's size. Defaults to `normal`.
@@ -1922,13 +1925,15 @@ export interface UiSettingsRowProps {
1922
1925
  */
1923
1926
  export interface Ui {
1924
1927
  /**
1925
- * An icon from the app's catalog, the artwork every `icon` field of the SDK names.
1928
+ * An icon, by the name every `icon` field of the SDK takes: one of the app's own icons, or one the plugin declared
1929
+ * in `Plugin.define({ icons })`.
1926
1930
  *
1927
1931
  * @param props - The icon and its size.
1928
1932
  *
1929
1933
  * @example
1930
1934
  * ```tsx
1931
1935
  * <ctx.ui.Icon name="branch" size="small" />
1936
+ * <ctx.ui.Icon name={ctx.icons.logo} size="small" />
1932
1937
  * ```
1933
1938
  */
1934
1939
  Icon(props: UiIconProps): JSX.Element;
@@ -1,2 +1,2 @@
1
- /** An icon from the app's catalog, for SDK fields such as `SessionPanelMenuItem.icon`. */
2
- export type IconName = "align-right" | "appearance" | "archive" | "arrow-down-to-line" | "arrow-left" | "arrow-right" | "arrow-undo-down" | "arrow-up" | "arrow-up-right" | "brain" | "branch" | "branch-out" | "bubble-5" | "bullet-list" | "check" | "check-small" | "checklist" | "chevron-double-right" | "chevron-down" | "chevron-grabber-vertical" | "chevron-left" | "chevron-right" | "circle-ban-sign" | "circle-check" | "circle-exclamation" | "circle-x" | "circle-xmark" | "close" | "close-small" | "cloud-upload" | "code" | "code-lines" | "code-slash" | "collapse" | "comment" | "console" | "copy" | "cube" | "dash" | "discord" | "dot-grid" | "download" | "edit" | "edit-small-2" | "enter" | "expand" | "extensions" | "eye" | "file-document" | "file-tree" | "file-tree-active" | "filetree" | "fill-triangle-down" | "flask" | "folder" | "folder-add-left" | "fork" | "github" | "glasses" | "globe" | "graduation-cap" | "grid-plus" | "help" | "info" | "keyboard" | "layout-bottom" | "layout-bottom-full" | "layout-bottom-partial" | "layout-left" | "layout-left-full" | "layout-left-partial" | "layout-right" | "layout-right-full" | "layout-right-partial" | "link" | "lock" | "magnifying-glass" | "magnifying-glass-menu" | "mcp" | "menu" | "minus" | "models" | "monitor" | "new-session" | "new-session-active" | "notifications" | "open-file" | "outline-arrow-left" | "outline-arrow-right" | "outline-arrow-to-corner-top-right" | "outline-arrow-up-right" | "outline-audio" | "outline-brain" | "outline-browser-annotate" | "outline-chevron-down" | "outline-chevron-right" | "outline-code-brackets" | "outline-console" | "outline-cookie" | "outline-copy" | "outline-dots" | "outline-expand" | "outline-eye" | "outline-eye-slash" | "outline-globe" | "outline-globe-plus" | "outline-hexagonal-warning" | "outline-list-changelog" | "outline-magnifier-minus" | "outline-magnifier-plus" | "outline-maximize" | "outline-pair" | "outline-photo" | "outline-quote" | "outline-reset" | "outline-rotate-clockwise" | "outline-share" | "outline-sliders" | "outline-square-arrow" | "outline-steer" | "outline-text" | "outline-trash" | "outline-undo" | "outline-video" | "outline-wave-audio" | "outline-worktree" | "outline-xmark" | "pencil-line" | "photo" | "plus" | "plus-small" | "post-skill" | "prompt" | "providers" | "refresh" | "reset" | "review" | "review-active" | "select-element" | "selector" | "server" | "settings-gear" | "share" | "shield" | "sidebar" | "sidebar-active" | "sliders" | "speech-bubble" | "split" | "square-arrow-top-right" | "status" | "status-active" | "stop" | "task" | "terminal" | "terminal-active" | "text-wrap" | "trash" | "unified" | "warning" | "waveform" | "window-analytics" | "window-cursor" | "workspace" | "workspace-isolated" | "workspace-new" | "xmark-small";
1
+ /** One of the app's own icons, by its name in the app's icon catalog. */
2
+ export type AppIconName = "align-right" | "appearance" | "archive" | "arrow-down-to-line" | "arrow-left" | "arrow-right" | "arrow-undo-down" | "arrow-up" | "arrow-up-right" | "brain" | "branch" | "branch-out" | "bubble-5" | "bullet-list" | "check" | "check-small" | "checklist" | "chevron-double-right" | "chevron-down" | "chevron-grabber-vertical" | "chevron-left" | "chevron-right" | "circle-ban-sign" | "circle-check" | "circle-exclamation" | "circle-x" | "circle-xmark" | "close" | "close-small" | "cloud-upload" | "code" | "code-lines" | "code-slash" | "collapse" | "comment" | "console" | "copy" | "cube" | "dash" | "discord" | "dot-grid" | "download" | "edit" | "edit-small-2" | "enter" | "expand" | "extensions" | "eye" | "file-document" | "file-tree" | "file-tree-active" | "filetree" | "fill-triangle-down" | "flask" | "folder" | "folder-add-left" | "fork" | "github" | "glasses" | "globe" | "graduation-cap" | "grid-plus" | "help" | "info" | "keyboard" | "layout-bottom" | "layout-bottom-full" | "layout-bottom-partial" | "layout-left" | "layout-left-full" | "layout-left-partial" | "layout-right" | "layout-right-full" | "layout-right-partial" | "link" | "lock" | "magnifying-glass" | "magnifying-glass-menu" | "mcp" | "menu" | "minus" | "models" | "monitor" | "new-session" | "new-session-active" | "notifications" | "open-file" | "outline-arrow-left" | "outline-arrow-right" | "outline-arrow-to-corner-top-right" | "outline-arrow-up-right" | "outline-audio" | "outline-brain" | "outline-browser-annotate" | "outline-chevron-down" | "outline-chevron-right" | "outline-code-brackets" | "outline-console" | "outline-cookie" | "outline-copy" | "outline-dots" | "outline-expand" | "outline-eye" | "outline-eye-slash" | "outline-globe" | "outline-globe-plus" | "outline-hexagonal-warning" | "outline-list-changelog" | "outline-magnifier-minus" | "outline-magnifier-plus" | "outline-maximize" | "outline-photo" | "outline-quote" | "outline-reset" | "outline-rotate-clockwise" | "outline-share" | "outline-sliders" | "outline-square-arrow" | "outline-text" | "outline-trash" | "outline-undo" | "outline-video" | "outline-wave-audio" | "outline-worktree" | "outline-xmark" | "pencil-line" | "photo" | "plus" | "plus-small" | "post-skill" | "prompt" | "providers" | "refresh" | "reset" | "review" | "review-active" | "select-element" | "selector" | "server" | "settings-gear" | "share" | "shield" | "sidebar" | "sidebar-active" | "sliders" | "speech-bubble" | "split" | "square-arrow-top-right" | "status" | "status-active" | "stop" | "task" | "terminal" | "terminal-active" | "text-wrap" | "trash" | "unified" | "warning" | "waveform" | "window-analytics" | "window-cursor" | "workspace" | "workspace-isolated" | "workspace-new" | "xmark-small";
@@ -1,14 +1,14 @@
1
1
  import type { SetupContext } from "./context.js";
2
2
  import type { Cleanup } from "./core.js";
3
- import type { Declarations, Stores } from "./declarations.js";
3
+ import type { Declarations, Icons, Stores } from "./declarations.js";
4
4
  import type { MainContext } from "./main.js";
5
5
  export type { Cleanup, Declarations };
6
6
  /**
7
7
  * A window setup: the `setup` of `Plugin.define`. `Plugin.Setup<typeof definition>` types one written apart from
8
- * its declarations, with `ctx.stores` from the declared stores. Runs synchronously under the plugin's Solid owner;
9
- * return nothing, or a cleanup that runs when the plugin goes away. Put async work in `createKeyed` or
10
- * `createLatest`, and pass `ctx.signal` or a signal derived from it. The return type rejects async functions and
11
- * replacement values; the host also rejects thenables from JavaScript bundles.
8
+ * its declarations, with `ctx.stores` and `ctx.icons` from the declared stores and icons. Runs synchronously under the
9
+ * plugin's Solid owner; return nothing, or a cleanup that runs when the plugin goes away. Put async work in
10
+ * `createKeyed` or `createLatest`, and pass `ctx.signal` or a signal derived from it. The return type rejects async
11
+ * functions and replacement values; the host also rejects thenables from JavaScript bundles.
12
12
  *
13
13
  * @param ctx - The plugin's context, under its Solid owner.
14
14
  *
@@ -21,7 +21,7 @@ export type { Cleanup, Declarations };
21
21
  * })
22
22
  * ```
23
23
  */
24
- export type Setup<D extends Declarations = Declarations<{}>> = (ctx: SetupContext<D>) => Cleanup | void;
24
+ export type Setup<D extends Declarations = Declarations<{}, {}>> = (ctx: SetupContext<D>) => Cleanup | void;
25
25
  /**
26
26
  * A main-process setup: the `main` of `Plugin.define`. It may be async; return nothing, or a cleanup that runs when
27
27
  * the plugin goes away.
@@ -43,16 +43,17 @@ export type MainSetup = (ctx: MainContext) => Cleanup | void | Promise<Cleanup |
43
43
  * A plugin's GUI: the default export of its `./gui-experimental` bundle. Its `Declarations`, then a window setup, a
44
44
  * main-process setup, or both. The app's built-in plugins declare with it too.
45
45
  */
46
- export type Definition<S extends Stores = Stores> = Declarations<S> & {
46
+ export type Definition<S extends Stores = Stores, I extends Icons = Icons> = Declarations<S, I> & {
47
47
  /** Runs in every desktop app window. See `Setup`. */
48
- readonly setup?: Setup<NoInfer<Declarations<S>>>;
48
+ readonly setup?: Setup<NoInfer<Declarations<S, I>>>;
49
49
  /** Runs once in the desktop app's main process. See `MainSetup`. */
50
50
  readonly main?: MainSetup;
51
51
  };
52
52
  /**
53
53
  * Defines a plugin's GUI, the default export of its `./gui-experimental` bundle, as `Plugin.define` from
54
54
  * `@opencode/plugin` and `@opencode/plugin/tui` define its server and terminal halves. It declares no id: the host
55
- * assigns the server plugin's (`ctx.id`). The window setup's `ctx.stores` is typed from the declared stores.
55
+ * assigns the server plugin's (`ctx.id`). The window setup's `ctx.stores` and `ctx.icons` are typed from the declared
56
+ * stores and icons.
56
57
  *
57
58
  * @param plugin - The declarations and at least one setup.
58
59
  * @returns The same object.
@@ -69,7 +70,7 @@ export type Definition<S extends Stores = Stores> = Declarations<S> & {
69
70
  * })
70
71
  * ```
71
72
  */
72
- export declare function define<const S extends Stores = {}>(plugin: Definition<S> & WithSetup): Definition<S>;
73
+ export declare function define<const S extends Stores = {}, const I extends Icons = {}>(plugin: Definition<S, I> & WithSetup): Definition<S, I>;
73
74
  /**
74
75
  * Declares a plugin's GUI without setups, so setups written in other files are typed from it
75
76
  * (`Plugin.Setup<typeof definition>`) and the app's host lists can attach their own entries. Returns only the
@@ -78,7 +79,7 @@ export declare function define<const S extends Stores = {}>(plugin: Definition<S
78
79
  * @param plugin - The declarations.
79
80
  * @returns The same object.
80
81
  */
81
- export declare function define<const S extends Stores = {}>(plugin: Declarations<S>): Declarations<S>;
82
+ export declare function define<const S extends Stores = {}, const I extends Icons = {}>(plugin: Declarations<S, I>): Declarations<S, I>;
82
83
  type WithSetup = {
83
84
  readonly setup: unknown;
84
85
  } | {
@@ -1,9 +1,24 @@
1
1
  import type { JSX } from "solid-js";
2
- import type { IconName } from "./icon-name.js";
3
- import { Registry } from "./core.js";
2
+ import type { AppIconName } from "./icon-name.js";
3
+ import { Registry, type PluginIconName } from "./core.js";
4
4
  import type { SessionRef, MountedSession, SessionScreen } from "./host-apis.js";
5
- /** The name of a shared icon; derived from the dependency-free UI artwork catalog, not a component's props. */
6
- export type { IconName };
5
+ /**
6
+ * The name of one of the app's own icons; derived from the dependency-free UI artwork catalog, not a component's
7
+ * props.
8
+ */
9
+ export type { AppIconName };
10
+ /**
11
+ * The icon an SDK field or `ctx.ui.Icon` shows, by name: one of the app's own icons, or one the plugin declared in
12
+ * `Plugin.define({ icons })`, from its `ctx.icons`. Any other string fails to compile.
13
+ * - `AppIconName`: the app's artwork, such as `"folder"`.
14
+ * - `PluginIconName`: a plugin's artwork, such as `ctx.icons.logo`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const icon: IconName = connected() ? ctx.icons.logo : "circle-exclamation"
19
+ * ```
20
+ */
21
+ export type IconName = AppIconName | PluginIconName;
7
22
  /**
8
23
  * A command in the palette, with an optional keybind and slash command. The host publishes it as
9
24
  * `${plugin}.${id}`. Read the title from a getter so it follows the locale.
@@ -616,8 +631,8 @@ export interface ComposerPillView {
616
631
  /** Colors the capsule's icon. */
617
632
  readonly tone?: ComposerPillTone;
618
633
  /**
619
- * Accessible name, and the heading of the menu or popover the pill opens, when it differs from `label`. The heading
620
- * wraps to at most three lines, then truncates.
634
+ * Accessible name, and the heading of the menu of `rows`, when it differs from `label`. The heading wraps to at most
635
+ * three lines, then truncates. A pill's own popover (`menu`) has no heading; it takes this as its accessible name.
621
636
  */
622
637
  readonly title?: string;
623
638
  /** The menu the pill opens. Omit it for a pill that runs `run` instead. Unused when the pill has a `menu`. */
@@ -644,9 +659,10 @@ export interface ComposerPill {
644
659
  show(input: ComposerPillProps): ComposerPillView | undefined;
645
660
  /**
646
661
  * Your content for the popover the pill opens, for a pill that needs more than `rows`, such as status text and
647
- * buttons. The host owns the capsule and the popover around this content: its placement, focus, dismissal, and the
648
- * heading (`title`, else `label`). When set, clicking the pill opens the popover, and the view's `rows` and `run` are
649
- * unused. Renders each time the popover opens; its own reactivity updates it while open, also when another session is
662
+ * buttons. The host owns the capsule and the popover's frame: its width, a 4px inset, placement, focus and dismissal.
663
+ * Everything inside is yours, including any heading; the view's `title`, else `label`, names the popover for
664
+ * assistive technology. When set, clicking the pill opens the popover, and the view's `rows` and `run` are unused.
665
+ * Renders each time the popover opens; its own reactivity updates it while open, also when another session is
650
666
  * routed. A render that throws renders nothing and records the error.
651
667
  *
652
668
  * @param input - The session, its screen, and `close`. Do not destructure.
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-1310",
4
+ "version": "0.0.0-dev-1311",
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-1310",
82
- "@opencode/client": "0.0.0-dev-1310",
83
- "@opencode/protocol": "0.0.0-dev-1310",
84
- "@opencode/schema": "0.0.0-dev-1310",
85
- "@opencode/util": "0.0.0-dev-1310",
81
+ "@opencode/ai": "0.0.0-dev-1311",
82
+ "@opencode/client": "0.0.0-dev-1311",
83
+ "@opencode/protocol": "0.0.0-dev-1311",
84
+ "@opencode/schema": "0.0.0-dev-1311",
85
+ "@opencode/util": "0.0.0-dev-1311",
86
86
  "effect": "4.1.0"
87
87
  },
88
88
  "peerDependencies": {
89
- "@opencode/theme": "0.0.0-dev-1310",
89
+ "@opencode/theme": "0.0.0-dev-1311",
90
90
  "@opentui/core": ">=0.8.4",
91
91
  "@opentui/solid": ">=0.8.4",
92
92
  "electron": "*",
@@ -118,7 +118,7 @@
118
118
  }
119
119
  },
120
120
  "devDependencies": {
121
- "@opencode/theme": "0.0.0-dev-1310",
121
+ "@opencode/theme": "0.0.0-dev-1311",
122
122
  "@opentui/core": "0.8.4",
123
123
  "@opentui/solid": "0.8.4",
124
124
  "@tsconfig/bun": "1.0.9",