@ycodium-ai/plugin-api 0.2.5877 → 0.2.5891

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/README.md CHANGED
@@ -670,7 +670,9 @@ No thread, timeout, interruption or restart cancels the call. Guard callbacks st
670
670
 
671
671
  <!-- plugin-api-versions:start (generated by scripts/gen-plugin-api-version.ts from packages/plugin-api/version-history.json; edit that file) -->
672
672
 
673
- The current API is **184**. This Ycodium loads plugins declaring 183 through 184.
673
+ The current API is **185**. This Ycodium loads plugins declaring 183 through 185.
674
+
675
+ API 185 adds optional `asset` opening on `ctx.threads.browser.open()`, optional `audible` and `audioMuted` fields on browser snapshots and live state, and operator-only `ctx.threads.browser.setAudioMuted()`.
674
676
 
675
677
  API 184 adds optional `ConversationComposerProps.onOpenProviderSettings` for jumping to provider settings from the composer empty state, optional `sandboxed` on `status: "ready"` of `machineSettings.browser.runtime.*`, and additional shared `PLUGIN_HOST_UI` host controls (`Checkbox`, `FormDialog`, `ConfirmDialog`, `NumberField*`, `DiffStat`, `SplitButton`, `MachineSelect`, `ProviderName`)
676
678
 
@@ -2232,6 +2232,8 @@ type Objects_7 = {
2232
2232
  readonly "recording"?: Objects_5 | undefined;
2233
2233
  readonly "viewportSetting"?: Union_1 | undefined;
2234
2234
  readonly "zoomFactor"?: 0.25 | 0.33 | 0.5 | 0.67 | 0.75 | 0.8 | 0.9 | 1 | 1.1 | 1.25 | 1.5 | 1.75 | 2 | 2.5 | 3 | 4 | 5 | undefined;
2235
+ readonly "audible"?: boolean | undefined;
2236
+ readonly "audioMuted"?: boolean | undefined;
2235
2237
  readonly "downloads"?: ReadonlyArray<{
2236
2238
  readonly "id": string;
2237
2239
  readonly "fileName": string;
@@ -3418,6 +3420,19 @@ export type MachineSettingsBrowserCookiesImportOutput = {
3418
3420
  export type ThreadsBrowserOpenInput = {
3419
3421
  readonly "threadId": string;
3420
3422
  readonly "url"?: string;
3423
+ readonly "asset"?: {
3424
+ readonly "_tag": "workspace-file";
3425
+ readonly "path": string;
3426
+ readonly "cwd"?: string;
3427
+ } | {
3428
+ readonly "_tag": "media-file";
3429
+ readonly "path": string;
3430
+ readonly "cwd"?: string;
3431
+ } | {
3432
+ readonly "_tag": "attachment";
3433
+ readonly "attachmentId": string;
3434
+ readonly "fileName"?: string;
3435
+ };
3421
3436
  readonly "viewport"?: Objects_2 | Objects_3 | Objects_4;
3422
3437
  readonly "profileId"?: string;
3423
3438
  readonly "executionHost"?: "desktop" | "environment";
@@ -3453,6 +3468,8 @@ export type ThreadsBrowserOpenOutput = {
3453
3468
  readonly "capturedAt": number;
3454
3469
  } | undefined;
3455
3470
  readonly "recording"?: Objects_5 | undefined;
3471
+ readonly "audible"?: boolean | undefined;
3472
+ readonly "audioMuted"?: boolean | undefined;
3456
3473
  readonly "updatedAt": string;
3457
3474
  };
3458
3475
  export type ThreadsBrowserStateGetInput = Objects_6;
@@ -3530,6 +3547,9 @@ export type ThreadsBrowserInputInput = {
3530
3547
  readonly "_tag": "clearCookies";
3531
3548
  } | {
3532
3549
  readonly "_tag": "clearCache";
3550
+ } | {
3551
+ readonly "_tag": "setAudioMuted";
3552
+ readonly "muted": boolean;
3533
3553
  } | {
3534
3554
  readonly "_tag": "idle";
3535
3555
  };
@@ -3705,6 +3725,12 @@ export type ThreadsBrowserDownloadCancelInput = {
3705
3725
  export type ThreadsBrowserDownloadCancelOutput = {
3706
3726
  readonly "outcome": "canceled" | "cleared";
3707
3727
  };
3728
+ export type ThreadsBrowserSetAudioMutedInput = {
3729
+ readonly "threadId": string;
3730
+ readonly "tabId": string;
3731
+ readonly "muted": boolean;
3732
+ };
3733
+ export type ThreadsBrowserSetAudioMutedOutput = null;
3708
3734
  export type ProjectsLedgerImportGetInput = Objects_11;
3709
3735
  export type ProjectsLedgerImportGetOutput = {
3710
3736
  readonly "candidate": {
@@ -10315,6 +10341,8 @@ export interface PluginDataPorts {
10315
10341
  readonly downloadUrl: (input: ThreadsBrowserDownloadUrlInput) => Promise<ThreadsBrowserDownloadUrlOutput>;
10316
10342
  /** Data capability: threads.browser.downloadCancel. Plugin admission: {"require":{"kind":"commands.dispatch","commands":["thread.browser.download.cancel"]},"policy":"threads-user-scope"} */
10317
10343
  readonly downloadCancel: (input: ThreadsBrowserDownloadCancelInput) => Promise<ThreadsBrowserDownloadCancelOutput>;
10344
+ /** Data capability: threads.browser.setAudioMuted. Plugin admission: {"restricted":"operator-only"} */
10345
+ readonly setAudioMuted: (input: ThreadsBrowserSetAudioMutedInput) => Promise<ThreadsBrowserSetAudioMutedOutput>;
10318
10346
  };
10319
10347
  /** Data capability: threads.list. Plugin admission: {"require":{"kind":"sessionProjection"}} */
10320
10348
  readonly list: (input: ThreadsListInput) => Promise<ThreadsListOutput>;