pi-plus-sdk 0.2.4 → 0.2.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.
- package/api.d.ts +9 -0
- package/api.js +6 -6
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -202,6 +202,15 @@ export declare function removePackage(source: string, options?: PlusPackageInsta
|
|
|
202
202
|
*/
|
|
203
203
|
export declare function updatePackages(source?: string, options?: PlusPackageMaintenanceOptions): Promise<void>;
|
|
204
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Drop every cached extension factory so the next session rebuilds them from
|
|
207
|
+
* disk. The loader memoizes factories per resolved path for the life of the
|
|
208
|
+
* process — right for a short-lived CLI run, but a long-lived host (desktop
|
|
209
|
+
* app) would keep serving stale code after a package update. Call after a
|
|
210
|
+
* successful install/remove/update.
|
|
211
|
+
*/
|
|
212
|
+
export declare function clearExtensionCache(): void;
|
|
213
|
+
|
|
205
214
|
export interface CreatePlusAgentSessionOptions extends CreateAgentSessionOptions {
|
|
206
215
|
extensionFactories?: InlineExtension[];
|
|
207
216
|
ui?: PlusUIDialogHandlers;
|