@openacp/plugin-sdk 2026.327.3 → 2026.328.2

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/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type { OpenACPPlugin, PluginContext, PluginPermission, PluginStorage, InstallContext, MigrateContext, TerminalIO, SettingsAPI, } from '@openacp/cli';
2
2
  export type { CommandDef, CommandArgs, CommandResponse, MenuOption, ListItem, } from '@openacp/cli';
3
- export type { SecurityService, FileServiceInterface, NotificationService, UsageService, SpeechServiceInterface, TunnelServiceInterface, ContextService, } from '@openacp/cli';
3
+ export type { SecurityService, FileServiceInterface, NotificationService, UsageService, TunnelServiceInterface, ContextService, } from '@openacp/cli';
4
+ export type { TTSProvider, TTSOptions, TTSResult, STTProvider, STTOptions, STTResult, SpeechServiceInterface, } from './speech-types.js';
4
5
  export type { IChannelAdapter, AdapterCapabilities, OutgoingMessage, PermissionRequest, PermissionOption, NotificationMessage, AgentCommand, MessagingAdapterConfig, IRenderer, RenderedMessage, } from '@openacp/cli';
5
6
  export { MessagingAdapter, StreamAdapter, BaseRenderer } from '@openacp/cli';
6
7
  export { SendQueue, DraftManager, ToolCallTracker, ActivityTracker } from '@openacp/cli';
@@ -0,0 +1,36 @@
1
+ export interface TTSOptions {
2
+ language?: string;
3
+ voice?: string;
4
+ model?: string;
5
+ }
6
+ export interface TTSResult {
7
+ audioBuffer: Buffer;
8
+ mimeType: string;
9
+ }
10
+ export interface STTOptions {
11
+ language?: string;
12
+ model?: string;
13
+ }
14
+ export interface STTResult {
15
+ text: string;
16
+ language?: string;
17
+ duration?: number;
18
+ }
19
+ export interface TTSProvider {
20
+ readonly name: string;
21
+ synthesize(text: string, options?: TTSOptions): Promise<TTSResult>;
22
+ }
23
+ export interface STTProvider {
24
+ readonly name: string;
25
+ transcribe(audioBuffer: Buffer, mimeType: string, options?: STTOptions): Promise<STTResult>;
26
+ }
27
+ export interface SpeechServiceInterface {
28
+ registerTTSProvider(name: string, provider: TTSProvider): void;
29
+ unregisterTTSProvider(name: string): void;
30
+ registerSTTProvider(name: string, provider: STTProvider): void;
31
+ unregisterSTTProvider?(name: string): void;
32
+ isTTSAvailable(): boolean;
33
+ isSTTAvailable(): boolean;
34
+ synthesize(text: string, options?: TTSOptions): Promise<TTSResult>;
35
+ transcribe(audioBuffer: Buffer, mimeType: string, options?: STTOptions): Promise<STTResult>;
36
+ }
@@ -0,0 +1,4 @@
1
+ // Speech provider types for use by OpenACP plugins.
2
+ // These are stable interfaces that plugins can rely on without depending
3
+ // on @openacp/cli internals.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openacp/plugin-sdk",
3
- "version": "2026.0327.3",
3
+ "version": "2026.328.2",
4
4
  "description": "SDK for building OpenACP plugins — types, base classes, and testing utilities",
5
5
  "type": "module",
6
6
  "exports": {