@vellumai/plugin-api 0.10.3-dev.202606271438.9f70a51 → 0.10.3-dev.202606271631.97b63cd
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 +11 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2195,13 +2195,23 @@ declare interface IngressConfigResponse {
|
|
|
2195
2195
|
* Context passed to `Plugin.init()` during bootstrap. Carries the resolved
|
|
2196
2196
|
* config, a pino-compatible logger scoped to the plugin, a per-plugin
|
|
2197
2197
|
* writable data directory, and the assistant's version metadata.
|
|
2198
|
+
*
|
|
2199
|
+
* For user-installed plugins, config is read from `<pluginDir>/config.json`
|
|
2200
|
+
* and `pluginStorageDir` points at `<pluginDir>/data/`. For first-party
|
|
2201
|
+
* default plugins and standalone workspace hooks, config comes from the
|
|
2202
|
+
* global `config.plugins.<name>` block and `pluginStorageDir` points at
|
|
2203
|
+
* `<workspaceDir>/plugins-data/<name>/`.
|
|
2198
2204
|
*/
|
|
2199
2205
|
export declare interface InitContext {
|
|
2200
2206
|
/** Parsed config for this plugin (may be `unknown` until the manifest validates). */
|
|
2201
2207
|
config: unknown;
|
|
2202
2208
|
/** Pino-compatible child logger bound to `{ plugin: <name> }`. */
|
|
2203
2209
|
logger: PluginLogger;
|
|
2204
|
-
/**
|
|
2210
|
+
/**
|
|
2211
|
+
* Absolute path to the per-plugin writable data directory. For user plugins
|
|
2212
|
+
* this is `<pluginDir>/data/`; for defaults and workspace hooks it falls back
|
|
2213
|
+
* to `<workspaceDir>/plugins-data/<plugin>/`. Created by bootstrap.
|
|
2214
|
+
*/
|
|
2205
2215
|
pluginStorageDir: string;
|
|
2206
2216
|
/**
|
|
2207
2217
|
* Assistant semver. Plugins can compare against this for defensive
|
package/package.json
CHANGED