@mcp-com-ai/hapi 1.0.1-beta.260912 → 1.0.2-beta.260914

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.
@@ -0,0 +1,20 @@
1
+ export interface ManagedPluginStore {
2
+ root: string;
3
+ nodeModules: string;
4
+ manifest: string;
5
+ }
6
+ export interface ManagedPluginInstallResult {
7
+ packageNames: string[];
8
+ store: ManagedPluginStore;
9
+ }
10
+ export declare function managedPluginStore(): ManagedPluginStore;
11
+ export declare function isSafePackageName(value: string): boolean;
12
+ export declare function resolveManagedPluginEntrypoint(packageName: string, store?: ManagedPluginStore): Promise<string | undefined>;
13
+ export declare function installManagedPlugins(specifiers: readonly string[], options?: {
14
+ store?: ManagedPluginStore;
15
+ execute?: (command: string, args: string[], cwd: string) => Promise<void>;
16
+ }): Promise<ManagedPluginInstallResult>;
17
+ export declare function removeManagedPlugin(packageName: string, options?: {
18
+ store?: ManagedPluginStore;
19
+ execute?: (command: string, args: string[], cwd: string) => Promise<void>;
20
+ }): Promise<void>;
@@ -11,5 +11,7 @@ export interface LoadPluginsOptions {
11
11
  workspacePackages?: readonly string[];
12
12
  /** Warn to this sink on version mismatches. */
13
13
  warn?: (msg: string) => void;
14
+ /** Test seam for resolving an explicit managed package entrypoint. */
15
+ resolveManagedEntrypoint?: (packageName: string) => Promise<string | undefined>;
14
16
  }
15
17
  export declare function loadInstalledPlugins(options?: LoadPluginsOptions): Promise<LoadedPlugin[]>;
@@ -27,5 +27,5 @@ export interface KnownOptionalPlugin {
27
27
  export interface LoadedPlugin {
28
28
  plugin: HapiCliPlugin;
29
29
  packageName: string;
30
- source: 'built-in' | 'bundled' | 'workspace' | 'installed';
30
+ source: 'built-in' | 'bundled' | 'workspace' | 'installed' | 'managed';
31
31
  }
package/dist/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export interface RunCliOptions {
9
9
  workspacePackages?: readonly string[];
10
10
  /** Plugins statically linked into a standalone binary or container image. */
11
11
  bundledPlugins?: readonly HapiCliPlugin[];
12
+ /** Additional plugins to refuse for this invocation (primarily test isolation). */
13
+ pluginsDisabled?: readonly string[];
12
14
  /** Override streams for tests. */
13
15
  stdout?: CliContext['stdout'];
14
16
  stderr?: CliContext['stderr'];