@vellumai/plugin-api 0.10.1-dev.202606241257.d4f0dcf → 0.10.1-dev.202606241326.555a2dc
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/index.d.ts +3 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2694,15 +2694,13 @@ declare interface PlatformDisconnected {
|
|
|
2694
2694
|
export declare type PluginHookFn<TCtx = unknown> = (ctx: TCtx) => Promise<Partial<TCtx> | void>;
|
|
2695
2695
|
|
|
2696
2696
|
/**
|
|
2697
|
-
* Context passed to `Plugin.init()` during bootstrap. Carries resolved
|
|
2698
|
-
* config
|
|
2699
|
-
*
|
|
2697
|
+
* Context passed to `Plugin.init()` during bootstrap. Carries the resolved
|
|
2698
|
+
* config, a pino-compatible logger scoped to the plugin, a per-plugin
|
|
2699
|
+
* writable data directory, and the assistant's version metadata.
|
|
2700
2700
|
*/
|
|
2701
2701
|
export declare interface PluginInitContext {
|
|
2702
2702
|
/** Parsed config for this plugin (may be `unknown` until the manifest validates). */
|
|
2703
2703
|
config: unknown;
|
|
2704
|
-
/** Resolved credential values keyed by the entries of `manifest.requiresCredential`. */
|
|
2705
|
-
credentials: Record<string, string>;
|
|
2706
2704
|
/** Pino-compatible child logger bound to `{ plugin: <name> }`. */
|
|
2707
2705
|
logger: PluginLogger;
|
|
2708
2706
|
/** Absolute path to `<workspaceDir>/plugins-data/<plugin>/` (created by bootstrap). */
|
package/package.json
CHANGED