@nextclaw/openclaw-compat 0.3.5 → 0.3.6

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 (3) hide show
  1. package/package.json +14 -14
  2. package/dist/index.d.ts +0 -678
  3. package/dist/index.js +0 -2520
package/dist/index.d.ts DELETED
@@ -1,678 +0,0 @@
1
- import * as _nextclaw_core from '@nextclaw/core';
2
- import { Config, ExtensionChannel, AgentEngineFactory } from '@nextclaw/core';
3
- import { NcpAgentRuntime } from '@nextclaw/ncp';
4
- import { RuntimeFactoryParams } from '@nextclaw/ncp-toolkit';
5
-
6
- type PluginConfigUiHint = {
7
- label?: string;
8
- help?: string;
9
- advanced?: boolean;
10
- sensitive?: boolean;
11
- placeholder?: string;
12
- };
13
- type PluginKind = string;
14
- type PluginManifest = {
15
- id: string;
16
- configSchema: Record<string, unknown>;
17
- kind?: PluginKind;
18
- channels?: string[];
19
- providers?: string[];
20
- skills?: string[];
21
- name?: string;
22
- description?: string;
23
- version?: string;
24
- uiHints?: Record<string, PluginConfigUiHint>;
25
- };
26
- type PluginManifestLoadResult = {
27
- ok: true;
28
- manifest: PluginManifest;
29
- manifestPath: string;
30
- } | {
31
- ok: false;
32
- error: string;
33
- manifestPath: string;
34
- };
35
- type OpenClawPluginTool = {
36
- label?: string;
37
- name: string;
38
- description?: string;
39
- parameters: Record<string, unknown>;
40
- execute: ((toolCallId: string, params: Record<string, unknown>) => Promise<unknown> | unknown) | ((params: Record<string, unknown>) => Promise<unknown> | unknown);
41
- };
42
- type OpenClawPluginToolContext = {
43
- config?: Config;
44
- workspaceDir?: string;
45
- sessionKey?: string;
46
- channel?: string;
47
- chatId?: string;
48
- sandboxed?: boolean;
49
- };
50
- type OpenClawPluginToolFactory = (ctx: OpenClawPluginToolContext) => OpenClawPluginTool | OpenClawPluginTool[] | null | undefined;
51
- type OpenClawPluginToolOptions = {
52
- name?: string;
53
- names?: string[];
54
- optional?: boolean;
55
- };
56
- type OpenClawPluginEngineOptions = {
57
- kind: string;
58
- };
59
- type OpenClawPluginNcpAgentRuntimeRegistration = {
60
- kind: string;
61
- label?: string;
62
- createRuntime: (params: RuntimeFactoryParams) => NcpAgentRuntime;
63
- };
64
- type OpenClawProviderPlugin = {
65
- id: string;
66
- label?: string;
67
- docsPath?: string;
68
- aliases?: string[];
69
- envVars?: string[];
70
- models?: Record<string, unknown>;
71
- auth?: Array<Record<string, unknown>>;
72
- };
73
- type OpenClawChannelConfigSchema = {
74
- schema: Record<string, unknown>;
75
- uiHints?: Record<string, PluginConfigUiHint>;
76
- };
77
- type OpenClawChannelSetup = {
78
- validateInput?: (params: {
79
- cfg: Record<string, unknown>;
80
- input: unknown;
81
- accountId?: string | null;
82
- }) => string | null;
83
- applyAccountConfig?: (params: {
84
- cfg: Record<string, unknown>;
85
- input: unknown;
86
- accountId?: string | null;
87
- }) => Record<string, unknown>;
88
- };
89
- type OpenClawChannelGatewayStartContext = {
90
- accountId?: string | null;
91
- log?: {
92
- debug?: (message: string) => void;
93
- info?: (message: string) => void;
94
- warn?: (message: string) => void;
95
- error?: (message: string) => void;
96
- };
97
- };
98
- type OpenClawChannelGateway = {
99
- startAccount?: (ctx: OpenClawChannelGatewayStartContext) => Promise<void | {
100
- stop?: () => void | Promise<void>;
101
- }> | void | {
102
- stop?: () => void | Promise<void>;
103
- };
104
- };
105
- type OpenClawChannelConfigAdapter = {
106
- listAccountIds?: (cfg?: Record<string, unknown>) => string[];
107
- defaultAccountId?: (cfg?: Record<string, unknown>) => string;
108
- };
109
- type OpenClawChannelAgentPrompt = {
110
- messageToolHints?: (params: {
111
- cfg: Config;
112
- accountId?: string | null;
113
- }) => string[];
114
- };
115
- type OpenClawChannelPlugin = {
116
- id: string;
117
- meta?: Record<string, unknown>;
118
- capabilities?: Record<string, unknown>;
119
- nextclaw?: ExtensionChannel["nextclaw"];
120
- configSchema?: OpenClawChannelConfigSchema;
121
- config?: OpenClawChannelConfigAdapter;
122
- setup?: OpenClawChannelSetup;
123
- gateway?: OpenClawChannelGateway;
124
- agentTools?: OpenClawPluginTool[] | (() => OpenClawPluginTool | OpenClawPluginTool[] | null | undefined);
125
- agentPrompt?: OpenClawChannelAgentPrompt;
126
- outbound?: {
127
- sendText?: (ctx: {
128
- cfg: Config;
129
- to: string;
130
- text: string;
131
- accountId?: string | null;
132
- }) => Promise<unknown> | unknown;
133
- sendPayload?: (ctx: {
134
- cfg: Config;
135
- to: string;
136
- text: string;
137
- payload: unknown;
138
- accountId?: string | null;
139
- }) => Promise<unknown> | unknown;
140
- };
141
- };
142
- type OpenClawPluginChannelRegistration = OpenClawChannelPlugin | {
143
- plugin: OpenClawChannelPlugin;
144
- };
145
- type OpenClawPluginDefinition = {
146
- id?: string;
147
- name?: string;
148
- description?: string;
149
- version?: string;
150
- kind?: PluginKind;
151
- configSchema?: Record<string, unknown>;
152
- register?: (api: OpenClawPluginApi) => void | Promise<void>;
153
- activate?: (api: OpenClawPluginApi) => void | Promise<void>;
154
- };
155
- type OpenClawPluginModule = OpenClawPluginDefinition | ((api: OpenClawPluginApi) => void | Promise<void>);
156
- type PluginLogger = {
157
- debug?: (message: string) => void;
158
- info: (message: string) => void;
159
- warn: (message: string) => void;
160
- error: (message: string) => void;
161
- };
162
- type PluginOrigin = "bundled" | "global" | "workspace" | "config";
163
- type PluginDiagnostic = {
164
- level: "warn" | "error";
165
- message: string;
166
- pluginId?: string;
167
- source?: string;
168
- };
169
- type PluginRecord = {
170
- id: string;
171
- name: string;
172
- version?: string;
173
- description?: string;
174
- kind?: PluginKind;
175
- source: string;
176
- origin: PluginOrigin;
177
- workspaceDir?: string;
178
- enabled: boolean;
179
- status: "loaded" | "disabled" | "error";
180
- error?: string;
181
- toolNames: string[];
182
- channelIds: string[];
183
- providerIds: string[];
184
- engineKinds: string[];
185
- ncpAgentRuntimeKinds: string[];
186
- configSchema: boolean;
187
- configUiHints?: Record<string, PluginConfigUiHint>;
188
- configJsonSchema?: Record<string, unknown>;
189
- };
190
- type PluginToolRegistration = {
191
- pluginId: string;
192
- factory: OpenClawPluginToolFactory;
193
- names: string[];
194
- optional: boolean;
195
- source: string;
196
- };
197
- type PluginChannelRegistration = {
198
- pluginId: string;
199
- channel: OpenClawChannelPlugin;
200
- source: string;
201
- };
202
- type PluginProviderRegistration = {
203
- pluginId: string;
204
- provider: OpenClawProviderPlugin;
205
- source: string;
206
- };
207
- type PluginEngineRegistration = {
208
- pluginId: string;
209
- kind: string;
210
- factory: AgentEngineFactory;
211
- source: string;
212
- };
213
- type PluginNcpAgentRuntimeRegistration = {
214
- pluginId: string;
215
- kind: string;
216
- label: string;
217
- createRuntime: (params: RuntimeFactoryParams) => NcpAgentRuntime;
218
- source: string;
219
- };
220
- type PluginReplyDispatchParams = {
221
- ctx: {
222
- Body?: string;
223
- BodyForAgent?: string;
224
- BodyForCommands?: string;
225
- ChatType?: string;
226
- SenderId?: string;
227
- SenderName?: string;
228
- SessionKey?: string;
229
- AccountId?: string;
230
- OriginatingChannel?: string;
231
- OriginatingTo?: string;
232
- Provider?: string;
233
- Surface?: string;
234
- [key: string]: unknown;
235
- };
236
- cfg?: unknown;
237
- dispatcherOptions: {
238
- deliver: (replyPayload: {
239
- text?: string;
240
- }, info: {
241
- kind: string;
242
- }) => Promise<void> | void;
243
- onError?: (error: unknown) => void;
244
- };
245
- };
246
- type PluginRuntime = {
247
- version: string;
248
- config: {
249
- loadConfig: () => Record<string, unknown>;
250
- writeConfigFile: (next: Record<string, unknown>) => Promise<void>;
251
- };
252
- tools: {
253
- createMemorySearchTool: (params: {
254
- config?: Config;
255
- agentSessionKey?: string;
256
- }) => OpenClawPluginTool | null;
257
- createMemoryGetTool: (params: {
258
- config?: Config;
259
- agentSessionKey?: string;
260
- }) => OpenClawPluginTool | null;
261
- };
262
- channel: {
263
- reply: {
264
- dispatchReplyWithBufferedBlockDispatcher: (params: PluginReplyDispatchParams) => Promise<void>;
265
- };
266
- };
267
- };
268
- type OpenClawPluginApi = {
269
- id: string;
270
- name: string;
271
- version?: string;
272
- description?: string;
273
- source: string;
274
- config: Config;
275
- pluginConfig?: Record<string, unknown>;
276
- runtime: PluginRuntime;
277
- logger: PluginLogger;
278
- registerTool: (tool: OpenClawPluginTool | OpenClawPluginToolFactory, opts?: OpenClawPluginToolOptions) => void;
279
- registerChannel: (registration: OpenClawPluginChannelRegistration) => void;
280
- registerProvider: (provider: OpenClawProviderPlugin) => void;
281
- registerEngine: (factory: AgentEngineFactory, opts: OpenClawPluginEngineOptions) => void;
282
- registerNcpAgentRuntime: (registration: OpenClawPluginNcpAgentRuntimeRegistration) => void;
283
- registerHook: (_events: string | string[], _handler: unknown, _opts?: unknown) => void;
284
- registerGatewayMethod: (_method: string, _handler: unknown) => void;
285
- registerCli: (_registrar: unknown, _opts?: unknown) => void;
286
- registerService: (_service: unknown) => void;
287
- registerCommand: (_command: unknown) => void;
288
- registerHttpHandler: (_handler: unknown) => void;
289
- registerHttpRoute: (_params: {
290
- path: string;
291
- handler: unknown;
292
- }) => void;
293
- resolvePath: (input: string) => string;
294
- };
295
- type PluginRegistry = {
296
- plugins: PluginRecord[];
297
- tools: PluginToolRegistration[];
298
- channels: PluginChannelRegistration[];
299
- providers: PluginProviderRegistration[];
300
- engines: PluginEngineRegistration[];
301
- ncpAgentRuntimes: PluginNcpAgentRuntimeRegistration[];
302
- diagnostics: PluginDiagnostic[];
303
- resolvedTools: OpenClawPluginTool[];
304
- };
305
- type PluginUiMetadata = {
306
- id: string;
307
- configSchema?: Record<string, unknown>;
308
- configUiHints?: Record<string, PluginConfigUiHint>;
309
- };
310
-
311
- type OpenClawPluginConfigSchema = {
312
- type: "object";
313
- additionalProperties: boolean;
314
- properties: Record<string, unknown>;
315
- };
316
- declare function emptyPluginConfigSchema(): OpenClawPluginConfigSchema;
317
- declare function buildChannelConfigSchema(schema: Record<string, unknown>): Record<string, unknown>;
318
- declare function buildOauthProviderAuthResult(params: {
319
- providerId: string;
320
- defaultModel?: string;
321
- access: string;
322
- refresh?: string;
323
- expires?: string | number;
324
- email?: string;
325
- credentialExtra?: Record<string, unknown>;
326
- notes?: string[];
327
- }): {
328
- profiles: Array<{
329
- profileId: string;
330
- credential: Record<string, unknown>;
331
- }>;
332
- defaultModel?: string;
333
- notes?: string[];
334
- };
335
- declare function sleep(ms: number): Promise<void>;
336
- declare function normalizePluginHttpPath(rawPath: string): string;
337
- declare const DEFAULT_ACCOUNT_ID = "default";
338
- declare function normalizeAccountId(accountId?: string | null): string;
339
- declare function createNextclawBuiltinChannelPlugin(channelId: string): {
340
- id: string;
341
- nextclaw: {
342
- isEnabled: (cfg: _nextclaw_core.Config) => boolean;
343
- createChannel: (ctx: {
344
- config: _nextclaw_core.Config;
345
- bus: _nextclaw_core.MessageBus;
346
- sessionManager?: _nextclaw_core.SessionManager;
347
- }) => unknown;
348
- };
349
- };
350
- declare const __nextclawPluginSdkCompat = true;
351
- type _CompatOnly = OpenClawPluginApi;
352
-
353
- type NormalizedPluginsConfig = {
354
- enabled: boolean;
355
- allow: string[];
356
- deny: string[];
357
- loadPaths: string[];
358
- entries: Record<string, {
359
- enabled?: boolean;
360
- config?: unknown;
361
- }>;
362
- };
363
- declare function normalizePluginsConfig(plugins: Config["plugins"] | undefined): NormalizedPluginsConfig;
364
- declare function resolveEnableState(id: string, config: NormalizedPluginsConfig): {
365
- enabled: boolean;
366
- reason?: string;
367
- };
368
- type PluginInstallSource = "npm" | "archive" | "path";
369
- type PluginInstallUpdate = {
370
- pluginId: string;
371
- source: PluginInstallSource;
372
- spec?: string;
373
- sourcePath?: string;
374
- installPath?: string;
375
- version?: string;
376
- installedAt?: string;
377
- };
378
- declare function recordPluginInstall(config: Config, update: PluginInstallUpdate): Config;
379
- declare function enablePluginInConfig(config: Config, pluginId: string): Config;
380
- declare function disablePluginInConfig(config: Config, pluginId: string): Config;
381
- declare function addPluginLoadPath(config: Config, loadPath: string): Config;
382
-
383
- type PluginChannelBinding = {
384
- pluginId: string;
385
- channelId: string;
386
- channel: OpenClawChannelPlugin;
387
- };
388
- type PluginChannelGatewayHandle = {
389
- pluginId: string;
390
- channelId: string;
391
- accountId: string;
392
- stop?: () => void | Promise<void>;
393
- };
394
- declare function getPluginChannelBindings(registry: PluginRegistry): PluginChannelBinding[];
395
- declare function resolvePluginChannelMessageToolHints(params: {
396
- registry: PluginRegistry;
397
- channel?: string | null;
398
- cfg?: Config;
399
- accountId?: string | null;
400
- }): string[];
401
- declare function getPluginUiMetadataFromRegistry(registry: PluginRegistry): PluginUiMetadata[];
402
- declare function startPluginChannelGateways(params: {
403
- registry: PluginRegistry;
404
- logger?: PluginLogger;
405
- }): Promise<{
406
- handles: PluginChannelGatewayHandle[];
407
- diagnostics: PluginDiagnostic[];
408
- }>;
409
- declare function stopPluginChannelGateways(handles: PluginChannelGatewayHandle[]): Promise<void>;
410
-
411
- type PluginCandidate = {
412
- idHint: string;
413
- source: string;
414
- rootDir: string;
415
- origin: PluginOrigin;
416
- workspaceDir?: string;
417
- packageName?: string;
418
- packageVersion?: string;
419
- packageDescription?: string;
420
- packageDir?: string;
421
- };
422
- type PluginDiscoveryResult = {
423
- candidates: PluginCandidate[];
424
- diagnostics: PluginDiagnostic[];
425
- };
426
- declare function discoverOpenClawPlugins(params: {
427
- config?: Config;
428
- workspaceDir?: string;
429
- extraPaths?: string[];
430
- }): PluginDiscoveryResult;
431
-
432
- type PluginInstallLogger = {
433
- info?: (message: string) => void;
434
- warn?: (message: string) => void;
435
- };
436
- type InstallPluginResult = {
437
- ok: true;
438
- pluginId: string;
439
- targetDir: string;
440
- manifestName?: string;
441
- version?: string;
442
- extensions: string[];
443
- } | {
444
- ok: false;
445
- error: string;
446
- };
447
- declare function resolvePluginInstallDir(pluginId: string, extensionsDir?: string): string;
448
- declare function installPluginFromArchive(params: {
449
- archivePath: string;
450
- extensionsDir?: string;
451
- logger?: PluginInstallLogger;
452
- mode?: "install" | "update";
453
- dryRun?: boolean;
454
- expectedPluginId?: string;
455
- }): Promise<InstallPluginResult>;
456
- declare function installPluginFromDir(params: {
457
- dirPath: string;
458
- extensionsDir?: string;
459
- logger?: PluginInstallLogger;
460
- mode?: "install" | "update";
461
- dryRun?: boolean;
462
- expectedPluginId?: string;
463
- }): Promise<InstallPluginResult>;
464
- declare function installPluginFromFile(params: {
465
- filePath: string;
466
- extensionsDir?: string;
467
- logger?: PluginInstallLogger;
468
- mode?: "install" | "update";
469
- dryRun?: boolean;
470
- }): Promise<InstallPluginResult>;
471
- declare function installPluginFromNpmSpec(params: {
472
- spec: string;
473
- extensionsDir?: string;
474
- logger?: PluginInstallLogger;
475
- mode?: "install" | "update";
476
- dryRun?: boolean;
477
- expectedPluginId?: string;
478
- }): Promise<InstallPluginResult>;
479
- declare function installPluginFromPath(params: {
480
- path: string;
481
- extensionsDir?: string;
482
- logger?: PluginInstallLogger;
483
- mode?: "install" | "update";
484
- dryRun?: boolean;
485
- expectedPluginId?: string;
486
- }): Promise<InstallPluginResult>;
487
-
488
- type PluginLoadOptions = {
489
- config: Config;
490
- workspaceDir?: string;
491
- logger?: PluginLogger;
492
- mode?: "full" | "validate";
493
- excludeRoots?: string[];
494
- reservedToolNames?: string[];
495
- reservedChannelIds?: string[];
496
- reservedProviderIds?: string[];
497
- reservedEngineKinds?: string[];
498
- reservedNcpAgentRuntimeKinds?: string[];
499
- };
500
- declare function buildPluginLoaderAliases(): Record<string, string>;
501
- declare function loadOpenClawPlugins(options: PluginLoadOptions): PluginRegistry;
502
-
503
- type PluginManifestRecord = {
504
- id: string;
505
- name?: string;
506
- description?: string;
507
- version?: string;
508
- kind?: PluginKind;
509
- channels: string[];
510
- providers: string[];
511
- skills: string[];
512
- origin: PluginOrigin;
513
- workspaceDir?: string;
514
- rootDir: string;
515
- source: string;
516
- manifestPath: string;
517
- schemaCacheKey?: string;
518
- configSchema?: Record<string, unknown>;
519
- configUiHints?: Record<string, PluginConfigUiHint>;
520
- };
521
- type PluginManifestRegistry = {
522
- plugins: PluginManifestRecord[];
523
- diagnostics: PluginDiagnostic[];
524
- };
525
- declare function loadPluginManifestRegistry(params: {
526
- config?: Config;
527
- workspaceDir?: string;
528
- candidates?: PluginCandidate[];
529
- diagnostics?: PluginDiagnostic[];
530
- }): PluginManifestRegistry;
531
- declare function toPluginUiMetadata(records: PluginManifestRecord[]): PluginUiMetadata[];
532
- declare function loadPluginUiMetadata(params: {
533
- config?: Config;
534
- workspaceDir?: string;
535
- }): PluginUiMetadata[];
536
-
537
- declare const PLUGIN_MANIFEST_FILENAME = "openclaw.plugin.json";
538
- declare const PLUGIN_MANIFEST_FILENAMES: readonly ["openclaw.plugin.json"];
539
- declare function resolvePluginManifestPath(rootDir: string): string;
540
- declare function loadPluginManifest(rootDir: string): PluginManifestLoadResult;
541
- type OpenClawPackageManifest = {
542
- extensions?: string[];
543
- install?: {
544
- npmSpec?: string;
545
- localPath?: string;
546
- defaultChoice?: "npm" | "local";
547
- };
548
- };
549
- type PackageManifest = {
550
- name?: string;
551
- version?: string;
552
- description?: string;
553
- openclaw?: OpenClawPackageManifest;
554
- };
555
- declare function getPackageManifestMetadata(manifest: PackageManifest | undefined): OpenClawPackageManifest | undefined;
556
-
557
- type PluginRuntimeBridge = {
558
- loadConfig?: () => Record<string, unknown>;
559
- writeConfigFile?: (next: Record<string, unknown>) => Promise<void>;
560
- dispatchReplyWithBufferedBlockDispatcher?: (params: PluginReplyDispatchParams) => Promise<void>;
561
- };
562
- declare function setPluginRuntimeBridge(next: PluginRuntimeBridge | null): void;
563
- declare function createPluginRuntime(params: {
564
- workspace: string;
565
- config?: Config;
566
- }): PluginRuntime;
567
-
568
- type PluginRegisterRuntime = {
569
- config: Config;
570
- workspaceDir: string;
571
- logger: PluginLogger;
572
- registry: PluginRegistry;
573
- toolNameOwners: Map<string, string>;
574
- channelIdOwners: Map<string, string>;
575
- providerIdOwners: Map<string, string>;
576
- engineKindOwners: Map<string, string>;
577
- ncpAgentRuntimeKindOwners: Map<string, string>;
578
- resolvedToolNames: Set<string>;
579
- reservedToolNames: Set<string>;
580
- reservedChannelIds: Set<string>;
581
- reservedProviderIds: Set<string>;
582
- reservedEngineKinds: Set<string>;
583
- reservedNcpAgentRuntimeKinds: Set<string>;
584
- };
585
- declare function createPluginRegisterRuntime(params: {
586
- config: Config;
587
- workspaceDir: string;
588
- logger: PluginLogger;
589
- registry: PluginRegistry;
590
- reservedToolNames: Set<string>;
591
- reservedChannelIds: Set<string>;
592
- reservedProviderIds: Set<string>;
593
- reservedEngineKinds: Set<string>;
594
- reservedNcpAgentRuntimeKinds: Set<string>;
595
- }): PluginRegisterRuntime;
596
- declare function registerPluginWithApi(params: {
597
- runtime: PluginRegisterRuntime;
598
- record: PluginRecord;
599
- pluginId: string;
600
- source: string;
601
- rootDir: string;
602
- register: (api: OpenClawPluginApi) => void | Promise<void>;
603
- pluginConfig?: Record<string, unknown>;
604
- }): {
605
- ok: true;
606
- } | {
607
- ok: false;
608
- error: string;
609
- };
610
-
611
- declare function validateJsonSchemaValue(params: {
612
- schema: Record<string, unknown>;
613
- cacheKey: string;
614
- value: unknown;
615
- }): {
616
- ok: true;
617
- } | {
618
- ok: false;
619
- errors: string[];
620
- };
621
-
622
- type PluginStatusReport = PluginRegistry & {
623
- workspaceDir: string;
624
- };
625
- declare function buildPluginStatusReport(params: {
626
- config: Config;
627
- workspaceDir?: string;
628
- logger?: PluginLogger;
629
- reservedToolNames?: string[];
630
- reservedChannelIds?: string[];
631
- reservedProviderIds?: string[];
632
- reservedEngineKinds?: string[];
633
- reservedNcpAgentRuntimeKinds?: string[];
634
- }): PluginStatusReport;
635
-
636
- type UninstallActions = {
637
- entry: boolean;
638
- install: boolean;
639
- allowlist: boolean;
640
- loadPath: boolean;
641
- directory: boolean;
642
- };
643
- type PluginInstallRecord = NonNullable<Config["plugins"]["installs"]>[string];
644
- type UninstallPluginResult = {
645
- ok: true;
646
- config: Config;
647
- pluginId: string;
648
- actions: UninstallActions;
649
- warnings: string[];
650
- } | {
651
- ok: false;
652
- error: string;
653
- };
654
- declare function resolveUninstallDirectoryTarget(params: {
655
- pluginId: string;
656
- hasInstall: boolean;
657
- installRecord?: PluginInstallRecord;
658
- extensionsDir?: string;
659
- }): string | null;
660
- declare function resolveUninstallDirectoryTargets(params: {
661
- config: Config;
662
- pluginId: string;
663
- hasInstall: boolean;
664
- installRecord?: PluginInstallRecord;
665
- extensionsDir?: string;
666
- }): string[];
667
- declare function removePluginFromConfig(config: Config, pluginId: string): {
668
- config: Config;
669
- actions: Omit<UninstallActions, "directory">;
670
- };
671
- declare function uninstallPlugin(params: {
672
- config: Config;
673
- pluginId: string;
674
- deleteFiles?: boolean;
675
- extensionsDir?: string;
676
- }): Promise<UninstallPluginResult>;
677
-
678
- export { DEFAULT_ACCOUNT_ID, type InstallPluginResult, type NormalizedPluginsConfig, type OpenClawChannelAgentPrompt, type OpenClawChannelConfigAdapter, type OpenClawChannelConfigSchema, type OpenClawChannelGateway, type OpenClawChannelGatewayStartContext, type OpenClawChannelPlugin, type OpenClawChannelSetup, type OpenClawPluginApi, type OpenClawPluginChannelRegistration, type OpenClawPluginConfigSchema, type OpenClawPluginDefinition, type OpenClawPluginEngineOptions, type OpenClawPluginModule, type OpenClawPluginNcpAgentRuntimeRegistration, type OpenClawPluginTool, type OpenClawPluginToolContext, type OpenClawPluginToolFactory, type OpenClawPluginToolOptions, type OpenClawProviderPlugin, PLUGIN_MANIFEST_FILENAME, PLUGIN_MANIFEST_FILENAMES, type PackageManifest, type PluginCandidate, type PluginChannelBinding, type PluginChannelGatewayHandle, type PluginChannelRegistration, type PluginConfigUiHint, type PluginDiagnostic, type PluginDiscoveryResult, type PluginEngineRegistration, type PluginInstallLogger, type PluginInstallSource, type PluginInstallUpdate, type PluginKind, type PluginLoadOptions, type PluginLogger, type PluginManifest, type PluginManifestLoadResult, type PluginManifestRecord, type PluginManifestRegistry, type PluginNcpAgentRuntimeRegistration, type PluginOrigin, type PluginProviderRegistration, type PluginRecord, type PluginRegisterRuntime, type PluginRegistry, type PluginReplyDispatchParams, type PluginRuntime, type PluginRuntimeBridge, type PluginStatusReport, type PluginToolRegistration, type PluginUiMetadata, type UninstallActions, type UninstallPluginResult, type _CompatOnly, __nextclawPluginSdkCompat, addPluginLoadPath, buildChannelConfigSchema, buildOauthProviderAuthResult, buildPluginLoaderAliases, buildPluginStatusReport, createNextclawBuiltinChannelPlugin, createPluginRegisterRuntime, createPluginRuntime, disablePluginInConfig, discoverOpenClawPlugins, emptyPluginConfigSchema, enablePluginInConfig, getPackageManifestMetadata, getPluginChannelBindings, getPluginUiMetadataFromRegistry, installPluginFromArchive, installPluginFromDir, installPluginFromFile, installPluginFromNpmSpec, installPluginFromPath, loadOpenClawPlugins, loadPluginManifest, loadPluginManifestRegistry, loadPluginUiMetadata, normalizeAccountId, normalizePluginHttpPath, normalizePluginsConfig, recordPluginInstall, registerPluginWithApi, removePluginFromConfig, resolveEnableState, resolvePluginChannelMessageToolHints, resolvePluginInstallDir, resolvePluginManifestPath, resolveUninstallDirectoryTarget, resolveUninstallDirectoryTargets, setPluginRuntimeBridge, sleep, startPluginChannelGateways, stopPluginChannelGateways, toPluginUiMetadata, uninstallPlugin, validateJsonSchemaValue };